diff --git a/assets/index-DSLSnoaQ.js b/assets/index-bLchlvn2.js similarity index 79% rename from assets/index-DSLSnoaQ.js rename to assets/index-bLchlvn2.js index 078118a..1eed56b 100644 --- a/assets/index-DSLSnoaQ.js +++ b/assets/index-bLchlvn2.js @@ -14,14 +14,14 @@ var EF=Object.defineProperty;var PF=(e,t,n)=>t in e?EF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var HF=_,GF=Symbol.for("react.element"),KF=Symbol.for("react.fragment"),qF=Object.prototype.hasOwnProperty,YF=HF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XF={key:!0,ref:!0,__self:!0,__source:!0};function N4(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)qF.call(t,r)&&!XF.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:GF,type:e,key:o,ref:s,props:i,_owner:YF.current}}V0.Fragment=KF;V0.jsx=N4;V0.jsxs=N4;O4.exports=V0;var x=O4.exports;function QF(e){if(e.sheet)return e.sheet;for(var t=0;t0?_n(gu,--fr):0,Xl--,tn===10&&(Xl=1,U0--),tn}function Sr(){return tn=fr2||Zc(tn)>3?"":" "}function cD(e,t){for(;--t&&Sr()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return Df(e,nh()+(t<6&&Di()==32&&Sr()==32))}function p1(e){for(;Sr();)switch(tn){case e:return fr;case 34:case 39:e!==34&&e!==39&&p1(tn);break;case 40:e===41&&p1(e);break;case 92:Sr();break}return fr}function fD(e,t){for(;Sr()&&e+tn!==57;)if(e+tn===84&&Di()===47)break;return"/*"+Df(t,fr-1)+"*"+W0(e===47?e:Sr())}function dD(e){for(;!Zc(Di());)Sr();return Df(e,fr)}function pD(e){return G4(ih("",null,null,null,[""],e=H4(e),0,[0],e))}function ih(e,t,n,r,i,o,s,u,c){for(var f=0,p=0,h=s,m=0,g=0,w=0,b=1,T=1,S=1,y=0,C="",P=i,O=o,$=r,I=C;T;)switch(w=y,y=Sr()){case 40:if(w!=108&&_n(I,h-1)==58){d1(I+=at(rh(y),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:I+=rh(y);break;case 9:case 10:case 13:case 32:I+=uD(w);break;case 92:I+=cD(nh()-1,7);continue;case 47:switch(Di()){case 42:case 47:hp(hD(fD(Sr(),nh()),t,n),c);break;default:I+="/"}break;case 123*b:u[f++]=Oi(I)*S;case 125*b:case 59:case 0:switch(y){case 0:case 125:T=0;case 59+p:S==-1&&(I=at(I,/\f/g,"")),g>0&&Oi(I)-h&&hp(g>32?a_(I+";",r,n,h-1):a_(at(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(hp($=o_(I,t,n,f,p,i,u,C,P=[],O=[],h),o),y===123)if(p===0)ih(I,t,$,$,P,o,h,u,O);else switch(m===99&&_n(I,3)===110?100:m){case 100:case 108:case 109:case 115:ih(e,$,$,r&&hp(o_(e,$,$,0,0,i,u,C,i,P=[],h),O),i,O,h,u,r?P:O);break;default:ih(I,$,$,$,[""],O,0,u,O)}}f=p=g=0,b=S=1,C=I="",h=s;break;case 58:h=1+Oi(I),g=w;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&lD()==125)continue}switch(I+=W0(y),y*b){case 38:S=p>0?1:(I+="\f",-1);break;case 44:u[f++]=(Oi(I)-1)*S,S=1;break;case 64:Di()===45&&(I+=rh(Sr())),m=Di(),p=h=Oi(C=I+=dD(nh())),y++;break;case 45:w===45&&Oi(I)==2&&(b=0)}}return o}function o_(e,t,n,r,i,o,s,u,c,f,p){for(var h=i-1,m=i===0?o:[""],g=wb(m),w=0,b=0,T=0;w0?m[S]+" "+y:at(y,/&\f/g,m[S])))&&(c[T++]=C);return H0(e,t,n,i===0?bb:u,c,f,p)}function hD(e,t,n){return H0(e,t,n,B4,W0(sD()),Qc(e,2,-2),0)}function a_(e,t,n,r){return H0(e,t,n,xb,Qc(e,0,r),Qc(e,r+1,-1),r)}function $l(e,t){for(var n="",r=wb(e),i=0;i6)switch(_n(e,t+1)){case 109:if(_n(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+Bh+(_n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~d1(e,"stretch")?q4(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_n(e,t+1)!==115)break;case 6444:switch(_n(e,Oi(e)-3-(~d1(e,"!important")&&10))){case 107:return at(e,":",":"+ot)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(_n(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(_n(e,t+11)){case 114:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+On+e+e}return e}var _D=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xb:t.return=q4(t.value,t.length);break;case V4:return $l([Zu(t,{value:at(t.value,"@","@"+ot)})],i);case bb:if(t.length)return aD(t.props,function(o){switch(oD(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $l([Zu(t,{props:[at(o,/:(read-\w+)/,":"+Bh+"$1")]})],i);case"::placeholder":return $l([Zu(t,{props:[at(o,/:(plac\w+)/,":"+ot+"input-$1")]}),Zu(t,{props:[at(o,/:(plac\w+)/,":"+Bh+"$1")]}),Zu(t,{props:[at(o,/:(plac\w+)/,On+"input-$1")]})],i)}return""})}},CD=[_D],kD=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var T=b.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||CD,o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var T=b.getAttribute("data-emotion").split(" "),S=1;S0?_n(gu,--fr):0,Ql--,tn===10&&(Ql=1,U0--),tn}function Sr(){return tn=fr2||Zc(tn)>3?"":" "}function cD(e,t){for(;--t&&Sr()&&!(tn<48||tn>102||tn>57&&tn<65||tn>70&&tn<97););return Df(e,nh()+(t<6&&Di()==32&&Sr()==32))}function p1(e){for(;Sr();)switch(tn){case e:return fr;case 34:case 39:e!==34&&e!==39&&p1(tn);break;case 40:e===41&&p1(e);break;case 92:Sr();break}return fr}function fD(e,t){for(;Sr()&&e+tn!==57;)if(e+tn===84&&Di()===47)break;return"/*"+Df(t,fr-1)+"*"+W0(e===47?e:Sr())}function dD(e){for(;!Zc(Di());)Sr();return Df(e,fr)}function pD(e){return G4(ih("",null,null,null,[""],e=H4(e),0,[0],e))}function ih(e,t,n,r,i,o,s,u,c){for(var f=0,p=0,h=s,m=0,g=0,x=0,b=1,T=1,S=1,y=0,C="",P=i,O=o,$=r,I=C;T;)switch(x=y,y=Sr()){case 40:if(x!=108&&_n(I,h-1)==58){d1(I+=at(rh(y),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:I+=rh(y);break;case 9:case 10:case 13:case 32:I+=uD(x);break;case 92:I+=cD(nh()-1,7);continue;case 47:switch(Di()){case 42:case 47:hp(hD(fD(Sr(),nh()),t,n),c);break;default:I+="/"}break;case 123*b:u[f++]=Oi(I)*S;case 125*b:case 59:case 0:switch(y){case 0:case 125:T=0;case 59+p:S==-1&&(I=at(I,/\f/g,"")),g>0&&Oi(I)-h&&hp(g>32?a_(I+";",r,n,h-1):a_(at(I," ","")+";",r,n,h-2),c);break;case 59:I+=";";default:if(hp($=o_(I,t,n,f,p,i,u,C,P=[],O=[],h),o),y===123)if(p===0)ih(I,t,$,$,P,o,h,u,O);else switch(m===99&&_n(I,3)===110?100:m){case 100:case 108:case 109:case 115:ih(e,$,$,r&&hp(o_(e,$,$,0,0,i,u,C,i,P=[],h),O),i,O,h,u,r?P:O);break;default:ih(I,$,$,$,[""],O,0,u,O)}}f=p=g=0,b=S=1,C=I="",h=s;break;case 58:h=1+Oi(I),g=x;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&lD()==125)continue}switch(I+=W0(y),y*b){case 38:S=p>0?1:(I+="\f",-1);break;case 44:u[f++]=(Oi(I)-1)*S,S=1;break;case 64:Di()===45&&(I+=rh(Sr())),m=Di(),p=h=Oi(C=I+=dD(nh())),y++;break;case 45:x===45&&Oi(I)==2&&(b=0)}}return o}function o_(e,t,n,r,i,o,s,u,c,f,p){for(var h=i-1,m=i===0?o:[""],g=wb(m),x=0,b=0,T=0;x0?m[S]+" "+y:at(y,/&\f/g,m[S])))&&(c[T++]=C);return H0(e,t,n,i===0?bb:u,c,f,p)}function hD(e,t,n){return H0(e,t,n,B4,W0(sD()),Qc(e,2,-2),0)}function a_(e,t,n,r){return H0(e,t,n,xb,Qc(e,0,r),Qc(e,r+1,-1),r)}function Fl(e,t){for(var n="",r=wb(e),i=0;i6)switch(_n(e,t+1)){case 109:if(_n(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+ot+"$2-$3$1"+Bh+(_n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~d1(e,"stretch")?q4(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_n(e,t+1)!==115)break;case 6444:switch(_n(e,Oi(e)-3-(~d1(e,"!important")&&10))){case 107:return at(e,":",":"+ot)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ot+(_n(e,14)===45?"inline-":"")+"box$3$1"+ot+"$2$3$1"+On+"$2box$3")+e}break;case 5936:switch(_n(e,t+11)){case 114:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ot+e+On+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ot+e+On+e+e}return e}var _D=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xb:t.return=q4(t.value,t.length);break;case V4:return Fl([Zu(t,{value:at(t.value,"@","@"+ot)})],i);case bb:if(t.length)return aD(t.props,function(o){switch(oD(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fl([Zu(t,{props:[at(o,/:(read-\w+)/,":"+Bh+"$1")]})],i);case"::placeholder":return Fl([Zu(t,{props:[at(o,/:(plac\w+)/,":"+ot+"input-$1")]}),Zu(t,{props:[at(o,/:(plac\w+)/,":"+Bh+"$1")]}),Zu(t,{props:[at(o,/:(plac\w+)/,On+"input-$1")]})],i)}return""})}},CD=[_D],kD=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var T=b.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=t.stylisPlugins||CD,o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var T=b.getAttribute("data-emotion").split(" "),S=1;S=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LD={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},jD=/[A-Z]|^ms/g,zD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tT=function(t){return t.charCodeAt(1)===45},u_=function(t){return t!=null&&typeof t!="boolean"},zg=K4(function(e){return tT(e)?e:e.replace(jD,"-$&").toLowerCase()}),c_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zD,function(r,i,o){return Ii={name:i,styles:o,next:Ii},i})}return LD[t]!==1&&!tT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jc(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ii={name:n.name,styles:n.styles,next:Ii},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ii={name:r.name,styles:r.styles,next:Ii},r=r.next;var i=n.styles+";";return i}return ND(e,t,n)}case"function":{if(e!==void 0){var o=Ii,s=n(e);return Ii=o,Jc(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function ND(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LD={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},jD=/[A-Z]|^ms/g,zD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tT=function(t){return t.charCodeAt(1)===45},u_=function(t){return t!=null&&typeof t!="boolean"},zg=K4(function(e){return tT(e)?e:e.replace(jD,"-$&").toLowerCase()}),c_=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zD,function(r,i,o){return Ii={name:i,styles:o,next:Ii},i})}return LD[t]!==1&&!tT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jc(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ii={name:n.name,styles:n.styles,next:Ii},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ii={name:r.name,styles:r.styles,next:Ii},r=r.next;var i=n.styles+";";return i}return ND(e,t,n)}case"function":{if(e!==void 0){var o=Ii,s=n(e);return Ii=o,Jc(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function ND(e,t,n){var r="";if(Array.isArray(n))for(var i=0;it in e?EF(e,t,{enumerable:!0,config --chakra-vh: 100dvh; } } -`,KD=()=>x.jsx(nm,{styles:aT}),qD=({scope:e=""})=>x.jsx(nm,{styles:oT` +`,KD=()=>w.jsx(nm,{styles:aT}),qD=({scope:e=""})=>w.jsx(nm,{styles:oT` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -300,7 +300,7 @@ var EF=Object.defineProperty;var PF=(e,t,n)=>t in e?EF(e,t,{enumerable:!0,config } ${aT} - `});function YD(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Jt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,u=_.createContext(s);u.displayName=t;function c(){var f;const p=_.useContext(u);if(!p&&n){const h=new Error(o??YD(r,i));throw h.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,h,c),h}return p}return[u.Provider,c,u]}var[XD,QD]=Jt({strict:!1,name:"PortalManagerContext"});function sT(e){const{children:t,zIndex:n}=e;return x.jsx(XD,{value:{zIndex:n},children:t})}sT.displayName="PortalManager";var aa=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,lT={exports:{}},Mr={},uT={exports:{}},cT={};/** + `});function YD(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Jt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,u=_.createContext(s);u.displayName=t;function c(){var f;const p=_.useContext(u);if(!p&&n){const h=new Error(o??YD(r,i));throw h.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,h,c),h}return p}return[u.Provider,c,u]}var[XD,QD]=Jt({strict:!1,name:"PortalManagerContext"});function sT(e){const{children:t,zIndex:n}=e;return w.jsx(XD,{value:{zIndex:n},children:t})}sT.displayName="PortalManager";var aa=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,lT={exports:{}},Mr={},uT={exports:{}},cT={};/** * @license React * scheduler.production.min.js * @@ -308,7 +308,7 @@ var EF=Object.defineProperty;var PF=(e,t,n)=>t in e?EF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(W,J){var te=W.length;W.push(J);e:for(;0>>1,be=W[ne];if(0>>1;nei(le,te))Tei(et,le)?(W[ne]=et,W[Te]=te,ne=Te):(W[ne]=le,W[ce]=te,ne=ce);else if(Tei(et,te))W[ne]=et,W[Te]=te,ne=Te;else break e}}return J}function i(W,J){var te=W.sortIndex-J.sortIndex;return te!==0?te:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,g=!1,w=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var J=n(f);J!==null;){if(J.callback===null)r(f);else if(J.startTime<=W)r(f),J.sortIndex=J.expirationTime,t(c,J);else break;J=n(f)}}function P(W){if(b=!1,C(W),!w)if(n(c)!==null)w=!0,se(O);else{var J=n(f);J!==null&&G(P,J.startTime-W)}}function O(W,J){w=!1,b&&(b=!1,S(F),F=-1),g=!0;var te=m;try{for(C(J),h=n(c);h!==null&&(!(h.expirationTime>J)||W&&!X());){var ne=h.callback;if(typeof ne=="function"){h.callback=null,m=h.priorityLevel;var be=ne(h.expirationTime<=J);J=e.unstable_now(),typeof be=="function"?h.callback=be:h===n(c)&&r(c),C(J)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var ce=n(f);ce!==null&&G(P,ce.startTime-J),ae=!1}return ae}finally{h=null,m=te,g=!1}}var $=!1,I=null,F=-1,V=5,B=-1;function X(){return!(e.unstable_now()-BW||125ne?(W.sortIndex=te,t(f,W),n(c)===null&&W===n(f)&&(b?(S(F),F=-1):b=!0,G(P,te-ne))):(W.sortIndex=be,t(c,W),w||g||(w=!0,se(O))),W},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(W){var J=m;return function(){var te=m;m=J;try{return W.apply(this,arguments)}finally{m=te}}}})(cT);uT.exports=cT;var ZD=uT.exports;/** + */(function(e){function t(W,J){var te=W.length;W.push(J);e:for(;0>>1,be=W[ne];if(0>>1;nei(le,te))Tei(et,le)?(W[ne]=et,W[Te]=te,ne=Te):(W[ne]=le,W[ce]=te,ne=ce);else if(Tei(et,te))W[ne]=et,W[Te]=te,ne=Te;else break e}}return J}function i(W,J){var te=W.sortIndex-J.sortIndex;return te!==0?te:W.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,g=!1,x=!1,b=!1,T=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(W){for(var J=n(f);J!==null;){if(J.callback===null)r(f);else if(J.startTime<=W)r(f),J.sortIndex=J.expirationTime,t(c,J);else break;J=n(f)}}function P(W){if(b=!1,C(W),!x)if(n(c)!==null)x=!0,se(O);else{var J=n(f);J!==null&&G(P,J.startTime-W)}}function O(W,J){x=!1,b&&(b=!1,S(F),F=-1),g=!0;var te=m;try{for(C(J),h=n(c);h!==null&&(!(h.expirationTime>J)||W&&!X());){var ne=h.callback;if(typeof ne=="function"){h.callback=null,m=h.priorityLevel;var be=ne(h.expirationTime<=J);J=e.unstable_now(),typeof be=="function"?h.callback=be:h===n(c)&&r(c),C(J)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var ce=n(f);ce!==null&&G(P,ce.startTime-J),ae=!1}return ae}finally{h=null,m=te,g=!1}}var $=!1,I=null,F=-1,V=5,B=-1;function X(){return!(e.unstable_now()-BW||125ne?(W.sortIndex=te,t(f,W),n(c)===null&&W===n(f)&&(b?(S(F),F=-1):b=!0,G(P,te-ne))):(W.sortIndex=be,t(c,W),x||g||(x=!0,se(O))),W},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(W){var J=m;return function(){var te=m;m=J;try{return W.apply(this,arguments)}finally{m=te}}}})(cT);uT.exports=cT;var ZD=uT.exports;/** * @license React * react-dom.production.min.js * @@ -316,14 +316,14 @@ var EF=Object.defineProperty;var PF=(e,t,n)=>t in e?EF(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fT=_,Tr=ZD;function Z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h1=Object.prototype.hasOwnProperty,JD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p_={},h_={};function eL(e){return h1.call(h_,e)?!0:h1.call(p_,e)?!1:JD.test(e)?h_[e]=!0:(p_[e]=!0,!1)}function tL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nL(e,t,n,r){if(t===null||typeof t>"u"||tL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tn[e]=new Kn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tn[t]=new Kn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tn[e]=new Kn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tn[e]=new Kn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tn[e]=new Kn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tn[e]=new Kn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tn[e]=new Kn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tn[e]=new Kn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tn[e]=new Kn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tb=/[\-:]([a-z])/g;function Eb(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tn[e]=new Kn(e,1,!1,e.toLowerCase(),null,!1,!1)});Tn.xlinkHref=new Kn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tn[e]=new Kn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pb(e,t,n,r){var i=Tn.hasOwnProperty(t)?Tn[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h1=Object.prototype.hasOwnProperty,JD=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p_={},h_={};function eL(e){return h1.call(h_,e)?!0:h1.call(p_,e)?!1:JD.test(e)?h_[e]=!0:(p_[e]=!0,!1)}function tL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function nL(e,t,n,r){if(t===null||typeof t>"u"||tL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Kn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Tn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tn[e]=new Kn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tn[t]=new Kn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tn[e]=new Kn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Tn[e]=new Kn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tn[e]=new Kn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Tn[e]=new Kn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Tn[e]=new Kn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Tn[e]=new Kn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Tn[e]=new Kn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Tb=/[\-:]([a-z])/g;function Eb(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Tb,Eb);Tn[t]=new Kn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Tn[e]=new Kn(e,1,!1,e.toLowerCase(),null,!1,!1)});Tn.xlinkHref=new Kn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Tn[e]=new Kn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pb(e,t,n,r){var i=Tn.hasOwnProperty(t)?Tn[t]:null;(i!==null?i.type!==0:r||!(2u||i[s]!==o[u]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{Bg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mc(e):""}function rL(e){switch(e.tag){case 5:return mc(e.type);case 16:return mc("Lazy");case 13:return mc("Suspense");case 19:return mc("SuspenseList");case 0:case 2:case 15:return e=Vg(e.type,!1),e;case 11:return e=Vg(e.type.render,!1),e;case 1:return e=Vg(e.type,!0),e;default:return""}}function y1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case dl:return"Fragment";case fl:return"Portal";case m1:return"Profiler";case Ab:return"StrictMode";case v1:return"Suspense";case g1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hT:return(e.displayName||"Context")+".Consumer";case pT:return(e._context.displayName||"Context")+".Provider";case Rb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ob:return t=e.displayName||null,t!==null?t:y1(e.type)||"Memo";case Qo:t=e._payload,e=e._init;try{return y1(e(t))}catch{}}return null}function iL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return y1(t);case 8:return t===Ab?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oL(e){var t=vT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vp(e){e._valueTracker||(e._valueTracker=oL(e))}function gT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function b1(e,t){var n=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function v_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yT(e,t){t=t.checked,t!=null&&Pb(e,"checked",t,!1)}function x1(e,t){yT(e,t);var n=wa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?w1(e,t.type,n):t.hasOwnProperty("defaultValue")&&w1(e,t.type,wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function w1(e,t,n){(t!=="number"||Vh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vc=Array.isArray;function Fl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=gp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aL=["Webkit","ms","Moz","O"];Object.keys(Pc).forEach(function(e){aL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pc[t]=Pc[e]})});function ST(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pc.hasOwnProperty(e)&&Pc[e]?(""+t).trim():t+"px"}function _T(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ST(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sL=zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function C1(e,t){if(t){if(sL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function k1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var T1=null;function Ib(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var E1=null,Dl=null,Ll=null;function x_(e){if(e=zf(e)){if(typeof E1!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=lm(t),E1(e.stateNode,e.type,t))}}function CT(e){Dl?Ll?Ll.push(e):Ll=[e]:Dl=e}function kT(){if(Dl){var e=Dl,t=Ll;if(Ll=Dl=null,x_(e),t)for(e=0;e>>=0,e===0?32:31-(yL(e)/bL|0)|0}var yp=64,bp=4194304;function gc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=gc(u):(o&=s,o!==0&&(r=gc(o)))}else s=n&~i,s!==0?r=gc(s):o!==0&&(r=gc(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bi(t),e[t]=n}function _L(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rc),A_=" ",R_=!1;function HT(e,t){switch(e){case"keyup":return QL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pl=!1;function JL(e,t){switch(e){case"compositionend":return GT(t);case"keypress":return t.which!==32?null:(R_=!0,A_);case"textInput":return e=t.data,e===A_&&R_?null:e;default:return null}}function ej(e,t){if(pl)return e==="compositionend"||!Nb&&HT(e,t)?(e=WT(),ah=Lb=ra=null,pl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$_(n)}}function XT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?XT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function QT(){for(var e=window,t=Vh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vh(e.document)}return t}function Bb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uj(e){var t=QT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&XT(n.ownerDocument.documentElement,n)){if(r!==null&&Bb(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=F_(n,o);var s=F_(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hl=null,M1=null,Ic=null,$1=!1;function D_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$1||hl==null||hl!==Vh(r)||(r=hl,"selectionStart"in r&&Bb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ic&&uf(Ic,r)||(Ic=r,r=Yh(M1,"onSelect"),0gl||(e.current=N1[gl],N1[gl]=null,gl--)}function kt(e,t){gl++,N1[gl]=e.current,e.current=t}var Sa={},Fn=Ra(Sa),or=Ra(!1),xs=Sa;function Zl(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ar(e){return e=e.childContextTypes,e!=null}function Qh(){Ot(or),Ot(Fn)}function W_(e,t,n){if(Fn.current!==Sa)throw Error(Z(168));kt(Fn,t),kt(or,n)}function aE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,iL(e)||"Unknown",i));return zt({},n,r)}function Zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,xs=Fn.current,kt(Fn,e),kt(or,or.current),!0}function U_(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=aE(e,t,xs),r.__reactInternalMemoizedMergedChildContext=e,Ot(or),Ot(Fn),kt(Fn,e)):Ot(or),kt(or,n)}var uo=null,um=!1,ny=!1;function sE(e){uo===null?uo=[e]:uo.push(e)}function wj(e){um=!0,sE(e)}function Oa(){if(!ny&&uo!==null){ny=!0;var e=0,t=vt;try{var n=uo;for(vt=1;e>=s,i-=s,ho=1<<32-bi(t)+i|n<F?(V=I,I=null):V=I.sibling;var B=m(S,I,C[F],P);if(B===null){I===null&&(I=V);break}e&&I&&B.alternate===null&&t(S,I),y=o(B,y,F),$===null?O=B:$.sibling=B,$=B,I=V}if(F===C.length)return n(S,I),Mt&&Ka(S,F),O;if(I===null){for(;FF?(V=I,I=null):V=I.sibling;var X=m(S,I,B.value,P);if(X===null){I===null&&(I=V);break}e&&I&&X.alternate===null&&t(S,I),y=o(X,y,F),$===null?O=X:$.sibling=X,$=X,I=V}if(B.done)return n(S,I),Mt&&Ka(S,F),O;if(I===null){for(;!B.done;F++,B=C.next())B=h(S,B.value,P),B!==null&&(y=o(B,y,F),$===null?O=B:$.sibling=B,$=B);return Mt&&Ka(S,F),O}for(I=r(S,I);!B.done;F++,B=C.next())B=g(I,S,F,B.value,P),B!==null&&(e&&B.alternate!==null&&I.delete(B.key===null?F:B.key),y=o(B,y,F),$===null?O=B:$.sibling=B,$=B);return e&&I.forEach(function(pe){return t(S,pe)}),Mt&&Ka(S,F),O}function T(S,y,C,P){if(typeof C=="object"&&C!==null&&C.type===dl&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case mp:e:{for(var O=C.key,$=y;$!==null;){if($.key===O){if(O=C.type,O===dl){if($.tag===7){n(S,$.sibling),y=i($,C.props.children),y.return=S,S=y;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Qo&&Q_(O)===$.type){n(S,$.sibling),y=i($,C.props),y.ref=ic(S,$,C),y.return=S,S=y;break e}n(S,$);break}else t(S,$);$=$.sibling}C.type===dl?(y=ls(C.props.children,S.mode,P,C.key),y.return=S,S=y):(P=hh(C.type,C.key,C.props,null,S.mode,P),P.ref=ic(S,y,C),P.return=S,S=P)}return s(S);case fl:e:{for($=C.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){n(S,y.sibling),y=i(y,C.children||[]),y.return=S,S=y;break e}else{n(S,y);break}else t(S,y);y=y.sibling}y=cy(C,S.mode,P),y.return=S,S=y}return s(S);case Qo:return $=C._init,T(S,y,$(C._payload),P)}if(vc(C))return w(S,y,C,P);if(Ju(C))return b(S,y,C,P);Tp(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(n(S,y.sibling),y=i(y,C),y.return=S,S=y):(n(S,y),y=uy(C,S.mode,P),y.return=S,S=y),s(S)):n(S,y)}return T}var eu=mE(!0),vE=mE(!1),Nf={},ji=Ra(Nf),pf=Ra(Nf),hf=Ra(Nf);function is(e){if(e===Nf)throw Error(Z(174));return e}function Xb(e,t){switch(kt(hf,t),kt(pf,e),kt(ji,Nf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_1(t,e)}Ot(ji),kt(ji,t)}function tu(){Ot(ji),Ot(pf),Ot(hf)}function gE(e){is(hf.current);var t=is(ji.current),n=_1(t,e.type);t!==n&&(kt(pf,e),kt(ji,n))}function Qb(e){pf.current===e&&(Ot(ji),Ot(pf))}var Dt=Ra(0);function i0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ry=[];function Zb(){for(var e=0;en?n:4,e(!0);var r=iy.transition;iy.transition={};try{e(!1),t()}finally{vt=n,iy.transition=r}}function ME(){return ni().memoizedState}function kj(e,t,n){var r=pa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$E(e))FE(t,n);else if(n=fE(e,t,n,r),n!==null){var i=Un();xi(n,e,r,i),DE(n,t,r)}}function Tj(e,t,n){var r=pa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($E(e))FE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,n);if(i.hasEagerState=!0,i.eagerState=u,wi(u,s)){var c=t.interleaved;c===null?(i.next=i,qb(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=fE(e,t,i,r),n!==null&&(i=Un(),xi(n,e,r,i),DE(n,t,r))}}function $E(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function FE(e,t){Mc=o0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$b(e,n)}}var a0={readContext:ti,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},Ej={readContext:ti,useCallback:function(e,t){return Ai().memoizedState=[e,t===void 0?null:t],e},useContext:ti,useEffect:J_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ch(4194308,4,PE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var n=Ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kj.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Ai();return e={current:e},t.memoizedState=e},useState:Z_,useDebugValue:rx,useDeferredValue:function(e){return Ai().memoizedState=e},useTransition:function(){var e=Z_(!1),t=e[0];return e=Cj.bind(null,e[1]),Ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,i=Ai();if(Mt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),hn===null)throw Error(Z(349));Ss&30||xE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,J_(SE.bind(null,r,o,e),[e]),r.flags|=2048,gf(9,wE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ai(),t=hn.identifierPrefix;if(Mt){var n=mo,r=ho;n=(r&~(1<<32-bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mf++,0")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{Bg=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mc(e):""}function rL(e){switch(e.tag){case 5:return mc(e.type);case 16:return mc("Lazy");case 13:return mc("Suspense");case 19:return mc("SuspenseList");case 0:case 2:case 15:return e=Vg(e.type,!1),e;case 11:return e=Vg(e.type.render,!1),e;case 1:return e=Vg(e.type,!0),e;default:return""}}function y1(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pl:return"Fragment";case dl:return"Portal";case m1:return"Profiler";case Ab:return"StrictMode";case v1:return"Suspense";case g1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hT:return(e.displayName||"Context")+".Consumer";case pT:return(e._context.displayName||"Context")+".Provider";case Rb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ob:return t=e.displayName||null,t!==null?t:y1(e.type)||"Memo";case Qo:t=e._payload,e=e._init;try{return y1(e(t))}catch{}}return null}function iL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return y1(t);case 8:return t===Ab?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oL(e){var t=vT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vp(e){e._valueTracker||(e._valueTracker=oL(e))}function gT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function b1(e,t){var n=t.checked;return zt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function v_(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wa(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yT(e,t){t=t.checked,t!=null&&Pb(e,"checked",t,!1)}function x1(e,t){yT(e,t);var n=wa(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?w1(e,t.type,n):t.hasOwnProperty("defaultValue")&&w1(e,t.type,wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function g_(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function w1(e,t,n){(t!=="number"||Vh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vc=Array.isArray;function Dl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=gp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aL=["Webkit","ms","Moz","O"];Object.keys(Pc).forEach(function(e){aL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pc[t]=Pc[e]})});function ST(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pc.hasOwnProperty(e)&&Pc[e]?(""+t).trim():t+"px"}function _T(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ST(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var sL=zt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function C1(e,t){if(t){if(sL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Z(62))}}function k1(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var T1=null;function Ib(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var E1=null,Ll=null,jl=null;function x_(e){if(e=zf(e)){if(typeof E1!="function")throw Error(Z(280));var t=e.stateNode;t&&(t=lm(t),E1(e.stateNode,e.type,t))}}function CT(e){Ll?jl?jl.push(e):jl=[e]:Ll=e}function kT(){if(Ll){var e=Ll,t=jl;if(jl=Ll=null,x_(e),t)for(e=0;e>>=0,e===0?32:31-(yL(e)/bL|0)|0}var yp=64,bp=4194304;function gc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~i;u!==0?r=gc(u):(o&=s,o!==0&&(r=gc(o)))}else s=n&~i,s!==0?r=gc(s):o!==0&&(r=gc(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Lf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bi(t),e[t]=n}function _L(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Rc),A_=" ",R_=!1;function HT(e,t){switch(e){case"keyup":return QL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hl=!1;function JL(e,t){switch(e){case"compositionend":return GT(t);case"keypress":return t.which!==32?null:(R_=!0,A_);case"textInput":return e=t.data,e===A_&&R_?null:e;default:return null}}function ej(e,t){if(hl)return e==="compositionend"||!Nb&&HT(e,t)?(e=WT(),ah=Lb=ra=null,hl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$_(n)}}function XT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?XT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function QT(){for(var e=window,t=Vh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vh(e.document)}return t}function Bb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function uj(e){var t=QT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&XT(n.ownerDocument.documentElement,n)){if(r!==null&&Bb(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=F_(n,o);var s=F_(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ml=null,M1=null,Ic=null,$1=!1;function D_(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$1||ml==null||ml!==Vh(r)||(r=ml,"selectionStart"in r&&Bb(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ic&&uf(Ic,r)||(Ic=r,r=Yh(M1,"onSelect"),0yl||(e.current=N1[yl],N1[yl]=null,yl--)}function kt(e,t){yl++,N1[yl]=e.current,e.current=t}var Sa={},Fn=Ra(Sa),or=Ra(!1),ws=Sa;function Jl(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ar(e){return e=e.childContextTypes,e!=null}function Qh(){Ot(or),Ot(Fn)}function W_(e,t,n){if(Fn.current!==Sa)throw Error(Z(168));kt(Fn,t),kt(or,n)}function aE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Z(108,iL(e)||"Unknown",i));return zt({},n,r)}function Zh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,ws=Fn.current,kt(Fn,e),kt(or,or.current),!0}function U_(e,t,n){var r=e.stateNode;if(!r)throw Error(Z(169));n?(e=aE(e,t,ws),r.__reactInternalMemoizedMergedChildContext=e,Ot(or),Ot(Fn),kt(Fn,e)):Ot(or),kt(or,n)}var uo=null,um=!1,ny=!1;function sE(e){uo===null?uo=[e]:uo.push(e)}function wj(e){um=!0,sE(e)}function Oa(){if(!ny&&uo!==null){ny=!0;var e=0,t=vt;try{var n=uo;for(vt=1;e>=s,i-=s,ho=1<<32-bi(t)+i|n<F?(V=I,I=null):V=I.sibling;var B=m(S,I,C[F],P);if(B===null){I===null&&(I=V);break}e&&I&&B.alternate===null&&t(S,I),y=o(B,y,F),$===null?O=B:$.sibling=B,$=B,I=V}if(F===C.length)return n(S,I),Mt&&Ka(S,F),O;if(I===null){for(;FF?(V=I,I=null):V=I.sibling;var X=m(S,I,B.value,P);if(X===null){I===null&&(I=V);break}e&&I&&X.alternate===null&&t(S,I),y=o(X,y,F),$===null?O=X:$.sibling=X,$=X,I=V}if(B.done)return n(S,I),Mt&&Ka(S,F),O;if(I===null){for(;!B.done;F++,B=C.next())B=h(S,B.value,P),B!==null&&(y=o(B,y,F),$===null?O=B:$.sibling=B,$=B);return Mt&&Ka(S,F),O}for(I=r(S,I);!B.done;F++,B=C.next())B=g(I,S,F,B.value,P),B!==null&&(e&&B.alternate!==null&&I.delete(B.key===null?F:B.key),y=o(B,y,F),$===null?O=B:$.sibling=B,$=B);return e&&I.forEach(function(pe){return t(S,pe)}),Mt&&Ka(S,F),O}function T(S,y,C,P){if(typeof C=="object"&&C!==null&&C.type===pl&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case mp:e:{for(var O=C.key,$=y;$!==null;){if($.key===O){if(O=C.type,O===pl){if($.tag===7){n(S,$.sibling),y=i($,C.props.children),y.return=S,S=y;break e}}else if($.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Qo&&Q_(O)===$.type){n(S,$.sibling),y=i($,C.props),y.ref=ic(S,$,C),y.return=S,S=y;break e}n(S,$);break}else t(S,$);$=$.sibling}C.type===pl?(y=ls(C.props.children,S.mode,P,C.key),y.return=S,S=y):(P=hh(C.type,C.key,C.props,null,S.mode,P),P.ref=ic(S,y,C),P.return=S,S=P)}return s(S);case dl:e:{for($=C.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===C.containerInfo&&y.stateNode.implementation===C.implementation){n(S,y.sibling),y=i(y,C.children||[]),y.return=S,S=y;break e}else{n(S,y);break}else t(S,y);y=y.sibling}y=cy(C,S.mode,P),y.return=S,S=y}return s(S);case Qo:return $=C._init,T(S,y,$(C._payload),P)}if(vc(C))return x(S,y,C,P);if(Ju(C))return b(S,y,C,P);Tp(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,y!==null&&y.tag===6?(n(S,y.sibling),y=i(y,C),y.return=S,S=y):(n(S,y),y=uy(C,S.mode,P),y.return=S,S=y),s(S)):n(S,y)}return T}var tu=mE(!0),vE=mE(!1),Nf={},ji=Ra(Nf),pf=Ra(Nf),hf=Ra(Nf);function is(e){if(e===Nf)throw Error(Z(174));return e}function Xb(e,t){switch(kt(hf,t),kt(pf,e),kt(ji,Nf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_1(t,e)}Ot(ji),kt(ji,t)}function nu(){Ot(ji),Ot(pf),Ot(hf)}function gE(e){is(hf.current);var t=is(ji.current),n=_1(t,e.type);t!==n&&(kt(pf,e),kt(ji,n))}function Qb(e){pf.current===e&&(Ot(ji),Ot(pf))}var Dt=Ra(0);function i0(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ry=[];function Zb(){for(var e=0;en?n:4,e(!0);var r=iy.transition;iy.transition={};try{e(!1),t()}finally{vt=n,iy.transition=r}}function ME(){return ni().memoizedState}function kj(e,t,n){var r=pa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$E(e))FE(t,n);else if(n=fE(e,t,n,r),n!==null){var i=Un();xi(n,e,r,i),DE(n,t,r)}}function Tj(e,t,n){var r=pa(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($E(e))FE(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,n);if(i.hasEagerState=!0,i.eagerState=u,wi(u,s)){var c=t.interleaved;c===null?(i.next=i,qb(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=fE(e,t,i,r),n!==null&&(i=Un(),xi(n,e,r,i),DE(n,t,r))}}function $E(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function FE(e,t){Mc=o0=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$b(e,n)}}var a0={readContext:ti,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},Ej={readContext:ti,useCallback:function(e,t){return Ai().memoizedState=[e,t===void 0?null:t],e},useContext:ti,useEffect:J_,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ch(4194308,4,PE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ch(4194308,4,e,t)},useInsertionEffect:function(e,t){return ch(4,2,e,t)},useMemo:function(e,t){var n=Ai();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ai();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kj.bind(null,jt,e),[r.memoizedState,e]},useRef:function(e){var t=Ai();return e={current:e},t.memoizedState=e},useState:Z_,useDebugValue:rx,useDeferredValue:function(e){return Ai().memoizedState=e},useTransition:function(){var e=Z_(!1),t=e[0];return e=Cj.bind(null,e[1]),Ai().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=jt,i=Ai();if(Mt){if(n===void 0)throw Error(Z(407));n=n()}else{if(n=t(),hn===null)throw Error(Z(349));_s&30||xE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,J_(SE.bind(null,r,o,e),[e]),r.flags|=2048,gf(9,wE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ai(),t=hn.identifierPrefix;if(Mt){var n=mo,r=ho;n=(r&~(1<<32-bi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mi]=t,e[df]=r,HE(e,t,!1,!1),t.stateNode=e;e:{switch(s=k1(n,r),n){case"dialog":At("cancel",e),At("close",e),i=r;break;case"iframe":case"object":case"embed":At("load",e),i=r;break;case"video":case"audio":for(i=0;iru&&(t.flags|=128,r=!0,oc(o,!1),t.lanes=4194304)}else{if(!r)if(e=i0(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Mt)return Rn(t),null}else 2*Yt()-o.renderingStartTime>ru&&n!==1073741824&&(t.flags|=128,r=!0,oc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Yt(),t.sibling=null,n=Dt.current,kt(Dt,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return ux(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?br&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function Fj(e,t){switch(Wb(t),t.tag){case 1:return ar(t.type)&&Qh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tu(),Ot(or),Ot(Fn),Zb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qb(t),null;case 13:if(Ot(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot(Dt),null;case 4:return tu(),null;case 10:return Kb(t.type._context),null;case 22:case 23:return ux(),null;case 24:return null;default:return null}}var Pp=!1,Mn=!1,Dj=typeof WeakSet=="function"?WeakSet:Set,de=null;function wl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Vt(e,t,r)}else n.current=null}function Z1(e,t,n){try{n()}catch(r){Vt(e,t,r)}}var l5=!1;function Lj(e,t){if(F1=Kh,e=QT(),Bb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(u=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++f===i&&(u=s),m===o&&++p===r&&(c=s),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(D1={focusedElem:e,selectionRange:n},Kh=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var b=w.memoizedProps,T=w.memoizedState,S=t.stateNode,y=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:hi(t.type,b),T);S.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(P){Vt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return w=l5,l5=!1,w}function $c(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Z1(t,n,o)}i=i.next}while(i!==r)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function J1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qE(e){var t=e.alternate;t!==null&&(e.alternate=null,qE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mi],delete t[df],delete t[z1],delete t[bj],delete t[xj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YE(e){return e.tag===5||e.tag===3||e.tag===4}function u5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function e2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xh));else if(r!==4&&(e=e.child,e!==null))for(e2(e,t,n),e=e.sibling;e!==null;)e2(e,t,n),e=e.sibling}function t2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}var Sn=null,mi=!1;function Uo(e,t,n){for(n=n.child;n!==null;)XE(e,t,n),n=n.sibling}function XE(e,t,n){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(im,n)}catch{}switch(n.tag){case 5:Mn||wl(n,t);case 6:var r=Sn,i=mi;Sn=null,Uo(e,t,n),Sn=r,mi=i,Sn!==null&&(mi?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(mi?(e=Sn,n=n.stateNode,e.nodeType===8?ty(e.parentNode,n):e.nodeType===1&&ty(e,n),sf(e)):ty(Sn,n.stateNode));break;case 4:r=Sn,i=mi,Sn=n.stateNode.containerInfo,mi=!0,Uo(e,t,n),Sn=r,mi=i;break;case 0:case 11:case 14:case 15:if(!Mn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Z1(n,t,s),i=i.next}while(i!==r)}Uo(e,t,n);break;case 1:if(!Mn&&(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Vt(n,t,u)}Uo(e,t,n);break;case 21:Uo(e,t,n);break;case 22:n.mode&1?(Mn=(r=Mn)||n.memoizedState!==null,Uo(e,t,n),Mn=r):Uo(e,t,n);break;default:Uo(e,t,n)}}function c5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dj),t.forEach(function(r){var i=Gj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Yt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zj(r/1960))-r,10e?16:e,ia===null)var r=!1;else{if(e=ia,ia=null,u0=0,tt&6)throw Error(Z(331));var i=tt;for(tt|=4,de=e.current;de!==null;){var o=de,s=o.child;if(de.flags&16){var u=o.deletions;if(u!==null){for(var c=0;cYt()-sx?ss(e,0):ax|=n),sr(e,t)}function iP(e,t){t===0&&(e.mode&1?(t=bp,bp<<=1,!(bp&130023424)&&(bp=4194304)):t=1);var n=Un();e=To(e,t),e!==null&&(Lf(e,t,n),sr(e,n))}function Hj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iP(e,n)}function Gj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),iP(e,n)}var oP;oP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||or.current)ir=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ir=!1,Mj(e,t,n);ir=!!(e.flags&131072)}else ir=!1,Mt&&t.flags&1048576&&lE(t,e0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fh(e,t),e=t.pendingProps;var i=Zl(t,Fn.current);zl(t,n),i=ex(null,t,r,e,i,n);var o=tx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ar(r)?(o=!0,Zh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yb(t),i.updater=cm,t.stateNode=i,i._reactInternals=t,H1(t,r,e,n),t=q1(null,t,r,!0,o,n)):(t.tag=0,Mt&&o&&Vb(t),Vn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qj(r),e=hi(r,e),i){case 0:t=K1(null,t,r,e,n);break e;case 1:t=o5(null,t,r,e,n);break e;case 11:t=r5(null,t,r,e,n);break e;case 14:t=i5(null,t,r,hi(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),K1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),o5(e,t,r,i,n);case 3:e:{if(VE(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dE(e,t),r0(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=nu(Error(Z(423)),t),t=a5(e,t,r,n,i);break e}else if(r!==i){i=nu(Error(Z(424)),t),t=a5(e,t,r,n,i);break e}else for(xr=ca(t.stateNode.containerInfo.firstChild),_r=t,Mt=!0,vi=null,n=vE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jl(),r===i){t=Eo(e,t,n);break e}Vn(e,t,r,n)}t=t.child}return t;case 5:return gE(t),e===null&&V1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,L1(r,i)?s=null:o!==null&&L1(r,o)&&(t.flags|=32),BE(e,t),Vn(e,t,s,n),t.child;case 6:return e===null&&V1(t),null;case 13:return WE(e,t,n);case 4:return Xb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eu(t,null,r,n):Vn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),r5(e,t,r,i,n);case 7:return Vn(e,t,t.pendingProps,n),t.child;case 8:return Vn(e,t,t.pendingProps.children,n),t.child;case 12:return Vn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,kt(t0,r._currentValue),r._currentValue=s,o!==null)if(wi(o.value,s)){if(o.children===i.children&&!or.current){t=Eo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){s=o.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=bo(-1,n&-n),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),W1(o.return,n,t),u.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Z(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),W1(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Vn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,zl(t,n),i=ti(i),r=r(i),t.flags|=1,Vn(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),i5(e,t,r,i,n);case 15:return zE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),fh(e,t),t.tag=1,ar(r)?(e=!0,Zh(t)):e=!1,zl(t,n),hE(t,r,i),H1(t,r,i,n),q1(null,t,r,!0,e,n);case 19:return UE(e,t,n);case 22:return NE(e,t,n)}throw Error(Z(156,t.tag))};function aP(e,t){return IT(e,t)}function Kj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qr(e,t,n,r){return new Kj(e,t,n,r)}function fx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qj(e){if(typeof e=="function")return fx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rb)return 11;if(e===Ob)return 14}return 2}function ha(e,t){var n=e.alternate;return n===null?(n=Qr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case dl:return ls(n.children,i,o,t);case Ab:s=8,i|=8;break;case m1:return e=Qr(12,n,t,i|2),e.elementType=m1,e.lanes=o,e;case v1:return e=Qr(13,n,t,i),e.elementType=v1,e.lanes=o,e;case g1:return e=Qr(19,n,t,i),e.elementType=g1,e.lanes=o,e;case mT:return hm(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pT:s=10;break e;case hT:s=9;break e;case Rb:s=11;break e;case Ob:s=14;break e;case Qo:s=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Qr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ls(e,t,n,r){return e=Qr(7,e,r,t),e.lanes=n,e}function hm(e,t,n,r){return e=Qr(22,e,r,t),e.elementType=mT,e.lanes=n,e.stateNode={isHidden:!1},e}function uy(e,t,n){return e=Qr(6,e,null,t),e.lanes=n,e}function cy(e,t,n){return t=Qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yj(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ug(0),this.expirationTimes=Ug(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ug(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dx(e,t,n,r,i,o,s,u,c){return e=new Yj(e,t,n,u,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yb(o),e}function Xj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cP)}catch(e){console.error(e)}}cP(),lT.exports=Mr;var vx=lT.exports,[fP,tz]=Jt({strict:!1,name:"PortalContext"}),gx="chakra-portal",nz=".chakra-portal",rz=e=>x.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),iz=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=_.useState(null),o=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const u=tz(),c=QD();aa(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;o.current=p.createElement("div"),o.current.className=gx,h.appendChild(o.current),s({});const m=o.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c!=null&&c.zIndex?x.jsx(rz,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?vx.createPortal(x.jsx(fP,{value:o.current,children:f}),o.current):x.jsx("span",{ref:p=>{p&&i(p)}})},oz=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=gx),c},[i]),[,u]=_.useState({});return aa(()=>u({}),[]),aa(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?vx.createPortal(x.jsx(fP,{value:r?s:null,children:t}),s):null};function xu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?x.jsx(oz,{containerRef:n,...r}):x.jsx(iz,{...r})}xu.className=gx;xu.selector=nz;xu.displayName="Portal";function bm(){const e=_.useContext(ef);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var yx=_.createContext({});yx.displayName="ColorModeContext";function Fr(){const e=_.useContext(yx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Op={light:"chakra-ui-light",dark:"chakra-ui-dark"};function az(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?Op.dark:Op.light),document.body.classList.remove(r?Op.light:Op.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=s=>{r(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var sz="chakra-ui-color-mode";function lz(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var uz=lz(sz),y5=()=>{};function b5(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function dP(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=uz}=e,u=i==="dark"?"dark":"light",[c,f]=_.useState(()=>b5(s,u)),[p,h]=_.useState(()=>b5(s)),{getSystemTheme:m,setClassName:g,setDataset:w,addListener:b}=_.useMemo(()=>az({preventTransition:o}),[o]),T=i==="system"&&!c?p:c,S=_.useCallback(P=>{const O=P==="system"?m():P;f(O),g(O==="dark"),w(O),s.set(O)},[s,m,g,w]);aa(()=>{i==="system"&&h(m())},[]),_.useEffect(()=>{const P=s.get();if(P){S(P);return}if(i==="system"){S("system");return}S(u)},[s,u,i,S]);const y=_.useCallback(()=>{S(T==="dark"?"light":"dark")},[T,S]);_.useEffect(()=>{if(r)return b(S)},[r,b,S]);const C=_.useMemo(()=>({colorMode:t??T,toggleColorMode:t?y5:y,setColorMode:t?y5:S,forced:t!==void 0}),[T,y,S,t]);return x.jsx(yx.Provider,{value:C,children:n})}dP.displayName="ColorModeProvider";function cz(){const e=Fr(),t=bm();return{...e,theme:t}}var Me=(...e)=>e.filter(Boolean).join(" ");function Cr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vo(e,...t){return fz(e)?e(...t):e}var fz=e=>typeof e=="function",qe=e=>e?"":void 0,Bl=e=>e?!0:void 0;function We(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function pP(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var d0={exports:{}};d0.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",g="[object Function]",w="[object GeneratorFunction]",b="[object Map]",T="[object Number]",S="[object Null]",y="[object Object]",C="[object Proxy]",P="[object RegExp]",O="[object Set]",$="[object String]",I="[object Undefined]",F="[object WeakMap]",V="[object ArrayBuffer]",B="[object DataView]",X="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",ge="[object Int16Array]",Ae="[object Int32Array]",se="[object Uint8Array]",G="[object Uint8ClampedArray]",W="[object Uint16Array]",J="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,ae={};ae[X]=ae[pe]=ae[he]=ae[ge]=ae[Ae]=ae[se]=ae[G]=ae[W]=ae[J]=!0,ae[u]=ae[c]=ae[V]=ae[p]=ae[B]=ae[h]=ae[m]=ae[g]=ae[b]=ae[T]=ae[y]=ae[P]=ae[O]=ae[$]=ae[F]=!1;var ce=typeof co=="object"&&co&&co.Object===Object&&co,le=typeof self=="object"&&self&&self.Object===Object&&self,Te=ce||le||Function("return this")(),et=t&&!t.nodeType&&t,Ue=et&&!0&&e&&!e.nodeType&&e,ct=Ue&&Ue.exports===et,_t=ct&&ce.process,Xe=function(){try{var R=Ue&&Ue.require&&Ue.require("util").types;return R||_t&&_t.binding&&_t.binding("util")}catch{}}(),Re=Xe&&Xe.isTypedArray;function bt(R,L,U){switch(U.length){case 0:return R.call(L);case 1:return R.call(L,U[0]);case 2:return R.call(L,U[0],U[1]);case 3:return R.call(L,U[0],U[1],U[2])}return R.apply(L,U)}function Oe(R,L){for(var U=-1,ue=Array(R);++U-1}function fv(R,L){var U=this.__data__,ue=Yi(U,R);return ue<0?(++this.size,U.push([R,L])):U[ue][1]=L,this}oi.prototype.clear=ku,oi.prototype.delete=uv,oi.prototype.get=Tu,oi.prototype.has=cv,oi.prototype.set=fv;function Mo(R){var L=-1,U=R==null?0:R.length;for(this.clear();++L1?U[He-1]:void 0,De=He>2?U[2]:void 0;for(dt=R.length>3&&typeof dt=="function"?(He--,dt):void 0,De&&gd(U[0],U[1],De)&&(dt=He<3?void 0:dt,He=1),L=Object(L);++ue-1&&R%1==0&&R0){if(++L>=i)return arguments[0]}else L=0;return R.apply(void 0,arguments)}}function Sd(R){if(R!=null){try{return Ut.call(R)}catch{}try{return R+""}catch{}}return""}function Ns(R,L){return R===L||R!==R&&L!==L}var Mu=Pu(function(){return arguments}())?Pu:function(R){return La(R)&&$t.call(R,"callee")&&!Xn.call(R,"callee")},$u=Array.isArray;function Bs(R){return R!=null&&Cd(R.length)&&!Fu(R)}function Rv(R){return La(R)&&Bs(R)}var _d=_u||Mv;function Fu(R){if(!ai(R))return!1;var L=Fs(R);return L==g||L==w||L==f||L==C}function Cd(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=s}function ai(R){var L=typeof R;return R!=null&&(L=="object"||L=="function")}function La(R){return R!=null&&typeof R=="object"}function Ov(R){if(!La(R)||Fs(R)!=y)return!1;var L=re(R);if(L===null)return!0;var U=$t.call(L,"constructor")&&L.constructor;return typeof U=="function"&&U instanceof U&&Ut.call(U)==_i}var kd=Re?me(Re):ld;function Iv(R){return pd(R,Td(R))}function Td(R){return Bs(R)?Sv(R,!0):kv(R)}var wt=Ds(function(R,L,U,ue){ud(R,L,U,ue)});function yt(R){return function(){return R}}function Ed(R){return R}function Mv(){return!1}e.exports=wt})(d0,d0.exports);var dz=d0.exports;const Zr=hb(dz);var pz=e=>/!(important)?$/.test(e),x5=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,hz=(e,t)=>n=>{const r=String(t),i=pz(r),o=x5(r),s=e?`${e}.${o}`:o;let u=Cr(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=x5(u),i?`${u} !important`:u};function bx(e){const{scale:t,transform:n,compose:r}=e;return(o,s)=>{var u;const c=hz(t,o)(s);let f=(u=n==null?void 0:n(c,s))!=null?u:c;return r&&(f=r(f,s)),f}}var Ip=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Hr(e,t){return n=>{const r={property:n,scale:e};return r.transform=bx({scale:e,transform:t}),r}}var mz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function vz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:mz(t),transform:n?bx({scale:n,compose:r}):r}}var hP=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function gz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...hP].join(" ")}function yz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...hP].join(" ")}var bz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},xz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function wz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Sz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},a2={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},_z=new Set(Object.values(a2)),s2=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Cz=e=>e.trim();function kz(e,t){if(e==null||s2.has(e))return e;if(!(l2(e)||s2.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[c,...f]=s.split(",").map(Cz).filter(Boolean);if((f==null?void 0:f.length)===0)return e;const p=c in a2?a2[c]:c;f.unshift(p);const h=f.map(m=>{if(_z.has(m))return m;const g=m.indexOf(" "),[w,b]=g!==-1?[m.substr(0,g),m.substr(g+1)]:[m],T=l2(b)?b:b&&b.split(" "),S=`colors.${w}`,y=S in t.__cssMap?t.__cssMap[S].varRef:w;return T?[y,...Array.isArray(T)?T:[T]].join(" "):y});return`${u}(${h.join(", ")})`}var l2=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Tz=(e,t)=>kz(e,t??{});function Ez(e){return/^var\(--.+\)$/.test(e)}var Pz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Pi=e=>t=>`${e}(${t})`,Je={filter(e){return e!=="auto"?e:bz},backdropFilter(e){return e!=="auto"?e:xz},ring(e){return wz(Je.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?gz():e==="auto-gpu"?yz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Pz(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Ez(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Tz,blur:Pi("blur"),opacity:Pi("opacity"),brightness:Pi("brightness"),contrast:Pi("contrast"),dropShadow:Pi("drop-shadow"),grayscale:Pi("grayscale"),hueRotate:e=>Pi("hue-rotate")(Je.degree(e)),invert:Pi("invert"),saturate:Pi("saturate"),sepia:Pi("sepia"),bgImage(e){return e==null||l2(e)||s2.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=Sz[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},j={borderWidths:Hr("borderWidths"),borderStyles:Hr("borderStyles"),colors:Hr("colors"),borders:Hr("borders"),gradients:Hr("gradients",Je.gradient),radii:Hr("radii",Je.px),space:Hr("space",Ip(Je.vh,Je.px)),spaceT:Hr("space",Ip(Je.vh,Je.px)),degreeT(e){return{property:e,transform:Je.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:bx({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Hr("sizes",Ip(Je.vh,Je.px)),sizesT:Hr("sizes",Ip(Je.vh,Je.fraction)),shadows:Hr("shadows"),logical:vz,blur:Hr("blur",Je.blur)},mh={background:j.colors("background"),backgroundColor:j.colors("backgroundColor"),backgroundImage:j.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Je.bgClip},bgSize:j.prop("backgroundSize"),bgPosition:j.prop("backgroundPosition"),bg:j.colors("background"),bgColor:j.colors("backgroundColor"),bgPos:j.prop("backgroundPosition"),bgRepeat:j.prop("backgroundRepeat"),bgAttachment:j.prop("backgroundAttachment"),bgGradient:j.gradients("backgroundImage"),bgClip:{transform:Je.bgClip}};Object.assign(mh,{bgImage:mh.backgroundImage,bgImg:mh.backgroundImage});var it={border:j.borders("border"),borderWidth:j.borderWidths("borderWidth"),borderStyle:j.borderStyles("borderStyle"),borderColor:j.colors("borderColor"),borderRadius:j.radii("borderRadius"),borderTop:j.borders("borderTop"),borderBlockStart:j.borders("borderBlockStart"),borderTopLeftRadius:j.radii("borderTopLeftRadius"),borderStartStartRadius:j.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:j.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:j.radii("borderTopRightRadius"),borderStartEndRadius:j.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:j.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:j.borders("borderRight"),borderInlineEnd:j.borders("borderInlineEnd"),borderBottom:j.borders("borderBottom"),borderBlockEnd:j.borders("borderBlockEnd"),borderBottomLeftRadius:j.radii("borderBottomLeftRadius"),borderBottomRightRadius:j.radii("borderBottomRightRadius"),borderLeft:j.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:j.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:j.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:j.borders(["borderLeft","borderRight"]),borderInline:j.borders("borderInline"),borderY:j.borders(["borderTop","borderBottom"]),borderBlock:j.borders("borderBlock"),borderTopWidth:j.borderWidths("borderTopWidth"),borderBlockStartWidth:j.borderWidths("borderBlockStartWidth"),borderTopColor:j.colors("borderTopColor"),borderBlockStartColor:j.colors("borderBlockStartColor"),borderTopStyle:j.borderStyles("borderTopStyle"),borderBlockStartStyle:j.borderStyles("borderBlockStartStyle"),borderBottomWidth:j.borderWidths("borderBottomWidth"),borderBlockEndWidth:j.borderWidths("borderBlockEndWidth"),borderBottomColor:j.colors("borderBottomColor"),borderBlockEndColor:j.colors("borderBlockEndColor"),borderBottomStyle:j.borderStyles("borderBottomStyle"),borderBlockEndStyle:j.borderStyles("borderBlockEndStyle"),borderLeftWidth:j.borderWidths("borderLeftWidth"),borderInlineStartWidth:j.borderWidths("borderInlineStartWidth"),borderLeftColor:j.colors("borderLeftColor"),borderInlineStartColor:j.colors("borderInlineStartColor"),borderLeftStyle:j.borderStyles("borderLeftStyle"),borderInlineStartStyle:j.borderStyles("borderInlineStartStyle"),borderRightWidth:j.borderWidths("borderRightWidth"),borderInlineEndWidth:j.borderWidths("borderInlineEndWidth"),borderRightColor:j.colors("borderRightColor"),borderInlineEndColor:j.colors("borderInlineEndColor"),borderRightStyle:j.borderStyles("borderRightStyle"),borderInlineEndStyle:j.borderStyles("borderInlineEndStyle"),borderTopRadius:j.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:j.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:j.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:j.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(it,{rounded:it.borderRadius,roundedTop:it.borderTopRadius,roundedTopLeft:it.borderTopLeftRadius,roundedTopRight:it.borderTopRightRadius,roundedTopStart:it.borderStartStartRadius,roundedTopEnd:it.borderStartEndRadius,roundedBottom:it.borderBottomRadius,roundedBottomLeft:it.borderBottomLeftRadius,roundedBottomRight:it.borderBottomRightRadius,roundedBottomStart:it.borderEndStartRadius,roundedBottomEnd:it.borderEndEndRadius,roundedLeft:it.borderLeftRadius,roundedRight:it.borderRightRadius,roundedStart:it.borderInlineStartRadius,roundedEnd:it.borderInlineEndRadius,borderStart:it.borderInlineStart,borderEnd:it.borderInlineEnd,borderTopStartRadius:it.borderStartStartRadius,borderTopEndRadius:it.borderStartEndRadius,borderBottomStartRadius:it.borderEndStartRadius,borderBottomEndRadius:it.borderEndEndRadius,borderStartRadius:it.borderInlineStartRadius,borderEndRadius:it.borderInlineEndRadius,borderStartWidth:it.borderInlineStartWidth,borderEndWidth:it.borderInlineEndWidth,borderStartColor:it.borderInlineStartColor,borderEndColor:it.borderInlineEndColor,borderStartStyle:it.borderInlineStartStyle,borderEndStyle:it.borderInlineEndStyle});var Az={color:j.colors("color"),textColor:j.colors("color"),fill:j.colors("fill"),stroke:j.colors("stroke")},u2={boxShadow:j.shadows("boxShadow"),mixBlendMode:!0,blendMode:j.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:j.prop("backgroundBlendMode"),opacity:!0};Object.assign(u2,{shadow:u2.boxShadow});var Rz={filter:{transform:Je.filter},blur:j.blur("--chakra-blur"),brightness:j.propT("--chakra-brightness",Je.brightness),contrast:j.propT("--chakra-contrast",Je.contrast),hueRotate:j.propT("--chakra-hue-rotate",Je.hueRotate),invert:j.propT("--chakra-invert",Je.invert),saturate:j.propT("--chakra-saturate",Je.saturate),dropShadow:j.propT("--chakra-drop-shadow",Je.dropShadow),backdropFilter:{transform:Je.backdropFilter},backdropBlur:j.blur("--chakra-backdrop-blur"),backdropBrightness:j.propT("--chakra-backdrop-brightness",Je.brightness),backdropContrast:j.propT("--chakra-backdrop-contrast",Je.contrast),backdropHueRotate:j.propT("--chakra-backdrop-hue-rotate",Je.hueRotate),backdropInvert:j.propT("--chakra-backdrop-invert",Je.invert),backdropSaturate:j.propT("--chakra-backdrop-saturate",Je.saturate)},p0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Je.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:j.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:j.space("gap"),rowGap:j.space("rowGap"),columnGap:j.space("columnGap")};Object.assign(p0,{flexDir:p0.flexDirection});var mP={gridGap:j.space("gridGap"),gridColumnGap:j.space("gridColumnGap"),gridRowGap:j.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Oz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Je.outline},outlineOffset:!0,outlineColor:j.colors("outlineColor")},Kr={width:j.sizesT("width"),inlineSize:j.sizesT("inlineSize"),height:j.sizes("height"),blockSize:j.sizes("blockSize"),boxSize:j.sizes(["width","height"]),minWidth:j.sizes("minWidth"),minInlineSize:j.sizes("minInlineSize"),minHeight:j.sizes("minHeight"),minBlockSize:j.sizes("minBlockSize"),maxWidth:j.sizes("maxWidth"),maxInlineSize:j.sizes("maxInlineSize"),maxHeight:j.sizes("maxHeight"),maxBlockSize:j.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:j.propT("float",Je.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Kr,{w:Kr.width,h:Kr.height,minW:Kr.minWidth,maxW:Kr.maxWidth,minH:Kr.minHeight,maxH:Kr.maxHeight,overscroll:Kr.overscrollBehavior,overscrollX:Kr.overscrollBehaviorX,overscrollY:Kr.overscrollBehaviorY});var Iz={listStyleType:!0,listStylePosition:!0,listStylePos:j.prop("listStylePosition"),listStyleImage:!0,listStyleImg:j.prop("listStyleImage")};function Mz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,o,s);return u.set(i,c),c}},Fz=$z(Mz),Dz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Lz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},fy=(e,t,n)=>{const r={},i=Fz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},jz={srOnly:{transform(e){return e===!0?Dz:e==="focusable"?Lz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>fy(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>fy(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>fy(t,e,n)}},Lc={position:!0,pos:j.prop("position"),zIndex:j.prop("zIndex","zIndices"),inset:j.spaceT("inset"),insetX:j.spaceT(["left","right"]),insetInline:j.spaceT("insetInline"),insetY:j.spaceT(["top","bottom"]),insetBlock:j.spaceT("insetBlock"),top:j.spaceT("top"),insetBlockStart:j.spaceT("insetBlockStart"),bottom:j.spaceT("bottom"),insetBlockEnd:j.spaceT("insetBlockEnd"),left:j.spaceT("left"),insetInlineStart:j.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:j.spaceT("right"),insetInlineEnd:j.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Lc,{insetStart:Lc.insetInlineStart,insetEnd:Lc.insetInlineEnd});var zz={ring:{transform:Je.ring},ringColor:j.colors("--chakra-ring-color"),ringOffset:j.prop("--chakra-ring-offset-width"),ringOffsetColor:j.colors("--chakra-ring-offset-color"),ringInset:j.prop("--chakra-ring-inset")},Rt={margin:j.spaceT("margin"),marginTop:j.spaceT("marginTop"),marginBlockStart:j.spaceT("marginBlockStart"),marginRight:j.spaceT("marginRight"),marginInlineEnd:j.spaceT("marginInlineEnd"),marginBottom:j.spaceT("marginBottom"),marginBlockEnd:j.spaceT("marginBlockEnd"),marginLeft:j.spaceT("marginLeft"),marginInlineStart:j.spaceT("marginInlineStart"),marginX:j.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:j.spaceT("marginInline"),marginY:j.spaceT(["marginTop","marginBottom"]),marginBlock:j.spaceT("marginBlock"),padding:j.space("padding"),paddingTop:j.space("paddingTop"),paddingBlockStart:j.space("paddingBlockStart"),paddingRight:j.space("paddingRight"),paddingBottom:j.space("paddingBottom"),paddingBlockEnd:j.space("paddingBlockEnd"),paddingLeft:j.space("paddingLeft"),paddingInlineStart:j.space("paddingInlineStart"),paddingInlineEnd:j.space("paddingInlineEnd"),paddingX:j.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:j.space("paddingInline"),paddingY:j.space(["paddingTop","paddingBottom"]),paddingBlock:j.space("paddingBlock")};Object.assign(Rt,{m:Rt.margin,mt:Rt.marginTop,mr:Rt.marginRight,me:Rt.marginInlineEnd,marginEnd:Rt.marginInlineEnd,mb:Rt.marginBottom,ml:Rt.marginLeft,ms:Rt.marginInlineStart,marginStart:Rt.marginInlineStart,mx:Rt.marginX,my:Rt.marginY,p:Rt.padding,pt:Rt.paddingTop,py:Rt.paddingY,px:Rt.paddingX,pb:Rt.paddingBottom,pl:Rt.paddingLeft,ps:Rt.paddingInlineStart,paddingStart:Rt.paddingInlineStart,pr:Rt.paddingRight,pe:Rt.paddingInlineEnd,paddingEnd:Rt.paddingInlineEnd});var Nz={textDecorationColor:j.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:j.shadows("textShadow")},Bz={clipPath:!0,transform:j.propT("transform",Je.transform),transformOrigin:!0,translateX:j.spaceT("--chakra-translate-x"),translateY:j.spaceT("--chakra-translate-y"),skewX:j.degreeT("--chakra-skew-x"),skewY:j.degreeT("--chakra-skew-y"),scaleX:j.prop("--chakra-scale-x"),scaleY:j.prop("--chakra-scale-y"),scale:j.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:j.degreeT("--chakra-rotate")},Vz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:j.prop("transitionDuration","transition.duration"),transitionProperty:j.prop("transitionProperty","transition.property"),transitionTimingFunction:j.prop("transitionTimingFunction","transition.easing")},Wz={fontFamily:j.prop("fontFamily","fonts"),fontSize:j.prop("fontSize","fontSizes",Je.px),fontWeight:j.prop("fontWeight","fontWeights"),lineHeight:j.prop("lineHeight","lineHeights"),letterSpacing:j.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Uz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:j.spaceT("scrollMargin"),scrollMarginTop:j.spaceT("scrollMarginTop"),scrollMarginBottom:j.spaceT("scrollMarginBottom"),scrollMarginLeft:j.spaceT("scrollMarginLeft"),scrollMarginRight:j.spaceT("scrollMarginRight"),scrollMarginX:j.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:j.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:j.spaceT("scrollPadding"),scrollPaddingTop:j.spaceT("scrollPaddingTop"),scrollPaddingBottom:j.spaceT("scrollPaddingBottom"),scrollPaddingLeft:j.spaceT("scrollPaddingLeft"),scrollPaddingRight:j.spaceT("scrollPaddingRight"),scrollPaddingX:j.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:j.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function vP(e){return Cr(e)&&e.reference?e.reference:String(e)}var xm=(e,...t)=>t.map(vP).join(` ${e} `).replace(/calc/g,""),w5=(...e)=>`calc(${xm("+",...e)})`,S5=(...e)=>`calc(${xm("-",...e)})`,c2=(...e)=>`calc(${xm("*",...e)})`,_5=(...e)=>`calc(${xm("/",...e)})`,C5=e=>{const t=vP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:c2(t,-1)},es=Object.assign(e=>({add:(...t)=>es(w5(e,...t)),subtract:(...t)=>es(S5(e,...t)),multiply:(...t)=>es(c2(e,...t)),divide:(...t)=>es(_5(e,...t)),negate:()=>es(C5(e)),toString:()=>e.toString()}),{add:w5,subtract:S5,multiply:c2,divide:_5,negate:C5});function Hz(e,t="-"){return e.replace(/\s+/g,t)}function Gz(e){const t=Hz(e.toString());return qz(Kz(t))}function Kz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function qz(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Yz(e,t=""){return[t,e].filter(Boolean).join("-")}function Xz(e,t){return`var(${e}${t?`, ${t}`:""})`}function Qz(e,t=""){return Gz(`--${Yz(e,t)}`)}function Se(e,t,n){const r=Qz(e,n);return{variable:r,reference:Xz(r,t)}}function Zz(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=Se(`${e}-${i}`,o);continue}n[r]=Se(`${e}-${r}`)}return n}function Jz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function eN(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function f2(e){if(e==null)return e;const{unitless:t}=eN(e);return t||typeof e=="number"?`${e}px`:e}var gP=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,xx=e=>Object.fromEntries(Object.entries(e).sort(gP));function k5(e){const t=xx(e);return Object.assign(Object.values(t),t)}function tN(e){const t=Object.keys(xx(e));return new Set(t)}function T5(e){var t;if(!e)return e;e=(t=f2(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function bc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${f2(e)})`),t&&n.push("and",`(max-width: ${f2(t)})`),n.join(" ")}function nN(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=k5(e),r=Object.entries(e).sort(gP).map(([s,u],c,f)=>{var p;let[,h]=(p=f[c+1])!=null?p:[];return h=parseFloat(h)>0?T5(h):void 0,{_minW:T5(u),breakpoint:s,minW:u,maxW:h,maxWQuery:bc(null,h),minWQuery:bc(u),minMaxQuery:bc(u,h)}}),i=tN(e),o=Array.from(i.values());return{keys:i,normalized:n,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(c=>i.has(c))},asObject:xx(e),asArray:k5(e),details:r,get(s){return r.find(u=>u.breakpoint===s)},media:[null,...n.map(s=>bc(s)).slice(1)],toArrayValue(s){if(!Cr(s))throw new Error("toArrayValue: value must be an object");const u=o.map(c=>{var f;return(f=s[c])!=null?f:null});for(;Jz(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,c,f)=>{const p=o[f];return p!=null&&c!=null&&(u[p]=c),u},{})}}}var xn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ho=e=>yP(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ao=e=>yP(t=>e(t,"~ &"),"[data-peer]",".peer"),yP=(e,...t)=>t.map(e).join(", "),wm={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ho(xn.hover),_peerHover:ao(xn.hover),_groupFocus:Ho(xn.focus),_peerFocus:ao(xn.focus),_groupFocusVisible:Ho(xn.focusVisible),_peerFocusVisible:ao(xn.focusVisible),_groupActive:Ho(xn.active),_peerActive:ao(xn.active),_groupDisabled:Ho(xn.disabled),_peerDisabled:ao(xn.disabled),_groupInvalid:Ho(xn.invalid),_peerInvalid:ao(xn.invalid),_groupChecked:Ho(xn.checked),_peerChecked:ao(xn.checked),_groupFocusWithin:Ho(xn.focusWithin),_peerFocusWithin:ao(xn.focusWithin),_peerPlaceholderShown:ao(xn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},bP=Object.keys(wm);function E5(e,t){return Se(String(e).replace(/\./g,"-"),void 0,t)}function rN(e,t){let n={};const r={};for(const[i,o]of Object.entries(e)){const{isSemantic:s,value:u}=o,{variable:c,reference:f}=E5(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const m=i.split("."),[g,...w]=m,b=`${g}.-${w.join(".")}`,T=es.negate(u),S=es.negate(f);r[b]={value:T,var:c,varRef:S}}n[c]=u,r[i]={value:u,var:c,varRef:f};continue}const p=m=>{const w=[String(i).split(".")[0],m].join(".");if(!e[w])return m;const{reference:T}=E5(w,t==null?void 0:t.cssVarPrefix);return T},h=Cr(u)?u:{default:u};n=Zr(n,Object.entries(h).reduce((m,[g,w])=>{var b,T;if(!w)return m;const S=p(`${w}`);if(g==="default")return m[c]=S,m;const y=(T=(b=wm)==null?void 0:b[g])!=null?T:g;return m[y]={[c]:S},m},{})),r[i]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function iN(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function oN(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function aN(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function P5(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,u=[]){var c;if(aN(s)||Array.isArray(s)){const f={};for(const[p,h]of Object.entries(s)){const m=(c=i==null?void 0:i(p))!=null?c:p,g=[...u,m];if(r!=null&&r(s,g))return t(s,u);f[m]=o(h,g)}return f}return t(s,u)}return o(e)}var sN=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function lN(e){return oN(e,sN)}function uN(e){return e.semanticTokens}function cN(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var fN=e=>bP.includes(e)||e==="default";function dN({tokens:e,semanticTokens:t}){const n={};return P5(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),P5(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(fN)}),n}function pN(e){var t;const n=cN(e),r=lN(n),i=uN(n),o=dN({tokens:r,semanticTokens:i}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=rN(o,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:nN(n.breakpoints)}),n}var wx=Zr({},mh,it,Az,p0,Kr,Rz,zz,Oz,mP,jz,Lc,u2,Rt,Uz,Wz,Nz,Bz,Iz,Vz);Object.assign({},Rt,Kr,p0,mP,Lc);var hN=[...Object.keys(wx),...bP],mN={...wx,...wm},vN=e=>e in mN,gN=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const s in e){let u=vo(e[s],t);if(u==null)continue;if(u=Cr(u)&&n(u)?r(u):u,!Array.isArray(u)){o[s]=u;continue}const c=u.slice(0,i.length).length;for(let f=0;fe.startsWith("--")&&typeof t=="string"&&!bN(t),wN=(e,t)=>{var n,r;if(t==null)return t;const i=c=>{var f,p;return(p=(f=e.__cssMap)==null?void 0:f[c])==null?void 0:p.varRef},o=c=>{var f;return(f=i(c))!=null?f:c},[s,u]=yN(t);return t=(r=(n=i(s))!=null?n:o(u))!=null?r:o(t),t};function SN(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,s=!1)=>{var u,c,f;const p=vo(o,r),h=gN(p)(r);let m={};for(let g in h){const w=h[g];let b=vo(w,r);g in n&&(g=n[g]),xN(g,b)&&(b=wN(r,b));let T=t[g];if(T===!0&&(T={property:g}),Cr(b)){m[g]=(u=m[g])!=null?u:{},m[g]=Zr({},m[g],i(b,!0));continue}let S=(f=(c=T==null?void 0:T.transform)==null?void 0:c.call(T,b,r,p))!=null?f:b;S=T!=null&&T.processResult?i(S,!0):S;const y=vo(T==null?void 0:T.property,r);if(!s&&(T!=null&&T.static)){const C=vo(T.static,r);m=Zr({},m,C)}if(y&&Array.isArray(y)){for(const C of y)m[C]=S;continue}if(y){y==="&"&&Cr(S)?m=Zr({},m,S):m[y]=S;continue}if(Cr(S)){m=Zr({},m,S);continue}m[g]=S}return m};return i}var xP=e=>t=>SN({theme:t,pseudos:wm,configs:wx})(e);function Et(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function _N(e,t){if(Array.isArray(e))return e;if(Cr(e))return t(e);if(e!=null)return[e]}function CN(e,t){for(let n=t+1;n{Zr(f,{[C]:m?y[C]:{[S]:y[C]}})});continue}if(!g){m?Zr(f,y):f[S]=y;continue}f[S]=y}}return f}}function TN(e){return t=>{var n;const{variant:r,size:i,theme:o}=t,s=kN(o);return Zr({},vo((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",i,t),s(e,"variants",r,t))}}function EN(e,t,n){var r,i,o;return(o=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?o:n}function gn(e){return iN(e,["styleConfig","size","variant","colorScheme"])}var PN=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function AN(e){return Cr(e)?PN.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var RN={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},ON={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},IN={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},MN={property:RN,easing:ON,duration:IN},$N=MN,FN={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},DN=FN,LN={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},jN=LN,zN={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},NN=zN,BN={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},VN=BN,WN={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},UN=WN,HN={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},GN=HN,KN={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},qN=KN,YN={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},wP=YN,SP={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},XN={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},QN={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ZN={...SP,...XN,container:QN},_P=ZN,JN={breakpoints:NN,zIndices:DN,radii:UN,blur:qN,colors:VN,...wP,sizes:_P,shadows:GN,space:SP,borders:jN,transition:$N},{defineMultiStyleConfig:eB,definePartsStyle:xc}=Et(["stepper","step","title","description","indicator","separator","icon","number"]),fo=Se("stepper-indicator-size"),_l=Se("stepper-icon-size"),Cl=Se("stepper-title-font-size"),wc=Se("stepper-description-font-size"),sc=Se("stepper-accent-color"),tB=xc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[sc.variable]:`colors.${e}.500`,_dark:{[sc.variable]:`colors.${e}.200`}},title:{fontSize:Cl.reference,fontWeight:"medium"},description:{fontSize:wc.reference,color:"chakra-subtle-text"},number:{fontSize:Cl.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:_l.reference,height:_l.reference},indicator:{flexShrink:0,borderRadius:"full",width:fo.reference,height:fo.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:sc.reference},"&[data-status=complete]":{bg:sc.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:sc.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${fo.reference} - 8px)`,top:`calc(${fo.reference} + 4px)`,insetStart:`calc(${fo.reference} / 2 - 1px)`}}})),nB=eB({baseStyle:tB,sizes:{xs:xc({stepper:{[fo.variable]:"sizes.4",[_l.variable]:"sizes.3",[Cl.variable]:"fontSizes.xs",[wc.variable]:"fontSizes.xs"}}),sm:xc({stepper:{[fo.variable]:"sizes.6",[_l.variable]:"sizes.4",[Cl.variable]:"fontSizes.sm",[wc.variable]:"fontSizes.xs"}}),md:xc({stepper:{[fo.variable]:"sizes.8",[_l.variable]:"sizes.5",[Cl.variable]:"fontSizes.md",[wc.variable]:"fontSizes.sm"}}),lg:xc({stepper:{[fo.variable]:"sizes.10",[_l.variable]:"sizes.6",[Cl.variable]:"fontSizes.lg",[wc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function lt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const h of p)t[h]=c(h);return lt(e,t)}function o(...p){for(const h of p)h in t||(t[h]=c(h));return lt(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const g=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>p}}return{parts:i,toPart:c,extend:o,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var rB=lt("accordion").parts("root","container","button","panel").extend("icon"),iB=lt("alert").parts("title","description","container").extend("icon","spinner"),oB=lt("avatar").parts("label","badge","container").extend("excessLabel","group"),aB=lt("breadcrumb").parts("link","item","container").extend("separator");lt("button").parts();var sB=lt("checkbox").parts("control","icon","container").extend("label");lt("progress").parts("track","filledTrack").extend("label");var lB=lt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),uB=lt("editable").parts("preview","input","textarea"),cB=lt("form").parts("container","requiredIndicator","helperText"),fB=lt("formError").parts("text","icon"),dB=lt("input").parts("addon","field","element","group"),pB=lt("list").parts("container","item","icon"),hB=lt("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),mB=lt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vB=lt("numberinput").parts("root","field","stepperGroup","stepper");lt("pininput").parts("field");var gB=lt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),yB=lt("progress").parts("label","filledTrack","track"),bB=lt("radio").parts("container","control","label"),xB=lt("select").parts("field","icon"),wB=lt("slider").parts("container","track","thumb","filledTrack","mark"),SB=lt("stat").parts("container","label","helpText","number","icon"),_B=lt("switch").parts("container","track","thumb","label"),CB=lt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),kB=lt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),TB=lt("tag").parts("container","label","closeButton"),EB=lt("card").parts("container","header","body","footer");lt("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function os(e,t,n){return Math.min(Math.max(e,n),t)}class PB extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Sc=PB;function Sx(e){if(typeof e!="string")throw new Sc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=DB.test(e)?OB(e):e;const n=IB.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(u=>parseInt(bf(u,2),16)),parseInt(bf(s[3]||"f",2),16)/255]}const r=MB.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,16)),parseInt(s[3]||"ff",16)/255]}const i=$B.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,10)),parseFloat(s[3]||"1")]}const o=FB.exec(t);if(o){const[s,u,c,f]=Array.from(o).slice(1).map(parseFloat);if(os(0,100,u)!==u)throw new Sc(e);if(os(0,100,c)!==c)throw new Sc(e);return[...LB(s,u,c),Number.isNaN(f)?1:f]}throw new Sc(e)}function AB(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const A5=e=>parseInt(e.replace(/_/g,""),36),RB="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=A5(t.substring(0,3)),r=A5(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function OB(e){const t=e.toLowerCase().trim(),n=RB[AB(t)];if(!n)throw new Sc(e);return`#${n}`}const bf=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),IB=new RegExp(`^#${bf("([a-f0-9])",3)}([a-f0-9])?$`,"i"),MB=new RegExp(`^#${bf("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),$B=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${bf(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),FB=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,DB=/^[a-z]+$/i,R5=e=>Math.round(e*255),LB=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(R5);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),s=o*(1-Math.abs(i%2-1));let u=0,c=0,f=0;i>=0&&i<1?(u=o,c=s):i>=1&&i<2?(u=s,c=o):i>=2&&i<3?(c=o,f=s):i>=3&&i<4?(c=s,f=o):i>=4&&i<5?(u=s,f=o):i>=5&&i<6&&(u=o,f=s);const p=r-o/2,h=u+p,m=c+p,g=f+p;return[h,m,g].map(R5)};function jB(e,t,n,r){return`rgba(${os(0,255,e).toFixed()}, ${os(0,255,t).toFixed()}, ${os(0,255,n).toFixed()}, ${parseFloat(os(0,1,r).toFixed(3))})`}function zB(e,t){const[n,r,i,o]=Sx(e);return jB(n,r,i,o-t)}function NB(e){const[t,n,r,i]=Sx(e);let o=s=>{const u=os(0,255,s).toString(16);return u.length===1?`0${u}`:u};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}function BB(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Wn=(e,t,n)=>{const r=BB(e,`colors.${t}`,t);try{return NB(r),r}catch{return n??"#000000"}},WB=e=>{const[t,n,r]=Sx(e);return(t*299+n*587+r*114)/1e3},UB=e=>t=>{const n=Wn(t,e);return WB(n)<128?"dark":"light"},HB=e=>t=>UB(e)(t)==="dark",iu=(e,t)=>n=>{const r=Wn(n,e);return zB(r,1-t)};function O5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function sy(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function G1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Rj=typeof WeakMap=="function"?WeakMap:Map;function LE(e,t,n){n=bo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){l0||(l0=!0,n2=r),G1(e,t)},n}function jE(e,t,n){n=bo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){G1(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){G1(e,t),typeof r!="function"&&(da===null?da=new Set([this]):da.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function e5(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rj;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Uj.bind(null,e,t,n),t.then(e,e))}function t5(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function n5(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bo(-1,1),t.tag=2,fa(n,t,1))),n.lanes|=1),e)}var Oj=Io.ReactCurrentOwner,ir=!1;function Vn(e,t,n,r){t.child=e===null?vE(t,null,n,r):tu(t,e.child,n,r)}function r5(e,t,n,r,i){n=n.render;var o=t.ref;return Nl(t,i),r=ex(e,t,n,r,o,i),n=tx(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Eo(e,t,i)):(Mt&&n&&Vb(t),t.flags|=1,Vn(e,t,r,i),t.child)}function i5(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!fx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,zE(e,t,o,r,i)):(e=hh(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:uf,n(s,r)&&e.ref===t.ref)return Eo(e,t,i)}return t.flags|=1,e=ha(o,r),e.ref=t.ref,e.return=t,t.child=e}function zE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(uf(o,r)&&e.ref===t.ref)if(ir=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ir=!0);else return t.lanes=e.lanes,Eo(e,t,i)}return K1(e,t,n,r,i)}function NE(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(_l,br),br|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(_l,br),br|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,kt(_l,br),br|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,kt(_l,br),br|=r;return Vn(e,t,i,n),t.child}function BE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function K1(e,t,n,r,i){var o=ar(n)?ws:Fn.current;return o=Jl(t,o),Nl(t,i),n=ex(e,t,n,r,o,i),r=tx(),e!==null&&!ir?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Eo(e,t,i)):(Mt&&r&&Vb(t),t.flags|=1,Vn(e,t,n,i),t.child)}function o5(e,t,n,r,i){if(ar(n)){var o=!0;Zh(t)}else o=!1;if(Nl(t,i),t.stateNode===null)fh(e,t),hE(t,n,r),H1(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var c=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=ti(f):(f=ar(n)?ws:Fn.current,f=Jl(t,f));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||c!==f)&&X_(t,s,r,f),Zo=!1;var m=t.memoizedState;s.state=m,r0(t,r,s,i),c=t.memoizedState,u!==r||m!==c||or.current||Zo?(typeof p=="function"&&(U1(t,n,p,r),c=t.memoizedState),(u=Zo||Y_(t,n,u,r,m,c,f))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,dE(e,t),u=t.memoizedProps,f=t.type===t.elementType?u:hi(t.type,u),s.props=f,h=t.pendingProps,m=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=ti(c):(c=ar(n)?ws:Fn.current,c=Jl(t,c));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==h||m!==c)&&X_(t,s,r,c),Zo=!1,m=t.memoizedState,s.state=m,r0(t,r,s,i);var x=t.memoizedState;u!==h||m!==x||or.current||Zo?(typeof g=="function"&&(U1(t,n,g,r),x=t.memoizedState),(f=Zo||Y_(t,n,f,r,m,x,c)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=c,r=f):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return q1(e,t,n,r,o,i)}function q1(e,t,n,r,i,o){BE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&U_(t,n,!1),Eo(e,t,o);r=t.stateNode,Oj.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=tu(t,e.child,null,o),t.child=tu(t,null,u,o)):Vn(e,t,u,o),t.memoizedState=r.state,i&&U_(t,n,!0),t.child}function VE(e){var t=e.stateNode;t.pendingContext?W_(e,t.pendingContext,t.pendingContext!==t.context):t.context&&W_(e,t.context,!1),Xb(e,t.containerInfo)}function a5(e,t,n,r,i){return eu(),Ub(i),t.flags|=256,Vn(e,t,n,r),t.child}var Y1={dehydrated:null,treeContext:null,retryLane:0};function X1(e){return{baseLanes:e,cachePool:null,transitions:null}}function WE(e,t,n){var r=t.pendingProps,i=Dt.current,o=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),kt(Dt,i&1),e===null)return V1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=hm(s,r,0,null),e=ls(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=X1(n),t.memoizedState=Y1,e):ix(t,s));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Ij(e,t,s,r,u,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,u=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ha(i,c),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?o=ha(u,o):(o=ls(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?X1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Y1,r}return o=e.child,e=o.sibling,r=ha(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ix(e,t){return t=hm({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ep(e,t,n,r){return r!==null&&Ub(r),tu(t,e.child,null,n),e=ix(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ij(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=sy(Error(Z(422))),Ep(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=hm({mode:"visible",children:r.children},i,0,null),o=ls(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&tu(t,e.child,null,s),t.child.memoizedState=X1(s),t.memoizedState=Y1,o);if(!(t.mode&1))return Ep(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(Z(419)),r=sy(o,r,void 0),Ep(e,t,s,r)}if(u=(s&e.childLanes)!==0,ir||u){if(r=hn,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,To(e,i),xi(r,e,i,-1))}return cx(),r=sy(Error(Z(421))),Ep(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Hj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,xr=ca(i.nextSibling),_r=t,Mt=!0,vi=null,e!==null&&(Yr[Xr++]=ho,Yr[Xr++]=mo,Yr[Xr++]=Ss,ho=e.id,mo=e.overflow,Ss=t),t=ix(t,r.children),t.flags|=4096,t)}function s5(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),W1(e.return,t,n)}function ly(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function UE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Vn(e,t,r.children,n),r=Dt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&s5(e,n,t);else if(e.tag===19)s5(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(kt(Dt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&i0(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ly(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&i0(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ly(t,!0,n,null,o);break;case"together":ly(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Eo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cs|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Z(153));if(t.child!==null){for(e=t.child,n=ha(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ha(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mj(e,t,n){switch(t.tag){case 3:VE(t),eu();break;case 5:gE(t);break;case 1:ar(t.type)&&Zh(t);break;case 4:Xb(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;kt(t0,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(kt(Dt,Dt.current&1),t.flags|=128,null):n&t.child.childLanes?WE(e,t,n):(kt(Dt,Dt.current&1),e=Eo(e,t,n),e!==null?e.sibling:null);kt(Dt,Dt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return UE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),kt(Dt,Dt.current),r)break;return null;case 22:case 23:return t.lanes=0,NE(e,t,n)}return Eo(e,t,n)}var HE,Q1,GE,KE;HE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Q1=function(){};GE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,is(ji.current);var o=null;switch(n){case"input":i=b1(e,i),r=b1(e,r),o=[];break;case"select":i=zt({},i,{value:void 0}),r=zt({},r,{value:void 0}),o=[];break;case"textarea":i=S1(e,i),r=S1(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xh)}C1(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var u=i[f];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(tf.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var c=r[f];if(u=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(c!=null||u!=null))if(f==="style")if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(o=o||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(tf.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&At("scroll",e),o||u===c||(o=[])):(o=o||[]).push(f,c))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};KE=function(e,t,n,r){n!==r&&(t.flags|=4)};function oc(e,t){if(!Mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $j(e,t,n){var r=t.pendingProps;switch(Wb(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(t),null;case 1:return ar(t.type)&&Qh(),Rn(t),null;case 3:return r=t.stateNode,nu(),Ot(or),Ot(Fn),Zb(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,vi!==null&&(o2(vi),vi=null))),Q1(e,t),Rn(t),null;case 5:Qb(t);var i=is(hf.current);if(n=t.type,e!==null&&t.stateNode!=null)GE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Z(166));return Rn(t),null}if(e=is(ji.current),kp(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Mi]=t,r[df]=o,e=(t.mode&1)!==0,n){case"dialog":At("cancel",r),At("close",r);break;case"iframe":case"object":case"embed":At("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Mi]=t,e[df]=r,HE(e,t,!1,!1),t.stateNode=e;e:{switch(s=k1(n,r),n){case"dialog":At("cancel",e),At("close",e),i=r;break;case"iframe":case"object":case"embed":At("load",e),i=r;break;case"video":case"audio":for(i=0;iiu&&(t.flags|=128,r=!0,oc(o,!1),t.lanes=4194304)}else{if(!r)if(e=i0(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Mt)return Rn(t),null}else 2*Yt()-o.renderingStartTime>iu&&n!==1073741824&&(t.flags|=128,r=!0,oc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Yt(),t.sibling=null,n=Dt.current,kt(Dt,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return ux(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?br&1073741824&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(Z(156,t.tag))}function Fj(e,t){switch(Wb(t),t.tag){case 1:return ar(t.type)&&Qh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nu(),Ot(or),Ot(Fn),Zb(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qb(t),null;case 13:if(Ot(Dt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Z(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot(Dt),null;case 4:return nu(),null;case 10:return Kb(t.type._context),null;case 22:case 23:return ux(),null;case 24:return null;default:return null}}var Pp=!1,Mn=!1,Dj=typeof WeakSet=="function"?WeakSet:Set,de=null;function Sl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Vt(e,t,r)}else n.current=null}function Z1(e,t,n){try{n()}catch(r){Vt(e,t,r)}}var l5=!1;function Lj(e,t){if(F1=Kh,e=QT(),Bb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(u=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)m=h,h=g;for(;;){if(h===e)break t;if(m===n&&++f===i&&(u=s),m===o&&++p===r&&(c=s),(g=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=g}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(D1={focusedElem:e,selectionRange:n},Kh=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,T=x.memoizedState,S=t.stateNode,y=S.getSnapshotBeforeUpdate(t.elementType===t.type?b:hi(t.type,b),T);S.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Z(163))}}catch(P){Vt(t,t.return,P)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return x=l5,l5=!1,x}function $c(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Z1(t,n,o)}i=i.next}while(i!==r)}}function dm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function J1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qE(e){var t=e.alternate;t!==null&&(e.alternate=null,qE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mi],delete t[df],delete t[z1],delete t[bj],delete t[xj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function YE(e){return e.tag===5||e.tag===3||e.tag===4}function u5(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function e2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xh));else if(r!==4&&(e=e.child,e!==null))for(e2(e,t,n),e=e.sibling;e!==null;)e2(e,t,n),e=e.sibling}function t2(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(t2(e,t,n),e=e.sibling;e!==null;)t2(e,t,n),e=e.sibling}var Sn=null,mi=!1;function Uo(e,t,n){for(n=n.child;n!==null;)XE(e,t,n),n=n.sibling}function XE(e,t,n){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(im,n)}catch{}switch(n.tag){case 5:Mn||Sl(n,t);case 6:var r=Sn,i=mi;Sn=null,Uo(e,t,n),Sn=r,mi=i,Sn!==null&&(mi?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(mi?(e=Sn,n=n.stateNode,e.nodeType===8?ty(e.parentNode,n):e.nodeType===1&&ty(e,n),sf(e)):ty(Sn,n.stateNode));break;case 4:r=Sn,i=mi,Sn=n.stateNode.containerInfo,mi=!0,Uo(e,t,n),Sn=r,mi=i;break;case 0:case 11:case 14:case 15:if(!Mn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Z1(n,t,s),i=i.next}while(i!==r)}Uo(e,t,n);break;case 1:if(!Mn&&(Sl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Vt(n,t,u)}Uo(e,t,n);break;case 21:Uo(e,t,n);break;case 22:n.mode&1?(Mn=(r=Mn)||n.memoizedState!==null,Uo(e,t,n),Mn=r):Uo(e,t,n);break;default:Uo(e,t,n)}}function c5(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dj),t.forEach(function(r){var i=Gj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fi(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Yt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zj(r/1960))-r,10e?16:e,ia===null)var r=!1;else{if(e=ia,ia=null,u0=0,tt&6)throw Error(Z(331));var i=tt;for(tt|=4,de=e.current;de!==null;){var o=de,s=o.child;if(de.flags&16){var u=o.deletions;if(u!==null){for(var c=0;cYt()-sx?ss(e,0):ax|=n),sr(e,t)}function iP(e,t){t===0&&(e.mode&1?(t=bp,bp<<=1,!(bp&130023424)&&(bp=4194304)):t=1);var n=Un();e=To(e,t),e!==null&&(Lf(e,t,n),sr(e,n))}function Hj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iP(e,n)}function Gj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Z(314))}r!==null&&r.delete(t),iP(e,n)}var oP;oP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||or.current)ir=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ir=!1,Mj(e,t,n);ir=!!(e.flags&131072)}else ir=!1,Mt&&t.flags&1048576&&lE(t,e0,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fh(e,t),e=t.pendingProps;var i=Jl(t,Fn.current);Nl(t,n),i=ex(null,t,r,e,i,n);var o=tx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ar(r)?(o=!0,Zh(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yb(t),i.updater=cm,t.stateNode=i,i._reactInternals=t,H1(t,r,e,n),t=q1(null,t,r,!0,o,n)):(t.tag=0,Mt&&o&&Vb(t),Vn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qj(r),e=hi(r,e),i){case 0:t=K1(null,t,r,e,n);break e;case 1:t=o5(null,t,r,e,n);break e;case 11:t=r5(null,t,r,e,n);break e;case 14:t=i5(null,t,r,hi(r.type,e),n);break e}throw Error(Z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),K1(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),o5(e,t,r,i,n);case 3:e:{if(VE(t),e===null)throw Error(Z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dE(e,t),r0(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ru(Error(Z(423)),t),t=a5(e,t,r,n,i);break e}else if(r!==i){i=ru(Error(Z(424)),t),t=a5(e,t,r,n,i);break e}else for(xr=ca(t.stateNode.containerInfo.firstChild),_r=t,Mt=!0,vi=null,n=vE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eu(),r===i){t=Eo(e,t,n);break e}Vn(e,t,r,n)}t=t.child}return t;case 5:return gE(t),e===null&&V1(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,L1(r,i)?s=null:o!==null&&L1(r,o)&&(t.flags|=32),BE(e,t),Vn(e,t,s,n),t.child;case 6:return e===null&&V1(t),null;case 13:return WE(e,t,n);case 4:return Xb(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tu(t,null,r,n):Vn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),r5(e,t,r,i,n);case 7:return Vn(e,t,t.pendingProps,n),t.child;case 8:return Vn(e,t,t.pendingProps.children,n),t.child;case 12:return Vn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,kt(t0,r._currentValue),r._currentValue=s,o!==null)if(wi(o.value,s)){if(o.children===i.children&&!or.current){t=Eo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){s=o.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=bo(-1,n&-n),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),W1(o.return,n,t),u.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Z(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),W1(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Vn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Nl(t,n),i=ti(i),r=r(i),t.flags|=1,Vn(e,t,r,n),t.child;case 14:return r=t.type,i=hi(r,t.pendingProps),i=hi(r.type,i),i5(e,t,r,i,n);case 15:return zE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hi(r,i),fh(e,t),t.tag=1,ar(r)?(e=!0,Zh(t)):e=!1,Nl(t,n),hE(t,r,i),H1(t,r,i,n),q1(null,t,r,!0,e,n);case 19:return UE(e,t,n);case 22:return NE(e,t,n)}throw Error(Z(156,t.tag))};function aP(e,t){return IT(e,t)}function Kj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qr(e,t,n,r){return new Kj(e,t,n,r)}function fx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qj(e){if(typeof e=="function")return fx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Rb)return 11;if(e===Ob)return 14}return 2}function ha(e,t){var n=e.alternate;return n===null?(n=Qr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")fx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case pl:return ls(n.children,i,o,t);case Ab:s=8,i|=8;break;case m1:return e=Qr(12,n,t,i|2),e.elementType=m1,e.lanes=o,e;case v1:return e=Qr(13,n,t,i),e.elementType=v1,e.lanes=o,e;case g1:return e=Qr(19,n,t,i),e.elementType=g1,e.lanes=o,e;case mT:return hm(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pT:s=10;break e;case hT:s=9;break e;case Rb:s=11;break e;case Ob:s=14;break e;case Qo:s=16,r=null;break e}throw Error(Z(130,e==null?e:typeof e,""))}return t=Qr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ls(e,t,n,r){return e=Qr(7,e,r,t),e.lanes=n,e}function hm(e,t,n,r){return e=Qr(22,e,r,t),e.elementType=mT,e.lanes=n,e.stateNode={isHidden:!1},e}function uy(e,t,n){return e=Qr(6,e,null,t),e.lanes=n,e}function cy(e,t,n){return t=Qr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yj(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ug(0),this.expirationTimes=Ug(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ug(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dx(e,t,n,r,i,o,s,u,c){return e=new Yj(e,t,n,u,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yb(o),e}function Xj(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cP)}catch(e){console.error(e)}}cP(),lT.exports=Mr;var vx=lT.exports,[fP,tz]=Jt({strict:!1,name:"PortalContext"}),gx="chakra-portal",nz=".chakra-portal",rz=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),iz=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=_.useState(null),o=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const u=tz(),c=QD();aa(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;o.current=p.createElement("div"),o.current.className=gx,h.appendChild(o.current),s({});const m=o.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c!=null&&c.zIndex?w.jsx(rz,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return o.current?vx.createPortal(w.jsx(fP,{value:o.current,children:f}),o.current):w.jsx("span",{ref:p=>{p&&i(p)}})},oz=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,o=i??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=gx),c},[i]),[,u]=_.useState({});return aa(()=>u({}),[]),aa(()=>{if(!(!s||!o))return o.appendChild(s),()=>{o.removeChild(s)}},[s,o]),o&&s?vx.createPortal(w.jsx(fP,{value:r?s:null,children:t}),s):null};function xu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w.jsx(oz,{containerRef:n,...r}):w.jsx(iz,{...r})}xu.className=gx;xu.selector=nz;xu.displayName="Portal";function bm(){const e=_.useContext(ef);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var yx=_.createContext({});yx.displayName="ColorModeContext";function Fr(){const e=_.useContext(yx);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Op={light:"chakra-ui-light",dark:"chakra-ui-dark"};function az(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const i=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,i==null||i()},setClassName(r){document.body.classList.add(r?Op.dark:Op.light),document.body.classList.remove(r?Op.light:Op.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),o=s=>{r(s.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(o):i.addEventListener("change",o),()=>{typeof i.removeListener=="function"?i.removeListener(o):i.removeEventListener("change",o)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var sz="chakra-ui-color-mode";function lz(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var uz=lz(sz),y5=()=>{};function b5(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function dP(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:s=uz}=e,u=i==="dark"?"dark":"light",[c,f]=_.useState(()=>b5(s,u)),[p,h]=_.useState(()=>b5(s)),{getSystemTheme:m,setClassName:g,setDataset:x,addListener:b}=_.useMemo(()=>az({preventTransition:o}),[o]),T=i==="system"&&!c?p:c,S=_.useCallback(P=>{const O=P==="system"?m():P;f(O),g(O==="dark"),x(O),s.set(O)},[s,m,g,x]);aa(()=>{i==="system"&&h(m())},[]),_.useEffect(()=>{const P=s.get();if(P){S(P);return}if(i==="system"){S("system");return}S(u)},[s,u,i,S]);const y=_.useCallback(()=>{S(T==="dark"?"light":"dark")},[T,S]);_.useEffect(()=>{if(r)return b(S)},[r,b,S]);const C=_.useMemo(()=>({colorMode:t??T,toggleColorMode:t?y5:y,setColorMode:t?y5:S,forced:t!==void 0}),[T,y,S,t]);return w.jsx(yx.Provider,{value:C,children:n})}dP.displayName="ColorModeProvider";function cz(){const e=Fr(),t=bm();return{...e,theme:t}}var $e=(...e)=>e.filter(Boolean).join(" ");function Cr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vo(e,...t){return fz(e)?e(...t):e}var fz=e=>typeof e=="function",qe=e=>e?"":void 0,Vl=e=>e?!0:void 0;function We(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function pP(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var d0={exports:{}};d0.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,o=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",g="[object Function]",x="[object GeneratorFunction]",b="[object Map]",T="[object Number]",S="[object Null]",y="[object Object]",C="[object Proxy]",P="[object RegExp]",O="[object Set]",$="[object String]",I="[object Undefined]",F="[object WeakMap]",V="[object ArrayBuffer]",B="[object DataView]",X="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",ge="[object Int16Array]",Ae="[object Int32Array]",se="[object Uint8Array]",G="[object Uint8ClampedArray]",W="[object Uint16Array]",J="[object Uint32Array]",te=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,ae={};ae[X]=ae[pe]=ae[he]=ae[ge]=ae[Ae]=ae[se]=ae[G]=ae[W]=ae[J]=!0,ae[u]=ae[c]=ae[V]=ae[p]=ae[B]=ae[h]=ae[m]=ae[g]=ae[b]=ae[T]=ae[y]=ae[P]=ae[O]=ae[$]=ae[F]=!1;var ce=typeof co=="object"&&co&&co.Object===Object&&co,le=typeof self=="object"&&self&&self.Object===Object&&self,Te=ce||le||Function("return this")(),et=t&&!t.nodeType&&t,Ue=et&&!0&&e&&!e.nodeType&&e,ft=Ue&&Ue.exports===et,_t=ft&&ce.process,Xe=function(){try{var R=Ue&&Ue.require&&Ue.require("util").types;return R||_t&&_t.binding&&_t.binding("util")}catch{}}(),Re=Xe&&Xe.isTypedArray;function bt(R,L,U){switch(U.length){case 0:return R.call(L);case 1:return R.call(L,U[0]);case 2:return R.call(L,U[0],U[1]);case 3:return R.call(L,U[0],U[1],U[2])}return R.apply(L,U)}function Oe(R,L){for(var U=-1,ue=Array(R);++U-1}function fv(R,L){var U=this.__data__,ue=Yi(U,R);return ue<0?(++this.size,U.push([R,L])):U[ue][1]=L,this}oi.prototype.clear=ku,oi.prototype.delete=uv,oi.prototype.get=Tu,oi.prototype.has=cv,oi.prototype.set=fv;function Mo(R){var L=-1,U=R==null?0:R.length;for(this.clear();++L1?U[He-1]:void 0,De=He>2?U[2]:void 0;for(pt=R.length>3&&typeof pt=="function"?(He--,pt):void 0,De&&gd(U[0],U[1],De)&&(pt=He<3?void 0:pt,He=1),L=Object(L);++ue-1&&R%1==0&&R0){if(++L>=i)return arguments[0]}else L=0;return R.apply(void 0,arguments)}}function Sd(R){if(R!=null){try{return Ut.call(R)}catch{}try{return R+""}catch{}}return""}function Bs(R,L){return R===L||R!==R&&L!==L}var Mu=Pu(function(){return arguments}())?Pu:function(R){return La(R)&&$t.call(R,"callee")&&!Xn.call(R,"callee")},$u=Array.isArray;function Vs(R){return R!=null&&Cd(R.length)&&!Fu(R)}function Rv(R){return La(R)&&Vs(R)}var _d=_u||Mv;function Fu(R){if(!ai(R))return!1;var L=Ds(R);return L==g||L==x||L==f||L==C}function Cd(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=s}function ai(R){var L=typeof R;return R!=null&&(L=="object"||L=="function")}function La(R){return R!=null&&typeof R=="object"}function Ov(R){if(!La(R)||Ds(R)!=y)return!1;var L=re(R);if(L===null)return!0;var U=$t.call(L,"constructor")&&L.constructor;return typeof U=="function"&&U instanceof U&&Ut.call(U)==_i}var kd=Re?me(Re):ld;function Iv(R){return pd(R,Td(R))}function Td(R){return Vs(R)?Sv(R,!0):kv(R)}var wt=Ls(function(R,L,U,ue){ud(R,L,U,ue)});function yt(R){return function(){return R}}function Ed(R){return R}function Mv(){return!1}e.exports=wt})(d0,d0.exports);var dz=d0.exports;const Zr=hb(dz);var pz=e=>/!(important)?$/.test(e),x5=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,hz=(e,t)=>n=>{const r=String(t),i=pz(r),o=x5(r),s=e?`${e}.${o}`:o;let u=Cr(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=x5(u),i?`${u} !important`:u};function bx(e){const{scale:t,transform:n,compose:r}=e;return(o,s)=>{var u;const c=hz(t,o)(s);let f=(u=n==null?void 0:n(c,s))!=null?u:c;return r&&(f=r(f,s)),f}}var Ip=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Hr(e,t){return n=>{const r={property:n,scale:e};return r.transform=bx({scale:e,transform:t}),r}}var mz=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function vz(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:mz(t),transform:n?bx({scale:n,compose:r}):r}}var hP=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function gz(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...hP].join(" ")}function yz(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...hP].join(" ")}var bz={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},xz={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function wz(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Sz={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},a2={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},_z=new Set(Object.values(a2)),s2=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Cz=e=>e.trim();function kz(e,t){if(e==null||s2.has(e))return e;if(!(l2(e)||s2.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),o=i==null?void 0:i[1],s=i==null?void 0:i[2];if(!o||!s)return e;const u=o.includes("-gradient")?o:`${o}-gradient`,[c,...f]=s.split(",").map(Cz).filter(Boolean);if((f==null?void 0:f.length)===0)return e;const p=c in a2?a2[c]:c;f.unshift(p);const h=f.map(m=>{if(_z.has(m))return m;const g=m.indexOf(" "),[x,b]=g!==-1?[m.substr(0,g),m.substr(g+1)]:[m],T=l2(b)?b:b&&b.split(" "),S=`colors.${x}`,y=S in t.__cssMap?t.__cssMap[S].varRef:x;return T?[y,...Array.isArray(T)?T:[T]].join(" "):y});return`${u}(${h.join(", ")})`}var l2=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Tz=(e,t)=>kz(e,t??{});function Ez(e){return/^var\(--.+\)$/.test(e)}var Pz=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Pi=e=>t=>`${e}(${t})`,Je={filter(e){return e!=="auto"?e:bz},backdropFilter(e){return e!=="auto"?e:xz},ring(e){return wz(Je.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?gz():e==="auto-gpu"?yz():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Pz(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Ez(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Tz,blur:Pi("blur"),opacity:Pi("opacity"),brightness:Pi("brightness"),contrast:Pi("contrast"),dropShadow:Pi("drop-shadow"),grayscale:Pi("grayscale"),hueRotate:e=>Pi("hue-rotate")(Je.degree(e)),invert:Pi("invert"),saturate:Pi("saturate"),sepia:Pi("sepia"),bgImage(e){return e==null||l2(e)||s2.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=Sz[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},j={borderWidths:Hr("borderWidths"),borderStyles:Hr("borderStyles"),colors:Hr("colors"),borders:Hr("borders"),gradients:Hr("gradients",Je.gradient),radii:Hr("radii",Je.px),space:Hr("space",Ip(Je.vh,Je.px)),spaceT:Hr("space",Ip(Je.vh,Je.px)),degreeT(e){return{property:e,transform:Je.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:bx({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Hr("sizes",Ip(Je.vh,Je.px)),sizesT:Hr("sizes",Ip(Je.vh,Je.fraction)),shadows:Hr("shadows"),logical:vz,blur:Hr("blur",Je.blur)},mh={background:j.colors("background"),backgroundColor:j.colors("backgroundColor"),backgroundImage:j.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Je.bgClip},bgSize:j.prop("backgroundSize"),bgPosition:j.prop("backgroundPosition"),bg:j.colors("background"),bgColor:j.colors("backgroundColor"),bgPos:j.prop("backgroundPosition"),bgRepeat:j.prop("backgroundRepeat"),bgAttachment:j.prop("backgroundAttachment"),bgGradient:j.gradients("backgroundImage"),bgClip:{transform:Je.bgClip}};Object.assign(mh,{bgImage:mh.backgroundImage,bgImg:mh.backgroundImage});var it={border:j.borders("border"),borderWidth:j.borderWidths("borderWidth"),borderStyle:j.borderStyles("borderStyle"),borderColor:j.colors("borderColor"),borderRadius:j.radii("borderRadius"),borderTop:j.borders("borderTop"),borderBlockStart:j.borders("borderBlockStart"),borderTopLeftRadius:j.radii("borderTopLeftRadius"),borderStartStartRadius:j.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:j.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:j.radii("borderTopRightRadius"),borderStartEndRadius:j.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:j.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:j.borders("borderRight"),borderInlineEnd:j.borders("borderInlineEnd"),borderBottom:j.borders("borderBottom"),borderBlockEnd:j.borders("borderBlockEnd"),borderBottomLeftRadius:j.radii("borderBottomLeftRadius"),borderBottomRightRadius:j.radii("borderBottomRightRadius"),borderLeft:j.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:j.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:j.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:j.borders(["borderLeft","borderRight"]),borderInline:j.borders("borderInline"),borderY:j.borders(["borderTop","borderBottom"]),borderBlock:j.borders("borderBlock"),borderTopWidth:j.borderWidths("borderTopWidth"),borderBlockStartWidth:j.borderWidths("borderBlockStartWidth"),borderTopColor:j.colors("borderTopColor"),borderBlockStartColor:j.colors("borderBlockStartColor"),borderTopStyle:j.borderStyles("borderTopStyle"),borderBlockStartStyle:j.borderStyles("borderBlockStartStyle"),borderBottomWidth:j.borderWidths("borderBottomWidth"),borderBlockEndWidth:j.borderWidths("borderBlockEndWidth"),borderBottomColor:j.colors("borderBottomColor"),borderBlockEndColor:j.colors("borderBlockEndColor"),borderBottomStyle:j.borderStyles("borderBottomStyle"),borderBlockEndStyle:j.borderStyles("borderBlockEndStyle"),borderLeftWidth:j.borderWidths("borderLeftWidth"),borderInlineStartWidth:j.borderWidths("borderInlineStartWidth"),borderLeftColor:j.colors("borderLeftColor"),borderInlineStartColor:j.colors("borderInlineStartColor"),borderLeftStyle:j.borderStyles("borderLeftStyle"),borderInlineStartStyle:j.borderStyles("borderInlineStartStyle"),borderRightWidth:j.borderWidths("borderRightWidth"),borderInlineEndWidth:j.borderWidths("borderInlineEndWidth"),borderRightColor:j.colors("borderRightColor"),borderInlineEndColor:j.colors("borderInlineEndColor"),borderRightStyle:j.borderStyles("borderRightStyle"),borderInlineEndStyle:j.borderStyles("borderInlineEndStyle"),borderTopRadius:j.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:j.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:j.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:j.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(it,{rounded:it.borderRadius,roundedTop:it.borderTopRadius,roundedTopLeft:it.borderTopLeftRadius,roundedTopRight:it.borderTopRightRadius,roundedTopStart:it.borderStartStartRadius,roundedTopEnd:it.borderStartEndRadius,roundedBottom:it.borderBottomRadius,roundedBottomLeft:it.borderBottomLeftRadius,roundedBottomRight:it.borderBottomRightRadius,roundedBottomStart:it.borderEndStartRadius,roundedBottomEnd:it.borderEndEndRadius,roundedLeft:it.borderLeftRadius,roundedRight:it.borderRightRadius,roundedStart:it.borderInlineStartRadius,roundedEnd:it.borderInlineEndRadius,borderStart:it.borderInlineStart,borderEnd:it.borderInlineEnd,borderTopStartRadius:it.borderStartStartRadius,borderTopEndRadius:it.borderStartEndRadius,borderBottomStartRadius:it.borderEndStartRadius,borderBottomEndRadius:it.borderEndEndRadius,borderStartRadius:it.borderInlineStartRadius,borderEndRadius:it.borderInlineEndRadius,borderStartWidth:it.borderInlineStartWidth,borderEndWidth:it.borderInlineEndWidth,borderStartColor:it.borderInlineStartColor,borderEndColor:it.borderInlineEndColor,borderStartStyle:it.borderInlineStartStyle,borderEndStyle:it.borderInlineEndStyle});var Az={color:j.colors("color"),textColor:j.colors("color"),fill:j.colors("fill"),stroke:j.colors("stroke")},u2={boxShadow:j.shadows("boxShadow"),mixBlendMode:!0,blendMode:j.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:j.prop("backgroundBlendMode"),opacity:!0};Object.assign(u2,{shadow:u2.boxShadow});var Rz={filter:{transform:Je.filter},blur:j.blur("--chakra-blur"),brightness:j.propT("--chakra-brightness",Je.brightness),contrast:j.propT("--chakra-contrast",Je.contrast),hueRotate:j.propT("--chakra-hue-rotate",Je.hueRotate),invert:j.propT("--chakra-invert",Je.invert),saturate:j.propT("--chakra-saturate",Je.saturate),dropShadow:j.propT("--chakra-drop-shadow",Je.dropShadow),backdropFilter:{transform:Je.backdropFilter},backdropBlur:j.blur("--chakra-backdrop-blur"),backdropBrightness:j.propT("--chakra-backdrop-brightness",Je.brightness),backdropContrast:j.propT("--chakra-backdrop-contrast",Je.contrast),backdropHueRotate:j.propT("--chakra-backdrop-hue-rotate",Je.hueRotate),backdropInvert:j.propT("--chakra-backdrop-invert",Je.invert),backdropSaturate:j.propT("--chakra-backdrop-saturate",Je.saturate)},p0={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Je.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:j.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:j.space("gap"),rowGap:j.space("rowGap"),columnGap:j.space("columnGap")};Object.assign(p0,{flexDir:p0.flexDirection});var mP={gridGap:j.space("gridGap"),gridColumnGap:j.space("gridColumnGap"),gridRowGap:j.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Oz={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Je.outline},outlineOffset:!0,outlineColor:j.colors("outlineColor")},Kr={width:j.sizesT("width"),inlineSize:j.sizesT("inlineSize"),height:j.sizes("height"),blockSize:j.sizes("blockSize"),boxSize:j.sizes(["width","height"]),minWidth:j.sizes("minWidth"),minInlineSize:j.sizes("minInlineSize"),minHeight:j.sizes("minHeight"),minBlockSize:j.sizes("minBlockSize"),maxWidth:j.sizes("maxWidth"),maxInlineSize:j.sizes("maxInlineSize"),maxHeight:j.sizes("maxHeight"),maxBlockSize:j.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:j.propT("float",Je.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Kr,{w:Kr.width,h:Kr.height,minW:Kr.minWidth,maxW:Kr.maxWidth,minH:Kr.minHeight,maxH:Kr.maxHeight,overscroll:Kr.overscrollBehavior,overscrollX:Kr.overscrollBehaviorX,overscrollY:Kr.overscrollBehaviorY});var Iz={listStyleType:!0,listStylePosition:!0,listStylePos:j.prop("listStylePosition"),listStyleImage:!0,listStyleImg:j.prop("listStyleImage")};function Mz(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,o,s);return u.set(i,c),c}},Fz=$z(Mz),Dz={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Lz={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},fy=(e,t,n)=>{const r={},i=Fz(e,t,{});for(const o in i)o in n&&n[o]!=null||(r[o]=i[o]);return r},jz={srOnly:{transform(e){return e===!0?Dz:e==="focusable"?Lz:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>fy(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>fy(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>fy(t,e,n)}},Lc={position:!0,pos:j.prop("position"),zIndex:j.prop("zIndex","zIndices"),inset:j.spaceT("inset"),insetX:j.spaceT(["left","right"]),insetInline:j.spaceT("insetInline"),insetY:j.spaceT(["top","bottom"]),insetBlock:j.spaceT("insetBlock"),top:j.spaceT("top"),insetBlockStart:j.spaceT("insetBlockStart"),bottom:j.spaceT("bottom"),insetBlockEnd:j.spaceT("insetBlockEnd"),left:j.spaceT("left"),insetInlineStart:j.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:j.spaceT("right"),insetInlineEnd:j.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Lc,{insetStart:Lc.insetInlineStart,insetEnd:Lc.insetInlineEnd});var zz={ring:{transform:Je.ring},ringColor:j.colors("--chakra-ring-color"),ringOffset:j.prop("--chakra-ring-offset-width"),ringOffsetColor:j.colors("--chakra-ring-offset-color"),ringInset:j.prop("--chakra-ring-inset")},Rt={margin:j.spaceT("margin"),marginTop:j.spaceT("marginTop"),marginBlockStart:j.spaceT("marginBlockStart"),marginRight:j.spaceT("marginRight"),marginInlineEnd:j.spaceT("marginInlineEnd"),marginBottom:j.spaceT("marginBottom"),marginBlockEnd:j.spaceT("marginBlockEnd"),marginLeft:j.spaceT("marginLeft"),marginInlineStart:j.spaceT("marginInlineStart"),marginX:j.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:j.spaceT("marginInline"),marginY:j.spaceT(["marginTop","marginBottom"]),marginBlock:j.spaceT("marginBlock"),padding:j.space("padding"),paddingTop:j.space("paddingTop"),paddingBlockStart:j.space("paddingBlockStart"),paddingRight:j.space("paddingRight"),paddingBottom:j.space("paddingBottom"),paddingBlockEnd:j.space("paddingBlockEnd"),paddingLeft:j.space("paddingLeft"),paddingInlineStart:j.space("paddingInlineStart"),paddingInlineEnd:j.space("paddingInlineEnd"),paddingX:j.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:j.space("paddingInline"),paddingY:j.space(["paddingTop","paddingBottom"]),paddingBlock:j.space("paddingBlock")};Object.assign(Rt,{m:Rt.margin,mt:Rt.marginTop,mr:Rt.marginRight,me:Rt.marginInlineEnd,marginEnd:Rt.marginInlineEnd,mb:Rt.marginBottom,ml:Rt.marginLeft,ms:Rt.marginInlineStart,marginStart:Rt.marginInlineStart,mx:Rt.marginX,my:Rt.marginY,p:Rt.padding,pt:Rt.paddingTop,py:Rt.paddingY,px:Rt.paddingX,pb:Rt.paddingBottom,pl:Rt.paddingLeft,ps:Rt.paddingInlineStart,paddingStart:Rt.paddingInlineStart,pr:Rt.paddingRight,pe:Rt.paddingInlineEnd,paddingEnd:Rt.paddingInlineEnd});var Nz={textDecorationColor:j.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:j.shadows("textShadow")},Bz={clipPath:!0,transform:j.propT("transform",Je.transform),transformOrigin:!0,translateX:j.spaceT("--chakra-translate-x"),translateY:j.spaceT("--chakra-translate-y"),skewX:j.degreeT("--chakra-skew-x"),skewY:j.degreeT("--chakra-skew-y"),scaleX:j.prop("--chakra-scale-x"),scaleY:j.prop("--chakra-scale-y"),scale:j.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:j.degreeT("--chakra-rotate")},Vz={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:j.prop("transitionDuration","transition.duration"),transitionProperty:j.prop("transitionProperty","transition.property"),transitionTimingFunction:j.prop("transitionTimingFunction","transition.easing")},Wz={fontFamily:j.prop("fontFamily","fonts"),fontSize:j.prop("fontSize","fontSizes",Je.px),fontWeight:j.prop("fontWeight","fontWeights"),lineHeight:j.prop("lineHeight","lineHeights"),letterSpacing:j.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},Uz={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:j.spaceT("scrollMargin"),scrollMarginTop:j.spaceT("scrollMarginTop"),scrollMarginBottom:j.spaceT("scrollMarginBottom"),scrollMarginLeft:j.spaceT("scrollMarginLeft"),scrollMarginRight:j.spaceT("scrollMarginRight"),scrollMarginX:j.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:j.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:j.spaceT("scrollPadding"),scrollPaddingTop:j.spaceT("scrollPaddingTop"),scrollPaddingBottom:j.spaceT("scrollPaddingBottom"),scrollPaddingLeft:j.spaceT("scrollPaddingLeft"),scrollPaddingRight:j.spaceT("scrollPaddingRight"),scrollPaddingX:j.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:j.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function vP(e){return Cr(e)&&e.reference?e.reference:String(e)}var xm=(e,...t)=>t.map(vP).join(` ${e} `).replace(/calc/g,""),w5=(...e)=>`calc(${xm("+",...e)})`,S5=(...e)=>`calc(${xm("-",...e)})`,c2=(...e)=>`calc(${xm("*",...e)})`,_5=(...e)=>`calc(${xm("/",...e)})`,C5=e=>{const t=vP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:c2(t,-1)},es=Object.assign(e=>({add:(...t)=>es(w5(e,...t)),subtract:(...t)=>es(S5(e,...t)),multiply:(...t)=>es(c2(e,...t)),divide:(...t)=>es(_5(e,...t)),negate:()=>es(C5(e)),toString:()=>e.toString()}),{add:w5,subtract:S5,multiply:c2,divide:_5,negate:C5});function Hz(e,t="-"){return e.replace(/\s+/g,t)}function Gz(e){const t=Hz(e.toString());return qz(Kz(t))}function Kz(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function qz(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function Yz(e,t=""){return[t,e].filter(Boolean).join("-")}function Xz(e,t){return`var(${e}${t?`, ${t}`:""})`}function Qz(e,t=""){return Gz(`--${Yz(e,t)}`)}function Se(e,t,n){const r=Qz(e,n);return{variable:r,reference:Xz(r,t)}}function Zz(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,o]=r;n[i]=Se(`${e}-${i}`,o);continue}n[r]=Se(`${e}-${r}`)}return n}function Jz(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function eN(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function f2(e){if(e==null)return e;const{unitless:t}=eN(e);return t||typeof e=="number"?`${e}px`:e}var gP=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,xx=e=>Object.fromEntries(Object.entries(e).sort(gP));function k5(e){const t=xx(e);return Object.assign(Object.values(t),t)}function tN(e){const t=Object.keys(xx(e));return new Set(t)}function T5(e){var t;if(!e)return e;e=(t=f2(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function bc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${f2(e)})`),t&&n.push("and",`(max-width: ${f2(t)})`),n.join(" ")}function nN(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=k5(e),r=Object.entries(e).sort(gP).map(([s,u],c,f)=>{var p;let[,h]=(p=f[c+1])!=null?p:[];return h=parseFloat(h)>0?T5(h):void 0,{_minW:T5(u),breakpoint:s,minW:u,maxW:h,maxWQuery:bc(null,h),minWQuery:bc(u),minMaxQuery:bc(u,h)}}),i=tN(e),o=Array.from(i.values());return{keys:i,normalized:n,isResponsive(s){const u=Object.keys(s);return u.length>0&&u.every(c=>i.has(c))},asObject:xx(e),asArray:k5(e),details:r,get(s){return r.find(u=>u.breakpoint===s)},media:[null,...n.map(s=>bc(s)).slice(1)],toArrayValue(s){if(!Cr(s))throw new Error("toArrayValue: value must be an object");const u=o.map(c=>{var f;return(f=s[c])!=null?f:null});for(;Jz(u)===null;)u.pop();return u},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((u,c,f)=>{const p=o[f];return p!=null&&c!=null&&(u[p]=c),u},{})}}}var xn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ho=e=>yP(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ao=e=>yP(t=>e(t,"~ &"),"[data-peer]",".peer"),yP=(e,...t)=>t.map(e).join(", "),wm={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ho(xn.hover),_peerHover:ao(xn.hover),_groupFocus:Ho(xn.focus),_peerFocus:ao(xn.focus),_groupFocusVisible:Ho(xn.focusVisible),_peerFocusVisible:ao(xn.focusVisible),_groupActive:Ho(xn.active),_peerActive:ao(xn.active),_groupDisabled:Ho(xn.disabled),_peerDisabled:ao(xn.disabled),_groupInvalid:Ho(xn.invalid),_peerInvalid:ao(xn.invalid),_groupChecked:Ho(xn.checked),_peerChecked:ao(xn.checked),_groupFocusWithin:Ho(xn.focusWithin),_peerFocusWithin:ao(xn.focusWithin),_peerPlaceholderShown:ao(xn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},bP=Object.keys(wm);function E5(e,t){return Se(String(e).replace(/\./g,"-"),void 0,t)}function rN(e,t){let n={};const r={};for(const[i,o]of Object.entries(e)){const{isSemantic:s,value:u}=o,{variable:c,reference:f}=E5(i,t==null?void 0:t.cssVarPrefix);if(!s){if(i.startsWith("space")){const m=i.split("."),[g,...x]=m,b=`${g}.-${x.join(".")}`,T=es.negate(u),S=es.negate(f);r[b]={value:T,var:c,varRef:S}}n[c]=u,r[i]={value:u,var:c,varRef:f};continue}const p=m=>{const x=[String(i).split(".")[0],m].join(".");if(!e[x])return m;const{reference:T}=E5(x,t==null?void 0:t.cssVarPrefix);return T},h=Cr(u)?u:{default:u};n=Zr(n,Object.entries(h).reduce((m,[g,x])=>{var b,T;if(!x)return m;const S=p(`${x}`);if(g==="default")return m[c]=S,m;const y=(T=(b=wm)==null?void 0:b[g])!=null?T:g;return m[y]={[c]:S},m},{})),r[i]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function iN(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function oN(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function aN(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function P5(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,u=[]){var c;if(aN(s)||Array.isArray(s)){const f={};for(const[p,h]of Object.entries(s)){const m=(c=i==null?void 0:i(p))!=null?c:p,g=[...u,m];if(r!=null&&r(s,g))return t(s,u);f[m]=o(h,g)}return f}return t(s,u)}return o(e)}var sN=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function lN(e){return oN(e,sN)}function uN(e){return e.semanticTokens}function cN(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var fN=e=>bP.includes(e)||e==="default";function dN({tokens:e,semanticTokens:t}){const n={};return P5(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),P5(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(fN)}),n}function pN(e){var t;const n=cN(e),r=lN(n),i=uN(n),o=dN({tokens:r,semanticTokens:i}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=rN(o,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:nN(n.breakpoints)}),n}var wx=Zr({},mh,it,Az,p0,Kr,Rz,zz,Oz,mP,jz,Lc,u2,Rt,Uz,Wz,Nz,Bz,Iz,Vz);Object.assign({},Rt,Kr,p0,mP,Lc);var hN=[...Object.keys(wx),...bP],mN={...wx,...wm},vN=e=>e in mN,gN=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,o={};for(const s in e){let u=vo(e[s],t);if(u==null)continue;if(u=Cr(u)&&n(u)?r(u):u,!Array.isArray(u)){o[s]=u;continue}const c=u.slice(0,i.length).length;for(let f=0;fe.startsWith("--")&&typeof t=="string"&&!bN(t),wN=(e,t)=>{var n,r;if(t==null)return t;const i=c=>{var f,p;return(p=(f=e.__cssMap)==null?void 0:f[c])==null?void 0:p.varRef},o=c=>{var f;return(f=i(c))!=null?f:c},[s,u]=yN(t);return t=(r=(n=i(s))!=null?n:o(u))!=null?r:o(t),t};function SN(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(o,s=!1)=>{var u,c,f;const p=vo(o,r),h=gN(p)(r);let m={};for(let g in h){const x=h[g];let b=vo(x,r);g in n&&(g=n[g]),xN(g,b)&&(b=wN(r,b));let T=t[g];if(T===!0&&(T={property:g}),Cr(b)){m[g]=(u=m[g])!=null?u:{},m[g]=Zr({},m[g],i(b,!0));continue}let S=(f=(c=T==null?void 0:T.transform)==null?void 0:c.call(T,b,r,p))!=null?f:b;S=T!=null&&T.processResult?i(S,!0):S;const y=vo(T==null?void 0:T.property,r);if(!s&&(T!=null&&T.static)){const C=vo(T.static,r);m=Zr({},m,C)}if(y&&Array.isArray(y)){for(const C of y)m[C]=S;continue}if(y){y==="&"&&Cr(S)?m=Zr({},m,S):m[y]=S;continue}if(Cr(S)){m=Zr({},m,S);continue}m[g]=S}return m};return i}var xP=e=>t=>SN({theme:t,pseudos:wm,configs:wx})(e);function Et(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function _N(e,t){if(Array.isArray(e))return e;if(Cr(e))return t(e);if(e!=null)return[e]}function CN(e,t){for(let n=t+1;n{Zr(f,{[C]:m?y[C]:{[S]:y[C]}})});continue}if(!g){m?Zr(f,y):f[S]=y;continue}f[S]=y}}return f}}function TN(e){return t=>{var n;const{variant:r,size:i,theme:o}=t,s=kN(o);return Zr({},vo((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",i,t),s(e,"variants",r,t))}}function EN(e,t,n){var r,i,o;return(o=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?o:n}function gn(e){return iN(e,["styleConfig","size","variant","colorScheme"])}var PN=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function AN(e){return Cr(e)?PN.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var RN={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},ON={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},IN={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},MN={property:RN,easing:ON,duration:IN},$N=MN,FN={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},DN=FN,LN={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},jN=LN,zN={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},NN=zN,BN={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},VN=BN,WN={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},UN=WN,HN={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},GN=HN,KN={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},qN=KN,YN={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},wP=YN,SP={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},XN={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},QN={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},ZN={...SP,...XN,container:QN},_P=ZN,JN={breakpoints:NN,zIndices:DN,radii:UN,blur:qN,colors:VN,...wP,sizes:_P,shadows:GN,space:SP,borders:jN,transition:$N},{defineMultiStyleConfig:eB,definePartsStyle:xc}=Et(["stepper","step","title","description","indicator","separator","icon","number"]),fo=Se("stepper-indicator-size"),Cl=Se("stepper-icon-size"),kl=Se("stepper-title-font-size"),wc=Se("stepper-description-font-size"),sc=Se("stepper-accent-color"),tB=xc(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[sc.variable]:`colors.${e}.500`,_dark:{[sc.variable]:`colors.${e}.200`}},title:{fontSize:kl.reference,fontWeight:"medium"},description:{fontSize:wc.reference,color:"chakra-subtle-text"},number:{fontSize:kl.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Cl.reference,height:Cl.reference},indicator:{flexShrink:0,borderRadius:"full",width:fo.reference,height:fo.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:sc.reference},"&[data-status=complete]":{bg:sc.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:sc.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${fo.reference} - 8px)`,top:`calc(${fo.reference} + 4px)`,insetStart:`calc(${fo.reference} / 2 - 1px)`}}})),nB=eB({baseStyle:tB,sizes:{xs:xc({stepper:{[fo.variable]:"sizes.4",[Cl.variable]:"sizes.3",[kl.variable]:"fontSizes.xs",[wc.variable]:"fontSizes.xs"}}),sm:xc({stepper:{[fo.variable]:"sizes.6",[Cl.variable]:"sizes.4",[kl.variable]:"fontSizes.sm",[wc.variable]:"fontSizes.xs"}}),md:xc({stepper:{[fo.variable]:"sizes.8",[Cl.variable]:"sizes.5",[kl.variable]:"fontSizes.md",[wc.variable]:"fontSizes.sm"}}),lg:xc({stepper:{[fo.variable]:"sizes.10",[Cl.variable]:"sizes.6",[kl.variable]:"fontSizes.lg",[wc.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function lt(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const h of p)t[h]=c(h);return lt(e,t)}function o(...p){for(const h of p)h in t||(t[h]=c(h));return lt(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const g=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:g,selector:`.${g}`,toString:()=>p}}return{parts:i,toPart:c,extend:o,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var rB=lt("accordion").parts("root","container","button","panel").extend("icon"),iB=lt("alert").parts("title","description","container").extend("icon","spinner"),oB=lt("avatar").parts("label","badge","container").extend("excessLabel","group"),aB=lt("breadcrumb").parts("link","item","container").extend("separator");lt("button").parts();var sB=lt("checkbox").parts("control","icon","container").extend("label");lt("progress").parts("track","filledTrack").extend("label");var lB=lt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),uB=lt("editable").parts("preview","input","textarea"),cB=lt("form").parts("container","requiredIndicator","helperText"),fB=lt("formError").parts("text","icon"),dB=lt("input").parts("addon","field","element","group"),pB=lt("list").parts("container","item","icon"),hB=lt("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),mB=lt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),vB=lt("numberinput").parts("root","field","stepperGroup","stepper");lt("pininput").parts("field");var gB=lt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),yB=lt("progress").parts("label","filledTrack","track"),bB=lt("radio").parts("container","control","label"),xB=lt("select").parts("field","icon"),wB=lt("slider").parts("container","track","thumb","filledTrack","mark"),SB=lt("stat").parts("container","label","helpText","number","icon"),_B=lt("switch").parts("container","track","thumb","label"),CB=lt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),kB=lt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),TB=lt("tag").parts("container","label","closeButton"),EB=lt("card").parts("container","header","body","footer");lt("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function os(e,t,n){return Math.min(Math.max(e,n),t)}class PB extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Sc=PB;function Sx(e){if(typeof e!="string")throw new Sc(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=DB.test(e)?OB(e):e;const n=IB.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(u=>parseInt(bf(u,2),16)),parseInt(bf(s[3]||"f",2),16)/255]}const r=MB.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,16)),parseInt(s[3]||"ff",16)/255]}const i=$B.exec(t);if(i){const s=Array.from(i).slice(1);return[...s.slice(0,3).map(u=>parseInt(u,10)),parseFloat(s[3]||"1")]}const o=FB.exec(t);if(o){const[s,u,c,f]=Array.from(o).slice(1).map(parseFloat);if(os(0,100,u)!==u)throw new Sc(e);if(os(0,100,c)!==c)throw new Sc(e);return[...LB(s,u,c),Number.isNaN(f)?1:f]}throw new Sc(e)}function AB(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const A5=e=>parseInt(e.replace(/_/g,""),36),RB="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=A5(t.substring(0,3)),r=A5(t.substring(3)).toString(16);let i="";for(let o=0;o<6-r.length;o++)i+="0";return e[n]=`${i}${r}`,e},{});function OB(e){const t=e.toLowerCase().trim(),n=RB[AB(t)];if(!n)throw new Sc(e);return`#${n}`}const bf=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),IB=new RegExp(`^#${bf("([a-f0-9])",3)}([a-f0-9])?$`,"i"),MB=new RegExp(`^#${bf("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),$B=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${bf(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),FB=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,DB=/^[a-z]+$/i,R5=e=>Math.round(e*255),LB=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(R5);const i=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*(t/100),s=o*(1-Math.abs(i%2-1));let u=0,c=0,f=0;i>=0&&i<1?(u=o,c=s):i>=1&&i<2?(u=s,c=o):i>=2&&i<3?(c=o,f=s):i>=3&&i<4?(c=s,f=o):i>=4&&i<5?(u=s,f=o):i>=5&&i<6&&(u=o,f=s);const p=r-o/2,h=u+p,m=c+p,g=f+p;return[h,m,g].map(R5)};function jB(e,t,n,r){return`rgba(${os(0,255,e).toFixed()}, ${os(0,255,t).toFixed()}, ${os(0,255,n).toFixed()}, ${parseFloat(os(0,1,r).toFixed(3))})`}function zB(e,t){const[n,r,i,o]=Sx(e);return jB(n,r,i,o-t)}function NB(e){const[t,n,r,i]=Sx(e);let o=s=>{const u=os(0,255,s).toString(16);return u.length===1?`0${u}`:u};return`#${o(t)}${o(n)}${o(r)}${i<1?o(Math.round(i*255)):""}`}function BB(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Wn=(e,t,n)=>{const r=BB(e,`colors.${t}`,t);try{return NB(r),r}catch{return n??"#000000"}},WB=e=>{const[t,n,r]=Sx(e);return(t*299+n*587+r*114)/1e3},UB=e=>t=>{const n=Wn(t,e);return WB(n)<128?"dark":"light"},HB=e=>t=>UB(e)(t)==="dark",ou=(e,t)=>n=>{const r=Wn(n,e);return zB(r,1-t)};function O5(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -332,12 +332,12 @@ Error generating stack: `+o.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var GB=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function KB(e){const t=GB();return!e||VB(e)?t:e.string&&e.colors?YB(e.string,e.colors):e.string&&!e.colors?qB(e.string):e.colors&&!e.string?XB(e.colors):t}function qB(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function YB(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function _x(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function CP(e){return Cr(e)&&e.reference?e.reference:String(e)}var Sm=(e,...t)=>t.map(CP).join(` ${e} `).replace(/calc/g,""),I5=(...e)=>`calc(${Sm("+",...e)})`,M5=(...e)=>`calc(${Sm("-",...e)})`,d2=(...e)=>`calc(${Sm("*",...e)})`,$5=(...e)=>`calc(${Sm("/",...e)})`,F5=e=>{const t=CP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:d2(t,-1)},po=Object.assign(e=>({add:(...t)=>po(I5(e,...t)),subtract:(...t)=>po(M5(e,...t)),multiply:(...t)=>po(d2(e,...t)),divide:(...t)=>po($5(e,...t)),negate:()=>po(F5(e)),toString:()=>e.toString()}),{add:I5,subtract:M5,multiply:d2,divide:$5,negate:F5});function QB(e){return!Number.isInteger(parseFloat(e.toString()))}function ZB(e,t="-"){return e.replace(/\s+/g,t)}function kP(e){const t=ZB(e.toString());return t.includes("\\.")?e:QB(e)?t.replace(".","\\."):e}function JB(e,t=""){return[t,kP(e)].filter(Boolean).join("-")}function eV(e,t){return`var(${kP(e)}${t?`, ${t}`:""})`}function tV(e,t=""){return`--${JB(e,t)}`}function cn(e,t){const n=tV(e,t==null?void 0:t.prefix);return{variable:n,reference:eV(n,nV(t==null?void 0:t.fallback))}}function nV(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:rV,definePartsStyle:vh}=Et(_B.keys),jc=cn("switch-track-width"),us=cn("switch-track-height"),dy=cn("switch-track-diff"),iV=po.subtract(jc,us),p2=cn("switch-thumb-x"),lc=cn("switch-bg"),oV=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[jc.reference],height:[us.reference],transitionProperty:"common",transitionDuration:"fast",[lc.variable]:"colors.gray.300",_dark:{[lc.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[lc.variable]:`colors.${t}.500`,_dark:{[lc.variable]:`colors.${t}.200`}},bg:lc.reference}},aV={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[us.reference],height:[us.reference],_checked:{transform:`translateX(${p2.reference})`}},sV=vh(e=>({container:{[dy.variable]:iV,[p2.variable]:dy.reference,_rtl:{[p2.variable]:po(dy).negate().toString()}},track:oV(e),thumb:aV})),lV={sm:vh({container:{[jc.variable]:"1.375rem",[us.variable]:"sizes.3"}}),md:vh({container:{[jc.variable]:"1.875rem",[us.variable]:"sizes.4"}}),lg:vh({container:{[jc.variable]:"2.875rem",[us.variable]:"sizes.6"}})},uV=rV({baseStyle:sV,sizes:lV,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cV,definePartsStyle:Vl}=Et(CB.keys),fV=Vl({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),h0={"&[data-is-numeric=true]":{textAlign:"end"}},dV=Vl(e=>{const{colorScheme:t}=e;return{th:{color:we("gray.600","gray.400")(e),borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},td:{borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},caption:{color:we("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),pV=Vl(e=>{const{colorScheme:t}=e;return{th:{color:we("gray.600","gray.400")(e),borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},td:{borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},caption:{color:we("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e)},td:{background:we(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),hV={simple:dV,striped:pV,unstyled:{}},mV={sm:Vl({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Vl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Vl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},vV=cV({baseStyle:fV,variants:hV,sizes:mV,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),rr=Se("tabs-color"),gi=Se("tabs-bg"),Mp=Se("tabs-border-color"),{defineMultiStyleConfig:gV,definePartsStyle:zi}=Et(kB.keys),yV=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},bV=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},xV=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},wV={p:4},SV=zi(e=>({root:yV(e),tab:bV(e),tablist:xV(e),tabpanel:wV})),_V={sm:zi({tab:{py:1,px:4,fontSize:"sm"}}),md:zi({tab:{fontSize:"md",py:2,px:4}}),lg:zi({tab:{fontSize:"lg",py:3,px:4}})},CV=zi(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[rr.variable]:`colors.${t}.600`,_dark:{[rr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[gi.variable]:"colors.gray.200",_dark:{[gi.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rr.reference,bg:gi.reference}}}),kV=zi(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Mp.variable]:"transparent",_selected:{[rr.variable]:`colors.${t}.600`,[Mp.variable]:"colors.white",_dark:{[rr.variable]:`colors.${t}.300`,[Mp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Mp.reference},color:rr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),TV=zi(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[gi.variable]:"colors.gray.50",_dark:{[gi.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[gi.variable]:"colors.white",[rr.variable]:`colors.${t}.600`,_dark:{[gi.variable]:"colors.gray.800",[rr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rr.reference,bg:gi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),EV=zi(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Wn(n,`${t}.700`),bg:Wn(n,`${t}.100`)}}}}),PV=zi(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rr.variable]:"colors.gray.600",_dark:{[rr.variable]:"inherit"},_selected:{[rr.variable]:"colors.white",[gi.variable]:`colors.${t}.600`,_dark:{[rr.variable]:"colors.gray.800",[gi.variable]:`colors.${t}.300`}},color:rr.reference,bg:gi.reference}}}),AV=zi({}),RV={line:CV,enclosed:kV,"enclosed-colored":TV,"soft-rounded":EV,"solid-rounded":PV,unstyled:AV},OV=gV({baseStyle:SV,sizes:_V,variants:RV,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Zt=Zz("badge",["bg","color","shadow"]),IV={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference},MV=e=>{const{colorScheme:t,theme:n}=e,r=iu(`${t}.500`,.6)(n);return{[Zt.bg.variable]:`colors.${t}.500`,[Zt.color.variable]:"colors.white",_dark:{[Zt.bg.variable]:r,[Zt.color.variable]:"colors.whiteAlpha.800"}}},$V=e=>{const{colorScheme:t,theme:n}=e,r=iu(`${t}.200`,.16)(n);return{[Zt.bg.variable]:`colors.${t}.100`,[Zt.color.variable]:`colors.${t}.800`,_dark:{[Zt.bg.variable]:r,[Zt.color.variable]:`colors.${t}.200`}}},FV=e=>{const{colorScheme:t,theme:n}=e,r=iu(`${t}.200`,.8)(n);return{[Zt.color.variable]:`colors.${t}.500`,_dark:{[Zt.color.variable]:r},[Zt.shadow.variable]:`inset 0 0 0px 1px ${Zt.color.reference}`}},DV={solid:MV,subtle:$V,outline:FV},zc={baseStyle:IV,variants:DV,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:LV,definePartsStyle:cs}=Et(TB.keys),D5=Se("tag-bg"),L5=Se("tag-color"),py=Se("tag-shadow"),gh=Se("tag-min-height"),yh=Se("tag-min-width"),bh=Se("tag-font-size"),xh=Se("tag-padding-inline"),jV={fontWeight:"medium",lineHeight:1.2,outline:0,[L5.variable]:Zt.color.reference,[D5.variable]:Zt.bg.reference,[py.variable]:Zt.shadow.reference,color:L5.reference,bg:D5.reference,boxShadow:py.reference,borderRadius:"md",minH:gh.reference,minW:yh.reference,fontSize:bh.reference,px:xh.reference,_focusVisible:{[py.variable]:"shadows.outline"}},zV={lineHeight:1.2,overflow:"visible"},NV={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},BV=cs({container:jV,label:zV,closeButton:NV}),VV={sm:cs({container:{[gh.variable]:"sizes.5",[yh.variable]:"sizes.5",[bh.variable]:"fontSizes.xs",[xh.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:cs({container:{[gh.variable]:"sizes.6",[yh.variable]:"sizes.6",[bh.variable]:"fontSizes.sm",[xh.variable]:"space.2"}}),lg:cs({container:{[gh.variable]:"sizes.8",[yh.variable]:"sizes.8",[bh.variable]:"fontSizes.md",[xh.variable]:"space.3"}})},WV={subtle:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.subtle(e)}}),solid:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.solid(e)}}),outline:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.outline(e)}})},UV=LV({variants:WV,baseStyle:BV,sizes:VV,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:go,defineMultiStyleConfig:HV}=Et(dB.keys),kl=Se("input-height"),Tl=Se("input-font-size"),El=Se("input-padding"),Pl=Se("input-border-radius"),GV=go({addon:{height:kl.reference,fontSize:Tl.reference,px:El.reference,borderRadius:Pl.reference},field:{width:"100%",height:kl.reference,fontSize:Tl.reference,px:El.reference,borderRadius:Pl.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Go={lg:{[Tl.variable]:"fontSizes.lg",[El.variable]:"space.4",[Pl.variable]:"radii.md",[kl.variable]:"sizes.12"},md:{[Tl.variable]:"fontSizes.md",[El.variable]:"space.4",[Pl.variable]:"radii.md",[kl.variable]:"sizes.10"},sm:{[Tl.variable]:"fontSizes.sm",[El.variable]:"space.3",[Pl.variable]:"radii.sm",[kl.variable]:"sizes.8"},xs:{[Tl.variable]:"fontSizes.xs",[El.variable]:"space.2",[Pl.variable]:"radii.sm",[kl.variable]:"sizes.6"}},KV={lg:go({field:Go.lg,group:Go.lg}),md:go({field:Go.md,group:Go.md}),sm:go({field:Go.sm,group:Go.sm}),xs:go({field:Go.xs,group:Go.xs})};function Cx(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||we("blue.500","blue.300")(e),errorBorderColor:n||we("red.500","red.300")(e)}}var qV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:we("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r),boxShadow:`0 0 0 1px ${Wn(t,r)}`},_focusVisible:{zIndex:1,borderColor:Wn(t,n),boxShadow:`0 0 0 1px ${Wn(t,n)}`}},addon:{border:"1px solid",borderColor:we("inherit","whiteAlpha.50")(e),bg:we("gray.100","whiteAlpha.300")(e)}}}),YV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{border:"2px solid",borderColor:"transparent",bg:we("gray.100","whiteAlpha.50")(e),_hover:{bg:we("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r)},_focusVisible:{bg:"transparent",borderColor:Wn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:we("gray.100","whiteAlpha.50")(e)}}}),XV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r),boxShadow:`0px 1px 0px 0px ${Wn(t,r)}`},_focusVisible:{borderColor:Wn(t,n),boxShadow:`0px 1px 0px 0px ${Wn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),QV=go({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ZV={outline:qV,filled:YV,flushed:XV,unstyled:QV},st=HV({baseStyle:GV,sizes:KV,variants:ZV,defaultProps:{size:"md",variant:"outline"}}),j5,JV={...(j5=st.baseStyle)==null?void 0:j5.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},z5,N5,eW={outline:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(N5=(z5=st.variants)==null?void 0:z5.unstyled.field)!=null?N5:{}},B5,V5,W5,U5,H5,G5,K5,q5,tW={xs:(V5=(B5=st.sizes)==null?void 0:B5.xs.field)!=null?V5:{},sm:(U5=(W5=st.sizes)==null?void 0:W5.sm.field)!=null?U5:{},md:(G5=(H5=st.sizes)==null?void 0:H5.md.field)!=null?G5:{},lg:(q5=(K5=st.sizes)==null?void 0:K5.lg.field)!=null?q5:{}},nW={baseStyle:JV,sizes:tW,variants:eW,defaultProps:{size:"md",variant:"outline"}},$p=cn("tooltip-bg"),hy=cn("tooltip-fg"),rW=cn("popper-arrow-bg"),iW={bg:$p.reference,color:hy.reference,[$p.variable]:"colors.gray.700",[hy.variable]:"colors.whiteAlpha.900",_dark:{[$p.variable]:"colors.gray.300",[hy.variable]:"colors.gray.900"},[rW.variable]:$p.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},oW={baseStyle:iW},{defineMultiStyleConfig:aW,definePartsStyle:_c}=Et(yB.keys),sW=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=we(O5(),O5("1rem","rgba(0,0,0,0.1)"))(e),s=we(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var GB=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function KB(e){const t=GB();return!e||VB(e)?t:e.string&&e.colors?YB(e.string,e.colors):e.string&&!e.colors?qB(e.string):e.colors&&!e.string?XB(e.colors):t}function qB(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${i.toString(16)}`.substr(-2)}return n}function YB(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function _x(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function CP(e){return Cr(e)&&e.reference?e.reference:String(e)}var Sm=(e,...t)=>t.map(CP).join(` ${e} `).replace(/calc/g,""),I5=(...e)=>`calc(${Sm("+",...e)})`,M5=(...e)=>`calc(${Sm("-",...e)})`,d2=(...e)=>`calc(${Sm("*",...e)})`,$5=(...e)=>`calc(${Sm("/",...e)})`,F5=e=>{const t=CP(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:d2(t,-1)},po=Object.assign(e=>({add:(...t)=>po(I5(e,...t)),subtract:(...t)=>po(M5(e,...t)),multiply:(...t)=>po(d2(e,...t)),divide:(...t)=>po($5(e,...t)),negate:()=>po(F5(e)),toString:()=>e.toString()}),{add:I5,subtract:M5,multiply:d2,divide:$5,negate:F5});function QB(e){return!Number.isInteger(parseFloat(e.toString()))}function ZB(e,t="-"){return e.replace(/\s+/g,t)}function kP(e){const t=ZB(e.toString());return t.includes("\\.")?e:QB(e)?t.replace(".","\\."):e}function JB(e,t=""){return[t,kP(e)].filter(Boolean).join("-")}function eV(e,t){return`var(${kP(e)}${t?`, ${t}`:""})`}function tV(e,t=""){return`--${JB(e,t)}`}function cn(e,t){const n=tV(e,t==null?void 0:t.prefix);return{variable:n,reference:eV(n,nV(t==null?void 0:t.fallback))}}function nV(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:rV,definePartsStyle:vh}=Et(_B.keys),jc=cn("switch-track-width"),us=cn("switch-track-height"),dy=cn("switch-track-diff"),iV=po.subtract(jc,us),p2=cn("switch-thumb-x"),lc=cn("switch-bg"),oV=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[jc.reference],height:[us.reference],transitionProperty:"common",transitionDuration:"fast",[lc.variable]:"colors.gray.300",_dark:{[lc.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[lc.variable]:`colors.${t}.500`,_dark:{[lc.variable]:`colors.${t}.200`}},bg:lc.reference}},aV={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[us.reference],height:[us.reference],_checked:{transform:`translateX(${p2.reference})`}},sV=vh(e=>({container:{[dy.variable]:iV,[p2.variable]:dy.reference,_rtl:{[p2.variable]:po(dy).negate().toString()}},track:oV(e),thumb:aV})),lV={sm:vh({container:{[jc.variable]:"1.375rem",[us.variable]:"sizes.3"}}),md:vh({container:{[jc.variable]:"1.875rem",[us.variable]:"sizes.4"}}),lg:vh({container:{[jc.variable]:"2.875rem",[us.variable]:"sizes.6"}})},uV=rV({baseStyle:sV,sizes:lV,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cV,definePartsStyle:Wl}=Et(CB.keys),fV=Wl({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),h0={"&[data-is-numeric=true]":{textAlign:"end"}},dV=Wl(e=>{const{colorScheme:t}=e;return{th:{color:we("gray.600","gray.400")(e),borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},td:{borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},caption:{color:we("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),pV=Wl(e=>{const{colorScheme:t}=e;return{th:{color:we("gray.600","gray.400")(e),borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},td:{borderBottom:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e),...h0},caption:{color:we("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:we(`${t}.100`,`${t}.700`)(e)},td:{background:we(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),hV={simple:dV,striped:pV,unstyled:{}},mV={sm:Wl({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Wl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Wl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},vV=cV({baseStyle:fV,variants:hV,sizes:mV,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),rr=Se("tabs-color"),gi=Se("tabs-bg"),Mp=Se("tabs-border-color"),{defineMultiStyleConfig:gV,definePartsStyle:zi}=Et(kB.keys),yV=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},bV=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},xV=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},wV={p:4},SV=zi(e=>({root:yV(e),tab:bV(e),tablist:xV(e),tabpanel:wV})),_V={sm:zi({tab:{py:1,px:4,fontSize:"sm"}}),md:zi({tab:{fontSize:"md",py:2,px:4}}),lg:zi({tab:{fontSize:"lg",py:3,px:4}})},CV=zi(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=r?"borderStart":"borderBottom",o=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[o]:"-2px",_selected:{[rr.variable]:`colors.${t}.600`,_dark:{[rr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[gi.variable]:"colors.gray.200",_dark:{[gi.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rr.reference,bg:gi.reference}}}),kV=zi(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Mp.variable]:"transparent",_selected:{[rr.variable]:`colors.${t}.600`,[Mp.variable]:"colors.white",_dark:{[rr.variable]:`colors.${t}.300`,[Mp.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Mp.reference},color:rr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),TV=zi(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[gi.variable]:"colors.gray.50",_dark:{[gi.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[gi.variable]:"colors.white",[rr.variable]:`colors.${t}.600`,_dark:{[gi.variable]:"colors.gray.800",[rr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rr.reference,bg:gi.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),EV=zi(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Wn(n,`${t}.700`),bg:Wn(n,`${t}.100`)}}}}),PV=zi(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rr.variable]:"colors.gray.600",_dark:{[rr.variable]:"inherit"},_selected:{[rr.variable]:"colors.white",[gi.variable]:`colors.${t}.600`,_dark:{[rr.variable]:"colors.gray.800",[gi.variable]:`colors.${t}.300`}},color:rr.reference,bg:gi.reference}}}),AV=zi({}),RV={line:CV,enclosed:kV,"enclosed-colored":TV,"soft-rounded":EV,"solid-rounded":PV,unstyled:AV},OV=gV({baseStyle:SV,sizes:_V,variants:RV,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Zt=Zz("badge",["bg","color","shadow"]),IV={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference},MV=e=>{const{colorScheme:t,theme:n}=e,r=ou(`${t}.500`,.6)(n);return{[Zt.bg.variable]:`colors.${t}.500`,[Zt.color.variable]:"colors.white",_dark:{[Zt.bg.variable]:r,[Zt.color.variable]:"colors.whiteAlpha.800"}}},$V=e=>{const{colorScheme:t,theme:n}=e,r=ou(`${t}.200`,.16)(n);return{[Zt.bg.variable]:`colors.${t}.100`,[Zt.color.variable]:`colors.${t}.800`,_dark:{[Zt.bg.variable]:r,[Zt.color.variable]:`colors.${t}.200`}}},FV=e=>{const{colorScheme:t,theme:n}=e,r=ou(`${t}.200`,.8)(n);return{[Zt.color.variable]:`colors.${t}.500`,_dark:{[Zt.color.variable]:r},[Zt.shadow.variable]:`inset 0 0 0px 1px ${Zt.color.reference}`}},DV={solid:MV,subtle:$V,outline:FV},zc={baseStyle:IV,variants:DV,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:LV,definePartsStyle:cs}=Et(TB.keys),D5=Se("tag-bg"),L5=Se("tag-color"),py=Se("tag-shadow"),gh=Se("tag-min-height"),yh=Se("tag-min-width"),bh=Se("tag-font-size"),xh=Se("tag-padding-inline"),jV={fontWeight:"medium",lineHeight:1.2,outline:0,[L5.variable]:Zt.color.reference,[D5.variable]:Zt.bg.reference,[py.variable]:Zt.shadow.reference,color:L5.reference,bg:D5.reference,boxShadow:py.reference,borderRadius:"md",minH:gh.reference,minW:yh.reference,fontSize:bh.reference,px:xh.reference,_focusVisible:{[py.variable]:"shadows.outline"}},zV={lineHeight:1.2,overflow:"visible"},NV={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},BV=cs({container:jV,label:zV,closeButton:NV}),VV={sm:cs({container:{[gh.variable]:"sizes.5",[yh.variable]:"sizes.5",[bh.variable]:"fontSizes.xs",[xh.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:cs({container:{[gh.variable]:"sizes.6",[yh.variable]:"sizes.6",[bh.variable]:"fontSizes.sm",[xh.variable]:"space.2"}}),lg:cs({container:{[gh.variable]:"sizes.8",[yh.variable]:"sizes.8",[bh.variable]:"fontSizes.md",[xh.variable]:"space.3"}})},WV={subtle:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.subtle(e)}}),solid:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.solid(e)}}),outline:cs(e=>{var t;return{container:(t=zc.variants)==null?void 0:t.outline(e)}})},UV=LV({variants:WV,baseStyle:BV,sizes:VV,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:go,defineMultiStyleConfig:HV}=Et(dB.keys),Tl=Se("input-height"),El=Se("input-font-size"),Pl=Se("input-padding"),Al=Se("input-border-radius"),GV=go({addon:{height:Tl.reference,fontSize:El.reference,px:Pl.reference,borderRadius:Al.reference},field:{width:"100%",height:Tl.reference,fontSize:El.reference,px:Pl.reference,borderRadius:Al.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Go={lg:{[El.variable]:"fontSizes.lg",[Pl.variable]:"space.4",[Al.variable]:"radii.md",[Tl.variable]:"sizes.12"},md:{[El.variable]:"fontSizes.md",[Pl.variable]:"space.4",[Al.variable]:"radii.md",[Tl.variable]:"sizes.10"},sm:{[El.variable]:"fontSizes.sm",[Pl.variable]:"space.3",[Al.variable]:"radii.sm",[Tl.variable]:"sizes.8"},xs:{[El.variable]:"fontSizes.xs",[Pl.variable]:"space.2",[Al.variable]:"radii.sm",[Tl.variable]:"sizes.6"}},KV={lg:go({field:Go.lg,group:Go.lg}),md:go({field:Go.md,group:Go.md}),sm:go({field:Go.sm,group:Go.sm}),xs:go({field:Go.xs,group:Go.xs})};function Cx(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||we("blue.500","blue.300")(e),errorBorderColor:n||we("red.500","red.300")(e)}}var qV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:we("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r),boxShadow:`0 0 0 1px ${Wn(t,r)}`},_focusVisible:{zIndex:1,borderColor:Wn(t,n),boxShadow:`0 0 0 1px ${Wn(t,n)}`}},addon:{border:"1px solid",borderColor:we("inherit","whiteAlpha.50")(e),bg:we("gray.100","whiteAlpha.300")(e)}}}),YV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{border:"2px solid",borderColor:"transparent",bg:we("gray.100","whiteAlpha.50")(e),_hover:{bg:we("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r)},_focusVisible:{bg:"transparent",borderColor:Wn(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:we("gray.100","whiteAlpha.50")(e)}}}),XV=go(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Cx(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Wn(t,r),boxShadow:`0px 1px 0px 0px ${Wn(t,r)}`},_focusVisible:{borderColor:Wn(t,n),boxShadow:`0px 1px 0px 0px ${Wn(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),QV=go({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ZV={outline:qV,filled:YV,flushed:XV,unstyled:QV},st=HV({baseStyle:GV,sizes:KV,variants:ZV,defaultProps:{size:"md",variant:"outline"}}),j5,JV={...(j5=st.baseStyle)==null?void 0:j5.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},z5,N5,eW={outline:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=st.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(N5=(z5=st.variants)==null?void 0:z5.unstyled.field)!=null?N5:{}},B5,V5,W5,U5,H5,G5,K5,q5,tW={xs:(V5=(B5=st.sizes)==null?void 0:B5.xs.field)!=null?V5:{},sm:(U5=(W5=st.sizes)==null?void 0:W5.sm.field)!=null?U5:{},md:(G5=(H5=st.sizes)==null?void 0:H5.md.field)!=null?G5:{},lg:(q5=(K5=st.sizes)==null?void 0:K5.lg.field)!=null?q5:{}},nW={baseStyle:JV,sizes:tW,variants:eW,defaultProps:{size:"md",variant:"outline"}},$p=cn("tooltip-bg"),hy=cn("tooltip-fg"),rW=cn("popper-arrow-bg"),iW={bg:$p.reference,color:hy.reference,[$p.variable]:"colors.gray.700",[hy.variable]:"colors.whiteAlpha.900",_dark:{[$p.variable]:"colors.gray.300",[hy.variable]:"colors.gray.900"},[rW.variable]:$p.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},oW={baseStyle:iW},{defineMultiStyleConfig:aW,definePartsStyle:_c}=Et(yB.keys),sW=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,o=we(O5(),O5("1rem","rgba(0,0,0,0.1)"))(e),s=we(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( to right, transparent 0%, ${Wn(n,s)} 50%, transparent 100% - )`;return{...!r&&i&&o,...r?{bgImage:u}:{bgColor:s}}},lW={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},uW=e=>({bg:we("gray.100","whiteAlpha.300")(e)}),cW=e=>({transitionProperty:"common",transitionDuration:"slow",...sW(e)}),fW=_c(e=>({label:lW,filledTrack:cW(e),track:uW(e)})),dW={xs:_c({track:{h:"1"}}),sm:_c({track:{h:"2"}}),md:_c({track:{h:"3"}}),lg:_c({track:{h:"4"}})},pW=aW({sizes:dW,baseStyle:fW,defaultProps:{size:"md",colorScheme:"blue"}}),hW=e=>typeof e=="function";function Hn(e,...t){return hW(e)?e(...t):e}var{definePartsStyle:wh,defineMultiStyleConfig:mW}=Et(sB.keys),Nc=Se("checkbox-size"),vW=e=>{const{colorScheme:t}=e;return{w:Nc.reference,h:Nc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:we(`${t}.500`,`${t}.200`)(e),borderColor:we(`${t}.500`,`${t}.200`)(e),color:we("white","gray.900")(e),_hover:{bg:we(`${t}.600`,`${t}.300`)(e),borderColor:we(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:we("gray.200","transparent")(e),bg:we("gray.200","whiteAlpha.300")(e),color:we("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:we(`${t}.500`,`${t}.200`)(e),borderColor:we(`${t}.500`,`${t}.200`)(e),color:we("white","gray.900")(e)},_disabled:{bg:we("gray.100","whiteAlpha.100")(e),borderColor:we("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:we("red.500","red.300")(e)}}},gW={_disabled:{cursor:"not-allowed"}},yW={userSelect:"none",_disabled:{opacity:.4}},bW={transitionProperty:"transform",transitionDuration:"normal"},xW=wh(e=>({icon:bW,container:gW,control:Hn(vW,e),label:yW})),wW={sm:wh({control:{[Nc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:wh({control:{[Nc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:wh({control:{[Nc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},m0=mW({baseStyle:xW,sizes:wW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SW,definePartsStyle:Sh}=Et(bB.keys),_W=e=>{var t;const n=(t=Hn(m0.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},CW=Sh(e=>{var t,n,r,i;return{label:(n=(t=m0).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=m0).baseStyle)==null?void 0:i.call(r,e).container,control:_W(e)}}),kW={md:Sh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Sh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Sh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},TW=SW({baseStyle:CW,sizes:kW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EW,definePartsStyle:PW}=Et(xB.keys),Fp=Se("select-bg"),Y5,AW={...(Y5=st.baseStyle)==null?void 0:Y5.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Fp.reference,[Fp.variable]:"colors.white",_dark:{[Fp.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Fp.reference}},RW={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},OW=PW({field:AW,icon:RW}),Dp={paddingInlineEnd:"8"},X5,Q5,Z5,J5,eC,tC,nC,rC,IW={lg:{...(X5=st.sizes)==null?void 0:X5.lg,field:{...(Q5=st.sizes)==null?void 0:Q5.lg.field,...Dp}},md:{...(Z5=st.sizes)==null?void 0:Z5.md,field:{...(J5=st.sizes)==null?void 0:J5.md.field,...Dp}},sm:{...(eC=st.sizes)==null?void 0:eC.sm,field:{...(tC=st.sizes)==null?void 0:tC.sm.field,...Dp}},xs:{...(nC=st.sizes)==null?void 0:nC.xs,field:{...(rC=st.sizes)==null?void 0:rC.xs.field,...Dp},icon:{insetEnd:"1"}}},MW=EW({baseStyle:OW,sizes:IW,variants:st.variants,defaultProps:st.defaultProps}),my=Se("skeleton-start-color"),vy=Se("skeleton-end-color"),$W={[my.variable]:"colors.gray.100",[vy.variable]:"colors.gray.400",_dark:{[my.variable]:"colors.gray.800",[vy.variable]:"colors.gray.600"},background:my.reference,borderColor:vy.reference,opacity:.7,borderRadius:"sm"},FW={baseStyle:$W},gy=Se("skip-link-bg"),DW={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[gy.variable]:"colors.white",_dark:{[gy.variable]:"colors.gray.700"},bg:gy.reference}},LW={baseStyle:DW},{defineMultiStyleConfig:jW,definePartsStyle:_m}=Et(wB.keys),xf=Se("slider-thumb-size"),wf=Se("slider-track-size"),na=Se("slider-bg"),zW=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._x({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},NW=e=>({..._x({orientation:e.orientation,horizontal:{h:wf.reference},vertical:{w:wf.reference}}),overflow:"hidden",borderRadius:"sm",[na.variable]:"colors.gray.200",_dark:{[na.variable]:"colors.whiteAlpha.200"},_disabled:{[na.variable]:"colors.gray.300",_dark:{[na.variable]:"colors.whiteAlpha.300"}},bg:na.reference}),BW=e=>{const{orientation:t}=e;return{..._x({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:xf.reference,h:xf.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},VW=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[na.variable]:`colors.${t}.500`,_dark:{[na.variable]:`colors.${t}.200`},bg:na.reference}},WW=_m(e=>({container:zW(e),track:NW(e),thumb:BW(e),filledTrack:VW(e)})),UW=_m({container:{[xf.variable]:"sizes.4",[wf.variable]:"sizes.1"}}),HW=_m({container:{[xf.variable]:"sizes.3.5",[wf.variable]:"sizes.1"}}),GW=_m({container:{[xf.variable]:"sizes.2.5",[wf.variable]:"sizes.0.5"}}),KW={lg:UW,md:HW,sm:GW},qW=jW({baseStyle:WW,sizes:KW,defaultProps:{size:"md",colorScheme:"blue"}}),ts=cn("spinner-size"),YW={width:[ts.reference],height:[ts.reference]},XW={xs:{[ts.variable]:"sizes.3"},sm:{[ts.variable]:"sizes.4"},md:{[ts.variable]:"sizes.6"},lg:{[ts.variable]:"sizes.8"},xl:{[ts.variable]:"sizes.12"}},QW={baseStyle:YW,sizes:XW,defaultProps:{size:"md"}},{defineMultiStyleConfig:ZW,definePartsStyle:TP}=Et(SB.keys),JW={fontWeight:"medium"},eU={opacity:.8,marginBottom:"2"},tU={verticalAlign:"baseline",fontWeight:"semibold"},nU={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},rU=TP({container:{},label:JW,helpText:eU,number:tU,icon:nU}),iU={md:TP({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},oU=ZW({baseStyle:rU,sizes:iU,defaultProps:{size:"md"}}),yy=Se("kbd-bg"),aU={[yy.variable]:"colors.gray.100",_dark:{[yy.variable]:"colors.whiteAlpha.100"},bg:yy.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},sU={baseStyle:aU},lU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},uU={baseStyle:lU},{defineMultiStyleConfig:cU,definePartsStyle:fU}=Et(pB.keys),dU={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},pU=fU({icon:dU}),hU=cU({baseStyle:pU}),{defineMultiStyleConfig:mU,definePartsStyle:vU}=Et(hB.keys),Ri=Se("menu-bg"),by=Se("menu-shadow"),gU={[Ri.variable]:"#fff",[by.variable]:"shadows.sm",_dark:{[Ri.variable]:"colors.gray.700",[by.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ri.reference,boxShadow:by.reference},yU={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ri.variable]:"colors.gray.100",_dark:{[Ri.variable]:"colors.whiteAlpha.100"}},_active:{[Ri.variable]:"colors.gray.200",_dark:{[Ri.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ri.variable]:"colors.gray.100",_dark:{[Ri.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ri.reference},bU={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},xU={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},wU={opacity:.6},SU={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},_U={transitionProperty:"common",transitionDuration:"normal"},CU=vU({button:_U,list:gU,item:yU,groupTitle:bU,icon:xU,command:wU,divider:SU}),kU=mU({baseStyle:CU}),{defineMultiStyleConfig:TU,definePartsStyle:h2}=Et(mB.keys),xy=Se("modal-bg"),wy=Se("modal-shadow"),EU={bg:"blackAlpha.600",zIndex:"modal"},PU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},AU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[xy.variable]:"colors.white",[wy.variable]:"shadows.lg",_dark:{[xy.variable]:"colors.gray.700",[wy.variable]:"shadows.dark-lg"},bg:xy.reference,boxShadow:wy.reference}},RU={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},OU={position:"absolute",top:"2",insetEnd:"3"},IU=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},MU={px:"6",py:"4"},$U=h2(e=>({overlay:EU,dialogContainer:Hn(PU,e),dialog:Hn(AU,e),header:RU,closeButton:OU,body:Hn(IU,e),footer:MU}));function di(e){return h2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var FU={xs:di("xs"),sm:di("sm"),md:di("md"),lg:di("lg"),xl:di("xl"),"2xl":di("2xl"),"3xl":di("3xl"),"4xl":di("4xl"),"5xl":di("5xl"),"6xl":di("6xl"),full:di("full")},DU=TU({baseStyle:$U,sizes:FU,defaultProps:{size:"md"}}),{defineMultiStyleConfig:LU,definePartsStyle:EP}=Et(vB.keys),kx=cn("number-input-stepper-width"),PP=cn("number-input-input-padding"),jU=po(kx).add("0.5rem").toString(),Sy=cn("number-input-bg"),_y=cn("number-input-color"),Cy=cn("number-input-border-color"),zU={[kx.variable]:"sizes.6",[PP.variable]:jU},NU=e=>{var t,n;return(n=(t=Hn(st.baseStyle,e))==null?void 0:t.field)!=null?n:{}},BU={width:kx.reference},VU={borderStart:"1px solid",borderStartColor:Cy.reference,color:_y.reference,bg:Sy.reference,[_y.variable]:"colors.chakra-body-text",[Cy.variable]:"colors.chakra-border-color",_dark:{[_y.variable]:"colors.whiteAlpha.800",[Cy.variable]:"colors.whiteAlpha.300"},_active:{[Sy.variable]:"colors.gray.200",_dark:{[Sy.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},WU=EP(e=>{var t;return{root:zU,field:(t=Hn(NU,e))!=null?t:{},stepperGroup:BU,stepper:VU}});function Lp(e){var t,n,r;const i=(t=st.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",u=wP.fontSizes[s];return EP({field:{...i.field,paddingInlineEnd:PP.reference,verticalAlign:"top"},stepper:{fontSize:po(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var UU={xs:Lp("xs"),sm:Lp("sm"),md:Lp("md"),lg:Lp("lg")},HU=LU({baseStyle:WU,sizes:UU,variants:st.variants,defaultProps:st.defaultProps}),iC,GU={...(iC=st.baseStyle)==null?void 0:iC.field,textAlign:"center"},KU={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},oC,aC,qU={outline:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(aC=(oC=st.variants)==null?void 0:oC.unstyled.field)!=null?aC:{}},YU={baseStyle:GU,sizes:KU,variants:qU,defaultProps:st.defaultProps},{defineMultiStyleConfig:XU,definePartsStyle:QU}=Et(gB.keys),jp=cn("popper-bg"),ZU=cn("popper-arrow-bg"),sC=cn("popper-arrow-shadow-color"),JU={zIndex:10},eH={[jp.variable]:"colors.white",bg:jp.reference,[ZU.variable]:jp.reference,[sC.variable]:"colors.gray.200",_dark:{[jp.variable]:"colors.gray.700",[sC.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},tH={px:3,py:2,borderBottomWidth:"1px"},nH={px:3,py:2},rH={px:3,py:2,borderTopWidth:"1px"},iH={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},oH=QU({popper:JU,content:eH,header:tH,body:nH,footer:rH,closeButton:iH}),aH=XU({baseStyle:oH}),{definePartsStyle:m2,defineMultiStyleConfig:sH}=Et(lB.keys),ky=Se("drawer-bg"),Ty=Se("drawer-box-shadow");function il(e){return m2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var lH={bg:"blackAlpha.600",zIndex:"modal"},uH={display:"flex",zIndex:"modal",justifyContent:"center"},cH=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ky.variable]:"colors.white",[Ty.variable]:"shadows.lg",_dark:{[ky.variable]:"colors.gray.700",[Ty.variable]:"shadows.dark-lg"},bg:ky.reference,boxShadow:Ty.reference}},fH={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dH={position:"absolute",top:"2",insetEnd:"3"},pH={px:"6",py:"2",flex:"1",overflow:"auto"},hH={px:"6",py:"4"},mH=m2(e=>({overlay:lH,dialogContainer:uH,dialog:Hn(cH,e),header:fH,closeButton:dH,body:pH,footer:hH})),vH={xs:il("xs"),sm:il("md"),md:il("lg"),lg:il("2xl"),xl:il("4xl"),full:il("full")},gH=sH({baseStyle:mH,sizes:vH,defaultProps:{size:"xs"}}),{definePartsStyle:yH,defineMultiStyleConfig:bH}=Et(uB.keys),xH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},wH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},SH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},_H=yH({preview:xH,input:wH,textarea:SH}),CH=bH({baseStyle:_H}),{definePartsStyle:kH,defineMultiStyleConfig:TH}=Et(cB.keys),Wl=Se("form-control-color"),EH={marginStart:"1",[Wl.variable]:"colors.red.500",_dark:{[Wl.variable]:"colors.red.300"},color:Wl.reference},PH={mt:"2",[Wl.variable]:"colors.gray.600",_dark:{[Wl.variable]:"colors.whiteAlpha.600"},color:Wl.reference,lineHeight:"normal",fontSize:"sm"},AH=kH({container:{width:"100%",position:"relative"},requiredIndicator:EH,helperText:PH}),RH=TH({baseStyle:AH}),{definePartsStyle:OH,defineMultiStyleConfig:IH}=Et(fB.keys),Ul=Se("form-error-color"),MH={[Ul.variable]:"colors.red.500",_dark:{[Ul.variable]:"colors.red.300"},color:Ul.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},$H={marginEnd:"0.5em",[Ul.variable]:"colors.red.500",_dark:{[Ul.variable]:"colors.red.300"},color:Ul.reference},FH=OH({text:MH,icon:$H}),DH=IH({baseStyle:FH}),LH={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},jH={baseStyle:LH},zH={fontFamily:"heading",fontWeight:"bold"},NH={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},BH={baseStyle:zH,sizes:NH,defaultProps:{size:"xl"}},{defineMultiStyleConfig:VH,definePartsStyle:WH}=Et(aB.keys),Ey=Se("breadcrumb-link-decor"),UH={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ey.reference,[Ey.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ey.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},HH=WH({link:UH}),GH=VH({baseStyle:HH}),KH={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},AP=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:we("gray.800","whiteAlpha.900")(e),_hover:{bg:we("gray.100","whiteAlpha.200")(e)},_active:{bg:we("gray.200","whiteAlpha.300")(e)}};const r=iu(`${t}.200`,.12)(n),i=iu(`${t}.200`,.24)(n);return{color:we(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:we(`${t}.50`,r)(e)},_active:{bg:we(`${t}.100`,i)(e)}}},qH=e=>{const{colorScheme:t}=e,n=we("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Hn(AP,e)}},YH={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},XH=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const c=we("gray.100","whiteAlpha.200")(e);return{bg:c,color:we("gray.800","whiteAlpha.900")(e),_hover:{bg:we("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:we("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:s=`${n}.700`}=(t=YH[n])!=null?t:{},u=we(r,`${n}.200`)(e);return{bg:u,color:we(i,"gray.800")(e),_hover:{bg:we(o,`${n}.300`)(e),_disabled:{bg:u}},_active:{bg:we(s,`${n}.400`)(e)}}},QH=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:we(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:we(`${t}.700`,`${t}.500`)(e)}}},ZH={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},JH={ghost:AP,outline:qH,solid:XH,link:QH,unstyled:ZH},eG={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},tG={baseStyle:KH,variants:JH,sizes:eG,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:fs,defineMultiStyleConfig:nG}=Et(EB.keys),v0=Se("card-bg"),xo=Se("card-padding"),RP=Se("card-shadow"),_h=Se("card-radius"),OP=Se("card-border-width","0"),IP=Se("card-border-color"),rG=fs({container:{[v0.variable]:"colors.chakra-body-bg",backgroundColor:v0.reference,boxShadow:RP.reference,borderRadius:_h.reference,color:"chakra-body-text",borderWidth:OP.reference,borderColor:IP.reference},body:{padding:xo.reference,flex:"1 1 0%"},header:{padding:xo.reference},footer:{padding:xo.reference}}),iG={sm:fs({container:{[_h.variable]:"radii.base",[xo.variable]:"space.3"}}),md:fs({container:{[_h.variable]:"radii.md",[xo.variable]:"space.5"}}),lg:fs({container:{[_h.variable]:"radii.xl",[xo.variable]:"space.7"}})},oG={elevated:fs({container:{[RP.variable]:"shadows.base",_dark:{[v0.variable]:"colors.gray.700"}}}),outline:fs({container:{[OP.variable]:"1px",[IP.variable]:"colors.chakra-border-color"}}),filled:fs({container:{[v0.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[xo.variable]:0},header:{[xo.variable]:0},footer:{[xo.variable]:0}}},aG=nG({baseStyle:rG,variants:oG,sizes:iG,defaultProps:{variant:"elevated",size:"md"}}),Bc=cn("close-button-size"),uc=cn("close-button-bg"),sG={w:[Bc.reference],h:[Bc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[uc.variable]:"colors.blackAlpha.100",_dark:{[uc.variable]:"colors.whiteAlpha.100"}},_active:{[uc.variable]:"colors.blackAlpha.200",_dark:{[uc.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:uc.reference},lG={lg:{[Bc.variable]:"sizes.10",fontSize:"md"},md:{[Bc.variable]:"sizes.8",fontSize:"xs"},sm:{[Bc.variable]:"sizes.6",fontSize:"2xs"}},uG={baseStyle:sG,sizes:lG,defaultProps:{size:"md"}},{variants:cG,defaultProps:fG}=zc,dG={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference},pG={baseStyle:dG,variants:cG,defaultProps:fG},hG={w:"100%",mx:"auto",maxW:"prose",px:"4"},mG={baseStyle:hG},vG={opacity:.6,borderColor:"inherit"},gG={borderStyle:"solid"},yG={borderStyle:"dashed"},bG={solid:gG,dashed:yG},xG={baseStyle:vG,variants:bG,defaultProps:{variant:"solid"}},{definePartsStyle:wG,defineMultiStyleConfig:SG}=Et(rB.keys),_G={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},CG={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},kG={pt:"2",px:"4",pb:"5"},TG={fontSize:"1.25em"},EG=wG({container:_G,button:CG,panel:kG,icon:TG}),PG=SG({baseStyle:EG}),{definePartsStyle:Bf,defineMultiStyleConfig:AG}=Et(iB.keys),kr=Se("alert-fg"),Po=Se("alert-bg"),RG=Bf({container:{bg:Po.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Tx(e){const{theme:t,colorScheme:n}=e,r=iu(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var OG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark}}}}),IG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:kr.reference}}}),MG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:kr.reference}}}),$G=Bf(e=>{const{colorScheme:t}=e;return{container:{[kr.variable]:"colors.white",[Po.variable]:`colors.${t}.600`,_dark:{[kr.variable]:"colors.gray.900",[Po.variable]:`colors.${t}.200`},color:kr.reference}}}),FG={subtle:OG,"left-accent":IG,"top-accent":MG,solid:$G},DG=AG({baseStyle:RG,variants:FG,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:MP,defineMultiStyleConfig:LG}=Et(oB.keys),Hl=Se("avatar-border-color"),Vc=Se("avatar-bg"),Sf=Se("avatar-font-size"),ou=Se("avatar-size"),jG={borderRadius:"full",border:"0.2em solid",borderColor:Hl.reference,[Hl.variable]:"white",_dark:{[Hl.variable]:"colors.gray.800"}},zG={bg:Vc.reference,fontSize:Sf.reference,width:ou.reference,height:ou.reference,lineHeight:"1",[Vc.variable]:"colors.gray.200",_dark:{[Vc.variable]:"colors.whiteAlpha.400"}},NG=e=>{const{name:t,theme:n}=e,r=t?KB({string:t}):"colors.gray.400",i=HB(r)(n);let o="white";return i||(o="gray.800"),{bg:Vc.reference,fontSize:Sf.reference,color:o,borderColor:Hl.reference,verticalAlign:"top",width:ou.reference,height:ou.reference,"&:not([data-loaded])":{[Vc.variable]:r},[Hl.variable]:"colors.white",_dark:{[Hl.variable]:"colors.gray.800"}}},BG={fontSize:Sf.reference,lineHeight:"1"},VG=MP(e=>({badge:Hn(jG,e),excessLabel:Hn(zG,e),container:Hn(NG,e),label:BG}));function Ko(e){const t=e!=="100%"?_P[e]:void 0;return MP({container:{[ou.variable]:t??e,[Sf.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ou.variable]:t??e,[Sf.variable]:`calc(${t??e} / 2.5)`}})}var WG={"2xs":Ko(4),xs:Ko(6),sm:Ko(8),md:Ko(12),lg:Ko(16),xl:Ko(24),"2xl":Ko(32),full:Ko("100%")},UG=LG({baseStyle:VG,sizes:WG,defaultProps:{size:"md"}}),HG={Accordion:PG,Alert:DG,Avatar:UG,Badge:zc,Breadcrumb:GH,Button:tG,Checkbox:m0,CloseButton:uG,Code:pG,Container:mG,Divider:xG,Drawer:gH,Editable:CH,Form:RH,FormError:DH,FormLabel:jH,Heading:BH,Input:st,Kbd:sU,Link:uU,List:hU,Menu:kU,Modal:DU,NumberInput:HU,PinInput:YU,Popover:aH,Progress:pW,Radio:TW,Select:MW,Skeleton:FW,SkipLink:LW,Slider:qW,Spinner:QW,Stat:oU,Switch:uV,Table:vV,Tabs:OV,Tag:UV,Textarea:nW,Tooltip:oW,Card:aG,Stepper:nB},GG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},KG={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},qG="ltr",YG={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},$P={semanticTokens:GG,direction:qG,...JN,components:HG,styles:KG,config:YG};function Cc(e){return typeof e=="function"}function XG(...e){return t=>e.reduce((n,r)=>r(n),t)}var QG=e=>function(...n){let r=[...n],i=n[n.length-1];return AN(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,XG(...r.map(o=>s=>Cc(o)?o(s):FP(s,o)))(i)},lC=QG($P);function FP(...e){return Zr({},...e,DP)}function DP(e,t,n,r){if((Cc(e)||Cc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=Cc(e)?e(...i):e,s=Cc(t)?t(...i):t;return Zr({},o,s,DP)}}function ZG({colorScheme:e,components:t}){return n=>{let r=Object.keys(n.components||{});return Array.isArray(t)?r=t:Cr(t)&&(r=Object.keys(t)),FP(n,{components:Object.fromEntries(r.map(i=>[i,{defaultProps:{colorScheme:e}}]))})}}function JG(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function eK(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,o,s);return u.set(i,c),c}},LP=tK(eK);function jP(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var zP=e=>jP(e,t=>t!=null);function nK(e){return typeof e=="function"}function NP(e,...t){return nK(e)?e(...t):e}const BP=1/60*1e3,rK=typeof performance<"u"?()=>performance.now():()=>Date.now(),VP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rK()),BP);function iK(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&i,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&i&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=iK(()=>_f=!0),e),{}),aK=Vf.reduce((e,t)=>{const n=Cm[t];return e[t]=(r,i=!1,o=!1)=>(_f||uK(),n.schedule(r,i,o)),e},{}),sK=Vf.reduce((e,t)=>(e[t]=Cm[t].cancel,e),{});Vf.reduce((e,t)=>(e[t]=()=>Cm[t].process(Gl),e),{});const lK=e=>Cm[e].process(Gl),WP=e=>{_f=!1,Gl.delta=v2?BP:Math.max(Math.min(e-Gl.timestamp,oK),1),Gl.timestamp=e,g2=!0,Vf.forEach(lK),g2=!1,_f&&(v2=!1,VP(WP))},uK=()=>{_f=!0,v2=!0,g2||VP(WP)},uC=()=>Gl;var cK=typeof Element<"u",fK=typeof Map=="function",dK=typeof Set=="function",pK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ch(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ch(e[r],t[r]))return!1;return!0}var o;if(fK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ch(r.value[1],t.get(r.value[0])))return!1;return!0}if(dK&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pK&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(cK&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ch(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var hK=function(t,n){try{return Ch(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const mK=hb(hK);function UP(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:o,colorMode:s}=cz(),u=e?LP(o,`components.${e}`):void 0,c=r||u,f=Zr({theme:o,colorMode:s},(n=c==null?void 0:c.defaultProps)!=null?n:{},zP(JG(i,["children"]))),p=_.useRef({});if(c){const m=TN(c)(f);mK(p.current,m)||(p.current=m)}return p.current}function Wi(e,t={}){return UP(e,t)}function Ui(e,t={}){return UP(e,t)}var vK=new Set([...hN,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),gK=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yK(e){return gK.has(e)||!vK.has(e)}function bK(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function xK(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var wK=/^((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)-.*))$/,SK=K4(function(e){return wK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_K=SK,CK=function(t){return t!=="theme"},cC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_K:CK},fC=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},kK=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return J4(n,r,i),VD(function(){return eT(n,r,i)}),null},TK=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var u=fC(t,n,r),c=u||cC(i),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,g=1;gt=>{const{theme:n,css:r,__css:i,sx:o,...s}=t,u=jP(s,(h,m)=>vN(m)),c=NP(e,t),f=bK({},i,c,zP(u),o),p=xP(f)(t.theme);return r?[p,r]:p};function Py(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yK);const i=AK({baseStyle:n}),o=PK(e,r)(i);return xa.forwardRef(function(c,f){const{colorMode:p,forced:h}=Fr();return xa.createElement(o,{ref:f,"data-theme":h?p:void 0,...c})})}function RK(){const e=new Map;return new Proxy(Py,{apply(t,n,r){return Py(...r)},get(t,n){return e.has(n)||e.set(n,Py(n)),e.get(n)}})}var oe=RK();function ye(e){return _.forwardRef(e)}function HP(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=_.createContext(void 0);i.displayName=r;function o(){var s;const u=_.useContext(i);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,o),c}return u}return[i.Provider,o,i]}function OK(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=_.useMemo(()=>pN(n),[n]);return x.jsxs(HD,{theme:i,children:[x.jsx(IK,{root:t}),r]})}function IK({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return x.jsx(nm,{styles:n=>({[t]:n.__cssVars})})}HP({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function MK(e){return HP({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function $K(){const{colorMode:e}=Fr();return x.jsx(nm,{styles:t=>{const n=LP(t,"styles.global"),r=NP(n,{theme:t,colorMode:e});return r?xP(r)(t):void 0}})}var GP=_.createContext({getDocument(){return document},getWindow(){return window}});GP.displayName="EnvironmentContext";function KP(e){const{children:t,environment:n,disabled:r}=e,i=_.useRef(null),o=_.useMemo(()=>n||{getDocument:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument)!=null?c:document},getWindow:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?c:window}},[n]),s=!r||!n;return x.jsxs(GP.Provider,{value:o,children:[t,s&&x.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}KP.displayName="EnvironmentProvider";var FK=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:u,cssVarsRoot:c,disableEnvironment:f,disableGlobalStyle:p}=e,h=x.jsx(KP,{environment:u,disabled:f,children:t});return x.jsx(OK,{theme:s,cssVarsRoot:c,children:x.jsxs(dP,{colorModeManager:n,options:s.config,children:[o?x.jsx(qD,{scope:i}):x.jsx(KD,{}),!p&&x.jsx($K,{}),r?x.jsx(sT,{zIndex:r,children:h}):h]})})},DK=(e,t)=>e.find(n=>n.id===t);function pC(e,t){const n=qP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function qP(e,t){for(const[n,r]of Object.entries(e))if(DK(r,t))return n}function LK(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function jK(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}function Xt(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function zK(e,t){const n=Xt(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function _a(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const YP=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),km=_.createContext({}),Wf=_.createContext(null),Tm=typeof document<"u",Ex=Tm?_.useLayoutEffect:_.useEffect,XP=_.createContext({strict:!1}),Px=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),NK="framerAppearId",QP="data-"+Px(NK);function BK(e,t,n,r){const{visualElement:i}=_.useContext(km),o=_.useContext(XP),s=_.useContext(Wf),u=_.useContext(YP).reducedMotion,c=_.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;_.useInsertionEffect(()=>{f&&f.update(n,s)});const p=_.useRef(!!(n[QP]&&!window.HandoffComplete));return Ex(()=>{f&&(f.render(),p.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(f.updateFeatures(),!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),f}function Al(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VK(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Al(n)&&(n.current=r))},[t])}function Cf(e){return typeof e=="string"||Array.isArray(e)}function Em(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ax=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rx=["initial",...Ax];function Pm(e){return Em(e.animate)||Rx.some(t=>Cf(e[t]))}function ZP(e){return!!(Pm(e)||e.variants)}function WK(e,t){if(Pm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cf(n)?n:void 0,animate:Cf(r)?r:void 0}}return e.inherit!==!1?t:{}}function UK(e){const{initial:t,animate:n}=WK(e,_.useContext(km));return _.useMemo(()=>({initial:t,animate:n}),[hC(t),hC(n)])}function hC(e){return Array.isArray(e)?e.join(" "):e}const mC={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"]},kf={};for(const e in mC)kf[e]={isEnabled:t=>mC[e].some(n=>!!t[n])};function HK(e){for(const t in e)kf[t]={...kf[t],...e[t]}}const Ox=_.createContext({}),JP=_.createContext({}),GK=Symbol.for("motionComponentSymbol");function KK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&HK(e);function o(u,c){let f;const p={..._.useContext(YP),...u,layoutId:qK(u)},{isStatic:h}=p,m=UK(u),g=r(u,h);if(!h&&Tm){m.visualElement=BK(i,g,p,t);const w=_.useContext(JP),b=_.useContext(XP).strict;m.visualElement&&(f=m.visualElement.loadFeatures(p,b,e,w))}return _.createElement(km.Provider,{value:m},f&&m.visualElement?_.createElement(f,{visualElement:m.visualElement,...p}):null,n(i,u,VK(g,m.visualElement,c),g,h,m.visualElement))}const s=_.forwardRef(o);return s[GK]=i,s}function qK({layoutId:e}){const t=_.useContext(Ox).id;return t&&e!==void 0?t+"-"+e:e}function YK(e){function t(r,i={}){return KK(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const XK=["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 Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(XK.indexOf(e)>-1||/[A-Z]/.test(e))}const y0={};function QK(e){Object.assign(y0,e)}const Uf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Os=new Set(Uf);function e6(e,{layout:t,layoutId:n}){return Os.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!y0[e]||e==="opacity")}const dr=e=>!!(e&&e.getVelocity),ZK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JK=Uf.length;function eq(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),n6=t6("--"),y2=t6("var(--"),tq=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,nq=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ca=(e,t,n)=>Math.min(Math.max(n,e),t),Is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wc={...Is,transform:e=>Ca(0,1,e)},zp={...Is,default:1},Uc=e=>Math.round(e*1e5)/1e5,Am=/(-)?([\d]*\.?[\d])+/g,r6=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rq=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Hf(e){return typeof e=="string"}const Gf=e=>({test:t=>Hf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Gf("deg"),Ni=Gf("%"),Ee=Gf("px"),iq=Gf("vh"),oq=Gf("vw"),vC={...Ni,parse:e=>Ni.parse(e)/100,transform:e=>Ni.transform(e*100)},gC={...Is,transform:Math.round},i6={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,size:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:zp,scaleX:zp,scaleY:zp,scaleZ:zp,skew:Yo,skewX:Yo,skewY:Yo,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:Wc,originX:vC,originY:vC,originZ:Ee,zIndex:gC,fillOpacity:Wc,strokeOpacity:Wc,numOctaves:gC};function Mx(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let c=!1,f=!1,p=!0;for(const h in t){const m=t[h];if(n6(h)){o[h]=m;continue}const g=i6[h],w=nq(m,g);if(Os.has(h)){if(c=!0,s[h]=w,!p)continue;m!==(g.default||0)&&(p=!1)}else h.startsWith("origin")?(f=!0,u[h]=w):i[h]=w}if(t.transform||(c||r?i.transform=eq(e.transform,n,p,r):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:g=0}=u;i.transformOrigin=`${h} ${m} ${g}`}}const $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o6(e,t,n){for(const r in t)!dr(t[r])&&!e6(r,n)&&(e[r]=t[r])}function aq({transformTemplate:e},t,n){return _.useMemo(()=>{const r=$x();return Mx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sq(e,t,n){const r=e.style||{},i={};return o6(i,r,e),Object.assign(i,aq(e,t,n)),e.transformValues?e.transformValues(i):i}function lq(e,t,n){const r={},i=sq(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const uq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function b0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uq.has(e)}let a6=e=>!b0(e);function cq(e){e&&(a6=t=>t.startsWith("on")?!b0(t):e(t))}try{cq(require("@emotion/is-prop-valid").default)}catch{}function fq(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(a6(i)||n===!0&&b0(i)||!t&&!b0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yC(e,t,n){return typeof e=="string"?e:Ee.transform(t+n*e)}function dq(e,t,n){const r=yC(t,e.x,e.width),i=yC(n,e.y,e.height);return`${r} ${i}`}const pq={offset:"stroke-dashoffset",array:"stroke-dasharray"},hq={offset:"strokeDashoffset",array:"strokeDasharray"};function mq(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?pq:hq;e[o.offset]=Ee.transform(-r);const s=Ee.transform(t),u=Ee.transform(n);e[o.array]=`${s} ${u}`}function Fx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:c=0,...f},p,h,m){if(Mx(e,f,p,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:w,dimensions:b}=e;g.transform&&(b&&(w.transform=g.transform),delete g.transform),b&&(i!==void 0||o!==void 0||w.transform)&&(w.transformOrigin=dq(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&mq(g,s,u,c,!1)}const s6=()=>({...$x(),attrs:{}}),Dx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vq(e,t,n,r){const i=_.useMemo(()=>{const o=s6();return Fx(o,t,{enableHardwareAcceleration:!1},Dx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};o6(o,e.style,e),i.style={...o,...i.style}}return i}function gq(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Ix(n)?vq:lq)(r,o,s,n),p={...fq(r,typeof n=="string",e),...c,ref:i},{children:h}=r,m=_.useMemo(()=>dr(h)?h.get():h,[h]);return _.createElement(n,{...p,children:m})}}function l6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const u6=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 c6(e,t,n,r){l6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(u6.has(i)?i:Px(i),t.attrs[i])}function Lx(e,t){const{style:n}=e,r={};for(const i in n)(dr(n[i])||t.style&&dr(t.style[i])||e6(i,e))&&(r[i]=n[i]);return r}function f6(e,t){const n=Lx(e,t);for(const r in e)if(dr(e[r])||dr(t[r])){const i=Uf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function d6(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const x0=e=>Array.isArray(e),yq=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),bq=e=>x0(e)?e[e.length-1]||0:e;function kh(e){const t=dr(e)?e.get():e;return yq(t)?t.toValue():t}function xq({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:wq(r,i,o,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const p6=e=>(t,n)=>{const r=_.useContext(km),i=_.useContext(Wf),o=()=>xq(e,t,r,i);return n?o():d6(o)};function wq(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=kh(o[m]);let{initial:s,animate:u}=e;const c=Pm(e),f=ZP(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Em(h)&&(Array.isArray(h)?h:[h]).forEach(g=>{const w=jx(e,g);if(!w)return;const{transitionEnd:b,transition:T,...S}=w;for(const y in S){let C=S[y];if(Array.isArray(C)){const P=p?C.length-1:0;C=C[P]}C!==null&&(i[y]=C)}for(const y in b)i[y]=b[y]}),i}const Qt=e=>e;class bC{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Sq(e){let t=new bC,n=new bC,r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&i,m=h?t:n;return f&&s.add(c),m.add(c)&&h&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f(h[m]=Sq(()=>n=!0),h),{}),s=h=>o[h].process(i),u=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,_q),1),i.timestamp=h,i.isProcessing=!0,Np.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Np.reduce((h,m)=>{const g=o[m];return h[m]=(w,b=!1,T=!1)=>(n||c(),g.schedule(w,b,T)),h},{}),cancel:h=>Np.forEach(m=>o[m].cancel(h)),state:i,steps:o}}const{schedule:Tt,cancel:Ao,state:In,steps:Ay}=Cq(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),kq={useVisualState:p6({scrapeMotionValuesFromProps:f6,createRenderState:s6,onMount:(e,t,{renderState:n,latestValues:r})=>{Tt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Tt.render(()=>{Fx(n,r,{enableHardwareAcceleration:!1},Dx(t.tagName),e.transformTemplate),c6(t,n)})}})},Tq={useVisualState:p6({scrapeMotionValuesFromProps:Lx,createRenderState:$x})};function Eq(e,{forwardMotionProps:t=!1},n,r){return{...Ix(e)?kq:Tq,preloadedFeatures:n,useRender:gq(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const h6=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Rm(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pq=e=>t=>h6(t)&&e(t,Rm(t));function wo(e,t,n,r){return yo(e,t,Pq(n),r)}const Aq=(e,t)=>n=>t(e(n)),ma=(...e)=>e.reduce(Aq);function m6(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const xC=m6("dragHorizontal"),wC=m6("dragVertical");function v6(e){let t=!1;if(e==="y")t=wC();else if(e==="x")t=xC();else{const n=xC(),r=wC();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function g6(){const e=v6(!0);return e?(e(),!1):!0}class Ia{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SC(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||g6())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&Tt.update(()=>u[r](o,s))};return wo(e.current,n,i,{passive:!e.getProps()[r]})}class Rq extends Ia{mount(){this.unmount=ma(SC(this.node,!0),SC(this.node,!1))}unmount(){}}class Oq extends Ia{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=ma(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const y6=(e,t)=>t?e===t?!0:y6(e,t.parentElement):!1;function Ry(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Rm(n))}class Iq extends Ia{constructor(){super(...arguments),this.removeStartListeners=Qt,this.removeEndListeners=Qt,this.removeAccessibleListeners=Qt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=wo(window,"pointerup",(u,c)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:p,globalTapTarget:h}=this.node.getProps();Tt.update(()=>{!h&&!y6(this.node.current,u.target)?p&&p(u,c):f&&f(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=wo(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ma(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||Ry("up",(c,f)=>{const{onTap:p}=this.node.getProps();p&&Tt.update(()=>p(c,f))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),Ry("down",(u,c)=>{this.startPress(u,c)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ry("cancel",(o,s)=>this.cancelPress(o,s))},i=yo(this.node.current,"blur",r);this.removeAccessibleListeners=ma(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Tt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!g6()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Tt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=wo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ma(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const b2=new WeakMap,Oy=new WeakMap,Mq=e=>{const t=b2.get(e.target);t&&t(e)},$q=e=>{e.forEach(Mq)};function Fq({root:e,...t}){const n=e||document;Oy.has(n)||Oy.set(n,{});const r=Oy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($q,{root:e,...t})),r[i]}function Dq(e,t,n){const r=Fq(t);return b2.set(e,n),r.observe(e),()=>{b2.delete(e),r.unobserve(e)}}const Lq={some:0,all:1};class jq extends Ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Lq[i]},u=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:h}=this.node.getProps(),m=f?p:h;m&&m(c)};return Dq(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zq(t,n))&&this.startObserver()}unmount(){}}function zq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Nq={inView:{Feature:jq},tap:{Feature:Iq},focus:{Feature:Oq},hover:{Feature:Rq}};function b6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Vq(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Om(e,t,n){const r=e.getProps();return jx(r,t,n!==void 0?n:r.custom,Bq(e),Vq(e))}let zx=Qt;const ds=e=>e*1e3,So=e=>e/1e3,Wq={current:!1},x6=e=>Array.isArray(e)&&typeof e[0]=="number";function w6(e){return!!(!e||typeof e=="string"&&S6[e]||x6(e)||Array.isArray(e)&&e.every(w6))}const kc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,S6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kc([0,.65,.55,1]),circOut:kc([.55,0,1,.45]),backIn:kc([.31,.01,.66,-.59]),backOut:kc([.33,1.53,.69,.99])};function _6(e){if(e)return x6(e)?kc(e):Array.isArray(e)?e.map(_6):S6[e]}function Uq(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:c}={}){const f={[t]:n};c&&(f.offset=c);const p=_6(u);return Array.isArray(p)&&(f.easing=p),e.animate(f,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Hq(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const C6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gq=1e-7,Kq=12;function qq(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=C6(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Gq&&++uqq(o,0,1,e,n);return o=>o===0||o===1?o:C6(i(o),t,r)}const Yq=Kf(.42,0,1,1),Xq=Kf(0,0,.58,1),k6=Kf(.42,0,.58,1),Qq=e=>Array.isArray(e)&&typeof e[0]!="number",T6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,E6=e=>t=>1-e(1-t),Nx=e=>1-Math.sin(Math.acos(e)),P6=E6(Nx),Zq=T6(Nx),A6=Kf(.33,1.53,.69,.99),Bx=E6(A6),Jq=T6(Bx),eY=e=>(e*=2)<1?.5*Bx(e):.5*(2-Math.pow(2,-10*(e-1))),tY={linear:Qt,easeIn:Yq,easeInOut:k6,easeOut:Xq,circIn:Nx,circInOut:Zq,circOut:P6,backIn:Bx,backInOut:Jq,backOut:A6,anticipate:eY},_C=e=>{if(Array.isArray(e)){zx(e.length===4);const[t,n,r,i]=e;return Kf(t,n,r,i)}else if(typeof e=="string")return tY[e];return e},Vx=(e,t)=>n=>!!(Hf(n)&&rq.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),R6=(e,t,n)=>r=>{if(!Hf(r))return r;const[i,o,s,u]=r.match(Am);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},nY=e=>Ca(0,255,e),Iy={...Is,transform:e=>Math.round(nY(e))},as={test:Vx("rgb","red"),parse:R6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Iy.transform(e)+", "+Iy.transform(t)+", "+Iy.transform(n)+", "+Uc(Wc.transform(r))+")"};function rY(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const x2={test:Vx("#"),parse:rY,transform:as.transform},Rl={test:Vx("hsl","hue"),parse:R6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ni.transform(Uc(t))+", "+Ni.transform(Uc(n))+", "+Uc(Wc.transform(r))+")"},Bn={test:e=>as.test(e)||x2.test(e)||Rl.test(e),parse:e=>as.test(e)?as.parse(e):Rl.test(e)?Rl.parse(e):x2.parse(e),transform:e=>Hf(e)?e:e.hasOwnProperty("red")?as.transform(e):Rl.transform(e)},Lt=(e,t,n)=>-n*e+n*t+e;function My(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 iY({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=My(c,u,e+1/3),o=My(c,u,e),s=My(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const $y=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},oY=[x2,as,Rl],aY=e=>oY.find(t=>t.test(e));function CC(e){const t=aY(e);let n=t.parse(e);return t===Rl&&(n=iY(n)),n}const O6=(e,t)=>{const n=CC(e),r=CC(t),i={...n};return o=>(i.red=$y(n.red,r.red,o),i.green=$y(n.green,r.green,o),i.blue=$y(n.blue,r.blue,o),i.alpha=Lt(n.alpha,r.alpha,o),as.transform(i))};function sY(e){var t,n;return isNaN(e)&&Hf(e)&&(((t=e.match(Am))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r6))===null||n===void 0?void 0:n.length)||0)>0}const I6={regex:tq,countKey:"Vars",token:"${v}",parse:Qt},M6={regex:r6,countKey:"Colors",token:"${c}",parse:Bn.parse},$6={regex:Am,countKey:"Numbers",token:"${n}",parse:Is.parse};function Fy(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function w0(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Fy(n,I6),Fy(n,M6),Fy(n,$6),n}function F6(e){return w0(e).values}function D6(e){const{values:t,numColors:n,numVars:r,tokenised:i}=w0(e),o=t.length;return s=>{let u=i;for(let c=0;ctypeof e=="number"?0:e;function uY(e){const t=F6(e);return D6(e)(t.map(lY))}const ka={test:sY,parse:F6,createTransformer:D6,getAnimatableNone:uY},L6=(e,t)=>n=>`${n>0?t:e}`;function j6(e,t){return typeof e=="number"?n=>Lt(e,t,n):Bn.test(e)?O6(e,t):e.startsWith("var(")?L6(e,t):N6(e,t)}const z6=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>j6(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=j6(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},N6=(e,t)=>{const n=ka.createTransformer(t),r=w0(e),i=w0(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ma(z6(r.values,i.values),n):L6(e,t)},Tf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kC=(e,t)=>n=>Lt(e,t,n);function fY(e){return typeof e=="number"?kC:typeof e=="string"?Bn.test(e)?O6:N6:Array.isArray(e)?z6:typeof e=="object"?cY:kC}function dY(e,t,n){const r=[],i=n||fY(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dY(t,r,i),u=s.length,c=f=>{let p=0;if(u>1)for(;pc(Ca(e[0],e[o-1],f)):c}function pY(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Tf(0,t,r);e.push(Lt(n,1,i))}}function hY(e){const t=[0];return pY(t,e.length-1),t}function mY(e,t){return e.map(n=>n*t)}function vY(e,t){return e.map(()=>t||k6).splice(0,e.length-1)}function S0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Qq(r)?r.map(_C):_C(r),o={done:!1,value:t[0]},s=mY(n&&n.length===t.length?n:hY(t),e),u=B6(s,t,{ease:Array.isArray(i)?i:vY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}function V6(e,t){return t?e*(1e3/t):0}const gY=5;function W6(e,t,n){const r=Math.max(t-gY,0);return V6(n-e(r),t-r)}const Dy=.001,yY=.01,bY=10,xY=.05,wY=1;function SY({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Ca(xY,wY,s),e=Ca(yY,bY,So(e)),s<1?(i=f=>{const p=f*s,h=p*e,m=p-n,g=w2(f,s),w=Math.exp(-h);return Dy-m/g*w},o=f=>{const h=f*s*e,m=h*n+n,g=Math.pow(s,2)*Math.pow(f,2)*e,w=Math.exp(-h),b=w2(Math.pow(f,2),s);return(-i(f)+Dy>0?-1:1)*((m-g)*w)/b}):(i=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-Dy+p*h},o=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=CY(i,o,u);if(e=ds(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const _Y=12;function CY(e,t,n){let r=n;for(let i=1;i<_Y;i++)r=r-e(r)/t(r);return r}function w2(e,t){return e*Math.sqrt(1-t*t)}const kY=["duration","bounce"],TY=["stiffness","damping","mass"];function TC(e,t){return t.some(n=>e[n]!==void 0)}function EY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!TC(e,TY)&&TC(e,kY)){const n=SY(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function U6({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:c,mass:f,duration:p,velocity:h,isResolvedFromDuration:m}=EY({...r,velocity:-So(r.velocity||0)}),g=h||0,w=c/(2*Math.sqrt(u*f)),b=o-i,T=So(Math.sqrt(u/f)),S=Math.abs(b)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let y;if(w<1){const C=w2(T,w);y=P=>{const O=Math.exp(-w*T*P);return o-O*((g+w*T*b)/C*Math.sin(C*P)+b*Math.cos(C*P))}}else if(w===1)y=C=>o-Math.exp(-T*C)*(b+(g+T*b)*C);else{const C=T*Math.sqrt(w*w-1);y=P=>{const O=Math.exp(-w*T*P),$=Math.min(C*P,300);return o-O*((g+w*T*b)*Math.sinh($)+C*b*Math.cosh($))/C}}return{calculatedDuration:m&&p||null,next:C=>{const P=y(C);if(m)s.done=C>=p;else{let O=g;C!==0&&(w<1?O=W6(y,C,P):O=0);const $=Math.abs(O)<=n,I=Math.abs(o-P)<=t;s.done=$&&I}return s.value=s.done?o:P,s}}}function EC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:c,restDelta:f=.5,restSpeed:p}){const h=e[0],m={done:!1,value:h},g=F=>u!==void 0&&Fc,w=F=>u===void 0?c:c===void 0||Math.abs(u-F)-b*Math.exp(-F/r),C=F=>S+y(F),P=F=>{const V=y(F),B=C(F);m.done=Math.abs(V)<=f,m.value=m.done?S:B};let O,$;const I=F=>{g(m.value)&&(O=F,$=U6({keyframes:[m.value,w(m.value)],velocity:W6(C,F,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:p}))};return I(0),{calculatedDuration:null,next:F=>{let V=!1;return!$&&O===void 0&&(V=!0,P(F),I(F)),O!==void 0&&F>O?$.next(F-O):(!V&&P(F),m)}}}const PY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Tt.update(t,!0),stop:()=>Ao(t),now:()=>In.isProcessing?In.timestamp:performance.now()}},PC=2e4;function AC(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=PC?1/0:t}const AY={decay:EC,inertia:EC,tween:S0,keyframes:S0,spring:U6};function _0({autoplay:e=!0,delay:t=0,driver:n=PY,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:c,onStop:f,onComplete:p,onUpdate:h,...m}){let g=1,w=!1,b,T;const S=()=>{T=new Promise(ne=>{b=ne})};S();let y;const C=AY[i]||S0;let P;C!==S0&&typeof r[0]!="number"&&(P=B6([0,100],r,{clamp:!1}),r=[0,100]);const O=C({...m,keyframes:r});let $;u==="mirror"&&($=C({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let I="idle",F=null,V=null,B=null;O.calculatedDuration===null&&o&&(O.calculatedDuration=AC(O));const{calculatedDuration:X}=O;let pe=1/0,he=1/0;X!==null&&(pe=X+s,he=pe*(o+1)-s);let ge=0;const Ae=ne=>{if(V===null)return;g>0&&(V=Math.min(V,ne)),g<0&&(V=Math.min(ne-he/g,V)),F!==null?ge=F:ge=Math.round(ne-V)*g;const be=ge-t*(g>=0?1:-1),ae=g>=0?be<0:be>he;ge=Math.max(be,0),I==="finished"&&F===null&&(ge=he);let ce=ge,le=O;if(o){const ct=Math.min(ge,he)/pe;let _t=Math.floor(ct),Xe=ct%1;!Xe&&ct>=1&&(Xe=1),Xe===1&&_t--,_t=Math.min(_t,o+1),!!(_t%2)&&(u==="reverse"?(Xe=1-Xe,s&&(Xe-=s/pe)):u==="mirror"&&(le=$)),ce=Ca(0,1,Xe)*pe}const Te=ae?{done:!1,value:r[0]}:le.next(ce);P&&(Te.value=P(Te.value));let{done:et}=Te;!ae&&X!==null&&(et=g>=0?ge>=he:ge<=0);const Ue=F===null&&(I==="finished"||I==="running"&&et);return h&&h(Te.value),Ue&&W(),Te},se=()=>{y&&y.stop(),y=void 0},G=()=>{I="idle",se(),b(),S(),V=B=null},W=()=>{I="finished",p&&p(),se(),b()},J=()=>{if(w)return;y||(y=n(Ae));const ne=y.now();c&&c(),F!==null?V=ne-F:(!V||I==="finished")&&(V=ne),I==="finished"&&S(),B=V,F=null,I="running",y.start()};e&&J();const te={then(ne,be){return T.then(ne,be)},get time(){return So(ge)},set time(ne){ne=ds(ne),ge=ne,F!==null||!y||g===0?F=ne:V=y.now()-ne/g},get duration(){const ne=O.calculatedDuration===null?AC(O):O.calculatedDuration;return So(ne)},get speed(){return g},set speed(ne){ne===g||!y||(g=ne,te.time=So(ge))},get state(){return I},play:J,pause:()=>{I="paused",F=ge},stop:()=>{w=!0,I!=="idle"&&(I="idle",f&&f(),G())},cancel:()=>{B!==null&&Ae(B),G()},complete:()=>{I="finished"},sample:ne=>(V=0,Ae(ne))};return te}function RY(e){let t;return()=>(t===void 0&&(t=e()),t)}const OY=RY(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),IY=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Bp=10,MY=2e4,$Y=(e,t)=>t.type==="spring"||e==="backgroundColor"||!w6(t.ease);function FY(e,t,{onUpdate:n,onComplete:r,...i}){if(!(OY()&&IY.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,c,f=!1;const p=()=>{c=new Promise(C=>{u=C})};p();let{keyframes:h,duration:m=300,ease:g,times:w}=i;if($Y(t,i)){const C=_0({...i,repeat:0,delay:0});let P={done:!1,value:h[0]};const O=[];let $=0;for(;!P.done&&${f=!1,b.cancel()},S=()=>{f=!0,Tt.update(T),u(),p()};return b.onfinish=()=>{f||(e.set(Hq(h,i)),r&&r(),S())},{then(C,P){return c.then(C,P)},attachTimeline(C){return b.timeline=C,b.onfinish=null,Qt},get time(){return So(b.currentTime||0)},set time(C){b.currentTime=ds(C)},get speed(){return b.playbackRate},set speed(C){b.playbackRate=C},get duration(){return So(m)},play:()=>{s||(b.play(),Ao(T))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:C}=b;if(C){const P=_0({...i,autoplay:!1});e.setWithVelocity(P.sample(C-Bp).value,P.sample(C).value,Bp)}S()},complete:()=>{f||b.finish()},cancel:S}}function DY({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Qt,pause:Qt,stop:Qt,then:o=>(o(),Promise.resolve()),cancel:Qt,complete:Qt});return t?_0({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const LY={type:"spring",stiffness:500,damping:25,restSpeed:10},jY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zY={type:"keyframes",duration:.8},NY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BY=(e,{keyframes:t})=>t.length>2?zY:Os.has(e)?e.startsWith("scale")?jY(t[1]):LY:NY,S2=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ka.test(t)||t==="0")&&!t.startsWith("url(")),VY=new Set(["brightness","contrast","saturate","opacity"]);function WY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const i=n.replace(r,"");let o=VY.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const UY=/([a-z-]*)\(.*?\)/g,_2={...ka,getAnimatableNone:e=>{const t=e.match(UY);return t?t.map(WY).join(" "):e}},HY={...i6,color:Bn,backgroundColor:Bn,outlineColor:Bn,fill:Bn,stroke:Bn,borderColor:Bn,borderTopColor:Bn,borderRightColor:Bn,borderBottomColor:Bn,borderLeftColor:Bn,filter:_2,WebkitFilter:_2},Wx=e=>HY[e];function H6(e,t){let n=Wx(e);return n!==_2&&(n=ka),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=e=>/^0[^.\s]+$/.test(e);function GY(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||G6(e)}function KY(e,t,n,r){const i=S2(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let u;const c=[];for(let f=0;fi=>{const o=Ux(r,e)||{},s=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ds(s);const c=KY(t,e,n,o),f=c[0],p=c[c.length-1],h=S2(e,f),m=S2(e,p);let g={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:w=>{t.set(w),o.onUpdate&&o.onUpdate(w)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(qY(o)||(g={...g,...BY(e,g)}),g.duration&&(g.duration=ds(g.duration)),g.repeatDelay&&(g.repeatDelay=ds(g.repeatDelay)),!h||!m||Wq.current||o.type===!1||YY.skipAnimations)return DY(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const w=FY(t,e,g);if(w)return w}return _0(g)};function C0(e){return!!(dr(e)&&e.add)}const K6=e=>/^\-?\d*\.?\d+$/.test(e);function Gx(e,t){e.indexOf(t)===-1&&e.push(t)}function Kx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qx{constructor(){this.subscriptions=[]}add(t){return Gx(this.subscriptions,t),()=>Kx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class QY{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=In;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Tt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Tt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=XY(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Tt.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?V6(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function au(e,t){return new QY(e,t)}const q6=e=>t=>t.test(e),ZY={test:e=>e==="auto",parse:e=>e},Y6=[Is,Ee,Ni,Yo,oq,iq,ZY],cc=e=>Y6.find(q6(e)),JY=[...Y6,Bn,ka],eX=e=>JY.find(q6(e));function tX(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,au(n))}function nX(e,t){const n=Om(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const u=bq(o[s]);tX(e,s,u)}}function rX(e,t,n){var r,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;uc.remove(h))),f.push(T)}return s&&Promise.all(f).then(()=>{s&&nX(e,s)}),f}function C2(e,t,n={}){const r=Om(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(X6(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:h}=i;return lX(e,t,f+c,p,h,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,f]=u==="beforeChildren"?[o,s]:[s,o];return c().then(()=>f())}else return Promise.all([o(),s(n.delay)])}function lX(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,c=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(uX).forEach((f,p)=>{f.notify("AnimationStart",t),s.push(C2(f,t,{...o,delay:n+c(p)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function uX(e,t){return e.sortNodePosition(t)}function cX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>C2(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=C2(e,t,n);else{const i=typeof t=="function"?Om(e,t,n.custom):t;r=Promise.all(X6(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const fX=[...Ax].reverse(),dX=Ax.length;function pX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cX(e,n,r)))}function hX(e){let t=pX(e);const n=vX();let r=!0;const i=(c,f)=>{const p=Om(e,f);if(p){const{transition:h,transitionEnd:m,...g}=p;c={...c,...g,...m}}return c};function o(c){t=c(e)}function s(c,f){const p=e.getProps(),h=e.getVariantContext(!0)||{},m=[],g=new Set;let w={},b=1/0;for(let S=0;Sb&&O,B=!1;const X=Array.isArray(P)?P:[P];let pe=X.reduce(i,{});$===!1&&(pe={});const{prevResolvedValues:he={}}=C,ge={...he,...pe},Ae=se=>{V=!0,g.has(se)&&(B=!0,g.delete(se)),C.needsAnimating[se]=!0};for(const se in ge){const G=pe[se],W=he[se];if(w.hasOwnProperty(se))continue;let J=!1;x0(G)&&x0(W)?J=!b6(G,W):J=G!==W,J?G!==void 0?Ae(se):g.add(se):G!==void 0&&g.has(se)?Ae(se):C.protectedKeys[se]=!0}C.prevProp=P,C.prevResolvedValues=pe,C.isActive&&(w={...w,...pe}),r&&e.blockInitialAnimation&&(V=!1),V&&(!I||B)&&m.push(...X.map(se=>({animation:se,options:{type:y,...c}})))}if(g.size){const S={};g.forEach(y=>{const C=e.getBaseTarget(y);C!==void 0&&(S[y]=C)}),m.push({animation:S})}let T=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(m):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var w;return(w=g.animationState)===null||w===void 0?void 0:w.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n}}function mX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!b6(t,e):!1}function Ga(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vX(){return{animate:Ga(!0),whileInView:Ga(),whileHover:Ga(),whileTap:Ga(),whileDrag:Ga(),whileFocus:Ga(),exit:Ga()}}class gX extends Ia{constructor(t){super(t),t.animationState||(t.animationState=hX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Em(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let yX=0;class bX extends Ia{constructor(){super(...arguments),this.id=yX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xX={animation:{Feature:gX},exit:{Feature:bX}},RC=(e,t)=>Math.abs(e-t);function wX(e,t){const n=RC(e.x,t.x),r=RC(e.y,t.y);return Math.sqrt(n**2+r**2)}class Q6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=jy(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=wX(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:w}=h,{timestamp:b}=In;this.history.push({...w,timestamp:b});const{onStart:T,onMove:S}=this.handlers;m||(T&&T(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ly(m,this.transformPagePoint),Tt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:w,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=jy(h.type==="pointercancel"?this.lastMoveEventInfo:Ly(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,T),w&&w(h,T)},!h6(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Rm(t),u=Ly(s,this.transformPagePoint),{point:c}=u,{timestamp:f}=In;this.history=[{...c,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,jy(u,this.history)),this.removeListeners=ma(wo(this.contextWindow,"pointermove",this.handlePointerMove),wo(this.contextWindow,"pointerup",this.handlePointerUp),wo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ao(this.updatePoint)}}function Ly(e,t){return t?{point:t(e.point)}:e}function OC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jy({point:e},t){return{point:e,delta:OC(e,Z6(t)),offset:OC(e,SX(t)),velocity:_X(t,.1)}}function SX(e){return e[0]}function Z6(e){return e[e.length-1]}function _X(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Z6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ds(t)));)n--;if(!r)return{x:0,y:0};const o=So(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Er(e){return e.max-e.min}function k2(e,t=0,n=.01){return Math.abs(e-t)<=n}function IC(e,t,n,r=.5){e.origin=r,e.originPoint=Lt(t.min,t.max,e.origin),e.scale=Er(n)/Er(t),(k2(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Lt(n.min,n.max,e.origin)-e.originPoint,(k2(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Hc(e,t,n,r){IC(e.x,t.x,n.x,r?r.originX:void 0),IC(e.y,t.y,n.y,r?r.originY:void 0)}function MC(e,t,n){e.min=n.min+t.min,e.max=e.min+Er(t)}function CX(e,t,n){MC(e.x,t.x,n.x),MC(e.y,t.y,n.y)}function $C(e,t,n){e.min=t.min-n.min,e.max=e.min+Er(t)}function Gc(e,t,n){$C(e.x,t.x,n.x),$C(e.y,t.y,n.y)}function kX(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Lt(n,e,r.max):Math.min(e,n)),e}function FC(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 TX(e,{top:t,left:n,bottom:r,right:i}){return{x:FC(e.x,n,i),y:FC(e.y,t,r)}}function DC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Tf(t.min,t.max-r,e.min):r>i&&(n=Tf(e.min,e.max-i,t.min)),Ca(0,1,n)}function AX(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 T2=.35;function RX(e=T2){return e===!1?e=0:e===!0&&(e=T2),{x:LC(e,"left","right"),y:LC(e,"top","bottom")}}function LC(e,t,n){return{min:jC(e,t),max:jC(e,n)}}function jC(e,t){return typeof e=="number"?e:e[t]||0}const zC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ol=()=>({x:zC(),y:zC()}),NC=()=>({min:0,max:0}),en=()=>({x:NC(),y:NC()});function qr(e){return[e("x"),e("y")]}function J6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function IX(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 zy(e){return e===void 0||e===1}function E2({scale:e,scaleX:t,scaleY:n}){return!zy(e)||!zy(t)||!zy(n)}function Ya(e){return E2(e)||eA(e)||e.z||e.rotate||e.rotateX||e.rotateY}function eA(e){return BC(e.x)||BC(e.y)}function BC(e){return e&&e!=="0%"}function k0(e,t,n){const r=e-n,i=t*r;return n+i}function VC(e,t,n,r,i){return i!==void 0&&(e=k0(e,i,r)),k0(e,n,r)+t}function P2(e,t=0,n=1,r,i){e.min=VC(e.min,t,n,r,i),e.max=VC(e.max,t,n,r,i)}function tA(e,{x:t,y:n}){P2(e.x,t.translate,t.scale,t.originPoint),P2(e.y,n.translate,n.scale,n.originPoint)}function MX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Jo(e,t){e.min=e.min+t,e.max=e.max+t}function UC(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Lt(e.min,e.max,o);P2(e,t[n],t[r],s,t.scale)}const $X=["x","scaleX","originX"],FX=["y","scaleY","originY"];function Il(e,t){UC(e.x,t,$X),UC(e.y,t,FX)}function nA(e,t){return J6(IX(e.getBoundingClientRect(),t))}function DX(e,t,n){const r=nA(e,n),{scroll:i}=t;return i&&(Jo(r.x,i.offset.x),Jo(r.y,i.offset.y)),r}const rA=({current:e})=>e?e.ownerDocument.defaultView:null,LX=new WeakMap;class jX{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Rm(p,"page").point)},o=(p,h)=>{const{drag:m,dragPropagation:g,onDragStart:w}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=v6(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qr(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Ni.test(S)){const{projection:y}=this.visualElement;if(y&&y.layout){const C=y.layout.layoutBox[T];C&&(S=Er(C)*(parseFloat(S)/100))}}this.originPoint[T]=S}),w&&Tt.update(()=>w(p,h),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(p,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:w,onDrag:b}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:T}=h;if(g&&this.currentDirection===null){this.currentDirection=zX(T),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),b&&b(p,h)},u=(p,h)=>this.stop(p,h),c=()=>qr(p=>{var h;return this.getAnimationState(p)==="paused"&&((h=this.getAxisMotionValue(p).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Q6(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:rA(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Tt.update(()=>o(t,n))}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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vp(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=kX(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Al(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=TX(i.layoutBox,n):this.constraints=!1,this.elastic=RX(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=AX(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Al(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=DX(r,i.root,this.visualElement.getTransformPagePoint());let s=EX(i.layout.layoutBox,o);if(n){const u=n(OX(s));this.hasMutatedConstraints=!!u,u&&(s=J6(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=qr(p=>{if(!Vp(p,n,this.currentDirection))return;let h=c&&c[p]||{};s&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,w={type:"inertia",velocity:r?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(p,w)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Hx(t,r,0,n))}stopAnimation(){qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){qr(n=>{const{drag:r}=this.getProps();if(!Vp(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-Lt(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Al(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};qr(s=>{const u=this.getAxisMotionValue(s);if(u){const c=u.get();i[s]=PX({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qr(s=>{if(!Vp(s,t,null))return;const u=this.getAxisMotionValue(s),{min:c,max:f}=this.constraints[s];u.set(Lt(c,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;LX.set(this.visualElement,this);const t=this.visualElement.current,n=wo(t,"pointerdown",c=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Al(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=yo(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(qr(p=>{const h=this.getAxisMotionValue(p);h&&(this.originPoint[p]+=c[p].translate,h.set(h.get()+c[p].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=T2,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Vp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class NX extends Ia{constructor(t){super(t),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new jX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const HC=e=>(t,n)=>{e&&Tt.update(()=>e(t,n))};class BX extends Ia{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(t){this.session=new Q6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:HC(t),onStart:HC(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Tt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=wo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function iA(){const e=_.useContext(Wf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function VX(){return WX(_.useContext(Wf))}function WX(e){return e===null?!0:e.isPresent}const Th={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function GC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=GC(e,t.target.x),r=GC(e,t.target.y);return`${n}% ${r}%`}},UX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ka.parse(e);if(i.length>5)return r;const o=ka.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=c;const f=Lt(u,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class HX extends xa.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;QK(GX),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Th.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Tt.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function oA(e){const[t,n]=iA(),r=_.useContext(Ox);return xa.createElement(HX,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(JP),isPresent:t,safeToRemove:n})}const GX={borderRadius:{...fc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomLeftRadius:fc,borderBottomRightRadius:fc,boxShadow:UX},aA=["TopLeft","TopRight","BottomLeft","BottomRight"],KX=aA.length,KC=e=>typeof e=="string"?parseFloat(e):e,qC=e=>typeof e=="number"||Ee.test(e);function qX(e,t,n,r,i,o){i?(e.opacity=Lt(0,n.opacity!==void 0?n.opacity:1,YX(r)),e.opacityExit=Lt(t.opacity!==void 0?t.opacity:1,0,XX(r))):o&&(e.opacity=Lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Tf(e,t,r))}function XC(e,t){e.min=t.min,e.max=t.max}function Gr(e,t){XC(e.x,t.x),XC(e.y,t.y)}function QC(e,t,n,r,i){return e-=t,e=k0(e,1/n,r),i!==void 0&&(e=k0(e,1/i,r)),e}function QX(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ni.test(t)&&(t=parseFloat(t),t=Lt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Lt(o.min,o.max,r);e===o&&(u-=t),e.min=QC(e.min,t,n,u,i),e.max=QC(e.max,t,n,u,i)}function ZC(e,t,[n,r,i],o,s){QX(e,t[n],t[r],t[i],t.scale,o,s)}const ZX=["x","scaleX","originX"],JX=["y","scaleY","originY"];function JC(e,t,n,r){ZC(e.x,t,ZX,n?n.x:void 0,r?r.x:void 0),ZC(e.y,t,JX,n?n.y:void 0,r?r.y:void 0)}function ek(e){return e.translate===0&&e.scale===1}function lA(e){return ek(e.x)&&ek(e.y)}function eQ(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function uA(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function tk(e){return Er(e.x)/Er(e.y)}class tQ{constructor(){this.members=[]}add(t){Gx(this.members,t),t.scheduleRender()}remove(t){if(Kx(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 nk(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const nQ=(e,t)=>e.depth-t.depth;class rQ{constructor(){this.children=[],this.isDirty=!1}add(t){Gx(this.children,t),this.isDirty=!0}remove(t){Kx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nQ),this.isDirty=!1,this.children.forEach(t)}}function iQ(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ao(r),e(o-t))};return Tt.read(r,!0),()=>Ao(r)}function oQ(e){window.MotionDebug&&window.MotionDebug.record(e)}function aQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}function sQ(e,t,n){const r=dr(e)?e:au(e);return r.start(Hx("",r,t,n)),r.animation}const rk=["","X","Y","Z"],lQ={visibility:"hidden"},ik=1e3;let uQ=0;const Xa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function cA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=uQ++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xa.totalNodes=Xa.resolvedTargetDeltas=Xa.recalculatedProjection=0,this.nodes.forEach(dQ),this.nodes.forEach(gQ),this.nodes.forEach(yQ),this.nodes.forEach(pQ),oQ(Xa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=iQ(m,250),Th.hasAnimatedSinceResize&&(Th.hasAnimatedSinceResize=!1,this.nodes.forEach(ak))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||_Q,{onLayoutAnimationStart:T,onLayoutAnimationComplete:S}=p.getProps(),y=!this.targetLayout||!uA(this.targetLayout,w)||g,C=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,C);const P={...Ux(b,"layout"),onPlay:T,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||ak(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}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,Ao(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(bQ),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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;pthis.update()))}clearAllSnapshots(){this.nodes.forEach(hQ),this.sharedNodes.forEach(xQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const O=P/1e3;sk(h.x,s.x,O),sk(h.y,s.y,O),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wQ(this.relativeTarget,this.relativeTargetOrigin,m,O),C&&eQ(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=en()),Gr(C,this.relativeTarget)),b&&(this.animationValues=p,qX(p,f,this.latestValues,O,y,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ao(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tt.update(()=>{Th.hasAnimatedSinceResize=!0,this.currentAnimation=sQ(0,ik,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},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(ik),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&fA(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||en();const h=Er(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Er(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}Gr(u,c),Il(u,p),Hc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tQ),this.sharedNodes.get(s).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const f={};for(let p=0;p{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(ok),this.root.sharedNodes.clear()}}}function cQ(e){e.updateLayout()}function fQ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?qr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],g=Er(m);m.min=r[h].min,m.max=m.min+g}):fA(o,n.layoutBox,r)&&qr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],g=Er(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=Ol();Hc(u,r,n.layoutBox);const c=Ol();s?Hc(c,e.applyTransform(i,!0),n.measuredBox):Hc(c,r,n.layoutBox);const f=!lA(u);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const w=en();Gc(w,n.layoutBox,m.layoutBox);const b=en();Gc(b,r,g.layoutBox),uA(w,b)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dQ(e){Xa.totalNodes++,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 pQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hQ(e){e.clearSnapshot()}function ok(e){e.clearMeasurements()}function mQ(e){e.isLayoutDirty=!1}function vQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ak(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gQ(e){e.resolveTargetDelta()}function yQ(e){e.calcProjection()}function bQ(e){e.resetRotation()}function xQ(e){e.removeLeadSnapshot()}function sk(e,t,n){e.translate=Lt(t.translate,0,n),e.scale=Lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lk(e,t,n,r){e.min=Lt(t.min,n.min,r),e.max=Lt(t.max,n.max,r)}function wQ(e,t,n,r){lk(e.x,t.x,n.x,r),lk(e.y,t.y,n.y,r)}function SQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _Q={duration:.45,ease:[.4,0,.1,1]},uk=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ck=uk("applewebkit/")&&!uk("chrome/")?Math.round:Qt;function fk(e){e.min=ck(e.min),e.max=ck(e.max)}function CQ(e){fk(e.x),fk(e.y)}function fA(e,t,n){return e==="position"||e==="preserve-aspect"&&!k2(tk(t),tk(n),.2)}const kQ=cA({attachResizeListener:(e,t)=>yo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ny={current:void 0},dA=cA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ny.current){const e=new kQ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ny.current=e}return Ny.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TQ={pan:{Feature:BX},drag:{Feature:NX,ProjectionNode:dA,MeasureLayout:oA}},EQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PQ(e){const t=EQ.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function A2(e,t,n=1){const[r,i]=PQ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return K6(s)?parseFloat(s):s}else return y2(i)?A2(i,t,n+1):i}function AQ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!y2(o))return;const s=A2(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!y2(o))continue;const s=A2(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const RQ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pA=e=>RQ.has(e),OQ=e=>Object.keys(e).some(pA),dk=e=>e===Is||e===Ee,pk=(e,t)=>parseFloat(e.split(", ")[t]),hk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return pk(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?pk(o[1],e):0}},IQ=new Set(["x","y","z"]),MQ=Uf.filter(e=>!IQ.has(e));function $Q(e){const t=[];return MQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const su={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:hk(4,13),y:hk(5,14)};su.translateX=su.x;su.translateY=su.y;const FQ=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=su[f](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);p&&p.jump(u[f]),e[f]=su[f](c,o)}),e},DQ=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(pA);let o=[],s=!1;const u=[];if(i.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=cc(p);const m=t[c];let g;if(x0(m)){const w=m.length,b=m[0]===null?1:0;p=m[b],h=cc(p);for(let T=b;T=0?window.pageYOffset:null,f=FQ(t,e,u);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),Tm&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function LQ(e,t,n,r){return OQ(t)?DQ(e,t,n,r):{target:t,transitionEnd:r}}const jQ=(e,t,n,r)=>{const i=AQ(e,t,r);return t=i.target,r=i.transitionEnd,LQ(e,t,n,r)},R2={current:null},hA={current:!1};function zQ(){if(hA.current=!0,!!Tm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R2.current=e.matches;e.addListener(t),t()}else R2.current=!1}function NQ(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(dr(o))e.addValue(i,o),C0(r)&&r.add(i);else if(dr(s))e.addValue(i,au(o,{owner:e})),C0(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,au(u!==void 0?u:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const mk=new WeakMap,mA=Object.keys(kf),BQ=mA.length,vk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],VQ=Rx.length;class WQ{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Tt.render(this.render,!1,!0);const{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Pm(n),this.isVariantNode=ZP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{});for(const h in p){const m=p[h];u[h]!==void 0&&dr(m)&&(m.set(u[h],!1),C0(f)&&f.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,mk.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)),hA.current||zQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:R2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mk.delete(this.current),this.projection&&this.projection.unmount(),Ao(this.notifyUpdate),Ao(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Os.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Tt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,u;for(let c=0;cthis.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:g})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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=au(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dr(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vA extends WQ{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=oX(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){rX(this,r,s);const u=jQ(this,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function UQ(e){return window.getComputedStyle(e)}class HQ extends vA{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Os.has(n)){const r=Wx(n);return r&&r.default||0}else{const r=UQ(t),i=(n6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nA(t,n)}build(t,n,r,i){Mx(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Lx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){l6(t,n,r,i)}}class GQ extends vA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Os.has(n)){const r=Wx(n);return r&&r.default||0}return n=u6.has(n)?n:Px(n),t.getAttribute(n)}measureInstanceViewportBox(){return en()}scrapeMotionValuesFromProps(t,n){return f6(t,n)}build(t,n,r,i){Fx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){c6(t,n,r,i)}mount(t){this.isSVGTag=Dx(t.tagName),super.mount(t)}}const KQ=(e,t)=>Ix(e)?new GQ(t,{enableHardwareAcceleration:!1}):new HQ(t,{enableHardwareAcceleration:!0}),qQ={layout:{ProjectionNode:dA,MeasureLayout:oA}},YQ={...xX,...Nq,...TQ,...qQ},Ma=YK((e,t)=>Eq(e,t,YQ,KQ));function gA(){const e=_.useRef(!1);return Ex(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function XQ(){const e=gA(),[t,n]=_.useState(0),r=_.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.useCallback(()=>Tt.postRender(r),[r]),t]}class QQ extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ZQ({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:c}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` + )`;return{...!r&&i&&o,...r?{bgImage:u}:{bgColor:s}}},lW={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},uW=e=>({bg:we("gray.100","whiteAlpha.300")(e)}),cW=e=>({transitionProperty:"common",transitionDuration:"slow",...sW(e)}),fW=_c(e=>({label:lW,filledTrack:cW(e),track:uW(e)})),dW={xs:_c({track:{h:"1"}}),sm:_c({track:{h:"2"}}),md:_c({track:{h:"3"}}),lg:_c({track:{h:"4"}})},pW=aW({sizes:dW,baseStyle:fW,defaultProps:{size:"md",colorScheme:"blue"}}),hW=e=>typeof e=="function";function Hn(e,...t){return hW(e)?e(...t):e}var{definePartsStyle:wh,defineMultiStyleConfig:mW}=Et(sB.keys),Nc=Se("checkbox-size"),vW=e=>{const{colorScheme:t}=e;return{w:Nc.reference,h:Nc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:we(`${t}.500`,`${t}.200`)(e),borderColor:we(`${t}.500`,`${t}.200`)(e),color:we("white","gray.900")(e),_hover:{bg:we(`${t}.600`,`${t}.300`)(e),borderColor:we(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:we("gray.200","transparent")(e),bg:we("gray.200","whiteAlpha.300")(e),color:we("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:we(`${t}.500`,`${t}.200`)(e),borderColor:we(`${t}.500`,`${t}.200`)(e),color:we("white","gray.900")(e)},_disabled:{bg:we("gray.100","whiteAlpha.100")(e),borderColor:we("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:we("red.500","red.300")(e)}}},gW={_disabled:{cursor:"not-allowed"}},yW={userSelect:"none",_disabled:{opacity:.4}},bW={transitionProperty:"transform",transitionDuration:"normal"},xW=wh(e=>({icon:bW,container:gW,control:Hn(vW,e),label:yW})),wW={sm:wh({control:{[Nc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:wh({control:{[Nc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:wh({control:{[Nc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},m0=mW({baseStyle:xW,sizes:wW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SW,definePartsStyle:Sh}=Et(bB.keys),_W=e=>{var t;const n=(t=Hn(m0.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},CW=Sh(e=>{var t,n,r,i;return{label:(n=(t=m0).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=m0).baseStyle)==null?void 0:i.call(r,e).container,control:_W(e)}}),kW={md:Sh({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Sh({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Sh({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},TW=SW({baseStyle:CW,sizes:kW,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EW,definePartsStyle:PW}=Et(xB.keys),Fp=Se("select-bg"),Y5,AW={...(Y5=st.baseStyle)==null?void 0:Y5.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Fp.reference,[Fp.variable]:"colors.white",_dark:{[Fp.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Fp.reference}},RW={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},OW=PW({field:AW,icon:RW}),Dp={paddingInlineEnd:"8"},X5,Q5,Z5,J5,eC,tC,nC,rC,IW={lg:{...(X5=st.sizes)==null?void 0:X5.lg,field:{...(Q5=st.sizes)==null?void 0:Q5.lg.field,...Dp}},md:{...(Z5=st.sizes)==null?void 0:Z5.md,field:{...(J5=st.sizes)==null?void 0:J5.md.field,...Dp}},sm:{...(eC=st.sizes)==null?void 0:eC.sm,field:{...(tC=st.sizes)==null?void 0:tC.sm.field,...Dp}},xs:{...(nC=st.sizes)==null?void 0:nC.xs,field:{...(rC=st.sizes)==null?void 0:rC.xs.field,...Dp},icon:{insetEnd:"1"}}},MW=EW({baseStyle:OW,sizes:IW,variants:st.variants,defaultProps:st.defaultProps}),my=Se("skeleton-start-color"),vy=Se("skeleton-end-color"),$W={[my.variable]:"colors.gray.100",[vy.variable]:"colors.gray.400",_dark:{[my.variable]:"colors.gray.800",[vy.variable]:"colors.gray.600"},background:my.reference,borderColor:vy.reference,opacity:.7,borderRadius:"sm"},FW={baseStyle:$W},gy=Se("skip-link-bg"),DW={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[gy.variable]:"colors.white",_dark:{[gy.variable]:"colors.gray.700"},bg:gy.reference}},LW={baseStyle:DW},{defineMultiStyleConfig:jW,definePartsStyle:_m}=Et(wB.keys),xf=Se("slider-thumb-size"),wf=Se("slider-track-size"),na=Se("slider-bg"),zW=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},..._x({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},NW=e=>({..._x({orientation:e.orientation,horizontal:{h:wf.reference},vertical:{w:wf.reference}}),overflow:"hidden",borderRadius:"sm",[na.variable]:"colors.gray.200",_dark:{[na.variable]:"colors.whiteAlpha.200"},_disabled:{[na.variable]:"colors.gray.300",_dark:{[na.variable]:"colors.whiteAlpha.300"}},bg:na.reference}),BW=e=>{const{orientation:t}=e;return{..._x({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:xf.reference,h:xf.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},VW=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[na.variable]:`colors.${t}.500`,_dark:{[na.variable]:`colors.${t}.200`},bg:na.reference}},WW=_m(e=>({container:zW(e),track:NW(e),thumb:BW(e),filledTrack:VW(e)})),UW=_m({container:{[xf.variable]:"sizes.4",[wf.variable]:"sizes.1"}}),HW=_m({container:{[xf.variable]:"sizes.3.5",[wf.variable]:"sizes.1"}}),GW=_m({container:{[xf.variable]:"sizes.2.5",[wf.variable]:"sizes.0.5"}}),KW={lg:UW,md:HW,sm:GW},qW=jW({baseStyle:WW,sizes:KW,defaultProps:{size:"md",colorScheme:"blue"}}),ts=cn("spinner-size"),YW={width:[ts.reference],height:[ts.reference]},XW={xs:{[ts.variable]:"sizes.3"},sm:{[ts.variable]:"sizes.4"},md:{[ts.variable]:"sizes.6"},lg:{[ts.variable]:"sizes.8"},xl:{[ts.variable]:"sizes.12"}},QW={baseStyle:YW,sizes:XW,defaultProps:{size:"md"}},{defineMultiStyleConfig:ZW,definePartsStyle:TP}=Et(SB.keys),JW={fontWeight:"medium"},eU={opacity:.8,marginBottom:"2"},tU={verticalAlign:"baseline",fontWeight:"semibold"},nU={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},rU=TP({container:{},label:JW,helpText:eU,number:tU,icon:nU}),iU={md:TP({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},oU=ZW({baseStyle:rU,sizes:iU,defaultProps:{size:"md"}}),yy=Se("kbd-bg"),aU={[yy.variable]:"colors.gray.100",_dark:{[yy.variable]:"colors.whiteAlpha.100"},bg:yy.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},sU={baseStyle:aU},lU={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},uU={baseStyle:lU},{defineMultiStyleConfig:cU,definePartsStyle:fU}=Et(pB.keys),dU={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},pU=fU({icon:dU}),hU=cU({baseStyle:pU}),{defineMultiStyleConfig:mU,definePartsStyle:vU}=Et(hB.keys),Ri=Se("menu-bg"),by=Se("menu-shadow"),gU={[Ri.variable]:"#fff",[by.variable]:"shadows.sm",_dark:{[Ri.variable]:"colors.gray.700",[by.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ri.reference,boxShadow:by.reference},yU={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ri.variable]:"colors.gray.100",_dark:{[Ri.variable]:"colors.whiteAlpha.100"}},_active:{[Ri.variable]:"colors.gray.200",_dark:{[Ri.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ri.variable]:"colors.gray.100",_dark:{[Ri.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ri.reference},bU={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},xU={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},wU={opacity:.6},SU={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},_U={transitionProperty:"common",transitionDuration:"normal"},CU=vU({button:_U,list:gU,item:yU,groupTitle:bU,icon:xU,command:wU,divider:SU}),kU=mU({baseStyle:CU}),{defineMultiStyleConfig:TU,definePartsStyle:h2}=Et(mB.keys),xy=Se("modal-bg"),wy=Se("modal-shadow"),EU={bg:"blackAlpha.600",zIndex:"modal"},PU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},AU=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[xy.variable]:"colors.white",[wy.variable]:"shadows.lg",_dark:{[xy.variable]:"colors.gray.700",[wy.variable]:"shadows.dark-lg"},bg:xy.reference,boxShadow:wy.reference}},RU={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},OU={position:"absolute",top:"2",insetEnd:"3"},IU=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},MU={px:"6",py:"4"},$U=h2(e=>({overlay:EU,dialogContainer:Hn(PU,e),dialog:Hn(AU,e),header:RU,closeButton:OU,body:Hn(IU,e),footer:MU}));function di(e){return h2(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var FU={xs:di("xs"),sm:di("sm"),md:di("md"),lg:di("lg"),xl:di("xl"),"2xl":di("2xl"),"3xl":di("3xl"),"4xl":di("4xl"),"5xl":di("5xl"),"6xl":di("6xl"),full:di("full")},DU=TU({baseStyle:$U,sizes:FU,defaultProps:{size:"md"}}),{defineMultiStyleConfig:LU,definePartsStyle:EP}=Et(vB.keys),kx=cn("number-input-stepper-width"),PP=cn("number-input-input-padding"),jU=po(kx).add("0.5rem").toString(),Sy=cn("number-input-bg"),_y=cn("number-input-color"),Cy=cn("number-input-border-color"),zU={[kx.variable]:"sizes.6",[PP.variable]:jU},NU=e=>{var t,n;return(n=(t=Hn(st.baseStyle,e))==null?void 0:t.field)!=null?n:{}},BU={width:kx.reference},VU={borderStart:"1px solid",borderStartColor:Cy.reference,color:_y.reference,bg:Sy.reference,[_y.variable]:"colors.chakra-body-text",[Cy.variable]:"colors.chakra-border-color",_dark:{[_y.variable]:"colors.whiteAlpha.800",[Cy.variable]:"colors.whiteAlpha.300"},_active:{[Sy.variable]:"colors.gray.200",_dark:{[Sy.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},WU=EP(e=>{var t;return{root:zU,field:(t=Hn(NU,e))!=null?t:{},stepperGroup:BU,stepper:VU}});function Lp(e){var t,n,r;const i=(t=st.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",u=wP.fontSizes[s];return EP({field:{...i.field,paddingInlineEnd:PP.reference,verticalAlign:"top"},stepper:{fontSize:po(u).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var UU={xs:Lp("xs"),sm:Lp("sm"),md:Lp("md"),lg:Lp("lg")},HU=LU({baseStyle:WU,sizes:UU,variants:st.variants,defaultProps:st.defaultProps}),iC,GU={...(iC=st.baseStyle)==null?void 0:iC.field,textAlign:"center"},KU={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},oC,aC,qU={outline:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Hn((t=st.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(aC=(oC=st.variants)==null?void 0:oC.unstyled.field)!=null?aC:{}},YU={baseStyle:GU,sizes:KU,variants:qU,defaultProps:st.defaultProps},{defineMultiStyleConfig:XU,definePartsStyle:QU}=Et(gB.keys),jp=cn("popper-bg"),ZU=cn("popper-arrow-bg"),sC=cn("popper-arrow-shadow-color"),JU={zIndex:10},eH={[jp.variable]:"colors.white",bg:jp.reference,[ZU.variable]:jp.reference,[sC.variable]:"colors.gray.200",_dark:{[jp.variable]:"colors.gray.700",[sC.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},tH={px:3,py:2,borderBottomWidth:"1px"},nH={px:3,py:2},rH={px:3,py:2,borderTopWidth:"1px"},iH={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},oH=QU({popper:JU,content:eH,header:tH,body:nH,footer:rH,closeButton:iH}),aH=XU({baseStyle:oH}),{definePartsStyle:m2,defineMultiStyleConfig:sH}=Et(lB.keys),ky=Se("drawer-bg"),Ty=Se("drawer-box-shadow");function ol(e){return m2(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var lH={bg:"blackAlpha.600",zIndex:"modal"},uH={display:"flex",zIndex:"modal",justifyContent:"center"},cH=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ky.variable]:"colors.white",[Ty.variable]:"shadows.lg",_dark:{[ky.variable]:"colors.gray.700",[Ty.variable]:"shadows.dark-lg"},bg:ky.reference,boxShadow:Ty.reference}},fH={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},dH={position:"absolute",top:"2",insetEnd:"3"},pH={px:"6",py:"2",flex:"1",overflow:"auto"},hH={px:"6",py:"4"},mH=m2(e=>({overlay:lH,dialogContainer:uH,dialog:Hn(cH,e),header:fH,closeButton:dH,body:pH,footer:hH})),vH={xs:ol("xs"),sm:ol("md"),md:ol("lg"),lg:ol("2xl"),xl:ol("4xl"),full:ol("full")},gH=sH({baseStyle:mH,sizes:vH,defaultProps:{size:"xs"}}),{definePartsStyle:yH,defineMultiStyleConfig:bH}=Et(uB.keys),xH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},wH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},SH={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},_H=yH({preview:xH,input:wH,textarea:SH}),CH=bH({baseStyle:_H}),{definePartsStyle:kH,defineMultiStyleConfig:TH}=Et(cB.keys),Ul=Se("form-control-color"),EH={marginStart:"1",[Ul.variable]:"colors.red.500",_dark:{[Ul.variable]:"colors.red.300"},color:Ul.reference},PH={mt:"2",[Ul.variable]:"colors.gray.600",_dark:{[Ul.variable]:"colors.whiteAlpha.600"},color:Ul.reference,lineHeight:"normal",fontSize:"sm"},AH=kH({container:{width:"100%",position:"relative"},requiredIndicator:EH,helperText:PH}),RH=TH({baseStyle:AH}),{definePartsStyle:OH,defineMultiStyleConfig:IH}=Et(fB.keys),Hl=Se("form-error-color"),MH={[Hl.variable]:"colors.red.500",_dark:{[Hl.variable]:"colors.red.300"},color:Hl.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},$H={marginEnd:"0.5em",[Hl.variable]:"colors.red.500",_dark:{[Hl.variable]:"colors.red.300"},color:Hl.reference},FH=OH({text:MH,icon:$H}),DH=IH({baseStyle:FH}),LH={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},jH={baseStyle:LH},zH={fontFamily:"heading",fontWeight:"bold"},NH={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},BH={baseStyle:zH,sizes:NH,defaultProps:{size:"xl"}},{defineMultiStyleConfig:VH,definePartsStyle:WH}=Et(aB.keys),Ey=Se("breadcrumb-link-decor"),UH={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ey.reference,[Ey.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ey.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},HH=WH({link:UH}),GH=VH({baseStyle:HH}),KH={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},AP=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:we("gray.800","whiteAlpha.900")(e),_hover:{bg:we("gray.100","whiteAlpha.200")(e)},_active:{bg:we("gray.200","whiteAlpha.300")(e)}};const r=ou(`${t}.200`,.12)(n),i=ou(`${t}.200`,.24)(n);return{color:we(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:we(`${t}.50`,r)(e)},_active:{bg:we(`${t}.100`,i)(e)}}},qH=e=>{const{colorScheme:t}=e,n=we("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Hn(AP,e)}},YH={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},XH=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const c=we("gray.100","whiteAlpha.200")(e);return{bg:c,color:we("gray.800","whiteAlpha.900")(e),_hover:{bg:we("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:we("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:o=`${n}.600`,activeBg:s=`${n}.700`}=(t=YH[n])!=null?t:{},u=we(r,`${n}.200`)(e);return{bg:u,color:we(i,"gray.800")(e),_hover:{bg:we(o,`${n}.300`)(e),_disabled:{bg:u}},_active:{bg:we(s,`${n}.400`)(e)}}},QH=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:we(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:we(`${t}.700`,`${t}.500`)(e)}}},ZH={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},JH={ghost:AP,outline:qH,solid:XH,link:QH,unstyled:ZH},eG={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},tG={baseStyle:KH,variants:JH,sizes:eG,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:fs,defineMultiStyleConfig:nG}=Et(EB.keys),v0=Se("card-bg"),xo=Se("card-padding"),RP=Se("card-shadow"),_h=Se("card-radius"),OP=Se("card-border-width","0"),IP=Se("card-border-color"),rG=fs({container:{[v0.variable]:"colors.chakra-body-bg",backgroundColor:v0.reference,boxShadow:RP.reference,borderRadius:_h.reference,color:"chakra-body-text",borderWidth:OP.reference,borderColor:IP.reference},body:{padding:xo.reference,flex:"1 1 0%"},header:{padding:xo.reference},footer:{padding:xo.reference}}),iG={sm:fs({container:{[_h.variable]:"radii.base",[xo.variable]:"space.3"}}),md:fs({container:{[_h.variable]:"radii.md",[xo.variable]:"space.5"}}),lg:fs({container:{[_h.variable]:"radii.xl",[xo.variable]:"space.7"}})},oG={elevated:fs({container:{[RP.variable]:"shadows.base",_dark:{[v0.variable]:"colors.gray.700"}}}),outline:fs({container:{[OP.variable]:"1px",[IP.variable]:"colors.chakra-border-color"}}),filled:fs({container:{[v0.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[xo.variable]:0},header:{[xo.variable]:0},footer:{[xo.variable]:0}}},aG=nG({baseStyle:rG,variants:oG,sizes:iG,defaultProps:{variant:"elevated",size:"md"}}),Bc=cn("close-button-size"),uc=cn("close-button-bg"),sG={w:[Bc.reference],h:[Bc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[uc.variable]:"colors.blackAlpha.100",_dark:{[uc.variable]:"colors.whiteAlpha.100"}},_active:{[uc.variable]:"colors.blackAlpha.200",_dark:{[uc.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:uc.reference},lG={lg:{[Bc.variable]:"sizes.10",fontSize:"md"},md:{[Bc.variable]:"sizes.8",fontSize:"xs"},sm:{[Bc.variable]:"sizes.6",fontSize:"2xs"}},uG={baseStyle:sG,sizes:lG,defaultProps:{size:"md"}},{variants:cG,defaultProps:fG}=zc,dG={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Zt.bg.reference,color:Zt.color.reference,boxShadow:Zt.shadow.reference},pG={baseStyle:dG,variants:cG,defaultProps:fG},hG={w:"100%",mx:"auto",maxW:"prose",px:"4"},mG={baseStyle:hG},vG={opacity:.6,borderColor:"inherit"},gG={borderStyle:"solid"},yG={borderStyle:"dashed"},bG={solid:gG,dashed:yG},xG={baseStyle:vG,variants:bG,defaultProps:{variant:"solid"}},{definePartsStyle:wG,defineMultiStyleConfig:SG}=Et(rB.keys),_G={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},CG={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},kG={pt:"2",px:"4",pb:"5"},TG={fontSize:"1.25em"},EG=wG({container:_G,button:CG,panel:kG,icon:TG}),PG=SG({baseStyle:EG}),{definePartsStyle:Bf,defineMultiStyleConfig:AG}=Et(iB.keys),kr=Se("alert-fg"),Po=Se("alert-bg"),RG=Bf({container:{bg:Po.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:kr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Tx(e){const{theme:t,colorScheme:n}=e,r=ou(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var OG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark}}}}),IG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:kr.reference}}}),MG=Bf(e=>{const{colorScheme:t}=e,n=Tx(e);return{container:{[kr.variable]:`colors.${t}.600`,[Po.variable]:n.light,_dark:{[kr.variable]:`colors.${t}.200`,[Po.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:kr.reference}}}),$G=Bf(e=>{const{colorScheme:t}=e;return{container:{[kr.variable]:"colors.white",[Po.variable]:`colors.${t}.600`,_dark:{[kr.variable]:"colors.gray.900",[Po.variable]:`colors.${t}.200`},color:kr.reference}}}),FG={subtle:OG,"left-accent":IG,"top-accent":MG,solid:$G},DG=AG({baseStyle:RG,variants:FG,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:MP,defineMultiStyleConfig:LG}=Et(oB.keys),Gl=Se("avatar-border-color"),Vc=Se("avatar-bg"),Sf=Se("avatar-font-size"),au=Se("avatar-size"),jG={borderRadius:"full",border:"0.2em solid",borderColor:Gl.reference,[Gl.variable]:"white",_dark:{[Gl.variable]:"colors.gray.800"}},zG={bg:Vc.reference,fontSize:Sf.reference,width:au.reference,height:au.reference,lineHeight:"1",[Vc.variable]:"colors.gray.200",_dark:{[Vc.variable]:"colors.whiteAlpha.400"}},NG=e=>{const{name:t,theme:n}=e,r=t?KB({string:t}):"colors.gray.400",i=HB(r)(n);let o="white";return i||(o="gray.800"),{bg:Vc.reference,fontSize:Sf.reference,color:o,borderColor:Gl.reference,verticalAlign:"top",width:au.reference,height:au.reference,"&:not([data-loaded])":{[Vc.variable]:r},[Gl.variable]:"colors.white",_dark:{[Gl.variable]:"colors.gray.800"}}},BG={fontSize:Sf.reference,lineHeight:"1"},VG=MP(e=>({badge:Hn(jG,e),excessLabel:Hn(zG,e),container:Hn(NG,e),label:BG}));function Ko(e){const t=e!=="100%"?_P[e]:void 0;return MP({container:{[au.variable]:t??e,[Sf.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[au.variable]:t??e,[Sf.variable]:`calc(${t??e} / 2.5)`}})}var WG={"2xs":Ko(4),xs:Ko(6),sm:Ko(8),md:Ko(12),lg:Ko(16),xl:Ko(24),"2xl":Ko(32),full:Ko("100%")},UG=LG({baseStyle:VG,sizes:WG,defaultProps:{size:"md"}}),HG={Accordion:PG,Alert:DG,Avatar:UG,Badge:zc,Breadcrumb:GH,Button:tG,Checkbox:m0,CloseButton:uG,Code:pG,Container:mG,Divider:xG,Drawer:gH,Editable:CH,Form:RH,FormError:DH,FormLabel:jH,Heading:BH,Input:st,Kbd:sU,Link:uU,List:hU,Menu:kU,Modal:DU,NumberInput:HU,PinInput:YU,Popover:aH,Progress:pW,Radio:TW,Select:MW,Skeleton:FW,SkipLink:LW,Slider:qW,Spinner:QW,Stat:oU,Switch:uV,Table:vV,Tabs:OV,Tag:UV,Textarea:nW,Tooltip:oW,Card:aG,Stepper:nB},GG={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},KG={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},qG="ltr",YG={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},$P={semanticTokens:GG,direction:qG,...JN,components:HG,styles:KG,config:YG};function Cc(e){return typeof e=="function"}function XG(...e){return t=>e.reduce((n,r)=>r(n),t)}var QG=e=>function(...n){let r=[...n],i=n[n.length-1];return AN(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,XG(...r.map(o=>s=>Cc(o)?o(s):FP(s,o)))(i)},lC=QG($P);function FP(...e){return Zr({},...e,DP)}function DP(e,t,n,r){if((Cc(e)||Cc(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const o=Cc(e)?e(...i):e,s=Cc(t)?t(...i):t;return Zr({},o,s,DP)}}function ZG({colorScheme:e,components:t}){return n=>{let r=Object.keys(n.components||{});return Array.isArray(t)?r=t:Cr(t)&&(r=Object.keys(t)),FP(n,{components:Object.fromEntries(r.map(i=>[i,{defaultProps:{colorScheme:e}}]))})}}function JG(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function eK(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,i,o,s)=>{if(typeof r>"u")return e(r,i,o);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(i))return u.get(i);const c=e(r,i,o,s);return u.set(i,c),c}},LP=tK(eK);function jP(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var zP=e=>jP(e,t=>t!=null);function nK(e){return typeof e=="function"}function NP(e,...t){return nK(e)?e(...t):e}const BP=1/60*1e3,rK=typeof performance<"u"?()=>performance.now():()=>Date.now(),VP=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rK()),BP);function iK(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&i,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&i&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=iK(()=>_f=!0),e),{}),aK=Vf.reduce((e,t)=>{const n=Cm[t];return e[t]=(r,i=!1,o=!1)=>(_f||uK(),n.schedule(r,i,o)),e},{}),sK=Vf.reduce((e,t)=>(e[t]=Cm[t].cancel,e),{});Vf.reduce((e,t)=>(e[t]=()=>Cm[t].process(Kl),e),{});const lK=e=>Cm[e].process(Kl),WP=e=>{_f=!1,Kl.delta=v2?BP:Math.max(Math.min(e-Kl.timestamp,oK),1),Kl.timestamp=e,g2=!0,Vf.forEach(lK),g2=!1,_f&&(v2=!1,VP(WP))},uK=()=>{_f=!0,v2=!0,g2||VP(WP)},uC=()=>Kl;var cK=typeof Element<"u",fK=typeof Map=="function",dK=typeof Set=="function",pK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ch(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ch(e[r],t[r]))return!1;return!0}var o;if(fK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ch(r.value[1],t.get(r.value[0])))return!1;return!0}if(dK&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pK&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(cK&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ch(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var hK=function(t,n){try{return Ch(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const mK=hb(hK);function UP(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:o,colorMode:s}=cz(),u=e?LP(o,`components.${e}`):void 0,c=r||u,f=Zr({theme:o,colorMode:s},(n=c==null?void 0:c.defaultProps)!=null?n:{},zP(JG(i,["children"]))),p=_.useRef({});if(c){const m=TN(c)(f);mK(p.current,m)||(p.current=m)}return p.current}function Wi(e,t={}){return UP(e,t)}function Ui(e,t={}){return UP(e,t)}var vK=new Set([...hN,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),gK=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yK(e){return gK.has(e)||!vK.has(e)}function bK(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function xK(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var wK=/^((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)-.*))$/,SK=K4(function(e){return wK.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),_K=SK,CK=function(t){return t!=="theme"},cC=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?_K:CK},fC=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},kK=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return J4(n,r,i),VD(function(){return eT(n,r,i)}),null},TK=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var u=fC(t,n,r),c=u||cC(i),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,g=1;gt=>{const{theme:n,css:r,__css:i,sx:o,...s}=t,u=jP(s,(h,m)=>vN(m)),c=NP(e,t),f=bK({},i,c,zP(u),o),p=xP(f)(t.theme);return r?[p,r]:p};function Py(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yK);const i=AK({baseStyle:n}),o=PK(e,r)(i);return xa.forwardRef(function(c,f){const{colorMode:p,forced:h}=Fr();return xa.createElement(o,{ref:f,"data-theme":h?p:void 0,...c})})}function RK(){const e=new Map;return new Proxy(Py,{apply(t,n,r){return Py(...r)},get(t,n){return e.has(n)||e.set(n,Py(n)),e.get(n)}})}var oe=RK();function ye(e){return _.forwardRef(e)}function HP(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=_.createContext(void 0);i.displayName=r;function o(){var s;const u=_.useContext(i);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,o),c}return u}return[i.Provider,o,i]}function OK(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=_.useMemo(()=>pN(n),[n]);return w.jsxs(HD,{theme:i,children:[w.jsx(IK,{root:t}),r]})}function IK({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(nm,{styles:n=>({[t]:n.__cssVars})})}HP({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function MK(e){return HP({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function $K(){const{colorMode:e}=Fr();return w.jsx(nm,{styles:t=>{const n=LP(t,"styles.global"),r=NP(n,{theme:t,colorMode:e});return r?xP(r)(t):void 0}})}var GP=_.createContext({getDocument(){return document},getWindow(){return window}});GP.displayName="EnvironmentContext";function KP(e){const{children:t,environment:n,disabled:r}=e,i=_.useRef(null),o=_.useMemo(()=>n||{getDocument:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument)!=null?c:document},getWindow:()=>{var u,c;return(c=(u=i.current)==null?void 0:u.ownerDocument.defaultView)!=null?c:window}},[n]),s=!r||!n;return w.jsxs(GP.Provider,{value:o,children:[t,s&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}KP.displayName="EnvironmentProvider";var FK=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:i,resetCSS:o=!0,theme:s={},environment:u,cssVarsRoot:c,disableEnvironment:f,disableGlobalStyle:p}=e,h=w.jsx(KP,{environment:u,disabled:f,children:t});return w.jsx(OK,{theme:s,cssVarsRoot:c,children:w.jsxs(dP,{colorModeManager:n,options:s.config,children:[o?w.jsx(qD,{scope:i}):w.jsx(KD,{}),!p&&w.jsx($K,{}),r?w.jsx(sT,{zIndex:r,children:h}):h]})})},DK=(e,t)=>e.find(n=>n.id===t);function pC(e,t){const n=qP(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function qP(e,t){for(const[n,r]of Object.entries(e))if(DK(r,t))return n}function LK(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function jK(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,o=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:o,left:s}}function Xt(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function zK(e,t){const n=Xt(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function _a(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const YP=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),km=_.createContext({}),Wf=_.createContext(null),Tm=typeof document<"u",Ex=Tm?_.useLayoutEffect:_.useEffect,XP=_.createContext({strict:!1}),Px=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),NK="framerAppearId",QP="data-"+Px(NK);function BK(e,t,n,r){const{visualElement:i}=_.useContext(km),o=_.useContext(XP),s=_.useContext(Wf),u=_.useContext(YP).reducedMotion,c=_.useRef();r=r||o.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;_.useInsertionEffect(()=>{f&&f.update(n,s)});const p=_.useRef(!!(n[QP]&&!window.HandoffComplete));return Ex(()=>{f&&(f.render(),p.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(f.updateFeatures(),!p.current&&f.animationState&&f.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),f}function Rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VK(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Rl(n)&&(n.current=r))},[t])}function Cf(e){return typeof e=="string"||Array.isArray(e)}function Em(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ax=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rx=["initial",...Ax];function Pm(e){return Em(e.animate)||Rx.some(t=>Cf(e[t]))}function ZP(e){return!!(Pm(e)||e.variants)}function WK(e,t){if(Pm(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Cf(n)?n:void 0,animate:Cf(r)?r:void 0}}return e.inherit!==!1?t:{}}function UK(e){const{initial:t,animate:n}=WK(e,_.useContext(km));return _.useMemo(()=>({initial:t,animate:n}),[hC(t),hC(n)])}function hC(e){return Array.isArray(e)?e.join(" "):e}const mC={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"]},kf={};for(const e in mC)kf[e]={isEnabled:t=>mC[e].some(n=>!!t[n])};function HK(e){for(const t in e)kf[t]={...kf[t],...e[t]}}const Ox=_.createContext({}),JP=_.createContext({}),GK=Symbol.for("motionComponentSymbol");function KK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&HK(e);function o(u,c){let f;const p={..._.useContext(YP),...u,layoutId:qK(u)},{isStatic:h}=p,m=UK(u),g=r(u,h);if(!h&&Tm){m.visualElement=BK(i,g,p,t);const x=_.useContext(JP),b=_.useContext(XP).strict;m.visualElement&&(f=m.visualElement.loadFeatures(p,b,e,x))}return _.createElement(km.Provider,{value:m},f&&m.visualElement?_.createElement(f,{visualElement:m.visualElement,...p}):null,n(i,u,VK(g,m.visualElement,c),g,h,m.visualElement))}const s=_.forwardRef(o);return s[GK]=i,s}function qK({layoutId:e}){const t=_.useContext(Ox).id;return t&&e!==void 0?t+"-"+e:e}function YK(e){function t(r,i={}){return KK(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const XK=["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 Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(XK.indexOf(e)>-1||/[A-Z]/.test(e))}const y0={};function QK(e){Object.assign(y0,e)}const Uf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Is=new Set(Uf);function e6(e,{layout:t,layoutId:n}){return Is.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!y0[e]||e==="opacity")}const dr=e=>!!(e&&e.getVelocity),ZK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},JK=Uf.length;function eq(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),n6=t6("--"),y2=t6("var(--"),tq=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,nq=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ca=(e,t,n)=>Math.min(Math.max(n,e),t),Ms={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wc={...Ms,transform:e=>Ca(0,1,e)},zp={...Ms,default:1},Uc=e=>Math.round(e*1e5)/1e5,Am=/(-)?([\d]*\.?[\d])+/g,r6=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rq=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Hf(e){return typeof e=="string"}const Gf=e=>({test:t=>Hf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Gf("deg"),Ni=Gf("%"),Ee=Gf("px"),iq=Gf("vh"),oq=Gf("vw"),vC={...Ni,parse:e=>Ni.parse(e)/100,transform:e=>Ni.transform(e*100)},gC={...Ms,transform:Math.round},i6={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,size:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:zp,scaleX:zp,scaleY:zp,scaleZ:zp,skew:Yo,skewX:Yo,skewY:Yo,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:Wc,originX:vC,originY:vC,originZ:Ee,zIndex:gC,fillOpacity:Wc,strokeOpacity:Wc,numOctaves:gC};function Mx(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:u}=e;let c=!1,f=!1,p=!0;for(const h in t){const m=t[h];if(n6(h)){o[h]=m;continue}const g=i6[h],x=nq(m,g);if(Is.has(h)){if(c=!0,s[h]=x,!p)continue;m!==(g.default||0)&&(p=!1)}else h.startsWith("origin")?(f=!0,u[h]=x):i[h]=x}if(t.transform||(c||r?i.transform=eq(e.transform,n,p,r):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:g=0}=u;i.transformOrigin=`${h} ${m} ${g}`}}const $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function o6(e,t,n){for(const r in t)!dr(t[r])&&!e6(r,n)&&(e[r]=t[r])}function aq({transformTemplate:e},t,n){return _.useMemo(()=>{const r=$x();return Mx(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sq(e,t,n){const r=e.style||{},i={};return o6(i,r,e),Object.assign(i,aq(e,t,n)),e.transformValues?e.transformValues(i):i}function lq(e,t,n){const r={},i=sq(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const uq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function b0(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uq.has(e)}let a6=e=>!b0(e);function cq(e){e&&(a6=t=>t.startsWith("on")?!b0(t):e(t))}try{cq(require("@emotion/is-prop-valid").default)}catch{}function fq(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(a6(i)||n===!0&&b0(i)||!t&&!b0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yC(e,t,n){return typeof e=="string"?e:Ee.transform(t+n*e)}function dq(e,t,n){const r=yC(t,e.x,e.width),i=yC(n,e.y,e.height);return`${r} ${i}`}const pq={offset:"stroke-dashoffset",array:"stroke-dasharray"},hq={offset:"strokeDashoffset",array:"strokeDasharray"};function mq(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?pq:hq;e[o.offset]=Ee.transform(-r);const s=Ee.transform(t),u=Ee.transform(n);e[o.array]=`${s} ${u}`}function Fx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:u=1,pathOffset:c=0,...f},p,h,m){if(Mx(e,f,p,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:x,dimensions:b}=e;g.transform&&(b&&(x.transform=g.transform),delete g.transform),b&&(i!==void 0||o!==void 0||x.transform)&&(x.transformOrigin=dq(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),s!==void 0&&mq(g,s,u,c,!1)}const s6=()=>({...$x(),attrs:{}}),Dx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vq(e,t,n,r){const i=_.useMemo(()=>{const o=s6();return Fx(o,t,{enableHardwareAcceleration:!1},Dx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};o6(o,e.style,e),i.style={...o,...i.style}}return i}function gq(e=!1){return(n,r,i,{latestValues:o},s)=>{const c=(Ix(n)?vq:lq)(r,o,s,n),p={...fq(r,typeof n=="string",e),...c,ref:i},{children:h}=r,m=_.useMemo(()=>dr(h)?h.get():h,[h]);return _.createElement(n,{...p,children:m})}}function l6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const u6=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 c6(e,t,n,r){l6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(u6.has(i)?i:Px(i),t.attrs[i])}function Lx(e,t){const{style:n}=e,r={};for(const i in n)(dr(n[i])||t.style&&dr(t.style[i])||e6(i,e))&&(r[i]=n[i]);return r}function f6(e,t){const n=Lx(e,t);for(const r in e)if(dr(e[r])||dr(t[r])){const i=Uf.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function jx(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function d6(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const x0=e=>Array.isArray(e),yq=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),bq=e=>x0(e)?e[e.length-1]||0:e;function kh(e){const t=dr(e)?e.get():e;return yq(t)?t.toValue():t}function xq({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:wq(r,i,o,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const p6=e=>(t,n)=>{const r=_.useContext(km),i=_.useContext(Wf),o=()=>xq(e,t,r,i);return n?o():d6(o)};function wq(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=kh(o[m]);let{initial:s,animate:u}=e;const c=Pm(e),f=ZP(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Em(h)&&(Array.isArray(h)?h:[h]).forEach(g=>{const x=jx(e,g);if(!x)return;const{transitionEnd:b,transition:T,...S}=x;for(const y in S){let C=S[y];if(Array.isArray(C)){const P=p?C.length-1:0;C=C[P]}C!==null&&(i[y]=C)}for(const y in b)i[y]=b[y]}),i}const Qt=e=>e;class bC{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Sq(e){let t=new bC,n=new bC,r=0,i=!1,o=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&i,m=h?t:n;return f&&s.add(c),m.add(c)&&h&&i&&(r=t.order.length),c},cancel:c=>{n.remove(c),s.delete(c)},process:c=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f(h[m]=Sq(()=>n=!0),h),{}),s=h=>o[h].process(i),u=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,_q),1),i.timestamp=h,i.isProcessing=!0,Np.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(u))},c=()=>{n=!0,r=!0,i.isProcessing||e(u)};return{schedule:Np.reduce((h,m)=>{const g=o[m];return h[m]=(x,b=!1,T=!1)=>(n||c(),g.schedule(x,b,T)),h},{}),cancel:h=>Np.forEach(m=>o[m].cancel(h)),state:i,steps:o}}const{schedule:Tt,cancel:Ao,state:In,steps:Ay}=Cq(typeof requestAnimationFrame<"u"?requestAnimationFrame:Qt,!0),kq={useVisualState:p6({scrapeMotionValuesFromProps:f6,createRenderState:s6,onMount:(e,t,{renderState:n,latestValues:r})=>{Tt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Tt.render(()=>{Fx(n,r,{enableHardwareAcceleration:!1},Dx(t.tagName),e.transformTemplate),c6(t,n)})}})},Tq={useVisualState:p6({scrapeMotionValuesFromProps:Lx,createRenderState:$x})};function Eq(e,{forwardMotionProps:t=!1},n,r){return{...Ix(e)?kq:Tq,preloadedFeatures:n,useRender:gq(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const h6=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Rm(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pq=e=>t=>h6(t)&&e(t,Rm(t));function wo(e,t,n,r){return yo(e,t,Pq(n),r)}const Aq=(e,t)=>n=>t(e(n)),ma=(...e)=>e.reduce(Aq);function m6(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const xC=m6("dragHorizontal"),wC=m6("dragVertical");function v6(e){let t=!1;if(e==="y")t=wC();else if(e==="x")t=xC();else{const n=xC(),r=wC();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function g6(){const e=v6(!0);return e?(e(),!1):!0}class Ia{constructor(t){this.isMounted=!1,this.node=t}update(){}}function SC(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||g6())return;const u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t),u[r]&&Tt.update(()=>u[r](o,s))};return wo(e.current,n,i,{passive:!e.getProps()[r]})}class Rq extends Ia{mount(){this.unmount=ma(SC(this.node,!0),SC(this.node,!1))}unmount(){}}class Oq extends Ia{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=ma(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const y6=(e,t)=>t?e===t?!0:y6(e,t.parentElement):!1;function Ry(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Rm(n))}class Iq extends Ia{constructor(){super(...arguments),this.removeStartListeners=Qt,this.removeEndListeners=Qt,this.removeAccessibleListeners=Qt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=wo(window,"pointerup",(u,c)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:p,globalTapTarget:h}=this.node.getProps();Tt.update(()=>{!h&&!y6(this.node.current,u.target)?p&&p(u,c):f&&f(u,c)})},{passive:!(r.onTap||r.onPointerUp)}),s=wo(window,"pointercancel",(u,c)=>this.cancelPress(u,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ma(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=u=>{u.key!=="Enter"||!this.checkPressEnd()||Ry("up",(c,f)=>{const{onTap:p}=this.node.getProps();p&&Tt.update(()=>p(c,f))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),Ry("down",(u,c)=>{this.startPress(u,c)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&Ry("cancel",(o,s)=>this.cancelPress(o,s))},i=yo(this.node.current,"blur",r);this.removeAccessibleListeners=ma(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Tt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!g6()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Tt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=wo(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ma(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const b2=new WeakMap,Oy=new WeakMap,Mq=e=>{const t=b2.get(e.target);t&&t(e)},$q=e=>{e.forEach(Mq)};function Fq({root:e,...t}){const n=e||document;Oy.has(n)||Oy.set(n,{});const r=Oy.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver($q,{root:e,...t})),r[i]}function Dq(e,t,n){const r=Fq(t);return b2.set(e,n),r.observe(e),()=>{b2.delete(e),r.unobserve(e)}}const Lq={some:0,all:1};class jq extends Ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Lq[i]},u=c=>{const{isIntersecting:f}=c;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:p,onViewportLeave:h}=this.node.getProps(),m=f?p:h;m&&m(c)};return Dq(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zq(t,n))&&this.startObserver()}unmount(){}}function zq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Nq={inView:{Feature:jq},tap:{Feature:Iq},focus:{Feature:Oq},hover:{Feature:Rq}};function b6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Vq(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Om(e,t,n){const r=e.getProps();return jx(r,t,n!==void 0?n:r.custom,Bq(e),Vq(e))}let zx=Qt;const ds=e=>e*1e3,So=e=>e/1e3,Wq={current:!1},x6=e=>Array.isArray(e)&&typeof e[0]=="number";function w6(e){return!!(!e||typeof e=="string"&&S6[e]||x6(e)||Array.isArray(e)&&e.every(w6))}const kc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,S6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kc([0,.65,.55,1]),circOut:kc([.55,0,1,.45]),backIn:kc([.31,.01,.66,-.59]),backOut:kc([.33,1.53,.69,.99])};function _6(e){if(e)return x6(e)?kc(e):Array.isArray(e)?e.map(_6):S6[e]}function Uq(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:u,times:c}={}){const f={[t]:n};c&&(f.offset=c);const p=_6(u);return Array.isArray(p)&&(f.easing=p),e.animate(f,{delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Hq(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const C6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gq=1e-7,Kq=12;function qq(e,t,n,r,i){let o,s,u=0;do s=t+(n-t)/2,o=C6(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Gq&&++uqq(o,0,1,e,n);return o=>o===0||o===1?o:C6(i(o),t,r)}const Yq=Kf(.42,0,1,1),Xq=Kf(0,0,.58,1),k6=Kf(.42,0,.58,1),Qq=e=>Array.isArray(e)&&typeof e[0]!="number",T6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,E6=e=>t=>1-e(1-t),Nx=e=>1-Math.sin(Math.acos(e)),P6=E6(Nx),Zq=T6(Nx),A6=Kf(.33,1.53,.69,.99),Bx=E6(A6),Jq=T6(Bx),eY=e=>(e*=2)<1?.5*Bx(e):.5*(2-Math.pow(2,-10*(e-1))),tY={linear:Qt,easeIn:Yq,easeInOut:k6,easeOut:Xq,circIn:Nx,circInOut:Zq,circOut:P6,backIn:Bx,backInOut:Jq,backOut:A6,anticipate:eY},_C=e=>{if(Array.isArray(e)){zx(e.length===4);const[t,n,r,i]=e;return Kf(t,n,r,i)}else if(typeof e=="string")return tY[e];return e},Vx=(e,t)=>n=>!!(Hf(n)&&rq.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),R6=(e,t,n)=>r=>{if(!Hf(r))return r;const[i,o,s,u]=r.match(Am);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},nY=e=>Ca(0,255,e),Iy={...Ms,transform:e=>Math.round(nY(e))},as={test:Vx("rgb","red"),parse:R6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Iy.transform(e)+", "+Iy.transform(t)+", "+Iy.transform(n)+", "+Uc(Wc.transform(r))+")"};function rY(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const x2={test:Vx("#"),parse:rY,transform:as.transform},Ol={test:Vx("hsl","hue"),parse:R6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ni.transform(Uc(t))+", "+Ni.transform(Uc(n))+", "+Uc(Wc.transform(r))+")"},Bn={test:e=>as.test(e)||x2.test(e)||Ol.test(e),parse:e=>as.test(e)?as.parse(e):Ol.test(e)?Ol.parse(e):x2.parse(e),transform:e=>Hf(e)?e:e.hasOwnProperty("red")?as.transform(e):Ol.transform(e)},Lt=(e,t,n)=>-n*e+n*t+e;function My(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 iY({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=My(c,u,e+1/3),o=My(c,u,e),s=My(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const $y=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},oY=[x2,as,Ol],aY=e=>oY.find(t=>t.test(e));function CC(e){const t=aY(e);let n=t.parse(e);return t===Ol&&(n=iY(n)),n}const O6=(e,t)=>{const n=CC(e),r=CC(t),i={...n};return o=>(i.red=$y(n.red,r.red,o),i.green=$y(n.green,r.green,o),i.blue=$y(n.blue,r.blue,o),i.alpha=Lt(n.alpha,r.alpha,o),as.transform(i))};function sY(e){var t,n;return isNaN(e)&&Hf(e)&&(((t=e.match(Am))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(r6))===null||n===void 0?void 0:n.length)||0)>0}const I6={regex:tq,countKey:"Vars",token:"${v}",parse:Qt},M6={regex:r6,countKey:"Colors",token:"${c}",parse:Bn.parse},$6={regex:Am,countKey:"Numbers",token:"${n}",parse:Ms.parse};function Fy(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function w0(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Fy(n,I6),Fy(n,M6),Fy(n,$6),n}function F6(e){return w0(e).values}function D6(e){const{values:t,numColors:n,numVars:r,tokenised:i}=w0(e),o=t.length;return s=>{let u=i;for(let c=0;ctypeof e=="number"?0:e;function uY(e){const t=F6(e);return D6(e)(t.map(lY))}const ka={test:sY,parse:F6,createTransformer:D6,getAnimatableNone:uY},L6=(e,t)=>n=>`${n>0?t:e}`;function j6(e,t){return typeof e=="number"?n=>Lt(e,t,n):Bn.test(e)?O6(e,t):e.startsWith("var(")?L6(e,t):N6(e,t)}const z6=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>j6(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=j6(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},N6=(e,t)=>{const n=ka.createTransformer(t),r=w0(e),i=w0(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ma(z6(r.values,i.values),n):L6(e,t)},Tf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},kC=(e,t)=>n=>Lt(e,t,n);function fY(e){return typeof e=="number"?kC:typeof e=="string"?Bn.test(e)?O6:N6:Array.isArray(e)?z6:typeof e=="object"?cY:kC}function dY(e,t,n){const r=[],i=n||fY(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dY(t,r,i),u=s.length,c=f=>{let p=0;if(u>1)for(;pc(Ca(e[0],e[o-1],f)):c}function pY(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Tf(0,t,r);e.push(Lt(n,1,i))}}function hY(e){const t=[0];return pY(t,e.length-1),t}function mY(e,t){return e.map(n=>n*t)}function vY(e,t){return e.map(()=>t||k6).splice(0,e.length-1)}function S0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Qq(r)?r.map(_C):_C(r),o={done:!1,value:t[0]},s=mY(n&&n.length===t.length?n:hY(t),e),u=B6(s,t,{ease:Array.isArray(i)?i:vY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}function V6(e,t){return t?e*(1e3/t):0}const gY=5;function W6(e,t,n){const r=Math.max(t-gY,0);return V6(n-e(r),t-r)}const Dy=.001,yY=.01,bY=10,xY=.05,wY=1;function SY({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,s=1-t;s=Ca(xY,wY,s),e=Ca(yY,bY,So(e)),s<1?(i=f=>{const p=f*s,h=p*e,m=p-n,g=w2(f,s),x=Math.exp(-h);return Dy-m/g*x},o=f=>{const h=f*s*e,m=h*n+n,g=Math.pow(s,2)*Math.pow(f,2)*e,x=Math.exp(-h),b=w2(Math.pow(f,2),s);return(-i(f)+Dy>0?-1:1)*((m-g)*x)/b}):(i=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-Dy+p*h},o=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=CY(i,o,u);if(e=ds(e),isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const _Y=12;function CY(e,t,n){let r=n;for(let i=1;i<_Y;i++)r=r-e(r)/t(r);return r}function w2(e,t){return e*Math.sqrt(1-t*t)}const kY=["duration","bounce"],TY=["stiffness","damping","mass"];function TC(e,t){return t.some(n=>e[n]!==void 0)}function EY(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!TC(e,TY)&&TC(e,kY)){const n=SY(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function U6({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:u,damping:c,mass:f,duration:p,velocity:h,isResolvedFromDuration:m}=EY({...r,velocity:-So(r.velocity||0)}),g=h||0,x=c/(2*Math.sqrt(u*f)),b=o-i,T=So(Math.sqrt(u/f)),S=Math.abs(b)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let y;if(x<1){const C=w2(T,x);y=P=>{const O=Math.exp(-x*T*P);return o-O*((g+x*T*b)/C*Math.sin(C*P)+b*Math.cos(C*P))}}else if(x===1)y=C=>o-Math.exp(-T*C)*(b+(g+T*b)*C);else{const C=T*Math.sqrt(x*x-1);y=P=>{const O=Math.exp(-x*T*P),$=Math.min(C*P,300);return o-O*((g+x*T*b)*Math.sinh($)+C*b*Math.cosh($))/C}}return{calculatedDuration:m&&p||null,next:C=>{const P=y(C);if(m)s.done=C>=p;else{let O=g;C!==0&&(x<1?O=W6(y,C,P):O=0);const $=Math.abs(O)<=n,I=Math.abs(o-P)<=t;s.done=$&&I}return s.value=s.done?o:P,s}}}function EC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:u,max:c,restDelta:f=.5,restSpeed:p}){const h=e[0],m={done:!1,value:h},g=F=>u!==void 0&&Fc,x=F=>u===void 0?c:c===void 0||Math.abs(u-F)-b*Math.exp(-F/r),C=F=>S+y(F),P=F=>{const V=y(F),B=C(F);m.done=Math.abs(V)<=f,m.value=m.done?S:B};let O,$;const I=F=>{g(m.value)&&(O=F,$=U6({keyframes:[m.value,x(m.value)],velocity:W6(C,F,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:p}))};return I(0),{calculatedDuration:null,next:F=>{let V=!1;return!$&&O===void 0&&(V=!0,P(F),I(F)),O!==void 0&&F>O?$.next(F-O):(!V&&P(F),m)}}}const PY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Tt.update(t,!0),stop:()=>Ao(t),now:()=>In.isProcessing?In.timestamp:performance.now()}},PC=2e4;function AC(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=PC?1/0:t}const AY={decay:EC,inertia:EC,tween:S0,keyframes:S0,spring:U6};function _0({autoplay:e=!0,delay:t=0,driver:n=PY,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:u="loop",onPlay:c,onStop:f,onComplete:p,onUpdate:h,...m}){let g=1,x=!1,b,T;const S=()=>{T=new Promise(ne=>{b=ne})};S();let y;const C=AY[i]||S0;let P;C!==S0&&typeof r[0]!="number"&&(P=B6([0,100],r,{clamp:!1}),r=[0,100]);const O=C({...m,keyframes:r});let $;u==="mirror"&&($=C({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let I="idle",F=null,V=null,B=null;O.calculatedDuration===null&&o&&(O.calculatedDuration=AC(O));const{calculatedDuration:X}=O;let pe=1/0,he=1/0;X!==null&&(pe=X+s,he=pe*(o+1)-s);let ge=0;const Ae=ne=>{if(V===null)return;g>0&&(V=Math.min(V,ne)),g<0&&(V=Math.min(ne-he/g,V)),F!==null?ge=F:ge=Math.round(ne-V)*g;const be=ge-t*(g>=0?1:-1),ae=g>=0?be<0:be>he;ge=Math.max(be,0),I==="finished"&&F===null&&(ge=he);let ce=ge,le=O;if(o){const ft=Math.min(ge,he)/pe;let _t=Math.floor(ft),Xe=ft%1;!Xe&&ft>=1&&(Xe=1),Xe===1&&_t--,_t=Math.min(_t,o+1),!!(_t%2)&&(u==="reverse"?(Xe=1-Xe,s&&(Xe-=s/pe)):u==="mirror"&&(le=$)),ce=Ca(0,1,Xe)*pe}const Te=ae?{done:!1,value:r[0]}:le.next(ce);P&&(Te.value=P(Te.value));let{done:et}=Te;!ae&&X!==null&&(et=g>=0?ge>=he:ge<=0);const Ue=F===null&&(I==="finished"||I==="running"&&et);return h&&h(Te.value),Ue&&W(),Te},se=()=>{y&&y.stop(),y=void 0},G=()=>{I="idle",se(),b(),S(),V=B=null},W=()=>{I="finished",p&&p(),se(),b()},J=()=>{if(x)return;y||(y=n(Ae));const ne=y.now();c&&c(),F!==null?V=ne-F:(!V||I==="finished")&&(V=ne),I==="finished"&&S(),B=V,F=null,I="running",y.start()};e&&J();const te={then(ne,be){return T.then(ne,be)},get time(){return So(ge)},set time(ne){ne=ds(ne),ge=ne,F!==null||!y||g===0?F=ne:V=y.now()-ne/g},get duration(){const ne=O.calculatedDuration===null?AC(O):O.calculatedDuration;return So(ne)},get speed(){return g},set speed(ne){ne===g||!y||(g=ne,te.time=So(ge))},get state(){return I},play:J,pause:()=>{I="paused",F=ge},stop:()=>{x=!0,I!=="idle"&&(I="idle",f&&f(),G())},cancel:()=>{B!==null&&Ae(B),G()},complete:()=>{I="finished"},sample:ne=>(V=0,Ae(ne))};return te}function RY(e){let t;return()=>(t===void 0&&(t=e()),t)}const OY=RY(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),IY=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Bp=10,MY=2e4,$Y=(e,t)=>t.type==="spring"||e==="backgroundColor"||!w6(t.ease);function FY(e,t,{onUpdate:n,onComplete:r,...i}){if(!(OY()&&IY.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,u,c,f=!1;const p=()=>{c=new Promise(C=>{u=C})};p();let{keyframes:h,duration:m=300,ease:g,times:x}=i;if($Y(t,i)){const C=_0({...i,repeat:0,delay:0});let P={done:!1,value:h[0]};const O=[];let $=0;for(;!P.done&&${f=!1,b.cancel()},S=()=>{f=!0,Tt.update(T),u(),p()};return b.onfinish=()=>{f||(e.set(Hq(h,i)),r&&r(),S())},{then(C,P){return c.then(C,P)},attachTimeline(C){return b.timeline=C,b.onfinish=null,Qt},get time(){return So(b.currentTime||0)},set time(C){b.currentTime=ds(C)},get speed(){return b.playbackRate},set speed(C){b.playbackRate=C},get duration(){return So(m)},play:()=>{s||(b.play(),Ao(T))},pause:()=>b.pause(),stop:()=>{if(s=!0,b.playState==="idle")return;const{currentTime:C}=b;if(C){const P=_0({...i,autoplay:!1});e.setWithVelocity(P.sample(C-Bp).value,P.sample(C).value,Bp)}S()},complete:()=>{f||b.finish()},cancel:S}}function DY({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Qt,pause:Qt,stop:Qt,then:o=>(o(),Promise.resolve()),cancel:Qt,complete:Qt});return t?_0({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const LY={type:"spring",stiffness:500,damping:25,restSpeed:10},jY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zY={type:"keyframes",duration:.8},NY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},BY=(e,{keyframes:t})=>t.length>2?zY:Is.has(e)?e.startsWith("scale")?jY(t[1]):LY:NY,S2=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(ka.test(t)||t==="0")&&!t.startsWith("url(")),VY=new Set(["brightness","contrast","saturate","opacity"]);function WY(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const i=n.replace(r,"");let o=VY.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const UY=/([a-z-]*)\(.*?\)/g,_2={...ka,getAnimatableNone:e=>{const t=e.match(UY);return t?t.map(WY).join(" "):e}},HY={...i6,color:Bn,backgroundColor:Bn,outlineColor:Bn,fill:Bn,stroke:Bn,borderColor:Bn,borderTopColor:Bn,borderRightColor:Bn,borderBottomColor:Bn,borderLeftColor:Bn,filter:_2,WebkitFilter:_2},Wx=e=>HY[e];function H6(e,t){let n=Wx(e);return n!==_2&&(n=ka),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=e=>/^0[^.\s]+$/.test(e);function GY(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||G6(e)}function KY(e,t,n,r){const i=S2(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let u;const c=[];for(let f=0;fi=>{const o=Ux(r,e)||{},s=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-ds(s);const c=KY(t,e,n,o),f=c[0],p=c[c.length-1],h=S2(e,f),m=S2(e,p);let g={keyframes:c,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-u,onUpdate:x=>{t.set(x),o.onUpdate&&o.onUpdate(x)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(qY(o)||(g={...g,...BY(e,g)}),g.duration&&(g.duration=ds(g.duration)),g.repeatDelay&&(g.repeatDelay=ds(g.repeatDelay)),!h||!m||Wq.current||o.type===!1||YY.skipAnimations)return DY(g);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const x=FY(t,e,g);if(x)return x}return _0(g)};function C0(e){return!!(dr(e)&&e.add)}const K6=e=>/^\-?\d*\.?\d+$/.test(e);function Gx(e,t){e.indexOf(t)===-1&&e.push(t)}function Kx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class qx{constructor(){this.subscriptions=[]}add(t){return Gx(this.subscriptions,t),()=>Kx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e));class QY{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=In;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Tt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Tt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=XY(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new qx);const r=this.events[t].add(n);return t==="change"?()=>{r(),Tt.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,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?V6(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function su(e,t){return new QY(e,t)}const q6=e=>t=>t.test(e),ZY={test:e=>e==="auto",parse:e=>e},Y6=[Ms,Ee,Ni,Yo,oq,iq,ZY],cc=e=>Y6.find(q6(e)),JY=[...Y6,Bn,ka],eX=e=>JY.find(q6(e));function tX(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,su(n))}function nX(e,t){const n=Om(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const u=bq(o[s]);tX(e,s,u)}}function rX(e,t,n){var r,i;const o=Object.keys(t).filter(u=>!e.hasValue(u)),s=o.length;if(s)for(let u=0;uc.remove(h))),f.push(T)}return s&&Promise.all(f).then(()=>{s&&nX(e,s)}),f}function C2(e,t,n={}){const r=Om(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(X6(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:p,staggerDirection:h}=i;return lX(e,t,f+c,p,h,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[c,f]=u==="beforeChildren"?[o,s]:[s,o];return c().then(()=>f())}else return Promise.all([o(),s(n.delay)])}function lX(e,t,n=0,r=0,i=1,o){const s=[],u=(e.variantChildren.size-1)*r,c=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(uX).forEach((f,p)=>{f.notify("AnimationStart",t),s.push(C2(f,t,{...o,delay:n+c(p)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function uX(e,t){return e.sortNodePosition(t)}function cX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>C2(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=C2(e,t,n);else{const i=typeof t=="function"?Om(e,t,n.custom):t;r=Promise.all(X6(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const fX=[...Ax].reverse(),dX=Ax.length;function pX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cX(e,n,r)))}function hX(e){let t=pX(e);const n=vX();let r=!0;const i=(c,f)=>{const p=Om(e,f);if(p){const{transition:h,transitionEnd:m,...g}=p;c={...c,...g,...m}}return c};function o(c){t=c(e)}function s(c,f){const p=e.getProps(),h=e.getVariantContext(!0)||{},m=[],g=new Set;let x={},b=1/0;for(let S=0;Sb&&O,B=!1;const X=Array.isArray(P)?P:[P];let pe=X.reduce(i,{});$===!1&&(pe={});const{prevResolvedValues:he={}}=C,ge={...he,...pe},Ae=se=>{V=!0,g.has(se)&&(B=!0,g.delete(se)),C.needsAnimating[se]=!0};for(const se in ge){const G=pe[se],W=he[se];if(x.hasOwnProperty(se))continue;let J=!1;x0(G)&&x0(W)?J=!b6(G,W):J=G!==W,J?G!==void 0?Ae(se):g.add(se):G!==void 0&&g.has(se)?Ae(se):C.protectedKeys[se]=!0}C.prevProp=P,C.prevResolvedValues=pe,C.isActive&&(x={...x,...pe}),r&&e.blockInitialAnimation&&(V=!1),V&&(!I||B)&&m.push(...X.map(se=>({animation:se,options:{type:y,...c}})))}if(g.size){const S={};g.forEach(y=>{const C=e.getBaseTarget(y);C!==void 0&&(S[y]=C)}),m.push({animation:S})}let T=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(T=!1),r=!1,T?t(m):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(g=>{var x;return(x=g.animationState)===null||x===void 0?void 0:x.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const g in n)n[g].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:o,getState:()=>n}}function mX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!b6(t,e):!1}function Ga(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function vX(){return{animate:Ga(!0),whileInView:Ga(),whileHover:Ga(),whileTap:Ga(),whileDrag:Ga(),whileFocus:Ga(),exit:Ga()}}class gX extends Ia{constructor(t){super(t),t.animationState||(t.animationState=hX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Em(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let yX=0;class bX extends Ia{constructor(){super(...arguments),this.id=yX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const xX={animation:{Feature:gX},exit:{Feature:bX}},RC=(e,t)=>Math.abs(e-t);function wX(e,t){const n=RC(e.x,t.x),r=RC(e.y,t.y);return Math.sqrt(n**2+r**2)}class Q6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=jy(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=wX(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:x}=h,{timestamp:b}=In;this.history.push({...x,timestamp:b});const{onStart:T,onMove:S}=this.handlers;m||(T&&T(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ly(m,this.transformPagePoint),Tt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=jy(h.type==="pointercancel"?this.lastMoveEventInfo:Ly(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,T),x&&x(h,T)},!h6(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=Rm(t),u=Ly(s,this.transformPagePoint),{point:c}=u,{timestamp:f}=In;this.history=[{...c,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,jy(u,this.history)),this.removeListeners=ma(wo(this.contextWindow,"pointermove",this.handlePointerMove),wo(this.contextWindow,"pointerup",this.handlePointerUp),wo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ao(this.updatePoint)}}function Ly(e,t){return t?{point:t(e.point)}:e}function OC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function jy({point:e},t){return{point:e,delta:OC(e,Z6(t)),offset:OC(e,SX(t)),velocity:_X(t,.1)}}function SX(e){return e[0]}function Z6(e){return e[e.length-1]}function _X(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Z6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ds(t)));)n--;if(!r)return{x:0,y:0};const o=So(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Er(e){return e.max-e.min}function k2(e,t=0,n=.01){return Math.abs(e-t)<=n}function IC(e,t,n,r=.5){e.origin=r,e.originPoint=Lt(t.min,t.max,e.origin),e.scale=Er(n)/Er(t),(k2(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Lt(n.min,n.max,e.origin)-e.originPoint,(k2(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Hc(e,t,n,r){IC(e.x,t.x,n.x,r?r.originX:void 0),IC(e.y,t.y,n.y,r?r.originY:void 0)}function MC(e,t,n){e.min=n.min+t.min,e.max=e.min+Er(t)}function CX(e,t,n){MC(e.x,t.x,n.x),MC(e.y,t.y,n.y)}function $C(e,t,n){e.min=t.min-n.min,e.max=e.min+Er(t)}function Gc(e,t,n){$C(e.x,t.x,n.x),$C(e.y,t.y,n.y)}function kX(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Lt(n,e,r.max):Math.min(e,n)),e}function FC(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 TX(e,{top:t,left:n,bottom:r,right:i}){return{x:FC(e.x,n,i),y:FC(e.y,t,r)}}function DC(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Tf(t.min,t.max-r,e.min):r>i&&(n=Tf(e.min,e.max-i,t.min)),Ca(0,1,n)}function AX(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 T2=.35;function RX(e=T2){return e===!1?e=0:e===!0&&(e=T2),{x:LC(e,"left","right"),y:LC(e,"top","bottom")}}function LC(e,t,n){return{min:jC(e,t),max:jC(e,n)}}function jC(e,t){return typeof e=="number"?e:e[t]||0}const zC=()=>({translate:0,scale:1,origin:0,originPoint:0}),Il=()=>({x:zC(),y:zC()}),NC=()=>({min:0,max:0}),en=()=>({x:NC(),y:NC()});function qr(e){return[e("x"),e("y")]}function J6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function OX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function IX(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 zy(e){return e===void 0||e===1}function E2({scale:e,scaleX:t,scaleY:n}){return!zy(e)||!zy(t)||!zy(n)}function Ya(e){return E2(e)||eA(e)||e.z||e.rotate||e.rotateX||e.rotateY}function eA(e){return BC(e.x)||BC(e.y)}function BC(e){return e&&e!=="0%"}function k0(e,t,n){const r=e-n,i=t*r;return n+i}function VC(e,t,n,r,i){return i!==void 0&&(e=k0(e,i,r)),k0(e,n,r)+t}function P2(e,t=0,n=1,r,i){e.min=VC(e.min,t,n,r,i),e.max=VC(e.max,t,n,r,i)}function tA(e,{x:t,y:n}){P2(e.x,t.translate,t.scale,t.originPoint),P2(e.y,n.translate,n.scale,n.originPoint)}function MX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let u=0;u1.0000000000001||e<.999999999999?e:1}function Jo(e,t){e.min=e.min+t,e.max=e.max+t}function UC(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Lt(e.min,e.max,o);P2(e,t[n],t[r],s,t.scale)}const $X=["x","scaleX","originX"],FX=["y","scaleY","originY"];function Ml(e,t){UC(e.x,t,$X),UC(e.y,t,FX)}function nA(e,t){return J6(IX(e.getBoundingClientRect(),t))}function DX(e,t,n){const r=nA(e,n),{scroll:i}=t;return i&&(Jo(r.x,i.offset.x),Jo(r.y,i.offset.y)),r}const rA=({current:e})=>e?e.ownerDocument.defaultView:null,LX=new WeakMap;class jX{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=en(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Rm(p,"page").point)},o=(p,h)=>{const{drag:m,dragPropagation:g,onDragStart:x}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=v6(m),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),qr(T=>{let S=this.getAxisMotionValue(T).get()||0;if(Ni.test(S)){const{projection:y}=this.visualElement;if(y&&y.layout){const C=y.layout.layoutBox[T];C&&(S=Er(C)*(parseFloat(S)/100))}}this.originPoint[T]=S}),x&&Tt.update(()=>x(p,h),!1,!0);const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(p,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:x,onDrag:b}=this.getProps();if(!m&&!this.openGlobalLock)return;const{offset:T}=h;if(g&&this.currentDirection===null){this.currentDirection=zX(T),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",h.point,T),this.updateAxis("y",h.point,T),this.visualElement.render(),b&&b(p,h)},u=(p,h)=>this.stop(p,h),c=()=>qr(p=>{var h;return this.getAnimationState(p)==="paused"&&((h=this.getAxisMotionValue(p).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Q6(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:rA(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Tt.update(()=>o(t,n))}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.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Vp(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=kX(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Rl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=TX(i.layoutBox,n):this.constraints=!1,this.elastic=RX(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&qr(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=AX(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=DX(r,i.root,this.visualElement.getTransformPagePoint());let s=EX(i.layout.layoutBox,o);if(n){const u=n(OX(s));this.hasMutatedConstraints=!!u,u&&(s=J6(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=qr(p=>{if(!Vp(p,n,this.currentDirection))return;let h=c&&c[p]||{};s&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Hx(t,r,0,n))}stopAnimation(){qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){qr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){qr(n=>{const{drag:r}=this.getProps();if(!Vp(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];o.set(t[n]-Lt(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Rl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};qr(s=>{const u=this.getAxisMotionValue(s);if(u){const c=u.get();i[s]=PX({min:c,max:c},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),qr(s=>{if(!Vp(s,t,null))return;const u=this.getAxisMotionValue(s),{min:c,max:f}=this.constraints[s];u.set(Lt(c,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;LX.set(this.visualElement,this);const t=this.visualElement.current,n=wo(t,"pointerdown",c=>{const{drag:f,dragListener:p=!0}=this.getProps();f&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Rl(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=yo(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(qr(p=>{const h=this.getAxisMotionValue(p);h&&(this.originPoint[p]+=c[p].translate,h.set(h.get()+c[p].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=T2,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:u}}}function Vp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class NX extends Ia{constructor(t){super(t),this.removeGroupControls=Qt,this.removeListeners=Qt,this.controls=new jX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Qt}unmount(){this.removeGroupControls(),this.removeListeners()}}const HC=e=>(t,n)=>{e&&Tt.update(()=>e(t,n))};class BX extends Ia{constructor(){super(...arguments),this.removePointerDownListener=Qt}onPointerDown(t){this.session=new Q6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:HC(t),onStart:HC(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Tt.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=wo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function iA(){const e=_.useContext(Wf);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=_.useId();return _.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function VX(){return WX(_.useContext(Wf))}function WX(e){return e===null?!0:e.isPresent}const Th={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function GC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ee.test(e))e=parseFloat(e);else return e;const n=GC(e,t.target.x),r=GC(e,t.target.y);return`${n}% ${r}%`}},UX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ka.parse(e);if(i.length>5)return r;const o=ka.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=c;const f=Lt(u,c,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class HX extends xa.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;QK(GX),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Th.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Tt.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function oA(e){const[t,n]=iA(),r=_.useContext(Ox);return xa.createElement(HX,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(JP),isPresent:t,safeToRemove:n})}const GX={borderRadius:{...fc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fc,borderTopRightRadius:fc,borderBottomLeftRadius:fc,borderBottomRightRadius:fc,boxShadow:UX},aA=["TopLeft","TopRight","BottomLeft","BottomRight"],KX=aA.length,KC=e=>typeof e=="string"?parseFloat(e):e,qC=e=>typeof e=="number"||Ee.test(e);function qX(e,t,n,r,i,o){i?(e.opacity=Lt(0,n.opacity!==void 0?n.opacity:1,YX(r)),e.opacityExit=Lt(t.opacity!==void 0?t.opacity:1,0,XX(r))):o&&(e.opacity=Lt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Tf(e,t,r))}function XC(e,t){e.min=t.min,e.max=t.max}function Gr(e,t){XC(e.x,t.x),XC(e.y,t.y)}function QC(e,t,n,r,i){return e-=t,e=k0(e,1/n,r),i!==void 0&&(e=k0(e,1/i,r)),e}function QX(e,t=0,n=1,r=.5,i,o=e,s=e){if(Ni.test(t)&&(t=parseFloat(t),t=Lt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Lt(o.min,o.max,r);e===o&&(u-=t),e.min=QC(e.min,t,n,u,i),e.max=QC(e.max,t,n,u,i)}function ZC(e,t,[n,r,i],o,s){QX(e,t[n],t[r],t[i],t.scale,o,s)}const ZX=["x","scaleX","originX"],JX=["y","scaleY","originY"];function JC(e,t,n,r){ZC(e.x,t,ZX,n?n.x:void 0,r?r.x:void 0),ZC(e.y,t,JX,n?n.y:void 0,r?r.y:void 0)}function ek(e){return e.translate===0&&e.scale===1}function lA(e){return ek(e.x)&&ek(e.y)}function eQ(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function uA(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function tk(e){return Er(e.x)/Er(e.y)}class tQ{constructor(){this.members=[]}add(t){Gx(this.members,t),t.scheduleRender()}remove(t){if(Kx(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;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:i}=t.options;i===!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 nk(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(r+=`scale(${s}, ${u})`),r||"none"}const nQ=(e,t)=>e.depth-t.depth;class rQ{constructor(){this.children=[],this.isDirty=!1}add(t){Gx(this.children,t),this.isDirty=!0}remove(t){Kx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nQ),this.isDirty=!1,this.children.forEach(t)}}function iQ(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ao(r),e(o-t))};return Tt.read(r,!0),()=>Ao(r)}function oQ(e){window.MotionDebug&&window.MotionDebug.record(e)}function aQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}function sQ(e,t,n){const r=dr(e)?e:su(e);return r.start(Hx("",r,t,n)),r.animation}const rk=["","X","Y","Z"],lQ={visibility:"hidden"},ik=1e3;let uQ=0;const Xa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function cA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=uQ++,this.animationId=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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Xa.totalNodes=Xa.resolvedTargetDeltas=Xa.recalculatedProjection=0,this.nodes.forEach(dQ),this.nodes.forEach(gQ),this.nodes.forEach(yQ),this.nodes.forEach(pQ),oQ(Xa)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=iQ(m,250),Th.hasAnimatedSinceResize&&(Th.hasAnimatedSinceResize=!1,this.nodes.forEach(ak))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||p.getDefaultTransition()||_Q,{onLayoutAnimationStart:T,onLayoutAnimationComplete:S}=p.getProps(),y=!this.targetLayout||!uA(this.targetLayout,x)||g,C=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||C||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,C);const P={...Ux(b,"layout"),onPlay:T,onComplete:S};(p.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||ak(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}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,Ao(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(bQ),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(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;pthis.update()))}clearAllSnapshots(){this.nodes.forEach(hQ),this.sharedNodes.forEach(xQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Tt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Tt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const O=P/1e3;sk(h.x,s.x,O),sk(h.y,s.y,O),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wQ(this.relativeTarget,this.relativeTargetOrigin,m,O),C&&eQ(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=en()),Gr(C,this.relativeTarget)),b&&(this.animationValues=p,qX(p,f,this.latestValues,O,y,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ao(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tt.update(()=>{Th.hasAnimatedSinceResize=!0,this.currentAnimation=sQ(0,ik,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},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(ik),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&fA(this.options.animationType,this.layout.layoutBox,f.layoutBox)){c=this.target||en();const h=Er(this.layout.layoutBox.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Er(this.layout.layoutBox.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}Gr(u,c),Ml(u,p),Hc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tQ),this.sharedNodes.get(s).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:c}=s;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(u=!0),!u)return;const f={};for(let p=0;p{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(ok),this.root.sharedNodes.clear()}}}function cQ(e){e.updateLayout()}function fQ(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?qr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],g=Er(m);m.min=r[h].min,m.max=m.min+g}):fA(o,n.layoutBox,r)&&qr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],g=Er(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=Il();Hc(u,r,n.layoutBox);const c=Il();s?Hc(c,e.applyTransform(i,!0),n.measuredBox):Hc(c,r,n.layoutBox);const f=!lA(u);let p=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const x=en();Gc(x,n.layoutBox,m.layoutBox);const b=en();Gc(b,r,g.layoutBox),uA(x,b)||(p=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=x,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dQ(e){Xa.totalNodes++,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 pQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hQ(e){e.clearSnapshot()}function ok(e){e.clearMeasurements()}function mQ(e){e.isLayoutDirty=!1}function vQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ak(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gQ(e){e.resolveTargetDelta()}function yQ(e){e.calcProjection()}function bQ(e){e.resetRotation()}function xQ(e){e.removeLeadSnapshot()}function sk(e,t,n){e.translate=Lt(t.translate,0,n),e.scale=Lt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lk(e,t,n,r){e.min=Lt(t.min,n.min,r),e.max=Lt(t.max,n.max,r)}function wQ(e,t,n,r){lk(e.x,t.x,n.x,r),lk(e.y,t.y,n.y,r)}function SQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _Q={duration:.45,ease:[.4,0,.1,1]},uk=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),ck=uk("applewebkit/")&&!uk("chrome/")?Math.round:Qt;function fk(e){e.min=ck(e.min),e.max=ck(e.max)}function CQ(e){fk(e.x),fk(e.y)}function fA(e,t,n){return e==="position"||e==="preserve-aspect"&&!k2(tk(t),tk(n),.2)}const kQ=cA({attachResizeListener:(e,t)=>yo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ny={current:void 0},dA=cA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ny.current){const e=new kQ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ny.current=e}return Ny.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TQ={pan:{Feature:BX},drag:{Feature:NX,ProjectionNode:dA,MeasureLayout:oA}},EQ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PQ(e){const t=EQ.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function A2(e,t,n=1){const[r,i]=PQ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return K6(s)?parseFloat(s):s}else return y2(i)?A2(i,t,n+1):i}function AQ(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!y2(o))return;const s=A2(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!y2(o))continue;const s=A2(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const RQ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pA=e=>RQ.has(e),OQ=e=>Object.keys(e).some(pA),dk=e=>e===Ms||e===Ee,pk=(e,t)=>parseFloat(e.split(", ")[t]),hk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return pk(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?pk(o[1],e):0}},IQ=new Set(["x","y","z"]),MQ=Uf.filter(e=>!IQ.has(e));function $Q(e){const t=[];return MQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const lu={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:hk(4,13),y:hk(5,14)};lu.translateX=lu.x;lu.translateY=lu.y;const FQ=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=lu[f](r,o)}),t.render();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);p&&p.jump(u[f]),e[f]=lu[f](c,o)}),e},DQ=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(pA);let o=[],s=!1;const u=[];if(i.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=cc(p);const m=t[c];let g;if(x0(m)){const x=m.length,b=m[0]===null?1:0;p=m[b],h=cc(p);for(let T=b;T=0?window.pageYOffset:null,f=FQ(t,e,u);return o.length&&o.forEach(([p,h])=>{e.getValue(p).set(h)}),e.render(),Tm&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function LQ(e,t,n,r){return OQ(t)?DQ(e,t,n,r):{target:t,transitionEnd:r}}const jQ=(e,t,n,r)=>{const i=AQ(e,t,r);return t=i.target,r=i.transitionEnd,LQ(e,t,n,r)},R2={current:null},hA={current:!1};function zQ(){if(hA.current=!0,!!Tm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>R2.current=e.matches;e.addListener(t),t()}else R2.current=!1}function NQ(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(dr(o))e.addValue(i,o),C0(r)&&r.add(i);else if(dr(s))e.addValue(i,su(o,{owner:e})),C0(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const u=e.getValue(i);!u.hasAnimated&&u.set(o)}else{const u=e.getStaticValue(i);e.addValue(i,su(u!==void 0?u:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const mk=new WeakMap,mA=Object.keys(kf),BQ=mA.length,vk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],VQ=Rx.length;class WQ{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>Tt.render(this.render,!1,!0);const{latestValues:u,renderState:c}=o;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Pm(n),this.isVariantNode=ZP(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{});for(const h in p){const m=p[h];u[h]!==void 0&&dr(m)&&(m.set(u[h],!1),C0(f)&&f.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,mk.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)),hA.current||zQ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:R2.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){mk.delete(this.current),this.projection&&this.projection.unmount(),Ao(this.notifyUpdate),Ao(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Is.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Tt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,u;for(let c=0;cthis.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:o,layoutScroll:m,layoutRoot:g})}return u}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):en()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,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;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(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=su(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=jx(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!dr(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new qx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vA extends WQ{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]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=oX(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){rX(this,r,s);const u=jQ(this,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}}}function UQ(e){return window.getComputedStyle(e)}class HQ extends vA{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Is.has(n)){const r=Wx(n);return r&&r.default||0}else{const r=UQ(t),i=(n6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nA(t,n)}build(t,n,r,i){Mx(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Lx(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){l6(t,n,r,i)}}class GQ extends vA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Is.has(n)){const r=Wx(n);return r&&r.default||0}return n=u6.has(n)?n:Px(n),t.getAttribute(n)}measureInstanceViewportBox(){return en()}scrapeMotionValuesFromProps(t,n){return f6(t,n)}build(t,n,r,i){Fx(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){c6(t,n,r,i)}mount(t){this.isSVGTag=Dx(t.tagName),super.mount(t)}}const KQ=(e,t)=>Ix(e)?new GQ(t,{enableHardwareAcceleration:!1}):new HQ(t,{enableHardwareAcceleration:!0}),qQ={layout:{ProjectionNode:dA,MeasureLayout:oA}},YQ={...xX,...Nq,...TQ,...qQ},Ma=YK((e,t)=>Eq(e,t,YQ,KQ));function gA(){const e=_.useRef(!1);return Ex(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function XQ(){const e=gA(),[t,n]=_.useState(0),r=_.useCallback(()=>{e.current&&n(t+1)},[t]);return[_.useCallback(()=>Tt.postRender(r),[r]),t]}class QQ extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ZQ({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0});return _.useInsertionEffect(()=>{const{width:o,height:s,top:u,left:c}=i.current;if(t||!r.current||!o||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; @@ -345,12 +345,12 @@ Error generating stack: `+o.message+` top: ${u}px !important; left: ${c}px !important; } - `),()=>{document.head.removeChild(f)}},[t]),_.createElement(QQ,{isPresent:t,childRef:r,sizeRef:i},_.cloneElement(e,{ref:r}))}const By=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const u=d6(JQ),c=_.useId(),f=_.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),o?void 0:[n]);return _.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),_.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=_.createElement(ZQ,{isPresent:n},e)),_.createElement(Wf.Provider,{value:f},e)};function JQ(){return new Map}function eZ(e){return _.useEffect(()=>()=>e(),[])}const Qa=e=>e.key||"";function tZ(e,t){e.forEach(n=>{const r=Qa(n);t.set(r,n)})}function nZ(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const wu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const u=_.useContext(Ox).forceRender||XQ()[0],c=gA(),f=nZ(e);let p=f;const h=_.useRef(new Map).current,m=_.useRef(p),g=_.useRef(new Map).current,w=_.useRef(!0);if(Ex(()=>{w.current=!1,tZ(f,g),m.current=p}),eZ(()=>{w.current=!0,g.clear(),h.clear()}),w.current)return _.createElement(_.Fragment,null,p.map(y=>_.createElement(By,{key:Qa(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));p=[...p];const b=m.current.map(Qa),T=f.map(Qa),S=b.length;for(let y=0;y{if(T.indexOf(C)!==-1)return;const P=g.get(C);if(!P)return;const O=b.indexOf(C);let $=y;if(!$){const I=()=>{h.delete(C);const F=Array.from(g.keys()).filter(V=>!T.includes(V));if(F.forEach(V=>g.delete(V)),m.current=f.filter(V=>{const B=Qa(V);return B===C||F.includes(B)}),!h.size){if(c.current===!1)return;u(),r&&r()}};$=_.createElement(By,{key:Qa(P),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:s},P),h.set(C,$)}p.splice(O,0,$)}),p=p.map(y=>{const C=y.key;return h.has(C)?y:_.createElement(By,{key:Qa(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),_.createElement(_.Fragment,null,h.size?p:p.map(y=>_.cloneElement(y)))};var rZ={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},yA=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=rZ,toastSpacing:p="0.5rem"}=e,[h,m]=_.useState(u),g=VX();_a(()=>{g||r==null||r()},[g]),_a(()=>{m(u)},[u]);const w=()=>m(null),b=()=>m(u),T=()=>{g&&i()};_.useEffect(()=>{g&&o&&i()},[g,o,i]),zK(T,h);const S=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),y=_.useMemo(()=>LK(s),[s]);return x.jsx(Ma.div,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:w,onHoverEnd:b,custom:{position:s},style:y,children:x.jsx(oe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S,children:vo(n,{id:t,onClose:T})})})});yA.displayName="ToastComponent";var gk={path:x.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[x.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),x.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),x.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},$a=ye((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:u,__css:c,...f}=e,p=Me("chakra-icon",u),h=Wi("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...h},g={ref:t,focusable:o,className:p,__css:m},w=r??gk.viewBox;if(n&&typeof n!="string")return x.jsx(oe.svg,{as:n,...g,...f});const b=s??gk.path;return x.jsx(oe.svg,{verticalAlign:"middle",viewBox:w,...g,...f,children:b})});$a.displayName="Icon";function Si(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=_.Children.toArray(e.path),s=ye((u,c)=>x.jsx($a,{ref:c,viewBox:t,...i,...u,children:o.length?o:x.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function iZ(e){return x.jsx($a,{viewBox:"0 0 24 24",...e,children:x.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function oZ(e){return x.jsx($a,{viewBox:"0 0 24 24",...e,children:x.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function yk(e){return x.jsx($a,{viewBox:"0 0 24 24",...e,children:x.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var aZ=rm({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Im=ye((e,t)=>{const n=Wi("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:u,...c}=gn(e),f=Me("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${aZ} ${o} linear infinite`,...n};return x.jsx(oe.div,{ref:t,__css:p,className:f,...c,children:r&&x.jsx(oe.span,{srOnly:!0,children:r})})});Im.displayName="Spinner";var[sZ,Yx]=Jt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[lZ,Xx]=Jt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),bA={info:{icon:oZ,colorScheme:"blue"},warning:{icon:yk,colorScheme:"orange"},success:{icon:iZ,colorScheme:"green"},error:{icon:yk,colorScheme:"red"},loading:{icon:Im,colorScheme:"blue"}};function uZ(e){return bA[e].colorScheme}function cZ(e){return bA[e].icon}var xA=ye(function(t,n){const r=Xx(),{status:i}=Yx(),o={display:"inline",...r.description};return x.jsx(oe.div,{ref:n,"data-status":i,...t,className:Me("chakra-alert__desc",t.className),__css:o})});xA.displayName="AlertDescription";function Mm(e){const{status:t}=Yx(),n=cZ(t),r=Xx(),i=t==="loading"?r.spinner:r.icon;return x.jsx(oe.span,{display:"inherit","data-status":t,...e,className:Me("chakra-alert__icon",e.className),__css:i,children:e.children||x.jsx(n,{h:"100%",w:"100%"})})}Mm.displayName="AlertIcon";var wA=ye(function(t,n){const r=Xx(),{status:i}=Yx();return x.jsx(oe.div,{ref:n,"data-status":i,...t,className:Me("chakra-alert__title",t.className),__css:r.title})});wA.displayName="AlertTitle";var $m=ye(function(t,n){var r;const{status:i="info",addRole:o=!0,...s}=gn(t),u=(r=t.colorScheme)!=null?r:uZ(i),c=Ui("Alert",{...t,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return x.jsx(sZ,{value:{status:i},children:x.jsx(lZ,{value:c,children:x.jsx(oe.div,{"data-status":i,role:o?"alert":void 0,ref:n,...s,className:Me("chakra-alert",t.className),__css:f})})})});$m.displayName="Alert";function fZ(e){return x.jsx($a,{focusable:"false","aria-hidden":!0,...e,children:x.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var SA=ye(function(t,n){const r=Wi("CloseButton",t),{children:i,isDisabled:o,__css:s,...u}=gn(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return x.jsx(oe.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...s},...u,children:i||x.jsx(fZ,{width:"1em",height:"1em"})})});SA.displayName="CloseButton";var dZ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Kc=pZ(dZ);function pZ(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(u=>u.id!=i)}))},notify:(i,o)=>{const s=hZ(i,o),{position:u,id:c}=s;return r(f=>{var p,h;const g=u.includes("top")?[s,...(p=f[u])!=null?p:[]]:[...(h=f[u])!=null?h:[],s];return{...f,[u]:g}}),c},update:(i,o)=>{i&&r(s=>{const u={...s},{position:c,index:f}=pC(u,i);return c&&f!==-1&&(u[c][f]={...u[c][f],...o,message:vZ(o)}),u})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=o[f].map(p=>({...p,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const s=qP(o,i);return s?{...o,[s]:o[s].map(u=>u.id==i?{...u,requestClose:!0}:u)}:o})},isActive:i=>!!pC(Kc.getState(),i).position}}var bk=0;function hZ(e,t={}){var n,r;bk+=1;const i=(n=t.id)!=null?n:bk,o=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Kc.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mZ=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:u,colorScheme:c,icon:f}=e,p=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return x.jsxs($m,{addRole:!1,status:t,variant:n,id:p==null?void 0:p.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[x.jsx(Mm,{children:f}),x.jsxs(oe.div,{flex:"1",maxWidth:"100%",children:[i&&x.jsx(wA,{id:p==null?void 0:p.title,children:i}),u&&x.jsx(xA,{id:p==null?void 0:p.description,display:"block",children:u})]}),o&&x.jsx(SA,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function vZ(e={}){const{render:t,toastComponent:n=mZ}=e;return i=>typeof t=="function"?t({...i,...e}):x.jsx(n,{...i,...e})}var[gZ,Ele]=Jt({name:"ToastOptionsContext",strict:!1}),yZ=e=>{const t=_.useSyncExternalStore(Kc.subscribe,Kc.getState,Kc.getState),{motionVariants:n,component:r=yA,portalProps:i}=e,s=Object.keys(t).map(u=>{const c=t[u];return x.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:jK(u),children:x.jsx(wu,{initial:!1,children:c.map(f=>x.jsx(r,{motionVariants:n,...f},f.id))})},u)});return x.jsx(xu,{...i,children:s})},bZ=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return x.jsxs(FK,{theme:r,...o,children:[x.jsx(gZ,{value:i==null?void 0:i.defaultOptions,children:n}),x.jsx(yZ,{...i})]})},xZ=bZ($P),wZ=Object.defineProperty,SZ=(e,t,n)=>t in e?wZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bt=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n);function xk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var _Z=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function wk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Sk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var O2=typeof window<"u"?_.useLayoutEffect:_.useEffect,T0=e=>e,CZ=class{constructor(){Bt(this,"descendants",new Map),Bt(this,"register",e=>{if(e!=null)return _Z(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Bt(this,"unregister",e=>{this.descendants.delete(e);const t=xk(Array.from(this.descendants.keys()));this.assignIndex(t)}),Bt(this,"destroy",()=>{this.descendants.clear()}),Bt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Bt(this,"count",()=>this.descendants.size),Bt(this,"enabledCount",()=>this.enabledValues().length),Bt(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Bt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Bt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Bt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Bt(this,"first",()=>this.item(0)),Bt(this,"firstEnabled",()=>this.enabledItem(0)),Bt(this,"last",()=>this.item(this.descendants.size-1)),Bt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Bt(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Bt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Bt(this,"next",(e,t=!0)=>{const n=wk(e,this.count(),t);return this.item(n)}),Bt(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=wk(r,this.enabledCount(),t);return this.enabledItem(i)}),Bt(this,"prev",(e,t=!0)=>{const n=Sk(e,this.count()-1,t);return this.item(n)}),Bt(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=Sk(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Bt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=xk(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function kZ(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Wt(...e){return t=>{e.forEach(n=>{kZ(n,t)})}}function TZ(...e){return _.useMemo(()=>Wt(...e),e)}function EZ(){const e=_.useRef(new CZ);return O2(()=>()=>e.current.destroy()),e.current}var[PZ,_A]=Jt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function AZ(e){const t=_A(),[n,r]=_.useState(-1),i=_.useRef(null);O2(()=>()=>{i.current&&t.unregister(i.current)},[]),O2(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const o=T0(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:Wt(o,i)}}function CA(){return[T0(PZ),()=>T0(_A()),()=>EZ(),i=>AZ(i)]}function Qx(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(m,g)=>m!==g}=e,o=Xt(r),s=Xt(i),[u,c]=_.useState(n),f=t!==void 0,p=f?t:u,h=Xt(m=>{const w=typeof m=="function"?m(p):m;s(p,w)&&(f||c(w),o(w))},[f,o,p,s]);return[p,h]}var _k={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ps={enter:{duration:.2,ease:_k.easeOut},exit:{duration:.1,ease:_k.easeIn}},hs={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},RZ={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:hs.exit(ps.exit,n),transitionEnd:t==null?void 0:t.exit}}},kA={initial:"exit",animate:"enter",exit:"exit",variants:RZ},OZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:s,transitionEnd:u,delay:c,...f}=t,p=i||r?"enter":"exit",h=r?i&&r:!0,m={transition:s,transitionEnd:u,delay:c};return x.jsx(wu,{custom:m,children:h&&x.jsx(Ma.div,{ref:n,className:Me("chakra-fade",o),custom:m,...kA,animate:p,...f})})});OZ.displayName="Fade";var IZ={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(o=n==null?void 0:n.exit)!=null?o:hs.exit(ps.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:e==null?void 0:e.enter}}},TA={initial:"exit",animate:"enter",exit:"exit",variants:IZ},MZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?i&&r:!0,g=i||r?"enter":"exit",w={initialScale:s,reverse:o,transition:c,transitionEnd:f,delay:p};return x.jsx(wu,{custom:w,children:m&&x.jsx(Ma.div,{ref:n,className:Me("chakra-offset-slide",u),...TA,animate:g,custom:w,...h})})});MZ.displayName="ScaleFade";var $Z={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:(o=n==null?void 0:n.exit)!=null?o:hs.exit(ps.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{var s;const u={x:t,y:e};return{opacity:0,transition:(s=n==null?void 0:n.exit)!=null?s:hs.exit(ps.exit,o),...i?{...u,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...u,...r==null?void 0:r.exit}}}}},Tc={initial:"initial",animate:"enter",exit:"exit",variants:$Z},FZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,g=r?i&&r:!0,w=i||r?"enter":"exit",b={offsetX:u,offsetY:c,reverse:o,transition:f,transitionEnd:p,delay:h};return x.jsx(wu,{custom:b,children:g&&x.jsx(Ma.div,{ref:n,className:Me("chakra-offset-slide",s),custom:b,...Tc,animate:w,...m})})});FZ.displayName="SlideFade";var EA=ye(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return x.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});EA.displayName="NativeImage";var Za=ye((e,t)=>x.jsx(oe.img,{ref:t,as:EA,className:"chakra-image",...e}));function Zx(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[Ple,DZ]=Jt({strict:!1,name:"ButtonGroupContext"});function LZ(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function I2(e){const{children:t,className:n,...r}=e,i=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=Me("chakra-button__icon",n);return x.jsx(oe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}I2.displayName="ButtonIcon";function M2(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=x.jsx(Im,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...u}=e,c=Me("chakra-button__spinner",o),f=n==="start"?"marginEnd":"marginStart",p=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return x.jsx(oe.div,{className:c,...u,__css:p,children:i})}M2.displayName="ButtonSpinner";var $n=ye((e,t)=>{const n=DZ(),r=Wi("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:g,spinnerPlacement:w="start",className:b,as:T,...S}=gn(e),y=_.useMemo(()=>{const $={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:$}}},[r,n]),{ref:C,type:P}=LZ(T),O={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return x.jsxs(oe.button,{ref:TZ(t,C),as:T,type:m??P,"data-active":qe(s),"data-loading":qe(o),__css:y,className:Me("chakra-button",b),...S,disabled:i||o,children:[o&&w==="start"&&x.jsx(M2,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:g}),o?p||x.jsx(oe.span,{opacity:0,children:x.jsx(Ck,{...O})}):x.jsx(Ck,{...O}),o&&w==="end"&&x.jsx(M2,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:g})]})});$n.displayName="Button";function Ck(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return x.jsxs(x.Fragment,{children:[t&&x.jsx(I2,{marginEnd:i,children:t}),r,n&&x.jsx(I2,{marginStart:i,children:n})]})}var PA=ye((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...s}=e,u=n||r,c=_.isValidElement(u)?_.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return x.jsx($n,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...s,children:c})});PA.displayName="IconButton";var[jZ,AA]=MK("Card"),RA=ye(function(t,n){const{className:r,...i}=t,o=AA();return x.jsx(oe.div,{ref:n,className:Me("chakra-card__body",r),__css:o.body,...i})}),OA=ye(function(t,n){const{className:r,...i}=t,o=AA();return x.jsx(oe.div,{ref:n,className:Me("chakra-card__header",r),__css:o.header,...i})}),Jx=ye(function(t,n){const{className:r,children:i,direction:o="column",justify:s,align:u,...c}=gn(t),f=Ui("Card",t);return x.jsx(oe.div,{ref:n,className:Me("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:s,alignItems:u,position:"relative",minWidth:0,wordWrap:"break-word",...f.container},...c,children:x.jsx(jZ,{value:f,children:i})})}),[Ale,zZ]=Jt({name:"CheckboxGroupContext",strict:!1});function NZ(e){const[t,n]=_.useState(e),[r,i]=_.useState(!1);return e!==t&&(i(!0),n(e)),r}function BZ(e){return x.jsx(oe.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:x.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function VZ(e){return x.jsx(oe.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:x.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function WZ(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?VZ:BZ;return n||t?x.jsx(oe.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:x.jsx(i,{...r})}):null}var[UZ,IA]=Jt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[HZ,Fm]=Jt({strict:!1,name:"FormControlContext"});function GZ(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...s}=e,u=_.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,g]=_.useState(!1),[w,b]=_.useState(!1),[T,S]=_.useState(!1),y=_.useCallback((I={},F=null)=>({id:h,...I,ref:Wt(F,V=>{V&&b(!0)})}),[h]),C=_.useCallback((I={},F=null)=>({...I,ref:F,"data-focus":qe(T),"data-disabled":qe(i),"data-invalid":qe(r),"data-readonly":qe(o),id:I.id!==void 0?I.id:f,htmlFor:I.htmlFor!==void 0?I.htmlFor:c}),[c,i,T,r,o,f]),P=_.useCallback((I={},F=null)=>({id:p,...I,ref:Wt(F,V=>{V&&g(!0)}),"aria-live":"polite"}),[p]),O=_.useCallback((I={},F=null)=>({...I,...s,ref:F,role:"group","data-focus":qe(T),"data-disabled":qe(i),"data-invalid":qe(r),"data-readonly":qe(o)}),[s,i,T,r,o]),$=_.useCallback((I={},F=null)=>({...I,ref:F,role:"presentation","aria-hidden":!0,children:I.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!T,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:w,setHasHelpText:b,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:P,getRootProps:O,getLabelProps:C,getRequiredIndicatorProps:$}}var KZ=ye(function(t,n){const r=Ui("Form",t),i=gn(t),{getRootProps:o,htmlProps:s,...u}=GZ(i),c=Me("chakra-form-control",t.className);return x.jsx(HZ,{value:u,children:x.jsx(UZ,{value:r,children:x.jsx(oe.div,{...o({},n),className:c,__css:r.container})})})});KZ.displayName="FormControl";var qZ=ye(function(t,n){const r=Fm(),i=IA(),o=Me("chakra-form__helper-text",t.className);return x.jsx(oe.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});qZ.displayName="FormHelperText";var $i=ye(function(t,n){var r;const i=Wi("FormLabel",t),o=gn(t),{className:s,children:u,requiredIndicator:c=x.jsx(MA,{}),optionalIndicator:f=null,...p}=o,h=Fm(),m=(r=h==null?void 0:h.getLabelProps(p,n))!=null?r:{ref:n,...p};return x.jsxs(oe.label,{...m,className:Me("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[u,h!=null&&h.isRequired?c:f]})});$i.displayName="FormLabel";var MA=ye(function(t,n){const r=Fm(),i=IA();if(!(r!=null&&r.isRequired))return null;const o=Me("chakra-form__required-indicator",t.className);return x.jsx(oe.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});MA.displayName="RequiredIndicator";function YZ(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=ew(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":Bl(n),"aria-required":Bl(i),"aria-readonly":Bl(r)}}function ew(e){var t,n,r;const i=Fm(),{id:o,disabled:s,readOnly:u,required:c,isRequired:f,isInvalid:p,isReadOnly:h,isDisabled:m,onFocus:g,onBlur:w,...b}=e,T=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&T.push(i.feedbackId),i!=null&&i.hasHelpText&&T.push(i.helpTextId),{...b,"aria-describedby":T.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=s??m)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=u??h)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=c??f)!=null?r:i==null?void 0:i.isRequired,isInvalid:p??(i==null?void 0:i.isInvalid),onFocus:We(i==null?void 0:i.onFocus,g),onBlur:We(i==null?void 0:i.onBlur,w)}}var XZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},QZ=()=>typeof document<"u",kk=!1,qf=null,ks=!1,$2=!1,F2=new Set;function tw(e,t){F2.forEach(n=>n(e,t))}var ZZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function JZ(e){return!(e.metaKey||!ZZ&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Tk(e){ks=!0,JZ(e)&&(qf="keyboard",tw("keyboard",e))}function ol(e){if(qf="pointer",e.type==="mousedown"||e.type==="pointerdown"){ks=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;tw("pointer",e)}}function eJ(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function tJ(e){eJ(e)&&(ks=!0,qf="virtual")}function nJ(e){e.target===window||e.target===document||(!ks&&!$2&&(qf="virtual",tw("virtual",e)),ks=!1,$2=!1)}function rJ(){ks=!1,$2=!0}function Ek(){return qf!=="pointer"}function iJ(){if(!QZ()||kk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){ks=!0,e.apply(this,n)},document.addEventListener("keydown",Tk,!0),document.addEventListener("keyup",Tk,!0),document.addEventListener("click",tJ,!0),window.addEventListener("focus",nJ,!0),window.addEventListener("blur",rJ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ol,!0),document.addEventListener("pointermove",ol,!0),document.addEventListener("pointerup",ol,!0)):(document.addEventListener("mousedown",ol,!0),document.addEventListener("mousemove",ol,!0),document.addEventListener("mouseup",ol,!0)),kk=!0}function oJ(e){iJ(),e(Ek());const t=()=>e(Ek());return F2.add(t),()=>{F2.delete(t)}}function aJ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function sJ(e={}){const t=ew(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:g,isIndeterminate:w,name:b,value:T,tabIndex:S=void 0,"aria-label":y,"aria-labelledby":C,"aria-invalid":P,...O}=e,$=aJ(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=Xt(g),F=Xt(u),V=Xt(c),[B,X]=_.useState(!1),[pe,he]=_.useState(!1),[ge,Ae]=_.useState(!1),[se,G]=_.useState(!1);_.useEffect(()=>oJ(X),[]);const W=_.useRef(null),[J,te]=_.useState(!0),[ne,be]=_.useState(!!p),ae=h!==void 0,ce=ae?h:ne,le=_.useCallback(me=>{if(r||n){me.preventDefault();return}ae||be(ce?me.target.checked:w?!0:me.target.checked),I==null||I(me)},[r,n,ce,ae,w,I]);aa(()=>{W.current&&(W.current.indeterminate=!!w)},[w]),_a(()=>{n&&he(!1)},[n,he]),aa(()=>{const me=W.current;if(!(me!=null&&me.form))return;const Qe=()=>{be(!!p)};return me.form.addEventListener("reset",Qe),()=>{var Ve;return(Ve=me.form)==null?void 0:Ve.removeEventListener("reset",Qe)}},[]);const Te=n&&!m,et=_.useCallback(me=>{me.key===" "&&G(!0)},[G]),Ue=_.useCallback(me=>{me.key===" "&&G(!1)},[G]);aa(()=>{if(!W.current)return;W.current.checked!==ce&&be(W.current.checked)},[W.current]);const ct=_.useCallback((me={},Qe=null)=>{const Ve=Pt=>{pe&&Pt.preventDefault(),G(!0)};return{...me,ref:Qe,"data-active":qe(se),"data-hover":qe(ge),"data-checked":qe(ce),"data-focus":qe(pe),"data-focus-visible":qe(pe&&B),"data-indeterminate":qe(w),"data-disabled":qe(n),"data-invalid":qe(o),"data-readonly":qe(r),"aria-hidden":!0,onMouseDown:We(me.onMouseDown,Ve),onMouseUp:We(me.onMouseUp,()=>G(!1)),onMouseEnter:We(me.onMouseEnter,()=>Ae(!0)),onMouseLeave:We(me.onMouseLeave,()=>Ae(!1))}},[se,ce,n,pe,B,ge,w,o,r]),_t=_.useCallback((me={},Qe=null)=>({...me,ref:Qe,"data-active":qe(se),"data-hover":qe(ge),"data-checked":qe(ce),"data-focus":qe(pe),"data-focus-visible":qe(pe&&B),"data-indeterminate":qe(w),"data-disabled":qe(n),"data-invalid":qe(o),"data-readonly":qe(r)}),[se,ce,n,pe,B,ge,w,o,r]),Xe=_.useCallback((me={},Qe=null)=>({...$,...me,ref:Wt(Qe,Ve=>{Ve&&te(Ve.tagName==="LABEL")}),onClick:We(me.onClick,()=>{var Ve;J||((Ve=W.current)==null||Ve.click(),requestAnimationFrame(()=>{var Pt;(Pt=W.current)==null||Pt.focus({preventScroll:!0})}))}),"data-disabled":qe(n),"data-checked":qe(ce),"data-invalid":qe(o)}),[$,n,ce,o,J]),Re=_.useCallback((me={},Qe=null)=>({...me,ref:Wt(W,Qe),type:"checkbox",name:b,value:T,id:s,tabIndex:S,onChange:We(me.onChange,le),onBlur:We(me.onBlur,F,()=>he(!1)),onFocus:We(me.onFocus,V,()=>he(!0)),onKeyDown:We(me.onKeyDown,et),onKeyUp:We(me.onKeyUp,Ue),required:i,checked:ce,disabled:Te,readOnly:r,"aria-label":y,"aria-labelledby":C,"aria-invalid":P?!!P:o,"aria-describedby":f,"aria-disabled":n,style:XZ}),[b,T,s,le,F,V,et,Ue,i,ce,Te,r,y,C,P,o,f,n,S]),bt=_.useCallback((me={},Qe=null)=>({...me,ref:Qe,onMouseDown:We(me.onMouseDown,lJ),"data-disabled":qe(n),"data-checked":qe(ce),"data-invalid":qe(o)}),[ce,n,o]);return{state:{isInvalid:o,isFocused:pe,isChecked:ce,isActive:se,isHovered:ge,isIndeterminate:w,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:Xe,getCheckboxProps:ct,getIndicatorProps:_t,getInputProps:Re,getLabelProps:bt,htmlProps:$}}function lJ(e){e.preventDefault(),e.stopPropagation()}var uJ={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},cJ={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},fJ=rm({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),dJ=rm({from:{opacity:0},to:{opacity:1}}),pJ=rm({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),$A=ye(function(t,n){const r=zZ(),i={...r,...t},o=Ui("Checkbox",i),s=gn(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=x.jsx(WZ,{}),isChecked:g,isDisabled:w=r==null?void 0:r.isDisabled,onChange:b,inputProps:T,...S}=s;let y=g;r!=null&&r.value&&s.value&&(y=r.value.includes(s.value));let C=b;r!=null&&r.onChange&&s.value&&(C=pP(r.onChange,b));const{state:P,getInputProps:O,getCheckboxProps:$,getLabelProps:I,getRootProps:F}=sJ({...S,isDisabled:w,isChecked:y,onChange:C}),V=NZ(P.isChecked),B=_.useMemo(()=>({animation:V?P.isIndeterminate?`${dJ} 20ms linear, ${pJ} 200ms linear`:`${fJ} 200ms linear`:void 0,fontSize:h,color:p,...o.icon}),[p,h,V,P.isIndeterminate,o.icon]),X=_.cloneElement(m,{__css:B,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return x.jsxs(oe.label,{__css:{...cJ,...o.container},className:Me("chakra-checkbox",c),...F(),children:[x.jsx("input",{className:"chakra-checkbox__input",...O(T,n)}),x.jsx(oe.span,{__css:{...uJ,...o.control},className:"chakra-checkbox__control",...$(),children:X}),f&&x.jsx(oe.span,{className:"chakra-checkbox__label",...I(),__css:{marginStart:u,...o.label},children:f})]})});$A.displayName="Checkbox";function hJ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function nw(e,t){let n=hJ(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function D2(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function Pk(e,t,n){return(e-t)*100/(n-t)}function mJ(e,t,n){return(n-t)*e+t}function Ak(e,t,n){const r=Math.round((e-t)/n)*n+t,i=D2(n);return nw(r,i)}function Eh(e,t,n){return e==null?e:(n{var B;return r==null?"":(B=Vy(r,o,n))!=null?B:""}),m=typeof i<"u",g=m?i:p,w=FA(Xo(g),o),b=n??w,T=_.useCallback(B=>{B!==g&&(m||h(B.toString()),f==null||f(B.toString(),Xo(B)))},[f,m,g]),S=_.useCallback(B=>{let X=B;return c&&(X=Eh(X,s,u)),nw(X,b)},[b,c,u,s]),y=_.useCallback((B=o)=>{let X;g===""?X=Xo(B):X=Xo(g)+B,X=S(X),T(X)},[S,o,T,g]),C=_.useCallback((B=o)=>{let X;g===""?X=Xo(-B):X=Xo(g)-B,X=S(X),T(X)},[S,o,T,g]),P=_.useCallback(()=>{var B;let X;r==null?X="":X=(B=Vy(r,o,n))!=null?B:s,T(X)},[r,n,o,T,s]),O=_.useCallback(B=>{var X;const pe=(X=Vy(B,o,b))!=null?X:s;T(pe)},[b,o,T,s]),$=Xo(g);return{isOutOfRange:$>u||${const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function gJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var L2="data-focus-lock",DA="data-focus-lock-disabled",yJ="data-no-focus-lock",bJ="data-autofocus-inside",xJ="data-no-autofocus";function Wy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wJ(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var SJ=typeof window<"u"?_.useLayoutEffect:_.useEffect,Rk=new WeakMap;function LA(e,t){var n=wJ(t||null,function(r){return e.forEach(function(i){return Wy(i,r)})});return SJ(function(){var r=Rk.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(u){o.has(u)||Wy(u,null)}),o.forEach(function(u){i.has(u)||Wy(u,s)})}Rk.set(n,e)},[e]),n}var Uy={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Fi=function(){return Fi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(VJ)},UJ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],aw=UJ.join(","),HJ="".concat(aw,", [data-focus-guard]"),t8=function(e,t){return Hi((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?HJ:aw)?[r]:[],t8(r))},[])},GJ=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?lu([e.contentDocument.body],t):[e]},lu=function(e,t){return e.reduce(function(n,r){var i,o=t8(r,t),s=(i=[]).concat.apply(i,o.map(function(u){return GJ(u,t)}));return n.concat(s,r.parentNode?Hi(r.parentNode.querySelectorAll(aw)).filter(function(u){return u===r}):[])},[])},KJ=function(e){var t=e.querySelectorAll("[".concat(bJ,"]"));return Hi(t).map(function(n){return lu([n])}).reduce(function(n,r){return n.concat(r)},[])},sw=function(e,t){return Hi(e).filter(function(n){return XA(t,n)}).filter(function(n){return zJ(n)})},Ok=function(e,t){return t===void 0&&(t=new Map),Hi(e).filter(function(n){return QA(t,n)})},lw=function(e,t,n){return ow(sw(lu(e,n),t),!0,n)},E0=function(e,t){return ow(sw(lu(e),t),!1)},qJ=function(e,t){return sw(KJ(e),t)},ms=function(e,t){return e.shadowRoot?ms(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Hi(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?ms(i,t):!1}return ms(n,t)})},YJ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},n8=function(e){return e.parentNode?n8(e.parentNode):e},uw=function(e){var t=Ts(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(L2);return n.push.apply(n,i?YJ(Hi(n8(r).querySelectorAll("[".concat(L2,'="').concat(i,'"]:not([').concat(DA,'="disabled"])')))):[r]),n},[])},XJ=function(e){try{return e()}catch{return}},Pf=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Pf(t.shadowRoot):t instanceof HTMLIFrameElement&&XJ(function(){return t.contentWindow.document})?Pf(t.contentWindow.document):t}},QJ=function(e,t){return e===t},ZJ=function(e,t){return!!Hi(e.querySelectorAll("iframe")).some(function(n){return QJ(n,t)})},r8=function(e,t){return t===void 0&&(t=Pf(KA(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:uw(e).some(function(n){return ms(n,t)||ZJ(n,t)})},JJ=function(e){e===void 0&&(e=document);var t=Pf(e);return t?Hi(e.querySelectorAll("[".concat(yJ,"]"))).some(function(n){return ms(n,t)}):!1},eee=function(e,t){return t.filter(e8).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},cw=function(e,t){return e8(e)&&e.name?eee(e,t):e},tee=function(e){var t=new Set;return e.forEach(function(n){return t.add(cw(n,e))}),e.filter(function(n){return t.has(n)})},Ik=function(e){return e[0]&&e.length>1?cw(e[0],e):e[0]},Mk=function(e,t){return e.indexOf(cw(t,e))},N2="NEW_FOCUS",nee=function(e,t,n,r,i){var o=e.length,s=e[0],u=e[o-1],c=iw(r);if(!(r&&e.indexOf(r)>=0)){var f=r!==void 0?n.indexOf(r):-1,p=i?n.indexOf(i):f,h=i?e.indexOf(i):-1;if(f===-1)return h!==-1?h:N2;if(h===-1)return N2;var m=f-p,g=n.indexOf(s),w=n.indexOf(u),b=tee(n),T=r!==void 0?b.indexOf(r):-1,S=T-(i?b.indexOf(i):f);if(!m&&h>=0||t.length===0)return h;var y=Mk(e,t[0]),C=Mk(e,t[t.length-1]);if(f<=g&&c&&Math.abs(m)>1)return C;if(f>=w&&c&&Math.abs(m)>1)return y;if(m&&Math.abs(S)>1)return h;if(f<=g)return C;if(f>w)return y;if(m)return Math.abs(m)>1?h:(o+h+m)%o}},ree=function(e){return function(t){var n,r=(n=ZA(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$k=function(e,t,n){var r=e.map(function(o){var s=o.node;return s}),i=Ok(r.filter(ree(n)));return i&&i.length?Ik(i):Ik(Ok(t))},B2=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&B2(e.parentNode.host||e.parentNode,t),t},Hy=function(e,t){for(var n=B2(e),r=B2(t),i=0;i=0)return o}return!1},i8=function(e,t,n){var r=Ts(e),i=Ts(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(u){s=Hy(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=Hy(o,c);f&&(!s||ms(f,s)?s=f:s=Hy(f,s))})}),s},Fk=function(e,t){return e.reduce(function(n,r){return n.concat(qJ(r,t))},[])},iee=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(BJ)},oee=function(e,t){var n=Pf(Ts(e).length>0?document:KA(e).ownerDocument),r=uw(e).filter(z2),i=i8(n||e,e,r),o=new Map,s=E0(r,o),u=s.filter(function(w){var b=w.node;return z2(b)});if(u[0]){var c=E0([i],o).map(function(w){var b=w.node;return b}),f=iee(c,u),p=f.map(function(w){var b=w.node;return b}),h=f.filter(function(w){var b=w.tabIndex;return b>=0}).map(function(w){var b=w.node;return b}),m=nee(p,h,c,n,t);if(m===N2){var g=$k(s,h,Fk(r,o))||$k(s,p,Fk(r,o));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:f[m]}},aee=function(e){var t=uw(e).filter(z2),n=i8(e,e,t),r=ow(lu([n],!0),!0,!0),i=lu(t,!1);return r.map(function(o){var s=o.node,u=o.index;return{node:s,index:u,lockItem:i.indexOf(s)>=0,guard:iw(s)}})},fw=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Gy=0,Ky=!1,o8=function(e,t,n){n===void 0&&(n={});var r=oee(e,t);if(!Ky&&r){if(Gy>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ky=!0,setTimeout(function(){Ky=!1},1);return}Gy++,fw(r.node,n.focusOptions),Gy--}};function dc(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var see=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:dc(n),parent:dc(n.parentElement),left:dc(n.previousElementSibling),right:dc(n.nextElementSibling)}),n=n.parentElement;return{element:dc(e),stack:t,ownerDocument:e.ownerDocument}},lee=function(e){var t,n,r,i,o;if(e)for(var s=e.stack,u=e.ownerDocument,c=new Map,f=0,p=s;f-1&&(g.filter(function(b){var T=b.guard,S=b.node;return T&&S.dataset.focusAutoGuard}).forEach(function(b){var T=b.node;return T.removeAttribute("tabIndex")}),Dk(w,g.length,1,g),Dk(w,-1,-1,g))}}}return t},l8=function(t){P0()&&t&&(t.stopPropagation(),t.preventDefault())},pw=function(){return dw(P0)},Eee=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||See(r,n)},Pee=function(){return null},u8=function(){Af="just",dw(function(){Af="meanwhile"})},Aee=function(){document.addEventListener("focusin",l8),document.addEventListener("focusout",pw),window.addEventListener("blur",u8)},Ree=function(){document.removeEventListener("focusin",l8),document.removeEventListener("focusout",pw),window.removeEventListener("blur",u8)};function Oee(e){return e.filter(function(t){var n=t.disabled;return!n})}var c8={moveFocusInside:o8,focusInside:r8,focusNextElement:pee,focusPrevElement:hee,focusFirstElement:mee,focusLastElement:vee,captureFocusRestore:uee};function Iee(e){var t=e.slice(-1)[0];t&&!Kl&&Aee();var n=Kl,r=n&&t&&t.id===n.id;Kl=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(Ml=null,(!r||n.observed!==t.observed)&&t.onActivation(c8),P0(),dw(P0)):(Ree(),Ml=null)}WA.assignSyncMedium(Eee);UA.assignMedium(pw);kJ.assignMedium(function(e){return e(c8)});const Mee=MJ(Oee,Iee)(Pee);var V2=_.forwardRef(function(t,n){return _.createElement(GA,bs({sideCar:Mee,ref:n},t))}),f8=GA.propTypes||{};f8.sideCar;gJ(f8,["sideCar"]);V2.propTypes={};function d8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hw(e){var t;if(!d8(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function $ee(e){var t,n;return(n=(t=p8(e))==null?void 0:t.defaultView)!=null?n:window}function p8(e){return d8(e)?e.ownerDocument:document}function Fee(e){return p8(e).activeElement}function Dee(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lee(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function h8(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:hw(e)&&Dee(e)?e:h8(Lee(e))}var m8=e=>e.hasAttribute("tabindex"),jee=e=>m8(e)&&e.tabIndex===-1;function zee(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function v8(e){return e.parentElement&&v8(e.parentElement)?!0:e.hidden}function Nee(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function g8(e){if(!hw(e)||v8(e)||zee(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():Nee(e)?!0:m8(e)}function Bee(e){return e?hw(e)&&g8(e)&&!jee(e):!1}var Vee=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],Wee=Vee.join(),Uee=e=>e.offsetWidth>0&&e.offsetHeight>0;function Hee(e){const t=Array.from(e.querySelectorAll(Wee));return t.unshift(e),t.filter(n=>g8(n)&&Uee(n))}var Lk,Gee=(Lk=V2.default)!=null?Lk:V2,y8=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=_.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&Hee(r.current).length===0&&requestAnimationFrame(()=>{var w;(w=r.current)==null||w.focus()})},[t,r]),h=_.useCallback(()=>{var g;(g=n==null?void 0:n.current)==null||g.focus()},[n]),m=i&&!n;return x.jsx(Gee,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:m,children:o})};y8.displayName="FocusLock";var A0=ye(function(t,n){const{htmlSize:r,...i}=t,o=Ui("Input",i),s=gn(i),u=YZ(s),c=Me("chakra-input",t.className);return x.jsx(oe.input,{size:r,...u,__css:o.field,ref:n,className:c})});A0.displayName="Input";A0.id="Input";function Kee(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Cr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var va=ye(function(t,n){const r=Wi("Text",t),{className:i,align:o,decoration:s,casing:u,...c}=gn(t),f=xK({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return x.jsx(oe.p,{ref:n,className:Me("chakra-text",t.className),...f,...c,__css:r})});va.displayName="Text";var mw=e=>x.jsx(oe.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});mw.displayName="StackDivider";var b8=e=>x.jsx(oe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});b8.displayName="StackItem";function qee(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Kee(n,i=>r[i])}}var R0=ye((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,g=n?"row":r??"column",w=_.useMemo(()=>qee({spacing:s,direction:g}),[s,g]),b=!!f,T=!h&&!b,S=_.useMemo(()=>{const C=Zx(c);return T?C:C.map((P,O)=>{const $=typeof P.key<"u"?P.key:O,I=O+1===C.length,V=h?x.jsx(b8,{children:P},$):P;if(!b)return V;const B=_.cloneElement(f,{__css:w}),X=I?null:B;return x.jsxs(_.Fragment,{children:[V,X]},$)})},[f,w,b,T,h,c]),y=Me("chakra-stack",p);return x.jsx(oe.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:g,flexWrap:u,gap:b?void 0:s,className:y,...m,children:S})});R0.displayName="Stack";var Ta=ye(function(t,n){const r=Wi("Heading",t),{className:i,...o}=gn(t);return x.jsx(oe.h2,{ref:n,className:Me("chakra-heading",t.className),...o,__css:r})});Ta.displayName="Heading";var Pr=oe("div");Pr.displayName="Box";var x8=ye(function(t,n){const{size:r,centerContent:i=!0,...o}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return x.jsx(Pr,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...o})});x8.displayName="Square";var Yee=ye(function(t,n){const{size:r,...i}=t;return x.jsx(x8,{size:r,ref:n,borderRadius:"9999px",...i})});Yee.displayName="Circle";var vw=oe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});vw.displayName="Center";var Xee={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};ye(function(t,n){const{axis:r="both",...i}=t;return x.jsx(oe.div,{ref:n,__css:Xee[r],...i,position:"absolute"})});var O0=ye(function(t,n){const r=Wi("Code",t),{className:i,...o}=gn(t);return x.jsx(oe.code,{ref:n,className:Me("chakra-code",t.className),...o,__css:{display:"inline-block",...r}})});O0.displayName="Code";var gw=ye(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=Wi("Divider",t),{className:h,orientation:m="horizontal",__css:g,...w}=gn(t),b={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||u||"1px",width:"100%"}};return x.jsx(oe.hr,{ref:n,"aria-orientation":m,...w,__css:{...p,border:"0",borderColor:f,borderStyle:c,...b[m],...g},className:Me("chakra-divider",h)})});gw.displayName="Divider";var mt=ye(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return x.jsx(oe.div,{ref:n,__css:h,...p})});mt.displayName="Flex";function Qee(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function Zee(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=_.useState([]),o=_.useRef(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},u=()=>{s(),o.current=setTimeout(()=>{i([]),o.current=null},t)};_.useEffect(()=>s,[]);function c(f){return p=>{if(p.key==="Backspace"){const h=[...r];h.pop(),i(h);return}if(Qee(p)){const h=r.concat(p.key);n(p)&&(p.preventDefault(),p.stopPropagation()),i(h),f(h.join("")),u()}}}return c}function Jee(e,t,n,r){if(t==null)return r;if(!r)return e.find(s=>n(s).toLowerCase().startsWith(t.toLowerCase()));const i=e.filter(o=>n(o).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let o;return i.includes(r)?(o=i.indexOf(r)+1,o===i.length&&(o=0),i[o]):(o=e.indexOf(i[0]),e[o])}return r}function ete(){const e=_.useRef(new Map),t=e.current,n=_.useCallback((i,o,s,u)=>{e.current.set(s,{type:o,el:i,options:u}),i.addEventListener(o,s,u)},[]),r=_.useCallback((i,o,s,u)=>{i.removeEventListener(o,s,u),e.current.delete(s)},[]);return _.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function qy(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function w8(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:s,onMouseUp:u,onClick:c,onKeyDown:f,onKeyUp:p,tabIndex:h,onMouseOver:m,onMouseLeave:g,...w}=e,[b,T]=_.useState(!0),[S,y]=_.useState(!1),C=ete(),P=G=>{G&&G.tagName!=="BUTTON"&&T(!1)},O=b?h:h||0,$=n&&!r,I=_.useCallback(G=>{if(n){G.stopPropagation(),G.preventDefault();return}G.currentTarget.focus(),c==null||c(G)},[n,c]),F=_.useCallback(G=>{S&&qy(G)&&(G.preventDefault(),G.stopPropagation(),y(!1),C.remove(document,"keyup",F,!1))},[S,C]),V=_.useCallback(G=>{if(f==null||f(G),n||G.defaultPrevented||G.metaKey||!qy(G.nativeEvent)||b)return;const W=i&&G.key==="Enter";o&&G.key===" "&&(G.preventDefault(),y(!0)),W&&(G.preventDefault(),G.currentTarget.click()),C.add(document,"keyup",F,!1)},[n,b,f,i,o,C,F]),B=_.useCallback(G=>{if(p==null||p(G),n||G.defaultPrevented||G.metaKey||!qy(G.nativeEvent)||b)return;o&&G.key===" "&&(G.preventDefault(),y(!1),G.currentTarget.click())},[o,b,n,p]),X=_.useCallback(G=>{G.button===0&&(y(!1),C.remove(document,"mouseup",X,!1))},[C]),pe=_.useCallback(G=>{if(G.button!==0)return;if(n){G.stopPropagation(),G.preventDefault();return}b||y(!0),G.currentTarget.focus({preventScroll:!0}),C.add(document,"mouseup",X,!1),s==null||s(G)},[n,b,s,C,X]),he=_.useCallback(G=>{G.button===0&&(b||y(!1),u==null||u(G))},[u,b]),ge=_.useCallback(G=>{if(n){G.preventDefault();return}m==null||m(G)},[n,m]),Ae=_.useCallback(G=>{S&&(G.preventDefault(),y(!1)),g==null||g(G)},[S,g]),se=Wt(t,P);return b?{...w,ref:se,type:"button","aria-disabled":$?void 0:n,disabled:$,onClick:I,onMouseDown:s,onMouseUp:u,onKeyUp:p,onKeyDown:f,onMouseOver:m,onMouseLeave:g}:{...w,ref:se,role:"button","data-active":qe(S),"aria-disabled":n?"true":void 0,tabIndex:$?void 0:O,onClick:I,onMouseDown:pe,onMouseUp:he,onKeyUp:B,onKeyDown:V,onMouseOver:ge,onMouseLeave:Ae}}function tte(e){const t=e.current;if(!t)return!1;const n=Fee(t);return!n||t.contains(n)?!1:!!Bee(n)}function nte(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;_a(()=>{if(!o||tte(e))return;const s=(i==null?void 0:i.current)||e.current;let u;if(s)return u=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(u)}},[o,e,i])}var al=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Cn={arrowShadowColor:al("--popper-arrow-shadow-color"),arrowSize:al("--popper-arrow-size","8px"),arrowSizeHalf:al("--popper-arrow-size-half"),arrowBg:al("--popper-arrow-bg"),transformOrigin:al("--popper-transform-origin"),arrowOffset:al("--popper-arrow-offset")};function rte(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var ite={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ote=e=>ite[e],jk={scroll:!0,resize:!0};function ate(e){let t;return typeof e=="object"?t={enabled:!0,options:{...jk,...e}}:t={enabled:e,options:jk},t}var ste={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},lte={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{zk(e)},effect:({state:e})=>()=>{zk(e)}},zk=e=>{e.elements.popper.style.setProperty(Cn.transformOrigin.var,ote(e.placement))},ute={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{cte(e)}},cte=e=>{var t;if(!e.placement)return;const n=fte(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Cn.arrowSize.varRef,height:Cn.arrowSize.varRef,zIndex:-1});const r={[Cn.arrowSizeHalf.var]:`calc(${Cn.arrowSize.varRef} / 2 - 1px)`,[Cn.arrowOffset.var]:`calc(${Cn.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},fte=e=>{if(e.startsWith("top"))return{property:"bottom",value:Cn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Cn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Cn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Cn.arrowOffset.varRef}},dte={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Nk(e)},effect:({state:e})=>()=>{Nk(e)}},Nk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=rte(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Cn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},pte={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},hte={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function mte(e,t="ltr"){var n,r;const i=((n=pte[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=hte[e])!=null?r:i}var lr="top",ri="bottom",ii="right",ur="left",yw="auto",Yf=[lr,ri,ii,ur],uu="start",Rf="end",vte="clippingParents",S8="viewport",pc="popper",gte="reference",Bk=Yf.reduce(function(e,t){return e.concat([t+"-"+uu,t+"-"+Rf])},[]),_8=[].concat(Yf,[yw]).reduce(function(e,t){return e.concat([t,t+"-"+uu,t+"-"+Rf])},[]),yte="beforeRead",bte="read",xte="afterRead",wte="beforeMain",Ste="main",_te="afterMain",Cte="beforeWrite",kte="write",Tte="afterWrite",Ete=[yte,bte,xte,wte,Ste,_te,Cte,kte,Tte];function Vi(e){return e?(e.nodeName||"").toLowerCase():null}function Ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Es(e){var t=Ar(e).Element;return e instanceof t||e instanceof Element}function ei(e){var t=Ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bw(e){if(typeof ShadowRoot>"u")return!1;var t=Ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ei(o)||!Vi(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function Ate(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!ei(i)||!Vi(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Rte={name:"applyStyles",enabled:!0,phase:"write",fn:Pte,effect:Ate,requires:["computeStyles"]};function Bi(e){return e.split("-")[0]}var vs=Math.max,I0=Math.min,cu=Math.round;function W2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function C8(){return!/^((?!chrome|android).)*safari/i.test(W2())}function fu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ei(e)&&(i=e.offsetWidth>0&&cu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&cu(r.height)/e.offsetHeight||1);var s=Es(e)?Ar(e):window,u=s.visualViewport,c=!C8()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/i,p=(r.top+(c&&u?u.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function xw(e){var t=fu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return Ar(e).getComputedStyle(e)}function Ote(e){return["table","td","th"].indexOf(Vi(e))>=0}function Fa(e){return((Es(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dm(e){return Vi(e)==="html"?e:e.assignedSlot||e.parentNode||(bw(e)?e.host:null)||Fa(e)}function Vk(e){return!ei(e)||Ro(e).position==="fixed"?null:e.offsetParent}function Ite(e){var t=/firefox/i.test(W2()),n=/Trident/i.test(W2());if(n&&ei(e)){var r=Ro(e);if(r.position==="fixed")return null}var i=Dm(e);for(bw(i)&&(i=i.host);ei(i)&&["html","body"].indexOf(Vi(i))<0;){var o=Ro(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xf(e){for(var t=Ar(e),n=Vk(e);n&&Ote(n)&&Ro(n).position==="static";)n=Vk(n);return n&&(Vi(n)==="html"||Vi(n)==="body"&&Ro(n).position==="static")?t:n||Ite(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yc(e,t,n){return vs(e,I0(t,n))}function Mte(e,t,n){var r=Yc(e,t,n);return r>n?n:r}function T8(){return{top:0,right:0,bottom:0,left:0}}function E8(e){return Object.assign({},T8(),e)}function P8(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $te=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E8(typeof t!="number"?t:P8(t,Yf))};function Fte(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,u=Bi(n.placement),c=ww(u),f=[ur,ii].indexOf(u)>=0,p=f?"height":"width";if(!(!o||!s)){var h=$te(i.padding,n),m=xw(o),g=c==="y"?lr:ur,w=c==="y"?ri:ii,b=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],T=s[c]-n.rects.reference[c],S=Xf(o),y=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,C=b/2-T/2,P=h[g],O=y-m[p]-h[w],$=y/2-m[p]/2+C,I=Yc(P,$,O),F=c;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-$,t)}}function Dte(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||k8(t.elements.popper,i)&&(t.elements.arrow=i))}const Lte={name:"arrow",enabled:!0,phase:"main",fn:Fte,effect:Dte,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function du(e){return e.split("-")[1]}var jte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zte(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:cu(n*i)/i||0,y:cu(r*i)/i||0}}function Wk(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,g=m===void 0?0:m,w=s.y,b=w===void 0?0:w,T=typeof p=="function"?p({x:g,y:b}):{x:g,y:b};g=T.x,b=T.y;var S=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),C=ur,P=lr,O=window;if(f){var $=Xf(n),I="clientHeight",F="clientWidth";if($===Ar(n)&&($=Fa(n),Ro($).position!=="static"&&u==="absolute"&&(I="scrollHeight",F="scrollWidth")),$=$,i===lr||(i===ur||i===ii)&&o===Rf){P=ri;var V=h&&$===O&&O.visualViewport?O.visualViewport.height:$[I];b-=V-r.height,b*=c?1:-1}if(i===ur||(i===lr||i===ri)&&o===Rf){C=ii;var B=h&&$===O&&O.visualViewport?O.visualViewport.width:$[F];g-=B-r.width,g*=c?1:-1}}var X=Object.assign({position:u},f&&jte),pe=p===!0?zte({x:g,y:b},Ar(n)):{x:g,y:b};if(g=pe.x,b=pe.y,c){var he;return Object.assign({},X,(he={},he[P]=y?"0":"",he[C]=S?"0":"",he.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",he))}return Object.assign({},X,(t={},t[P]=y?b+"px":"",t[C]=S?g+"px":"",t.transform="",t))}function Nte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Bi(t.placement),variation:du(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wk(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wk(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nte,data:{}};var Wp={passive:!0};function Vte(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,u=s===void 0?!0:s,c=Ar(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(p){p.addEventListener("scroll",n.update,Wp)}),u&&c.addEventListener("resize",n.update,Wp),function(){o&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Wp)}),u&&c.removeEventListener("resize",n.update,Wp)}}const Wte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vte,data:{}};var Ute={left:"right",right:"left",bottom:"top",top:"bottom"};function Ph(e){return e.replace(/left|right|bottom|top/g,function(t){return Ute[t]})}var Hte={start:"end",end:"start"};function Uk(e){return e.replace(/start|end/g,function(t){return Hte[t]})}function Sw(e){var t=Ar(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _w(e){return fu(Fa(e)).left+Sw(e).scrollLeft}function Gte(e,t){var n=Ar(e),r=Fa(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,u=0,c=0;if(i){o=i.width,s=i.height;var f=C8();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:u+_w(e),y:c}}function Kte(e){var t,n=Fa(e),r=Sw(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=vs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=vs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+_w(e),c=-r.scrollTop;return Ro(i||n).direction==="rtl"&&(u+=vs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function Cw(e){var t=Ro(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function A8(e){return["html","body","#document"].indexOf(Vi(e))>=0?e.ownerDocument.body:ei(e)&&Cw(e)?e:A8(Dm(e))}function Xc(e,t){var n;t===void 0&&(t=[]);var r=A8(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ar(r),s=i?[o].concat(o.visualViewport||[],Cw(r)?r:[]):r,u=t.concat(s);return i?u:u.concat(Xc(Dm(s)))}function U2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qte(e,t){var n=fu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hk(e,t,n){return t===S8?U2(Gte(e,n)):Es(t)?qte(t,n):U2(Kte(Fa(e)))}function Yte(e){var t=Xc(Dm(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&ei(e)?Xf(e):e;return Es(r)?t.filter(function(i){return Es(i)&&k8(i,r)&&Vi(i)!=="body"}):[]}function Xte(e,t,n,r){var i=t==="clippingParents"?Yte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],u=o.reduce(function(c,f){var p=Hk(e,f,r);return c.top=vs(p.top,c.top),c.right=I0(p.right,c.right),c.bottom=I0(p.bottom,c.bottom),c.left=vs(p.left,c.left),c},Hk(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function R8(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bi(r):null,o=r?du(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(i){case lr:c={x:s,y:t.y-n.height};break;case ri:c={x:s,y:t.y+t.height};break;case ii:c={x:t.x+t.width,y:u};break;case ur:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?ww(i):null;if(f!=null){var p=f==="y"?"height":"width";switch(o){case uu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Rf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Of(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,u=n.boundary,c=u===void 0?vte:u,f=n.rootBoundary,p=f===void 0?S8:f,h=n.elementContext,m=h===void 0?pc:h,g=n.altBoundary,w=g===void 0?!1:g,b=n.padding,T=b===void 0?0:b,S=E8(typeof T!="number"?T:P8(T,Yf)),y=m===pc?gte:pc,C=e.rects.popper,P=e.elements[w?y:m],O=Xte(Es(P)?P:P.contextElement||Fa(e.elements.popper),c,p,s),$=fu(e.elements.reference),I=R8({reference:$,element:C,strategy:"absolute",placement:i}),F=U2(Object.assign({},C,I)),V=m===pc?F:$,B={top:O.top-V.top+S.top,bottom:V.bottom-O.bottom+S.bottom,left:O.left-V.left+S.left,right:V.right-O.right+S.right},X=e.modifiersData.offset;if(m===pc&&X){var pe=X[i];Object.keys(B).forEach(function(he){var ge=[ii,ri].indexOf(he)>=0?1:-1,Ae=[lr,ri].indexOf(he)>=0?"y":"x";B[he]+=pe[Ae]*ge})}return B}function Qte(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?_8:c,p=du(r),h=p?u?Bk:Bk.filter(function(w){return du(w)===p}):Yf,m=h.filter(function(w){return f.indexOf(w)>=0});m.length===0&&(m=h);var g=m.reduce(function(w,b){return w[b]=Of(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[Bi(b)],w},{});return Object.keys(g).sort(function(w,b){return g[w]-g[b]})}function Zte(e){if(Bi(e)===yw)return[];var t=Ph(e);return[Uk(e),t,Uk(t)]}function Jte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,w=g===void 0?!0:g,b=n.allowedAutoPlacements,T=t.options.placement,S=Bi(T),y=S===T,C=c||(y||!w?[Ph(T)]:Zte(T)),P=[T].concat(C).reduce(function(ce,le){return ce.concat(Bi(le)===yw?Qte(t,{placement:le,boundary:p,rootBoundary:h,padding:f,flipVariations:w,allowedAutoPlacements:b}):le)},[]),O=t.rects.reference,$=t.rects.popper,I=new Map,F=!0,V=P[0],B=0;B=0,Ae=ge?"width":"height",se=Of(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),G=ge?he?ii:ur:he?ri:lr;O[Ae]>$[Ae]&&(G=Ph(G));var W=Ph(G),J=[];if(o&&J.push(se[pe]<=0),u&&J.push(se[G]<=0,se[W]<=0),J.every(function(ce){return ce})){V=X,F=!1;break}I.set(X,J)}if(F)for(var te=w?3:1,ne=function(le){var Te=P.find(function(et){var Ue=I.get(et);if(Ue)return Ue.slice(0,le).every(function(ct){return ct})});if(Te)return V=Te,"break"},be=te;be>0;be--){var ae=ne(be);if(ae==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const ene={name:"flip",enabled:!0,phase:"main",fn:Jte,requiresIfExists:["offset"],data:{_skip:!1}};function Gk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kk(e){return[lr,ii,ri,ur].some(function(t){return e[t]>=0})}function tne(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Of(t,{elementContext:"reference"}),u=Of(t,{altBoundary:!0}),c=Gk(s,r),f=Gk(u,i,o),p=Kk(c),h=Kk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const nne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tne};function rne(e,t,n){var r=Bi(e),i=[ur,lr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[ur,ii].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function ine(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=_8.reduce(function(p,h){return p[h]=rne(h,t.rects,o),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const one={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ine};function ane(e){var t=e.state,n=e.name;t.modifiersData[n]=R8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const sne={name:"popperOffsets",enabled:!0,phase:"read",fn:ane,data:{}};function lne(e){return e==="x"?"y":"x"}function une(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,w=n.tetherOffset,b=w===void 0?0:w,T=Of(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),S=Bi(t.placement),y=du(t.placement),C=!y,P=ww(S),O=lne(P),$=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,V=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,B=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,pe={x:0,y:0};if($){if(o){var he,ge=P==="y"?lr:ur,Ae=P==="y"?ri:ii,se=P==="y"?"height":"width",G=$[P],W=G+T[ge],J=G-T[Ae],te=g?-F[se]/2:0,ne=y===uu?I[se]:F[se],be=y===uu?-F[se]:-I[se],ae=t.elements.arrow,ce=g&&ae?xw(ae):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T8(),Te=le[ge],et=le[Ae],Ue=Yc(0,I[se],ce[se]),ct=C?I[se]/2-te-Ue-Te-B.mainAxis:ne-Ue-Te-B.mainAxis,_t=C?-I[se]/2+te+Ue+et+B.mainAxis:be+Ue+et+B.mainAxis,Xe=t.elements.arrow&&Xf(t.elements.arrow),Re=Xe?P==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,bt=(he=X==null?void 0:X[P])!=null?he:0,Oe=G+ct-bt-Re,me=G+_t-bt,Qe=Yc(g?I0(W,Oe):W,G,g?vs(J,me):J);$[P]=Qe,pe[P]=Qe-G}if(u){var Ve,Pt=P==="x"?lr:ur,rn=P==="x"?ri:ii,xt=$[O],Ct=O==="y"?"height":"width",Ut=xt+T[Pt],$t=xt-T[rn],qn=[lr,ur].indexOf(S)!==-1,Dn=(Ve=X==null?void 0:X[O])!=null?Ve:0,_i=qn?Ut:xt-I[Ct]-F[Ct]-Dn+B.altAxis,Yn=qn?xt+I[Ct]+F[Ct]-Dn-B.altAxis:$t,ee=g&&qn?Mte(_i,xt,Yn):Yc(g?_i:Ut,xt,g?Yn:$t);$[O]=ee,pe[O]=ee-xt}t.modifiersData[r]=pe}}const cne={name:"preventOverflow",enabled:!0,phase:"main",fn:une,requiresIfExists:["offset"]};function fne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dne(e){return e===Ar(e)||!ei(e)?Sw(e):fne(e)}function pne(e){var t=e.getBoundingClientRect(),n=cu(t.width)/e.offsetWidth||1,r=cu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hne(e,t,n){n===void 0&&(n=!1);var r=ei(t),i=ei(t)&&pne(t),o=Fa(t),s=fu(e,i,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Vi(t)!=="body"||Cw(o))&&(u=dne(t)),ei(t)?(c=fu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=_w(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function mne(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vne(e){var t=mne(e);return Ete.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function gne(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yne(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qk={placement:"bottom",modifiers:[],strategy:"absolute"};function Yk(){for(var e=arguments.length,t=new Array(e),n=0;n{}),C=_.useCallback(()=>{var B;!t||!w.current||!b.current||((B=y.current)==null||B.call(y),T.current=wne(w.current,b.current,{placement:S,modifiers:[dte,ute,lte,{...ste,enabled:!!m},{name:"eventListeners",...ate(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:i}),T.current.forceUpdate(),y.current=T.current.destroy)},[S,t,n,m,s,o,u,c,f,h,p,i]);_.useEffect(()=>()=>{var B;!w.current&&!b.current&&((B=T.current)==null||B.destroy(),T.current=null)},[]);const P=_.useCallback(B=>{w.current=B,C()},[C]),O=_.useCallback((B={},X=null)=>({...B,ref:Wt(P,X)}),[P]),$=_.useCallback(B=>{b.current=B,C()},[C]),I=_.useCallback((B={},X=null)=>({...B,ref:Wt($,X),style:{...B.style,position:i,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[i,$,m]),F=_.useCallback((B={},X=null)=>{const{size:pe,shadowColor:he,bg:ge,style:Ae,...se}=B;return{...se,ref:X,"data-popper-arrow":"",style:Sne(B)}},[]),V=_.useCallback((B={},X=null)=>({...B,ref:X,"data-popper-arrow-inner":""}),[]);return{update(){var B;(B=T.current)==null||B.update()},forceUpdate(){var B;(B=T.current)==null||B.forceUpdate()},transformOrigin:Cn.transformOrigin.varRef,referenceRef:P,popperRef:$,getPopperProps:I,getArrowProps:F,getArrowInnerProps:V,getReferenceProps:O}}function Sne(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function I8(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=Xt(n),s=Xt(t),[u,c]=_.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=_.useId(),m=i??`disclosure-${h}`,g=_.useCallback(()=>{p||c(!1),s==null||s()},[p,s]),w=_.useCallback(()=>{p||c(!0),o==null||o()},[p,o]),b=_.useCallback(()=>{f?g():w()},[f,w,g]);function T(y={}){return{...y,"aria-expanded":f,"aria-controls":m,onClick(C){var P;(P=y.onClick)==null||P.call(y,C),b()}}}function S(y={}){return{...y,hidden:!f,id:m}}return{isOpen:f,onOpen:w,onClose:g,onToggle:b,isControlled:p,getButtonProps:T,getDisclosureProps:S}}function _ne(e){const{ref:t,handler:n,enabled:r=!0}=e,i=Xt(n),s=_.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;_.useEffect(()=>{if(!r)return;const u=h=>{Yy(h,t)&&(s.isPointerDown=!0)},c=h=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&Yy(h,t)&&(s.isPointerDown=!1,i(h))},f=h=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&Yy(h,t)&&(s.isPointerDown=!1,i(h))},p=M8(t.current);return p.addEventListener("mousedown",u,!0),p.addEventListener("mouseup",c,!0),p.addEventListener("touchstart",u,!0),p.addEventListener("touchend",f,!0),()=>{p.removeEventListener("mousedown",u,!0),p.removeEventListener("mouseup",c,!0),p.removeEventListener("touchstart",u,!0),p.removeEventListener("touchend",f,!0)}},[n,t,i,s,r])}function Yy(e,t){var n;const r=e.target;return r&&!M8(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function M8(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function Cne(e){const{isOpen:t,ref:n}=e,[r,i]=_.useState(t),[o,s]=_.useState(!1);return _.useEffect(()=>{o||(i(t),s(!0))},[t,o,r]),qc(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var c;const f=$ee(n.current),p=new f.CustomEvent("animationend",{bubbles:!0});(c=n.current)==null||c.dispatchEvent(p)}}}function $8(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[kne,Tne,Ene,Pne]=CA(),[Ane,Qf]=Jt({strict:!1,name:"MenuContext"});function Rne(e,...t){const n=_.useId(),r=e||n;return _.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function F8(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function Xk(e){return F8(e).activeElement===e}function One(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:s,isOpen:u,defaultIsOpen:c,onClose:f,onOpen:p,placement:h="bottom-start",lazyBehavior:m="unmount",direction:g,computePositionOnMount:w=!1,...b}=e,T=_.useRef(null),S=_.useRef(null),y=Ene(),C=_.useCallback(()=>{requestAnimationFrame(()=>{var ae;(ae=T.current)==null||ae.focus({preventScroll:!1})})},[]),P=_.useCallback(()=>{const ae=setTimeout(()=>{var ce;if(i)(ce=i.current)==null||ce.focus();else{const le=y.firstEnabled();le&&he(le.index)}});W.current.add(ae)},[y,i]),O=_.useCallback(()=>{const ae=setTimeout(()=>{const ce=y.lastEnabled();ce&&he(ce.index)});W.current.add(ae)},[y]),$=_.useCallback(()=>{p==null||p(),o?P():C()},[o,P,C,p]),{isOpen:I,onOpen:F,onClose:V,onToggle:B}=I8({isOpen:u,defaultIsOpen:c,onClose:f,onOpen:$});_ne({enabled:I&&r,ref:T,handler:ae=>{var ce;(ce=S.current)!=null&&ce.contains(ae.target)||V()}});const X=O8({...b,enabled:I||w,placement:h,direction:g}),[pe,he]=_.useState(-1);_a(()=>{I||he(-1)},[I]),nte(T,{focusRef:S,visible:I,shouldFocus:!0});const ge=Cne({isOpen:I,ref:T}),[Ae,se]=Rne(t,"menu-button","menu-list"),G=_.useCallback(()=>{F(),C()},[F,C]),W=_.useRef(new Set([]));_.useEffect(()=>{const ae=W.current;return()=>{ae.forEach(ce=>clearTimeout(ce)),ae.clear()}},[]);const J=_.useCallback(()=>{F(),P()},[P,F]),te=_.useCallback(()=>{F(),O()},[F,O]),ne=_.useCallback(()=>{var ae,ce;const le=F8(T.current),Te=(ae=T.current)==null?void 0:ae.contains(le.activeElement);if(!(I&&!Te))return;const Ue=(ce=y.item(pe))==null?void 0:ce.node;Ue==null||Ue.focus({preventScroll:!0})},[I,pe,y]),be=_.useRef(null);return{openAndFocusMenu:G,openAndFocusFirstItem:J,openAndFocusLastItem:te,onTransitionEnd:ne,unstable__animationState:ge,descendants:y,popper:X,buttonId:Ae,menuId:se,forceUpdate:X.forceUpdate,orientation:"vertical",isOpen:I,onToggle:B,onOpen:F,onClose:V,menuRef:T,buttonRef:S,focusedIndex:pe,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:he,isLazy:s,lazyBehavior:m,initialFocusRef:i,rafId:be}}function Ine(e={},t=null){const n=Qf(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:s}=n,u=_.useCallback(c=>{const f=c.key,h={Enter:o,ArrowDown:o,ArrowUp:s}[f];h&&(c.preventDefault(),c.stopPropagation(),h(c))},[o,s]);return{...e,ref:Wt(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":qe(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:We(e.onClick,r),onKeyDown:We(e.onKeyDown,u)}}function H2(e){var t;return jne(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Mne(e={},t=null){const n=Qf();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:s,onClose:u,menuId:c,isLazy:f,lazyBehavior:p,unstable__animationState:h}=n,m=Tne(),g=Zee({preventDefault:S=>S.key!==" "&&H2(S.target)}),w=_.useCallback(S=>{if(!S.currentTarget.contains(S.target))return;const y=S.key,P={Tab:$=>$.preventDefault(),Escape:u,ArrowDown:()=>{const $=m.nextEnabled(r);$&&i($.index)},ArrowUp:()=>{const $=m.prevEnabled(r);$&&i($.index)}}[y];if(P){S.preventDefault(),P(S);return}const O=g($=>{const I=Jee(m.values(),$,F=>{var V,B;return(B=(V=F==null?void 0:F.node)==null?void 0:V.textContent)!=null?B:""},m.item(r));if(I){const F=m.indexOf(I.node);i(F)}});H2(S.target)&&O(S)},[m,r,g,u,i]),b=_.useRef(!1);s&&(b.current=!0);const T=$8({wasSelected:b.current,enabled:f,mode:p,isSelected:h.present});return{...e,ref:Wt(o,t),children:T?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:We(e.onKeyDown,w)}}function $ne(e={}){const{popper:t,isOpen:n}=Qf();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function Fne(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:s,isDisabled:u,isFocusable:c,closeOnSelect:f,type:p,...h}=e,m=Qf(),{setFocusedIndex:g,focusedIndex:w,closeOnSelect:b,onClose:T,menuRef:S,isOpen:y,menuId:C,rafId:P}=m,O=_.useRef(null),$=`${C}-menuitem-${_.useId()}`,{index:I,register:F}=Pne({disabled:u&&!c}),V=_.useCallback(G=>{n==null||n(G),!u&&g(I)},[g,I,u,n]),B=_.useCallback(G=>{r==null||r(G),O.current&&!Xk(O.current)&&V(G)},[V,r]),X=_.useCallback(G=>{i==null||i(G),!u&&g(-1)},[g,u,i]),pe=_.useCallback(G=>{o==null||o(G),H2(G.currentTarget)&&(f??b)&&T()},[T,o,b,f]),he=_.useCallback(G=>{s==null||s(G),g(I)},[g,s,I]),ge=I===w,Ae=u&&!c;_a(()=>{if(y)return ge&&!Ae&&O.current?(P.current&&cancelAnimationFrame(P.current),P.current=requestAnimationFrame(()=>{var G;(G=O.current)==null||G.focus({preventScroll:!0}),P.current=null})):S.current&&!Xk(S.current)&&S.current.focus({preventScroll:!0}),()=>{P.current&&cancelAnimationFrame(P.current)}},[ge,Ae,S,y]);const se=w8({onClick:pe,onFocus:he,onMouseEnter:V,onMouseMove:B,onMouseLeave:X,ref:Wt(F,O,t),isDisabled:u,isFocusable:c});return{...h,...se,type:p??se.type,id:$,role:"menuitem",tabIndex:ge?0:-1}}function Dne(e={},t=null){const{type:n="radio",isChecked:r,...i}=e;return{...Fne(i,t),role:`menuitem${n}`,"aria-checked":r}}function Lne(e={}){const{children:t,type:n="radio",value:r,defaultValue:i,onChange:o,...s}=e,c=n==="radio"?"":[],[f,p]=Qx({defaultValue:i??c,value:r,onChange:o}),h=_.useCallback(w=>{if(n==="radio"&&typeof f=="string"&&p(w),n==="checkbox"&&Array.isArray(f)){const b=f.includes(w)?f.filter(T=>T!==w):f.concat(w);p(b)}},[f,p,n]),g=Zx(t).map(w=>{if(w.type.id!=="MenuItemOption")return w;const b=S=>{var y,C;h(w.props.value),(C=(y=w.props).onClick)==null||C.call(y,S)},T=n==="radio"?w.props.value===f:f.includes(w.props.value);return _.cloneElement(w,{type:n,onClick:b,isChecked:T})});return{...s,children:g}}function jne(e){var t;if(!zne(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function zne(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[Nne,Zf]=Jt({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Lm=e=>{const{children:t}=e,n=Ui("Menu",e),r=gn(e),{direction:i}=bm(),{descendants:o,...s}=One({...r,direction:i}),u=_.useMemo(()=>s,[s]),{isOpen:c,onClose:f,forceUpdate:p}=u;return x.jsx(kne,{value:o,children:x.jsx(Ane,{value:u,children:x.jsx(Nne,{value:n,children:vo(t,{isOpen:c,onClose:f,forceUpdate:p})})})})};Lm.displayName="Menu";var Bne=ye((e,t)=>{const{type:n,...r}=e,i=Zf(),o=r.as||n?n??void 0:"button",s=_.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return x.jsx(oe.button,{ref:t,type:o,...r,__css:s})}),D8=e=>{const{className:t,children:n,...r}=e,i=Zf(),o=_.Children.only(n),s=_.isValidElement(o)?_.cloneElement(o,{focusable:"false","aria-hidden":!0,className:Me("chakra-menu__icon",o.props.className)}):null,u=Me("chakra-menu__icon-wrapper",t);return x.jsx(oe.span,{className:u,...r,__css:i.icon,children:s})};D8.displayName="MenuIcon";var Vne={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Wne=oe(Ma.div),jm=ye(function(t,n){var r,i;const{rootProps:o,motionProps:s,...u}=t,{isOpen:c,onTransitionEnd:f,unstable__animationState:p}=Qf(),h=Mne(u,n),m=$ne(o),g=Zf();return x.jsx(oe.div,{...m,__css:{zIndex:(i=t.zIndex)!=null?i:(r=g.list)==null?void 0:r.zIndex},children:x.jsx(Wne,{variants:Vne,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...g.list},...s,className:Me("chakra-menu__menu-list",h.className),...h,onUpdate:f,onAnimationComplete:pP(p.onComplete,h.onAnimationComplete)})})});jm.displayName="MenuList";var L8=ye((e,t)=>{const{title:n,children:r,className:i,...o}=e,s=Me("chakra-menu__group__title",i),u=Zf();return x.jsxs("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&x.jsx(oe.p,{className:s,...o,__css:u.groupTitle,children:n}),r]})});L8.displayName="MenuGroup";var zm=e=>{const{className:t,title:n,...r}=e,i=Lne(r);return x.jsx(L8,{title:n,className:Me("chakra-menu__option-group",t),...i})};zm.displayName="MenuOptionGroup";var Une=ye((e,t)=>{const n=Zf();return x.jsx(oe.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),Nm=ye((e,t)=>{const{children:n,as:r,...i}=e,o=Ine(i,t),s=r||Une;return x.jsx(s,{...o,className:Me("chakra-menu__menu-button",e.className),children:x.jsx(oe.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Nm.displayName="MenuButton";var Hne=e=>x.jsx("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:x.jsx("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),Jf=ye((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",...i}=e,o=Dne(i,t);return x.jsxs(Bne,{...o,className:Me("chakra-menu__menuitem-option",i.className),children:[n!==null&&x.jsx(D8,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0,children:n||x.jsx(Hne,{})}),x.jsx("span",{style:{flex:1},children:o.children})]})});Jf.id="MenuItemOption";Jf.displayName="MenuItemOption";var Gne={slideInBottom:{...Tc,custom:{offsetY:16,reverse:!0}},slideInRight:{...Tc,custom:{offsetX:16,reverse:!0}},slideInTop:{...Tc,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Tc,custom:{offsetX:-16,reverse:!0}},scale:{...TA,custom:{initialScale:.95,reverse:!0}},none:{}},Kne=oe(Ma.section),qne=e=>Gne[e||"none"],j8=_.forwardRef((e,t)=>{const{preset:n,motionProps:r=qne(n),...i}=e;return x.jsx(Kne,{ref:t,...r,...i})});j8.displayName="ModalTransition";var Yne=Object.defineProperty,Xne=(e,t,n)=>t in e?Yne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qne=(e,t,n)=>(Xne(e,typeof t!="symbol"?t+"":t,n),n),Zne=class{constructor(){Qne(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},G2=new Zne;function z8(e,t){const[n,r]=_.useState(0);return _.useEffect(()=>{const i=e.current;if(i){if(t){const o=G2.add(i);r(o)}return()=>{G2.remove(i),r(0)}}},[t,e]),n}var Jne=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},sl=new WeakMap,Up=new WeakMap,Hp={},Xy=0,N8=function(e){return e&&(e.host||N8(e.parentNode))},ere=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=N8(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tre=function(e,t,n,r){var i=ere(t,Array.isArray(e)?e:[e]);Hp[n]||(Hp[n]=new WeakMap);var o=Hp[n],s=[],u=new Set,c=new Set(i),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};i.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else try{var g=m.getAttribute(r),w=g!==null&&g!=="false",b=(sl.get(m)||0)+1,T=(o.get(m)||0)+1;sl.set(m,b),o.set(m,T),s.push(m),b===1&&w&&Up.set(m,!0),T===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",m,S)}})};return p(t),u.clear(),Xy++,function(){s.forEach(function(h){var m=sl.get(h)-1,g=o.get(h)-1;sl.set(h,m),o.set(h,g),m||(Up.has(h)||h.removeAttribute(r),Up.delete(h)),g||h.removeAttribute(n)}),Xy--,Xy||(sl=new WeakMap,sl=new WeakMap,Up=new WeakMap,Hp={})}},nre=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Jne(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),tre(r,i,n,"aria-hidden")):function(){return null}};function rre(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=_.useRef(null),p=_.useRef(null),[h,m,g]=ore(r,"chakra-modal","chakra-modal--header","chakra-modal--body");ire(f,t&&s);const w=z8(f,t),b=_.useRef(null),T=_.useCallback(V=>{b.current=V.target},[]),S=_.useCallback(V=>{V.key==="Escape"&&(V.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[y,C]=_.useState(!1),[P,O]=_.useState(!1),$=_.useCallback((V={},B=null)=>({role:"dialog",...V,ref:Wt(B,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":P?g:void 0,onClick:We(V.onClick,X=>X.stopPropagation())}),[g,P,h,m,y]),I=_.useCallback(V=>{V.stopPropagation(),b.current===V.target&&G2.isTopModal(f.current)&&(i&&(n==null||n()),u==null||u())},[n,i,u]),F=_.useCallback((V={},B=null)=>({...V,ref:Wt(B,p),onClick:We(V.onClick,I),onKeyDown:We(V.onKeyDown,S),onMouseDown:We(V.onMouseDown,T)}),[S,T,I]);return{isOpen:t,onClose:n,headerId:m,bodyId:g,setBodyMounted:O,setHeaderMounted:C,dialogRef:f,overlayRef:p,getDialogProps:$,getDialogContainerProps:F,index:w}}function ire(e,t){const n=e.current;_.useEffect(()=>{if(!(!e.current||!t))return nre(e.current)},[t,e,n])}function ore(e,...t){const n=_.useId(),r=e||n;return _.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[are,Bm]=Jt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[sre,pu]=Jt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),kw=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:f,allowPinchZoom:p,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:g,onCloseComplete:w}=t,b=Ui("Modal",t),S={...rre(t),autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:f,allowPinchZoom:p,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:g};return x.jsx(sre,{value:S,children:x.jsx(are,{value:b,children:x.jsx(wu,{onExitComplete:w,children:S.isOpen&&x.jsx(xu,{...n,children:r})})})})};kw.displayName="Modal";var Ah="right-scroll-bar-position",Rh="width-before-scroll-bar",lre="with-scroll-bars-hidden",ure="--removed-body-scroll-bar-size",B8=BA(),Qy=function(){},Vm=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:Qy,onWheelCapture:Qy,onTouchMoveCapture:Qy}),i=r[0],o=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,g=e.noIsolation,w=e.inert,b=e.allowPinchZoom,T=e.as,S=T===void 0?"div":T,y=e.gapMode,C=jA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,O=LA([n,t]),$=Fi(Fi({},C),i);return _.createElement(_.Fragment,null,p&&_.createElement(P,{sideCar:B8,removeScrollBar:f,shards:h,noIsolation:g,inert:w,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:y}),s?_.cloneElement(_.Children.only(u),Fi(Fi({},$),{ref:O})):_.createElement(S,Fi({},$,{className:c,ref:O}),u))});Vm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vm.classNames={fullWidth:Rh,zeroRight:Ah};var cre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cre();return t&&e.setAttribute("nonce",t),e}function dre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fre())&&(dre(t,n),pre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mre=function(){var e=hre();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},V8=function(){var e=mre(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},vre={left:0,top:0,right:0,gap:0},Zy=function(e){return parseInt(e||"",10)||0},gre=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Zy(n),Zy(r),Zy(i)]},yre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vre;var t=gre(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bre=V8(),Yl="data-scroll-locked",xre=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` + `),()=>{document.head.removeChild(f)}},[t]),_.createElement(QQ,{isPresent:t,childRef:r,sizeRef:i},_.cloneElement(e,{ref:r}))}const By=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const u=d6(JQ),c=_.useId(),f=_.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),o?void 0:[n]);return _.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),_.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=_.createElement(ZQ,{isPresent:n},e)),_.createElement(Wf.Provider,{value:f},e)};function JQ(){return new Map}function eZ(e){return _.useEffect(()=>()=>e(),[])}const Qa=e=>e.key||"";function tZ(e,t){e.forEach(n=>{const r=Qa(n);t.set(r,n)})}function nZ(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const wu=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const u=_.useContext(Ox).forceRender||XQ()[0],c=gA(),f=nZ(e);let p=f;const h=_.useRef(new Map).current,m=_.useRef(p),g=_.useRef(new Map).current,x=_.useRef(!0);if(Ex(()=>{x.current=!1,tZ(f,g),m.current=p}),eZ(()=>{x.current=!0,g.clear(),h.clear()}),x.current)return _.createElement(_.Fragment,null,p.map(y=>_.createElement(By,{key:Qa(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));p=[...p];const b=m.current.map(Qa),T=f.map(Qa),S=b.length;for(let y=0;y{if(T.indexOf(C)!==-1)return;const P=g.get(C);if(!P)return;const O=b.indexOf(C);let $=y;if(!$){const I=()=>{h.delete(C);const F=Array.from(g.keys()).filter(V=>!T.includes(V));if(F.forEach(V=>g.delete(V)),m.current=f.filter(V=>{const B=Qa(V);return B===C||F.includes(B)}),!h.size){if(c.current===!1)return;u(),r&&r()}};$=_.createElement(By,{key:Qa(P),isPresent:!1,onExitComplete:I,custom:t,presenceAffectsLayout:o,mode:s},P),h.set(C,$)}p.splice(O,0,$)}),p=p.map(y=>{const C=y.key;return h.has(C)?y:_.createElement(By,{key:Qa(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),_.createElement(_.Fragment,null,h.size?p:p.map(y=>_.cloneElement(y)))};var rZ={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},yA=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:o=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=rZ,toastSpacing:p="0.5rem"}=e,[h,m]=_.useState(u),g=VX();_a(()=>{g||r==null||r()},[g]),_a(()=>{m(u)},[u]);const x=()=>m(null),b=()=>m(u),T=()=>{g&&i()};_.useEffect(()=>{g&&o&&i()},[g,o,i]),zK(T,h);const S=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),y=_.useMemo(()=>LK(s),[s]);return w.jsx(Ma.div,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:x,onHoverEnd:b,custom:{position:s},style:y,children:w.jsx(oe.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S,children:vo(n,{id:t,onClose:T})})})});yA.displayName="ToastComponent";var gk={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),w.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},$a=ye((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:o=!1,children:s,className:u,__css:c,...f}=e,p=$e("chakra-icon",u),h=Wi("Icon",e),m={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...h},g={ref:t,focusable:o,className:p,__css:m},x=r??gk.viewBox;if(n&&typeof n!="string")return w.jsx(oe.svg,{as:n,...g,...f});const b=s??gk.path;return w.jsx(oe.svg,{verticalAlign:"middle",viewBox:x,...g,...f,children:b})});$a.displayName="Icon";function Si(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,o=_.Children.toArray(e.path),s=ye((u,c)=>w.jsx($a,{ref:c,viewBox:t,...i,...u,children:o.length?o:w.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function iZ(e){return w.jsx($a,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function oZ(e){return w.jsx($a,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function yk(e){return w.jsx($a,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var aZ=rm({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Im=ye((e,t)=>{const n=Wi("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:o="0.45s",emptyColor:s="transparent",className:u,...c}=gn(e),f=$e("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:s,borderLeftColor:s,animation:`${aZ} ${o} linear infinite`,...n};return w.jsx(oe.div,{ref:t,__css:p,className:f,...c,children:r&&w.jsx(oe.span,{srOnly:!0,children:r})})});Im.displayName="Spinner";var[sZ,Yx]=Jt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[lZ,Xx]=Jt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),bA={info:{icon:oZ,colorScheme:"blue"},warning:{icon:yk,colorScheme:"orange"},success:{icon:iZ,colorScheme:"green"},error:{icon:yk,colorScheme:"red"},loading:{icon:Im,colorScheme:"blue"}};function uZ(e){return bA[e].colorScheme}function cZ(e){return bA[e].icon}var xA=ye(function(t,n){const r=Xx(),{status:i}=Yx(),o={display:"inline",...r.description};return w.jsx(oe.div,{ref:n,"data-status":i,...t,className:$e("chakra-alert__desc",t.className),__css:o})});xA.displayName="AlertDescription";function Mm(e){const{status:t}=Yx(),n=cZ(t),r=Xx(),i=t==="loading"?r.spinner:r.icon;return w.jsx(oe.span,{display:"inherit","data-status":t,...e,className:$e("chakra-alert__icon",e.className),__css:i,children:e.children||w.jsx(n,{h:"100%",w:"100%"})})}Mm.displayName="AlertIcon";var wA=ye(function(t,n){const r=Xx(),{status:i}=Yx();return w.jsx(oe.div,{ref:n,"data-status":i,...t,className:$e("chakra-alert__title",t.className),__css:r.title})});wA.displayName="AlertTitle";var $m=ye(function(t,n){var r;const{status:i="info",addRole:o=!0,...s}=gn(t),u=(r=t.colorScheme)!=null?r:uZ(i),c=Ui("Alert",{...t,colorScheme:u}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return w.jsx(sZ,{value:{status:i},children:w.jsx(lZ,{value:c,children:w.jsx(oe.div,{"data-status":i,role:o?"alert":void 0,ref:n,...s,className:$e("chakra-alert",t.className),__css:f})})})});$m.displayName="Alert";function fZ(e){return w.jsx($a,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var SA=ye(function(t,n){const r=Wi("CloseButton",t),{children:i,isDisabled:o,__css:s,...u}=gn(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(oe.button,{type:"button","aria-label":"Close",ref:n,disabled:o,__css:{...c,...r,...s},...u,children:i||w.jsx(fZ,{width:"1em",height:"1em"})})});SA.displayName="CloseButton";var dZ={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Kc=pZ(dZ);function pZ(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(o=>o())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,o)=>{r(s=>({...s,[o]:s[o].filter(u=>u.id!=i)}))},notify:(i,o)=>{const s=hZ(i,o),{position:u,id:c}=s;return r(f=>{var p,h;const g=u.includes("top")?[s,...(p=f[u])!=null?p:[]]:[...(h=f[u])!=null?h:[],s];return{...f,[u]:g}}),c},update:(i,o)=>{i&&r(s=>{const u={...s},{position:c,index:f}=pC(u,i);return c&&f!==-1&&(u[c][f]={...u[c][f],...o,message:vZ(o)}),u})},closeAll:({positions:i}={})=>{r(o=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=o[f].map(p=>({...p,requestClose:!0})),c),{...o}))},close:i=>{r(o=>{const s=qP(o,i);return s?{...o,[s]:o[s].map(u=>u.id==i?{...u,requestClose:!0}:u)}:o})},isActive:i=>!!pC(Kc.getState(),i).position}}var bk=0;function hZ(e,t={}){var n,r;bk+=1;const i=(n=t.id)!=null?n:bk,o=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Kc.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mZ=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:o,onClose:s,description:u,colorScheme:c,icon:f}=e,p=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return w.jsxs($m,{addRole:!1,status:t,variant:n,id:p==null?void 0:p.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[w.jsx(Mm,{children:f}),w.jsxs(oe.div,{flex:"1",maxWidth:"100%",children:[i&&w.jsx(wA,{id:p==null?void 0:p.title,children:i}),u&&w.jsx(xA,{id:p==null?void 0:p.description,display:"block",children:u})]}),o&&w.jsx(SA,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function vZ(e={}){const{render:t,toastComponent:n=mZ}=e;return i=>typeof t=="function"?t({...i,...e}):w.jsx(n,{...i,...e})}var[gZ,Ele]=Jt({name:"ToastOptionsContext",strict:!1}),yZ=e=>{const t=_.useSyncExternalStore(Kc.subscribe,Kc.getState,Kc.getState),{motionVariants:n,component:r=yA,portalProps:i}=e,s=Object.keys(t).map(u=>{const c=t[u];return w.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${u}`,id:`chakra-toast-manager-${u}`,style:jK(u),children:w.jsx(wu,{initial:!1,children:c.map(f=>w.jsx(r,{motionVariants:n,...f},f.id))})},u)});return w.jsx(xu,{...i,children:s})},bZ=e=>function({children:n,theme:r=e,toastOptions:i,...o}){return w.jsxs(FK,{theme:r,...o,children:[w.jsx(gZ,{value:i==null?void 0:i.defaultOptions,children:n}),w.jsx(yZ,{...i})]})},xZ=bZ($P),wZ=Object.defineProperty,SZ=(e,t,n)=>t in e?wZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bt=(e,t,n)=>(SZ(e,typeof t!="symbol"?t+"":t,n),n);function xk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var _Z=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function wk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Sk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var O2=typeof window<"u"?_.useLayoutEffect:_.useEffect,T0=e=>e,CZ=class{constructor(){Bt(this,"descendants",new Map),Bt(this,"register",e=>{if(e!=null)return _Z(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Bt(this,"unregister",e=>{this.descendants.delete(e);const t=xk(Array.from(this.descendants.keys()));this.assignIndex(t)}),Bt(this,"destroy",()=>{this.descendants.clear()}),Bt(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Bt(this,"count",()=>this.descendants.size),Bt(this,"enabledCount",()=>this.enabledValues().length),Bt(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Bt(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Bt(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Bt(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Bt(this,"first",()=>this.item(0)),Bt(this,"firstEnabled",()=>this.enabledItem(0)),Bt(this,"last",()=>this.item(this.descendants.size-1)),Bt(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Bt(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Bt(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Bt(this,"next",(e,t=!0)=>{const n=wk(e,this.count(),t);return this.item(n)}),Bt(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=wk(r,this.enabledCount(),t);return this.enabledItem(i)}),Bt(this,"prev",(e,t=!0)=>{const n=Sk(e,this.count()-1,t);return this.item(n)}),Bt(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=Sk(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Bt(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=xk(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function kZ(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Wt(...e){return t=>{e.forEach(n=>{kZ(n,t)})}}function TZ(...e){return _.useMemo(()=>Wt(...e),e)}function EZ(){const e=_.useRef(new CZ);return O2(()=>()=>e.current.destroy()),e.current}var[PZ,_A]=Jt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function AZ(e){const t=_A(),[n,r]=_.useState(-1),i=_.useRef(null);O2(()=>()=>{i.current&&t.unregister(i.current)},[]),O2(()=>{if(!i.current)return;const s=Number(i.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const o=T0(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:Wt(o,i)}}function CA(){return[T0(PZ),()=>T0(_A()),()=>EZ(),i=>AZ(i)]}function Qx(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(m,g)=>m!==g}=e,o=Xt(r),s=Xt(i),[u,c]=_.useState(n),f=t!==void 0,p=f?t:u,h=Xt(m=>{const x=typeof m=="function"?m(p):m;s(p,x)&&(f||c(x),o(x))},[f,o,p,s]);return[p,h]}var _k={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},ps={enter:{duration:.2,ease:_k.easeOut},exit:{duration:.1,ease:_k.easeIn}},hs={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},RZ={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:hs.exit(ps.exit,n),transitionEnd:t==null?void 0:t.exit}}},kA={initial:"exit",animate:"enter",exit:"exit",variants:RZ},OZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:o,transition:s,transitionEnd:u,delay:c,...f}=t,p=i||r?"enter":"exit",h=r?i&&r:!0,m={transition:s,transitionEnd:u,delay:c};return w.jsx(wu,{custom:m,children:h&&w.jsx(Ma.div,{ref:n,className:$e("chakra-fade",o),custom:m,...kA,animate:p,...f})})});OZ.displayName="Fade";var IZ={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(o=n==null?void 0:n.exit)!=null?o:hs.exit(ps.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:e==null?void 0:e.enter}}},TA={initial:"exit",animate:"enter",exit:"exit",variants:IZ},MZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?i&&r:!0,g=i||r?"enter":"exit",x={initialScale:s,reverse:o,transition:c,transitionEnd:f,delay:p};return w.jsx(wu,{custom:x,children:m&&w.jsx(Ma.div,{ref:n,className:$e("chakra-offset-slide",u),...TA,animate:g,custom:x,...h})})});MZ.displayName="ScaleFade";var $Z={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var o;return{opacity:0,x:e,y:t,transition:(o=n==null?void 0:n.exit)!=null?o:hs.exit(ps.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:hs.enter(ps.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:o})=>{var s;const u={x:t,y:e};return{opacity:0,transition:(s=n==null?void 0:n.exit)!=null?s:hs.exit(ps.exit,o),...i?{...u,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...u,...r==null?void 0:r.exit}}}}},Tc={initial:"initial",animate:"enter",exit:"exit",variants:$Z},FZ=_.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:o=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,g=r?i&&r:!0,x=i||r?"enter":"exit",b={offsetX:u,offsetY:c,reverse:o,transition:f,transitionEnd:p,delay:h};return w.jsx(wu,{custom:b,children:g&&w.jsx(Ma.div,{ref:n,className:$e("chakra-offset-slide",s),custom:b,...Tc,animate:x,...m})})});FZ.displayName="SlideFade";var EA=ye(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:o,...s}=t;return w.jsx("img",{width:r,height:i,ref:n,alt:o,...s})});EA.displayName="NativeImage";var Za=ye((e,t)=>w.jsx(oe.img,{ref:t,as:EA,className:"chakra-image",...e}));function Zx(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[Ple,DZ]=Jt({strict:!1,name:"ButtonGroupContext"});function LZ(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(o=>{o&&n(o.tagName==="BUTTON")},[]),type:t?"button":void 0}}function I2(e){const{children:t,className:n,...r}=e,i=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,o=$e("chakra-button__icon",n);return w.jsx(oe.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:o,children:i})}I2.displayName="ButtonIcon";function M2(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=w.jsx(Im,{color:"currentColor",width:"1em",height:"1em"}),className:o,__css:s,...u}=e,c=$e("chakra-button__spinner",o),f=n==="start"?"marginEnd":"marginStart",p=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return w.jsx(oe.div,{className:c,...u,__css:p,children:i})}M2.displayName="ButtonSpinner";var $n=ye((e,t)=>{const n=DZ(),r=Wi("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:o,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:g,spinnerPlacement:x="start",className:b,as:T,...S}=gn(e),y=_.useMemo(()=>{const $={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:$}}},[r,n]),{ref:C,type:P}=LZ(T),O={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return w.jsxs(oe.button,{ref:TZ(t,C),as:T,type:m??P,"data-active":qe(s),"data-loading":qe(o),__css:y,className:$e("chakra-button",b),...S,disabled:i||o,children:[o&&x==="start"&&w.jsx(M2,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:g}),o?p||w.jsx(oe.span,{opacity:0,children:w.jsx(Ck,{...O})}):w.jsx(Ck,{...O}),o&&x==="end"&&w.jsx(M2,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:g})]})});$n.displayName="Button";function Ck(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(I2,{marginEnd:i,children:t}),r,n&&w.jsx(I2,{marginStart:i,children:n})]})}var PA=ye((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":o,...s}=e,u=n||r,c=_.isValidElement(u)?_.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return w.jsx($n,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...s,children:c})});PA.displayName="IconButton";var[jZ,AA]=MK("Card"),RA=ye(function(t,n){const{className:r,...i}=t,o=AA();return w.jsx(oe.div,{ref:n,className:$e("chakra-card__body",r),__css:o.body,...i})}),OA=ye(function(t,n){const{className:r,...i}=t,o=AA();return w.jsx(oe.div,{ref:n,className:$e("chakra-card__header",r),__css:o.header,...i})}),Jx=ye(function(t,n){const{className:r,children:i,direction:o="column",justify:s,align:u,...c}=gn(t),f=Ui("Card",t);return w.jsx(oe.div,{ref:n,className:$e("chakra-card",r),__css:{display:"flex",flexDirection:o,justifyContent:s,alignItems:u,position:"relative",minWidth:0,wordWrap:"break-word",...f.container},...c,children:w.jsx(jZ,{value:f,children:i})})}),[Ale,zZ]=Jt({name:"CheckboxGroupContext",strict:!1});function NZ(e){const[t,n]=_.useState(e),[r,i]=_.useState(!1);return e!==t&&(i(!0),n(e)),r}function BZ(e){return w.jsx(oe.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function VZ(e){return w.jsx(oe.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:w.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function WZ(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?VZ:BZ;return n||t?w.jsx(oe.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:w.jsx(i,{...r})}):null}var[UZ,IA]=Jt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[HZ,Fm]=Jt({strict:!1,name:"FormControlContext"});function GZ(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:o,...s}=e,u=_.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,g]=_.useState(!1),[x,b]=_.useState(!1),[T,S]=_.useState(!1),y=_.useCallback((I={},F=null)=>({id:h,...I,ref:Wt(F,V=>{V&&b(!0)})}),[h]),C=_.useCallback((I={},F=null)=>({...I,ref:F,"data-focus":qe(T),"data-disabled":qe(i),"data-invalid":qe(r),"data-readonly":qe(o),id:I.id!==void 0?I.id:f,htmlFor:I.htmlFor!==void 0?I.htmlFor:c}),[c,i,T,r,o,f]),P=_.useCallback((I={},F=null)=>({id:p,...I,ref:Wt(F,V=>{V&&g(!0)}),"aria-live":"polite"}),[p]),O=_.useCallback((I={},F=null)=>({...I,...s,ref:F,role:"group","data-focus":qe(T),"data-disabled":qe(i),"data-invalid":qe(r),"data-readonly":qe(o)}),[s,i,T,r,o]),$=_.useCallback((I={},F=null)=>({...I,ref:F,role:"presentation","aria-hidden":!0,children:I.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!o,isDisabled:!!i,isFocused:!!T,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:m,setHasFeedbackText:g,hasHelpText:x,setHasHelpText:b,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:P,getRootProps:O,getLabelProps:C,getRequiredIndicatorProps:$}}var KZ=ye(function(t,n){const r=Ui("Form",t),i=gn(t),{getRootProps:o,htmlProps:s,...u}=GZ(i),c=$e("chakra-form-control",t.className);return w.jsx(HZ,{value:u,children:w.jsx(UZ,{value:r,children:w.jsx(oe.div,{...o({},n),className:c,__css:r.container})})})});KZ.displayName="FormControl";var qZ=ye(function(t,n){const r=Fm(),i=IA(),o=$e("chakra-form__helper-text",t.className);return w.jsx(oe.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:o})});qZ.displayName="FormHelperText";var $i=ye(function(t,n){var r;const i=Wi("FormLabel",t),o=gn(t),{className:s,children:u,requiredIndicator:c=w.jsx(MA,{}),optionalIndicator:f=null,...p}=o,h=Fm(),m=(r=h==null?void 0:h.getLabelProps(p,n))!=null?r:{ref:n,...p};return w.jsxs(oe.label,{...m,className:$e("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...i},children:[u,h!=null&&h.isRequired?c:f]})});$i.displayName="FormLabel";var MA=ye(function(t,n){const r=Fm(),i=IA();if(!(r!=null&&r.isRequired))return null;const o=$e("chakra-form__required-indicator",t.className);return w.jsx(oe.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:o})});MA.displayName="RequiredIndicator";function YZ(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...o}=ew(e);return{...o,disabled:t,readOnly:r,required:i,"aria-invalid":Vl(n),"aria-required":Vl(i),"aria-readonly":Vl(r)}}function ew(e){var t,n,r;const i=Fm(),{id:o,disabled:s,readOnly:u,required:c,isRequired:f,isInvalid:p,isReadOnly:h,isDisabled:m,onFocus:g,onBlur:x,...b}=e,T=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&T.push(i.feedbackId),i!=null&&i.hasHelpText&&T.push(i.helpTextId),{...b,"aria-describedby":T.join(" ")||void 0,id:o??(i==null?void 0:i.id),isDisabled:(t=s??m)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=u??h)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=c??f)!=null?r:i==null?void 0:i.isRequired,isInvalid:p??(i==null?void 0:i.isInvalid),onFocus:We(i==null?void 0:i.onFocus,g),onBlur:We(i==null?void 0:i.onBlur,x)}}var XZ={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},QZ=()=>typeof document<"u",kk=!1,qf=null,Ts=!1,$2=!1,F2=new Set;function tw(e,t){F2.forEach(n=>n(e,t))}var ZZ=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function JZ(e){return!(e.metaKey||!ZZ&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Tk(e){Ts=!0,JZ(e)&&(qf="keyboard",tw("keyboard",e))}function al(e){if(qf="pointer",e.type==="mousedown"||e.type==="pointerdown"){Ts=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;tw("pointer",e)}}function eJ(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function tJ(e){eJ(e)&&(Ts=!0,qf="virtual")}function nJ(e){e.target===window||e.target===document||(!Ts&&!$2&&(qf="virtual",tw("virtual",e)),Ts=!1,$2=!1)}function rJ(){Ts=!1,$2=!0}function Ek(){return qf!=="pointer"}function iJ(){if(!QZ()||kk)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Ts=!0,e.apply(this,n)},document.addEventListener("keydown",Tk,!0),document.addEventListener("keyup",Tk,!0),document.addEventListener("click",tJ,!0),window.addEventListener("focus",nJ,!0),window.addEventListener("blur",rJ,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",al,!0),document.addEventListener("pointermove",al,!0),document.addEventListener("pointerup",al,!0)):(document.addEventListener("mousedown",al,!0),document.addEventListener("mousemove",al,!0),document.addEventListener("mouseup",al,!0)),kk=!0}function oJ(e){iJ(),e(Ek());const t=()=>e(Ek());return F2.add(t),()=>{F2.delete(t)}}function aJ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function sJ(e={}){const t=ew(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:o,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:g,isIndeterminate:x,name:b,value:T,tabIndex:S=void 0,"aria-label":y,"aria-labelledby":C,"aria-invalid":P,...O}=e,$=aJ(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=Xt(g),F=Xt(u),V=Xt(c),[B,X]=_.useState(!1),[pe,he]=_.useState(!1),[ge,Ae]=_.useState(!1),[se,G]=_.useState(!1);_.useEffect(()=>oJ(X),[]);const W=_.useRef(null),[J,te]=_.useState(!0),[ne,be]=_.useState(!!p),ae=h!==void 0,ce=ae?h:ne,le=_.useCallback(me=>{if(r||n){me.preventDefault();return}ae||be(ce?me.target.checked:x?!0:me.target.checked),I==null||I(me)},[r,n,ce,ae,x,I]);aa(()=>{W.current&&(W.current.indeterminate=!!x)},[x]),_a(()=>{n&&he(!1)},[n,he]),aa(()=>{const me=W.current;if(!(me!=null&&me.form))return;const Qe=()=>{be(!!p)};return me.form.addEventListener("reset",Qe),()=>{var Ve;return(Ve=me.form)==null?void 0:Ve.removeEventListener("reset",Qe)}},[]);const Te=n&&!m,et=_.useCallback(me=>{me.key===" "&&G(!0)},[G]),Ue=_.useCallback(me=>{me.key===" "&&G(!1)},[G]);aa(()=>{if(!W.current)return;W.current.checked!==ce&&be(W.current.checked)},[W.current]);const ft=_.useCallback((me={},Qe=null)=>{const Ve=Pt=>{pe&&Pt.preventDefault(),G(!0)};return{...me,ref:Qe,"data-active":qe(se),"data-hover":qe(ge),"data-checked":qe(ce),"data-focus":qe(pe),"data-focus-visible":qe(pe&&B),"data-indeterminate":qe(x),"data-disabled":qe(n),"data-invalid":qe(o),"data-readonly":qe(r),"aria-hidden":!0,onMouseDown:We(me.onMouseDown,Ve),onMouseUp:We(me.onMouseUp,()=>G(!1)),onMouseEnter:We(me.onMouseEnter,()=>Ae(!0)),onMouseLeave:We(me.onMouseLeave,()=>Ae(!1))}},[se,ce,n,pe,B,ge,x,o,r]),_t=_.useCallback((me={},Qe=null)=>({...me,ref:Qe,"data-active":qe(se),"data-hover":qe(ge),"data-checked":qe(ce),"data-focus":qe(pe),"data-focus-visible":qe(pe&&B),"data-indeterminate":qe(x),"data-disabled":qe(n),"data-invalid":qe(o),"data-readonly":qe(r)}),[se,ce,n,pe,B,ge,x,o,r]),Xe=_.useCallback((me={},Qe=null)=>({...$,...me,ref:Wt(Qe,Ve=>{Ve&&te(Ve.tagName==="LABEL")}),onClick:We(me.onClick,()=>{var Ve;J||((Ve=W.current)==null||Ve.click(),requestAnimationFrame(()=>{var Pt;(Pt=W.current)==null||Pt.focus({preventScroll:!0})}))}),"data-disabled":qe(n),"data-checked":qe(ce),"data-invalid":qe(o)}),[$,n,ce,o,J]),Re=_.useCallback((me={},Qe=null)=>({...me,ref:Wt(W,Qe),type:"checkbox",name:b,value:T,id:s,tabIndex:S,onChange:We(me.onChange,le),onBlur:We(me.onBlur,F,()=>he(!1)),onFocus:We(me.onFocus,V,()=>he(!0)),onKeyDown:We(me.onKeyDown,et),onKeyUp:We(me.onKeyUp,Ue),required:i,checked:ce,disabled:Te,readOnly:r,"aria-label":y,"aria-labelledby":C,"aria-invalid":P?!!P:o,"aria-describedby":f,"aria-disabled":n,style:XZ}),[b,T,s,le,F,V,et,Ue,i,ce,Te,r,y,C,P,o,f,n,S]),bt=_.useCallback((me={},Qe=null)=>({...me,ref:Qe,onMouseDown:We(me.onMouseDown,lJ),"data-disabled":qe(n),"data-checked":qe(ce),"data-invalid":qe(o)}),[ce,n,o]);return{state:{isInvalid:o,isFocused:pe,isChecked:ce,isActive:se,isHovered:ge,isIndeterminate:x,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:Xe,getCheckboxProps:ft,getIndicatorProps:_t,getInputProps:Re,getLabelProps:bt,htmlProps:$}}function lJ(e){e.preventDefault(),e.stopPropagation()}var uJ={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},cJ={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},fJ=rm({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),dJ=rm({from:{opacity:0},to:{opacity:1}}),pJ=rm({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),$A=ye(function(t,n){const r=zZ(),i={...r,...t},o=Ui("Checkbox",i),s=gn(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=w.jsx(WZ,{}),isChecked:g,isDisabled:x=r==null?void 0:r.isDisabled,onChange:b,inputProps:T,...S}=s;let y=g;r!=null&&r.value&&s.value&&(y=r.value.includes(s.value));let C=b;r!=null&&r.onChange&&s.value&&(C=pP(r.onChange,b));const{state:P,getInputProps:O,getCheckboxProps:$,getLabelProps:I,getRootProps:F}=sJ({...S,isDisabled:x,isChecked:y,onChange:C}),V=NZ(P.isChecked),B=_.useMemo(()=>({animation:V?P.isIndeterminate?`${dJ} 20ms linear, ${pJ} 200ms linear`:`${fJ} 200ms linear`:void 0,fontSize:h,color:p,...o.icon}),[p,h,V,P.isIndeterminate,o.icon]),X=_.cloneElement(m,{__css:B,isIndeterminate:P.isIndeterminate,isChecked:P.isChecked});return w.jsxs(oe.label,{__css:{...cJ,...o.container},className:$e("chakra-checkbox",c),...F(),children:[w.jsx("input",{className:"chakra-checkbox__input",...O(T,n)}),w.jsx(oe.span,{__css:{...uJ,...o.control},className:"chakra-checkbox__control",...$(),children:X}),f&&w.jsx(oe.span,{className:"chakra-checkbox__label",...I(),__css:{marginStart:u,...o.label},children:f})]})});$A.displayName="Checkbox";function hJ(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function nw(e,t){let n=hJ(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function D2(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function Pk(e,t,n){return(e-t)*100/(n-t)}function mJ(e,t,n){return(n-t)*e+t}function Ak(e,t,n){const r=Math.round((e-t)/n)*n+t,i=D2(n);return nw(r,i)}function Eh(e,t,n){return e==null?e:(n{var B;return r==null?"":(B=Vy(r,o,n))!=null?B:""}),m=typeof i<"u",g=m?i:p,x=FA(Xo(g),o),b=n??x,T=_.useCallback(B=>{B!==g&&(m||h(B.toString()),f==null||f(B.toString(),Xo(B)))},[f,m,g]),S=_.useCallback(B=>{let X=B;return c&&(X=Eh(X,s,u)),nw(X,b)},[b,c,u,s]),y=_.useCallback((B=o)=>{let X;g===""?X=Xo(B):X=Xo(g)+B,X=S(X),T(X)},[S,o,T,g]),C=_.useCallback((B=o)=>{let X;g===""?X=Xo(-B):X=Xo(g)-B,X=S(X),T(X)},[S,o,T,g]),P=_.useCallback(()=>{var B;let X;r==null?X="":X=(B=Vy(r,o,n))!=null?B:s,T(X)},[r,n,o,T,s]),O=_.useCallback(B=>{var X;const pe=(X=Vy(B,o,b))!=null?X:s;T(pe)},[b,o,T,s]),$=Xo(g);return{isOutOfRange:$>u||${const o=typeof e=="function"?e():e??document;if(!(!n||!o))return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const o=typeof e=="function"?e():e??document;o==null||o.removeEventListener(t,i,r)}}function gJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var L2="data-focus-lock",DA="data-focus-lock-disabled",yJ="data-no-focus-lock",bJ="data-autofocus-inside",xJ="data-no-autofocus";function Wy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wJ(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var SJ=typeof window<"u"?_.useLayoutEffect:_.useEffect,Rk=new WeakMap;function LA(e,t){var n=wJ(t||null,function(r){return e.forEach(function(i){return Wy(i,r)})});return SJ(function(){var r=Rk.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(u){o.has(u)||Wy(u,null)}),o.forEach(function(u){i.has(u)||Wy(u,s)})}Rk.set(n,e)},[e]),n}var Uy={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Fi=function(){return Fi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0}).sort(VJ)},UJ=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],aw=UJ.join(","),HJ="".concat(aw,", [data-focus-guard]"),t8=function(e,t){return Hi((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?HJ:aw)?[r]:[],t8(r))},[])},GJ=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?uu([e.contentDocument.body],t):[e]},uu=function(e,t){return e.reduce(function(n,r){var i,o=t8(r,t),s=(i=[]).concat.apply(i,o.map(function(u){return GJ(u,t)}));return n.concat(s,r.parentNode?Hi(r.parentNode.querySelectorAll(aw)).filter(function(u){return u===r}):[])},[])},KJ=function(e){var t=e.querySelectorAll("[".concat(bJ,"]"));return Hi(t).map(function(n){return uu([n])}).reduce(function(n,r){return n.concat(r)},[])},sw=function(e,t){return Hi(e).filter(function(n){return XA(t,n)}).filter(function(n){return zJ(n)})},Ok=function(e,t){return t===void 0&&(t=new Map),Hi(e).filter(function(n){return QA(t,n)})},lw=function(e,t,n){return ow(sw(uu(e,n),t),!0,n)},E0=function(e,t){return ow(sw(uu(e),t),!1)},qJ=function(e,t){return sw(KJ(e),t)},ms=function(e,t){return e.shadowRoot?ms(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Hi(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?ms(i,t):!1}return ms(n,t)})},YJ=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},n8=function(e){return e.parentNode?n8(e.parentNode):e},uw=function(e){var t=Es(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(L2);return n.push.apply(n,i?YJ(Hi(n8(r).querySelectorAll("[".concat(L2,'="').concat(i,'"]:not([').concat(DA,'="disabled"])')))):[r]),n},[])},XJ=function(e){try{return e()}catch{return}},Pf=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Pf(t.shadowRoot):t instanceof HTMLIFrameElement&&XJ(function(){return t.contentWindow.document})?Pf(t.contentWindow.document):t}},QJ=function(e,t){return e===t},ZJ=function(e,t){return!!Hi(e.querySelectorAll("iframe")).some(function(n){return QJ(n,t)})},r8=function(e,t){return t===void 0&&(t=Pf(KA(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:uw(e).some(function(n){return ms(n,t)||ZJ(n,t)})},JJ=function(e){e===void 0&&(e=document);var t=Pf(e);return t?Hi(e.querySelectorAll("[".concat(yJ,"]"))).some(function(n){return ms(n,t)}):!1},eee=function(e,t){return t.filter(e8).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},cw=function(e,t){return e8(e)&&e.name?eee(e,t):e},tee=function(e){var t=new Set;return e.forEach(function(n){return t.add(cw(n,e))}),e.filter(function(n){return t.has(n)})},Ik=function(e){return e[0]&&e.length>1?cw(e[0],e):e[0]},Mk=function(e,t){return e.indexOf(cw(t,e))},N2="NEW_FOCUS",nee=function(e,t,n,r,i){var o=e.length,s=e[0],u=e[o-1],c=iw(r);if(!(r&&e.indexOf(r)>=0)){var f=r!==void 0?n.indexOf(r):-1,p=i?n.indexOf(i):f,h=i?e.indexOf(i):-1;if(f===-1)return h!==-1?h:N2;if(h===-1)return N2;var m=f-p,g=n.indexOf(s),x=n.indexOf(u),b=tee(n),T=r!==void 0?b.indexOf(r):-1,S=T-(i?b.indexOf(i):f);if(!m&&h>=0||t.length===0)return h;var y=Mk(e,t[0]),C=Mk(e,t[t.length-1]);if(f<=g&&c&&Math.abs(m)>1)return C;if(f>=x&&c&&Math.abs(m)>1)return y;if(m&&Math.abs(S)>1)return h;if(f<=g)return C;if(f>x)return y;if(m)return Math.abs(m)>1?h:(o+h+m)%o}},ree=function(e){return function(t){var n,r=(n=ZA(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},$k=function(e,t,n){var r=e.map(function(o){var s=o.node;return s}),i=Ok(r.filter(ree(n)));return i&&i.length?Ik(i):Ik(Ok(t))},B2=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&B2(e.parentNode.host||e.parentNode,t),t},Hy=function(e,t){for(var n=B2(e),r=B2(t),i=0;i=0)return o}return!1},i8=function(e,t,n){var r=Es(e),i=Es(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(u){s=Hy(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=Hy(o,c);f&&(!s||ms(f,s)?s=f:s=Hy(f,s))})}),s},Fk=function(e,t){return e.reduce(function(n,r){return n.concat(qJ(r,t))},[])},iee=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(BJ)},oee=function(e,t){var n=Pf(Es(e).length>0?document:KA(e).ownerDocument),r=uw(e).filter(z2),i=i8(n||e,e,r),o=new Map,s=E0(r,o),u=s.filter(function(x){var b=x.node;return z2(b)});if(u[0]){var c=E0([i],o).map(function(x){var b=x.node;return b}),f=iee(c,u),p=f.map(function(x){var b=x.node;return b}),h=f.filter(function(x){var b=x.tabIndex;return b>=0}).map(function(x){var b=x.node;return b}),m=nee(p,h,c,n,t);if(m===N2){var g=$k(s,h,Fk(r,o))||$k(s,p,Fk(r,o));if(g)return{node:g};console.warn("focus-lock: cannot find any node to move focus into");return}return m===void 0?m:f[m]}},aee=function(e){var t=uw(e).filter(z2),n=i8(e,e,t),r=ow(uu([n],!0),!0,!0),i=uu(t,!1);return r.map(function(o){var s=o.node,u=o.index;return{node:s,index:u,lockItem:i.indexOf(s)>=0,guard:iw(s)}})},fw=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},Gy=0,Ky=!1,o8=function(e,t,n){n===void 0&&(n={});var r=oee(e,t);if(!Ky&&r){if(Gy>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Ky=!0,setTimeout(function(){Ky=!1},1);return}Gy++,fw(r.node,n.focusOptions),Gy--}};function dc(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var see=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:dc(n),parent:dc(n.parentElement),left:dc(n.previousElementSibling),right:dc(n.nextElementSibling)}),n=n.parentElement;return{element:dc(e),stack:t,ownerDocument:e.ownerDocument}},lee=function(e){var t,n,r,i,o;if(e)for(var s=e.stack,u=e.ownerDocument,c=new Map,f=0,p=s;f-1&&(g.filter(function(b){var T=b.guard,S=b.node;return T&&S.dataset.focusAutoGuard}).forEach(function(b){var T=b.node;return T.removeAttribute("tabIndex")}),Dk(x,g.length,1,g),Dk(x,-1,-1,g))}}}return t},l8=function(t){P0()&&t&&(t.stopPropagation(),t.preventDefault())},pw=function(){return dw(P0)},Eee=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||See(r,n)},Pee=function(){return null},u8=function(){Af="just",dw(function(){Af="meanwhile"})},Aee=function(){document.addEventListener("focusin",l8),document.addEventListener("focusout",pw),window.addEventListener("blur",u8)},Ree=function(){document.removeEventListener("focusin",l8),document.removeEventListener("focusout",pw),window.removeEventListener("blur",u8)};function Oee(e){return e.filter(function(t){var n=t.disabled;return!n})}var c8={moveFocusInside:o8,focusInside:r8,focusNextElement:pee,focusPrevElement:hee,focusFirstElement:mee,focusLastElement:vee,captureFocusRestore:uee};function Iee(e){var t=e.slice(-1)[0];t&&!ql&&Aee();var n=ql,r=n&&t&&t.id===n.id;ql=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?($l=null,(!r||n.observed!==t.observed)&&t.onActivation(c8),P0(),dw(P0)):(Ree(),$l=null)}WA.assignSyncMedium(Eee);UA.assignMedium(pw);kJ.assignMedium(function(e){return e(c8)});const Mee=MJ(Oee,Iee)(Pee);var V2=_.forwardRef(function(t,n){return _.createElement(GA,xs({sideCar:Mee,ref:n},t))}),f8=GA.propTypes||{};f8.sideCar;gJ(f8,["sideCar"]);V2.propTypes={};function d8(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function hw(e){var t;if(!d8(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function $ee(e){var t,n;return(n=(t=p8(e))==null?void 0:t.defaultView)!=null?n:window}function p8(e){return d8(e)?e.ownerDocument:document}function Fee(e){return p8(e).activeElement}function Dee(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lee(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function h8(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:hw(e)&&Dee(e)?e:h8(Lee(e))}var m8=e=>e.hasAttribute("tabindex"),jee=e=>m8(e)&&e.tabIndex===-1;function zee(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function v8(e){return e.parentElement&&v8(e.parentElement)?!0:e.hidden}function Nee(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function g8(e){if(!hw(e)||v8(e)||zee(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():Nee(e)?!0:m8(e)}function Bee(e){return e?hw(e)&&g8(e)&&!jee(e):!1}var Vee=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],Wee=Vee.join(),Uee=e=>e.offsetWidth>0&&e.offsetHeight>0;function Hee(e){const t=Array.from(e.querySelectorAll(Wee));return t.unshift(e),t.filter(n=>g8(n)&&Uee(n))}var Lk,Gee=(Lk=V2.default)!=null?Lk:V2,y8=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=_.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&Hee(r.current).length===0&&requestAnimationFrame(()=>{var x;(x=r.current)==null||x.focus()})},[t,r]),h=_.useCallback(()=>{var g;(g=n==null?void 0:n.current)==null||g.focus()},[n]),m=i&&!n;return w.jsx(Gee,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:m,children:o})};y8.displayName="FocusLock";var A0=ye(function(t,n){const{htmlSize:r,...i}=t,o=Ui("Input",i),s=gn(i),u=YZ(s),c=$e("chakra-input",t.className);return w.jsx(oe.input,{size:r,...u,__css:o.field,ref:n,className:c})});A0.displayName="Input";A0.id="Input";function Kee(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Cr(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var va=ye(function(t,n){const r=Wi("Text",t),{className:i,align:o,decoration:s,casing:u,...c}=gn(t),f=xK({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(oe.p,{ref:n,className:$e("chakra-text",t.className),...f,...c,__css:r})});va.displayName="Text";var mw=e=>w.jsx(oe.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});mw.displayName="StackDivider";var b8=e=>w.jsx(oe.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});b8.displayName="StackItem";function qee(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Kee(n,i=>r[i])}}var R0=ye((e,t)=>{const{isInline:n,direction:r,align:i,justify:o,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,g=n?"row":r??"column",x=_.useMemo(()=>qee({spacing:s,direction:g}),[s,g]),b=!!f,T=!h&&!b,S=_.useMemo(()=>{const C=Zx(c);return T?C:C.map((P,O)=>{const $=typeof P.key<"u"?P.key:O,I=O+1===C.length,V=h?w.jsx(b8,{children:P},$):P;if(!b)return V;const B=_.cloneElement(f,{__css:x}),X=I?null:B;return w.jsxs(_.Fragment,{children:[V,X]},$)})},[f,x,b,T,h,c]),y=$e("chakra-stack",p);return w.jsx(oe.div,{ref:t,display:"flex",alignItems:i,justifyContent:o,flexDirection:g,flexWrap:u,gap:b?void 0:s,className:y,...m,children:S})});R0.displayName="Stack";var Ta=ye(function(t,n){const r=Wi("Heading",t),{className:i,...o}=gn(t);return w.jsx(oe.h2,{ref:n,className:$e("chakra-heading",t.className),...o,__css:r})});Ta.displayName="Heading";var Pr=oe("div");Pr.displayName="Box";var x8=ye(function(t,n){const{size:r,centerContent:i=!0,...o}=t,s=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(Pr,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...o})});x8.displayName="Square";var Yee=ye(function(t,n){const{size:r,...i}=t;return w.jsx(x8,{size:r,ref:n,borderRadius:"9999px",...i})});Yee.displayName="Circle";var vw=oe("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});vw.displayName="Center";var Xee={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};ye(function(t,n){const{axis:r="both",...i}=t;return w.jsx(oe.div,{ref:n,__css:Xee[r],...i,position:"absolute"})});var O0=ye(function(t,n){const r=Wi("Code",t),{className:i,...o}=gn(t);return w.jsx(oe.code,{ref:n,className:$e("chakra-code",t.className),...o,__css:{display:"inline-block",...r}})});O0.displayName="Code";var gw=ye(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:o,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=Wi("Divider",t),{className:h,orientation:m="horizontal",__css:g,...x}=gn(t),b={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:i||o||u||"1px",width:"100%"}};return w.jsx(oe.hr,{ref:n,"aria-orientation":m,...x,__css:{...p,border:"0",borderColor:f,borderStyle:c,...b[m],...g},className:$e("chakra-divider",h)})});gw.displayName="Divider";var mt=ye(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return w.jsx(oe.div,{ref:n,__css:h,...p})});mt.displayName="Flex";function Qee(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function Zee(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=_.useState([]),o=_.useRef(),s=()=>{o.current&&(clearTimeout(o.current),o.current=null)},u=()=>{s(),o.current=setTimeout(()=>{i([]),o.current=null},t)};_.useEffect(()=>s,[]);function c(f){return p=>{if(p.key==="Backspace"){const h=[...r];h.pop(),i(h);return}if(Qee(p)){const h=r.concat(p.key);n(p)&&(p.preventDefault(),p.stopPropagation()),i(h),f(h.join("")),u()}}}return c}function Jee(e,t,n,r){if(t==null)return r;if(!r)return e.find(s=>n(s).toLowerCase().startsWith(t.toLowerCase()));const i=e.filter(o=>n(o).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let o;return i.includes(r)?(o=i.indexOf(r)+1,o===i.length&&(o=0),i[o]):(o=e.indexOf(i[0]),e[o])}return r}function ete(){const e=_.useRef(new Map),t=e.current,n=_.useCallback((i,o,s,u)=>{e.current.set(s,{type:o,el:i,options:u}),i.addEventListener(o,s,u)},[]),r=_.useCallback((i,o,s,u)=>{i.removeEventListener(o,s,u),e.current.delete(s)},[]);return _.useEffect(()=>()=>{t.forEach((i,o)=>{r(i.el,i.type,o,i.options)})},[r,t]),{add:n,remove:r}}function qy(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function w8(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:o=!0,onMouseDown:s,onMouseUp:u,onClick:c,onKeyDown:f,onKeyUp:p,tabIndex:h,onMouseOver:m,onMouseLeave:g,...x}=e,[b,T]=_.useState(!0),[S,y]=_.useState(!1),C=ete(),P=G=>{G&&G.tagName!=="BUTTON"&&T(!1)},O=b?h:h||0,$=n&&!r,I=_.useCallback(G=>{if(n){G.stopPropagation(),G.preventDefault();return}G.currentTarget.focus(),c==null||c(G)},[n,c]),F=_.useCallback(G=>{S&&qy(G)&&(G.preventDefault(),G.stopPropagation(),y(!1),C.remove(document,"keyup",F,!1))},[S,C]),V=_.useCallback(G=>{if(f==null||f(G),n||G.defaultPrevented||G.metaKey||!qy(G.nativeEvent)||b)return;const W=i&&G.key==="Enter";o&&G.key===" "&&(G.preventDefault(),y(!0)),W&&(G.preventDefault(),G.currentTarget.click()),C.add(document,"keyup",F,!1)},[n,b,f,i,o,C,F]),B=_.useCallback(G=>{if(p==null||p(G),n||G.defaultPrevented||G.metaKey||!qy(G.nativeEvent)||b)return;o&&G.key===" "&&(G.preventDefault(),y(!1),G.currentTarget.click())},[o,b,n,p]),X=_.useCallback(G=>{G.button===0&&(y(!1),C.remove(document,"mouseup",X,!1))},[C]),pe=_.useCallback(G=>{if(G.button!==0)return;if(n){G.stopPropagation(),G.preventDefault();return}b||y(!0),G.currentTarget.focus({preventScroll:!0}),C.add(document,"mouseup",X,!1),s==null||s(G)},[n,b,s,C,X]),he=_.useCallback(G=>{G.button===0&&(b||y(!1),u==null||u(G))},[u,b]),ge=_.useCallback(G=>{if(n){G.preventDefault();return}m==null||m(G)},[n,m]),Ae=_.useCallback(G=>{S&&(G.preventDefault(),y(!1)),g==null||g(G)},[S,g]),se=Wt(t,P);return b?{...x,ref:se,type:"button","aria-disabled":$?void 0:n,disabled:$,onClick:I,onMouseDown:s,onMouseUp:u,onKeyUp:p,onKeyDown:f,onMouseOver:m,onMouseLeave:g}:{...x,ref:se,role:"button","data-active":qe(S),"aria-disabled":n?"true":void 0,tabIndex:$?void 0:O,onClick:I,onMouseDown:pe,onMouseUp:he,onKeyUp:B,onKeyDown:V,onMouseOver:ge,onMouseLeave:Ae}}function tte(e){const t=e.current;if(!t)return!1;const n=Fee(t);return!n||t.contains(n)?!1:!!Bee(n)}function nte(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,o=n&&!r;_a(()=>{if(!o||tte(e))return;const s=(i==null?void 0:i.current)||e.current;let u;if(s)return u=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(u)}},[o,e,i])}var sl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Cn={arrowShadowColor:sl("--popper-arrow-shadow-color"),arrowSize:sl("--popper-arrow-size","8px"),arrowSizeHalf:sl("--popper-arrow-size-half"),arrowBg:sl("--popper-arrow-bg"),transformOrigin:sl("--popper-transform-origin"),arrowOffset:sl("--popper-arrow-offset")};function rte(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var ite={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ote=e=>ite[e],jk={scroll:!0,resize:!0};function ate(e){let t;return typeof e=="object"?t={enabled:!0,options:{...jk,...e}}:t={enabled:e,options:jk},t}var ste={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},lte={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{zk(e)},effect:({state:e})=>()=>{zk(e)}},zk=e=>{e.elements.popper.style.setProperty(Cn.transformOrigin.var,ote(e.placement))},ute={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{cte(e)}},cte=e=>{var t;if(!e.placement)return;const n=fte(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Cn.arrowSize.varRef,height:Cn.arrowSize.varRef,zIndex:-1});const r={[Cn.arrowSizeHalf.var]:`calc(${Cn.arrowSize.varRef} / 2 - 1px)`,[Cn.arrowOffset.var]:`calc(${Cn.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},fte=e=>{if(e.startsWith("top"))return{property:"bottom",value:Cn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Cn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Cn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Cn.arrowOffset.varRef}},dte={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{Nk(e)},effect:({state:e})=>()=>{Nk(e)}},Nk=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=rte(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Cn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},pte={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},hte={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function mte(e,t="ltr"){var n,r;const i=((n=pte[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=hte[e])!=null?r:i}var lr="top",ri="bottom",ii="right",ur="left",yw="auto",Yf=[lr,ri,ii,ur],cu="start",Rf="end",vte="clippingParents",S8="viewport",pc="popper",gte="reference",Bk=Yf.reduce(function(e,t){return e.concat([t+"-"+cu,t+"-"+Rf])},[]),_8=[].concat(Yf,[yw]).reduce(function(e,t){return e.concat([t,t+"-"+cu,t+"-"+Rf])},[]),yte="beforeRead",bte="read",xte="afterRead",wte="beforeMain",Ste="main",_te="afterMain",Cte="beforeWrite",kte="write",Tte="afterWrite",Ete=[yte,bte,xte,wte,Ste,_te,Cte,kte,Tte];function Vi(e){return e?(e.nodeName||"").toLowerCase():null}function Ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ps(e){var t=Ar(e).Element;return e instanceof t||e instanceof Element}function ei(e){var t=Ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bw(e){if(typeof ShadowRoot>"u")return!1;var t=Ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pte(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!ei(o)||!Vi(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var u=i[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function Ate(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!ei(i)||!Vi(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Rte={name:"applyStyles",enabled:!0,phase:"write",fn:Pte,effect:Ate,requires:["computeStyles"]};function Bi(e){return e.split("-")[0]}var vs=Math.max,I0=Math.min,fu=Math.round;function W2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function C8(){return!/^((?!chrome|android).)*safari/i.test(W2())}function du(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&ei(e)&&(i=e.offsetWidth>0&&fu(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&fu(r.height)/e.offsetHeight||1);var s=Ps(e)?Ar(e):window,u=s.visualViewport,c=!C8()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/i,p=(r.top+(c&&u?u.offsetTop:0))/o,h=r.width/i,m=r.height/o;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function xw(e){var t=du(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ro(e){return Ar(e).getComputedStyle(e)}function Ote(e){return["table","td","th"].indexOf(Vi(e))>=0}function Fa(e){return((Ps(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dm(e){return Vi(e)==="html"?e:e.assignedSlot||e.parentNode||(bw(e)?e.host:null)||Fa(e)}function Vk(e){return!ei(e)||Ro(e).position==="fixed"?null:e.offsetParent}function Ite(e){var t=/firefox/i.test(W2()),n=/Trident/i.test(W2());if(n&&ei(e)){var r=Ro(e);if(r.position==="fixed")return null}var i=Dm(e);for(bw(i)&&(i=i.host);ei(i)&&["html","body"].indexOf(Vi(i))<0;){var o=Ro(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xf(e){for(var t=Ar(e),n=Vk(e);n&&Ote(n)&&Ro(n).position==="static";)n=Vk(n);return n&&(Vi(n)==="html"||Vi(n)==="body"&&Ro(n).position==="static")?t:n||Ite(e)||t}function ww(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yc(e,t,n){return vs(e,I0(t,n))}function Mte(e,t,n){var r=Yc(e,t,n);return r>n?n:r}function T8(){return{top:0,right:0,bottom:0,left:0}}function E8(e){return Object.assign({},T8(),e)}function P8(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var $te=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E8(typeof t!="number"?t:P8(t,Yf))};function Fte(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,u=Bi(n.placement),c=ww(u),f=[ur,ii].indexOf(u)>=0,p=f?"height":"width";if(!(!o||!s)){var h=$te(i.padding,n),m=xw(o),g=c==="y"?lr:ur,x=c==="y"?ri:ii,b=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],T=s[c]-n.rects.reference[c],S=Xf(o),y=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,C=b/2-T/2,P=h[g],O=y-m[p]-h[x],$=y/2-m[p]/2+C,I=Yc(P,$,O),F=c;n.modifiersData[r]=(t={},t[F]=I,t.centerOffset=I-$,t)}}function Dte(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||k8(t.elements.popper,i)&&(t.elements.arrow=i))}const Lte={name:"arrow",enabled:!0,phase:"main",fn:Fte,effect:Dte,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pu(e){return e.split("-")[1]}var jte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zte(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:fu(n*i)/i||0,y:fu(r*i)/i||0}}function Wk(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,g=m===void 0?0:m,x=s.y,b=x===void 0?0:x,T=typeof p=="function"?p({x:g,y:b}):{x:g,y:b};g=T.x,b=T.y;var S=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),C=ur,P=lr,O=window;if(f){var $=Xf(n),I="clientHeight",F="clientWidth";if($===Ar(n)&&($=Fa(n),Ro($).position!=="static"&&u==="absolute"&&(I="scrollHeight",F="scrollWidth")),$=$,i===lr||(i===ur||i===ii)&&o===Rf){P=ri;var V=h&&$===O&&O.visualViewport?O.visualViewport.height:$[I];b-=V-r.height,b*=c?1:-1}if(i===ur||(i===lr||i===ri)&&o===Rf){C=ii;var B=h&&$===O&&O.visualViewport?O.visualViewport.width:$[F];g-=B-r.width,g*=c?1:-1}}var X=Object.assign({position:u},f&&jte),pe=p===!0?zte({x:g,y:b},Ar(n)):{x:g,y:b};if(g=pe.x,b=pe.y,c){var he;return Object.assign({},X,(he={},he[P]=y?"0":"",he[C]=S?"0":"",he.transform=(O.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",he))}return Object.assign({},X,(t={},t[P]=y?b+"px":"",t[C]=S?g+"px":"",t.transform="",t))}function Nte(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Bi(t.placement),variation:pu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Wk(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Wk(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Bte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nte,data:{}};var Wp={passive:!0};function Vte(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,u=s===void 0?!0:s,c=Ar(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&f.forEach(function(p){p.addEventListener("scroll",n.update,Wp)}),u&&c.addEventListener("resize",n.update,Wp),function(){o&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Wp)}),u&&c.removeEventListener("resize",n.update,Wp)}}const Wte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vte,data:{}};var Ute={left:"right",right:"left",bottom:"top",top:"bottom"};function Ph(e){return e.replace(/left|right|bottom|top/g,function(t){return Ute[t]})}var Hte={start:"end",end:"start"};function Uk(e){return e.replace(/start|end/g,function(t){return Hte[t]})}function Sw(e){var t=Ar(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _w(e){return du(Fa(e)).left+Sw(e).scrollLeft}function Gte(e,t){var n=Ar(e),r=Fa(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,u=0,c=0;if(i){o=i.width,s=i.height;var f=C8();(f||!f&&t==="fixed")&&(u=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:u+_w(e),y:c}}function Kte(e){var t,n=Fa(e),r=Sw(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=vs(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=vs(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+_w(e),c=-r.scrollTop;return Ro(i||n).direction==="rtl"&&(u+=vs(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function Cw(e){var t=Ro(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function A8(e){return["html","body","#document"].indexOf(Vi(e))>=0?e.ownerDocument.body:ei(e)&&Cw(e)?e:A8(Dm(e))}function Xc(e,t){var n;t===void 0&&(t=[]);var r=A8(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ar(r),s=i?[o].concat(o.visualViewport||[],Cw(r)?r:[]):r,u=t.concat(s);return i?u:u.concat(Xc(Dm(s)))}function U2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qte(e,t){var n=du(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Hk(e,t,n){return t===S8?U2(Gte(e,n)):Ps(t)?qte(t,n):U2(Kte(Fa(e)))}function Yte(e){var t=Xc(Dm(e)),n=["absolute","fixed"].indexOf(Ro(e).position)>=0,r=n&&ei(e)?Xf(e):e;return Ps(r)?t.filter(function(i){return Ps(i)&&k8(i,r)&&Vi(i)!=="body"}):[]}function Xte(e,t,n,r){var i=t==="clippingParents"?Yte(e):[].concat(t),o=[].concat(i,[n]),s=o[0],u=o.reduce(function(c,f){var p=Hk(e,f,r);return c.top=vs(p.top,c.top),c.right=I0(p.right,c.right),c.bottom=I0(p.bottom,c.bottom),c.left=vs(p.left,c.left),c},Hk(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function R8(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bi(r):null,o=r?pu(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(i){case lr:c={x:s,y:t.y-n.height};break;case ri:c={x:s,y:t.y+t.height};break;case ii:c={x:t.x+t.width,y:u};break;case ur:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=i?ww(i):null;if(f!=null){var p=f==="y"?"height":"width";switch(o){case cu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Rf:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Of(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,u=n.boundary,c=u===void 0?vte:u,f=n.rootBoundary,p=f===void 0?S8:f,h=n.elementContext,m=h===void 0?pc:h,g=n.altBoundary,x=g===void 0?!1:g,b=n.padding,T=b===void 0?0:b,S=E8(typeof T!="number"?T:P8(T,Yf)),y=m===pc?gte:pc,C=e.rects.popper,P=e.elements[x?y:m],O=Xte(Ps(P)?P:P.contextElement||Fa(e.elements.popper),c,p,s),$=du(e.elements.reference),I=R8({reference:$,element:C,strategy:"absolute",placement:i}),F=U2(Object.assign({},C,I)),V=m===pc?F:$,B={top:O.top-V.top+S.top,bottom:V.bottom-O.bottom+S.bottom,left:O.left-V.left+S.left,right:V.right-O.right+S.right},X=e.modifiersData.offset;if(m===pc&&X){var pe=X[i];Object.keys(B).forEach(function(he){var ge=[ii,ri].indexOf(he)>=0?1:-1,Ae=[lr,ri].indexOf(he)>=0?"y":"x";B[he]+=pe[Ae]*ge})}return B}function Qte(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?_8:c,p=pu(r),h=p?u?Bk:Bk.filter(function(x){return pu(x)===p}):Yf,m=h.filter(function(x){return f.indexOf(x)>=0});m.length===0&&(m=h);var g=m.reduce(function(x,b){return x[b]=Of(e,{placement:b,boundary:i,rootBoundary:o,padding:s})[Bi(b)],x},{});return Object.keys(g).sort(function(x,b){return g[x]-g[b]})}function Zte(e){if(Bi(e)===yw)return[];var t=Ph(e);return[Uk(e),t,Uk(t)]}function Jte(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,x=g===void 0?!0:g,b=n.allowedAutoPlacements,T=t.options.placement,S=Bi(T),y=S===T,C=c||(y||!x?[Ph(T)]:Zte(T)),P=[T].concat(C).reduce(function(ce,le){return ce.concat(Bi(le)===yw?Qte(t,{placement:le,boundary:p,rootBoundary:h,padding:f,flipVariations:x,allowedAutoPlacements:b}):le)},[]),O=t.rects.reference,$=t.rects.popper,I=new Map,F=!0,V=P[0],B=0;B=0,Ae=ge?"width":"height",se=Of(t,{placement:X,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),G=ge?he?ii:ur:he?ri:lr;O[Ae]>$[Ae]&&(G=Ph(G));var W=Ph(G),J=[];if(o&&J.push(se[pe]<=0),u&&J.push(se[G]<=0,se[W]<=0),J.every(function(ce){return ce})){V=X,F=!1;break}I.set(X,J)}if(F)for(var te=x?3:1,ne=function(le){var Te=P.find(function(et){var Ue=I.get(et);if(Ue)return Ue.slice(0,le).every(function(ft){return ft})});if(Te)return V=Te,"break"},be=te;be>0;be--){var ae=ne(be);if(ae==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const ene={name:"flip",enabled:!0,phase:"main",fn:Jte,requiresIfExists:["offset"],data:{_skip:!1}};function Gk(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kk(e){return[lr,ii,ri,ur].some(function(t){return e[t]>=0})}function tne(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Of(t,{elementContext:"reference"}),u=Of(t,{altBoundary:!0}),c=Gk(s,r),f=Gk(u,i,o),p=Kk(c),h=Kk(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const nne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tne};function rne(e,t,n){var r=Bi(e),i=[ur,lr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],u=o[1];return s=s||0,u=(u||0)*i,[ur,ii].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function ine(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=_8.reduce(function(p,h){return p[h]=rne(h,t.rects,o),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const one={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ine};function ane(e){var t=e.state,n=e.name;t.modifiersData[n]=R8({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const sne={name:"popperOffsets",enabled:!0,phase:"read",fn:ane,data:{}};function lne(e){return e==="x"?"y":"x"}function une(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,g=m===void 0?!0:m,x=n.tetherOffset,b=x===void 0?0:x,T=Of(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),S=Bi(t.placement),y=pu(t.placement),C=!y,P=ww(S),O=lne(P),$=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,V=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,B=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,pe={x:0,y:0};if($){if(o){var he,ge=P==="y"?lr:ur,Ae=P==="y"?ri:ii,se=P==="y"?"height":"width",G=$[P],W=G+T[ge],J=G-T[Ae],te=g?-F[se]/2:0,ne=y===cu?I[se]:F[se],be=y===cu?-F[se]:-I[se],ae=t.elements.arrow,ce=g&&ae?xw(ae):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T8(),Te=le[ge],et=le[Ae],Ue=Yc(0,I[se],ce[se]),ft=C?I[se]/2-te-Ue-Te-B.mainAxis:ne-Ue-Te-B.mainAxis,_t=C?-I[se]/2+te+Ue+et+B.mainAxis:be+Ue+et+B.mainAxis,Xe=t.elements.arrow&&Xf(t.elements.arrow),Re=Xe?P==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,bt=(he=X==null?void 0:X[P])!=null?he:0,Oe=G+ft-bt-Re,me=G+_t-bt,Qe=Yc(g?I0(W,Oe):W,G,g?vs(J,me):J);$[P]=Qe,pe[P]=Qe-G}if(u){var Ve,Pt=P==="x"?lr:ur,rn=P==="x"?ri:ii,xt=$[O],Ct=O==="y"?"height":"width",Ut=xt+T[Pt],$t=xt-T[rn],qn=[lr,ur].indexOf(S)!==-1,Dn=(Ve=X==null?void 0:X[O])!=null?Ve:0,_i=qn?Ut:xt-I[Ct]-F[Ct]-Dn+B.altAxis,Yn=qn?xt+I[Ct]+F[Ct]-Dn-B.altAxis:$t,ee=g&&qn?Mte(_i,xt,Yn):Yc(g?_i:Ut,xt,g?Yn:$t);$[O]=ee,pe[O]=ee-xt}t.modifiersData[r]=pe}}const cne={name:"preventOverflow",enabled:!0,phase:"main",fn:une,requiresIfExists:["offset"]};function fne(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dne(e){return e===Ar(e)||!ei(e)?Sw(e):fne(e)}function pne(e){var t=e.getBoundingClientRect(),n=fu(t.width)/e.offsetWidth||1,r=fu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function hne(e,t,n){n===void 0&&(n=!1);var r=ei(t),i=ei(t)&&pne(t),o=Fa(t),s=du(e,i,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Vi(t)!=="body"||Cw(o))&&(u=dne(t)),ei(t)?(c=du(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=_w(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function mne(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vne(e){var t=mne(e);return Ete.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function gne(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function yne(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qk={placement:"bottom",modifiers:[],strategy:"absolute"};function Yk(){for(var e=arguments.length,t=new Array(e),n=0;n{}),C=_.useCallback(()=>{var B;!t||!x.current||!b.current||((B=y.current)==null||B.call(y),T.current=wne(x.current,b.current,{placement:S,modifiers:[dte,ute,lte,{...ste,enabled:!!m},{name:"eventListeners",...ate(s)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:i}),T.current.forceUpdate(),y.current=T.current.destroy)},[S,t,n,m,s,o,u,c,f,h,p,i]);_.useEffect(()=>()=>{var B;!x.current&&!b.current&&((B=T.current)==null||B.destroy(),T.current=null)},[]);const P=_.useCallback(B=>{x.current=B,C()},[C]),O=_.useCallback((B={},X=null)=>({...B,ref:Wt(P,X)}),[P]),$=_.useCallback(B=>{b.current=B,C()},[C]),I=_.useCallback((B={},X=null)=>({...B,ref:Wt($,X),style:{...B.style,position:i,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[i,$,m]),F=_.useCallback((B={},X=null)=>{const{size:pe,shadowColor:he,bg:ge,style:Ae,...se}=B;return{...se,ref:X,"data-popper-arrow":"",style:Sne(B)}},[]),V=_.useCallback((B={},X=null)=>({...B,ref:X,"data-popper-arrow-inner":""}),[]);return{update(){var B;(B=T.current)==null||B.update()},forceUpdate(){var B;(B=T.current)==null||B.forceUpdate()},transformOrigin:Cn.transformOrigin.varRef,referenceRef:P,popperRef:$,getPopperProps:I,getArrowProps:F,getArrowInnerProps:V,getReferenceProps:O}}function Sne(e){const{size:t,shadowColor:n,bg:r,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),n&&(o["--popper-arrow-shadow-color"]=n),r&&(o["--popper-arrow-bg"]=r),o}function I8(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,o=Xt(n),s=Xt(t),[u,c]=_.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=_.useId(),m=i??`disclosure-${h}`,g=_.useCallback(()=>{p||c(!1),s==null||s()},[p,s]),x=_.useCallback(()=>{p||c(!0),o==null||o()},[p,o]),b=_.useCallback(()=>{f?g():x()},[f,x,g]);function T(y={}){return{...y,"aria-expanded":f,"aria-controls":m,onClick(C){var P;(P=y.onClick)==null||P.call(y,C),b()}}}function S(y={}){return{...y,hidden:!f,id:m}}return{isOpen:f,onOpen:x,onClose:g,onToggle:b,isControlled:p,getButtonProps:T,getDisclosureProps:S}}function _ne(e){const{ref:t,handler:n,enabled:r=!0}=e,i=Xt(n),s=_.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;_.useEffect(()=>{if(!r)return;const u=h=>{Yy(h,t)&&(s.isPointerDown=!0)},c=h=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&Yy(h,t)&&(s.isPointerDown=!1,i(h))},f=h=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&Yy(h,t)&&(s.isPointerDown=!1,i(h))},p=M8(t.current);return p.addEventListener("mousedown",u,!0),p.addEventListener("mouseup",c,!0),p.addEventListener("touchstart",u,!0),p.addEventListener("touchend",f,!0),()=>{p.removeEventListener("mousedown",u,!0),p.removeEventListener("mouseup",c,!0),p.removeEventListener("touchstart",u,!0),p.removeEventListener("touchend",f,!0)}},[n,t,i,s,r])}function Yy(e,t){var n;const r=e.target;return r&&!M8(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function M8(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function Cne(e){const{isOpen:t,ref:n}=e,[r,i]=_.useState(t),[o,s]=_.useState(!1);return _.useEffect(()=>{o||(i(t),s(!0))},[t,o,r]),qc(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var c;const f=$ee(n.current),p=new f.CustomEvent("animationend",{bubbles:!0});(c=n.current)==null||c.dispatchEvent(p)}}}function $8(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[kne,Tne,Ene,Pne]=CA(),[Ane,Qf]=Jt({strict:!1,name:"MenuContext"});function Rne(e,...t){const n=_.useId(),r=e||n;return _.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function F8(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function Xk(e){return F8(e).activeElement===e}function One(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:o=!0,isLazy:s,isOpen:u,defaultIsOpen:c,onClose:f,onOpen:p,placement:h="bottom-start",lazyBehavior:m="unmount",direction:g,computePositionOnMount:x=!1,...b}=e,T=_.useRef(null),S=_.useRef(null),y=Ene(),C=_.useCallback(()=>{requestAnimationFrame(()=>{var ae;(ae=T.current)==null||ae.focus({preventScroll:!1})})},[]),P=_.useCallback(()=>{const ae=setTimeout(()=>{var ce;if(i)(ce=i.current)==null||ce.focus();else{const le=y.firstEnabled();le&&he(le.index)}});W.current.add(ae)},[y,i]),O=_.useCallback(()=>{const ae=setTimeout(()=>{const ce=y.lastEnabled();ce&&he(ce.index)});W.current.add(ae)},[y]),$=_.useCallback(()=>{p==null||p(),o?P():C()},[o,P,C,p]),{isOpen:I,onOpen:F,onClose:V,onToggle:B}=I8({isOpen:u,defaultIsOpen:c,onClose:f,onOpen:$});_ne({enabled:I&&r,ref:T,handler:ae=>{var ce;(ce=S.current)!=null&&ce.contains(ae.target)||V()}});const X=O8({...b,enabled:I||x,placement:h,direction:g}),[pe,he]=_.useState(-1);_a(()=>{I||he(-1)},[I]),nte(T,{focusRef:S,visible:I,shouldFocus:!0});const ge=Cne({isOpen:I,ref:T}),[Ae,se]=Rne(t,"menu-button","menu-list"),G=_.useCallback(()=>{F(),C()},[F,C]),W=_.useRef(new Set([]));_.useEffect(()=>{const ae=W.current;return()=>{ae.forEach(ce=>clearTimeout(ce)),ae.clear()}},[]);const J=_.useCallback(()=>{F(),P()},[P,F]),te=_.useCallback(()=>{F(),O()},[F,O]),ne=_.useCallback(()=>{var ae,ce;const le=F8(T.current),Te=(ae=T.current)==null?void 0:ae.contains(le.activeElement);if(!(I&&!Te))return;const Ue=(ce=y.item(pe))==null?void 0:ce.node;Ue==null||Ue.focus({preventScroll:!0})},[I,pe,y]),be=_.useRef(null);return{openAndFocusMenu:G,openAndFocusFirstItem:J,openAndFocusLastItem:te,onTransitionEnd:ne,unstable__animationState:ge,descendants:y,popper:X,buttonId:Ae,menuId:se,forceUpdate:X.forceUpdate,orientation:"vertical",isOpen:I,onToggle:B,onOpen:F,onClose:V,menuRef:T,buttonRef:S,focusedIndex:pe,closeOnSelect:n,closeOnBlur:r,autoSelect:o,setFocusedIndex:he,isLazy:s,lazyBehavior:m,initialFocusRef:i,rafId:be}}function Ine(e={},t=null){const n=Qf(),{onToggle:r,popper:i,openAndFocusFirstItem:o,openAndFocusLastItem:s}=n,u=_.useCallback(c=>{const f=c.key,h={Enter:o,ArrowDown:o,ArrowUp:s}[f];h&&(c.preventDefault(),c.stopPropagation(),h(c))},[o,s]);return{...e,ref:Wt(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":qe(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:We(e.onClick,r),onKeyDown:We(e.onKeyDown,u)}}function H2(e){var t;return jne(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function Mne(e={},t=null){const n=Qf();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:i,menuRef:o,isOpen:s,onClose:u,menuId:c,isLazy:f,lazyBehavior:p,unstable__animationState:h}=n,m=Tne(),g=Zee({preventDefault:S=>S.key!==" "&&H2(S.target)}),x=_.useCallback(S=>{if(!S.currentTarget.contains(S.target))return;const y=S.key,P={Tab:$=>$.preventDefault(),Escape:u,ArrowDown:()=>{const $=m.nextEnabled(r);$&&i($.index)},ArrowUp:()=>{const $=m.prevEnabled(r);$&&i($.index)}}[y];if(P){S.preventDefault(),P(S);return}const O=g($=>{const I=Jee(m.values(),$,F=>{var V,B;return(B=(V=F==null?void 0:F.node)==null?void 0:V.textContent)!=null?B:""},m.item(r));if(I){const F=m.indexOf(I.node);i(F)}});H2(S.target)&&O(S)},[m,r,g,u,i]),b=_.useRef(!1);s&&(b.current=!0);const T=$8({wasSelected:b.current,enabled:f,mode:p,isSelected:h.present});return{...e,ref:Wt(o,t),children:T?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:We(e.onKeyDown,x)}}function $ne(e={}){const{popper:t,isOpen:n}=Qf();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function Fne(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:o,onFocus:s,isDisabled:u,isFocusable:c,closeOnSelect:f,type:p,...h}=e,m=Qf(),{setFocusedIndex:g,focusedIndex:x,closeOnSelect:b,onClose:T,menuRef:S,isOpen:y,menuId:C,rafId:P}=m,O=_.useRef(null),$=`${C}-menuitem-${_.useId()}`,{index:I,register:F}=Pne({disabled:u&&!c}),V=_.useCallback(G=>{n==null||n(G),!u&&g(I)},[g,I,u,n]),B=_.useCallback(G=>{r==null||r(G),O.current&&!Xk(O.current)&&V(G)},[V,r]),X=_.useCallback(G=>{i==null||i(G),!u&&g(-1)},[g,u,i]),pe=_.useCallback(G=>{o==null||o(G),H2(G.currentTarget)&&(f??b)&&T()},[T,o,b,f]),he=_.useCallback(G=>{s==null||s(G),g(I)},[g,s,I]),ge=I===x,Ae=u&&!c;_a(()=>{if(y)return ge&&!Ae&&O.current?(P.current&&cancelAnimationFrame(P.current),P.current=requestAnimationFrame(()=>{var G;(G=O.current)==null||G.focus({preventScroll:!0}),P.current=null})):S.current&&!Xk(S.current)&&S.current.focus({preventScroll:!0}),()=>{P.current&&cancelAnimationFrame(P.current)}},[ge,Ae,S,y]);const se=w8({onClick:pe,onFocus:he,onMouseEnter:V,onMouseMove:B,onMouseLeave:X,ref:Wt(F,O,t),isDisabled:u,isFocusable:c});return{...h,...se,type:p??se.type,id:$,role:"menuitem",tabIndex:ge?0:-1}}function Dne(e={},t=null){const{type:n="radio",isChecked:r,...i}=e;return{...Fne(i,t),role:`menuitem${n}`,"aria-checked":r}}function Lne(e={}){const{children:t,type:n="radio",value:r,defaultValue:i,onChange:o,...s}=e,c=n==="radio"?"":[],[f,p]=Qx({defaultValue:i??c,value:r,onChange:o}),h=_.useCallback(x=>{if(n==="radio"&&typeof f=="string"&&p(x),n==="checkbox"&&Array.isArray(f)){const b=f.includes(x)?f.filter(T=>T!==x):f.concat(x);p(b)}},[f,p,n]),g=Zx(t).map(x=>{if(x.type.id!=="MenuItemOption")return x;const b=S=>{var y,C;h(x.props.value),(C=(y=x.props).onClick)==null||C.call(y,S)},T=n==="radio"?x.props.value===f:f.includes(x.props.value);return _.cloneElement(x,{type:n,onClick:b,isChecked:T})});return{...s,children:g}}function jne(e){var t;if(!zne(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function zne(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[Nne,Zf]=Jt({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Lm=e=>{const{children:t}=e,n=Ui("Menu",e),r=gn(e),{direction:i}=bm(),{descendants:o,...s}=One({...r,direction:i}),u=_.useMemo(()=>s,[s]),{isOpen:c,onClose:f,forceUpdate:p}=u;return w.jsx(kne,{value:o,children:w.jsx(Ane,{value:u,children:w.jsx(Nne,{value:n,children:vo(t,{isOpen:c,onClose:f,forceUpdate:p})})})})};Lm.displayName="Menu";var Bne=ye((e,t)=>{const{type:n,...r}=e,i=Zf(),o=r.as||n?n??void 0:"button",s=_.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return w.jsx(oe.button,{ref:t,type:o,...r,__css:s})}),D8=e=>{const{className:t,children:n,...r}=e,i=Zf(),o=_.Children.only(n),s=_.isValidElement(o)?_.cloneElement(o,{focusable:"false","aria-hidden":!0,className:$e("chakra-menu__icon",o.props.className)}):null,u=$e("chakra-menu__icon-wrapper",t);return w.jsx(oe.span,{className:u,...r,__css:i.icon,children:s})};D8.displayName="MenuIcon";var Vne={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Wne=oe(Ma.div),jm=ye(function(t,n){var r,i;const{rootProps:o,motionProps:s,...u}=t,{isOpen:c,onTransitionEnd:f,unstable__animationState:p}=Qf(),h=Mne(u,n),m=$ne(o),g=Zf();return w.jsx(oe.div,{...m,__css:{zIndex:(i=t.zIndex)!=null?i:(r=g.list)==null?void 0:r.zIndex},children:w.jsx(Wne,{variants:Vne,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...g.list},...s,className:$e("chakra-menu__menu-list",h.className),...h,onUpdate:f,onAnimationComplete:pP(p.onComplete,h.onAnimationComplete)})})});jm.displayName="MenuList";var L8=ye((e,t)=>{const{title:n,children:r,className:i,...o}=e,s=$e("chakra-menu__group__title",i),u=Zf();return w.jsxs("div",{ref:t,className:"chakra-menu__group",role:"group",children:[n&&w.jsx(oe.p,{className:s,...o,__css:u.groupTitle,children:n}),r]})});L8.displayName="MenuGroup";var zm=e=>{const{className:t,title:n,...r}=e,i=Lne(r);return w.jsx(L8,{title:n,className:$e("chakra-menu__option-group",t),...i})};zm.displayName="MenuOptionGroup";var Une=ye((e,t)=>{const n=Zf();return w.jsx(oe.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),Nm=ye((e,t)=>{const{children:n,as:r,...i}=e,o=Ine(i,t),s=r||Une;return w.jsx(s,{...o,className:$e("chakra-menu__menu-button",e.className),children:w.jsx(oe.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Nm.displayName="MenuButton";var Hne=e=>w.jsx("svg",{viewBox:"0 0 14 14",width:"1em",height:"1em",...e,children:w.jsx("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})}),Jf=ye((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",...i}=e,o=Dne(i,t);return w.jsxs(Bne,{...o,className:$e("chakra-menu__menuitem-option",i.className),children:[n!==null&&w.jsx(D8,{fontSize:"0.8em",marginEnd:r,opacity:e.isChecked?1:0,children:n||w.jsx(Hne,{})}),w.jsx("span",{style:{flex:1},children:o.children})]})});Jf.id="MenuItemOption";Jf.displayName="MenuItemOption";var Gne={slideInBottom:{...Tc,custom:{offsetY:16,reverse:!0}},slideInRight:{...Tc,custom:{offsetX:16,reverse:!0}},slideInTop:{...Tc,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...Tc,custom:{offsetX:-16,reverse:!0}},scale:{...TA,custom:{initialScale:.95,reverse:!0}},none:{}},Kne=oe(Ma.section),qne=e=>Gne[e||"none"],j8=_.forwardRef((e,t)=>{const{preset:n,motionProps:r=qne(n),...i}=e;return w.jsx(Kne,{ref:t,...r,...i})});j8.displayName="ModalTransition";var Yne=Object.defineProperty,Xne=(e,t,n)=>t in e?Yne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qne=(e,t,n)=>(Xne(e,typeof t!="symbol"?t+"":t,n),n),Zne=class{constructor(){Qne(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},G2=new Zne;function z8(e,t){const[n,r]=_.useState(0);return _.useEffect(()=>{const i=e.current;if(i){if(t){const o=G2.add(i);r(o)}return()=>{G2.remove(i),r(0)}}},[t,e]),n}var Jne=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ll=new WeakMap,Up=new WeakMap,Hp={},Xy=0,N8=function(e){return e&&(e.host||N8(e.parentNode))},ere=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=N8(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},tre=function(e,t,n,r){var i=ere(t,Array.isArray(e)?e:[e]);Hp[n]||(Hp[n]=new WeakMap);var o=Hp[n],s=[],u=new Set,c=new Set(i),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};i.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else try{var g=m.getAttribute(r),x=g!==null&&g!=="false",b=(ll.get(m)||0)+1,T=(o.get(m)||0)+1;ll.set(m,b),o.set(m,T),s.push(m),b===1&&x&&Up.set(m,!0),T===1&&m.setAttribute(n,"true"),x||m.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",m,S)}})};return p(t),u.clear(),Xy++,function(){s.forEach(function(h){var m=ll.get(h)-1,g=o.get(h)-1;ll.set(h,m),o.set(h,g),m||(Up.has(h)||h.removeAttribute(r),Up.delete(h)),g||h.removeAttribute(n)}),Xy--,Xy||(ll=new WeakMap,ll=new WeakMap,Up=new WeakMap,Hp={})}},nre=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Jne(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),tre(r,i,n,"aria-hidden")):function(){return null}};function rre(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:o=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=_.useRef(null),p=_.useRef(null),[h,m,g]=ore(r,"chakra-modal","chakra-modal--header","chakra-modal--body");ire(f,t&&s);const x=z8(f,t),b=_.useRef(null),T=_.useCallback(V=>{b.current=V.target},[]),S=_.useCallback(V=>{V.key==="Escape"&&(V.stopPropagation(),o&&(n==null||n()),c==null||c())},[o,n,c]),[y,C]=_.useState(!1),[P,O]=_.useState(!1),$=_.useCallback((V={},B=null)=>({role:"dialog",...V,ref:Wt(B,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":y?m:void 0,"aria-describedby":P?g:void 0,onClick:We(V.onClick,X=>X.stopPropagation())}),[g,P,h,m,y]),I=_.useCallback(V=>{V.stopPropagation(),b.current===V.target&&G2.isTopModal(f.current)&&(i&&(n==null||n()),u==null||u())},[n,i,u]),F=_.useCallback((V={},B=null)=>({...V,ref:Wt(B,p),onClick:We(V.onClick,I),onKeyDown:We(V.onKeyDown,S),onMouseDown:We(V.onMouseDown,T)}),[S,T,I]);return{isOpen:t,onClose:n,headerId:m,bodyId:g,setBodyMounted:O,setHeaderMounted:C,dialogRef:f,overlayRef:p,getDialogProps:$,getDialogContainerProps:F,index:x}}function ire(e,t){const n=e.current;_.useEffect(()=>{if(!(!e.current||!t))return nre(e.current)},[t,e,n])}function ore(e,...t){const n=_.useId(),r=e||n;return _.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[are,Bm]=Jt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[sre,hu]=Jt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),kw=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:f,allowPinchZoom:p,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:g,onCloseComplete:x}=t,b=Ui("Modal",t),S={...rre(t),autoFocus:i,trapFocus:o,initialFocusRef:s,finalFocusRef:u,returnFocusOnClose:c,blockScrollOnMount:f,allowPinchZoom:p,preserveScrollBarGap:h,motionPreset:m,lockFocusAcrossFrames:g};return w.jsx(sre,{value:S,children:w.jsx(are,{value:b,children:w.jsx(wu,{onExitComplete:x,children:S.isOpen&&w.jsx(xu,{...n,children:r})})})})};kw.displayName="Modal";var Ah="right-scroll-bar-position",Rh="width-before-scroll-bar",lre="with-scroll-bars-hidden",ure="--removed-body-scroll-bar-size",B8=BA(),Qy=function(){},Vm=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:Qy,onWheelCapture:Qy,onTouchMoveCapture:Qy}),i=r[0],o=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,g=e.noIsolation,x=e.inert,b=e.allowPinchZoom,T=e.as,S=T===void 0?"div":T,y=e.gapMode,C=jA(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=m,O=LA([n,t]),$=Fi(Fi({},C),i);return _.createElement(_.Fragment,null,p&&_.createElement(P,{sideCar:B8,removeScrollBar:f,shards:h,noIsolation:g,inert:x,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:y}),s?_.cloneElement(_.Children.only(u),Fi(Fi({},$),{ref:O})):_.createElement(S,Fi({},$,{className:c,ref:O}),u))});Vm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vm.classNames={fullWidth:Rh,zeroRight:Ah};var cre=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function fre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cre();return t&&e.setAttribute("nonce",t),e}function dre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pre(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hre=function(){var e=0,t=null;return{add:function(n){e==0&&(t=fre())&&(dre(t,n),pre(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mre=function(){var e=hre();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},V8=function(){var e=mre(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},vre={left:0,top:0,right:0,gap:0},Zy=function(e){return parseInt(e||"",10)||0},gre=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Zy(n),Zy(r),Zy(i)]},yre=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vre;var t=gre(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bre=V8(),Xl="data-scroll-locked",xre=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` .`.concat(lre,` { overflow: hidden `).concat(r,`; padding-right: `).concat(u,"px ").concat(r,`; } - body[`).concat(Yl,`] { + body[`).concat(Xl,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` @@ -379,13 +379,13 @@ Error generating stack: `+o.message+` margin-right: 0 `).concat(r,`; } - body[`).concat(Yl,`] { + body[`).concat(Xl,`] { `).concat(ure,": ").concat(u,`px; } -`)},Qk=function(){var e=parseInt(document.body.getAttribute(Yl)||"0",10);return isFinite(e)?e:0},wre=function(){_.useEffect(function(){return document.body.setAttribute(Yl,(Qk()+1).toString()),function(){var e=Qk()-1;e<=0?document.body.removeAttribute(Yl):document.body.setAttribute(Yl,e.toString())}},[])},Sre=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;wre();var o=_.useMemo(function(){return yre(i)},[i]);return _.createElement(bre,{styles:xre(o,!t,i,n?"":"!important")})},K2=!1;if(typeof window<"u")try{var Gp=Object.defineProperty({},"passive",{get:function(){return K2=!0,!0}});window.addEventListener("test",Gp,Gp),window.removeEventListener("test",Gp,Gp)}catch{K2=!1}var ll=K2?{passive:!1}:!1,_re=function(e){return e.tagName==="TEXTAREA"},W8=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_re(e)&&n[t]==="visible")},Cre=function(e){return W8(e,"overflowY")},kre=function(e){return W8(e,"overflowX")},Zk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=U8(e,r);if(i){var o=H8(e,r),s=o[1],u=o[2];if(s>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tre=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ere=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U8=function(e,t){return e==="v"?Cre(t):kre(t)},H8=function(e,t){return e==="v"?Tre(t):Ere(t)},Pre=function(e,t){return e==="h"&&t==="rtl"?-1:1},Are=function(e,t,n,r,i){var o=Pre(e,window.getComputedStyle(t).direction),s=o*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var g=H8(e,u),w=g[0],b=g[1],T=g[2],S=b-T-o*w;(w||S)&&U8(e,u)&&(h+=S,m+=w),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(i&&Math.abs(h)<1||!i&&s>h)||!p&&(i&&Math.abs(m)<1||!i&&-s>m))&&(f=!0),f},Kp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jk=function(e){return[e.deltaX,e.deltaY]},e4=function(e){return e&&"current"in e?e.current:e},Rre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ore=function(e){return` +`)},Qk=function(){var e=parseInt(document.body.getAttribute(Xl)||"0",10);return isFinite(e)?e:0},wre=function(){_.useEffect(function(){return document.body.setAttribute(Xl,(Qk()+1).toString()),function(){var e=Qk()-1;e<=0?document.body.removeAttribute(Xl):document.body.setAttribute(Xl,e.toString())}},[])},Sre=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;wre();var o=_.useMemo(function(){return yre(i)},[i]);return _.createElement(bre,{styles:xre(o,!t,i,n?"":"!important")})},K2=!1;if(typeof window<"u")try{var Gp=Object.defineProperty({},"passive",{get:function(){return K2=!0,!0}});window.addEventListener("test",Gp,Gp),window.removeEventListener("test",Gp,Gp)}catch{K2=!1}var ul=K2?{passive:!1}:!1,_re=function(e){return e.tagName==="TEXTAREA"},W8=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!_re(e)&&n[t]==="visible")},Cre=function(e){return W8(e,"overflowY")},kre=function(e){return W8(e,"overflowX")},Zk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=U8(e,r);if(i){var o=H8(e,r),s=o[1],u=o[2];if(s>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Tre=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ere=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},U8=function(e,t){return e==="v"?Cre(t):kre(t)},H8=function(e,t){return e==="v"?Tre(t):Ere(t)},Pre=function(e,t){return e==="h"&&t==="rtl"?-1:1},Are=function(e,t,n,r,i){var o=Pre(e,window.getComputedStyle(t).direction),s=o*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var g=H8(e,u),x=g[0],b=g[1],T=g[2],S=b-T-o*x;(x||S)&&U8(e,u)&&(h+=S,m+=x),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(i&&Math.abs(h)<1||!i&&s>h)||!p&&(i&&Math.abs(m)<1||!i&&-s>m))&&(f=!0),f},Kp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jk=function(e){return[e.deltaX,e.deltaY]},e4=function(e){return e&&"current"in e?e.current:e},Rre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ore=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},Ire=0,ul=[];function Mre(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Ire++)[0],o=_.useState(V8)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=_J([e.lockRef.current],(e.shards||[]).map(e4),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.useCallback(function(b,T){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var S=Kp(b),y=n.current,C="deltaX"in b?b.deltaX:y[0]-S[0],P="deltaY"in b?b.deltaY:y[1]-S[1],O,$=b.target,I=Math.abs(C)>Math.abs(P)?"h":"v";if("touches"in b&&I==="h"&&$.type==="range")return!1;var F=Zk(I,$);if(!F)return!0;if(F?O=I:(O=I==="v"?"h":"v",F=Zk(I,$)),!F)return!1;if(!r.current&&"changedTouches"in b&&(C||P)&&(r.current=O),!O)return!0;var V=r.current||O;return Are(V,T,b,V==="h"?C:P,!0)},[]),c=_.useCallback(function(b){var T=b;if(!(!ul.length||ul[ul.length-1]!==o)){var S="deltaY"in T?Jk(T):Kp(T),y=t.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&Rre(O.delta,S)})[0];if(y&&y.should){T.cancelable&&T.preventDefault();return}if(!y){var C=(s.current.shards||[]).map(e4).filter(Boolean).filter(function(O){return O.contains(T.target)}),P=C.length>0?u(T,C[0]):!s.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),f=_.useCallback(function(b,T,S,y){var C={name:b,delta:T,target:S,should:y,shadowParent:$re(S)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(P){return P!==C})},1)},[]),p=_.useCallback(function(b){n.current=Kp(b),r.current=void 0},[]),h=_.useCallback(function(b){f(b.type,Jk(b),b.target,u(b,e.lockRef.current))},[]),m=_.useCallback(function(b){f(b.type,Kp(b),b.target,u(b,e.lockRef.current))},[]);_.useEffect(function(){return ul.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,ll),document.addEventListener("touchmove",c,ll),document.addEventListener("touchstart",p,ll),function(){ul=ul.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,ll),document.removeEventListener("touchmove",c,ll),document.removeEventListener("touchstart",p,ll)}},[]);var g=e.removeScrollBar,w=e.inert;return _.createElement(_.Fragment,null,w?_.createElement(o,{styles:Ore(i)}):null,g?_.createElement(Sre,{gapMode:e.gapMode}):null)}function $re(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fre=CJ(B8,Mre);var G8=_.forwardRef(function(e,t){return _.createElement(Vm,Fi({},e,{ref:t,sideCar:Fre}))});G8.classNames=Vm.classNames;const Dre=G8;function Lre(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p,isOpen:h}=pu(),[m,g]=iA();_.useEffect(()=>{!m&&g&&setTimeout(g)},[m,g]);const w=z8(r,h);return x.jsx(y8,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:x.jsx(Dre,{removeScrollBar:!f,allowPinchZoom:s,enabled:w===1&&o,forwardProps:!0,children:e.children})})}var Tw=ye((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...s}=e,{getDialogProps:u,getDialogContainerProps:c}=pu(),f=u(s,t),p=c(i),h=Me("chakra-modal__content",n),m=Bm(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},w={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:b}=pu();return x.jsx(Lre,{children:x.jsx(oe.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:w,children:x.jsx(j8,{preset:b,motionProps:o,className:h,...f,__css:g,children:r})})})});Tw.displayName="ModalContent";var Ew=ye((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=pu();_.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=Me("chakra-modal__header",n),c={flex:0,...Bm().header};return x.jsx(oe.header,{ref:t,className:s,id:i,...r,__css:c})});Ew.displayName="ModalHeader";var jre=oe(Ma.div),Pw=ye((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,s=Me("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Bm().overlay},{motionPreset:f}=pu(),h=i||(f==="none"?{}:kA);return x.jsx(jre,{...h,__css:c,ref:t,className:s,...o})});Pw.displayName="ModalOverlay";var Aw=ye((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=pu();_.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=Me("chakra-modal__body",n),u=Bm();return x.jsx(oe.div,{ref:t,className:s,id:i,...r,__css:u.body})});Aw.displayName="ModalBody";var zre=e=>x.jsx($a,{viewBox:"0 0 24 24",...e,children:x.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Nre=e=>x.jsx($a,{viewBox:"0 0 24 24",...e,children:x.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function t4(e,t,n,r){_.useEffect(()=>{var i;if(!e.current||!r)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,s=Array.isArray(t)?t:[t],u=new o.MutationObserver(c=>{for(const f of c)f.type==="attributes"&&f.attributeName&&s.includes(f.attributeName)&&n(f)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}function Bre(e,t){const n=Xt(e);_.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var Vre=50,n4=300;function Wre(e,t){const[n,r]=_.useState(!1),[i,o]=_.useState(null),[s,u]=_.useState(!0),c=_.useRef(null),f=()=>clearTimeout(c.current);Bre(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?Vre:null);const p=_.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),o("increment")},n4)},[e,s]),h=_.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),o("decrement")},n4)},[t,s]),m=_.useCallback(()=>{u(!0),r(!1),f()},[]);return _.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var Ure=/^[Ee0-9+\-.]$/;function Hre(e){return Ure.test(e)}function Gre(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function Kre(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:g,id:w,onChange:b,precision:T,name:S,"aria-describedby":y,"aria-label":C,"aria-labelledby":P,onFocus:O,onBlur:$,onInvalid:I,getAriaValueText:F,isValidCharacter:V,format:B,parse:X,...pe}=e,he=Xt(O),ge=Xt($),Ae=Xt(I),se=Xt(V??Hre),G=Xt(F),W=vJ(e),{update:J,increment:te,decrement:ne}=W,[be,ae]=_.useState(!1),ce=!(u||c),le=_.useRef(null),Te=_.useRef(null),et=_.useRef(null),Ue=_.useRef(null),ct=_.useCallback(ee=>ee.split("").filter(se).join(""),[se]),_t=_.useCallback(ee=>{var je;return(je=X==null?void 0:X(ee))!=null?je:ee},[X]),Xe=_.useCallback(ee=>{var je;return((je=B==null?void 0:B(ee))!=null?je:ee).toString()},[B]);_a(()=>{(W.valueAsNumber>o||W.valueAsNumber{if(!le.current)return;if(le.current.value!=W.value){const je=_t(le.current.value);W.setValue(ct(je))}},[_t,ct]);const Re=_.useCallback((ee=s)=>{ce&&te(ee)},[te,ce,s]),bt=_.useCallback((ee=s)=>{ce&&ne(ee)},[ne,ce,s]),Oe=Wre(Re,bt);t4(et,"disabled",Oe.stop,Oe.isSpinning),t4(Ue,"disabled",Oe.stop,Oe.isSpinning);const me=_.useCallback(ee=>{if(ee.nativeEvent.isComposing)return;const ft=_t(ee.currentTarget.value);J(ct(ft)),Te.current={start:ee.currentTarget.selectionStart,end:ee.currentTarget.selectionEnd}},[J,ct,_t]),Qe=_.useCallback(ee=>{var je,ft,Ht;he==null||he(ee),Te.current&&(ee.target.selectionStart=(ft=Te.current.start)!=null?ft:(je=ee.currentTarget.value)==null?void 0:je.length,ee.currentTarget.selectionEnd=(Ht=Te.current.end)!=null?Ht:ee.currentTarget.selectionStart)},[he]),Ve=_.useCallback(ee=>{if(ee.nativeEvent.isComposing)return;Gre(ee,se)||ee.preventDefault();const je=Pt(ee)*s,ft=ee.key,re={ArrowUp:()=>Re(je),ArrowDown:()=>bt(je),Home:()=>J(i),End:()=>J(o)}[ft];re&&(ee.preventDefault(),re(ee))},[se,s,Re,bt,J,i,o]),Pt=ee=>{let je=1;return(ee.metaKey||ee.ctrlKey)&&(je=.1),ee.shiftKey&&(je=10),je},rn=_.useMemo(()=>{const ee=G==null?void 0:G(W.value);if(ee!=null)return ee;const je=W.value.toString();return je||void 0},[W.value,G]),xt=_.useCallback(()=>{let ee=W.value;if(W.value==="")return;/^[eE]/.test(W.value.toString())?W.setValue(""):(W.valueAsNumbero&&(ee=o),W.cast(ee))},[W,o,i]),Ct=_.useCallback(()=>{ae(!1),n&&xt()},[n,ae,xt]),Ut=_.useCallback(()=>{t&&requestAnimationFrame(()=>{var ee;(ee=le.current)==null||ee.focus()})},[t]),$t=_.useCallback(ee=>{ee.preventDefault(),Oe.up(),Ut()},[Ut,Oe]),qn=_.useCallback(ee=>{ee.preventDefault(),Oe.down(),Ut()},[Ut,Oe]);qc(()=>le.current,"wheel",ee=>{var je,ft;const re=((ft=(je=le.current)==null?void 0:je.ownerDocument)!=null?ft:document).activeElement===le.current;if(!g||!re)return;ee.preventDefault();const xe=Pt(ee)*s,Xn=Math.sign(ee.deltaY);Xn===-1?Re(xe):Xn===1&&bt(xe)},{passive:!1});const Dn=_.useCallback((ee={},je=null)=>{const ft=c||r&&W.isAtMax;return{...ee,ref:Wt(je,et),role:"button",tabIndex:-1,onPointerDown:We(ee.onPointerDown,Ht=>{Ht.button!==0||ft||$t(Ht)}),onPointerLeave:We(ee.onPointerLeave,Oe.stop),onPointerUp:We(ee.onPointerUp,Oe.stop),disabled:ft,"aria-disabled":Bl(ft)}},[W.isAtMax,r,$t,Oe.stop,c]),_i=_.useCallback((ee={},je=null)=>{const ft=c||r&&W.isAtMin;return{...ee,ref:Wt(je,Ue),role:"button",tabIndex:-1,onPointerDown:We(ee.onPointerDown,Ht=>{Ht.button!==0||ft||qn(Ht)}),onPointerLeave:We(ee.onPointerLeave,Oe.stop),onPointerUp:We(ee.onPointerUp,Oe.stop),disabled:ft,"aria-disabled":Bl(ft)}},[W.isAtMin,r,qn,Oe.stop,c]),Yn=_.useCallback((ee={},je=null)=>{var ft,Ht,re,xe;return{name:S,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":C,"aria-describedby":y,id:w,disabled:c,...ee,readOnly:(ft=ee.readOnly)!=null?ft:u,"aria-readonly":(Ht=ee.readOnly)!=null?Ht:u,"aria-required":(re=ee.required)!=null?re:f,required:(xe=ee.required)!=null?xe:f,ref:Wt(le,je),value:Xe(W.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":Bl(p??W.isOutOfRange),"aria-valuetext":rn,autoComplete:"off",autoCorrect:"off",onChange:We(ee.onChange,me),onKeyDown:We(ee.onKeyDown,Ve),onFocus:We(ee.onFocus,Qe,()=>ae(!0)),onBlur:We(ee.onBlur,ge,Ct)}},[S,m,h,P,C,Xe,y,w,c,f,u,p,W.value,W.valueAsNumber,W.isOutOfRange,i,o,rn,me,Ve,Qe,ge,Ct]);return{value:Xe(W.value),valueAsNumber:W.valueAsNumber,isFocused:be,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Dn,getDecrementButtonProps:_i,getInputProps:Yn,htmlProps:pe}}var[qre,Wm]=Jt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Yre,Rw]=Jt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),K8=ye(function(t,n){const r=Ui("NumberInput",t),i=gn(t),o=ew(i),{htmlProps:s,...u}=Kre(o),c=_.useMemo(()=>u,[u]);return x.jsx(Yre,{value:c,children:x.jsx(qre,{value:r,children:x.jsx(oe.div,{...s,ref:n,className:Me("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});K8.displayName="NumberInput";var q8=ye(function(t,n){const r=Wm();return x.jsx(oe.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});q8.displayName="NumberInputStepper";var Y8=ye(function(t,n){const{getInputProps:r}=Rw(),i=r(t,n),o=Wm();return x.jsx(oe.input,{...i,className:Me("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});Y8.displayName="NumberInputField";var X8=oe("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Q8=ye(function(t,n){var r;const i=Wm(),{getDecrementButtonProps:o}=Rw(),s=o(t,n);return x.jsx(X8,{...s,__css:i.stepper,children:(r=t.children)!=null?r:x.jsx(zre,{})})});Q8.displayName="NumberDecrementStepper";var Z8=ye(function(t,n){var r;const{getIncrementButtonProps:i}=Rw(),o=i(t,n),s=Wm();return x.jsx(X8,{...o,__css:s.stepper,children:(r=t.children)!=null?r:x.jsx(Nre,{})})});Z8.displayName="NumberIncrementStepper";var cl=e=>e?"":void 0,Jy=e=>e?!0:void 0,ed=(...e)=>e.filter(Boolean).join(" ");function e1(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function qp(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var Oh={width:0,height:0},Yp=e=>e||Oh;function Xre(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o=b=>{var T;const S=(T=r[b])!=null?T:Oh;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...qp({orientation:t,vertical:{bottom:`calc(${n[b]}% - ${S.height/2}px)`},horizontal:{left:`calc(${n[b]}% - ${S.width/2}px)`}})}},s=t==="vertical"?r.reduce((b,T)=>Yp(b).height>Yp(T).height?b:T,Oh):r.reduce((b,T)=>Yp(b).width>Yp(T).width?b:T,Oh),u={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...qp({orientation:t,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},c={position:"absolute",...qp({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},f=n.length===1,p=[0,i?100-n[0]:n[0]],h=f?p:n;let m=h[0];!f&&i&&(m=100-m);const g=Math.abs(h[h.length-1]-h[0]),w={...c,...qp({orientation:t,vertical:i?{height:`${g}%`,top:`${m}%`}:{height:`${g}%`,bottom:`${m}%`},horizontal:i?{width:`${g}%`,right:`${m}%`}:{width:`${g}%`,left:`${m}%`}})};return{trackStyle:c,innerTrackStyle:w,rootStyle:u,getThumbStyle:o}}function Qre(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function Zre(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Jre(e){const t=tie(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function J8(e){return!!e.touches}function eie(e){return J8(e)&&e.touches.length>1}function tie(e){var t;return(t=e.view)!=null?t:window}function nie(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function rie(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function e9(e,t="page"){return J8(e)?nie(e,t):rie(e,t)}function iie(e){return t=>{const n=Jre(t);(!n||n&&t.button===0)&&e(t)}}function oie(e,t=!1){function n(i){e(i,{point:e9(i)})}return t?iie(n):n}function Ih(e,t,n,r){return Zre(e,t,oie(n,t==="pointerdown"),r)}var aie=Object.defineProperty,sie=(e,t,n)=>t in e?aie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pi=(e,t,n)=>(sie(e,typeof t!="symbol"?t+"":t,n),n),lie=class{constructor(e,t,n){pi(this,"history",[]),pi(this,"startEvent",null),pi(this,"lastEvent",null),pi(this,"lastEventInfo",null),pi(this,"handlers",{}),pi(this,"removeListeners",()=>{}),pi(this,"threshold",3),pi(this,"win"),pi(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const u=t1(this.lastEventInfo,this.history),c=this.startEvent!==null,f=die(u.offset,{x:0,y:0})>=this.threshold;if(!c&&!f)return;const{timestamp:p}=uC();this.history.push({...u.point,timestamp:p});const{onStart:h,onMove:m}=this.handlers;c||(h==null||h(this.lastEvent,u),this.startEvent=this.lastEvent),m==null||m(this.lastEvent,u)}),pi(this,"onPointerMove",(u,c)=>{this.lastEvent=u,this.lastEventInfo=c,aK.update(this.updatePoint,!0)}),pi(this,"onPointerUp",(u,c)=>{const f=t1(c,this.history),{onEnd:p,onSessionEnd:h}=this.handlers;h==null||h(u,f),this.end(),!(!p||!this.startEvent)&&(p==null||p(u,f))});var r;if(this.win=(r=e.view)!=null?r:window,eie(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:e9(e)},{timestamp:o}=uC();this.history=[{...i.point,timestamp:o}];const{onSessionStart:s}=t;s==null||s(e,t1(i,this.history)),this.removeListeners=fie(Ih(this.win,"pointermove",this.onPointerMove),Ih(this.win,"pointerup",this.onPointerUp),Ih(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),sK.update(this.updatePoint)}};function r4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t1(e,t){return{point:e.point,delta:r4(e.point,t[t.length-1]),offset:r4(e.point,t[0]),velocity:cie(t,.1)}}var uie=e=>e*1e3;function cie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>uie(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fie(...e){return t=>e.reduce((n,r)=>r(n),t)}function n1(e,t){return Math.abs(e-t)}function i4(e){return"x"in e&&"y"in e}function die(e,t){if(typeof e=="number"&&typeof t=="number")return n1(e,t);if(i4(e)&&i4(t)){const n=n1(e.x,t.x),r=n1(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function t9(e){const t=_.useRef(null);return t.current=e,t}function pie(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:s,threshold:u}=t,c=!!(n||r||i||o||s),f=_.useRef(null),p=t9({onSessionStart:o,onSessionEnd:s,onStart:r,onMove:n,onEnd(h,m){f.current=null,i==null||i(h,m)}});_.useEffect(()=>{var h;(h=f.current)==null||h.updateHandlers(p.current)}),_.useEffect(()=>{const h=e.current;if(!h||!c)return;function m(g){f.current=new lie(g,p.current,u)}return Ih(h,"pointerdown",m)},[e,c,p,u]),_.useEffect(()=>()=>{var h;(h=f.current)==null||h.end(),f.current=null},[])}function hie(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=e.ownerDocument.defaultView??window,r=new n.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,u;if("borderBoxSize"in o){const c=o.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,u=f.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var mie=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect;function vie(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function gie({getNodes:e,observeMutation:t=!0}){const[n,r]=_.useState([]),[i,o]=_.useState(0);return mie(()=>{const s=e(),u=s.map((c,f)=>hie(c,p=>{r(h=>[...h.slice(0,f),p,...h.slice(f+1)])}));if(t){const c=s[0];u.push(vie(c,()=>{o(f=>f+1)}))}return()=>{u.forEach(c=>{c==null||c()})}},[i]),n}function yie(e){return typeof e=="object"&&e!==null&&"current"in e}function bie(e){const[t]=gie({observeMutation:!1,getNodes(){return[yie(e)?e.current:e]}});return t}function xie(e){var t;const{min:n=0,max:r=100,onChange:i,value:o,defaultValue:s,isReversed:u,direction:c="ltr",orientation:f="horizontal",id:p,isDisabled:h,isReadOnly:m,onChangeStart:g,onChangeEnd:w,step:b=1,getAriaValueText:T,"aria-valuetext":S,"aria-label":y,"aria-labelledby":C,name:P,focusThumbOnChange:O=!0,...$}=e,I=Xt(g),F=Xt(w),V=Xt(T),B=Qre({isReversed:u,direction:c,orientation:f}),[X,pe]=Qx({value:o,defaultValue:s??Sie(n,r),onChange:i}),[he,ge]=_.useState(!1),[Ae,se]=_.useState(!1),G=!(h||m),W=(r-n)/10,J=b||(r-n)/100,te=Eh(X,n,r),ne=r-te+n,ae=Pk(B?ne:te,n,r),ce=f==="vertical",le=t9({min:n,max:r,step:b,isDisabled:h,value:te,isInteractive:G,isReversed:B,isVertical:ce,eventSource:null,focusThumbOnChange:O,orientation:f}),Te=_.useRef(null),et=_.useRef(null),Ue=_.useRef(null),ct=_.useId(),_t=p??ct,[Xe,Re]=[`slider-thumb-${_t}`,`slider-track-${_t}`],bt=_.useCallback(re=>{var xe,Xn;if(!Te.current)return;const on=le.current;on.eventSource="pointer";const Gt=Te.current.getBoundingClientRect(),{clientX:Lr,clientY:_u}=(Xn=(xe=re.touches)==null?void 0:xe[0])!=null?Xn:re,$s=ce?Gt.bottom-_u:Lr-Gt.left,Cu=ce?Gt.height:Gt.width;let Gi=$s/Cu;B&&(Gi=1-Gi);let Qn=mJ(Gi,on.min,on.max);return on.step&&(Qn=parseFloat(Ak(Qn,on.min,on.step))),Qn=Eh(Qn,on.min,on.max),Qn},[ce,B,le]),Oe=_.useCallback(re=>{const xe=le.current;xe.isInteractive&&(re=parseFloat(Ak(re,xe.min,J)),re=Eh(re,xe.min,xe.max),pe(re))},[J,pe,le]),me=_.useMemo(()=>({stepUp(re=J){const xe=B?te-re:te+re;Oe(xe)},stepDown(re=J){const xe=B?te+re:te-re;Oe(xe)},reset(){Oe(s||0)},stepTo(re){Oe(re)}}),[Oe,B,te,J,s]),Qe=_.useCallback(re=>{const xe=le.current,on={ArrowRight:()=>me.stepUp(),ArrowUp:()=>me.stepUp(),ArrowLeft:()=>me.stepDown(),ArrowDown:()=>me.stepDown(),PageUp:()=>me.stepUp(W),PageDown:()=>me.stepDown(W),Home:()=>Oe(xe.min),End:()=>Oe(xe.max)}[re.key];on&&(re.preventDefault(),re.stopPropagation(),on(re),xe.eventSource="keyboard")},[me,Oe,W,le]),Ve=(t=V==null?void 0:V(te))!=null?t:S,Pt=bie(et),{getThumbStyle:rn,rootStyle:xt,trackStyle:Ct,innerTrackStyle:Ut}=_.useMemo(()=>{const re=le.current,xe=Pt??{width:0,height:0};return Xre({isReversed:B,orientation:re.orientation,thumbRects:[xe],thumbPercents:[ae]})},[B,Pt,ae,le]),$t=_.useCallback(()=>{le.current.focusThumbOnChange&&setTimeout(()=>{var xe;return(xe=et.current)==null?void 0:xe.focus()})},[le]);_a(()=>{const re=le.current;$t(),re.eventSource==="keyboard"&&(F==null||F(re.value))},[te,F]);function qn(re){const xe=bt(re);xe!=null&&xe!==le.current.value&&pe(xe)}pie(Ue,{onPanSessionStart(re){const xe=le.current;xe.isInteractive&&(ge(!0),$t(),qn(re),I==null||I(xe.value))},onPanSessionEnd(){const re=le.current;re.isInteractive&&(ge(!1),F==null||F(re.value))},onPan(re){le.current.isInteractive&&qn(re)}});const Dn=_.useCallback((re={},xe=null)=>({...re,...$,ref:Wt(xe,Ue),tabIndex:-1,"aria-disabled":Jy(h),"data-focused":cl(Ae),style:{...re.style,...xt}}),[$,h,Ae,xt]),_i=_.useCallback((re={},xe=null)=>({...re,ref:Wt(xe,Te),id:Re,"data-disabled":cl(h),style:{...re.style,...Ct}}),[h,Re,Ct]),Yn=_.useCallback((re={},xe=null)=>({...re,ref:xe,style:{...re.style,...Ut}}),[Ut]),ee=_.useCallback((re={},xe=null)=>({...re,ref:Wt(xe,et),role:"slider",tabIndex:G?0:void 0,id:Xe,"data-active":cl(he),"aria-valuetext":Ve,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":te,"aria-orientation":f,"aria-disabled":Jy(h),"aria-readonly":Jy(m),"aria-label":y,"aria-labelledby":y?void 0:C,style:{...re.style,...rn(0)},onKeyDown:e1(re.onKeyDown,Qe),onFocus:e1(re.onFocus,()=>se(!0)),onBlur:e1(re.onBlur,()=>se(!1))}),[G,Xe,he,Ve,n,r,te,f,h,m,y,C,rn,Qe]),je=_.useCallback((re,xe=null)=>{const Xn=!(re.valuer),on=te>=re.value,Gt=Pk(re.value,n,r),Lr={position:"absolute",pointerEvents:"none",...wie({orientation:f,vertical:{bottom:B?`${100-Gt}%`:`${Gt}%`},horizontal:{left:B?`${100-Gt}%`:`${Gt}%`}})};return{...re,ref:xe,role:"presentation","aria-hidden":!0,"data-disabled":cl(h),"data-invalid":cl(!Xn),"data-highlighted":cl(on),style:{...re.style,...Lr}}},[h,B,r,n,f,te]),ft=_.useCallback((re={},xe=null)=>({...re,ref:xe,type:"hidden",value:te,name:P}),[P,te]);return{state:{value:te,isFocused:Ae,isDragging:he},actions:me,getRootProps:Dn,getTrackProps:_i,getInnerTrackProps:Yn,getThumbProps:ee,getMarkerProps:je,getInputProps:ft}}function wie(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function Sie(e,t){return t"}),[Cie,Hm]=Jt({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),q2=ye((e,t)=>{var n;const r={...e,orientation:(n=e==null?void 0:e.orientation)!=null?n:"horizontal"},i=Ui("Slider",r),o=gn(r),{direction:s}=bm();o.direction=s;const{getInputProps:u,getRootProps:c,...f}=xie(o),p=c(),h=u({},t);return x.jsx(_ie,{value:f,children:x.jsx(Cie,{value:i,children:x.jsxs(oe.div,{...p,className:ed("chakra-slider",r.className),__css:i.container,children:[r.children,x.jsx("input",{...h})]})})})});q2.displayName="Slider";var Y2=ye((e,t)=>{const{getThumbProps:n}=Um(),r=Hm(),i=n(e,t);return x.jsx(oe.div,{...i,className:ed("chakra-slider__thumb",e.className),__css:r.thumb})});Y2.displayName="SliderThumb";var X2=ye((e,t)=>{const{getTrackProps:n}=Um(),r=Hm(),i=n(e,t);return x.jsx(oe.div,{...i,className:ed("chakra-slider__track",e.className),__css:r.track})});X2.displayName="SliderTrack";var Q2=ye((e,t)=>{const{getInnerTrackProps:n}=Um(),r=Hm(),i=n(e,t);return x.jsx(oe.div,{...i,className:ed("chakra-slider__filled-track",e.className),__css:r.filledTrack})});Q2.displayName="SliderFilledTrack";var kie=ye((e,t)=>{const{getMarkerProps:n}=Um(),r=Hm(),i=n(e,t);return x.jsx(oe.div,{...i,className:ed("chakra-slider__marker",e.className),__css:r.mark})});kie.displayName="SliderMark";var[Tie,Eie,Pie,Aie]=CA();function Rie(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:s,lazyBehavior:u="unmount",orientation:c="horizontal",direction:f="ltr",...p}=e,[h,m]=_.useState(n??0),[g,w]=Qx({defaultValue:n??0,value:i,onChange:r});_.useEffect(()=>{i!=null&&m(i)},[i]);const b=Pie(),T=_.useId();return{id:`tabs-${(t=e.id)!=null?t:T}`,selectedIndex:g,focusedIndex:h,setSelectedIndex:w,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:u,orientation:c,descendants:b,direction:f,htmlProps:p}}var[Oie,Gm]=Jt({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Iie(e){const{focusedIndex:t,orientation:n,direction:r}=Gm(),i=Eie(),o=_.useCallback(s=>{const u=()=>{var y;const C=i.nextEnabled(t);C&&((y=C.node)==null||y.focus())},c=()=>{var y;const C=i.prevEnabled(t);C&&((y=C.node)==null||y.focus())},f=()=>{var y;const C=i.firstEnabled();C&&((y=C.node)==null||y.focus())},p=()=>{var y;const C=i.lastEnabled();C&&((y=C.node)==null||y.focus())},h=n==="horizontal",m=n==="vertical",g=s.key,w=r==="ltr"?"ArrowLeft":"ArrowRight",b=r==="ltr"?"ArrowRight":"ArrowLeft",S={[w]:()=>h&&c(),[b]:()=>h&&u(),ArrowDown:()=>m&&u(),ArrowUp:()=>m&&c(),Home:f,End:p}[g];S&&(s.preventDefault(),S(s))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:We(e.onKeyDown,o)}}function Mie(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:o,id:s,setFocusedIndex:u,selectedIndex:c}=Gm(),{index:f,register:p}=Aie({disabled:t&&!n}),h=f===c,m=()=>{i(f)},g=()=>{u(f),!o&&!(t&&n)&&i(f)};return{...w8({...r,ref:Wt(p,e.ref),isDisabled:t,isFocusable:n,onClick:We(e.onClick,m)}),id:n9(s,f),role:"tab",tabIndex:h?0:-1,type:"button","aria-selected":h,"aria-controls":r9(s,f),onFocus:t?void 0:We(e.onFocus,g)}}var[$ie,Fie]=Jt({});function Die(e){const t=Gm(),{id:n,selectedIndex:r}=t,o=Zx(e.children).map((s,u)=>_.createElement($ie,{key:u,value:{isSelected:u===r,id:r9(n,u),tabId:n9(n,u),selectedIndex:r}},s));return{...e,children:o}}function Lie(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=Gm(),{isSelected:o,id:s,tabId:u}=Fie(),c=_.useRef(!1);o&&(c.current=!0);const f=$8({wasSelected:c.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:f?t:null,role:"tabpanel","aria-labelledby":u,hidden:!o,id:s}}function n9(e,t){return`${e}--tab-${t}`}function r9(e,t){return`${e}--tabpanel-${t}`}var[jie,Km]=Jt({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),i9=ye(function(t,n){const r=Ui("Tabs",t),{children:i,className:o,...s}=gn(t),{htmlProps:u,descendants:c,...f}=Rie(s),p=_.useMemo(()=>f,[f]),{isFitted:h,...m}=u,g={position:"relative",...r.root};return x.jsx(Tie,{value:c,children:x.jsx(Oie,{value:p,children:x.jsx(jie,{value:r,children:x.jsx(oe.div,{className:Me("chakra-tabs",o),ref:n,...m,__css:g,children:i})})})})});i9.displayName="Tabs";var o9=ye(function(t,n){const r=Iie({...t,ref:n}),o={display:"flex",...Km().tablist};return x.jsx(oe.div,{...r,className:Me("chakra-tabs__tablist",t.className),__css:o})});o9.displayName="TabList";var a9=ye(function(t,n){const r=Lie({...t,ref:n}),i=Km();return x.jsx(oe.div,{outline:"0",...r,className:Me("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});a9.displayName="TabPanel";var s9=ye(function(t,n){const r=Die(t),i=Km();return x.jsx(oe.div,{...r,width:"100%",ref:n,className:Me("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});s9.displayName="TabPanels";var l9=ye(function(t,n){const r=Km(),i=Mie({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return x.jsx(oe.button,{...i,className:Me("chakra-tabs__tab",t.className),__css:o})});l9.displayName="Tab";var zie={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Z2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Mh=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Nie(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:s=i,closeOnEsc:u=!0,onOpen:c,onClose:f,placement:p,id:h,isOpen:m,defaultIsOpen:g,arrowSize:w=10,arrowShadowColor:b,arrowPadding:T,modifiers:S,isDisabled:y,gutter:C,offset:P,direction:O,...$}=e,{isOpen:I,onOpen:F,onClose:V}=I8({isOpen:m,defaultIsOpen:g,onOpen:c,onClose:f}),{referenceRef:B,getPopperProps:X,getArrowInnerProps:pe,getArrowProps:he}=O8({enabled:I,placement:p,arrowPadding:T,modifiers:S,gutter:C,offset:P,direction:O}),ge=_.useId(),se=`tooltip-${h??ge}`,G=_.useRef(null),W=_.useRef(),J=_.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),te=_.useRef(),ne=_.useCallback(()=>{te.current&&(clearTimeout(te.current),te.current=void 0)},[]),be=_.useCallback(()=>{ne(),V()},[V,ne]),ae=Bie(G,be),ce=_.useCallback(()=>{if(!y&&!W.current){I&&ae();const Re=Mh(G);W.current=Re.setTimeout(F,t)}},[ae,y,I,F,t]),le=_.useCallback(()=>{J();const Re=Mh(G);te.current=Re.setTimeout(be,n)},[n,be,J]),Te=_.useCallback(()=>{I&&r&&le()},[r,le,I]),et=_.useCallback(()=>{I&&s&&le()},[s,le,I]),Ue=_.useCallback(Re=>{I&&Re.key==="Escape"&&le()},[I,le]);qc(()=>Z2(G),"keydown",u?Ue:void 0),qc(()=>{if(!o)return null;const Re=G.current;if(!Re)return null;const bt=h8(Re);return bt.localName==="body"?Mh(G):bt},"scroll",()=>{I&&o&&be()},{passive:!0,capture:!0}),_.useEffect(()=>{y&&(J(),I&&V())},[y,I,V,J]),_.useEffect(()=>()=>{J(),ne()},[J,ne]),qc(()=>G.current,"pointerleave",le);const ct=_.useCallback((Re={},bt=null)=>({...Re,ref:Wt(G,bt,B),onPointerEnter:We(Re.onPointerEnter,me=>{me.pointerType!=="touch"&&ce()}),onClick:We(Re.onClick,Te),onPointerDown:We(Re.onPointerDown,et),onFocus:We(Re.onFocus,ce),onBlur:We(Re.onBlur,le),"aria-describedby":I?se:void 0}),[ce,le,et,I,se,Te,B]),_t=_.useCallback((Re={},bt=null)=>X({...Re,style:{...Re.style,[Cn.arrowSize.var]:w?`${w}px`:void 0,[Cn.arrowShadowColor.var]:b}},bt),[X,w,b]),Xe=_.useCallback((Re={},bt=null)=>{const Oe={...Re.style,position:"relative",transformOrigin:Cn.transformOrigin.varRef};return{ref:bt,...$,...Re,id:se,role:"tooltip",style:Oe}},[$,se]);return{isOpen:I,show:ce,hide:le,getTriggerProps:ct,getTooltipProps:Xe,getTooltipPositionerProps:_t,getArrowProps:he,getArrowInnerProps:pe}}var r1="chakra-ui:close-tooltip";function Bie(e,t){return _.useEffect(()=>{const n=Z2(e);return n.addEventListener(r1,t),()=>n.removeEventListener(r1,t)},[t,e]),()=>{const n=Z2(e),r=Mh(e);n.dispatchEvent(new r.CustomEvent(r1))}}function Vie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Wie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Uie=oe(Ma.div),ga=ye((e,t)=>{var n,r;const i=Wi("Tooltip",e),o=gn(e),s=bm(),{children:u,label:c,shouldWrapChildren:f,"aria-label":p,hasArrow:h,bg:m,portalProps:g,background:w,backgroundColor:b,bgColor:T,motionProps:S,...y}=o,C=(r=(n=w??b)!=null?n:m)!=null?r:T;if(C){i.bg=C;const X=EN(s,"colors",C);i[Cn.arrowBg.var]=X}const P=Nie({...y,direction:s.direction}),O=typeof u=="string"||f;let $;if(O)$=x.jsx(oe.span,{display:"inline-block",tabIndex:0,...P.getTriggerProps(),children:u});else{const X=_.Children.only(u);$=_.cloneElement(X,P.getTriggerProps(X.props,X.ref))}const I=!!p,F=P.getTooltipProps({},t),V=I?Vie(F,["role","id"]):F,B=Wie(F,["role","id"]);return c?x.jsxs(x.Fragment,{children:[$,x.jsx(wu,{children:P.isOpen&&x.jsx(xu,{...g,children:x.jsx(oe.div,{...P.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:x.jsxs(Uie,{variants:zie,initial:"exit",animate:"enter",exit:"exit",...S,...V,__css:i,children:[c,I&&x.jsx(oe.span,{srOnly:!0,...B,children:p}),h&&x.jsx(oe.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:x.jsx(oe.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):x.jsx(x.Fragment,{children:u})});ga.displayName="Tooltip";var J2={},o4=vx;J2.createRoot=o4.createRoot,J2.hydrateRoot=o4.hydrateRoot;var u9={exports:{}},c9={};/** +`)},Ire=0,cl=[];function Mre(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(Ire++)[0],o=_.useState(V8)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=_J([e.lockRef.current],(e.shards||[]).map(e4),!0).filter(Boolean);return b.forEach(function(T){return T.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.useCallback(function(b,T){if("touches"in b&&b.touches.length===2)return!s.current.allowPinchZoom;var S=Kp(b),y=n.current,C="deltaX"in b?b.deltaX:y[0]-S[0],P="deltaY"in b?b.deltaY:y[1]-S[1],O,$=b.target,I=Math.abs(C)>Math.abs(P)?"h":"v";if("touches"in b&&I==="h"&&$.type==="range")return!1;var F=Zk(I,$);if(!F)return!0;if(F?O=I:(O=I==="v"?"h":"v",F=Zk(I,$)),!F)return!1;if(!r.current&&"changedTouches"in b&&(C||P)&&(r.current=O),!O)return!0;var V=r.current||O;return Are(V,T,b,V==="h"?C:P,!0)},[]),c=_.useCallback(function(b){var T=b;if(!(!cl.length||cl[cl.length-1]!==o)){var S="deltaY"in T?Jk(T):Kp(T),y=t.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&Rre(O.delta,S)})[0];if(y&&y.should){T.cancelable&&T.preventDefault();return}if(!y){var C=(s.current.shards||[]).map(e4).filter(Boolean).filter(function(O){return O.contains(T.target)}),P=C.length>0?u(T,C[0]):!s.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),f=_.useCallback(function(b,T,S,y){var C={name:b,delta:T,target:S,should:y,shadowParent:$re(S)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(P){return P!==C})},1)},[]),p=_.useCallback(function(b){n.current=Kp(b),r.current=void 0},[]),h=_.useCallback(function(b){f(b.type,Jk(b),b.target,u(b,e.lockRef.current))},[]),m=_.useCallback(function(b){f(b.type,Kp(b),b.target,u(b,e.lockRef.current))},[]);_.useEffect(function(){return cl.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,ul),document.addEventListener("touchmove",c,ul),document.addEventListener("touchstart",p,ul),function(){cl=cl.filter(function(b){return b!==o}),document.removeEventListener("wheel",c,ul),document.removeEventListener("touchmove",c,ul),document.removeEventListener("touchstart",p,ul)}},[]);var g=e.removeScrollBar,x=e.inert;return _.createElement(_.Fragment,null,x?_.createElement(o,{styles:Ore(i)}):null,g?_.createElement(Sre,{gapMode:e.gapMode}):null)}function $re(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Fre=CJ(B8,Mre);var G8=_.forwardRef(function(e,t){return _.createElement(Vm,Fi({},e,{ref:t,sideCar:Fre}))});G8.classNames=Vm.classNames;const Dre=G8;function Lre(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p,isOpen:h}=hu(),[m,g]=iA();_.useEffect(()=>{!m&&g&&setTimeout(g)},[m,g]);const x=z8(r,h);return w.jsx(y8,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:w.jsx(Dre,{removeScrollBar:!f,allowPinchZoom:s,enabled:x===1&&o,forwardProps:!0,children:e.children})})}var Tw=ye((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:o,...s}=e,{getDialogProps:u,getDialogContainerProps:c}=hu(),f=u(s,t),p=c(i),h=$e("chakra-modal__content",n),m=Bm(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...m.dialog},x={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...m.dialogContainer},{motionPreset:b}=hu();return w.jsx(Lre,{children:w.jsx(oe.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:x,children:w.jsx(j8,{preset:b,motionProps:o,className:h,...f,__css:g,children:r})})})});Tw.displayName="ModalContent";var Ew=ye((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:o}=hu();_.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=$e("chakra-modal__header",n),c={flex:0,...Bm().header};return w.jsx(oe.header,{ref:t,className:s,id:i,...r,__css:c})});Ew.displayName="ModalHeader";var jre=oe(Ma.div),Pw=ye((e,t)=>{const{className:n,transition:r,motionProps:i,...o}=e,s=$e("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Bm().overlay},{motionPreset:f}=hu(),h=i||(f==="none"?{}:kA);return w.jsx(jre,{...h,__css:c,ref:t,className:s,...o})});Pw.displayName="ModalOverlay";var Aw=ye((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:o}=hu();_.useEffect(()=>(o(!0),()=>o(!1)),[o]);const s=$e("chakra-modal__body",n),u=Bm();return w.jsx(oe.div,{ref:t,className:s,id:i,...r,__css:u.body})});Aw.displayName="ModalBody";var zre=e=>w.jsx($a,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),Nre=e=>w.jsx($a,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function t4(e,t,n,r){_.useEffect(()=>{var i;if(!e.current||!r)return;const o=(i=e.current.ownerDocument.defaultView)!=null?i:window,s=Array.isArray(t)?t:[t],u=new o.MutationObserver(c=>{for(const f of c)f.type==="attributes"&&f.attributeName&&s.includes(f.attributeName)&&n(f)});return u.observe(e.current,{attributes:!0,attributeFilter:s}),()=>u.disconnect()})}function Bre(e,t){const n=Xt(e);_.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var Vre=50,n4=300;function Wre(e,t){const[n,r]=_.useState(!1),[i,o]=_.useState(null),[s,u]=_.useState(!0),c=_.useRef(null),f=()=>clearTimeout(c.current);Bre(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?Vre:null);const p=_.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),o("increment")},n4)},[e,s]),h=_.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),o("decrement")},n4)},[t,s]),m=_.useCallback(()=>{u(!0),r(!1),f()},[]);return _.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var Ure=/^[Ee0-9+\-.]$/;function Hre(e){return Ure.test(e)}function Gre(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function Kre(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:o=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:g,id:x,onChange:b,precision:T,name:S,"aria-describedby":y,"aria-label":C,"aria-labelledby":P,onFocus:O,onBlur:$,onInvalid:I,getAriaValueText:F,isValidCharacter:V,format:B,parse:X,...pe}=e,he=Xt(O),ge=Xt($),Ae=Xt(I),se=Xt(V??Hre),G=Xt(F),W=vJ(e),{update:J,increment:te,decrement:ne}=W,[be,ae]=_.useState(!1),ce=!(u||c),le=_.useRef(null),Te=_.useRef(null),et=_.useRef(null),Ue=_.useRef(null),ft=_.useCallback(ee=>ee.split("").filter(se).join(""),[se]),_t=_.useCallback(ee=>{var je;return(je=X==null?void 0:X(ee))!=null?je:ee},[X]),Xe=_.useCallback(ee=>{var je;return((je=B==null?void 0:B(ee))!=null?je:ee).toString()},[B]);_a(()=>{(W.valueAsNumber>o||W.valueAsNumber{if(!le.current)return;if(le.current.value!=W.value){const je=_t(le.current.value);W.setValue(ft(je))}},[_t,ft]);const Re=_.useCallback((ee=s)=>{ce&&te(ee)},[te,ce,s]),bt=_.useCallback((ee=s)=>{ce&&ne(ee)},[ne,ce,s]),Oe=Wre(Re,bt);t4(et,"disabled",Oe.stop,Oe.isSpinning),t4(Ue,"disabled",Oe.stop,Oe.isSpinning);const me=_.useCallback(ee=>{if(ee.nativeEvent.isComposing)return;const dt=_t(ee.currentTarget.value);J(ft(dt)),Te.current={start:ee.currentTarget.selectionStart,end:ee.currentTarget.selectionEnd}},[J,ft,_t]),Qe=_.useCallback(ee=>{var je,dt,Ht;he==null||he(ee),Te.current&&(ee.target.selectionStart=(dt=Te.current.start)!=null?dt:(je=ee.currentTarget.value)==null?void 0:je.length,ee.currentTarget.selectionEnd=(Ht=Te.current.end)!=null?Ht:ee.currentTarget.selectionStart)},[he]),Ve=_.useCallback(ee=>{if(ee.nativeEvent.isComposing)return;Gre(ee,se)||ee.preventDefault();const je=Pt(ee)*s,dt=ee.key,re={ArrowUp:()=>Re(je),ArrowDown:()=>bt(je),Home:()=>J(i),End:()=>J(o)}[dt];re&&(ee.preventDefault(),re(ee))},[se,s,Re,bt,J,i,o]),Pt=ee=>{let je=1;return(ee.metaKey||ee.ctrlKey)&&(je=.1),ee.shiftKey&&(je=10),je},rn=_.useMemo(()=>{const ee=G==null?void 0:G(W.value);if(ee!=null)return ee;const je=W.value.toString();return je||void 0},[W.value,G]),xt=_.useCallback(()=>{let ee=W.value;if(W.value==="")return;/^[eE]/.test(W.value.toString())?W.setValue(""):(W.valueAsNumbero&&(ee=o),W.cast(ee))},[W,o,i]),Ct=_.useCallback(()=>{ae(!1),n&&xt()},[n,ae,xt]),Ut=_.useCallback(()=>{t&&requestAnimationFrame(()=>{var ee;(ee=le.current)==null||ee.focus()})},[t]),$t=_.useCallback(ee=>{ee.preventDefault(),Oe.up(),Ut()},[Ut,Oe]),qn=_.useCallback(ee=>{ee.preventDefault(),Oe.down(),Ut()},[Ut,Oe]);qc(()=>le.current,"wheel",ee=>{var je,dt;const re=((dt=(je=le.current)==null?void 0:je.ownerDocument)!=null?dt:document).activeElement===le.current;if(!g||!re)return;ee.preventDefault();const xe=Pt(ee)*s,Xn=Math.sign(ee.deltaY);Xn===-1?Re(xe):Xn===1&&bt(xe)},{passive:!1});const Dn=_.useCallback((ee={},je=null)=>{const dt=c||r&&W.isAtMax;return{...ee,ref:Wt(je,et),role:"button",tabIndex:-1,onPointerDown:We(ee.onPointerDown,Ht=>{Ht.button!==0||dt||$t(Ht)}),onPointerLeave:We(ee.onPointerLeave,Oe.stop),onPointerUp:We(ee.onPointerUp,Oe.stop),disabled:dt,"aria-disabled":Vl(dt)}},[W.isAtMax,r,$t,Oe.stop,c]),_i=_.useCallback((ee={},je=null)=>{const dt=c||r&&W.isAtMin;return{...ee,ref:Wt(je,Ue),role:"button",tabIndex:-1,onPointerDown:We(ee.onPointerDown,Ht=>{Ht.button!==0||dt||qn(Ht)}),onPointerLeave:We(ee.onPointerLeave,Oe.stop),onPointerUp:We(ee.onPointerUp,Oe.stop),disabled:dt,"aria-disabled":Vl(dt)}},[W.isAtMin,r,qn,Oe.stop,c]),Yn=_.useCallback((ee={},je=null)=>{var dt,Ht,re,xe;return{name:S,inputMode:m,type:"text",pattern:h,"aria-labelledby":P,"aria-label":C,"aria-describedby":y,id:x,disabled:c,...ee,readOnly:(dt=ee.readOnly)!=null?dt:u,"aria-readonly":(Ht=ee.readOnly)!=null?Ht:u,"aria-required":(re=ee.required)!=null?re:f,required:(xe=ee.required)!=null?xe:f,ref:Wt(le,je),value:Xe(W.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":Vl(p??W.isOutOfRange),"aria-valuetext":rn,autoComplete:"off",autoCorrect:"off",onChange:We(ee.onChange,me),onKeyDown:We(ee.onKeyDown,Ve),onFocus:We(ee.onFocus,Qe,()=>ae(!0)),onBlur:We(ee.onBlur,ge,Ct)}},[S,m,h,P,C,Xe,y,x,c,f,u,p,W.value,W.valueAsNumber,W.isOutOfRange,i,o,rn,me,Ve,Qe,ge,Ct]);return{value:Xe(W.value),valueAsNumber:W.valueAsNumber,isFocused:be,isDisabled:c,isReadOnly:u,getIncrementButtonProps:Dn,getDecrementButtonProps:_i,getInputProps:Yn,htmlProps:pe}}var[qre,Wm]=Jt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Yre,Rw]=Jt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),K8=ye(function(t,n){const r=Ui("NumberInput",t),i=gn(t),o=ew(i),{htmlProps:s,...u}=Kre(o),c=_.useMemo(()=>u,[u]);return w.jsx(Yre,{value:c,children:w.jsx(qre,{value:r,children:w.jsx(oe.div,{...s,ref:n,className:$e("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});K8.displayName="NumberInput";var q8=ye(function(t,n){const r=Wm();return w.jsx(oe.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});q8.displayName="NumberInputStepper";var Y8=ye(function(t,n){const{getInputProps:r}=Rw(),i=r(t,n),o=Wm();return w.jsx(oe.input,{...i,className:$e("chakra-numberinput__field",t.className),__css:{width:"100%",...o.field}})});Y8.displayName="NumberInputField";var X8=oe("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),Q8=ye(function(t,n){var r;const i=Wm(),{getDecrementButtonProps:o}=Rw(),s=o(t,n);return w.jsx(X8,{...s,__css:i.stepper,children:(r=t.children)!=null?r:w.jsx(zre,{})})});Q8.displayName="NumberDecrementStepper";var Z8=ye(function(t,n){var r;const{getIncrementButtonProps:i}=Rw(),o=i(t,n),s=Wm();return w.jsx(X8,{...o,__css:s.stepper,children:(r=t.children)!=null?r:w.jsx(Nre,{})})});Z8.displayName="NumberIncrementStepper";var fl=e=>e?"":void 0,Jy=e=>e?!0:void 0,ed=(...e)=>e.filter(Boolean).join(" ");function e1(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function qp(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var Oh={width:0,height:0},Yp=e=>e||Oh;function Xre(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,o=b=>{var T;const S=(T=r[b])!=null?T:Oh;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...qp({orientation:t,vertical:{bottom:`calc(${n[b]}% - ${S.height/2}px)`},horizontal:{left:`calc(${n[b]}% - ${S.width/2}px)`}})}},s=t==="vertical"?r.reduce((b,T)=>Yp(b).height>Yp(T).height?b:T,Oh):r.reduce((b,T)=>Yp(b).width>Yp(T).width?b:T,Oh),u={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...qp({orientation:t,vertical:s?{paddingLeft:s.width/2,paddingRight:s.width/2}:{},horizontal:s?{paddingTop:s.height/2,paddingBottom:s.height/2}:{}})},c={position:"absolute",...qp({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},f=n.length===1,p=[0,i?100-n[0]:n[0]],h=f?p:n;let m=h[0];!f&&i&&(m=100-m);const g=Math.abs(h[h.length-1]-h[0]),x={...c,...qp({orientation:t,vertical:i?{height:`${g}%`,top:`${m}%`}:{height:`${g}%`,bottom:`${m}%`},horizontal:i?{width:`${g}%`,right:`${m}%`}:{width:`${g}%`,left:`${m}%`}})};return{trackStyle:c,innerTrackStyle:x,rootStyle:u,getThumbStyle:o}}function Qre(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function Zre(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Jre(e){const t=tie(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function J8(e){return!!e.touches}function eie(e){return J8(e)&&e.touches.length>1}function tie(e){var t;return(t=e.view)!=null?t:window}function nie(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function rie(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function e9(e,t="page"){return J8(e)?nie(e,t):rie(e,t)}function iie(e){return t=>{const n=Jre(t);(!n||n&&t.button===0)&&e(t)}}function oie(e,t=!1){function n(i){e(i,{point:e9(i)})}return t?iie(n):n}function Ih(e,t,n,r){return Zre(e,t,oie(n,t==="pointerdown"),r)}var aie=Object.defineProperty,sie=(e,t,n)=>t in e?aie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pi=(e,t,n)=>(sie(e,typeof t!="symbol"?t+"":t,n),n),lie=class{constructor(e,t,n){pi(this,"history",[]),pi(this,"startEvent",null),pi(this,"lastEvent",null),pi(this,"lastEventInfo",null),pi(this,"handlers",{}),pi(this,"removeListeners",()=>{}),pi(this,"threshold",3),pi(this,"win"),pi(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const u=t1(this.lastEventInfo,this.history),c=this.startEvent!==null,f=die(u.offset,{x:0,y:0})>=this.threshold;if(!c&&!f)return;const{timestamp:p}=uC();this.history.push({...u.point,timestamp:p});const{onStart:h,onMove:m}=this.handlers;c||(h==null||h(this.lastEvent,u),this.startEvent=this.lastEvent),m==null||m(this.lastEvent,u)}),pi(this,"onPointerMove",(u,c)=>{this.lastEvent=u,this.lastEventInfo=c,aK.update(this.updatePoint,!0)}),pi(this,"onPointerUp",(u,c)=>{const f=t1(c,this.history),{onEnd:p,onSessionEnd:h}=this.handlers;h==null||h(u,f),this.end(),!(!p||!this.startEvent)&&(p==null||p(u,f))});var r;if(this.win=(r=e.view)!=null?r:window,eie(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:e9(e)},{timestamp:o}=uC();this.history=[{...i.point,timestamp:o}];const{onSessionStart:s}=t;s==null||s(e,t1(i,this.history)),this.removeListeners=fie(Ih(this.win,"pointermove",this.onPointerMove),Ih(this.win,"pointerup",this.onPointerUp),Ih(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),sK.update(this.updatePoint)}};function r4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function t1(e,t){return{point:e.point,delta:r4(e.point,t[t.length-1]),offset:r4(e.point,t[0]),velocity:cie(t,.1)}}var uie=e=>e*1e3;function cie(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>uie(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function fie(...e){return t=>e.reduce((n,r)=>r(n),t)}function n1(e,t){return Math.abs(e-t)}function i4(e){return"x"in e&&"y"in e}function die(e,t){if(typeof e=="number"&&typeof t=="number")return n1(e,t);if(i4(e)&&i4(t)){const n=n1(e.x,t.x),r=n1(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function t9(e){const t=_.useRef(null);return t.current=e,t}function pie(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:o,onPanSessionEnd:s,threshold:u}=t,c=!!(n||r||i||o||s),f=_.useRef(null),p=t9({onSessionStart:o,onSessionEnd:s,onStart:r,onMove:n,onEnd(h,m){f.current=null,i==null||i(h,m)}});_.useEffect(()=>{var h;(h=f.current)==null||h.updateHandlers(p.current)}),_.useEffect(()=>{const h=e.current;if(!h||!c)return;function m(g){f.current=new lie(g,p.current,u)}return Ih(h,"pointerdown",m)},[e,c,p,u]),_.useEffect(()=>()=>{var h;(h=f.current)==null||h.end(),f.current=null},[])}function hie(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const n=e.ownerDocument.defaultView??window,r=new n.ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const[o]=i;let s,u;if("borderBoxSize"in o){const c=o.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,u=f.blockSize}else s=e.offsetWidth,u=e.offsetHeight;t({width:s,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}var mie=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect;function vie(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,o=new i.MutationObserver(()=>{t()});return o.observe(e.parentElement,{childList:!0}),()=>{o.disconnect()}}function gie({getNodes:e,observeMutation:t=!0}){const[n,r]=_.useState([]),[i,o]=_.useState(0);return mie(()=>{const s=e(),u=s.map((c,f)=>hie(c,p=>{r(h=>[...h.slice(0,f),p,...h.slice(f+1)])}));if(t){const c=s[0];u.push(vie(c,()=>{o(f=>f+1)}))}return()=>{u.forEach(c=>{c==null||c()})}},[i]),n}function yie(e){return typeof e=="object"&&e!==null&&"current"in e}function bie(e){const[t]=gie({observeMutation:!1,getNodes(){return[yie(e)?e.current:e]}});return t}function xie(e){var t;const{min:n=0,max:r=100,onChange:i,value:o,defaultValue:s,isReversed:u,direction:c="ltr",orientation:f="horizontal",id:p,isDisabled:h,isReadOnly:m,onChangeStart:g,onChangeEnd:x,step:b=1,getAriaValueText:T,"aria-valuetext":S,"aria-label":y,"aria-labelledby":C,name:P,focusThumbOnChange:O=!0,...$}=e,I=Xt(g),F=Xt(x),V=Xt(T),B=Qre({isReversed:u,direction:c,orientation:f}),[X,pe]=Qx({value:o,defaultValue:s??Sie(n,r),onChange:i}),[he,ge]=_.useState(!1),[Ae,se]=_.useState(!1),G=!(h||m),W=(r-n)/10,J=b||(r-n)/100,te=Eh(X,n,r),ne=r-te+n,ae=Pk(B?ne:te,n,r),ce=f==="vertical",le=t9({min:n,max:r,step:b,isDisabled:h,value:te,isInteractive:G,isReversed:B,isVertical:ce,eventSource:null,focusThumbOnChange:O,orientation:f}),Te=_.useRef(null),et=_.useRef(null),Ue=_.useRef(null),ft=_.useId(),_t=p??ft,[Xe,Re]=[`slider-thumb-${_t}`,`slider-track-${_t}`],bt=_.useCallback(re=>{var xe,Xn;if(!Te.current)return;const on=le.current;on.eventSource="pointer";const Gt=Te.current.getBoundingClientRect(),{clientX:Lr,clientY:_u}=(Xn=(xe=re.touches)==null?void 0:xe[0])!=null?Xn:re,Fs=ce?Gt.bottom-_u:Lr-Gt.left,Cu=ce?Gt.height:Gt.width;let Gi=Fs/Cu;B&&(Gi=1-Gi);let Qn=mJ(Gi,on.min,on.max);return on.step&&(Qn=parseFloat(Ak(Qn,on.min,on.step))),Qn=Eh(Qn,on.min,on.max),Qn},[ce,B,le]),Oe=_.useCallback(re=>{const xe=le.current;xe.isInteractive&&(re=parseFloat(Ak(re,xe.min,J)),re=Eh(re,xe.min,xe.max),pe(re))},[J,pe,le]),me=_.useMemo(()=>({stepUp(re=J){const xe=B?te-re:te+re;Oe(xe)},stepDown(re=J){const xe=B?te+re:te-re;Oe(xe)},reset(){Oe(s||0)},stepTo(re){Oe(re)}}),[Oe,B,te,J,s]),Qe=_.useCallback(re=>{const xe=le.current,on={ArrowRight:()=>me.stepUp(),ArrowUp:()=>me.stepUp(),ArrowLeft:()=>me.stepDown(),ArrowDown:()=>me.stepDown(),PageUp:()=>me.stepUp(W),PageDown:()=>me.stepDown(W),Home:()=>Oe(xe.min),End:()=>Oe(xe.max)}[re.key];on&&(re.preventDefault(),re.stopPropagation(),on(re),xe.eventSource="keyboard")},[me,Oe,W,le]),Ve=(t=V==null?void 0:V(te))!=null?t:S,Pt=bie(et),{getThumbStyle:rn,rootStyle:xt,trackStyle:Ct,innerTrackStyle:Ut}=_.useMemo(()=>{const re=le.current,xe=Pt??{width:0,height:0};return Xre({isReversed:B,orientation:re.orientation,thumbRects:[xe],thumbPercents:[ae]})},[B,Pt,ae,le]),$t=_.useCallback(()=>{le.current.focusThumbOnChange&&setTimeout(()=>{var xe;return(xe=et.current)==null?void 0:xe.focus()})},[le]);_a(()=>{const re=le.current;$t(),re.eventSource==="keyboard"&&(F==null||F(re.value))},[te,F]);function qn(re){const xe=bt(re);xe!=null&&xe!==le.current.value&&pe(xe)}pie(Ue,{onPanSessionStart(re){const xe=le.current;xe.isInteractive&&(ge(!0),$t(),qn(re),I==null||I(xe.value))},onPanSessionEnd(){const re=le.current;re.isInteractive&&(ge(!1),F==null||F(re.value))},onPan(re){le.current.isInteractive&&qn(re)}});const Dn=_.useCallback((re={},xe=null)=>({...re,...$,ref:Wt(xe,Ue),tabIndex:-1,"aria-disabled":Jy(h),"data-focused":fl(Ae),style:{...re.style,...xt}}),[$,h,Ae,xt]),_i=_.useCallback((re={},xe=null)=>({...re,ref:Wt(xe,Te),id:Re,"data-disabled":fl(h),style:{...re.style,...Ct}}),[h,Re,Ct]),Yn=_.useCallback((re={},xe=null)=>({...re,ref:xe,style:{...re.style,...Ut}}),[Ut]),ee=_.useCallback((re={},xe=null)=>({...re,ref:Wt(xe,et),role:"slider",tabIndex:G?0:void 0,id:Xe,"data-active":fl(he),"aria-valuetext":Ve,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":te,"aria-orientation":f,"aria-disabled":Jy(h),"aria-readonly":Jy(m),"aria-label":y,"aria-labelledby":y?void 0:C,style:{...re.style,...rn(0)},onKeyDown:e1(re.onKeyDown,Qe),onFocus:e1(re.onFocus,()=>se(!0)),onBlur:e1(re.onBlur,()=>se(!1))}),[G,Xe,he,Ve,n,r,te,f,h,m,y,C,rn,Qe]),je=_.useCallback((re,xe=null)=>{const Xn=!(re.valuer),on=te>=re.value,Gt=Pk(re.value,n,r),Lr={position:"absolute",pointerEvents:"none",...wie({orientation:f,vertical:{bottom:B?`${100-Gt}%`:`${Gt}%`},horizontal:{left:B?`${100-Gt}%`:`${Gt}%`}})};return{...re,ref:xe,role:"presentation","aria-hidden":!0,"data-disabled":fl(h),"data-invalid":fl(!Xn),"data-highlighted":fl(on),style:{...re.style,...Lr}}},[h,B,r,n,f,te]),dt=_.useCallback((re={},xe=null)=>({...re,ref:xe,type:"hidden",value:te,name:P}),[P,te]);return{state:{value:te,isFocused:Ae,isDragging:he},actions:me,getRootProps:Dn,getTrackProps:_i,getInnerTrackProps:Yn,getThumbProps:ee,getMarkerProps:je,getInputProps:dt}}function wie(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function Sie(e,t){return t"}),[Cie,Hm]=Jt({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:""}),q2=ye((e,t)=>{var n;const r={...e,orientation:(n=e==null?void 0:e.orientation)!=null?n:"horizontal"},i=Ui("Slider",r),o=gn(r),{direction:s}=bm();o.direction=s;const{getInputProps:u,getRootProps:c,...f}=xie(o),p=c(),h=u({},t);return w.jsx(_ie,{value:f,children:w.jsx(Cie,{value:i,children:w.jsxs(oe.div,{...p,className:ed("chakra-slider",r.className),__css:i.container,children:[r.children,w.jsx("input",{...h})]})})})});q2.displayName="Slider";var Y2=ye((e,t)=>{const{getThumbProps:n}=Um(),r=Hm(),i=n(e,t);return w.jsx(oe.div,{...i,className:ed("chakra-slider__thumb",e.className),__css:r.thumb})});Y2.displayName="SliderThumb";var X2=ye((e,t)=>{const{getTrackProps:n}=Um(),r=Hm(),i=n(e,t);return w.jsx(oe.div,{...i,className:ed("chakra-slider__track",e.className),__css:r.track})});X2.displayName="SliderTrack";var Q2=ye((e,t)=>{const{getInnerTrackProps:n}=Um(),r=Hm(),i=n(e,t);return w.jsx(oe.div,{...i,className:ed("chakra-slider__filled-track",e.className),__css:r.filledTrack})});Q2.displayName="SliderFilledTrack";var kie=ye((e,t)=>{const{getMarkerProps:n}=Um(),r=Hm(),i=n(e,t);return w.jsx(oe.div,{...i,className:ed("chakra-slider__marker",e.className),__css:r.mark})});kie.displayName="SliderMark";var[Tie,Eie,Pie,Aie]=CA();function Rie(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:o,isLazy:s,lazyBehavior:u="unmount",orientation:c="horizontal",direction:f="ltr",...p}=e,[h,m]=_.useState(n??0),[g,x]=Qx({defaultValue:n??0,value:i,onChange:r});_.useEffect(()=>{i!=null&&m(i)},[i]);const b=Pie(),T=_.useId();return{id:`tabs-${(t=e.id)!=null?t:T}`,selectedIndex:g,focusedIndex:h,setSelectedIndex:x,setFocusedIndex:m,isManual:o,isLazy:s,lazyBehavior:u,orientation:c,descendants:b,direction:f,htmlProps:p}}var[Oie,Gm]=Jt({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within "});function Iie(e){const{focusedIndex:t,orientation:n,direction:r}=Gm(),i=Eie(),o=_.useCallback(s=>{const u=()=>{var y;const C=i.nextEnabled(t);C&&((y=C.node)==null||y.focus())},c=()=>{var y;const C=i.prevEnabled(t);C&&((y=C.node)==null||y.focus())},f=()=>{var y;const C=i.firstEnabled();C&&((y=C.node)==null||y.focus())},p=()=>{var y;const C=i.lastEnabled();C&&((y=C.node)==null||y.focus())},h=n==="horizontal",m=n==="vertical",g=s.key,x=r==="ltr"?"ArrowLeft":"ArrowRight",b=r==="ltr"?"ArrowRight":"ArrowLeft",S={[x]:()=>h&&c(),[b]:()=>h&&u(),ArrowDown:()=>m&&u(),ArrowUp:()=>m&&c(),Home:f,End:p}[g];S&&(s.preventDefault(),S(s))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:We(e.onKeyDown,o)}}function Mie(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:i,isManual:o,id:s,setFocusedIndex:u,selectedIndex:c}=Gm(),{index:f,register:p}=Aie({disabled:t&&!n}),h=f===c,m=()=>{i(f)},g=()=>{u(f),!o&&!(t&&n)&&i(f)};return{...w8({...r,ref:Wt(p,e.ref),isDisabled:t,isFocusable:n,onClick:We(e.onClick,m)}),id:n9(s,f),role:"tab",tabIndex:h?0:-1,type:"button","aria-selected":h,"aria-controls":r9(s,f),onFocus:t?void 0:We(e.onFocus,g)}}var[$ie,Fie]=Jt({});function Die(e){const t=Gm(),{id:n,selectedIndex:r}=t,o=Zx(e.children).map((s,u)=>_.createElement($ie,{key:u,value:{isSelected:u===r,id:r9(n,u),tabId:n9(n,u),selectedIndex:r}},s));return{...e,children:o}}function Lie(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=Gm(),{isSelected:o,id:s,tabId:u}=Fie(),c=_.useRef(!1);o&&(c.current=!0);const f=$8({wasSelected:c.current,isSelected:o,enabled:r,mode:i});return{tabIndex:0,...n,children:f?t:null,role:"tabpanel","aria-labelledby":u,hidden:!o,id:s}}function n9(e,t){return`${e}--tab-${t}`}function r9(e,t){return`${e}--tabpanel-${t}`}var[jie,Km]=Jt({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),i9=ye(function(t,n){const r=Ui("Tabs",t),{children:i,className:o,...s}=gn(t),{htmlProps:u,descendants:c,...f}=Rie(s),p=_.useMemo(()=>f,[f]),{isFitted:h,...m}=u,g={position:"relative",...r.root};return w.jsx(Tie,{value:c,children:w.jsx(Oie,{value:p,children:w.jsx(jie,{value:r,children:w.jsx(oe.div,{className:$e("chakra-tabs",o),ref:n,...m,__css:g,children:i})})})})});i9.displayName="Tabs";var o9=ye(function(t,n){const r=Iie({...t,ref:n}),o={display:"flex",...Km().tablist};return w.jsx(oe.div,{...r,className:$e("chakra-tabs__tablist",t.className),__css:o})});o9.displayName="TabList";var a9=ye(function(t,n){const r=Lie({...t,ref:n}),i=Km();return w.jsx(oe.div,{outline:"0",...r,className:$e("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});a9.displayName="TabPanel";var s9=ye(function(t,n){const r=Die(t),i=Km();return w.jsx(oe.div,{...r,width:"100%",ref:n,className:$e("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});s9.displayName="TabPanels";var l9=ye(function(t,n){const r=Km(),i=Mie({...t,ref:n}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return w.jsx(oe.button,{...i,className:$e("chakra-tabs__tab",t.className),__css:o})});l9.displayName="Tab";var zie={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Z2=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Mh=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function Nie(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:o,closeOnPointerDown:s=i,closeOnEsc:u=!0,onOpen:c,onClose:f,placement:p,id:h,isOpen:m,defaultIsOpen:g,arrowSize:x=10,arrowShadowColor:b,arrowPadding:T,modifiers:S,isDisabled:y,gutter:C,offset:P,direction:O,...$}=e,{isOpen:I,onOpen:F,onClose:V}=I8({isOpen:m,defaultIsOpen:g,onOpen:c,onClose:f}),{referenceRef:B,getPopperProps:X,getArrowInnerProps:pe,getArrowProps:he}=O8({enabled:I,placement:p,arrowPadding:T,modifiers:S,gutter:C,offset:P,direction:O}),ge=_.useId(),se=`tooltip-${h??ge}`,G=_.useRef(null),W=_.useRef(),J=_.useCallback(()=>{W.current&&(clearTimeout(W.current),W.current=void 0)},[]),te=_.useRef(),ne=_.useCallback(()=>{te.current&&(clearTimeout(te.current),te.current=void 0)},[]),be=_.useCallback(()=>{ne(),V()},[V,ne]),ae=Bie(G,be),ce=_.useCallback(()=>{if(!y&&!W.current){I&&ae();const Re=Mh(G);W.current=Re.setTimeout(F,t)}},[ae,y,I,F,t]),le=_.useCallback(()=>{J();const Re=Mh(G);te.current=Re.setTimeout(be,n)},[n,be,J]),Te=_.useCallback(()=>{I&&r&&le()},[r,le,I]),et=_.useCallback(()=>{I&&s&&le()},[s,le,I]),Ue=_.useCallback(Re=>{I&&Re.key==="Escape"&&le()},[I,le]);qc(()=>Z2(G),"keydown",u?Ue:void 0),qc(()=>{if(!o)return null;const Re=G.current;if(!Re)return null;const bt=h8(Re);return bt.localName==="body"?Mh(G):bt},"scroll",()=>{I&&o&&be()},{passive:!0,capture:!0}),_.useEffect(()=>{y&&(J(),I&&V())},[y,I,V,J]),_.useEffect(()=>()=>{J(),ne()},[J,ne]),qc(()=>G.current,"pointerleave",le);const ft=_.useCallback((Re={},bt=null)=>({...Re,ref:Wt(G,bt,B),onPointerEnter:We(Re.onPointerEnter,me=>{me.pointerType!=="touch"&&ce()}),onClick:We(Re.onClick,Te),onPointerDown:We(Re.onPointerDown,et),onFocus:We(Re.onFocus,ce),onBlur:We(Re.onBlur,le),"aria-describedby":I?se:void 0}),[ce,le,et,I,se,Te,B]),_t=_.useCallback((Re={},bt=null)=>X({...Re,style:{...Re.style,[Cn.arrowSize.var]:x?`${x}px`:void 0,[Cn.arrowShadowColor.var]:b}},bt),[X,x,b]),Xe=_.useCallback((Re={},bt=null)=>{const Oe={...Re.style,position:"relative",transformOrigin:Cn.transformOrigin.varRef};return{ref:bt,...$,...Re,id:se,role:"tooltip",style:Oe}},[$,se]);return{isOpen:I,show:ce,hide:le,getTriggerProps:ft,getTooltipProps:Xe,getTooltipPositionerProps:_t,getArrowProps:he,getArrowInnerProps:pe}}var r1="chakra-ui:close-tooltip";function Bie(e,t){return _.useEffect(()=>{const n=Z2(e);return n.addEventListener(r1,t),()=>n.removeEventListener(r1,t)},[t,e]),()=>{const n=Z2(e),r=Mh(e);n.dispatchEvent(new r.CustomEvent(r1))}}function Vie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function Wie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Uie=oe(Ma.div),ga=ye((e,t)=>{var n,r;const i=Wi("Tooltip",e),o=gn(e),s=bm(),{children:u,label:c,shouldWrapChildren:f,"aria-label":p,hasArrow:h,bg:m,portalProps:g,background:x,backgroundColor:b,bgColor:T,motionProps:S,...y}=o,C=(r=(n=x??b)!=null?n:m)!=null?r:T;if(C){i.bg=C;const X=EN(s,"colors",C);i[Cn.arrowBg.var]=X}const P=Nie({...y,direction:s.direction}),O=typeof u=="string"||f;let $;if(O)$=w.jsx(oe.span,{display:"inline-block",tabIndex:0,...P.getTriggerProps(),children:u});else{const X=_.Children.only(u);$=_.cloneElement(X,P.getTriggerProps(X.props,X.ref))}const I=!!p,F=P.getTooltipProps({},t),V=I?Vie(F,["role","id"]):F,B=Wie(F,["role","id"]);return c?w.jsxs(w.Fragment,{children:[$,w.jsx(wu,{children:P.isOpen&&w.jsx(xu,{...g,children:w.jsx(oe.div,{...P.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:w.jsxs(Uie,{variants:zie,initial:"exit",animate:"enter",exit:"exit",...S,...V,__css:i,children:[c,I&&w.jsx(oe.span,{srOnly:!0,...B,children:p}),h&&w.jsx(oe.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:w.jsx(oe.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):w.jsx(w.Fragment,{children:u})});ga.displayName="Tooltip";var J2={},o4=vx;J2.createRoot=o4.createRoot,J2.hydrateRoot=o4.hydrateRoot;var u9={exports:{}},c9={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -393,16 +393,16 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var td=_;function Hie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gie=typeof Object.is=="function"?Object.is:Hie,Kie=td.useSyncExternalStore,qie=td.useRef,Yie=td.useEffect,Xie=td.useMemo,Qie=td.useDebugValue;c9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=qie(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Xie(function(){function c(g){if(!f){if(f=!0,p=g,g=r(g),i!==void 0&&s.hasValue){var w=s.value;if(i(w,g))return h=w}return h=g}if(w=h,Gie(p,g))return w;var b=r(g);return i!==void 0&&i(w,b)?w:(p=g,h=b)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,i]);var u=Kie(e,o[0],o[1]);return Yie(function(){s.hasValue=!0,s.value=u},[u]),Qie(u),u};u9.exports=c9;var Zie=u9.exports,wr="default"in Nh?xa:Nh,a4=Symbol.for("react-redux-context"),s4=typeof globalThis<"u"?globalThis:{};function Jie(){if(!wr.createContext)return{};const e=s4[a4]??(s4[a4]=new Map);let t=e.get(wr.createContext);return t||(t=wr.createContext(null),e.set(wr.createContext,t)),t}var Ea=Jie(),eoe=()=>{throw new Error("uSES not initialized!")};function Ow(e=Ea){return function(){return wr.useContext(e)}}var f9=Ow(),d9=eoe,toe=e=>{d9=e},noe=(e,t)=>e===t;function roe(e=Ea){const t=e===Ea?f9:Ow(e),n=(r,i={})=>{const{equalityFn:o=noe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:f,stabilityCheck:p,identityFunctionCheck:h}=t();wr.useRef(!0);const m=wr.useCallback({[r.name](w){return r(w)}}[r.name],[r,p,s.stabilityCheck]),g=d9(c.addNestedSub,u.getState,f||u.getState,m,o);return wr.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pe=roe();function ioe(e){e()}function ooe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ioe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var l4={notify(){},get:()=>[]};function aoe(e,t){let n,r=l4,i=0,o=!1;function s(b){p();const T=r.subscribe(b);let S=!1;return()=>{S||(S=!0,T(),h())}}function u(){r.notify()}function c(){w.onStateChange&&w.onStateChange()}function f(){return o}function p(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=ooe())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=l4)}function m(){o||(o=!0,p())}function g(){o&&(o=!1,h())}const w={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:f,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return w}var soe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",loe=soe?wr.useLayoutEffect:wr.useEffect;function u4(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function p9(e,t){if(u4(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{const f=aoe(e);return{store:e,subscription:f,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),u=wr.useMemo(()=>e.getState(),[e]);loe(()=>{const{subscription:f}=s;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),u!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[s,u]);const c=t||Ea;return wr.createElement(c.Provider,{value:s},n)}var coe=uoe;function h9(e=Ea){const t=e===Ea?f9:Ow(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var foe=h9();function doe(e=Ea){const t=e===Ea?foe:h9(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Dr=doe();toe(Zie.useSyncExternalStoreWithSelector);function wn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var poe=typeof Symbol=="function"&&Symbol.observable||"@@observable",c4=poe,i1=()=>Math.random().toString(36).substring(7).split("").join("."),hoe={INIT:`@@redux/INIT${i1()}`,REPLACE:`@@redux/REPLACE${i1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i1()}`},M0=hoe;function Iw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Mw(e,t,n){if(typeof e!="function")throw new Error(wn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(wn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(wn(1));return n(Mw)(e,t)}let r=e,i=t,o=new Map,s=o,u=0,c=!1;function f(){s===o&&(s=new Map,o.forEach((T,S)=>{s.set(S,T)}))}function p(){if(c)throw new Error(wn(3));return i}function h(T){if(typeof T!="function")throw new Error(wn(4));if(c)throw new Error(wn(5));let S=!0;f();const y=u++;return s.set(y,T),function(){if(S){if(c)throw new Error(wn(6));S=!1,f(),s.delete(y),o=null}}}function m(T){if(!Iw(T))throw new Error(wn(7));if(typeof T.type>"u")throw new Error(wn(8));if(typeof T.type!="string")throw new Error(wn(17));if(c)throw new Error(wn(9));try{c=!0,i=r(i,T)}finally{c=!1}return(o=s).forEach(y=>{y()}),T}function g(T){if(typeof T!="function")throw new Error(wn(10));r=T,m({type:M0.REPLACE})}function w(){const T=h;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(wn(11));function y(){const P=S;P.next&&P.next(p())}return y(),{unsubscribe:T(y)}},[c4](){return this}}}return m({type:M0.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:g,[c4]:w}}function moe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:M0.INIT})>"u")throw new Error(wn(12));if(typeof n(void 0,{type:M0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wn(13))})}function voe(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw u&&u.type,new Error(wn(14));f[h]=w,c=c||w!==g}return c=c||r.length!==Object.keys(s).length,c?f:s}}function $0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function goe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(wn(15))};const s={getState:i.getState,dispatch:(c,...f)=>o(c,...f)},u=e.map(c=>c(s));return o=$0(...u)(i.dispatch),{...i,dispatch:o}}}function yoe(e){return Iw(e)&&"type"in e&&typeof e.type=="string"}var m9=Symbol.for("immer-nothing"),f4=Symbol.for("immer-draftable"),Rr=Symbol.for("immer-state");function yi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hu=Object.getPrototypeOf;function Pa(e){return!!e&&!!e[Rr]}function Oo(e){var t;return e?v9(e)||Array.isArray(e)||!!e[f4]||!!((t=e.constructor)!=null&&t[f4])||Ym(e)||Xm(e):!1}var boe=Object.prototype.constructor.toString();function v9(e){if(!e||typeof e!="object")return!1;const t=hu(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===boe}function F0(e,t){qm(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function qm(e){const t=e[Rr];return t?t.type_:Array.isArray(e)?1:Ym(e)?2:Xm(e)?3:0}function eb(e,t){return qm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g9(e,t,n){const r=qm(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function xoe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ym(e){return e instanceof Map}function Xm(e){return e instanceof Set}function Ja(e){return e.copy_||e.base_}function tb(e,t){if(Ym(e))return new Map(e);if(Xm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&v9(e))return hu(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Rr];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=woe),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>$w(r,!0))),e}function woe(){yi(2)}function Qm(e){return Object.isFrozen(e)}var Soe={};function Ps(e){const t=Soe[e];return t||yi(0,e),t}var If;function y9(){return If}function _oe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function d4(e,t){t&&(Ps("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nb(e){rb(e),e.drafts_.forEach(Coe),e.drafts_=null}function rb(e){e===If&&(If=e.parent_)}function p4(e){return If=_oe(If,e)}function Coe(e){const t=e[Rr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function h4(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Rr].modified_&&(nb(t),yi(4)),Oo(e)&&(e=D0(t,e),t.parent_||L0(t,e)),t.patches_&&Ps("Patches").generateReplacementPatches_(n[Rr].base_,e,t.patches_,t.inversePatches_)):e=D0(t,n,[]),nb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m9?e:void 0}function D0(e,t,n){if(Qm(t))return t;const r=t[Rr];if(!r)return F0(t,(i,o)=>m4(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return L0(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),F0(o,(u,c)=>m4(e,r,i,u,c,n,s)),L0(e,i,!1),n&&e.patches_&&Ps("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function m4(e,t,n,r,i,o,s){if(Pa(i)){const u=o&&t&&t.type_!==3&&!eb(t.assigned_,r)?o.concat(r):void 0,c=D0(e,i,u);if(g9(n,r,c),Pa(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Oo(i)&&!Qm(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;D0(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&L0(e,i)}}function L0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$w(t,n)}function koe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:y9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Fw;n&&(i=[r],o=Mf);const{revoke:s,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=s,u}var Fw={get(e,t){if(t===Rr)return e;const n=Ja(e);if(!eb(n,t))return Toe(e,n,t);const r=n[t];return e.finalized_||!Oo(r)?r:r===o1(e.base_,t)?(a1(e),e.copy_[t]=ob(r,e)):r},has(e,t){return t in Ja(e)},ownKeys(e){return Reflect.ownKeys(Ja(e))},set(e,t,n){const r=b9(Ja(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=o1(Ja(e),t),o=i==null?void 0:i[Rr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(xoe(n,i)&&(n!==void 0||eb(e.base_,t)))return!0;a1(e),ib(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return o1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,a1(e),ib(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ja(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){yi(11)},getPrototypeOf(e){return hu(e.base_)},setPrototypeOf(){yi(12)}},Mf={};F0(Fw,(e,t)=>{Mf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Mf.deleteProperty=function(e,t){return Mf.set.call(this,e,t,void 0)};Mf.set=function(e,t,n){return Fw.set.call(this,e[0],t,n,e[0])};function o1(e,t){const n=e[Rr];return(n?Ja(n):e)[t]}function Toe(e,t,n){var i;const r=b9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function b9(e,t){if(!(t in e))return;let n=hu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=hu(n)}}function ib(e){e.modified_||(e.modified_=!0,e.parent_&&ib(e.parent_))}function a1(e){e.copy_||(e.copy_=tb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Eoe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(c=o,...f){return s.produce(c,p=>n.call(this,p,...f))}}typeof n!="function"&&yi(6),r!==void 0&&typeof r!="function"&&yi(7);let i;if(Oo(t)){const o=p4(this),s=ob(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?nb(o):rb(o)}return d4(o,r),h4(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===m9&&(i=void 0),this.autoFreeze_&&$w(i,!0),r){const o=[],s=[];Ps("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else yi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Oo(e)||yi(8),Pa(e)&&(e=x9(e));const t=p4(this),n=ob(e,void 0);return n[Rr].isManual_=!0,rb(t),n}finishDraft(e,t){const n=e&&e[Rr];(!n||!n.isManual_)&&yi(9);const{scope_:r}=n;return d4(r,t),h4(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Ps("Patches").applyPatches_;return Pa(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ob(e,t){const n=Ym(e)?Ps("MapSet").proxyMap_(e,t):Xm(e)?Ps("MapSet").proxySet_(e,t):koe(e,t);return(t?t.scope_:y9()).drafts_.push(n),n}function x9(e){return Pa(e)||yi(10,e),w9(e)}function w9(e){if(!Oo(e)||Qm(e))return e;const t=e[Rr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=tb(e,t.scope_.immer_.useStrictShallowCopy_)}else n=tb(e,!0);return F0(n,(r,i)=>{g9(n,r,w9(i))}),t&&(t.finalized_=!1),n}var Or=new Eoe,S9=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseStrictShallowCopy.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function Poe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Aoe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Roe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var v4=e=>Array.isArray(e)?e:[e];function Ooe(e){const t=Array.isArray(e[0])?e[0]:e;return Roe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ioe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Xp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function _9(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,u,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),Poe(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const p={...n,...c},{memoize:h,memoizeOptions:m=[],argsMemoize:g=Dw,argsMemoizeOptions:w=[],devModeChecks:b={}}=p,T=v4(m),S=v4(w),y=Ooe(i),C=h(function(){return o++,f.apply(null,arguments)},...T),P=g(function(){s++;const $=Ioe(y,arguments);return u=C.apply(null,$),u},...S);return Object.assign(P,{resultFunc:f,memoizedResultFunc:C,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:h,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var Doe=_9(Dw),Loe=Object.assign((e,t=Doe)=>{Aoe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,u,c)=>(s[n[c]]=u,s),{}))},{withTypes:()=>Loe});function C9(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var joe=C9(),zoe=C9,Noe=(...e)=>{const t=_9(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...u)=>i(Pa(s)?x9(s):s,...u);return Object.assign(o,i),o},{withTypes:()=>n});return n};Noe(Dw);var Boe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$0:$0.apply(null,arguments)},Voe=e=>e&&typeof e.match=="function";function _o(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(cr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>yoe(r)&&r.type===e,n}var k9=class Ec extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ec.prototype)}static get[Symbol.species](){return Ec}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ec(...t[0].concat(this)):new Ec(...t.concat(this))}};function y4(e){return Oo(e)?S9(e,()=>{}):e}function b4(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(cr(10));const r=n.insert(t,e);return e.set(t,r),r}function Woe(e){return typeof e=="boolean"}var Uoe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new k9;return n&&(Woe(n)?s.push(joe):s.push(zoe(n.extraArgument))),s},Hoe="RTK_autoBatch",T9=e=>t=>{setTimeout(t,e)},Goe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T9(10),Koe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?Goe:e.type==="callback"?e.queueNotification:T9(e.timeout),f=()=>{s=!1,o&&(o=!1,u.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),m=r.subscribe(h);return u.add(p),()=>{m(),u.delete(p)}},dispatch(p){var h;try{return i=!((h=p==null?void 0:p.meta)!=null&&h[Hoe]),o=!i,o&&(s||(s=!0,c(f))),r.dispatch(p)}finally{i=!0}}})},qoe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new k9(e);return r&&i.push(Koe(typeof r=="object"?r:void 0)),i},Yoe=!0;function Xoe(e){const t=Uoe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Iw(n))u=voe(n);else throw new Error(cr(1));let c;typeof r=="function"?c=r(t):c=t();let f=$0;i&&(f=Boe({trace:!Yoe,...typeof i=="object"&&i}));const p=goe(...c),h=qoe(p);let m=typeof s=="function"?s(h):h();const g=f(...m);return Mw(u,o,g)}function E9(e){const t={},n=[];let r;const i={addCase(o,s){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(cr(28));if(u in t)throw new Error(cr(29));return t[u]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Qoe(e){return typeof e=="function"}function Zoe(e,t){let[n,r,i]=E9(t),o;if(Qoe(e))o=()=>y4(e());else{const u=y4(e);o=()=>u}function s(u=o(),c){let f=[n[c.type],...r.filter(({matcher:p})=>p(c)).map(({reducer:p})=>p)];return f.filter(p=>!!p).length===0&&(f=[i]),f.reduce((p,h)=>{if(h)if(Pa(p)){const g=h(p,c);return g===void 0?p:g}else{if(Oo(p))return S9(p,m=>h(m,c));{const m=h(p,c);if(m===void 0){if(p===null)return p;throw new Error(cr(9))}return m}}return p},u)}return s.getInitialState=o,s}var Joe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",P9=(e=21)=>{let t="",n=e;for(;n--;)t+=Joe[Math.random()*64|0];return t},eae=(e,t)=>Voe(e)?e.match(t):e(t);function tae(...e){return t=>e.some(n=>eae(n,t))}var nae=["name","message","stack","code"],s1=class{constructor(e,t){Lg(this,"_type");this.payload=e,this.meta=t}},x4=class{constructor(e,t){Lg(this,"_type");this.payload=e,this.meta=t}},rae=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nae)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Zm=(()=>{function e(t,n,r){const i=_o(t+"/fulfilled",(c,f,p,h)=>({payload:c,meta:{...h||{},arg:p,requestId:f,requestStatus:"fulfilled"}})),o=_o(t+"/pending",(c,f,p)=>({payload:void 0,meta:{...p||{},arg:f,requestId:c,requestStatus:"pending"}})),s=_o(t+"/rejected",(c,f,p,h,m)=>({payload:h,error:(r&&r.serializeError||rae)(c||"Rejected"),meta:{...m||{},arg:p,requestId:f,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c){return(f,p,h)=>{const m=r!=null&&r.idGenerator?r.idGenerator(c):P9(),g=new AbortController;let w,b;function T(y){b=y,g.abort()}const S=async function(){var P,O;let y;try{let $=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,c,{getState:p,extra:h});if(oae($)&&($=await $),$===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const I=new Promise((F,V)=>{w=()=>{V({name:"AbortError",message:b||"Aborted"})},g.signal.addEventListener("abort",w)});f(o(m,c,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:m,arg:c},{getState:p,extra:h}))),y=await Promise.race([I,Promise.resolve(n(c,{dispatch:f,getState:p,extra:h,requestId:m,signal:g.signal,abort:T,rejectWithValue:(F,V)=>new s1(F,V),fulfillWithValue:(F,V)=>new x4(F,V)})).then(F=>{if(F instanceof s1)throw F;return F instanceof x4?i(F.payload,m,c,F.meta):i(F,m,c)})])}catch($){y=$ instanceof s1?s(null,m,c,$.payload,$.meta):s($,m,c)}finally{w&&g.signal.removeEventListener("abort",w)}return r&&!r.dispatchConditionRejection&&s.match(y)&&y.meta.condition||f(y),y}();return Object.assign(S,{abort:T,requestId:m,arg:c,unwrap(){return S.then(iae)}})}}return Object.assign(u,{pending:o,rejected:s,fulfilled:i,settled:tae(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function iae(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function oae(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var aae=Symbol.for("rtk-slice-createasyncthunk");function sae(e,t){return`${e}/${t}`}function lae({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[aae];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(cr(11));typeof process<"u";const u=(typeof i.reducers=="function"?i.reducers(cae()):i.reducers)||{},c=Object.keys(u),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(C,P){const O=typeof C=="string"?C:C.type;if(!O)throw new Error(cr(12));if(O in f.sliceCaseReducersByType)throw new Error(cr(13));return f.sliceCaseReducersByType[O]=P,p},addMatcher(C,P){return f.sliceMatchers.push({matcher:C,reducer:P}),p},exposeAction(C,P){return f.actionCreators[C]=P,p},exposeCaseReducer(C,P){return f.sliceCaseReducersByName[C]=P,p}};c.forEach(C=>{const P=u[C],O={reducerName:C,type:sae(o,C),createNotation:typeof i.reducers=="function"};dae(P)?hae(O,P,p,t):fae(O,P,p)});function h(){const[C={},P=[],O=void 0]=typeof i.extraReducers=="function"?E9(i.extraReducers):[i.extraReducers],$={...C,...f.sliceCaseReducersByType};return Zoe(i.initialState,I=>{for(let F in $)I.addCase(F,$[F]);for(let F of f.sliceMatchers)I.addMatcher(F.matcher,F.reducer);for(let F of P)I.addMatcher(F.matcher,F.reducer);O&&I.addDefaultCase(O)})}const m=C=>C,g=new Map;let w;function b(C,P){return w||(w=h()),w(C,P)}function T(){return w||(w=h()),w.getInitialState()}function S(C,P=!1){function O(I){let F=I[C];return typeof F>"u"&&P&&(F=T()),F}function $(I=m){const F=b4(g,P,{insert:()=>new WeakMap});return b4(F,I,{insert:()=>{const V={};for(const[B,X]of Object.entries(i.selectors??{}))V[B]=uae(X,I,T,P);return V}})}return{reducerPath:C,getSelectors:$,get selectors(){return $(O)},selectSlice:O}}const y={name:o,reducer:b,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:T,...S(s),injectInto(C,{reducerPath:P,...O}={}){const $=P??s;return C.inject({reducerPath:$,reducer:b},O),{...y,...S($,!0)}}};return y}}function uae(e,t,n,r){function i(o,...s){let u=t(o);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var A9=lae();function cae(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function fae({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!pae(r))throw new Error(cr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?_o(e,s):_o(e))}function dae(e){return e._reducerDefinitionType==="asyncThunk"}function pae(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hae({type:e,reducerName:t},n,r,i){if(!i)throw new Error(cr(18));const{payloadCreator:o,fulfilled:s,pending:u,rejected:c,settled:f,options:p}=n,h=i(e,o,p);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),u&&r.addCase(h.pending,u),c&&r.addCase(h.rejected,c),f&&r.addMatcher(h.settled,f),r.exposeCaseReducer(t,{fulfilled:s||Qp,pending:u||Qp,rejected:c||Qp,settled:f||Qp})}function Qp(){}var mae=(e,t)=>{if(typeof e!="function")throw new Error(cr(32))},Lw="listenerMiddleware",vae=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=_o(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(cr(21));return mae(o),{predicate:i,type:t,effect:o}},gae=Object.assign(e=>{const{type:t,predicate:n,effect:r}=vae(e);return{id:P9(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(cr(22))}}},{withTypes:()=>gae}),yae=Object.assign(_o(`${Lw}/add`),{withTypes:()=>yae});_o(`${Lw}/removeAll`);var bae=Object.assign(_o(`${Lw}/remove`),{withTypes:()=>bae});function cr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var j0={exports:{}};/** + */var td=_;function Hie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gie=typeof Object.is=="function"?Object.is:Hie,Kie=td.useSyncExternalStore,qie=td.useRef,Yie=td.useEffect,Xie=td.useMemo,Qie=td.useDebugValue;c9.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=qie(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Xie(function(){function c(g){if(!f){if(f=!0,p=g,g=r(g),i!==void 0&&s.hasValue){var x=s.value;if(i(x,g))return h=x}return h=g}if(x=h,Gie(p,g))return x;var b=r(g);return i!==void 0&&i(x,b)?x:(p=g,h=b)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,i]);var u=Kie(e,o[0],o[1]);return Yie(function(){s.hasValue=!0,s.value=u},[u]),Qie(u),u};u9.exports=c9;var Zie=u9.exports,wr="default"in Nh?xa:Nh,a4=Symbol.for("react-redux-context"),s4=typeof globalThis<"u"?globalThis:{};function Jie(){if(!wr.createContext)return{};const e=s4[a4]??(s4[a4]=new Map);let t=e.get(wr.createContext);return t||(t=wr.createContext(null),e.set(wr.createContext,t)),t}var Ea=Jie(),eoe=()=>{throw new Error("uSES not initialized!")};function Ow(e=Ea){return function(){return wr.useContext(e)}}var f9=Ow(),d9=eoe,toe=e=>{d9=e},noe=(e,t)=>e===t;function roe(e=Ea){const t=e===Ea?f9:Ow(e),n=(r,i={})=>{const{equalityFn:o=noe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:u,subscription:c,getServerState:f,stabilityCheck:p,identityFunctionCheck:h}=t();wr.useRef(!0);const m=wr.useCallback({[r.name](x){return r(x)}}[r.name],[r,p,s.stabilityCheck]),g=d9(c.addNestedSub,u.getState,f||u.getState,m,o);return wr.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pe=roe();function ioe(e){e()}function ooe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ioe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var l4={notify(){},get:()=>[]};function aoe(e,t){let n,r=l4,i=0,o=!1;function s(b){p();const T=r.subscribe(b);let S=!1;return()=>{S||(S=!0,T(),h())}}function u(){r.notify()}function c(){x.onStateChange&&x.onStateChange()}function f(){return o}function p(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=ooe())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=l4)}function m(){o||(o=!0,p())}function g(){o&&(o=!1,h())}const x={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:f,trySubscribe:m,tryUnsubscribe:g,getListeners:()=>r};return x}var soe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",loe=soe?wr.useLayoutEffect:wr.useEffect;function u4(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function p9(e,t){if(u4(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i{const f=aoe(e);return{store:e,subscription:f,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),u=wr.useMemo(()=>e.getState(),[e]);loe(()=>{const{subscription:f}=s;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),u!==e.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[s,u]);const c=t||Ea;return wr.createElement(c.Provider,{value:s},n)}var coe=uoe;function h9(e=Ea){const t=e===Ea?f9:Ow(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var foe=h9();function doe(e=Ea){const t=e===Ea?foe:h9(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Dr=doe();toe(Zie.useSyncExternalStoreWithSelector);function wn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var poe=typeof Symbol=="function"&&Symbol.observable||"@@observable",c4=poe,i1=()=>Math.random().toString(36).substring(7).split("").join("."),hoe={INIT:`@@redux/INIT${i1()}`,REPLACE:`@@redux/REPLACE${i1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i1()}`},M0=hoe;function Iw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Mw(e,t,n){if(typeof e!="function")throw new Error(wn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(wn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(wn(1));return n(Mw)(e,t)}let r=e,i=t,o=new Map,s=o,u=0,c=!1;function f(){s===o&&(s=new Map,o.forEach((T,S)=>{s.set(S,T)}))}function p(){if(c)throw new Error(wn(3));return i}function h(T){if(typeof T!="function")throw new Error(wn(4));if(c)throw new Error(wn(5));let S=!0;f();const y=u++;return s.set(y,T),function(){if(S){if(c)throw new Error(wn(6));S=!1,f(),s.delete(y),o=null}}}function m(T){if(!Iw(T))throw new Error(wn(7));if(typeof T.type>"u")throw new Error(wn(8));if(typeof T.type!="string")throw new Error(wn(17));if(c)throw new Error(wn(9));try{c=!0,i=r(i,T)}finally{c=!1}return(o=s).forEach(y=>{y()}),T}function g(T){if(typeof T!="function")throw new Error(wn(10));r=T,m({type:M0.REPLACE})}function x(){const T=h;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(wn(11));function y(){const P=S;P.next&&P.next(p())}return y(),{unsubscribe:T(y)}},[c4](){return this}}}return m({type:M0.INIT}),{dispatch:m,subscribe:h,getState:p,replaceReducer:g,[c4]:x}}function moe(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:M0.INIT})>"u")throw new Error(wn(12));if(typeof n(void 0,{type:M0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(wn(13))})}function voe(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw u&&u.type,new Error(wn(14));f[h]=x,c=c||x!==g}return c=c||r.length!==Object.keys(s).length,c?f:s}}function $0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function goe(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(wn(15))};const s={getState:i.getState,dispatch:(c,...f)=>o(c,...f)},u=e.map(c=>c(s));return o=$0(...u)(i.dispatch),{...i,dispatch:o}}}function yoe(e){return Iw(e)&&"type"in e&&typeof e.type=="string"}var m9=Symbol.for("immer-nothing"),f4=Symbol.for("immer-draftable"),Rr=Symbol.for("immer-state");function yi(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mu=Object.getPrototypeOf;function Pa(e){return!!e&&!!e[Rr]}function Oo(e){var t;return e?v9(e)||Array.isArray(e)||!!e[f4]||!!((t=e.constructor)!=null&&t[f4])||Ym(e)||Xm(e):!1}var boe=Object.prototype.constructor.toString();function v9(e){if(!e||typeof e!="object")return!1;const t=mu(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===boe}function F0(e,t){qm(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function qm(e){const t=e[Rr];return t?t.type_:Array.isArray(e)?1:Ym(e)?2:Xm(e)?3:0}function eb(e,t){return qm(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function g9(e,t,n){const r=qm(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function xoe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ym(e){return e instanceof Map}function Xm(e){return e instanceof Set}function Ja(e){return e.copy_||e.base_}function tb(e,t){if(Ym(e))return new Map(e);if(Xm(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&v9(e))return mu(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Rr];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=woe),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>$w(r,!0))),e}function woe(){yi(2)}function Qm(e){return Object.isFrozen(e)}var Soe={};function As(e){const t=Soe[e];return t||yi(0,e),t}var If;function y9(){return If}function _oe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function d4(e,t){t&&(As("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function nb(e){rb(e),e.drafts_.forEach(Coe),e.drafts_=null}function rb(e){e===If&&(If=e.parent_)}function p4(e){return If=_oe(If,e)}function Coe(e){const t=e[Rr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function h4(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Rr].modified_&&(nb(t),yi(4)),Oo(e)&&(e=D0(t,e),t.parent_||L0(t,e)),t.patches_&&As("Patches").generateReplacementPatches_(n[Rr].base_,e,t.patches_,t.inversePatches_)):e=D0(t,n,[]),nb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m9?e:void 0}function D0(e,t,n){if(Qm(t))return t;const r=t[Rr];if(!r)return F0(t,(i,o)=>m4(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return L0(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),F0(o,(u,c)=>m4(e,r,i,u,c,n,s)),L0(e,i,!1),n&&e.patches_&&As("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function m4(e,t,n,r,i,o,s){if(Pa(i)){const u=o&&t&&t.type_!==3&&!eb(t.assigned_,r)?o.concat(r):void 0,c=D0(e,i,u);if(g9(n,r,c),Pa(c))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Oo(i)&&!Qm(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;D0(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&L0(e,i)}}function L0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$w(t,n)}function koe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:y9(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Fw;n&&(i=[r],o=Mf);const{revoke:s,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=s,u}var Fw={get(e,t){if(t===Rr)return e;const n=Ja(e);if(!eb(n,t))return Toe(e,n,t);const r=n[t];return e.finalized_||!Oo(r)?r:r===o1(e.base_,t)?(a1(e),e.copy_[t]=ob(r,e)):r},has(e,t){return t in Ja(e)},ownKeys(e){return Reflect.ownKeys(Ja(e))},set(e,t,n){const r=b9(Ja(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=o1(Ja(e),t),o=i==null?void 0:i[Rr];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(xoe(n,i)&&(n!==void 0||eb(e.base_,t)))return!0;a1(e),ib(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return o1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,a1(e),ib(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ja(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){yi(11)},getPrototypeOf(e){return mu(e.base_)},setPrototypeOf(){yi(12)}},Mf={};F0(Fw,(e,t)=>{Mf[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Mf.deleteProperty=function(e,t){return Mf.set.call(this,e,t,void 0)};Mf.set=function(e,t,n){return Fw.set.call(this,e[0],t,n,e[0])};function o1(e,t){const n=e[Rr];return(n?Ja(n):e)[t]}function Toe(e,t,n){var i;const r=b9(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function b9(e,t){if(!(t in e))return;let n=mu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=mu(n)}}function ib(e){e.modified_||(e.modified_=!0,e.parent_&&ib(e.parent_))}function a1(e){e.copy_||(e.copy_=tb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Eoe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(c=o,...f){return s.produce(c,p=>n.call(this,p,...f))}}typeof n!="function"&&yi(6),r!==void 0&&typeof r!="function"&&yi(7);let i;if(Oo(t)){const o=p4(this),s=ob(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?nb(o):rb(o)}return d4(o,r),h4(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===m9&&(i=void 0),this.autoFreeze_&&$w(i,!0),r){const o=[],s=[];As("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else yi(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Oo(e)||yi(8),Pa(e)&&(e=x9(e));const t=p4(this),n=ob(e,void 0);return n[Rr].isManual_=!0,rb(t),n}finishDraft(e,t){const n=e&&e[Rr];(!n||!n.isManual_)&&yi(9);const{scope_:r}=n;return d4(r,t),h4(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=As("Patches").applyPatches_;return Pa(e)?r(e,t):this.produce(e,i=>r(i,t))}};function ob(e,t){const n=Ym(e)?As("MapSet").proxyMap_(e,t):Xm(e)?As("MapSet").proxySet_(e,t):koe(e,t);return(t?t.scope_:y9()).drafts_.push(n),n}function x9(e){return Pa(e)||yi(10,e),w9(e)}function w9(e){if(!Oo(e)||Qm(e))return e;const t=e[Rr];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=tb(e,t.scope_.immer_.useStrictShallowCopy_)}else n=tb(e,!0);return F0(n,(r,i)=>{g9(n,r,w9(i))}),t&&(t.finalized_=!1),n}var Or=new Eoe,S9=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseStrictShallowCopy.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function Poe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Aoe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Roe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var v4=e=>Array.isArray(e)?e:[e];function Ooe(e){const t=Array.isArray(e[0])?e[0]:e;return Roe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Ioe(e,t){const n=[],{length:r}=e;for(let i=0;i{n=Xp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function _9(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,u,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),Poe(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const p={...n,...c},{memoize:h,memoizeOptions:m=[],argsMemoize:g=Dw,argsMemoizeOptions:x=[],devModeChecks:b={}}=p,T=v4(m),S=v4(x),y=Ooe(i),C=h(function(){return o++,f.apply(null,arguments)},...T),P=g(function(){s++;const $=Ioe(y,arguments);return u=C.apply(null,$),u},...S);return Object.assign(P,{resultFunc:f,memoizedResultFunc:C,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:h,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var Doe=_9(Dw),Loe=Object.assign((e,t=Doe)=>{Aoe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,u,c)=>(s[n[c]]=u,s),{}))},{withTypes:()=>Loe});function C9(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var joe=C9(),zoe=C9,Noe=(...e)=>{const t=_9(...e),n=Object.assign((...r)=>{const i=t(...r),o=(s,...u)=>i(Pa(s)?x9(s):s,...u);return Object.assign(o,i),o},{withTypes:()=>n});return n};Noe(Dw);var Boe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$0:$0.apply(null,arguments)},Voe=e=>e&&typeof e.match=="function";function _o(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(cr(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>yoe(r)&&r.type===e,n}var k9=class Ec extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ec.prototype)}static get[Symbol.species](){return Ec}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ec(...t[0].concat(this)):new Ec(...t.concat(this))}};function y4(e){return Oo(e)?S9(e,()=>{}):e}function b4(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(cr(10));const r=n.insert(t,e);return e.set(t,r),r}function Woe(e){return typeof e=="boolean"}var Uoe=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new k9;return n&&(Woe(n)?s.push(joe):s.push(zoe(n.extraArgument))),s},Hoe="RTK_autoBatch",T9=e=>t=>{setTimeout(t,e)},Goe=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T9(10),Koe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?Goe:e.type==="callback"?e.queueNotification:T9(e.timeout),f=()=>{s=!1,o&&(o=!1,u.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),m=r.subscribe(h);return u.add(p),()=>{m(),u.delete(p)}},dispatch(p){var h;try{return i=!((h=p==null?void 0:p.meta)!=null&&h[Hoe]),o=!i,o&&(s||(s=!0,c(f))),r.dispatch(p)}finally{i=!0}}})},qoe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new k9(e);return r&&i.push(Koe(typeof r=="object"?r:void 0)),i},Yoe=!0;function Xoe(e){const t=Uoe(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Iw(n))u=voe(n);else throw new Error(cr(1));let c;typeof r=="function"?c=r(t):c=t();let f=$0;i&&(f=Boe({trace:!Yoe,...typeof i=="object"&&i}));const p=goe(...c),h=qoe(p);let m=typeof s=="function"?s(h):h();const g=f(...m);return Mw(u,o,g)}function E9(e){const t={},n=[];let r;const i={addCase(o,s){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(cr(28));if(u in t)throw new Error(cr(29));return t[u]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Qoe(e){return typeof e=="function"}function Zoe(e,t){let[n,r,i]=E9(t),o;if(Qoe(e))o=()=>y4(e());else{const u=y4(e);o=()=>u}function s(u=o(),c){let f=[n[c.type],...r.filter(({matcher:p})=>p(c)).map(({reducer:p})=>p)];return f.filter(p=>!!p).length===0&&(f=[i]),f.reduce((p,h)=>{if(h)if(Pa(p)){const g=h(p,c);return g===void 0?p:g}else{if(Oo(p))return S9(p,m=>h(m,c));{const m=h(p,c);if(m===void 0){if(p===null)return p;throw new Error(cr(9))}return m}}return p},u)}return s.getInitialState=o,s}var Joe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",P9=(e=21)=>{let t="",n=e;for(;n--;)t+=Joe[Math.random()*64|0];return t},eae=(e,t)=>Voe(e)?e.match(t):e(t);function tae(...e){return t=>e.some(n=>eae(n,t))}var nae=["name","message","stack","code"],s1=class{constructor(e,t){Lg(this,"_type");this.payload=e,this.meta=t}},x4=class{constructor(e,t){Lg(this,"_type");this.payload=e,this.meta=t}},rae=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of nae)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Zm=(()=>{function e(t,n,r){const i=_o(t+"/fulfilled",(c,f,p,h)=>({payload:c,meta:{...h||{},arg:p,requestId:f,requestStatus:"fulfilled"}})),o=_o(t+"/pending",(c,f,p)=>({payload:void 0,meta:{...p||{},arg:f,requestId:c,requestStatus:"pending"}})),s=_o(t+"/rejected",(c,f,p,h,m)=>({payload:h,error:(r&&r.serializeError||rae)(c||"Rejected"),meta:{...m||{},arg:p,requestId:f,rejectedWithValue:!!h,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c){return(f,p,h)=>{const m=r!=null&&r.idGenerator?r.idGenerator(c):P9(),g=new AbortController;let x,b;function T(y){b=y,g.abort()}const S=async function(){var P,O;let y;try{let $=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,c,{getState:p,extra:h});if(oae($)&&($=await $),$===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const I=new Promise((F,V)=>{x=()=>{V({name:"AbortError",message:b||"Aborted"})},g.signal.addEventListener("abort",x)});f(o(m,c,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:m,arg:c},{getState:p,extra:h}))),y=await Promise.race([I,Promise.resolve(n(c,{dispatch:f,getState:p,extra:h,requestId:m,signal:g.signal,abort:T,rejectWithValue:(F,V)=>new s1(F,V),fulfillWithValue:(F,V)=>new x4(F,V)})).then(F=>{if(F instanceof s1)throw F;return F instanceof x4?i(F.payload,m,c,F.meta):i(F,m,c)})])}catch($){y=$ instanceof s1?s(null,m,c,$.payload,$.meta):s($,m,c)}finally{x&&g.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&s.match(y)&&y.meta.condition||f(y),y}();return Object.assign(S,{abort:T,requestId:m,arg:c,unwrap(){return S.then(iae)}})}}return Object.assign(u,{pending:o,rejected:s,fulfilled:i,settled:tae(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function iae(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function oae(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var aae=Symbol.for("rtk-slice-createasyncthunk");function sae(e,t){return`${e}/${t}`}function lae({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[aae];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(cr(11));typeof process<"u";const u=(typeof i.reducers=="function"?i.reducers(cae()):i.reducers)||{},c=Object.keys(u),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(C,P){const O=typeof C=="string"?C:C.type;if(!O)throw new Error(cr(12));if(O in f.sliceCaseReducersByType)throw new Error(cr(13));return f.sliceCaseReducersByType[O]=P,p},addMatcher(C,P){return f.sliceMatchers.push({matcher:C,reducer:P}),p},exposeAction(C,P){return f.actionCreators[C]=P,p},exposeCaseReducer(C,P){return f.sliceCaseReducersByName[C]=P,p}};c.forEach(C=>{const P=u[C],O={reducerName:C,type:sae(o,C),createNotation:typeof i.reducers=="function"};dae(P)?hae(O,P,p,t):fae(O,P,p)});function h(){const[C={},P=[],O=void 0]=typeof i.extraReducers=="function"?E9(i.extraReducers):[i.extraReducers],$={...C,...f.sliceCaseReducersByType};return Zoe(i.initialState,I=>{for(let F in $)I.addCase(F,$[F]);for(let F of f.sliceMatchers)I.addMatcher(F.matcher,F.reducer);for(let F of P)I.addMatcher(F.matcher,F.reducer);O&&I.addDefaultCase(O)})}const m=C=>C,g=new Map;let x;function b(C,P){return x||(x=h()),x(C,P)}function T(){return x||(x=h()),x.getInitialState()}function S(C,P=!1){function O(I){let F=I[C];return typeof F>"u"&&P&&(F=T()),F}function $(I=m){const F=b4(g,P,{insert:()=>new WeakMap});return b4(F,I,{insert:()=>{const V={};for(const[B,X]of Object.entries(i.selectors??{}))V[B]=uae(X,I,T,P);return V}})}return{reducerPath:C,getSelectors:$,get selectors(){return $(O)},selectSlice:O}}const y={name:o,reducer:b,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:T,...S(s),injectInto(C,{reducerPath:P,...O}={}){const $=P??s;return C.inject({reducerPath:$,reducer:b},O),{...y,...S($,!0)}}};return y}}function uae(e,t,n,r){function i(o,...s){let u=t(o);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var A9=lae();function cae(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function fae({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!pae(r))throw new Error(cr(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?_o(e,s):_o(e))}function dae(e){return e._reducerDefinitionType==="asyncThunk"}function pae(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hae({type:e,reducerName:t},n,r,i){if(!i)throw new Error(cr(18));const{payloadCreator:o,fulfilled:s,pending:u,rejected:c,settled:f,options:p}=n,h=i(e,o,p);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),u&&r.addCase(h.pending,u),c&&r.addCase(h.rejected,c),f&&r.addMatcher(h.settled,f),r.exposeCaseReducer(t,{fulfilled:s||Qp,pending:u||Qp,rejected:c||Qp,settled:f||Qp})}function Qp(){}var mae=(e,t)=>{if(typeof e!="function")throw new Error(cr(32))},Lw="listenerMiddleware",vae=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=_o(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(cr(21));return mae(o),{predicate:i,type:t,effect:o}},gae=Object.assign(e=>{const{type:t,predicate:n,effect:r}=vae(e);return{id:P9(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(cr(22))}}},{withTypes:()=>gae}),yae=Object.assign(_o(`${Lw}/add`),{withTypes:()=>yae});_o(`${Lw}/removeAll`);var bae=Object.assign(_o(`${Lw}/remove`),{withTypes:()=>bae});function cr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var j0={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */j0.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,g=4,w=1,b=2,T=1,S=2,y=4,C=8,P=16,O=32,$=64,I=128,F=256,V=512,B=30,X="...",pe=800,he=16,ge=1,Ae=2,se=3,G=1/0,W=9007199254740991,J=17976931348623157e292,te=NaN,ne=4294967295,be=ne-1,ae=ne>>>1,ce=[["ary",I],["bind",T],["bindKey",S],["curry",C],["curryRight",P],["flip",V],["partial",O],["partialRight",$],["rearg",F]],le="[object Arguments]",Te="[object Array]",et="[object AsyncFunction]",Ue="[object Boolean]",ct="[object Date]",_t="[object DOMException]",Xe="[object Error]",Re="[object Function]",bt="[object GeneratorFunction]",Oe="[object Map]",me="[object Number]",Qe="[object Null]",Ve="[object Object]",Pt="[object Promise]",rn="[object Proxy]",xt="[object RegExp]",Ct="[object Set]",Ut="[object String]",$t="[object Symbol]",qn="[object Undefined]",Dn="[object WeakMap]",_i="[object WeakSet]",Yn="[object ArrayBuffer]",ee="[object DataView]",je="[object Float32Array]",ft="[object Float64Array]",Ht="[object Int8Array]",re="[object Int16Array]",xe="[object Int32Array]",Xn="[object Uint8Array]",on="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Lr="[object Uint32Array]",_u=/\b__p \+= '';/g,$s=/\b(__p \+=) '' \+/g,Cu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,Qn=/[&<>"']/g,iv=RegExp(Gi.source),Ki=RegExp(Qn.source),ov=/<%-([\s\S]+?)%>/g,av=/<%([\s\S]+?)%>/g,ad=/<%=([\s\S]+?)%>/g,sv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lv=/^\w*$/,oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ku=/[\\^$.*+?()[\]{}|]/g,uv=RegExp(ku.source),Tu=/^\s+/,cv=/\s/,fv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mo=/\{\n\/\* \[wrapped with (.+)\] \*/,dv=/,? & /,pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hv=/[()=,{}\[\]\/\s]/,mv=/\\(\\)?/g,vv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,gv=/^[-+]0x[0-9a-f]+$/i,yv=/^0b[01]+$/i,bv=/^\[object .+?Constructor\]$/,xv=/^0o[0-7]+$/i,wv=/^(?:0|[1-9]\d*)$/,Sv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$o=/($^)/,_v=/['\n\r\u2028\u2029\\]/g,Yi="\\ud800-\\udfff",Eu="\\u0300-\\u036f",Cv="\\ufe20-\\ufe2f",Fs="\\u20d0-\\u20ff",Pu=Eu+Cv+Fs,sd="\\u2700-\\u27bf",ld="a-z\\xdf-\\xf6\\xf8-\\xff",kv="\\xac\\xb1\\xd7\\xf7",ud="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tv="\\u2000-\\u206f",Ev=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cd="A-Z\\xc0-\\xd6\\xd8-\\xde",fd="\\ufe0e\\ufe0f",dd=kv+ud+Tv+Ev,Au="['’]",Pv="["+Yi+"]",pd="["+dd+"]",Ds="["+Pu+"]",hd="\\d+",Ls="["+sd+"]",js="["+ld+"]",md="[^"+Yi+dd+hd+sd+ld+cd+"]",Ru="\\ud83c[\\udffb-\\udfff]",vd="(?:"+Ds+"|"+Ru+")",gd="[^"+Yi+"]",Ou="(?:\\ud83c[\\udde6-\\uddff]){2}",Iu="[\\ud800-\\udbff][\\udc00-\\udfff]",Xi="["+cd+"]",yd="\\u200d",bd="(?:"+js+"|"+md+")",Av="(?:"+Xi+"|"+md+")",zs="(?:"+Au+"(?:d|ll|m|re|s|t|ve))?",xd="(?:"+Au+"(?:D|LL|M|RE|S|T|VE))?",wd=vd+"?",Sd="["+fd+"]?",Ns="(?:"+yd+"(?:"+[gd,Ou,Iu].join("|")+")"+Sd+wd+")*",Mu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bs=Sd+wd+Ns,Rv="(?:"+[Ls,Ou,Iu].join("|")+")"+Bs,_d="(?:"+[gd+Ds+"?",Ds,Ou,Iu,Pv].join("|")+")",Fu=RegExp(Au,"g"),Cd=RegExp(Ds,"g"),ai=RegExp(Ru+"(?="+Ru+")|"+_d+Bs,"g"),La=RegExp([Xi+"?"+js+"+"+zs+"(?="+[pd,Xi,"$"].join("|")+")",Av+"+"+xd+"(?="+[pd,Xi+bd,"$"].join("|")+")",Xi+"?"+bd+"+"+zs,Xi+"+"+xd,$u,Mu,hd,Rv].join("|"),"g"),Ov=RegExp("["+yd+Yi+Pu+fd+"]"),kd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Iv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Td=-1,wt={};wt[je]=wt[ft]=wt[Ht]=wt[re]=wt[xe]=wt[Xn]=wt[on]=wt[Gt]=wt[Lr]=!0,wt[le]=wt[Te]=wt[Yn]=wt[Ue]=wt[ee]=wt[ct]=wt[Xe]=wt[Re]=wt[Oe]=wt[me]=wt[Ve]=wt[xt]=wt[Ct]=wt[Ut]=wt[Dn]=!1;var yt={};yt[le]=yt[Te]=yt[Yn]=yt[ee]=yt[Ue]=yt[ct]=yt[je]=yt[ft]=yt[Ht]=yt[re]=yt[xe]=yt[Oe]=yt[me]=yt[Ve]=yt[xt]=yt[Ct]=yt[Ut]=yt[$t]=yt[Xn]=yt[on]=yt[Gt]=yt[Lr]=!0,yt[Xe]=yt[Re]=yt[Dn]=!1;var Ed={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Mv={"&":"&","<":"<",">":">",'"':""","'":"'"},R={"&":"&","<":"<",">":">",""":'"',"'":"'"},L={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,ue=parseInt,He=typeof co=="object"&&co&&co.Object===Object&&co,dt=typeof self=="object"&&self&&self.Object===Object&&self,De=He||dt||Function("return this")(),Ne=t&&!t.nodeType&&t,nt=Ne&&!0&&e&&!e.nodeType&&e,Ln=nt&&nt.exports===Ne,yn=Ln&&He.process,fn=function(){try{var z=nt&&nt.require&&nt.require("util").types;return z||yn&&yn.binding&&yn.binding("util")}catch{}}(),Vs=fn&&fn.isArrayBuffer,Ws=fn&&fn.isDate,Du=fn&&fn.isMap,eS=fn&&fn.isRegExp,tS=fn&&fn.isSet,nS=fn&&fn.isTypedArray;function pr(z,K,H){switch(H.length){case 0:return z.call(K);case 1:return z.call(K,H[0]);case 2:return z.call(K,H[0],H[1]);case 3:return z.call(K,H[0],H[1],H[2])}return z.apply(K,H)}function X9(z,K,H,fe){for(var Ie=-1,rt=z==null?0:z.length;++Ie-1}function $v(z,K,H){for(var fe=-1,Ie=z==null?0:z.length;++fe-1;);return H}function cS(z,K){for(var H=z.length;H--&&Us(K,z[H],0)>-1;);return H}function oR(z,K){for(var H=z.length,fe=0;H--;)z[H]===K&&++fe;return fe}var aR=jv(Ed),sR=jv(Mv);function lR(z){return"\\"+L[z]}function uR(z,K){return z==null?n:z[K]}function Hs(z){return Ov.test(z)}function cR(z){return kd.test(z)}function fR(z){for(var K,H=[];!(K=z.next()).done;)H.push(K.value);return H}function Vv(z){var K=-1,H=Array(z.size);return z.forEach(function(fe,Ie){H[++K]=[Ie,fe]}),H}function fS(z,K){return function(H){return z(K(H))}}function Lo(z,K){for(var H=-1,fe=z.length,Ie=0,rt=[];++H-1}function ZR(a,l){var d=this.__data__,v=Hd(d,a);return v<0?(++this.size,d.push([a,l])):d[v][1]=l,this}Qi.prototype.clear=qR,Qi.prototype.delete=YR,Qi.prototype.get=XR,Qi.prototype.has=QR,Qi.prototype.set=ZR;function Zi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function Br(a,l,d,v,k,A){var M,D=l&h,N=l&m,q=l&g;if(d&&(M=k?d(a,v,k,A):d(a)),M!==n)return M;if(!Ft(a))return a;var Y=$e(a);if(Y){if(M=nI(a),!D)return Zn(a,M)}else{var Q=Pn(a),ie=Q==Re||Q==bt;if(Wo(a))return KS(a,D);if(Q==Ve||Q==le||ie&&!k){if(M=N||ie?{}:d3(a),!D)return N?HO(a,hO(M,a)):UO(a,_S(M,a))}else{if(!yt[Q])return k?a:{};M=rI(a,Q,D)}}A||(A=new li);var ve=A.get(a);if(ve)return ve;A.set(a,M),B3(a)?a.forEach(function(ke){M.add(Br(ke,l,d,ke,a,A))}):z3(a)&&a.forEach(function(ke,Ge){M.set(Ge,Br(ke,l,d,Ge,a,A))});var Ce=q?N?hg:pg:N?er:dn,ze=Y?n:Ce(a);return jr(ze||a,function(ke,Ge){ze&&(Ge=ke,ke=a[Ge]),Wu(M,Ge,Br(ke,l,d,Ge,a,A))}),M}function mO(a){var l=dn(a);return function(d){return CS(d,a,l)}}function CS(a,l,d){var v=d.length;if(a==null)return!v;for(a=St(a);v--;){var k=d[v],A=l[k],M=a[k];if(M===n&&!(k in a)||!A(M))return!1}return!0}function kS(a,l,d){if(typeof a!="function")throw new zr(s);return Xu(function(){a.apply(n,d)},l)}function Uu(a,l,d,v){var k=-1,A=Pd,M=!0,D=a.length,N=[],q=l.length;if(!D)return N;d&&(l=It(l,hr(d))),v?(A=$v,M=!1):l.length>=i&&(A=Lu,M=!1,l=new Na(l));e:for(;++kk?0:k+d),v=v===n||v>k?k:Le(v),v<0&&(v+=k),v=d>v?0:W3(v);d0&&d(D)?l>1?bn(D,l-1,d,v,k):Do(k,D):v||(k[k.length]=D)}return k}var Yv=JS(),PS=JS(!0);function Ci(a,l){return a&&Yv(a,l,dn)}function Xv(a,l){return a&&PS(a,l,dn)}function Kd(a,l){return Fo(l,function(d){return ro(a[d])})}function Va(a,l){l=Bo(l,a);for(var d=0,v=l.length;a!=null&&dl}function yO(a,l){return a!=null&&pt.call(a,l)}function bO(a,l){return a!=null&&l in St(a)}function xO(a,l,d){return a>=En(l,d)&&a=120&&Y.length>=120)?new Na(M&&Y):n}Y=a[0];var Q=-1,ie=D[0];e:for(;++Q-1;)D!==a&&jd.call(D,N,1),jd.call(a,N,1);return a}function zS(a,l){for(var d=a?l.length:0,v=d-1;d--;){var k=l[d];if(d==v||k!==A){var A=k;no(k)?jd.call(a,k,1):ag(a,k)}}return a}function rg(a,l){return a+Bd(bS()*(l-a+1))}function MO(a,l,d,v){for(var k=-1,A=sn(Nd((l-a)/(d||1)),0),M=H(A);A--;)M[v?A:++k]=a,a+=d;return M}function ig(a,l){var d="";if(!a||l<1||l>W)return d;do l%2&&(d+=a),l=Bd(l/2),l&&(a+=a);while(l);return d}function Be(a,l){return wg(m3(a,l,tr),a+"")}function $O(a){return SS(nl(a))}function FO(a,l){var d=nl(a);return ip(d,Ba(l,0,d.length))}function Ku(a,l,d,v){if(!Ft(a))return a;l=Bo(l,a);for(var k=-1,A=l.length,M=A-1,D=a;D!=null&&++kk?0:k+l),d=d>k?k:d,d<0&&(d+=k),k=l>d?0:d-l>>>0,l>>>=0;for(var A=H(k);++v>>1,M=a[A];M!==null&&!vr(M)&&(d?M<=l:M=i){var q=l?null:YO(a);if(q)return Rd(q);M=!1,k=Lu,N=new Na}else N=l?[]:D;e:for(;++v=v?a:Vr(a,l,d)}var GS=TR||function(a){return De.clearTimeout(a)};function KS(a,l){if(l)return a.slice();var d=a.length,v=hS?hS(d):new a.constructor(d);return a.copy(v),v}function cg(a){var l=new a.constructor(a.byteLength);return new Dd(l).set(new Dd(a)),l}function NO(a,l){var d=l?cg(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function BO(a){var l=new a.constructor(a.source,qi.exec(a));return l.lastIndex=a.lastIndex,l}function VO(a){return Vu?St(Vu.call(a)):{}}function qS(a,l){var d=l?cg(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function YS(a,l){if(a!==l){var d=a!==n,v=a===null,k=a===a,A=vr(a),M=l!==n,D=l===null,N=l===l,q=vr(l);if(!D&&!q&&!A&&a>l||A&&M&&N&&!D&&!q||v&&M&&N||!d&&N||!k)return 1;if(!v&&!A&&!q&&a=D)return N;var q=d[v];return N*(q=="desc"?-1:1)}}return a.index-l.index}function XS(a,l,d,v){for(var k=-1,A=a.length,M=d.length,D=-1,N=l.length,q=sn(A-M,0),Y=H(N+q),Q=!v;++D1?d[k-1]:n,M=k>2?d[2]:n;for(A=a.length>3&&typeof A=="function"?(k--,A):n,M&&zn(d[0],d[1],M)&&(A=k<3?n:A,k=1),l=St(l);++v-1?k[A?l[M]:M]:n}}function n3(a){return to(function(l){var d=l.length,v=d,k=Nr.prototype.thru;for(a&&l.reverse();v--;){var A=l[v];if(typeof A!="function")throw new zr(s);if(k&&!M&&np(A)=="wrapper")var M=new Nr([],!0)}for(v=M?v:d;++v1&&Ze.reverse(),Y&&ND))return!1;var q=A.get(a),Y=A.get(l);if(q&&Y)return q==l&&Y==a;var Q=-1,ie=!0,ve=d&b?new Na:n;for(A.set(a,l),A.set(l,a);++Q1?"& ":"")+l[v],l=l.join(d>2?", ":" "),a.replace(fv,`{ + */j0.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,g=4,x=1,b=2,T=1,S=2,y=4,C=8,P=16,O=32,$=64,I=128,F=256,V=512,B=30,X="...",pe=800,he=16,ge=1,Ae=2,se=3,G=1/0,W=9007199254740991,J=17976931348623157e292,te=NaN,ne=4294967295,be=ne-1,ae=ne>>>1,ce=[["ary",I],["bind",T],["bindKey",S],["curry",C],["curryRight",P],["flip",V],["partial",O],["partialRight",$],["rearg",F]],le="[object Arguments]",Te="[object Array]",et="[object AsyncFunction]",Ue="[object Boolean]",ft="[object Date]",_t="[object DOMException]",Xe="[object Error]",Re="[object Function]",bt="[object GeneratorFunction]",Oe="[object Map]",me="[object Number]",Qe="[object Null]",Ve="[object Object]",Pt="[object Promise]",rn="[object Proxy]",xt="[object RegExp]",Ct="[object Set]",Ut="[object String]",$t="[object Symbol]",qn="[object Undefined]",Dn="[object WeakMap]",_i="[object WeakSet]",Yn="[object ArrayBuffer]",ee="[object DataView]",je="[object Float32Array]",dt="[object Float64Array]",Ht="[object Int8Array]",re="[object Int16Array]",xe="[object Int32Array]",Xn="[object Uint8Array]",on="[object Uint8ClampedArray]",Gt="[object Uint16Array]",Lr="[object Uint32Array]",_u=/\b__p \+= '';/g,Fs=/\b(__p \+=) '' \+/g,Cu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,Qn=/[&<>"']/g,iv=RegExp(Gi.source),Ki=RegExp(Qn.source),ov=/<%-([\s\S]+?)%>/g,av=/<%([\s\S]+?)%>/g,ad=/<%=([\s\S]+?)%>/g,sv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lv=/^\w*$/,oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ku=/[\\^$.*+?()[\]{}|]/g,uv=RegExp(ku.source),Tu=/^\s+/,cv=/\s/,fv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mo=/\{\n\/\* \[wrapped with (.+)\] \*/,dv=/,? & /,pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hv=/[()=,{}\[\]\/\s]/,mv=/\\(\\)?/g,vv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,gv=/^[-+]0x[0-9a-f]+$/i,yv=/^0b[01]+$/i,bv=/^\[object .+?Constructor\]$/,xv=/^0o[0-7]+$/i,wv=/^(?:0|[1-9]\d*)$/,Sv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$o=/($^)/,_v=/['\n\r\u2028\u2029\\]/g,Yi="\\ud800-\\udfff",Eu="\\u0300-\\u036f",Cv="\\ufe20-\\ufe2f",Ds="\\u20d0-\\u20ff",Pu=Eu+Cv+Ds,sd="\\u2700-\\u27bf",ld="a-z\\xdf-\\xf6\\xf8-\\xff",kv="\\xac\\xb1\\xd7\\xf7",ud="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tv="\\u2000-\\u206f",Ev=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",cd="A-Z\\xc0-\\xd6\\xd8-\\xde",fd="\\ufe0e\\ufe0f",dd=kv+ud+Tv+Ev,Au="['’]",Pv="["+Yi+"]",pd="["+dd+"]",Ls="["+Pu+"]",hd="\\d+",js="["+sd+"]",zs="["+ld+"]",md="[^"+Yi+dd+hd+sd+ld+cd+"]",Ru="\\ud83c[\\udffb-\\udfff]",vd="(?:"+Ls+"|"+Ru+")",gd="[^"+Yi+"]",Ou="(?:\\ud83c[\\udde6-\\uddff]){2}",Iu="[\\ud800-\\udbff][\\udc00-\\udfff]",Xi="["+cd+"]",yd="\\u200d",bd="(?:"+zs+"|"+md+")",Av="(?:"+Xi+"|"+md+")",Ns="(?:"+Au+"(?:d|ll|m|re|s|t|ve))?",xd="(?:"+Au+"(?:D|LL|M|RE|S|T|VE))?",wd=vd+"?",Sd="["+fd+"]?",Bs="(?:"+yd+"(?:"+[gd,Ou,Iu].join("|")+")"+Sd+wd+")*",Mu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vs=Sd+wd+Bs,Rv="(?:"+[js,Ou,Iu].join("|")+")"+Vs,_d="(?:"+[gd+Ls+"?",Ls,Ou,Iu,Pv].join("|")+")",Fu=RegExp(Au,"g"),Cd=RegExp(Ls,"g"),ai=RegExp(Ru+"(?="+Ru+")|"+_d+Vs,"g"),La=RegExp([Xi+"?"+zs+"+"+Ns+"(?="+[pd,Xi,"$"].join("|")+")",Av+"+"+xd+"(?="+[pd,Xi+bd,"$"].join("|")+")",Xi+"?"+bd+"+"+Ns,Xi+"+"+xd,$u,Mu,hd,Rv].join("|"),"g"),Ov=RegExp("["+yd+Yi+Pu+fd+"]"),kd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Iv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Td=-1,wt={};wt[je]=wt[dt]=wt[Ht]=wt[re]=wt[xe]=wt[Xn]=wt[on]=wt[Gt]=wt[Lr]=!0,wt[le]=wt[Te]=wt[Yn]=wt[Ue]=wt[ee]=wt[ft]=wt[Xe]=wt[Re]=wt[Oe]=wt[me]=wt[Ve]=wt[xt]=wt[Ct]=wt[Ut]=wt[Dn]=!1;var yt={};yt[le]=yt[Te]=yt[Yn]=yt[ee]=yt[Ue]=yt[ft]=yt[je]=yt[dt]=yt[Ht]=yt[re]=yt[xe]=yt[Oe]=yt[me]=yt[Ve]=yt[xt]=yt[Ct]=yt[Ut]=yt[$t]=yt[Xn]=yt[on]=yt[Gt]=yt[Lr]=!0,yt[Xe]=yt[Re]=yt[Dn]=!1;var Ed={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Mv={"&":"&","<":"<",">":">",'"':""","'":"'"},R={"&":"&","<":"<",">":">",""":'"',"'":"'"},L={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,ue=parseInt,He=typeof co=="object"&&co&&co.Object===Object&&co,pt=typeof self=="object"&&self&&self.Object===Object&&self,De=He||pt||Function("return this")(),Ne=t&&!t.nodeType&&t,nt=Ne&&!0&&e&&!e.nodeType&&e,Ln=nt&&nt.exports===Ne,yn=Ln&&He.process,fn=function(){try{var z=nt&&nt.require&&nt.require("util").types;return z||yn&&yn.binding&&yn.binding("util")}catch{}}(),Ws=fn&&fn.isArrayBuffer,Us=fn&&fn.isDate,Du=fn&&fn.isMap,eS=fn&&fn.isRegExp,tS=fn&&fn.isSet,nS=fn&&fn.isTypedArray;function pr(z,K,H){switch(H.length){case 0:return z.call(K);case 1:return z.call(K,H[0]);case 2:return z.call(K,H[0],H[1]);case 3:return z.call(K,H[0],H[1],H[2])}return z.apply(K,H)}function X9(z,K,H,fe){for(var Ie=-1,rt=z==null?0:z.length;++Ie-1}function $v(z,K,H){for(var fe=-1,Ie=z==null?0:z.length;++fe-1;);return H}function cS(z,K){for(var H=z.length;H--&&Hs(K,z[H],0)>-1;);return H}function oR(z,K){for(var H=z.length,fe=0;H--;)z[H]===K&&++fe;return fe}var aR=jv(Ed),sR=jv(Mv);function lR(z){return"\\"+L[z]}function uR(z,K){return z==null?n:z[K]}function Gs(z){return Ov.test(z)}function cR(z){return kd.test(z)}function fR(z){for(var K,H=[];!(K=z.next()).done;)H.push(K.value);return H}function Vv(z){var K=-1,H=Array(z.size);return z.forEach(function(fe,Ie){H[++K]=[Ie,fe]}),H}function fS(z,K){return function(H){return z(K(H))}}function Lo(z,K){for(var H=-1,fe=z.length,Ie=0,rt=[];++H-1}function ZR(a,l){var d=this.__data__,v=Hd(d,a);return v<0?(++this.size,d.push([a,l])):d[v][1]=l,this}Qi.prototype.clear=qR,Qi.prototype.delete=YR,Qi.prototype.get=XR,Qi.prototype.has=QR,Qi.prototype.set=ZR;function Zi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function Br(a,l,d,v,k,A){var M,D=l&h,N=l&m,q=l&g;if(d&&(M=k?d(a,v,k,A):d(a)),M!==n)return M;if(!Ft(a))return a;var Y=Fe(a);if(Y){if(M=nI(a),!D)return Zn(a,M)}else{var Q=Pn(a),ie=Q==Re||Q==bt;if(Wo(a))return KS(a,D);if(Q==Ve||Q==le||ie&&!k){if(M=N||ie?{}:d3(a),!D)return N?HO(a,hO(M,a)):UO(a,_S(M,a))}else{if(!yt[Q])return k?a:{};M=rI(a,Q,D)}}A||(A=new li);var ve=A.get(a);if(ve)return ve;A.set(a,M),B3(a)?a.forEach(function(ke){M.add(Br(ke,l,d,ke,a,A))}):z3(a)&&a.forEach(function(ke,Ge){M.set(Ge,Br(ke,l,d,Ge,a,A))});var Ce=q?N?hg:pg:N?er:dn,ze=Y?n:Ce(a);return jr(ze||a,function(ke,Ge){ze&&(Ge=ke,ke=a[Ge]),Wu(M,Ge,Br(ke,l,d,Ge,a,A))}),M}function mO(a){var l=dn(a);return function(d){return CS(d,a,l)}}function CS(a,l,d){var v=d.length;if(a==null)return!v;for(a=St(a);v--;){var k=d[v],A=l[k],M=a[k];if(M===n&&!(k in a)||!A(M))return!1}return!0}function kS(a,l,d){if(typeof a!="function")throw new zr(s);return Xu(function(){a.apply(n,d)},l)}function Uu(a,l,d,v){var k=-1,A=Pd,M=!0,D=a.length,N=[],q=l.length;if(!D)return N;d&&(l=It(l,hr(d))),v?(A=$v,M=!1):l.length>=i&&(A=Lu,M=!1,l=new Na(l));e:for(;++kk?0:k+d),v=v===n||v>k?k:Le(v),v<0&&(v+=k),v=d>v?0:W3(v);d0&&d(D)?l>1?bn(D,l-1,d,v,k):Do(k,D):v||(k[k.length]=D)}return k}var Yv=JS(),PS=JS(!0);function Ci(a,l){return a&&Yv(a,l,dn)}function Xv(a,l){return a&&PS(a,l,dn)}function Kd(a,l){return Fo(l,function(d){return ro(a[d])})}function Va(a,l){l=Bo(l,a);for(var d=0,v=l.length;a!=null&&dl}function yO(a,l){return a!=null&&ht.call(a,l)}function bO(a,l){return a!=null&&l in St(a)}function xO(a,l,d){return a>=En(l,d)&&a=120&&Y.length>=120)?new Na(M&&Y):n}Y=a[0];var Q=-1,ie=D[0];e:for(;++Q-1;)D!==a&&jd.call(D,N,1),jd.call(a,N,1);return a}function zS(a,l){for(var d=a?l.length:0,v=d-1;d--;){var k=l[d];if(d==v||k!==A){var A=k;no(k)?jd.call(a,k,1):ag(a,k)}}return a}function rg(a,l){return a+Bd(bS()*(l-a+1))}function MO(a,l,d,v){for(var k=-1,A=sn(Nd((l-a)/(d||1)),0),M=H(A);A--;)M[v?A:++k]=a,a+=d;return M}function ig(a,l){var d="";if(!a||l<1||l>W)return d;do l%2&&(d+=a),l=Bd(l/2),l&&(a+=a);while(l);return d}function Be(a,l){return wg(m3(a,l,tr),a+"")}function $O(a){return SS(rl(a))}function FO(a,l){var d=rl(a);return ip(d,Ba(l,0,d.length))}function Ku(a,l,d,v){if(!Ft(a))return a;l=Bo(l,a);for(var k=-1,A=l.length,M=A-1,D=a;D!=null&&++kk?0:k+l),d=d>k?k:d,d<0&&(d+=k),k=l>d?0:d-l>>>0,l>>>=0;for(var A=H(k);++v>>1,M=a[A];M!==null&&!vr(M)&&(d?M<=l:M=i){var q=l?null:YO(a);if(q)return Rd(q);M=!1,k=Lu,N=new Na}else N=l?[]:D;e:for(;++v=v?a:Vr(a,l,d)}var GS=TR||function(a){return De.clearTimeout(a)};function KS(a,l){if(l)return a.slice();var d=a.length,v=hS?hS(d):new a.constructor(d);return a.copy(v),v}function cg(a){var l=new a.constructor(a.byteLength);return new Dd(l).set(new Dd(a)),l}function NO(a,l){var d=l?cg(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function BO(a){var l=new a.constructor(a.source,qi.exec(a));return l.lastIndex=a.lastIndex,l}function VO(a){return Vu?St(Vu.call(a)):{}}function qS(a,l){var d=l?cg(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function YS(a,l){if(a!==l){var d=a!==n,v=a===null,k=a===a,A=vr(a),M=l!==n,D=l===null,N=l===l,q=vr(l);if(!D&&!q&&!A&&a>l||A&&M&&N&&!D&&!q||v&&M&&N||!d&&N||!k)return 1;if(!v&&!A&&!q&&a=D)return N;var q=d[v];return N*(q=="desc"?-1:1)}}return a.index-l.index}function XS(a,l,d,v){for(var k=-1,A=a.length,M=d.length,D=-1,N=l.length,q=sn(A-M,0),Y=H(N+q),Q=!v;++D1?d[k-1]:n,M=k>2?d[2]:n;for(A=a.length>3&&typeof A=="function"?(k--,A):n,M&&zn(d[0],d[1],M)&&(A=k<3?n:A,k=1),l=St(l);++v-1?k[A?l[M]:M]:n}}function n3(a){return to(function(l){var d=l.length,v=d,k=Nr.prototype.thru;for(a&&l.reverse();v--;){var A=l[v];if(typeof A!="function")throw new zr(s);if(k&&!M&&np(A)=="wrapper")var M=new Nr([],!0)}for(v=M?v:d;++v1&&Ze.reverse(),Y&&ND))return!1;var q=A.get(a),Y=A.get(l);if(q&&Y)return q==l&&Y==a;var Q=-1,ie=!0,ve=d&b?new Na:n;for(A.set(a,l),A.set(l,a);++Q1?"& ":"")+l[v],l=l.join(d>2?", ":" "),a.replace(fv,`{ /* [wrapped with `+l+`] */ -`)}function oI(a){return $e(a)||Ha(a)||!!(gS&&a&&a[gS])}function no(a,l){var d=typeof a;return l=l??W,!!l&&(d=="number"||d!="symbol"&&wv.test(a))&&a>-1&&a%1==0&&a0){if(++l>=pe)return arguments[0]}else l=0;return a.apply(n,arguments)}}function ip(a,l){var d=-1,v=a.length,k=v-1;for(l=l===n?v:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,E3(a,d)});function P3(a){var l=E(a);return l.__chain__=!0,l}function v7(a,l){return l(a),a}function op(a,l){return l(a)}var g7=to(function(a){var l=a.length,d=l?a[0]:0,v=this.__wrapped__,k=function(A){return qv(A,a)};return l>1||this.__actions__.length||!(v instanceof Ke)||!no(d)?this.thru(k):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:op,args:[k],thisArg:n}),new Nr(v,this.__chain__).thru(function(A){return l&&!A.length&&A.push(n),A}))});function y7(){return P3(this)}function b7(){return new Nr(this.value(),this.__chain__)}function x7(){this.__values__===n&&(this.__values__=V3(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function w7(){return this}function S7(a){for(var l,d=this;d instanceof Ud;){var v=w3(d);v.__index__=0,v.__values__=n,l?k.__wrapped__=v:l=v;var k=v;d=d.__wrapped__}return k.__wrapped__=a,l}function _7(){var a=this.__wrapped__;if(a instanceof Ke){var l=a;return this.__actions__.length&&(l=new Ke(this)),l=l.reverse(),l.__actions__.push({func:op,args:[Sg],thisArg:n}),new Nr(l,this.__chain__)}return this.thru(Sg)}function C7(){return US(this.__wrapped__,this.__actions__)}var k7=Qd(function(a,l,d){pt.call(a,d)?++a[d]:Ji(a,d,1)});function T7(a,l,d){var v=$e(a)?rS:vO;return d&&zn(a,l,d)&&(l=n),v(a,_e(l,3))}function E7(a,l){var d=$e(a)?Fo:ES;return d(a,_e(l,3))}var P7=t3(S3),A7=t3(_3);function R7(a,l){return bn(ap(a,l),1)}function O7(a,l){return bn(ap(a,l),G)}function I7(a,l,d){return d=d===n?1:Le(d),bn(ap(a,l),d)}function A3(a,l){var d=$e(a)?jr:zo;return d(a,_e(l,3))}function R3(a,l){var d=$e(a)?Q9:TS;return d(a,_e(l,3))}var M7=Qd(function(a,l,d){pt.call(a,d)?a[d].push(l):Ji(a,d,[l])});function $7(a,l,d,v){a=Jn(a)?a:nl(a),d=d&&!v?Le(d):0;var k=a.length;return d<0&&(d=sn(k+d,0)),fp(a)?d<=k&&a.indexOf(l,d)>-1:!!k&&Us(a,l,d)>-1}var F7=Be(function(a,l,d){var v=-1,k=typeof l=="function",A=Jn(a)?H(a.length):[];return zo(a,function(M){A[++v]=k?pr(l,M,d):Hu(M,l,d)}),A}),D7=Qd(function(a,l,d){Ji(a,d,l)});function ap(a,l){var d=$e(a)?It:MS;return d(a,_e(l,3))}function L7(a,l,d,v){return a==null?[]:($e(l)||(l=l==null?[]:[l]),d=v?n:d,$e(d)||(d=d==null?[]:[d]),LS(a,l,d))}var j7=Qd(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function z7(a,l,d){var v=$e(a)?Fv:sS,k=arguments.length<3;return v(a,_e(l,4),d,k,zo)}function N7(a,l,d){var v=$e(a)?Z9:sS,k=arguments.length<3;return v(a,_e(l,4),d,k,TS)}function B7(a,l){var d=$e(a)?Fo:ES;return d(a,up(_e(l,3)))}function V7(a){var l=$e(a)?SS:$O;return l(a)}function W7(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=Le(l);var v=$e(a)?fO:FO;return v(a,l)}function U7(a){var l=$e(a)?dO:LO;return l(a)}function H7(a){if(a==null)return 0;if(Jn(a))return fp(a)?Gs(a):a.length;var l=Pn(a);return l==Oe||l==Ct?a.size:eg(a).length}function G7(a,l,d){var v=$e(a)?Dv:jO;return d&&zn(a,l,d)&&(l=n),v(a,_e(l,3))}var K7=Be(function(a,l){if(a==null)return[];var d=l.length;return d>1&&zn(a,l[0],l[1])?l=[]:d>2&&zn(l[0],l[1],l[2])&&(l=[l[0]]),LS(a,bn(l,1),[])}),sp=ER||function(){return De.Date.now()};function q7(a,l){if(typeof l!="function")throw new zr(s);return a=Le(a),function(){if(--a<1)return l.apply(this,arguments)}}function O3(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,eo(a,I,n,n,n,n,l)}function I3(a,l){var d;if(typeof l!="function")throw new zr(s);return a=Le(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var Cg=Be(function(a,l,d){var v=T;if(d.length){var k=Lo(d,el(Cg));v|=O}return eo(a,v,l,d,k)}),M3=Be(function(a,l,d){var v=T|S;if(d.length){var k=Lo(d,el(M3));v|=O}return eo(l,v,a,d,k)});function $3(a,l,d){l=d?n:l;var v=eo(a,C,n,n,n,n,n,l);return v.placeholder=$3.placeholder,v}function F3(a,l,d){l=d?n:l;var v=eo(a,P,n,n,n,n,n,l);return v.placeholder=F3.placeholder,v}function D3(a,l,d){var v,k,A,M,D,N,q=0,Y=!1,Q=!1,ie=!0;if(typeof a!="function")throw new zr(s);l=Ur(l)||0,Ft(d)&&(Y=!!d.leading,Q="maxWait"in d,A=Q?sn(Ur(d.maxWait)||0,l):A,ie="trailing"in d?!!d.trailing:ie);function ve(qt){var ci=v,oo=k;return v=k=n,q=qt,M=a.apply(oo,ci),M}function Ce(qt){return q=qt,D=Xu(Ge,l),Y?ve(qt):M}function ze(qt){var ci=qt-N,oo=qt-q,t_=l-ci;return Q?En(t_,A-oo):t_}function ke(qt){var ci=qt-N,oo=qt-q;return N===n||ci>=l||ci<0||Q&&oo>=A}function Ge(){var qt=sp();if(ke(qt))return Ze(qt);D=Xu(Ge,ze(qt))}function Ze(qt){return D=n,ie&&v?ve(qt):(v=k=n,M)}function gr(){D!==n&&GS(D),q=0,v=N=k=D=n}function Nn(){return D===n?M:Ze(sp())}function yr(){var qt=sp(),ci=ke(qt);if(v=arguments,k=this,N=qt,ci){if(D===n)return Ce(N);if(Q)return GS(D),D=Xu(Ge,l),ve(N)}return D===n&&(D=Xu(Ge,l)),M}return yr.cancel=gr,yr.flush=Nn,yr}var Y7=Be(function(a,l){return kS(a,1,l)}),X7=Be(function(a,l,d){return kS(a,Ur(l)||0,d)});function Q7(a){return eo(a,V)}function lp(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new zr(s);var d=function(){var v=arguments,k=l?l.apply(this,v):v[0],A=d.cache;if(A.has(k))return A.get(k);var M=a.apply(this,v);return d.cache=A.set(k,M)||A,M};return d.cache=new(lp.Cache||Zi),d}lp.Cache=Zi;function up(a){if(typeof a!="function")throw new zr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function Z7(a){return I3(2,a)}var J7=zO(function(a,l){l=l.length==1&&$e(l[0])?It(l[0],hr(_e())):It(bn(l,1),hr(_e()));var d=l.length;return Be(function(v){for(var k=-1,A=En(v.length,d);++k=l}),Ha=RS(function(){return arguments}())?RS:function(a){return Nt(a)&&pt.call(a,"callee")&&!vS.call(a,"callee")},$e=H.isArray,hM=Vs?hr(Vs):SO;function Jn(a){return a!=null&&cp(a.length)&&!ro(a)}function Kt(a){return Nt(a)&&Jn(a)}function mM(a){return a===!0||a===!1||Nt(a)&&jn(a)==Ue}var Wo=AR||Dg,vM=Ws?hr(Ws):_O;function gM(a){return Nt(a)&&a.nodeType===1&&!Qu(a)}function yM(a){if(a==null)return!0;if(Jn(a)&&($e(a)||typeof a=="string"||typeof a.splice=="function"||Wo(a)||tl(a)||Ha(a)))return!a.length;var l=Pn(a);if(l==Oe||l==Ct)return!a.size;if(Yu(a))return!eg(a).length;for(var d in a)if(pt.call(a,d))return!1;return!0}function bM(a,l){return Gu(a,l)}function xM(a,l,d){d=typeof d=="function"?d:n;var v=d?d(a,l):n;return v===n?Gu(a,l,n,d):!!v}function Tg(a){if(!Nt(a))return!1;var l=jn(a);return l==Xe||l==_t||typeof a.message=="string"&&typeof a.name=="string"&&!Qu(a)}function wM(a){return typeof a=="number"&&yS(a)}function ro(a){if(!Ft(a))return!1;var l=jn(a);return l==Re||l==bt||l==et||l==rn}function j3(a){return typeof a=="number"&&a==Le(a)}function cp(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=W}function Ft(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Nt(a){return a!=null&&typeof a=="object"}var z3=Du?hr(Du):kO;function SM(a,l){return a===l||Jv(a,l,vg(l))}function _M(a,l,d){return d=typeof d=="function"?d:n,Jv(a,l,vg(l),d)}function CM(a){return N3(a)&&a!=+a}function kM(a){if(lI(a))throw new Ie(o);return OS(a)}function TM(a){return a===null}function EM(a){return a==null}function N3(a){return typeof a=="number"||Nt(a)&&jn(a)==me}function Qu(a){if(!Nt(a)||jn(a)!=Ve)return!1;var l=Ld(a);if(l===null)return!0;var d=pt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Md.call(d)==_R}var Eg=eS?hr(eS):TO;function PM(a){return j3(a)&&a>=-W&&a<=W}var B3=tS?hr(tS):EO;function fp(a){return typeof a=="string"||!$e(a)&&Nt(a)&&jn(a)==Ut}function vr(a){return typeof a=="symbol"||Nt(a)&&jn(a)==$t}var tl=nS?hr(nS):PO;function AM(a){return a===n}function RM(a){return Nt(a)&&Pn(a)==Dn}function OM(a){return Nt(a)&&jn(a)==_i}var IM=tp(tg),MM=tp(function(a,l){return a<=l});function V3(a){if(!a)return[];if(Jn(a))return fp(a)?si(a):Zn(a);if(ju&&a[ju])return fR(a[ju]());var l=Pn(a),d=l==Oe?Vv:l==Ct?Rd:nl;return d(a)}function io(a){if(!a)return a===0?a:0;if(a=Ur(a),a===G||a===-G){var l=a<0?-1:1;return l*J}return a===a?a:0}function Le(a){var l=io(a),d=l%1;return l===l?d?l-d:l:0}function W3(a){return a?Ba(Le(a),0,ne):0}function Ur(a){if(typeof a=="number")return a;if(vr(a))return te;if(Ft(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=lS(a);var d=yv.test(a);return d||xv.test(a)?ue(a.slice(2),d?2:8):gv.test(a)?te:+a}function U3(a){return ki(a,er(a))}function $M(a){return a?Ba(Le(a),-W,W):a===0?a:0}function ut(a){return a==null?"":mr(a)}var FM=Zs(function(a,l){if(Yu(l)||Jn(l)){ki(l,dn(l),a);return}for(var d in l)pt.call(l,d)&&Wu(a,d,l[d])}),H3=Zs(function(a,l){ki(l,er(l),a)}),dp=Zs(function(a,l,d,v){ki(l,er(l),a,v)}),DM=Zs(function(a,l,d,v){ki(l,dn(l),a,v)}),LM=to(qv);function jM(a,l){var d=Qs(a);return l==null?d:_S(d,l)}var zM=Be(function(a,l){a=St(a);var d=-1,v=l.length,k=v>2?l[2]:n;for(k&&zn(l[0],l[1],k)&&(v=1);++d1),A}),ki(a,hg(a),d),v&&(d=Br(d,h|m|g,XO));for(var k=l.length;k--;)ag(d,l[k]);return d});function r$(a,l){return K3(a,up(_e(l)))}var i$=to(function(a,l){return a==null?{}:OO(a,l)});function K3(a,l){if(a==null)return{};var d=It(hg(a),function(v){return[v]});return l=_e(l),jS(a,d,function(v,k){return l(v,k[0])})}function o$(a,l,d){l=Bo(l,a);var v=-1,k=l.length;for(k||(k=1,a=n);++vl){var v=a;a=l,l=v}if(d||a%1||l%1){var k=bS();return En(a+k*(l-a+U("1e-"+((k+"").length-1))),l)}return rg(a,l)}var v$=Js(function(a,l,d){return l=l.toLowerCase(),a+(d?X3(l):l)});function X3(a){return Rg(ut(a).toLowerCase())}function Q3(a){return a=ut(a),a&&a.replace(Sv,aR).replace(Cd,"")}function g$(a,l,d){a=ut(a),l=mr(l);var v=a.length;d=d===n?v:Ba(Le(d),0,v);var k=d;return d-=l.length,d>=0&&a.slice(d,k)==l}function y$(a){return a=ut(a),a&&Ki.test(a)?a.replace(Qn,sR):a}function b$(a){return a=ut(a),a&&uv.test(a)?a.replace(ku,"\\$&"):a}var x$=Js(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),w$=Js(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),S$=e3("toLowerCase");function _$(a,l,d){a=ut(a),l=Le(l);var v=l?Gs(a):0;if(!l||v>=l)return a;var k=(l-v)/2;return ep(Bd(k),d)+a+ep(Nd(k),d)}function C$(a,l,d){a=ut(a),l=Le(l);var v=l?Gs(a):0;return l&&v>>0,d?(a=ut(a),a&&(typeof l=="string"||l!=null&&!Eg(l))&&(l=mr(l),!l&&Hs(a))?Vo(si(a),0,d):a.split(l,d)):[]}var O$=Js(function(a,l,d){return a+(d?" ":"")+Rg(l)});function I$(a,l,d){return a=ut(a),d=d==null?0:Ba(Le(d),0,a.length),l=mr(l),a.slice(d,d+l.length)==l}function M$(a,l,d){var v=E.templateSettings;d&&zn(a,l,d)&&(l=n),a=ut(a),l=dp({},l,v,s3);var k=dp({},l.imports,v.imports,s3),A=dn(k),M=Bv(k,A),D,N,q=0,Y=l.interpolate||$o,Q="__p += '",ie=Wv((l.escape||$o).source+"|"+Y.source+"|"+(Y===ad?vv:$o).source+"|"+(l.evaluate||$o).source+"|$","g"),ve="//# sourceURL="+(pt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Td+"]")+` +`)}function oI(a){return Fe(a)||Ha(a)||!!(gS&&a&&a[gS])}function no(a,l){var d=typeof a;return l=l??W,!!l&&(d=="number"||d!="symbol"&&wv.test(a))&&a>-1&&a%1==0&&a0){if(++l>=pe)return arguments[0]}else l=0;return a.apply(n,arguments)}}function ip(a,l){var d=-1,v=a.length,k=v-1;for(l=l===n?v:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,E3(a,d)});function P3(a){var l=E(a);return l.__chain__=!0,l}function v7(a,l){return l(a),a}function op(a,l){return l(a)}var g7=to(function(a){var l=a.length,d=l?a[0]:0,v=this.__wrapped__,k=function(A){return qv(A,a)};return l>1||this.__actions__.length||!(v instanceof Ke)||!no(d)?this.thru(k):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:op,args:[k],thisArg:n}),new Nr(v,this.__chain__).thru(function(A){return l&&!A.length&&A.push(n),A}))});function y7(){return P3(this)}function b7(){return new Nr(this.value(),this.__chain__)}function x7(){this.__values__===n&&(this.__values__=V3(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function w7(){return this}function S7(a){for(var l,d=this;d instanceof Ud;){var v=w3(d);v.__index__=0,v.__values__=n,l?k.__wrapped__=v:l=v;var k=v;d=d.__wrapped__}return k.__wrapped__=a,l}function _7(){var a=this.__wrapped__;if(a instanceof Ke){var l=a;return this.__actions__.length&&(l=new Ke(this)),l=l.reverse(),l.__actions__.push({func:op,args:[Sg],thisArg:n}),new Nr(l,this.__chain__)}return this.thru(Sg)}function C7(){return US(this.__wrapped__,this.__actions__)}var k7=Qd(function(a,l,d){ht.call(a,d)?++a[d]:Ji(a,d,1)});function T7(a,l,d){var v=Fe(a)?rS:vO;return d&&zn(a,l,d)&&(l=n),v(a,_e(l,3))}function E7(a,l){var d=Fe(a)?Fo:ES;return d(a,_e(l,3))}var P7=t3(S3),A7=t3(_3);function R7(a,l){return bn(ap(a,l),1)}function O7(a,l){return bn(ap(a,l),G)}function I7(a,l,d){return d=d===n?1:Le(d),bn(ap(a,l),d)}function A3(a,l){var d=Fe(a)?jr:zo;return d(a,_e(l,3))}function R3(a,l){var d=Fe(a)?Q9:TS;return d(a,_e(l,3))}var M7=Qd(function(a,l,d){ht.call(a,d)?a[d].push(l):Ji(a,d,[l])});function $7(a,l,d,v){a=Jn(a)?a:rl(a),d=d&&!v?Le(d):0;var k=a.length;return d<0&&(d=sn(k+d,0)),fp(a)?d<=k&&a.indexOf(l,d)>-1:!!k&&Hs(a,l,d)>-1}var F7=Be(function(a,l,d){var v=-1,k=typeof l=="function",A=Jn(a)?H(a.length):[];return zo(a,function(M){A[++v]=k?pr(l,M,d):Hu(M,l,d)}),A}),D7=Qd(function(a,l,d){Ji(a,d,l)});function ap(a,l){var d=Fe(a)?It:MS;return d(a,_e(l,3))}function L7(a,l,d,v){return a==null?[]:(Fe(l)||(l=l==null?[]:[l]),d=v?n:d,Fe(d)||(d=d==null?[]:[d]),LS(a,l,d))}var j7=Qd(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function z7(a,l,d){var v=Fe(a)?Fv:sS,k=arguments.length<3;return v(a,_e(l,4),d,k,zo)}function N7(a,l,d){var v=Fe(a)?Z9:sS,k=arguments.length<3;return v(a,_e(l,4),d,k,TS)}function B7(a,l){var d=Fe(a)?Fo:ES;return d(a,up(_e(l,3)))}function V7(a){var l=Fe(a)?SS:$O;return l(a)}function W7(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=Le(l);var v=Fe(a)?fO:FO;return v(a,l)}function U7(a){var l=Fe(a)?dO:LO;return l(a)}function H7(a){if(a==null)return 0;if(Jn(a))return fp(a)?Ks(a):a.length;var l=Pn(a);return l==Oe||l==Ct?a.size:eg(a).length}function G7(a,l,d){var v=Fe(a)?Dv:jO;return d&&zn(a,l,d)&&(l=n),v(a,_e(l,3))}var K7=Be(function(a,l){if(a==null)return[];var d=l.length;return d>1&&zn(a,l[0],l[1])?l=[]:d>2&&zn(l[0],l[1],l[2])&&(l=[l[0]]),LS(a,bn(l,1),[])}),sp=ER||function(){return De.Date.now()};function q7(a,l){if(typeof l!="function")throw new zr(s);return a=Le(a),function(){if(--a<1)return l.apply(this,arguments)}}function O3(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,eo(a,I,n,n,n,n,l)}function I3(a,l){var d;if(typeof l!="function")throw new zr(s);return a=Le(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var Cg=Be(function(a,l,d){var v=T;if(d.length){var k=Lo(d,tl(Cg));v|=O}return eo(a,v,l,d,k)}),M3=Be(function(a,l,d){var v=T|S;if(d.length){var k=Lo(d,tl(M3));v|=O}return eo(l,v,a,d,k)});function $3(a,l,d){l=d?n:l;var v=eo(a,C,n,n,n,n,n,l);return v.placeholder=$3.placeholder,v}function F3(a,l,d){l=d?n:l;var v=eo(a,P,n,n,n,n,n,l);return v.placeholder=F3.placeholder,v}function D3(a,l,d){var v,k,A,M,D,N,q=0,Y=!1,Q=!1,ie=!0;if(typeof a!="function")throw new zr(s);l=Ur(l)||0,Ft(d)&&(Y=!!d.leading,Q="maxWait"in d,A=Q?sn(Ur(d.maxWait)||0,l):A,ie="trailing"in d?!!d.trailing:ie);function ve(qt){var ci=v,oo=k;return v=k=n,q=qt,M=a.apply(oo,ci),M}function Ce(qt){return q=qt,D=Xu(Ge,l),Y?ve(qt):M}function ze(qt){var ci=qt-N,oo=qt-q,t_=l-ci;return Q?En(t_,A-oo):t_}function ke(qt){var ci=qt-N,oo=qt-q;return N===n||ci>=l||ci<0||Q&&oo>=A}function Ge(){var qt=sp();if(ke(qt))return Ze(qt);D=Xu(Ge,ze(qt))}function Ze(qt){return D=n,ie&&v?ve(qt):(v=k=n,M)}function gr(){D!==n&&GS(D),q=0,v=N=k=D=n}function Nn(){return D===n?M:Ze(sp())}function yr(){var qt=sp(),ci=ke(qt);if(v=arguments,k=this,N=qt,ci){if(D===n)return Ce(N);if(Q)return GS(D),D=Xu(Ge,l),ve(N)}return D===n&&(D=Xu(Ge,l)),M}return yr.cancel=gr,yr.flush=Nn,yr}var Y7=Be(function(a,l){return kS(a,1,l)}),X7=Be(function(a,l,d){return kS(a,Ur(l)||0,d)});function Q7(a){return eo(a,V)}function lp(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new zr(s);var d=function(){var v=arguments,k=l?l.apply(this,v):v[0],A=d.cache;if(A.has(k))return A.get(k);var M=a.apply(this,v);return d.cache=A.set(k,M)||A,M};return d.cache=new(lp.Cache||Zi),d}lp.Cache=Zi;function up(a){if(typeof a!="function")throw new zr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function Z7(a){return I3(2,a)}var J7=zO(function(a,l){l=l.length==1&&Fe(l[0])?It(l[0],hr(_e())):It(bn(l,1),hr(_e()));var d=l.length;return Be(function(v){for(var k=-1,A=En(v.length,d);++k=l}),Ha=RS(function(){return arguments}())?RS:function(a){return Nt(a)&&ht.call(a,"callee")&&!vS.call(a,"callee")},Fe=H.isArray,hM=Ws?hr(Ws):SO;function Jn(a){return a!=null&&cp(a.length)&&!ro(a)}function Kt(a){return Nt(a)&&Jn(a)}function mM(a){return a===!0||a===!1||Nt(a)&&jn(a)==Ue}var Wo=AR||Dg,vM=Us?hr(Us):_O;function gM(a){return Nt(a)&&a.nodeType===1&&!Qu(a)}function yM(a){if(a==null)return!0;if(Jn(a)&&(Fe(a)||typeof a=="string"||typeof a.splice=="function"||Wo(a)||nl(a)||Ha(a)))return!a.length;var l=Pn(a);if(l==Oe||l==Ct)return!a.size;if(Yu(a))return!eg(a).length;for(var d in a)if(ht.call(a,d))return!1;return!0}function bM(a,l){return Gu(a,l)}function xM(a,l,d){d=typeof d=="function"?d:n;var v=d?d(a,l):n;return v===n?Gu(a,l,n,d):!!v}function Tg(a){if(!Nt(a))return!1;var l=jn(a);return l==Xe||l==_t||typeof a.message=="string"&&typeof a.name=="string"&&!Qu(a)}function wM(a){return typeof a=="number"&&yS(a)}function ro(a){if(!Ft(a))return!1;var l=jn(a);return l==Re||l==bt||l==et||l==rn}function j3(a){return typeof a=="number"&&a==Le(a)}function cp(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=W}function Ft(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Nt(a){return a!=null&&typeof a=="object"}var z3=Du?hr(Du):kO;function SM(a,l){return a===l||Jv(a,l,vg(l))}function _M(a,l,d){return d=typeof d=="function"?d:n,Jv(a,l,vg(l),d)}function CM(a){return N3(a)&&a!=+a}function kM(a){if(lI(a))throw new Ie(o);return OS(a)}function TM(a){return a===null}function EM(a){return a==null}function N3(a){return typeof a=="number"||Nt(a)&&jn(a)==me}function Qu(a){if(!Nt(a)||jn(a)!=Ve)return!1;var l=Ld(a);if(l===null)return!0;var d=ht.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Md.call(d)==_R}var Eg=eS?hr(eS):TO;function PM(a){return j3(a)&&a>=-W&&a<=W}var B3=tS?hr(tS):EO;function fp(a){return typeof a=="string"||!Fe(a)&&Nt(a)&&jn(a)==Ut}function vr(a){return typeof a=="symbol"||Nt(a)&&jn(a)==$t}var nl=nS?hr(nS):PO;function AM(a){return a===n}function RM(a){return Nt(a)&&Pn(a)==Dn}function OM(a){return Nt(a)&&jn(a)==_i}var IM=tp(tg),MM=tp(function(a,l){return a<=l});function V3(a){if(!a)return[];if(Jn(a))return fp(a)?si(a):Zn(a);if(ju&&a[ju])return fR(a[ju]());var l=Pn(a),d=l==Oe?Vv:l==Ct?Rd:rl;return d(a)}function io(a){if(!a)return a===0?a:0;if(a=Ur(a),a===G||a===-G){var l=a<0?-1:1;return l*J}return a===a?a:0}function Le(a){var l=io(a),d=l%1;return l===l?d?l-d:l:0}function W3(a){return a?Ba(Le(a),0,ne):0}function Ur(a){if(typeof a=="number")return a;if(vr(a))return te;if(Ft(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=lS(a);var d=yv.test(a);return d||xv.test(a)?ue(a.slice(2),d?2:8):gv.test(a)?te:+a}function U3(a){return ki(a,er(a))}function $M(a){return a?Ba(Le(a),-W,W):a===0?a:0}function ut(a){return a==null?"":mr(a)}var FM=Js(function(a,l){if(Yu(l)||Jn(l)){ki(l,dn(l),a);return}for(var d in l)ht.call(l,d)&&Wu(a,d,l[d])}),H3=Js(function(a,l){ki(l,er(l),a)}),dp=Js(function(a,l,d,v){ki(l,er(l),a,v)}),DM=Js(function(a,l,d,v){ki(l,dn(l),a,v)}),LM=to(qv);function jM(a,l){var d=Zs(a);return l==null?d:_S(d,l)}var zM=Be(function(a,l){a=St(a);var d=-1,v=l.length,k=v>2?l[2]:n;for(k&&zn(l[0],l[1],k)&&(v=1);++d1),A}),ki(a,hg(a),d),v&&(d=Br(d,h|m|g,XO));for(var k=l.length;k--;)ag(d,l[k]);return d});function r$(a,l){return K3(a,up(_e(l)))}var i$=to(function(a,l){return a==null?{}:OO(a,l)});function K3(a,l){if(a==null)return{};var d=It(hg(a),function(v){return[v]});return l=_e(l),jS(a,d,function(v,k){return l(v,k[0])})}function o$(a,l,d){l=Bo(l,a);var v=-1,k=l.length;for(k||(k=1,a=n);++vl){var v=a;a=l,l=v}if(d||a%1||l%1){var k=bS();return En(a+k*(l-a+U("1e-"+((k+"").length-1))),l)}return rg(a,l)}var v$=el(function(a,l,d){return l=l.toLowerCase(),a+(d?X3(l):l)});function X3(a){return Rg(ut(a).toLowerCase())}function Q3(a){return a=ut(a),a&&a.replace(Sv,aR).replace(Cd,"")}function g$(a,l,d){a=ut(a),l=mr(l);var v=a.length;d=d===n?v:Ba(Le(d),0,v);var k=d;return d-=l.length,d>=0&&a.slice(d,k)==l}function y$(a){return a=ut(a),a&&Ki.test(a)?a.replace(Qn,sR):a}function b$(a){return a=ut(a),a&&uv.test(a)?a.replace(ku,"\\$&"):a}var x$=el(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),w$=el(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),S$=e3("toLowerCase");function _$(a,l,d){a=ut(a),l=Le(l);var v=l?Ks(a):0;if(!l||v>=l)return a;var k=(l-v)/2;return ep(Bd(k),d)+a+ep(Nd(k),d)}function C$(a,l,d){a=ut(a),l=Le(l);var v=l?Ks(a):0;return l&&v>>0,d?(a=ut(a),a&&(typeof l=="string"||l!=null&&!Eg(l))&&(l=mr(l),!l&&Gs(a))?Vo(si(a),0,d):a.split(l,d)):[]}var O$=el(function(a,l,d){return a+(d?" ":"")+Rg(l)});function I$(a,l,d){return a=ut(a),d=d==null?0:Ba(Le(d),0,a.length),l=mr(l),a.slice(d,d+l.length)==l}function M$(a,l,d){var v=E.templateSettings;d&&zn(a,l,d)&&(l=n),a=ut(a),l=dp({},l,v,s3);var k=dp({},l.imports,v.imports,s3),A=dn(k),M=Bv(k,A),D,N,q=0,Y=l.interpolate||$o,Q="__p += '",ie=Wv((l.escape||$o).source+"|"+Y.source+"|"+(Y===ad?vv:$o).source+"|"+(l.evaluate||$o).source+"|$","g"),ve="//# sourceURL="+(ht.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Td+"]")+` `;a.replace(ie,function(ke,Ge,Ze,gr,Nn,yr){return Ze||(Ze=gr),Q+=a.slice(q,yr).replace(_v,lR),Ge&&(D=!0,Q+=`' + __e(`+Ge+`) + '`),Nn&&(N=!0,Q+=`'; @@ -410,13 +410,13 @@ __e(`+Ge+`) + __p += '`),Ze&&(Q+=`' + ((__t = (`+Ze+`)) == null ? '' : __t) + '`),q=yr+ke.length,ke}),Q+=`'; -`;var Ce=pt.call(l,"variable")&&l.variable;if(!Ce)Q=`with (obj) { +`;var Ce=ht.call(l,"variable")&&l.variable;if(!Ce)Q=`with (obj) { `+Q+` } -`;else if(hv.test(Ce))throw new Ie(u);Q=(N?Q.replace(_u,""):Q).replace($s,"$1").replace(Cu,"$1;"),Q="function("+(Ce||"obj")+`) { +`;else if(hv.test(Ce))throw new Ie(u);Q=(N?Q.replace(_u,""):Q).replace(Fs,"$1").replace(Cu,"$1;"),Q="function("+(Ce||"obj")+`) { `+(Ce?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(N?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Q+`return __p -}`;var ze=J3(function(){return rt(A,ve+"return "+Q).apply(n,M)});if(ze.source=Q,Tg(ze))throw ze;return ze}function $$(a){return ut(a).toLowerCase()}function F$(a){return ut(a).toUpperCase()}function D$(a,l,d){if(a=ut(a),a&&(d||l===n))return lS(a);if(!a||!(l=mr(l)))return a;var v=si(a),k=si(l),A=uS(v,k),M=cS(v,k)+1;return Vo(v,A,M).join("")}function L$(a,l,d){if(a=ut(a),a&&(d||l===n))return a.slice(0,dS(a)+1);if(!a||!(l=mr(l)))return a;var v=si(a),k=cS(v,si(l))+1;return Vo(v,0,k).join("")}function j$(a,l,d){if(a=ut(a),a&&(d||l===n))return a.replace(Tu,"");if(!a||!(l=mr(l)))return a;var v=si(a),k=uS(v,si(l));return Vo(v,k).join("")}function z$(a,l){var d=B,v=X;if(Ft(l)){var k="separator"in l?l.separator:k;d="length"in l?Le(l.length):d,v="omission"in l?mr(l.omission):v}a=ut(a);var A=a.length;if(Hs(a)){var M=si(a);A=M.length}if(d>=A)return a;var D=d-Gs(v);if(D<1)return v;var N=M?Vo(M,0,D).join(""):a.slice(0,D);if(k===n)return N+v;if(M&&(D+=N.length-D),Eg(k)){if(a.slice(D).search(k)){var q,Y=N;for(k.global||(k=Wv(k.source,ut(qi.exec(k))+"g")),k.lastIndex=0;q=k.exec(Y);)var Q=q.index;N=N.slice(0,Q===n?D:Q)}}else if(a.indexOf(mr(k),D)!=D){var ie=N.lastIndexOf(k);ie>-1&&(N=N.slice(0,ie))}return N+v}function N$(a){return a=ut(a),a&&iv.test(a)?a.replace(Gi,mR):a}var B$=Js(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),Rg=e3("toUpperCase");function Z3(a,l,d){return a=ut(a),l=d?n:l,l===n?cR(a)?yR(a):tR(a):a.match(l)||[]}var J3=Be(function(a,l){try{return pr(a,n,l)}catch(d){return Tg(d)?d:new Ie(d)}}),V$=to(function(a,l){return jr(l,function(d){d=Ti(d),Ji(a,d,Cg(a[d],a))}),a});function W$(a){var l=a==null?0:a.length,d=_e();return a=l?It(a,function(v){if(typeof v[1]!="function")throw new zr(s);return[d(v[0]),v[1]]}):[],Be(function(v){for(var k=-1;++kW)return[];var d=ne,v=En(a,ne);l=_e(l),a-=ne;for(var k=Nv(v,l);++d0||l<0)?new Ke(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=Le(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ke.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ke.prototype.toArray=function(){return this.take(ne)},Ci(Ke.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),k=E[v?"take"+(l=="last"?"Right":""):l],A=v||/^find/.test(l);k&&(E.prototype[l]=function(){var M=this.__wrapped__,D=v?[1]:arguments,N=M instanceof Ke,q=D[0],Y=N||$e(M),Q=function(Ge){var Ze=k.apply(E,Do([Ge],D));return v&&ie?Ze[0]:Ze};Y&&d&&typeof q=="function"&&q.length!=1&&(N=Y=!1);var ie=this.__chain__,ve=!!this.__actions__.length,Ce=A&&!ie,ze=N&&!ve;if(!A&&Y){M=ze?M:new Ke(this);var ke=a.apply(M,D);return ke.__actions__.push({func:op,args:[Q],thisArg:n}),new Nr(ke,ie)}return Ce&&ze?a.apply(this,D):(ke=this.thru(Q),Ce?v?ke.value()[0]:ke.value():ke)})}),jr(["pop","push","shift","sort","splice","unshift"],function(a){var l=Od[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",v=/^(?:pop|shift)$/.test(a);E.prototype[a]=function(){var k=arguments;if(v&&!this.__chain__){var A=this.value();return l.apply($e(A)?A:[],k)}return this[d](function(M){return l.apply($e(M)?M:[],k)})}}),Ci(Ke.prototype,function(a,l){var d=E[l];if(d){var v=d.name+"";pt.call(Xs,v)||(Xs[v]=[]),Xs[v].push({name:l,func:d})}}),Xs[Zd(n,S).name]=[{name:"wrapper",func:n}],Ke.prototype.clone=NR,Ke.prototype.reverse=BR,Ke.prototype.value=VR,E.prototype.at=g7,E.prototype.chain=y7,E.prototype.commit=b7,E.prototype.next=x7,E.prototype.plant=S7,E.prototype.reverse=_7,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=C7,E.prototype.first=E.prototype.head,ju&&(E.prototype[ju]=w7),E},Ks=bR();nt?((nt.exports=Ks)._=Ks,Ne._=Ks):De._=Ks}).call(co)})(j0,j0.exports);var ya=j0.exports;function xae(e,t){const n=t.indexOf(".");if(n===-1)return[];const r=t.substring(0,n),i=t.indexOf(".",n+1),o=t.substring(n+1,i!==-1?i:void 0);if(!o)return[];const s=i!==-1?t.substring(i+1):null,u=e[r][o];return s?[u,...R9(u,s)]:[u]}function wae(e,t){const n=xae(e,t);return n&&n.length?n[n.length-1]:null}function R9(e,t){if(!t)return[e];const n=t.indexOf("."),r=t.substring(0,n!==-1?n:void 0),i=n!==-1?t.substring(n+1):null;let o;if(e.type==="container")o=e.children[r];else if(e.type==="mode")o=e.modes[r];else return[];return i?[o,...R9(o,i)]:[o]}const ab=e=>{switch(e.type){case"mode":return Object.fromEntries(Object.entries(e.modes).map(([t,n])=>[t,n.title]));case"multiple":return e.options;case"discrete":return Object.fromEntries(e.options.map(t=>[String(t),String(t)]))}return{}},mu=async(e,t,n,r)=>{const i={Authorization:`Bearer ${t}`};r||(r={method:"GET"}),r.headers={...r==null?void 0:r.headers,...i};try{const o=await fetch(`${e}/api/v1/${n}`,r);return o.ok?{data:await o.json(),error:null}:{data:null,error:await o.text()}}catch(o){return{data:null,error:String(o)}}},sb=Zm("hhd/fetchSettings",async({endpoint:e,token:t})=>await mu(e,t,"settings")),lb=Zm("hhd/fetchState",async({endpoint:e,token:t})=>await mu(e,t,"state")),oa=Zm("hhd/updateSettingValue",async({path:e,value:t,cred:n})=>{const r=ya.set({},e,t),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)};return await mu(n.endpoint,n.token,"state",i)}),O9=Zm("hhd/fetchSectionNames",async({endpoint:e,token:t})=>await mu(e,t,"sections")),jw=["hidden","hhd-update-decky","hhd-version-display-decky"],I9=["non-essential","advanced","expert",...jw],Sae=["expert",...jw],qo={uiType:"expanded",prevUiType:"init",appType:"web",controller:!1,visible:!0,login:!0,state:{},settings:{},loading:{settings:!1,state:!1,update:!1},error:"",sectionNames:{},tagFilter:"advanced",loadCounter:0,navigation:{curr:{},choices:{},smooth:!1,help:!1,sel:!1,sel_choice:null}},Fe=A9({name:"hhd",initialState:qo,reducers:{updateHhdState:(e,t)=>{const{path:n,value:r}=t.payload;ya.set(e.state,n,r)},clearState:e=>{e.loading=qo.loading,e.settings=qo.settings,e.state=qo.state,e.navigation=qo.navigation},setFilter:(e,t)=>{e.tagFilter=t.payload,hc(e)},setController:(e,t)=>{e.controller=t.payload},setUiType:(e,t)=>{e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType=t.payload)},toggleUiType:e=>{e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType==="qam"?e.uiType="expanded":e.uiType==="expanded"&&(e.uiType="qam"))},setAppType:(e,t)=>{e.appType=t.payload,t.payload==="overlay"&&(e.controller=!0)},setError:(e,t)=>{e.error=t.payload},setShowHint:(e,t)=>{e.navigation.help=t.payload},setVisible:(e,t)=>{e.visible=t.payload},clearError:e=>{e.error=""},replaceState:(e,t)=>{const{state:n,settings:r}=t.payload;r&&(e.settings=r),n&&(e.state=n),hc(e)},goPrev:(e,t)=>{if(e.navigation.sel){const{setting:i}=B0({hhd:e});if(!i)return;const o=Object.keys(ab(i));if(o.length){const s=o.indexOf(e.navigation.sel_choice);if(s===-1||s<=0)return;e.navigation.sel_choice=o[s-1];return}else e.navigation.sel=!1,e.navigation.sel_choice=null}if(e.uiType==="closed"&&e.appType==="overlay")return;let n;if(t.payload?n=t.payload.section:n=e.uiType==="qam"?"qam":e.navigation.curr.tab,!e.navigation.choices[n])return;const r=e.navigation.choices[n].indexOf(e.navigation.curr[n]);r>0&&(e.navigation.curr[n]=e.navigation.choices[n][r-1]),e.navigation.smooth=!0},goNext:(e,t)=>{if(e.navigation.sel){const{setting:i}=B0({hhd:e});if(!i)return;const o=Object.keys(ab(i));if(o.length){const s=o.indexOf(String(e.navigation.sel_choice));if(s===-1||s>=o.length-1)return;e.navigation.sel_choice=o[s+1];return}else e.navigation.sel=!1,e.navigation.sel_choice=null}if(e.uiType==="closed"&&e.appType==="overlay")return;let n;if(t.payload?n=t.payload.section:n=e.uiType==="qam"?"qam":e.navigation.curr.tab,!e.navigation.choices[n])return;const r=e.navigation.choices[n].indexOf(e.navigation.curr[n]);r!==-1&&r{const{section:n,curr:r}=t.payload;e.navigation.curr[n]=r,e.navigation.sel=!1,n!=="tab"&&(e.navigation.smooth=!1)},select:e=>{if(e.navigation.sel)return;const t=rd({hhd:e}),n=id({hhd:e});if(!n||!t)return;const r=$f(t+(n.type==="mode"?".mode":""))({hhd:e});e.navigation.sel=!0,e.navigation.sel_choice=String(r)},unselect:e=>{if(e.navigation.sel){e.navigation.sel=!1,e.navigation.sel_choice=null;return}e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType="closed")},incLoadCounter:e=>{e.loadCounter+=1},login:e=>{e.login=!0},logout:e=>{e.login=!1,e.loading=qo.loading,e.settings=qo.settings,e.state=qo.state}},extraReducers:e=>{e.addCase(sb.pending,t=>{t.loading.settings=!0}),e.addCase(sb.fulfilled,(t,n)=>{n.payload.data&&(t.settings=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.settings=!1}),e.addCase(lb.pending,t=>{t.loading.state=!0}),e.addCase(lb.fulfilled,(t,n)=>{n.payload.data&&(t.state=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.state=!1}),e.addCase(oa.pending,t=>{t.loading.update=!0}),e.addCase(oa.fulfilled,(t,n)=>{n.payload.data&&(t.state=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.update=!1}),e.addCase(O9.fulfilled,(t,n)=>{t.sectionNames=n.payload.data||{}})}});function hc(e){if(!Object.keys(e.state).length||!Object.keys(e.settings).length)return;const t=s=>z0(s,I9),n=w4(e.settings,e.state,t);e.navigation.choices.qam=n,n.includes(e.navigation.curr.qam)||(e.navigation.curr.qam=n[0]);const r=s=>z0(s,M9(e.tagFilter));for(const[s,u]of Object.entries(e.settings)){const c={};c[s]=u;const f=w4(c,e.state,r);e.navigation.choices[s]=f,f.includes(e.navigation.curr[s])||(e.navigation.curr[s]=f[0])}function i(s){return Object.values(s).some(r)}const o=Object.entries(e.settings).filter(([s,u])=>i(u)).map(([s,u])=>s);e.navigation.choices.tab=o,o.includes(e.navigation.curr.tab)||(e.navigation.curr.tab=o[0])}function w4(e,t,n){let r=[];for(const[i,o]of Object.entries(e))for(const[s,u]of Object.entries(o).filter(c=>c[1].type==="container"))r.push(...ub(u,t[i][s],`${i}.${s}`,n));return r}function ub(e,t,n,r){if(!r(e))return[];const i=e.type;let o=[];switch(i){case"bool":case"multiple":case"discrete":case"int":case"float":case"action":return[n];case"container":for(const[c,f]of Object.entries(e.children))o.push(...ub(f,t[c],`${n}.${c}`,r));return o;case"mode":o=[n];const s=t.mode,u=e.modes[s];return u&&o.push(...ub(u,t[s],`${n}.${s}`,r)),o}return[]}const z0=(e,t)=>{const n=e.tags,r=e.type==="container"&&e.children;return n&&n.some(i=>t.includes(i))?!1:r?Object.values(r).some(i=>z0(i,t)):!0},M9=e=>e==="advanced"?Sae:jw,_ae=e=>{const t=Eae(e);return M9(t)},N0=e=>!e.hhd.loading.settings&&!e.hhd.loading.state&&Tae(e),$9=e=>e.hhd.loading.settings||e.hhd.loading.state,Cae=e=>e.hhd.error,kae=e=>t=>e?I9:_ae(t),Ms=e=>e.hhd.appType,F9=e=>e.hhd.settings,$f=e=>t=>ya.get(t.hhd.state,e,null),nd=e=>e.hhd.controller,Tae=e=>{var t;return!!((t=e.hhd.state.hhd)!=null&&t.http)},Eae=e=>e.hhd.tagFilter,D9=e=>e.hhd.sectionNames,Jm=e=>e.hhd.uiType,L9=e=>e.hhd.prevUiType,Pae=e=>e.hhd.loadCounter,Aae=e=>e.hhd.controller&&e.hhd.navigation.help&&j9(e),j9=e=>e.hhd.appType==="overlay"&&e.hhd.uiType!=="closed"||e.hhd.appType!=="overlay"&&e.hhd.visible,rd=e=>{let t;return e.hhd.uiType==="qam"&&e.hhd.appType==="overlay"?t="qam":t=e.hhd.navigation.curr.tab,e.hhd.navigation.curr[t]},id=e=>{const t=rd(e);return t?wae(e.hhd.settings,t):null},Rae=e=>{const t=id(e);return!!(t&&t.hint)},z9=e=>t=>rd(t)===e&&t.hhd.navigation.sel,N9=e=>e.hhd.navigation.sel_choice,B0=e=>{const t=id(e);return!e.hhd.navigation.sel||!t?{setting:null,path:null}:{setting:t,path:rd(e)}},Oae=e=>Ms(e)!=="overlay"||nd(e),ev=e=>{var r,i,o,s,u;const t=(o=(i=(r=e.hhd.state)==null?void 0:r.hhd)==null?void 0:i.settings)==null?void 0:o.theme;if(console.log(t),t&&t!=="default")return t;const n=(u=(s=e.hhd.state)==null?void 0:s.info)==null?void 0:u.os;return n&&n!=="ukn"?n:null},S4={url:"http://localhost:5335",token:"",filter:"advanced"},mn=A9({name:"local",initialState:S4,reducers:{setToken:(e,t)=>{e.token=t.payload},setUrl:(e,t)=>{t.payload?e.url=t.payload:e.url=S4.url},setFilter:(e,t)=>{e.filter=t.payload}},selectors:{selectToken:e=>e.token,selectUrl:e=>e.url,selectFilter:e=>e.filter,selectIsLocal:e=>e.url.includes("localhost"),selectCanLogin:e=>e.url&&e.token}});var zw="persist:",Nw="persist/FLUSH",tv="persist/REHYDRATE",Bw="persist/PAUSE",Vw="persist/PERSIST",Ww="persist/PURGE",Uw="persist/REGISTER",Iae=-1;function $h(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$h=function(n){return typeof n}:$h=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$h(e)}function _4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mae(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Hae=5e3;function Gae(e,t){var n=e.version!==void 0?e.version:Iae;e.debug;var r=e.stateReconciler===void 0?Fae:e.stateReconciler,i=e.getStoredState||jae,o=e.timeout!==void 0?e.timeout:Hae,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},g=m._persist,w=Wae(m,["_persist"]),b=w;if(h.type===Vw){var T=!1,S=function(F,V){T||(h.rehydrate(e.key,F,V),T=!0)};if(o&&setTimeout(function(){!T&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),c=!1,s||(s=Dae(e)),g)return so({},t(b,h),{_persist:g});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(I){var F=e.migrate||function(V,B){return Promise.resolve(V)};F(I,n).then(function(V){S(V)},function(V){S(void 0,V)})},function(I){S(void 0,I)}),so({},t(b,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Ww)return u=!0,h.result(Nae(e)),so({},t(b,h),{_persist:g});if(h.type===Nw)return h.result(s&&s.flush()),so({},t(b,h),{_persist:g});if(h.type===Bw)c=!0;else if(h.type===tv){if(u)return so({},b,{_persist:so({},g,{rehydrated:!0})});if(h.key===e.key){var y=t(b,h),C=h.payload,P=r!==!1&&C!==void 0?r(C,p,y,e):y,O=so({},P,{_persist:so({},g,{rehydrated:!0})});return f(O)}}}if(!g)return t(p,h);var $=t(b,h);return $===b?p:f(so({},$,{_persist:g}))}}function k4(e){return Yae(e)||qae(e)||Kae()}function Kae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function qae(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Yae(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:B9,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Uw:return cb({},t,{registry:[].concat(k4(t.registry),[n.key])});case tv:var r=t.registry.indexOf(n.key),i=k4(t.registry);return i.splice(r,1),cb({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Zae(e,t,n){var r=n||!1,i=Mw(Qae,B9,t&&t.enhancer?t.enhancer:void 0),o=function(f){i.dispatch({type:Uw,key:f})},s=function(f,p,h){var m={type:tv,payload:p,err:h,key:f};e.dispatch(m),i.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=cb({},i,{purge:function(){var f=[];return e.dispatch({type:Ww,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:Nw,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:Bw})},persist:function(){e.dispatch({type:Vw,register:o,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var Hw={},Gw={};Gw.__esModule=!0;Gw.default=tse;function Fh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fh=function(n){return typeof n}:Fh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fh(e)}function l1(){}var Jae={getItem:l1,setItem:l1,removeItem:l1};function ese(e){if((typeof self>"u"?"undefined":Fh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function tse(e){var t="".concat(e,"Storage");return ese(t)?self[t]:Jae}Hw.__esModule=!0;Hw.default=ise;var nse=rse(Gw);function rse(e){return e&&e.__esModule?e:{default:e}}function ise(e){var t=(0,nse.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,s){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var V9=void 0,ose=ase(Hw);function ase(e){return e&&e.__esModule?e:{default:e}}var sse=(0,ose.default)("local");V9=sse;const{store:ht,persistor:lse}=(()=>{const t=Gae({key:"root",storage:V9},mn.reducer);let n=Xoe({reducer:{hhd:Fe.reducer,local:t},devTools:!0,middleware:i=>i({serializableCheck:{ignoredActions:[Nw,tv,Bw,Vw,Ww,Uw]}})}),r=Zae(n);return window.store=n,{store:n,persistor:r}})();let gs;const use=100,E4=250,cse=1e3,fse=3e3,dse=100;async function pse(e,t){let n=Date.now(),r=t;try{for(;!e.signal.aborted;){if($9(ht.getState())){await new Promise(b=>setTimeout(b,dse,{signal:e.signal}));continue}if(!N0(ht.getState()))break;const i=ht.getState(),o=ya.get(i,"hhd.settings.hhd.version.value",ya.get(i,"hhd.state.version","")),s=N0(i),u=mn.selectors.selectUrl(i),c=mn.selectors.selectToken(i);if(!s){gs=void 0;return}const f=(await mu(u,c,r?"state":"state?poll",{signal:e.signal})).data,p=ya.get(f,"version","");r=!1;let h=null;f&&p!==o&&(h=(await mu(u,c,"settings",{signal:e.signal})).data),(f&&JSON.stringify(i.hhd.state)!==JSON.stringify(f)||h)&&(ht.dispatch(Fe.actions.replaceState({state:f,settings:h})),h&&(r=!0));const m=Date.now()-n;let g=null;if(f?m0){const w=g;await new Promise(T=>setTimeout(T,w,{signal:e.signal}))}}}catch{}}const W9=e=>{gs&&Kw();try{gs=new AbortController,pse(gs,e).catch(t=>{})}catch(t){console.log(t)}},Kw=()=>{gs&&(gs.abort("Stopping polling due to cleanup."),gs=void 0)};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"?(W9(!0),ht.dispatch(Fe.actions.setVisible(!0))):(Kw(),ht.dispatch(Fe.actions.setVisible(!1)))});function Su(e,t){const n=_.useRef(null),r=Pe(u=>!u.hhd.controller||e==="qam"&&u.hhd.uiType!=="qam"||e!=="qam"&&u.hhd.uiType==="qam"||e!=="qam"&&u.hhd.navigation.curr.tab!==e?!1:u.hhd.navigation.curr[e]===t),i=Pe(u=>u.hhd.navigation.smooth),o=Pe(z9(t)),s=()=>{};return _.useEffect(()=>{r&&n.current&&i&&n.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,n.current,i]),{ref:n,focus:r,sel:o,setFocus:s}}const hse=e=>{const t=Dr();return{curr:Pe(i=>i.hhd.navigation.curr[e]),setCurr:i=>{t(Fe.actions.goto({section:e,curr:i}))}}},mse=()=>{const e=Pe(Jm),t=Pe(L9),n=Pe(Ms),r=Pe(N0),i=100;_.useEffect(()=>{if(n!=="overlay"||!r)return;let o=0;e==="closed"&&t!=="init"&&(o=i);let s=setInterval(()=>{var c;const u=(c=window.electronUtilsRender)==null?void 0:c.updateStatus;u&&u(e),s&&(clearInterval(s),s=null)},o);return()=>{s&&(clearInterval(s),s=null)}},[e,n,r])},od=e=>{const t=Pe(kae(e));return r=>z0(r,t)},U9=(e=!1)=>{const t=od(e);function n(r){return Object.values(r).some(t)}return n},vse=()=>{const e=Dr();return{error:Pe(Cae),setError:r=>{e(Fe.actions.setError(r))}}},H9=()=>{const e=Dr(),{token:t}=Yw(),{url:n}=qw();return()=>{e(Fe.actions.clearState()),e(Fe.actions.clearError()),e(sb({token:t,endpoint:n})),e(lb({token:t,endpoint:n})),e(O9({token:t,endpoint:n})),e(Fe.actions.login()),W9(!1)}},gse=()=>{const e=Dr();return()=>{e(Fe.actions.clearState()),e(Fe.actions.clearError()),e(Fe.actions.logout()),Kw()}};function Da(e){const t=Dr(),n=Pe($f(e)),{token:r}=Yw(),{url:i}=qw();return{state:n,setState:s=>{const u=oa({cred:{token:r,endpoint:i},path:e,value:s});return console.log(e,s),t(u)}}}function yse(){const e=Pe(mn.selectors.selectFilter),t=Dr();return{filter:e,setFilter:r=>{t(mn.actions.setFilter(r))}}}function bse(){const e=Dr(),t=Pe(mn.selectors.selectFilter);_.useEffect(()=>{e(Fe.actions.setFilter(t))},[t])}function qw(){const e=Pe(mn.selectors.selectUrl),t=Dr();return{url:e,setUrl:r=>t(mn.actions.setUrl(r))}}function Yw(){const e=Pe(mn.selectors.selectToken),t=Dr();return{token:e,setToken:r=>t(mn.actions.setToken(r))}}function xse(){return Pe(mn.selectors.selectIsLocal)}function wse(){const e=H9(),t=Pe(mn.selectors.selectCanLogin),n=Pe(Pae);_.useEffect(()=>{t&&e()},[n])}function Sse(){return Pe(B0,p9)}function nv(){return Pe(Oae)}const Zp="/assets/background_dark_mono-ecYdkBS2.jpg",Jp="/assets/background_light_mono-Dx2HVsj0.jpg",_se="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47089'%20height='148.6409'%20viewBox='0%200%20386.47089%20148.6409'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='g38'%20transform='translate(-1591.2095,-95.610001)'%20style='display:inline'%3e%3crect%20style='display:none;fill:%23f9f9f9;stroke-width:0.778231'%20id='rect32'%20width='515.67297'%20height='279.05045'%20x='1525.9523'%20y='33.480999'%20/%3e%3cpath%20style='fill:%23f8d32b;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path32'%20/%3e%3cpath%20style='fill:%23e5b91f;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path33'%20/%3e%3cpath%20style='display:inline;fill:%23c0c7cf;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path34'%20/%3e%3cpath%20style='fill:%23929bac;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path35'%20/%3e%3cpath%20style='display:inline;fill:%23c0c7cf;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path36'%20/%3e%3cpath%20style='fill:%23929bac;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path37'%20/%3e%3cpath%20style='fill:%23e5b91f;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path38'%20/%3e%3c/g%3e%3c/svg%3e",Cse="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='385.92368'%20height='148.29019'%20viewBox='0%200%20385.92367%20148.29019'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='g11'%20transform='translate(-1591.0884,-96.247386)'%20style='display:inline'%3e%3crect%20style='display:none;fill:%23333333;stroke-width:0.778231'%20id='rect12'%20width='515.67297'%20height='279.05045'%20x='1525.9523'%20y='33.480999'%20/%3e%3cg%20id='g39'%20style='display:inline'%3e%3cpath%20style='fill:%23ac8a00;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12'%20/%3e%3cpath%20style='fill:%23e4bc1b;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9'%20/%3e%3cpath%20style='display:inline;fill:%23b3b3b3'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14'%20/%3e%3cpath%20style='fill:%23f9f9f9'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10'%20/%3e%3cpath%20style='display:inline;fill:%23b3b3b3'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2'%20/%3e%3cpath%20style='fill:%23f9f9f9'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1'%20/%3e%3cpath%20style='fill:%23e4bc1b;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",u1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47'%20height='148.64'%20viewBox='0%200%20386.47%20148.64'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='layer4'%20transform='translate(-94.946289,-1057.0915)'%3e%3crect%20style='display:none;fill:%23333333;stroke-width:0.778231'%20id='rect12-5'%20width='515.67297'%20height='279.05045'%20x='1556.8704'%20y='674.09174'%20transform='translate(-1526.7363,320.75535)'%20/%3e%3cg%20id='g39-3'%20style='display:inline'%20transform='translate(-1495.8183,961.3661)'%3e%3cpath%20style='fill:%23565656;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12-5'%20/%3e%3cg%20id='g1'%20style='fill:%23363636;fill-opacity:1'%3e%3cpath%20style='fill:%23363636;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9-62'%20/%3e%3cpath%20style='display:inline;fill:%23363636;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3-0'%20/%3e%3c/g%3e%3cpath%20style='display:inline;fill:%23929292;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14-9'%20/%3e%3cpath%20style='fill:%232e2e2e;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10-1'%20/%3e%3cpath%20style='display:inline;fill:%23929292;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2-2'%20/%3e%3cpath%20style='fill:%232e2e2e;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1-7'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47'%20height='148.64'%20viewBox='0%200%20386.47%20148.64'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='layer3'%20transform='translate(-84.938439,-1352.0157)'%3e%3crect%20style='display:none;fill:%23ffffff;stroke-width:0.778231'%20id='rect12-5-0'%20width='515.67297'%20height='279.05045'%20x='25.848906'%20y='1287.062'%20/%3e%3cg%20id='g39-3-3'%20style='display:inline'%20transform='translate(-1505.1062,1256.7414)'%3e%3cpath%20style='fill:%23a4a4a4;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12-5-5'%20/%3e%3cg%20id='g2'%20style='fill:%23575757;fill-opacity:1'%3e%3cpath%20style='fill:%23575757;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9-62-6'%20/%3e%3cpath%20style='display:inline;fill:%23575757;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3-0-2'%20/%3e%3c/g%3e%3cg%20id='g4'%20style='fill:%23eeeeee;fill-opacity:1'%3e%3cpath%20style='display:inline;fill:%23eeeeee;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14-9-9'%20/%3e%3cpath%20style='display:inline;fill:%23eeeeee;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2-2-2'%20/%3e%3c/g%3e%3cg%20id='g3'%20style='fill:%23898989;fill-opacity:1'%3e%3cpath%20style='fill:%23898989;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10-1-1'%20/%3e%3cpath%20style='fill:%23898989;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1-7-7'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kse="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20stroke='%2335bf5c'%20stroke-width='4'%20viewBox='0%200%2014%2014'%3e%3cpath%20d='M9%202H2V14%202M7%205v9M12%200V14'/%3e%3c/svg%3e",Tse="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='600'%20height='600'%20viewBox='0%200%20600%20600'%20fill='none'%20version='1.1'%20id='svg8'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cpath%20d='M%2050,150%20C%2050,94.7715%2094.7715,50%20150,50%20h%20150%20c%20138.071,0%20250,111.929%20250,250%20v%200%20c%200,138.071%20-111.929,250%20-250,250%20v%200%20C%20161.929,550%2050,438.071%2050,300%20Z'%20fill='url(%23paint0_linear_1016_105)'%20id='path1'%20style='fill:url(%23paint0_linear_1016_105)'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m%20178,50%20h%2064%20V%20178%20H%20376.185%20C%20432.416,178%20478,223.584%20478,279.815%20478,389.269%20389.27,478%20279.815,478%20223.584,478%20178,432.416%20178,376.185%20V%20242%20H%2050%20v%20-64%20h%20128%20z%20m%2064,192%20V%20376.185%20C%20242,397.07%20258.93,414%20279.815,414%20353.923,414%20414,353.923%20414,279.815%20414,258.93%20397.07,242%20376.185,242%20Z'%20fill='%23ffffff'%20fill-opacity='0.5'%20id='path2'%20/%3e%3cpath%20d='M%20242,110%20C%20242,93.4315%20228.569,80%20212,80%20h%20-4%20c%20-16.569,0%20-30,13.4315%20-30,30%20v%2068%20h%20-68%20c%20-16.5685,0%20-30,13.431%20-30,30%20v%204%20c%200,16.569%2013.4315,30%2030,30%20h%2068%20v%2068%20c%200,16.569%2013.431,30%2030,30%20h%204%20c%2016.569,0%2030,-13.431%2030,-30%20v%20-68%20h%2068%20c%2016.569,0%2030,-13.431%2030,-30%20v%20-4%20c%200,-16.569%20-13.431,-30%20-30,-30%20h%20-68%20z'%20fill='%23ffffff'%20fill-opacity='0.7'%20id='path3'%20/%3e%3cpath%20d='m%20312.5,205.67%20c%203.333,1.924%203.333,6.736%200,8.66%20l%20-21,12.124%20c%20-3.333,1.925%20-7.5,-0.481%20-7.5,-4.33%20v%20-24.248%20c%200,-3.849%204.167,-6.255%207.5,-4.33%20z'%20fill='%23ffffff'%20id='path4'%20/%3e%3cpath%20d='m%20214.33,312.5%20c%20-1.924,3.333%20-6.736,3.333%20-8.66,0%20l%20-12.124,-21%20c%20-1.925,-3.333%200.481,-7.5%204.33,-7.5%20h%2024.248%20c%203.849,0%206.255,4.167%204.33,7.5%20z'%20fill='%23ffffff'%20id='path5'%20/%3e%3cpath%20d='m%20205.67,107.5%20c%201.924,-3.333%206.736,-3.333%208.66,0%20l%2012.124,21%20c%201.925,3.333%20-0.481,7.5%20-4.33,7.5%20h%20-24.248%20c%20-3.849,0%20-6.255,-4.167%20-4.33,-7.5%20z'%20fill='%23ffffff'%20id='path6'%20/%3e%3cpath%20d='m%20107.5,214.33%20c%20-3.333,-1.924%20-3.333,-6.736%200,-8.66%20l%2021,-12.124%20c%203.333,-1.925%207.5,0.481%207.5,4.33%20v%2024.248%20c%200,3.849%20-4.167,6.255%20-7.5,4.33%20z'%20fill='%23ffffff'%20id='path7'%20/%3e%3cdefs%20id='defs8'%3e%3clinearGradient%20id='paint0_linear_1016_105'%20x1='50'%20y1='50'%20x2='550'%20y2='550'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.0684898'%20stop-color='%230047AB'%20id='stop7'%20/%3e%3cstop%20offset='0.741212'%20stop-color='%238A2BE2'%20id='stop8'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",fb="500px",Ese="300px",Pse={initialColorMode:"dark",useSystemColorMode:!0},Dh=e=>{const t=lC({config:Pse,colors:e,styles:{global:{body:{bg:"transparent",overflow:"hidden"}}},shadows:{outline:"0 0 0 3px var(--chakra-colors-brand-700)"}},ZG({colorScheme:"brand"})),n=lC(t,{styles:{global:{body:{userSelect:"none"},":focus":{outline:"0 !important"}}},shadows:{outline:0}});return{theme:t,controllerTheme:n}},{theme:Ase,controllerTheme:Rse}=Dh({brand:{50:"#E4BC1B",100:"#E4BC1B",200:"#E4BC1B",300:"#E4BC1B",400:"#E4BC1B",500:"#E4BC1B",600:"#B69616",700:"#897110",800:"#5B4B0B",900:"#2E2605"},gray:{50:"#F5F2EF",100:"#E3DBD3",200:"#D1C3B7",300:"#BFAC9B",400:"#AD957F",500:"#7C6450",600:"#645141",700:"#1d1916",800:"#1d1916",900:"#1d1916"}}),f1={manjaro:Dh({brand:{50:"#35bf5c",100:"#35bf5c",200:"#35bf5c",300:"#35bf5c",400:"#35bf5c",500:"#35bf5c",600:"#31b055",700:"#289146",800:"#24823e",900:"#0f3519"},gray:{50:"#EEF7F1",100:"#CFE8D7",200:"#B0D9BD",300:"#91CAA3",400:"#72BB8A",500:"#54AB70",600:"#438959",700:"#19251d",800:"#19251d",900:"#112216"}}),bazzite:Dh({brand:{50:"#EBE8FD",100:"#816BF0",200:"#816BF0",300:"#816BF0",400:"#5E42EB",500:"#3A18E7",600:"#2F13B9",700:"#6d49b6",800:"#170A5C",900:"#0C052E"},gray:{50:"#ECE6FE",100:"#C9BAFC",200:"#A68EFB",300:"#8362F9",400:"#4a25cf",500:"#4a25cf",600:"#3e1fad",700:"#0e0b3c",800:"#0e0b3c",900:"#0e0b3c"}}),ocean:Dh({brand:{50:"#E4BC1B",100:"#E4BC1B",200:"#E4BC1B",300:"#E4BC1B",400:"#E4BC1B",500:"#E4BC1B",600:"#B69616",700:"#897110",800:"#5B4B0B",900:"#2E2605"},gray:{50:"#E9F0FB",100:"#C3D4F4",200:"#9CB8ED",300:"#759CE6",400:"#4E80DF",500:"#2764D8",600:"#1F50AD",700:"#183C81",800:"#102856",900:"#08142B"}})},G9=e=>{let t;switch(e){case"manjaro":t="#438959 #19251d";break;case"bazzite":t="#6d49b6 #0e0b3c";break;case"ocean":t="#E4BC1B #183C81";break;default:t="#B69616 #1d1916";break}return{css:{scrollbarColor:t}}},Ose=(e,t)=>{switch(t){case"manjaro":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(0.7) hue-rotate(85deg)"}:{bgImage:Jp,filter:"sepia(0.3) hue-rotate(85deg)"};case"bazzite":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(4) hue-rotate(200deg)"}:{bgImage:Jp,filter:"sepia(0.5) saturate(1) hue-rotate(202deg)"};case"ocean":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(4) hue-rotate(180deg)"}:{bgImage:Jp,filter:"sepia(0.5) saturate(2.3) hue-rotate(180deg)"};default:return e==="dark"?{bgImage:Zp,filter:"sepia(0.4) saturate(0.5) hue-rotate(335deg)"}:{bgImage:Jp}}},Xw=({height:e,width:t,qam:n})=>{const{colorMode:r}=Fr();switch(Pe(ev)){case"ocean":return x.jsx(Za,{src:r=="dark"?u1:c1,height:e,filter:"sepia(1) saturate(2.5) hue-rotate(10deg)"});case"manjaro":return x.jsxs(mt,{direction:"row",alignItems:"center",children:[x.jsx(Za,{src:kse,height:e}),!n&&x.jsx(Za,{src:r=="dark"?u1:c1,marginLeft:"0.8rem",height:e,filter:"sepia(1) saturate(2.5) hue-rotate(85deg)"})]});case"bazzite":return x.jsxs(mt,{direction:"row",alignItems:"center",children:[x.jsx(Za,{src:Tse,height:e}),!n&&x.jsx(Za,{src:r=="dark"?u1:c1,marginLeft:"0.8rem",height:e,filter:"sepia(1) saturate(2.5) hue-rotate(210deg)"})]})}return x.jsx(Za,{src:r=="dark"?Cse:_se,height:e,width:t})};function Ise(){const{url:e,setUrl:t}=qw(),{token:n,setToken:r}=Yw(),{error:i}=vse(),o=H9(),u=Pe(Ms)==="web";return x.jsx(mt,{minH:"100%",alignItems:"center",justifyContent:"center",children:x.jsxs(Jx,{maxW:"md",margin:"1rem 0",height:"fit-content",children:[x.jsx(OA,{children:x.jsx(mt,{width:"100%",margin:"1rem 0 0.25rem 0",justifyContent:"center",children:x.jsx(Xw,{width:"75%"})})}),x.jsx(RA,{children:x.jsxs(R0,{divider:x.jsx(mw,{}),spacing:"4",children:[x.jsx(va,{textAlign:"center",children:"Welcome to the Handheld Daemon Configurator!"}),x.jsxs(va,{children:["This is a ",u?"static website":"app"," you can use to configure your device (everything is done locally and there is no server). With the default security settings, you need to visit this webpage from your device and enter a security token. This token can be found below. Have fun!"]}),x.jsx(O0,{textAlign:"center",padding:"1rem",lang:"bash",children:"cat $HOME/.config/hhd/token"}),x.jsxs(va,{children:["Example token: ",x.jsx("b",{children:"2f7abbc42dc7"})]}),x.jsxs(R0,{spacing:"2",children:[x.jsxs(mt,{children:[x.jsx(A0,{type:"text",id:"token-input",value:e,onChange:c=>{t(c.target.value)},borderRightRadius:"0",placeholder:"URL"}),x.jsx($n,{w:"5rem",onClick:()=>{t(null)},borderLeftRadius:"0",children:"Reset"})]}),x.jsxs(mt,{children:[x.jsx(A0,{type:"text",display:"Token",id:"token-input",onChange:c=>{r(c.target.value)},value:n,borderRightRadius:"0",placeholder:"Token (empty if disabled)"}),x.jsx($n,{w:"5rem",onClick:()=>{r("")},borderLeftRadius:"0",children:"Clear"})]}),x.jsx($n,{onClick:o,children:"Connect"}),i&&x.jsxs($m,{status:"error",children:[x.jsx(Mm,{}),i]})]})]})})]})})}function Lh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lh=function(n){return typeof n}:Lh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lh(e)}function Mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P4(e,t){for(var n=0;n{let r=null;const{colorMode:i,toggleColorMode:o}=Fr();switch(e){case"lb":r=Gse;break;case"rb":r=Kse;break;case"y":r=qse;break;case"b":r=Yse;break;case"x":r=Xse;break}let s=null;return i==="dark"&&t&&(s="brightness(0%)"),i==="light"&&!t&&(s="brightness(0%)"),r?x.jsx(Za,{src:r,filter:s,...n}):(console.error(`Controller button ${e} not found`),x.jsx(x.Fragment,{}))};class rv extends _.Component{constructor(t){super(t),this.state={hasError:!1,title:t==null?void 0:t.title}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.log(t,n)}render(){return this.state.hasError?x.jsxs($m,{status:"error",children:[x.jsx(Mm,{}),"Error while loading ",this.props.title]}):this.props.children}}const ba=(e,t)=>e?{border:"2px",borderColor:t==="dark"?"gray.500":"gray.300",borderStyle:"solid",borderRadius:"8px",transform:"scale(1.05)",padding:"0.25rem 0.6rem",margin:"0 0.15rem",bg:t==="dark"?"gray.600":"gray.100",transition:"all 0.1s ease-in-out",zIndex:"dropdown"}:{border:"2px",borderColor:"transparent",borderStyle:"solid",padding:"0.25rem 0.6rem",transition:"all 0.1s ease-in-out"},Qse=({settings:e,path:t,section:n})=>{let{tags:r,title:i,min:o,max:s,unit:u,step:c,hint:f,type:p}=e;p==="int"&&!c&&(c=1);const{state:h,setState:m}=Da(t),{ref:g,sel:w,focus:b,setFocus:T}=Su(n,t),{colorMode:S}=Fr(),y=nv();return r!=null&&r.includes("dropdown")?x.jsxs(Pr,{...ba(b,S),children:[x.jsx(ga,{label:f,isDisabled:y,children:x.jsx($i,{htmlFor:t,children:i})}),x.jsxs(K8,{id:t,onChange:m,min:o,max:s,step:c,value:h,ref:g,onFocus:T,marginBottom:"0.4rem",children:[x.jsx(Y8,{}),x.jsxs(q8,{children:[x.jsx(Z8,{}),x.jsx(Q8,{})]})]})]}):r!=null&&r.includes("slim")?x.jsxs(mt,{direction:"row",alignItems:"center",...ba(b,S),children:[x.jsx(ga,{label:f,isDisabled:y,children:x.jsx($i,{minW:"2.4rem",htmlFor:t,textAlign:"end",margin:"0 0.45rem 0 0",children:i})}),x.jsxs(q2,{min:o,max:s,onChange:m,onFocus:T,step:c,value:h,focusThumbOnChange:!1,ref:g,children:[x.jsx(X2,{children:x.jsx(Q2,{transition:"all 0.2s ease"})}),x.jsx(Y2,{transition:"all 0.2s ease",...w&&{bg:"brand.300"}})]}),h&&x.jsxs($i,{minW:"2.7rem",textAlign:"end",margin:"0 0 0 0.3rem",children:[h,u||""]})]}):x.jsxs(Pr,{...ba(b,S),children:[x.jsxs(mt,{direction:"row",alignItems:"center",children:[x.jsx(ga,{label:f,isDisabled:y,children:x.jsx($i,{flexGrow:"1",htmlFor:t,justifySelf:"stretch",children:i})}),h&&x.jsxs($i,{children:[h,u||""]})]}),x.jsxs(q2,{min:o,max:s,value:h,step:c,onChange:m,focusThumbOnChange:!1,ref:g,onFocus:T,children:[x.jsx(X2,{children:x.jsx(Q2,{transition:"all 0.2s ease"})}),x.jsx(Y2,{transition:"all 0.2s ease",...w&&{bg:"brand.300"}})]})]})},Zse=({settings:e,path:t,section:n})=>{const{title:r,hint:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr(),h=nv();return x.jsxs(mt,{flexDirection:"row",alignItems:"center",...ba(c,p),children:[x.jsx(ga,{label:i,isDisabled:h,children:x.jsx($i,{htmlFor:t,flexGrow:"1",margin:"0",children:r})}),x.jsx($A,{id:t,isChecked:!!o,onChange:m=>s(m.target.checked),ref:u,onFocus:f})]})},Jse=({settings:e,path:t,section:n})=>{const{title:r,options:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr();return x.jsxs(mt,{flexDirection:"column",...ba(c,p),marginTop:"0.2rem",marginBottom:"0.2rem",children:[x.jsx($i,{htmlFor:t,children:r}),x.jsxs(Lm,{children:[x.jsx(Nm,{as:$n,rightIcon:x.jsx(Zw,{}),ref:u,onFocus:f,marginBottom:"0.35rem",children:o}),x.jsx(jm,{children:x.jsx(zm,{type:"radio",value:String(o),children:i.map(h=>x.jsx(Jf,{value:String(h),onClick:()=>s(h),children:h},h))})})]})]})},ele=({settings:e,path:t,section:n})=>{const{title:r,options:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr();return x.jsxs(mt,{flexDirection:"column",...ba(c,p),margin:"0.2rem 0",children:[x.jsx($i,{htmlFor:t,children:r}),x.jsxs(Lm,{children:[x.jsx(Nm,{as:$n,rightIcon:x.jsx(Zw,{}),ref:u,onFocus:f,marginBottom:"0.35rem",children:o&&i[o]}),x.jsx(jm,{children:x.jsx(zm,{type:"radio",value:o,children:Object.entries(i).map(([h,m])=>x.jsx(Jf,{value:h,onClick:()=>s(h),children:m},h))})})]})]})},tle=()=>x.jsx(x.Fragment,{}),nle=({settings:e,path:t})=>{const{title:n,tags:r}=e,{state:i}=Da(t),o=r==null?void 0:r.includes("error"),s=(r==null?void 0:r.includes("hhd-version-display"))||(r==null?void 0:r.includes("slim"));return i?s?x.jsx(O0,{padding:"1rem",margin:"0.5rem 0.7rem",borderRadius:"6px",children:x.jsxs(mt,{justifyContent:"space-between",...o&&{colorScheme:"red"},children:[x.jsxs(va,{as:"b",children:[n,":"]}),x.jsx(va,{children:i})]})}):x.jsxs(O0,{padding:"1rem",margin:"0.5rem 0.7rem",borderRadius:"6px",textAlign:"center",...o&&{colorScheme:"red"},children:[x.jsx(Ta,{size:"md",textAlign:"center",paddingBottom:"0.5rem",children:n}),i]}):x.jsx(x.Fragment,{})},rle=({settings:e,path:t,section:n})=>{const{title:r}=e,{state:i,setState:o}=Da(t),{ref:s,focus:u,setFocus:c}=Su(n,t),{colorMode:f}=Fr();return x.jsx(mt,{...ba(u,f),flexDirection:"column",alignItems:"stretch",children:x.jsx($n,{onClick:()=>o(!0),disabled:!i,ref:s,onFocus:c,margin:"0.3rem 0.1rem",children:r})})},q9=e=>{switch(e.settings.type){case"float":case"int":return x.jsx(Qse,{...e});case"bool":return x.jsx(Zse,{...e});case"discrete":return x.jsx(Jse,{...e});case"multiple":return x.jsx(ele,{...e});case"display":return x.jsx(nle,{...e});case"action":return x.jsx(rle,{...e});case"custom":return x.jsx(tle,{...e})}return x.jsx(x.Fragment,{children:" "})},ile=({settings:e,path:t,section:n})=>{const{state:r,setState:i}=Da(`${t}.mode`),{title:o,modes:s,hint:u}=e,c=od(n==="qam"),{ref:f,focus:p,setFocus:h}=Su(n,t),{colorMode:m}=Fr(),g=nv(),w=r?e.modes[r]:null;return x.jsxs(x.Fragment,{children:[x.jsxs(Pr,{...ba(p,m),children:[x.jsx(ga,{label:u,isDisabled:g,children:x.jsx($i,{htmlFor:t,children:o})}),x.jsxs(Lm,{children:[x.jsx(ga,{label:w==null?void 0:w.hint,isDisabled:g,children:x.jsx(Nm,{as:$n,width:"100%",ref:f,onFocus:h,rightIcon:x.jsx(Zw,{}),marginBottom:"0.3rem",children:w==null?void 0:w.title})}),x.jsx(jm,{children:x.jsx(zm,{type:"radio",value:r,children:Object.entries(s).map(([b,{title:T}],S)=>x.jsx(Jf,{value:b,onClick:()=>i(b),children:T},S))})})]})]}),x.jsxs(mt,{direction:"row",margin:"0.2rem 0.1rem 0.4rem 0.3rem",children:[x.jsx(vw,{children:x.jsx(gw,{orientation:"vertical",marginRight:"0.75rem",alignSelf:"stretch"})}),x.jsx(mt,{direction:"column",flexGrow:"1",children:w&&c(w)&&Object.entries(w.children).filter(b=>c(b[1])).map(([b,T],S)=>x.jsx(rv,{title:o,children:x.jsx(q9,{path:`${t}.${r}.${b}`,settings:T,section:n})},S))})]})]})},Jw=({settings:e,path:t,section:n,indent:r})=>{const{title:i,children:o,tags:s,hint:u}=e,c=n==="qam",f=od(c),p=!c||!(s!=null&&s.includes("hide-title")),h=nv();r===void 0&&(r=0);const m=(g,w)=>{const{type:b}=w;switch(b){case"mode":return x.jsx(ile,{path:`${t}.${g}`,settings:w,section:n});case"container":return x.jsx(Jw,{path:`${t}.${g}`,settings:w,section:n,indent:r+1});default:return x.jsx(q9,{path:`${t}.${g}`,settings:w,section:n})}};return x.jsxs(mt,{direction:"column",padding:"0",marginTop:r?"0.5rem":"0",marginLeft:`${r*1}rem`,children:[p&&x.jsx(ga,{label:u,isDisabled:h,children:x.jsx(Ta,{as:"h1",fontSize:r?"lg":"xl",marginBottom:"1rem",children:i})}),x.jsx(mt,{direction:"column",flexGrow:"1",children:Object.entries(o).filter(([g,w])=>f(w)).map(([g,w],b)=>x.jsx(rv,{title:i,children:m(g,w)},b))})]})},ole=({section:e,containers:t})=>{const n=od(!1);return x.jsx(Pr,{children:Object.entries(t).filter(([r,i])=>i.type==="container").filter(([r,i])=>n(i)).map(([r,i])=>{const o=`${e}.${r}`;return x.jsx(a9,{tabIndex:-1,children:x.jsx(rv,{children:x.jsx(Jw,{path:o,settings:i,section:e,indent:0})})},o)})})},ale=()=>{const e=Pe(D9),t=Pe(nd),n=Pe(F9),r=U9(!1),i=Pe(Rae),o=Object.fromEntries(Object.entries(n).filter(f=>r(f[1]))),s=Object.keys(o),{curr:u,setCurr:c}=hse("tab");return x.jsx(Jx,{width:fb,children:x.jsxs(i9,{onChange:f=>c(s[f]),size:"md",orientation:"vertical",index:s.indexOf(u),isLazy:!0,children:[x.jsxs(o9,{padding:"1rem 0",children:[t&&x.jsx(ys,{alignSelf:"end",button:"lb",w:"2.5rem",margin:"-0.6rem 0.5rem -0.1rem 0"}),Object.keys(o).map((f,p)=>{let h=f.split("_").map(ya.capitalize).join(" ");return e&&e[f]&&(h=e[f]),x.jsx(l9,{justifyContent:"end",children:h},`tablist-tab-${p}`)}),t&&x.jsxs(x.Fragment,{children:[x.jsx(ys,{alignSelf:"end",button:"rb",w:"2.5rem",margin:"-0.4rem 0.5rem 0.3rem 0"}),i&&x.jsxs(mt,{direction:"row",alignItems:"center",alignSelf:"end",marginRight:"0.4rem",children:[x.jsx(Bse,{h:"1.5rem",w:"1.3rem",marginRight:"0.3rem"}),x.jsx(ys,{button:"x",margin:"0 0.3rem 0 0",h:"1.7rem"})]})]})]}),x.jsx(s9,{padding:"0.5rem 0",children:Object.entries(o).map(([f,p])=>x.jsx(ole,{section:f,containers:p},f))})]})})};function sle(){const e=Pe(Aae),t=Pe(id,p9);return!e||!t||!t.hint?x.jsx(x.Fragment,{}):x.jsxs(kw,{isOpen:!0,onClose:()=>{},isCentered:!0,children:[x.jsx(Pw,{}),x.jsxs(Tw,{children:[x.jsx(Ew,{children:t.title}),x.jsxs(Aw,{textAlign:"justify",children:[x.jsx(va,{margin:"-0.5rem 0 1rem 0",children:t.hint}),t.type=="mode"&&Object.values(t.modes).some(n=>n.hint)&&x.jsxs(x.Fragment,{children:[x.jsx(Ta,{size:"md",marginTop:"0.7rem",marginBottom:"0.7rem",children:"Modes"}),x.jsxs(mt,{direction:"row",marginBottom:"1rem",children:[x.jsx(vw,{children:x.jsx(gw,{orientation:"vertical",margin:"0 0.75rem 0 0.2rem",alignSelf:"stretch"})}),x.jsx(Pr,{children:Object.values(t.modes).map((n,r)=>x.jsxs(_.Fragment,{children:[x.jsx(Ta,{size:"sm",marginTop:"0.7rem",marginBottom:"0.3rem",children:n.title}),x.jsx(va,{marginBottom:"0.3rem",children:n.hint||"..."})]},r))})]})]})]})]})]})}const lle=()=>{const e=Pe(Ms),t=Pe(Jm),n=Pe(nd),{filter:r,setFilter:i}=yse(),o=xse(),{colorMode:s,toggleColorMode:u}=Fr(),c=Dr(),f=gse(),p=Pe(ev),h=e!=="overlay"||t==="expanded",[m,g]=_.useState(!1),[w,b]=_.useState(!1);_.useEffect(()=>{let C=null;C=setTimeout(()=>{g(h)},h?3:200);let P=setTimeout(()=>{b(h)},h?400:0);return()=>{C&&clearTimeout(C),P&&clearTimeout(P)}},[h]);const T=()=>i(r==="expert"?"advanced":"expert");if(!h&&!m)return x.jsx(x.Fragment,{});const S=h&&!m||!h&&m;let y;return e==="overlay"?y={sx:{"::-webkit-scrollbar":{display:"none"}}}:w?s==="dark"&&(y=G9(p)):y={sx:{"::-webkit-scrollbar":{opacity:"0"}}},y={...y},x.jsxs(mt,{padding:"2rem 0",position:"absolute",flexDirection:"column",alignItems:"center",overflowX:"clip",overflowY:"scroll",h:"100vh",w:"100vw",transition:"0.07s ease-in",...S&&{transform:"scale(80%)",opacity:0},...y,onClick:C=>{C.currentTarget==C.target&&c(Fe.actions.setUiType("closed"))},children:[x.jsx(mt,{margin:"0.5rem 1rem 1.2rem 1rem",children:x.jsxs(mt,{w:fb,flexDirection:"row",alignItems:"start",justifyContent:"start",children:[x.jsx(Ta,{children:x.jsx(Xw,{height:"2.5rem"})}),x.jsx(Pr,{flexGrow:"3"}),x.jsx(PA,{onClick:u,"aria-label":"Toggle Darkmode",icon:s=="dark"?x.jsx(Nse,{}):x.jsx(jse,{})}),x.jsx($n,{margin:"0 0 0 1rem",onClick:T,children:r==="expert"?x.jsx(zse,{}):x.jsx(Lse,{})}),(!o||e=="web")&&x.jsx($n,{margin:"0 0 0 1rem",onClick:f,children:x.jsx(Vse,{})}),e=="app"&&x.jsx($n,{margin:"0 0 0 1rem",onClick:()=>window.close(),children:x.jsx(Qw,{})}),e=="overlay"&&x.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>c(Fe.actions.setUiType("qam")),children:[n&&x.jsx(ys,{button:"y",margin:"0 0.3rem 0 0",h:"1.7rem",invert:!0}),x.jsx(Hse,{h:"1.7rem"})]})]})}),x.jsxs(mt,{w:fb,flexDirection:"column",alignItems:"center",justifyContent:"center",children:[x.jsx(sle,{}),x.jsx(ale,{})]})]})},ule=()=>{const e=Pe(D9),t=Dr(),n=Pe(nd),r=Pe(Ms),i=Pe(Jm),o=Pe(F9),s=U9(!0),u=od(!0),c=Object.fromEntries(Object.entries(o).filter(g=>s(g[1]))),f=r==="overlay"&&i==="qam",[p,h]=_.useState(!1);if(_.useEffect(()=>{let g=null;return g=setTimeout(()=>{h(f)},f?3:200),()=>{g&&clearTimeout(g)}},[f]),!f&&!p)return x.jsx(x.Fragment,{});const m=f&&!p||!f&&p;return x.jsx(mt,{top:"0",right:"0",h:"100vh",position:"absolute",boxShadow:"dark-lg",overflowY:"scroll",overflowX:"hidden",transition:"0.06s ease-out",direction:"column",...m&&{transform:"translateX(70px)",opacity:0},sx:{"::-webkit-scrollbar":{display:"none"}},children:x.jsxs(Jx,{width:Ese,flexGrow:"1",margin:"0",borderRadius:"0",paddingBottom:"2rem",children:[x.jsx(OA,{children:x.jsxs(mt,{children:[x.jsx(Ta,{children:x.jsx(Xw,{height:"2.5rem",qam:!0})}),x.jsx(Pr,{flexGrow:"3"}),x.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>t(Fe.actions.setUiType("expanded")),children:[x.jsx(Use,{h:"1.7rem"}),n&&x.jsx(ys,{button:"y",margin:"0 0 0 0.3rem",h:"1.7rem",invert:!0})]}),x.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>t(Fe.actions.setUiType("closed")),children:[x.jsx(Qw,{h:"1.7rem"})," ",n&&x.jsx(ys,{button:"b",margin:"0 0 0 0.3rem",h:"1.7rem",invert:!0})]})]})}),x.jsx(RA,{children:x.jsx(R0,{divider:x.jsx(mw,{}),spacing:"4",children:Object.entries(c).map(([g,w])=>{let b=g.split("_").map(ya.capitalize).join(" ");return e&&e[g]&&(b=e[g]),x.jsxs(Pr,{children:[x.jsx(Ta,{size:"md",color:"brand.700",textTransform:"uppercase",marginLeft:"0.1rem",marginBottom:"0.7rem",children:b}),Object.entries(w).filter(([T,S])=>S.type==="container").filter(([T,S])=>u(S)).map(([T,S])=>{const y=`${g}.${T}`;return x.jsx(rv,{children:x.jsx(Jw,{path:y,settings:S,section:"qam",indent:0},y)},y)})]},g)})})})]})})};function cle(){const{path:e,setting:t}=Sse(),n=Dr(),{state:r,setState:i}=Da((e||"")+(t&&t.type==="mode"?".mode":"")),o=Pe(N9);if(!e||!t)return x.jsx(x.Fragment,{});if(!["mode","multiple","discrete"].includes(t.type))return x.jsx(x.Fragment,{});const s=u=>{u!==String(r)&&i(t.type==="discrete"?Number(u):u),n(Fe.actions.unselect())};return x.jsxs(kw,{isOpen:!0,onClose:()=>{n(Fe.actions.unselect())},isCentered:!0,children:[x.jsx(Pw,{}),x.jsxs(Tw,{children:[x.jsx(Ew,{children:x.jsxs(mt,{children:[x.jsx(Pr,{alignSelf:"center",textAlign:"center",flexGrow:"1",children:t.title}),x.jsx(Qw,{h:"2rem",w:"1rem",marginRight:".5rem"}),x.jsx(ys,{h:"2rem",button:"b",marginRight:"-0.5rem"})]})}),x.jsx(Aw,{textAlign:"justify",children:x.jsx(mt,{direction:"column",marginBottom:"1rem",children:Object.entries(ab(t)).map(([u,c])=>x.jsx($n,{margin:"0.6rem",padding:"1.5rem 0",colorScheme:u===o?"brand":"gray",rightIcon:String(r)===u?x.jsx(Wse,{}):void 0,transition:"all 0.2s ease",onClick:()=>s(u),children:String(c)},u))})})]})]})}const fle={lb:4,rb:5,dpad_up:12,dpad_down:13,dpad_left:14,dpad_right:15,a:0,b:1,x:2,y:3,select:8,start:9,guide:16},A4=500,dle=200,ple=[["left",0,!0],["right",0,!1],["up",1,!0],["down",1,!1]],hle=e=>{const t=e.getState(),n=id(t),r=rd(t),i=z9(r)(t),o=$f(r)(t),s=N9(t),u=mn.selectors.selectUrl(t),c=mn.selectors.selectToken(t);if(!n||!r||!u||!c){e.dispatch(Fe.actions.select());return}const f=$f(r)(t);switch(n.type){case"bool":e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:!f}));break;case"action":e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:!0}));break;case"mode":i?(console.log(r),o!==s&&e.dispatch(oa({cred:{token:c,endpoint:u},path:r+".mode",value:s})),e.dispatch(Fe.actions.unselect())):e.dispatch(Fe.actions.select());break;case"multiple":case"discrete":i?(console.log(r),o!==s&&e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:n.type==="discrete"?Number(s):s})),e.dispatch(Fe.actions.unselect())):e.dispatch(Fe.actions.select());break;default:e.dispatch(Fe.actions.select())}},R4=(e,t)=>{const n=e.getState(),{setting:r,path:i}=B0(n);if(!r||!i||!["float","int"].includes(r.type))return;const o=r,s=mn.selectors.selectUrl(n),u=mn.selectors.selectToken(n);if(!r||!i||!s||!u){e.dispatch(Fe.actions.select());return}let f=$f(i)(n);t?f-=o.step||1:f+=o.step||1,e.dispatch(oa({cred:{token:u,endpoint:s},path:i,value:f}))},Y9=e=>{for(const t of e){switch(t){case"dpad_up":case"up":ht.dispatch(Fe.actions.goPrev());break;case"dpad_down":case"down":ht.dispatch(Fe.actions.goNext());break;case"dpad_left":case"left":R4(ht,!0);break;case"dpad_right":case"right":R4(ht,!1);break;case"lb":ht.dispatch(Fe.actions.goPrev({section:"tab"}));break;case"rb":ht.dispatch(Fe.actions.goNext({section:"tab"}));break;case"x":ht.dispatch(Fe.actions.setShowHint(!0));break;case"x_up":ht.dispatch(Fe.actions.setShowHint(!1));break;case"a":hle(ht);break;case"b":ht.dispatch(Fe.actions.unselect());break;case"y":ht.dispatch(Fe.actions.toggleUiType());break}console.log(t)}},mle=()=>{let e={},t=!0;function n(){var o;const r=new Date().getTime(),i=ht.getState();if(j9(i)&&!(Ms(i)!=="overlay"&&!t))for(const[s,u]of navigator.getGamepads().entries()){if(!u)continue;const c=[];for(const[f,p]of Object.entries(fle)){const h=e[s]?!!e[s][f]:null,m=(o=u.buttons[p])==null?void 0:o.pressed;e[s]||(e[s]={}),h!==m&&(m?(c.push(f),["x","a","b"].includes(f)?e[s][f]=r+1e15:e[s][f]=r+A4):(f=="x"&&c.push("x_up"),e[s][f]=null))}for(const[f,p,h]of ple){const m=e[s]?!!e[s][f]:null;let g=!1;u.axes[p]&&(g=h?u.axes[p]<-.6:u.axes[p]>.6),e[s]||(e[s]={}),m!==g&&(g?(c.push(f),e[s][f]=r+A4):e[s][f]=null)}for(const[f,p]of Object.entries(e))for(const[h,m]of Object.entries(p))m&&(rt=!0),window.addEventListener("blur",()=>t=!1)},vle=e=>{ht.dispatch(Fe.actions.clearState()),ht.dispatch(Fe.actions.clearError()),ht.dispatch(mn.actions.setToken(e)),ht.dispatch(mn.actions.setUrl("http://localhost:5335")),ht.dispatch(Fe.actions.incLoadCounter())},gle=()=>{ht.dispatch(Fe.actions.clearState()),ht.dispatch(Fe.actions.clearError())},yle=e=>{ht.dispatch(Fe.actions.setUiType(e))},ble=e=>{ht.dispatch(Fe.actions.setAppType(e))},xle=e=>{Y9([e])},wle=Object.freeze(Object.defineProperty({__proto__:null,login:vle,logout:gle,sendGamepadEvent:xle,setAppType:ble,setUiType:yle},Symbol.toStringTag,{value:"Module"}));window.electronUtils=wle;mle();function Sle(){const{colorMode:e}=Fr(),t=Pe(ev),n=Pe(Jm),r=Pe(Ms),i=Dr(),o=Pe($9),s=Pe(N0),u=Pe(L9);let c;r==="web"||r==="app"?c="100%":n==="expanded"?c="90%":c="0%",mse(),bse(),wse();let f=null,p=!1;return o?f=x.jsx(mt,{direction:"column",alignItems:"center",h:"100vh",w:"100vw",children:x.jsx(Im,{size:"xl",thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"brand.500",marginTop:"15rem",marginBottom:"1rem"})}):s?f=x.jsxs(x.Fragment,{children:[x.jsx(cle,{}),x.jsx(ule,{}),x.jsx(lle,{})]}):(p=!0,f=x.jsx(Ise,{})),r==="overlay"&&u==="init"?x.jsx(x.Fragment,{}):x.jsxs(_.Fragment,{children:[x.jsx(Pr,{h:"100vh",w:"100vw",...Ose(e,t),backgroundAttachment:"fixed",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundColor:"black",position:"absolute",zIndex:"-1",transition:"0.2s ease-in-out",opacity:c}),x.jsx(Pr,{h:"100vh",w:"100vw",...p&&{...G9(t),overflowY:"auto"},onClick:h=>{h.currentTarget==h.target&&i(Fe.actions.setUiType("closed"))},children:x.jsx(K9,{loading:null,persistor:lse,children:f})})]})}function _le(){const e=Pe(nd),t=Pe(ev);let n=Ase,r=Rse;return t&&f1[t]&&(n=f1[t].theme,r=f1[t].controllerTheme),x.jsx(xZ,{theme:e?r:n,children:x.jsx(Sle,{})})}function Cle(){return x.jsx(xa.StrictMode,{children:x.jsx(coe,{store:ht,children:x.jsx(_le,{})})})}J2.createRoot(document.getElementById("root")).render(x.jsx(Cle,{})); +}`;var ze=J3(function(){return rt(A,ve+"return "+Q).apply(n,M)});if(ze.source=Q,Tg(ze))throw ze;return ze}function $$(a){return ut(a).toLowerCase()}function F$(a){return ut(a).toUpperCase()}function D$(a,l,d){if(a=ut(a),a&&(d||l===n))return lS(a);if(!a||!(l=mr(l)))return a;var v=si(a),k=si(l),A=uS(v,k),M=cS(v,k)+1;return Vo(v,A,M).join("")}function L$(a,l,d){if(a=ut(a),a&&(d||l===n))return a.slice(0,dS(a)+1);if(!a||!(l=mr(l)))return a;var v=si(a),k=cS(v,si(l))+1;return Vo(v,0,k).join("")}function j$(a,l,d){if(a=ut(a),a&&(d||l===n))return a.replace(Tu,"");if(!a||!(l=mr(l)))return a;var v=si(a),k=uS(v,si(l));return Vo(v,k).join("")}function z$(a,l){var d=B,v=X;if(Ft(l)){var k="separator"in l?l.separator:k;d="length"in l?Le(l.length):d,v="omission"in l?mr(l.omission):v}a=ut(a);var A=a.length;if(Gs(a)){var M=si(a);A=M.length}if(d>=A)return a;var D=d-Ks(v);if(D<1)return v;var N=M?Vo(M,0,D).join(""):a.slice(0,D);if(k===n)return N+v;if(M&&(D+=N.length-D),Eg(k)){if(a.slice(D).search(k)){var q,Y=N;for(k.global||(k=Wv(k.source,ut(qi.exec(k))+"g")),k.lastIndex=0;q=k.exec(Y);)var Q=q.index;N=N.slice(0,Q===n?D:Q)}}else if(a.indexOf(mr(k),D)!=D){var ie=N.lastIndexOf(k);ie>-1&&(N=N.slice(0,ie))}return N+v}function N$(a){return a=ut(a),a&&iv.test(a)?a.replace(Gi,mR):a}var B$=el(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),Rg=e3("toUpperCase");function Z3(a,l,d){return a=ut(a),l=d?n:l,l===n?cR(a)?yR(a):tR(a):a.match(l)||[]}var J3=Be(function(a,l){try{return pr(a,n,l)}catch(d){return Tg(d)?d:new Ie(d)}}),V$=to(function(a,l){return jr(l,function(d){d=Ti(d),Ji(a,d,Cg(a[d],a))}),a});function W$(a){var l=a==null?0:a.length,d=_e();return a=l?It(a,function(v){if(typeof v[1]!="function")throw new zr(s);return[d(v[0]),v[1]]}):[],Be(function(v){for(var k=-1;++kW)return[];var d=ne,v=En(a,ne);l=_e(l),a-=ne;for(var k=Nv(v,l);++d0||l<0)?new Ke(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=Le(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ke.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ke.prototype.toArray=function(){return this.take(ne)},Ci(Ke.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),k=E[v?"take"+(l=="last"?"Right":""):l],A=v||/^find/.test(l);k&&(E.prototype[l]=function(){var M=this.__wrapped__,D=v?[1]:arguments,N=M instanceof Ke,q=D[0],Y=N||Fe(M),Q=function(Ge){var Ze=k.apply(E,Do([Ge],D));return v&&ie?Ze[0]:Ze};Y&&d&&typeof q=="function"&&q.length!=1&&(N=Y=!1);var ie=this.__chain__,ve=!!this.__actions__.length,Ce=A&&!ie,ze=N&&!ve;if(!A&&Y){M=ze?M:new Ke(this);var ke=a.apply(M,D);return ke.__actions__.push({func:op,args:[Q],thisArg:n}),new Nr(ke,ie)}return Ce&&ze?a.apply(this,D):(ke=this.thru(Q),Ce?v?ke.value()[0]:ke.value():ke)})}),jr(["pop","push","shift","sort","splice","unshift"],function(a){var l=Od[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",v=/^(?:pop|shift)$/.test(a);E.prototype[a]=function(){var k=arguments;if(v&&!this.__chain__){var A=this.value();return l.apply(Fe(A)?A:[],k)}return this[d](function(M){return l.apply(Fe(M)?M:[],k)})}}),Ci(Ke.prototype,function(a,l){var d=E[l];if(d){var v=d.name+"";ht.call(Qs,v)||(Qs[v]=[]),Qs[v].push({name:l,func:d})}}),Qs[Zd(n,S).name]=[{name:"wrapper",func:n}],Ke.prototype.clone=NR,Ke.prototype.reverse=BR,Ke.prototype.value=VR,E.prototype.at=g7,E.prototype.chain=y7,E.prototype.commit=b7,E.prototype.next=x7,E.prototype.plant=S7,E.prototype.reverse=_7,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=C7,E.prototype.first=E.prototype.head,ju&&(E.prototype[ju]=w7),E},qs=bR();nt?((nt.exports=qs)._=qs,Ne._=qs):De._=qs}).call(co)})(j0,j0.exports);var ya=j0.exports;function xae(e,t){const n=t.indexOf(".");if(n===-1)return[];const r=t.substring(0,n),i=t.indexOf(".",n+1),o=t.substring(n+1,i!==-1?i:void 0);if(!o)return[];const s=i!==-1?t.substring(i+1):null,u=e[r][o];return s?[u,...R9(u,s)]:[u]}function wae(e,t){const n=xae(e,t);return n&&n.length?n[n.length-1]:null}function R9(e,t){if(!t)return[e];const n=t.indexOf("."),r=t.substring(0,n!==-1?n:void 0),i=n!==-1?t.substring(n+1):null;let o;if(e.type==="container")o=e.children[r];else if(e.type==="mode")o=e.modes[r];else return[];return i?[o,...R9(o,i)]:[o]}const ab=e=>{switch(e.type){case"mode":return Object.fromEntries(Object.entries(e.modes).map(([t,n])=>[t,n.title]));case"multiple":return e.options;case"discrete":return Object.fromEntries(e.options.map(t=>[String(t),String(t)]))}return{}},gs=async(e,t,n,r)=>{const i={Authorization:`Bearer ${t}`};r||(r={method:"GET"}),r.headers={...r==null?void 0:r.headers,...i};try{const o=await fetch(`${e}/api/v1/${n}`,r);return o.ok?{data:await o.json(),error:null}:{data:null,error:await o.text()}}catch(o){return{data:null,error:String(o)}}},sb=Zm("hhd/fetchSettings",async({endpoint:e,token:t})=>await gs(e,t,"settings")),lb=Zm("hhd/fetchState",async({endpoint:e,token:t})=>await gs(e,t,"state")),oa=Zm("hhd/updateSettingValue",async({path:e,value:t,cred:n})=>{const r=ya.set({},e,t),i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)};return await gs(n.endpoint,n.token,"state",i)}),O9=Zm("hhd/fetchSectionNames",async({endpoint:e,token:t})=>await gs(e,t,"sections")),jw=["hidden","hhd-update-decky","hhd-version-display-decky"],I9=["non-essential","advanced","expert",...jw],Sae=["expert",...jw],qo={uiType:"expanded",prevUiType:"init",appType:"web",controller:!1,visible:!0,login:!0,state:{},settings:{},loading:{settings:!1,state:!1,update:!1},error:"",sectionNames:{},tagFilter:"advanced",loadCounter:0,navigation:{curr:{},choices:{},smooth:!1,help:!1,sel:!1,sel_choice:null}},Me=A9({name:"hhd",initialState:qo,reducers:{updateHhdState:(e,t)=>{const{path:n,value:r}=t.payload;ya.set(e.state,n,r)},clearState:e=>{e.loading=qo.loading,e.settings=qo.settings,e.state=qo.state,e.navigation=qo.navigation},setFilter:(e,t)=>{e.tagFilter=t.payload,hc(e)},setController:(e,t)=>{e.controller=t.payload},setUiType:(e,t)=>{e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType=t.payload)},toggleUiType:e=>{e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType==="qam"?e.uiType="expanded":e.uiType==="expanded"&&(e.uiType="qam"))},setAppType:(e,t)=>{e.appType=t.payload,t.payload==="overlay"&&(e.controller=!0)},setError:(e,t)=>{e.error=t.payload},setShowHint:(e,t)=>{e.navigation.help=t.payload},setVisible:(e,t)=>{e.visible=t.payload},clearError:e=>{e.error=""},replaceState:(e,t)=>{const{state:n,settings:r}=t.payload;r&&(e.settings=r),n&&(e.state=n),hc(e)},setSectionNames:(e,t)=>{e.sectionNames=t.payload||{}},goPrev:(e,t)=>{if(e.navigation.sel){const{setting:i}=B0({hhd:e});if(!i)return;const o=Object.keys(ab(i));if(o.length){const s=o.indexOf(e.navigation.sel_choice);if(s===-1||s<=0)return;e.navigation.sel_choice=o[s-1];return}else e.navigation.sel=!1,e.navigation.sel_choice=null}if(e.uiType==="closed"&&e.appType==="overlay")return;let n;if(t.payload?n=t.payload.section:n=e.uiType==="qam"?"qam":e.navigation.curr.tab,!e.navigation.choices[n])return;const r=e.navigation.choices[n].indexOf(e.navigation.curr[n]);r>0&&(e.navigation.curr[n]=e.navigation.choices[n][r-1]),e.navigation.smooth=!0},goNext:(e,t)=>{if(e.navigation.sel){const{setting:i}=B0({hhd:e});if(!i)return;const o=Object.keys(ab(i));if(o.length){const s=o.indexOf(String(e.navigation.sel_choice));if(s===-1||s>=o.length-1)return;e.navigation.sel_choice=o[s+1];return}else e.navigation.sel=!1,e.navigation.sel_choice=null}if(e.uiType==="closed"&&e.appType==="overlay")return;let n;if(t.payload?n=t.payload.section:n=e.uiType==="qam"?"qam":e.navigation.curr.tab,!e.navigation.choices[n])return;const r=e.navigation.choices[n].indexOf(e.navigation.curr[n]);r!==-1&&r{const{section:n,curr:r}=t.payload;e.navigation.curr[n]=r,e.navigation.sel=!1,n!=="tab"&&(e.navigation.smooth=!1)},select:e=>{if(e.navigation.sel)return;const t=rd({hhd:e}),n=id({hhd:e});if(!n||!t)return;const r=$f(t+(n.type==="mode"?".mode":""))({hhd:e});e.navigation.sel=!0,e.navigation.sel_choice=String(r)},unselect:e=>{if(e.navigation.sel){e.navigation.sel=!1,e.navigation.sel_choice=null;return}e.appType==="overlay"&&(e.prevUiType=e.uiType,e.uiType="closed")},incLoadCounter:e=>{e.loadCounter+=1},login:e=>{e.login=!0},logout:e=>{e.login=!1,e.loading=qo.loading,e.settings=qo.settings,e.state=qo.state}},extraReducers:e=>{e.addCase(sb.pending,t=>{t.loading.settings=!0}),e.addCase(sb.fulfilled,(t,n)=>{n.payload.data&&(t.settings=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.settings=!1}),e.addCase(lb.pending,t=>{t.loading.state=!0}),e.addCase(lb.fulfilled,(t,n)=>{n.payload.data&&(t.state=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.state=!1}),e.addCase(oa.pending,t=>{t.loading.update=!0}),e.addCase(oa.fulfilled,(t,n)=>{n.payload.data&&(t.state=n.payload.data),n.payload.error&&(t.error="Could not fetch data. Is Handheld Daemon running?"),hc(t),t.loading.update=!1}),e.addCase(O9.fulfilled,(t,n)=>{t.sectionNames=n.payload.data||{}})}});function hc(e){if(!Object.keys(e.state).length||!Object.keys(e.settings).length)return;const t=s=>z0(s,I9),n=w4(e.settings,e.state,t);e.navigation.choices.qam=n,n.includes(e.navigation.curr.qam)||(e.navigation.curr.qam=n[0]);const r=s=>z0(s,M9(e.tagFilter));for(const[s,u]of Object.entries(e.settings)){const c={};c[s]=u;const f=w4(c,e.state,r);e.navigation.choices[s]=f,f.includes(e.navigation.curr[s])||(e.navigation.curr[s]=f[0])}function i(s){return Object.values(s).some(r)}const o=Object.entries(e.settings).filter(([s,u])=>i(u)).map(([s,u])=>s);e.navigation.choices.tab=o,o.includes(e.navigation.curr.tab)||(e.navigation.curr.tab=o[0])}function w4(e,t,n){let r=[];for(const[i,o]of Object.entries(e))for(const[s,u]of Object.entries(o).filter(c=>c[1].type==="container"))r.push(...ub(u,t[i][s],`${i}.${s}`,n));return r}function ub(e,t,n,r){if(!r(e))return[];const i=e.type;let o=[];switch(i){case"bool":case"multiple":case"discrete":case"int":case"float":case"action":return[n];case"container":for(const[c,f]of Object.entries(e.children))o.push(...ub(f,t[c],`${n}.${c}`,r));return o;case"mode":o=[n];const s=t.mode,u=e.modes[s];return u&&o.push(...ub(u,t[s],`${n}.${s}`,r)),o}return[]}const z0=(e,t)=>{const n=e.tags,r=e.type==="container"&&e.children;return n&&n.some(i=>t.includes(i))?!1:r?Object.values(r).some(i=>z0(i,t)):!0},M9=e=>e==="advanced"?Sae:jw,_ae=e=>{const t=Eae(e);return M9(t)},N0=e=>!e.hhd.loading.settings&&!e.hhd.loading.state&&Tae(e),$9=e=>e.hhd.loading.settings||e.hhd.loading.state,Cae=e=>e.hhd.error,kae=e=>t=>e?I9:_ae(t),$s=e=>e.hhd.appType,F9=e=>e.hhd.settings,$f=e=>t=>ya.get(t.hhd.state,e,null),nd=e=>e.hhd.controller,Tae=e=>{var t;return!!((t=e.hhd.state.hhd)!=null&&t.http)},Eae=e=>e.hhd.tagFilter,D9=e=>e.hhd.sectionNames,Jm=e=>e.hhd.uiType,L9=e=>e.hhd.prevUiType,Pae=e=>e.hhd.loadCounter,Aae=e=>e.hhd.controller&&e.hhd.navigation.help&&j9(e),j9=e=>e.hhd.appType==="overlay"&&e.hhd.uiType!=="closed"||e.hhd.appType!=="overlay"&&e.hhd.visible,rd=e=>{let t;return e.hhd.uiType==="qam"&&e.hhd.appType==="overlay"?t="qam":t=e.hhd.navigation.curr.tab,e.hhd.navigation.curr[t]},id=e=>{const t=rd(e);return t?wae(e.hhd.settings,t):null},Rae=e=>{const t=id(e);return!!(t&&t.hint)},z9=e=>t=>rd(t)===e&&t.hhd.navigation.sel,N9=e=>e.hhd.navigation.sel_choice,B0=e=>{const t=id(e);return!e.hhd.navigation.sel||!t?{setting:null,path:null}:{setting:t,path:rd(e)}},Oae=e=>$s(e)!=="overlay"||nd(e),ev=e=>{var r,i,o,s,u;const t=(o=(i=(r=e.hhd.state)==null?void 0:r.hhd)==null?void 0:i.settings)==null?void 0:o.theme;if(console.log(t),t&&t!=="default")return t;const n=(u=(s=e.hhd.state)==null?void 0:s.info)==null?void 0:u.os;return n&&n!=="ukn"?n:null},S4={url:"http://localhost:5335",token:"",filter:"advanced"},mn=A9({name:"local",initialState:S4,reducers:{setToken:(e,t)=>{e.token=t.payload},setUrl:(e,t)=>{t.payload?e.url=t.payload:e.url=S4.url},setFilter:(e,t)=>{e.filter=t.payload}},selectors:{selectToken:e=>e.token,selectUrl:e=>e.url,selectFilter:e=>e.filter,selectIsLocal:e=>e.url.includes("localhost"),selectCanLogin:e=>e.url&&e.token}});var zw="persist:",Nw="persist/FLUSH",tv="persist/REHYDRATE",Bw="persist/PAUSE",Vw="persist/PERSIST",Ww="persist/PURGE",Uw="persist/REGISTER",Iae=-1;function $h(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$h=function(n){return typeof n}:$h=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},$h(e)}function _4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mae(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Hae=5e3;function Gae(e,t){var n=e.version!==void 0?e.version:Iae;e.debug;var r=e.stateReconciler===void 0?Fae:e.stateReconciler,i=e.getStoredState||jae,o=e.timeout!==void 0?e.timeout:Hae,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},g=m._persist,x=Wae(m,["_persist"]),b=x;if(h.type===Vw){var T=!1,S=function(F,V){T||(h.rehydrate(e.key,F,V),T=!0)};if(o&&setTimeout(function(){!T&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},o),c=!1,s||(s=Dae(e)),g)return so({},t(b,h),{_persist:g});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(I){var F=e.migrate||function(V,B){return Promise.resolve(V)};F(I,n).then(function(V){S(V)},function(V){S(void 0,V)})},function(I){S(void 0,I)}),so({},t(b,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Ww)return u=!0,h.result(Nae(e)),so({},t(b,h),{_persist:g});if(h.type===Nw)return h.result(s&&s.flush()),so({},t(b,h),{_persist:g});if(h.type===Bw)c=!0;else if(h.type===tv){if(u)return so({},b,{_persist:so({},g,{rehydrated:!0})});if(h.key===e.key){var y=t(b,h),C=h.payload,P=r!==!1&&C!==void 0?r(C,p,y,e):y,O=so({},P,{_persist:so({},g,{rehydrated:!0})});return f(O)}}}if(!g)return t(p,h);var $=t(b,h);return $===b?p:f(so({},$,{_persist:g}))}}function k4(e){return Yae(e)||qae(e)||Kae()}function Kae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function qae(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Yae(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:B9,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Uw:return cb({},t,{registry:[].concat(k4(t.registry),[n.key])});case tv:var r=t.registry.indexOf(n.key),i=k4(t.registry);return i.splice(r,1),cb({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Zae(e,t,n){var r=n||!1,i=Mw(Qae,B9,t&&t.enhancer?t.enhancer:void 0),o=function(f){i.dispatch({type:Uw,key:f})},s=function(f,p,h){var m={type:tv,payload:p,err:h,key:f};e.dispatch(m),i.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=cb({},i,{purge:function(){var f=[];return e.dispatch({type:Ww,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:Nw,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:Bw})},persist:function(){e.dispatch({type:Vw,register:o,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var Hw={},Gw={};Gw.__esModule=!0;Gw.default=tse;function Fh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fh=function(n){return typeof n}:Fh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fh(e)}function l1(){}var Jae={getItem:l1,setItem:l1,removeItem:l1};function ese(e){if((typeof self>"u"?"undefined":Fh(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function tse(e){var t="".concat(e,"Storage");return ese(t)?self[t]:Jae}Hw.__esModule=!0;Hw.default=ise;var nse=rse(Gw);function rse(e){return e&&e.__esModule?e:{default:e}}function ise(e){var t=(0,nse.default)(e);return{getItem:function(r){return new Promise(function(i,o){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(o,s){o(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,o){i(t.removeItem(r))})}}}var V9=void 0,ose=ase(Hw);function ase(e){return e&&e.__esModule?e:{default:e}}var sse=(0,ose.default)("local");V9=sse;const{store:ct,persistor:lse}=(()=>{const t=Gae({key:"root",storage:V9},mn.reducer);let n=Xoe({reducer:{hhd:Me.reducer,local:t},devTools:!0,middleware:i=>i({serializableCheck:{ignoredActions:[Nw,tv,Bw,Vw,Ww,Uw]}})}),r=Zae(n);return window.store=n,{store:n,persistor:r}})();let ys;const use=100,E4=250,cse=1e3,fse=3e3,dse=100;async function pse(e,t){let n=Date.now(),r=t;try{for(;!e.signal.aborted;){if($9(ct.getState())){await new Promise(b=>setTimeout(b,dse,{signal:e.signal}));continue}if(!N0(ct.getState()))break;const i=ct.getState(),o=ya.get(i,"hhd.settings.hhd.version.value",ya.get(i,"hhd.state.version","")),s=N0(i),u=mn.selectors.selectUrl(i),c=mn.selectors.selectToken(i);if(!s){ys=void 0;return}const f=(await gs(u,c,r?"state":"state?poll",{signal:e.signal})).data,p=ya.get(f,"version","");r=!1;let h=null;if(f&&p!==o){h=(await gs(u,c,"settings",{signal:e.signal})).data;const x=(await gs(u,c,"sections",{signal:e.signal})).data;x&&ct.dispatch(Me.actions.setSectionNames(x))}(f&&JSON.stringify(i.hhd.state)!==JSON.stringify(f)||h)&&(ct.dispatch(Me.actions.replaceState({state:f,settings:h})),h&&(r=!0));const m=Date.now()-n;let g=null;if(f?m0){const x=g;await new Promise(T=>setTimeout(T,x,{signal:e.signal}))}}}catch{}}const W9=e=>{ys&&Kw();try{ys=new AbortController,pse(ys,e).catch(t=>{})}catch(t){console.log(t)}},Kw=()=>{ys&&(ys.abort("Stopping polling due to cleanup."),ys=void 0)};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"?(W9(!0),ct.dispatch(Me.actions.setVisible(!0))):(Kw(),ct.dispatch(Me.actions.setVisible(!1)))});function Su(e,t){const n=_.useRef(null),r=Pe(u=>!u.hhd.controller||e==="qam"&&u.hhd.uiType!=="qam"||e!=="qam"&&u.hhd.uiType==="qam"||e!=="qam"&&u.hhd.navigation.curr.tab!==e?!1:u.hhd.navigation.curr[e]===t),i=Pe(u=>u.hhd.navigation.smooth),o=Pe(z9(t)),s=()=>{};return _.useEffect(()=>{r&&n.current&&i&&n.current.scrollIntoView({behavior:"smooth",block:"center"})},[r,n.current,i]),{ref:n,focus:r,sel:o,setFocus:s}}const hse=e=>{const t=Dr();return{curr:Pe(i=>i.hhd.navigation.curr[e]),setCurr:i=>{t(Me.actions.goto({section:e,curr:i}))}}},mse=()=>{const e=Pe(Jm),t=Pe(L9),n=Pe($s),r=Pe(N0),i=100;_.useEffect(()=>{if(n!=="overlay"||!r)return;let o=0;e==="closed"&&t!=="init"&&(o=i);let s=setInterval(()=>{var c;const u=(c=window.electronUtilsRender)==null?void 0:c.updateStatus;u&&u(e),s&&(clearInterval(s),s=null)},o);return()=>{s&&(clearInterval(s),s=null)}},[e,n,r])},od=e=>{const t=Pe(kae(e));return r=>z0(r,t)},U9=(e=!1)=>{const t=od(e);function n(r){return Object.values(r).some(t)}return n},vse=()=>{const e=Dr();return{error:Pe(Cae),setError:r=>{e(Me.actions.setError(r))}}},H9=()=>{const e=Dr(),{token:t}=Yw(),{url:n}=qw();return()=>{e(Me.actions.clearState()),e(Me.actions.clearError()),e(sb({token:t,endpoint:n})),e(lb({token:t,endpoint:n})),e(O9({token:t,endpoint:n})),e(Me.actions.login()),W9(!1)}},gse=()=>{const e=Dr();return()=>{e(Me.actions.clearState()),e(Me.actions.clearError()),e(Me.actions.logout()),Kw()}};function Da(e){const t=Dr(),n=Pe($f(e)),{token:r}=Yw(),{url:i}=qw();return{state:n,setState:s=>{const u=oa({cred:{token:r,endpoint:i},path:e,value:s});return console.log(e,s),t(u)}}}function yse(){const e=Pe(mn.selectors.selectFilter),t=Dr();return{filter:e,setFilter:r=>{t(mn.actions.setFilter(r))}}}function bse(){const e=Dr(),t=Pe(mn.selectors.selectFilter);_.useEffect(()=>{e(Me.actions.setFilter(t))},[t])}function qw(){const e=Pe(mn.selectors.selectUrl),t=Dr();return{url:e,setUrl:r=>t(mn.actions.setUrl(r))}}function Yw(){const e=Pe(mn.selectors.selectToken),t=Dr();return{token:e,setToken:r=>t(mn.actions.setToken(r))}}function xse(){return Pe(mn.selectors.selectIsLocal)}function wse(){const e=H9(),t=Pe(mn.selectors.selectCanLogin),n=Pe(Pae);_.useEffect(()=>{t&&e()},[n])}function Sse(){return Pe(B0,p9)}function nv(){return Pe(Oae)}const Zp="/assets/background_dark_mono-ecYdkBS2.jpg",Jp="/assets/background_light_mono-Dx2HVsj0.jpg",_se="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47089'%20height='148.6409'%20viewBox='0%200%20386.47089%20148.6409'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='g38'%20transform='translate(-1591.2095,-95.610001)'%20style='display:inline'%3e%3crect%20style='display:none;fill:%23f9f9f9;stroke-width:0.778231'%20id='rect32'%20width='515.67297'%20height='279.05045'%20x='1525.9523'%20y='33.480999'%20/%3e%3cpath%20style='fill:%23f8d32b;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path32'%20/%3e%3cpath%20style='fill:%23e5b91f;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path33'%20/%3e%3cpath%20style='display:inline;fill:%23c0c7cf;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path34'%20/%3e%3cpath%20style='fill:%23929bac;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path35'%20/%3e%3cpath%20style='display:inline;fill:%23c0c7cf;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path36'%20/%3e%3cpath%20style='fill:%23929bac;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path37'%20/%3e%3cpath%20style='fill:%23e5b91f;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path38'%20/%3e%3c/g%3e%3c/svg%3e",Cse="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='385.92368'%20height='148.29019'%20viewBox='0%200%20385.92367%20148.29019'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='g11'%20transform='translate(-1591.0884,-96.247386)'%20style='display:inline'%3e%3crect%20style='display:none;fill:%23333333;stroke-width:0.778231'%20id='rect12'%20width='515.67297'%20height='279.05045'%20x='1525.9523'%20y='33.480999'%20/%3e%3cg%20id='g39'%20style='display:inline'%3e%3cpath%20style='fill:%23ac8a00;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12'%20/%3e%3cpath%20style='fill:%23e4bc1b;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9'%20/%3e%3cpath%20style='display:inline;fill:%23b3b3b3'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14'%20/%3e%3cpath%20style='fill:%23f9f9f9'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10'%20/%3e%3cpath%20style='display:inline;fill:%23b3b3b3'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2'%20/%3e%3cpath%20style='fill:%23f9f9f9'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1'%20/%3e%3cpath%20style='fill:%23e4bc1b;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",u1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47'%20height='148.64'%20viewBox='0%200%20386.47%20148.64'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='layer4'%20transform='translate(-94.946289,-1057.0915)'%3e%3crect%20style='display:none;fill:%23333333;stroke-width:0.778231'%20id='rect12-5'%20width='515.67297'%20height='279.05045'%20x='1556.8704'%20y='674.09174'%20transform='translate(-1526.7363,320.75535)'%20/%3e%3cg%20id='g39-3'%20style='display:inline'%20transform='translate(-1495.8183,961.3661)'%3e%3cpath%20style='fill:%23565656;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12-5'%20/%3e%3cg%20id='g1'%20style='fill:%23363636;fill-opacity:1'%3e%3cpath%20style='fill:%23363636;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9-62'%20/%3e%3cpath%20style='display:inline;fill:%23363636;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3-0'%20/%3e%3c/g%3e%3cpath%20style='display:inline;fill:%23929292;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14-9'%20/%3e%3cpath%20style='fill:%232e2e2e;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10-1'%20/%3e%3cpath%20style='display:inline;fill:%23929292;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2-2'%20/%3e%3cpath%20style='fill:%232e2e2e;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1-7'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",c1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3c!--%20Created%20with%20Inkscape%20(http://www.inkscape.org/)%20--%3e%3csvg%20width='386.47'%20height='148.64'%20viewBox='0%200%20386.47%20148.64'%20version='1.1'%20id='svg1'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs1'%20/%3e%3cg%20id='layer3'%20transform='translate(-84.938439,-1352.0157)'%3e%3crect%20style='display:none;fill:%23ffffff;stroke-width:0.778231'%20id='rect12-5-0'%20width='515.67297'%20height='279.05045'%20x='25.848906'%20y='1287.062'%20/%3e%3cg%20id='g39-3-3'%20style='display:inline'%20transform='translate(-1505.1062,1256.7414)'%3e%3cpath%20style='fill:%23a4a4a4;fill-opacity:1'%20d='m%201839.7378,229.68123%2086.4072,-1.12175%2047.2398,-90.24136%20-19.5694,-39.38968%20-50.999,0.935672%20-5.9441,13.351408%20z'%20id='path12-5-5'%20/%3e%3cg%20id='g2'%20style='fill:%23575757;fill-opacity:1'%3e%3cpath%20style='fill:%23575757;fill-opacity:1'%20d='m%201951.308,102.56035%20c%200.3887,1.00446%2018.2427,36.6966%2018.2427,36.6966%20l%20-46.8782,86.2714%20-78.9619,0.7116%20-0.3133,-6.03433%20-3.929,12.57741%2087.4794,-0.81995%2049.6145,-92.29589%20-16.9812,-37.1297%207.5448,-5.673419%20-68.5406,0.0078%20-7.2001,0.0096%206.5358,6.127989%20-4.7273,10.05409%20-13.0852,25.9755%20-50.6137,104.65964%2011.0824,-7.2873%2060.0582,-124.06983%204.7514,-9.64791%20z'%20id='path9-62-6'%20/%3e%3cpath%20style='display:inline;fill:%23575757;fill-opacity:1'%20d='m%201921.2469,149.51983%20-22.9022,40.53048%209.2342,-3.05211%2022.546,-40.15122%20z'%20id='path3-0-2'%20/%3e%3c/g%3e%3cg%20id='g4'%20style='fill:%23eeeeee;fill-opacity:1'%3e%3cpath%20style='display:inline;fill:%23eeeeee;fill-opacity:1'%20d='m%201664.7622,217.6189%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path14-9-9'%20/%3e%3cpath%20style='display:inline;fill:%23eeeeee;fill-opacity:1'%20d='m%201790.7701,217.072%2056.9775,0.51877%2036.6372,-81.72515%20-16.1841,-34.85687%20-92.9111,0.16089%20-53.7732,117.1038%205.8177,11.24722%2058.9144,-3.53651%20z'%20id='path2-2-2'%20/%3e%3c/g%3e%3cg%20id='g3'%20style='fill:%23898989;fill-opacity:1'%3e%3cpath%20style='fill:%23898989;fill-opacity:1'%20d='m%201667.4457,201.97937%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359007%20112.8754,-0.82102%20-5.0787,6.162847%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path10-1-1'%20/%3e%3cpath%20style='fill:%23898989;fill-opacity:1'%20d='m%201793.4536,201.43247%202.9962,-6.34796%208.6921,-5.33412%20-10.4206,24.12527%2052.5461,-0.11903%20-4.383,6.5058%20-50.1709,-1.35983%20-5.059,10.28018%20-59.0412,3.13185%202.1697,11.40222%20-7.933,-10.62331%20-5.3882,-12.84698%2054.4995,-115.15052%20-6.3485,-7.359001%20112.8754,-0.82102%20-5.0787,6.162841%2014.5566,35.33377%20-39.7913,81.99514%20-5.692,-0.17252%2038.4801,-80.15937%20-15.0247,-36.56381%20-25.1342,-0.16294%20-20.4414,38.93211%20-9.718,4.20444%204.2531,-8.82944%2017.5144,-34.71471%20-52.5654,0.39213%20-55.3867,116.87761%203.4845,6.47212%2056.2162,-3.36455%20z'%20id='path1-7-7'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kse="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20stroke='%2335bf5c'%20stroke-width='4'%20viewBox='0%200%2014%2014'%3e%3cpath%20d='M9%202H2V14%202M7%205v9M12%200V14'/%3e%3c/svg%3e",Tse="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='600'%20height='600'%20viewBox='0%200%20600%20600'%20fill='none'%20version='1.1'%20id='svg8'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cpath%20d='M%2050,150%20C%2050,94.7715%2094.7715,50%20150,50%20h%20150%20c%20138.071,0%20250,111.929%20250,250%20v%200%20c%200,138.071%20-111.929,250%20-250,250%20v%200%20C%20161.929,550%2050,438.071%2050,300%20Z'%20fill='url(%23paint0_linear_1016_105)'%20id='path1'%20style='fill:url(%23paint0_linear_1016_105)'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='m%20178,50%20h%2064%20V%20178%20H%20376.185%20C%20432.416,178%20478,223.584%20478,279.815%20478,389.269%20389.27,478%20279.815,478%20223.584,478%20178,432.416%20178,376.185%20V%20242%20H%2050%20v%20-64%20h%20128%20z%20m%2064,192%20V%20376.185%20C%20242,397.07%20258.93,414%20279.815,414%20353.923,414%20414,353.923%20414,279.815%20414,258.93%20397.07,242%20376.185,242%20Z'%20fill='%23ffffff'%20fill-opacity='0.5'%20id='path2'%20/%3e%3cpath%20d='M%20242,110%20C%20242,93.4315%20228.569,80%20212,80%20h%20-4%20c%20-16.569,0%20-30,13.4315%20-30,30%20v%2068%20h%20-68%20c%20-16.5685,0%20-30,13.431%20-30,30%20v%204%20c%200,16.569%2013.4315,30%2030,30%20h%2068%20v%2068%20c%200,16.569%2013.431,30%2030,30%20h%204%20c%2016.569,0%2030,-13.431%2030,-30%20v%20-68%20h%2068%20c%2016.569,0%2030,-13.431%2030,-30%20v%20-4%20c%200,-16.569%20-13.431,-30%20-30,-30%20h%20-68%20z'%20fill='%23ffffff'%20fill-opacity='0.7'%20id='path3'%20/%3e%3cpath%20d='m%20312.5,205.67%20c%203.333,1.924%203.333,6.736%200,8.66%20l%20-21,12.124%20c%20-3.333,1.925%20-7.5,-0.481%20-7.5,-4.33%20v%20-24.248%20c%200,-3.849%204.167,-6.255%207.5,-4.33%20z'%20fill='%23ffffff'%20id='path4'%20/%3e%3cpath%20d='m%20214.33,312.5%20c%20-1.924,3.333%20-6.736,3.333%20-8.66,0%20l%20-12.124,-21%20c%20-1.925,-3.333%200.481,-7.5%204.33,-7.5%20h%2024.248%20c%203.849,0%206.255,4.167%204.33,7.5%20z'%20fill='%23ffffff'%20id='path5'%20/%3e%3cpath%20d='m%20205.67,107.5%20c%201.924,-3.333%206.736,-3.333%208.66,0%20l%2012.124,21%20c%201.925,3.333%20-0.481,7.5%20-4.33,7.5%20h%20-24.248%20c%20-3.849,0%20-6.255,-4.167%20-4.33,-7.5%20z'%20fill='%23ffffff'%20id='path6'%20/%3e%3cpath%20d='m%20107.5,214.33%20c%20-3.333,-1.924%20-3.333,-6.736%200,-8.66%20l%2021,-12.124%20c%203.333,-1.925%207.5,0.481%207.5,4.33%20v%2024.248%20c%200,3.849%20-4.167,6.255%20-7.5,4.33%20z'%20fill='%23ffffff'%20id='path7'%20/%3e%3cdefs%20id='defs8'%3e%3clinearGradient%20id='paint0_linear_1016_105'%20x1='50'%20y1='50'%20x2='550'%20y2='550'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.0684898'%20stop-color='%230047AB'%20id='stop7'%20/%3e%3cstop%20offset='0.741212'%20stop-color='%238A2BE2'%20id='stop8'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",fb="500px",Ese="300px",Pse={initialColorMode:"dark",useSystemColorMode:!0},Dh=e=>{const t=lC({config:Pse,colors:e,styles:{global:{body:{bg:"transparent",overflow:"hidden"}}},shadows:{outline:"0 0 0 3px var(--chakra-colors-brand-700)"}},ZG({colorScheme:"brand"})),n=lC(t,{styles:{global:{body:{userSelect:"none"},":focus":{outline:"0 !important"}}},shadows:{outline:0}});return{theme:t,controllerTheme:n}},{theme:Ase,controllerTheme:Rse}=Dh({brand:{50:"#E4BC1B",100:"#E4BC1B",200:"#E4BC1B",300:"#E4BC1B",400:"#E4BC1B",500:"#E4BC1B",600:"#B69616",700:"#897110",800:"#5B4B0B",900:"#2E2605"},gray:{50:"#F5F2EF",100:"#E3DBD3",200:"#D1C3B7",300:"#BFAC9B",400:"#AD957F",500:"#7C6450",600:"#645141",700:"#1d1916",800:"#1d1916",900:"#1d1916"}}),f1={manjaro:Dh({brand:{50:"#35bf5c",100:"#35bf5c",200:"#35bf5c",300:"#35bf5c",400:"#35bf5c",500:"#35bf5c",600:"#31b055",700:"#289146",800:"#24823e",900:"#0f3519"},gray:{50:"#EEF7F1",100:"#CFE8D7",200:"#B0D9BD",300:"#91CAA3",400:"#72BB8A",500:"#54AB70",600:"#438959",700:"#19251d",800:"#19251d",900:"#112216"}}),bazzite:Dh({brand:{50:"#EBE8FD",100:"#816BF0",200:"#816BF0",300:"#816BF0",400:"#5E42EB",500:"#3A18E7",600:"#2F13B9",700:"#6d49b6",800:"#170A5C",900:"#0C052E"},gray:{50:"#ECE6FE",100:"#C9BAFC",200:"#A68EFB",300:"#8362F9",400:"#4a25cf",500:"#4a25cf",600:"#3e1fad",700:"#0e0b3c",800:"#0e0b3c",900:"#0e0b3c"}}),ocean:Dh({brand:{50:"#E4BC1B",100:"#E4BC1B",200:"#E4BC1B",300:"#E4BC1B",400:"#E4BC1B",500:"#E4BC1B",600:"#B69616",700:"#897110",800:"#5B4B0B",900:"#2E2605"},gray:{50:"#E9F0FB",100:"#C3D4F4",200:"#9CB8ED",300:"#759CE6",400:"#4E80DF",500:"#2764D8",600:"#1F50AD",700:"#183C81",800:"#102856",900:"#08142B"}})},G9=e=>{let t;switch(e){case"manjaro":t="#438959 #19251d";break;case"bazzite":t="#6d49b6 #0e0b3c";break;case"ocean":t="#E4BC1B #183C81";break;default:t="#B69616 #1d1916";break}return{css:{scrollbarColor:t}}},Ose=(e,t)=>{switch(t){case"manjaro":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(0.7) hue-rotate(85deg)"}:{bgImage:Jp,filter:"sepia(0.3) hue-rotate(85deg)"};case"bazzite":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(4) hue-rotate(200deg)"}:{bgImage:Jp,filter:"sepia(0.5) saturate(1) hue-rotate(202deg)"};case"ocean":return e==="dark"?{bgImage:Zp,filter:"sepia(1) saturate(4) hue-rotate(180deg)"}:{bgImage:Jp,filter:"sepia(0.5) saturate(2.3) hue-rotate(180deg)"};default:return e==="dark"?{bgImage:Zp,filter:"sepia(0.4) saturate(0.5) hue-rotate(335deg)"}:{bgImage:Jp}}},Xw=({height:e,width:t,qam:n})=>{const{colorMode:r}=Fr();switch(Pe(ev)){case"ocean":return w.jsx(Za,{src:r=="dark"?u1:c1,height:e,filter:"sepia(1) saturate(2.5) hue-rotate(10deg)"});case"manjaro":return w.jsxs(mt,{direction:"row",alignItems:"center",children:[w.jsx(Za,{src:kse,height:e}),!n&&w.jsx(Za,{src:r=="dark"?u1:c1,marginLeft:"0.8rem",height:e,filter:"sepia(1) saturate(2.5) hue-rotate(85deg)"})]});case"bazzite":return w.jsxs(mt,{direction:"row",alignItems:"center",children:[w.jsx(Za,{src:Tse,height:e}),!n&&w.jsx(Za,{src:r=="dark"?u1:c1,marginLeft:"0.8rem",height:e,filter:"sepia(1) saturate(2.5) hue-rotate(210deg)"})]})}return w.jsx(Za,{src:r=="dark"?Cse:_se,height:e,width:t})};function Ise(){const{url:e,setUrl:t}=qw(),{token:n,setToken:r}=Yw(),{error:i}=vse(),o=H9(),u=Pe($s)==="web";return w.jsx(mt,{minH:"100%",alignItems:"center",justifyContent:"center",children:w.jsxs(Jx,{maxW:"md",margin:"1rem 0",height:"fit-content",children:[w.jsx(OA,{children:w.jsx(mt,{width:"100%",margin:"1rem 0 0.25rem 0",justifyContent:"center",children:w.jsx(Xw,{width:"75%"})})}),w.jsx(RA,{children:w.jsxs(R0,{divider:w.jsx(mw,{}),spacing:"4",children:[w.jsx(va,{textAlign:"center",children:"Welcome to the Handheld Daemon Configurator!"}),w.jsxs(va,{children:["This is a ",u?"static website":"app"," you can use to configure your device (everything is done locally and there is no server). With the default security settings, you need to visit this webpage from your device and enter a security token. This token can be found below. Have fun!"]}),w.jsx(O0,{textAlign:"center",padding:"1rem",lang:"bash",children:"cat $HOME/.config/hhd/token"}),w.jsxs(va,{children:["Example token: ",w.jsx("b",{children:"2f7abbc42dc7"})]}),w.jsxs(R0,{spacing:"2",children:[w.jsxs(mt,{children:[w.jsx(A0,{type:"text",id:"token-input",value:e,onChange:c=>{t(c.target.value)},borderRightRadius:"0",placeholder:"URL"}),w.jsx($n,{w:"5rem",onClick:()=>{t(null)},borderLeftRadius:"0",children:"Reset"})]}),w.jsxs(mt,{children:[w.jsx(A0,{type:"text",display:"Token",id:"token-input",onChange:c=>{r(c.target.value)},value:n,borderRightRadius:"0",placeholder:"Token (empty if disabled)"}),w.jsx($n,{w:"5rem",onClick:()=>{r("")},borderLeftRadius:"0",children:"Clear"})]}),w.jsx($n,{onClick:o,children:"Connect"}),i&&w.jsxs($m,{status:"error",children:[w.jsx(Mm,{}),i]})]})]})})]})})}function Lh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lh=function(n){return typeof n}:Lh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lh(e)}function Mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P4(e,t){for(var n=0;n{let r=null;const{colorMode:i,toggleColorMode:o}=Fr();switch(e){case"lb":r=Gse;break;case"rb":r=Kse;break;case"y":r=qse;break;case"b":r=Yse;break;case"x":r=Xse;break}let s=null;return i==="dark"&&t&&(s="brightness(0%)"),i==="light"&&!t&&(s="brightness(0%)"),r?w.jsx(Za,{src:r,filter:s,...n}):(console.error(`Controller button ${e} not found`),w.jsx(w.Fragment,{}))};class rv extends _.Component{constructor(t){super(t),this.state={hasError:!1,title:t==null?void 0:t.title}}static getDerivedStateFromError(t){return console.log(t),{hasError:!0}}componentDidCatch(t,n){console.log(t,n)}render(){return this.state.hasError?w.jsxs($m,{status:"error",children:[w.jsx(Mm,{}),"Error while loading ",this.props.title]}):this.props.children}}const ba=(e,t)=>e?{border:"2px",borderColor:t==="dark"?"gray.500":"gray.300",borderStyle:"solid",borderRadius:"8px",transform:"scale(1.05)",padding:"0.25rem 0.6rem",margin:"0 0.15rem",bg:t==="dark"?"gray.600":"gray.100",transition:"all 0.1s ease-in-out",zIndex:"dropdown"}:{border:"2px",borderColor:"transparent",borderStyle:"solid",padding:"0.25rem 0.6rem",transition:"all 0.1s ease-in-out"},Qse=({settings:e,path:t,section:n})=>{let{tags:r,title:i,min:o,max:s,unit:u,step:c,hint:f,type:p}=e;p==="int"&&!c&&(c=1);const{state:h,setState:m}=Da(t),{ref:g,sel:x,focus:b,setFocus:T}=Su(n,t),{colorMode:S}=Fr(),y=nv();return r!=null&&r.includes("dropdown")?w.jsxs(Pr,{...ba(b,S),children:[w.jsx(ga,{label:f,isDisabled:y,children:w.jsx($i,{htmlFor:t,children:i})}),w.jsxs(K8,{id:t,onChange:m,min:o,max:s,step:c,value:h,ref:g,onFocus:T,marginBottom:"0.4rem",children:[w.jsx(Y8,{}),w.jsxs(q8,{children:[w.jsx(Z8,{}),w.jsx(Q8,{})]})]})]}):r!=null&&r.includes("slim")?w.jsxs(mt,{direction:"row",alignItems:"center",...ba(b,S),children:[w.jsx(ga,{label:f,isDisabled:y,children:w.jsx($i,{minW:"2.4rem",htmlFor:t,textAlign:"end",margin:"0 0.45rem 0 0",children:i})}),w.jsxs(q2,{min:o,max:s,onChange:m,onFocus:T,step:c,value:h,focusThumbOnChange:!1,ref:g,children:[w.jsx(X2,{children:w.jsx(Q2,{transition:"all 0.2s ease"})}),w.jsx(Y2,{transition:"all 0.2s ease",...x&&{bg:"brand.300"}})]}),h&&w.jsxs($i,{minW:"2.7rem",textAlign:"end",margin:"0 0 0 0.3rem",children:[h,u||""]})]}):w.jsxs(Pr,{...ba(b,S),children:[w.jsxs(mt,{direction:"row",alignItems:"center",children:[w.jsx(ga,{label:f,isDisabled:y,children:w.jsx($i,{flexGrow:"1",htmlFor:t,justifySelf:"stretch",children:i})}),h&&w.jsxs($i,{children:[h,u||""]})]}),w.jsxs(q2,{min:o,max:s,value:h,step:c,onChange:m,focusThumbOnChange:!1,ref:g,onFocus:T,children:[w.jsx(X2,{children:w.jsx(Q2,{transition:"all 0.2s ease"})}),w.jsx(Y2,{transition:"all 0.2s ease",...x&&{bg:"brand.300"}})]})]})},Zse=({settings:e,path:t,section:n})=>{const{title:r,hint:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr(),h=nv();return w.jsxs(mt,{flexDirection:"row",alignItems:"center",...ba(c,p),children:[w.jsx(ga,{label:i,isDisabled:h,children:w.jsx($i,{htmlFor:t,flexGrow:"1",margin:"0",children:r})}),w.jsx($A,{id:t,isChecked:!!o,onChange:m=>s(m.target.checked),ref:u,onFocus:f})]})},Jse=({settings:e,path:t,section:n})=>{const{title:r,options:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr();return w.jsxs(mt,{flexDirection:"column",...ba(c,p),marginTop:"0.2rem",marginBottom:"0.2rem",children:[w.jsx($i,{htmlFor:t,children:r}),w.jsxs(Lm,{children:[w.jsx(Nm,{as:$n,rightIcon:w.jsx(Zw,{}),ref:u,onFocus:f,marginBottom:"0.35rem",children:o}),w.jsx(jm,{children:w.jsx(zm,{type:"radio",value:String(o),children:i.map(h=>w.jsx(Jf,{value:String(h),onClick:()=>s(h),children:h},h))})})]})]})},ele=({settings:e,path:t,section:n})=>{const{title:r,options:i}=e,{state:o,setState:s}=Da(t),{ref:u,focus:c,setFocus:f}=Su(n,t),{colorMode:p}=Fr();return w.jsxs(mt,{flexDirection:"column",...ba(c,p),margin:"0.2rem 0",children:[w.jsx($i,{htmlFor:t,children:r}),w.jsxs(Lm,{children:[w.jsx(Nm,{as:$n,rightIcon:w.jsx(Zw,{}),ref:u,onFocus:f,marginBottom:"0.35rem",children:o&&i[o]}),w.jsx(jm,{children:w.jsx(zm,{type:"radio",value:o,children:Object.entries(i).map(([h,m])=>w.jsx(Jf,{value:h,onClick:()=>s(h),children:m},h))})})]})]})},tle=()=>w.jsx(w.Fragment,{}),nle=({settings:e,path:t})=>{const{title:n,tags:r}=e,{state:i}=Da(t),o=r==null?void 0:r.includes("error"),s=(r==null?void 0:r.includes("hhd-version-display"))||(r==null?void 0:r.includes("slim"));return i?s?w.jsx(O0,{padding:"1rem",margin:"0.5rem 0.7rem",borderRadius:"6px",children:w.jsxs(mt,{justifyContent:"space-between",...o&&{colorScheme:"red"},children:[w.jsxs(va,{as:"b",children:[n,":"]}),w.jsx(va,{children:i})]})}):w.jsxs(O0,{padding:"1rem",margin:"0.5rem 0.7rem",borderRadius:"6px",textAlign:"center",...o&&{colorScheme:"red"},children:[w.jsx(Ta,{size:"md",textAlign:"center",paddingBottom:"0.5rem",children:n}),i]}):w.jsx(w.Fragment,{})},rle=({settings:e,path:t,section:n})=>{const{title:r}=e,{state:i,setState:o}=Da(t),{ref:s,focus:u,setFocus:c}=Su(n,t),{colorMode:f}=Fr();return w.jsx(mt,{...ba(u,f),flexDirection:"column",alignItems:"stretch",children:w.jsx($n,{onClick:()=>o(!0),disabled:!i,ref:s,onFocus:c,margin:"0.3rem 0.1rem",children:r})})},q9=e=>{switch(e.settings.type){case"float":case"int":return w.jsx(Qse,{...e});case"bool":return w.jsx(Zse,{...e});case"discrete":return w.jsx(Jse,{...e});case"multiple":return w.jsx(ele,{...e});case"display":return w.jsx(nle,{...e});case"action":return w.jsx(rle,{...e});case"custom":return w.jsx(tle,{...e})}return w.jsx(w.Fragment,{children:" "})},ile=({settings:e,path:t,section:n})=>{const{state:r,setState:i}=Da(`${t}.mode`),{title:o,modes:s,hint:u}=e,c=od(n==="qam"),{ref:f,focus:p,setFocus:h}=Su(n,t),{colorMode:m}=Fr(),g=nv(),x=r?e.modes[r]:null;return w.jsxs(w.Fragment,{children:[w.jsxs(Pr,{...ba(p,m),children:[w.jsx(ga,{label:u,isDisabled:g,children:w.jsx($i,{htmlFor:t,children:o})}),w.jsxs(Lm,{children:[w.jsx(ga,{label:x==null?void 0:x.hint,isDisabled:g,children:w.jsx(Nm,{as:$n,width:"100%",ref:f,onFocus:h,rightIcon:w.jsx(Zw,{}),marginBottom:"0.3rem",children:x==null?void 0:x.title})}),w.jsx(jm,{children:w.jsx(zm,{type:"radio",value:r,children:Object.entries(s).map(([b,{title:T}],S)=>w.jsx(Jf,{value:b,onClick:()=>i(b),children:T},S))})})]})]}),w.jsxs(mt,{direction:"row",margin:"0.2rem 0.1rem 0.4rem 0.3rem",children:[w.jsx(vw,{children:w.jsx(gw,{orientation:"vertical",marginRight:"0.75rem",alignSelf:"stretch"})}),w.jsx(mt,{direction:"column",flexGrow:"1",children:x&&c(x)&&Object.entries(x.children).filter(b=>c(b[1])).map(([b,T],S)=>w.jsx(rv,{title:o,children:w.jsx(q9,{path:`${t}.${r}.${b}`,settings:T,section:n})},S))})]})]})},Jw=({settings:e,path:t,section:n,indent:r})=>{const{title:i,children:o,tags:s,hint:u}=e,c=n==="qam",f=od(c),p=!c||!(s!=null&&s.includes("hide-title")),h=nv();r===void 0&&(r=0);const m=(g,x)=>{const{type:b}=x;switch(b){case"mode":return w.jsx(ile,{path:`${t}.${g}`,settings:x,section:n});case"container":return w.jsx(Jw,{path:`${t}.${g}`,settings:x,section:n,indent:r+1});default:return w.jsx(q9,{path:`${t}.${g}`,settings:x,section:n})}};return w.jsxs(mt,{direction:"column",padding:"0",marginTop:r?"0.5rem":"0",marginLeft:`${r*1}rem`,children:[p&&w.jsx(ga,{label:u,isDisabled:h,children:w.jsx(Ta,{as:"h1",fontSize:r?"lg":"xl",marginBottom:"1rem",children:i})}),w.jsx(mt,{direction:"column",flexGrow:"1",children:Object.entries(o).filter(([g,x])=>f(x)).map(([g,x],b)=>w.jsx(rv,{title:i,children:m(g,x)},b))})]})},ole=({section:e,containers:t})=>{const n=od(!1);return w.jsx(Pr,{children:Object.entries(t).filter(([r,i])=>i.type==="container").filter(([r,i])=>n(i)).map(([r,i])=>{const o=`${e}.${r}`;return w.jsx(a9,{tabIndex:-1,children:w.jsx(rv,{children:w.jsx(Jw,{path:o,settings:i,section:e,indent:0})})},o)})})},ale=()=>{const e=Pe(D9),t=Pe(nd),n=Pe(F9),r=U9(!1),i=Pe(Rae),o=Object.fromEntries(Object.entries(n).filter(f=>r(f[1]))),s=Object.keys(o),{curr:u,setCurr:c}=hse("tab");return w.jsx(Jx,{width:fb,children:w.jsxs(i9,{onChange:f=>c(s[f]),size:"md",orientation:"vertical",index:s.indexOf(u),isLazy:!0,children:[w.jsxs(o9,{padding:"1rem 0",children:[t&&w.jsx(bs,{alignSelf:"end",button:"lb",w:"2.5rem",margin:"-0.6rem 0.5rem -0.1rem 0"}),Object.keys(o).map((f,p)=>{let h=f.split("_").map(ya.capitalize).join(" ");return e&&e[f]&&(h=e[f]),w.jsx(l9,{justifyContent:"end",children:h},`tablist-tab-${p}`)}),t&&w.jsxs(w.Fragment,{children:[w.jsx(bs,{alignSelf:"end",button:"rb",w:"2.5rem",margin:"-0.4rem 0.5rem 0.3rem 0"}),i&&w.jsxs(mt,{direction:"row",alignItems:"center",alignSelf:"end",marginRight:"0.4rem",children:[w.jsx(Bse,{h:"1.5rem",w:"1.3rem",marginRight:"0.3rem"}),w.jsx(bs,{button:"x",margin:"0 0.3rem 0 0",h:"1.7rem"})]})]})]}),w.jsx(s9,{padding:"0.5rem 0",children:Object.entries(o).map(([f,p])=>w.jsx(ole,{section:f,containers:p},f))})]})})};function sle(){const e=Pe(Aae),t=Pe(id,p9);return!e||!t||!t.hint?w.jsx(w.Fragment,{}):w.jsxs(kw,{isOpen:!0,onClose:()=>{},isCentered:!0,children:[w.jsx(Pw,{}),w.jsxs(Tw,{children:[w.jsx(Ew,{children:t.title}),w.jsxs(Aw,{textAlign:"justify",children:[w.jsx(va,{margin:"-0.5rem 0 1rem 0",children:t.hint}),t.type=="mode"&&Object.values(t.modes).some(n=>n.hint)&&w.jsxs(w.Fragment,{children:[w.jsx(Ta,{size:"md",marginTop:"0.7rem",marginBottom:"0.7rem",children:"Modes"}),w.jsxs(mt,{direction:"row",marginBottom:"1rem",children:[w.jsx(vw,{children:w.jsx(gw,{orientation:"vertical",margin:"0 0.75rem 0 0.2rem",alignSelf:"stretch"})}),w.jsx(Pr,{children:Object.values(t.modes).map((n,r)=>w.jsxs(_.Fragment,{children:[w.jsx(Ta,{size:"sm",marginTop:"0.7rem",marginBottom:"0.3rem",children:n.title}),w.jsx(va,{marginBottom:"0.3rem",children:n.hint||"..."})]},r))})]})]})]})]})]})}const lle=()=>{const e=Pe($s),t=Pe(Jm),n=Pe(nd),{filter:r,setFilter:i}=yse(),o=xse(),{colorMode:s,toggleColorMode:u}=Fr(),c=Dr(),f=gse(),p=Pe(ev),h=e!=="overlay"||t==="expanded",[m,g]=_.useState(!1),[x,b]=_.useState(!1);_.useEffect(()=>{let C=null;C=setTimeout(()=>{g(h)},h?3:200);let P=setTimeout(()=>{b(h)},h?400:0);return()=>{C&&clearTimeout(C),P&&clearTimeout(P)}},[h]);const T=()=>i(r==="expert"?"advanced":"expert");if(!h&&!m)return w.jsx(w.Fragment,{});const S=h&&!m||!h&&m;let y;return e==="overlay"?y={sx:{"::-webkit-scrollbar":{display:"none"}}}:x?s==="dark"&&(y=G9(p)):y={sx:{"::-webkit-scrollbar":{opacity:"0"}}},y={...y},w.jsxs(mt,{padding:"2rem 0",position:"absolute",flexDirection:"column",alignItems:"center",overflowX:"clip",overflowY:"scroll",h:"100vh",w:"100vw",transition:"0.07s ease-in",...S&&{transform:"scale(80%)",opacity:0},...y,onClick:C=>{C.currentTarget==C.target&&c(Me.actions.setUiType("closed"))},children:[w.jsx(mt,{margin:"0.5rem 1rem 1.2rem 1rem",children:w.jsxs(mt,{w:fb,flexDirection:"row",alignItems:"start",justifyContent:"start",children:[w.jsx(Ta,{children:w.jsx(Xw,{height:"2.5rem"})}),w.jsx(Pr,{flexGrow:"3"}),w.jsx(PA,{onClick:u,"aria-label":"Toggle Darkmode",icon:s=="dark"?w.jsx(Nse,{}):w.jsx(jse,{})}),w.jsx($n,{margin:"0 0 0 1rem",onClick:T,children:r==="expert"?w.jsx(zse,{}):w.jsx(Lse,{})}),(!o||e=="web")&&w.jsx($n,{margin:"0 0 0 1rem",onClick:f,children:w.jsx(Vse,{})}),e=="app"&&w.jsx($n,{margin:"0 0 0 1rem",onClick:()=>window.close(),children:w.jsx(Qw,{})}),e=="overlay"&&w.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>c(Me.actions.setUiType("qam")),children:[n&&w.jsx(bs,{button:"y",margin:"0 0.3rem 0 0",h:"1.7rem",invert:!0}),w.jsx(Hse,{h:"1.7rem"})]})]})}),w.jsxs(mt,{w:fb,flexDirection:"column",alignItems:"center",justifyContent:"center",children:[w.jsx(sle,{}),w.jsx(ale,{})]})]})},ule=()=>{const e=Pe(D9),t=Dr(),n=Pe(nd),r=Pe($s),i=Pe(Jm),o=Pe(F9),s=U9(!0),u=od(!0),c=Object.fromEntries(Object.entries(o).filter(g=>s(g[1]))),f=r==="overlay"&&i==="qam",[p,h]=_.useState(!1);if(_.useEffect(()=>{let g=null;return g=setTimeout(()=>{h(f)},f?3:200),()=>{g&&clearTimeout(g)}},[f]),!f&&!p)return w.jsx(w.Fragment,{});const m=f&&!p||!f&&p;return w.jsx(mt,{top:"0",right:"0",h:"100vh",position:"absolute",boxShadow:"dark-lg",overflowY:"scroll",overflowX:"hidden",transition:"0.06s ease-out",direction:"column",...m&&{transform:"translateX(70px)",opacity:0},sx:{"::-webkit-scrollbar":{display:"none"}},children:w.jsxs(Jx,{width:Ese,flexGrow:"1",margin:"0",borderRadius:"0",paddingBottom:"2rem",children:[w.jsx(OA,{children:w.jsxs(mt,{children:[w.jsx(Ta,{children:w.jsx(Xw,{height:"2.5rem",qam:!0})}),w.jsx(Pr,{flexGrow:"3"}),w.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>t(Me.actions.setUiType("expanded")),children:[w.jsx(Use,{h:"1.7rem"}),n&&w.jsx(bs,{button:"y",margin:"0 0 0 0.3rem",h:"1.7rem",invert:!0})]}),w.jsxs($n,{margin:"0 0 0 1rem",onClick:()=>t(Me.actions.setUiType("closed")),children:[w.jsx(Qw,{h:"1.7rem"})," ",n&&w.jsx(bs,{button:"b",margin:"0 0 0 0.3rem",h:"1.7rem",invert:!0})]})]})}),w.jsx(RA,{children:w.jsx(R0,{divider:w.jsx(mw,{}),spacing:"4",children:Object.entries(c).map(([g,x])=>{let b=g.split("_").map(ya.capitalize).join(" ");return e&&e[g]&&(b=e[g]),w.jsxs(Pr,{children:[w.jsx(Ta,{size:"md",color:"brand.700",textTransform:"uppercase",marginLeft:"0.1rem",marginBottom:"0.7rem",children:b}),Object.entries(x).filter(([T,S])=>S.type==="container").filter(([T,S])=>u(S)).map(([T,S])=>{const y=`${g}.${T}`;return w.jsx(rv,{children:w.jsx(Jw,{path:y,settings:S,section:"qam",indent:0},y)},y)})]},g)})})})]})})};function cle(){const{path:e,setting:t}=Sse(),n=Dr(),{state:r,setState:i}=Da((e||"")+(t&&t.type==="mode"?".mode":"")),o=Pe(N9);if(!e||!t)return w.jsx(w.Fragment,{});if(!["mode","multiple","discrete"].includes(t.type))return w.jsx(w.Fragment,{});const s=u=>{u!==String(r)&&i(t.type==="discrete"?Number(u):u),n(Me.actions.unselect())};return w.jsxs(kw,{isOpen:!0,onClose:()=>{n(Me.actions.unselect())},isCentered:!0,children:[w.jsx(Pw,{}),w.jsxs(Tw,{children:[w.jsx(Ew,{children:w.jsxs(mt,{children:[w.jsx(Pr,{alignSelf:"center",textAlign:"center",flexGrow:"1",children:t.title}),w.jsx(Qw,{h:"2rem",w:"1rem",marginRight:".5rem"}),w.jsx(bs,{h:"2rem",button:"b",marginRight:"-0.5rem"})]})}),w.jsx(Aw,{textAlign:"justify",children:w.jsx(mt,{direction:"column",marginBottom:"1rem",children:Object.entries(ab(t)).map(([u,c])=>w.jsx($n,{margin:"0.6rem",padding:"1.5rem 0",colorScheme:u===o?"brand":"gray",rightIcon:String(r)===u?w.jsx(Wse,{}):void 0,transition:"all 0.2s ease",onClick:()=>s(u),children:String(c)},u))})})]})]})}const fle={lb:4,rb:5,dpad_up:12,dpad_down:13,dpad_left:14,dpad_right:15,a:0,b:1,x:2,y:3,select:8,start:9,guide:16},A4=500,dle=200,ple=[["left",0,!0],["right",0,!1],["up",1,!0],["down",1,!1]],hle=e=>{const t=e.getState(),n=id(t),r=rd(t),i=z9(r)(t),o=$f(r)(t),s=N9(t),u=mn.selectors.selectUrl(t),c=mn.selectors.selectToken(t);if(!n||!r||!u||!c){e.dispatch(Me.actions.select());return}const f=$f(r)(t);switch(n.type){case"bool":e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:!f}));break;case"action":e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:!0}));break;case"mode":i?(console.log(r),o!==s&&e.dispatch(oa({cred:{token:c,endpoint:u},path:r+".mode",value:s})),e.dispatch(Me.actions.unselect())):e.dispatch(Me.actions.select());break;case"multiple":case"discrete":i?(console.log(r),o!==s&&e.dispatch(oa({cred:{token:c,endpoint:u},path:r,value:n.type==="discrete"?Number(s):s})),e.dispatch(Me.actions.unselect())):e.dispatch(Me.actions.select());break;default:e.dispatch(Me.actions.select())}},R4=(e,t)=>{const n=e.getState(),{setting:r,path:i}=B0(n);if(!r||!i||!["float","int"].includes(r.type))return;const o=r,s=mn.selectors.selectUrl(n),u=mn.selectors.selectToken(n);if(!r||!i||!s||!u){e.dispatch(Me.actions.select());return}let f=$f(i)(n);t?f-=o.step||1:f+=o.step||1,e.dispatch(oa({cred:{token:u,endpoint:s},path:i,value:f}))},Y9=e=>{for(const t of e){switch(t){case"dpad_up":case"up":ct.dispatch(Me.actions.goPrev());break;case"dpad_down":case"down":ct.dispatch(Me.actions.goNext());break;case"dpad_left":case"left":R4(ct,!0);break;case"dpad_right":case"right":R4(ct,!1);break;case"lb":ct.dispatch(Me.actions.goPrev({section:"tab"}));break;case"rb":ct.dispatch(Me.actions.goNext({section:"tab"}));break;case"x":ct.dispatch(Me.actions.setShowHint(!0));break;case"x_up":ct.dispatch(Me.actions.setShowHint(!1));break;case"a":hle(ct);break;case"b":ct.dispatch(Me.actions.unselect());break;case"y":ct.dispatch(Me.actions.toggleUiType());break}console.log(t)}},mle=()=>{let e={},t=!0;function n(){var o;const r=new Date().getTime(),i=ct.getState();if(!j9(i)){e={};return}if($s(i)!=="overlay"&&!t){e={};return}for(const[s,u]of navigator.getGamepads().entries()){if(!u)continue;const c=[];for(const[f,p]of Object.entries(fle)){const h=e[s]?!!e[s][f]:null,m=(o=u.buttons[p])==null?void 0:o.pressed;e[s]||(e[s]={}),h!==m&&(m?(c.push(f),["x","a","b"].includes(f)?e[s][f]=r+1e15:e[s][f]=r+A4):(f=="x"&&c.push("x_up"),e[s][f]=null))}for(const[f,p,h]of ple){const m=e[s]?!!e[s][f]:null;let g=!1;u.axes[p]&&(g=h?u.axes[p]<-.6:u.axes[p]>.6),e[s]||(e[s]={}),m!==g&&(g?(c.push(f),e[s][f]=r+A4):e[s][f]=null)}for(const[f,p]of Object.entries(e))for(const[h,m]of Object.entries(p))m&&(rt=!0),window.addEventListener("blur",()=>t=!1)},vle=e=>{ct.dispatch(Me.actions.clearState()),ct.dispatch(Me.actions.clearError()),ct.dispatch(mn.actions.setToken(e)),ct.dispatch(mn.actions.setUrl("http://localhost:5335")),ct.dispatch(Me.actions.incLoadCounter())},gle=()=>{ct.dispatch(Me.actions.clearState()),ct.dispatch(Me.actions.clearError())},yle=e=>{ct.dispatch(Me.actions.setUiType(e))},ble=e=>{ct.dispatch(Me.actions.setAppType(e))},xle=e=>{Y9([e])},wle=Object.freeze(Object.defineProperty({__proto__:null,login:vle,logout:gle,sendGamepadEvent:xle,setAppType:ble,setUiType:yle},Symbol.toStringTag,{value:"Module"}));window.electronUtils=wle;mle();function Sle(){const{colorMode:e}=Fr(),t=Pe(ev),n=Pe(Jm),r=Pe($s),i=Dr(),o=Pe($9),s=Pe(N0),u=Pe(L9);let c;r==="web"||r==="app"?c="100%":n==="expanded"?c="90%":c="0%",mse(),bse(),wse();let f=null,p=!1;return o?f=w.jsx(mt,{direction:"column",alignItems:"center",h:"100vh",w:"100vw",children:w.jsx(Im,{size:"xl",thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"brand.500",marginTop:"15rem",marginBottom:"1rem"})}):s?f=w.jsxs(w.Fragment,{children:[w.jsx(cle,{}),w.jsx(ule,{}),w.jsx(lle,{})]}):(p=!0,f=w.jsx(Ise,{})),r==="overlay"&&u==="init"?w.jsx(w.Fragment,{}):w.jsxs(_.Fragment,{children:[w.jsx(Pr,{h:"100vh",w:"100vw",...Ose(e,t),backgroundAttachment:"fixed",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundColor:"black",position:"absolute",zIndex:"-1",transition:"0.2s ease-in-out",opacity:c}),w.jsx(Pr,{h:"100vh",w:"100vw",...p&&{...G9(t),overflowY:"auto"},onClick:h=>{h.currentTarget==h.target&&i(Me.actions.setUiType("closed"))},children:w.jsx(K9,{loading:null,persistor:lse,children:f})})]})}function _le(){const e=Pe(nd),t=Pe(ev);let n=Ase,r=Rse;return t&&f1[t]&&(n=f1[t].theme,r=f1[t].controllerTheme),w.jsx(xZ,{theme:e?r:n,children:w.jsx(Sle,{})})}function Cle(){return w.jsx(xa.StrictMode,{children:w.jsx(coe,{store:ct,children:w.jsx(_le,{})})})}J2.createRoot(document.getElementById("root")).render(w.jsx(Cle,{})); diff --git a/index.html b/index.html index f089782..ed32a0c 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Handheld Daemon - +