tcce-design-system 0.1.27 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(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,dd){"use strict";function fd(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 lt=fd(p);var we=function(){return we=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},we.apply(this,arguments)};function Ct(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 hd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pd=/^((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)-.*))$/,md=hd(function(e){return pd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),J="-ms-",Zt="-moz-",H="-webkit-",Gi="comm",Cn="rule",br="decl",gd="@import",Ui="@keyframes",yd="@layer",Wi=Math.abs,xr=String.fromCharCode,Sr=Object.assign;function vd(e,t){return le(e,0)^45?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}function Ki(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function Tn(e,t,n){return e.indexOf(t,n)}function le(e,t){return e.charCodeAt(t)|0}function Tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function qi(e){return e.length}function Jt(e,t){return t.push(e),e}function wd(e,t){return e.map(t).join("")}function Yi(e,t){return e.filter(function(n){return!He(n,t)})}var kn=1,kt=1,Xi=0,$e=0,oe=0,$t="";function $n(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:kn,column:kt,length:s,return:"",siblings:a}}function Ze(e,t){return Sr($n("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pt(e){for(;e.root;)e=Ze(e.root,{children:[e]});Jt(e,e.siblings)}function bd(){return oe}function xd(){return oe=$e>0?le($t,--$e):0,kt--,oe===10&&(kt=1,kn--),oe}function Ve(){return oe=$e<Xi?le($t,$e++):0,kt++,oe===10&&(kt=1,kn++),oe}function ct(){return le($t,$e)}function Pn(){return $e}function En(e,t){return Tt($t,e,t)}function Cr(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 Sd(e){return kn=kt=1,Xi=Oe($t=e),$e=0,[]}function Cd(e){return $t="",e}function Tr(e){return Ki(En($e-1,kr(e===91?e+2:e===40?e+1:e)))}function Td(e){for(;(oe=ct())&&oe<33;)Ve();return Cr(e)>2||Cr(oe)>3?"":" "}function kd(e,t){for(;--t&&Ve()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return En(e,Pn()+(t<6&&ct()==32&&Ve()==32))}function kr(e){for(;Ve();)switch(oe){case e:return $e;case 34:case 39:e!==34&&e!==39&&kr(oe);break;case 40:e===41&&kr(e);break;case 92:Ve();break}return $e}function $d(e,t){for(;Ve()&&e+oe!==57;)if(e+oe===84&&ct()===47)break;return"/*"+En(t,$e-1)+"*"+xr(e===47?e:Ve())}function Pd(e){for(;!Cr(ct());)Ve();return En(e,$e)}function Ed(e){return Cd(Mn("",null,null,null,[""],e=Sd(e),0,[0],e))}function Mn(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,m=0,y=1,w=1,v=1,x=0,b="",$=o,S=i,P=r,E=b;w;)switch(m=x,x=Ve()){case 40:if(m!=108&&le(E,u-1)==58){Tn(E+=O(Tr(x),"&","&\f"),"&\f",Wi(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Tr(x);break;case 9:case 10:case 13:case 32:E+=Td(m);break;case 92:E+=kd(Pn()-1,7);continue;case 47:switch(ct()){case 42:case 47:Jt(Md($d(Ve(),Pn()),t,n,l),l);break;default:E+="/"}break;case 123*y:a[c++]=Oe(E)*v;case 125*y:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+d:v==-1&&(E=O(E,/\f/g,"")),h>0&&Oe(E)-u&&Jt(h>32?Ji(E+";",r,n,u-1,l):Ji(O(E," ","")+";",r,n,u-2,l),l);break;case 59:E+=";";default:if(Jt(P=Zi(E,t,n,c,d,o,a,b,$=[],S=[],u,i),i),x===123)if(d===0)Mn(E,t,P,P,$,i,u,a,S);else switch(f===99&&le(E,3)===110?100:f){case 100:case 108:case 109:case 115:Mn(e,P,P,r&&Jt(Zi(e,P,P,0,0,o,a,b,o,$=[],u,S),S),o,S,u,a,r?$:S);break;default:Mn(E,P,P,P,[""],S,0,a,S)}}c=d=h=0,y=v=1,b=E="",u=s;break;case 58:u=1+Oe(E),h=m;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&xd()==125)continue}switch(E+=xr(x),x*y){case 38:v=d>0?1:(E+="\f",-1);break;case 44:a[c++]=(Oe(E)-1)*v,v=1;break;case 64:ct()===45&&(E+=Tr(Ve())),f=ct(),d=u=Oe(b=E+=Pd(Pn())),x++;break;case 45:m===45&&Oe(E)==2&&(y=0)}}return i}function Zi(e,t,n,r,o,i,s,a,l,c,d,u){for(var f=o-1,h=o===0?i:[""],m=qi(h),y=0,w=0,v=0;y<r;++y)for(var x=0,b=Tt(e,f+1,f=Wi(w=s[y])),$=e;x<m;++x)($=Ki(w>0?h[x]+" "+b:O(b,/&\f/g,h[x])))&&(l[v++]=$);return $n(e,t,n,o===0?Cn:a,l,c,d,u)}function Md(e,t,n,r){return $n(e,t,n,Gi,xr(bd()),Tt(e,2,-2),0,r)}function Ji(e,t,n,r,o){return $n(e,t,n,br,Tt(e,0,r),Tt(e,r+1,-1),r,o)}function Qi(e,t,n){switch(vd(e,t)){case 5103:return H+"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 H+e+e;case 4789:return Zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Zt+e+J+e+e;case 5936:switch(le(e,t+11)){case 114:return H+e+J+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+J+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+J+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+J+e+e;case 6165:return H+e+J+"flex-"+e+e;case 5187:return H+e+O(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+J+"flex-$1$2")+e;case 5443:return H+e+J+"flex-item-"+O(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":J+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return H+e+J+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+J+O(e,"shrink","negative")+e;case 5292:return H+e+J+O(e,"basis","preferred-size")+e;case 6060:return H+"box-"+O(e,"-grow","")+H+e+J+O(e,"grow","positive")+e;case 4554:return H+O(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+J+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!He(e,/flex-|baseline/))return J+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return J+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~Tn(e+(n=n[t].value),"span",0)?e:J+O(e,"-start","")+e+J+"grid-row-span:"+(~Tn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":J+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:J+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,H+"$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(Oe(e)-1-t>6)switch(le(e,t+1)){case 109:if(le(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Zt+(le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tn(e,"stretch",0)?Qi(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,l,c){return J+o+":"+i+c+(s?J+o+"-span:"+(a?l:+l-+i)+c:"")+e});case 4949:if(le(e,t+6)===121)return O(e,":",":"+H)+e;break;case 6444:switch(le(e,le(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(le(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+J+"$2box$3")+e;case 100:return O(e,":",":"+J)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function An(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ad(e,t,n,r){switch(e.type){case yd:if(e.children.length)break;case gd:case br:return e.return=e.return||e.value;case Gi:return"";case Ui:return e.return=e.value+"{"+An(e.children,r)+"}";case Cn:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=An(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vd(e){var t=qi(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 Dd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Fd(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case br:e.return=Qi(e.value,e.length,n);return;case Ui:return An([Ze(e,{value:O(e.value,"@","@"+H)})],r);case Cn:if(e.length)return wd(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pt(Ze(e,{props:[O(o,/:(read-\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[o]})),Sr(e,{props:Yi(n,r)});break;case"::placeholder":Pt(Ze(e,{props:[O(o,/:(plac\w+)/,":"+H+"input-$1")]})),Pt(Ze(e,{props:[O(o,/:(plac\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[O(o,/:(plac\w+)/,J+"input-$1")]})),Pt(Ze(e,{props:[o]})),Sr(e,{props:Yi(n,r)});break}return""})}}var Id={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},ut=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",es="active",ts="data-styled-version",Vn="6.1.19",$r=`/*!sc*/
|
|
2
|
-
`,Dn=typeof window<"u"&&typeof document<"u",
|
|
1
|
+
(function(S,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):(S=typeof globalThis<"u"?globalThis:S||self,p(S["tcce-design-system-components"]={},S.React,S["react/jsx-runtime"],S.ReactDOM,S.Formik))})(this,(function(S,p,g,Ui,fd){"use strict";function hd(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 lt=hd(p);var we=function(){return we=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},we.apply(this,arguments)};function Ct(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 pd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var md=/^((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)-.*))$/,gd=pd(function(e){return md.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Q="-ms-",Zt="-moz-",H="-webkit-",Wi="comm",Cn="rule",br="decl",yd="@import",Ki="@keyframes",vd="@layer",qi=Math.abs,xr=String.fromCharCode,Sr=Object.assign;function wd(e,t){return le(e,0)^45?(((t<<2^le(e,0))<<2^le(e,1))<<2^le(e,2))<<2^le(e,3):0}function Yi(e){return e.trim()}function He(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function Tn(e,t,n){return e.indexOf(t,n)}function le(e,t){return e.charCodeAt(t)|0}function Tt(e,t,n){return e.slice(t,n)}function Oe(e){return e.length}function Xi(e){return e.length}function Jt(e,t){return t.push(e),e}function bd(e,t){return e.map(t).join("")}function Zi(e,t){return e.filter(function(n){return!He(n,t)})}var $n=1,$t=1,Ji=0,ke=0,oe=0,kt="";function kn(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:$n,column:$t,length:s,return:"",siblings:a}}function Ze(e,t){return Sr(kn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Pt(e){for(;e.root;)e=Ze(e.root,{children:[e]});Jt(e,e.siblings)}function xd(){return oe}function Sd(){return oe=ke>0?le(kt,--ke):0,$t--,oe===10&&($t=1,$n--),oe}function Ve(){return oe=ke<Ji?le(kt,ke++):0,$t++,oe===10&&($t=1,$n++),oe}function ct(){return le(kt,ke)}function Pn(){return ke}function En(e,t){return Tt(kt,e,t)}function Cr(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 Cd(e){return $n=$t=1,Ji=Oe(kt=e),ke=0,[]}function Td(e){return kt="",e}function Tr(e){return Yi(En(ke-1,$r(e===91?e+2:e===40?e+1:e)))}function $d(e){for(;(oe=ct())&&oe<33;)Ve();return Cr(e)>2||Cr(oe)>3?"":" "}function kd(e,t){for(;--t&&Ve()&&!(oe<48||oe>102||oe>57&&oe<65||oe>70&&oe<97););return En(e,Pn()+(t<6&&ct()==32&&Ve()==32))}function $r(e){for(;Ve();)switch(oe){case e:return ke;case 34:case 39:e!==34&&e!==39&&$r(oe);break;case 40:e===41&&$r(e);break;case 92:Ve();break}return ke}function Pd(e,t){for(;Ve()&&e+oe!==57;)if(e+oe===84&&ct()===47)break;return"/*"+En(t,ke-1)+"*"+xr(e===47?e:Ve())}function Ed(e){for(;!Cr(ct());)Ve();return En(e,ke)}function Md(e){return Td(Mn("",null,null,null,[""],e=Cd(e),0,[0],e))}function Mn(e,t,n,r,o,i,s,a,l){for(var c=0,d=0,u=s,f=0,h=0,m=0,y=1,w=1,v=1,C=0,b="",k=o,x=i,P=r,E=b;w;)switch(m=C,C=Ve()){case 40:if(m!=108&&le(E,u-1)==58){Tn(E+=O(Tr(C),"&","&\f"),"&\f",qi(c?a[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Tr(C);break;case 9:case 10:case 13:case 32:E+=$d(m);break;case 92:E+=kd(Pn()-1,7);continue;case 47:switch(ct()){case 42:case 47:Jt(Ad(Pd(Ve(),Pn()),t,n,l),l);break;default:E+="/"}break;case 123*y:a[c++]=Oe(E)*v;case 125*y:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+d:v==-1&&(E=O(E,/\f/g,"")),h>0&&Oe(E)-u&&Jt(h>32?es(E+";",r,n,u-1,l):es(O(E," ","")+";",r,n,u-2,l),l);break;case 59:E+=";";default:if(Jt(P=Qi(E,t,n,c,d,o,a,b,k=[],x=[],u,i),i),C===123)if(d===0)Mn(E,t,P,P,k,i,u,a,x);else switch(f===99&&le(E,3)===110?100:f){case 100:case 108:case 109:case 115:Mn(e,P,P,r&&Jt(Qi(e,P,P,0,0,o,a,b,o,k=[],u,x),x),o,x,u,a,r?k:x);break;default:Mn(E,P,P,P,[""],x,0,a,x)}}c=d=h=0,y=v=1,b=E="",u=s;break;case 58:u=1+Oe(E),h=m;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&Sd()==125)continue}switch(E+=xr(C),C*y){case 38:v=d>0?1:(E+="\f",-1);break;case 44:a[c++]=(Oe(E)-1)*v,v=1;break;case 64:ct()===45&&(E+=Tr(Ve())),f=ct(),d=u=Oe(b=E+=Ed(Pn())),C++;break;case 45:m===45&&Oe(E)==2&&(y=0)}}return i}function Qi(e,t,n,r,o,i,s,a,l,c,d,u){for(var f=o-1,h=o===0?i:[""],m=Xi(h),y=0,w=0,v=0;y<r;++y)for(var C=0,b=Tt(e,f+1,f=qi(w=s[y])),k=e;C<m;++C)(k=Yi(w>0?h[C]+" "+b:O(b,/&\f/g,h[C])))&&(l[v++]=k);return kn(e,t,n,o===0?Cn:a,l,c,d,u)}function Ad(e,t,n,r){return kn(e,t,n,Wi,xr(xd()),Tt(e,2,-2),0,r)}function es(e,t,n,r,o){return kn(e,t,n,br,Tt(e,0,r),Tt(e,r+1,-1),r,o)}function ts(e,t,n){switch(wd(e,t)){case 5103:return H+"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 H+e+e;case 4789:return Zt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Zt+e+Q+e+e;case 5936:switch(le(e,t+11)){case 114:return H+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Q+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+Q+e+e;case 6165:return H+e+Q+"flex-"+e+e;case 5187:return H+e+O(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Q+"flex-$1$2")+e;case 5443:return H+e+Q+"flex-item-"+O(e,/flex-|-self/g,"")+(He(e,/flex-|baseline/)?"":Q+"grid-row-"+O(e,/flex-|-self/g,""))+e;case 4675:return H+e+Q+"flex-line-pack"+O(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+Q+O(e,"shrink","negative")+e;case 5292:return H+e+Q+O(e,"basis","preferred-size")+e;case 6060:return H+"box-"+O(e,"-grow","")+H+e+Q+O(e,"grow","positive")+e;case 4554:return H+O(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!He(e,/flex-|baseline/))return Q+"grid-column-align"+Tt(e,t)+e;break;case 2592:case 3360:return Q+O(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,He(r.props,/grid-\w+-end/)})?~Tn(e+(n=n[t].value),"span",0)?e:Q+O(e,"-start","")+e+Q+"grid-row-span:"+(~Tn(n,"span",0)?He(n,/\d+/):+He(n,/\d+/)-+He(e,/\d+/))+";":Q+O(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return He(r.props,/grid-\w+-start/)})?e:Q+O(O(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,H+"$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(Oe(e)-1-t>6)switch(le(e,t+1)){case 109:if(le(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Zt+(le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Tn(e,"stretch",0)?ts(O(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return O(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(le(e,t+6)===121)return O(e,":",":"+H)+e;break;case 6444:switch(le(e,le(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(le(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Q+"$2box$3")+e;case 100:return O(e,":",":"+Q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,"scroll-","scroll-snap-")+e}return e}function An(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Vd(e,t,n,r){switch(e.type){case vd:if(e.children.length)break;case yd:case br:return e.return=e.return||e.value;case Wi:return"";case Ki:return e.return=e.value+"{"+An(e.children,r)+"}";case Cn:if(!Oe(e.value=e.props.join(",")))return""}return Oe(n=An(e.children,r))?e.return=e.value+"{"+n+"}":""}function Dd(e){var t=Xi(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 Fd(e){return function(t){t.root||(t=t.return)&&e(t)}}function Id(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case br:e.return=ts(e.value,e.length,n);return;case Ki:return An([Ze(e,{value:O(e.value,"@","@"+H)})],r);case Cn:if(e.length)return bd(n=e.props,function(o){switch(He(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Pt(Ze(e,{props:[O(o,/:(read-\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[o]})),Sr(e,{props:Zi(n,r)});break;case"::placeholder":Pt(Ze(e,{props:[O(o,/:(plac\w+)/,":"+H+"input-$1")]})),Pt(Ze(e,{props:[O(o,/:(plac\w+)/,":"+Zt+"$1")]})),Pt(Ze(e,{props:[O(o,/:(plac\w+)/,Q+"input-$1")]})),Pt(Ze(e,{props:[o]})),Sr(e,{props:Zi(n,r)});break}return""})}}var Rd={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},ut=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ns="active",rs="data-styled-version",Vn="6.1.19",kr=`/*!sc*/
|
|
2
|
+
`,Dn=typeof window<"u"&&typeof document<"u",Ld=!!(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"),os=/invalid hook call/i,Fn=new Set,_d=function(e,t){if(process.env.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
5
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];
|
|
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];os.test(s)?(i=!1,Fn.delete(r)):o.apply(void 0,Ct([s],a,!1))},p.useRef(),i&&!Fn.has(r)&&(console.warn(r),Fn.add(r))}catch(s){os.test(s.message)&&Fn.delete(r)}finally{console.error=o}}},In=Object.freeze([]),Et=Object.freeze({});function Nd(e,t,n){return n===void 0&&(n=Et),e.theme!==n.theme&&e.theme||t||n.theme}var Pr=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Od=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Bd=/(^-|-$)/g;function is(e){return e.replace(Od,"-").replace(Bd,"")}var zd=/(a)(d)/gi,Rn=52,ss=function(e){return String.fromCharCode(e+(e>25?39:97))};function Er(e){var t,n="";for(t=Math.abs(e);t>Rn;t=t/Rn|0)n=ss(t%Rn)+n;return(ss(t%Rn)+n).replace(zd,"$1-$2")}var Mr,as=5381,dt=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ls=function(e){return dt(as,e)};function Hd(e){return Er(ls(e)>>>0)}function cs(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Ar(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var us=typeof Symbol=="function"&&Symbol.for,ds=us?Symbol.for("react.memo"):60115,jd=us?Symbol.for("react.forward_ref"):60112,Gd={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ud={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wd=((Mr={})[jd]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mr[ds]=fs,Mr);function hs(e){return("type"in(t=e)&&t.type.$$typeof)===ds?fs:"$$typeof"in e?Wd[e.$$typeof]:Gd;var t}var Kd=Object.defineProperty,qd=Object.getOwnPropertyNames,ps=Object.getOwnPropertySymbols,Yd=Object.getOwnPropertyDescriptor,Xd=Object.getPrototypeOf,ms=Object.prototype;function gs(e,t,n){if(typeof t!="string"){if(ms){var r=Xd(t);r&&r!==ms&&gs(e,r,n)}var o=qd(t);ps&&(o=o.concat(ps(t)));for(var i=hs(e),s=hs(t),a=0;a<o.length;++a){var l=o[a];if(!(l in Ud||n&&n[l]||s&&l in s||i&&l in i)){var c=Yd(t,l);try{Kd(e,l,c)}catch{}}}}return e}function Mt(e){return typeof e=="function"}function Vr(e){return typeof e=="object"&&"styledComponentId"in e}function ft(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ys(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function At(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Dr(e,t,n){if(n===void 0&&(n=!1),!n&&!At(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Dr(e[r],t[r]);else if(At(t))for(var r in t)e[r]=Dr(e[r],t[r]);return e}function Fr(e,t){Object.defineProperty(e,"toString",{value:t})}var Zd=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 Zd(){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 Vt(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(Zd.apply(void 0,Ct([Xd[e]],t,!1)).trim())}var Jd=(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 Vt(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($r);return n},e})(),Qd=1<<30,Ln=new Map,_n=new Map,Nn=1,On=function(e){if(Ln.has(e))return Ln.get(e);for(;_n.has(Nn);)Nn++;var t=Nn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Qd))throw Vt(16,"".concat(t));return Ln.set(e,t),_n.set(t,e),t},ef=function(e,t){Nn=t+1,Ln.set(e,t),_n.set(t,e)},tf="style[".concat(ut,"][").concat(ts,'="').concat(Vn,'"]'),nf=new RegExp("^".concat(ut,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),rf=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)},of=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split($r),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(nf);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(ef(d,c),rf(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},gs=function(e){for(var t=document.querySelectorAll(tf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ut)!==es&&(of(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function sf(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ys=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(ut,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(ut,es),r.setAttribute(ts,Vn);var s=sf();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},af=(function(){function e(t){this.element=ys(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 Vt(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})(),lf=(function(){function e(t){this.element=ys(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})(),vs=Dn,uf={isServer:!Dn,useCSSOMInjection:!Rd},ws=(function(){function e(t,n,r){t===void 0&&(t=Et),n===void 0&&(n={});var o=this;this.options=we(we({},uf),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Dn&&vs&&(vs=!1,gs(this)),Fr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(u){var f=(function(v){return _n.get(v)})(u);if(f===void 0)return"continue";var h=i.names.get(f),m=s.getGroup(u);if(h===void 0||!h.size||m.length===0)return"continue";var y="".concat(ut,".g").concat(u,'[id="').concat(f,'"]'),w="";h!==void 0&&h.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(w,'"}').concat($r)},d=0;d<a;d++)c(d);return l})(o)})}return e.registerId=function(t){return On(t)},e.prototype.rehydrate=function(){!this.server&&Dn&&gs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(we(we({},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 af(o):new lf(o)})(this.options),new Jd(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(On(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(On(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(On(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),df=/&/g,ff=/^\s*\/\/.*$/gm;function bs(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=bs(n.children,t)),n})}function hf(e){var t,n,r,o=Et,i=o.options,s=i===void 0?Et:i,a=o.plugins,l=a===void 0?In:a,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},d=l.slice();d.push(function(f){f.type===Cn&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(df,n).replace(r,c))}),s.prefix&&d.push(Fd),d.push(Ad);var u=function(f,h,m,y){h===void 0&&(h=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(ff,""),v=Ed(m||h?"".concat(m," ").concat(h," { ").concat(w," }"):w);s.namespace&&(v=bs(v,s.namespace));var x=[];return An(v,Vd(d.concat(Dd(function(b){return x.push(b)})))),x};return u.hash=l.length?l.reduce(function(f,h){return h.name||Vt(15),dt(f,h.name)},is).toString():"",u}var pf=new ws,Ir=hf(),xs=p.createContext({shouldForwardProp:void 0,styleSheet:pf,stylis:Ir});xs.Consumer,p.createContext(void 0);function Ss(){return p.useContext(xs)}var Cs=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Ir);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Fr(this,function(){throw Vt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ir),this.name+t.hash},e})(),mf=function(e){return e>="A"&&e<="Z"};function Ts(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 ks=function(e){return e==null||e===!1||e===""},$s=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!ks(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(Ts(o),":"),i,";"):At(i)?r.push.apply(r,Ct(Ct(["".concat(o," {")],$s(i),!1),["}"],!1)):r.push("".concat(Ts(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Id||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ht(e,t,n,r){if(ks(e))return[];if(Vr(e))return[".".concat(e.styledComponentId)];if(Mt(e)){if(!Mt(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 Cs||At(o)||o===null||console.error("".concat(as(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.")),ht(o,t,n,r)}var i;return e instanceof Cs?n?(e.inject(n,r),[e.getName(r)]):[e]:At(e)?$s(e):Array.isArray(e)?Array.prototype.concat.apply(In,e.map(function(s){return ht(s,t,n,r)})):[e.toString()]}function gf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!Vr(n))return!1}return!0}var yf=ss(Vn),vf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&gf(t),this.componentId=n,this.baseHash=dt(yf,n),this.baseStyle=r,ws.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=ft(o,this.staticRulesId);else{var i=ms(ht(this.rules,t,n,r)),s=Er(dt(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=ft(o,s),this.staticRulesId=s}else{for(var l=dt(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=dt(l,u));else if(u){var f=ms(ht(u,t,n,r));l=dt(l,f+d),c+=f}}if(c){var h=Er(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),o=ft(o,h)}}return o},e})(),Ps=p.createContext(void 0);Ps.Consumer;var Rr={},Es=new Set;function wf(e,t,n){var r=Vr(e),o=e,i=!Ar(e),s=t.attrs,a=s===void 0?In:s,l=t.componentId,c=l===void 0?(function($,S){var P=typeof $!="string"?"sc":rs($);Rr[P]=(Rr[P]||0)+1;var E="".concat(P,"-").concat(zd(Vn+P+Rr[P]));return S?"".concat(S,"-").concat(E):E})(t.displayName,t.parentComponentId):l,d=t.displayName,u=d===void 0?(function($){return Ar($)?"styled.".concat($):"Styled(".concat(as($),")")})(e):d,f=t.displayName&&t.componentId?"".concat(rs(t.displayName),"-").concat(t.componentId):t.componentId||c,h=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 w=t.shouldForwardProp;m=function($,S){return y($,S)&&w($,S)}}else m=y}var v=new vf(n,f,r?o.componentStyle:void 0);function x($,S){return(function(P,E,M){var L=P.attrs,_=P.componentStyle,G=P.defaultProps,U=P.foldedComponentIds,Q=P.styledComponentId,W=P.target,X=p.useContext(Ps),R=Ss(),D=P.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(Q);var j=_d(E,X,G)||Et,q=(function(Y,ce,Le){for(var z,Se=we(we({},ce),{className:void 0,theme:Le}),st=0;st<Y.length;st+=1){var Ye=Mt(z=Y[st])?z(Se):z;for(var ve in Ye)Se[ve]=ve==="className"?ft(Se[ve],Ye[ve]):ve==="style"?we(we({},Se[ve]),Ye[ve]):Ye[ve]}return ce.className&&(Se.className=ft(Se.className,ce.className)),Se})(L,E,j),Z=q.as||W,fe={};for(var ae in q)q[ae]===void 0||ae[0]==="$"||ae==="as"||ae==="theme"&&q.theme===j||(ae==="forwardedAs"?fe.as=q.forwardedAs:D&&!D(ae,Z)||(fe[ae]=q[ae],D||process.env.NODE_ENV!=="development"||md(ae)||Es.has(ae)||!Pr.has(Z)||(Es.add(ae),console.warn('styled-components: it looks like an unknown prop "'.concat(ae,'" 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 B=(function(Y,ce){var Le=Ss(),z=Y.generateAndInjectStyles(ce,Le.styleSheet,Le.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(z),z})(_,q);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(B);var ee=ft(U,Q);return B&&(ee+=" "+B),q.className&&(ee+=" "+q.className),fe[Ar(Z)&&!Pr.has(Z)?"class":"className"]=ee,M&&(fe.ref=M),p.createElement(Z,fe)})(b,$,S)}x.displayName=u;var b=p.forwardRef(x);return b.attrs=h,b.componentStyle=v,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=r?ft(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?(function(S){for(var P=[],E=1;E<arguments.length;E++)P[E-1]=arguments[E];for(var M=0,L=P;M<L.length;M++)Dr(S,L[M],!0);return S})({},o.defaultProps,$):$}}),process.env.NODE_ENV!=="production"&&(Ld(u,f),b.warnTooManyClasses=(function($,S){var P={},E=!1;return function(M){if(!E&&(P[M]=!0,Object.keys(P).length>=200)){var L=S?' with the id of "'.concat(S,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(L,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Jd(){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 Vt(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(Jd.apply(void 0,Ct([Zd[e]],t,!1)).trim())}var Qd=(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 Vt(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(kr);return n},e})(),ef=1<<30,Ln=new Map,_n=new Map,Nn=1,On=function(e){if(Ln.has(e))return Ln.get(e);for(;_n.has(Nn);)Nn++;var t=Nn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>ef))throw Vt(16,"".concat(t));return Ln.set(e,t),_n.set(t,e),t},tf=function(e,t){Nn=t+1,Ln.set(e,t),_n.set(t,e)},nf="style[".concat(ut,"][").concat(rs,'="').concat(Vn,'"]'),rf=new RegExp("^".concat(ut,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),of=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)},sf=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(kr),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var l=a.match(rf);if(l){var c=0|parseInt(l[1],10),d=l[2];c!==0&&(tf(d,c),of(e,d,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(a)}}},vs=function(e){for(var t=document.querySelectorAll(nf),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ut)!==ns&&(sf(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function af(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var ws=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(ut,"]")));return l[l.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(ut,ns),r.setAttribute(rs,Vn);var s=af();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},lf=(function(){function e(t){this.element=ws(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 Vt(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})(),cf=(function(){function e(t){this.element=ws(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})(),uf=(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})(),bs=Dn,df={isServer:!Dn,useCSSOMInjection:!Ld},xs=(function(){function e(t,n,r){t===void 0&&(t=Et),n===void 0&&(n={});var o=this;this.options=we(we({},df),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Dn&&bs&&(bs=!1,vs(this)),Fr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,l="",c=function(u){var f=(function(v){return _n.get(v)})(u);if(f===void 0)return"continue";var h=i.names.get(f),m=s.getGroup(u);if(h===void 0||!h.size||m.length===0)return"continue";var y="".concat(ut,".g").concat(u,'[id="').concat(f,'"]'),w="";h!==void 0&&h.forEach(function(v){v.length>0&&(w+="".concat(v,","))}),l+="".concat(m).concat(y,'{content:"').concat(w,'"}').concat(kr)},d=0;d<a;d++)c(d);return l})(o)})}return e.registerId=function(t){return On(t)},e.prototype.rehydrate=function(){!this.server&&Dn&&vs(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(we(we({},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 uf(o):r?new lf(o):new cf(o)})(this.options),new Qd(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(On(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(On(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(On(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),ff=/&/g,hf=/^\s*\/\/.*$/gm;function Ss(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=Ss(n.children,t)),n})}function pf(e){var t,n,r,o=Et,i=o.options,s=i===void 0?Et:i,a=o.plugins,l=a===void 0?In:a,c=function(f,h,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):f},d=l.slice();d.push(function(f){f.type===Cn&&f.value.includes("&")&&(f.props[0]=f.props[0].replace(ff,n).replace(r,c))}),s.prefix&&d.push(Id),d.push(Vd);var u=function(f,h,m,y){h===void 0&&(h=""),m===void 0&&(m=""),y===void 0&&(y="&"),t=y,n=h,r=new RegExp("\\".concat(n,"\\b"),"g");var w=f.replace(hf,""),v=Md(m||h?"".concat(m," ").concat(h," { ").concat(w," }"):w);s.namespace&&(v=Ss(v,s.namespace));var C=[];return An(v,Dd(d.concat(Fd(function(b){return C.push(b)})))),C};return u.hash=l.length?l.reduce(function(f,h){return h.name||Vt(15),dt(f,h.name)},as).toString():"",u}var mf=new xs,Ir=pf(),Cs=p.createContext({shouldForwardProp:void 0,styleSheet:mf,stylis:Ir});Cs.Consumer,p.createContext(void 0);function Ts(){return p.useContext(Cs)}var $s=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Ir);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Fr(this,function(){throw Vt(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ir),this.name+t.hash},e})(),gf=function(e){return e>="A"&&e<="Z"};function ks(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;gf(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ps=function(e){return e==null||e===!1||e===""},Es=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ps(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(ks(o),":"),i,";"):At(i)?r.push.apply(r,Ct(Ct(["".concat(o," {")],Es(i),!1),["}"],!1)):r.push("".concat(ks(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Rd||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ht(e,t,n,r){if(Ps(e))return[];if(Vr(e))return[".".concat(e.styledComponentId)];if(Mt(e)){if(!Mt(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 $s||At(o)||o===null||console.error("".concat(cs(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.")),ht(o,t,n,r)}var i;return e instanceof $s?n?(e.inject(n,r),[e.getName(r)]):[e]:At(e)?Es(e):Array.isArray(e)?Array.prototype.concat.apply(In,e.map(function(s){return ht(s,t,n,r)})):[e.toString()]}function yf(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!Vr(n))return!1}return!0}var vf=ls(Vn),wf=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&yf(t),this.componentId=n,this.baseHash=dt(vf,n),this.baseStyle=r,xs.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=ft(o,this.staticRulesId);else{var i=ys(ht(this.rules,t,n,r)),s=Er(dt(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=ft(o,s),this.staticRulesId=s}else{for(var l=dt(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=dt(l,u));else if(u){var f=ys(ht(u,t,n,r));l=dt(l,f+d),c+=f}}if(c){var h=Er(l>>>0);n.hasNameForId(this.componentId,h)||n.insertRules(this.componentId,h,r(c,".".concat(h),void 0,this.componentId)),o=ft(o,h)}}return o},e})(),Ms=p.createContext(void 0);Ms.Consumer;var Rr={},As=new Set;function bf(e,t,n){var r=Vr(e),o=e,i=!Ar(e),s=t.attrs,a=s===void 0?In:s,l=t.componentId,c=l===void 0?(function(k,x){var P=typeof k!="string"?"sc":is(k);Rr[P]=(Rr[P]||0)+1;var E="".concat(P,"-").concat(Hd(Vn+P+Rr[P]));return x?"".concat(x,"-").concat(E):E})(t.displayName,t.parentComponentId):l,d=t.displayName,u=d===void 0?(function(k){return Ar(k)?"styled.".concat(k):"Styled(".concat(cs(k),")")})(e):d,f=t.displayName&&t.componentId?"".concat(is(t.displayName),"-").concat(t.componentId):t.componentId||c,h=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 w=t.shouldForwardProp;m=function(k,x){return y(k,x)&&w(k,x)}}else m=y}var v=new wf(n,f,r?o.componentStyle:void 0);function C(k,x){return(function(P,E,M){var L=P.attrs,_=P.componentStyle,G=P.defaultProps,U=P.foldedComponentIds,X=P.styledComponentId,W=P.target,Z=p.useContext(Ms),R=Ts(),D=P.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&p.useDebugValue(X);var j=Nd(E,Z,G)||Et,q=(function(Y,ce,Le){for(var z,Se=we(we({},ce),{className:void 0,theme:Le}),st=0;st<Y.length;st+=1){var Ye=Mt(z=Y[st])?z(Se):z;for(var ve in Ye)Se[ve]=ve==="className"?ft(Se[ve],Ye[ve]):ve==="style"?we(we({},Se[ve]),Ye[ve]):Ye[ve]}return ce.className&&(Se.className=ft(Se.className,ce.className)),Se})(L,E,j),J=q.as||W,fe={};for(var ae in q)q[ae]===void 0||ae[0]==="$"||ae==="as"||ae==="theme"&&q.theme===j||(ae==="forwardedAs"?fe.as=q.forwardedAs:D&&!D(ae,J)||(fe[ae]=q[ae],D||process.env.NODE_ENV!=="development"||gd(ae)||As.has(ae)||!Pr.has(J)||(As.add(ae),console.warn('styled-components: it looks like an unknown prop "'.concat(ae,'" 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 B=(function(Y,ce){var Le=Ts(),z=Y.generateAndInjectStyles(ce,Le.styleSheet,Le.stylis);return process.env.NODE_ENV!=="production"&&p.useDebugValue(z),z})(_,q);process.env.NODE_ENV!=="production"&&P.warnTooManyClasses&&P.warnTooManyClasses(B);var ee=ft(U,X);return B&&(ee+=" "+B),q.className&&(ee+=" "+q.className),fe[Ar(J)&&!Pr.has(J)?"class":"className"]=ee,M&&(fe.ref=M),p.createElement(J,fe)})(b,k,x)}C.displayName=u;var b=p.forwardRef(C);return b.attrs=h,b.componentStyle=v,b.displayName=u,b.shouldForwardProp=m,b.foldedComponentIds=r?ft(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=f,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?(function(x){for(var P=[],E=1;E<arguments.length;E++)P[E-1]=arguments[E];for(var M=0,L=P;M<L.length;M++)Dr(x,L[M],!0);return x})({},o.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(_d(u,f),b.warnTooManyClasses=(function(k,x){var P={},E=!1;return function(M){if(!E&&(P[M]=!0,Object.keys(P).length>=200)){var L=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(L,`.
|
|
48
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
49
|
Example:
|
|
50
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -53,7 +53,7 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),E=!0,P={}}}})(u,f)),Fr(b,function(){return".".concat(b.styledComponentId)}),i&&
|
|
56
|
+
<Component />`),E=!0,P={}}}})(u,f)),Fr(b,function(){return".".concat(b.styledComponentId)}),i&&gs(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Vs(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 Ds=function(e){return Object.assign(e,{isCss:!0})};function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mt(e)||At(e))return Ds(ht(Vs(In,Ct([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ht(r):Ds(ht(Vs(r,t)))}function Lr(e,t,n){if(n===void 0&&(n=Et),!t)throw Vt(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,T.apply(void 0,Ct([o],i,!1)))};return r.attrs=function(o){return Lr(e,t,we(we({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return Lr(e,t,we(we({},n),o))},r}var Fs=function(e){return Lr(bf,e)},$=Fs;Pr.forEach(function(e){$[e]=Fs(e)}),process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
57
|
Perhaps you're looking to import 'styled-components/native'?
|
|
58
58
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Bn="__sc-".concat(ut,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Bn]||(window[Bn]=0),window[Bn]===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
|
|
|
@@ -99,7 +99,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
99
99
|
font-style: normal;
|
|
100
100
|
font-weight: 700;
|
|
101
101
|
line-height: 161.76%;
|
|
102
|
-
`},
|
|
102
|
+
`},Is={80:T`
|
|
103
103
|
font-family: 'Dax', serif;
|
|
104
104
|
font-size: 5em;
|
|
105
105
|
font-style: normal;
|
|
@@ -201,19 +201,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
201
201
|
font-style: normal;
|
|
202
202
|
font-weight: 400;
|
|
203
203
|
line-height: 133%;
|
|
204
|
-
`},
|
|
204
|
+
`},Rs=$.h1`
|
|
205
205
|
${({size:e=24})=>_r[e]}
|
|
206
206
|
margin: 0;
|
|
207
207
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
208
|
-
`,
|
|
209
|
-
${({size:e=24})=>
|
|
208
|
+
`,xf=$.h2`
|
|
209
|
+
${({size:e=24})=>Is[e]}
|
|
210
210
|
margin: 0;
|
|
211
211
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
212
|
-
`,je
|
|
212
|
+
`,je=$.span`
|
|
213
213
|
${({size:e=16})=>V[e]}
|
|
214
214
|
margin: 0;
|
|
215
215
|
color: ${({color:e})=>e||"var(--color-main-blue-primary)"};
|
|
216
|
-
`,
|
|
216
|
+
`,Sf=$.span`
|
|
217
217
|
display: inline-flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
justify-content: center;
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
223
223
|
outline: none;
|
|
224
224
|
box-shadow: var(--shadow-hover-black-card);
|
|
225
225
|
}
|
|
226
|
-
`,Is={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},K=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Is?Is[t]:t;return g.jsx(xf,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},Nr=p.createContext({});function Or(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Br=typeof window<"u",Rs=Br?p.useLayoutEffect:p.useEffect,zn=p.createContext(null);function zr(e,t){e.indexOf(t)===-1&&e.push(t)}function Hr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ge=(e,t,n)=>n>t?t:n<e?e:n;function jr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Dt=()=>{},Ue=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Dt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(jr(t,n))});const We={},Ls=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _s(e){return typeof e=="object"&&e!==null}const Ns=e=>/^0[^.\s]+$/u.test(e);function Gr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,Sf=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(Sf),en=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ur{constructor(){this.subscriptions=[]}add(t){return zr(this.subscriptions,t),()=>Hr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Ee=e=>e/1e3;function Os(e,t){return t?e*(1e3/t):0}const Bs=new Set;function Wr(e,t,n){e||Bs.has(t)||(console.warn(jr(t,n)),Bs.add(t))}const zs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cf=1e-7,Tf=12;function kf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=zs(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Cf&&++a<Tf);return s}function tn(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>kf(i,0,1,e,n);return i=>i===0||i===1?i:zs(o(i),t,r)}const Hs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,js=e=>t=>1-e(1-t),Gs=tn(.33,1.53,.69,.99),Kr=js(Gs),Us=Hs(Kr),Ws=e=>(e*=2)<1?.5*Kr(e):.5*(2-Math.pow(2,-10*(e-1))),qr=e=>1-Math.sin(Math.acos(e)),Ks=js(qr),qs=Hs(qr),$f=tn(.42,0,1,1),Pf=tn(0,0,.58,1),Ys=tn(.42,0,.58,1),Ef=e=>Array.isArray(e)&&typeof e[0]!="number",Xs=e=>Array.isArray(e)&&typeof e[0]=="number",Zs={linear:Pe,easeIn:$f,easeInOut:Ys,easeOut:Pf,circIn:qr,circInOut:qs,circOut:Ks,backIn:Kr,backInOut:Us,backOut:Gs,anticipate:Ws},Mf=e=>typeof e=="string",Js=e=>{if(Xs(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return tn(t,n,r,o)}else if(Mf(e))return Ue(Zs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Zs[e];return e},Hn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Af(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,f=!1)=>{const m=f&&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 Vf=40;function Qs(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Hn.reduce((b,$)=>(b[$]=Af(i),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:h,postRender:m}=s,y=()=>{const b=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Vf),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Hn.reduce((b,$)=>{const S=s[$];return b[$]=(P,E=!1,M=!1)=>(n||w(),S.schedule(P,E,M)),b},{}),cancel:b=>{for(let $=0;$<Hn.length;$++)s[Hn[$]].cancel(b)},state:o,steps:s}}const{schedule:te,cancel:Je,state:de,steps:Yr}=Qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let jn;function Df(){jn=void 0}const be={now:()=>(jn===void 0&&be.set(de.isProcessing||We.useManualTiming?de.timestamp:performance.now()),jn),set:e=>{jn=e,queueMicrotask(Df)}},ea=e=>t=>typeof t=="string"&&t.startsWith(e),ta=ea("--"),Ff=ea("var(--"),Xr=e=>Ff(e)?If.test(e.split("/*")[0].trim()):!1,If=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ft={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nn={...Ft,transform:e=>Ge(0,1,e)},Gn={...Ft,default:1},rn=e=>Math.round(e*1e5)/1e5,Zr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rf(e){return e==null}const Lf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jr=(e,t)=>n=>!!(typeof n=="string"&&Lf.test(n)&&n.startsWith(e)||t&&!Rf(n)&&Object.prototype.hasOwnProperty.call(n,t)),na=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Zr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},_f=e=>Ge(0,255,e),Qr={...Ft,transform:e=>Math.round(_f(e))},pt={test:Jr("rgb","red"),parse:na("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qr.transform(e)+", "+Qr.transform(t)+", "+Qr.transform(n)+", "+rn(nn.transform(r))+")"};function Nf(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 eo={test:Jr("#"),parse:Nf,transform:pt.transform},on=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=on("deg"),Be=on("%"),A=on("px"),Of=on("vh"),Bf=on("vw"),ra={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},It={test:Jr("hsl","hue"),parse:na("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(rn(t))+", "+Be.transform(rn(n))+", "+rn(nn.transform(r))+")"},ie={test:e=>pt.test(e)||eo.test(e)||It.test(e),parse:e=>pt.test(e)?pt.parse(e):It.test(e)?It.parse(e):eo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pt.transform(e):It.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},zf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Hf(e){return isNaN(e)&&typeof e=="string"&&(e.match(Zr)?.length||0)+(e.match(zf)?.length||0)>0}const oa="number",ia="color",jf="var",Gf="var(",sa="${}",Uf=/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 sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Uf,l=>(ie.test(l)?(r.color.push(i),o.push(ia),n.push(ie.parse(l))):l.startsWith(Gf)?(r.var.push(i),o.push(jf),n.push(l)):(r.number.push(i),o.push(oa),n.push(parseFloat(l))),++i,sa)).split(sa);return{values:n,split:a,indexes:r,types:o}}function aa(e){return sn(e).values}function la(e){const{split:t,types:n}=sn(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===oa?i+=rn(o[s]):a===ia?i+=ie.transform(o[s]):i+=o[s]}return i}}const Wf=e=>typeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function Kf(e){const t=aa(e);return la(e)(t.map(Wf))}const et={test:Hf,parse:aa,createTransformer:la,getAnimatableNone:Kf};function to(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 qf({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=to(l,a,e+1/3),i=to(l,a,e),s=to(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Un(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,no=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Yf=[eo,pt,It],Xf=e=>Yf.find(t=>t.test(e));function ca(e){const t=Xf(e);if(Dt(!!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===It&&(n=qf(n)),n}const ua=(e,t)=>{const n=ca(e),r=ca(t);if(!n||!r)return Un(e,t);const o={...n};return i=>(o.red=no(n.red,r.red,i),o.green=no(n.green,r.green,i),o.blue=no(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),pt.transform(o))},ro=new Set(["none","hidden"]);function Zf(e,t){return ro.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jf(e,t){return n=>ne(e,t,n)}function oo(e){return typeof e=="number"?Jf:typeof e=="string"?Xr(e)?Un:ie.test(e)?ua:th:Array.isArray(e)?da:typeof e=="object"?ie.test(e)?ua:Qf:Un}function da(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>oo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Qf(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=oo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function eh(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 th=(e,t)=>{const n=et.createTransformer(t),r=sn(e),o=sn(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?ro.has(e)&&!o.values.length||ro.has(t)&&!r.values.length?Zf(e,t):Qt(da(eh(r,o),o.values),n):(Dt(!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"),Un(e,t))};function fa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):oo(e)(e,t)}const nh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Je(t),now:()=>de.isProcessing?de.timestamp:be.now()}},ha=(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)})`},Wn=2e4;function io(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wn;)t+=n,r=e.next(t);return t>=Wn?1/0:t}function rh(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(io(r),Wn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const oh=5;function pa(e,t,n){const r=Math.max(t-oh,0);return Os(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},so=.001;function ih({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Dt(e<=De(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ge(re.minDamping,re.maxDamping,s),e=Ge(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const d=c*s,u=d*e,f=d-n,h=ao(c,s),m=Math.exp(-u);return so-f/h*m},i=c=>{const u=c*s*e,f=u*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=ao(Math.pow(c,2),s);return(-o(c)+so>0?-1:1)*((f-h)*m)/y}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-so+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=ah(o,i,a);if(e=De(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 sh=12;function ah(e,t,n){let r=n;for(let o=1;o<sh;o++)r=r-e(r)/t(r);return r}function ao(e,t){return e*Math.sqrt(1-t*t)}const lh=["duration","bounce"],ch=["stiffness","damping","mass"];function ma(e,t){return t.some(n=>e[n]!==void 0)}function uh(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ma(e,ch)&&ma(e,lh))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=ih(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Kn(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:f,isResolvedFromDuration:h}=uh({...n,velocity:-Ee(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*d)),w=s-i,v=Ee(Math.sqrt(l/d)),x=Math.abs(w)<5;r||(r=x?re.restSpeed.granular:re.restSpeed.default),o||(o=x?re.restDelta.granular:re.restDelta.default);let b;if(y<1){const S=ao(v,y);b=P=>{const E=Math.exp(-y*v*P);return s-E*((m+y*v*w)/S*Math.sin(S*P)+w*Math.cos(S*P))}}else if(y===1)b=S=>s-Math.exp(-v*S)*(w+(m+v*w)*S);else{const S=v*Math.sqrt(y*y-1);b=P=>{const E=Math.exp(-y*v*P),M=Math.min(S*P,300);return s-E*((m+y*v*w)*Math.sinh(M)+S*w*Math.cosh(M))/S}}const $={calculatedDuration:h&&u||null,next:S=>{const P=b(S);if(h)a.done=S>=u;else{let E=S===0?m:0;y<1&&(E=S===0?De(m):pa(b,S,P));const M=Math.abs(E)<=r,L=Math.abs(s-P)<=o;a.done=M&&L}return a.value=a.done?s:P,a},toString:()=>{const S=Math.min(io($),Wn),P=ha(E=>$.next(S*E).value,S,30);return S+"ms "+P},toTransition:()=>{}};return $}Kn.applyToOptions=e=>{const t=rh(e,100,Kn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function lo({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],f={done:!1,value:u},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let y=n*t;const w=u+y,v=s===void 0?w:s(w);v!==w&&(y=v-u);const x=M=>-y*Math.exp(-M/r),b=M=>v+x(M),$=M=>{const L=x(M),_=b(M);f.done=Math.abs(L)<=c,f.value=f.done?v:_};let S,P;const E=M=>{h(f.value)&&(S=M,P=Kn({keyframes:[f.value,m(f.value)],velocity:pa(b,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:M=>{let L=!1;return!P&&S===void 0&&(L=!0,$(M),E(M)),S!==void 0&&M>=S?P.next(M-S):(!L&&$(M),f)}}}function dh(e,t,n){const r=[],o=n||We.mix||fa,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]||Pe:t;a=Qt(l,a)}r.push(a)}return r}function fh(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=dh(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 f=en(e[u],e[u+1],d);return a[u](f)};return n?d=>c(Ge(e[0],e[i-1],d)):c}function hh(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=en(0,t,r);e.push(ne(n,1,o))}}function ph(e){const t=[0];return hh(t,e.length-1),t}function mh(e,t){return e.map(n=>n*t)}function gh(e,t){return e.map(()=>t||Ys).splice(0,e.length-1)}function Rt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ef(r)?r.map(Js):Js(r),i={done:!1,value:t[0]},s=mh(n&&n.length===t.length?n:ph(t),e),a=fh(s,t,{ease:Array.isArray(o)?o:gh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const yh=e=>e!==null;function co(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(yh),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const vh={decay:lo,inertia:lo,tween:Rt,keyframes:Rt,spring:Kn};function ga(e){typeof e.type=="string"&&(e.type=vh[e.type])}class uo{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 wh=e=>e/100;class fo extends uo{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!==be.now()&&this.tick(be.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;ga(t);const{type:n=Rt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Rt;process.env.NODE_ENV!=="production"&&l!==Rt&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Qt(wh,fa(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=io(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:f,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,$=r;if(u){const M=Math.min(this.currentTime,o)/a;let L=Math.floor(M),_=M%1;!_&&M>=1&&(_=1),_===1&&L--,L=Math.min(L,u+1),L%2&&(f==="reverse"?(_=1-_,h&&(_-=h/a)):f==="mirror"&&($=s)),b=Ge(0,1,_)*a}const S=x?{done:!1,value:d[0]}:$.next(b);i&&(S.value=i(S.value));let{done:P}=S;!x&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&m!==lo&&(S.value=co(d,this.options,w,this.speed)),y&&y(S.value),E&&this.finish(),S}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=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(be.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=nh,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(be.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 bh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mt=e=>e*180/Math.PI,ho=e=>{const t=mt(Math.atan2(e[1],e[0]));return po(t)},xh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ho,rotateZ:ho,skewX:e=>mt(Math.atan(e[1])),skewY:e=>mt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},po=e=>(e=e%360,e<0&&(e+=360),e),ya=ho,va=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),wa=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:va,scaleY:wa,scale:e=>(va(e)+wa(e))/2,rotateX:e=>po(mt(Math.atan2(e[6],e[5]))),rotateY:e=>po(mt(Math.atan2(-e[2],e[0]))),rotateZ:ya,rotate:ya,skewX:e=>mt(Math.atan(e[4])),skewY:e=>mt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mo(e){return e.includes("scale")?1:0}function go(e,t){if(!e||e==="none")return mo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Sh,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xh,o=a}if(!o)return mo(t);const i=r[t],s=o[1].split(",").map(Th);return typeof i=="function"?i(s):s[i]}const Ch=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return go(n,t)};function Th(e){return parseFloat(e.trim())}const Lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Lt),ba=e=>e===Ft||e===A,kh=new Set(["x","y","z"]),$h=Lt.filter(e=>!kh.has(e));function Ph(e){const t=[];return $h.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gt={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})=>go(t,"x"),y:(e,{transform:t})=>go(t,"y")};gt.translateX=gt.x,gt.translateY=gt.y;const yt=new Set;let yo=!1,vo=!1,wo=!1;function xa(){if(vo){const e=Array.from(yt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Ph(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)})}vo=!1,yo=!1,yt.forEach(e=>e.complete(wo)),yt.clear()}function Sa(){yt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vo=!0)})}function Eh(){wo=!0,Sa(),xa(),wo=!1}class bo{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?(yt.add(this),yo||(yo=!0,te.read(Sa),te.resolveKeyframes(xa))):(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])}bh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),yt.delete(this)}cancel(){this.state==="scheduled"&&(yt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Mh=e=>e.startsWith("--");function Ah(e,t,n){Mh(t)?e.style.setProperty(t,n):e.style[t]=n}const Vh=Gr(()=>window.ScrollTimeline!==void 0),Dh={};function Fh(e,t){const n=Gr(e);return()=>Dh[t]??n()}const Ca=Fh(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),an=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ta={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:an([0,.65,.55,1]),circOut:an([.55,0,1,.45]),backIn:an([.31,.01,.66,-.59]),backOut:an([.33,1.53,.69,.99])};function ka(e,t){if(e)return typeof e=="function"?Ca()?ha(e,t):"ease-out":Xs(e)?an(e):Array.isArray(e)?e.map(n=>ka(n,t)||Ta.easeOut):Ta[e]}function Ih(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=ka(a,o);Array.isArray(u)&&(d.easing=u);const f={delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function $a(e){return typeof e=="function"&&"applyToOptions"in e}function Rh({type:e,...t}){return $a(e)&&Ca()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Lh extends uo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Rh(t);this.animation=Ih(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=co(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Ah(n,r,d),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 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.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&&Vh()?(this.animation.timeline=t,Pe):n(this)}}const Pa={anticipate:Ws,backInOut:Us,circInOut:qs};function _h(e){return e in Pa}function Nh(e){typeof e.ease=="string"&&_h(e.ease)&&(e.ease=Pa[e.ease])}const Ea=10;class Oh extends Lh{constructor(t){Nh(t),ga(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new fo({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Ea).value,a.sample(l).value,Ea),a.stop()}}const Ma=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(et.test(e)||e==="0")&&!e.startsWith("url("));function Bh(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 zh(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=Ma(o,t),a=Ma(i,t);return Dt(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:Bh(e)||(n==="spring"||$a(n))&&r}function xo(e){e.duration=0,e.type="keyframes"}const Hh=new Set(["opacity","clipPath","filter","transform"]),jh=Gr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Gh(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 jh()&&n&&Hh.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Uh=40;class Wh extends uo{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=be.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},h=d?.KeyframeResolver||bo;this.keyframeResolver=new h(a,(m,y,w)=>this.onKeyframesResolved(m,y,f,!w),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=be.now(),zh(t,i,s,a)||((We.instantAnimations||!l)&&d?.(co(t,r,n)),t[0]=t[t.length-1],xo(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Uh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&Gh(f)?new Oh({...f,element:f.motionValue.owner.current}):new fo(f);h.finished.then(()=>this.notifyFinished()).catch(Pe),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Eh()),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 Kh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qh(e){const t=Kh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Yh=4;function Aa(e,t,n=1){Ue(n<=Yh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=qh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ls(s)?parseFloat(s):s}return Xr(o)?Aa(o,t,n+1):o}function So(e,t){return e?.[t]??e?.default??e}const Va=new Set(["width","height","top","left","right","bottom",...Lt]),Xh={test:e=>e==="auto",parse:e=>e},Da=e=>t=>t.test(e),Fa=[Ft,A,Be,Qe,Bf,Of,Xh],Ia=e=>Fa.find(Da(e));function Zh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ns(e):!0}const Jh=new Set(["brightness","contrast","saturate","opacity"]);function Qh(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zr)||[];if(!r)return e;const o=n.replace(r,"");let i=Jh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ep=/\b([a-z-]*)\(.*?\)/gu,Co={...et,getAnimatableNone:e=>{const t=e.match(ep);return t?t.map(Qh).join(" "):e}},Ra={...Ft,transform:Math.round},To={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:Qe,skewX:Qe,skewY:Qe,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:nn,originX:ra,originY:ra,originZ:A},zIndex:Ra,fillOpacity:nn,strokeOpacity:nn,numOctaves:Ra},tp={...To,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Co,WebkitFilter:Co},La=e=>tp[e];function _a(e,t){let n=La(e);return n!==Co&&(n=et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const np=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"&&!np.has(i)&&sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=_a(n,o)}class op extends bo{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Xr(c))){const d=Aa(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Va.has(r)||t.length!==2)return;const[o,i]=t,s=Ia(o),a=Ia(i);if(s!==a)if(ba(s)&&ba(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else gt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Zh(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=gt[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]=gt[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 ip(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 Na=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Oa(e){return _s(e)&&"offsetHeight"in e}const Ba=30,sp=e=>!isNaN(parseFloat(e));class ap{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=be.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=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sp(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Wr(!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 Ur);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.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=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ba)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ba);return Os(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 Nt(e,t){return new ap(e,t)}const{schedule:ko}=Qs(queueMicrotask,!1),Fe={x:!1,y:!1};function za(){return Fe.x||Fe.y}function lp(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 Ha(e,t){const n=ip(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function ja(e){return!(e.pointerType==="touch"||za())}function cp(e,t,n={}){const[r,o,i]=Ha(e,n),s=a=>{if(!ja(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{ja(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Ga=(e,t)=>t?e===t?!0:Ga(e,t.parentElement):!1,$o=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,up=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function dp(e){return up.has(e.tagName)||e.tabIndex!==-1}const qn=new WeakSet;function Ua(e){return t=>{t.key==="Enter"&&e(t)}}function Po(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ua(()=>{if(qn.has(n))return;Po(n,"down");const o=Ua(()=>{Po(n,"up")}),i=()=>Po(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 Wa(e){return $o(e)&&!za()}function hp(e,t,n={}){const[r,o,i]=Ha(e,n),s=a=>{const l=a.currentTarget;if(!Wa(a))return;qn.add(l);const c=t(l,a),d=(h,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),qn.has(l)&&qn.delete(l),Wa(h)&&typeof c=="function"&&c(h,{success:m})},u=h=>{d(h,l===window||l===document||n.useGlobalTarget||Ga(l,h.target))},f=h=>{d(h,!1)};window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Oa(a)&&(a.addEventListener("focus",c=>fp(c,o)),!dp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ka(e){return _s(e)&&"ownerSVGElement"in e}function pp(e){return Ka(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),mp=[...Fa,ie,et],gp=e=>mp.find(Da(e)),Eo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function qa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yp(...e){return t=>{let n=!1;const r=e.map(o=>{const i=qa(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():qa(e[o],null)}}}}function vp(...e){return lt.useCallback(yp(...e),e)}class wp extends lt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=Oa(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 bp({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(Eo),l=vp(i,e?.ref);return p.useInsertionEffect(()=>{const{width:c,height:d,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!d)return;const m=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const w=r??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
226
|
+
`,Ls={tn:"1rem",sm:"1.5rem",md:"2rem",lg:"3rem"},K=({component:e,size:t="1.5rem",color:n="currentColor",className:r,iconProps:o={}})=>{const i=typeof t=="string"&&t in Ls?Ls[t]:t;return g.jsx(Sf,{$color:n,className:r,children:typeof e=="function"?g.jsx(e,{size:i,...o}):e})},Nr=p.createContext({});function Or(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Br=typeof window<"u",_s=Br?p.useLayoutEffect:p.useEffect,zn=p.createContext(null);function zr(e,t){e.indexOf(t)===-1&&e.push(t)}function Hr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ge=(e,t,n)=>n>t?t:n<e?e:n;function jr(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Dt=()=>{},Ue=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(Dt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jr(t,n))},Ue=(e,t,n)=>{if(!e)throw new Error(jr(t,n))});const We={},Ns=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Os(e){return typeof e=="object"&&e!==null}const Bs=e=>/^0[^.\s]+$/u.test(e);function Gr(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pe=e=>e,Cf=(e,t)=>n=>t(e(n)),Qt=(...e)=>e.reduce(Cf),en=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Ur{constructor(){this.subscriptions=[]}add(t){return zr(this.subscriptions,t),()=>Hr(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const De=e=>e*1e3,Ee=e=>e/1e3;function zs(e,t){return t?e*(1e3/t):0}const Hs=new Set;function Wr(e,t,n){e||Hs.has(t)||(console.warn(jr(t,n)),Hs.add(t))}const js=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Tf=1e-7,$f=12;function kf(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=js(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Tf&&++a<$f);return s}function tn(e,t,n,r){if(e===t&&n===r)return Pe;const o=i=>kf(i,0,1,e,n);return i=>i===0||i===1?i:js(o(i),t,r)}const Gs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Us=e=>t=>1-e(1-t),Ws=tn(.33,1.53,.69,.99),Kr=Us(Ws),Ks=Gs(Kr),qs=e=>(e*=2)<1?.5*Kr(e):.5*(2-Math.pow(2,-10*(e-1))),qr=e=>1-Math.sin(Math.acos(e)),Ys=Us(qr),Xs=Gs(qr),Pf=tn(.42,0,1,1),Ef=tn(0,0,.58,1),Zs=tn(.42,0,.58,1),Mf=e=>Array.isArray(e)&&typeof e[0]!="number",Js=e=>Array.isArray(e)&&typeof e[0]=="number",Qs={linear:Pe,easeIn:Pf,easeInOut:Zs,easeOut:Ef,circIn:qr,circInOut:Xs,circOut:Ys,backIn:Kr,backInOut:Ks,backOut:Ws,anticipate:qs},Af=e=>typeof e=="string",ea=e=>{if(Js(e)){Ue(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return tn(t,n,r,o)}else if(Af(e))return Ue(Qs[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Qs[e];return e},Hn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Vf(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,f=!1)=>{const m=f&&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 Df=40;function ta(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Hn.reduce((b,k)=>(b[k]=Vf(i),b),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:d,update:u,preRender:f,render:h,postRender:m}=s,y=()=>{const b=We.useManualTiming?o.timestamp:performance.now();n=!1,We.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Df),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),u.process(o),f.process(o),h.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},w=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Hn.reduce((b,k)=>{const x=s[k];return b[k]=(P,E=!1,M=!1)=>(n||w(),x.schedule(P,E,M)),b},{}),cancel:b=>{for(let k=0;k<Hn.length;k++)s[Hn[k]].cancel(b)},state:o,steps:s}}const{schedule:te,cancel:Je,state:de,steps:Yr}=ta(typeof requestAnimationFrame<"u"?requestAnimationFrame:Pe,!0);let jn;function Ff(){jn=void 0}const be={now:()=>(jn===void 0&&be.set(de.isProcessing||We.useManualTiming?de.timestamp:performance.now()),jn),set:e=>{jn=e,queueMicrotask(Ff)}},na=e=>t=>typeof t=="string"&&t.startsWith(e),ra=na("--"),If=na("var(--"),Xr=e=>If(e)?Rf.test(e.split("/*")[0].trim()):!1,Rf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ft={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nn={...Ft,transform:e=>Ge(0,1,e)},Gn={...Ft,default:1},rn=e=>Math.round(e*1e5)/1e5,Zr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Lf(e){return e==null}const _f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jr=(e,t)=>n=>!!(typeof n=="string"&&_f.test(n)&&n.startsWith(e)||t&&!Lf(n)&&Object.prototype.hasOwnProperty.call(n,t)),oa=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Zr);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Nf=e=>Ge(0,255,e),Qr={...Ft,transform:e=>Math.round(Nf(e))},pt={test:Jr("rgb","red"),parse:oa("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qr.transform(e)+", "+Qr.transform(t)+", "+Qr.transform(n)+", "+rn(nn.transform(r))+")"};function Of(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 eo={test:Jr("#"),parse:Of,transform:pt.transform},on=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qe=on("deg"),Be=on("%"),A=on("px"),Bf=on("vh"),zf=on("vw"),ia={...Be,parse:e=>Be.parse(e)/100,transform:e=>Be.transform(e*100)},It={test:Jr("hsl","hue"),parse:oa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Be.transform(rn(t))+", "+Be.transform(rn(n))+", "+rn(nn.transform(r))+")"},ie={test:e=>pt.test(e)||eo.test(e)||It.test(e),parse:e=>pt.test(e)?pt.parse(e):It.test(e)?It.parse(e):eo.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pt.transform(e):It.transform(e),getAnimatableNone:e=>{const t=ie.parse(e);return t.alpha=0,ie.transform(t)}},Hf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function jf(e){return isNaN(e)&&typeof e=="string"&&(e.match(Zr)?.length||0)+(e.match(Hf)?.length||0)>0}const sa="number",aa="color",Gf="var",Uf="var(",la="${}",Wf=/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 sn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Wf,l=>(ie.test(l)?(r.color.push(i),o.push(aa),n.push(ie.parse(l))):l.startsWith(Uf)?(r.var.push(i),o.push(Gf),n.push(l)):(r.number.push(i),o.push(sa),n.push(parseFloat(l))),++i,la)).split(la);return{values:n,split:a,indexes:r,types:o}}function ca(e){return sn(e).values}function ua(e){const{split:t,types:n}=sn(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===sa?i+=rn(o[s]):a===aa?i+=ie.transform(o[s]):i+=o[s]}return i}}const Kf=e=>typeof e=="number"?0:ie.test(e)?ie.getAnimatableNone(e):e;function qf(e){const t=ca(e);return ua(e)(t.map(Kf))}const et={test:jf,parse:ca,createTransformer:ua,getAnimatableNone:qf};function to(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 Yf({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=to(l,a,e+1/3),i=to(l,a,e),s=to(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Un(e,t){return n=>n>0?t:e}const ne=(e,t,n)=>e+(t-e)*n,no=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Xf=[eo,pt,It],Zf=e=>Xf.find(t=>t.test(e));function da(e){const t=Zf(e);if(Dt(!!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===It&&(n=Yf(n)),n}const fa=(e,t)=>{const n=da(e),r=da(t);if(!n||!r)return Un(e,t);const o={...n};return i=>(o.red=no(n.red,r.red,i),o.green=no(n.green,r.green,i),o.blue=no(n.blue,r.blue,i),o.alpha=ne(n.alpha,r.alpha,i),pt.transform(o))},ro=new Set(["none","hidden"]);function Jf(e,t){return ro.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qf(e,t){return n=>ne(e,t,n)}function oo(e){return typeof e=="number"?Qf:typeof e=="string"?Xr(e)?Un:ie.test(e)?fa:nh:Array.isArray(e)?ha:typeof e=="object"?ie.test(e)?fa:eh:Un}function ha(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>oo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function eh(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=oo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function th(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 nh=(e,t)=>{const n=et.createTransformer(t),r=sn(e),o=sn(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?ro.has(e)&&!o.values.length||ro.has(t)&&!r.values.length?Jf(e,t):Qt(ha(th(r,o),o.values),n):(Dt(!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"),Un(e,t))};function pa(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ne(e,t,n):oo(e)(e,t)}const rh=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>te.update(t,n),stop:()=>Je(t),now:()=>de.isProcessing?de.timestamp:be.now()}},ma=(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)})`},Wn=2e4;function io(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wn;)t+=n,r=e.next(t);return t>=Wn?1/0:t}function oh(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(io(r),Wn);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ee(o)}}const ih=5;function ga(e,t,n){const r=Math.max(t-ih,0);return zs(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},so=.001;function sh({duration:e=re.duration,bounce:t=re.bounce,velocity:n=re.velocity,mass:r=re.mass}){let o,i;Dt(e<=De(re.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Ge(re.minDamping,re.maxDamping,s),e=Ge(re.minDuration,re.maxDuration,Ee(e)),s<1?(o=c=>{const d=c*s,u=d*e,f=d-n,h=ao(c,s),m=Math.exp(-u);return so-f/h*m},i=c=>{const u=c*s*e,f=u*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-u),y=ao(Math.pow(c,2),s);return(-o(c)+so>0?-1:1)*((f-h)*m)/y}):(o=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-so+d*u},i=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=lh(o,i,a);if(e=De(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 ah=12;function lh(e,t,n){let r=n;for(let o=1;o<ah;o++)r=r-e(r)/t(r);return r}function ao(e,t){return e*Math.sqrt(1-t*t)}const ch=["duration","bounce"],uh=["stiffness","damping","mass"];function ya(e,t){return t.some(n=>e[n]!==void 0)}function dh(e){let t={velocity:re.velocity,stiffness:re.stiffness,damping:re.damping,mass:re.mass,isResolvedFromDuration:!1,...e};if(!ya(e,uh)&&ya(e,ch))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ge(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:re.mass,stiffness:o,damping:i}}else{const n=sh(e);t={...t,...n,mass:re.mass},t.isResolvedFromDuration=!0}return t}function Kn(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:f,isResolvedFromDuration:h}=dh({...n,velocity:-Ee(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*d)),w=s-i,v=Ee(Math.sqrt(l/d)),C=Math.abs(w)<5;r||(r=C?re.restSpeed.granular:re.restSpeed.default),o||(o=C?re.restDelta.granular:re.restDelta.default);let b;if(y<1){const x=ao(v,y);b=P=>{const E=Math.exp(-y*v*P);return s-E*((m+y*v*w)/x*Math.sin(x*P)+w*Math.cos(x*P))}}else if(y===1)b=x=>s-Math.exp(-v*x)*(w+(m+v*w)*x);else{const x=v*Math.sqrt(y*y-1);b=P=>{const E=Math.exp(-y*v*P),M=Math.min(x*P,300);return s-E*((m+y*v*w)*Math.sinh(M)+x*w*Math.cosh(M))/x}}const k={calculatedDuration:h&&u||null,next:x=>{const P=b(x);if(h)a.done=x>=u;else{let E=x===0?m:0;y<1&&(E=x===0?De(m):ga(b,x,P));const M=Math.abs(E)<=r,L=Math.abs(s-P)<=o;a.done=M&&L}return a.value=a.done?s:P,a},toString:()=>{const x=Math.min(io(k),Wn),P=ma(E=>k.next(x*E).value,x,30);return x+"ms "+P},toTransition:()=>{}};return k}Kn.applyToOptions=e=>{const t=oh(e,100,Kn);return e.ease=t.ease,e.duration=De(t.duration),e.type="keyframes",e};function lo({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],f={done:!1,value:u},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,m=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let y=n*t;const w=u+y,v=s===void 0?w:s(w);v!==w&&(y=v-u);const C=M=>-y*Math.exp(-M/r),b=M=>v+C(M),k=M=>{const L=C(M),_=b(M);f.done=Math.abs(L)<=c,f.value=f.done?v:_};let x,P;const E=M=>{h(f.value)&&(x=M,P=Kn({keyframes:[f.value,m(f.value)],velocity:ga(b,M,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:M=>{let L=!1;return!P&&x===void 0&&(L=!0,k(M),E(M)),x!==void 0&&M>=x?P.next(M-x):(!L&&k(M),f)}}}function fh(e,t,n){const r=[],o=n||We.mix||pa,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]||Pe:t;a=Qt(l,a)}r.push(a)}return r}function hh(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=fh(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 f=en(e[u],e[u+1],d);return a[u](f)};return n?d=>c(Ge(e[0],e[i-1],d)):c}function ph(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=en(0,t,r);e.push(ne(n,1,o))}}function mh(e){const t=[0];return ph(t,e.length-1),t}function gh(e,t){return e.map(n=>n*t)}function yh(e,t){return e.map(()=>t||Zs).splice(0,e.length-1)}function Rt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Mf(r)?r.map(ea):ea(r),i={done:!1,value:t[0]},s=gh(n&&n.length===t.length?n:mh(t),e),a=hh(s,t,{ease:Array.isArray(o)?o:yh(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const vh=e=>e!==null;function co(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 wh={decay:lo,inertia:lo,tween:Rt,keyframes:Rt,spring:Kn};function va(e){typeof e.type=="string"&&(e.type=wh[e.type])}class uo{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 bh=e=>e/100;class fo extends uo{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!==be.now()&&this.tick(be.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;va(t);const{type:n=Rt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=n||Rt;process.env.NODE_ENV!=="production"&&l!==Rt&&Ue(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Rt&&typeof a[0]!="number"&&(this.mixKeyframes=Qt(bh,pa(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=io(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:f,repeatDelay:h,type:m,onUpdate:y,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,k=r;if(u){const M=Math.min(this.currentTime,o)/a;let L=Math.floor(M),_=M%1;!_&&M>=1&&(_=1),_===1&&L--,L=Math.min(L,u+1),L%2&&(f==="reverse"?(_=1-_,h&&(_-=h/a)):f==="mirror"&&(k=s)),b=Ge(0,1,_)*a}const x=C?{done:!1,value:d[0]}:k.next(b);i&&(x.value=i(x.value));let{done:P}=x;!C&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return E&&m!==lo&&(x.value=co(d,this.options,w,this.speed)),y&&y(x.value),E&&this.finish(),x}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=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(be.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ee(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=rh,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(be.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 xh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const mt=e=>e*180/Math.PI,ho=e=>{const t=mt(Math.atan2(e[1],e[0]));return po(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:ho,rotateZ:ho,skewX:e=>mt(Math.atan(e[1])),skewY:e=>mt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},po=e=>(e=e%360,e<0&&(e+=360),e),wa=ho,ba=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xa=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ch={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ba,scaleY:xa,scale:e=>(ba(e)+xa(e))/2,rotateX:e=>po(mt(Math.atan2(e[6],e[5]))),rotateY:e=>po(mt(Math.atan2(-e[2],e[0]))),rotateZ:wa,rotate:wa,skewX:e=>mt(Math.atan(e[4])),skewY:e=>mt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mo(e){return e.includes("scale")?1:0}function go(e,t){if(!e||e==="none")return mo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Ch,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Sh,o=a}if(!o)return mo(t);const i=r[t],s=o[1].split(",").map($h);return typeof i=="function"?i(s):s[i]}const Th=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return go(n,t)};function $h(e){return parseFloat(e.trim())}const Lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_t=new Set(Lt),Sa=e=>e===Ft||e===A,kh=new Set(["x","y","z"]),Ph=Lt.filter(e=>!kh.has(e));function Eh(e){const t=[];return Ph.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gt={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})=>go(t,"x"),y:(e,{transform:t})=>go(t,"y")};gt.translateX=gt.x,gt.translateY=gt.y;const yt=new Set;let yo=!1,vo=!1,wo=!1;function Ca(){if(vo){const e=Array.from(yt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Eh(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)})}vo=!1,yo=!1,yt.forEach(e=>e.complete(wo)),yt.clear()}function Ta(){yt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vo=!0)})}function Mh(){wo=!0,Ta(),Ca(),wo=!1}class bo{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?(yt.add(this),yo||(yo=!0,te.read(Ta),te.resolveKeyframes(Ca))):(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])}xh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),yt.delete(this)}cancel(){this.state==="scheduled"&&(yt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ah=e=>e.startsWith("--");function Vh(e,t,n){Ah(t)?e.style.setProperty(t,n):e.style[t]=n}const Dh=Gr(()=>window.ScrollTimeline!==void 0),Fh={};function Ih(e,t){const n=Gr(e);return()=>Fh[t]??n()}const $a=Ih(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),an=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ka={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:an([0,.65,.55,1]),circOut:an([.55,0,1,.45]),backIn:an([.31,.01,.66,-.59]),backOut:an([.33,1.53,.69,.99])};function Pa(e,t){if(e)return typeof e=="function"?$a()?ma(e,t):"ease-out":Js(e)?an(e):Array.isArray(e)?e.map(n=>Pa(n,t)||ka.easeOut):ka[e]}function Rh(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=Pa(a,o);Array.isArray(u)&&(d.easing=u);const f={delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(d,f)}function Ea(e){return typeof e=="function"&&"applyToOptions"in e}function Lh({type:e,...t}){return Ea(e)&&$a()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _h extends uo{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,Ue(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=Lh(t);this.animation=Rh(n,r,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=co(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Vh(n,r,d),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 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.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&&Dh()?(this.animation.timeline=t,Pe):n(this)}}const Ma={anticipate:qs,backInOut:Ks,circInOut:Xs};function Nh(e){return e in Ma}function Oh(e){typeof e.ease=="string"&&Nh(e.ease)&&(e.ease=Ma[e.ease])}const Aa=10;class Bh extends _h{constructor(t){Oh(t),va(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new fo({...s,autoplay:!1}),l=De(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-Aa).value,a.sample(l).value,Aa),a.stop()}}const Va=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(et.test(e)||e==="0")&&!e.startsWith("url("));function zh(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 Hh(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=Va(o,t),a=Va(i,t);return Dt(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:zh(e)||(n==="spring"||Ea(n))&&r}function xo(e){e.duration=0,e.type="keyframes"}const jh=new Set(["opacity","clipPath","filter","transform"]),Gh=Gr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Uh(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 Gh()&&n&&jh.has(n)&&(n!=="transform"||!c)&&!l&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const Wh=40;class Kh extends uo{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=be.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:d,...u},h=d?.KeyframeResolver||bo;this.keyframeResolver=new h(a,(m,y,w)=>this.onKeyframesResolved(m,y,f,!w),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=be.now(),Hh(t,i,s,a)||((We.instantAnimations||!l)&&d?.(co(t,r,n)),t[0]=t[t.length-1],xo(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Wh?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!c&&Uh(f)?new Bh({...f,element:f.motionValue.owner.current}):new fo(f);h.finished.then(()=>this.notifyFinished()).catch(Pe),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}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(),Mh()),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 qh=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yh(e){const t=qh.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Xh=4;function Da(e,t,n=1){Ue(n<=Xh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Yh(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Ns(s)?parseFloat(s):s}return Xr(o)?Da(o,t,n+1):o}function So(e,t){return e?.[t]??e?.default??e}const Fa=new Set(["width","height","top","left","right","bottom",...Lt]),Zh={test:e=>e==="auto",parse:e=>e},Ia=e=>t=>t.test(e),Ra=[Ft,A,Be,Qe,zf,Bf,Zh],La=e=>Ra.find(Ia(e));function Jh(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Bs(e):!0}const Qh=new Set(["brightness","contrast","saturate","opacity"]);function ep(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Zr)||[];if(!r)return e;const o=n.replace(r,"");let i=Qh.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const tp=/\b([a-z-]*)\(.*?\)/gu,Co={...et,getAnimatableNone:e=>{const t=e.match(tp);return t?t.map(ep).join(" "):e}},_a={...Ft,transform:Math.round},To={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,radius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,backgroundPositionX:A,backgroundPositionY:A,...{rotate:Qe,rotateX:Qe,rotateY:Qe,rotateZ:Qe,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:Qe,skewX:Qe,skewY:Qe,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:nn,originX:ia,originY:ia,originZ:A},zIndex:_a,fillOpacity:nn,strokeOpacity:nn,numOctaves:_a},np={...To,color:ie,backgroundColor:ie,outlineColor:ie,fill:ie,stroke:ie,borderColor:ie,borderTopColor:ie,borderRightColor:ie,borderBottomColor:ie,borderLeftColor:ie,filter:Co,WebkitFilter:Co},Na=e=>np[e];function Oa(e,t){let n=Na(e);return n!==Co&&(n=et),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rp=new Set(["auto","none","0"]);function op(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!rp.has(i)&&sn(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Oa(n,o)}class ip extends bo{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Xr(c))){const d=Da(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Fa.has(r)||t.length!==2)return;const[o,i]=t,s=La(o),a=La(i);if(s!==a)if(Sa(s)&&Sa(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else gt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Jh(t[o]))&&r.push(o);r.length&&op(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=gt[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]=gt[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 sp(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 Ba=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function za(e){return Os(e)&&"offsetHeight"in e}const Ha=30,ap=e=>!isNaN(parseFloat(e));class lp{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=be.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=be.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ap(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Wr(!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 Ur);const r=this.events[t].add(n);return t==="change"?()=>{r(),te.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=be.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ha)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ha);return zs(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 Nt(e,t){return new lp(e,t)}const{schedule:$o}=ta(queueMicrotask,!1),Fe={x:!1,y:!1};function ja(){return Fe.x||Fe.y}function cp(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 Ga(e,t){const n=sp(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ua(e){return!(e.pointerType==="touch"||ja())}function up(e,t,n={}){const[r,o,i]=Ga(e,n),s=a=>{if(!Ua(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const d=u=>{Ua(u)&&(c(u),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Wa=(e,t)=>t?e===t?!0:Wa(e,t.parentElement):!1,ko=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,dp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function fp(e){return dp.has(e.tagName)||e.tabIndex!==-1}const qn=new WeakSet;function Ka(e){return t=>{t.key==="Enter"&&e(t)}}function Po(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const hp=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Ka(()=>{if(qn.has(n))return;Po(n,"down");const o=Ka(()=>{Po(n,"up")}),i=()=>Po(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 qa(e){return ko(e)&&!ja()}function pp(e,t,n={}){const[r,o,i]=Ga(e,n),s=a=>{const l=a.currentTarget;if(!qa(a))return;qn.add(l);const c=t(l,a),d=(h,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",f),qn.has(l)&&qn.delete(l),qa(h)&&typeof c=="function"&&c(h,{success:m})},u=h=>{d(h,l===window||l===document||n.useGlobalTarget||Wa(l,h.target))},f=h=>{d(h,!1)};window.addEventListener("pointerup",u,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),za(a)&&(a.addEventListener("focus",c=>hp(c,o)),!fp(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function Ya(e){return Os(e)&&"ownerSVGElement"in e}function mp(e){return Ya(e)&&e.tagName==="svg"}const pe=e=>!!(e&&e.getVelocity),gp=[...Ra,ie,et],yp=e=>gp.find(Ia(e)),Eo=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Xa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vp(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Xa(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():Xa(e[o],null)}}}}function wp(...e){return lt.useCallback(vp(...e),e)}class bp extends lt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=za(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 xp({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(Eo),l=wp(i,e?.ref);return p.useInsertionEffect(()=>{const{width:c,height:d,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!d)return;const m=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const w=r??document.head;return w.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
227
227
|
[data-motion-pop-id="${o}"] {
|
|
228
228
|
position: absolute !important;
|
|
229
229
|
width: ${c}px !important;
|
|
@@ -231,7 +231,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
231
231
|
${m}px !important;
|
|
232
232
|
top: ${u}px !important;
|
|
233
233
|
}
|
|
234
|
-
`),()=>{w.contains(y)&&w.removeChild(y)}},[t]),g.jsx(wp,{isPresent:t,childRef:i,sizeRef:s,children:lt.cloneElement(e,{ref:l})})}const xp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Or(Sp),d=p.useId();let u=!0,f=p.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&u&&(f={...f}),p.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),lt.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(bp,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(zn.Provider,{value:f,children:e})};function Sp(){return new Map}function Ya(e=!0){const t=p.useContext(zn);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 Yn=e=>e.key||"";function Xa(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const ln=({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]=Ya(s),u=p.useMemo(()=>Xa(e),[e]),f=s&&!c?[]:u.map(Yn),h=p.useRef(!0),m=p.useRef(u),y=Or(()=>new Map),[w,v]=p.useState(u),[x,b]=p.useState(u);Rs(()=>{h.current=!1,m.current=u;for(let P=0;P<x.length;P++){const E=Yn(x[P]);f.includes(E)?y.delete(E):y.get(E)!==!0&&y.set(E,!1)}},[x,f.length,f.join("-")]);const $=[];if(u!==w){let P=[...u];for(let E=0;E<x.length;E++){const M=x[E],L=Yn(M);f.includes(L)||(P.splice(E,0,M),$.push(M))}return i==="wait"&&$.length&&(P=$),b(Xa(P)),v(u),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:S}=p.useContext(Nr);return g.jsx(g.Fragment,{children:x.map(P=>{const E=Yn(P),M=s&&!c?!1:u===x||f.includes(E),L=()=>{if(y.has(E))y.set(E,!0);else return;let _=!0;y.forEach(G=>{G||(_=!1)}),_&&(S?.(),b(m.current),s&&d?.(),r&&r())};return g.jsx(xp,{isPresent:M,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:M?void 0:L,anchorX:a,children:P},E)})})},Za=p.createContext({strict:!1}),Ja={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"]},Ot={};for(const e in Ja)Ot[e]={isEnabled:t=>Ja[e].some(n=>!!t[n])};function Cp(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const Tp=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 Xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Tp.has(e)}let Qa=e=>!Xn(e);function kp(e){typeof e=="function"&&(Qa=t=>t.startsWith("on")?!Xn(t):e(t))}try{kp(require("@emotion/is-prop-valid").default)}catch{}function $p(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Qa(o)||n===!0&&Xn(o)||!t&&!Xn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Zn=p.createContext({});function Jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function cn(e){return typeof e=="string"||Array.isArray(e)}const Mo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ao=["initial",...Mo];function Qn(e){return Jn(e.animate)||Ao.some(t=>cn(e[t]))}function el(e){return!!(Qn(e)||e.variants)}function Pp(e,t){if(Qn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cn(n)?n:void 0,animate:cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ep(e){const{initial:t,animate:n}=Pp(e,p.useContext(Zn));return p.useMemo(()=>({initial:t,animate:n}),[tl(t),tl(n)])}function tl(e){return Array.isArray(e)?e.join(" "):e}function nl(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const un={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=nl(e,t.target.x),r=nl(e,t.target.y);return`${n}% ${r}%`}},Mp={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=et.parse(e);if(o.length>5)return r;const i=et.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)}},Vo={borderRadius:{...un,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:un,borderTopRightRadius:un,borderBottomLeftRadius:un,borderBottomRightRadius:un,boxShadow:Mp};function rl(e,{layout:t,layoutId:n}){return _t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vo[e]||e==="opacity")}const Ap={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vp=Lt.length;function Dp(e,t,n){let r="",o=!0;for(let i=0;i<Vp;i++){const s=Lt[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=Na(a,To[s]);if(!l){o=!1;const d=Ap[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Do(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(_t.has(l)){s=!0;continue}else if(ta(l)){o[l]=c;continue}else{const d=Na(c,To[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=Dp(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}`}}const Fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ol(e,t,n){for(const r in t)!pe(t[r])&&!rl(r,n)&&(e[r]=t[r])}function Fp({transformTemplate:e},t){return p.useMemo(()=>{const n=Fo();return Do(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ip(e,t){const n=e.style||{},r={};return ol(r,n,e),Object.assign(r,Fp(e,t)),r}function Rp(e,t){const n={},r=Ip(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 Lp={offset:"stroke-dashoffset",array:"stroke-dasharray"},_p={offset:"strokeDashoffset",array:"strokeDasharray"};function Np(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Lp:_p;e[i.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[i.array]=`${s} ${a}`}function il(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,d){if(Do(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),o!==void 0&&Np(u,o,i,s,!1)}const sl=()=>({...Fo(),attrs:{}}),al=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Op(e,t,n,r){const o=p.useMemo(()=>{const i=sl();return il(i,t,al(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ol(i,e.style,e),o.style={...i,...o.style}}return o}const Bp=["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 Io(e){return typeof e!="string"||e.includes("-")?!1:!!(Bp.indexOf(e)>-1||/[A-Z]/u.test(e))}function zp(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Io(e)?Op:Rp)(t,r,o,e),c=$p(t,typeof e=="string",i),d=e!==p.Fragment?{...c,...l,ref:n}:{},{children:u}=t,f=p.useMemo(()=>pe(u)?u.get():u,[u]);return p.createElement(e,{...d,children:f})}function ll(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ro(e,t,n,r){if(typeof t=="function"){const[o,i]=ll(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]=ll(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function er(e){return pe(e)?e.get():e}function Hp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:jp(n,r,o,e),renderState:t()}}function jp(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=er(i[f]);let{initial:s,animate:a}=e;const l=Qn(e),c=el(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"&&!Jn(u)){const f=Array.isArray(u)?u:[u];for(let h=0;h<f.length;h++){const m=Ro(e,f[h]);if(m){const{transitionEnd:y,transition:w,...v}=m;for(const x in v){let b=v[x];if(Array.isArray(b)){const $=d?b.length-1:0;b=b[$]}b!==null&&(o[x]=b)}for(const x in y)o[x]=y[x]}}}return o}const cl=e=>(t,n)=>{const r=p.useContext(Zn),o=p.useContext(zn),i=()=>Hp(e,t,r,o);return n?i():Or(i)};function Lo(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||rl(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const Gp=cl({scrapeMotionValuesFromProps:Lo,createRenderState:Fo});function ul(e,t,n){const r=Lo(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Lt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Up=cl({scrapeMotionValuesFromProps:ul,createRenderState:sl}),Wp=Symbol.for("motionComponentSymbol");function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Kp(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[t])}const _o=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),dl="data-"+_o("framerAppearId"),fl=p.createContext({});function qp(e,t,n,r,o,i){const{visualElement:s}=p.useContext(Zn),a=p.useContext(Za),l=p.useContext(zn),c=p.useContext(Eo).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,f=p.useContext(fl);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Yp(d.current,n,o,f);const h=p.useRef(!1);p.useInsertionEffect(()=>{u&&h.current&&u.update(n,l)});const m=n[dl],y=p.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return Rs(()=>{u&&(h.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 Yp(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:hl(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Bt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function hl(e){if(e)return e.options.allowProjection!==!1?e.projection:hl(e.parent)}function No(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Cp(r);const i=n?n==="svg":Io(e),s=i?Up:Gp;function a(c,d){let u;const f={...p.useContext(Eo),...c,layoutId:Xp(c)},{isStatic:h}=f,m=Ep(c),y=s(c,h);if(!h&&Br){Zp(f,r);const w=Jp(f);u=w.MeasureLayout,m.visualElement=qp(e,y,f,o,w.ProjectionNode,i)}return g.jsxs(Zn.Provider,{value:m,children:[u&&m.visualElement?g.jsx(u,{visualElement:m.visualElement,...f}):null,zp(e,c,Kp(y,m.visualElement,d),y,h,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=p.forwardRef(a);return l[Wp]=e,l}function Xp({layoutId:e}){const t=p.useContext(Nr).id;return t&&e!==void 0?t+"-"+e:e}function Zp(e,t){const n=p.useContext(Za).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?Dt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function Jp(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Qp(e,t){if(typeof Proxy>"u")return No;const n=new Map,r=(i,s)=>No(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Wr(!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,No(s,void 0,e,t)),n.get(s))})}function pl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function em({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tm(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 Oo(e){return e===void 0||e===1}function Bo({scale:e,scaleX:t,scaleY:n}){return!Oo(e)||!Oo(t)||!Oo(n)}function vt(e){return Bo(e)||ml(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ml(e){return gl(e.x)||gl(e.y)}function gl(e){return e&&e!=="0%"}function tr(e,t,n){const r=e-n,o=t*r;return n+o}function yl(e,t,n,r,o){return o!==void 0&&(e=tr(e,o,r)),tr(e,n,r)+t}function zo(e,t=0,n=1,r,o){e.min=yl(e.min,t,n,r,o),e.max=yl(e.max,t,n,r,o)}function vl(e,{x:t,y:n}){zo(e.x,t.translate,t.scale,t.originPoint),zo(e.y,n.translate,n.scale,n.originPoint)}const wl=.999999999999,bl=1.0000000000001;function nm(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&&Ht(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,vl(e,s)),r&&vt(i.latestValues)&&Ht(e,i.latestValues))}t.x<bl&&t.x>wl&&(t.x=1),t.y<bl&&t.y>wl&&(t.y=1)}function zt(e,t){e.min=e.min+t,e.max=e.max+t}function xl(e,t,n,r,o=.5){const i=ne(e.min,e.max,o);zo(e,t,n,i,r)}function Ht(e,t){xl(e.x,t.x,t.scaleX,t.scale,t.originX),xl(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sl(e,t){return pl(tm(e.getBoundingClientRect(),t))}function rm(e,t,n){const r=Sl(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const Cl=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:Cl(),y:Cl()}),Tl=()=>({min:0,max:0}),se=()=>({x:Tl(),y:Tl()}),Ho={current:null},kl={current:!1};function om(){if(kl.current=!0,!!Br)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ho.current=e.matches;e.addEventListener("change",t),t()}else Ho.current=!1}const im=new WeakMap;function sm(e,t,n){for(const r in t){const o=t[r],i=n[r];if(pe(o))e.addValue(r,o);else if(pe(i))e.addValue(r,Nt(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,Nt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $l=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class am{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=bo,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 f=be.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,te.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=Qn(n),this.isVariantNode=el(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in u){const h=u[f];l[f]!==void 0&&pe(h)&&h.set(l[f])}}mount(t){this.current=t,im.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)),kl.current||om(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ho.current,process.env.NODE_ENV!=="production"&&Wr(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(),Je(this.notifyUpdate),Je(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=_t.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[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):se()}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<$l.length;r++){const o=$l[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=sm(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=Nt(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"&&(Ls(r)||Ns(r))?r=parseFloat(r):!gp(r)&&et.test(n)&&(r=_a(t,n)),this.setBaseTarget(t,pe(r)?r.get():r)),pe(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=Ro(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&&!pe(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 Ur),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ko.render(this.render)}}class Pl extends am{constructor(){super(...arguments),this.KeyframeResolver=op}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;pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function El(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 lm(e){return window.getComputedStyle(e)}class cm extends Pl{constructor(){super(...arguments),this.type="html",this.renderInstance=El}readValueFromInstance(t,n){if(_t.has(n))return this.projection?.isProjecting?mo(n):Ch(t,n);{const r=lm(t),o=(ta(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sl(t,n)}build(t,n,r){Do(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lo(t,n,r)}}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"]);function um(e,t,n,r){El(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Ml.has(o)?o:_o(o),t.attrs[o])}class dm extends Pl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_t.has(n)){const r=La(n);return r&&r.default||0}return n=Ml.has(n)?n:_o(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ul(t,n,r)}build(t,n,r){il(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){um(t,n,r,o)}mount(t){this.isSVGTag=al(t.tagName),super.mount(t)}}const fm=(e,t)=>t.isSVG??Io(e)?new dm(t):new cm(t,{allowProjection:e!==p.Fragment});function Gt(e,t,n){const r=e.getProps();return Ro(r,t,n!==void 0?n:r.custom,e)}const jo=e=>Array.isArray(e);function hm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nt(n))}function pm(e){return jo(e)?e[e.length-1]||0:e}function mm(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=pm(i[s]);hm(e,s,a)}}function gm(e){return!!(pe(e)&&e.add)}function Go(e,t){const n=e.getValue("willChange");if(gm(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Al(e){return e.props[dl]}const ym=e=>e!==null;function vm(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(ym),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const wm={type:"spring",stiffness:500,damping:25,restSpeed:10},bm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xm={type:"keyframes",duration:.8},Sm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cm=(e,{keyframes:t})=>t.length>2?xm:_t.has(e)?e.startsWith("scale")?bm(t[1]):wm:Sm;function Tm({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 Uo=(e,t,n,r={},o,i)=>s=>{const a=So(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-De(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};Tm(a)||Object.assign(d,Cm(e,d)),d.duration&&(d.duration=De(d.duration)),d.repeatDelay&&(d.repeatDelay=De(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(xo(d),d.delay===0&&(u=!0)),(We.instantAnimations||We.skipAnimations)&&(u=!0,xo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const f=vm(d.keyframes,a);if(f!==void 0){te.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new fo(d):new Wh(d)};function km({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vl(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),f=a[d];if(f===void 0||c&&km(c,d))continue;const h={delay:n,...So(i||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Al(e);if(v){const x=window.MotionHandoffAnimation(v,d,te);x!==null&&(h.startTime=x,y=!0)}}Go(e,d),u.start(Uo(d,u,f,e.shouldReduceMotion&&Va.has(d)?{type:!1}:h,e,y));const w=u.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{te.update(()=>{s&&mm(e,s)})}),l}function Dl(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}function Wo(e,t,n={}){const r=Gt(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(Vl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return $m(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 $m(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(Wo(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Dl(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Pm(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Wo(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Wo(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(Vl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",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 Em=Ao.length;function Il(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Il(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Em;n++){const r=Ao[n],o=e.props[r];(cn(o)||o===!1)&&(t[r]=o)}return t}const Mm=[...Mo].reverse(),Am=Mo.length;function Vm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Pm(e,n,r)))}function Dm(e){let t=Vm(e),n=Rl(),r=!0;const o=l=>(c,d)=>{const u=Gt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:f,transitionEnd:h,...m}=u;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Il(e.parent)||{},u=[],f=new Set;let h={},m=1/0;for(let w=0;w<Am;w++){const v=Mm[w],x=n[v],b=c[v]!==void 0?c[v]:d[v],$=cn(b),S=v===l?x.isActive:null;S===!1&&(m=w);let P=b===d[v]&&b!==c[v]&&$;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),x.protectedKeys={...h},!x.isActive&&S===null||!b&&!x.prevProp||Jn(b)||typeof b=="boolean")continue;const E=Fm(x.prevProp,b);let M=E||v===l&&x.isActive&&!P&&$||w>m&&$,L=!1;const _=Array.isArray(b)?b:[b];let G=_.reduce(o(v),{});S===!1&&(G={});const{prevResolvedValues:U={}}=x,Q={...U,...G},W=D=>{M=!0,f.has(D)&&(L=!0,f.delete(D)),x.needsAnimating[D]=!0;const j=e.getValue(D);j&&(j.liveStyle=!1)};for(const D in Q){const j=G[D],q=U[D];if(h.hasOwnProperty(D))continue;let Z=!1;jo(j)&&jo(q)?Z=!Fl(j,q):Z=j!==q,Z?j!=null?W(D):f.add(D):j!==void 0&&f.has(D)?W(D):x.protectedKeys[D]=!0}x.prevProp=b,x.prevResolvedValues=G,x.isActive&&(h={...h,...G}),r&&e.blockInitialAnimation&&(M=!1);const X=P&&E;M&&(!X||L)&&u.push(..._.map(D=>{const j={type:v};if(typeof D=="string"&&r&&!X&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,Z=Gt(q,D);if(q.enteringChildren&&Z){const{delayChildren:fe}=Z.transition||{};j.delay=Dl(q.enteringChildren,e,fe)}}return{animation:D,options:j}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Gt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const x=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),w[v]=x??null}),u.push({animation:w})}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=Rl()}}}function Fm(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fl(t,e):!1}function wt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rl(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Im extends tt{constructor(t){super(t),t.animationState||(t.animationState=Dm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jn(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 Rm=0;class Lm extends tt{constructor(){super(...arguments),this.id=Rm++}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 _m={animation:{Feature:Im},exit:{Feature:Lm}};function dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fn(e){return{point:{x:e.pageX,y:e.pageY}}}const Nm=e=>t=>$o(t)&&e(t,fn(t));function hn(e,t,n,r){return dn(e,t,Nm(n),r)}const Ll=1e-4,Om=1-Ll,Bm=1+Ll,_l=.01,zm=0-_l,Hm=0+_l;function ye(e){return e.max-e.min}function jm(e,t,n){return Math.abs(e-t)<=n}function Nl(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Om&&e.scale<=Bm||isNaN(e.scale))&&(e.scale=1),(e.translate>=zm&&e.translate<=Hm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){Nl(e.x,t.x,n.x,r?r.originX:void 0),Nl(e.y,t.y,n.y,r?r.originY:void 0)}function Ol(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Gm(e,t,n){Ol(e.x,t.x,n.x),Ol(e.y,t.y,n.y)}function Bl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function nr(e,t,n){Bl(e.x,t.x,n.x),Bl(e.y,t.y,n.y)}function Me(e){return[e("x"),e("y")]}const zl=({current:e})=>e?e.ownerDocument.defaultView:null,Hl=(e,t)=>Math.abs(e-t);function Um(e,t){const n=Hl(e.x,t.x),r=Hl(e.y,t.y);return Math.sqrt(n**2+r**2)}class jl{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Um(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=f,{timestamp:w}=de;this.history.push({...y,timestamp:w});const{onStart:v,onMove:x}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ko(h,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=qo(f.type==="pointercancel"?this.lastMoveEventInfo:Ko(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!$o(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=fn(t),l=Ko(a,this.transformPagePoint),{point:c}=l,{timestamp:d}=de;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=n;u&&u(t,qo(l,this.history)),this.removeListeners=Qt(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function Ko(e,t){return t?{point:t(e.point)}:e}function Gl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qo({point:e},t){return{point:e,delta:Gl(e,Ul(t)),offset:Gl(e,Wm(t)),velocity:Km(t,.1)}}function Wm(e){return e[0]}function Ul(e){return e[e.length-1]}function Km(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ul(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(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 qm(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 Wl(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 Ym(e,{top:t,left:n,bottom:r,right:o}){return{x:Wl(e.x,n,o),y:Wl(e.y,t,r)}}function Kl(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 Xm(e,t){return{x:Kl(e.x,t.x),y:Kl(e.y,t.y)}}function Zm(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=en(t.min,t.max-r,e.min):r>o&&(n=en(e.min,e.max-o,t.min)),Ge(0,1,n)}function Jm(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 Yo=.35;function Qm(e=Yo){return e===!1?e=0:e===!0&&(e=Yo),{x:ql(e,"left","right"),y:ql(e,"top","bottom")}}function ql(e,t,n){return{min:Yl(e,t),max:Yl(e,n)}}function Yl(e,t){return typeof e=="number"?e:e[t]||0}const eg=new WeakMap;class tg{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=se(),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=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fn(u).point)},s=(u,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=lp(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,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 x=this.getAxisMotionValue(v).get()||0;if(Be.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const $=b.layout.layoutBox[v];$&&(x=ye($)*(parseFloat(x)/100))}}this.originPoint[v]=x}),y&&te.postRender(()=>y(u,f)),Go(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=ng(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),w&&w(u,f)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),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 jl(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:zl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&te.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||!rr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=qm(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&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ym(r.layoutBox,t):this.constraints=!1,this.elastic=Qm(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Jm(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(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=rm(r,o.root,this.visualElement.getTransformPagePoint());let s=Xm(o.layout.layoutBox,i);if(n){const a=n(em(s));this.hasMutatedConstraints=!!a,a&&(s=pl(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(!rr(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:h,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 Go(this.visualElement,t),r.start(Uo(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(!rr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(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]=Zm({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(!rr(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;eg.set(this.visualElement,this);const t=this.visualElement.current,n=hn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Bt(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()),te.read(r);const s=dn(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=Yo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function rr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ng(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class rg extends tt{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new tg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}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 Xl=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class og extends tt{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new jl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Xl(t),onStart:Xl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&te.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(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 or={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Xo=!1;class ig 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),Xo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),or.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Xo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||te.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ko.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Xo=!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 Zl(e){const[t,n]=Ya(),r=p.useContext(Nr);return g.jsx(ig,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(fl),isPresent:t,safeToRemove:n})}function sg(e,t,n){const r=pe(e)?e:Nt(e);return r.start(Uo("",r,t,n)),r.animation}const ag=(e,t)=>e.depth-t.depth;class lg{constructor(){this.children=[],this.isDirty=!1}add(t){zr(this.children,t),this.isDirty=!0}remove(t){Hr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ag),this.isDirty=!1,this.children.forEach(t)}}function cg(e,t){const n=be.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Je(r),e(i-t))};return te.setup(r,!0),()=>Je(r)}const Jl=["TopLeft","TopRight","BottomLeft","BottomRight"],ug=Jl.length,Ql=e=>typeof e=="string"?parseFloat(e):e,ec=e=>typeof e=="number"||A.test(e);function dg(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,fg(r)),e.opacityExit=ne(t.opacity??1,0,hg(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<ug;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),(Be.test(c)||Be.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 fg=nc(0,.5,Ks),hg=nc(.5,.95,Pe);function nc(e,t,n){return r=>r<e?0:r>t?1:n(en(e,t,r))}function rc(e,t){e.min=t.min,e.max=t.max}function Ie(e,t){rc(e.x,t.x),rc(e.y,t.y)}function oc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ic(e,t,n,r,o){return e-=t,e=tr(e,1/n,r),o!==void 0&&(e=tr(e,1/o,r)),e}function pg(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.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=ic(e.min,t,n,a,o),e.max=ic(e.max,t,n,a,o)}function sc(e,t,[n,r,o],i,s){pg(e,t[n],t[r],t[o],t.scale,i,s)}const mg=["x","scaleX","originX"],gg=["y","scaleY","originY"];function ac(e,t,n,r){sc(e.x,t,mg,n?n.x:void 0,r?r.x:void 0),sc(e.y,t,gg,n?n.y:void 0,r?r.y:void 0)}function lc(e){return e.translate===0&&e.scale===1}function cc(e){return lc(e.x)&&lc(e.y)}function uc(e,t){return e.min===t.min&&e.max===t.max}function yg(e,t){return uc(e.x,t.x)&&uc(e.y,t.y)}function dc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fc(e,t){return dc(e.x,t.x)&&dc(e.y,t.y)}function hc(e){return ye(e.x)/ye(e.y)}function pc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class vg{constructor(){this.members=[]}add(t){zr(this.members,t),t.scheduleRender()}remove(t){if(Hr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function wg(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:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}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 Zo=["","X","Y","Z"],bg=1e3;let xg=0;function Jo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Al(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mc(r)}function gc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=xg++,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(Tg),this.nodes.forEach(Eg),this.nodes.forEach(Mg),this.nodes.forEach(kg)},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 lg)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ur),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=Ka(s)&&!pp(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 f=()=>this.root.updateBlockedByResize=!1;te.read(()=>{u=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,d&&d(),d=cg(f,250),or.hasAnimatedSinceResize&&(or.hasAnimatedSinceResize=!1,this.nodes.forEach(wc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Ig,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!fc(this.targetLayout,h),x=!u&&f;if(this.options.layoutRoot||this.resumeFrom||x||u&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...So(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,x)}else u||wc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Je(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(Ag),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&&mc(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(yc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pg),this.nodes.forEach(Sg),this.nodes.forEach(Cg)):this.nodes.forEach(vc),this.clearAllSnapshots();const a=be.now();de.delta=Ge(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Yr.update.process(de),Yr.preRender.process(de),Yr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ko.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($g),this.sharedNodes.forEach(Vg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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=se(),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&&!cc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||vt(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)),Rg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return se();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Lg))){const{scroll:c}=this.root;c&&(zt(a.x,c.offset.x),zt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=se();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),zt(a.x,d.offset.x),zt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=se();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&&Ht(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vt(d.latestValues)&&Ht(l,d.latestValues)}return vt(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=se();Ie(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vt(c.latestValues))continue;Bo(c.latestValues)&&c.updateSnapshot();const d=se(),u=c.measurePageBox();Ie(d,u),ac(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return vt(this.latestValues)&&ac(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!==de.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=de.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=se(),this.targetWithTransforms=se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Gm(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ie(this.target,this.layout.layoutBox),vl(this.target,this.targetDelta)):Ie(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Bo(this.parent.latestValues)||ml(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=se(),this.relativeTargetOrigin=se(),nr(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===de.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,f=this.treeScale.y;nm(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=se());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(oc(this.prevProjectionDelta.x,this.projectionDelta.x),oc(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!pc(this.projectionDelta.x,this.prevProjectionDelta.x)||!pc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=se(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,w=this.getStack(),v=!w||w.members.length<=1,x=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Fg));this.animationProgress=0;let b;this.mixTargetDelta=$=>{const S=$/1e3;bc(u.x,s.x,S),bc(u.y,s.y,S),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dg(this.relativeTarget,this.relativeTargetOrigin,f,S),b&&yg(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=se()),Ie(b,this.relativeTarget)),y&&(this.animationValues=d,dg(d,c,this.latestValues,S,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{or.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=sg(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(bg),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&&kc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||se();const u=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ie(a,l),Ht(a,d),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new vg),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&&Jo("z",s,c,this.animationValues);for(let d=0;d<Zo.length;d++)Jo(`rotate${Zo[d]}`,s,c,this.animationValues),Jo(`skew${Zo[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=er(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=er(a?.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=wg(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.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 Vo){if(d[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:v}=Vo[m],x=u==="none"?d[m]:y(d[m],c);if(w){const b=w.length;for(let $=0;$<b;$++)s[w[$]]=x}else v?this.options.visualElement.renderState.vars[m]=x:s[m]=x}this.options.layoutId&&(s.pointerEvents=c===this?er(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(yc),this.root.sharedNodes.clear()}}}function Sg(e){e.updateLayout()}function Cg(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],f=ye(u);u.min=n[d].min,u.max=u.min+f}):kc(o,t.layoutBox,n)&&Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],f=ye(n[d]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const s=jt();pn(s,n,t.layoutBox);const a=jt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!cc(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:f}=d;if(u&&f){const h=se();nr(h,t.layoutBox,u.layoutBox);const m=se();nr(m,n,f.layoutBox),fc(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,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 Tg(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 kg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $g(e){e.clearSnapshot()}function yc(e){e.clearMeasurements()}function vc(e){e.isLayoutDirty=!1}function Pg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Eg(e){e.resolveTargetDelta()}function Mg(e){e.calcProjection()}function Ag(e){e.resetSkewAndRotation()}function Vg(e){e.removeLeadSnapshot()}function bc(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 xc(e,t,n,r){e.min=ne(t.min,n.min,r),e.max=ne(t.max,n.max,r)}function Dg(e,t,n,r){xc(e.x,t.x,n.x,r),xc(e.y,t.y,n.y,r)}function Fg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ig={duration:.45,ease:[.4,0,.1,1]},Sc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Cc=Sc("applewebkit/")&&!Sc("chrome/")?Math.round:Pe;function Tc(e){e.min=Cc(e.min),e.max=Cc(e.max)}function Rg(e){Tc(e.x),Tc(e.y)}function kc(e,t,n){return e==="position"||e==="preserve-aspect"&&!jm(hc(t),hc(n),.2)}function Lg(e){return e!==e.root&&e.scroll?.wasRoot}const _g=gc({attachResizeListener:(e,t)=>dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qo={current:void 0},$c=gc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qo.current){const e=new _g({});e.mount(window),e.setOptions({layoutScroll:!0}),Qo.current=e}return Qo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ng={pan:{Feature:og},drag:{Feature:rg,ProjectionNode:$c,MeasureLayout:Zl}};function Pc(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&&te.postRender(()=>i(t,fn(t)))}class Og extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=cp(t,(n,r)=>(Pc(this.node,r,"Start"),o=>Pc(this.node,o,"End"))))}unmount(){}}class Bg extends tt{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=Qt(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ec(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&&te.postRender(()=>i(t,fn(t)))}class zg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=hp(t,(n,r)=>(Ec(this.node,r,"Start"),(o,{success:i})=>Ec(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ei=new WeakMap,ti=new WeakMap,Hg=e=>{const t=ei.get(e.target);t&&t(e)},jg=e=>{e.forEach(Hg)};function Gg({root:e,...t}){const n=e||document;ti.has(n)||ti.set(n,{});const r=ti.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(jg,{root:e,...t})),r[o]}function Ug(e,t,n){const r=Gg(t);return ei.set(e,n),r.observe(e),()=>{ei.delete(e),r.unobserve(e)}}const Wg={some:0,all:1};class Kg extends tt{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:Wg[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(),f=c?d:u;f&&f(l)};return Ug(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(qg(t,n))&&this.startObserver()}unmount(){}}function qg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Yg={..._m,...{inView:{Feature:Kg},tap:{Feature:zg},focus:{Feature:Bg},hover:{Feature:Og}},...Ng,...{layout:{ProjectionNode:$c,MeasureLayout:Zl}}},Ke=Qp(Yg,fm),Xg={sm:T`
|
|
234
|
+
`),()=>{w.contains(y)&&w.removeChild(y)}},[t]),g.jsx(bp,{isPresent:t,childRef:i,sizeRef:s,children:lt.cloneElement(e,{ref:l})})}const Sp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=Or(Cp),d=p.useId();let u=!0,f=p.useMemo(()=>(u=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:h=>{c.set(h,!0);for(const m of c.values())if(!m)return;r&&r()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[n,c,r]);return i&&u&&(f={...f}),p.useMemo(()=>{c.forEach((h,m)=>c.set(m,!1))},[n]),lt.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),s==="popLayout"&&(e=g.jsx(xp,{isPresent:n,anchorX:a,root:l,children:e})),g.jsx(zn.Provider,{value:f,children:e})};function Cp(){return new Map}function Za(e=!0){const t=p.useContext(zn);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 Yn=e=>e.key||"";function Ja(e){const t=[];return p.Children.forEach(e,n=>{p.isValidElement(n)&&t.push(n)}),t}const ln=({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]=Za(s),u=p.useMemo(()=>Ja(e),[e]),f=s&&!c?[]:u.map(Yn),h=p.useRef(!0),m=p.useRef(u),y=Or(()=>new Map),[w,v]=p.useState(u),[C,b]=p.useState(u);_s(()=>{h.current=!1,m.current=u;for(let P=0;P<C.length;P++){const E=Yn(C[P]);f.includes(E)?y.delete(E):y.get(E)!==!0&&y.set(E,!1)}},[C,f.length,f.join("-")]);const k=[];if(u!==w){let P=[...u];for(let E=0;E<C.length;E++){const M=C[E],L=Yn(M);f.includes(L)||(P.splice(E,0,M),k.push(M))}return i==="wait"&&k.length&&(P=k),b(Ja(P)),v(u),null}process.env.NODE_ENV!=="production"&&i==="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:x}=p.useContext(Nr);return g.jsx(g.Fragment,{children:C.map(P=>{const E=Yn(P),M=s&&!c?!1:u===C||f.includes(E),L=()=>{if(y.has(E))y.set(E,!0);else return;let _=!0;y.forEach(G=>{G||(_=!1)}),_&&(x?.(),b(m.current),s&&d?.(),r&&r())};return g.jsx(Sp,{isPresent:M,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:M?void 0:L,anchorX:a,children:P},E)})})},Qa=p.createContext({strict:!1}),el={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"]},Ot={};for(const e in el)Ot[e]={isEnabled:t=>el[e].some(n=>!!t[n])};function Tp(e){for(const t in e)Ot[t]={...Ot[t],...e[t]}}const $p=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 Xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$p.has(e)}let tl=e=>!Xn(e);function kp(e){typeof e=="function"&&(tl=t=>t.startsWith("on")?!Xn(t):e(t))}try{kp(require("@emotion/is-prop-valid").default)}catch{}function Pp(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(tl(o)||n===!0&&Xn(o)||!t&&!Xn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Zn=p.createContext({});function Jn(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function cn(e){return typeof e=="string"||Array.isArray(e)}const Mo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ao=["initial",...Mo];function Qn(e){return Jn(e.animate)||Ao.some(t=>cn(e[t]))}function nl(e){return!!(Qn(e)||e.variants)}function Ep(e,t){if(Qn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||cn(n)?n:void 0,animate:cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function Mp(e){const{initial:t,animate:n}=Ep(e,p.useContext(Zn));return p.useMemo(()=>({initial:t,animate:n}),[rl(t),rl(n)])}function rl(e){return Array.isArray(e)?e.join(" "):e}function ol(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const un={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(A.test(e))e=parseFloat(e);else return e;const n=ol(e,t.target.x),r=ol(e,t.target.y);return`${n}% ${r}%`}},Ap={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=et.parse(e);if(o.length>5)return r;const i=et.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)}},Vo={borderRadius:{...un,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:un,borderTopRightRadius:un,borderBottomLeftRadius:un,borderBottomRightRadius:un,boxShadow:Ap};function il(e,{layout:t,layoutId:n}){return _t.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vo[e]||e==="opacity")}const Vp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dp=Lt.length;function Fp(e,t,n){let r="",o=!0;for(let i=0;i<Dp;i++){const s=Lt[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=Ba(a,To[s]);if(!l){o=!1;const d=Vp[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Do(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(_t.has(l)){s=!0;continue}else if(ra(l)){o[l]=c;continue}else{const d=Ba(c,To[l]);l.startsWith("origin")?(a=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=Fp(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}`}}const Fo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function sl(e,t,n){for(const r in t)!pe(t[r])&&!il(r,n)&&(e[r]=t[r])}function Ip({transformTemplate:e},t){return p.useMemo(()=>{const n=Fo();return Do(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Rp(e,t){const n=e.style||{},r={};return sl(r,n,e),Object.assign(r,Ip(e,t)),r}function Lp(e,t){const n={},r=Rp(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 _p={offset:"stroke-dashoffset",array:"stroke-dasharray"},Np={offset:"strokeDashoffset",array:"strokeDasharray"};function Op(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?_p:Np;e[i.offset]=A.transform(-r);const s=A.transform(t),a=A.transform(n);e[i.array]=`${s} ${a}`}function al(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,d){if(Do(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:f}=e;u.transform&&(f.transform=u.transform,delete u.transform),(f.transform||u.transformOrigin)&&(f.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete u.transformBox),t!==void 0&&(u.x=t),n!==void 0&&(u.y=n),r!==void 0&&(u.scale=r),o!==void 0&&Op(u,o,i,s,!1)}const ll=()=>({...Fo(),attrs:{}}),cl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Bp(e,t,n,r){const o=p.useMemo(()=>{const i=ll();return al(i,t,cl(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};sl(i,e.style,e),o.style={...i,...o.style}}return o}const zp=["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 Io(e){return typeof e!="string"||e.includes("-")?!1:!!(zp.indexOf(e)>-1||/[A-Z]/u.test(e))}function Hp(e,t,n,{latestValues:r},o,i=!1,s){const l=(s??Io(e)?Bp:Lp)(t,r,o,e),c=Pp(t,typeof e=="string",i),d=e!==p.Fragment?{...c,...l,ref:n}:{},{children:u}=t,f=p.useMemo(()=>pe(u)?u.get():u,[u]);return p.createElement(e,{...d,children:f})}function ul(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ro(e,t,n,r){if(typeof t=="function"){const[o,i]=ul(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]=ul(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function er(e){return pe(e)?e.get():e}function jp({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Gp(n,r,o,e),renderState:t()}}function Gp(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=er(i[f]);let{initial:s,animate:a}=e;const l=Qn(e),c=nl(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"&&!Jn(u)){const f=Array.isArray(u)?u:[u];for(let h=0;h<f.length;h++){const m=Ro(e,f[h]);if(m){const{transitionEnd:y,transition:w,...v}=m;for(const C in v){let b=v[C];if(Array.isArray(b)){const k=d?b.length-1:0;b=b[k]}b!==null&&(o[C]=b)}for(const C in y)o[C]=y[C]}}}return o}const dl=e=>(t,n)=>{const r=p.useContext(Zn),o=p.useContext(zn),i=()=>jp(e,t,r,o);return n?i():Or(i)};function Lo(e,t,n){const{style:r}=e,o={};for(const i in r)(pe(r[i])||t.style&&pe(t.style[i])||il(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(o[i]=r[i]);return o}const Up=dl({scrapeMotionValuesFromProps:Lo,createRenderState:Fo});function fl(e,t,n){const r=Lo(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const i=Lt.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Wp=dl({scrapeMotionValuesFromProps:fl,createRenderState:ll}),Kp=Symbol.for("motionComponentSymbol");function Bt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qp(e,t,n){return p.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Bt(n)&&(n.current=r))},[t])}const _o=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hl="data-"+_o("framerAppearId"),pl=p.createContext({});function Yp(e,t,n,r,o,i){const{visualElement:s}=p.useContext(Zn),a=p.useContext(Qa),l=p.useContext(zn),c=p.useContext(Eo).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,f=p.useContext(pl);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&Xp(d.current,n,o,f);const h=p.useRef(!1);p.useInsertionEffect(()=>{u&&h.current&&u.update(n,l)});const m=n[hl],y=p.useRef(!!m&&!window.MotionHandoffIsComplete?.(m)&&window.MotionHasOptimisedAnimation?.(m));return _s(()=>{u&&(h.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 Xp(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:ml(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&Bt(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c})}function ml(e){if(e)return e.options.allowProjection!==!1?e.projection:ml(e.parent)}function No(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&Tp(r);const i=n?n==="svg":Io(e),s=i?Wp:Up;function a(c,d){let u;const f={...p.useContext(Eo),...c,layoutId:Zp(c)},{isStatic:h}=f,m=Mp(c),y=s(c,h);if(!h&&Br){Jp(f,r);const w=Qp(f);u=w.MeasureLayout,m.visualElement=Yp(e,y,f,o,w.ProjectionNode,i)}return g.jsxs(Zn.Provider,{value:m,children:[u&&m.visualElement?g.jsx(u,{visualElement:m.visualElement,...f}):null,Hp(e,c,qp(y,m.visualElement,d),y,h,t,i)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=p.forwardRef(a);return l[Kp]=e,l}function Zp({layoutId:e}){const t=p.useContext(Nr).id;return t&&e!==void 0?t+"-"+e:e}function Jp(e,t){const n=p.useContext(Qa).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?Dt(!1,r,"lazy-strict-mode"):Ue(!1,r,"lazy-strict-mode")}}function Qp(e){const{drag:t,layout:n}=Ot;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function em(e,t){if(typeof Proxy>"u")return No;const n=new Map,r=(i,s)=>No(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&Wr(!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,No(s,void 0,e,t)),n.get(s))})}function gl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tm({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nm(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 Oo(e){return e===void 0||e===1}function Bo({scale:e,scaleX:t,scaleY:n}){return!Oo(e)||!Oo(t)||!Oo(n)}function vt(e){return Bo(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 tr(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=tr(e,o,r)),tr(e,n,r)+t}function zo(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}){zo(e.x,t.translate,t.scale,t.originPoint),zo(e.y,n.translate,n.scale,n.originPoint)}const xl=.999999999999,Sl=1.0000000000001;function rm(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&&Ht(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&&vt(i.latestValues)&&Ht(e,i.latestValues))}t.x<Sl&&t.x>xl&&(t.x=1),t.y<Sl&&t.y>xl&&(t.y=1)}function zt(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);zo(e,t,n,i,r)}function Ht(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(nm(e.getBoundingClientRect(),t))}function om(e,t,n){const r=Tl(e,n),{scroll:o}=t;return o&&(zt(r.x,o.offset.x),zt(r.y,o.offset.y)),r}const $l=()=>({translate:0,scale:1,origin:0,originPoint:0}),jt=()=>({x:$l(),y:$l()}),kl=()=>({min:0,max:0}),se=()=>({x:kl(),y:kl()}),Ho={current:null},Pl={current:!1};function im(){if(Pl.current=!0,!!Br)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ho.current=e.matches;e.addEventListener("change",t),t()}else Ho.current=!1}const sm=new WeakMap;function am(e,t,n){for(const r in t){const o=t[r],i=n[r];if(pe(o))e.addValue(r,o);else if(pe(i))e.addValue(r,Nt(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,Nt(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const El=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class lm{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=bo,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 f=be.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,te.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=Qn(n),this.isVariantNode=nl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...u}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in u){const h=u[f];l[f]!==void 0&&pe(h)&&h.set(l[f])}}mount(t){this.current=t,sm.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)),Pl.current||im(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ho.current,process.env.NODE_ENV!=="production"&&Wr(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(),Je(this.notifyUpdate),Je(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=_t.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&te.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ot){const n=Ot[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):se()}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<El.length;r++){const o=El[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=am(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=Nt(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"&&(Ns(r)||Bs(r))?r=parseFloat(r):!yp(r)&&et.test(n)&&(r=Oa(t,n)),this.setBaseTarget(t,pe(r)?r.get():r)),pe(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=Ro(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&&!pe(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 Ur),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$o.render(this.render)}}class Ml extends lm{constructor(){super(...arguments),this.KeyframeResolver=ip}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;pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Al(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 cm(e){return window.getComputedStyle(e)}class um extends Ml{constructor(){super(...arguments),this.type="html",this.renderInstance=Al}readValueFromInstance(t,n){if(_t.has(n))return this.projection?.isProjecting?mo(n):Th(t,n);{const r=cm(t),o=(ra(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){Do(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lo(t,n,r)}}const Vl=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 dm(e,t,n,r){Al(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Vl.has(o)?o:_o(o),t.attrs[o])}class fm extends Ml{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_t.has(n)){const r=Na(n);return r&&r.default||0}return n=Vl.has(n)?n:_o(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fl(t,n,r)}build(t,n,r){al(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){dm(t,n,r,o)}mount(t){this.isSVGTag=cl(t.tagName),super.mount(t)}}const hm=(e,t)=>t.isSVG??Io(e)?new fm(t):new um(t,{allowProjection:e!==p.Fragment});function Gt(e,t,n){const r=e.getProps();return Ro(r,t,n!==void 0?n:r.custom,e)}const jo=e=>Array.isArray(e);function pm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nt(n))}function mm(e){return jo(e)?e[e.length-1]||0:e}function gm(e,t){const n=Gt(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=mm(i[s]);pm(e,s,a)}}function ym(e){return!!(pe(e)&&e.add)}function Go(e,t){const n=e.getValue("willChange");if(ym(n))return n.add(t);if(!n&&We.WillChange){const r=new We.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Dl(e){return e.props[hl]}const vm=e=>e!==null;function wm(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(vm),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const bm={type:"spring",stiffness:500,damping:25,restSpeed:10},xm=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Sm={type:"keyframes",duration:.8},Cm={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tm=(e,{keyframes:t})=>t.length>2?Sm:_t.has(e)?e.startsWith("scale")?xm(t[1]):bm:Cm;function $m({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 Uo=(e,t,n,r={},o,i)=>s=>{const a=So(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-De(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};$m(a)||Object.assign(d,Tm(e,d)),d.duration&&(d.duration=De(d.duration)),d.repeatDelay&&(d.repeatDelay=De(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(xo(d),d.delay===0&&(u=!0)),(We.instantAnimations||We.skipAnimations)&&(u=!0,xo(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,u&&!i&&t.get()!==void 0){const f=wm(d.keyframes,a);if(f!==void 0){te.update(()=>{d.onUpdate(f),d.onComplete()});return}}return a.isSync?new fo(d):new Kh(d)};function km({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Fl(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),f=a[d];if(f===void 0||c&&km(c,d))continue;const h={delay:n,...So(i||{},d)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(f)&&f===m&&!h.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const v=Dl(e);if(v){const C=window.MotionHandoffAnimation(v,d,te);C!==null&&(h.startTime=C,y=!0)}}Go(e,d),u.start(Uo(d,u,f,e.shouldReduceMotion&&Fa.has(d)?{type:!1}:h,e,y));const w=u.animation;w&&l.push(w)}return s&&Promise.all(l).then(()=>{te.update(()=>{s&&gm(e,s)})}),l}function Il(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}function Wo(e,t,n={}){const r=Gt(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(Fl(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=o;return Pm(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 Pm(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(Wo(l,t,{...s,delay:n+(typeof r=="function"?0:r)+Il(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function Em(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Wo(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Wo(e,t,n);else{const o=typeof t=="function"?Gt(e,t,n.custom):t;r=Promise.all(Fl(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Rl(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=Ao.length;function Ll(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Ll(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Mm;n++){const r=Ao[n],o=e.props[r];(cn(o)||o===!1)&&(t[r]=o)}return t}const Am=[...Mo].reverse(),Vm=Mo.length;function Dm(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Em(e,n,r)))}function Fm(e){let t=Dm(e),n=_l(),r=!0;const o=l=>(c,d)=>{const u=Gt(e,d,l==="exit"?e.presenceContext?.custom:void 0);if(u){const{transition:f,transitionEnd:h,...m}=u;c={...c,...m,...h}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=Ll(e.parent)||{},u=[],f=new Set;let h={},m=1/0;for(let w=0;w<Vm;w++){const v=Am[w],C=n[v],b=c[v]!==void 0?c[v]:d[v],k=cn(b),x=v===l?C.isActive:null;x===!1&&(m=w);let P=b===d[v]&&b!==c[v]&&k;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),C.protectedKeys={...h},!C.isActive&&x===null||!b&&!C.prevProp||Jn(b)||typeof b=="boolean")continue;const E=Im(C.prevProp,b);let M=E||v===l&&C.isActive&&!P&&k||w>m&&k,L=!1;const _=Array.isArray(b)?b:[b];let G=_.reduce(o(v),{});x===!1&&(G={});const{prevResolvedValues:U={}}=C,X={...U,...G},W=D=>{M=!0,f.has(D)&&(L=!0,f.delete(D)),C.needsAnimating[D]=!0;const j=e.getValue(D);j&&(j.liveStyle=!1)};for(const D in X){const j=G[D],q=U[D];if(h.hasOwnProperty(D))continue;let J=!1;jo(j)&&jo(q)?J=!Rl(j,q):J=j!==q,J?j!=null?W(D):f.add(D):j!==void 0&&f.has(D)?W(D):C.protectedKeys[D]=!0}C.prevProp=b,C.prevResolvedValues=G,C.isActive&&(h={...h,...G}),r&&e.blockInitialAnimation&&(M=!1);const Z=P&&E;M&&(!Z||L)&&u.push(..._.map(D=>{const j={type:v};if(typeof D=="string"&&r&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,J=Gt(q,D);if(q.enteringChildren&&J){const{delayChildren:fe}=J.transition||{};j.delay=Il(q.enteringChildren,e,fe)}}return{animation:D,options:j}}))}if(f.size){const w={};if(typeof c.initial!="boolean"){const v=Gt(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(w.transition=v.transition)}f.forEach(v=>{const C=e.getBaseTarget(v),b=e.getValue(v);b&&(b.liveStyle=!0),w[v]=C??null}),u.push({animation:w})}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=_l()}}}function Im(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rl(t,e):!1}function wt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _l(){return{animate:wt(!0),whileInView:wt(),whileHover:wt(),whileTap:wt(),whileDrag:wt(),whileFocus:wt(),exit:wt()}}class tt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Rm extends tt{constructor(t){super(t),t.animationState||(t.animationState=Fm(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jn(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 Lm=0;class _m extends tt{constructor(){super(...arguments),this.id=Lm++}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 Nm={animation:{Feature:Rm},exit:{Feature:_m}};function dn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function fn(e){return{point:{x:e.pageX,y:e.pageY}}}const Om=e=>t=>ko(t)&&e(t,fn(t));function hn(e,t,n,r){return dn(e,t,Om(n),r)}const Nl=1e-4,Bm=1-Nl,zm=1+Nl,Ol=.01,Hm=0-Ol,jm=0+Ol;function ye(e){return e.max-e.min}function Gm(e,t,n){return Math.abs(e-t)<=n}function Bl(e,t,n,r=.5){e.origin=r,e.originPoint=ne(t.min,t.max,e.origin),e.scale=ye(n)/ye(t),e.translate=ne(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Bm&&e.scale<=zm||isNaN(e.scale))&&(e.scale=1),(e.translate>=Hm&&e.translate<=jm||isNaN(e.translate))&&(e.translate=0)}function pn(e,t,n,r){Bl(e.x,t.x,n.x,r?r.originX:void 0),Bl(e.y,t.y,n.y,r?r.originY:void 0)}function zl(e,t,n){e.min=n.min+t.min,e.max=e.min+ye(t)}function Um(e,t,n){zl(e.x,t.x,n.x),zl(e.y,t.y,n.y)}function Hl(e,t,n){e.min=t.min-n.min,e.max=e.min+ye(t)}function nr(e,t,n){Hl(e.x,t.x,n.x),Hl(e.y,t.y,n.y)}function Me(e){return[e("x"),e("y")]}const jl=({current:e})=>e?e.ownerDocument.defaultView:null,Gl=(e,t)=>Math.abs(e-t);function Wm(e,t){const n=Gl(e.x,t.x),r=Gl(e.y,t.y);return Math.sqrt(n**2+r**2)}class Ul{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=Wm(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:y}=f,{timestamp:w}=de;this.history.push({...y,timestamp:w});const{onStart:v,onMove:C}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Ko(h,this.transformPagePoint),te.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=qo(f.type==="pointercancel"?this.lastMoveEventInfo:Ko(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!ko(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=o||window;const a=fn(t),l=Ko(a,this.transformPagePoint),{point:c}=l,{timestamp:d}=de;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=n;u&&u(t,qo(l,this.history)),this.removeListeners=Qt(hn(this.contextWindow,"pointermove",this.handlePointerMove),hn(this.contextWindow,"pointerup",this.handlePointerUp),hn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Je(this.updatePoint)}}function Ko(e,t){return t?{point:t(e.point)}:e}function Wl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qo({point:e},t){return{point:e,delta:Wl(e,Kl(t)),offset:Wl(e,Km(t)),velocity:qm(t,.1)}}function Km(e){return e[0]}function Kl(e){return e[e.length-1]}function qm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Kl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>De(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 Ym(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 ql(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 Xm(e,{top:t,left:n,bottom:r,right:o}){return{x:ql(e.x,n,o),y:ql(e.y,t,r)}}function Yl(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 Zm(e,t){return{x:Yl(e.x,t.x),y:Yl(e.y,t.y)}}function Jm(e,t){let n=.5;const r=ye(e),o=ye(t);return o>r?n=en(t.min,t.max-r,e.min):r>o&&(n=en(e.min,e.max-o,t.min)),Ge(0,1,n)}function Qm(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 Yo=.35;function eg(e=Yo){return e===!1?e=0:e===!0&&(e=Yo),{x:Xl(e,"left","right"),y:Xl(e,"top","bottom")}}function Xl(e,t,n){return{min:Zl(e,t),max:Zl(e,n)}}function Zl(e,t){return typeof e=="number"?e:e[t]||0}const tg=new WeakMap;class ng{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=se(),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=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(fn(u).point)},s=(u,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cp(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=f,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 C=this.getAxisMotionValue(v).get()||0;if(Be.test(C)){const{projection:b}=this.visualElement;if(b&&b.layout){const k=b.layout.layoutBox[v];k&&(C=ye(k)*(parseFloat(C)/100))}}this.originPoint[v]=C}),y&&te.postRender(()=>y(u,f)),Go(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=rg(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),w&&w(u,f)},l=(u,f)=>{this.latestPointerEvent=u,this.latestPanInfo=f,this.stop(u,f),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 Ul(t,{onSessionStart:i,onStart:s,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:jl(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:s}=o;this.startAnimation(s);const{onDragEnd:a}=this.getProps();a&&te.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||!rr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=Ym(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&&Bt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Xm(r.layoutBox,t):this.constraints=!1,this.elastic=eg(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Me(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Qm(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Bt(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=om(r,o.root,this.visualElement.getTransformPagePoint());let s=Zm(o.layout.layoutBox,i);if(n){const a=n(tm(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(!rr(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:h,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 Go(this.visualElement,t),r.start(Uo(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(!rr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-ne(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Bt(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]=Jm({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(!rr(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;tg.set(this.visualElement,this);const t=this.visualElement.current,n=hn(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Bt(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()),te.read(r);const s=dn(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=Yo,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function rr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class og extends tt{constructor(t){super(t),this.removeGroupControls=Pe,this.removeListeners=Pe,this.controls=new ng(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Pe}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 Jl=e=>(t,n)=>{e&&te.postRender(()=>e(t,n))};class ig extends tt{constructor(){super(...arguments),this.removePointerDownListener=Pe}onPointerDown(t){this.session=new Ul(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:jl(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Jl(t),onStart:Jl(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&te.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=hn(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 or={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Xo=!1;class sg 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),Xo&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),or.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:s}=r;return s&&(s.isPresent=i,Xo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||te.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$o.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;Xo=!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 Ql(e){const[t,n]=Za(),r=p.useContext(Nr);return g.jsx(sg,{...e,layoutGroup:r,switchLayoutGroup:p.useContext(pl),isPresent:t,safeToRemove:n})}function ag(e,t,n){const r=pe(e)?e:Nt(e);return r.start(Uo("",r,t,n)),r.animation}const lg=(e,t)=>e.depth-t.depth;class cg{constructor(){this.children=[],this.isDirty=!1}add(t){zr(this.children,t),this.isDirty=!0}remove(t){Hr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lg),this.isDirty=!1,this.children.forEach(t)}}function ug(e,t){const n=be.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Je(r),e(i-t))};return te.setup(r,!0),()=>Je(r)}const ec=["TopLeft","TopRight","BottomLeft","BottomRight"],dg=ec.length,tc=e=>typeof e=="string"?parseFloat(e):e,nc=e=>typeof e=="number"||A.test(e);function fg(e,t,n,r,o,i){o?(e.opacity=ne(0,n.opacity??1,hg(r)),e.opacityExit=ne(t.opacity??1,0,pg(r))):i&&(e.opacity=ne(t.opacity??1,n.opacity??1,r));for(let s=0;s<dg;s++){const a=`border${ec[s]}Radius`;let l=rc(t,a),c=rc(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||nc(l)===nc(c)?(e[a]=Math.max(ne(tc(l),tc(c),r),0),(Be.test(c)||Be.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ne(t.rotate||0,n.rotate||0,r))}function rc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const hg=oc(0,.5,Ys),pg=oc(.5,.95,Pe);function oc(e,t,n){return r=>r<e?0:r>t?1:n(en(e,t,r))}function ic(e,t){e.min=t.min,e.max=t.max}function Ie(e,t){ic(e.x,t.x),ic(e.y,t.y)}function sc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ac(e,t,n,r,o){return e-=t,e=tr(e,1/n,r),o!==void 0&&(e=tr(e,1/o,r)),e}function mg(e,t=0,n=1,r=.5,o,i=e,s=e){if(Be.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=ac(e.min,t,n,a,o),e.max=ac(e.max,t,n,a,o)}function lc(e,t,[n,r,o],i,s){mg(e,t[n],t[r],t[o],t.scale,i,s)}const gg=["x","scaleX","originX"],yg=["y","scaleY","originY"];function cc(e,t,n,r){lc(e.x,t,gg,n?n.x:void 0,r?r.x:void 0),lc(e.y,t,yg,n?n.y:void 0,r?r.y:void 0)}function uc(e){return e.translate===0&&e.scale===1}function dc(e){return uc(e.x)&&uc(e.y)}function fc(e,t){return e.min===t.min&&e.max===t.max}function vg(e,t){return fc(e.x,t.x)&&fc(e.y,t.y)}function hc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pc(e,t){return hc(e.x,t.x)&&hc(e.y,t.y)}function mc(e){return ye(e.x)/ye(e.y)}function gc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class wg{constructor(){this.members=[]}add(t){zr(this.members,t),t.scheduleRender()}remove(t){if(Hr(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bg(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:f,skewX:h,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),u&&(r+=`rotateX(${u}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}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 Zo=["","X","Y","Z"],xg=1e3;let Sg=0;function Jo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function yc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Dl(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",te,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&yc(r)}function vc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t?.()){this.id=Sg++,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($g),this.nodes.forEach(Mg),this.nodes.forEach(Ag),this.nodes.forEach(kg)},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 cg)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Ur),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=Ya(s)&&!mp(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 f=()=>this.root.updateBlockedByResize=!1;te.read(()=>{u=window.innerWidth}),e(s,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,d&&d(),d=ug(f,250),or.hasAnimatedSinceResize&&(or.hasAnimatedSinceResize=!1,this.nodes.forEach(xc)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Rg,{onLayoutAnimationStart:y,onLayoutAnimationComplete:w}=c.getProps(),v=!this.targetLayout||!pc(this.targetLayout,h),C=!u&&f;if(this.options.layoutRoot||this.resumeFrom||C||u&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...So(m,"layout"),onPlay:y,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(d,C)}else u||xc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}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(),Je(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(Vg),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&&yc(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(wc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Eg),this.nodes.forEach(Cg),this.nodes.forEach(Tg)):this.nodes.forEach(bc),this.clearAllSnapshots();const a=be.now();de.delta=Ge(0,1e3/60,a-de.timestamp),de.timestamp=a,de.isProcessing=!0,Yr.update.process(de),Yr.preRender.process(de),Yr.render.process(de),de.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$o.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Pg),this.sharedNodes.forEach(Dg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ye(this.snapshot.measuredBox.x)&&!ye(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=se(),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&&!dc(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&this.instance&&(a||vt(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)),Lg(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return se();const a=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_g))){const{scroll:c}=this.root;c&&(zt(a.x,c.offset.x),zt(a.y,c.offset.y))}return a}removeElementScroll(s){const a=se();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),zt(a.x,d.offset.x),zt(a.y,d.offset.y))}return a}applyTransform(s,a=!1){const l=se();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&&Ht(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vt(d.latestValues)&&Ht(l,d.latestValues)}return vt(this.latestValues)&&Ht(l,this.latestValues),l}removeTransform(s){const a=se();Ie(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!vt(c.latestValues))continue;Bo(c.latestValues)&&c.updateSnapshot();const d=se(),u=c.measurePageBox();Ie(d,u),cc(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return vt(this.latestValues)&&cc(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!==de.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=de.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=se(),this.targetWithTransforms=se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Um(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,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Bo(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=se(),this.relativeTargetOrigin=se(),nr(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===de.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,f=this.treeScale.y;rm(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=se());const{target:h}=s;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sc(this.prevProjectionDelta.x,this.projectionDelta.x),sc(this.prevProjectionDelta.y,this.projectionDelta.y)),pn(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==f||!gc(this.projectionDelta.x,this.prevProjectionDelta.x)||!gc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}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=jt(),this.projectionDelta=jt(),this.projectionDeltaWithTransform=jt()}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=jt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=se(),h=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=h!==m,w=this.getStack(),v=!w||w.members.length<=1,C=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Ig));this.animationProgress=0;let b;this.mixTargetDelta=k=>{const x=k/1e3;Sc(u.x,s.x,x),Sc(u.y,s.y,x),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Fg(this.relativeTarget,this.relativeTargetOrigin,f,x),b&&vg(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=se()),Ie(b,this.relativeTarget)),y&&(this.animationValues=d,fg(d,c,this.latestValues,x,C,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=te.update(()=>{or.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.currentAnimation=ag(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(xg),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&&Pc(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||se();const u=ye(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const f=ye(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Ie(a,l),Ht(a,d),pn(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new wg),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&&Jo("z",s,c,this.animationValues);for(let d=0;d<Zo.length;d++)Jo(`rotate${Zo[d]}`,s,c,this.animationValues),Jo(`skew${Zo[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=er(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=er(a?.pointerEvents)||""),this.hasProjected&&!vt(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const d=c.animationValues||c.latestValues;this.applyTransformsToTarget();let u=bg(this.projectionDeltaWithTransform,this.treeScale,d);l&&(u=l(d,u)),s.transform=u;const{x:f,y:h}=this.projectionDelta;s.transformOrigin=`${f.origin*100}% ${h.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 Vo){if(d[m]===void 0)continue;const{correct:y,applyTo:w,isCSSVariable:v}=Vo[m],C=u==="none"?d[m]:y(d[m],c);if(w){const b=w.length;for(let k=0;k<b;k++)s[w[k]]=C}else v?this.options.visualElement.renderState.vars[m]=C:s[m]=C}this.options.layoutId&&(s.pointerEvents=c===this?er(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(wc),this.root.sharedNodes.clear()}}}function Cg(e){e.updateLayout()}function Tg(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],f=ye(u);u.min=n[d].min,u.max=u.min+f}):Pc(o,t.layoutBox,n)&&Me(d=>{const u=i?t.measuredBox[d]:t.layoutBox[d],f=ye(n[d]);u.max=u.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const s=jt();pn(s,n,t.layoutBox);const a=jt();i?pn(a,e.applyTransform(r,!0),t.measuredBox):pn(a,n,t.layoutBox);const l=!dc(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:f}=d;if(u&&f){const h=se();nr(h,t.layoutBox,u.layoutBox);const m=se();nr(m,n,f.layoutBox),pc(h,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=h,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 $g(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 kg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Pg(e){e.clearSnapshot()}function wc(e){e.clearMeasurements()}function bc(e){e.isLayoutDirty=!1}function Eg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mg(e){e.resolveTargetDelta()}function Ag(e){e.calcProjection()}function Vg(e){e.resetSkewAndRotation()}function Dg(e){e.removeLeadSnapshot()}function Sc(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 Fg(e,t,n,r){Cc(e.x,t.x,n.x,r),Cc(e.y,t.y,n.y,r)}function Ig(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Rg={duration:.45,ease:[.4,0,.1,1]},Tc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),$c=Tc("applewebkit/")&&!Tc("chrome/")?Math.round:Pe;function kc(e){e.min=$c(e.min),e.max=$c(e.max)}function Lg(e){kc(e.x),kc(e.y)}function Pc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Gm(mc(t),mc(n),.2)}function _g(e){return e!==e.root&&e.scroll?.wasRoot}const Ng=vc({attachResizeListener:(e,t)=>dn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qo={current:void 0},Ec=vc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qo.current){const e=new Ng({});e.mount(window),e.setOptions({layoutScroll:!0}),Qo.current=e}return Qo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Og={pan:{Feature:ig},drag:{Feature:og,ProjectionNode:Ec,MeasureLayout:Ql}};function Mc(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&&te.postRender(()=>i(t,fn(t)))}class Bg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=up(t,(n,r)=>(Mc(this.node,r,"Start"),o=>Mc(this.node,o,"End"))))}unmount(){}}class zg extends tt{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=Qt(dn(this.node.current,"focus",()=>this.onFocus()),dn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ac(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&&te.postRender(()=>i(t,fn(t)))}class Hg extends tt{mount(){const{current:t}=this.node;t&&(this.unmount=pp(t,(n,r)=>(Ac(this.node,r,"Start"),(o,{success:i})=>Ac(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ei=new WeakMap,ti=new WeakMap,jg=e=>{const t=ei.get(e.target);t&&t(e)},Gg=e=>{e.forEach(jg)};function Ug({root:e,...t}){const n=e||document;ti.has(n)||ti.set(n,{});const r=ti.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Gg,{root:e,...t})),r[o]}function Wg(e,t,n){const r=Ug(t);return ei.set(e,n),r.observe(e),()=>{ei.delete(e),r.unobserve(e)}}const Kg={some:0,all:1};class qg extends tt{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:Kg[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(),f=c?d:u;f&&f(l)};return Wg(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(Yg(t,n))&&this.startObserver()}unmount(){}}function Yg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Xg={...Nm,...{inView:{Feature:qg},tap:{Feature:Hg},focus:{Feature:zg},hover:{Feature:Bg}},...Og,...{layout:{ProjectionNode:Ec,MeasureLayout:Ql}}},Ke=em(Xg,hm),Zg={sm:T`
|
|
235
235
|
width: 1.25rem;
|
|
236
236
|
height: 1.25rem;
|
|
237
237
|
`,md:T`
|
|
@@ -243,7 +243,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
243
243
|
`,xl:T`
|
|
244
244
|
width: 4rem;
|
|
245
245
|
height: 4rem;
|
|
246
|
-
`},
|
|
246
|
+
`},Vc={primary:T`
|
|
247
247
|
color: var(--color-main-blue-primary);
|
|
248
248
|
`,orange:T`
|
|
249
249
|
color: var(--color-main-orange-primary);
|
|
@@ -251,29 +251,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
251
251
|
color: var(--color-main-white);
|
|
252
252
|
`,gray:T`
|
|
253
253
|
color: var(--color-main-grey);
|
|
254
|
-
`},
|
|
254
|
+
`},Jg=$.div`
|
|
255
255
|
position: relative;
|
|
256
256
|
display: block;
|
|
257
|
-
${({$size:e="md"})=>
|
|
258
|
-
${({$color:e="primary"})=>
|
|
257
|
+
${({$size:e="md"})=>Zg[e]}
|
|
258
|
+
${({$color:e="primary"})=>Vc[e]}
|
|
259
259
|
user-select: none;
|
|
260
|
-
`,
|
|
260
|
+
`,Qg=$.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
|
+
`,e0=$.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
|
-
`,
|
|
272
|
+
`,t0=$(Ke.p)`
|
|
273
273
|
${V[16]}
|
|
274
|
-
${({$color:e="primary"})=>
|
|
274
|
+
${({$color:e="primary"})=>Vc[e]}
|
|
275
275
|
margin: 0;
|
|
276
|
-
`,
|
|
276
|
+
`,n0=({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
277
|
C42.999393,262.534088 27.711603,233.886490 21.140957,200.638245
|
|
278
278
|
C20.527918,197.536194 19.462318,196.344513 16.327942,196.535400
|
|
279
279
|
C12.711285,196.755646 9.070918,196.586609 4.251685,196.586609
|
|
@@ -290,7 +290,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
290
290
|
C231.681030,-17.750278 329.482361,42.974667 346.823608,138.519577
|
|
291
291
|
C363.551025,230.682480 301.903687,318.479523 209.509521,332.564972
|
|
292
292
|
C155.049683,340.867371 107.495514,325.072021 67.251411,286.749390
|
|
293
|
-
z`})}),t&&g.jsx("title",{children:t})]}),ir=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=g.jsxs(
|
|
293
|
+
z`})}),t&&g.jsx("title",{children:t})]}),ir=({size:e="md",color:t="primary",centered:n=!0,message:r,title:o,variant:i="rotate"})=>{const s=g.jsxs(Qg,{children:[g.jsx(Jg,{$size:e,$color:t,$variant:i,children:g.jsx(n0,{variant:i,title:o})}),r&&g.jsx(t0,{$color:t,animate:{opacity:[1,.5,1]},transition:{repeat:1/0,duration:2,ease:"easeInOut"},children:r})]});return n?g.jsx(e0,{children:s}):s},r0=$.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[Bn]+=1);const _r={80:T`
|
|
|
299
299
|
align-items: center;
|
|
300
300
|
justify-content: center;
|
|
301
301
|
z-index: 50;
|
|
302
|
-
`,
|
|
302
|
+
`,o0=$.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[Bn]+=1);const _r={80:T`
|
|
|
310
310
|
gap: 1rem;
|
|
311
311
|
width: 90%;
|
|
312
312
|
max-width: 24rem;
|
|
313
|
-
`,
|
|
313
|
+
`,i0=$.h2`
|
|
314
314
|
${_r[30]}
|
|
315
315
|
color: var(--color-main-blue-primary);
|
|
316
316
|
margin: 0 auto;
|
|
317
317
|
text-align: center;
|
|
318
|
-
`,
|
|
318
|
+
`,s0=({message:e="Loading...",color:t="primary",variant:n="rotate"})=>g.jsx(r0,{role:"status","aria-live":"polite",children:g.jsxs(o0,{children:[g.jsx(ir,{size:"xl",color:t,centered:!1,title:e,variant:n}),g.jsx(i0,{children:e})]})}),a0=$.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
|
+
`,Dc=({message:e,color:t="primary",variant:n="rotate"})=>g.jsx(a0,{role:"status","aria-live":"polite",children:g.jsx(ir,{size:"lg",color:t,centered:!1,message:e,title:e,variant:n})}),l0={primary:T`
|
|
325
325
|
background-color: var(--color-main-blue-primary);
|
|
326
326
|
color: var(--color-main-white);
|
|
327
327
|
|
|
@@ -376,12 +376,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
376
376
|
&:focus-visible {
|
|
377
377
|
outline-color: var(--color-main-blue-primary);
|
|
378
378
|
}
|
|
379
|
-
`},
|
|
379
|
+
`},c0=T`
|
|
380
380
|
background-color: var(--color-main-grey);
|
|
381
381
|
color: var(--color-dark-200);
|
|
382
382
|
cursor: not-allowed;
|
|
383
383
|
box-shadow: none;
|
|
384
|
-
`,
|
|
384
|
+
`,u0={sm:T`
|
|
385
385
|
padding: 0.375rem 0.75rem;
|
|
386
386
|
min-height: 2.75rem;
|
|
387
387
|
${V[12]}
|
|
@@ -393,7 +393,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
393
393
|
padding: 0.75rem 1.5rem;
|
|
394
394
|
min-height: 3.5rem;
|
|
395
395
|
${V[20]}
|
|
396
|
-
`},
|
|
396
|
+
`},d0=$.button`
|
|
397
397
|
border: none;
|
|
398
398
|
border-radius: var(--border-radius-button);
|
|
399
399
|
transition:
|
|
@@ -408,13 +408,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
408
408
|
outline: 2px solid transparent;
|
|
409
409
|
outline-offset: 2px;
|
|
410
410
|
|
|
411
|
-
${({$variant:e})=>
|
|
412
|
-
${({$size:e})=>
|
|
411
|
+
${({$variant:e})=>l0[e]}
|
|
412
|
+
${({$size:e})=>u0[e]}
|
|
413
413
|
|
|
414
414
|
&:disabled {
|
|
415
|
-
${
|
|
415
|
+
${c0}
|
|
416
416
|
}
|
|
417
|
-
`,Ut=({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(
|
|
417
|
+
`,Ut=({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(d0,{$variant:t,$size:n,disabled:o||r,"aria-busy":r,...c,children:[i&&g.jsx(K,{color:l,size:a,component:i}),r?"Loading...":e,s&&g.jsx(K,{color:l,size:a,component:s})]}),f0={sm:T`
|
|
418
418
|
padding: 0.25rem 0.625rem;
|
|
419
419
|
border-radius: var(--border-radius-button);
|
|
420
420
|
${V[12]}
|
|
@@ -426,7 +426,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
426
426
|
padding: 0.5rem 1rem;
|
|
427
427
|
border-radius: var(--border-radius-button);
|
|
428
428
|
${V[16]}
|
|
429
|
-
`},
|
|
429
|
+
`},h0={primary:T`
|
|
430
430
|
background-color: var(--color-main-blue-primary);
|
|
431
431
|
color: var(--color-main-white);
|
|
432
432
|
`,secondary:T`
|
|
@@ -444,7 +444,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
444
444
|
`,neutral:T`
|
|
445
445
|
background-color: var(--color-light-200);
|
|
446
446
|
color: var(--color-main-grey);
|
|
447
|
-
`,outline:T``},
|
|
447
|
+
`,outline:T``},p0=$.span`
|
|
448
448
|
display: inline-flex;
|
|
449
449
|
align-items: center;
|
|
450
450
|
gap: 0.375rem;
|
|
@@ -452,15 +452,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
452
452
|
white-space: nowrap;
|
|
453
453
|
user-select: none;
|
|
454
454
|
|
|
455
|
-
${({$size:e})=>
|
|
456
|
-
${({$variant:e})=>
|
|
455
|
+
${({$size:e})=>f0[e]}
|
|
456
|
+
${({$variant:e})=>h0[e]}
|
|
457
457
|
|
|
458
458
|
${({$variant:e,$outlineColor:t})=>e==="outline"?T`
|
|
459
459
|
background-color: transparent;
|
|
460
460
|
color: ${t||"var(--color-main-blue-primary)"};
|
|
461
461
|
border: 1px solid ${t||"var(--color-main-blue-primary)"};
|
|
462
462
|
`:""}
|
|
463
|
-
`,
|
|
463
|
+
`,m0=({children:e,variant:t="neutral",size:n="md",color:r,leftIcon:o,rightIcon:i,iconColor:s="currentColor",iconSize:a="sm",...l})=>g.jsxs(p0,{$variant:t,$size:n,$outlineColor:r,...l,children:[o&&g.jsx(K,{color:s,size:a,component:o}),e,i&&g.jsx(K,{color:s,size:a,component:i})]}),g0=$.div`
|
|
464
464
|
background-color: ${({$color:e})=>e};
|
|
465
465
|
${({$orientation:e,$length:t,$thickness:n})=>e==="horizontal"?`
|
|
466
466
|
height: ${n||"1px"};
|
|
@@ -469,10 +469,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
469
469
|
width: ${n||"1px"};
|
|
470
470
|
height: ${t||"100%"};
|
|
471
471
|
`}
|
|
472
|
-
`,
|
|
472
|
+
`,y0=({orientation:e="horizontal",color:t="var(--color-dark-300)",length:n,thickness:r,className:o=""})=>g.jsx(g0,{$orientation:e,$color:t,$length:n,$thickness:r,className:o,role:"separator","aria-orientation":e}),v0=$.span`
|
|
473
473
|
${({$size:e})=>V[e]}
|
|
474
474
|
color: ${({$color:e})=>e||"var(--color-main-grey)"};
|
|
475
|
-
`,mn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(y0,{$size:t,$color:n,className:r,style:o,children:e});function v0(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 w0=e=>{switch(e){case"success":return S0;case"info":return T0;case"warning":return C0;case"error":return k0;default:return null}},b0=Array(12).fill(0),x0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},b0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),S0=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"})),C0=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"})),T0=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"})),k0=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"})),$0=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"})),P0=()=>{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 ni=1;class E0{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:ni++,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(A0(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=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:f,...m})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=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:f,...m})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=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:f,...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,h=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...h})}}).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||ni++;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 E0,M0=(e,t)=>{const n=t?.id||ni++;return xe.addToast({title:e,...t,id:n}),n},A0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",V0=M0,D0=()=>xe.toasts,F0=()=>xe.getActiveToasts(),I0=Object.assign(V0,{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:D0,getToasts:F0});v0("[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 sr(e){return e.label!==void 0}const R0=3,L0="24px",_0="16px",Vc=4e3,N0=356,O0=14,B0=45,z0=200;function ze(...e){return e.filter(Boolean).join(" ")}function H0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const j0=e=>{var t,n,r,o,i,s,a,l,c;const{invert:d,toast:u,unstyled:f,interacting:h,setHeights:m,visibleToasts:y,heights:w,index:v,toasts:x,expanded:b,removeToast:$,defaultRichColors:S,closeButton:P,style:E,cancelButtonStyle:M,actionButtonStyle:L,className:_="",descriptionClassName:G="",duration:U,position:Q,gap:W,expandByDefault:X,classNames:R,icons:D,closeButtonAriaLabel:j="Close toast"}=e,[q,Z]=p.useState(null),[fe,ae]=p.useState(null),[B,ee]=p.useState(!1),[Y,ce]=p.useState(!1),[Le,z]=p.useState(!1),[Se,st]=p.useState(!1),[Ye,ve]=p.useState(!1),[rb,Bi]=p.useState(0),[ob,nd]=p.useState(0),Sn=p.useRef(u.duration||U||Vc),rd=p.useRef(null),Xe=p.useRef(null),ib=v===0,sb=v+1<=y,Te=u.type,qt=u.dismissible!==!1,ab=u.className||"",lb=u.descriptionClassName||"",yr=p.useMemo(()=>w.findIndex(N=>N.toastId===u.id)||0,[w,u.id]),cb=p.useMemo(()=>{var N;return(N=u.closeButton)!=null?N:P},[u.closeButton,P]),od=p.useMemo(()=>u.duration||U||Vc,[u.duration,U]),zi=p.useRef(0),Yt=p.useRef(0),id=p.useRef(0),Xt=p.useRef(null),[ub,db]=Q.split("-"),sd=p.useMemo(()=>w.reduce((N,ue,ge)=>ge>=yr?N:N+ue.height,0),[w,yr]),ad=P0(),fb=u.invert||d,Hi=Te==="loading";Yt.current=p.useMemo(()=>yr*W+sd,[yr,sd]),p.useEffect(()=>{Sn.current=od},[od]),p.useEffect(()=>{ee(!0)},[]),p.useEffect(()=>{const N=Xe.current;if(N){const ue=N.getBoundingClientRect().height;return nd(ue),m(ge=>[{toastId:u.id,height:ue,position:u.position},...ge]),()=>m(ge=>ge.filter(ke=>ke.toastId!==u.id))}},[m,u.id]),p.useLayoutEffect(()=>{if(!B)return;const N=Xe.current,ue=N.style.height;N.style.height="auto";const ge=N.getBoundingClientRect().height;N.style.height=ue,nd(ge),m(ke=>ke.find(he=>he.toastId===u.id)?ke.map(he=>he.toastId===u.id?{...he,height:ge}:he):[{toastId:u.id,height:ge,position:u.position},...ke])},[B,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);const at=p.useCallback(()=>{ce(!0),Bi(Yt.current),m(N=>N.filter(ue=>ue.toastId!==u.id)),setTimeout(()=>{$(u)},z0)},[u,$,m,Yt]);p.useEffect(()=>{if(u.promise&&Te==="loading"||u.duration===1/0||u.type==="loading")return;let N;return b||h||ad?(()=>{if(id.current<zi.current){const ke=new Date().getTime()-zi.current;Sn.current=Sn.current-ke}id.current=new Date().getTime()})():Sn.current!==1/0&&(zi.current=new Date().getTime(),N=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),at()},Sn.current)),()=>clearTimeout(N)},[b,h,u,Te,ad,at]),p.useEffect(()=>{u.delete&&(at(),u.onDismiss==null||u.onDismiss.call(u,u))},[at,u.delete]);function hb(){var N;if(D?.loading){var ue;return p.createElement("div",{className:ze(R?.loader,u==null||(ue=u.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":Te==="loading"},D.loading)}return p.createElement(x0,{className:ze(R?.loader,u==null||(N=u.classNames)==null?void 0:N.loader),visible:Te==="loading"})}const pb=u.icon||D?.[Te]||w0(Te);var ld,cd;return p.createElement("li",{tabIndex:0,ref:Xe,className:ze(_,ab,R?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,R?.default,R?.[Te],u==null||(n=u.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(ld=u.richColors)!=null?ld:S,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":B,"data-promise":!!u.promise,"data-swiped":Ye,"data-removed":Y,"data-visible":sb,"data-y-position":ub,"data-x-position":db,"data-index":v,"data-front":ib,"data-swiping":Le,"data-dismissible":qt,"data-type":Te,"data-invert":fb,"data-swipe-out":Se,"data-swipe-direction":fe,"data-expanded":!!(b||X&&B),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":x.length-v,"--offset":`${Y?rb:Yt.current}px`,"--initial-height":X?"auto":`${ob}px`,...E,...u.style},onDragEnd:()=>{z(!1),Z(null),Xt.current=null},onPointerDown:N=>{N.button!==2&&(Hi||!qt||(rd.current=new Date,Bi(Yt.current),N.target.setPointerCapture(N.pointerId),N.target.tagName!=="BUTTON"&&(z(!0),Xt.current={x:N.clientX,y:N.clientY})))},onPointerUp:()=>{var N,ue,ge;if(Se||!qt)return;Xt.current=null;const ke=Number(((N=Xe.current)==null?void 0:N.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vr=Number(((ue=Xe.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=rd.current)==null?void 0:ge.getTime()),Ae=q==="x"?ke:vr,wr=Math.abs(Ae)/he;if(Math.abs(Ae)>=B0||wr>.11){Bi(Yt.current),u.onDismiss==null||u.onDismiss.call(u,u),ae(q==="x"?ke>0?"right":"left":vr>0?"down":"up"),at(),st(!0);return}else{var _e,Ne;(_e=Xe.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Xe.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ve(!1),z(!1),Z(null)},onPointerMove:N=>{var ue,ge,ke;if(!Xt.current||!qt||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;const he=N.clientY-Xt.current.y,Ae=N.clientX-Xt.current.x;var wr;const _e=(wr=e.swipeDirections)!=null?wr:H0(Q);!q&&(Math.abs(Ae)>1||Math.abs(he)>1)&&Z(Math.abs(Ae)>Math.abs(he)?"x":"y");let Ne={x:0,y:0};const ud=St=>1/(1.5+Math.abs(St)/20);if(q==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&he<0||_e.includes("bottom")&&he>0)Ne.y=he;else{const St=he*ud(he);Ne.y=Math.abs(St)<Math.abs(he)?St:he}}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 St=Ae*ud(Ae);Ne.x=Math.abs(St)<Math.abs(Ae)?St:Ae}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ve(!0),(ge=Xe.current)==null||ge.style.setProperty("--swipe-amount-x",`${Ne.x}px`),(ke=Xe.current)==null||ke.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},cb&&!u.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":j,"data-disabled":Hi,"data-close-button":!0,onClick:Hi||!qt?()=>{}:()=>{at(),u.onDismiss==null||u.onDismiss.call(u,u)},className:ze(R?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(cd=D?.close)!=null?cd:$0):null,(Te||u.icon||u.promise)&&u.icon!==null&&(D?.[Te]!==null||u.icon)?p.createElement("div",{"data-icon":"",className:ze(R?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||hb():null,u.type!=="loading"?pb:null):null,p.createElement("div",{"data-content":"",className:ze(R?.content,u==null||(i=u.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:ze(R?.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:ze(G,lb,R?.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&&sr(u.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||M,onClick:N=>{sr(u.cancel)&&qt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,N),at())},className:ze(R?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,p.isValidElement(u.action)?u.action:u.action&&sr(u.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||L,onClick:N=>{sr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,N),!N.defaultPrevented&&at())},className:ze(R?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Dc(){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 G0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?_0:L0;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 U0=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:f="light",richColors:h,duration:m,style:y,visibleToasts:w=R0,toastOptions:v,dir:x=Dc(),gap:b=O0,icons:$,containerAriaLabel:S="Notifications"}=t,[P,E]=p.useState([]),M=p.useMemo(()=>r?P.filter(B=>B.toasterId===r):P.filter(B=>!B.toasterId),[P,r]),L=p.useMemo(()=>Array.from(new Set([i].concat(M.filter(B=>B.position).map(B=>B.position)))),[M,i]),[_,G]=p.useState([]),[U,Q]=p.useState(!1),[W,X]=p.useState(!1),[R,D]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=p.useRef(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=p.useRef(null),fe=p.useRef(!1),ae=p.useCallback(B=>{E(ee=>{var Y;return(Y=ee.find(ce=>ce.id===B.id))!=null&&Y.delete||xe.dismiss(B.id),ee.filter(({id:ce})=>ce!==B.id)})},[]);return p.useEffect(()=>xe.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{E(ee=>ee.map(Y=>Y.id===B.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{ji.flushSync(()=>{E(ee=>{const Y=ee.findIndex(ce=>ce.id===B.id);return Y!==-1?[...ee.slice(0,Y),{...ee[Y],...B},...ee.slice(Y+1)]:[B,...ee]})})})}),[P]),p.useEffect(()=>{if(f!=="system"){D(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:ee})=>{D(ee?"dark":"light")})}catch{B.addListener(({matches:Y})=>{try{D(Y?"dark":"light")}catch(ce){console.error(ce)}})}},[f]),p.useEffect(()=>{P.length<=1&&Q(!1)},[P]),p.useEffect(()=>{const B=ee=>{var Y;if(s.every(z=>ee[z]||ee.code===z)){var Le;Q(!0),(Le=j.current)==null||Le.focus()}ee.code==="Escape"&&(document.activeElement===j.current||(Y=j.current)!=null&&Y.contains(document.activeElement))&&Q(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),p.useEffect(()=>{if(j.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,fe.current=!1)}},[j.current]),p.createElement("section",{ref:n,"aria-label":`${S} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((B,ee)=>{var Y;const[ce,Le]=B.split("-");return M.length?p.createElement("ol",{key:B,dir:x==="auto"?Dc():x,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":ce,"data-x-position":Le,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${N0}px`,"--gap":`${b}px`,...y,...G0(d,u)},onBlur:z=>{fe.current&&!z.currentTarget.contains(z.relatedTarget)&&(fe.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,Z.current=z.relatedTarget)},onMouseEnter:()=>Q(!0),onMouseMove:()=>Q(!0),onMouseLeave:()=>{W||Q(!1)},onDragEnd:()=>Q(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},M.filter(z=>!z.position&&ee===0||z.position===B).map((z,Se)=>{var st,Ye;return p.createElement(j0,{key:z.id,icons:$,index:Se,toast:z,defaultRichColors:h,duration:(st=v?.duration)!=null?st:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Ye=v?.closeButton)!=null?Ye:l,interacting:W,position:B,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:ae,toasts:M.filter(ve=>ve.position==z.position),heights:_.filter(ve=>ve.position==z.position),setHeights:G,expandByDefault:a,gap:b,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),W0=({spinnerColor:e="orange",...t})=>g.jsx(U0,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(ir,{color:e,size:"sm"})},...t}),K0={elevated:T`
|
|
475
|
+
`,mn=({children:e,size:t=16,color:n,className:r,style:o})=>g.jsx(v0,{$size:t,$color:n,className:r,style:o,children:e});function w0(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 b0=e=>{switch(e){case"success":return C0;case"info":return $0;case"warning":return T0;case"error":return k0;default:return null}},x0=Array(12).fill(0),S0=({visible:e,className:t})=>p.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},p.createElement("div",{className:"sonner-spinner"},x0.map((n,r)=>p.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),C0=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"})),T0=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"})),$0=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"})),k0=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"})),P0=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"})),E0=()=>{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 ni=1;class M0{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:ni++,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(V0(c)&&!c.ok){i=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=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:f,...m})}else if(c instanceof Error){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=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:f,...m})}else if(n.success!==void 0){i=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=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:f,...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,h=typeof d=="object"&&!p.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:u,...h})}}).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||ni++;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 M0,A0=(e,t)=>{const n=t?.id||ni++;return xe.addToast({title:e,...t,id:n}),n},V0=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",D0=A0,F0=()=>xe.toasts,I0=()=>xe.getActiveToasts(),R0=Object.assign(D0,{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:F0,getToasts:I0});w0("[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 sr(e){return e.label!==void 0}const L0=3,_0="24px",N0="16px",Fc=4e3,O0=356,B0=14,z0=45,H0=200;function ze(...e){return e.filter(Boolean).join(" ")}function j0(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const G0=e=>{var t,n,r,o,i,s,a,l,c;const{invert:d,toast:u,unstyled:f,interacting:h,setHeights:m,visibleToasts:y,heights:w,index:v,toasts:C,expanded:b,removeToast:k,defaultRichColors:x,closeButton:P,style:E,cancelButtonStyle:M,actionButtonStyle:L,className:_="",descriptionClassName:G="",duration:U,position:X,gap:W,expandByDefault:Z,classNames:R,icons:D,closeButtonAriaLabel:j="Close toast"}=e,[q,J]=p.useState(null),[fe,ae]=p.useState(null),[B,ee]=p.useState(!1),[Y,ce]=p.useState(!1),[Le,z]=p.useState(!1),[Se,st]=p.useState(!1),[Ye,ve]=p.useState(!1),[nb,Hi]=p.useState(0),[rb,rd]=p.useState(0),Sn=p.useRef(u.duration||U||Fc),od=p.useRef(null),Xe=p.useRef(null),ob=v===0,ib=v+1<=y,Te=u.type,qt=u.dismissible!==!1,sb=u.className||"",ab=u.descriptionClassName||"",yr=p.useMemo(()=>w.findIndex(N=>N.toastId===u.id)||0,[w,u.id]),lb=p.useMemo(()=>{var N;return(N=u.closeButton)!=null?N:P},[u.closeButton,P]),id=p.useMemo(()=>u.duration||U||Fc,[u.duration,U]),ji=p.useRef(0),Yt=p.useRef(0),sd=p.useRef(0),Xt=p.useRef(null),[cb,ub]=X.split("-"),ad=p.useMemo(()=>w.reduce((N,ue,ge)=>ge>=yr?N:N+ue.height,0),[w,yr]),ld=E0(),db=u.invert||d,Gi=Te==="loading";Yt.current=p.useMemo(()=>yr*W+ad,[yr,ad]),p.useEffect(()=>{Sn.current=id},[id]),p.useEffect(()=>{ee(!0)},[]),p.useEffect(()=>{const N=Xe.current;if(N){const ue=N.getBoundingClientRect().height;return rd(ue),m(ge=>[{toastId:u.id,height:ue,position:u.position},...ge]),()=>m(ge=>ge.filter($e=>$e.toastId!==u.id))}},[m,u.id]),p.useLayoutEffect(()=>{if(!B)return;const N=Xe.current,ue=N.style.height;N.style.height="auto";const ge=N.getBoundingClientRect().height;N.style.height=ue,rd(ge),m($e=>$e.find(he=>he.toastId===u.id)?$e.map(he=>he.toastId===u.id?{...he,height:ge}:he):[{toastId:u.id,height:ge,position:u.position},...$e])},[B,u.title,u.description,m,u.id,u.jsx,u.action,u.cancel]);const at=p.useCallback(()=>{ce(!0),Hi(Yt.current),m(N=>N.filter(ue=>ue.toastId!==u.id)),setTimeout(()=>{k(u)},H0)},[u,k,m,Yt]);p.useEffect(()=>{if(u.promise&&Te==="loading"||u.duration===1/0||u.type==="loading")return;let N;return b||h||ld?(()=>{if(sd.current<ji.current){const $e=new Date().getTime()-ji.current;Sn.current=Sn.current-$e}sd.current=new Date().getTime()})():Sn.current!==1/0&&(ji.current=new Date().getTime(),N=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),at()},Sn.current)),()=>clearTimeout(N)},[b,h,u,Te,ld,at]),p.useEffect(()=>{u.delete&&(at(),u.onDismiss==null||u.onDismiss.call(u,u))},[at,u.delete]);function fb(){var N;if(D?.loading){var ue;return p.createElement("div",{className:ze(R?.loader,u==null||(ue=u.classNames)==null?void 0:ue.loader,"sonner-loader"),"data-visible":Te==="loading"},D.loading)}return p.createElement(S0,{className:ze(R?.loader,u==null||(N=u.classNames)==null?void 0:N.loader),visible:Te==="loading"})}const hb=u.icon||D?.[Te]||b0(Te);var cd,ud;return p.createElement("li",{tabIndex:0,ref:Xe,className:ze(_,sb,R?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,R?.default,R?.[Te],u==null||(n=u.classNames)==null?void 0:n[Te]),"data-sonner-toast":"","data-rich-colors":(cd=u.richColors)!=null?cd:x,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":B,"data-promise":!!u.promise,"data-swiped":Ye,"data-removed":Y,"data-visible":ib,"data-y-position":cb,"data-x-position":ub,"data-index":v,"data-front":ob,"data-swiping":Le,"data-dismissible":qt,"data-type":Te,"data-invert":db,"data-swipe-out":Se,"data-swipe-direction":fe,"data-expanded":!!(b||Z&&B),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":C.length-v,"--offset":`${Y?nb:Yt.current}px`,"--initial-height":Z?"auto":`${rb}px`,...E,...u.style},onDragEnd:()=>{z(!1),J(null),Xt.current=null},onPointerDown:N=>{N.button!==2&&(Gi||!qt||(od.current=new Date,Hi(Yt.current),N.target.setPointerCapture(N.pointerId),N.target.tagName!=="BUTTON"&&(z(!0),Xt.current={x:N.clientX,y:N.clientY})))},onPointerUp:()=>{var N,ue,ge;if(Se||!qt)return;Xt.current=null;const $e=Number(((N=Xe.current)==null?void 0:N.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),vr=Number(((ue=Xe.current)==null?void 0:ue.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),he=new Date().getTime()-((ge=od.current)==null?void 0:ge.getTime()),Ae=q==="x"?$e:vr,wr=Math.abs(Ae)/he;if(Math.abs(Ae)>=z0||wr>.11){Hi(Yt.current),u.onDismiss==null||u.onDismiss.call(u,u),ae(q==="x"?$e>0?"right":"left":vr>0?"down":"up"),at(),st(!0);return}else{var _e,Ne;(_e=Xe.current)==null||_e.style.setProperty("--swipe-amount-x","0px"),(Ne=Xe.current)==null||Ne.style.setProperty("--swipe-amount-y","0px")}ve(!1),z(!1),J(null)},onPointerMove:N=>{var ue,ge,$e;if(!Xt.current||!qt||((ue=window.getSelection())==null?void 0:ue.toString().length)>0)return;const he=N.clientY-Xt.current.y,Ae=N.clientX-Xt.current.x;var wr;const _e=(wr=e.swipeDirections)!=null?wr:j0(X);!q&&(Math.abs(Ae)>1||Math.abs(he)>1)&&J(Math.abs(Ae)>Math.abs(he)?"x":"y");let Ne={x:0,y:0};const dd=St=>1/(1.5+Math.abs(St)/20);if(q==="y"){if(_e.includes("top")||_e.includes("bottom"))if(_e.includes("top")&&he<0||_e.includes("bottom")&&he>0)Ne.y=he;else{const St=he*dd(he);Ne.y=Math.abs(St)<Math.abs(he)?St:he}}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 St=Ae*dd(Ae);Ne.x=Math.abs(St)<Math.abs(Ae)?St:Ae}(Math.abs(Ne.x)>0||Math.abs(Ne.y)>0)&&ve(!0),(ge=Xe.current)==null||ge.style.setProperty("--swipe-amount-x",`${Ne.x}px`),($e=Xe.current)==null||$e.style.setProperty("--swipe-amount-y",`${Ne.y}px`)}},lb&&!u.jsx&&Te!=="loading"?p.createElement("button",{"aria-label":j,"data-disabled":Gi,"data-close-button":!0,onClick:Gi||!qt?()=>{}:()=>{at(),u.onDismiss==null||u.onDismiss.call(u,u)},className:ze(R?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(ud=D?.close)!=null?ud:P0):null,(Te||u.icon||u.promise)&&u.icon!==null&&(D?.[Te]!==null||u.icon)?p.createElement("div",{"data-icon":"",className:ze(R?.icon,u==null||(o=u.classNames)==null?void 0:o.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||fb():null,u.type!=="loading"?hb:null):null,p.createElement("div",{"data-content":"",className:ze(R?.content,u==null||(i=u.classNames)==null?void 0:i.content)},p.createElement("div",{"data-title":"",className:ze(R?.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:ze(G,ab,R?.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&&sr(u.cancel)?p.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||M,onClick:N=>{sr(u.cancel)&&qt&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,N),at())},className:ze(R?.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,p.isValidElement(u.action)?u.action:u.action&&sr(u.action)?p.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||L,onClick:N=>{sr(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,N),!N.defaultPrevented&&at())},className:ze(R?.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Ic(){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 U0(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?N0:_0;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 W0=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:f="light",richColors:h,duration:m,style:y,visibleToasts:w=L0,toastOptions:v,dir:C=Ic(),gap:b=B0,icons:k,containerAriaLabel:x="Notifications"}=t,[P,E]=p.useState([]),M=p.useMemo(()=>r?P.filter(B=>B.toasterId===r):P.filter(B=>!B.toasterId),[P,r]),L=p.useMemo(()=>Array.from(new Set([i].concat(M.filter(B=>B.position).map(B=>B.position)))),[M,i]),[_,G]=p.useState([]),[U,X]=p.useState(!1),[W,Z]=p.useState(!1),[R,D]=p.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=p.useRef(null),q=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=p.useRef(null),fe=p.useRef(!1),ae=p.useCallback(B=>{E(ee=>{var Y;return(Y=ee.find(ce=>ce.id===B.id))!=null&&Y.delete||xe.dismiss(B.id),ee.filter(({id:ce})=>ce!==B.id)})},[]);return p.useEffect(()=>xe.subscribe(B=>{if(B.dismiss){requestAnimationFrame(()=>{E(ee=>ee.map(Y=>Y.id===B.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{Ui.flushSync(()=>{E(ee=>{const Y=ee.findIndex(ce=>ce.id===B.id);return Y!==-1?[...ee.slice(0,Y),{...ee[Y],...B},...ee.slice(Y+1)]:[B,...ee]})})})}),[P]),p.useEffect(()=>{if(f!=="system"){D(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:ee})=>{D(ee?"dark":"light")})}catch{B.addListener(({matches:Y})=>{try{D(Y?"dark":"light")}catch(ce){console.error(ce)}})}},[f]),p.useEffect(()=>{P.length<=1&&X(!1)},[P]),p.useEffect(()=>{const B=ee=>{var Y;if(s.every(z=>ee[z]||ee.code===z)){var Le;X(!0),(Le=j.current)==null||Le.focus()}ee.code==="Escape"&&(document.activeElement===j.current||(Y=j.current)!=null&&Y.contains(document.activeElement))&&X(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),p.useEffect(()=>{if(j.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,fe.current=!1)}},[j.current]),p.createElement("section",{ref:n,"aria-label":`${x} ${q}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((B,ee)=>{var Y;const[ce,Le]=B.split("-");return M.length?p.createElement("ol",{key:B,dir:C==="auto"?Ic():C,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":R,"data-y-position":ce,"data-x-position":Le,style:{"--front-toast-height":`${((Y=_[0])==null?void 0:Y.height)||0}px`,"--width":`${O0}px`,"--gap":`${b}px`,...y,...U0(d,u)},onBlur:z=>{fe.current&&!z.currentTarget.contains(z.relatedTarget)&&(fe.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||fe.current||(fe.current=!0,J.current=z.relatedTarget)},onMouseEnter:()=>X(!0),onMouseMove:()=>X(!0),onMouseLeave:()=>{W||X(!1)},onDragEnd:()=>X(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},M.filter(z=>!z.position&&ee===0||z.position===B).map((z,Se)=>{var st,Ye;return p.createElement(G0,{key:z.id,icons:k,index:Se,toast:z,defaultRichColors:h,duration:(st=v?.duration)!=null?st:m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(Ye=v?.closeButton)!=null?Ye:l,interacting:W,position:B,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:ae,toasts:M.filter(ve=>ve.position==z.position),heights:_.filter(ve=>ve.position==z.position),setHeights:G,expandByDefault:a,gap:b,expanded:U,swipeDirections:t.swipeDirections})})):null}))}),K0=({spinnerColor:e="orange",...t})=>g.jsx(W0,{position:"bottom-center",theme:"light",richColors:!0,visibleToasts:3,closeButton:!0,duration:3e3,mobileOffset:{bottom:"16px"},toastOptions:{className:"my-toast"},icons:{loading:g.jsx(ir,{color:e,size:"sm"})},...t}),q0={elevated:T`
|
|
476
476
|
background-color: var(--color-main-white);
|
|
477
477
|
box-shadow: var(--shadow-black-card);
|
|
478
478
|
border: none;
|
|
@@ -499,7 +499,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
499
499
|
&:active {
|
|
500
500
|
border: none;
|
|
501
501
|
}
|
|
502
|
-
`},
|
|
502
|
+
`},Y0={sm:T`
|
|
503
503
|
padding: 0.75rem;
|
|
504
504
|
gap: 0.5rem;
|
|
505
505
|
`,md:T`
|
|
@@ -508,7 +508,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
508
508
|
`,lg:T`
|
|
509
509
|
padding: 1.25rem;
|
|
510
510
|
gap: 0.5rem;
|
|
511
|
-
`},
|
|
511
|
+
`},X0=T`
|
|
512
512
|
transition:
|
|
513
513
|
box-shadow 0.3s ease-out,
|
|
514
514
|
background-color 0.3s ease-out,
|
|
@@ -528,7 +528,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
528
528
|
&:focus-visible {
|
|
529
529
|
outline-color: var(--color-main-blue-primary);
|
|
530
530
|
}
|
|
531
|
-
`,
|
|
531
|
+
`,Z0=T`
|
|
532
532
|
opacity: 0.6;
|
|
533
533
|
cursor: not-allowed;
|
|
534
534
|
pointer-events: none;
|
|
@@ -537,7 +537,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
537
537
|
transform: none;
|
|
538
538
|
box-shadow: inherit;
|
|
539
539
|
}
|
|
540
|
-
`,
|
|
540
|
+
`,J0=$.div`
|
|
541
541
|
display: flex;
|
|
542
542
|
flex-direction: column;
|
|
543
543
|
border-radius: var(--border-radius-card);
|
|
@@ -545,11 +545,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
545
545
|
height: 100%;
|
|
546
546
|
outline: 2px solid transparent;
|
|
547
547
|
outline-offset: -1px;
|
|
548
|
-
${({$variant:e})=>
|
|
549
|
-
${({$clickable:e})=>e&&
|
|
550
|
-
${({$disabled:e})=>e&&
|
|
551
|
-
${({$size:e})=>
|
|
552
|
-
`,
|
|
548
|
+
${({$variant:e})=>q0[e]}
|
|
549
|
+
${({$clickable:e})=>e&&X0}
|
|
550
|
+
${({$disabled:e})=>e&&Z0}
|
|
551
|
+
${({$size:e})=>Y0[e]}
|
|
552
|
+
`,Q0=({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(J0,{$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})},ey=$.div`
|
|
553
553
|
display: flex;
|
|
554
554
|
align-items: center;
|
|
555
555
|
align-self: stretch;
|
|
@@ -559,16 +559,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
559
559
|
border-bottom: 1px solid var(--color-divider);
|
|
560
560
|
padding-bottom: 0.5rem;
|
|
561
561
|
`}
|
|
562
|
-
`,
|
|
562
|
+
`,ty=({children:e,showDivider:t=!1,...n})=>g.jsx(ey,{$showDivider:t,...n,children:e}),ny=$.div`
|
|
563
563
|
flex: 1;
|
|
564
564
|
display: flex;
|
|
565
565
|
flex-direction: column;
|
|
566
|
-
`,
|
|
566
|
+
`,ry=({children:e,showDivider:t=!1,...n})=>g.jsx(ny,{$showDivider:t,...n,children:e}),oy=$.div`
|
|
567
567
|
display: flex;
|
|
568
568
|
align-items: center;
|
|
569
569
|
align-self: stretch;
|
|
570
570
|
gap: 0.5rem;
|
|
571
|
-
`,
|
|
571
|
+
`,iy=({children:e,...t})=>g.jsx(oy,{...t,children:e}),sy={xs:T`
|
|
572
572
|
${V[12]}
|
|
573
573
|
`,sm:T`
|
|
574
574
|
${V[12]}
|
|
@@ -576,15 +576,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
576
576
|
${V[16]}
|
|
577
577
|
`,lg:T`
|
|
578
578
|
${V[18]}
|
|
579
|
-
`},
|
|
579
|
+
`},ay=$.div`
|
|
580
580
|
color: var(--color-main-warning-state);
|
|
581
|
-
${({$size:e})=>
|
|
581
|
+
${({$size:e})=>sy[e]}
|
|
582
582
|
font-weight: 400;
|
|
583
583
|
margin-top: 0.25rem;
|
|
584
584
|
display: flex;
|
|
585
585
|
align-items: flex-start;
|
|
586
586
|
gap: 0.25rem;
|
|
587
|
-
`,ri=({children:e,className:t,size:n="md",...r})=>g.jsx(
|
|
587
|
+
`,ri=({children:e,className:t,size:n="md",...r})=>g.jsx(ay,{className:t,$size:n,...r,children:e}),ly={xs:T`
|
|
588
588
|
${V[14]}
|
|
589
589
|
`,sm:T`
|
|
590
590
|
${V[16]}
|
|
@@ -592,15 +592,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
592
592
|
${V[24]}
|
|
593
593
|
`,lg:T`
|
|
594
594
|
${V[30]}
|
|
595
|
-
`},
|
|
595
|
+
`},cy=$.label`
|
|
596
596
|
color: var(--color-main-blue-primary);
|
|
597
|
-
${({$size:e})=>
|
|
598
|
-
${({$disabled:e})=>e&&
|
|
597
|
+
${({$size:e})=>ly[e]}
|
|
598
|
+
${({$disabled:e})=>e&&uy}
|
|
599
599
|
cursor: ${({$disabled:e,$htmlFor:t})=>e||!t?"default":"pointer"};
|
|
600
|
-
`,
|
|
600
|
+
`,uy=T`
|
|
601
601
|
cursor: not-allowed;
|
|
602
602
|
opacity: 0.6;
|
|
603
|
-
`,ar=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(
|
|
603
|
+
`,ar=({children:e,htmlFor:t,className:n,required:r,disabled:o=!1,size:i="md",...s})=>g.jsxs(cy,{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:"*"})]}),Rc=["text","email","password","number","tel","url","date","datetime-local","time","search","textarea","select","checkbox","radio","pin"],Lc=e=>Rc.includes(e),nt=e=>e.map(t=>({name:t.name||"",label:t.label||"",type:t.type&&Lc(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})),dy=e=>e.map(t=>({value:t.value,label:t.label})),fy={text:(e,t,n)=>nt([{name:e,label:t,type:"text",...n}])[0],email:(e,t,n)=>nt([{name:e,label:t,type:"email",required:!0,...n}])[0],password:(e,t,n)=>nt([{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)=>nt([{name:e,label:t,type:"select",options:n,required:!0,...r}])[0],checkbox:(e,t,n)=>nt([{name:e,label:t,type:"checkbox",checkboxLabel:t,...n}])[0],radio:(e,t,n,r)=>nt([{name:e,label:t,type:"radio",options:n,radioName:e,required:!0,...r}])[0],pin:(e,t,n=6,r)=>nt([{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]},hy=(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"}}}},bt=T`
|
|
604
604
|
display: flex;
|
|
605
605
|
justify-content: space-between;
|
|
606
606
|
align-items: center;
|
|
@@ -658,7 +658,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
658
658
|
border: var(--border-input-disabled) !important;
|
|
659
659
|
cursor: not-allowed;
|
|
660
660
|
opacity: 0.6;
|
|
661
|
-
`,
|
|
661
|
+
`,_c=T`
|
|
662
662
|
border: none;
|
|
663
663
|
border-top: 0;
|
|
664
664
|
border-right: 0;
|
|
@@ -706,29 +706,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
706
706
|
justify-content: center;
|
|
707
707
|
flex-shrink: 0;
|
|
708
708
|
user-select: none;
|
|
709
|
-
`,
|
|
709
|
+
`,py=$.div`
|
|
710
710
|
${bt}
|
|
711
711
|
${({$size:e})=>gn[e]}
|
|
712
712
|
${({$hasError:e})=>e&&xt}
|
|
713
713
|
${({$disabled:e})=>e&&rt}
|
|
714
|
-
${({$isFlushed:e})=>e&&
|
|
715
|
-
`,
|
|
714
|
+
${({$isFlushed:e})=>e&&_c}
|
|
715
|
+
`,my=$.input`
|
|
716
716
|
${lr}
|
|
717
|
-
`,oi=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(hy,{$size:e,$hasError:t,className:c,$isFlushed:o,children:[i&&g.jsx(K,{component:i,size:a,color:n?"var(--color-dark-200)":l}),g.jsx(py,{ref:u,type:r,$hasError:t,disabled:n,...d}),s&&g.jsx(K,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));oi.displayName="BaseInput";const my=({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"})),Lc=({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"})),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:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})),yy=({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"})),_c=({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"})),vy=({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"})),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:"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"})),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:"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"})),xy=({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"})),Sy=({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"})),Cy=({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"})),Nc=({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"})),Ty=({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"})),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:"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"})),Oc=({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"})),$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 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"})),Py=({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"})),Ey=({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"})),My=({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"})),Ay=k.div`
|
|
717
|
+
`,oi=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(py,{$size:e,$hasError:t,className:c,$isFlushed:o,children:[i&&g.jsx(K,{component:i,size:a,color:n?"var(--color-dark-200)":l}),g.jsx(my,{ref:u,type:r,$hasError:t,disabled:n,...d}),s&&g.jsx(K,{component:s,size:a,color:n?"var(--color-dark-200)":l})]}));oi.displayName="BaseInput";const 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:"M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z"})),Nc=({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"})),yy=({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"})),vy=({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"})),Oc=({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"})),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:"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"})),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:"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"})),xy=({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"})),Sy=({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"})),Cy=({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"})),Ty=({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"})),Bc=({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"})),$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:"M20 17H22V19H2V17H4V10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10V17ZM9 21H15V23H9V21Z"})),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:"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"})),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:"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"})),Py=({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"})),Ey=({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"})),My=({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"})),Ay=({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"})),Vy=$.div`
|
|
718
718
|
${bt}
|
|
719
719
|
${({$size:e})=>gn[e??"md"]}
|
|
720
720
|
${({$hasError:e})=>e&&xt}
|
|
721
721
|
${({$disabled:e})=>e&&rt}
|
|
722
722
|
position: relative;
|
|
723
|
-
`,
|
|
723
|
+
`,Dy=$.input`
|
|
724
724
|
${lr}
|
|
725
|
-
`,
|
|
725
|
+
`,Fy=$.span`
|
|
726
726
|
${cr}
|
|
727
727
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
728
|
-
`,
|
|
728
|
+
`,Hc=({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(f=>!f);return g.jsxs(Vy,{$size:e,$hasError:i,$disabled:s,className:a,children:[t&&g.jsx(K,{component:t,size:n,color:s?"var(--color-dark-200)":r}),g.jsx(Dy,{type:c?"text":"password",placeholder:o,disabled:s,...l}),g.jsx(Fy,{$disabled:s,onClick:s?void 0:u,children:g.jsx(K,{component:c?xy:by,size:n,color:s?"var(--color-dark-200)":r})})]})},jc=e=>{const t=e.findIndex(n=>!n.disabled);return t!==-1?t:0},Iy=e=>{for(let t=e.length-1;t>=0;t--)if(!e[t].disabled)return t;return e.length-1},Ry=(e,t,n)=>{let r=e;do r=(r+t+n.length)%n.length;while(n[r]?.disabled&&r!==e);return r},Ly=(e,t)=>({target:{value:String(e),name:t},currentTarget:{value:String(e),name:t}}),_y=(e,t)=>{if(t>=0&&e.current){const n=e.current.children[t];n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}},Ny=(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 jc(t)},Oy=({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.useId(),[u,f]=p.useState(!1),[h,m]=p.useState(-1),y=e.find(k=>k.value===t);p.useEffect(()=>{u&&a.current&&(a.current.focus(),m(Ny(t,e)))},[u,e,t]),p.useEffect(()=>{_y(l,h)},[h]),p.useEffect(()=>{if(!u)return;const k=x=>{s.current&&(s.current.contains(x.target)||f(!1))};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[u]),p.useEffect(()=>{u||requestAnimationFrame(()=>{c.current?.focus()})},[u]);const w=k=>{k.disabled||(i?.(k),o&&o(Ly(k.value,n)),f(!1),m(-1))};return{open:u,activeIndex:h,selected:y,containerRef:s,menuRef:a,menuContentRef:l,buttonRef:c,id:d,setOpen:f,setActiveIndex:m,commitSelection:w,handleKeyDownButton:k=>{r||(k.key==="ArrowDown"||k.key==="ArrowUp"?(k.preventDefault(),f(!0)):(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),f(x=>!x)))},handleKeyDownMenu:k=>{if(k.key==="Escape"){k.preventDefault(),f(!1),m(-1);return}if(k.key==="ArrowDown"||k.key==="ArrowUp"){k.preventDefault();const x=k.key==="ArrowDown"?1:-1;m(Ry(h,x,e))}else if(k.key==="Enter"){k.preventDefault();const x=e[h];x&&!x.disabled&&w(x)}else k.key==="Home"?(k.preventDefault(),m(jc(e))):k.key==="End"&&(k.preventDefault(),m(Iy(e)))},handleToggle:()=>{r||f(k=>!k)}}},By=$.div`
|
|
729
729
|
position: relative;
|
|
730
730
|
width: 100%;
|
|
731
|
-
`,
|
|
731
|
+
`,zy=$.div`
|
|
732
732
|
${cr};
|
|
733
733
|
position: absolute;
|
|
734
734
|
right: 1rem;
|
|
@@ -736,7 +736,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
736
736
|
transform: translateY(-50%) rotate(${({$open:e})=>e?"-180deg":"0deg"});
|
|
737
737
|
pointer-events: none;
|
|
738
738
|
transition: transform 0.3s ease-out;
|
|
739
|
-
`,
|
|
739
|
+
`,Hy=$.button`
|
|
740
740
|
${bt}
|
|
741
741
|
${({$size:e})=>gn[e]}
|
|
742
742
|
${({$hasError:e})=>e&&xt}
|
|
@@ -758,7 +758,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
758
758
|
&:hover {
|
|
759
759
|
background-color: var(--color-main-alternative-secondary);
|
|
760
760
|
}
|
|
761
|
-
`,
|
|
761
|
+
`,jy=$(Ke.ul)`
|
|
762
762
|
position: absolute;
|
|
763
763
|
z-index: 50;
|
|
764
764
|
left: 0;
|
|
@@ -780,11 +780,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
780
780
|
border: var(--border-input-focus);
|
|
781
781
|
outline: none;
|
|
782
782
|
}
|
|
783
|
-
`,
|
|
783
|
+
`,Gy=$.div`
|
|
784
784
|
max-height: 15rem;
|
|
785
785
|
overflow-y: auto;
|
|
786
786
|
outline: none;
|
|
787
|
-
`,
|
|
787
|
+
`,Uy=$.li`
|
|
788
788
|
display: flex;
|
|
789
789
|
align-items: center;
|
|
790
790
|
gap: 0.5rem;
|
|
@@ -794,11 +794,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
794
794
|
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
795
795
|
user-select: none;
|
|
796
796
|
|
|
797
|
-
${({$size:e})=>
|
|
797
|
+
${({$size:e})=>Wy[e??"md"]}
|
|
798
798
|
|
|
799
799
|
background-color: ${({$active:e})=>e?"var(--color-main-alternative-secondary)":"transparent"};
|
|
800
800
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
801
|
-
`,
|
|
801
|
+
`,Wy={xs:T`
|
|
802
802
|
${V[14]}
|
|
803
803
|
`,sm:T`
|
|
804
804
|
${V[16]}
|
|
@@ -806,9 +806,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
806
806
|
${V[18]}
|
|
807
807
|
`,lg:T`
|
|
808
808
|
${V[18]}
|
|
809
|
-
`},
|
|
809
|
+
`},Gc=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:f,title:h},m)=>g.jsxs(g.Fragment,{children:[g.jsx(Hy,{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":f,title:h,children:o}),g.jsx(zy,{$size:e,$disabled:n,$open:i,children:g.jsx(K,{component:Nc,size:e==="sm"||e==="md"?"sm":"md",color:n?"var(--color-dark-200)":"var(--color-main-blue-primary)"})})]}));Gc.displayName="SelectTrigger";const Uc=({option:e,size:t,active:n,selected:r,id:o,className:i,onMouseEnter:s,onClick:a})=>g.jsx(Uy,{id:o,className:i,role:"option",$size:t,"aria-selected":r,$active:n,$disabled:e.disabled,onMouseEnter:s,onClick:a,children:e.label});Uc.displayName="SelectOption";const Wc=({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:f})=>g.jsx(ln,{children:e&&g.jsx(jy,{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(Gy,{ref:s,className:l,children:t.map((h,m)=>{const y=m===r;return g.jsx(Uc,{option:h,size:n,active:y,selected:o===h.value,id:`${a}-option-${m}`,className:c,onMouseEnter:()=>{!h.disabled&&e&&f(m)},onClick:()=>u(h)},h.value)})})})});Wc.displayName="SelectMenu";const ur=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:f},h)=>{const{open:m,activeIndex:y,selected:w,containerRef:v,menuRef:C,menuContentRef:b,buttonRef:k,id:x,setActiveIndex:P,commitSelection:E,handleKeyDownButton:M,handleKeyDownMenu:L,handleToggle:_}=Oy({options:r,value:a,name:l,disabled:n,onChange:s,onOptionSelect:i}),G=U=>{k.current=U,typeof h=="function"?h(U):h&&"current"in h&&(h.current=U)};return g.jsxs(By,{ref:v,className:c,children:[l&&g.jsx("input",{type:"hidden",name:l,value:w?.value??""}),g.jsx(Gc,{ref:G,size:e,hasError:t,disabled:n,hasValue:!!w,displayText:w?.label??o??"",open:m,inputClassName:d,onClick:_,onKeyDown:M,ariaHaspopup:"listbox",ariaExpanded:m,ariaControls:`${x}-listbox`,ariaInvalid:t||void 0,title:w?.label??o??"Select an option"}),g.jsx(Wc,{open:m,options:r,size:e,activeIndex:y,selectedValue:a,menuRef:C,menuContentRef:b,id:x,optionsClassName:u,optionClassName:f,onKeyDown:L,onOptionClick:E,onOptionMouseEnter:P})]})});ur.displayName="SelectInput";const Ky=$.textarea`
|
|
810
810
|
${bt}
|
|
811
|
-
${({$size:e})=>
|
|
811
|
+
${({$size:e})=>qy[e]}
|
|
812
812
|
${({$hasError:e})=>e&&xt}
|
|
813
813
|
${({$disabled:e})=>e&&rt}
|
|
814
814
|
${V[20]}
|
|
@@ -824,7 +824,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
824
824
|
color: var(--color-dark-200);
|
|
825
825
|
opacity: 1;
|
|
826
826
|
}
|
|
827
|
-
`,
|
|
827
|
+
`,qy={xs:`
|
|
828
828
|
${V[16]}
|
|
829
829
|
height: 4rem;
|
|
830
830
|
max-height: 8rem;
|
|
@@ -844,19 +844,19 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
844
844
|
height:12rem;
|
|
845
845
|
max-height: 20rem;
|
|
846
846
|
padding: 1rem 1.25rem;
|
|
847
|
-
`},ii=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=f=>{if(o){const h=f.target;h.style.height="auto";const m=h.scrollHeight,y=i*24,w=s?s*24:m;m>w?(h.style.height=`${w}px`,h.style.overflowY="scroll"):(h.style.height=`${Math.max(m,y)}px`,h.style.overflowY="hidden")}l?.(f)};return g.jsx(
|
|
847
|
+
`},ii=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=f=>{if(o){const h=f.target;h.style.height="auto";const m=h.scrollHeight,y=i*24,w=s?s*24:m;m>w?(h.style.height=`${w}px`,h.style.overflowY="scroll"):(h.style.height=`${Math.max(m,y)}px`,h.style.overflowY="hidden")}l?.(f)};return g.jsx(Ky,{ref:d,$size:e,$hasError:t,$disabled:n,$resize:r,$autoResize:o,disabled:n,rows:i,className:a,onChange:u,...c})});ii.displayName="TextAreaInput";const Yy=$.div`
|
|
848
848
|
${bt}
|
|
849
849
|
${({$size:e})=>gn[e??"md"]}
|
|
850
|
-
`,
|
|
850
|
+
`,Xy=$.input`
|
|
851
851
|
${lr}
|
|
852
|
-
`,si=({size:e="md",leftIcon:t,rightIcon:n=
|
|
852
|
+
`,si=({size:e="md",leftIcon:t,rightIcon:n=zc,iconSize:r="sm",iconColor:o="currentColor",placeholder:i="Buscar...",onSearch:s,className:a,...l})=>{const c=d=>{s?.(d.target.value)};return g.jsxs(Yy,{$size:e,className:a,children:[t&&g.jsx(K,{component:t,size:r,color:o}),g.jsx(Xy,{placeholder:i,onChange:c,...l}),n?g.jsx(K,{component:n,size:r,color:o}):g.jsx(K,{component:zc,size:r,color:o})]})},Zy={default:T`
|
|
853
853
|
min-height: 18rem;
|
|
854
854
|
padding: 2rem;
|
|
855
855
|
`,compact:T`
|
|
856
856
|
min-height: 6rem;
|
|
857
857
|
padding: 1rem;
|
|
858
858
|
flex-direction: row;
|
|
859
|
-
`},
|
|
859
|
+
`},Jy={xs:T`
|
|
860
860
|
${V[12]}
|
|
861
861
|
`,sm:T`
|
|
862
862
|
${V[12]}
|
|
@@ -864,28 +864,28 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
864
864
|
${V[16]}
|
|
865
865
|
`,lg:T`
|
|
866
866
|
${V[20]}
|
|
867
|
-
`},
|
|
867
|
+
`},Qy=T`
|
|
868
868
|
border: 2px dashed var(--color-main-input-borders);
|
|
869
869
|
background-color: var(--color-main-white);
|
|
870
|
-
`,
|
|
870
|
+
`,ev=T`
|
|
871
871
|
border-color: var(--color-main-blue-primary);
|
|
872
872
|
background-color: var(--color-main-alternative-secondary);
|
|
873
|
-
`,
|
|
873
|
+
`,tv=T`
|
|
874
874
|
border: 2px dashed var(--color-main-positive-state);
|
|
875
875
|
background-color: var(--color-green-100);
|
|
876
|
-
`,
|
|
876
|
+
`,nv=T`
|
|
877
877
|
border-color: var(--color-main-warning-state);
|
|
878
878
|
background-color: var(--color-red-100);
|
|
879
|
-
`,
|
|
879
|
+
`,rv=T`
|
|
880
880
|
border-color: var(--color-dark-200);
|
|
881
881
|
cursor: not-allowed;
|
|
882
882
|
opacity: 0.6;
|
|
883
|
-
`,
|
|
883
|
+
`,ov=$.div`
|
|
884
884
|
display: flex;
|
|
885
885
|
flex-direction: column;
|
|
886
886
|
width: 100%;
|
|
887
|
-
${({$size:e})=>
|
|
888
|
-
`,
|
|
887
|
+
${({$size:e})=>Jy[e]}
|
|
888
|
+
`,iv=$.div`
|
|
889
889
|
display: flex;
|
|
890
890
|
flex-direction: column;
|
|
891
891
|
align-items: center;
|
|
@@ -901,35 +901,35 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
901
901
|
outline: 2px solid transparent;
|
|
902
902
|
outline-offset: 2px;
|
|
903
903
|
|
|
904
|
-
${({$variant:e})=>
|
|
905
|
-
${
|
|
904
|
+
${({$variant:e})=>Zy[e]}
|
|
905
|
+
${Qy}
|
|
906
906
|
|
|
907
|
-
${({$disabled:e})=>e?
|
|
907
|
+
${({$disabled:e})=>e?rv:T`
|
|
908
908
|
&:hover {
|
|
909
|
-
${
|
|
909
|
+
${ev}
|
|
910
910
|
}
|
|
911
911
|
`}
|
|
912
912
|
|
|
913
|
-
${({$isDragging:e,$disabled:t})=>e&&!t&&
|
|
914
|
-
${({$hasError:e,$disabled:t})=>e&&!t&&
|
|
913
|
+
${({$isDragging:e,$disabled:t})=>e&&!t&&tv}
|
|
914
|
+
${({$hasError:e,$disabled:t})=>e&&!t&&nv}
|
|
915
915
|
|
|
916
916
|
&:focus-visible {
|
|
917
917
|
outline-color: var(--color-main-blue-primary);
|
|
918
918
|
outline-offset: 2px;
|
|
919
919
|
}
|
|
920
|
-
`,
|
|
920
|
+
`,sv=$.div`
|
|
921
921
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
922
922
|
|
|
923
923
|
strong {
|
|
924
924
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-blue-primary)"};
|
|
925
925
|
font-weight: 700;
|
|
926
926
|
}
|
|
927
|
-
`,
|
|
927
|
+
`,av=$.div`
|
|
928
928
|
display: flex;
|
|
929
929
|
flex-direction: column;
|
|
930
930
|
gap: 0.5rem;
|
|
931
931
|
margin-top: 1rem;
|
|
932
|
-
`,
|
|
932
|
+
`,lv=$.div`
|
|
933
933
|
display: flex;
|
|
934
934
|
align-items: center;
|
|
935
935
|
justify-content: space-between;
|
|
@@ -946,12 +946,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
946
946
|
&:hover {
|
|
947
947
|
background-color: var(--color-main-alternative-secondary);
|
|
948
948
|
}
|
|
949
|
-
`,
|
|
949
|
+
`,cv=$(je)`
|
|
950
950
|
font-weight: 500;
|
|
951
951
|
overflow: hidden;
|
|
952
952
|
text-overflow: ellipsis;
|
|
953
953
|
white-space: nowrap;
|
|
954
|
-
`,
|
|
954
|
+
`,uv=$.button`
|
|
955
955
|
background: none;
|
|
956
956
|
border: none;
|
|
957
957
|
color: var(--color-dark-400);
|
|
@@ -978,9 +978,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
978
978
|
cursor: not-allowed;
|
|
979
979
|
opacity: 0.5;
|
|
980
980
|
}
|
|
981
|
-
`,
|
|
981
|
+
`,dv=(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}}},fv=({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 f=u.type.toLowerCase(),h=`.${u.name.split(".").pop()?.toLowerCase()}`;return!c.some(m=>{if(m===f||m===h)return!0;if(m.endsWith("/*")){const y=m.slice(0,-2);return f.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("")}},hv=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]}`},Kc=({files:e,onRemove:t,disabled:n})=>e.length===0?null:g.jsx(av,{children:e.map((r,o)=>g.jsxs(lv,{children:[g.jsxs("div",{className:"flex min-w-[0] flex-col gap-1",children:[g.jsx(cv,{size:14,children:r.name}),g.jsx(mn,{size:12,children:hv(r.size)})]}),g.jsx(uv,{type:"button",onClick:()=>t(o),"aria-label":`Remove ${r.name}`,disabled:n,children:g.jsx(Oc,{})})]},`${r.name}-${o}`))}),pv=({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:f="",className:h="",dropZoneContainerClassName:m="",size:y="md"})=>{const w=i!==void 0,[v,C]=p.useState(s||[]),b=w?i:v,k=n*1024*1024,{error:x,validateFiles:P,clearError:E}=fv({maxFileSize:k,accept:r,multiple:t,onError:l}),M=(W,Z)=>{if(!W||W.length===0)return;const R=Array.from(W);if(!P(R))return;const D=t?[...b,...R]:R;w||C(D),a?.(D,Z)},L=W=>{const Z=b[W],R=b.filter((D,j)=>j!==W);w||C(R),c?.(Z,W),a?.(R),R.length===0&&E()},{isDragging:_,dragHandlers:G}=dv(M,d),U=u||!!x,X=f||x;return g.jsxs(ov,{$size:y,className:h,children:[g.jsxs("label",{"aria-label":"File upload area",className:`p-4 ${m}`,children:[g.jsxs(iv,{$variant:e,$isDragging:_,$hasError:U,$disabled:d,role:"button",tabIndex:d?-1:0,"aria-disabled":d,onKeyDown:W=>{(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),W.currentTarget.querySelector("input")?.click())},...G,children:[g.jsx(K,{component:Py,size:"lg",color:d?"var(--color-dark-200)":"var(--color-main-blue-primary)",className:"!text-[5rem]"}),g.jsxs(sv,{$disabled:d,children:[g.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),o&&!U&&g.jsx(je,{size:14,color:"var(--color-main-grey)",children:o})]}),g.jsx("input",{type:"file",multiple:t,accept:r,disabled:d,onChange:W=>M(W.target.files,W.nativeEvent),style:{display:"none"},"aria-label":"File input"})]}),U&&X&&g.jsx(ri,{size:"sm",children:X}),g.jsx(Kc,{files:b,onRemove:L,disabled:d})]})},Wt={xs:"1rem",sm:"1.25rem",md:"1.5rem",lg:"1.75rem"},mv=$.div`
|
|
982
982
|
position: relative;
|
|
983
|
-
`,
|
|
983
|
+
`,gv=$.input`
|
|
984
984
|
position: absolute;
|
|
985
985
|
height: ${({$size:e})=>Wt[e]};
|
|
986
986
|
width: ${({$size:e})=>Wt[e]};
|
|
@@ -997,7 +997,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
997
997
|
outline-color: var(--color-main-orange-primary);
|
|
998
998
|
outline-offset: 2px;
|
|
999
999
|
}
|
|
1000
|
-
`,
|
|
1000
|
+
`,yv=$.div`
|
|
1001
1001
|
height: ${({$size:e})=>Wt[e]};
|
|
1002
1002
|
width: ${({$size:e})=>Wt[e]};
|
|
1003
1003
|
border: 2px solid;
|
|
@@ -1018,31 +1018,31 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1018
1018
|
|
|
1019
1019
|
${({$hasError:e})=>e&&xt}
|
|
1020
1020
|
${({$disabled:e})=>e&&rt}
|
|
1021
|
-
${({$checked:e})=>e&&
|
|
1022
|
-
`,
|
|
1021
|
+
${({$checked:e})=>e&&vv}
|
|
1022
|
+
`,vv=T`
|
|
1023
1023
|
background-color: var(--color-main-orange-primary);
|
|
1024
1024
|
border-color: var(--color-main-orange-primary);
|
|
1025
|
-
`,
|
|
1025
|
+
`,wv=$.svg`
|
|
1026
1026
|
height: ${({$size:e})=>Wt[e]};
|
|
1027
1027
|
width: ${({$size:e})=>Wt[e]};
|
|
1028
1028
|
color: ${({$disabled:e})=>e?"var(--color-dark-200)":"white"};
|
|
1029
1029
|
fill: none;
|
|
1030
1030
|
stroke: currentColor;
|
|
1031
|
-
`,
|
|
1031
|
+
`,bv=$.span`
|
|
1032
1032
|
display: block;
|
|
1033
1033
|
width: ${({$size:e})=>e==="xs"?"50%":"60%"};
|
|
1034
1034
|
height: ${({$size:e})=>e==="xs"?"1.5px":"2px"};
|
|
1035
1035
|
background-color: white;
|
|
1036
1036
|
border-radius: 1px;
|
|
1037
|
-
`,ai=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,f=!!r,h=p.useRef(null),m=p.useCallback(y=>{if(h.current=y,!!c)if(typeof c=="function")try{c(y)}catch{}else c.current=y},[c]);return p.useEffect(()=>{h.current&&(h.current.indeterminate=!!n)},[n]),g.jsxs(
|
|
1037
|
+
`,ai=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,f=!!r,h=p.useRef(null),m=p.useCallback(y=>{if(h.current=y,!!c)if(typeof c=="function")try{c(y)}catch{}else c.current=y},[c]);return p.useEffect(()=>{h.current&&(h.current.indeterminate=!!n)},[n]),g.jsxs(mv,{className:s,children:[g.jsx(gv,{ref:m,type:"checkbox",checked:f||!1,disabled:o,onChange:i,id:u,name:l.name,"aria-invalid":t||void 0,"aria-disabled":o||void 0,"aria-checked":n?"mixed":f?"true":"false",$size:e,...l}),g.jsxs(yv,{$checked:!!f||!!n,$hasError:t,$disabled:o,$size:e,className:a,children:[f&&!n&&g.jsx(wv,{$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(bv,{$size:e})]})]})});ai.displayName="CheckboxInput";const qc=({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(ar,{size:t,disabled:n,htmlFor:r,onClick:l,className:i,...a,children:e})},xv=$.section`
|
|
1038
1038
|
display: flex;
|
|
1039
1039
|
align-items: center;
|
|
1040
1040
|
justify-content: center;
|
|
1041
1041
|
gap: 1rem;
|
|
1042
|
-
`,yn=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},f)=>{const h=p.useId(),m=u.id??h;return g.jsxs(
|
|
1042
|
+
`,yn=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},f)=>{const h=p.useId(),m=u.id??h;return g.jsxs(xv,{className:l,children:[g.jsx(ai,{ref:f,size:e,hasError:n,indeterminate:r,checked:o,disabled:i,onChange:s,checkboxClassName:c,id:m,...u}),t&&g.jsx(qc,{size:e,disabled:i,htmlFor:m,onLabelClick:a,className:d,children:t})]})});yn.displayName="Checkbox";const Sv=$.div`
|
|
1043
1043
|
position: relative;
|
|
1044
1044
|
display: inline-block;
|
|
1045
|
-
`,
|
|
1045
|
+
`,Cv=$.input`
|
|
1046
1046
|
${bt}
|
|
1047
1047
|
text-align: center;
|
|
1048
1048
|
padding: 0;
|
|
@@ -1056,15 +1056,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1056
1056
|
&[type='number'] {
|
|
1057
1057
|
-moz-appearance: textfield;
|
|
1058
1058
|
}
|
|
1059
|
-
${({$size:e})
|
|
1060
|
-
${({$variant:e})=>e&&
|
|
1059
|
+
${({$size:e})=>$v[e]}
|
|
1060
|
+
${({$variant:e})=>e&&Tv[e??"outlined"]}
|
|
1061
1061
|
${({$hasError:e})=>e&&xt}
|
|
1062
1062
|
${({$disabled:e})=>e&&rt}
|
|
1063
1063
|
|
|
1064
1064
|
&:focus {
|
|
1065
1065
|
border: 2px solid var(--color-main-blue-primary);
|
|
1066
1066
|
}
|
|
1067
|
-
`,
|
|
1067
|
+
`,Tv={outlined:`
|
|
1068
1068
|
background-color: var(--color-main-white);
|
|
1069
1069
|
border: 2px solid var(--color-main-input-borders);
|
|
1070
1070
|
|
|
@@ -1083,7 +1083,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1083
1083
|
background-color: var(--color-main-white);
|
|
1084
1084
|
border: 2px solid var(--color-main-blue-primary);
|
|
1085
1085
|
}
|
|
1086
|
-
`}
|
|
1086
|
+
`},$v={xs:`
|
|
1087
1087
|
padding: 0.25rem;
|
|
1088
1088
|
width: 2rem;
|
|
1089
1089
|
height: 2rem;
|
|
@@ -1103,13 +1103,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1103
1103
|
width: 3.5rem;
|
|
1104
1104
|
height: 4rem;
|
|
1105
1105
|
${V[40]}
|
|
1106
|
-
`},li=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(
|
|
1106
|
+
`},li=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(Sv,{children:g.jsx(Cv,{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})})});li.displayName="PinInput";const Yc=(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 f=u.join("");a?.(f),c&&t<i-1&&o[t+1].current?.focus(),u.every(h=>h!=="")&&u.length>=d&&l?.(f)},Xc=(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()},Zc=(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 w=t+y;if(w>=d)break;const v=c[y];s==="number"&&!/^\d$/.test(v)||(u[w]=v)}r(u),a?.(u.join(""));const f=u.findIndex(y=>y===""),h=f!==-1?Math.min(Math.max(f,t),d-1):d-1;o[h].current?.focus();const m=u.join("");u.every(y=>y!=="")&&u.length>=d&&l?.(m)},Jc=e=>Array(e).fill(null).map(()=>p.createRef()),kv=(e,t,n="text")=>!(e.length!==t||n==="number"&&!/^\d+$/.test(e)),Pv=$.div`
|
|
1107
1107
|
display: flex;
|
|
1108
1108
|
gap: 8px;
|
|
1109
1109
|
align-items: center;
|
|
1110
|
-
`,ci=({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(()=>
|
|
1110
|
+
`,ci=({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(()=>Jc(e),[e]);return g.jsx(Pv,{className:a,children:Array.from({length:e},(f,h)=>g.jsx(li,{className:l,size:t,variant:n,hasError:r,value:c[h],onChange:m=>Yc(m,h,c,d,u,e,o,i,s),onKeyDown:m=>Xc(m,h,c,u,d,i),onPaste:m=>Zc(m,h,c,d,u,e,o,i,s),ref:u[h]},h))})};ci.displayName="PinInputGroup";const Ev=$.div`
|
|
1111
1111
|
position: relative;
|
|
1112
|
-
`,
|
|
1112
|
+
`,Mv=$.input`
|
|
1113
1113
|
position: absolute;
|
|
1114
1114
|
height: 1.5rem;
|
|
1115
1115
|
width: 1.5rem;
|
|
@@ -1127,9 +1127,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1127
1127
|
outline-color: var(--color-main-orange-primary);
|
|
1128
1128
|
outline-offset: 2px;
|
|
1129
1129
|
}
|
|
1130
|
-
`,
|
|
1130
|
+
`,Av=T`
|
|
1131
1131
|
border-color: var(--color-main-orange-primary);
|
|
1132
|
-
`,
|
|
1132
|
+
`,Vv=$.div`
|
|
1133
1133
|
height: 1.5rem;
|
|
1134
1134
|
width: 1.5rem;
|
|
1135
1135
|
border: 2px solid var(--color-main-input-borders);
|
|
@@ -1150,8 +1150,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1150
1150
|
${rt}
|
|
1151
1151
|
border: 2px solid var(--color-dark-200) !important;
|
|
1152
1152
|
`}
|
|
1153
|
-
${({$checked:e})=>e&&
|
|
1154
|
-
`,
|
|
1153
|
+
${({$checked:e})=>e&&Av}
|
|
1154
|
+
`,Dv=$.span`
|
|
1155
1155
|
display: block;
|
|
1156
1156
|
height: 0.625rem;
|
|
1157
1157
|
width: 0.625rem;
|
|
@@ -1160,21 +1160,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1160
1160
|
background-color: ${({$disabled:e})=>e?"var(--color-dark-200)":"var(--color-main-orange-primary)"};
|
|
1161
1161
|
opacity: ${({$checked:e})=>e?1:0};
|
|
1162
1162
|
transform: ${({$checked:e})=>e?"scale(1)":"scale(0.6)"};
|
|
1163
|
-
`,ui=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,...f}=s;return g.jsxs(
|
|
1163
|
+
`,ui=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,...f}=s;return g.jsxs(Ev,{className:o,children:[g.jsx(Mv,{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",...f}),g.jsx(Vv,{$checked:!!d,$hasError:e,$disabled:n,className:i,children:g.jsx(Dv,{$disabled:n,$checked:d})})]})});ui.displayName="RadioInputDot";const di=({children:e,htmlFor:t,className:n,disabled:r=!1,size:o="md",...i})=>g.jsx(ar,{className:n,htmlFor:t,size:o,disabled:r,...i,children:e});di.displayName="RadioInputLabel";const Fv=$.section`
|
|
1164
1164
|
display: flex;
|
|
1165
1165
|
align-items: center;
|
|
1166
1166
|
justify-content: center;
|
|
1167
1167
|
gap: 1rem;
|
|
1168
|
-
`,fi=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(),f=c.id??u;return g.jsxs(
|
|
1168
|
+
`,fi=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(),f=c.id??u;return g.jsxs(Fv,{className:s,children:[g.jsx(ui,{ref:d,size:e,hasError:n,checked:r,disabled:o,onChange:i,dotClassName:a,id:f,...c}),t&&g.jsx(di,{size:e,disabled:o,htmlFor:f,className:l,children:t})]})});fi.displayName="RadioInput";const Iv=({name:e,required:t=!1,onChange:n,onOptionSelect:r,onRadioChange:o,onPinComplete:i,options:s=[]})=>{const[a,l,c]=fd.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]),f=p.useMemo(()=>a.name||e,[a.name,e]),h=p.useMemo(()=>({required:t||void 0,"aria-required":t||void 0,"aria-invalid":d||void 0,"aria-describedby":d?`${f}-error`:void 0}),[t,d,f]),m=p.useCallback(x=>{n?n(x):a.onChange(x)},[n,a]),y=p.useCallback(x=>{n?n(x):a.onChange(x)},[n,a]),w=p.useCallback(x=>{c.setValue(x.target.checked)},[c]),v=p.useCallback(x=>{a.onChange(x);const P=s.find(E=>String(E.value)===x.target.value);P&&r?.(P)},[a,s,r]),C=p.useCallback((x,P)=>{const E=x.target.value,M=typeof P=="number"?Number(E):E;c.setValue(M),o?.(x)},[c,o]),b=p.useCallback(x=>{c.setValue(x)},[c]),k=p.useCallback(x=>{c.setValue(x),i?.(x)},[c,i]);return{field:a,meta:l,helpers:c,hasError:d,errorMessage:u,inputId:f,ariaProps:h,handleStandardChange:m,handleTextAreaChange:y,handleCheckboxChange:w,handleSelectChange:v,handleRadioChange:C,handlePinChange:b,handlePinComplete:k}},Rv=["text","email","number","tel","url","date","datetime-local","time"],Lv=$.div`
|
|
1169
1169
|
display: flex;
|
|
1170
1170
|
flex-direction: column;
|
|
1171
1171
|
gap: 0.75rem;
|
|
1172
|
-
`,
|
|
1172
|
+
`,Qc=({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:f,onCheckboxChange:h,radioName:m,onRadioChange:y,pinLength:w=6,pinType:v="number",onPinChange:C,onPinComplete:b,onStandardChange:k,onTextAreaChange:x,leftIcon:P,rightIcon:E,iconSize:M,iconColor:L,additionalProps:_={}})=>{switch(e){case"textarea":return g.jsx(ii,{id:t,name:n,className:a,hasError:o,disabled:i,value:l??"",size:r,placeholder:s,onChange:x,..._,...c});case"select":return g.jsx(ur,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,value:l??"",onChange:u,options:d,placeholder:s||"Selecciona una opción",..._,...c});case"checkbox":return g.jsx(yn,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,checked:!!l,label:f,onChange:h,..._,...c});case"radio":{const G=d;return g.jsx(Lv,{children:G.map(U=>g.jsx(fi,{name:m||n,value:U.value,label:U.label,size:r,hasError:o,disabled:i,checked:l===U.value,onChange:X=>y?.(X,U.value),...c},U.value))})}case"pin":return g.jsx(ci,{length:w,type:v,size:r,hasError:o,onChange:C,onComplete:b,..._,...c});case"password":{const{...G}=_;return g.jsx(Hc,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,leftIcon:P,iconSize:M,iconColor:L,onChange:k,...G,...c})}case"search":return g.jsx(si,{className:a,size:r,placeholder:s,leftIcon:P,rightIcon:E,iconSize:M,iconColor:L,onSearch:_.onSearch,...c});default:return g.jsx(oi,{id:t,name:n,className:a,hasError:o,disabled:i,size:r,placeholder:s,type:Rv.includes(e)?e:"text",leftIcon:P,rightIcon:E,iconSize:M,iconColor:L,value:l??"",onChange:k,..._,...c})}};Qc.displayName="FieldRenderer";const _v=$.div`
|
|
1173
1173
|
display: flex;
|
|
1174
1174
|
flex-direction: column;
|
|
1175
1175
|
gap: 0.5rem;
|
|
1176
1176
|
width: 100%;
|
|
1177
|
-
`,
|
|
1177
|
+
`,Nv=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(_v,{className:l,children:[t&&!a&&g.jsx(ar,{htmlFor:e,size:n,required:r,disabled:o,className:c,children:t}),u,i&&s&&g.jsx(ri,{id:`${e}-error`,size:n,className:d,children:s})]})),Ov=({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:f="number",rows:h=4,className:m,inputClassName:y,labelClassName:w,messageErrorClassName:v,leftIcon:C,rightIcon:b,iconSize:k,iconColor:x,onOptionSelect:P,onRadioChange:E,onPinComplete:M,onChange:L,..._})=>{const{field:G,hasError:U,errorMessage:X,inputId:W,ariaProps:Z,handleStandardChange:R,handleTextAreaChange:D,handleCheckboxChange:j,handleSelectChange:q,handleRadioChange:J,handlePinChange:fe,handlePinComplete:ae}=Iv({name:t,required:a,onChange:L,onOptionSelect:P,onRadioChange:E,onPinComplete:M,options:l}),B=e?.toString?.()||W;return g.jsx(Nv,{inputId:B,label:n,size:o,required:a,disabled:s,hasError:U,errorMessage:X,isCheckbox:r==="checkbox",className:m,labelClassName:w,messageErrorClassName:v,children:g.jsx(Qc,{type:r,inputId:B,name:t,size:o,hasError:U,disabled:s,placeholder:i,inputClassName:y,fieldValue:G.value,ariaProps:Z,options:l,onSelectChange:q,checkboxLabel:c,onCheckboxChange:j,radioName:d,onRadioChange:J,pinLength:u,pinType:f,rows:h,onPinChange:fe,onPinComplete:ae,onStandardChange:R,onTextAreaChange:D,leftIcon:C,rightIcon:b,iconSize:k,iconColor:x,additionalProps:_})})},eu={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},hi={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},Bv={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"}}},tu={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"}},zv=$(Ke.div)`
|
|
1178
1178
|
position: fixed;
|
|
1179
1179
|
inset: 0;
|
|
1180
1180
|
z-index: 50;
|
|
@@ -1188,7 +1188,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1188
1188
|
@media (max-width: 768px) {
|
|
1189
1189
|
padding: 0.5rem;
|
|
1190
1190
|
}
|
|
1191
|
-
`,
|
|
1191
|
+
`,Hv=$(Ke.div)`
|
|
1192
1192
|
position: relative;
|
|
1193
1193
|
display: flex;
|
|
1194
1194
|
flex-direction: column;
|
|
@@ -1215,7 +1215,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1215
1215
|
outline: none;
|
|
1216
1216
|
box-shadow: var(--shadow-hover-black-card);
|
|
1217
1217
|
}
|
|
1218
|
-
`,
|
|
1218
|
+
`,jv=$.button`
|
|
1219
1219
|
position: absolute;
|
|
1220
1220
|
top: 1rem;
|
|
1221
1221
|
right: 1rem;
|
|
@@ -1234,7 +1234,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1234
1234
|
transform: scale(1.1);
|
|
1235
1235
|
outline: none;
|
|
1236
1236
|
}
|
|
1237
|
-
`,
|
|
1237
|
+
`,Gv=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],f=document.activeElement;!l.shiftKey&&f===u?(l.preventDefault(),d.focus()):l.shiftKey&&f===d&&(l.preventDefault(),u.focus())};return document.addEventListener("keydown",a),()=>{window.clearTimeout(i),document.removeEventListener("keydown",a),n.current&&n.current.focus()}},[e]),t},Uv=(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])},Wv=e=>{p.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e])},nu=({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 f=Gv(e);Uv(e,t,l),Wv(e);const h=y=>{o&&y.target===y.currentTarget&&t()},m=g.jsx(ln,{children:e&&g.jsx(zv,{...hi,onClick:h,children:g.jsxs(Hv,{...eu,ref:f,$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(jv,{className:`${cr} cursor-pointer`,onClick:t,"aria-label":"Close dialog",children:g.jsx(K,{component:Oc,size:"sm"})}),n]})})});return typeof document>"u"?m:Ui.createPortal(m,document.body)},Kv=$.div`
|
|
1238
1238
|
display: flex;
|
|
1239
1239
|
align-items: center;
|
|
1240
1240
|
justify-content: space-between;
|
|
@@ -1267,7 +1267,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1267
1267
|
flex-shrink: 0;
|
|
1268
1268
|
margin-left: auto;
|
|
1269
1269
|
}
|
|
1270
|
-
`,
|
|
1270
|
+
`,ru=({showDivider:e=!1,variant:t="default",children:n,className:r,...o})=>g.jsx(Kv,{$showDivider:e,$variant:t,className:r,...o,children:n}),qv=$.div`
|
|
1271
1271
|
position: relative;
|
|
1272
1272
|
display: flex;
|
|
1273
1273
|
flex-direction: column;
|
|
@@ -1280,7 +1280,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1280
1280
|
${({$showTopDivider:e})=>e&&"border-top: 1px solid var(--color-main-light-borders);"}
|
|
1281
1281
|
|
|
1282
1282
|
${({$showBottomDivider:e})=>e&&"border-bottom: 1px solid var(--color-main-light-borders);"}
|
|
1283
|
-
`,
|
|
1283
|
+
`,ou=({children:e,padded:t=!0,showTopDivider:n=!1,showBottomDivider:r=!1,className:o,...i})=>g.jsx(qv,{$padded:t,$showTopDivider:n,$showBottomDivider:r,className:o,...i,children:e}),Yv=$.div`
|
|
1284
1284
|
display: flex;
|
|
1285
1285
|
align-items: center;
|
|
1286
1286
|
width: 100%;
|
|
@@ -1296,13 +1296,13 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1296
1296
|
bottom: 0;
|
|
1297
1297
|
background: var(--color-main-white);
|
|
1298
1298
|
`}
|
|
1299
|
-
`,
|
|
1299
|
+
`,iu=({align:e="end",showDivider:t=!1,gap:n=8,sticky:r=!1,children:o,className:i,...s})=>g.jsx(Yv,{$align:e,$showDivider:t,$gap:n,$sticky:r,className:i,...s,children:o}),Xv=({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:f=!0,closeOnBackdropClick:h=!1,containerClassName:m,headerClassName:y,bodyClassName:w,footerClassName:v,initiallyConfirmed:C=!1,onConfirmChange:b})=>{const[k,x]=p.useState(C);p.useEffect(()=>{e||x(C)},[e,C]);const P=E=>{x(E),b?.(E)};return g.jsxs(nu,{isOpen:e,onClose:n,size:d,fullScreen:u,showCloseButton:f,closeOnBackdropClick:h,ariaLabelledBy:"tac-title",ariaDescribedBy:"tac-subtitle",className:`${m} !h-fit !max-w-[60rem]`,children:[g.jsx(ru,{showDivider:!0,className:y,children:g.jsx(Rs,{id:"tac-title",size:20,children:r})}),g.jsxs(ou,{padded:!0,showBottomDivider:!0,className:w,children:[o&&g.jsx(je,{id:"tac-subtitle",size:16,children:o}),i,s]}),g.jsxs(iu,{showDivider:!0,align:"space-between",className:v,children:[g.jsx(yn,{label:a,checked:k,onChange:E=>P(E.target.checked)}),g.jsxs("div",{style:{display:"flex",gap:"0.5rem"},children:[g.jsx(Ut,{variant:"secondary",onClick:n,children:c}),g.jsx(Ut,{variant:"primary",onClick:t,disabled:!k,children:l})]})]})]})},pi=p.createContext(void 0),su=({children:e})=>{const[t,n]=p.useState(!1),[r,o]=p.useState(!1);return g.jsx(pi.Provider,{value:{isCollapsed:t,setIsCollapsed:n,isMobileOpen:r,setIsMobileOpen:o},children:e})},mi=()=>{const e=p.useContext(pi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},gi=(e=[],t=[])=>!t||t.length===0?!1:t.includes("all")?!0:t.some(n=>e.includes(n)),Zv=T`
|
|
1300
1300
|
display: flex;
|
|
1301
1301
|
align-items: center;
|
|
1302
1302
|
justify-content: center;
|
|
1303
1303
|
flex-shrink: 0;
|
|
1304
1304
|
user-select: none;
|
|
1305
|
-
`,
|
|
1305
|
+
`,au=`
|
|
1306
1306
|
width: 100%;
|
|
1307
1307
|
display: flex;
|
|
1308
1308
|
align-items: center;
|
|
@@ -1319,8 +1319,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1319
1319
|
outline-color: var(--color-main-blue-primary);
|
|
1320
1320
|
outline-offset: -2px;
|
|
1321
1321
|
}
|
|
1322
|
-
`,
|
|
1323
|
-
${
|
|
1322
|
+
`,Jv=$.button`
|
|
1323
|
+
${au}
|
|
1324
1324
|
|
|
1325
1325
|
// Level-based padding
|
|
1326
1326
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1339,8 +1339,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
1341
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1342
|
-
`,
|
|
1343
|
-
${
|
|
1342
|
+
`,Qv=$.button`
|
|
1343
|
+
${au}
|
|
1344
1344
|
|
|
1345
1345
|
// Level-based padding
|
|
1346
1346
|
padding: ${({$level:e})=>e===0?"0.75rem 0.875rem":"0.55rem 0.75rem"};
|
|
@@ -1359,36 +1359,36 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
1361
|
${({$collapsed:e})=>e?"justify-content: center;":""}
|
|
1362
|
-
`,
|
|
1362
|
+
`,e1=$.span`
|
|
1363
1363
|
display: inline-flex;
|
|
1364
1364
|
align-items: center;
|
|
1365
1365
|
gap: 0.75rem;
|
|
1366
1366
|
min-width: 0;
|
|
1367
|
-
`,
|
|
1367
|
+
`,t1=$(je)`
|
|
1368
1368
|
font-weight: ${({$level:e})=>e===0?600:500};
|
|
1369
1369
|
color: var(--color-main-blue-primary);
|
|
1370
1370
|
white-space: nowrap;
|
|
1371
1371
|
overflow: hidden;
|
|
1372
1372
|
text-overflow: ellipsis;
|
|
1373
|
-
`,
|
|
1373
|
+
`,n1=$(Ke.div)`
|
|
1374
1374
|
background-color: transparent;
|
|
1375
1375
|
overflow: hidden;
|
|
1376
1376
|
will-change: height, opacity, transform;
|
|
1377
|
-
`,
|
|
1377
|
+
`,r1=$.div`
|
|
1378
1378
|
width: 100%;
|
|
1379
1379
|
${({$level:e})=>e>0?"border-top: 1px solid var(--color-light-200);":""}
|
|
1380
|
-
`,
|
|
1380
|
+
`,o1=$.span`
|
|
1381
1381
|
width: 0.625rem;
|
|
1382
1382
|
height: 0.125rem;
|
|
1383
1383
|
background: var(--color-main-blue-primary);
|
|
1384
1384
|
border-radius: 1px;
|
|
1385
1385
|
flex: 0 0 auto;
|
|
1386
|
-
`,
|
|
1387
|
-
${
|
|
1386
|
+
`,i1=$.div`
|
|
1387
|
+
${Zv}
|
|
1388
1388
|
transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
|
|
1389
1389
|
pointer-events: none;
|
|
1390
1390
|
transition: transform 0.3s ease-out;
|
|
1391
|
-
`,
|
|
1391
|
+
`,lu=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[i,s]=p.useState(!1),{isCollapsed:a,setIsMobileOpen:l,setIsCollapsed:c}=mi(),d=p.useMemo(()=>(e.children||[]).filter(b=>gi(t,b.permissions)),[e.children,t]);if(!p.useMemo(()=>gi(t,e.permissions),[t,e.permissions]))return null;const f=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),y=()=>{a&&c(!1),s(b=>!b)},w=()=>{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(b){console.error("Error al navegar a microservicio:",b)}},C=()=>g.jsxs(g.Fragment,{children:[g.jsxs(e1,{children:[n>0&&!a&&g.jsx(o1,{}),e.icon&&g.jsx(K,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&g.jsx(t1,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&f&&g.jsx(i1,{$disabled:a,$open:i,children:g.jsx(K,{component:yy,size:"sm",color:"var(--color-main-blue-primary)"})})]});return g.jsxs(r1,{$level:n,children:[e.href&&!e.path&&!f?g.jsx(Jv,{type:"button",onClick:w,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:C()}):g.jsx(Qv,{type:"button",onClick:f?y:e.path?v:w,$level:n,$collapsed:a,$active:m,$expanded:i&&f,title:a?e.label:"",children:C()}),g.jsx(ln,{initial:!1,children:!a&&i&&f&&g.jsx(n1,{$level:n+1,...tu,children:d.map(b=>g.jsx(lu,{item:b,userRoles:t,level:n+1,onNavigate:o,activePath:r},b.id))})})]})},cu=$(Ke.div)`
|
|
1392
1392
|
position: fixed;
|
|
1393
1393
|
inset: 0;
|
|
1394
1394
|
background: rgba(0, 0, 0, 0.5);
|
|
@@ -1397,7 +1397,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1397
1397
|
@media (max-width: 767px) {
|
|
1398
1398
|
display: block;
|
|
1399
1399
|
}
|
|
1400
|
-
`,
|
|
1400
|
+
`,uu=$.aside`
|
|
1401
1401
|
position: fixed;
|
|
1402
1402
|
left: 0;
|
|
1403
1403
|
top: 0;
|
|
@@ -1416,7 +1416,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1416
1416
|
@media (min-width: 768px) {
|
|
1417
1417
|
transform: translateX(0);
|
|
1418
1418
|
}
|
|
1419
|
-
`,
|
|
1419
|
+
`,du=$.div`
|
|
1420
1420
|
display: flex;
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
justify-content: space-between;
|
|
@@ -1424,11 +1424,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1424
1424
|
padding: 1rem;
|
|
1425
1425
|
|
|
1426
1426
|
${({$collapsed:e})=>e?"flex-direction: column":""};
|
|
1427
|
-
`,
|
|
1427
|
+
`,fu=$.div`
|
|
1428
1428
|
display: flex;
|
|
1429
1429
|
align-items: center;
|
|
1430
1430
|
gap: 0.5rem;
|
|
1431
|
-
`,
|
|
1431
|
+
`,hu=$.nav`
|
|
1432
1432
|
display: flex;
|
|
1433
1433
|
flex-direction: column;
|
|
1434
1434
|
justify-content: flex-start;
|
|
@@ -1436,7 +1436,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1436
1436
|
flex: 1;
|
|
1437
1437
|
overflow-y: auto;
|
|
1438
1438
|
padding: 0.25rem 0;
|
|
1439
|
-
`,
|
|
1439
|
+
`,pu=$.button`
|
|
1440
1440
|
display: flex;
|
|
1441
1441
|
align-items: center;
|
|
1442
1442
|
justify-content: center;
|
|
@@ -1462,7 +1462,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1462
1462
|
@media (max-width: 767px) {
|
|
1463
1463
|
display: none;
|
|
1464
1464
|
}
|
|
1465
|
-
`,
|
|
1465
|
+
`,mu=$.button`
|
|
1466
1466
|
position: fixed;
|
|
1467
1467
|
top: 0.5rem;
|
|
1468
1468
|
left: 1rem;
|
|
@@ -1473,7 +1473,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1473
1473
|
@media (min-width: 768px) {
|
|
1474
1474
|
display: none;
|
|
1475
1475
|
}
|
|
1476
|
-
`,yi=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=mi(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(ln,{children:l&&g.jsx(
|
|
1476
|
+
`,yi=({navigationConfig:e,userRoles:t=[],activePath:n,logoImgExpanded:r,logoImgCollapsed:o,onNavigate:i=()=>{}})=>{const{isCollapsed:s,setIsCollapsed:a,isMobileOpen:l,setIsMobileOpen:c}=mi(),d=u=>{i(u),typeof window<"u"&&window.innerWidth<768&&c(!1)};return g.jsxs(g.Fragment,{children:[g.jsx(ln,{children:l&&g.jsx(cu,{...hi,onClick:()=>c(!1)})}),g.jsxs(uu,{$collapsed:l?!1:s,$open:l,children:[g.jsxs(du,{$collapsed:s,children:[g.jsx(fu,{children:s?o:r}),g.jsx(pu,{onClick:()=>a(!s),"aria-label":"Toggle collapse",children:g.jsx(K,{component:Bc,size:"md",color:"var(--color-main-blue-primary)"})})]}),g.jsx(hu,{children:e.map(u=>g.jsx(lu,{item:u,userRoles:t,onNavigate:d,activePath:n},u.id))})]}),g.jsx(mu,{onClick:()=>{c(!0),a(!1)},$hidden:l,children:g.jsx(K,{component:Bc,size:30})})]})};yi.displayName="Sidebar";const gu={underlined:T`
|
|
1477
1477
|
color: var(--color-main-orange-primary);
|
|
1478
1478
|
text-decoration-thickness: 1px;
|
|
1479
1479
|
text-underline-offset: 2px;
|
|
@@ -1533,7 +1533,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1533
1533
|
text-decoration-thickness: 1px;
|
|
1534
1534
|
text-underline-offset: 2px;
|
|
1535
1535
|
}
|
|
1536
|
-
`},
|
|
1536
|
+
`},yu=T`
|
|
1537
1537
|
color: var(--color-dark-200);
|
|
1538
1538
|
cursor: not-allowed;
|
|
1539
1539
|
pointer-events: none;
|
|
@@ -1551,7 +1551,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1551
1551
|
text-decoration: none;
|
|
1552
1552
|
transform: none;
|
|
1553
1553
|
}
|
|
1554
|
-
`,
|
|
1554
|
+
`,vu={sm:T`
|
|
1555
1555
|
gap: 0.25rem;
|
|
1556
1556
|
${V[14]}
|
|
1557
1557
|
`,md:T`
|
|
@@ -1560,7 +1560,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1560
1560
|
`,lg:T`
|
|
1561
1561
|
gap: 0.75rem;
|
|
1562
1562
|
${V[20]}
|
|
1563
|
-
`},
|
|
1563
|
+
`},s1=$.a`
|
|
1564
1564
|
display: inline-flex;
|
|
1565
1565
|
align-items: center;
|
|
1566
1566
|
border-radius: 0.25rem;
|
|
@@ -1572,10 +1572,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1572
1572
|
|
|
1573
1573
|
cursor: pointer;
|
|
1574
1574
|
|
|
1575
|
-
${({$size:e})=>
|
|
1576
|
-
${({$variant:e})=>
|
|
1577
|
-
${({$disabled:e})=>e&&
|
|
1578
|
-
`,
|
|
1575
|
+
${({$size:e})=>vu[e]}
|
|
1576
|
+
${({$variant:e})=>gu[e]}
|
|
1577
|
+
${({$disabled:e})=>e&&yu}
|
|
1578
|
+
`,a1=$.span`
|
|
1579
1579
|
flex: 1 1 auto;
|
|
1580
1580
|
min-width: 0;
|
|
1581
1581
|
max-width: 18ch;
|
|
@@ -1584,10 +1584,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1584
1584
|
text-overflow: ellipsis;
|
|
1585
1585
|
white-space: nowrap;
|
|
1586
1586
|
`}
|
|
1587
|
-
`,
|
|
1587
|
+
`,wu=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:f="tn",iconColor:h="currentColor",truncate:m=!1,"aria-label":y,"aria-describedby":w,onClick:v,...C},b)=>{const k=p.useCallback(P=>{if(l){P.preventDefault();return}v?.(P)},[l,v]),x={href:l?void 0:o,target:i||void 0,rel:s??(i==="_blank"?"noopener noreferrer":void 0),onClick:k,"aria-label":y??r,"aria-describedby":w,"aria-disabled":l,tabIndex:l?-1:c??0,...C};return g.jsxs(s1,{id:e,$variant:n,$size:t,$disabled:l,className:a,ref:b,...x,children:[d&&g.jsx(K,{component:d,size:f,color:h}),g.jsx(a1,{$truncate:m,children:r}),g.jsx(K,{component:u||wy,size:t==="lg"?"sm":f,color:h})]})});wu.displayName="Link";function l1(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function ot(e,t){return typeof e=="function"?e(t):e}function Ce(e,t){return n=>{t.setState(r=>({...r,[e]:ot(n,r[e])}))}}function dr(e){return e instanceof Function}function c1(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function u1(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 F(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,f=u/16,h=(m,y)=>{for(m=String(m);m.length<y;)m=" "+m;return m};console.info(`%c⏱ ${h(u,5)} /${h(d,5)} ms`,`
|
|
1588
1588
|
font-size: .6rem;
|
|
1589
1589
|
font-weight: bold;
|
|
1590
|
-
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function I(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 u1(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:F(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),I(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function d1(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=f=>{let h=f;for(const y of l.split(".")){var m;h=(m=h)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return h}:d=f=>f[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:F(()=>[!0],()=>{var f;return[u,...(f=u.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},I(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:F(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=u.columns)!=null&&h.length){let m=u.columns.flatMap(y=>y.getLeafColumns());return f(m)}return[u]},I(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(u,e);return u}const me="debugHeaders";function vu(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 f1={createTable:e=>{e.getHeaderGroups=F(()=>[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(f=>f.id===u)).filter(Boolean))!=null?i:[],l=(s=o?.map(u=>n.find(f=>f.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return fr(t,[...a,...c,...l],e)},I(e.options,me,"getHeaderGroups")),e.getCenterHeaderGroups=F(()=>[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))),fr(t,n,e,"center")),I(e.options,me,"getCenterHeaderGroups")),e.getLeftHeaderGroups=F(()=>[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 fr(t,i,e,"left")},I(e.options,me,"getLeftHeaderGroups")),e.getRightHeaderGroups=F(()=>[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 fr(t,i,e,"right")},I(e.options,me,"getRightHeaderGroups")),e.getFooterGroups=F(()=>[e.getHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getFooterGroups")),e.getLeftFooterGroups=F(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getLeftFooterGroups")),e.getCenterFooterGroups=F(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getCenterFooterGroups")),e.getRightFooterGroups=F(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getRightFooterGroups")),e.getFlatHeaders=F(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getFlatHeaders")),e.getLeftFlatHeaders=F(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getLeftFlatHeaders")),e.getCenterFlatHeaders=F(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getCenterFlatHeaders")),e.getRightFlatHeaders=F(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getRightFlatHeaders")),e.getCenterLeafHeaders=F(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getCenterLeafHeaders")),e.getLeftLeafHeaders=F(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getLeftLeafHeaders")),e.getRightLeafHeaders=F(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getRightLeafHeaders")),e.getLeafHeaders=F(()=>[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()},I(e.options,me,"getLeafHeaders"))}};function fr(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],x=w.column.depth===m.depth;let b,$=!1;if(x&&w.column.parent?b=w.column.parent:(b=w.column,$=!0),v&&v?.column===b)v.subHeaders.push(w);else{const S=vu(n,b,{id:[r,h,b.id,w?.id].filter(Boolean).join("_"),isPlaceholder:$,placeholderId:$?`${y.filter(P=>P.column===b).length}`:void 0,depth:h,index:y.length});S.subHeaders.push(w),y.push(S)}m.headers.push(w),w.headerGroup=m}),l.push(m),h>0&&c(y,h-1)},d=t.map((f,h)=>vu(n,f,{depth:s,index:h}));c(d,s-1),l.reverse();const u=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,w=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],u(m.subHeaders).forEach(b=>{let{colSpan:$,rowSpan:S}=b;y+=$,v.push(S)})):y=1;const x=Math.min(...v);return w=w+x,m.colSpan=y,m.rowSpan=w,{colSpan:y,rowSpan:w}});return u((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const vi=(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:()=>c1(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:F(()=>[e.getAllLeafColumns()],l=>l.map(c=>u1(e,a,c,c.id)),I(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:F(()=>[a.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),I(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},h1={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()}}},wu=(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))};wu.autoRemove=e=>Re(e);const bu=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};bu.autoRemove=e=>Re(e);const xu=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};xu.autoRemove=e=>Re(e);const Su=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Su.autoRemove=e=>Re(e);const Cu=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Cu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Tu=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});Tu.autoRemove=e=>Re(e)||!(e!=null&&e.length);const ku=(e,t,n)=>e.getValue(t)===n;ku.autoRemove=e=>Re(e);const $u=(e,t,n)=>e.getValue(t)==n;$u.autoRemove=e=>Re(e);const wi=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};wi.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]},wi.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const qe={includesString:wu,includesStringSensitive:bu,equalsString:xu,arrIncludes:Su,arrIncludesAll:Cu,arrIncludesSome:Tu,equals:ku,weakEquals:$u,inNumberRange:wi};function Re(e){return e==null||e===""}const p1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("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"?qe.includesString:typeof r=="number"?qe.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qe.equals:Array.isArray(r)?qe.arrIncludes:qe.weakEquals},e.getFilterFn=()=>{var n,r;return dr(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:qe[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=ot(n,i?i.value:void 0);if(Pu(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=ot(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Pu(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 Pu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const bi={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(!l1(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},m1={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:Ce("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 bi.sum;if(Object.prototype.toString.call(r)==="[object Date]")return bi.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return dr(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:bi[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 g1(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 y1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=F(n=>[vn(t,n)],n=>n.findIndex(r=>r.id===e.id),I(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=vn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=vn(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=F(()=>[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 g1(i,n,r)},I(e.options,"debugTable","_getOrderColumnsFn"))}},xi=()=>({left:[],right:[]}),v1={getInitialState:e=>({columnPinning:xi(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("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=F(()=>[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))},I(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=F(()=>[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"})),I(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=F(()=>[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"})),I(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?xi():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:xi())},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=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=F(()=>[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))},I(e.options,"debugColumns","getCenterLeafColumns"))}};function w1(e){return e||(typeof document<"u"?document:null)}const hr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Si=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),b1={getDefaultColumnDef:()=>hr,getInitialState:e=>({columnSizing:{},columnSizingInfo:Si(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("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:hr.minSize,(r=i??e.columnDef.size)!=null?r:hr.size),(o=e.columnDef.maxSize)!=null?o:hr.maxSize)},e.getStart=F(n=>[n,vn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),I(t.options,"debugColumns","getStart")),e.getAfter=F(n=>[n,vn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),I(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(),Ci(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=Ci(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(v,x)=>{typeof x=="number"&&(t.setColumnSizingInfo(b=>{var $,S;const P=t.options.columnResizeDirection==="rtl"?-1:1,E=(x-(($=b?.startOffset)!=null?$:0))*P,M=Math.max(E/((S=b?.startSize)!=null?S:0),-.999999);return b.columnSizingStart.forEach(L=>{let[_,G]=L;c[_]=Math.round(Math.max(G+G*M,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(b=>({...b,...c})))},u=v=>d("move",v),f=v=>{d("end",v),t.setColumnSizingInfo(x=>({...x,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=w1(n),m={moveHandler:v=>u(v.clientX),upHandler:v=>{h?.removeEventListener("mousemove",m.moveHandler),h?.removeEventListener("mouseup",m.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),u(v.touches[0].clientX),!1),upHandler:v=>{var x;h?.removeEventListener("touchmove",y.moveHandler),h?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((x=v.touches[0])==null?void 0:x.clientX)}},w=x1()?{passive:!1}:!1;Ci(i)?(h?.addEventListener("touchmove",y.moveHandler,w),h?.addEventListener("touchend",y.upHandler,w)):(h?.addEventListener("mousemove",m.moveHandler,w),h?.addEventListener("mouseup",m.upHandler,w)),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?Si():(n=e.initialState.columnSizingInfo)!=null?n:Si())},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 pr=null;function x1(){if(typeof pr=="boolean")return pr;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 pr=e,pr}function Ci(e){return e.type==="touchstart"}const S1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("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=F(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),I(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=F(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],I(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>F(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),I(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 vn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const C1={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()}}},T1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("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=()=>qe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return dr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qe[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},k1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("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()}}}},Ti=0,ki=10,$i=()=>({pageIndex:Ti,pageSize:ki}),$1={getInitialState:e=>({...e,pagination:{...$i(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("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=>ot(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?$i():(o=e.initialState.pagination)!=null?o:$i())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ot(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?Ti:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Ti)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?ki:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:ki)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ot(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=ot(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=F(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},I(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}}},Pi=()=>({top:[],bottom:[]}),P1={getInitialState:e=>({rowPinning:Pi(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("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,f;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((f=l?.bottom)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var h,m;return{top:[...((h=l?.top)!=null?h:[]).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?Pi():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Pi())},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=F(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),I(e.options,"debugRows","getTopRows")),e.getBottomRows=F(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),I(e.options,"debugRows","getBottomRows")),e.getCenterRows=F(()=>[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))},I(e.options,"debugRows","getCenterRows"))}},E1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("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=>{Ei(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=F(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=F(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=F(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(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 Ei(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ai(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Vi(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Vi(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)}}}},Ei=(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=>Ei(e,a.id,n,r,o))};function Mi(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const d=Ai(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 Ai(e,t){var n;return(n=t[e.id])!=null?n:!1}function Vi(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()&&(Ai(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Vi(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Di=/([0-9]+)/gm,M1=(e,t,n)=>Eu(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),A1=(e,t,n)=>Eu(it(e.getValue(n)),it(t.getValue(n))),V1=(e,t,n)=>Fi(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),D1=(e,t,n)=>Fi(it(e.getValue(n)),it(t.getValue(n))),F1=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},I1=(e,t,n)=>Fi(e.getValue(n),t.getValue(n));function Fi(e,t){return e===t?0:e>t?1:-1}function it(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Eu(e,t){const n=e.split(Di).filter(Boolean),r=t.split(Di).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 wn={alphanumeric:M1,alphanumericCaseSensitive:A1,text:V1,textCaseSensitive:D1,datetime:F1,basic:I1},R1=[f1,S1,y1,v1,h1,p1,C1,T1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("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 wn.datetime;if(typeof i=="string"&&(r=!0,i.split(Di).length>1))return wn.alphanumeric}return r?wn.text:wn.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 dr(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:wn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(h=>h.id===e.id),l=s?.findIndex(h=>h.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 f;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:u}:h):d==="remove"?c=s.filter(h=>h.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())}},m1,k1,$1,P1,E1,b1];function L1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...R1,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ot(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,h,m))!=null?y:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let m=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!m&&(m=o.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:F(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,w;return(y=(w=m.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},I(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:F(()=>[o._getColumnDefs()],f=>{const h=function(m,y,w){return w===void 0&&(w=0),m.map(v=>{const x=d1(o,v,w,y),b=v;return x.columns=b.columns?h(b.columns,x,w+1):[],x})};return h(f)},I(e,"debugColumns","getAllColumns")),getAllFlatColumns:F(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),I(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:F(()=>[o.getAllFlatColumns()],f=>f.reduce((h,m)=>(h[m.id]=m,h),{}),I(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:F(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let m=f.flatMap(y=>y.getLeafColumns());return h(m)},I(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(o,u);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function _1(){return e=>F(()=>[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=vi(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},I(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function N1(e,t,n){return n.options.filterFromLeafRows?O1(e,t,n):B1(e,t,n)}function O1(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 f=0;f<l.length;f++){var u;let h=l[f];const m=vi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(m.columnFilters=h.columnFilters,(u=h.subRows)!=null&&u.length&&c<s){if(m.subRows=a(h.subRows,c+1),h=m,t(h)&&!m.subRows.length){d.push(h),i[h.id]=h,o.push(h);continue}if(t(h)||m.subRows.length){d.push(h),i[h.id]=h,o.push(h);continue}}else h=m,t(h)&&(d.push(h),i[h.id]=h,o.push(h))}return d};return{rows:a(e),flatRows:o,rowsById:i}}function B1(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 f=0;f<l.length;f++){let h=l[f];if(t(h)){var u;if((u=h.subRows)!=null&&u.length&&c<s){const y=vi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);y.subRows=a(h.subRows,c+1),h=y}d.push(h),o.push(h),i[h.id]=h}}return d};return{rows:a(e),flatRows:o,rowsById:i}}function z1(){return e=>F(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(f=>{var h;const m=e.getColumn(f.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:f.id,filterFn:y,resolvedValue:(h=y.resolveFilterValue==null?void 0:y.resolveFilterValue(f.value))!=null?h:f.value})});const s=(n??[]).map(f=>f.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(f=>{var h;i.push({id:f.id,filterFn:a,resolvedValue:(h=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?h:r})}));let c,d;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;h.columnFilters[y]=c.filterFn(h,y,c.resolvedValue,w=>{h.columnFiltersMeta[y]=w})}if(i.length){for(let m=0;m<i.length;m++){d=i[m];const y=d.id;if(d.filterFn(h,y,d.resolvedValue,w=>{h.columnFiltersMeta[y]=w})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const u=f=>{for(let h=0;h<s.length;h++)if(f.columnFilters[s[h]]===!1)return!1;return!0};return N1(t.rows,u,e)},I(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function H1(){return e=>F(()=>[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 h=0;h<i.length;h+=1){var f;const m=i[h],y=s[m.id],w=y.sortUndefined,v=(f=m?.desc)!=null?f:!1;let x=0;if(w){const b=d.getValue(m.id),$=u.getValue(m.id),S=b===void 0,P=$===void 0;if(S||P){if(w==="first")return S?-1:1;if(w==="last")return S?1:-1;x=S&&P?0:S?w:-w}}if(x===0&&(x=y.sortingFn(d,u,m.id)),x!==0)return v&&(x*=-1),y.invertSorting&&(x*=-1),x}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}},I(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function mr(e,t){return e?j1(e)?lt.createElement(e,t):e:null}function j1(e){return G1(e)||typeof e=="function"||U1(e)}function G1(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function U1(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function W1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=lt.useState(()=>({current:L1(t)})),[r,o]=lt.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 K1=T`
|
|
1590
|
+
color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function I(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 d1(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:F(()=>[e,n,t,i],(s,a,l,c)=>({table:s,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),I(e.options,"debugCells","cell.getContext"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function f1(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=f=>{let h=f;for(const y of l.split(".")){var m;h=(m=h)==null?void 0:m[y],process.env.NODE_ENV!=="production"&&h===void 0&&console.warn(`"${y}" in deeply nested key "${l}" returned undefined.`)}return h}:d=f=>f[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:F(()=>[!0],()=>{var f;return[u,...(f=u.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},I(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:F(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=u.columns)!=null&&h.length){let m=u.columns.flatMap(y=>y.getLeafColumns());return f(m)}return[u]},I(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(u,e);return u}const me="debugHeaders";function bu(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 h1={createTable:e=>{e.getHeaderGroups=F(()=>[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(f=>f.id===u)).filter(Boolean))!=null?i:[],l=(s=o?.map(u=>n.find(f=>f.id===u)).filter(Boolean))!=null?s:[],c=n.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id)));return fr(t,[...a,...c,...l],e)},I(e.options,me,"getHeaderGroups")),e.getCenterHeaderGroups=F(()=>[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))),fr(t,n,e,"center")),I(e.options,me,"getCenterHeaderGroups")),e.getLeftHeaderGroups=F(()=>[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 fr(t,i,e,"left")},I(e.options,me,"getLeftHeaderGroups")),e.getRightHeaderGroups=F(()=>[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 fr(t,i,e,"right")},I(e.options,me,"getRightHeaderGroups")),e.getFooterGroups=F(()=>[e.getHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getFooterGroups")),e.getLeftFooterGroups=F(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getLeftFooterGroups")),e.getCenterFooterGroups=F(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getCenterFooterGroups")),e.getRightFooterGroups=F(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),I(e.options,me,"getRightFooterGroups")),e.getFlatHeaders=F(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getFlatHeaders")),e.getLeftFlatHeaders=F(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getLeftFlatHeaders")),e.getCenterFlatHeaders=F(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getCenterFlatHeaders")),e.getRightFlatHeaders=F(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),I(e.options,me,"getRightFlatHeaders")),e.getCenterLeafHeaders=F(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getCenterLeafHeaders")),e.getLeftLeafHeaders=F(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getLeftLeafHeaders")),e.getRightLeafHeaders=F(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),I(e.options,me,"getRightLeafHeaders")),e.getLeafHeaders=F(()=>[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()},I(e.options,me,"getLeafHeaders"))}};function fr(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(m=>m.getIsVisible()).forEach(m=>{var y;(y=m.columns)!=null&&y.length&&a(m.columns,h+1)},0)};a(e);let l=[];const c=(f,h)=>{const m={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},y=[];f.forEach(w=>{const v=[...y].reverse()[0],C=w.column.depth===m.depth;let b,k=!1;if(C&&w.column.parent?b=w.column.parent:(b=w.column,k=!0),v&&v?.column===b)v.subHeaders.push(w);else{const x=bu(n,b,{id:[r,h,b.id,w?.id].filter(Boolean).join("_"),isPlaceholder:k,placeholderId:k?`${y.filter(P=>P.column===b).length}`:void 0,depth:h,index:y.length});x.subHeaders.push(w),y.push(x)}m.headers.push(w),w.headerGroup=m}),l.push(m),h>0&&c(y,h-1)},d=t.map((f,h)=>bu(n,f,{depth:s,index:h}));c(d,s-1),l.reverse();const u=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let y=0,w=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],u(m.subHeaders).forEach(b=>{let{colSpan:k,rowSpan:x}=b;y+=k,v.push(x)})):y=1;const C=Math.min(...v);return w=w+C,m.colSpan=y,m.rowSpan=w,{colSpan:y,rowSpan:w}});return u((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const vi=(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:()=>u1(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:F(()=>[e.getAllLeafColumns()],l=>l.map(c=>d1(e,a,c,c.id)),I(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:F(()=>[a.getAllCells()],l=>l.reduce((c,d)=>(c[d.column.id]=d,c),{}),I(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},p1={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()}}},xu=(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))};xu.autoRemove=e=>Re(e);const Su=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Su.autoRemove=e=>Re(e);const Cu=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Cu.autoRemove=e=>Re(e);const Tu=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Tu.autoRemove=e=>Re(e);const $u=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});$u.autoRemove=e=>Re(e)||!(e!=null&&e.length);const ku=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});ku.autoRemove=e=>Re(e)||!(e!=null&&e.length);const Pu=(e,t,n)=>e.getValue(t)===n;Pu.autoRemove=e=>Re(e);const Eu=(e,t,n)=>e.getValue(t)==n;Eu.autoRemove=e=>Re(e);const wi=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};wi.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]},wi.autoRemove=e=>Re(e)||Re(e[0])&&Re(e[1]);const qe={includesString:xu,includesStringSensitive:Su,equalsString:Cu,arrIncludes:Tu,arrIncludesAll:$u,arrIncludesSome:ku,equals:Pu,weakEquals:Eu,inNumberRange:wi};function Re(e){return e==null||e===""}const m1={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ce("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"?qe.includesString:typeof r=="number"?qe.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?qe.equals:Array.isArray(r)?qe.arrIncludes:qe.weakEquals},e.getFilterFn=()=>{var n,r;return dr(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:qe[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=ot(n,i?i.value:void 0);if(Mu(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=ot(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(Mu(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 Mu(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const bi={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(!c1(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},g1={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:Ce("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 bi.sum;if(Object.prototype.toString.call(r)==="[object Date]")return bi.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return dr(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:bi[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 y1(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 v1={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ce("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=F(n=>[vn(t,n)],n=>n.findIndex(r=>r.id===e.id),I(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return((r=vn(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=vn(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=F(()=>[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 y1(i,n,r)},I(e.options,"debugTable","_getOrderColumnsFn"))}},xi=()=>({left:[],right:[]}),w1={getInitialState:e=>({columnPinning:xi(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ce("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=F(()=>[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))},I(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=F(()=>[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"})),I(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=F(()=>[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"})),I(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?xi():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:xi())},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=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=F(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),I(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=F(()=>[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))},I(e.options,"debugColumns","getCenterLeafColumns"))}};function b1(e){return e||(typeof document<"u"?document:null)}const hr={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Si=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),x1={getDefaultColumnDef:()=>hr,getInitialState:e=>({columnSizing:{},columnSizingInfo:Si(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ce("columnSizing",e),onColumnSizingInfoChange:Ce("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:hr.minSize,(r=i??e.columnDef.size)!=null?r:hr.size),(o=e.columnDef.maxSize)!=null?o:hr.maxSize)},e.getStart=F(n=>[n,vn(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),I(t.options,"debugColumns","getStart")),e.getAfter=F(n=>[n,vn(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),I(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(),Ci(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=Ci(i)?Math.round(i.touches[0].clientX):i.clientX,c={},d=(v,C)=>{typeof C=="number"&&(t.setColumnSizingInfo(b=>{var k,x;const P=t.options.columnResizeDirection==="rtl"?-1:1,E=(C-((k=b?.startOffset)!=null?k:0))*P,M=Math.max(E/((x=b?.startSize)!=null?x:0),-.999999);return b.columnSizingStart.forEach(L=>{let[_,G]=L;c[_]=Math.round(Math.max(G+G*M,0)*100)/100}),{...b,deltaOffset:E,deltaPercentage:M}}),(t.options.columnResizeMode==="onChange"||v==="end")&&t.setColumnSizing(b=>({...b,...c})))},u=v=>d("move",v),f=v=>{d("end",v),t.setColumnSizingInfo(C=>({...C,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=b1(n),m={moveHandler:v=>u(v.clientX),upHandler:v=>{h?.removeEventListener("mousemove",m.moveHandler),h?.removeEventListener("mouseup",m.upHandler),f(v.clientX)}},y={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),u(v.touches[0].clientX),!1),upHandler:v=>{var C;h?.removeEventListener("touchmove",y.moveHandler),h?.removeEventListener("touchend",y.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((C=v.touches[0])==null?void 0:C.clientX)}},w=S1()?{passive:!1}:!1;Ci(i)?(h?.addEventListener("touchmove",y.moveHandler,w),h?.addEventListener("touchend",y.upHandler,w)):(h?.addEventListener("mousemove",m.moveHandler,w),h?.addEventListener("mouseup",m.upHandler,w)),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?Si():(n=e.initialState.columnSizingInfo)!=null?n:Si())},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 pr=null;function S1(){if(typeof pr=="boolean")return pr;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 pr=e,pr}function Ci(e){return e.type==="touchstart"}const C1={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ce("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=F(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),I(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=F(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],I(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,r)=>F(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),I(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 vn(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const T1={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()}}},$1={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ce("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=()=>qe.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return dr(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:qe[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},k1={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ce("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()}}}},Ti=0,$i=10,ki=()=>({pageIndex:Ti,pageSize:$i}),P1={getInitialState:e=>({...e,pagination:{...ki(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ce("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=>ot(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?ki():(o=e.initialState.pagination)!=null?o:ki())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ot(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?Ti:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Ti)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?$i:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:$i)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ot(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=ot(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=F(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},I(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}}},Pi=()=>({top:[],bottom:[]}),E1={getInitialState:e=>({rowPinning:Pi(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ce("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,f;return{top:((u=l?.top)!=null?u:[]).filter(y=>!(a!=null&&a.has(y))),bottom:[...((f=l?.bottom)!=null?f:[]).filter(y=>!(a!=null&&a.has(y))),...Array.from(a)]}}if(n==="top"){var h,m;return{top:[...((h=l?.top)!=null?h:[]).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?Pi():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Pi())},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=F(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),I(e.options,"debugRows","getTopRows")),e.getBottomRows=F(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),I(e.options,"debugRows","getBottomRows")),e.getCenterRows=F(()=>[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))},I(e.options,"debugRows","getCenterRows"))}},M1={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ce("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=>{Ei(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=F(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=F(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=F(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Mi(e,n):{rows:[],flatRows:[],rowsById:{}},I(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 Ei(a,e.id,n,(s=r?.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ai(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Vi(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Vi(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)}}}},Ei=(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=>Ei(e,a.id,n,r,o))};function Mi(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var c;const d=Ai(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 Ai(e,t){var n;return(n=t[e.id])!=null?n:!1}function Vi(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()&&(Ai(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Vi(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Di=/([0-9]+)/gm,A1=(e,t,n)=>Au(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),V1=(e,t,n)=>Au(it(e.getValue(n)),it(t.getValue(n))),D1=(e,t,n)=>Fi(it(e.getValue(n)).toLowerCase(),it(t.getValue(n)).toLowerCase()),F1=(e,t,n)=>Fi(it(e.getValue(n)),it(t.getValue(n))),I1=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},R1=(e,t,n)=>Fi(e.getValue(n),t.getValue(n));function Fi(e,t){return e===t?0:e>t?1:-1}function it(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Au(e,t){const n=e.split(Di).filter(Boolean),r=t.split(Di).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 wn={alphanumeric:A1,alphanumericCaseSensitive:V1,text:D1,textCaseSensitive:F1,datetime:I1,basic:R1},L1=[h1,C1,v1,w1,p1,m1,T1,$1,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ce("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 wn.datetime;if(typeof i=="string"&&(r=!0,i.split(Di).length>1))return wn.alphanumeric}return r?wn.text:wn.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 dr(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:wn[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s?.find(h=>h.id===e.id),l=s?.findIndex(h=>h.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 f;c=[...s,{id:e.id,desc:u}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else d==="toggle"?c=s.map(h=>h.id===e.id?{...h,desc:u}:h):d==="remove"?c=s.filter(h=>h.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())}},g1,k1,P1,E1,M1,x1];function _1(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...L1,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const c=[];let d=!1;const u={_features:r,options:{...i,...e},initialState:l,_queue:f=>{c.push(f),d||(d=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();d=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ot(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,m)=>{var y;return(y=o.options.getRowId==null?void 0:o.options.getRowId(f,h,m))!=null?y:`${m?[m.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let m=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!m&&(m=o.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:F(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:m=>{const y=m.header.column.columnDef;return y.accessorKey?y.accessorKey:y.accessorFn?y.id:null},cell:m=>{var y,w;return(y=(w=m.renderValue())==null||w.toString==null?void 0:w.toString())!=null?y:null},...o._features.reduce((m,y)=>Object.assign(m,y.getDefaultColumnDef==null?void 0:y.getDefaultColumnDef()),{}),...f}},I(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:F(()=>[o._getColumnDefs()],f=>{const h=function(m,y,w){return w===void 0&&(w=0),m.map(v=>{const C=f1(o,v,w,y),b=v;return C.columns=b.columns?h(b.columns,C,w+1):[],C})};return h(f)},I(e,"debugColumns","getAllColumns")),getAllFlatColumns:F(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),I(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:F(()=>[o.getAllFlatColumns()],f=>f.reduce((h,m)=>(h[m.id]=m,h),{}),I(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:F(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let m=f.flatMap(y=>y.getLeafColumns());return h(m)},I(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const h=o._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!h&&console.error(`[Table] Column with id '${f}' does not exist.`),h}};Object.assign(o,u);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function N1(){return e=>F(()=>[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=vi(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},I(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function O1(e,t,n){return n.options.filterFromLeafRows?B1(e,t,n):z1(e,t,n)}function B1(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 f=0;f<l.length;f++){var u;let h=l[f];const m=vi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(m.columnFilters=h.columnFilters,(u=h.subRows)!=null&&u.length&&c<s){if(m.subRows=a(h.subRows,c+1),h=m,t(h)&&!m.subRows.length){d.push(h),i[h.id]=h,o.push(h);continue}if(t(h)||m.subRows.length){d.push(h),i[h.id]=h,o.push(h);continue}}else h=m,t(h)&&(d.push(h),i[h.id]=h,o.push(h))}return d};return{rows:a(e),flatRows:o,rowsById:i}}function z1(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 f=0;f<l.length;f++){let h=l[f];if(t(h)){var u;if((u=h.subRows)!=null&&u.length&&c<s){const y=vi(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);y.subRows=a(h.subRows,c+1),h=y}d.push(h),o.push(h),i[h.id]=h}}return d};return{rows:a(e),flatRows:o,rowsById:i}}function H1(){return e=>F(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(f=>{var h;const m=e.getColumn(f.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:f.id,filterFn:y,resolvedValue:(h=y.resolveFilterValue==null?void 0:y.resolveFilterValue(f.value))!=null?h:f.value})});const s=(n??[]).map(f=>f.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(f=>{var h;i.push({id:f.id,filterFn:a,resolvedValue:(h=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?h:r})}));let c,d;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},o.length)for(let m=0;m<o.length;m++){c=o[m];const y=c.id;h.columnFilters[y]=c.filterFn(h,y,c.resolvedValue,w=>{h.columnFiltersMeta[y]=w})}if(i.length){for(let m=0;m<i.length;m++){d=i[m];const y=d.id;if(d.filterFn(h,y,d.resolvedValue,w=>{h.columnFiltersMeta[y]=w})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const u=f=>{for(let h=0;h<s.length;h++)if(f.columnFilters[s[h]]===!1)return!1;return!0};return O1(t.rows,u,e)},I(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function j1(){return e=>F(()=>[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 h=0;h<i.length;h+=1){var f;const m=i[h],y=s[m.id],w=y.sortUndefined,v=(f=m?.desc)!=null?f:!1;let C=0;if(w){const b=d.getValue(m.id),k=u.getValue(m.id),x=b===void 0,P=k===void 0;if(x||P){if(w==="first")return x?-1:1;if(w==="last")return x?1:-1;C=x&&P?0:x?w:-w}}if(C===0&&(C=y.sortingFn(d,u,m.id)),C!==0)return v&&(C*=-1),y.invertSorting&&(C*=-1),C}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}},I(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}function mr(e,t){return e?G1(e)?lt.createElement(e,t):e:null}function G1(e){return U1(e)||typeof e=="function"||W1(e)}function U1(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function W1(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function K1(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=lt.useState(()=>({current:_1(t)})),[r,o]=lt.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 q1=T`
|
|
1591
1591
|
@media (max-width: 768px) {
|
|
1592
1592
|
font-size: 0.875rem;
|
|
1593
1593
|
|
|
@@ -1596,7 +1596,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1596
1596
|
padding: 0.5rem 0.75rem;
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
|
-
`,
|
|
1599
|
+
`,Y1={default:T`
|
|
1600
1600
|
thead tr:last-child th:first-child {
|
|
1601
1601
|
border-top-left-radius: var(--border-radius-article);
|
|
1602
1602
|
}
|
|
@@ -1642,17 +1642,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1642
1642
|
`,lg:T`
|
|
1643
1643
|
padding: 0.75rem 1.5rem;
|
|
1644
1644
|
min-height: 2.75rem;
|
|
1645
|
-
`},
|
|
1645
|
+
`},Vu=T`
|
|
1646
1646
|
display: flex;
|
|
1647
1647
|
align-items: center;
|
|
1648
1648
|
gap: 0.5rem;
|
|
1649
1649
|
width: 100%;
|
|
1650
|
-
`,
|
|
1650
|
+
`,X1=$.div`
|
|
1651
1651
|
position: relative;
|
|
1652
1652
|
border-radius: var(--border-radius-article);
|
|
1653
1653
|
overflow: ${({$maxHeight:e})=>e?"auto":"visible"};
|
|
1654
1654
|
max-height: ${({$maxHeight:e})=>e?typeof e=="number"?`${e}px`:e:"none"};
|
|
1655
|
-
`,
|
|
1655
|
+
`,Du=$.table`
|
|
1656
1656
|
width: 100%;
|
|
1657
1657
|
border-collapse: separate;
|
|
1658
1658
|
border-spacing: 0;
|
|
@@ -1660,34 +1660,29 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1660
1660
|
border-radius: var(--border-radius-article);
|
|
1661
1661
|
border: 1px solid var(--color-main-light-borders);
|
|
1662
1662
|
|
|
1663
|
-
${({$variant:e})=>
|
|
1664
|
-
${
|
|
1665
|
-
`,Z1
|
|
1663
|
+
${({$variant:e})=>Y1[e]}
|
|
1664
|
+
${q1}
|
|
1665
|
+
`,Z1=$.thead`
|
|
1666
1666
|
${({$sticky:e})=>e&&T`
|
|
1667
1667
|
position: sticky;
|
|
1668
1668
|
top: 0;
|
|
1669
1669
|
z-index: 10;
|
|
1670
1670
|
`}
|
|
1671
|
-
`,
|
|
1671
|
+
`,Fu=$.tr`
|
|
1672
1672
|
&:hover {
|
|
1673
1673
|
background-color: var(--color-main-alternative-secondary);
|
|
1674
1674
|
}
|
|
1675
1675
|
${({$clickable:e})=>e&&T`
|
|
1676
1676
|
cursor: pointer;
|
|
1677
1677
|
`}
|
|
1678
|
-
|
|
1678
|
+
`;$.span`
|
|
1679
1679
|
display: inline-flex;
|
|
1680
1680
|
align-items: center;
|
|
1681
1681
|
justify-content: center;
|
|
1682
1682
|
transition: transform 0.2s ease-out;
|
|
1683
1683
|
opacity: ${({$direction:e})=>e==="none"?.5:1};
|
|
1684
1684
|
transform: ${({$direction:e})=>e==="asc"?"rotate(180deg)":"none"};
|
|
1685
|
-
`;const J1=
|
|
1686
|
-
padding: 2rem;
|
|
1687
|
-
text-align: center;
|
|
1688
|
-
color: var(--color-text-secondary, #666);
|
|
1689
|
-
font-size: 0.9375rem;
|
|
1690
|
-
`,Q1={sm:T`
|
|
1685
|
+
`;const J1={sm:T`
|
|
1691
1686
|
${Kt.sm}
|
|
1692
1687
|
${V[12]}
|
|
1693
1688
|
`,md:T`
|
|
@@ -1696,10 +1691,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1696
1691
|
`,lg:T`
|
|
1697
1692
|
${Kt.lg}
|
|
1698
1693
|
${V[16]}
|
|
1699
|
-
`},
|
|
1694
|
+
`},Q1=$.th`
|
|
1700
1695
|
background-color: var(--color-main-blue-primary);
|
|
1701
1696
|
color: var(--color-main-white);
|
|
1702
|
-
${({$size:e})=>
|
|
1697
|
+
${({$size:e})=>J1[e]}
|
|
1703
1698
|
transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
|
|
1704
1699
|
min-width: 8rem;
|
|
1705
1700
|
width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"fit-content"};
|
|
@@ -1711,10 +1706,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1711
1706
|
${({$active:e})=>e&&T`
|
|
1712
1707
|
background-color: var(--color-blue-400);
|
|
1713
1708
|
`}
|
|
1714
|
-
`,
|
|
1715
|
-
${
|
|
1709
|
+
`,Iu=$.div`
|
|
1710
|
+
${Vu};
|
|
1716
1711
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1717
|
-
`,
|
|
1712
|
+
`,Ru=$.button`
|
|
1718
1713
|
all: unset;
|
|
1719
1714
|
display: inline-flex;
|
|
1720
1715
|
align-items: center;
|
|
@@ -1731,7 +1726,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1731
1726
|
&:focus-visible {
|
|
1732
1727
|
outline-color: var(--color-main-white);
|
|
1733
1728
|
}
|
|
1734
|
-
`,
|
|
1729
|
+
`,ew=$.span`
|
|
1735
1730
|
display: inline-flex;
|
|
1736
1731
|
align-items: center;
|
|
1737
1732
|
justify-content: center;
|
|
@@ -1743,10 +1738,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1743
1738
|
transform 0.25s ease-out,
|
|
1744
1739
|
opacity 0.2s ease-out;
|
|
1745
1740
|
|
|
1746
|
-
${
|
|
1741
|
+
${Ru}:hover & {
|
|
1747
1742
|
opacity: 1;
|
|
1748
1743
|
}
|
|
1749
|
-
`,
|
|
1744
|
+
`,tw=$.div`
|
|
1750
1745
|
display: flex;
|
|
1751
1746
|
align-items: center;
|
|
1752
1747
|
padding: 0.5rem 0.75rem;
|
|
@@ -1761,7 +1756,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1761
1756
|
&:active {
|
|
1762
1757
|
background-color: var(--color-neutral-200);
|
|
1763
1758
|
}
|
|
1764
|
-
`,Ii=p.memo(({value:e,label:t,checked:n,onChange:r})=>{const o=i=>{r(e,i.target.checked)};return g.jsx(
|
|
1759
|
+
`,Ii=p.memo(({value:e,label:t,checked:n,onChange:r})=>{const o=i=>{r(e,i.target.checked)};return g.jsx(tw,{children:g.jsx(yn,{checked:n,onChange:o,size:"xs",checkboxClassName:"filter-option-checkbox",label:t})})});Ii.displayName="FilterOption";function Lu(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 _u(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 Nu(e,t){if(!t||t.trim()==="")return e;const n=t.toLowerCase().trim();return e.filter(r=>r.toLowerCase().includes(n))}function nw(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 rw(e,t){const n=e.find(r=>r.id===t);return n?n.value?.length>0:!1}function Ou(e,t){const n=e.find(r=>r.id===t);return n?n.value||[]:[]}function ow(e){return e.reduce((t,n)=>{const r=n.value;return t+(r?.length||0)},0)}const iw=$.div`
|
|
1765
1760
|
position: absolute;
|
|
1766
1761
|
top: 100%;
|
|
1767
1762
|
right: 0;
|
|
@@ -1778,42 +1773,23 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1778
1773
|
display: flex;
|
|
1779
1774
|
flex-direction: column;
|
|
1780
1775
|
max-height: 400px;
|
|
1781
|
-
`,
|
|
1776
|
+
`,sw=$.div`
|
|
1782
1777
|
flex: 1;
|
|
1783
1778
|
overflow-y: auto;
|
|
1784
1779
|
padding: 0.5rem;
|
|
1785
1780
|
max-height: 280px;
|
|
1786
|
-
|
|
1787
|
-
/* Custom scrollbar */
|
|
1788
|
-
&::-webkit-scrollbar {
|
|
1789
|
-
width: 8px;
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
&::-webkit-scrollbar-track {
|
|
1793
|
-
background: var(--color-neutral-100);
|
|
1794
|
-
border-radius: 4px;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
&::-webkit-scrollbar-thumb {
|
|
1798
|
-
background: var(--color-neutral-300);
|
|
1799
|
-
border-radius: 4px;
|
|
1800
|
-
|
|
1801
|
-
&:hover {
|
|
1802
|
-
background: var(--color-neutral-400);
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
`,lw=k.div`
|
|
1781
|
+
`,aw=$.div`
|
|
1806
1782
|
display: flex;
|
|
1807
1783
|
gap: 0.5rem;
|
|
1808
1784
|
padding: 0.75rem;
|
|
1809
1785
|
border-top: 1px solid var(--color-neutral-200);
|
|
1810
1786
|
background: var(--color-neutral-50);
|
|
1811
|
-
`,
|
|
1787
|
+
`,lw=$.div`
|
|
1812
1788
|
padding: 0.5rem 0.75rem;
|
|
1813
1789
|
border-bottom: 1px solid var(--color-neutral-200);
|
|
1814
1790
|
display: flex;
|
|
1815
1791
|
gap: 0.5rem;
|
|
1816
|
-
`,
|
|
1792
|
+
`,cw=$.button`
|
|
1817
1793
|
flex: 1;
|
|
1818
1794
|
padding: 0.375rem 0.5rem;
|
|
1819
1795
|
font-size: 0.75rem;
|
|
@@ -1832,10 +1808,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1832
1808
|
&:active {
|
|
1833
1809
|
transform: scale(0.98);
|
|
1834
1810
|
}
|
|
1835
|
-
`,Ri=({options:e,selectedValues:t,onChange:n,onClose:r,searchPlaceholder:o="Search..."})=>{const[i,s]=p.useState(""),a=p.useMemo(()=>
|
|
1811
|
+
`,Ri=({options:e,selectedValues:t,onChange:n,onClose:r,searchPlaceholder:o="Search..."})=>{const[i,s]=p.useState(""),a=p.useMemo(()=>Nu(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(w=>w!==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]),f=p.useCallback(()=>{n([])},[n]),h=p.useCallback(()=>{r()},[r]);return g.jsx(g.Fragment,{children:g.jsxs(iw,{onClick:m=>m.stopPropagation(),children:[g.jsx("div",{className:"p-2",children:g.jsx(si,{value:i,onSearch:s,placeholder:o,size:"xs"})}),a.length>0&&g.jsx(lw,{children:g.jsx(cw,{onClick:l?u:d,type:"button",children:l?"Deselect All":"Select All"})}),g.jsx(sw,{children:a.length>0?a.map(m=>g.jsx(Ii,{value:m,label:m,checked:t.includes(m),onChange:c},m)):g.jsx(mn,{children:i?"No matching options":"No options available"})}),g.jsxs(aw,{children:[g.jsx(Ut,{variant:"outline",size:"sm",onClick:f,disabled:t.length===0,className:"flex-1",children:"Clear"}),g.jsx(Ut,{variant:"primary",size:"sm",onClick:h,className:"flex-1",children:"Close"})]})]})})};Ri.displayName="ColumnFilterMenu";function uw(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 dw=$.div`
|
|
1836
1812
|
position: relative;
|
|
1837
1813
|
display: inline-flex;
|
|
1838
|
-
`,
|
|
1814
|
+
`,fw=$(Ut)`
|
|
1839
1815
|
min-height: auto;
|
|
1840
1816
|
padding: 0.25rem;
|
|
1841
1817
|
border: none;
|
|
@@ -1858,12 +1834,12 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1858
1834
|
${({$isActive:e})=>e&&`
|
|
1859
1835
|
opacity: 1;
|
|
1860
1836
|
`}
|
|
1861
|
-
`,gr=({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=f=>{f.key==="Escape"&&o&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]),
|
|
1837
|
+
`,gr=({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=f=>{f.key==="Escape"&&o&&c()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[o]),uw(s,c,o),g.jsx(g.Fragment,{children:g.jsxs(dw,{ref:s,onClick:u=>u.stopPropagation(),children:[g.jsx(fw,{size:"sm",onClick:l,"aria-label":`Filter ${e.id}`,"aria-expanded":o,$isActive:a,leftIcon:g.jsx(K,{component:a?Sy:Cy,size:16,"aria-hidden":"true",color:"white"})}),o&&g.jsx(Ri,{options:t,selectedValues:n,onChange:d,onClose:c,searchPlaceholder:`Search ${e.id}...`})]})})};gr.displayName="ColumnFilter";const hw=e=>{const{columnFilters:t,setColumnFilters:n}=bn(),r=Ou(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}},Bu=$.div`
|
|
1862
1838
|
display: flex;
|
|
1863
1839
|
align-items: center;
|
|
1864
1840
|
gap: 0.25rem;
|
|
1865
1841
|
width: 100%;
|
|
1866
|
-
`,
|
|
1842
|
+
`,zu=({header:e})=>{const{size:t,getUniqueValues:n}=bn(),{selectedValues:r,handleChange:o}=hw(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(Q1,{$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(Ru,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${mr(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(Iu,{$align:i?.align,children:g.jsxs(Bu,{children:[mr(e.column.columnDef.header,e.getContext()),g.jsx(ew,{$direction:c,children:c==="none"?g.jsx(K,{component:vy,size:"tn"}):g.jsx(K,{component:gy,size:"tn"})})]})})}),a&&g.jsx(gr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]}):g.jsx(Iu,{$align:i?.align,children:g.jsxs(Bu,{children:[mr(e.column.columnDef.header,e.getContext()),a&&g.jsx(gr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]})})})},Hu=({headerGroup:e})=>g.jsx(Fu,{children:e.headers.map(t=>g.jsx(zu,{header:t},t.id))}),Li=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(Z1,{$sticky:t,className:n,children:e.map(r=>g.jsx(Hu,{headerGroup:r},r.id))}),pw={sm:T`
|
|
1867
1843
|
${Kt.sm}
|
|
1868
1844
|
${V[14]}
|
|
1869
1845
|
`,md:T`
|
|
@@ -1872,8 +1848,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1872
1848
|
`,lg:T`
|
|
1873
1849
|
${Kt.lg}
|
|
1874
1850
|
${V[16]}
|
|
1875
|
-
`},
|
|
1876
|
-
overflow: hidden;
|
|
1851
|
+
`},mw=$.td`
|
|
1877
1852
|
min-width: 0;
|
|
1878
1853
|
max-width: ${({$width:e})=>e?typeof e=="number"?`${e}px`:e:"auto"};
|
|
1879
1854
|
|
|
@@ -1888,17 +1863,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1888
1863
|
|
|
1889
1864
|
vertical-align: middle;
|
|
1890
1865
|
color: var(--color-main-blue-primary);
|
|
1891
|
-
${({$size:e})=>
|
|
1866
|
+
${({$size:e})=>pw[e]}
|
|
1892
1867
|
text-align: ${({$align:e})=>e||"left"};
|
|
1893
1868
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1894
1869
|
border-top: 1px solid var(--color-main-light-borders);
|
|
1895
1870
|
transition: background-color 0.3s ease-out;
|
|
1896
|
-
`,
|
|
1897
|
-
${
|
|
1871
|
+
`,gw=$.section`
|
|
1872
|
+
${Vu};
|
|
1898
1873
|
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1899
1874
|
|
|
1900
1875
|
width: 100%;
|
|
1901
|
-
`,
|
|
1876
|
+
`,yw=$.span`
|
|
1902
1877
|
width: 100%;
|
|
1903
1878
|
${({$ellipsis:e})=>e&&T`
|
|
1904
1879
|
min-width: 0;
|
|
@@ -1906,7 +1881,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1906
1881
|
text-overflow: ellipsis;
|
|
1907
1882
|
white-space: nowrap;
|
|
1908
1883
|
`}
|
|
1909
|
-
`,
|
|
1884
|
+
`,ju=({cell:e})=>{const{size:t}=bn(),n=e.column.columnDef.meta,r=e.getValue(),o=typeof r=="string"||typeof r=="number"?String(r):void 0;return g.jsx(mw,{$size:n?.size||t,$align:n?.align,$width:e.column.getSize(),title:n?.ellipsis&&o?o:void 0,className:n?.className,children:g.jsx(gw,{$align:n?.align,children:g.jsx(yw,{$ellipsis:n?.ellipsis,children:mr(e.column.columnDef.cell,e.getContext())})})})},Gu=p.memo(function({row:t,className:n}){const{onRowClick:r}=bn(),o=!!r;return g.jsx(Fu,{$clickable:o,onClick:()=>o&&r(t.original),role:o?"button":void 0,tabIndex:o?0:void 0,className:n,children:t.getVisibleCells().map(i=>g.jsx(ju,{cell:i},i.id))})}),_i=({rows:e,className:t,rowClassName:n})=>g.jsxs("tbody",{className:t,children:[e.map(r=>g.jsx(Gu,{row:r,className:n},r.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"})})]}),vw=$.section`
|
|
1910
1885
|
display: flex;
|
|
1911
1886
|
align-items: center;
|
|
1912
1887
|
gap: 0.5rem;
|
|
@@ -1917,7 +1892,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1917
1892
|
justify-content: center;
|
|
1918
1893
|
gap: 0.25rem;
|
|
1919
1894
|
}
|
|
1920
|
-
`,
|
|
1895
|
+
`,Uu=$.button`
|
|
1921
1896
|
${V[14]}
|
|
1922
1897
|
display: flex;
|
|
1923
1898
|
align-items: center;
|
|
@@ -1947,7 +1922,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1947
1922
|
outline-color: var(--color-main-blue-primary);
|
|
1948
1923
|
outline-offset: 2px;
|
|
1949
1924
|
}
|
|
1950
|
-
`,Uu
|
|
1925
|
+
`,Wu=$(Uu)`
|
|
1951
1926
|
gap: 0.25rem;
|
|
1952
1927
|
padding: 0 0.75rem;
|
|
1953
1928
|
font-weight: 400;
|
|
@@ -1961,9 +1936,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1961
1936
|
height: 1rem;
|
|
1962
1937
|
}
|
|
1963
1938
|
}
|
|
1964
|
-
`,
|
|
1939
|
+
`,ww=$(Uu)`
|
|
1965
1940
|
min-width: 2rem;
|
|
1966
|
-
`,
|
|
1941
|
+
`,bw=$.span`
|
|
1967
1942
|
${V[14]}
|
|
1968
1943
|
display: flex;
|
|
1969
1944
|
align-items: center;
|
|
@@ -1972,7 +1947,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1972
1947
|
height: 2rem;
|
|
1973
1948
|
color: var(--color-main-blue-primary);
|
|
1974
1949
|
user-select: none;
|
|
1975
|
-
`,
|
|
1950
|
+
`,xw=$.div`
|
|
1976
1951
|
display: flex;
|
|
1977
1952
|
align-items: center;
|
|
1978
1953
|
gap: 0.5rem;
|
|
@@ -1991,7 +1966,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1991
1966
|
justify-content: center;
|
|
1992
1967
|
order: 10; /* Move to bottom on mobile */
|
|
1993
1968
|
}
|
|
1994
|
-
`,
|
|
1969
|
+
`,Sw=$(ur)`
|
|
1995
1970
|
button {
|
|
1996
1971
|
${V[14]}
|
|
1997
1972
|
height: 2rem;
|
|
@@ -2007,7 +1982,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2007
1982
|
div {
|
|
2008
1983
|
right: 10%;
|
|
2009
1984
|
}
|
|
2010
|
-
`,
|
|
1985
|
+
`,Cw=({onPageChange:e,onPerPageChange:t,perPage:n=10,page:r=1,totalPages:o,totalRecords:i,rowsPerPageOptions:s})=>{const l=(()=>{const h=[];if(o<=7)for(let y=1;y<=o;y++)h.push(y);else{h.push(1),r>3&&h.push("...");const y=Math.max(2,r-1),w=Math.min(o-1,r+1);for(let v=y;v<=w;v++)h.push(v);r<o-2&&h.push("..."),h.push(o)}return h})(),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,f=d?Math.min(r*n,i):0;return g.jsxs(vw,{children:[d&&g.jsxs(mn,{size:14,children:["Showing ",u,"-",f," of ",i]}),g.jsxs(Wu,{onClick:()=>e(r-1),$disabled:r===1,disabled:r===1,"aria-label":"Previous page",children:[g.jsx(My,{size:24}),"Previous"]}),l.map((h,m)=>h==="..."?g.jsx(bw,{children:"..."},`ellipsis-${m}`):g.jsx(ww,{onClick:()=>e(h),$active:r===h,"aria-label":`Go to page ${h}`,"aria-current":r===h?"page":void 0,children:h},h)),g.jsxs(Wu,{onClick:()=>e(r+1),$disabled:r===o,disabled:r===o,"aria-label":"Next page",children:["Next",g.jsx(Ay,{size:24})]}),g.jsxs(xw,{children:[g.jsx(Sw,{size:"sm",value:n,options:s||c,onOptionSelect:h=>t(Number(h.value))}),g.jsx(mn,{size:12,children:"Rows per page"})]})]})},Ku=({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}},qu=({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}},Yu=p.createContext(void 0),bn=()=>{const e=p.useContext(Yu);if(!e)throw new Error("useTableContext debe usarse dentro de Table");return e},Xu=({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:f,classNames:h,enableSorting:m=!0,manualSorting:y=!1,enableFiltering:w=!0,manualFiltering:v=!1,isLoading:C=!1,getUniqueValues:b})=>{const{sortingState:k,handleSortingChange:x,setSorting:P}=Ku({sorting:s,defaultSorting:a,onSortingChange:l}),{columnFiltersState:E,handleColumnFiltersChange:M,setColumnFilters:L}=qu({columnFilters:c,defaultColumnFilters:d,onColumnFiltersChange:u}),_=p.useMemo(()=>{if(b)return null;const Z=new Map;return t.forEach(R=>{const D=R.id??("accessorKey"in R&&R.accessorKey?String(R.accessorKey):void 0);if(!D)return;const j="accessorFn"in R?R.accessorFn:void 0;Z.set(D,Lu(e,D,j))}),Z},[e,t,b]),G=p.useMemo(()=>b||(Z=>_?.get(Z)||[]),[_,b]),U=p.useMemo(()=>t.map(Z=>{const D=Z.meta?.filterable!==!1;return w&&D&&!Z.filterFn?{...Z,filterFn:"multiSelect"}:Z}),[t,w]),X=K1({data:e,columns:U,state:{sorting:k,columnFilters:E},onSortingChange:x,onColumnFiltersChange:M,getCoreRowModel:N1(),getSortedRowModel:y?void 0:j1(),getFilteredRowModel:v?void 0:H1(),enableSorting:m,enableSortingRemoval:!0,manualSorting:y,enableColumnFilters:w,manualFiltering:v,filterFns:{multiSelect:_u},globalFilterFn:"includesString"}),W={size:n,variant:r,sorting:k,setSorting:P,columnFilters:E,setColumnFilters:L,getUniqueValues:G,onRowClick:f};return g.jsx(Yu.Provider,{value:W,children:g.jsx(X1,{$maxHeight:i,$stickyHeader:o,className:h?.wrapper,children:C?g.jsx(Dc,{message:"Loading data..."}):e.length===0?g.jsxs(Du,{$variant:r,className:h?.table,children:[g.jsx(Li,{headerGroups:X.getHeaderGroups(),stickyHeader:o,className:h?.header}),g.jsx(_i,{rows:[],className:h?.body,rowClassName:h?.row})]}):g.jsxs(Du,{$variant:r,className:h?.table,children:[g.jsx(Li,{headerGroups:X.getHeaderGroups(),stickyHeader:o,className:h?.header}),g.jsx(_i,{rows:X.getRowModel().rows,className:h?.body,rowClassName:h?.row})]})})})};Xu.displayName="Table";function Zu(e){const t={};for(const n of e)t[n.id]=n.desc?"desc":"asc";return t}function Tw(e){return Object.entries(e).map(([t,n])=>({id:t,desc:n==="desc"}))}function Ju(e){return e.length===0?"":JSON.stringify(Zu(e))}function $w(e){const t=new URLSearchParams;return e.sorting&&e.sorting.length>0&&t.append("sorts",Ju(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}function Qu(e){const t={};return e.forEach(n=>{t[n.id]=n.value}),t}function ed(e){return JSON.stringify(Qu(e))}function kw(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 Pw(e){const t={};return e.forEach(n=>{const r=n.value;r&&r.length>0&&(t[`filter[${n.id}]`]=r)}),t}function Ew({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=ed(e)),o}function Mw(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 Aw(e){try{const t=JSON.parse(e);return Object.entries(t).map(([n,r])=>({id:n,value:r}))}catch{return[]}}function Vw(...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 Dw=$.div`
|
|
2011
1986
|
position: relative;
|
|
2012
1987
|
display: flex;
|
|
2013
1988
|
align-items: center;
|
|
@@ -2025,7 +2000,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2025
2000
|
outline: 2px solid var(--color-main-blue-primary);
|
|
2026
2001
|
outline-offset: 2px;
|
|
2027
2002
|
}
|
|
2028
|
-
`,
|
|
2003
|
+
`,Fw=$.div`
|
|
2029
2004
|
width: 2rem;
|
|
2030
2005
|
height: 2rem;
|
|
2031
2006
|
border-radius: 50%;
|
|
@@ -2033,7 +2008,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2033
2008
|
display: flex;
|
|
2034
2009
|
align-items: center;
|
|
2035
2010
|
justify-content: center;
|
|
2036
|
-
`,
|
|
2011
|
+
`,Iw=$.div`
|
|
2037
2012
|
display: flex;
|
|
2038
2013
|
flex-direction: column;
|
|
2039
2014
|
align-items: flex-start;
|
|
@@ -2041,7 +2016,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2041
2016
|
@media (max-width: 640px) {
|
|
2042
2017
|
display: none;
|
|
2043
2018
|
}
|
|
2044
|
-
`,
|
|
2019
|
+
`,Rw=$(Ke.div)`
|
|
2045
2020
|
display: flex;
|
|
2046
2021
|
align-items: center;
|
|
2047
2022
|
justify-content: center;
|
|
@@ -2050,7 +2025,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2050
2025
|
@media (max-width: 640px) {
|
|
2051
2026
|
display: none;
|
|
2052
2027
|
}
|
|
2053
|
-
`,
|
|
2028
|
+
`,Lw=$(Ke.div)`
|
|
2054
2029
|
position: absolute;
|
|
2055
2030
|
top: 100%;
|
|
2056
2031
|
right: 0;
|
|
@@ -2062,7 +2037,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2062
2037
|
box-shadow: var(--shadow-black-card);
|
|
2063
2038
|
z-index: 100;
|
|
2064
2039
|
overflow: hidden;
|
|
2065
|
-
`,
|
|
2040
|
+
`,_w=$.button`
|
|
2066
2041
|
width: 100%;
|
|
2067
2042
|
display: flex;
|
|
2068
2043
|
align-items: center;
|
|
@@ -2086,7 +2061,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2086
2061
|
&.danger {
|
|
2087
2062
|
color: var(--color-main-waringn-state);
|
|
2088
2063
|
}
|
|
2089
|
-
`,
|
|
2064
|
+
`,Ni=({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:Ey,onClick:()=>{i(!1),t?.()},variant:"default"},{id:"logout",label:"Logout",icon:Ty,onClick:()=>{i(!1),n?.()},variant:"danger"}],...r];return g.jsxs("div",{ref:s,children:[g.jsxs(Dw,{onClick:()=>i(!o),role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i(!o))},children:[g.jsx(Fw,{children:e.avatarUrl?g.jsx("img",{src:e.avatarUrl,alt:e.name}):g.jsx(je,{size:14,color:"var(--color-main-white)",className:"!font-semibold",children:a(e.name)})}),g.jsxs(Iw,{children:[g.jsx(je,{size:14,className:"!font-semibold",children:e.name}),g.jsx(je,{size:12,children:e.role})]}),g.jsx(Rw,{animate:{rotate:o?-180:0},transition:{duration:.3},children:g.jsx(K,{component:Nc,size:"sm",color:"var(--color-main-blue-primary)"})})]}),g.jsx(ln,{children:o&&g.jsx(Lw,{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(_w,{onClick:d.onClick,className:d.variant==="danger"?"danger":"",children:[g.jsx(K,{component:d.icon,size:"sm",color:d.variant==="danger"?"var(--color-main-warning-state)":"var(--color-main-blue-primary)"}),g.jsx(je,{size:14,color:`${d.variant==="danger"&&"var(--color-main-warning-state)"}`,children:d.label})]})},d.id))})})]})};Ni.displayName="UserProfile";const td=({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}},Nw=$.button`
|
|
2090
2065
|
position: relative;
|
|
2091
2066
|
background: transparent;
|
|
2092
2067
|
border: none;
|
|
@@ -2110,7 +2085,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2110
2085
|
&:active {
|
|
2111
2086
|
transform: scale(0.92);
|
|
2112
2087
|
}
|
|
2113
|
-
`,
|
|
2088
|
+
`,Ow=$.span`
|
|
2114
2089
|
position: absolute;
|
|
2115
2090
|
top: 0.35rem;
|
|
2116
2091
|
right: 0.35rem;
|
|
@@ -2126,7 +2101,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2126
2101
|
min-width: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2127
2102
|
height: ${({$withCount:e})=>e?"1rem":"0.55rem"};
|
|
2128
2103
|
padding: ${({$withCount:e})=>e?"0 0.25rem":"0"};
|
|
2129
|
-
`,
|
|
2104
|
+
`,Oi=({hasNotifications:e=!1,notificationCount:t,onNotificationClick:n})=>{const{effectiveHasNotifications:r,displayCount:o,bellAriaLabel:i}=td({hasNotifications:e,notificationCount:t});return g.jsxs(Nw,{onClick:n,"aria-label":i,title:i,"data-has":r||void 0,children:[g.jsx(K,{component:r?$y:ky,size:"md",color:"var(--color-main-blue-primary)"}),r&&g.jsx(Ow,{$withCount:!!o,"aria-hidden":!!o,children:o&&(o>99?"99+":o)})]})};Oi.displayName="NotificationButton";const Bw=$.header`
|
|
2130
2105
|
position: fixed;
|
|
2131
2106
|
top: 0;
|
|
2132
2107
|
left: 0;
|
|
@@ -2142,15 +2117,15 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2142
2117
|
padding: 0 1rem;
|
|
2143
2118
|
transition: padding-left 0.3s ease-out;
|
|
2144
2119
|
padding-left: 5rem;
|
|
2145
|
-
`,
|
|
2120
|
+
`,zw=$.div`
|
|
2146
2121
|
display: flex;
|
|
2147
2122
|
align-items: center;
|
|
2148
2123
|
gap: 1rem;
|
|
2149
|
-
`,
|
|
2124
|
+
`,Hw=$.div`
|
|
2150
2125
|
display: flex;
|
|
2151
2126
|
align-items: center;
|
|
2152
2127
|
gap: 1rem;
|
|
2153
|
-
`,
|
|
2128
|
+
`,Bi=({user:e,hasNotifications:t=!1,notificationCount:n,onNotificationClick:r,onUserProfileClick:o,onLogout:i,userMenuItems:s,children:a})=>g.jsxs(Bw,{children:[g.jsx(zw,{children:a}),g.jsxs(Hw,{children:[g.jsx(Oi,{hasNotifications:t,notificationCount:n,onNotificationClick:r}),e&&g.jsx(Ni,{user:e,onProfileClick:o,onLogout:i,menuItems:s})]})]});Bi.displayName="Header";const jw=$.main`
|
|
2154
2129
|
flex: 1;
|
|
2155
2130
|
margin-top: 4rem;
|
|
2156
2131
|
/* Mobile-first: no lateral offset so content occupies full width */
|
|
@@ -2166,25 +2141,25 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2166
2141
|
@media (min-width: 1200px) {
|
|
2167
2142
|
margin-left: 5rem;
|
|
2168
2143
|
}
|
|
2169
|
-
`,
|
|
2144
|
+
`,zi=({children:e,className:t})=>g.jsx(jw,{className:t,children:e});zi.displayName="LayoutMainContent";const Gw=$.div`
|
|
2170
2145
|
display: flex;
|
|
2171
2146
|
flex-direction: column;
|
|
2172
2147
|
height: 100vh;
|
|
2173
2148
|
overflow: hidden;
|
|
2174
|
-
`,
|
|
2149
|
+
`,Uw=({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:f,logoImgCollapsed:h,logoImgExpanded:m})=>g.jsxs(Gw,{children:[g.jsx(yi,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:h,logoImgExpanded:m,onNavigate:c}),g.jsx(Bi,{user:o,hasNotifications:i,notificationCount:s,onNotificationClick:a,onUserProfileClick:l,onLogout:d,userMenuItems:u}),g.jsx(zi,{className:f,children:e})]}),Ww=e=>g.jsx(su,{children:g.jsx(Uw,{...e})});function Kw(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 qw(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Yw(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const xn={sm:{circle:"2rem",fontSize:V[14],line:"2px"},md:{circle:"2.5rem",fontSize:V[18],line:"2px"},lg:{circle:"3.25rem",fontSize:V[20],line:"3px"}},Xw=$.div`
|
|
2175
2150
|
display: flex;
|
|
2176
2151
|
width: 100%;
|
|
2177
|
-
`,
|
|
2152
|
+
`,Zw=$.div`
|
|
2178
2153
|
display: flex;
|
|
2179
2154
|
flex-direction: ${({$orientation:e})=>e==="vertical"?"column":"row"};
|
|
2180
2155
|
align-items: center;
|
|
2181
2156
|
width: 100%;
|
|
2182
|
-
`,
|
|
2157
|
+
`,Jw=$.div`
|
|
2183
2158
|
display: flex;
|
|
2184
2159
|
align-items: center;
|
|
2185
2160
|
justify-content: center;
|
|
2186
2161
|
position: relative;
|
|
2187
|
-
`,
|
|
2162
|
+
`,nd=$.div`
|
|
2188
2163
|
display: flex;
|
|
2189
2164
|
align-items: center;
|
|
2190
2165
|
justify-content: center;
|
|
@@ -2230,7 +2205,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2230
2205
|
box-shadow: var(--shadow-hover-black-button);
|
|
2231
2206
|
}
|
|
2232
2207
|
`}
|
|
2233
|
-
`,
|
|
2208
|
+
`,Qw=$.div`
|
|
2234
2209
|
background-color: ${({$isCompleted:e})=>e?"var(--color-main-blue-primary)":"var(--color-dark-300)"};
|
|
2235
2210
|
transition: background-color 0.3s ease;
|
|
2236
2211
|
|
|
@@ -2242,7 +2217,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2242
2217
|
flex: 1;
|
|
2243
2218
|
min-width: 2rem;
|
|
2244
2219
|
`}
|
|
2245
|
-
`,
|
|
2220
|
+
`,eb=$.span`
|
|
2246
2221
|
position: absolute;
|
|
2247
2222
|
${V[14]}
|
|
2248
2223
|
font-weight: 500;
|
|
@@ -2272,7 +2247,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
2272
2247
|
border-left-color: var(--color-main-blue-primary);
|
|
2273
2248
|
}
|
|
2274
2249
|
|
|
2275
|
-
${
|
|
2250
|
+
${nd}:hover & {
|
|
2276
2251
|
opacity: 1;
|
|
2277
2252
|
}
|
|
2278
|
-
`,
|
|
2253
|
+
`,tb=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:i})=>{const s=a=>{o?.(a)};return g.jsx(Xw,{$orientation:n,className:i,children:g.jsx(Zw,{$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(Jw,{$orientation:n,children:g.jsxs(nd,{$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:f=>{u&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),s(l))},children:[a.content??l+1,a.label&&n==="vertical"&&g.jsx(eb,{children:a.label})]})}),l<e.length-1&&g.jsx(Qw,{$isCompleted:d,$orientation:n,$size:r})]},a.id)})})})};S.ALLOWED_INPUT_TYPES=Rc,S.Aside=uu,S.Badge=m0,S.BaseInput=oi,S.BrandLogo=fu,S.Button=Ut,S.Card=Q0,S.CardBody=ry,S.CardFooter=iy,S.CardHeader=ty,S.Checkbox=yn,S.CheckboxInput=ai,S.CheckboxLabel=qc,S.CloseOpenButton=pu,S.ColumnFilter=gr,S.ColumnFilterMenu=Ri,S.Dialog=nu,S.DialogBody=ou,S.DialogFooter=iu,S.DialogHeader=ru,S.Divider=y0,S.ErrorMessage=ri,S.FileList=Kc,S.FileUpload=pv,S.FilterOption=Ii,S.FormField=Ov,S.FullScreenSpinner=s0,S.Header=Bi,S.HeadingBold=Rs,S.HeadingRegular=xf,S.Icon=K,S.IconWrapperStyles=cr,S.InfoLabel=mn,S.Label=ar,S.Layout=Ww,S.LayoutMainContent=zi,S.Link=wu,S.LinkDisabledStyles=yu,S.LinkSizeStyles=vu,S.LinkVariantStyles=gu,S.MobileOpenBtn=mu,S.Nav=hu,S.NotificationButton=Oi,S.Overlay=cu,S.PasswordInput=Hc,S.PinInput=li,S.PinInputGroup=ci,S.RadioInput=fi,S.RadioInputDot=ui,S.RadioInputLabel=di,S.SearchInput=si,S.SectionSpinner=Dc,S.SelectInput=ur,S.Sidebar=yi,S.SidebarContext=pi,S.SidebarHeader=du,S.SidebarProvider=su,S.Spinner=ir,S.Stepper=tb,S.Table=Xu,S.TableBody=_i,S.TableCell=ju,S.TableHeader=Li,S.TableHeaderCell=zu,S.TableHeaderRow=Hu,S.TablePagination=Cw,S.TableRow=Gu,S.TermsAndConditions=Xv,S.Text=je,S.TextAreaInput=ii,S.ToastProvider=K0,S.UserProfile=Ni,S.baseFieldStyles=bt,S.baseInputStyles=lr,S.bodyTextStyles=V,S.columnFiltersToArrayQueryParams=Pw,S.columnFiltersToJsonString=ed,S.columnFiltersToQueryParams=kw,S.columnFiltersToRecord=Qu,S.createBackendParams=$w,S.createBackendParamsWithFilters=Ew,S.createColumnHelper=l1,S.createFieldConfig=fy,S.createInputRefs=Jc,S.deleteCookie=Yw,S.disabledStyles=rt,S.errorStyles=xt,S.flushedStyles=_c,S.getActiveFilterCount=ow,S.getActiveFilterValues=Ou,S.getColumnValueCounts=nw,S.getCookie=qw,S.getPropsForInputType=hy,S.getUniqueColumnValues=Lu,S.handleDigitChange=Yc,S.handleKeyDown=Xc,S.handlePaste=Zc,S.hasActiveFilters=rw,S.hasPermission=gi,S.headingBoldStyles=_r,S.headingRegularStyles=Is,S.isAllowedInputType=Lc,S.mergeFilters=Vw,S.multiSelectFilter=_u,S.normalizeFieldTypes=nt,S.normalizeSelectOptions=dy,S.overlayAnimation=hi,S.parseJsonToFilters=Aw,S.parseQueryParamsToFilters=Mw,S.searchInArray=Nu,S.setCookie=Kw,S.sizeStyles=gn,S.slideAnimation=Bv,S.smartAnimation=eu,S.sortRecordToSortingState=Tw,S.sortingStateToJsonString=Ju,S.sortingStateToRecord=Zu,S.submenuAnimationTopDown=tu,S.toast=R0,S.useNotifications=td,S.useSidebar=mi,S.useTableContext=bn,S.useTableFiltering=qu,S.useTableSorting=Ku,S.validateCode=kv,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
|