From 37811fd7c0f67a920e54611537ca8b5816ecfbb9 Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Sat, 2 Nov 2024 00:26:56 -0500 Subject: [PATCH] Updates --- .../{index-B4l8seKX.js => index-BdZ2y-rq.js} | 82 ++++++++++--------- index.html | 2 +- 2 files changed, 43 insertions(+), 41 deletions(-) rename assets/{index-B4l8seKX.js => index-BdZ2y-rq.js} (83%) diff --git a/assets/index-B4l8seKX.js b/assets/index-BdZ2y-rq.js similarity index 83% rename from assets/index-B4l8seKX.js rename to assets/index-BdZ2y-rq.js index fd0d0bb..55ff647 100644 --- a/assets/index-B4l8seKX.js +++ b/assets/index-BdZ2y-rq.js @@ -6,7 +6,7 @@ var ld=e=>{throw TypeError(e)};var Ms=(e,t,n)=>t.has(e)||ld("Cannot "+n);var x=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sl=Symbol.for("react.element"),ov=Symbol.for("react.portal"),lv=Symbol.for("react.fragment"),av=Symbol.for("react.strict_mode"),sv=Symbol.for("react.profiler"),uv=Symbol.for("react.provider"),cv=Symbol.for("react.context"),fv=Symbol.for("react.forward_ref"),dv=Symbol.for("react.suspense"),hv=Symbol.for("react.memo"),pv=Symbol.for("react.lazy"),ad=Symbol.iterator;function mv(e){return e===null||typeof e!="object"?null:(e=ad&&e[ad]||e["@@iterator"],typeof e=="function"?e:null)}var Cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tp=Object.assign,kp={};function Qi(e,t,n){this.props=e,this.context=t,this.refs=kp,this.updater=n||Cp}Qi.prototype.isReactComponent={};Qi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Pp(){}Pp.prototype=Qi.prototype;function Rc(e,t,n){this.props=e,this.context=t,this.refs=kp,this.updater=n||Cp}var _c=Rc.prototype=new Pp;_c.constructor=Rc;Tp(_c,Qi.prototype);_c.isPureReactComponent=!0;var sd=Array.isArray,Rp=Object.prototype.hasOwnProperty,Oc={current:null},_p={key:!0,ref:!0,__self:!0,__source:!0};function Op(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Rp.call(t,r)&&!_p.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1{throw TypeError(e)};var Ms=(e,t,n)=>t.has(e)||ld("Cannot "+n);var x=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Sv=R,xv=Symbol.for("react.element"),Ev=Symbol.for("react.fragment"),Cv=Object.prototype.hasOwnProperty,Tv=Sv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kv={key:!0,ref:!0,__self:!0,__source:!0};function Mp(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Cv.call(t,r)&&!kv.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:xv,type:e,key:o,ref:l,props:i,_owner:Tv.current}}Ka.Fragment=Ev;Ka.jsx=Mp;Ka.jsxs=Mp;xp.exports=Ka;var Oo=xp.exports,Pv=!1;function Rv(e){if(e.sheet)return e.sheet;for(var t=0;t0?Qe(qi,--xt):0,Fi--,Fe===10&&(Fi=1,Ya--),Fe}function Rt(){return Fe=xt2||Mo(Fe)>3?"":" "}function Uv(e,t){for(;--t&&Rt()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return ul(e,na()+(t<6&&pn()==32&&Rt()==32))}function hu(e){for(;Rt();)switch(Fe){case e:return xt;case 34:case 39:e!==34&&e!==39&&hu(Fe);break;case 40:e===41&&hu(e);break;case 92:Rt();break}return xt}function $v(e,t){for(;Rt()&&e+Fe!==57;)if(e+Fe===84&&pn()===47)break;return"/*"+ul(t,xt-1)+"*"+Ga(e===47?e:Rt())}function Hv(e){for(;!Mo(pn());)Rt();return ul(e,xt)}function Bv(e){return bp(ia("",null,null,null,[""],e=Fp(e),0,[0],e))}function ia(e,t,n,r,i,o,l,a,s){for(var u=0,f=0,c=l,p=0,v=0,E=0,g=1,k=1,m=1,h=0,y="",T=i,_=o,M=r,O=y;k;)switch(E=h,h=Rt()){case 40:if(E!=108&&Qe(O,c-1)==58){du(O+=se(ra(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=ra(h);break;case 9:case 10:case 13:case 32:O+=jv(E);break;case 92:O+=Uv(na()-1,7);continue;case 47:switch(pn()){case 42:case 47:Ll(Wv($v(Rt(),na()),t,n),s);break;default:O+="/"}break;case 123*g:a[u++]=un(O)*m;case 125*g:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+f:m==-1&&(O=se(O,/\f/g,"")),v>0&&un(O)-c&&Ll(v>32?fd(O+";",r,n,c-1):fd(se(O," ","")+";",r,n,c-2),s);break;case 59:O+=";";default:if(Ll(M=cd(O,t,n,u,f,i,a,y,T=[],_=[],c),o),h===123)if(f===0)ia(O,t,M,M,T,o,c,a,_);else switch(p===99&&Qe(O,3)===110?100:p){case 100:case 108:case 109:case 115:ia(e,M,M,r&&Ll(cd(e,M,M,0,0,i,a,y,i,T=[],c),_),i,_,c,a,r?T:_);break;default:ia(O,M,M,M,[""],_,0,a,_)}}u=f=v=0,g=m=1,y=O="",c=l;break;case 58:c=1+un(O),v=E;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&zv()==125)continue}switch(O+=Ga(h),h*g){case 38:m=f>0?1:(O+="\f",-1);break;case 44:a[u++]=(un(O)-1)*m,m=1;break;case 64:pn()===45&&(O+=ra(Rt())),p=pn(),f=c=un(y=O+=Hv(na())),h++;break;case 45:E===45&&un(O)==2&&(g=0)}}return o}function cd(e,t,n,r,i,o,l,a,s,u,f){for(var c=i-1,p=i===0?o:[""],v=Nc(p),E=0,g=0,k=0;E0?p[m]+" "+h:se(h,/&\f/g,p[m])))&&(s[k++]=y);return Za(e,t,n,i===0?Mc:a,s,u,f)}function Wv(e,t,n){return Za(e,t,n,Dp,Ga(bv()),Lo(e,2,-2),0)}function fd(e,t,n,r){return Za(e,t,n,Dc,Lo(e,0,r),Lo(e,r+1,-1),r)}function pi(e,t){for(var n="",r=Nc(e),i=0;i6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ya+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~du(e,"stretch")?zp(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,un(e)-3-(~du(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Qe(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Xe+e+e}return e}var Jv=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Dc:t.return=zp(t.value,t.length);break;case Np:return pi([Ji(t,{value:se(t.value,"@","@"+ae)})],i);case Mc:if(t.length)return Fv(t.props,function(o){switch(Iv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ji(t,{props:[se(o,/:(read-\w+)/,":"+ya+"$1")]})],i);case"::placeholder":return pi([Ji(t,{props:[se(o,/:(plac\w+)/,":"+ae+"input-$1")]}),Ji(t,{props:[se(o,/:(plac\w+)/,":"+ya+"$1")]}),Ji(t,{props:[se(o,/:(plac\w+)/,Xe+"input-$1")]})],i)}return""})}},ey=[Jv],ty=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(g){var k=g.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||ey,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var k=g.getAttribute("data-emotion").split(" "),m=1;m0?Qe(qi,--xt):0,bi--,be===10&&(bi=1,Ya--),be}function Rt(){return be=xt2||Mo(be)>3?"":" "}function Uv(e,t){for(;--t&&Rt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return ul(e,na()+(t<6&&pn()==32&&Rt()==32))}function hu(e){for(;Rt();)switch(be){case e:return xt;case 34:case 39:e!==34&&e!==39&&hu(be);break;case 40:e===41&&hu(e);break;case 92:Rt();break}return xt}function $v(e,t){for(;Rt()&&e+be!==57;)if(e+be===84&&pn()===47)break;return"/*"+ul(t,xt-1)+"*"+Ga(e===47?e:Rt())}function Hv(e){for(;!Mo(pn());)Rt();return ul(e,xt)}function Bv(e){return Fp(ia("",null,null,null,[""],e=bp(e),0,[0],e))}function ia(e,t,n,r,i,o,l,a,s){for(var u=0,f=0,c=l,p=0,v=0,E=0,y=1,k=1,m=1,h=0,g="",T=i,_=o,M=r,O=g;k;)switch(E=h,h=Rt()){case 40:if(E!=108&&Qe(O,c-1)==58){du(O+=se(ra(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:O+=ra(h);break;case 9:case 10:case 13:case 32:O+=jv(E);break;case 92:O+=Uv(na()-1,7);continue;case 47:switch(pn()){case 42:case 47:Ll(Wv($v(Rt(),na()),t,n),s);break;default:O+="/"}break;case 123*y:a[u++]=un(O)*m;case 125*y:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+f:m==-1&&(O=se(O,/\f/g,"")),v>0&&un(O)-c&&Ll(v>32?fd(O+";",r,n,c-1):fd(se(O," ","")+";",r,n,c-2),s);break;case 59:O+=";";default:if(Ll(M=cd(O,t,n,u,f,i,a,g,T=[],_=[],c),o),h===123)if(f===0)ia(O,t,M,M,T,o,c,a,_);else switch(p===99&&Qe(O,3)===110?100:p){case 100:case 108:case 109:case 115:ia(e,M,M,r&&Ll(cd(e,M,M,0,0,i,a,g,i,T=[],c),_),i,_,c,a,r?T:_);break;default:ia(O,M,M,M,[""],_,0,a,_)}}u=f=v=0,y=m=1,g=O="",c=l;break;case 58:c=1+un(O),v=E;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&zv()==125)continue}switch(O+=Ga(h),h*y){case 38:m=f>0?1:(O+="\f",-1);break;case 44:a[u++]=(un(O)-1)*m,m=1;break;case 64:pn()===45&&(O+=ra(Rt())),p=pn(),f=c=un(g=O+=Hv(na())),h++;break;case 45:E===45&&un(O)==2&&(y=0)}}return o}function cd(e,t,n,r,i,o,l,a,s,u,f){for(var c=i-1,p=i===0?o:[""],v=Nc(p),E=0,y=0,k=0;E0?p[m]+" "+h:se(h,/&\f/g,p[m])))&&(s[k++]=g);return Za(e,t,n,i===0?Mc:a,s,u,f)}function Wv(e,t,n){return Za(e,t,n,Dp,Ga(Fv()),Lo(e,2,-2),0)}function fd(e,t,n,r){return Za(e,t,n,Dc,Lo(e,0,r),Lo(e,r+1,-1),r)}function pi(e,t){for(var n="",r=Nc(e),i=0;i6)switch(Qe(e,t+1)){case 109:if(Qe(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ga+(Qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~du(e,"stretch")?zp(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qe(e,t+1)!==115)break;case 6444:switch(Qe(e,un(e)-3-(~du(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Qe(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Qe(e,t+11)){case 114:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+Xe+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+Xe+e+e}return e}var Jv=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Dc:t.return=zp(t.value,t.length);break;case Np:return pi([Ji(t,{value:se(t.value,"@","@"+ae)})],i);case Mc:if(t.length)return bv(t.props,function(o){switch(Iv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([Ji(t,{props:[se(o,/:(read-\w+)/,":"+ga+"$1")]})],i);case"::placeholder":return pi([Ji(t,{props:[se(o,/:(plac\w+)/,":"+ae+"input-$1")]}),Ji(t,{props:[se(o,/:(plac\w+)/,":"+ga+"$1")]}),Ji(t,{props:[se(o,/:(plac\w+)/,Xe+"input-$1")]})],i)}return""})}},eg=[Jv],tg=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(y){var k=y.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||eg,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var k=y.getAttribute("data-emotion").split(" "),m=1;m=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 Vp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fy=!1,dy=/[A-Z]|^ms/g,hy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qp=function(t){return t.charCodeAt(1)===45},hd=function(t){return t!=null&&typeof t!="boolean"},Ns=Ac(function(e){return Qp(e)?e:e.replace(dy,"-$&").toLowerCase()}),pd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hy,function(r,i,o){return cn={name:i,styles:o,next:cn},i})}return Vp[t]!==1&&!Qp(t)&&typeof n=="number"&&n!==0?n+"px":n},py="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Do(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return cn={name:i.name,styles:i.styles,next:cn},i.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)cn={name:l.name,styles:l.styles,next:cn},l=l.next;var a=o.styles+";";return a}return my(e,t,n)}case"function":{if(e!==void 0){var s=cn,u=n(e);return cn=s,Do(e,t,u)}break}}var f=n;return f}function my(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 Vp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},fg=!1,dg=/[A-Z]|^ms/g,hg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qp=function(t){return t.charCodeAt(1)===45},hd=function(t){return t!=null&&typeof t!="boolean"},Ns=Ac(function(e){return Qp(e)?e:e.replace(dg,"-$&").toLowerCase()}),pd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hg,function(r,i,o){return cn={name:i,styles:o,next:cn},i})}return Vp[t]!==1&&!Qp(t)&&typeof n=="number"&&n!==0?n+"px":n},pg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Do(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return cn={name:i.name,styles:i.styles,next:cn},i.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)cn={name:l.name,styles:l.styles,next:cn},l=l.next;var a=o.styles+";";return a}return mg(e,t,n)}case"function":{if(e!==void 0){var s=cn,u=n(e);return cn=s,Do(e,t,u)}break}}var f=n;return f}function mg(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{throw TypeError(e)};var Ms=(e,t,n)=>t.has(e)||ld("Cannot "+n);var x=( * * 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(b,$){var Y=b.length;b.push($);e:for(;0>>1,ve=b[pe];if(0>>1;pei(yn,Y))Wei(At,yn)?(b[pe]=At,b[We]=Y,pe=We):(b[pe]=yn,b[ht]=Y,pe=ht);else if(Wei(At,Y))b[pe]=At,b[We]=Y,pe=We;else break e}}return $}function i(b,$){var Y=b.sortIndex-$.sortIndex;return Y!==0?Y:b.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],f=1,c=null,p=3,v=!1,E=!1,g=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(b){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=b)r(u),$.sortIndex=$.expirationTime,t(s,$);else break;$=n(u)}}function T(b){if(g=!1,y(b),!E)if(n(s)!==null)E=!0,Bt(_);else{var $=n(u);$!==null&&In(T,$.startTime-b)}}function _(b,$){E=!1,g&&(g=!1,m(w),w=-1),v=!0;var Y=p;try{for(y($),c=n(s);c!==null&&(!(c.expirationTime>$)||b&&!q());){var pe=c.callback;if(typeof pe=="function"){c.callback=null,p=c.priorityLevel;var ve=pe(c.expirationTime<=$);$=e.unstable_now(),typeof ve=="function"?c.callback=ve:c===n(s)&&r(s),y($)}else r(s);c=n(s)}if(c!==null)var dt=!0;else{var ht=n(u);ht!==null&&In(T,ht.startTime-$),dt=!1}return dt}finally{c=null,p=Y,v=!1}}var M=!1,O=null,w=-1,N=5,A=-1;function q(){return!(e.unstable_now()-Ab||125pe?(b.sortIndex=Y,t(u,b),n(s)===null&&b===n(u)&&(g?(m(w),w=-1):g=!0,In(T,Y-pe))):(b.sortIndex=ve,t(s,b),E||v||(E=!0,Bt(_))),b},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(b){var $=p;return function(){var Y=p;p=$;try{return b.apply(this,arguments)}finally{p=Y}}}})(e0);Jp.exports=e0;var Sy=Jp.exports;/** + */(function(e){function t(F,$){var Y=F.length;F.push($);e:for(;0>>1,ve=F[pe];if(0>>1;pei(gn,Y))Wei(At,gn)?(F[pe]=At,F[We]=Y,pe=We):(F[pe]=gn,F[ht]=Y,pe=ht);else if(Wei(At,Y))F[pe]=At,F[We]=Y,pe=We;else break e}}return $}function i(F,$){var Y=F.sortIndex-$.sortIndex;return Y!==0?Y:F.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],f=1,c=null,p=3,v=!1,E=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(F){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=F)r(u),$.sortIndex=$.expirationTime,t(s,$);else break;$=n(u)}}function T(F){if(y=!1,g(F),!E)if(n(s)!==null)E=!0,Bt(_);else{var $=n(u);$!==null&&In(T,$.startTime-F)}}function _(F,$){E=!1,y&&(y=!1,m(w),w=-1),v=!0;var Y=p;try{for(g($),c=n(s);c!==null&&(!(c.expirationTime>$)||F&&!q());){var pe=c.callback;if(typeof pe=="function"){c.callback=null,p=c.priorityLevel;var ve=pe(c.expirationTime<=$);$=e.unstable_now(),typeof ve=="function"?c.callback=ve:c===n(s)&&r(s),g($)}else r(s);c=n(s)}if(c!==null)var dt=!0;else{var ht=n(u);ht!==null&&In(T,ht.startTime-$),dt=!1}return dt}finally{c=null,p=Y,v=!1}}var M=!1,O=null,w=-1,N=5,A=-1;function q(){return!(e.unstable_now()-AF||125pe?(F.sortIndex=Y,t(u,F),n(s)===null&&F===n(u)&&(y?(m(w),w=-1):y=!0,In(T,Y-pe))):(F.sortIndex=ve,t(s,F),E||v||(E=!0,Bt(_))),F},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(F){var $=p;return function(){var Y=p;p=$;try{return F.apply(this,arguments)}finally{p=Y}}}})(e0);Jp.exports=e0;var Sg=Jp.exports;/** * @license React * react-dom.production.min.js * @@ -37,14 +37,14 @@ var ld=e=>{throw TypeError(e)};var Ms=(e,t,n)=>t.has(e)||ld("Cannot "+n);var x=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xy=R,Ot=Sy;function D(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"),vu=Object.prototype.hasOwnProperty,Ey=/^[: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]*$/,yd={},gd={};function Cy(e){return vu.call(gd,e)?!0:vu.call(yd,e)?!1:Ey.test(e)?gd[e]=!0:(yd[e]=!0,!1)}function Ty(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 ky(e,t,n,r){if(t===null||typeof t>"u"||Ty(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 ft(e,t,n,r,i,o,l){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=l}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new ft(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){Ge[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bc=/[\-:]([a-z])/g;function Wc(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(Bc,Wc);Ge[t]=new ft(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(Bc,Wc);Ge[t]=new ft(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(Bc,Wc);Ge[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vc(e,t,n,r){var i=Ge.hasOwnProperty(t)?Ge[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vu=Object.prototype.hasOwnProperty,Eg=/^[: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]*$/,gd={},yd={};function Cg(e){return vu.call(yd,e)?!0:vu.call(gd,e)?!1:Eg.test(e)?yd[e]=!0:(gd[e]=!0,!1)}function Tg(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 kg(e,t,n,r){if(t===null||typeof t>"u"||Tg(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 ft(e,t,n,r,i,o,l){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=l}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new ft(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new ft(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new ft(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new ft(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){Ge[e]=new ft(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new ft(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new ft(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new ft(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new ft(e,5,!1,e.toLowerCase(),null,!1,!1)});var Bc=/[\-:]([a-z])/g;function Wc(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(Bc,Wc);Ge[t]=new ft(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(Bc,Wc);Ge[t]=new ft(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(Bc,Wc);Ge[t]=new ft(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new ft(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new ft("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new ft(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vc(e,t,n,r){var i=Ge.hasOwnProperty(t)?Ge[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var s=` -`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?po(e):""}function Py(e){switch(e.tag){case 5:return po(e.type);case 16:return po("Lazy");case 13:return po("Suspense");case 19:return po("SuspenseList");case 0:case 2:case 15:return e=Fs(e.type,!1),e;case 11:return e=Fs(e.type.render,!1),e;case 1:return e=Fs(e.type,!0),e;default:return""}}function Su(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 ei:return"Fragment";case Jr:return"Portal";case yu:return"Profiler";case Qc:return"StrictMode";case gu:return"Suspense";case wu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case r0:return(e.displayName||"Context")+".Consumer";case n0:return(e._context.displayName||"Context")+".Provider";case qc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case Hn:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function Ry(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 Su(t);case 8:return t===Qc?"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 cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function o0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _y(e){var t=o0(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(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=_y(e))}function l0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=o0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ga(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 xu(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(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 a0(e,t){t=t.checked,t!=null&&Vc(e,"checked",t,!1)}function Eu(e,t){a0(e,t);var n=cr(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")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(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 Cu(e,t,n){(t!=="number"||ga(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mo=Array.isArray;function mi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Nl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var So={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},Oy=["Webkit","ms","Moz","O"];Object.keys(So).forEach(function(e){Oy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),So[t]=So[e]})});function f0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||So.hasOwnProperty(e)&&So[e]?(""+t).trim():t+"px"}function d0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=f0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Ly=Pe({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 Pu(e,t){if(t){if(Ly[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Ru(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 _u=null;function Gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,vi=null,yi=null;function Td(e){if(e=dl(e)){if(typeof Ou!="function")throw Error(D(280));var t=e.stateNode;t&&(t=hs(t),Ou(e.stateNode,e.type,t))}}function h0(e){vi?yi?yi.push(e):yi=[e]:vi=e}function p0(){if(vi){var e=vi,t=yi;if(yi=vi=null,Td(e),t)for(e=0;e>>=0,e===0?32:31-($y(e)/Hy|0)|0}var Al=64,Il=4194304;function vo(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 Ea(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=vo(a):(o&=l,o!==0&&(r=vo(o)))}else l=n&~i,l!==0?r=vo(l):o!==0&&(r=vo(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 cl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function Qy(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=Eo),Nd=" ",Ad=!1;function A0(e,t){switch(e){case"keyup":return Sg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function Eg(e,t){switch(e){case"compositionend":return I0(t);case"keypress":return t.which!==32?null:(Ad=!0,Nd);case"textInput":return e=t.data,e===Nd&&Ad?null:e;default:return null}}function Cg(e,t){if(ti)return e==="compositionend"||!rf&&A0(e,t)?(e=D0(),la=ef=Jn=null,ti=!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=zd(n)}}function j0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function U0(){for(var e=window,t=ga();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ga(e.document)}return t}function of(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 Dg(e){var t=U0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&j0(n.ownerDocument.documentElement,n)){if(r!==null&&of(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=jd(n,o);var l=jd(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ni=null,Iu=null,To=null,Fu=!1;function Ud(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||ni==null||ni!==ga(r)||(r=ni,"selectionStart"in r&&of(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}),To&&Uo(To,r)||(To=r,r=ka(Iu,"onSelect"),0oi||(e.current=Hu[oi],Hu[oi]=null,oi--)}function me(e,t){oi++,Hu[oi]=e.current,e.current=t}var fr={},tt=hr(fr),gt=hr(!1),zr=fr;function zi(e,t){var n=e.type.contextTypes;if(!n)return fr;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 wt(e){return e=e.childContextTypes,e!=null}function Ra(){we(gt),we(tt)}function qd(e,t,n){if(tt.current!==fr)throw Error(D(168));me(tt,t),me(gt,n)}function G0(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(D(108,Ry(e)||"Unknown",i));return Pe({},n,r)}function _a(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,zr=tt.current,me(tt,e),me(gt,gt.current),!0}function Kd(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=G0(e,t,zr),r.__reactInternalMemoizedMergedChildContext=e,we(gt),we(tt),me(tt,e)):we(gt),me(gt,n)}var kn=null,ps=!1,Ys=!1;function Y0(e){kn===null?kn=[e]:kn.push(e)}function Wg(e){ps=!0,Y0(e)}function pr(){if(!Ys&&kn!==null){Ys=!0;var e=0,t=fe;try{var n=kn;for(fe=1;e>=l,i-=l,Pn=1<<32-Xt(t)+i|n<w?(N=O,O=null):N=O.sibling;var A=p(m,O,y[w],T);if(A===null){O===null&&(O=N);break}e&&O&&A.alternate===null&&t(m,O),h=o(A,h,w),M===null?_=A:M.sibling=A,M=A,O=N}if(w===y.length)return n(m,O),Ee&&xr(m,w),_;if(O===null){for(;ww?(N=O,O=null):N=O.sibling;var q=p(m,O,A.value,T);if(q===null){O===null&&(O=N);break}e&&O&&q.alternate===null&&t(m,O),h=o(q,h,w),M===null?_=q:M.sibling=q,M=q,O=N}if(A.done)return n(m,O),Ee&&xr(m,w),_;if(O===null){for(;!A.done;w++,A=y.next())A=c(m,A.value,T),A!==null&&(h=o(A,h,w),M===null?_=A:M.sibling=A,M=A);return Ee&&xr(m,w),_}for(O=r(m,O);!A.done;w++,A=y.next())A=v(O,m,w,A.value,T),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?w:A.key),h=o(A,h,w),M===null?_=A:M.sibling=A,M=A);return e&&O.forEach(function(oe){return t(m,oe)}),Ee&&xr(m,w),_}function k(m,h,y,T){if(typeof y=="object"&&y!==null&&y.type===ei&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ml:e:{for(var _=y.key,M=h;M!==null;){if(M.key===_){if(_=y.type,_===ei){if(M.tag===7){n(m,M.sibling),h=i(M,y.props.children),h.return=m,m=h;break e}}else if(M.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Hn&&Zd(_)===M.type){n(m,M.sibling),h=i(M,y.props),h.ref=oo(m,M,y),h.return=m,m=h;break e}n(m,M);break}else t(m,M);M=M.sibling}y.type===ei?(h=Fr(y.props.children,m.mode,T,y.key),h.return=m,m=h):(T=pa(y.type,y.key,y.props,null,m.mode,T),T.ref=oo(m,h,y),T.return=m,m=T)}return l(m);case Jr:e:{for(M=y.key;h!==null;){if(h.key===M)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=i(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=iu(y,m.mode,T),h.return=m,m=h}return l(m);case Hn:return M=y._init,k(m,h,M(y._payload),T)}if(mo(y))return E(m,h,y,T);if(eo(y))return g(m,h,y,T);Hl(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,y),h.return=m,m=h):(n(m,h),h=ru(y,m.mode,T),h.return=m,m=h),l(m)):n(m,h)}return k}var Ui=e1(!0),t1=e1(!1),Ma=hr(null),Da=null,si=null,uf=null;function cf(){uf=si=Da=null}function ff(e){var t=Ma.current;we(Ma),e._currentValue=t}function Vu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wi(e,t){Da=e,uf=si=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yt=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(uf!==e)if(e={context:e,memoizedValue:t,next:null},si===null){if(Da===null)throw Error(D(308));si=e,Da.dependencies={lanes:0,firstContext:e}}else si=si.next=e;return t}var kr=null;function df(e){kr===null?kr=[e]:kr.push(e)}function n1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,df(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bn=!1;function hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function r1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _n(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dn(e,n)}return i=r.interleaved,i===null?(t.next=t,df(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dn(e,n)}function sa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}function Xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Na(e,t,n,r){var i=e.updateQueue;Bn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(o!==null){var c=i.baseState;l=0,f=u=s=null,a=o;do{var p=a.lane,v=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,g=a;switch(p=t,v=n,g.tag){case 1:if(E=g.payload,typeof E=="function"){c=E.call(v,c,p);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=g.payload,p=typeof E=="function"?E.call(v,c,p):E,p==null)break e;c=Pe({},c,p);break e;case 2:Bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=v,s=c):f=f.next=v,l|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);$r|=l,e.lanes=l,e.memoizedState=c}}function Jd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{fe=n,Xs.transition=r}}function S1(){return Ht().memoizedState}function Kg(e,t,n){var r=sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x1(e))E1(t,n);else if(n=n1(e,t,n,r),n!==null){var i=ut();Jt(n,e,r,i),C1(n,t,r)}}function Gg(e,t,n){var r=sr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x1(e))E1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,en(a,l)){var s=t.interleaved;s===null?(i.next=i,df(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=n1(e,t,i,r),n!==null&&(i=ut(),Jt(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function E1(e,t){ko=Ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}var Fa={readContext:$t,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},Yg={readContext:$t,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:th,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ca(4194308,4,m1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4194308,4,e,t)},useInsertionEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();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=Kg.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:eh,useDebugValue:xf,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=eh(!1),t=e[0];return e=qg.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=rn();if(Ee){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),He===null)throw Error(D(349));Ur&30||a1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,th(u1.bind(null,r,o,e),[e]),r.flags|=2048,Ko(9,s1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rn(),t=He.identifierPrefix;if(Ee){var n=Rn,r=Pn;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{Is=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?po(e):""}function Pg(e){switch(e.tag){case 5:return po(e.type);case 16:return po("Lazy");case 13:return po("Suspense");case 19:return po("SuspenseList");case 0:case 2:case 15:return e=bs(e.type,!1),e;case 11:return e=bs(e.type.render,!1),e;case 1:return e=bs(e.type,!0),e;default:return""}}function Su(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 ei:return"Fragment";case Jr:return"Portal";case gu:return"Profiler";case Qc:return"StrictMode";case yu:return"Suspense";case wu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case r0:return(e.displayName||"Context")+".Consumer";case n0:return(e._context.displayName||"Context")+".Provider";case qc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Su(e.type)||"Memo";case Hn:t=e._payload,e=e._init;try{return Su(e(t))}catch{}}return null}function Rg(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 Su(t);case 8:return t===Qc?"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 cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function o0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _g(e){var t=o0(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(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=_g(e))}function l0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=o0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ya(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 xu(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(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 a0(e,t){t=t.checked,t!=null&&Vc(e,"checked",t,!1)}function Eu(e,t){a0(e,t);var n=cr(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")?Cu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cu(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(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 Cu(e,t,n){(t!=="number"||ya(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mo=Array.isArray;function mi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Nl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ao(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var So={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},Og=["Webkit","ms","Moz","O"];Object.keys(So).forEach(function(e){Og.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),So[t]=So[e]})});function f0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||So.hasOwnProperty(e)&&So[e]?(""+t).trim():t+"px"}function d0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=f0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Lg=Pe({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 Pu(e,t){if(t){if(Lg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Ru(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 _u=null;function Gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ou=null,vi=null,gi=null;function Td(e){if(e=dl(e)){if(typeof Ou!="function")throw Error(D(280));var t=e.stateNode;t&&(t=hs(t),Ou(e.stateNode,e.type,t))}}function h0(e){vi?gi?gi.push(e):gi=[e]:vi=e}function p0(){if(vi){var e=vi,t=gi;if(gi=vi=null,Td(e),t)for(e=0;e>>=0,e===0?32:31-($g(e)/Hg|0)|0}var Al=64,Il=4194304;function vo(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 Ea(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=vo(a):(o&=l,o!==0&&(r=vo(o)))}else l=n&~i,l!==0?r=vo(l):o!==0&&(r=vo(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 cl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xt(t),e[t]=n}function Qg(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=Eo),Nd=" ",Ad=!1;function A0(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function Ey(e,t){switch(e){case"compositionend":return I0(t);case"keypress":return t.which!==32?null:(Ad=!0,Nd);case"textInput":return e=t.data,e===Nd&&Ad?null:e;default:return null}}function Cy(e,t){if(ti)return e==="compositionend"||!rf&&A0(e,t)?(e=D0(),la=ef=Jn=null,ti=!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=zd(n)}}function j0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function U0(){for(var e=window,t=ya();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ya(e.document)}return t}function of(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 Dy(e){var t=U0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&j0(n.ownerDocument.documentElement,n)){if(r!==null&&of(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=jd(n,o);var l=jd(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ni=null,Iu=null,To=null,bu=!1;function Ud(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bu||ni==null||ni!==ya(r)||(r=ni,"selectionStart"in r&&of(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}),To&&Uo(To,r)||(To=r,r=ka(Iu,"onSelect"),0oi||(e.current=Hu[oi],Hu[oi]=null,oi--)}function me(e,t){oi++,Hu[oi]=e.current,e.current=t}var fr={},tt=hr(fr),yt=hr(!1),zr=fr;function zi(e,t){var n=e.type.contextTypes;if(!n)return fr;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 wt(e){return e=e.childContextTypes,e!=null}function Ra(){we(yt),we(tt)}function qd(e,t,n){if(tt.current!==fr)throw Error(D(168));me(tt,t),me(yt,n)}function G0(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(D(108,Rg(e)||"Unknown",i));return Pe({},n,r)}function _a(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,zr=tt.current,me(tt,e),me(yt,yt.current),!0}function Kd(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=G0(e,t,zr),r.__reactInternalMemoizedMergedChildContext=e,we(yt),we(tt),me(tt,e)):we(yt),me(yt,n)}var kn=null,ps=!1,Ys=!1;function Y0(e){kn===null?kn=[e]:kn.push(e)}function Wy(e){ps=!0,Y0(e)}function pr(){if(!Ys&&kn!==null){Ys=!0;var e=0,t=fe;try{var n=kn;for(fe=1;e>=l,i-=l,Pn=1<<32-Xt(t)+i|n<w?(N=O,O=null):N=O.sibling;var A=p(m,O,g[w],T);if(A===null){O===null&&(O=N);break}e&&O&&A.alternate===null&&t(m,O),h=o(A,h,w),M===null?_=A:M.sibling=A,M=A,O=N}if(w===g.length)return n(m,O),Ee&&xr(m,w),_;if(O===null){for(;ww?(N=O,O=null):N=O.sibling;var q=p(m,O,A.value,T);if(q===null){O===null&&(O=N);break}e&&O&&q.alternate===null&&t(m,O),h=o(q,h,w),M===null?_=q:M.sibling=q,M=q,O=N}if(A.done)return n(m,O),Ee&&xr(m,w),_;if(O===null){for(;!A.done;w++,A=g.next())A=c(m,A.value,T),A!==null&&(h=o(A,h,w),M===null?_=A:M.sibling=A,M=A);return Ee&&xr(m,w),_}for(O=r(m,O);!A.done;w++,A=g.next())A=v(O,m,w,A.value,T),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?w:A.key),h=o(A,h,w),M===null?_=A:M.sibling=A,M=A);return e&&O.forEach(function(oe){return t(m,oe)}),Ee&&xr(m,w),_}function k(m,h,g,T){if(typeof g=="object"&&g!==null&&g.type===ei&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ml:e:{for(var _=g.key,M=h;M!==null;){if(M.key===_){if(_=g.type,_===ei){if(M.tag===7){n(m,M.sibling),h=i(M,g.props.children),h.return=m,m=h;break e}}else if(M.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Hn&&Zd(_)===M.type){n(m,M.sibling),h=i(M,g.props),h.ref=oo(m,M,g),h.return=m,m=h;break e}n(m,M);break}else t(m,M);M=M.sibling}g.type===ei?(h=br(g.props.children,m.mode,T,g.key),h.return=m,m=h):(T=pa(g.type,g.key,g.props,null,m.mode,T),T.ref=oo(m,h,g),T.return=m,m=T)}return l(m);case Jr:e:{for(M=g.key;h!==null;){if(h.key===M)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=i(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=iu(g,m.mode,T),h.return=m,m=h}return l(m);case Hn:return M=g._init,k(m,h,M(g._payload),T)}if(mo(g))return E(m,h,g,T);if(eo(g))return y(m,h,g,T);Hl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,g),h.return=m,m=h):(n(m,h),h=ru(g,m.mode,T),h.return=m,m=h),l(m)):n(m,h)}return k}var Ui=e1(!0),t1=e1(!1),Ma=hr(null),Da=null,si=null,uf=null;function cf(){uf=si=Da=null}function ff(e){var t=Ma.current;we(Ma),e._currentValue=t}function Vu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wi(e,t){Da=e,uf=si=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(gt=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(uf!==e)if(e={context:e,memoizedValue:t,next:null},si===null){if(Da===null)throw Error(D(308));si=e,Da.dependencies={lanes:0,firstContext:e}}else si=si.next=e;return t}var kr=null;function df(e){kr===null?kr=[e]:kr.push(e)}function n1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,df(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dn(e,r)}function Dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Bn=!1;function hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function r1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _n(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ie&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Dn(e,n)}return i=r.interleaved,i===null?(t.next=t,df(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dn(e,n)}function sa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}function Xd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Na(e,t,n,r){var i=e.updateQueue;Bn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(o!==null){var c=i.baseState;l=0,f=u=s=null,a=o;do{var p=a.lane,v=a.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,y=a;switch(p=t,v=n,y.tag){case 1:if(E=y.payload,typeof E=="function"){c=E.call(v,c,p);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=y.payload,p=typeof E=="function"?E.call(v,c,p):E,p==null)break e;c=Pe({},c,p);break e;case 2:Bn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=v,s=c):f=f.next=v,l|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);$r|=l,e.lanes=l,e.memoizedState=c}}function Jd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{fe=n,Xs.transition=r}}function S1(){return Ht().memoizedState}function Ky(e,t,n){var r=sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x1(e))E1(t,n);else if(n=n1(e,t,n,r),n!==null){var i=ut();Jt(n,e,r,i),C1(n,t,r)}}function Gy(e,t,n){var r=sr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x1(e))E1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,en(a,l)){var s=t.interleaved;s===null?(i.next=i,df(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=n1(e,t,i,r),n!==null&&(i=ut(),Jt(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function E1(e,t){ko=Ia=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zc(e,n)}}var ba={readContext:$t,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},Yy={readContext:$t,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:th,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ca(4194308,4,m1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4194308,4,e,t)},useInsertionEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();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=Ky.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:eh,useDebugValue:xf,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=eh(!1),t=e[0];return e=qy.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ke,i=rn();if(Ee){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),He===null)throw Error(D(349));Ur&30||a1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,th(u1.bind(null,r,o,e),[e]),r.flags|=2048,Ko(9,s1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rn(),t=He.identifierPrefix;if(Ee){var n=Rn,r=Pn;n=(r&~(1<<32-Xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Qo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[dn]=t,e[Bo]=r,N1(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ru(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;iBi&&(t.flags|=128,r=!0,lo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Aa(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Ee)return Ze(t),null}else 2*De()-o.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,lo(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=Te.current,me(Te,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Rf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function i2(e,t){switch(af(t),t.tag){case 1:return wt(t.type)&&Ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(),we(gt),we(tt),vf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mf(t),null;case 13:if(we(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Te),null;case 4:return $i(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Rf(),null;case 24:return null;default:return null}}var Wl=!1,et=!1,o2=typeof WeakSet=="function"?WeakSet:Set,j=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function ec(e,t,n){try{n()}catch(r){Me(e,t,r)}}var dh=!1;function l2(e,t){if(bu=Ca,e=U0(),of(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 l=0,a=-1,s=-1,u=0,f=0,c=e,p=null;t:for(;;){for(var v;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=l),p===o&&++f===r&&(s=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},Ca=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var g=E.memoizedProps,k=E.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Vt(t.type,g),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(T){Me(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return E=dh,dh=!1,E}function Po(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&&ec(t,n,o)}i=i.next}while(i!==r)}}function ys(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 tc(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 F1(e){var t=e.alternate;t!==null&&(e.alternate=null,F1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[Bo],delete t[$u],delete t[Hg],delete t[Bg])),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 b1(e){return e.tag===5||e.tag===3||e.tag===4}function hh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||b1(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 nc(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=Pa));else if(r!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(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(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}var Ve=null,qt=!1;function jn(e,t,n){for(n=n.child;n!==null;)z1(e,t,n),n=n.sibling}function z1(e,t,n){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(us,n)}catch{}switch(n.tag){case 5:et||ui(n,t);case 6:var r=Ve,i=qt;Ve=null,jn(e,t,n),Ve=r,qt=i,Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),zo(e)):Gs(Ve,n.stateNode));break;case 4:r=Ve,i=qt,Ve=n.stateNode.containerInfo,qt=!0,jn(e,t,n),Ve=r,qt=i;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&ec(n,t,l),i=i.next}while(i!==r)}jn(e,t,n);break;case 1:if(!et&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Me(n,t,a)}jn(e,t,n);break;case 21:jn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,jn(e,t,n),et=r):jn(e,t,n);break;default:jn(e,t,n)}}function ph(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o2),t.forEach(function(r){var i=m2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s2(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,ja=0,ie&6)throw Error(D(331));var i=ie;for(ie|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sDe()-kf?Ir(e,0):Tf|=n),St(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=Il,Il<<=1,!(Il&130023424)&&(Il=4194304)):t=1);var n=ut();e=Dn(e,t),e!==null&&(cl(e,t,n),St(e,n))}function p2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Q1(e,n)}function m2(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(D(314))}r!==null&&r.delete(t),Q1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yt=!1,n2(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Ee&&t.flags&1048576&&Z0(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fa(e,t),e=t.pendingProps;var i=zi(t,tt.current);wi(t,n),i=gf(null,t,r,e,i,n);var o=wf();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,wt(r)?(o=!0,_a(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hf(t),i.updater=vs,t.stateNode=i,i._reactInternals=t,qu(t,r,e,n),t=Yu(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&lf(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=y2(r),e=Vt(r,e),i){case 0:t=Gu(null,t,r,e,n);break e;case 1:t=uh(null,t,r,e,n);break e;case 11:t=ah(null,t,r,e,n);break e;case 14:t=sh(null,t,r,Vt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),Gu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),uh(e,t,r,i,n);case 3:e:{if(L1(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,r1(e,t),Na(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Hi(Error(D(423)),t),t=ch(e,t,r,n,i);break e}else if(r!==i){i=Hi(Error(D(424)),t),t=ch(e,t,r,n,i);break e}else for(Pt=or(t.stateNode.containerInfo.firstChild),_t=t,Ee=!0,Gt=null,n=t1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===i){t=Nn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return i1(t),e===null&&Wu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,ju(r,i)?l=null:o!==null&&ju(r,o)&&(t.flags|=32),O1(e,t),st(e,t,l,n),t.child;case 6:return e===null&&Wu(t),null;case 13:return M1(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),ah(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,me(Ma,r._currentValue),r._currentValue=l,o!==null)if(en(o.value,l)){if(o.children===i.children&&!gt.current){t=Nn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=_n(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Vu(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(D(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Vu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wi(t,n),i=$t(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Vt(r,t.pendingProps),i=Vt(r.type,i),sh(e,t,r,i,n);case 15:return R1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),fa(e,t),t.tag=1,wt(r)?(e=!0,_a(t)):e=!1,wi(t,n),T1(t,r,i),qu(t,r,i,n),Yu(null,t,r,!0,e,n);case 19:return D1(e,t,n);case 22:return _1(e,t,n)}throw Error(D(156,t.tag))};function K1(e,t){return x0(e,t)}function v2(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 jt(e,t,n,r){return new v2(e,t,n,r)}function Of(e){return e=e.prototype,!(!e||!e.isReactComponent)}function y2(e){if(typeof e=="function")return Of(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qc)return 11;if(e===Kc)return 14}return 2}function ur(e,t){var n=e.alternate;return n===null?(n=jt(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 pa(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Of(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ei:return Fr(n.children,i,o,t);case Qc:l=8,i|=8;break;case yu:return e=jt(12,n,t,i|2),e.elementType=yu,e.lanes=o,e;case gu:return e=jt(13,n,t,i),e.elementType=gu,e.lanes=o,e;case wu:return e=jt(19,n,t,i),e.elementType=wu,e.lanes=o,e;case i0:return ws(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n0:l=10;break e;case r0:l=9;break e;case qc:l=11;break e;case Kc:l=14;break e;case Hn:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=jt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fr(e,t,n,r){return e=jt(7,e,r,t),e.lanes=n,e}function ws(e,t,n,r){return e=jt(22,e,r,t),e.elementType=i0,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function g2(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=zs(0),this.expirationTimes=zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lf(e,t,n,r,i,o,l,a,s){return e=new g2(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(o),e}function w2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X1)}catch(e){console.error(e)}}X1(),Xp.exports=Mt;var Af=Xp.exports;const T2=Vi(Af),k2=Sp({__proto__:null,default:T2},[Af]);var J1,Eh=Af;J1=Eh.createRoot,Eh.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function tu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ku(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jy=typeof WeakMap=="function"?WeakMap:Map;function k1(e,t,n){n=_n(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){za||(za=!0,ic=r),Ku(e,t)},n}function P1(e,t,n){n=_n(-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(){Ku(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ku(e,t),typeof r!="function"&&(ar===null?ar=new Set([this]):ar.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jy;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=h2.bind(null,e,t,n),t.then(e,e))}function oh(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 lh(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=_n(-1,1),t.tag=2,lr(n,t,1))),n.lanes|=1),e)}var e2=An.ReactCurrentOwner,gt=!1;function st(e,t,n,r){t.child=e===null?t1(t,null,n,r):Ui(t,e.child,n,r)}function ah(e,t,n,r,i){n=n.render;var o=t.ref;return wi(t,i),r=yf(e,t,n,r,o,i),n=wf(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Ee&&n&&lf(t),t.flags|=1,st(e,t,r,i),t.child)}function sh(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Of(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,R1(e,t,o,r,i)):(e=pa(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 l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Uo,n(l,r)&&e.ref===t.ref)return Nn(e,t,i)}return t.flags|=1,e=ur(o,r),e.ref=t.ref,e.return=t,t.child=e}function R1(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Uo(o,r)&&e.ref===t.ref)if(gt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,Nn(e,t,i)}return Gu(e,t,n,r,i)}function _1(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},me(ci,Tt),Tt|=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,me(ci,Tt),Tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,me(ci,Tt),Tt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,me(ci,Tt),Tt|=r;return st(e,t,i,n),t.child}function O1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Gu(e,t,n,r,i){var o=wt(n)?zr:tt.current;return o=zi(t,o),wi(t,i),n=yf(e,t,n,r,o,i),r=wf(),e!==null&&!gt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nn(e,t,i)):(Ee&&r&&lf(t),t.flags|=1,st(e,t,n,i),t.child)}function uh(e,t,n,r,i){if(wt(n)){var o=!0;_a(t)}else o=!1;if(wi(t,i),t.stateNode===null)fa(e,t),T1(t,n,r),qu(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=$t(u):(u=wt(n)?zr:tt.current,u=zi(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&rh(t,l,r,u),Bn=!1;var p=t.memoizedState;l.state=p,Na(t,r,l,i),s=t.memoizedState,a!==r||p!==s||yt.current||Bn?(typeof f=="function"&&(Qu(t,n,f,r),s=t.memoizedState),(a=Bn||nh(t,n,a,r,p,s,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,r1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Vt(t.type,a),l.props=u,c=t.pendingProps,p=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=$t(s):(s=wt(n)?zr:tt.current,s=zi(t,s));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==c||p!==s)&&rh(t,l,r,s),Bn=!1,p=t.memoizedState,l.state=p,Na(t,r,l,i);var E=t.memoizedState;a!==c||p!==E||yt.current||Bn?(typeof v=="function"&&(Qu(t,n,v,r),E=t.memoizedState),(u=Bn||nh(t,n,u,r,p,E,s)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,E,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,E,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=E),l.props=r,l.state=E,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Yu(e,t,n,r,o,i)}function Yu(e,t,n,r,i,o){O1(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&Kd(t,n,!1),Nn(e,t,o);r=t.stateNode,e2.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ui(t,e.child,null,o),t.child=Ui(t,null,a,o)):st(e,t,a,o),t.memoizedState=r.state,i&&Kd(t,n,!0),t.child}function L1(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),pf(e,t.containerInfo)}function ch(e,t,n,r,i){return ji(),sf(i),t.flags|=256,st(e,t,n,r),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0};function Xu(e){return{baseLanes:e,cachePool:null,transitions:null}}function M1(e,t,n){var r=t.pendingProps,i=Te.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),me(Te,i&1),e===null)return Wu(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):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=ws(l,r,0,null),e=br(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Xu(n),t.memoizedState=Zu,e):Ef(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return t2(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ur(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=ur(a,o):(o=br(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Xu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Zu,r}return o=e.child,e=o.sibling,r=ur(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 Ef(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Bl(e,t,n,r){return r!==null&&sf(r),Ui(t,e.child,null,n),e=Ef(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t2(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=tu(Error(D(422))),Bl(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ws({mode:"visible",children:r.children},i,0,null),o=br(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ui(t,e.child,null,l),t.child.memoizedState=Xu(l),t.memoizedState=Zu,o);if(!(t.mode&1))return Bl(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=tu(o,r,void 0),Bl(e,t,l,r)}if(a=(l&e.childLanes)!==0,gt||a){if(r=He,r!==null){switch(l&-l){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|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Dn(e,i),Jt(r,e,i,-1))}return _f(),r=tu(Error(D(421))),Bl(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=p2.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Pt=or(i.nextSibling),_t=t,Ee=!0,Gt=null,e!==null&&(Ft[zt++]=Pn,Ft[zt++]=Rn,Ft[zt++]=jr,Pn=e.id,Rn=e.overflow,jr=t),t=Ef(t,r.children),t.flags|=4096,t)}function fh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Vu(e.return,t,n)}function nu(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 D1(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(st(e,t,r.children,n),r=Te.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&&fh(e,n,t);else if(e.tag===19)fh(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(me(Te,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&&Aa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nu(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&&Aa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nu(t,!0,n,null,o);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=ur(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ur(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function n2(e,t,n){switch(t.tag){case 3:L1(t),ji();break;case 5:i1(t);break;case 1:wt(t.type)&&_a(t);break;case 4:pf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;me(Ma,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?M1(e,t,n):(me(Te,Te.current&1),e=Nn(e,t,n),e!==null?e.sibling:null);me(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return D1(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),me(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,_1(e,t,n)}return Nn(e,t,n)}var N1,Ju,A1,I1;N1=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}};Ju=function(){};A1=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Pr(vn.current);var o=null;switch(n){case"input":i=xu(e,i),r=xu(e,r),o=[];break;case"select":i=Pe({},i,{value:void 0}),r=Pe({},r,{value:void 0}),o=[];break;case"textarea":i=Tu(e,i),r=Tu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Pa)}Pu(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(No.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(No.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&ye("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};I1=function(e,t,n,r){n!==r&&(t.flags|=4)};function lo(e,t){if(!Ee)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 Ze(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 r2(e,t,n){var r=t.pendingProps;switch(af(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return wt(t.type)&&Ra(),Ze(t),null;case 3:return r=t.stateNode,$i(),we(yt),we(tt),vf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($l(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gt!==null&&(ac(Gt),Gt=null))),Ju(e,t),Ze(t),null;case 5:mf(t);var i=Pr(Vo.current);if(n=t.type,e!==null&&t.stateNode!=null)A1(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return Ze(t),null}if(e=Pr(vn.current),$l(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dn]=t,r[Bo]=o,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[dn]=t,e[Bo]=r,N1(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ru(n,r),n){case"dialog":ye("cancel",e),ye("close",e),i=r;break;case"iframe":case"object":case"embed":ye("load",e),i=r;break;case"video":case"audio":for(i=0;iBi&&(t.flags|=128,r=!0,lo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Aa(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),lo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Ee)return Ze(t),null}else 2*De()-o.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,lo(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=De(),t.sibling=null,n=Te.current,me(Te,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Rf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function i2(e,t){switch(af(t),t.tag){case 1:return wt(t.type)&&Ra(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(),we(yt),we(tt),vf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mf(t),null;case 13:if(we(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Te),null;case 4:return $i(),null;case 10:return ff(t.type._context),null;case 22:case 23:return Rf(),null;case 24:return null;default:return null}}var Wl=!1,et=!1,o2=typeof WeakSet=="function"?WeakSet:Set,j=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function ec(e,t,n){try{n()}catch(r){Me(e,t,r)}}var dh=!1;function l2(e,t){if(Fu=Ca,e=U0(),of(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 l=0,a=-1,s=-1,u=0,f=0,c=e,p=null;t:for(;;){for(var v;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(v=c.firstChild)!==null;)p=c,c=v;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=l),p===o&&++f===r&&(s=l),(v=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=v}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(zu={focusedElem:e,selectionRange:n},Ca=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var y=E.memoizedProps,k=E.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Vt(t.type,y),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(T){Me(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return E=dh,dh=!1,E}function Po(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&&ec(t,n,o)}i=i.next}while(i!==r)}}function gs(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 tc(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 b1(e){var t=e.alternate;t!==null&&(e.alternate=null,b1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dn],delete t[Bo],delete t[$u],delete t[Hy],delete t[By])),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 F1(e){return e.tag===5||e.tag===3||e.tag===4}function hh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||F1(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 nc(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=Pa));else if(r!==4&&(e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(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(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}var Ve=null,qt=!1;function jn(e,t,n){for(n=n.child;n!==null;)z1(e,t,n),n=n.sibling}function z1(e,t,n){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(us,n)}catch{}switch(n.tag){case 5:et||ui(n,t);case 6:var r=Ve,i=qt;Ve=null,jn(e,t,n),Ve=r,qt=i,Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(qt?(e=Ve,n=n.stateNode,e.nodeType===8?Gs(e.parentNode,n):e.nodeType===1&&Gs(e,n),zo(e)):Gs(Ve,n.stateNode));break;case 4:r=Ve,i=qt,Ve=n.stateNode.containerInfo,qt=!0,jn(e,t,n),Ve=r,qt=i;break;case 0:case 11:case 14:case 15:if(!et&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&ec(n,t,l),i=i.next}while(i!==r)}jn(e,t,n);break;case 1:if(!et&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Me(n,t,a)}jn(e,t,n);break;case 21:jn(e,t,n);break;case 22:n.mode&1?(et=(r=et)||n.memoizedState!==null,jn(e,t,n),et=r):jn(e,t,n);break;default:jn(e,t,n)}}function ph(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new o2),t.forEach(function(r){var i=m2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=De()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*s2(r/1960))-r,10e?16:e,er===null)var r=!1;else{if(e=er,er=null,ja=0,ie&6)throw Error(D(331));var i=ie;for(ie|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var a=o.deletions;if(a!==null){for(var s=0;sDe()-kf?Ir(e,0):Tf|=n),St(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=Il,Il<<=1,!(Il&130023424)&&(Il=4194304)):t=1);var n=ut();e=Dn(e,t),e!==null&&(cl(e,t,n),St(e,n))}function p2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Q1(e,n)}function m2(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(D(314))}r!==null&&r.delete(t),Q1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,n2(e,t,n);gt=!!(e.flags&131072)}else gt=!1,Ee&&t.flags&1048576&&Z0(t,La,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fa(e,t),e=t.pendingProps;var i=zi(t,tt.current);wi(t,n),i=yf(null,t,r,e,i,n);var o=wf();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,wt(r)?(o=!0,_a(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hf(t),i.updater=vs,t.stateNode=i,i._reactInternals=t,qu(t,r,e,n),t=Yu(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&lf(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=g2(r),e=Vt(r,e),i){case 0:t=Gu(null,t,r,e,n);break e;case 1:t=uh(null,t,r,e,n);break e;case 11:t=ah(null,t,r,e,n);break e;case 14:t=sh(null,t,r,Vt(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),Gu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),uh(e,t,r,i,n);case 3:e:{if(L1(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,r1(e,t),Na(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Hi(Error(D(423)),t),t=ch(e,t,r,n,i);break e}else if(r!==i){i=Hi(Error(D(424)),t),t=ch(e,t,r,n,i);break e}else for(Pt=or(t.stateNode.containerInfo.firstChild),_t=t,Ee=!0,Gt=null,n=t1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===i){t=Nn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return i1(t),e===null&&Wu(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,ju(r,i)?l=null:o!==null&&ju(r,o)&&(t.flags|=32),O1(e,t),st(e,t,l,n),t.child;case 6:return e===null&&Wu(t),null;case 13:return M1(e,t,n);case 4:return pf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),ah(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,me(Ma,r._currentValue),r._currentValue=l,o!==null)if(en(o.value,l)){if(o.children===i.children&&!yt.current){t=Nn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=_n(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Vu(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(D(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Vu(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wi(t,n),i=$t(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Vt(r,t.pendingProps),i=Vt(r.type,i),sh(e,t,r,i,n);case 15:return R1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),fa(e,t),t.tag=1,wt(r)?(e=!0,_a(t)):e=!1,wi(t,n),T1(t,r,i),qu(t,r,i,n),Yu(null,t,r,!0,e,n);case 19:return D1(e,t,n);case 22:return _1(e,t,n)}throw Error(D(156,t.tag))};function K1(e,t){return x0(e,t)}function v2(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 jt(e,t,n,r){return new v2(e,t,n,r)}function Of(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g2(e){if(typeof e=="function")return Of(e)?1:0;if(e!=null){if(e=e.$$typeof,e===qc)return 11;if(e===Kc)return 14}return 2}function ur(e,t){var n=e.alternate;return n===null?(n=jt(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 pa(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Of(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ei:return br(n.children,i,o,t);case Qc:l=8,i|=8;break;case gu:return e=jt(12,n,t,i|2),e.elementType=gu,e.lanes=o,e;case yu:return e=jt(13,n,t,i),e.elementType=yu,e.lanes=o,e;case wu:return e=jt(19,n,t,i),e.elementType=wu,e.lanes=o,e;case i0:return ws(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case n0:l=10;break e;case r0:l=9;break e;case qc:l=11;break e;case Kc:l=14;break e;case Hn:l=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=jt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function br(e,t,n,r){return e=jt(7,e,r,t),e.lanes=n,e}function ws(e,t,n,r){return e=jt(22,e,r,t),e.elementType=i0,e.lanes=n,e.stateNode={isHidden:!1},e}function ru(e,t,n){return e=jt(6,e,null,t),e.lanes=n,e}function iu(e,t,n){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function y2(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=zs(0),this.expirationTimes=zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Lf(e,t,n,r,i,o,l,a,s){return e=new y2(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hf(o),e}function w2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X1)}catch(e){console.error(e)}}X1(),Xp.exports=Mt;var Af=Xp.exports;const T2=Vi(Af),k2=Sp({__proto__:null,default:T2},[Af]);var J1,Eh=Af;J1=Eh.createRoot,Eh.hydrateRoot;/** * @remix-run/router v1.19.2 * * Copyright (c) Remix Software Inc. @@ -53,9 +53,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R2(){return Math.random().toString(36).substr(2,8)}function Th(e,t){return{usr:e.state,key:e.key,idx:t}}function Yo(e,t,n,r){return n===void 0&&(n=null),Ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mr(t):t,{state:n,key:t&&t.key||r||R2()})}function Br(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Ie.Pop,s=null,u=f();u==null&&(u=0,l.replaceState(Ce({},l.state,{idx:u}),""));function f(){return(l.state||{idx:null}).idx}function c(){a=Ie.Pop;let k=f(),m=k==null?null:k-u;u=k,s&&s({action:a,location:g.location,delta:m})}function p(k,m){a=Ie.Push;let h=Yo(g.location,k,m);u=f()+1;let y=Th(h,u),T=g.createHref(h);try{l.pushState(y,"",T)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(T)}o&&s&&s({action:a,location:g.location,delta:1})}function v(k,m){a=Ie.Replace;let h=Yo(g.location,k,m);u=f();let y=Th(h,u),T=g.createHref(h);l.replaceState(y,"",T),o&&s&&s({action:a,location:g.location,delta:0})}function E(k){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof k=="string"?k:Br(k);return h=h.replace(/ $/,"%20"),J(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let g={get action(){return a},get location(){return e(i,l)},listen(k){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Ch,c),s=k,()=>{i.removeEventListener(Ch,c),s=null}},createHref(k){return t(i,k)},createURL:E,encodeLocation(k){let m=E(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:v,go(k){return l.go(k)}};return g}var he;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(he||(he={}));const O2=new Set(["lazy","caseSensitive","path","id","index","children"]);function L2(e){return e.index===!0}function Zo(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,String(o)],a=typeof i.id=="string"?i.id:l.join("-");if(J(i.index!==!0||!i.children,"Cannot specify children on an index route"),J(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),L2(i)){let s=Ce({},i,t(i),{id:a});return r[a]=s,s}else{let s=Ce({},i,t(i),{id:a,children:void 0});return r[a]=s,i.children&&(s.children=Zo(i.children,t,l,r)),s}})}function Cr(e,t,n){return n===void 0&&(n="/"),ma(e,t,n,!1)}function ma(e,t,n,r){let i=typeof t=="string"?mr(t):t,o=Yi(i.pathname||"/",n);if(o==null)return null;let l=em(e);D2(l);let a=null;for(let s=0;a==null&&s{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(J(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=On([r,s.relativePath]),f=n.concat(s);o.children&&o.children.length>0&&(J(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),em(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:j2(u,o.index),routesMeta:f})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of tm(o.path))i(o,l,s)}),t}function tm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=tm(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function D2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N2=/^:[\w-]+$/,A2=3,I2=2,F2=1,b2=10,z2=-2,kh=e=>e==="*";function j2(e,t){let n=e.split("/"),r=n.length;return n.some(kh)&&(r+=z2),t&&(r+=I2),n.filter(i=>!kh(i)).reduce((i,o)=>i+(N2.test(o)?A2:o===""?F2:b2),r)}function U2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function $2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a{let{paramName:p,isOptional:v}=f;if(p==="*"){let g=a[c]||"";l=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const E=a[c];return v&&!E?u[p]=void 0:u[p]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function H2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function B2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function W2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?mr(e):e;return{pathname:n?n.startsWith("/")?n:V2(n,t):t,search:q2(r),hash:K2(i)}}function V2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ou(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function nm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=nm(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ff(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=mr(e):(i=Ce({},e),J(!i.pathname||!i.pathname.includes("?"),ou("?","pathname","search",i)),J(!i.pathname||!i.pathname.includes("#"),ou("#","pathname","hash",i)),J(!i.search||!i.search.includes("#"),ou("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),c-=1;i.pathname=p.join("/")}a=c>=0?t[c]:"/"}let s=W2(i,a),u=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const On=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ha{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ts(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rm=["post","put","patch","delete"],G2=new Set(rm),Y2=["get",...rm],Z2=new Set(Y2),X2=new Set([301,302,303,307,308]),J2=new Set([307,308]),lu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},so={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},bf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,t4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),im="remix-router-transitions";function n4(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;J(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;i=C=>({hasErrorBoundary:S(C)})}else i=t4;let o={},l=Zo(e.routes,i,void 0,o),a,s=e.basename||"/",u=e.unstable_dataStrategy||s4,f=e.unstable_patchRoutesOnNavigation,c=Ce({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,E=1e3,g=new Set,k=null,m=null,h=null,y=e.hydrationData!=null,T=Cr(l,e.history.location,s),_=null;if(T==null&&!f){let S=at(404,{pathname:e.history.location.pathname}),{matches:C,route:P}=Ih(l);T=C,_={[P.id]:S}}T&&!e.hydrationData&&El(T,l,e.history.location.pathname).active&&(T=null);let M;if(T)if(T.some(S=>S.route.lazy))M=!1;else if(!T.some(S=>S.route.loader))M=!0;else if(c.v7_partialHydration){let S=e.hydrationData?e.hydrationData.loaderData:null,C=e.hydrationData?e.hydrationData.errors:null,P=L=>L.route.loader?typeof L.route.loader=="function"&&L.route.loader.hydrate===!0?!1:S&&S[L.route.id]!==void 0||C&&C[L.route.id]!==void 0:!0;if(C){let L=T.findIndex(z=>C[z.route.id]!==void 0);M=T.slice(0,L+1).every(P)}else M=T.every(P)}else M=e.hydrationData!=null;else if(M=!1,T=[],c.v7_partialHydration){let S=El(null,l,e.history.location.pathname);S.active&&S.matches&&(T=S.matches)}let O,w={historyAction:e.history.action,location:e.history.location,matches:T,initialized:M,navigation:lu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},N=Ie.Pop,A=!1,q,oe=!1,Ne=new Map,Re=null,tn=!1,Bt=!1,In=[],b=new Set,$=new Map,Y=0,pe=-1,ve=new Map,dt=new Set,ht=new Map,yn=new Map,We=new Set,At=new Map,gr=new Map,$m=new Map,gl;function Hm(){if(p=e.history.listen(S=>{let{action:C,location:P,delta:L}=S;if(gl){gl(),gl=void 0;return}Wi(gr.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=td({currentLocation:w.location,nextLocation:P,historyAction:C});if(z&&L!=null){let V=new Promise(G=>{gl=G});e.history.go(L*-1),Sl(z,{state:"blocked",location:P,proceed(){Sl(z,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),V.then(()=>e.history.go(L))},reset(){let G=new Map(w.blockers);G.set(z,so),nt({blockers:G})}});return}return wr(C,P)}),n){C4(t,Ne);let S=()=>T4(t,Ne);t.addEventListener("pagehide",S),Re=()=>t.removeEventListener("pagehide",S)}return w.initialized||wr(Ie.Pop,w.location,{initialHydration:!0}),O}function Bm(){p&&p(),Re&&Re(),v.clear(),q&&q.abort(),w.fetchers.forEach((S,C)=>wl(C)),w.blockers.forEach((S,C)=>ed(C))}function Wm(S){return v.add(S),()=>v.delete(S)}function nt(S,C){C===void 0&&(C={}),w=Ce({},w,S);let P=[],L=[];c.v7_fetcherPersist&&w.fetchers.forEach((z,V)=>{z.state==="idle"&&(We.has(V)?L.push(V):P.push(V))}),[...v].forEach(z=>z(w,{deletedFetchers:L,unstable_viewTransitionOpts:C.viewTransitionOpts,unstable_flushSync:C.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(z=>w.fetchers.delete(z)),L.forEach(z=>wl(z)))}function Kr(S,C,P){var L,z;let{flushSync:V}=P===void 0?{}:P,G=w.actionData!=null&&w.navigation.formMethod!=null&&Kt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((L=S.state)==null?void 0:L._isRedirect)!==!0,I;C.actionData?Object.keys(C.actionData).length>0?I=C.actionData:I=null:G?I=w.actionData:I=null;let Q=C.loaderData?Nh(w.loaderData,C.loaderData,C.matches||[],C.errors):w.loaderData,B=w.blockers;B.size>0&&(B=new Map(B),B.forEach((ce,ye)=>B.set(ye,so)));let W=A===!0||w.navigation.formMethod!=null&&Kt(w.navigation.formMethod)&&((z=S.state)==null?void 0:z._isRedirect)!==!0;a&&(l=a,a=void 0),tn||N===Ie.Pop||(N===Ie.Push?e.history.push(S,S.state):N===Ie.Replace&&e.history.replace(S,S.state));let le;if(N===Ie.Pop){let ce=Ne.get(w.location.pathname);ce&&ce.has(S.pathname)?le={currentLocation:w.location,nextLocation:S}:Ne.has(S.pathname)&&(le={currentLocation:S,nextLocation:w.location})}else if(oe){let ce=Ne.get(w.location.pathname);ce?ce.add(S.pathname):(ce=new Set([S.pathname]),Ne.set(w.location.pathname,ce)),le={currentLocation:w.location,nextLocation:S}}nt(Ce({},C,{actionData:I,loaderData:Q,historyAction:N,location:S,initialized:!0,navigation:lu,revalidation:"idle",restoreScrollPosition:rd(S,C.matches||w.matches),preventScrollReset:W,blockers:B}),{viewTransitionOpts:le,flushSync:V===!0}),N=Ie.Pop,A=!1,oe=!1,tn=!1,Bt=!1,In=[]}async function qf(S,C){if(typeof S=="number"){e.history.go(S);return}let P=sc(w.location,w.matches,s,c.v7_prependBasename,S,c.v7_relativeSplatPath,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:L,submission:z,error:V}=Rh(c.v7_normalizeFormMethod,!1,P,C),G=w.location,I=Yo(w.location,L,C&&C.state);I=Ce({},I,e.history.encodeLocation(I));let Q=C&&C.replace!=null?C.replace:void 0,B=Ie.Push;Q===!0?B=Ie.Replace:Q===!1||z!=null&&Kt(z.formMethod)&&z.formAction===w.location.pathname+w.location.search&&(B=Ie.Replace);let W=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,le=(C&&C.unstable_flushSync)===!0,ce=td({currentLocation:G,nextLocation:I,historyAction:B});if(ce){Sl(ce,{state:"blocked",location:I,proceed(){Sl(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),qf(S,C)},reset(){let ye=new Map(w.blockers);ye.set(ce,so),nt({blockers:ye})}});return}return await wr(B,I,{submission:z,pendingError:V,preventScrollReset:W,replace:C&&C.replace,enableViewTransition:C&&C.unstable_viewTransition,flushSync:le})}function Vm(){if(_s(),nt({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){wr(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}wr(N||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:oe===!0})}}async function wr(S,C,P){q&&q.abort(),q=null,N=S,tn=(P&&P.startUninterruptedRevalidation)===!0,tv(w.location,w.matches),A=(P&&P.preventScrollReset)===!0,oe=(P&&P.enableViewTransition)===!0;let L=a||l,z=P&&P.overrideNavigation,V=Cr(L,C,s),G=(P&&P.flushSync)===!0,I=El(V,L,C.pathname);if(I.active&&I.matches&&(V=I.matches),!V){let{error:re,notFoundMatches:Ue,route:Ae}=Os(C.pathname);Kr(C,{matches:Ue,loaderData:{},errors:{[Ae.id]:re}},{flushSync:G});return}if(w.initialized&&!Bt&&p4(w.location,C)&&!(P&&P.submission&&Kt(P.submission.formMethod))){Kr(C,{matches:V},{flushSync:G});return}q=new AbortController;let Q=Zr(e.history,C,q.signal,P&&P.submission),B;if(P&&P.pendingError)B=[fi(V).route.id,{type:he.error,error:P.pendingError}];else if(P&&P.submission&&Kt(P.submission.formMethod)){let re=await Qm(Q,C,P.submission,V,I.active,{replace:P.replace,flushSync:G});if(re.shortCircuited)return;if(re.pendingActionResult){let[Ue,Ae]=re.pendingActionResult;if(kt(Ae)&&Ts(Ae.error)&&Ae.error.status===404){q=null,Kr(C,{matches:re.matches,loaderData:{},errors:{[Ue]:Ae.error}});return}}V=re.matches||V,B=re.pendingActionResult,z=au(C,P.submission),G=!1,I.active=!1,Q=Zr(e.history,Q.url,Q.signal)}let{shortCircuited:W,matches:le,loaderData:ce,errors:ye}=await qm(Q,C,V,I.active,z,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,G,B);W||(q=null,Kr(C,Ce({matches:le||V},Ah(B),{loaderData:ce,errors:ye})))}async function Qm(S,C,P,L,z,V){V===void 0&&(V={}),_s();let G=x4(C,P);if(nt({navigation:G},{flushSync:V.flushSync===!0}),z){let B=await Cl(L,C.pathname,S.signal);if(B.type==="aborted")return{shortCircuited:!0};if(B.type==="error"){let{boundaryId:W,error:le}=xl(C.pathname,B);return{matches:B.partialMatches,pendingActionResult:[W,{type:he.error,error:le}]}}else if(B.matches)L=B.matches;else{let{notFoundMatches:W,error:le,route:ce}=Os(C.pathname);return{matches:W,pendingActionResult:[ce.id,{type:he.error,error:le}]}}}let I,Q=go(L,C);if(!Q.route.action&&!Q.route.lazy)I={type:he.error,error:at(405,{method:S.method,pathname:C.pathname,routeId:Q.route.id})};else if(I=(await Zi("action",w,S,[Q],L,null))[Q.route.id],S.signal.aborted)return{shortCircuited:!0};if(Rr(I)){let B;return V&&V.replace!=null?B=V.replace:B=Lh(I.response.headers.get("Location"),new URL(S.url),s)===w.location.pathname+w.location.search,await Sr(S,I,!0,{submission:P,replace:B}),{shortCircuited:!0}}if(tr(I))throw at(400,{type:"defer-action"});if(kt(I)){let B=fi(L,Q.route.id);return(V&&V.replace)!==!0&&(N=Ie.Push),{matches:L,pendingActionResult:[B.route.id,I]}}return{matches:L,pendingActionResult:[Q.route.id,I]}}async function qm(S,C,P,L,z,V,G,I,Q,B,W){let le=z||au(C,V),ce=V||G||bh(le),ye=!tn&&(!c.v7_partialHydration||!Q);if(L){if(ye){let _e=Kf(W);nt(Ce({navigation:le},_e!==void 0?{actionData:_e}:{}),{flushSync:B})}let X=await Cl(P,C.pathname,S.signal);if(X.type==="aborted")return{shortCircuited:!0};if(X.type==="error"){let{boundaryId:_e,error:Et}=xl(C.pathname,X);return{matches:X.partialMatches,loaderData:{},errors:{[_e]:Et}}}else if(X.matches)P=X.matches;else{let{error:_e,notFoundMatches:Et,route:Oe}=Os(C.pathname);return{matches:Et,loaderData:{},errors:{[Oe.id]:_e}}}}let re=a||l,[Ue,Ae]=_h(e.history,w,P,ce,C,c.v7_partialHydration&&Q===!0,c.v7_skipActionErrorRevalidation,Bt,In,b,We,ht,dt,re,s,W);if(Ls(X=>!(P&&P.some(_e=>_e.route.id===X))||Ue&&Ue.some(_e=>_e.route.id===X)),pe=++Y,Ue.length===0&&Ae.length===0){let X=Xf();return Kr(C,Ce({matches:P,loaderData:{},errors:W&&kt(W[1])?{[W[0]]:W[1].error}:null},Ah(W),X?{fetchers:new Map(w.fetchers)}:{}),{flushSync:B}),{shortCircuited:!0}}if(ye){let X={};if(!L){X.navigation=le;let _e=Kf(W);_e!==void 0&&(X.actionData=_e)}Ae.length>0&&(X.fetchers=Km(Ae)),nt(X,{flushSync:B})}Ae.forEach(X=>{$.has(X.key)&&bn(X.key),X.controller&&$.set(X.key,X.controller)});let Xi=()=>Ae.forEach(X=>bn(X.key));q&&q.signal.addEventListener("abort",Xi);let{loaderResults:wn,fetcherResults:Gr}=await Gf(w,P,Ue,Ae,S);if(S.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Xi),Ae.forEach(X=>$.delete(X.key));let zn=ql(wn);if(zn)return await Sr(S,zn.result,!0,{replace:I}),{shortCircuited:!0};if(zn=ql(Gr),zn)return dt.add(zn.key),await Sr(S,zn.result,!0,{replace:I}),{shortCircuited:!0};let{loaderData:Tl,errors:Sn}=Dh(w,P,Ue,wn,W,Ae,Gr,At);At.forEach((X,_e)=>{X.subscribe(Et=>{(Et||X.done)&&At.delete(_e)})}),c.v7_partialHydration&&Q&&w.errors&&Object.entries(w.errors).filter(X=>{let[_e]=X;return!Ue.some(Et=>Et.route.id===_e)}).forEach(X=>{let[_e,Et]=X;Sn=Object.assign(Sn||{},{[_e]:Et})});let kl=Xf(),Pl=Jf(pe),Rl=kl||Pl||Ae.length>0;return Ce({matches:P,loaderData:Tl,errors:Sn},Rl?{fetchers:new Map(w.fetchers)}:{})}function Kf(S){if(S&&!kt(S[1]))return{[S[0]]:S[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Km(S){return S.forEach(C=>{let P=w.fetchers.get(C.key),L=uo(void 0,P?P.data:void 0);w.fetchers.set(C.key,L)}),new Map(w.fetchers)}function Gm(S,C,P,L){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(S)&&bn(S);let z=(L&&L.unstable_flushSync)===!0,V=a||l,G=sc(w.location,w.matches,s,c.v7_prependBasename,P,c.v7_relativeSplatPath,C,L==null?void 0:L.relative),I=Cr(V,G,s),Q=El(I,V,G);if(Q.active&&Q.matches&&(I=Q.matches),!I){gn(S,C,at(404,{pathname:G}),{flushSync:z});return}let{path:B,submission:W,error:le}=Rh(c.v7_normalizeFormMethod,!0,G,L);if(le){gn(S,C,le,{flushSync:z});return}let ce=go(I,B);if(A=(L&&L.preventScrollReset)===!0,W&&Kt(W.formMethod)){Ym(S,C,B,ce,I,Q.active,z,W);return}ht.set(S,{routeId:C,path:B}),Zm(S,C,B,ce,I,Q.active,z,W)}async function Ym(S,C,P,L,z,V,G,I){_s(),ht.delete(S);function Q(Oe){if(!Oe.route.action&&!Oe.route.lazy){let xn=at(405,{method:I.formMethod,pathname:P,routeId:C});return gn(S,C,xn,{flushSync:G}),!0}return!1}if(!V&&Q(L))return;let B=w.fetchers.get(S);Fn(S,E4(I,B),{flushSync:G});let W=new AbortController,le=Zr(e.history,P,W.signal,I);if(V){let Oe=await Cl(z,P,le.signal);if(Oe.type==="aborted")return;if(Oe.type==="error"){let{error:xn}=xl(P,Oe);gn(S,C,xn,{flushSync:G});return}else if(Oe.matches){if(z=Oe.matches,L=go(z,P),Q(L))return}else{gn(S,C,at(404,{pathname:P}),{flushSync:G});return}}$.set(S,W);let ce=Y,re=(await Zi("action",w,le,[L],z,S))[L.route.id];if(le.signal.aborted){$.get(S)===W&&$.delete(S);return}if(c.v7_fetcherPersist&&We.has(S)){if(Rr(re)||kt(re)){Fn(S,Un(void 0));return}}else{if(Rr(re))if($.delete(S),pe>ce){Fn(S,Un(void 0));return}else return dt.add(S),Fn(S,uo(I)),Sr(le,re,!1,{fetcherSubmission:I});if(kt(re)){gn(S,C,re.error);return}}if(tr(re))throw at(400,{type:"defer-action"});let Ue=w.navigation.location||w.location,Ae=Zr(e.history,Ue,W.signal),Xi=a||l,wn=w.navigation.state!=="idle"?Cr(Xi,w.navigation.location,s):w.matches;J(wn,"Didn't find any matches after fetcher action");let Gr=++Y;ve.set(S,Gr);let zn=uo(I,re.data);w.fetchers.set(S,zn);let[Tl,Sn]=_h(e.history,w,wn,I,Ue,!1,c.v7_skipActionErrorRevalidation,Bt,In,b,We,ht,dt,Xi,s,[L.route.id,re]);Sn.filter(Oe=>Oe.key!==S).forEach(Oe=>{let xn=Oe.key,od=w.fetchers.get(xn),iv=uo(void 0,od?od.data:void 0);w.fetchers.set(xn,iv),$.has(xn)&&bn(xn),Oe.controller&&$.set(xn,Oe.controller)}),nt({fetchers:new Map(w.fetchers)});let kl=()=>Sn.forEach(Oe=>bn(Oe.key));W.signal.addEventListener("abort",kl);let{loaderResults:Pl,fetcherResults:Rl}=await Gf(w,wn,Tl,Sn,Ae);if(W.signal.aborted)return;W.signal.removeEventListener("abort",kl),ve.delete(S),$.delete(S),Sn.forEach(Oe=>$.delete(Oe.key));let X=ql(Pl);if(X)return Sr(Ae,X.result,!1);if(X=ql(Rl),X)return dt.add(X.key),Sr(Ae,X.result,!1);let{loaderData:_e,errors:Et}=Dh(w,wn,Tl,Pl,void 0,Sn,Rl,At);if(w.fetchers.has(S)){let Oe=Un(re.data);w.fetchers.set(S,Oe)}Jf(Gr),w.navigation.state==="loading"&&Gr>pe?(J(N,"Expected pending action"),q&&q.abort(),Kr(w.navigation.location,{matches:wn,loaderData:_e,errors:Et,fetchers:new Map(w.fetchers)})):(nt({errors:Et,loaderData:Nh(w.loaderData,_e,wn,Et),fetchers:new Map(w.fetchers)}),Bt=!1)}async function Zm(S,C,P,L,z,V,G,I){let Q=w.fetchers.get(S);Fn(S,uo(I,Q?Q.data:void 0),{flushSync:G});let B=new AbortController,W=Zr(e.history,P,B.signal);if(V){let re=await Cl(z,P,W.signal);if(re.type==="aborted")return;if(re.type==="error"){let{error:Ue}=xl(P,re);gn(S,C,Ue,{flushSync:G});return}else if(re.matches)z=re.matches,L=go(z,P);else{gn(S,C,at(404,{pathname:P}),{flushSync:G});return}}$.set(S,B);let le=Y,ye=(await Zi("loader",w,W,[L],z,S))[L.route.id];if(tr(ye)&&(ye=await zf(ye,W.signal,!0)||ye),$.get(S)===B&&$.delete(S),!W.signal.aborted){if(We.has(S)){Fn(S,Un(void 0));return}if(Rr(ye))if(pe>le){Fn(S,Un(void 0));return}else{dt.add(S),await Sr(W,ye,!1);return}if(kt(ye)){gn(S,C,ye.error);return}J(!tr(ye),"Unhandled fetcher deferred data"),Fn(S,Un(ye.data))}}async function Sr(S,C,P,L){let{submission:z,fetcherSubmission:V,replace:G}=L===void 0?{}:L;C.response.headers.has("X-Remix-Revalidate")&&(Bt=!0);let I=C.response.headers.get("Location");J(I,"Expected a Location header on the redirect Response"),I=Lh(I,new URL(S.url),s);let Q=Yo(w.location,I,{_isRedirect:!0});if(n){let re=!1;if(C.response.headers.has("X-Remix-Reload-Document"))re=!0;else if(bf.test(I)){const Ue=e.history.createURL(I);re=Ue.origin!==t.location.origin||Yi(Ue.pathname,s)==null}if(re){G?t.location.replace(I):t.location.assign(I);return}}q=null;let B=G===!0||C.response.headers.has("X-Remix-Replace")?Ie.Replace:Ie.Push,{formMethod:W,formAction:le,formEncType:ce}=w.navigation;!z&&!V&&W&&le&&ce&&(z=bh(w.navigation));let ye=z||V;if(J2.has(C.response.status)&&ye&&Kt(ye.formMethod))await wr(B,Q,{submission:Ce({},ye,{formAction:I}),preventScrollReset:A,enableViewTransition:P?oe:void 0});else{let re=au(Q,z);await wr(B,Q,{overrideNavigation:re,fetcherSubmission:V,preventScrollReset:A,enableViewTransition:P?oe:void 0})}}async function Zi(S,C,P,L,z,V){let G,I={};try{G=await u4(u,S,C,P,L,z,V,o,i)}catch(Q){return L.forEach(B=>{I[B.route.id]={type:he.error,error:Q}}),I}for(let[Q,B]of Object.entries(G))if(v4(B)){let W=B.result;I[Q]={type:he.redirect,response:d4(W,P,Q,z,s,c.v7_relativeSplatPath)}}else I[Q]=await f4(B);return I}async function Gf(S,C,P,L,z){let V=S.matches,G=Zi("loader",S,z,P,C,null),I=Promise.all(L.map(async W=>{if(W.matches&&W.match&&W.controller){let ce=(await Zi("loader",S,Zr(e.history,W.path,W.controller.signal),[W.match],W.matches,W.key))[W.match.route.id];return{[W.key]:ce}}else return Promise.resolve({[W.key]:{type:he.error,error:at(404,{pathname:W.path})}})})),Q=await G,B=(await I).reduce((W,le)=>Object.assign(W,le),{});return await Promise.all([w4(C,Q,z.signal,V,S.loaderData),S4(C,B,L)]),{loaderResults:Q,fetcherResults:B}}function _s(){Bt=!0,In.push(...Ls()),ht.forEach((S,C)=>{$.has(C)&&(b.add(C),bn(C))})}function Fn(S,C,P){P===void 0&&(P={}),w.fetchers.set(S,C),nt({fetchers:new Map(w.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function gn(S,C,P,L){L===void 0&&(L={});let z=fi(w.matches,C);wl(S),nt({errors:{[z.route.id]:P},fetchers:new Map(w.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Yf(S){return c.v7_fetcherPersist&&(yn.set(S,(yn.get(S)||0)+1),We.has(S)&&We.delete(S)),w.fetchers.get(S)||e4}function wl(S){let C=w.fetchers.get(S);$.has(S)&&!(C&&C.state==="loading"&&ve.has(S))&&bn(S),ht.delete(S),ve.delete(S),dt.delete(S),We.delete(S),b.delete(S),w.fetchers.delete(S)}function Xm(S){if(c.v7_fetcherPersist){let C=(yn.get(S)||0)-1;C<=0?(yn.delete(S),We.add(S)):yn.set(S,C)}else wl(S);nt({fetchers:new Map(w.fetchers)})}function bn(S){let C=$.get(S);J(C,"Expected fetch controller: "+S),C.abort(),$.delete(S)}function Zf(S){for(let C of S){let P=Yf(C),L=Un(P.data);w.fetchers.set(C,L)}}function Xf(){let S=[],C=!1;for(let P of dt){let L=w.fetchers.get(P);J(L,"Expected fetcher: "+P),L.state==="loading"&&(dt.delete(P),S.push(P),C=!0)}return Zf(S),C}function Jf(S){let C=[];for(let[P,L]of ve)if(L0}function Jm(S,C){let P=w.blockers.get(S)||so;return gr.get(S)!==C&&gr.set(S,C),P}function ed(S){w.blockers.delete(S),gr.delete(S)}function Sl(S,C){let P=w.blockers.get(S)||so;J(P.state==="unblocked"&&C.state==="blocked"||P.state==="blocked"&&C.state==="blocked"||P.state==="blocked"&&C.state==="proceeding"||P.state==="blocked"&&C.state==="unblocked"||P.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+C.state);let L=new Map(w.blockers);L.set(S,C),nt({blockers:L})}function td(S){let{currentLocation:C,nextLocation:P,historyAction:L}=S;if(gr.size===0)return;gr.size>1&&Wi(!1,"A router only supports one blocker at a time");let z=Array.from(gr.entries()),[V,G]=z[z.length-1],I=w.blockers.get(V);if(!(I&&I.state==="proceeding")&&G({currentLocation:C,nextLocation:P,historyAction:L}))return V}function Os(S){let C=at(404,{pathname:S}),P=a||l,{matches:L,route:z}=Ih(P);return Ls(),{notFoundMatches:L,route:z,error:C}}function xl(S,C){return{boundaryId:fi(C.partialMatches).route.id,error:at(400,{type:"route-discovery",pathname:S,message:C.error!=null&&"message"in C.error?C.error:String(C.error)})}}function Ls(S){let C=[];return At.forEach((P,L)=>{(!S||S(L))&&(P.cancel(),C.push(L),At.delete(L))}),C}function ev(S,C,P){if(k=S,h=C,m=P||null,!y&&w.navigation===lu){y=!0;let L=rd(w.location,w.matches);L!=null&&nt({restoreScrollPosition:L})}return()=>{k=null,h=null,m=null}}function nd(S,C){return m&&m(S,C.map(L=>M2(L,w.loaderData)))||S.key}function tv(S,C){if(k&&h){let P=nd(S,C);k[P]=h()}}function rd(S,C){if(k){let P=nd(S,C),L=k[P];if(typeof L=="number")return L}return null}function El(S,C,P){if(f){if(g.has(P))return{active:!1,matches:S};if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:ma(C,P,s,!0)}}else return{active:!0,matches:ma(C,P,s,!0)||[]}}return{active:!1,matches:null}}async function Cl(S,C,P){let L=S;for(;;){let z=a==null,V=a||l;try{await l4(f,C,L,V,o,i,$m,P)}catch(Q){return{type:"error",error:Q,partialMatches:L}}finally{z&&(l=[...l])}if(P.aborted)return{type:"aborted"};let G=Cr(V,C,s);if(G)return id(C,g),{type:"success",matches:G};let I=ma(V,C,s,!0);if(!I||L.length===I.length&&L.every((Q,B)=>Q.route.id===I[B].route.id))return id(C,g),{type:"success",matches:null};L=I}}function id(S,C){if(C.size>=E){let P=C.values().next().value;C.delete(P)}C.add(S)}function nv(S){o={},a=Zo(S,i,void 0,o)}function rv(S,C){let P=a==null;lm(S,C,a||l,o,i),P&&(l=[...l],nt({}))}return O={get basename(){return s},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Hm,subscribe:Wm,enableScrollRestoration:ev,navigate:qf,fetch:Gm,revalidate:Vm,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Yf,deleteFetcher:Xm,dispose:Bm,getBlocker:Jm,deleteBlocker:ed,patchRoutes:rv,_internalFetchControllers:$,_internalActiveDeferreds:At,_internalSetRoutes:nv},O}function r4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sc(e,t,n,r,i,o,l,a){let s,u;if(l){s=[];for(let c of t)if(s.push(c),c.route.id===l){u=c;break}}else s=t,u=t[t.length-1];let f=Ff(i||".",If(s,o),Yi(e.pathname,n)||e.pathname,a==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!jf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:On([n,f.pathname])),Br(f)}function Rh(e,t,n,r){if(!r||!r4(r))return{path:n};if(r.formMethod&&!g4(r.formMethod))return{path:n,error:at(405,{method:r.formMethod})};let i=()=>({path:n,error:at(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=am(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Kt(l))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,E)=>{let[g,k]=E;return""+v+g+"="+k+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Kt(l))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}J(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=uc(r.formData),u=r.formData;else if(r.body instanceof FormData)s=uc(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Mh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Mh(s)}catch{return i()}let f={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Kt(f.formMethod))return{path:n,submission:f};let c=mr(n);return t&&c.search&&jf(c.search)&&s.append("index",""),c.search="?"+s,{path:Br(c),submission:f}}function i4(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function _h(e,t,n,r,i,o,l,a,s,u,f,c,p,v,E,g){let k=g?kt(g[1])?g[1].error:g[1].data:void 0,m=e.createURL(t.location),h=e.createURL(i),y=g&&kt(g[1])?g[0]:void 0,T=y?i4(n,y):n,_=g?g[1].statusCode:void 0,M=l&&_&&_>=400,O=T.filter((N,A)=>{let{route:q}=N;if(q.lazy)return!0;if(q.loader==null)return!1;if(o)return typeof q.loader!="function"||q.loader.hydrate?!0:t.loaderData[q.id]===void 0&&(!t.errors||t.errors[q.id]===void 0);if(o4(t.loaderData,t.matches[A],N)||s.some(Re=>Re===N.route.id))return!0;let oe=t.matches[A],Ne=N;return Oh(N,Ce({currentUrl:m,currentParams:oe.params,nextUrl:h,nextParams:Ne.params},r,{actionResult:k,actionStatus:_,defaultShouldRevalidate:M?!1:a||m.pathname+m.search===h.pathname+h.search||m.search!==h.search||om(oe,Ne)}))}),w=[];return c.forEach((N,A)=>{if(o||!n.some(tn=>tn.route.id===N.routeId)||f.has(A))return;let q=Cr(v,N.path,E);if(!q){w.push({key:A,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let oe=t.fetchers.get(A),Ne=go(q,N.path),Re=!1;p.has(A)?Re=!1:u.has(A)?(u.delete(A),Re=!0):oe&&oe.state!=="idle"&&oe.data===void 0?Re=a:Re=Oh(Ne,Ce({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:k,actionStatus:_,defaultShouldRevalidate:M?!1:a})),Re&&w.push({key:A,routeId:N.routeId,path:N.path,matches:q,match:Ne,controller:new AbortController})}),[O,w]}function o4(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function om(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Oh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function l4(e,t,n,r,i,o,l,a){let s=[t,...n.map(u=>u.route.id)].join("-");try{let u=l.get(s);u||(u=e({path:t,matches:n,patch:(f,c)=>{a.aborted||lm(f,c,r,i,o)}}),l.set(s,u)),u&&m4(u)&&await u}finally{l.delete(s)}}function lm(e,t,n,r,i){if(e){var o;let l=r[e];J(l,"No route found to patch children into: routeId = "+e);let a=Zo(t,i,[e,"patch",String(((o=l.children)==null?void 0:o.length)||"0")],r);l.children?l.children.push(...a):l.children=a}else{let l=Zo(t,i,["patch",String(n.length||"0")],r);n.push(...l)}}async function a4(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];J(i,"No route found in manifest");let o={};for(let l in r){let s=i[l]!==void 0&&l!=="hasErrorBoundary";Wi(!s,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!O2.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,Ce({},t(i),{lazy:void 0}))}async function s4(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,l)=>Object.assign(i,{[n[l].route.id]:o}),{})}async function u4(e,t,n,r,i,o,l,a,s,u){let f=o.map(v=>v.route.lazy?a4(v.route,s,a):void 0),c=o.map((v,E)=>{let g=f[E],k=i.some(h=>h.route.id===v.route.id);return Ce({},v,{shouldLoad:k,resolve:async h=>(h&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(k=!0),k?c4(t,r,v,g,h,u):Promise.resolve({type:he.data,result:void 0}))})}),p=await e({matches:c,request:r,params:o[0].params,fetcherKey:l,context:u});try{await Promise.all(f)}catch{}return p}async function c4(e,t,n,r,i,o){let l,a,s=u=>{let f,c=new Promise((E,g)=>f=g);a=()=>f(),t.signal.addEventListener("abort",a);let p=E=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...E!==void 0?[E]:[]),v=(async()=>{try{return{type:"data",result:await(i?i(g=>p(g)):p())}}catch(E){return{type:"error",result:E}}})();return Promise.race([v,c])};try{let u=n.route[e];if(r)if(u){let f,[c]=await Promise.all([s(u).catch(p=>{f=p}),r]);if(f!==void 0)throw f;l=c}else if(await r,u=n.route[e],u)l=await s(u);else if(e==="action"){let f=new URL(t.url),c=f.pathname+f.search;throw at(405,{method:t.method,pathname:c,routeId:n.route.id})}else return{type:he.data,result:void 0};else if(u)l=await s(u);else{let f=new URL(t.url),c=f.pathname+f.search;throw at(404,{pathname:c})}J(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:he.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return l}async function f4(e){let{result:t,type:n}=e;if(sm(t)){let u;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(f){return{type:he.error,error:f}}return n===he.error?{type:he.error,error:new Ha(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:he.data,data:u,statusCode:t.status,headers:t.headers}}if(n===he.error){if(Fh(t)){var r;if(t.data instanceof Error){var i;return{type:he.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Ha(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:he.error,error:t,statusCode:Ts(t)?t.status:void 0}}if(y4(t)){var o,l;return{type:he.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Fh(t)){var a,s;return{type:he.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:he.data,data:t}}function d4(e,t,n,r,i,o){let l=e.headers.get("Location");if(J(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!bf.test(l)){let a=r.slice(0,r.findIndex(s=>s.route.id===n)+1);l=sc(new URL(t.url),a,i,!0,l,o),e.headers.set("Location",l)}return e}function Lh(e,t,n){if(bf.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Yi(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Zr(e,t,n,r){let i=e.createURL(am(t)).toString(),o={signal:n};if(r&&Kt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=uc(r.formData):o.body=r.formData}return new Request(i,o)}function uc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function h4(e,t,n,r,i){let o={},l=null,a,s=!1,u={},f=n&&kt(n[1])?n[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let p=c.route.id,v=t[p];if(J(!Rr(v),"Cannot handle redirect results in processLoaderData"),kt(v)){let E=v.error;f!==void 0&&(E=f,f=void 0),l=l||{};{let g=fi(e,p);l[g.route.id]==null&&(l[g.route.id]=E)}o[p]=void 0,s||(s=!0,a=Ts(v.error)?v.error.status:500),v.headers&&(u[p]=v.headers)}else tr(v)?(r.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers))}),f!==void 0&&n&&(l={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:u}}function Dh(e,t,n,r,i,o,l,a){let{loaderData:s,errors:u}=h4(t,r,i,a);return o.forEach(f=>{let{key:c,match:p,controller:v}=f,E=l[c];if(J(E,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(kt(E)){let g=fi(e.matches,p==null?void 0:p.route.id);u&&u[g.route.id]||(u=Ce({},u,{[g.route.id]:E.error})),e.fetchers.delete(c)}else if(Rr(E))J(!1,"Unhandled fetcher revalidation redirect");else if(tr(E))J(!1,"Unhandled fetcher deferred data");else{let g=Un(E.data);e.fetchers.set(c,g)}}),{loaderData:s,errors:u}}function Nh(e,t,n,r){let i=Ce({},t);for(let o of n){let l=o.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(i[l]=t[l]):e[l]!==void 0&&o.route.loader&&(i[l]=e[l]),r&&r.hasOwnProperty(l))break}return i}function Ah(e){return e?kt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ih(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function at(e,t){let{pathname:n,routeId:r,method:i,type:o,message:l}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+l):i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Ha(e||500,a,new Error(s),!0)}function ql(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Rr(i))return{key:r,result:i}}}function am(e){let t=typeof e=="string"?mr(e):e;return Br(Ce({},t,{hash:""}))}function p4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function m4(e){return typeof e=="object"&&e!=null&&"then"in e}function v4(e){return sm(e.result)&&X2.has(e.result.status)}function tr(e){return e.type===he.deferred}function kt(e){return e.type===he.error}function Rr(e){return(e&&e.type)===he.redirect}function Fh(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function y4(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function g4(e){return Z2.has(e.toLowerCase())}function Kt(e){return G2.has(e.toLowerCase())}async function w4(e,t,n,r,i){let o=Object.entries(t);for(let l=0;l(p==null?void 0:p.route.id)===a);if(!u)continue;let f=r.find(p=>p.route.id===u.route.id),c=f!=null&&!om(f,u)&&(i&&i[u.route.id])!==void 0;tr(s)&&c&&await zf(s,n,!1).then(p=>{p&&(t[a]=p)})}}async function S4(e,t,n){for(let r=0;r(u==null?void 0:u.route.id)===o)&&tr(a)&&(J(l,"Expected an AbortController for revalidating fetcher deferred result"),await zf(a,l.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function zf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:he.data,data:e.deferredData.unwrappedData}}catch(i){return{type:he.error,error:i}}return{type:he.data,data:e.deferredData.data}}}function jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function go(e,t){let n=typeof t=="string"?mr(t).search:t.search;if(e[e.length-1].route.index&&jf(n||""))return e[e.length-1];let r=nm(e);return r[r.length-1]}function bh(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function au(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function uo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function E4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Un(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function C4(e,t){try{let n=e.sessionStorage.getItem(im);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function T4(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(im,JSON.stringify(n))}catch(r){Wi(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R2(){return Math.random().toString(36).substr(2,8)}function Th(e,t){return{usr:e.state,key:e.key,idx:t}}function Yo(e,t,n,r){return n===void 0&&(n=null),Ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?mr(t):t,{state:n,key:t&&t.key||r||R2()})}function Br(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function mr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Ie.Pop,s=null,u=f();u==null&&(u=0,l.replaceState(Ce({},l.state,{idx:u}),""));function f(){return(l.state||{idx:null}).idx}function c(){a=Ie.Pop;let k=f(),m=k==null?null:k-u;u=k,s&&s({action:a,location:y.location,delta:m})}function p(k,m){a=Ie.Push;let h=Yo(y.location,k,m);u=f()+1;let g=Th(h,u),T=y.createHref(h);try{l.pushState(g,"",T)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(T)}o&&s&&s({action:a,location:y.location,delta:1})}function v(k,m){a=Ie.Replace;let h=Yo(y.location,k,m);u=f();let g=Th(h,u),T=y.createHref(h);l.replaceState(g,"",T),o&&s&&s({action:a,location:y.location,delta:0})}function E(k){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof k=="string"?k:Br(k);return h=h.replace(/ $/,"%20"),J(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let y={get action(){return a},get location(){return e(i,l)},listen(k){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Ch,c),s=k,()=>{i.removeEventListener(Ch,c),s=null}},createHref(k){return t(i,k)},createURL:E,encodeLocation(k){let m=E(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:v,go(k){return l.go(k)}};return y}var he;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(he||(he={}));const O2=new Set(["lazy","caseSensitive","path","id","index","children"]);function L2(e){return e.index===!0}function Zo(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let l=[...n,String(o)],a=typeof i.id=="string"?i.id:l.join("-");if(J(i.index!==!0||!i.children,"Cannot specify children on an index route"),J(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),L2(i)){let s=Ce({},i,t(i),{id:a});return r[a]=s,s}else{let s=Ce({},i,t(i),{id:a,children:void 0});return r[a]=s,i.children&&(s.children=Zo(i.children,t,l,r)),s}})}function Cr(e,t,n){return n===void 0&&(n="/"),ma(e,t,n,!1)}function ma(e,t,n,r){let i=typeof t=="string"?mr(t):t,o=Yi(i.pathname||"/",n);if(o==null)return null;let l=em(e);D2(l);let a=null;for(let s=0;a==null&&s{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(J(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=On([r,s.relativePath]),f=n.concat(s);o.children&&o.children.length>0&&(J(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),em(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:j2(u,o.index),routesMeta:f})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of tm(o.path))i(o,l,s)}),t}function tm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=tm(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function D2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:U2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const N2=/^:[\w-]+$/,A2=3,I2=2,b2=1,F2=10,z2=-2,kh=e=>e==="*";function j2(e,t){let n=e.split("/"),r=n.length;return n.some(kh)&&(r+=z2),t&&(r+=I2),n.filter(i=>!kh(i)).reduce((i,o)=>i+(N2.test(o)?A2:o===""?b2:F2),r)}function U2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function $2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a{let{paramName:p,isOptional:v}=f;if(p==="*"){let y=a[c]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const E=a[c];return v&&!E?u[p]=void 0:u[p]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function H2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function B2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function W2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?mr(e):e;return{pathname:n?n.startsWith("/")?n:V2(n,t):t,search:q2(r),hash:K2(i)}}function V2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ou(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function nm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function If(e,t){let n=nm(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bf(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=mr(e):(i=Ce({},e),J(!i.pathname||!i.pathname.includes("?"),ou("?","pathname","search",i)),J(!i.pathname||!i.pathname.includes("#"),ou("#","pathname","hash",i)),J(!i.search||!i.search.includes("#"),ou("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),c-=1;i.pathname=p.join("/")}a=c>=0?t[c]:"/"}let s=W2(i,a),u=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}const On=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,K2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ha{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Ts(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rm=["post","put","patch","delete"],G2=new Set(rm),Y2=["get",...rm],Z2=new Set(Y2),X2=new Set([301,302,303,307,308]),J2=new Set([307,308]),lu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},e4={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},so={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ff=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,t4=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),im="remix-router-transitions";function n4(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;J(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;i=C=>({hasErrorBoundary:S(C)})}else i=t4;let o={},l=Zo(e.routes,i,void 0,o),a,s=e.basename||"/",u=e.unstable_dataStrategy||s4,f=e.unstable_patchRoutesOnNavigation,c=Ce({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,v=new Set,E=1e3,y=new Set,k=null,m=null,h=null,g=e.hydrationData!=null,T=Cr(l,e.history.location,s),_=null;if(T==null&&!f){let S=at(404,{pathname:e.history.location.pathname}),{matches:C,route:P}=Ih(l);T=C,_={[P.id]:S}}T&&!e.hydrationData&&El(T,l,e.history.location.pathname).active&&(T=null);let M;if(T)if(T.some(S=>S.route.lazy))M=!1;else if(!T.some(S=>S.route.loader))M=!0;else if(c.v7_partialHydration){let S=e.hydrationData?e.hydrationData.loaderData:null,C=e.hydrationData?e.hydrationData.errors:null,P=L=>L.route.loader?typeof L.route.loader=="function"&&L.route.loader.hydrate===!0?!1:S&&S[L.route.id]!==void 0||C&&C[L.route.id]!==void 0:!0;if(C){let L=T.findIndex(z=>C[z.route.id]!==void 0);M=T.slice(0,L+1).every(P)}else M=T.every(P)}else M=e.hydrationData!=null;else if(M=!1,T=[],c.v7_partialHydration){let S=El(null,l,e.history.location.pathname);S.active&&S.matches&&(T=S.matches)}let O,w={historyAction:e.history.action,location:e.history.location,matches:T,initialized:M,navigation:lu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},N=Ie.Pop,A=!1,q,oe=!1,Ne=new Map,Re=null,tn=!1,Bt=!1,In=[],F=new Set,$=new Map,Y=0,pe=-1,ve=new Map,dt=new Set,ht=new Map,gn=new Map,We=new Set,At=new Map,yr=new Map,$m=new Map,yl;function Hm(){if(p=e.history.listen(S=>{let{action:C,location:P,delta:L}=S;if(yl){yl(),yl=void 0;return}Wi(yr.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let z=td({currentLocation:w.location,nextLocation:P,historyAction:C});if(z&&L!=null){let V=new Promise(G=>{yl=G});e.history.go(L*-1),Sl(z,{state:"blocked",location:P,proceed(){Sl(z,{state:"proceeding",proceed:void 0,reset:void 0,location:P}),V.then(()=>e.history.go(L))},reset(){let G=new Map(w.blockers);G.set(z,so),nt({blockers:G})}});return}return wr(C,P)}),n){C4(t,Ne);let S=()=>T4(t,Ne);t.addEventListener("pagehide",S),Re=()=>t.removeEventListener("pagehide",S)}return w.initialized||wr(Ie.Pop,w.location,{initialHydration:!0}),O}function Bm(){p&&p(),Re&&Re(),v.clear(),q&&q.abort(),w.fetchers.forEach((S,C)=>wl(C)),w.blockers.forEach((S,C)=>ed(C))}function Wm(S){return v.add(S),()=>v.delete(S)}function nt(S,C){C===void 0&&(C={}),w=Ce({},w,S);let P=[],L=[];c.v7_fetcherPersist&&w.fetchers.forEach((z,V)=>{z.state==="idle"&&(We.has(V)?L.push(V):P.push(V))}),[...v].forEach(z=>z(w,{deletedFetchers:L,unstable_viewTransitionOpts:C.viewTransitionOpts,unstable_flushSync:C.flushSync===!0})),c.v7_fetcherPersist&&(P.forEach(z=>w.fetchers.delete(z)),L.forEach(z=>wl(z)))}function Kr(S,C,P){var L,z;let{flushSync:V}=P===void 0?{}:P,G=w.actionData!=null&&w.navigation.formMethod!=null&&Kt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((L=S.state)==null?void 0:L._isRedirect)!==!0,I;C.actionData?Object.keys(C.actionData).length>0?I=C.actionData:I=null:G?I=w.actionData:I=null;let Q=C.loaderData?Nh(w.loaderData,C.loaderData,C.matches||[],C.errors):w.loaderData,B=w.blockers;B.size>0&&(B=new Map(B),B.forEach((ce,ge)=>B.set(ge,so)));let W=A===!0||w.navigation.formMethod!=null&&Kt(w.navigation.formMethod)&&((z=S.state)==null?void 0:z._isRedirect)!==!0;a&&(l=a,a=void 0),tn||N===Ie.Pop||(N===Ie.Push?e.history.push(S,S.state):N===Ie.Replace&&e.history.replace(S,S.state));let le;if(N===Ie.Pop){let ce=Ne.get(w.location.pathname);ce&&ce.has(S.pathname)?le={currentLocation:w.location,nextLocation:S}:Ne.has(S.pathname)&&(le={currentLocation:S,nextLocation:w.location})}else if(oe){let ce=Ne.get(w.location.pathname);ce?ce.add(S.pathname):(ce=new Set([S.pathname]),Ne.set(w.location.pathname,ce)),le={currentLocation:w.location,nextLocation:S}}nt(Ce({},C,{actionData:I,loaderData:Q,historyAction:N,location:S,initialized:!0,navigation:lu,revalidation:"idle",restoreScrollPosition:rd(S,C.matches||w.matches),preventScrollReset:W,blockers:B}),{viewTransitionOpts:le,flushSync:V===!0}),N=Ie.Pop,A=!1,oe=!1,tn=!1,Bt=!1,In=[]}async function qf(S,C){if(typeof S=="number"){e.history.go(S);return}let P=sc(w.location,w.matches,s,c.v7_prependBasename,S,c.v7_relativeSplatPath,C==null?void 0:C.fromRouteId,C==null?void 0:C.relative),{path:L,submission:z,error:V}=Rh(c.v7_normalizeFormMethod,!1,P,C),G=w.location,I=Yo(w.location,L,C&&C.state);I=Ce({},I,e.history.encodeLocation(I));let Q=C&&C.replace!=null?C.replace:void 0,B=Ie.Push;Q===!0?B=Ie.Replace:Q===!1||z!=null&&Kt(z.formMethod)&&z.formAction===w.location.pathname+w.location.search&&(B=Ie.Replace);let W=C&&"preventScrollReset"in C?C.preventScrollReset===!0:void 0,le=(C&&C.unstable_flushSync)===!0,ce=td({currentLocation:G,nextLocation:I,historyAction:B});if(ce){Sl(ce,{state:"blocked",location:I,proceed(){Sl(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:I}),qf(S,C)},reset(){let ge=new Map(w.blockers);ge.set(ce,so),nt({blockers:ge})}});return}return await wr(B,I,{submission:z,pendingError:V,preventScrollReset:W,replace:C&&C.replace,enableViewTransition:C&&C.unstable_viewTransition,flushSync:le})}function Vm(){if(_s(),nt({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){wr(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}wr(N||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:oe===!0})}}async function wr(S,C,P){q&&q.abort(),q=null,N=S,tn=(P&&P.startUninterruptedRevalidation)===!0,tv(w.location,w.matches),A=(P&&P.preventScrollReset)===!0,oe=(P&&P.enableViewTransition)===!0;let L=a||l,z=P&&P.overrideNavigation,V=Cr(L,C,s),G=(P&&P.flushSync)===!0,I=El(V,L,C.pathname);if(I.active&&I.matches&&(V=I.matches),!V){let{error:re,notFoundMatches:Ue,route:Ae}=Os(C.pathname);Kr(C,{matches:Ue,loaderData:{},errors:{[Ae.id]:re}},{flushSync:G});return}if(w.initialized&&!Bt&&p4(w.location,C)&&!(P&&P.submission&&Kt(P.submission.formMethod))){Kr(C,{matches:V},{flushSync:G});return}q=new AbortController;let Q=Zr(e.history,C,q.signal,P&&P.submission),B;if(P&&P.pendingError)B=[fi(V).route.id,{type:he.error,error:P.pendingError}];else if(P&&P.submission&&Kt(P.submission.formMethod)){let re=await Qm(Q,C,P.submission,V,I.active,{replace:P.replace,flushSync:G});if(re.shortCircuited)return;if(re.pendingActionResult){let[Ue,Ae]=re.pendingActionResult;if(kt(Ae)&&Ts(Ae.error)&&Ae.error.status===404){q=null,Kr(C,{matches:re.matches,loaderData:{},errors:{[Ue]:Ae.error}});return}}V=re.matches||V,B=re.pendingActionResult,z=au(C,P.submission),G=!1,I.active=!1,Q=Zr(e.history,Q.url,Q.signal)}let{shortCircuited:W,matches:le,loaderData:ce,errors:ge}=await qm(Q,C,V,I.active,z,P&&P.submission,P&&P.fetcherSubmission,P&&P.replace,P&&P.initialHydration===!0,G,B);W||(q=null,Kr(C,Ce({matches:le||V},Ah(B),{loaderData:ce,errors:ge})))}async function Qm(S,C,P,L,z,V){V===void 0&&(V={}),_s();let G=x4(C,P);if(nt({navigation:G},{flushSync:V.flushSync===!0}),z){let B=await Cl(L,C.pathname,S.signal);if(B.type==="aborted")return{shortCircuited:!0};if(B.type==="error"){let{boundaryId:W,error:le}=xl(C.pathname,B);return{matches:B.partialMatches,pendingActionResult:[W,{type:he.error,error:le}]}}else if(B.matches)L=B.matches;else{let{notFoundMatches:W,error:le,route:ce}=Os(C.pathname);return{matches:W,pendingActionResult:[ce.id,{type:he.error,error:le}]}}}let I,Q=yo(L,C);if(!Q.route.action&&!Q.route.lazy)I={type:he.error,error:at(405,{method:S.method,pathname:C.pathname,routeId:Q.route.id})};else if(I=(await Zi("action",w,S,[Q],L,null))[Q.route.id],S.signal.aborted)return{shortCircuited:!0};if(Rr(I)){let B;return V&&V.replace!=null?B=V.replace:B=Lh(I.response.headers.get("Location"),new URL(S.url),s)===w.location.pathname+w.location.search,await Sr(S,I,!0,{submission:P,replace:B}),{shortCircuited:!0}}if(tr(I))throw at(400,{type:"defer-action"});if(kt(I)){let B=fi(L,Q.route.id);return(V&&V.replace)!==!0&&(N=Ie.Push),{matches:L,pendingActionResult:[B.route.id,I]}}return{matches:L,pendingActionResult:[Q.route.id,I]}}async function qm(S,C,P,L,z,V,G,I,Q,B,W){let le=z||au(C,V),ce=V||G||Fh(le),ge=!tn&&(!c.v7_partialHydration||!Q);if(L){if(ge){let _e=Kf(W);nt(Ce({navigation:le},_e!==void 0?{actionData:_e}:{}),{flushSync:B})}let X=await Cl(P,C.pathname,S.signal);if(X.type==="aborted")return{shortCircuited:!0};if(X.type==="error"){let{boundaryId:_e,error:Et}=xl(C.pathname,X);return{matches:X.partialMatches,loaderData:{},errors:{[_e]:Et}}}else if(X.matches)P=X.matches;else{let{error:_e,notFoundMatches:Et,route:Oe}=Os(C.pathname);return{matches:Et,loaderData:{},errors:{[Oe.id]:_e}}}}let re=a||l,[Ue,Ae]=_h(e.history,w,P,ce,C,c.v7_partialHydration&&Q===!0,c.v7_skipActionErrorRevalidation,Bt,In,F,We,ht,dt,re,s,W);if(Ls(X=>!(P&&P.some(_e=>_e.route.id===X))||Ue&&Ue.some(_e=>_e.route.id===X)),pe=++Y,Ue.length===0&&Ae.length===0){let X=Xf();return Kr(C,Ce({matches:P,loaderData:{},errors:W&&kt(W[1])?{[W[0]]:W[1].error}:null},Ah(W),X?{fetchers:new Map(w.fetchers)}:{}),{flushSync:B}),{shortCircuited:!0}}if(ge){let X={};if(!L){X.navigation=le;let _e=Kf(W);_e!==void 0&&(X.actionData=_e)}Ae.length>0&&(X.fetchers=Km(Ae)),nt(X,{flushSync:B})}Ae.forEach(X=>{$.has(X.key)&&Fn(X.key),X.controller&&$.set(X.key,X.controller)});let Xi=()=>Ae.forEach(X=>Fn(X.key));q&&q.signal.addEventListener("abort",Xi);let{loaderResults:wn,fetcherResults:Gr}=await Gf(w,P,Ue,Ae,S);if(S.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Xi),Ae.forEach(X=>$.delete(X.key));let zn=ql(wn);if(zn)return await Sr(S,zn.result,!0,{replace:I}),{shortCircuited:!0};if(zn=ql(Gr),zn)return dt.add(zn.key),await Sr(S,zn.result,!0,{replace:I}),{shortCircuited:!0};let{loaderData:Tl,errors:Sn}=Dh(w,P,Ue,wn,W,Ae,Gr,At);At.forEach((X,_e)=>{X.subscribe(Et=>{(Et||X.done)&&At.delete(_e)})}),c.v7_partialHydration&&Q&&w.errors&&Object.entries(w.errors).filter(X=>{let[_e]=X;return!Ue.some(Et=>Et.route.id===_e)}).forEach(X=>{let[_e,Et]=X;Sn=Object.assign(Sn||{},{[_e]:Et})});let kl=Xf(),Pl=Jf(pe),Rl=kl||Pl||Ae.length>0;return Ce({matches:P,loaderData:Tl,errors:Sn},Rl?{fetchers:new Map(w.fetchers)}:{})}function Kf(S){if(S&&!kt(S[1]))return{[S[0]]:S[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function Km(S){return S.forEach(C=>{let P=w.fetchers.get(C.key),L=uo(void 0,P?P.data:void 0);w.fetchers.set(C.key,L)}),new Map(w.fetchers)}function Gm(S,C,P,L){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(S)&&Fn(S);let z=(L&&L.unstable_flushSync)===!0,V=a||l,G=sc(w.location,w.matches,s,c.v7_prependBasename,P,c.v7_relativeSplatPath,C,L==null?void 0:L.relative),I=Cr(V,G,s),Q=El(I,V,G);if(Q.active&&Q.matches&&(I=Q.matches),!I){yn(S,C,at(404,{pathname:G}),{flushSync:z});return}let{path:B,submission:W,error:le}=Rh(c.v7_normalizeFormMethod,!0,G,L);if(le){yn(S,C,le,{flushSync:z});return}let ce=yo(I,B);if(A=(L&&L.preventScrollReset)===!0,W&&Kt(W.formMethod)){Ym(S,C,B,ce,I,Q.active,z,W);return}ht.set(S,{routeId:C,path:B}),Zm(S,C,B,ce,I,Q.active,z,W)}async function Ym(S,C,P,L,z,V,G,I){_s(),ht.delete(S);function Q(Oe){if(!Oe.route.action&&!Oe.route.lazy){let xn=at(405,{method:I.formMethod,pathname:P,routeId:C});return yn(S,C,xn,{flushSync:G}),!0}return!1}if(!V&&Q(L))return;let B=w.fetchers.get(S);bn(S,E4(I,B),{flushSync:G});let W=new AbortController,le=Zr(e.history,P,W.signal,I);if(V){let Oe=await Cl(z,P,le.signal);if(Oe.type==="aborted")return;if(Oe.type==="error"){let{error:xn}=xl(P,Oe);yn(S,C,xn,{flushSync:G});return}else if(Oe.matches){if(z=Oe.matches,L=yo(z,P),Q(L))return}else{yn(S,C,at(404,{pathname:P}),{flushSync:G});return}}$.set(S,W);let ce=Y,re=(await Zi("action",w,le,[L],z,S))[L.route.id];if(le.signal.aborted){$.get(S)===W&&$.delete(S);return}if(c.v7_fetcherPersist&&We.has(S)){if(Rr(re)||kt(re)){bn(S,Un(void 0));return}}else{if(Rr(re))if($.delete(S),pe>ce){bn(S,Un(void 0));return}else return dt.add(S),bn(S,uo(I)),Sr(le,re,!1,{fetcherSubmission:I});if(kt(re)){yn(S,C,re.error);return}}if(tr(re))throw at(400,{type:"defer-action"});let Ue=w.navigation.location||w.location,Ae=Zr(e.history,Ue,W.signal),Xi=a||l,wn=w.navigation.state!=="idle"?Cr(Xi,w.navigation.location,s):w.matches;J(wn,"Didn't find any matches after fetcher action");let Gr=++Y;ve.set(S,Gr);let zn=uo(I,re.data);w.fetchers.set(S,zn);let[Tl,Sn]=_h(e.history,w,wn,I,Ue,!1,c.v7_skipActionErrorRevalidation,Bt,In,F,We,ht,dt,Xi,s,[L.route.id,re]);Sn.filter(Oe=>Oe.key!==S).forEach(Oe=>{let xn=Oe.key,od=w.fetchers.get(xn),iv=uo(void 0,od?od.data:void 0);w.fetchers.set(xn,iv),$.has(xn)&&Fn(xn),Oe.controller&&$.set(xn,Oe.controller)}),nt({fetchers:new Map(w.fetchers)});let kl=()=>Sn.forEach(Oe=>Fn(Oe.key));W.signal.addEventListener("abort",kl);let{loaderResults:Pl,fetcherResults:Rl}=await Gf(w,wn,Tl,Sn,Ae);if(W.signal.aborted)return;W.signal.removeEventListener("abort",kl),ve.delete(S),$.delete(S),Sn.forEach(Oe=>$.delete(Oe.key));let X=ql(Pl);if(X)return Sr(Ae,X.result,!1);if(X=ql(Rl),X)return dt.add(X.key),Sr(Ae,X.result,!1);let{loaderData:_e,errors:Et}=Dh(w,wn,Tl,Pl,void 0,Sn,Rl,At);if(w.fetchers.has(S)){let Oe=Un(re.data);w.fetchers.set(S,Oe)}Jf(Gr),w.navigation.state==="loading"&&Gr>pe?(J(N,"Expected pending action"),q&&q.abort(),Kr(w.navigation.location,{matches:wn,loaderData:_e,errors:Et,fetchers:new Map(w.fetchers)})):(nt({errors:Et,loaderData:Nh(w.loaderData,_e,wn,Et),fetchers:new Map(w.fetchers)}),Bt=!1)}async function Zm(S,C,P,L,z,V,G,I){let Q=w.fetchers.get(S);bn(S,uo(I,Q?Q.data:void 0),{flushSync:G});let B=new AbortController,W=Zr(e.history,P,B.signal);if(V){let re=await Cl(z,P,W.signal);if(re.type==="aborted")return;if(re.type==="error"){let{error:Ue}=xl(P,re);yn(S,C,Ue,{flushSync:G});return}else if(re.matches)z=re.matches,L=yo(z,P);else{yn(S,C,at(404,{pathname:P}),{flushSync:G});return}}$.set(S,B);let le=Y,ge=(await Zi("loader",w,W,[L],z,S))[L.route.id];if(tr(ge)&&(ge=await zf(ge,W.signal,!0)||ge),$.get(S)===B&&$.delete(S),!W.signal.aborted){if(We.has(S)){bn(S,Un(void 0));return}if(Rr(ge))if(pe>le){bn(S,Un(void 0));return}else{dt.add(S),await Sr(W,ge,!1);return}if(kt(ge)){yn(S,C,ge.error);return}J(!tr(ge),"Unhandled fetcher deferred data"),bn(S,Un(ge.data))}}async function Sr(S,C,P,L){let{submission:z,fetcherSubmission:V,replace:G}=L===void 0?{}:L;C.response.headers.has("X-Remix-Revalidate")&&(Bt=!0);let I=C.response.headers.get("Location");J(I,"Expected a Location header on the redirect Response"),I=Lh(I,new URL(S.url),s);let Q=Yo(w.location,I,{_isRedirect:!0});if(n){let re=!1;if(C.response.headers.has("X-Remix-Reload-Document"))re=!0;else if(Ff.test(I)){const Ue=e.history.createURL(I);re=Ue.origin!==t.location.origin||Yi(Ue.pathname,s)==null}if(re){G?t.location.replace(I):t.location.assign(I);return}}q=null;let B=G===!0||C.response.headers.has("X-Remix-Replace")?Ie.Replace:Ie.Push,{formMethod:W,formAction:le,formEncType:ce}=w.navigation;!z&&!V&&W&&le&&ce&&(z=Fh(w.navigation));let ge=z||V;if(J2.has(C.response.status)&&ge&&Kt(ge.formMethod))await wr(B,Q,{submission:Ce({},ge,{formAction:I}),preventScrollReset:A,enableViewTransition:P?oe:void 0});else{let re=au(Q,z);await wr(B,Q,{overrideNavigation:re,fetcherSubmission:V,preventScrollReset:A,enableViewTransition:P?oe:void 0})}}async function Zi(S,C,P,L,z,V){let G,I={};try{G=await u4(u,S,C,P,L,z,V,o,i)}catch(Q){return L.forEach(B=>{I[B.route.id]={type:he.error,error:Q}}),I}for(let[Q,B]of Object.entries(G))if(v4(B)){let W=B.result;I[Q]={type:he.redirect,response:d4(W,P,Q,z,s,c.v7_relativeSplatPath)}}else I[Q]=await f4(B);return I}async function Gf(S,C,P,L,z){let V=S.matches,G=Zi("loader",S,z,P,C,null),I=Promise.all(L.map(async W=>{if(W.matches&&W.match&&W.controller){let ce=(await Zi("loader",S,Zr(e.history,W.path,W.controller.signal),[W.match],W.matches,W.key))[W.match.route.id];return{[W.key]:ce}}else return Promise.resolve({[W.key]:{type:he.error,error:at(404,{pathname:W.path})}})})),Q=await G,B=(await I).reduce((W,le)=>Object.assign(W,le),{});return await Promise.all([w4(C,Q,z.signal,V,S.loaderData),S4(C,B,L)]),{loaderResults:Q,fetcherResults:B}}function _s(){Bt=!0,In.push(...Ls()),ht.forEach((S,C)=>{$.has(C)&&(F.add(C),Fn(C))})}function bn(S,C,P){P===void 0&&(P={}),w.fetchers.set(S,C),nt({fetchers:new Map(w.fetchers)},{flushSync:(P&&P.flushSync)===!0})}function yn(S,C,P,L){L===void 0&&(L={});let z=fi(w.matches,C);wl(S),nt({errors:{[z.route.id]:P},fetchers:new Map(w.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Yf(S){return c.v7_fetcherPersist&&(gn.set(S,(gn.get(S)||0)+1),We.has(S)&&We.delete(S)),w.fetchers.get(S)||e4}function wl(S){let C=w.fetchers.get(S);$.has(S)&&!(C&&C.state==="loading"&&ve.has(S))&&Fn(S),ht.delete(S),ve.delete(S),dt.delete(S),We.delete(S),F.delete(S),w.fetchers.delete(S)}function Xm(S){if(c.v7_fetcherPersist){let C=(gn.get(S)||0)-1;C<=0?(gn.delete(S),We.add(S)):gn.set(S,C)}else wl(S);nt({fetchers:new Map(w.fetchers)})}function Fn(S){let C=$.get(S);J(C,"Expected fetch controller: "+S),C.abort(),$.delete(S)}function Zf(S){for(let C of S){let P=Yf(C),L=Un(P.data);w.fetchers.set(C,L)}}function Xf(){let S=[],C=!1;for(let P of dt){let L=w.fetchers.get(P);J(L,"Expected fetcher: "+P),L.state==="loading"&&(dt.delete(P),S.push(P),C=!0)}return Zf(S),C}function Jf(S){let C=[];for(let[P,L]of ve)if(L0}function Jm(S,C){let P=w.blockers.get(S)||so;return yr.get(S)!==C&&yr.set(S,C),P}function ed(S){w.blockers.delete(S),yr.delete(S)}function Sl(S,C){let P=w.blockers.get(S)||so;J(P.state==="unblocked"&&C.state==="blocked"||P.state==="blocked"&&C.state==="blocked"||P.state==="blocked"&&C.state==="proceeding"||P.state==="blocked"&&C.state==="unblocked"||P.state==="proceeding"&&C.state==="unblocked","Invalid blocker state transition: "+P.state+" -> "+C.state);let L=new Map(w.blockers);L.set(S,C),nt({blockers:L})}function td(S){let{currentLocation:C,nextLocation:P,historyAction:L}=S;if(yr.size===0)return;yr.size>1&&Wi(!1,"A router only supports one blocker at a time");let z=Array.from(yr.entries()),[V,G]=z[z.length-1],I=w.blockers.get(V);if(!(I&&I.state==="proceeding")&&G({currentLocation:C,nextLocation:P,historyAction:L}))return V}function Os(S){let C=at(404,{pathname:S}),P=a||l,{matches:L,route:z}=Ih(P);return Ls(),{notFoundMatches:L,route:z,error:C}}function xl(S,C){return{boundaryId:fi(C.partialMatches).route.id,error:at(400,{type:"route-discovery",pathname:S,message:C.error!=null&&"message"in C.error?C.error:String(C.error)})}}function Ls(S){let C=[];return At.forEach((P,L)=>{(!S||S(L))&&(P.cancel(),C.push(L),At.delete(L))}),C}function ev(S,C,P){if(k=S,h=C,m=P||null,!g&&w.navigation===lu){g=!0;let L=rd(w.location,w.matches);L!=null&&nt({restoreScrollPosition:L})}return()=>{k=null,h=null,m=null}}function nd(S,C){return m&&m(S,C.map(L=>M2(L,w.loaderData)))||S.key}function tv(S,C){if(k&&h){let P=nd(S,C);k[P]=h()}}function rd(S,C){if(k){let P=nd(S,C),L=k[P];if(typeof L=="number")return L}return null}function El(S,C,P){if(f){if(y.has(P))return{active:!1,matches:S};if(S){if(Object.keys(S[0].params).length>0)return{active:!0,matches:ma(C,P,s,!0)}}else return{active:!0,matches:ma(C,P,s,!0)||[]}}return{active:!1,matches:null}}async function Cl(S,C,P){let L=S;for(;;){let z=a==null,V=a||l;try{await l4(f,C,L,V,o,i,$m,P)}catch(Q){return{type:"error",error:Q,partialMatches:L}}finally{z&&(l=[...l])}if(P.aborted)return{type:"aborted"};let G=Cr(V,C,s);if(G)return id(C,y),{type:"success",matches:G};let I=ma(V,C,s,!0);if(!I||L.length===I.length&&L.every((Q,B)=>Q.route.id===I[B].route.id))return id(C,y),{type:"success",matches:null};L=I}}function id(S,C){if(C.size>=E){let P=C.values().next().value;C.delete(P)}C.add(S)}function nv(S){o={},a=Zo(S,i,void 0,o)}function rv(S,C){let P=a==null;lm(S,C,a||l,o,i),P&&(l=[...l],nt({}))}return O={get basename(){return s},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Hm,subscribe:Wm,enableScrollRestoration:ev,navigate:qf,fetch:Gm,revalidate:Vm,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Yf,deleteFetcher:Xm,dispose:Bm,getBlocker:Jm,deleteBlocker:ed,patchRoutes:rv,_internalFetchControllers:$,_internalActiveDeferreds:At,_internalSetRoutes:nv},O}function r4(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function sc(e,t,n,r,i,o,l,a){let s,u;if(l){s=[];for(let c of t)if(s.push(c),c.route.id===l){u=c;break}}else s=t,u=t[t.length-1];let f=bf(i||".",If(s,o),Yi(e.pathname,n)||e.pathname,a==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!jf(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:On([n,f.pathname])),Br(f)}function Rh(e,t,n,r){if(!r||!r4(r))return{path:n};if(r.formMethod&&!y4(r.formMethod))return{path:n,error:at(405,{method:r.formMethod})};let i=()=>({path:n,error:at(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=am(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Kt(l))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((v,E)=>{let[y,k]=E;return""+v+y+"="+k+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!Kt(l))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}J(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=uc(r.formData),u=r.formData;else if(r.body instanceof FormData)s=uc(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=Mh(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=Mh(s)}catch{return i()}let f={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Kt(f.formMethod))return{path:n,submission:f};let c=mr(n);return t&&c.search&&jf(c.search)&&s.append("index",""),c.search="?"+s,{path:Br(c),submission:f}}function i4(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function _h(e,t,n,r,i,o,l,a,s,u,f,c,p,v,E,y){let k=y?kt(y[1])?y[1].error:y[1].data:void 0,m=e.createURL(t.location),h=e.createURL(i),g=y&&kt(y[1])?y[0]:void 0,T=g?i4(n,g):n,_=y?y[1].statusCode:void 0,M=l&&_&&_>=400,O=T.filter((N,A)=>{let{route:q}=N;if(q.lazy)return!0;if(q.loader==null)return!1;if(o)return typeof q.loader!="function"||q.loader.hydrate?!0:t.loaderData[q.id]===void 0&&(!t.errors||t.errors[q.id]===void 0);if(o4(t.loaderData,t.matches[A],N)||s.some(Re=>Re===N.route.id))return!0;let oe=t.matches[A],Ne=N;return Oh(N,Ce({currentUrl:m,currentParams:oe.params,nextUrl:h,nextParams:Ne.params},r,{actionResult:k,actionStatus:_,defaultShouldRevalidate:M?!1:a||m.pathname+m.search===h.pathname+h.search||m.search!==h.search||om(oe,Ne)}))}),w=[];return c.forEach((N,A)=>{if(o||!n.some(tn=>tn.route.id===N.routeId)||f.has(A))return;let q=Cr(v,N.path,E);if(!q){w.push({key:A,routeId:N.routeId,path:N.path,matches:null,match:null,controller:null});return}let oe=t.fetchers.get(A),Ne=yo(q,N.path),Re=!1;p.has(A)?Re=!1:u.has(A)?(u.delete(A),Re=!0):oe&&oe.state!=="idle"&&oe.data===void 0?Re=a:Re=Oh(Ne,Ce({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:h,nextParams:n[n.length-1].params},r,{actionResult:k,actionStatus:_,defaultShouldRevalidate:M?!1:a})),Re&&w.push({key:A,routeId:N.routeId,path:N.path,matches:q,match:Ne,controller:new AbortController})}),[O,w]}function o4(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function om(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Oh(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function l4(e,t,n,r,i,o,l,a){let s=[t,...n.map(u=>u.route.id)].join("-");try{let u=l.get(s);u||(u=e({path:t,matches:n,patch:(f,c)=>{a.aborted||lm(f,c,r,i,o)}}),l.set(s,u)),u&&m4(u)&&await u}finally{l.delete(s)}}function lm(e,t,n,r,i){if(e){var o;let l=r[e];J(l,"No route found to patch children into: routeId = "+e);let a=Zo(t,i,[e,"patch",String(((o=l.children)==null?void 0:o.length)||"0")],r);l.children?l.children.push(...a):l.children=a}else{let l=Zo(t,i,["patch",String(n.length||"0")],r);n.push(...l)}}async function a4(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];J(i,"No route found in manifest");let o={};for(let l in r){let s=i[l]!==void 0&&l!=="hasErrorBoundary";Wi(!s,'Route "'+i.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!O2.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,Ce({},t(i),{lazy:void 0}))}async function s4(e){let{matches:t}=e,n=t.filter(i=>i.shouldLoad);return(await Promise.all(n.map(i=>i.resolve()))).reduce((i,o,l)=>Object.assign(i,{[n[l].route.id]:o}),{})}async function u4(e,t,n,r,i,o,l,a,s,u){let f=o.map(v=>v.route.lazy?a4(v.route,s,a):void 0),c=o.map((v,E)=>{let y=f[E],k=i.some(h=>h.route.id===v.route.id);return Ce({},v,{shouldLoad:k,resolve:async h=>(h&&r.method==="GET"&&(v.route.lazy||v.route.loader)&&(k=!0),k?c4(t,r,v,y,h,u):Promise.resolve({type:he.data,result:void 0}))})}),p=await e({matches:c,request:r,params:o[0].params,fetcherKey:l,context:u});try{await Promise.all(f)}catch{}return p}async function c4(e,t,n,r,i,o){let l,a,s=u=>{let f,c=new Promise((E,y)=>f=y);a=()=>f(),t.signal.addEventListener("abort",a);let p=E=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:o},...E!==void 0?[E]:[]),v=(async()=>{try{return{type:"data",result:await(i?i(y=>p(y)):p())}}catch(E){return{type:"error",result:E}}})();return Promise.race([v,c])};try{let u=n.route[e];if(r)if(u){let f,[c]=await Promise.all([s(u).catch(p=>{f=p}),r]);if(f!==void 0)throw f;l=c}else if(await r,u=n.route[e],u)l=await s(u);else if(e==="action"){let f=new URL(t.url),c=f.pathname+f.search;throw at(405,{method:t.method,pathname:c,routeId:n.route.id})}else return{type:he.data,result:void 0};else if(u)l=await s(u);else{let f=new URL(t.url),c=f.pathname+f.search;throw at(404,{pathname:c})}J(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:he.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return l}async function f4(e){let{result:t,type:n}=e;if(sm(t)){let u;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(f){return{type:he.error,error:f}}return n===he.error?{type:he.error,error:new Ha(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:he.data,data:u,statusCode:t.status,headers:t.headers}}if(n===he.error){if(bh(t)){var r;if(t.data instanceof Error){var i;return{type:he.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Ha(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:he.error,error:t,statusCode:Ts(t)?t.status:void 0}}if(g4(t)){var o,l;return{type:he.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(bh(t)){var a,s;return{type:he.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:he.data,data:t}}function d4(e,t,n,r,i,o){let l=e.headers.get("Location");if(J(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ff.test(l)){let a=r.slice(0,r.findIndex(s=>s.route.id===n)+1);l=sc(new URL(t.url),a,i,!0,l,o),e.headers.set("Location",l)}return e}function Lh(e,t,n){if(Ff.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Yi(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Zr(e,t,n,r){let i=e.createURL(am(t)).toString(),o={signal:n};if(r&&Kt(r.formMethod)){let{formMethod:l,formEncType:a}=r;o.method=l.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=uc(r.formData):o.body=r.formData}return new Request(i,o)}function uc(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Mh(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function h4(e,t,n,r,i){let o={},l=null,a,s=!1,u={},f=n&&kt(n[1])?n[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let p=c.route.id,v=t[p];if(J(!Rr(v),"Cannot handle redirect results in processLoaderData"),kt(v)){let E=v.error;f!==void 0&&(E=f,f=void 0),l=l||{};{let y=fi(e,p);l[y.route.id]==null&&(l[y.route.id]=E)}o[p]=void 0,s||(s=!0,a=Ts(v.error)?v.error.status:500),v.headers&&(u[p]=v.headers)}else tr(v)?(r.set(p,v.deferredData),o[p]=v.deferredData.data,v.statusCode!=null&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers)):(o[p]=v.data,v.statusCode&&v.statusCode!==200&&!s&&(a=v.statusCode),v.headers&&(u[p]=v.headers))}),f!==void 0&&n&&(l={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:u}}function Dh(e,t,n,r,i,o,l,a){let{loaderData:s,errors:u}=h4(t,r,i,a);return o.forEach(f=>{let{key:c,match:p,controller:v}=f,E=l[c];if(J(E,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(kt(E)){let y=fi(e.matches,p==null?void 0:p.route.id);u&&u[y.route.id]||(u=Ce({},u,{[y.route.id]:E.error})),e.fetchers.delete(c)}else if(Rr(E))J(!1,"Unhandled fetcher revalidation redirect");else if(tr(E))J(!1,"Unhandled fetcher deferred data");else{let y=Un(E.data);e.fetchers.set(c,y)}}),{loaderData:s,errors:u}}function Nh(e,t,n,r){let i=Ce({},t);for(let o of n){let l=o.route.id;if(t.hasOwnProperty(l)?t[l]!==void 0&&(i[l]=t[l]):e[l]!==void 0&&o.route.loader&&(i[l]=e[l]),r&&r.hasOwnProperty(l))break}return i}function Ah(e){return e?kt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function fi(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Ih(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function at(e,t){let{pathname:n,routeId:r,method:i,type:o,message:l}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o==="route-discovery"?s='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+l):i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?s="defer() is not supported in actions":o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new Ha(e||500,a,new Error(s),!0)}function ql(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Rr(i))return{key:r,result:i}}}function am(e){let t=typeof e=="string"?mr(e):e;return Br(Ce({},t,{hash:""}))}function p4(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function m4(e){return typeof e=="object"&&e!=null&&"then"in e}function v4(e){return sm(e.result)&&X2.has(e.result.status)}function tr(e){return e.type===he.deferred}function kt(e){return e.type===he.error}function Rr(e){return(e&&e.type)===he.redirect}function bh(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function g4(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function sm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function y4(e){return Z2.has(e.toLowerCase())}function Kt(e){return G2.has(e.toLowerCase())}async function w4(e,t,n,r,i){let o=Object.entries(t);for(let l=0;l(p==null?void 0:p.route.id)===a);if(!u)continue;let f=r.find(p=>p.route.id===u.route.id),c=f!=null&&!om(f,u)&&(i&&i[u.route.id])!==void 0;tr(s)&&c&&await zf(s,n,!1).then(p=>{p&&(t[a]=p)})}}async function S4(e,t,n){for(let r=0;r(u==null?void 0:u.route.id)===o)&&tr(a)&&(J(l,"Expected an AbortController for revalidating fetcher deferred result"),await zf(a,l.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function zf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:he.data,data:e.deferredData.unwrappedData}}catch(i){return{type:he.error,error:i}}return{type:he.data,data:e.deferredData.data}}}function jf(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function yo(e,t){let n=typeof t=="string"?mr(t).search:t.search;if(e[e.length-1].route.index&&jf(n||""))return e[e.length-1];let r=nm(e);return r[r.length-1]}function Fh(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:l}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function au(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function x4(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function uo(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function E4(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Un(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function C4(e,t){try{let n=e.sessionStorage.getItem(im);if(n){let r=JSON.parse(n);for(let[i,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function T4(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(im,JSON.stringify(n))}catch(r){Wi(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.26.2 * * Copyright (c) Remix Software Inc. @@ -64,7 +64,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=Ff(u,JSON.parse(l),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:On([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,o,e])}const R4=R.createContext(null);function _4(e){let t=R.useContext(vr).outlet;return t&&R.createElement(R4.Provider,{value:e},t)}function dm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(qr),{matches:i}=R.useContext(vr),{pathname:o}=yr(),l=JSON.stringify(If(i,r.v7_relativeSplatPath));return R.useMemo(()=>Ff(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function O4(e,t,n,r){pl()||J(!1);let{navigator:i}=R.useContext(qr),{matches:o}=R.useContext(vr),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=yr(),f;f=u;let c=f.pathname||"/",p=c;if(s!=="/"){let g=s.replace(/^\//,"").split("/");p="/"+c.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=Cr(e,{pathname:p});return A4(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:On([s,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:On([s,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r)}function L4(){let e=z4(),t=Ts(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const M4=R.createElement(L4,null);class D4 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(vr.Provider,{value:this.props.routeContext},R.createElement(cm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function N4(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(ks);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(vr.Provider,{value:t},r)}function A4(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let f=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);f>=0||J(!1),l=l.slice(0,Math.min(l.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((f,c,p)=>{let v,E=!1,g=null,k=null;n&&(v=a&&c.route.id?a[c.route.id]:void 0,g=c.route.errorElement||M4,s&&(u<0&&p===0?(U4("route-fallback"),E=!0,k=null):u===p&&(E=!0,k=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,p+1)),h=()=>{let y;return v?y=g:E?y=k:c.route.Component?y=R.createElement(c.route.Component,null):c.route.element?y=c.route.element:y=f,R.createElement(N4,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:y})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?R.createElement(D4,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var hm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hm||{}),Wa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Wa||{});function I4(e){let t=R.useContext(ks);return t||J(!1),t}function F4(e){let t=R.useContext(um);return t||J(!1),t}function b4(e){let t=R.useContext(vr);return t||J(!1),t}function pm(e){let t=b4(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function z4(){var e;let t=R.useContext(cm),n=F4(Wa.UseRouteError),r=pm(Wa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function j4(){let{router:e}=I4(hm.UseNavigateStable),t=pm(Wa.UseNavigateStable),n=R.useRef(!1);return fm(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ba({fromRouteId:t},o)))},[e,t])}const zh={};function U4(e,t,n){zh[e]||(zh[e]=!0)}function $4(e){return _4(e.context)}function H4(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ie.Pop,navigator:o,static:l=!1,future:a}=e;pl()&&J(!1);let s=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:s,navigator:o,static:l,future:Ba({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=mr(r));let{pathname:f="/",search:c="",hash:p="",state:v=null,key:E="default"}=r,g=R.useMemo(()=>{let k=Yi(f,s);return k==null?null:{location:{pathname:k,search:c,hash:p,state:v,key:E},navigationType:i}},[s,f,c,p,v,E,i]);return g==null?null:R.createElement(qr.Provider,{value:u},R.createElement(Uf.Provider,{children:n,value:g}))}new Promise(()=>{});function B4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(u,f){if(f===void 0&&(f={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=bf(u,JSON.parse(l),o,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:On([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,o,e])}const R4=R.createContext(null);function _4(e){let t=R.useContext(vr).outlet;return t&&R.createElement(R4.Provider,{value:e},t)}function dm(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=R.useContext(qr),{matches:i}=R.useContext(vr),{pathname:o}=gr(),l=JSON.stringify(If(i,r.v7_relativeSplatPath));return R.useMemo(()=>bf(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function O4(e,t,n,r){pl()||J(!1);let{navigator:i}=R.useContext(qr),{matches:o}=R.useContext(vr),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=gr(),f;f=u;let c=f.pathname||"/",p=c;if(s!=="/"){let y=s.replace(/^\//,"").split("/");p="/"+c.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=Cr(e,{pathname:p});return A4(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:On([s,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:On([s,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,n,r)}function L4(){let e=z4(),t=Ts(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:i},n):null,null)}const M4=R.createElement(L4,null);class D4 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(vr.Provider,{value:this.props.routeContext},R.createElement(cm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function N4(e){let{routeContext:t,match:n,children:r}=e,i=R.useContext(ks);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(vr.Provider,{value:t},r)}function A4(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let f=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);f>=0||J(!1),l=l.slice(0,Math.min(l.length,f+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((f,c,p)=>{let v,E=!1,y=null,k=null;n&&(v=a&&c.route.id?a[c.route.id]:void 0,y=c.route.errorElement||M4,s&&(u<0&&p===0?(U4("route-fallback"),E=!0,k=null):u===p&&(E=!0,k=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,p+1)),h=()=>{let g;return v?g=y:E?g=k:c.route.Component?g=R.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=f,R.createElement(N4,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?R.createElement(D4,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var hm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hm||{}),Wa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Wa||{});function I4(e){let t=R.useContext(ks);return t||J(!1),t}function b4(e){let t=R.useContext(um);return t||J(!1),t}function F4(e){let t=R.useContext(vr);return t||J(!1),t}function pm(e){let t=F4(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function z4(){var e;let t=R.useContext(cm),n=b4(Wa.UseRouteError),r=pm(Wa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function j4(){let{router:e}=I4(hm.UseNavigateStable),t=pm(Wa.UseNavigateStable),n=R.useRef(!1);return fm(()=>{n.current=!0}),R.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ba({fromRouteId:t},o)))},[e,t])}const zh={};function U4(e,t,n){zh[e]||(zh[e]=!0)}function $4(e){return _4(e.context)}function H4(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ie.Pop,navigator:o,static:l=!1,future:a}=e;pl()&&J(!1);let s=t.replace(/^\/*/,"/"),u=R.useMemo(()=>({basename:s,navigator:o,static:l,future:Ba({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=mr(r));let{pathname:f="/",search:c="",hash:p="",state:v=null,key:E="default"}=r,y=R.useMemo(()=>{let k=Yi(f,s);return k==null?null:{location:{pathname:k,search:c,hash:p,state:v,key:E},navigationType:i}},[s,f,c,p,v,E,i]);return y==null?null:R.createElement(qr.Provider,{value:u},R.createElement(Uf.Provider,{children:n,value:y}))}new Promise(()=>{});function B4(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:R.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:R.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:R.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.26.2 * * Copyright (c) Remix Software Inc. @@ -73,7 +73,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function V4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q4(e,t){return e.button===0&&(!t||t==="_self")&&!V4(e)}function cc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function q4(e,t){let n=cc(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const K4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],G4="6";try{window.__reactRouterVersion=G4}catch{}function Y4(e,t){return n4({basename:void 0,future:Xo({},void 0,{v7_prependBasename:!0}),history:P2({window:void 0}),hydrationData:Z4(),routes:e,mapRouteProperties:B4,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Z4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Xo({},t,{errors:X4(t.errors)})),t}function X4(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Ha(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const J4=R.createContext({isTransitioning:!1}),e3=R.createContext(new Map),t3="startTransition",jh=fu[t3],n3="flushSync",Uh=k2[n3];function r3(e){jh?jh(e):e()}function co(e){Uh?Uh(e):e()}class i3{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function o3(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=R.useState(n.state),[l,a]=R.useState(),[s,u]=R.useState({isTransitioning:!1}),[f,c]=R.useState(),[p,v]=R.useState(),[E,g]=R.useState(),k=R.useRef(new Map),{v7_startTransition:m}=r||{},h=R.useCallback(w=>{m?r3(w):w()},[m]),y=R.useCallback((w,N)=>{let{deletedFetchers:A,unstable_flushSync:q,unstable_viewTransitionOpts:oe}=N;A.forEach(Re=>k.current.delete(Re)),w.fetchers.forEach((Re,tn)=>{Re.data!==void 0&&k.current.set(tn,Re.data)});let Ne=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!oe||Ne){q?co(()=>o(w)):h(()=>o(w));return}if(q){co(()=>{p&&(f&&f.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})});let Re=n.window.document.startViewTransition(()=>{co(()=>o(w))});Re.finished.finally(()=>{co(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})})}),co(()=>v(Re));return}p?(f&&f.resolve(),p.skipTransition(),g({state:w,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})):(a(w),u({isTransitioning:!0,flushSync:!1,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation}))},[n.window,p,f,k,h]);R.useLayoutEffect(()=>n.subscribe(y),[n,y]),R.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new i3)},[s]),R.useEffect(()=>{if(f&&l&&n.window){let w=l,N=f.promise,A=n.window.document.startViewTransition(async()=>{h(()=>o(w)),await N});A.finished.finally(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})}),v(A)}},[h,l,f,n.window]),R.useEffect(()=>{f&&l&&i.location.key===l.location.key&&f.resolve()},[f,p,i.location,l]),R.useEffect(()=>{!s.isTransitioning&&E&&(a(E.state),u({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),g(void 0))},[s.isTransitioning,E]),R.useEffect(()=>{},[]);let T=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,N,A)=>n.navigate(w,{state:N,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,N,A)=>n.navigate(w,{replace:!0,state:N,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),_=n.basename||"/",M=R.useMemo(()=>({router:n,navigator:T,static:!1,basename:_}),[n,T,_]),O=R.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return R.createElement(R.Fragment,null,R.createElement(ks.Provider,{value:M},R.createElement(um.Provider,{value:i},R.createElement(e3.Provider,{value:k.current},R.createElement(J4.Provider,{value:s},R.createElement(H4,{basename:_,location:i.location,navigationType:i.historyAction,navigator:T,future:O},i.initialized||n.future.v7_partialHydration?R.createElement(l3,{routes:n.routes,future:n.future,state:i}):t))))),null)}const l3=R.memo(a3);function a3(e){let{routes:t,future:n,state:r}=e;return O4(t,void 0,r,n)}const s3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,p=W4(t,K4),{basename:v}=R.useContext(qr),E,g=!1;if(typeof u=="string"&&u3.test(u)&&(E=u,s3))try{let y=new URL(window.location.href),T=u.startsWith("//")?new URL(y.protocol+u):new URL(u),_=Yi(T.pathname,v);T.origin===y.origin&&_!=null?u=_+T.search+T.hash:g=!0}catch{}let k=k4(u,{relative:i}),m=c3(u,{replace:l,state:a,target:s,preventScrollReset:f,relative:i,unstable_viewTransition:c});function h(y){r&&r(y),y.defaultPrevented||m(y)}return R.createElement("a",Xo({},p,{href:E||k,onClick:g||o?r:h,ref:n,target:s}))});var $h;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($h||($h={}));var Hh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hh||(Hh={}));function c3(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,s=Ps(),u=yr(),f=dm(e,{relative:l});return R.useCallback(c=>{if(Q4(c,n)){c.preventDefault();let p=r!==void 0?r:Br(u)===Br(f);s(e,{replace:p,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[u,s,f,r,i,n,e,o,l,a])}function mm(e){let t=R.useRef(cc(e)),n=R.useRef(!1),r=yr(),i=R.useMemo(()=>q4(r.search,n.current?null:t.current),[r.search]),o=Ps(),l=R.useCallback((a,s)=>{const u=cc(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,s)},[o,i]);return[i,l]}var f3=$c(function(e,t){var n=e.styles,r=Uc([n],void 0,R.useContext(Hc)),i=R.useRef();return vd(function(){var o=t.key+"-global",l=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,s=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),s!==null&&(a=!0,s.setAttribute("data-emotion",o),l.hydrate([s])),i.current=[l,a],function(){l.flush()}},[t]),vd(function(){var o=i.current,l=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&jc(t,r.next,!0),l.tags.length){var s=l.tags[l.tags.length-1].nextElementSibling;l.before=s,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function H(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function V4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q4(e,t){return e.button===0&&(!t||t==="_self")&&!V4(e)}function cc(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function q4(e,t){let n=cc(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const K4=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],G4="6";try{window.__reactRouterVersion=G4}catch{}function Y4(e,t){return n4({basename:void 0,future:Xo({},void 0,{v7_prependBasename:!0}),history:P2({window:void 0}),hydrationData:Z4(),routes:e,mapRouteProperties:B4,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Z4(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Xo({},t,{errors:X4(t.errors)})),t}function X4(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Ha(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let l=new o(i.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const J4=R.createContext({isTransitioning:!1}),e3=R.createContext(new Map),t3="startTransition",jh=fu[t3],n3="flushSync",Uh=k2[n3];function r3(e){jh?jh(e):e()}function co(e){Uh?Uh(e):e()}class i3{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function o3(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=R.useState(n.state),[l,a]=R.useState(),[s,u]=R.useState({isTransitioning:!1}),[f,c]=R.useState(),[p,v]=R.useState(),[E,y]=R.useState(),k=R.useRef(new Map),{v7_startTransition:m}=r||{},h=R.useCallback(w=>{m?r3(w):w()},[m]),g=R.useCallback((w,N)=>{let{deletedFetchers:A,unstable_flushSync:q,unstable_viewTransitionOpts:oe}=N;A.forEach(Re=>k.current.delete(Re)),w.fetchers.forEach((Re,tn)=>{Re.data!==void 0&&k.current.set(tn,Re.data)});let Ne=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!oe||Ne){q?co(()=>o(w)):h(()=>o(w));return}if(q){co(()=>{p&&(f&&f.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})});let Re=n.window.document.startViewTransition(()=>{co(()=>o(w))});Re.finished.finally(()=>{co(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})})}),co(()=>v(Re));return}p?(f&&f.resolve(),p.skipTransition(),y({state:w,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})):(a(w),u({isTransitioning:!0,flushSync:!1,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation}))},[n.window,p,f,k,h]);R.useLayoutEffect(()=>n.subscribe(g),[n,g]),R.useEffect(()=>{s.isTransitioning&&!s.flushSync&&c(new i3)},[s]),R.useEffect(()=>{if(f&&l&&n.window){let w=l,N=f.promise,A=n.window.document.startViewTransition(async()=>{h(()=>o(w)),await N});A.finished.finally(()=>{c(void 0),v(void 0),a(void 0),u({isTransitioning:!1})}),v(A)}},[h,l,f,n.window]),R.useEffect(()=>{f&&l&&i.location.key===l.location.key&&f.resolve()},[f,p,i.location,l]),R.useEffect(()=>{!s.isTransitioning&&E&&(a(E.state),u({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),y(void 0))},[s.isTransitioning,E]),R.useEffect(()=>{},[]);let T=R.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,N,A)=>n.navigate(w,{state:N,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,N,A)=>n.navigate(w,{replace:!0,state:N,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),_=n.basename||"/",M=R.useMemo(()=>({router:n,navigator:T,static:!1,basename:_}),[n,T,_]),O=R.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return R.createElement(R.Fragment,null,R.createElement(ks.Provider,{value:M},R.createElement(um.Provider,{value:i},R.createElement(e3.Provider,{value:k.current},R.createElement(J4.Provider,{value:s},R.createElement(H4,{basename:_,location:i.location,navigationType:i.historyAction,navigator:T,future:O},i.initialized||n.future.v7_partialHydration?R.createElement(l3,{routes:n.routes,future:n.future,state:i}):t))))),null)}const l3=R.memo(a3);function a3(e){let{routes:t,future:n,state:r}=e;return O4(t,void 0,r,n)}const s3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",u3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=R.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:f,unstable_viewTransition:c}=t,p=W4(t,K4),{basename:v}=R.useContext(qr),E,y=!1;if(typeof u=="string"&&u3.test(u)&&(E=u,s3))try{let g=new URL(window.location.href),T=u.startsWith("//")?new URL(g.protocol+u):new URL(u),_=Yi(T.pathname,v);T.origin===g.origin&&_!=null?u=_+T.search+T.hash:y=!0}catch{}let k=k4(u,{relative:i}),m=c3(u,{replace:l,state:a,target:s,preventScrollReset:f,relative:i,unstable_viewTransition:c});function h(g){r&&r(g),g.defaultPrevented||m(g)}return R.createElement("a",Xo({},p,{href:E||k,onClick:y||o?r:h,ref:n,target:s}))});var $h;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($h||($h={}));var Hh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hh||(Hh={}));function c3(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,s=Ps(),u=gr(),f=dm(e,{relative:l});return R.useCallback(c=>{if(Q4(c,n)){c.preventDefault();let p=r!==void 0?r:Br(u)===Br(f);s(e,{replace:p,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[u,s,f,r,i,n,e,o,l,a])}function mm(e){let t=R.useRef(cc(e)),n=R.useRef(!1),r=gr(),i=R.useMemo(()=>q4(r.search,n.current?null:t.current),[r.search]),o=Ps(),l=R.useCallback((a,s)=>{const u=cc(typeof a=="function"?a(i):a);n.current=!0,o("?"+u,s)},[o,i]);return[i,l]}var f3=$c(function(e,t){var n=e.styles,r=Uc([n],void 0,R.useContext(Hc)),i=R.useRef();return vd(function(){var o=t.key+"-global",l=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,s=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),s!==null&&(a=!0,s.setAttribute("data-emotion",o),l.hydrate([s])),i.current=[l,a],function(){l.flush()}},[t]),vd(function(){var o=i.current,l=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&jc(t,r.next,!0),l.tags.length){var s=l.tags[l.tags.length-1].nextElementSibling;l.before=s,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function H(){for(var e=arguments.length,t=new Array(e),n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y3=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},fc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Z3=function(t){var n=xi(t,Z.TITLE),r=xi(t,Jo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=xi(t,Jo.DEFAULT_TITLE);return n||i||void 0},X3=function(t){return xi(t,Jo.ON_CHANGE_CLIENT_STATE)||function(){}},su=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return pt({},r,i)},{})},J3=function(t,n){return n.filter(function(r){return typeof r[Z.BASE]<"u"}).map(function(r){return r[Z.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var o=Object.keys(i),l=0;l=0;r--){var i=t[r];if(i.hasOwnProperty(n))return i[n]}return null},e5=function(t){return{baseTag:J3([xe.HREF,xe.TARGET],t),bodyAttributes:su(br.BODY,t),defer:xi(t,Jo.DEFER),encode:xi(t,Jo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:su(br.HTML,t),linkTags:fo(Z.LINK,[xe.REL,xe.HREF],t),metaTags:fo(Z.META,[xe.NAME,xe.CHARSET,xe.HTTPEQUIV,xe.PROPERTY,xe.ITEM_PROP],t),noscriptTags:fo(Z.NOSCRIPT,[xe.INNER_HTML],t),onChangeClientState:X3(t),scriptTags:fo(Z.SCRIPT,[xe.SRC,xe.INNER_HTML],t),styleTags:fo(Z.STYLE,[xe.CSS_TEXT],t),title:Z3(t),titleAttributes:su(br.TITLE,t)}},dc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){dc(t)},0)}}(),Qh=function(t){return clearTimeout(t)},t5=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||dc:global.requestAnimationFrame||dc,n5=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Qh:global.cancelAnimationFrame||Qh,r5=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ho=null,i5=function(t){ho&&n5(ho),t.defer?ho=t5(function(){qh(t,function(){ho=null})}):(qh(t),ho=null)},qh=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,p=t.title,v=t.titleAttributes;hc(Z.BODY,i),hc(Z.HTML,o),o5(p,v);var E={baseTag:Xr(Z.BASE,r),linkTags:Xr(Z.LINK,l),metaTags:Xr(Z.META,a),noscriptTags:Xr(Z.NOSCRIPT,s),scriptTags:Xr(Z.SCRIPT,f),styleTags:Xr(Z.STYLE,c)},g={},k={};Object.keys(E).forEach(function(m){var h=E[m],y=h.newTags,T=h.oldTags;y.length&&(g[m]=y),T.length&&(k[m]=E[m].oldTags)}),n&&n(),u(t,g,k)},Cm=function(t){return Array.isArray(t)?t.join(""):t},o5=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Cm(t)),hc(Z.TITLE,n)},hc=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(Zt),o=i?i.split(","):[],l=[].concat(o),a=Object.keys(n),s=0;s=0;p--)r.removeAttribute(l[p]);o.length===l.length?r.removeAttribute(Zt):r.getAttribute(Zt)!==a.join(",")&&r.setAttribute(Zt,a.join(","))}},Xr=function(t,n){var r=document.head||document.querySelector(Z.HEAD),i=r.querySelectorAll(t+"["+Zt+"]"),o=Array.prototype.slice.call(i),l=[],a=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===xe.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===xe.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Zt,"true"),o.some(function(p,v){return a=v,u.isEqualNode(p)})?o.splice(a,1):l.push(u)}),o.forEach(function(s){return s.parentNode.removeChild(s)}),l.forEach(function(s){return r.appendChild(s)}),{oldTags:o,newTags:l}},Tm=function(t){return Object.keys(t).reduce(function(n,r){var i=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+i:i},"")},l5=function(t,n,r,i){var o=Tm(r),l=Cm(n);return o?"<"+t+" "+Zt+'="true" '+o+">"+fc(l,i)+"":"<"+t+" "+Zt+'="true">'+fc(l,i)+""},a5=function(t,n,r){return n.reduce(function(i,o){var l=Object.keys(o).filter(function(u){return!(u===xe.INNER_HTML||u===xe.CSS_TEXT)}).reduce(function(u,f){var c=typeof o[f]>"u"?f:f+'="'+fc(o[f],r)+'"';return u?u+" "+c:c},""),a=o.innerHTML||o.cssText||"",s=V3.indexOf(t)===-1;return i+"<"+t+" "+Zt+'="true" '+l+(s?"/>":">"+a+"")},"")},km=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Va[i]||i]=t[i],r},n)},s5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[W3[i]||i]=t[i],r},n)},u5=function(t,n,r){var i,o=(i={key:n},i[Zt]=!0,i),l=km(r,o);return[hi.createElement(Z.TITLE,l,n)]},c5=function(t,n){return n.map(function(r,i){var o,l=(o={key:i},o[Zt]=!0,o);return Object.keys(r).forEach(function(a){var s=Va[a]||a;if(s===xe.INNER_HTML||s===xe.CSS_TEXT){var u=r.innerHTML||r.cssText;l.dangerouslySetInnerHTML={__html:u}}else l[s]=r[a]}),hi.createElement(t,l)})},En=function(t,n,r){switch(t){case Z.TITLE:return{toComponent:function(){return u5(t,n.title,n.titleAttributes)},toString:function(){return l5(t,n.title,n.titleAttributes,r)}};case br.BODY:case br.HTML:return{toComponent:function(){return km(n)},toString:function(){return Tm(n)}};default:return{toComponent:function(){return c5(t,n)},toString:function(){return a5(t,n,r)}}}},Pm=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,p=c===void 0?"":c,v=t.titleAttributes;return{base:En(Z.BASE,n,i),bodyAttributes:En(br.BODY,r,i),htmlAttributes:En(br.HTML,o,i),link:En(Z.LINK,l,i),meta:En(Z.META,a,i),noscript:En(Z.NOSCRIPT,s,i),script:En(Z.SCRIPT,u,i),style:En(Z.STYLE,f,i),title:En(Z.TITLE,{title:p,titleAttributes:v},i)}},f5=function(t){var n,r;return r=n=function(i){G3(o,i);function o(){return q3(this,o),Y3(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!b3(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,s){if(!s)return null;switch(a.type){case Z.SCRIPT:case Z.NOSCRIPT:return{innerHTML:s};case Z.STYLE:return{cssText:s}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(a){var s,u=a.child,f=a.arrayTypeChildren,c=a.newChildProps,p=a.nestedChildren;return pt({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[pt({},c,this.mapNestedChildrenToProps(u,p))]),s))},o.prototype.mapObjectTypeChildren=function(a){var s,u,f=a.child,c=a.newProps,p=a.newChildProps,v=a.nestedChildren;switch(f.type){case Z.TITLE:return pt({},c,(s={},s[f.type]=v,s.titleAttributes=pt({},p),s));case Z.BODY:return pt({},c,{bodyAttributes:pt({},p)});case Z.HTML:return pt({},c,{htmlAttributes:pt({},p)})}return pt({},c,(u={},u[f.type]=pt({},p),u))},o.prototype.mapArrayTypeChildrenToProps=function(a,s){var u=pt({},s);return Object.keys(a).forEach(function(f){var c;u=pt({},u,(c={},c[f]=a[f],c))}),u},o.prototype.warnOnInvalidChildren=function(a,s){return!0},o.prototype.mapChildrenToProps=function(a,s){var u=this,f={};return hi.Children.forEach(a,function(c){if(!(!c||!c.props)){var p=c.props,v=p.children,E=Vh(p,["children"]),g=s5(E);switch(u.warnOnInvalidChildren(c,v),c.type){case Z.LINK:case Z.META:case Z.NOSCRIPT:case Z.SCRIPT:case Z.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:g,nestedChildren:v});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:g,nestedChildren:v});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},o.prototype.render=function(){var a=this.props,s=a.children,u=Vh(a,["children"]),f=pt({},u);return s&&(f=this.mapChildrenToProps(s,f)),hi.createElement(t,f)},K3(o,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),o}(hi.Component),n.propTypes={base:Se.object,bodyAttributes:Se.object,children:Se.oneOfType([Se.arrayOf(Se.node),Se.node]),defaultTitle:Se.string,defer:Se.bool,encodeSpecialCharacters:Se.bool,htmlAttributes:Se.object,link:Se.arrayOf(Se.object),meta:Se.arrayOf(Se.object),noscript:Se.arrayOf(Se.object),onChangeClientState:Se.func,script:Se.arrayOf(Se.object),style:Se.arrayOf(Se.object),title:Se.string,titleAttributes:Se.object,titleTemplate:Se.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=Pm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},d5=function(){return null},h5=M3(e5,i5,Pm)(d5),el=f5(h5);el.renderStatic=el.rewind;function vl(){const e=R.useRef(null),t=yr();return R.useEffect(()=>{var n;(n=e.current)==null||n.classList.remove("transitioned")},[]),R.useEffect(()=>{setTimeout(()=>{var n;(n=e.current)==null||n.classList.add("transitioned")},50)},[t]),{ref:e}}const p5=H` +*/var Wh=Object.getOwnPropertySymbols,z3=Object.prototype.hasOwnProperty,j3=Object.prototype.propertyIsEnumerable;function U3(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function $3(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var H3=$3()?Object.assign:function(e,t){for(var n,r=U3(e),i,o=1;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Y3=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},fc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},Z3=function(t){var n=xi(t,Z.TITLE),r=xi(t,Jo.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=xi(t,Jo.DEFAULT_TITLE);return n||i||void 0},X3=function(t){return xi(t,Jo.ON_CHANGE_CLIENT_STATE)||function(){}},su=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return pt({},r,i)},{})},J3=function(t,n){return n.filter(function(r){return typeof r[Z.BASE]<"u"}).map(function(r){return r[Z.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var o=Object.keys(i),l=0;l=0;r--){var i=t[r];if(i.hasOwnProperty(n))return i[n]}return null},e5=function(t){return{baseTag:J3([xe.HREF,xe.TARGET],t),bodyAttributes:su(Fr.BODY,t),defer:xi(t,Jo.DEFER),encode:xi(t,Jo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:su(Fr.HTML,t),linkTags:fo(Z.LINK,[xe.REL,xe.HREF],t),metaTags:fo(Z.META,[xe.NAME,xe.CHARSET,xe.HTTPEQUIV,xe.PROPERTY,xe.ITEM_PROP],t),noscriptTags:fo(Z.NOSCRIPT,[xe.INNER_HTML],t),onChangeClientState:X3(t),scriptTags:fo(Z.SCRIPT,[xe.SRC,xe.INNER_HTML],t),styleTags:fo(Z.STYLE,[xe.CSS_TEXT],t),title:Z3(t),titleAttributes:su(Fr.TITLE,t)}},dc=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){dc(t)},0)}}(),Qh=function(t){return clearTimeout(t)},t5=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||dc:global.requestAnimationFrame||dc,n5=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Qh:global.cancelAnimationFrame||Qh,r5=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},ho=null,i5=function(t){ho&&n5(ho),t.defer?ho=t5(function(){qh(t,function(){ho=null})}):(qh(t),ho=null)},qh=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,p=t.title,v=t.titleAttributes;hc(Z.BODY,i),hc(Z.HTML,o),o5(p,v);var E={baseTag:Xr(Z.BASE,r),linkTags:Xr(Z.LINK,l),metaTags:Xr(Z.META,a),noscriptTags:Xr(Z.NOSCRIPT,s),scriptTags:Xr(Z.SCRIPT,f),styleTags:Xr(Z.STYLE,c)},y={},k={};Object.keys(E).forEach(function(m){var h=E[m],g=h.newTags,T=h.oldTags;g.length&&(y[m]=g),T.length&&(k[m]=E[m].oldTags)}),n&&n(),u(t,y,k)},Cm=function(t){return Array.isArray(t)?t.join(""):t},o5=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Cm(t)),hc(Z.TITLE,n)},hc=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(Zt),o=i?i.split(","):[],l=[].concat(o),a=Object.keys(n),s=0;s=0;p--)r.removeAttribute(l[p]);o.length===l.length?r.removeAttribute(Zt):r.getAttribute(Zt)!==a.join(",")&&r.setAttribute(Zt,a.join(","))}},Xr=function(t,n){var r=document.head||document.querySelector(Z.HEAD),i=r.querySelectorAll(t+"["+Zt+"]"),o=Array.prototype.slice.call(i),l=[],a=void 0;return n&&n.length&&n.forEach(function(s){var u=document.createElement(t);for(var f in s)if(s.hasOwnProperty(f))if(f===xe.INNER_HTML)u.innerHTML=s.innerHTML;else if(f===xe.CSS_TEXT)u.styleSheet?u.styleSheet.cssText=s.cssText:u.appendChild(document.createTextNode(s.cssText));else{var c=typeof s[f]>"u"?"":s[f];u.setAttribute(f,c)}u.setAttribute(Zt,"true"),o.some(function(p,v){return a=v,u.isEqualNode(p)})?o.splice(a,1):l.push(u)}),o.forEach(function(s){return s.parentNode.removeChild(s)}),l.forEach(function(s){return r.appendChild(s)}),{oldTags:o,newTags:l}},Tm=function(t){return Object.keys(t).reduce(function(n,r){var i=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+i:i},"")},l5=function(t,n,r,i){var o=Tm(r),l=Cm(n);return o?"<"+t+" "+Zt+'="true" '+o+">"+fc(l,i)+"":"<"+t+" "+Zt+'="true">'+fc(l,i)+""},a5=function(t,n,r){return n.reduce(function(i,o){var l=Object.keys(o).filter(function(u){return!(u===xe.INNER_HTML||u===xe.CSS_TEXT)}).reduce(function(u,f){var c=typeof o[f]>"u"?f:f+'="'+fc(o[f],r)+'"';return u?u+" "+c:c},""),a=o.innerHTML||o.cssText||"",s=V3.indexOf(t)===-1;return i+"<"+t+" "+Zt+'="true" '+l+(s?"/>":">"+a+"")},"")},km=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Va[i]||i]=t[i],r},n)},s5=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[W3[i]||i]=t[i],r},n)},u5=function(t,n,r){var i,o=(i={key:n},i[Zt]=!0,i),l=km(r,o);return[hi.createElement(Z.TITLE,l,n)]},c5=function(t,n){return n.map(function(r,i){var o,l=(o={key:i},o[Zt]=!0,o);return Object.keys(r).forEach(function(a){var s=Va[a]||a;if(s===xe.INNER_HTML||s===xe.CSS_TEXT){var u=r.innerHTML||r.cssText;l.dangerouslySetInnerHTML={__html:u}}else l[s]=r[a]}),hi.createElement(t,l)})},En=function(t,n,r){switch(t){case Z.TITLE:return{toComponent:function(){return u5(t,n.title,n.titleAttributes)},toString:function(){return l5(t,n.title,n.titleAttributes,r)}};case Fr.BODY:case Fr.HTML:return{toComponent:function(){return km(n)},toString:function(){return Tm(n)}};default:return{toComponent:function(){return c5(t,n)},toString:function(){return a5(t,n,r)}}}},Pm=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,s=t.noscriptTags,u=t.scriptTags,f=t.styleTags,c=t.title,p=c===void 0?"":c,v=t.titleAttributes;return{base:En(Z.BASE,n,i),bodyAttributes:En(Fr.BODY,r,i),htmlAttributes:En(Fr.HTML,o,i),link:En(Z.LINK,l,i),meta:En(Z.META,a,i),noscript:En(Z.NOSCRIPT,s,i),script:En(Z.SCRIPT,u,i),style:En(Z.STYLE,f,i),title:En(Z.TITLE,{title:p,titleAttributes:v},i)}},f5=function(t){var n,r;return r=n=function(i){G3(o,i);function o(){return q3(this,o),Y3(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!F3(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,s){if(!s)return null;switch(a.type){case Z.SCRIPT:case Z.NOSCRIPT:return{innerHTML:s};case Z.STYLE:return{cssText:s}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(a){var s,u=a.child,f=a.arrayTypeChildren,c=a.newChildProps,p=a.nestedChildren;return pt({},f,(s={},s[u.type]=[].concat(f[u.type]||[],[pt({},c,this.mapNestedChildrenToProps(u,p))]),s))},o.prototype.mapObjectTypeChildren=function(a){var s,u,f=a.child,c=a.newProps,p=a.newChildProps,v=a.nestedChildren;switch(f.type){case Z.TITLE:return pt({},c,(s={},s[f.type]=v,s.titleAttributes=pt({},p),s));case Z.BODY:return pt({},c,{bodyAttributes:pt({},p)});case Z.HTML:return pt({},c,{htmlAttributes:pt({},p)})}return pt({},c,(u={},u[f.type]=pt({},p),u))},o.prototype.mapArrayTypeChildrenToProps=function(a,s){var u=pt({},s);return Object.keys(a).forEach(function(f){var c;u=pt({},u,(c={},c[f]=a[f],c))}),u},o.prototype.warnOnInvalidChildren=function(a,s){return!0},o.prototype.mapChildrenToProps=function(a,s){var u=this,f={};return hi.Children.forEach(a,function(c){if(!(!c||!c.props)){var p=c.props,v=p.children,E=Vh(p,["children"]),y=s5(E);switch(u.warnOnInvalidChildren(c,v),c.type){case Z.LINK:case Z.META:case Z.NOSCRIPT:case Z.SCRIPT:case Z.STYLE:f=u.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:y,nestedChildren:v});break;default:s=u.mapObjectTypeChildren({child:c,newProps:s,newChildProps:y,nestedChildren:v});break}}}),s=this.mapArrayTypeChildrenToProps(f,s),s},o.prototype.render=function(){var a=this.props,s=a.children,u=Vh(a,["children"]),f=pt({},u);return s&&(f=this.mapChildrenToProps(s,f)),hi.createElement(t,f)},K3(o,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),o}(hi.Component),n.propTypes={base:Se.object,bodyAttributes:Se.object,children:Se.oneOfType([Se.arrayOf(Se.node),Se.node]),defaultTitle:Se.string,defer:Se.bool,encodeSpecialCharacters:Se.bool,htmlAttributes:Se.object,link:Se.arrayOf(Se.object),meta:Se.arrayOf(Se.object),noscript:Se.arrayOf(Se.object),onChangeClientState:Se.func,script:Se.arrayOf(Se.object),style:Se.arrayOf(Se.object),title:Se.string,titleAttributes:Se.object,titleTemplate:Se.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=Pm({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},d5=function(){return null},h5=M3(e5,i5,Pm)(d5),el=f5(h5);el.renderStatic=el.rewind;function vl(){const e=R.useRef(null),t=gr();return R.useEffect(()=>{var n;(n=e.current)==null||n.classList.remove("transitioned")},[]),R.useEffect(()=>{setTimeout(()=>{var n;(n=e.current)==null||n.classList.add("transitioned")},50)},[t]),{ref:e}}const p5=H` ${ml} ${Rs} display: flex; @@ -205,10 +205,10 @@ object-assign padding-inline-start: 8px; `,Gl=H` margin-block-start: 0; -`;function y5(){const{ref:e}=vl(),t=`Experienced software developer with a decade of expertise in building +`;function g5(){const{ref:e}=vl(),t=`Experienced software developer with a decade of expertise in building web applications, specializing in front-end development. Passionate about modernizing legacy code and collaborating with UX teams to - design new innovative features.`;return F("div",{css:p5,ref:e,children:[F(el,{children:[d("meta",{name:"description",content:t}),d("title",{children:"Joseph D. Phelan"})]}),d("h1",{css:w3,children:"Home page for Joseph Phelan"}),F("div",{css:m5,children:[d(m3,{}),d("p",{css:v5,children:t})]}),d(g3,{}),d("h3",{children:"Work"}),d("p",{css:Kh,children:"Acquia"}),d("p",{css:Kl,children:"Staff software engineer (2024 - current)"}),F("ul",{css:Gl,children:[d("li",{children:"Maintain cross team component library and documentation"}),d("li",{children:"Code with a focus of maintainability, A11y standards, and e2e testing"}),d("li",{children:"Conduct one-on-one coding sessions and demos to teach and support other developers"}),d("li",{children:"Ensure applications are up to date on dependencies and assist/troubleshoot any blockers"}),d("li",{children:"Collaborate with UX designers to iron out designs and patterns"}),d("li",{children:"Provide constructive feedback and recommendations in pull requests, contributing to the overall code quality and maintainability"}),d("li",{children:"Vet usage of new libraries to ensure they meet the company standards"})]}),d("p",{css:Kl,children:"Senior software engineer (2022 - 2024)"}),F("ul",{css:Gl,children:[d("li",{children:"Develop cross application component library"}),d("li",{children:"Create smart components (micro frontend w/module federation) for use throughout product teams"}),d("li",{children:"Support maintain and document software functionality"}),d("li",{children:"Communicate new releases and features to product development teams"})]}),d("p",{css:Kl,children:"Business Systems Software Developer III (2019 - 2022)"}),F("ul",{css:Gl,children:[d("li",{children:"Support a java/react web application and add new features as needed"}),d("li",{children:"Design, develop and test business solutions primarily on the Salesforce platform using apex, visualforce, lightning web components, flows, and process builders"}),d("li",{children:"Communicate with team members and colleagues to gather user requirements and keep up to date with integration changes"}),d("li",{children:"Make changes on hubspot website, including custom hubl components and ADA compliance"})]}),d("p",{css:Kh,children:"Nelnet (formerly Great Lakes Higher Education)"}),d("p",{css:Kl,children:"Senior software engineer (2012 - 2019)"}),F("ul",{css:Gl,children:[d("li",{children:"Responsible for performing analysis, designing, coding, testing, and implementation of accurate and efficient web applications"}),d("li",{children:"Experience working on large projects over the span of many years"}),d("li",{children:"Handle large release efforts that require communication with multiple departments and teams"}),d("li",{children:"Train new developers in applications and best practices"}),d("li",{children:"Engage in peer programming and work together to solve problems, this includes code reviews on all code that goes into production"})]})]})}const g5="/assets/family-C2zfP4Fb.jpg",w5=H` + design new innovative features.`;return b("div",{css:p5,ref:e,children:[b(el,{children:[d("meta",{name:"description",content:t}),d("title",{children:"Joseph D. Phelan"})]}),d("h1",{css:w3,children:"Home page for Joseph Phelan"}),b("div",{css:m5,children:[d(m3,{}),d("p",{css:v5,children:t})]}),d(y3,{}),d("h3",{children:"Work"}),d("p",{css:Kh,children:"Acquia"}),d("p",{css:Kl,children:"Staff software engineer (2024 - current)"}),b("ul",{css:Gl,children:[d("li",{children:"Maintain cross team component library and documentation"}),d("li",{children:"Code with a focus of maintainability, A11y standards, and e2e testing"}),d("li",{children:"Conduct one-on-one coding sessions and demos to teach and support other developers"}),d("li",{children:"Ensure applications are up to date on dependencies and assist/troubleshoot any blockers"}),d("li",{children:"Collaborate with UX designers to iron out designs and patterns"}),d("li",{children:"Provide constructive feedback and recommendations in pull requests, contributing to the overall code quality and maintainability"}),d("li",{children:"Vet usage of new libraries to ensure they meet the company standards"})]}),d("p",{css:Kl,children:"Senior software engineer (2022 - 2024)"}),b("ul",{css:Gl,children:[d("li",{children:"Develop cross application component library"}),d("li",{children:"Create smart components (micro frontend w/module federation) for use throughout product teams"}),d("li",{children:"Support maintain and document software functionality"}),d("li",{children:"Communicate new releases and features to product development teams"})]}),d("p",{css:Kl,children:"Business Systems Software Developer III (2019 - 2022)"}),b("ul",{css:Gl,children:[d("li",{children:"Support a java/react web application and add new features as needed"}),d("li",{children:"Design, develop and test business solutions primarily on the Salesforce platform using apex, visualforce, lightning web components, flows, and process builders"}),d("li",{children:"Communicate with team members and colleagues to gather user requirements and keep up to date with integration changes"}),d("li",{children:"Make changes on hubspot website, including custom hubl components and ADA compliance"})]}),d("p",{css:Kh,children:"Nelnet (formerly Great Lakes Higher Education)"}),d("p",{css:Kl,children:"Senior software engineer (2012 - 2019)"}),b("ul",{css:Gl,children:[d("li",{children:"Responsible for performing analysis, designing, coding, testing, and implementation of accurate and efficient web applications"}),d("li",{children:"Experience working on large projects over the span of many years"}),d("li",{children:"Handle large release efforts that require communication with multiple departments and teams"}),d("li",{children:"Train new developers in applications and best practices"}),d("li",{children:"Engage in peer programming and work together to solve problems, this includes code reviews on all code that goes into production"})]})]})}const y5="/assets/family-C2zfP4Fb.jpg",w5=H` width: 100%; display: block; height: auto; @@ -234,7 +234,7 @@ object-assign p:first-child { margin-top: 0; } -`;function C5(){const{ref:e}=vl();return F("div",{css:S5,ref:e,children:[F(el,{children:[d("meta",{name:"description",content:"Learn about me and how I got started on my path to becoming a software engineer."}),d("title",{children:"About - Joseph D. Phelan"})]}),F("div",{css:E5,children:[d("h1",{children:"About"}),d("p",{children:"From my humble beginnings working on my fathers farm I learned the value of hard work. After spending time with our family DOS computer, I developed an interest in all things technology. This led to me attending the University of Wisconsin Milwaukee in pursuit of a bachelors degree in computer science. Once acquired I moved to Madison WI and began my professional career."}),F("p",{children:["Today I work as a staff software engineer at"," ",d("a",{href:"https://www.acquia.com/products/acquia-dam",children:"Acquia"})," ","specializing in front end. I have a wonderful wife and 2 boys that I enjoy spending as much time with as possible. When I'm not working I enjoy biking, listening to podcasts and audio books, playing video games, reading books, fishing, and gardening."]}),d("p",{children:"Going forward I want to continue making a difference on teams. Improving aging codebases, building out new features, and making other developers' lives easier. Above all I want to raise good kids that go on to make a difference in this world."})]}),d("div",{css:x5,children:d("img",{loading:"lazy",src:g5,css:w5,alt:"Picture of my family"})})]})}function T5({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:e,width:"24",height:"24",viewBox:"0 0 24 24","aria-label":"light icon, click to toggle page theme",children:d("path",{d:"M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm4.95 5.636l1.414 1.414-2.195 2.195c-.372-.562-.853-1.042-1.414-1.414l2.195-2.195zm-5.95-1.636h2v3.101c-.323-.066-.657-.101-1-.101s-.677.035-1 .101v-3.101zm-3.95 1.636l2.195 2.195c-.561.372-1.042.853-1.414 1.415l-2.195-2.196 1.414-1.414zm-3.05 5.364h3.101c-.066.323-.101.657-.101 1s.035.677.101 1h-3.101v-2zm3.05 7.364l-1.414-1.414 2.195-2.195c.372.562.853 1.042 1.414 1.414l-2.195 2.195zm5.95 1.636h-2v-3.101c.323.066.657.101 1 .101s.677-.035 1-.101v3.101zm-1-5c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.95 3.364l-2.195-2.195c.562-.372 1.042-.853 1.414-1.414l2.195 2.195-1.414 1.414zm3.05-5.364h-3.101c.066-.323.101-.657.101-1s-.035-.677-.101-1h3.101v2z"})})}var k5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|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)-.*))$/,P5=Ac(function(e){return k5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),R5=!1,_5=/[A-Z]|^ms/g,O5=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rm=function(t){return t.charCodeAt(1)===45},Gh=function(t){return t!=null&&typeof t!="boolean"},uu=Ac(function(e){return Rm(e)?e:e.replace(_5,"-$&").toLowerCase()}),Yh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(O5,function(r,i,o){return fn={name:i,styles:o,next:fn},i})}return Vp[t]!==1&&!Rm(t)&&typeof n=="number"&&n!==0?n+"px":n},L5="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function tl(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return fn={name:i.name,styles:i.styles,next:fn},i.name;var o=n;if(o.styles!==void 0){var l=o.next;if(l!==void 0)for(;l!==void 0;)fn={name:l.name,styles:l.styles,next:fn},l=l.next;var a=o.styles+";";return a}return M5(e,t,n)}case"function":{if(e!==void 0){var s=fn,u=n(e);return fn=s,tl(e,t,u)}break}}var f=n;if(t==null)return f;var c=t[f];return c!==void 0?c:f}function M5(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?N5:A5},Jh=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},I5=!1,F5=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return zc(n,r,i),Kp(function(){return jc(n,r,i)}),null},b5=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,l;n!==void 0&&(o=n.label,l=n.target);var a=Jh(t,n,r),s=a||Xh(i),u=!s("as");return function(){var f=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var p=f.length,v=1;v96?N5:A5},Jh=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(l){return t.__emotion_forwardProp(l)&&o(l)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},I5=!1,b5=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return zc(n,r,i),Kp(function(){return jc(n,r,i)}),null},F5=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,l;n!==void 0&&(o=n.label,l=n.target);var a=Jh(t,n,r),s=a||Xh(i),u=!s("as");return function(){var f=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var p=f.length,v=1;v{gm()},css:{fontSize:"xxx-large"},"aria-label":"Toggle theme",title:"Toggle theme",children:"Toggle Theme"})})]})})}function $5({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:e,children:d("path",{d:"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"})})}function H5(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",children:d("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})})}const B5=H` +`;function Om(){const{pathname:e}=gr();return d("nav",{role:"navigation",children:b("ul",{css:j5,children:[d("li",{children:d(di,{to:"/",css:[Yl,e==="/"&&Zl],"aria-current":e==="/"?"page":void 0,children:"Home"})}),d("li",{children:d(di,{to:"/about",css:[Yl,e==="/about"&&Zl],"aria-current":e==="/about"?"page":void 0,children:"About"})}),d("li",{children:d(di,{to:"/tech",css:[Yl,e==="/tech"&&Zl],"aria-current":e==="/tech"?"page":void 0,children:"Tech"})}),d("li",{children:d(di,{to:"/news",css:[Yl,e==="/news"&&Zl],"aria-current":e==="/news"?"page":void 0,children:"News"})}),d("li",{css:U5,children:d(hn,{onClick:()=>{ym()},css:{fontSize:"xxx-large"},"aria-label":"Toggle theme",title:"Toggle theme",children:"Toggle Theme"})})]})})}function $5({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:e,children:d("path",{d:"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z"})})}function H5(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",children:d("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})})}const B5=H` display: none; `,W5=H` width: 100vw; @@ -300,7 +300,7 @@ object-assign top: 16px; right: 16px; font-size: xx-large; -`;function Q5(){const[e,t]=R.useState(!1),{pathname:n}=yr(),r=R.useRef(null);return R.useEffect(()=>{t(!1)},[n]),F(R.Fragment,{children:[d(hn,{"aria-expanded":e,"aria-controls":"menu",onClick:()=>{t(!e),setTimeout(()=>{var i;(i=r.current)==null||i.focus()},50)},"aria-label":"Open nav menu",children:d($5,{fill:"var(--fg-color)"})}),F("div",{id:"menu",role:"dialog",css:[W5,!e&&B5],onKeyDown:i=>{i.key==="Escape"&&t(!1)},children:[d(hn,{ref:r,onClick:()=>{t(!1)},"aria-label":"close nav menu",css:V5,children:d(H5,{})}),d(Om,{})]})]})}const q5=H` +`;function Q5(){const[e,t]=R.useState(!1),{pathname:n}=gr(),r=R.useRef(null);return R.useEffect(()=>{t(!1)},[n]),b(R.Fragment,{children:[d(hn,{"aria-expanded":e,"aria-controls":"menu",onClick:()=>{t(!e),setTimeout(()=>{var i;(i=r.current)==null||i.focus()},50)},"aria-label":"Open nav menu",children:d($5,{fill:"var(--fg-color)"})}),b("div",{id:"menu",role:"dialog",css:[W5,!e&&B5],onKeyDown:i=>{i.key==="Escape"&&t(!1)},children:[d(hn,{ref:r,onClick:()=>{t(!1)},"aria-label":"close nav menu",css:V5,children:d(H5,{})}),d(Om,{})]})]})}const q5=H` margin: 0; max-width: 320px; font-size: 1.2em; @@ -342,11 +342,11 @@ object-assign @media only screen and (max-width: ${Nt}) { display: block; } -`;function J5(){return F("header",{css:K5,children:[F("div",{css:Z5,children:[d(di,{to:"/",children:d("img",{src:vm,css:Y5,alt:"Picture of Joe Phelan",id:"joephela-avatar"})}),d("span",{css:q5,children:"Joseph D. Phelan"})]}),F("div",{children:[d("div",{css:X5,children:d(Q5,{})}),F("div",{css:G5,children:[d(Om,{}),d(hn,{onClick:()=>{gm()},"aria-label":"Toggle theme",title:"Toggle theme",children:d(T5,{fill:"var(--fg-color)"})})]})]})]})}function ew({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:e,width:"24",height:"24",viewBox:"0 0 24 24","aria-label":"Github icon, click to view Joe's github page",children:d("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function tw({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:e,width:"24",height:"24",viewBox:"0 0 24 24","aria-label":"Linkedin icon, click to view Joe's linkedin profile",children:d("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}const nw=H` +`;function J5(){return b("header",{css:K5,children:[b("div",{css:Z5,children:[d(di,{to:"/",children:d("img",{src:vm,css:Y5,alt:"Picture of Joe Phelan",id:"joephela-avatar"})}),d("span",{css:q5,children:"Joseph D. Phelan"})]}),b("div",{children:[d("div",{css:X5,children:d(Q5,{})}),b("div",{css:G5,children:[d(Om,{}),d(hn,{onClick:()=>{ym()},"aria-label":"Toggle theme",title:"Toggle theme",children:d(T5,{fill:"var(--fg-color)"})})]})]})]})}function ew({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:e,width:"24",height:"24",viewBox:"0 0 24 24","aria-label":"Github icon, click to view Joe's github page",children:d("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function tw({fill:e}){return d("svg",{xmlns:"http://www.w3.org/2000/svg",fill:e,width:"24",height:"24",viewBox:"0 0 24 24","aria-label":"Linkedin icon, click to view Joe's linkedin profile",children:d("path",{d:"M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"})})}const nw=H` display: flex; gap: 10px; padding: 10px; -`,rw="https://linkedin.com/in/joseph-phelan-3a871625",iw="https://github.com/joephela";function ow(){return F("div",{css:nw,children:[d(ep,{as:"a","aria-label":"View Joe Phelan's Github",target:"_blank",href:iw,children:d(ew,{fill:"var(--fg-color)"})}),d(ep,{as:"a","aria-label":"View Joe Phelan's Linkedin",href:rw,target:"_blank",children:d(tw,{fill:"var(--fg-color)"})})]})}const lw=H` +`,rw="https://linkedin.com/in/joseph-phelan-3a871625",iw="https://github.com/joephela";function ow(){return b("div",{css:nw,children:[d(ep,{as:"a","aria-label":"View Joe Phelan's Github",target:"_blank",href:iw,children:d(ew,{fill:"var(--fg-color)"})}),d(ep,{as:"a","aria-label":"View Joe Phelan's Linkedin",href:rw,target:"_blank",children:d(tw,{fill:"var(--fg-color)"})})]})}const lw=H` background: var(--bg-footer-header); margin-top: 50px; display: flex; @@ -357,7 +357,7 @@ object-assign padding-block: 8px; `,aw=H` font-size: small; -`;function sw(){return F("footer",{css:lw,children:[F("p",{css:aw,children:["Built by me using"," ",d("a",{href:"https://vite.dev/",rel:"noreferrer",target:"_blank",children:"Vite"}),".",d("br",{}),"Copyright © 2024 Joseph Phelan."]}),d(ow,{})]})}const uw="/assets/moving-B_q13TNX.jpg";function cw(){return F("div",{css:{margin:"24px"},children:[d("h1",{children:"This site has moved!"}),F("p",{children:["Check out the new location ",d("a",{href:"https://www.joephela.com",children:"here"}),"."]}),d("img",{src:uw,alt:"moving trucks"})]})}const fw="128px",dw="123px",hw=H` +`;function sw(){return b("footer",{css:lw,children:[b("p",{css:aw,children:["Built by me using"," ",d("a",{href:"https://vite.dev/",rel:"noreferrer",target:"_blank",children:"Vite"}),".",d("br",{}),"Copyright © 2024 Joseph Phelan."]}),d(ow,{})]})}const uw="/assets/moving-B_q13TNX.jpg";function cw(){return b("div",{css:{margin:"24px"},children:[d("h1",{children:"This site has moved!"}),b("p",{children:["Check out the new location ",d("a",{href:"https://www.joephela.com",children:"here"}),"."]}),d("img",{src:uw,alt:"moving trucks"})]})}const fw="128px",dw="123px",hw=H` height: 100%; margin-inline: var(--layout-padding); min-height: calc(100vh - ${fw} - ${dw}); @@ -385,7 +385,7 @@ object-assign li { text-decoration: none; } -`;function mw(){return F(R.Fragment,{children:[d(f3,{styles:pw}),document.location.origin==="https://joephela.github.io"?d(cw,{}):F(R.Fragment,{children:[d(J5,{}),d("main",{css:hw,children:d($4,{})}),d(sw,{})]})]})}function vw(){return F("svg",{width:"40",height:"40",viewBox:"-10.5 -9.45 21 18.9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"0",cy:"0",r:"2",fill:"currentColor"}),F("g",{stroke:"currentColor",strokeWidth:"1",fill:"none",children:[d("ellipse",{rx:"10",ry:"4.5"}),d("ellipse",{rx:"10",ry:"4.5",transform:"rotate(60)"}),d("ellipse",{rx:"10",ry:"4.5",transform:"rotate(120)"})]})]})}function yw(){return d("svg",{fill:"none",height:"40",viewBox:"0 0 27 26",width:"40",xmlns:"http://www.w3.org/2000/svg",children:d("path",{clipRule:"evenodd",d:"m.98608 0h24.32332c.5446 0 .9861.436522.9861.975v24.05c0 .5385-.4415.975-.9861.975h-24.32332c-.544597 0-.98608-.4365-.98608-.975v-24.05c0-.538478.441483-.975.98608-.975zm13.63142 13.8324v-2.1324h-9.35841v2.1324h3.34111v9.4946h2.6598v-9.4946zm1.0604 9.2439c.4289.2162.9362.3784 1.5218.4865.5857.1081 1.2029.1622 1.8518.1622.6324 0 1.2331-.0595 1.8023-.1784.5691-.1189 1.0681-.3149 1.497-.5879s.7685-.6297 1.0187-1.0703.3753-.9852.3753-1.6339c0-.4703-.0715-.8824-.2145-1.2365-.1429-.3541-.3491-.669-.6186-.9447-.2694-.2757-.5925-.523-.9692-.7419s-.8014-.4257-1.2743-.6203c-.3465-.1406-.6572-.2771-.9321-.4095-.275-.1324-.5087-.2676-.7011-.4054-.1925-.1379-.3409-.2838-.4454-.4379-.1045-.154-.1567-.3284-.1567-.523 0-.1784.0467-.3392.1402-.4824.0935-.1433.2254-.2663.3959-.369s.3794-.1824.6269-.2392c.2474-.0567.5224-.0851.8248-.0851.22 0 .4523.0162.697.0486.2447.0325.4908.0825.7382.15.2475.0676.4881.1527.7218.2555.2337.1027.4495.2216.6475.3567v-2.4244c-.4015-.1514-.84-.2636-1.3157-.3365-.4756-.073-1.0214-.1095-1.6373-.1095-.6268 0-1.2207.0662-1.7816.1987-.5609.1324-1.0544.3392-1.4806.6203s-.763.6392-1.0104 1.0743c-.2475.4352-.3712.9555-.3712 1.5609 0 .7731.2268 1.4326.6805 1.9785.4537.546 1.1424 1.0082 2.0662 1.3866.363.146.7011.2892 1.0146.4298.3134.1405.5842.2865.8124.4378.2282.1514.4083.3162.5403.4946s.198.3811.198.6082c0 .1676-.0413.323-.1238.4662-.0825.1433-.2076.2676-.3753.373s-.3766.1879-.6268.2473c-.2502.0595-.5431.0892-.8785.0892-.5719 0-1.1383-.0986-1.6992-.2959-.5608-.1973-1.0805-.4933-1.5589-.8879z",fill:"currentColor",fillRule:"evenodd"})})}function gw(){return F("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 92 92",children:[d("defs",{children:d("clipPath",{id:"a",children:d("path",{d:"M0 .113h91.887V92H0Zm0 0"})})}),d("g",{clipPath:"url(#a)",children:d("path",{fill:"currentColor",d:"M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371"})})]})}function ww(){return d("svg",{height:"40",viewBox:"0 0 323.99971 285.09601",width:"40",xmlns:"http://www.w3.org/2000/svg",children:F("g",{transform:"matrix(1.2548929 0 0 1.2548929 -22.9868 -19.949332)",children:[d("path",{d:"m97.021 99.016l48.432-27.962c1.212-.7 2.706-.7 3.918 0l48.433 27.962c1.211.7 1.959 1.993 1.959 3.393v55.924c0 1.399-.748 2.693-1.959 3.394l-48.433 27.962c-1.212.7-2.706.7-3.918 0l-48.432-27.962c-1.212-.7-1.959-1.994-1.959-3.394v-55.924c.001-1.4.748-2.693 1.959-3.393",fill:"currentColor"}),d("path",{d:"m273.336 124.488l-57.867-100.672c-2.102-3.64-5.985-6.325-10.188-6.325h-115.736c-4.204 0-8.088 2.685-10.19 6.325l-57.867 100.45c-2.102 3.641-2.102 8.236 0 11.877l57.867 99.847c2.102 3.64 5.986 5.501 10.19 5.501h115.735c4.203 0 8.087-1.805 10.188-5.446l57.867-100.01c2.104-3.639 2.104-7.907.001-11.547m-47.917 48.41c0 1.48-.891 2.849-2.174 3.59l-73.71 42.527c-1.282.74-2.888.74-4.17 0l-73.767-42.527c-1.282-.741-2.179-2.109-2.179-3.59v-85.055c0-1.481.884-2.849 2.167-3.59l73.707-42.527c1.282-.741 2.886-.741 4.168 0l73.772 42.527c1.283.741 2.186 2.109 2.186 3.59z",fill:"currentColor"})]})})}function Sw(){return d("svg",{width:"40",height:"40",viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",fill:"currentColor",children:F("g",{children:[d("rect",{x:"182.857143",y:"48.7619048",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"243.809524",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"146.285714",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"73.1428571",y:"146.285714",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"146.285714",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"195.047619",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"97.5238095",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"60.952381",y:"24.3809524",width:"134.095238",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"24.3809524",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"48.7619048",y:"219.428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"48.7619048",y:"73.1428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"219.428571",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"73.1428571",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"158.47619",y:"219.428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"219.428571",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"195.047619",y:"219.428571",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"97.5238095",y:"121.904762",width:"109.714286",height:"12.1904762",rx:"5"}),d("rect",{x:"36.5714286",y:"121.904762",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"121.904762",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"109.714286",y:"48.7619048",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"48.7619048",width:"97.5238095",height:"12.1904762",rx:"5"}),d("rect",{x:"36.5714286",y:"170.666667",width:"121.904762",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"170.666667",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"73.1428571",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"97.5238095",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"0",width:"158.47619",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"170.666667",y:"0",width:"85.3333333",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"170.666667",y:"170.666667",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"170.666667",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"207.238095",y:"146.285714",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"207.238095",y:"24.3809524",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"121.904762",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"48.7619048",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"231.619048",y:"73.1428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"231.619048",y:"97.5238095",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"134.095238",y:"195.047619",width:"121.904762",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"195.047619",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"182.857143",y:"243.809524",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"243.809524",width:"85.3333333",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"73.1428571",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"97.5238095",width:"48.7619048",height:"12.1904762",rx:"5"})]})})}function xw(){return F("svg",{width:"40",height:"40",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:[d("title",{children:"file_type_vite"}),d("path",{d:"M29.8836 6.146L16.7418 29.6457c-.2714.4851-.9684.488-1.2439.0052L2.0956 6.1482c-.3-.5262.1498-1.1635.746-1.057l13.156 2.3516a.7144.7144 0 00.2537-.0004l12.8808-2.3478c.5942-.1083 1.0463.5241.7515 1.0513z",fill:"currentColor",fillOpacity:"50%"}),d("path",{d:"M22.2644 2.0069l-9.7253 1.9056a.3571.3571 0 00-.2879.3294l-.5982 10.1038c-.014.238.2045.4227.4367.3691l2.7077-.6248c.2534-.0585.4823.1647.4302.4194l-.8044 3.9393c-.0542.265.1947.4918.4536.4132l1.6724-.5082c.2593-.0787.5084.1487.4536.414l-1.2784 6.1877c-.08.387.4348.598.6495.2662L16.5173 25 24.442 9.1848c.1327-.2648-.096-.5667-.387-.5106l-2.787.5379c-.262.0505-.4848-.1934-.4109-.4497l1.8191-6.306c.074-.2568-.1496-.5009-.4118-.4495z",fill:"currentColor"})]})}function Ew(){return d("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12 1L24 22H0L12 1Z",fill:"currentColor"})})}function Cw(){return F("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M21.0016 3.11679C21.0016 2.23783 20.0175 2.23782 19.5801 2.34769C20.1924 1.86426 20.9105 1.98147 21.1656 2.12796L27.079 5.02747C27.6424 5.30375 27.9998 5.8786 27.9998 6.50857V25.5831C27.9998 26.2215 27.6329 26.8025 27.058 27.0743L21.4937 29.7054C21.1109 29.8701 20.2799 30.2767 19.5801 29.7053C20.4549 29.8702 20.9287 29.2476 21.0016 28.8264V3.11679Z"}),d("path",{d:"M19.6512 2.3319C20.1154 2.24017 21.0018 2.28271 21.0018 3.11685V9.68254L3.07359 23.2453C2.76022 23.4824 2.3192 23.443 2.05229 23.1542L0.204532 21.1548C-0.0849358 20.8416 -0.0646824 20.3513 0.249624 20.0633L19.5802 2.34775L19.6512 2.3319Z"}),d("path",{d:"M21.0018 22.3708L3.07359 8.80801C2.76022 8.57094 2.3192 8.61028 2.05229 8.8991L0.204532 10.8985C-0.0849358 11.2117 -0.0646824 11.702 0.249624 11.9901L19.5802 29.7056C20.455 29.8704 20.9289 29.2478 21.0018 28.8266V22.3708Z"}),F("defs",{children:[F("linearGradient",{id:"paint0_linear_87_8101",x1:"23.79",y1:"2",x2:"23.79",y2:"30",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#32B5F1"}),d("stop",{offset:"1",stopColor:"#2B9FED"})]}),F("linearGradient",{id:"paint1_linear_87_8101",x1:"21.0018",y1:"5.53398",x2:"1.0217",y2:"22.3051",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#0F6FB3"}),d("stop",{offset:"0.270551",stopColor:"#1279B7"}),d("stop",{offset:"0.421376",stopColor:"#1176B5"}),d("stop",{offset:"0.618197",stopColor:"#0E69AC"}),d("stop",{offset:"0.855344",stopColor:"#0F70AF"}),d("stop",{offset:"1",stopColor:"#0F6DAD"})]}),F("linearGradient",{id:"paint2_linear_87_8101",x1:"1.15522",y1:"9.98389",x2:"21.0791",y2:"26.4808",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#1791D2"}),d("stop",{offset:"1",stopColor:"#1173C5"})]})]})]})}function Tw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M480-480Zm80 240q100 0 170-70t70-170q0-101-73.5-170.5T550-720q-48 0-93 11t-87 33l100 40q41 17 65.5 52.5T560-504q0 60-41.5 102T418-360H162q-2 24-2 54.5v65.5h400ZM176-440h240q27 0 45.5-18.5T480-504q0-19-10.5-34.5T440-562l-148-60q-42 37-71.5 84T176-440Zm384 280H160q-33 0-56.5-23.5T80-240v-90q0-98 37-183.5t100.5-149Q281-726 367-763t183-37q68 0 128 25t105 68.5Q828-663 854-605t26 125q0 66-25 124.5t-68.5 102Q743-210 684.5-185T560-160Z"})})}function kw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"})})}function Pw(){return F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",width:"40",height:"40",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",children:[F("defs",{children:[d("clipPath",{id:"__lottie_element_23",children:d("rect",{width:"35",height:"35",x:"0",y:"0"})}),d("mask",{id:"__lottie_element_38",children:d("path",{clipRule:"nonzero",d:"M0,0 h35 v35 h-35 v-35 M29.062000274658203,-3 C29.062000274658203,-3 14.753000259399414,-3 14.753000259399414,-3 C14.753000259399414,-3 14.753000259399414,29.816999435424805 14.753000259399414,29.816999435424805 C14.753000259399414,29.816999435424805 29.062000274658203,29.816999435424805 29.062000274658203,29.816999435424805 C29.062000274658203,29.816999435424805 29.062000274658203,-3 29.062000274658203,-3",fillOpacity:"1"})})]}),F("g",{clipPath:"url(#__lottie_element_23)",children:[d("g",{mask:"url(#__lottie_element_38)",transform:"matrix(1,0,0,1,1.25,5.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,12,11.75)",children:d("path",{fillOpacity:"1",d:" M-11.75,11.5 C-11.75,11.5 2.75,-11.5 2.75,-11.5 C2.75,-11.5 11.75,-11.5 11.75,-11.5 C11.75,-11.5 11.75,-8.300000190734863 11.75,-8.300000190734863 C11.75,-8.300000190734863 -0.75,11.5 -0.75,11.5"})})}),d("g",{transform:"matrix(1,0,0,1,15.75,5.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,4.75,11.75)",children:d("path",{fillOpacity:"1",d:" M4.5,11.5 C4.5,11.5 -4.5,11.5 -4.5,11.5 C-4.5,11.5 -4.5,-11.5 -4.5,-11.5 C-4.5,-11.5 4.5,-11.5 4.5,-11.5 C4.5,-11.5 4.5,11.5 4.5,11.5z"})})}),d("g",{transform:"matrix(1,0,0,1,24.75,15.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)",children:d("path",{fillOpacity:"1",d:" M3.25,0 C3.25,3.5899999141693115 0.3400000035762787,6.5 -3.25,6.5 C-3.25,6.5 -3.25,-6.5 -3.25,-6.5 C0.3400000035762787,-6.5 3.25,-3.5899999141693115 3.25,0z"})})}),d("g",{transform:"matrix(1,0,0,1,18.25,15.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)",children:d("path",{fillOpacity:"1",d:" M3.25,6.5 C-0.3400000035762787,6.5 -3.25,3.5899999141693115 -3.25,0 C-3.25,-3.5899999141693115 -0.3400000035762787,-6.5 3.25,-6.5 C3.25,-6.5 3.25,6.5 3.25,6.5z"})})}),d("g",{transform:"matrix(0.9999958872795105,0,0,0.9999958872795105,24.75,5.750020980834961)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)",children:d("path",{fillOpacity:"1",d:" M2.5,0 C2.5,2.760999917984009 0.2619999945163727,5 -2.5,5 C-2.5,5 -2.5,-5 -2.5,-5 C0.2619999945163727,-5 2.5,-2.760999917984009 2.5,0z"})})}),d("g",{transform:"matrix(0.9999958872795105,0,0,0.9999958872795105,19.75002098083496,5.750020980834961)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)",children:d("path",{fillOpacity:"1",d:" M2.5,5 C-0.2619999945163727,5 -2.5,2.760999917984009 -2.5,0 C-2.5,-2.760999917984009 -0.2619999945163727,-5 2.5,-5 C2.5,-5 2.5,5 2.5,5z"})})}),d("g",{transform:"matrix(1,0,0,1,1.75,5.75)",opacity:"0.9999999999999999",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,4.75,4.75)",children:d("path",{fillOpacity:"1",d:" M-4.5,0 C-4.5,-2.484999895095825 -2.484999895095825,-4.5 0,-4.5 C2.484999895095825,-4.5 4.5,-2.484999895095825 4.5,0 C4.5,2.484999895095825 2.484999895095825,4.5 0,4.5 C-2.484999895095825,4.5 -4.5,2.484999895095825 -4.5,0z"})})})]})]})}function Rw(){return d("svg",{height:"40",viewBox:"0 0 24 24",version:"1.1",width:"40","data-view-component":"true",fill:"currentColor",children:d("path",{d:"M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"})})}function _w(){return F("svg",{xmlns:"http://www.w3.org/2000/svg",width:"53.34",height:"40",viewBox:"0 0 256 192",children:[d("path",{fill:"currentColor",d:"M84.38 108.352c-9.556 2.712-15.826 7.467-19.956 12.218c3.956-3.461 9.255-6.639 16.402-8.665c7.311-2.072 13.548-2.057 18.702-1.062v-4.03c-4.397-.402-9.437-.082-15.148 1.539M63.987 74.475l-35.49 9.35s.646.914 1.844 2.133l30.092-7.93s-.427 5.495-4.13 10.41c7.005-5.299 7.684-13.963 7.684-13.963m29.709 83.41c-49.946 13.452-76.37-44.43-84.37-74.472c-3.696-13.868-5.31-24.37-5.74-31.148a11.5 11.5 0 0 1 .025-1.84C1.021 50.58-.22 51.927.032 55.82c.43 6.773 2.044 17.275 5.74 31.147c7.997 30.038 34.424 87.92 84.37 74.468c10.871-2.929 19.038-8.263 25.17-15.073c-5.652 5.104-12.724 9.123-21.616 11.523M103.08 39.05v3.555h19.59c-.401-1.259-.806-2.393-1.208-3.555z"}),d("path",{fill:"currentColor",d:"M127.05 68.325c8.81 2.503 13.47 8.68 15.933 14.146l9.824 2.79s-1.34-19.132-18.645-24.047c-16.189-4.6-26.151 8.995-27.363 10.754c4.71-3.355 11.586-6.102 20.251-3.643m78.197 14.234c-16.204-4.62-26.162 9.003-27.356 10.737c4.713-3.351 11.586-6.099 20.247-3.629c8.797 2.506 13.452 8.676 15.923 14.146l9.837 2.8s-1.361-19.135-18.651-24.054m-9.76 50.443l-81.718-22.845s.885 4.485 4.279 10.293l68.803 19.234c5.664-3.277 8.636-6.682 8.636-6.682m-56.655 49.174C74.127 164.828 81.949 82.386 92.419 43.32c4.311-16.1 8.743-28.066 12.419-36.088c-2.193-.451-4.01.704-5.804 4.354C95.13 19.5 90.14 32.387 85.312 50.427c-10.467 39.066-18.29 121.506 46.412 138.854c30.497 8.17 54.256-4.247 71.966-23.749c-16.81 15.226-38.274 23.763-64.858 16.644"}),d("path",{fill:"currentColor",d:"M103.081 138.565v-16.637l-46.223 13.108s3.415-19.846 27.522-26.684c7.311-2.072 13.549-2.058 18.701-1.063V39.05h23.145c-2.52-7.787-4.958-13.782-7.006-17.948c-3.387-6.895-6.859-2.324-14.741 4.269c-5.552 4.638-19.583 14.533-40.698 20.222c-21.114 5.694-38.185 4.184-45.307 2.95c-10.097-1.742-15.378-3.96-14.884 3.721c.43 6.774 2.043 17.277 5.74 31.148c7.996 30.039 34.424 87.92 84.37 74.468c13.046-3.515 22.254-10.464 28.637-19.32h-19.256zm-74.588-54.74l35.494-9.35s-1.034 13.654-14.34 17.162c-13.31 3.504-21.154-7.812-21.154-7.812"}),d("path",{fill:"currentColor",d:"M236.664 39.84c-9.226 1.617-31.361 3.632-58.716-3.7c-27.363-7.328-45.517-20.144-52.71-26.168c-10.197-8.54-14.682-14.476-19.096-5.498c-3.902 7.918-8.893 20.805-13.723 38.846c-10.466 39.066-18.289 121.505 46.413 138.853c64.687 17.333 99.126-57.978 109.593-97.047c4.83-18.037 6.948-31.695 7.53-40.502c.665-9.976-6.187-7.08-19.29-4.784M106.668 72.161s10.196-15.859 27.49-10.943c17.305 4.915 18.645 24.046 18.645 24.046zm42.215 71.163c-30.419-8.91-35.11-33.167-35.11-33.167l81.714 22.846c0-.004-16.494 19.12-46.604 10.32m28.89-49.85s10.183-15.847 27.474-10.918c17.29 4.923 18.651 24.054 18.651 24.054z"}),d("path",{fill:"currentColor",d:"m86.928 126.51l-30.07 8.522s3.266-18.609 25.418-25.983L65.25 45.147l-1.471.447c-21.115 5.694-38.185 4.184-45.307 2.95c-10.097-1.741-15.379-3.96-14.885 3.722c.43 6.774 2.044 17.276 5.74 31.147c7.997 30.039 34.425 87.92 84.37 74.468l1.471-.462zM28.493 83.825l35.494-9.351s-1.034 13.654-14.34 17.162c-13.31 3.504-21.154-7.811-21.154-7.811"}),d("path",{fill:"currentColor",d:"m150.255 143.658l-1.376-.335c-30.419-8.91-35.11-33.166-35.11-33.166l42.137 11.778l22.308-85.724l-.27-.07c-27.362-7.329-45.516-20.145-52.71-26.17c-10.196-8.54-14.682-14.475-19.096-5.497c-3.898 7.918-8.889 20.805-13.719 38.846c-10.466 39.066-18.289 121.505 46.413 138.852l1.326.3zM106.668 72.16s10.196-15.859 27.49-10.943c17.305 4.915 18.645 24.046 18.645 24.046z"}),d("path",{fill:"currentColor",d:"m88.46 126.072l-8.064 2.289c1.906 10.74 5.264 21.047 10.534 30.152c.918-.202 1.828-.376 2.762-.632c2.449-.66 4.72-1.479 6.906-2.371c-5.89-8.74-9.785-18.804-12.137-29.438m-3.148-75.644c-4.144 15.467-7.852 37.73-6.831 60.06c1.826-.793 3.756-1.532 5.9-2.14l1.492-.334c-1.82-23.852 2.114-48.157 6.546-64.694a323 323 0 0 1 3.373-11.704a105 105 0 0 1-5.974 3.547a307 307 0 0 0-4.506 15.265"})]})}function Ow(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 32.5-156t88-127Q256-817 330-848.5T488-880q80 0 151 27.5t124.5 76q53.5 48.5 85 115T880-518q0 115-70 176.5T640-280h-74q-9 0-12.5 5t-3.5 11q0 12 15 34.5t15 51.5q0 50-27.5 74T480-80Zm0-400Zm-220 40q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm120-160q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm200 0q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm120 160q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17ZM480-160q9 0 14.5-5t5.5-13q0-14-15-33t-15-57q0-42 29-67t71-25h70q66 0 113-38.5T800-518q0-121-92.5-201.5T488-800q-136 0-232 93t-96 227q0 133 93.5 226.5T480-160Z"})})}function Lw(){return d("svg",{fill:"currentColor",width:"40",height:"40",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M29.667 15.76c0-1.885-1.276-3.536-3.104-4.015l3.984-11.745h-19.74l3.996 11.787c-1.772 0.516-2.991 2.135-2.996 3.979 0 1.391 0.693 2.625 1.751 3.385-0.421 0.599-0.907 1.152-1.443 1.656-0.984 0.939-2.141 1.683-3.401 2.199-1.115-0.751-1.593-2.079-1.161-3.26 4.531-1.412 3.531-8.089-1.208-8.109-2.292 0.004-4.151 1.859-4.151 4.151 0 1.131 0.457 2.167 1.203 2.911-0.068 0.125-0.131 0.261-0.199 0.396-0.619 1.281-1.323 2.724-1.593 4.344-0.536 3.245 0.344 5.849 2.469 7.323 1.145 0.808 2.52 1.245 3.927 1.24 2.432 0 4.907-1.224 7.297-2.412 1.708-0.839 3.468-1.719 5.197-2.145 0.641-0.156 1.308-0.249 2.011-0.355 1.427-0.203 2.901-0.416 4.224-1.187 1.531-0.875 2.599-2.385 2.911-4.12 0.229-1.323 0-2.656-0.593-3.828 0.401-0.641 0.62-1.385 0.62-2.193zM27.86 15.76c0 1.287-1.048 2.333-2.333 2.333-2.209-0.005-3.177-2.791-1.444-4.167l0.005-0.009c0.079-0.057 0.163-0.115 0.24-0.168 0 0 0.016 0 0.016-0.009 0.036-0.021 0.072-0.047 0.109-0.068 0.011 0 0.016-0.005 0.025-0.005 0.037-0.021 0.084-0.036 0.131-0.057s0.093-0.036 0.131-0.057c0.009 0 0.015-0.005 0.025-0.005 0.037-0.011 0.079-0.031 0.115-0.036 0.005 0 0.027-0.011 0.037-0.011 0.047-0.011 0.083-0.021 0.129-0.027h0.005l0.141-0.031c0.009 0 0.025 0 0.036-0.011 0.036 0 0.073-0.011 0.115-0.011h0.041c0.047 0 0.093-0.005 0.151-0.005h0.12c0.037 0 0.068 0 0.104 0.005h0.016c0.073 0.011 0.151 0.021 0.224 0.043 1.083 0.229 1.86 1.187 1.86 2.296zM13.391 1.855h14.573l-3.344 9.864c-0.141 0.027-0.276 0.073-0.417 0.12l-3.52-7.177-3.532 7.131c-0.135-0.043-0.287-0.073-0.437-0.099zM20.016 14.953c-0.172-0.855-0.609-1.636-1.251-2.224l1.917-3.869 1.937 3.952c-0.579 0.573-0.995 1.308-1.161 2.141zM15.375 13.489c0.041-0.011 0.084-0.020 0.131-0.025h0.025c0.037-0.011 0.073-0.011 0.109-0.021h0.037c0.036 0 0.068-0.011 0.104-0.011h0.359c0.037 0 0.068 0.011 0.095 0.011 0.020 0 0.025 0 0.047 0.011 0.036 0.011 0.063 0.011 0.099 0.016 0.011 0 0.021 0 0.041 0.009l0.125 0.027h0.011c0.036 0.011 0.079 0.021 0.115 0.041 0.005 0 0.016 0.005 0.036 0.005 0.027 0.011 0.063 0.021 0.095 0.036 0.004 0 0.015 0.011 0.025 0.011 0.036 0.021 0.073 0.032 0.109 0.047h0.011c0.041 0.016 0.083 0.037 0.12 0.068h0.011c0.036 0.016 0.072 0.041 0.109 0.063 0.009 0 0.009 0.011 0.020 0.011 0.037 0.016 0.063 0.047 0.099 0.063l0.011 0.011c0.109 0.083 0.213 0.176 0.319 0.271l0.004 0.005c0.417 0.437 0.647 1.015 0.641 1.613-0.099 3.011-4.568 3.011-4.667 0-0.005-1.067 0.724-2 1.76-2.26zM6.255 13.421c1.287 0 2.333 1.052 2.333 2.339s-1.047 2.333-2.333 2.333c-1.285 0-2.333-1.047-2.333-2.333s1.048-2.339 2.333-2.339zM27.807 21.459c-0.213 1.197-0.952 2.239-2.009 2.844-1.011 0.583-2.256 0.771-3.557 0.952-0.735 0.095-1.469 0.224-2.188 0.391-1.927 0.475-3.781 1.396-5.579 2.287-2.296 1.141-4.463 2.213-6.473 2.213-1.031 0.005-2.036-0.312-2.875-0.916-2.037-1.407-1.937-4.047-1.693-5.495 0.219-1.355 0.839-2.62 1.432-3.833 0.043-0.073 0.068-0.141 0.105-0.213 0.203 0.072 0.416 0.129 0.64 0.167-0.355 1.963 0.645 3.995 2.593 4.995l0.349 0.181 0.38-0.135c1.62-0.579 3.125-1.511 4.448-2.76 0.735-0.683 1.38-1.453 1.927-2.292 0.215 0.036 0.428 0.047 0.641 0.047 1.885-0.005 3.531-1.276 4.011-3.104h1.557c0.473 1.828 2.124 3.104 4.011 3.104 0.771 0 1.484-0.213 2.093-0.573 0.24 0.693 0.317 1.417 0.187 2.141z"})})}const Mw=H` +`;function mw(){return b(R.Fragment,{children:[d(f3,{styles:pw}),document.location.origin==="https://joephela.github.io"?d(cw,{}):b(R.Fragment,{children:[d(J5,{}),d("main",{css:hw,children:d($4,{})}),d(sw,{})]})]})}function vw(){return b("svg",{width:"40",height:"40",viewBox:"-10.5 -9.45 21 18.9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d("circle",{cx:"0",cy:"0",r:"2",fill:"currentColor"}),b("g",{stroke:"currentColor",strokeWidth:"1",fill:"none",children:[d("ellipse",{rx:"10",ry:"4.5"}),d("ellipse",{rx:"10",ry:"4.5",transform:"rotate(60)"}),d("ellipse",{rx:"10",ry:"4.5",transform:"rotate(120)"})]})]})}function gw(){return d("svg",{fill:"none",height:"40",viewBox:"0 0 27 26",width:"40",xmlns:"http://www.w3.org/2000/svg",children:d("path",{clipRule:"evenodd",d:"m.98608 0h24.32332c.5446 0 .9861.436522.9861.975v24.05c0 .5385-.4415.975-.9861.975h-24.32332c-.544597 0-.98608-.4365-.98608-.975v-24.05c0-.538478.441483-.975.98608-.975zm13.63142 13.8324v-2.1324h-9.35841v2.1324h3.34111v9.4946h2.6598v-9.4946zm1.0604 9.2439c.4289.2162.9362.3784 1.5218.4865.5857.1081 1.2029.1622 1.8518.1622.6324 0 1.2331-.0595 1.8023-.1784.5691-.1189 1.0681-.3149 1.497-.5879s.7685-.6297 1.0187-1.0703.3753-.9852.3753-1.6339c0-.4703-.0715-.8824-.2145-1.2365-.1429-.3541-.3491-.669-.6186-.9447-.2694-.2757-.5925-.523-.9692-.7419s-.8014-.4257-1.2743-.6203c-.3465-.1406-.6572-.2771-.9321-.4095-.275-.1324-.5087-.2676-.7011-.4054-.1925-.1379-.3409-.2838-.4454-.4379-.1045-.154-.1567-.3284-.1567-.523 0-.1784.0467-.3392.1402-.4824.0935-.1433.2254-.2663.3959-.369s.3794-.1824.6269-.2392c.2474-.0567.5224-.0851.8248-.0851.22 0 .4523.0162.697.0486.2447.0325.4908.0825.7382.15.2475.0676.4881.1527.7218.2555.2337.1027.4495.2216.6475.3567v-2.4244c-.4015-.1514-.84-.2636-1.3157-.3365-.4756-.073-1.0214-.1095-1.6373-.1095-.6268 0-1.2207.0662-1.7816.1987-.5609.1324-1.0544.3392-1.4806.6203s-.763.6392-1.0104 1.0743c-.2475.4352-.3712.9555-.3712 1.5609 0 .7731.2268 1.4326.6805 1.9785.4537.546 1.1424 1.0082 2.0662 1.3866.363.146.7011.2892 1.0146.4298.3134.1405.5842.2865.8124.4378.2282.1514.4083.3162.5403.4946s.198.3811.198.6082c0 .1676-.0413.323-.1238.4662-.0825.1433-.2076.2676-.3753.373s-.3766.1879-.6268.2473c-.2502.0595-.5431.0892-.8785.0892-.5719 0-1.1383-.0986-1.6992-.2959-.5608-.1973-1.0805-.4933-1.5589-.8879z",fill:"currentColor",fillRule:"evenodd"})})}function yw(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 92 92",children:[d("defs",{children:d("clipPath",{id:"a",children:d("path",{d:"M0 .113h91.887V92H0Zm0 0"})})}),d("g",{clipPath:"url(#a)",children:d("path",{fill:"currentColor",d:"M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371"})})]})}function ww(){return d("svg",{height:"40",viewBox:"0 0 323.99971 285.09601",width:"40",xmlns:"http://www.w3.org/2000/svg",children:b("g",{transform:"matrix(1.2548929 0 0 1.2548929 -22.9868 -19.949332)",children:[d("path",{d:"m97.021 99.016l48.432-27.962c1.212-.7 2.706-.7 3.918 0l48.433 27.962c1.211.7 1.959 1.993 1.959 3.393v55.924c0 1.399-.748 2.693-1.959 3.394l-48.433 27.962c-1.212.7-2.706.7-3.918 0l-48.432-27.962c-1.212-.7-1.959-1.994-1.959-3.394v-55.924c.001-1.4.748-2.693 1.959-3.393",fill:"currentColor"}),d("path",{d:"m273.336 124.488l-57.867-100.672c-2.102-3.64-5.985-6.325-10.188-6.325h-115.736c-4.204 0-8.088 2.685-10.19 6.325l-57.867 100.45c-2.102 3.641-2.102 8.236 0 11.877l57.867 99.847c2.102 3.64 5.986 5.501 10.19 5.501h115.735c4.203 0 8.087-1.805 10.188-5.446l57.867-100.01c2.104-3.639 2.104-7.907.001-11.547m-47.917 48.41c0 1.48-.891 2.849-2.174 3.59l-73.71 42.527c-1.282.74-2.888.74-4.17 0l-73.767-42.527c-1.282-.741-2.179-2.109-2.179-3.59v-85.055c0-1.481.884-2.849 2.167-3.59l73.707-42.527c1.282-.741 2.886-.741 4.168 0l73.772 42.527c1.283.741 2.186 2.109 2.186 3.59z",fill:"currentColor"})]})})}function Sw(){return d("svg",{width:"40",height:"40",viewBox:"0 0 256 256",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",fill:"currentColor",children:b("g",{children:[d("rect",{x:"182.857143",y:"48.7619048",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"243.809524",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"146.285714",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"73.1428571",y:"146.285714",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"146.285714",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"195.047619",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"97.5238095",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"60.952381",y:"24.3809524",width:"134.095238",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"24.3809524",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"48.7619048",y:"219.428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"48.7619048",y:"73.1428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"219.428571",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"73.1428571",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"158.47619",y:"219.428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"219.428571",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"195.047619",y:"219.428571",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"97.5238095",y:"121.904762",width:"109.714286",height:"12.1904762",rx:"5"}),d("rect",{x:"36.5714286",y:"121.904762",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"121.904762",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"109.714286",y:"48.7619048",width:"60.952381",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"48.7619048",width:"97.5238095",height:"12.1904762",rx:"5"}),d("rect",{x:"36.5714286",y:"170.666667",width:"121.904762",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"170.666667",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"73.1428571",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"146.285714",y:"97.5238095",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{x:"0",y:"0",width:"158.47619",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"170.666667",y:"0",width:"85.3333333",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"170.666667",y:"170.666667",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"170.666667",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"207.238095",y:"146.285714",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"207.238095",y:"24.3809524",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"121.904762",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"219.428571",y:"48.7619048",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"231.619048",y:"73.1428571",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"231.619048",y:"97.5238095",width:"24.3809524",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"134.095238",y:"195.047619",width:"121.904762",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"195.047619",width:"36.5714286",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"182.857143",y:"243.809524",width:"73.1428571",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"243.809524",width:"85.3333333",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"73.1428571",width:"48.7619048",height:"12.1904762",rx:"5"}),d("rect",{opacity:"0.5",x:"85.3333333",y:"97.5238095",width:"48.7619048",height:"12.1904762",rx:"5"})]})})}function xw(){return b("svg",{width:"40",height:"40",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:[d("title",{children:"file_type_vite"}),d("path",{d:"M29.8836 6.146L16.7418 29.6457c-.2714.4851-.9684.488-1.2439.0052L2.0956 6.1482c-.3-.5262.1498-1.1635.746-1.057l13.156 2.3516a.7144.7144 0 00.2537-.0004l12.8808-2.3478c.5942-.1083 1.0463.5241.7515 1.0513z",fill:"currentColor",fillOpacity:"50%"}),d("path",{d:"M22.2644 2.0069l-9.7253 1.9056a.3571.3571 0 00-.2879.3294l-.5982 10.1038c-.014.238.2045.4227.4367.3691l2.7077-.6248c.2534-.0585.4823.1647.4302.4194l-.8044 3.9393c-.0542.265.1947.4918.4536.4132l1.6724-.5082c.2593-.0787.5084.1487.4536.414l-1.2784 6.1877c-.08.387.4348.598.6495.2662L16.5173 25 24.442 9.1848c.1327-.2648-.096-.5667-.387-.5106l-2.787.5379c-.262.0505-.4848-.1934-.4109-.4497l1.8191-6.306c.074-.2568-.1496-.5009-.4118-.4495z",fill:"currentColor"})]})}function Ew(){return d("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M12 1L24 22H0L12 1Z",fill:"currentColor"})})}function Cw(){return b("svg",{width:"40",height:"40",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[d("path",{d:"M21.0016 3.11679C21.0016 2.23783 20.0175 2.23782 19.5801 2.34769C20.1924 1.86426 20.9105 1.98147 21.1656 2.12796L27.079 5.02747C27.6424 5.30375 27.9998 5.8786 27.9998 6.50857V25.5831C27.9998 26.2215 27.6329 26.8025 27.058 27.0743L21.4937 29.7054C21.1109 29.8701 20.2799 30.2767 19.5801 29.7053C20.4549 29.8702 20.9287 29.2476 21.0016 28.8264V3.11679Z"}),d("path",{d:"M19.6512 2.3319C20.1154 2.24017 21.0018 2.28271 21.0018 3.11685V9.68254L3.07359 23.2453C2.76022 23.4824 2.3192 23.443 2.05229 23.1542L0.204532 21.1548C-0.0849358 20.8416 -0.0646824 20.3513 0.249624 20.0633L19.5802 2.34775L19.6512 2.3319Z"}),d("path",{d:"M21.0018 22.3708L3.07359 8.80801C2.76022 8.57094 2.3192 8.61028 2.05229 8.8991L0.204532 10.8985C-0.0849358 11.2117 -0.0646824 11.702 0.249624 11.9901L19.5802 29.7056C20.455 29.8704 20.9289 29.2478 21.0018 28.8266V22.3708Z"}),b("defs",{children:[b("linearGradient",{id:"paint0_linear_87_8101",x1:"23.79",y1:"2",x2:"23.79",y2:"30",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#32B5F1"}),d("stop",{offset:"1",stopColor:"#2B9FED"})]}),b("linearGradient",{id:"paint1_linear_87_8101",x1:"21.0018",y1:"5.53398",x2:"1.0217",y2:"22.3051",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#0F6FB3"}),d("stop",{offset:"0.270551",stopColor:"#1279B7"}),d("stop",{offset:"0.421376",stopColor:"#1176B5"}),d("stop",{offset:"0.618197",stopColor:"#0E69AC"}),d("stop",{offset:"0.855344",stopColor:"#0F70AF"}),d("stop",{offset:"1",stopColor:"#0F6DAD"})]}),b("linearGradient",{id:"paint2_linear_87_8101",x1:"1.15522",y1:"9.98389",x2:"21.0791",y2:"26.4808",gradientUnits:"userSpaceOnUse",children:[d("stop",{stopColor:"#1791D2"}),d("stop",{offset:"1",stopColor:"#1173C5"})]})]})]})}function Tw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M480-480Zm80 240q100 0 170-70t70-170q0-101-73.5-170.5T550-720q-48 0-93 11t-87 33l100 40q41 17 65.5 52.5T560-504q0 60-41.5 102T418-360H162q-2 24-2 54.5v65.5h400ZM176-440h240q27 0 45.5-18.5T480-504q0-19-10.5-34.5T440-562l-148-60q-42 37-71.5 84T176-440Zm384 280H160q-33 0-56.5-23.5T80-240v-90q0-98 37-183.5t100.5-149Q281-726 367-763t183-37q68 0 128 25t105 68.5Q828-663 854-605t26 125q0 66-25 124.5t-68.5 102Q743-210 684.5-185T560-160Z"})})}function kw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"})})}function Pw(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 35 35",width:"40",height:"40",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",children:[b("defs",{children:[d("clipPath",{id:"__lottie_element_23",children:d("rect",{width:"35",height:"35",x:"0",y:"0"})}),d("mask",{id:"__lottie_element_38",children:d("path",{clipRule:"nonzero",d:"M0,0 h35 v35 h-35 v-35 M29.062000274658203,-3 C29.062000274658203,-3 14.753000259399414,-3 14.753000259399414,-3 C14.753000259399414,-3 14.753000259399414,29.816999435424805 14.753000259399414,29.816999435424805 C14.753000259399414,29.816999435424805 29.062000274658203,29.816999435424805 29.062000274658203,29.816999435424805 C29.062000274658203,29.816999435424805 29.062000274658203,-3 29.062000274658203,-3",fillOpacity:"1"})})]}),b("g",{clipPath:"url(#__lottie_element_23)",children:[d("g",{mask:"url(#__lottie_element_38)",transform:"matrix(1,0,0,1,1.25,5.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,12,11.75)",children:d("path",{fillOpacity:"1",d:" M-11.75,11.5 C-11.75,11.5 2.75,-11.5 2.75,-11.5 C2.75,-11.5 11.75,-11.5 11.75,-11.5 C11.75,-11.5 11.75,-8.300000190734863 11.75,-8.300000190734863 C11.75,-8.300000190734863 -0.75,11.5 -0.75,11.5"})})}),d("g",{transform:"matrix(1,0,0,1,15.75,5.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,4.75,11.75)",children:d("path",{fillOpacity:"1",d:" M4.5,11.5 C4.5,11.5 -4.5,11.5 -4.5,11.5 C-4.5,11.5 -4.5,-11.5 -4.5,-11.5 C-4.5,-11.5 4.5,-11.5 4.5,-11.5 C4.5,-11.5 4.5,11.5 4.5,11.5z"})})}),d("g",{transform:"matrix(1,0,0,1,24.75,15.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)",children:d("path",{fillOpacity:"1",d:" M3.25,0 C3.25,3.5899999141693115 0.3400000035762787,6.5 -3.25,6.5 C-3.25,6.5 -3.25,-6.5 -3.25,-6.5 C0.3400000035762787,-6.5 3.25,-3.5899999141693115 3.25,0z"})})}),d("g",{transform:"matrix(1,0,0,1,18.25,15.75)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,3.5,6.75)",children:d("path",{fillOpacity:"1",d:" M3.25,6.5 C-0.3400000035762787,6.5 -3.25,3.5899999141693115 -3.25,0 C-3.25,-3.5899999141693115 -0.3400000035762787,-6.5 3.25,-6.5 C3.25,-6.5 3.25,6.5 3.25,6.5z"})})}),d("g",{transform:"matrix(0.9999958872795105,0,0,0.9999958872795105,24.75,5.750020980834961)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)",children:d("path",{fillOpacity:"1",d:" M2.5,0 C2.5,2.760999917984009 0.2619999945163727,5 -2.5,5 C-2.5,5 -2.5,-5 -2.5,-5 C0.2619999945163727,-5 2.5,-2.760999917984009 2.5,0z"})})}),d("g",{transform:"matrix(0.9999958872795105,0,0,0.9999958872795105,19.75002098083496,5.750020980834961)",opacity:"1",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,2.75,5.25)",children:d("path",{fillOpacity:"1",d:" M2.5,5 C-0.2619999945163727,5 -2.5,2.760999917984009 -2.5,0 C-2.5,-2.760999917984009 -0.2619999945163727,-5 2.5,-5 C2.5,-5 2.5,5 2.5,5z"})})}),d("g",{transform:"matrix(1,0,0,1,1.75,5.75)",opacity:"0.9999999999999999",children:d("g",{opacity:"1",transform:"matrix(1,0,0,1,4.75,4.75)",children:d("path",{fillOpacity:"1",d:" M-4.5,0 C-4.5,-2.484999895095825 -2.484999895095825,-4.5 0,-4.5 C2.484999895095825,-4.5 4.5,-2.484999895095825 4.5,0 C4.5,2.484999895095825 2.484999895095825,4.5 0,4.5 C-2.484999895095825,4.5 -4.5,2.484999895095825 -4.5,0z"})})})]})]})}function Rw(){return d("svg",{height:"40",viewBox:"0 0 24 24",version:"1.1",width:"40","data-view-component":"true",fill:"currentColor",children:d("path",{d:"M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"})})}function _w(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"53.34",height:"40",viewBox:"0 0 256 192",children:[d("path",{fill:"currentColor",d:"M84.38 108.352c-9.556 2.712-15.826 7.467-19.956 12.218c3.956-3.461 9.255-6.639 16.402-8.665c7.311-2.072 13.548-2.057 18.702-1.062v-4.03c-4.397-.402-9.437-.082-15.148 1.539M63.987 74.475l-35.49 9.35s.646.914 1.844 2.133l30.092-7.93s-.427 5.495-4.13 10.41c7.005-5.299 7.684-13.963 7.684-13.963m29.709 83.41c-49.946 13.452-76.37-44.43-84.37-74.472c-3.696-13.868-5.31-24.37-5.74-31.148a11.5 11.5 0 0 1 .025-1.84C1.021 50.58-.22 51.927.032 55.82c.43 6.773 2.044 17.275 5.74 31.147c7.997 30.038 34.424 87.92 84.37 74.468c10.871-2.929 19.038-8.263 25.17-15.073c-5.652 5.104-12.724 9.123-21.616 11.523M103.08 39.05v3.555h19.59c-.401-1.259-.806-2.393-1.208-3.555z"}),d("path",{fill:"currentColor",d:"M127.05 68.325c8.81 2.503 13.47 8.68 15.933 14.146l9.824 2.79s-1.34-19.132-18.645-24.047c-16.189-4.6-26.151 8.995-27.363 10.754c4.71-3.355 11.586-6.102 20.251-3.643m78.197 14.234c-16.204-4.62-26.162 9.003-27.356 10.737c4.713-3.351 11.586-6.099 20.247-3.629c8.797 2.506 13.452 8.676 15.923 14.146l9.837 2.8s-1.361-19.135-18.651-24.054m-9.76 50.443l-81.718-22.845s.885 4.485 4.279 10.293l68.803 19.234c5.664-3.277 8.636-6.682 8.636-6.682m-56.655 49.174C74.127 164.828 81.949 82.386 92.419 43.32c4.311-16.1 8.743-28.066 12.419-36.088c-2.193-.451-4.01.704-5.804 4.354C95.13 19.5 90.14 32.387 85.312 50.427c-10.467 39.066-18.29 121.506 46.412 138.854c30.497 8.17 54.256-4.247 71.966-23.749c-16.81 15.226-38.274 23.763-64.858 16.644"}),d("path",{fill:"currentColor",d:"M103.081 138.565v-16.637l-46.223 13.108s3.415-19.846 27.522-26.684c7.311-2.072 13.549-2.058 18.701-1.063V39.05h23.145c-2.52-7.787-4.958-13.782-7.006-17.948c-3.387-6.895-6.859-2.324-14.741 4.269c-5.552 4.638-19.583 14.533-40.698 20.222c-21.114 5.694-38.185 4.184-45.307 2.95c-10.097-1.742-15.378-3.96-14.884 3.721c.43 6.774 2.043 17.277 5.74 31.148c7.996 30.039 34.424 87.92 84.37 74.468c13.046-3.515 22.254-10.464 28.637-19.32h-19.256zm-74.588-54.74l35.494-9.35s-1.034 13.654-14.34 17.162c-13.31 3.504-21.154-7.812-21.154-7.812"}),d("path",{fill:"currentColor",d:"M236.664 39.84c-9.226 1.617-31.361 3.632-58.716-3.7c-27.363-7.328-45.517-20.144-52.71-26.168c-10.197-8.54-14.682-14.476-19.096-5.498c-3.902 7.918-8.893 20.805-13.723 38.846c-10.466 39.066-18.289 121.505 46.413 138.853c64.687 17.333 99.126-57.978 109.593-97.047c4.83-18.037 6.948-31.695 7.53-40.502c.665-9.976-6.187-7.08-19.29-4.784M106.668 72.161s10.196-15.859 27.49-10.943c17.305 4.915 18.645 24.046 18.645 24.046zm42.215 71.163c-30.419-8.91-35.11-33.167-35.11-33.167l81.714 22.846c0-.004-16.494 19.12-46.604 10.32m28.89-49.85s10.183-15.847 27.474-10.918c17.29 4.923 18.651 24.054 18.651 24.054z"}),d("path",{fill:"currentColor",d:"m86.928 126.51l-30.07 8.522s3.266-18.609 25.418-25.983L65.25 45.147l-1.471.447c-21.115 5.694-38.185 4.184-45.307 2.95c-10.097-1.741-15.379-3.96-14.885 3.722c.43 6.774 2.044 17.276 5.74 31.147c7.997 30.039 34.425 87.92 84.37 74.468l1.471-.462zM28.493 83.825l35.494-9.351s-1.034 13.654-14.34 17.162c-13.31 3.504-21.154-7.811-21.154-7.811"}),d("path",{fill:"currentColor",d:"m150.255 143.658l-1.376-.335c-30.419-8.91-35.11-33.166-35.11-33.166l42.137 11.778l22.308-85.724l-.27-.07c-27.362-7.329-45.516-20.145-52.71-26.17c-10.196-8.54-14.682-14.475-19.096-5.497c-3.898 7.918-8.889 20.805-13.719 38.846c-10.466 39.066-18.289 121.505 46.413 138.852l1.326.3zM106.668 72.16s10.196-15.859 27.49-10.943c17.305 4.915 18.645 24.046 18.645 24.046z"}),d("path",{fill:"currentColor",d:"m88.46 126.072l-8.064 2.289c1.906 10.74 5.264 21.047 10.534 30.152c.918-.202 1.828-.376 2.762-.632c2.449-.66 4.72-1.479 6.906-2.371c-5.89-8.74-9.785-18.804-12.137-29.438m-3.148-75.644c-4.144 15.467-7.852 37.73-6.831 60.06c1.826-.793 3.756-1.532 5.9-2.14l1.492-.334c-1.82-23.852 2.114-48.157 6.546-64.694a323 323 0 0 1 3.373-11.704a105 105 0 0 1-5.974 3.547a307 307 0 0 0-4.506 15.265"})]})}function Ow(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",fill:"currentColor",children:d("path",{d:"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 32.5-156t88-127Q256-817 330-848.5T488-880q80 0 151 27.5t124.5 76q53.5 48.5 85 115T880-518q0 115-70 176.5T640-280h-74q-9 0-12.5 5t-3.5 11q0 12 15 34.5t15 51.5q0 50-27.5 74T480-80Zm0-400Zm-220 40q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm120-160q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm200 0q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm120 160q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17ZM480-160q9 0 14.5-5t5.5-13q0-14-15-33t-15-57q0-42 29-67t71-25h70q66 0 113-38.5T800-518q0-121-92.5-201.5T488-800q-136 0-232 93t-96 227q0 133 93.5 226.5T480-160Z"})})}function Lw(){return d("svg",{fill:"currentColor",width:"40",height:"40",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:d("path",{d:"M29.667 15.76c0-1.885-1.276-3.536-3.104-4.015l3.984-11.745h-19.74l3.996 11.787c-1.772 0.516-2.991 2.135-2.996 3.979 0 1.391 0.693 2.625 1.751 3.385-0.421 0.599-0.907 1.152-1.443 1.656-0.984 0.939-2.141 1.683-3.401 2.199-1.115-0.751-1.593-2.079-1.161-3.26 4.531-1.412 3.531-8.089-1.208-8.109-2.292 0.004-4.151 1.859-4.151 4.151 0 1.131 0.457 2.167 1.203 2.911-0.068 0.125-0.131 0.261-0.199 0.396-0.619 1.281-1.323 2.724-1.593 4.344-0.536 3.245 0.344 5.849 2.469 7.323 1.145 0.808 2.52 1.245 3.927 1.24 2.432 0 4.907-1.224 7.297-2.412 1.708-0.839 3.468-1.719 5.197-2.145 0.641-0.156 1.308-0.249 2.011-0.355 1.427-0.203 2.901-0.416 4.224-1.187 1.531-0.875 2.599-2.385 2.911-4.12 0.229-1.323 0-2.656-0.593-3.828 0.401-0.641 0.62-1.385 0.62-2.193zM27.86 15.76c0 1.287-1.048 2.333-2.333 2.333-2.209-0.005-3.177-2.791-1.444-4.167l0.005-0.009c0.079-0.057 0.163-0.115 0.24-0.168 0 0 0.016 0 0.016-0.009 0.036-0.021 0.072-0.047 0.109-0.068 0.011 0 0.016-0.005 0.025-0.005 0.037-0.021 0.084-0.036 0.131-0.057s0.093-0.036 0.131-0.057c0.009 0 0.015-0.005 0.025-0.005 0.037-0.011 0.079-0.031 0.115-0.036 0.005 0 0.027-0.011 0.037-0.011 0.047-0.011 0.083-0.021 0.129-0.027h0.005l0.141-0.031c0.009 0 0.025 0 0.036-0.011 0.036 0 0.073-0.011 0.115-0.011h0.041c0.047 0 0.093-0.005 0.151-0.005h0.12c0.037 0 0.068 0 0.104 0.005h0.016c0.073 0.011 0.151 0.021 0.224 0.043 1.083 0.229 1.86 1.187 1.86 2.296zM13.391 1.855h14.573l-3.344 9.864c-0.141 0.027-0.276 0.073-0.417 0.12l-3.52-7.177-3.532 7.131c-0.135-0.043-0.287-0.073-0.437-0.099zM20.016 14.953c-0.172-0.855-0.609-1.636-1.251-2.224l1.917-3.869 1.937 3.952c-0.579 0.573-0.995 1.308-1.161 2.141zM15.375 13.489c0.041-0.011 0.084-0.020 0.131-0.025h0.025c0.037-0.011 0.073-0.011 0.109-0.021h0.037c0.036 0 0.068-0.011 0.104-0.011h0.359c0.037 0 0.068 0.011 0.095 0.011 0.020 0 0.025 0 0.047 0.011 0.036 0.011 0.063 0.011 0.099 0.016 0.011 0 0.021 0 0.041 0.009l0.125 0.027h0.011c0.036 0.011 0.079 0.021 0.115 0.041 0.005 0 0.016 0.005 0.036 0.005 0.027 0.011 0.063 0.021 0.095 0.036 0.004 0 0.015 0.011 0.025 0.011 0.036 0.021 0.073 0.032 0.109 0.047h0.011c0.041 0.016 0.083 0.037 0.12 0.068h0.011c0.036 0.016 0.072 0.041 0.109 0.063 0.009 0 0.009 0.011 0.020 0.011 0.037 0.016 0.063 0.047 0.099 0.063l0.011 0.011c0.109 0.083 0.213 0.176 0.319 0.271l0.004 0.005c0.417 0.437 0.647 1.015 0.641 1.613-0.099 3.011-4.568 3.011-4.667 0-0.005-1.067 0.724-2 1.76-2.26zM6.255 13.421c1.287 0 2.333 1.052 2.333 2.339s-1.047 2.333-2.333 2.333c-1.285 0-2.333-1.047-2.333-2.333s1.048-2.339 2.333-2.339zM27.807 21.459c-0.213 1.197-0.952 2.239-2.009 2.844-1.011 0.583-2.256 0.771-3.557 0.952-0.735 0.095-1.469 0.224-2.188 0.391-1.927 0.475-3.781 1.396-5.579 2.287-2.296 1.141-4.463 2.213-6.473 2.213-1.031 0.005-2.036-0.312-2.875-0.916-2.037-1.407-1.937-4.047-1.693-5.495 0.219-1.355 0.839-2.62 1.432-3.833 0.043-0.073 0.068-0.141 0.105-0.213 0.203 0.072 0.416 0.129 0.64 0.167-0.355 1.963 0.645 3.995 2.593 4.995l0.349 0.181 0.38-0.135c1.62-0.579 3.125-1.511 4.448-2.76 0.735-0.683 1.38-1.453 1.927-2.292 0.215 0.036 0.428 0.047 0.641 0.047 1.885-0.005 3.531-1.276 4.011-3.104h1.557c0.473 1.828 2.124 3.104 4.011 3.104 0.771 0 1.484-0.213 2.093-0.573 0.24 0.693 0.317 1.417 0.187 2.141z"})})}const Mw=H` ${ml} ${Rs} `,Dw=H` @@ -412,14 +412,14 @@ object-assign &:focus { box-shadow: 1px 1px 1px var(--hover-color); } -`;function it({children:e,href:t}){return d("a",{css:Nw,href:t,target:"_blank",children:e})}function Aw(){const{ref:e}=vl();return F("div",{css:Mw,ref:e,children:[F(el,{children:[d("meta",{name:"description",content:`A collection of technologies used in the process of making this - website and in my day to day work.`}),d("title",{children:"Tech - Joseph D. Phelan"})]}),d("h1",{children:"Technology"}),d("p",{children:"A collection of technologies used in the process of making this website and in my day to day work."}),d("p",{children:"My preferred stack includes working in typescript and react with some sort of css-in-js library (in my case I am using emotion). I use git and github for version control and code reviews. Eslint and prettier are used for code formatting. Vite was used to generate the skeleton of this project."}),d("p",{children:"My preferred code editor is visual studio code, but I've also used some jetbrains editors in the past. I use vercel to host my website. I like to use Playwright for e2e testing and jest for js unit testing."}),F("div",{css:Dw,children:[F(it,{href:"https://react.dev/",children:[d(vw,{}),d("p",{children:"React"})]}),F(it,{href:"https://www.typescriptlang.org/",children:[d(yw,{}),d("p",{children:"Typescript"})]}),F(it,{href:"https://git-scm.com/",children:[d(gw,{}),d("p",{children:"Git"})]}),F(it,{href:"https://github.com/",children:[d(Rw,{}),d("p",{children:"Github"})]}),F(it,{href:"https://eslint.org/",children:[d(ww,{}),d("p",{children:"Eslint"})]}),F(it,{href:"https://prettier.io/",children:[d(Sw,{}),d("p",{children:"Prettier"})]}),F(it,{href:"https://vite.dev/",children:[d(xw,{}),d("p",{children:"Vite"})]}),F(it,{href:"https://vercel.com",children:[d(Ew,{}),d("p",{children:"Vercel"})]}),F(it,{href:"https://code.visualstudio.com/",children:[d(Cw,{}),d("p",{children:"VS code"})]}),F(it,{href:"https://playwright.dev",children:[d(_w,{}),d("p",{children:"Playwright"})]}),F(it,{href:"https://jestjs.io/",children:[d(Lw,{}),d("p",{children:"Jest"})]}),F(it,{href:"https://emotion.sh",children:[d(Ow,{}),d("p",{children:"Emotion"})]}),F(it,{href:"https://fonts.google.com/icons",children:[d(Pw,{}),d("p",{children:"Material icons"})]}),F(it,{href:"https://github.com/nfl/react-helmet",children:[d(Tw,{}),d("p",{children:"React-helmet"})]}),F(it,{href:"https://github.com/tschaub/gh-pages",children:[d(kw,{}),d("p",{children:"Gh-pages"})]})]})]})}function Iw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40px",viewBox:"0 -960 960 960",width:"40px",fill:"currentColor",children:d("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})})}const Fw=H` +`;function it({children:e,href:t}){return d("a",{css:Nw,href:t,target:"_blank",children:e})}function Aw(){const{ref:e}=vl();return b("div",{css:Mw,ref:e,children:[b(el,{children:[d("meta",{name:"description",content:`A collection of technologies used in the process of making this + website and in my day to day work.`}),d("title",{children:"Tech - Joseph D. Phelan"})]}),d("h1",{children:"Technology"}),d("p",{children:"A collection of technologies used in the process of making this website and in my day to day work."}),d("p",{children:"My preferred stack includes working in typescript and react with some sort of css-in-js library (in my case I am using emotion). I use git and github for version control and code reviews. Eslint and prettier are used for code formatting. Vite was used to generate the skeleton of this project."}),d("p",{children:"My preferred code editor is visual studio code, but I've also used some jetbrains editors in the past. I use vercel to host my website. I like to use Playwright for e2e testing and jest for js unit testing."}),b("div",{css:Dw,children:[b(it,{href:"https://react.dev/",children:[d(vw,{}),d("p",{children:"React"})]}),b(it,{href:"https://www.typescriptlang.org/",children:[d(gw,{}),d("p",{children:"Typescript"})]}),b(it,{href:"https://git-scm.com/",children:[d(yw,{}),d("p",{children:"Git"})]}),b(it,{href:"https://github.com/",children:[d(Rw,{}),d("p",{children:"Github"})]}),b(it,{href:"https://eslint.org/",children:[d(ww,{}),d("p",{children:"Eslint"})]}),b(it,{href:"https://prettier.io/",children:[d(Sw,{}),d("p",{children:"Prettier"})]}),b(it,{href:"https://vite.dev/",children:[d(xw,{}),d("p",{children:"Vite"})]}),b(it,{href:"https://vercel.com",children:[d(Ew,{}),d("p",{children:"Vercel"})]}),b(it,{href:"https://code.visualstudio.com/",children:[d(Cw,{}),d("p",{children:"VS code"})]}),b(it,{href:"https://playwright.dev",children:[d(_w,{}),d("p",{children:"Playwright"})]}),b(it,{href:"https://jestjs.io/",children:[d(Lw,{}),d("p",{children:"Jest"})]}),b(it,{href:"https://emotion.sh",children:[d(Ow,{}),d("p",{children:"Emotion"})]}),b(it,{href:"https://fonts.google.com/icons",children:[d(Pw,{}),d("p",{children:"Material icons"})]}),b(it,{href:"https://github.com/nfl/react-helmet",children:[d(Tw,{}),d("p",{children:"React-helmet"})]}),b(it,{href:"https://github.com/tschaub/gh-pages",children:[d(kw,{}),d("p",{children:"Gh-pages"})]})]})]})}function Iw(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40px",viewBox:"0 -960 960 960",width:"40px",fill:"currentColor",children:d("path",{d:"M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm-40-160h80v-240h-80v240Zm40 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})})}const bw=H` ${ml} -`,bw=H` +`,Fw=H` display: flex; align-items: center; gap: 8px; -`;function zw(){const{ref:e}=vl();return F("div",{css:Fw,ref:e,children:[F("h1",{css:bw,children:[d(Iw,{}),"Path not found"]}),"Looks like the path you are trying to reach does not exist. Run back"," ",d(di,{to:"/",children:"Home"}),"!"]})}const jw=H` +`;function zw(){const{ref:e}=vl();return b("div",{css:bw,ref:e,children:[b("h1",{css:Fw,children:[d(Iw,{}),"Path not found"]}),"Looks like the path you are trying to reach does not exist. Run back"," ",d(di,{to:"/",children:"Home"}),"!"]})}const jw=H` display: flex; gap: 4px; flex-direction: column; @@ -427,7 +427,7 @@ object-assign select { width: fit-content; } -`;function Uw({label:e,options:t,hideLabel:n=!1,...r}){return F("span",{css:jw,children:[n?null:d("label",{htmlFor:e,children:e}),d("select",{...r,id:e,"aria-label":e,title:e,children:t.map(i=>d("option",{value:i.value,children:i.label},i.value))})]})}const $w="https://api.spaceflightnewsapi.net/v4";async function Hw({limit:e,offset:t,search:n}){const r=new URLSearchParams;return r.append("limit",e.toString()),r.append("offset",t.toString()),r.append("search",n),await(await fetch(`${$w}/articles?${r.toString()}`)).json()}var yl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wr=typeof window>"u"||"Deno"in globalThis;function Ft(){}function Bw(e,t){return typeof e=="function"?e(t):e}function pc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ei(e,t){return typeof e=="function"?e(t):e}function Yt(e,t){return typeof e=="function"?e(t):e}function tp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:a}=e;if(l){if(r){if(t.queryHash!==Bf(l,t.options))return!1}else if(!rl(t.queryKey,l))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function np(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(nl(t.options.mutationKey)!==nl(o))return!1}else if(!rl(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Bf(e,t){return((t==null?void 0:t.queryKeyHashFn)||nl)(e)}function nl(e){return JSON.stringify(e,(t,n)=>vc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function rl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!rl(e[n],t[n])):!1}function Mm(e,t){if(e===t)return e;const n=rp(e)&&rp(t);if(n||vc(e)&&vc(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),l=o.length,a=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function yc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mm(e,t):t}function Vw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Qw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wf=Symbol();function Dm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _r,Qn,Ci,fp,qw=(fp=class extends yl{constructor(){super();K(this,_r);K(this,Qn);K(this,Ci);U(this,Ci,t=>{if(!Wr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Qn)||this.setEventListener(x(this,Ci))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Qn))==null||t.call(this),U(this,Qn,void 0))}setEventListener(t){var n;U(this,Ci,t),(n=x(this,Qn))==null||n.call(this),U(this,Qn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,_r)!==t&&(U(this,_r,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,_r)=="boolean"?x(this,_r):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_r=new WeakMap,Qn=new WeakMap,Ci=new WeakMap,fp),Vf=new qw,Ti,qn,ki,dp,Kw=(dp=class extends yl{constructor(){super();K(this,Ti,!0);K(this,qn);K(this,ki);U(this,ki,t=>{if(!Wr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,qn)||this.setEventListener(x(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,qn))==null||t.call(this),U(this,qn,void 0))}setEventListener(t){var n;U(this,ki,t),(n=x(this,qn))==null||n.call(this),U(this,qn,t(this.setOnline.bind(this)))}setOnline(t){x(this,Ti)!==t&&(U(this,Ti,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Ti)}},Ti=new WeakMap,qn=new WeakMap,ki=new WeakMap,dp),qa=new Kw;function gc(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Gw(e){return Math.min(1e3*2**e,3e4)}function Nm(e){return(e??"online")==="online"?qa.isOnline():!0}var Am=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cu(e){return e instanceof Am}function Im(e){let t=!1,n=0,r=!1,i;const o=gc(),l=g=>{var k;r||(p(new Am(g)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},s=()=>{t=!1},u=()=>Vf.isFocused()&&(e.networkMode==="always"||qa.isOnline())&&e.canRun(),f=()=>Nm(e.networkMode)&&e.canRun(),c=g=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,g),i==null||i(),o.resolve(g))},p=g=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,g),i==null||i(),o.reject(g))},v=()=>new Promise(g=>{var k;i=m=>{(r||u())&&g(m)},(k=e.onPause)==null||k.call(e)}).then(()=>{var g;i=void 0,r||(g=e.onContinue)==null||g.call(e)}),E=()=>{if(r)return;let g;const k=n===0?e.initialPromise:void 0;try{g=k??e.fn()}catch(m){g=Promise.reject(m)}Promise.resolve(g).then(c).catch(m=>{var M;if(r)return;const h=e.retry??(Wr?0:3),y=e.retryDelay??Gw,T=typeof y=="function"?y(n,m):y,_=h===!0||typeof h=="number"&&nu()?void 0:v()).then(()=>{t?p(m):E()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:s,canStart:f,start:()=>(f()?E():v().then(E),o)}}function Yw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},l=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(s=>{n(s)})})})};return{batch:a=>{let s;t++;try{s=a()}finally{t--,t||l()}return s},batchCalls:a=>(...s)=>{o(()=>{a(...s)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var qe=Yw(),Or,hp,Fm=(hp=class{constructor(){K(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pc(this.gcTime)&&U(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr?1/0:5*60*1e3))}clearGcTimeout(){x(this,Or)&&(clearTimeout(x(this,Or)),U(this,Or,void 0))}},Or=new WeakMap,hp),Pi,Ri,It,Je,il,Lr,Qt,Cn,pp,Zw=(pp=class extends Fm{constructor(t){super();K(this,Qt);K(this,Pi);K(this,Ri);K(this,It);K(this,Je);K(this,il);K(this,Lr);U(this,Lr,!1),U(this,il,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,It,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Pi,Xw(this.options)),this.state=t.state??x(this,Pi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,Je))==null?void 0:t.promise}setOptions(t){this.options={...x(this,il),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,It).remove(this)}setData(t,n){const r=yc(this.state.data,t,this.options);return te(this,Qt,Cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){te(this,Qt,Cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,Je))==null?void 0:r.promise;return(i=x(this,Je))==null||i.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Pi))}isActive(){return this.observers.some(t=>Yt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Lm(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Je))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Je))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,It).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,Je)&&(x(this,Lr)?x(this,Je).cancel({revert:!0}):x(this,Je).cancelRetry()),this.scheduleGc()),x(this,It).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||te(this,Qt,Cn).call(this,{type:"invalidate"})}fetch(t,n){var s,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Je))return x(this,Je).continueRetry(),x(this,Je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(p=>p.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(U(this,Lr,!0),r.signal)})},o=()=>{const c=Dm(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),U(this,Lr,!1),this.options.persister?this.options.persister(c,p,this):c(p)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(s=this.options.behavior)==null||s.onFetch(l,this),U(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&te(this,Qt,Cn).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=c=>{var p,v,E,g;cu(c)&&c.silent||te(this,Qt,Cn).call(this,{type:"error",error:c}),cu(c)||((v=(p=x(this,It).config).onError)==null||v.call(p,c,this),(g=(E=x(this,It).config).onSettled)==null||g.call(E,this.state.data,c,this)),this.scheduleGc()};return U(this,Je,Im({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var p,v,E,g;if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(k){a(k);return}(v=(p=x(this,It).config).onSuccess)==null||v.call(p,c,this),(g=(E=x(this,It).config).onSettled)==null||g.call(E,c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,p)=>{te(this,Qt,Cn).call(this,{type:"failed",failureCount:c,error:p})},onPause:()=>{te(this,Qt,Cn).call(this,{type:"pause"})},onContinue:()=>{te(this,Qt,Cn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),x(this,Je).start()}},Pi=new WeakMap,Ri=new WeakMap,It=new WeakMap,Je=new WeakMap,il=new WeakMap,Lr=new WeakMap,Qt=new WeakSet,Cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bm(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return cu(i)&&i.revert&&x(this,Ri)?{...x(this,Ri),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,It).notify({query:this,type:"updated",action:t})})},pp);function bm(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Xw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,mp,Jw=(mp=class extends yl{constructor(t={}){super();K(this,on);this.config=t,U(this,on,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Bf(i,n);let l=this.get(o);return l||(l=new Zw({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){x(this,on).has(t.queryHash)||(x(this,on).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,on).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,on).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,on).get(t)}getAll(){return[...x(this,on).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>tp(t,r)):n}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},on=new WeakMap,mp),ln,ot,Mr,an,$n,vp,e6=(vp=class extends Fm{constructor(t){super();K(this,an);K(this,ln);K(this,ot);K(this,Mr);this.mutationId=t.mutationId,U(this,ot,t.mutationCache),U(this,ln,[]),this.state=t.state||t6(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,ln).includes(t)||(x(this,ln).push(t),this.clearGcTimeout(),x(this,ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,ln,x(this,ln).filter(n=>n!==t)),this.scheduleGc(),x(this,ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,ln).length||(this.state.status==="pending"?this.scheduleGc():x(this,ot).remove(this))}continue(){var t;return((t=x(this,Mr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,a,s,u,f,c,p,v,E,g,k,m,h,y,T,_,M,O;U(this,Mr,Im({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,N)=>{te(this,an,$n).call(this,{type:"failed",failureCount:w,error:N})},onPause:()=>{te(this,an,$n).call(this,{type:"pause"})},onContinue:()=>{te(this,an,$n).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,ot).canRun(this)}));const n=this.state.status==="pending",r=!x(this,Mr).canStart();try{if(!n){te(this,an,$n).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,ot).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));N!==this.state.context&&te(this,an,$n).call(this,{type:"pending",context:N,variables:t,isPaused:r})}const w=await x(this,Mr).start();return await((u=(s=x(this,ot).config).onSuccess)==null?void 0:u.call(s,w,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,w,t,this.state.context)),await((v=(p=x(this,ot).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((g=(E=this.options).onSettled)==null?void 0:g.call(E,w,null,t,this.state.context)),te(this,an,$n).call(this,{type:"success",data:w}),w}catch(w){try{throw await((m=(k=x(this,ot).config).onError)==null?void 0:m.call(k,w,t,this.state.context,this)),await((y=(h=this.options).onError)==null?void 0:y.call(h,w,t,this.state.context)),await((_=(T=x(this,ot).config).onSettled)==null?void 0:_.call(T,void 0,w,this.state.variables,this.state.context,this)),await((O=(M=this.options).onSettled)==null?void 0:O.call(M,void 0,w,t,this.state.context)),w}finally{te(this,an,$n).call(this,{type:"error",error:w})}}finally{x(this,ot).runNext(this)}}},ln=new WeakMap,ot=new WeakMap,Mr=new WeakMap,an=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),qe.batch(()=>{x(this,ln).forEach(r=>{r.onMutationUpdate(t)}),x(this,ot).notify({mutation:this,type:"updated",action:t})})},vp);function t6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ct,ol,yp,n6=(yp=class extends yl{constructor(t={}){super();K(this,Ct);K(this,ol);this.config=t,U(this,Ct,new Map),U(this,ol,Date.now())}build(t,n,r){const i=new e6({mutationCache:this,mutationId:++_l(this,ol)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Xl(t),r=x(this,Ct).get(n)??[];r.push(t),x(this,Ct).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Xl(t);if(x(this,Ct).has(n)){const i=(r=x(this,Ct).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Ct).delete(n):x(this,Ct).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Ct).get(Xl(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Ct).get(Xl(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Ct).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>np(n,r))}findAll(t={}){return this.getAll().filter(n=>np(t,n))}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},Ct=new WeakMap,ol=new WeakMap,yp);function Xl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function op(e){return{onFetch:(t,n)=>{var f,c,p,v,E;const r=t.options,i=(p=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let a={pages:[],pageParams:[]},s=0;const u=async()=>{let g=!1;const k=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},m=Dm(t.options,t.fetchOptions),h=async(y,T,_)=>{if(g)return Promise.reject();if(T==null&&y.pages.length)return Promise.resolve(y);const M={queryKey:t.queryKey,pageParam:T,direction:_?"backward":"forward",meta:t.options.meta};k(M);const O=await m(M),{maxPages:w}=t.options,N=_?Qw:Vw;return{pages:N(y.pages,O,w),pageParams:N(y.pageParams,T,w)}};if(i&&o.length){const y=i==="backward",T=y?r6:lp,_={pages:o,pageParams:l},M=T(r,_);a=await h(_,M,y)}else{const y=e??o.length;do{const T=s===0?l[0]??r.initialPageParam:lp(r,a);if(s>0&&T==null)break;a=await h(a,T),s++}while(s{var g,k;return(k=(g=t.options).persister)==null?void 0:k.call(g,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function lp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function r6(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Le,Kn,Gn,_i,Oi,Yn,Li,Mi,gp,i6=(gp=class{constructor(e={}){K(this,Le);K(this,Kn);K(this,Gn);K(this,_i);K(this,Oi);K(this,Yn);K(this,Li);K(this,Mi);U(this,Le,e.queryCache||new Jw),U(this,Kn,e.mutationCache||new n6),U(this,Gn,e.defaultOptions||{}),U(this,_i,new Map),U(this,Oi,new Map),U(this,Yn,0)}mount(){_l(this,Yn)._++,x(this,Yn)===1&&(U(this,Li,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Le).onFocus())})),U(this,Mi,qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Le).onOnline())})))}unmount(){var e,t;_l(this,Yn)._--,x(this,Yn)===0&&((e=x(this,Li))==null||e.call(this),U(this,Li,void 0),(t=x(this,Mi))==null||t.call(this),U(this,Mi,void 0))}isFetching(e){return x(this,Le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,Kn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=x(this,Le).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ei(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,Le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=x(this,Le).get(r.queryHash),o=i==null?void 0:i.state.data,l=Bw(t,o);if(l!==void 0)return x(this,Le).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return qe.batch(()=>x(this,Le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,Le);qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,Le),r={type:"active",...e};return qe.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=qe.batch(()=>x(this,Le).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ft).catch(Ft)}invalidateQueries(e={},t={}){return qe.batch(()=>{if(x(this,Le).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=qe.batch(()=>x(this,Le).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ft)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,Le).build(this,t);return n.isStaleByTime(Ei(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=op(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=op(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qa.isOnline()?x(this,Kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Le)}getMutationCache(){return x(this,Kn)}getDefaultOptions(){return x(this,Gn)}setDefaultOptions(e){U(this,Gn,e)}setQueryDefaults(e,t){x(this,_i).set(nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,_i).values()];let n={};return t.forEach(r=>{rl(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,Oi).set(nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,Oi).values()];let n={};return t.forEach(r=>{rl(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Wf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,Le).clear(),x(this,Kn).clear()}},Le=new WeakMap,Kn=new WeakMap,Gn=new WeakMap,_i=new WeakMap,Oi=new WeakMap,Yn=new WeakMap,Li=new WeakMap,Mi=new WeakMap,gp),mt,ne,ll,lt,Dr,Di,Zn,sn,al,Ni,Ai,Nr,Ar,Xn,Ii,ue,wo,wc,Sc,xc,Ec,Cc,Tc,kc,zm,wp,o6=(wp=class extends yl{constructor(t,n){super();K(this,ue);K(this,mt);K(this,ne);K(this,ll);K(this,lt);K(this,Dr);K(this,Di);K(this,Zn);K(this,sn);K(this,al);K(this,Ni);K(this,Ai);K(this,Nr);K(this,Ar);K(this,Xn);K(this,Ii,new Set);this.options=n,U(this,mt,t),U(this,sn,null),U(this,Zn,gc()),this.options.experimental_prefetchInRender||x(this,Zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,ne).addObserver(this),ap(x(this,ne),this.options)?te(this,ue,wo).call(this):this.updateResult(),te(this,ue,Ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pc(x(this,ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pc(x(this,ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,te(this,ue,Cc).call(this),te(this,ue,Tc).call(this),x(this,ne).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,ne);if(this.options=x(this,mt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Yt(this.options.enabled,x(this,ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");te(this,ue,kc).call(this),x(this,ne).setOptions(this.options),r._defaulted&&!mc(this.options,r)&&x(this,mt).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,ne),observer:this});const o=this.hasListeners();o&&sp(x(this,ne),i,this.options,r)&&te(this,ue,wo).call(this),this.updateResult(n),o&&(x(this,ne)!==i||Yt(this.options.enabled,x(this,ne))!==Yt(r.enabled,x(this,ne))||Ei(this.options.staleTime,x(this,ne))!==Ei(r.staleTime,x(this,ne)))&&te(this,ue,wc).call(this);const l=te(this,ue,Sc).call(this);o&&(x(this,ne)!==i||Yt(this.options.enabled,x(this,ne))!==Yt(r.enabled,x(this,ne))||l!==x(this,Xn))&&te(this,ue,xc).call(this,l)}getOptimisticResult(t){const n=x(this,mt).getQueryCache().build(x(this,mt),t),r=this.createResult(n,t);return a6(this,r)&&(U(this,lt,r),U(this,Di,this.options),U(this,Dr,x(this,ne).state)),r}getCurrentResult(){return x(this,lt)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){x(this,Ii).add(t)}getCurrentQuery(){return x(this,ne)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,mt).defaultQueryOptions(t),r=x(this,mt).getQueryCache().build(x(this,mt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return te(this,ue,wo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,lt)))}createResult(t,n){var w;const r=x(this,ne),i=this.options,o=x(this,lt),l=x(this,Dr),a=x(this,Di),u=t!==r?t.state:x(this,ll),{state:f}=t;let c={...f},p=!1,v;if(n._optimisticResults){const N=this.hasListeners(),A=!N&&ap(t,n),q=N&&sp(t,r,n,i);(A||q)&&(c={...c,...bm(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:E,errorUpdatedAt:g,status:k}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(l==null?void 0:l.data)&&n.select===x(this,al))v=x(this,Ni);else try{U(this,al,n.select),v=n.select(c.data),v=yc(o==null?void 0:o.data,v,n),U(this,Ni,v),U(this,sn,null)}catch(N){U(this,sn,N)}else v=c.data;if(n.placeholderData!==void 0&&v===void 0&&k==="pending"){let N;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=o.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((w=x(this,Ai))==null?void 0:w.state.data,x(this,Ai)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),U(this,sn,null)}catch(A){U(this,sn,A)}N!==void 0&&(k="success",v=yc(o==null?void 0:o.data,N,n),p=!0)}x(this,sn)&&(E=x(this,sn),v=x(this,Ni),g=Date.now(),k="error");const m=c.fetchStatus==="fetching",h=k==="pending",y=k==="error",T=h&&m,_=v!==void 0,O={status:k,fetchStatus:c.fetchStatus,isPending:h,isSuccess:k==="success",isError:y,isInitialLoading:T,isLoading:T,data:v,dataUpdatedAt:c.dataUpdatedAt,error:E,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!h,isLoadingError:y&&!_,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:y&&_,isStale:Qf(t,n),refetch:this.refetch,promise:x(this,Zn)};if(this.options.experimental_prefetchInRender){const N=oe=>{O.status==="error"?oe.reject(O.error):O.data!==void 0&&oe.resolve(O.data)},A=()=>{const oe=U(this,Zn,O.promise=gc());N(oe)},q=x(this,Zn);switch(q.status){case"pending":t.queryHash===r.queryHash&&N(q);break;case"fulfilled":(O.status==="error"||O.data!==q.value)&&A();break;case"rejected":(O.status!=="error"||O.error!==q.reason)&&A();break}}return O}updateResult(t){const n=x(this,lt),r=this.createResult(x(this,ne),this.options);if(U(this,Dr,x(this,ne).state),U(this,Di,this.options),x(this,Dr).data!==void 0&&U(this,Ai,x(this,ne)),mc(r,n))return;U(this,lt,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,a=typeof l=="function"?l():l;if(a==="all"||!a&&!x(this,Ii).size)return!0;const s=new Set(a??x(this,Ii));return this.options.throwOnError&&s.add("error"),Object.keys(x(this,lt)).some(u=>{const f=u;return x(this,lt)[f]!==n[f]&&s.has(f)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),te(this,ue,zm).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&te(this,ue,Ec).call(this)}},mt=new WeakMap,ne=new WeakMap,ll=new WeakMap,lt=new WeakMap,Dr=new WeakMap,Di=new WeakMap,Zn=new WeakMap,sn=new WeakMap,al=new WeakMap,Ni=new WeakMap,Ai=new WeakMap,Nr=new WeakMap,Ar=new WeakMap,Xn=new WeakMap,Ii=new WeakMap,ue=new WeakSet,wo=function(t){te(this,ue,kc).call(this);let n=x(this,ne).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ft)),n},wc=function(){te(this,ue,Cc).call(this);const t=Ei(this.options.staleTime,x(this,ne));if(Wr||x(this,lt).isStale||!pc(t))return;const r=Lm(x(this,lt).dataUpdatedAt,t)+1;U(this,Nr,setTimeout(()=>{x(this,lt).isStale||this.updateResult()},r))},Sc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,ne)):this.options.refetchInterval)??!1},xc=function(t){te(this,ue,Tc).call(this),U(this,Xn,t),!(Wr||Yt(this.options.enabled,x(this,ne))===!1||!pc(x(this,Xn))||x(this,Xn)===0)&&U(this,Ar,setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&te(this,ue,wo).call(this)},x(this,Xn)))},Ec=function(){te(this,ue,wc).call(this),te(this,ue,xc).call(this,te(this,ue,Sc).call(this))},Cc=function(){x(this,Nr)&&(clearTimeout(x(this,Nr)),U(this,Nr,void 0))},Tc=function(){x(this,Ar)&&(clearInterval(x(this,Ar)),U(this,Ar,void 0))},kc=function(){const t=x(this,mt).getQueryCache().build(x(this,mt),this.options);if(t===x(this,ne))return;const n=x(this,ne);U(this,ne,t),U(this,ll,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},zm=function(t){qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,lt))}),x(this,mt).getQueryCache().notify({query:x(this,ne),type:"observerResultsUpdated"})})},wp);function l6(e,t){return Yt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ap(e,t){return l6(e,t)||e.state.data!==void 0&&Pc(e,t,t.refetchOnMount)}function Pc(e,t,n){if(Yt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qf(e,t)}return!1}function sp(e,t,n,r){return(e!==t||Yt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qf(e,n)}function Qf(e,t){return Yt(t.enabled,e)!==!1&&e.isStaleByTime(Ei(t.staleTime,e))}function a6(e,t){return!mc(e.getCurrentResult(),t)}var jm=R.createContext(void 0),s6=e=>{const t=R.useContext(jm);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},u6=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Oo.jsx(jm.Provider,{value:e,children:t})),Um=R.createContext(!1),c6=()=>R.useContext(Um);Um.Provider;function f6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var d6=R.createContext(f6()),h6=()=>R.useContext(d6);function p6(e,t){return typeof e=="function"?e(...t):!!e}function m6(){}var v6=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},y6=e=>{R.useEffect(()=>{e.clearReset()},[e])},g6=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&p6(n,[e.error,r]),w6=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},S6=(e,t)=>e.isLoading&&e.isFetching&&!t,x6=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,up=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function E6(e,t,n){var f,c,p,v,E;const r=s6(),i=c6(),o=h6(),l=r.defaultQueryOptions(e);(c=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||c.call(f,l),l._optimisticResults=i?"isRestoring":"optimistic",w6(l),v6(l,o),y6(o);const a=!r.getQueryCache().get(l.queryHash),[s]=R.useState(()=>new t(r,l)),u=s.getOptimisticResult(l);if(R.useSyncExternalStore(R.useCallback(g=>{const k=i?()=>{}:s.subscribe(qe.batchCalls(g));return s.updateResult(),k},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),x6(l,u))throw up(l,s,o);if(g6({result:u,errorResetBoundary:o,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash)}))throw u.error;if((v=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||v.call(p,l,u),l.experimental_prefetchInRender&&!Wr&&S6(u,i)){const g=a?up(l,s,o):(E=r.getQueryCache().get(l.queryHash))==null?void 0:E.promise;g==null||g.catch(m6).finally(()=>{s.updateResult()})}return l.notifyOnChangeProps?u:s.trackResult(u)}function C6(e,t){return E6(e,o6)}function T6(){return F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",children:[d("circle",{cx:"50",cy:"50",r:"35",stroke:"var(--bg-accent)",strokeWidth:"8",fill:"none"}),F("circle",{cx:"50",cy:"50",r:"35",stroke:"currentColor",strokeWidth:"8",fill:"none",strokeDasharray:"220",strokeDashoffset:"0",children:[d("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.5s",repeatCount:"indefinite"}),d("animate",{attributeName:"stroke-dashoffset",values:"0;220",dur:"1.5s",repeatCount:"indefinite"})]}),F("g",{transform:"translate(35,35) scale(0.8)",children:[d("circle",{cx:"15",cy:"15",r:"10",stroke:"var(--bg-accent)",strokeWidth:"3",fill:"none",children:d("animate",{attributeName:"opacity",values:"1;0.3;1",dur:"1.5s",repeatCount:"indefinite"})}),d("line",{x1:"22",y1:"22",x2:"30",y2:"30",stroke:"var(--bg-accent)",strokeWidth:"3",strokeLinecap:"round",children:d("animate",{attributeName:"opacity",values:"1;0.3;1",dur:"1.5s",repeatCount:"indefinite"})})]})]})}const k6=H` +`;function Uw({label:e,options:t,hideLabel:n=!1,...r}){return b("span",{css:jw,children:[n?null:d("label",{htmlFor:e,children:e}),d("select",{...r,id:e,"aria-label":e,title:e,children:t.map(i=>d("option",{value:i.value,children:i.label},i.value))})]})}const $w="https://api.spaceflightnewsapi.net/v4";async function Hw({limit:e,offset:t,search:n}){const r=new URLSearchParams;return r.append("limit",e.toString()),r.append("offset",t.toString()),r.append("search",n),await(await fetch(`${$w}/articles?${r.toString()}`)).json()}var gl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Wr=typeof window>"u"||"Deno"in globalThis;function bt(){}function Bw(e,t){return typeof e=="function"?e(t):e}function pc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Lm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ei(e,t){return typeof e=="function"?e(t):e}function Yt(e,t){return typeof e=="function"?e(t):e}function tp(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:a}=e;if(l){if(r){if(t.queryHash!==Bf(l,t.options))return!1}else if(!rl(t.queryKey,l))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function np(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(nl(t.options.mutationKey)!==nl(o))return!1}else if(!rl(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Bf(e,t){return((t==null?void 0:t.queryKeyHashFn)||nl)(e)}function nl(e){return JSON.stringify(e,(t,n)=>vc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function rl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!rl(e[n],t[n])):!1}function Mm(e,t){if(e===t)return e;const n=rp(e)&&rp(t);if(n||vc(e)&&vc(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),l=o.length,a=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function gc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Mm(e,t):t}function Vw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Qw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wf=Symbol();function Dm(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _r,Qn,Ci,fp,qw=(fp=class extends gl{constructor(){super();K(this,_r);K(this,Qn);K(this,Ci);U(this,Ci,t=>{if(!Wr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){x(this,Qn)||this.setEventListener(x(this,Ci))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,Qn))==null||t.call(this),U(this,Qn,void 0))}setEventListener(t){var n;U(this,Ci,t),(n=x(this,Qn))==null||n.call(this),U(this,Qn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){x(this,_r)!==t&&(U(this,_r,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof x(this,_r)=="boolean"?x(this,_r):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_r=new WeakMap,Qn=new WeakMap,Ci=new WeakMap,fp),Vf=new qw,Ti,qn,ki,dp,Kw=(dp=class extends gl{constructor(){super();K(this,Ti,!0);K(this,qn);K(this,ki);U(this,ki,t=>{if(!Wr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){x(this,qn)||this.setEventListener(x(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=x(this,qn))==null||t.call(this),U(this,qn,void 0))}setEventListener(t){var n;U(this,ki,t),(n=x(this,qn))==null||n.call(this),U(this,qn,t(this.setOnline.bind(this)))}setOnline(t){x(this,Ti)!==t&&(U(this,Ti,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return x(this,Ti)}},Ti=new WeakMap,qn=new WeakMap,ki=new WeakMap,dp),qa=new Kw;function yc(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Gw(e){return Math.min(1e3*2**e,3e4)}function Nm(e){return(e??"online")==="online"?qa.isOnline():!0}var Am=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function cu(e){return e instanceof Am}function Im(e){let t=!1,n=0,r=!1,i;const o=yc(),l=y=>{var k;r||(p(new Am(y)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},s=()=>{t=!1},u=()=>Vf.isFocused()&&(e.networkMode==="always"||qa.isOnline())&&e.canRun(),f=()=>Nm(e.networkMode)&&e.canRun(),c=y=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,y),i==null||i(),o.resolve(y))},p=y=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,y),i==null||i(),o.reject(y))},v=()=>new Promise(y=>{var k;i=m=>{(r||u())&&y(m)},(k=e.onPause)==null||k.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),E=()=>{if(r)return;let y;const k=n===0?e.initialPromise:void 0;try{y=k??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(c).catch(m=>{var M;if(r)return;const h=e.retry??(Wr?0:3),g=e.retryDelay??Gw,T=typeof g=="function"?g(n,m):g,_=h===!0||typeof h=="number"&&nu()?void 0:v()).then(()=>{t?p(m):E()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:s,canStart:f,start:()=>(f()?E():v().then(E),o)}}function Yw(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const o=a=>{t?e.push(a):i(()=>{n(a)})},l=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(s=>{n(s)})})})};return{batch:a=>{let s;t++;try{s=a()}finally{t--,t||l()}return s},batchCalls:a=>(...s)=>{o(()=>{a(...s)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var qe=Yw(),Or,hp,bm=(hp=class{constructor(){K(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pc(this.gcTime)&&U(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wr?1/0:5*60*1e3))}clearGcTimeout(){x(this,Or)&&(clearTimeout(x(this,Or)),U(this,Or,void 0))}},Or=new WeakMap,hp),Pi,Ri,It,Je,il,Lr,Qt,Cn,pp,Zw=(pp=class extends bm{constructor(t){super();K(this,Qt);K(this,Pi);K(this,Ri);K(this,It);K(this,Je);K(this,il);K(this,Lr);U(this,Lr,!1),U(this,il,t.defaultOptions),this.setOptions(t.options),this.observers=[],U(this,It,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,U(this,Pi,Xw(this.options)),this.state=t.state??x(this,Pi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=x(this,Je))==null?void 0:t.promise}setOptions(t){this.options={...x(this,il),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&x(this,It).remove(this)}setData(t,n){const r=gc(this.state.data,t,this.options);return te(this,Qt,Cn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){te(this,Qt,Cn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=x(this,Je))==null?void 0:r.promise;return(i=x(this,Je))==null||i.cancel(t),n?n.then(bt).catch(bt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(x(this,Pi))}isActive(){return this.observers.some(t=>Yt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Lm(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Je))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=x(this,Je))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),x(this,It).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(x(this,Je)&&(x(this,Lr)?x(this,Je).cancel({revert:!0}):x(this,Je).cancelRetry()),this.scheduleGc()),x(this,It).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||te(this,Qt,Cn).call(this,{type:"invalidate"})}fetch(t,n){var s,u,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(x(this,Je))return x(this,Je).continueRetry(),x(this,Je).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(p=>p.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(U(this,Lr,!0),r.signal)})},o=()=>{const c=Dm(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),U(this,Lr,!1),this.options.persister?this.options.persister(c,p,this):c(p)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(s=this.options.behavior)==null||s.onFetch(l,this),U(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&te(this,Qt,Cn).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const a=c=>{var p,v,E,y;cu(c)&&c.silent||te(this,Qt,Cn).call(this,{type:"error",error:c}),cu(c)||((v=(p=x(this,It).config).onError)==null||v.call(p,c,this),(y=(E=x(this,It).config).onSettled)==null||y.call(E,this.state.data,c,this)),this.scheduleGc()};return U(this,Je,Im({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var p,v,E,y;if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(k){a(k);return}(v=(p=x(this,It).config).onSuccess)==null||v.call(p,c,this),(y=(E=x(this,It).config).onSettled)==null||y.call(E,c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,p)=>{te(this,Qt,Cn).call(this,{type:"failed",failureCount:c,error:p})},onPause:()=>{te(this,Qt,Cn).call(this,{type:"pause"})},onContinue:()=>{te(this,Qt,Cn).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),x(this,Je).start()}},Pi=new WeakMap,Ri=new WeakMap,It=new WeakMap,Je=new WeakMap,il=new WeakMap,Lr=new WeakMap,Qt=new WeakSet,Cn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Fm(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return cu(i)&&i.revert&&x(this,Ri)?{...x(this,Ri),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),qe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),x(this,It).notify({query:this,type:"updated",action:t})})},pp);function Fm(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nm(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Xw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,mp,Jw=(mp=class extends gl{constructor(t={}){super();K(this,on);this.config=t,U(this,on,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Bf(i,n);let l=this.get(o);return l||(l=new Zw({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){x(this,on).has(t.queryHash)||(x(this,on).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=x(this,on).get(t.queryHash);n&&(t.destroy(),n===t&&x(this,on).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,on).get(t)}getAll(){return[...x(this,on).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>tp(t,r)):n}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){qe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){qe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},on=new WeakMap,mp),ln,ot,Mr,an,$n,vp,e6=(vp=class extends bm{constructor(t){super();K(this,an);K(this,ln);K(this,ot);K(this,Mr);this.mutationId=t.mutationId,U(this,ot,t.mutationCache),U(this,ln,[]),this.state=t.state||t6(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,ln).includes(t)||(x(this,ln).push(t),this.clearGcTimeout(),x(this,ot).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){U(this,ln,x(this,ln).filter(n=>n!==t)),this.scheduleGc(),x(this,ot).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,ln).length||(this.state.status==="pending"?this.scheduleGc():x(this,ot).remove(this))}continue(){var t;return((t=x(this,Mr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,a,s,u,f,c,p,v,E,y,k,m,h,g,T,_,M,O;U(this,Mr,Im({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(w,N)=>{te(this,an,$n).call(this,{type:"failed",failureCount:w,error:N})},onPause:()=>{te(this,an,$n).call(this,{type:"pause"})},onContinue:()=>{te(this,an,$n).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,ot).canRun(this)}));const n=this.state.status==="pending",r=!x(this,Mr).canStart();try{if(!n){te(this,an,$n).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=x(this,ot).config).onMutate)==null?void 0:o.call(i,t,this));const N=await((a=(l=this.options).onMutate)==null?void 0:a.call(l,t));N!==this.state.context&&te(this,an,$n).call(this,{type:"pending",context:N,variables:t,isPaused:r})}const w=await x(this,Mr).start();return await((u=(s=x(this,ot).config).onSuccess)==null?void 0:u.call(s,w,t,this.state.context,this)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,w,t,this.state.context)),await((v=(p=x(this,ot).config).onSettled)==null?void 0:v.call(p,w,null,this.state.variables,this.state.context,this)),await((y=(E=this.options).onSettled)==null?void 0:y.call(E,w,null,t,this.state.context)),te(this,an,$n).call(this,{type:"success",data:w}),w}catch(w){try{throw await((m=(k=x(this,ot).config).onError)==null?void 0:m.call(k,w,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,w,t,this.state.context)),await((_=(T=x(this,ot).config).onSettled)==null?void 0:_.call(T,void 0,w,this.state.variables,this.state.context,this)),await((O=(M=this.options).onSettled)==null?void 0:O.call(M,void 0,w,t,this.state.context)),w}finally{te(this,an,$n).call(this,{type:"error",error:w})}}finally{x(this,ot).runNext(this)}}},ln=new WeakMap,ot=new WeakMap,Mr=new WeakMap,an=new WeakSet,$n=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),qe.batch(()=>{x(this,ln).forEach(r=>{r.onMutationUpdate(t)}),x(this,ot).notify({mutation:this,type:"updated",action:t})})},vp);function t6(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ct,ol,gp,n6=(gp=class extends gl{constructor(t={}){super();K(this,Ct);K(this,ol);this.config=t,U(this,Ct,new Map),U(this,ol,Date.now())}build(t,n,r){const i=new e6({mutationCache:this,mutationId:++_l(this,ol)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Xl(t),r=x(this,Ct).get(n)??[];r.push(t),x(this,Ct).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Xl(t);if(x(this,Ct).has(n)){const i=(r=x(this,Ct).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?x(this,Ct).delete(n):x(this,Ct).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=x(this,Ct).get(Xl(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=x(this,Ct).get(Xl(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){qe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...x(this,Ct).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>np(n,r))}findAll(t={}){return this.getAll().filter(n=>np(t,n))}notify(t){qe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return qe.batch(()=>Promise.all(t.map(n=>n.continue().catch(bt))))}},Ct=new WeakMap,ol=new WeakMap,gp);function Xl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function op(e){return{onFetch:(t,n)=>{var f,c,p,v,E;const r=t.options,i=(p=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,o=((v=t.state.data)==null?void 0:v.pages)||[],l=((E=t.state.data)==null?void 0:E.pageParams)||[];let a={pages:[],pageParams:[]},s=0;const u=async()=>{let y=!1;const k=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},m=Dm(t.options,t.fetchOptions),h=async(g,T,_)=>{if(y)return Promise.reject();if(T==null&&g.pages.length)return Promise.resolve(g);const M={queryKey:t.queryKey,pageParam:T,direction:_?"backward":"forward",meta:t.options.meta};k(M);const O=await m(M),{maxPages:w}=t.options,N=_?Qw:Vw;return{pages:N(g.pages,O,w),pageParams:N(g.pageParams,T,w)}};if(i&&o.length){const g=i==="backward",T=g?r6:lp,_={pages:o,pageParams:l},M=T(r,_);a=await h(_,M,g)}else{const g=e??o.length;do{const T=s===0?l[0]??r.initialPageParam:lp(r,a);if(s>0&&T==null)break;a=await h(a,T),s++}while(s{var y,k;return(k=(y=t.options).persister)==null?void 0:k.call(y,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function lp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function r6(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Le,Kn,Gn,_i,Oi,Yn,Li,Mi,yp,i6=(yp=class{constructor(e={}){K(this,Le);K(this,Kn);K(this,Gn);K(this,_i);K(this,Oi);K(this,Yn);K(this,Li);K(this,Mi);U(this,Le,e.queryCache||new Jw),U(this,Kn,e.mutationCache||new n6),U(this,Gn,e.defaultOptions||{}),U(this,_i,new Map),U(this,Oi,new Map),U(this,Yn,0)}mount(){_l(this,Yn)._++,x(this,Yn)===1&&(U(this,Li,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Le).onFocus())})),U(this,Mi,qa.subscribe(async e=>{e&&(await this.resumePausedMutations(),x(this,Le).onOnline())})))}unmount(){var e,t;_l(this,Yn)._--,x(this,Yn)===0&&((e=x(this,Li))==null||e.call(this),U(this,Li,void 0),(t=x(this,Mi))==null||t.call(this),U(this,Mi,void 0))}isFetching(e){return x(this,Le).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return x(this,Kn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Le).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=x(this,Le).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ei(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return x(this,Le).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=x(this,Le).get(r.queryHash),o=i==null?void 0:i.state.data,l=Bw(t,o);if(l!==void 0)return x(this,Le).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return qe.batch(()=>x(this,Le).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=x(this,Le).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=x(this,Le);qe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=x(this,Le),r={type:"active",...e};return qe.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=qe.batch(()=>x(this,Le).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(bt).catch(bt)}invalidateQueries(e={},t={}){return qe.batch(()=>{if(x(this,Le).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=qe.batch(()=>x(this,Le).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(bt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(bt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=x(this,Le).build(this,t);return n.isStaleByTime(Ei(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(bt).catch(bt)}fetchInfiniteQuery(e){return e.behavior=op(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(bt).catch(bt)}ensureInfiniteQueryData(e){return e.behavior=op(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qa.isOnline()?x(this,Kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,Le)}getMutationCache(){return x(this,Kn)}getDefaultOptions(){return x(this,Gn)}setDefaultOptions(e){U(this,Gn,e)}setQueryDefaults(e,t){x(this,_i).set(nl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...x(this,_i).values()];let n={};return t.forEach(r=>{rl(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){x(this,Oi).set(nl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...x(this,Oi).values()];let n={};return t.forEach(r=>{rl(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...x(this,Gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Bf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Wf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...x(this,Gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){x(this,Le).clear(),x(this,Kn).clear()}},Le=new WeakMap,Kn=new WeakMap,Gn=new WeakMap,_i=new WeakMap,Oi=new WeakMap,Yn=new WeakMap,Li=new WeakMap,Mi=new WeakMap,yp),mt,ne,ll,lt,Dr,Di,Zn,sn,al,Ni,Ai,Nr,Ar,Xn,Ii,ue,wo,wc,Sc,xc,Ec,Cc,Tc,kc,zm,wp,o6=(wp=class extends gl{constructor(t,n){super();K(this,ue);K(this,mt);K(this,ne);K(this,ll);K(this,lt);K(this,Dr);K(this,Di);K(this,Zn);K(this,sn);K(this,al);K(this,Ni);K(this,Ai);K(this,Nr);K(this,Ar);K(this,Xn);K(this,Ii,new Set);this.options=n,U(this,mt,t),U(this,sn,null),U(this,Zn,yc()),this.options.experimental_prefetchInRender||x(this,Zn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(x(this,ne).addObserver(this),ap(x(this,ne),this.options)?te(this,ue,wo).call(this):this.updateResult(),te(this,ue,Ec).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pc(x(this,ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pc(x(this,ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,te(this,ue,Cc).call(this),te(this,ue,Tc).call(this),x(this,ne).removeObserver(this)}setOptions(t,n){const r=this.options,i=x(this,ne);if(this.options=x(this,mt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Yt(this.options.enabled,x(this,ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");te(this,ue,kc).call(this),x(this,ne).setOptions(this.options),r._defaulted&&!mc(this.options,r)&&x(this,mt).getQueryCache().notify({type:"observerOptionsUpdated",query:x(this,ne),observer:this});const o=this.hasListeners();o&&sp(x(this,ne),i,this.options,r)&&te(this,ue,wo).call(this),this.updateResult(n),o&&(x(this,ne)!==i||Yt(this.options.enabled,x(this,ne))!==Yt(r.enabled,x(this,ne))||Ei(this.options.staleTime,x(this,ne))!==Ei(r.staleTime,x(this,ne)))&&te(this,ue,wc).call(this);const l=te(this,ue,Sc).call(this);o&&(x(this,ne)!==i||Yt(this.options.enabled,x(this,ne))!==Yt(r.enabled,x(this,ne))||l!==x(this,Xn))&&te(this,ue,xc).call(this,l)}getOptimisticResult(t){const n=x(this,mt).getQueryCache().build(x(this,mt),t),r=this.createResult(n,t);return a6(this,r)&&(U(this,lt,r),U(this,Di,this.options),U(this,Dr,x(this,ne).state)),r}getCurrentResult(){return x(this,lt)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){x(this,Ii).add(t)}getCurrentQuery(){return x(this,ne)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=x(this,mt).defaultQueryOptions(t),r=x(this,mt).getQueryCache().build(x(this,mt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return te(this,ue,wo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),x(this,lt)))}createResult(t,n){var w;const r=x(this,ne),i=this.options,o=x(this,lt),l=x(this,Dr),a=x(this,Di),u=t!==r?t.state:x(this,ll),{state:f}=t;let c={...f},p=!1,v;if(n._optimisticResults){const N=this.hasListeners(),A=!N&&ap(t,n),q=N&&sp(t,r,n,i);(A||q)&&(c={...c,...Fm(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:E,errorUpdatedAt:y,status:k}=c;if(n.select&&c.data!==void 0)if(o&&c.data===(l==null?void 0:l.data)&&n.select===x(this,al))v=x(this,Ni);else try{U(this,al,n.select),v=n.select(c.data),v=gc(o==null?void 0:o.data,v,n),U(this,Ni,v),U(this,sn,null)}catch(N){U(this,sn,N)}else v=c.data;if(n.placeholderData!==void 0&&v===void 0&&k==="pending"){let N;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=o.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((w=x(this,Ai))==null?void 0:w.state.data,x(this,Ai)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),U(this,sn,null)}catch(A){U(this,sn,A)}N!==void 0&&(k="success",v=gc(o==null?void 0:o.data,N,n),p=!0)}x(this,sn)&&(E=x(this,sn),v=x(this,Ni),y=Date.now(),k="error");const m=c.fetchStatus==="fetching",h=k==="pending",g=k==="error",T=h&&m,_=v!==void 0,O={status:k,fetchStatus:c.fetchStatus,isPending:h,isSuccess:k==="success",isError:g,isInitialLoading:T,isLoading:T,data:v,dataUpdatedAt:c.dataUpdatedAt,error:E,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!h,isLoadingError:g&&!_,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:g&&_,isStale:Qf(t,n),refetch:this.refetch,promise:x(this,Zn)};if(this.options.experimental_prefetchInRender){const N=oe=>{O.status==="error"?oe.reject(O.error):O.data!==void 0&&oe.resolve(O.data)},A=()=>{const oe=U(this,Zn,O.promise=yc());N(oe)},q=x(this,Zn);switch(q.status){case"pending":t.queryHash===r.queryHash&&N(q);break;case"fulfilled":(O.status==="error"||O.data!==q.value)&&A();break;case"rejected":(O.status!=="error"||O.error!==q.reason)&&A();break}}return O}updateResult(t){const n=x(this,lt),r=this.createResult(x(this,ne),this.options);if(U(this,Dr,x(this,ne).state),U(this,Di,this.options),x(this,Dr).data!==void 0&&U(this,Ai,x(this,ne)),mc(r,n))return;U(this,lt,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,a=typeof l=="function"?l():l;if(a==="all"||!a&&!x(this,Ii).size)return!0;const s=new Set(a??x(this,Ii));return this.options.throwOnError&&s.add("error"),Object.keys(x(this,lt)).some(u=>{const f=u;return x(this,lt)[f]!==n[f]&&s.has(f)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),te(this,ue,zm).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&te(this,ue,Ec).call(this)}},mt=new WeakMap,ne=new WeakMap,ll=new WeakMap,lt=new WeakMap,Dr=new WeakMap,Di=new WeakMap,Zn=new WeakMap,sn=new WeakMap,al=new WeakMap,Ni=new WeakMap,Ai=new WeakMap,Nr=new WeakMap,Ar=new WeakMap,Xn=new WeakMap,Ii=new WeakMap,ue=new WeakSet,wo=function(t){te(this,ue,kc).call(this);let n=x(this,ne).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(bt)),n},wc=function(){te(this,ue,Cc).call(this);const t=Ei(this.options.staleTime,x(this,ne));if(Wr||x(this,lt).isStale||!pc(t))return;const r=Lm(x(this,lt).dataUpdatedAt,t)+1;U(this,Nr,setTimeout(()=>{x(this,lt).isStale||this.updateResult()},r))},Sc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(x(this,ne)):this.options.refetchInterval)??!1},xc=function(t){te(this,ue,Tc).call(this),U(this,Xn,t),!(Wr||Yt(this.options.enabled,x(this,ne))===!1||!pc(x(this,Xn))||x(this,Xn)===0)&&U(this,Ar,setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&te(this,ue,wo).call(this)},x(this,Xn)))},Ec=function(){te(this,ue,wc).call(this),te(this,ue,xc).call(this,te(this,ue,Sc).call(this))},Cc=function(){x(this,Nr)&&(clearTimeout(x(this,Nr)),U(this,Nr,void 0))},Tc=function(){x(this,Ar)&&(clearInterval(x(this,Ar)),U(this,Ar,void 0))},kc=function(){const t=x(this,mt).getQueryCache().build(x(this,mt),this.options);if(t===x(this,ne))return;const n=x(this,ne);U(this,ne,t),U(this,ll,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},zm=function(t){qe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(x(this,lt))}),x(this,mt).getQueryCache().notify({query:x(this,ne),type:"observerResultsUpdated"})})},wp);function l6(e,t){return Yt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ap(e,t){return l6(e,t)||e.state.data!==void 0&&Pc(e,t,t.refetchOnMount)}function Pc(e,t,n){if(Yt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qf(e,t)}return!1}function sp(e,t,n,r){return(e!==t||Yt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qf(e,n)}function Qf(e,t){return Yt(t.enabled,e)!==!1&&e.isStaleByTime(Ei(t.staleTime,e))}function a6(e,t){return!mc(e.getCurrentResult(),t)}var jm=R.createContext(void 0),s6=e=>{const t=R.useContext(jm);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},u6=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Oo.jsx(jm.Provider,{value:e,children:t})),Um=R.createContext(!1),c6=()=>R.useContext(Um);Um.Provider;function f6(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var d6=R.createContext(f6()),h6=()=>R.useContext(d6);function p6(e,t){return typeof e=="function"?e(...t):!!e}function m6(){}var v6=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},g6=e=>{R.useEffect(()=>{e.clearReset()},[e])},y6=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&p6(n,[e.error,r]),w6=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},S6=(e,t)=>e.isLoading&&e.isFetching&&!t,x6=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,up=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function E6(e,t,n){var f,c,p,v,E;const r=s6(),i=c6(),o=h6(),l=r.defaultQueryOptions(e);(c=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||c.call(f,l),l._optimisticResults=i?"isRestoring":"optimistic",w6(l),v6(l,o),g6(o);const a=!r.getQueryCache().get(l.queryHash),[s]=R.useState(()=>new t(r,l)),u=s.getOptimisticResult(l);if(R.useSyncExternalStore(R.useCallback(y=>{const k=i?()=>{}:s.subscribe(qe.batchCalls(y));return s.updateResult(),k},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setOptions(l,{listeners:!1})},[l,s]),x6(l,u))throw up(l,s,o);if(y6({result:u,errorResetBoundary:o,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash)}))throw u.error;if((v=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||v.call(p,l,u),l.experimental_prefetchInRender&&!Wr&&S6(u,i)){const y=a?up(l,s,o):(E=r.getQueryCache().get(l.queryHash))==null?void 0:E.promise;y==null||y.catch(m6).finally(()=>{s.updateResult()})}return l.notifyOnChangeProps?u:s.trackResult(u)}function C6(e,t){return E6(e,o6)}function T6(){return b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",children:[d("circle",{cx:"50",cy:"50",r:"35",stroke:"var(--bg-accent)",strokeWidth:"8",fill:"none"}),b("circle",{cx:"50",cy:"50",r:"35",stroke:"currentColor",strokeWidth:"8",fill:"none",strokeDasharray:"220",strokeDashoffset:"0",children:[d("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"1.5s",repeatCount:"indefinite"}),d("animate",{attributeName:"stroke-dashoffset",values:"0;220",dur:"1.5s",repeatCount:"indefinite"})]}),b("g",{transform:"translate(35,35) scale(0.8)",children:[d("circle",{cx:"15",cy:"15",r:"10",stroke:"var(--bg-accent)",strokeWidth:"3",fill:"none",children:d("animate",{attributeName:"opacity",values:"1;0.3;1",dur:"1.5s",repeatCount:"indefinite"})}),d("line",{x1:"22",y1:"22",x2:"30",y2:"30",stroke:"var(--bg-accent)",strokeWidth:"3",strokeLinecap:"round",children:d("animate",{attributeName:"opacity",values:"1;0.3;1",dur:"1.5s",repeatCount:"indefinite"})})]})]})}const k6=H` display: flex; gap: 16px; width: 90%; @@ -467,7 +467,7 @@ object-assign `,_6=H` font-size: small; line-height: 1em; -`;function O6({id:e,image_url:t,published_at:n,summary:r,title:i,url:o}){return F("div",{css:k6,children:[d("div",{css:P6,children:d("img",{css:R6,src:t,loading:"lazy","aria-label":`relating to ${i}`,onError:l=>{l.target.src="/image-not-found.svg"}})}),F("div",{children:[d("a",{href:o,target:"_blank",children:d("h3",{children:i})}),d("p",{css:_6,children:`${new Date(n).toLocaleDateString()} - ${new Date(n).toLocaleTimeString()}`}),d("p",{children:r})]})]},e)}const Jl=H` +`;function O6({id:e,image_url:t,published_at:n,summary:r,title:i,url:o}){return b("div",{css:k6,children:[d("div",{css:P6,children:d("img",{css:R6,src:t,loading:"lazy","aria-label":`relating to ${i}`,onError:l=>{l.target.src="/image-not-found.svg"}})}),b("div",{children:[d("a",{href:o,target:"_blank",children:d("h3",{children:i})}),d("p",{css:_6,children:`${new Date(n).toLocaleDateString()} - ${new Date(n).toLocaleTimeString()}`}),d("p",{children:r})]})]},e)}const Jl=H` ${Hf} font-size: medium; padding-inline: 8px; @@ -493,7 +493,7 @@ object-assign display: flex; gap: 8px; align-items: center; -`;function cp({articlesResponse:e}){let[t,n]=mm();const r=t.get("limit"),i=t.get("offset"),o=i?parseInt(i):0,l=r?parseInt(r):25,a=o+l,s=Ps();return F("div",{css:L6,children:[F("p",{children:[e?e.count.toLocaleString():"loading"," ","results"]}),F("div",{css:M6,children:[d(hn,{css:Jl,disabled:o===0,"aria-label":"First Page",title:"First Page",onClick:()=>{t.set("offset","0"),n(t)},children:"<<"}),d(hn,{css:Jl,disabled:o===0,"aria-label":"Previous page",title:"Previous page",onClick:()=>{o-l>0?(t.set("offset",`${o-l}`),s(`/news?${t.toString()}`)):(t.set("offset","0"),s(`/news?${t.toString()}`))},children:"<"}),"Showing:"," ",`${o+1} - ${a>((e==null?void 0:e.count)??a)?(e==null?void 0:e.count)??a:a}`,d(hn,{disabled:!e||l+o>=e.count,onClick:()=>{t.set("offset",`${o+l}`),s(`/news?${t.toString()}`)},css:Jl,"aria-label":"Next page",title:"Next page",children:">"}),d(hn,{disabled:!e||o===e.count-l,onClick:()=>{t.set("offset",`${e.count-l}`),s(`/news?${t.toString()}`)},css:Jl,"aria-label":"Last page",title:"Last page",children:">>"})]})]})}function D6(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",children:d("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})})}const N6=H` +`;function cp({articlesResponse:e}){let[t,n]=mm();const r=t.get("limit"),i=t.get("offset"),o=i?parseInt(i):0,l=r?parseInt(r):25,a=o+l,s=Ps();return b("div",{css:L6,children:[b("p",{children:[e?e.count.toLocaleString():"loading"," ","results"]}),b("div",{css:M6,children:[d(hn,{css:Jl,disabled:o===0,"aria-label":"First Page",title:"First Page",onClick:()=>{t.set("offset","0"),n(t)},children:"<<"}),d(hn,{css:Jl,disabled:o===0,"aria-label":"Previous page",title:"Previous page",onClick:()=>{o-l>0?(t.set("offset",`${o-l}`),s(`/news?${t.toString()}`)):(t.set("offset","0"),s(`/news?${t.toString()}`))},children:"<"}),"Showing:"," ",`${o+1} - ${a>((e==null?void 0:e.count)??a)?(e==null?void 0:e.count)??a:a}`,d(hn,{disabled:!e||l+o>=e.count,onClick:()=>{t.set("offset",`${o+l}`),s(`/news?${t.toString()}`)},css:Jl,"aria-label":"Next page",title:"Next page",children:">"}),d(hn,{disabled:!e||o===e.count-l,onClick:()=>{t.set("offset",`${e.count-l}`),s(`/news?${t.toString()}`)},css:Jl,"aria-label":"Last page",title:"Last page",children:">>"})]})]})}function D6(){return d("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentColor",children:d("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})})}const N6=H` ${ml} ${Rs} `,A6=H` @@ -502,7 +502,7 @@ object-assign gap: 24px; padding-block: 8px; `,I6=H` - height: 32px; + height: 36px; width: 200px; border: 1px solid var(--fg-color); border-radius: 4px 0 0 4px; @@ -510,18 +510,20 @@ object-assign background: var(--bg-color); padding-inline: 8px; border-right: 0; + box-sizing: border-box; @media only screen and (max-width: ${Nt}) { && { - width: 100px; + width: 124px; } } -`,F6=H` +`,b6=H` ${Hf} height: 36px; border-radius: 0 4px 4px 0; border-left: 0; -`,b6=H` + box-sizing: border-box; +`,F6=H` display: flex; align-items: center; justify-content: center; @@ -546,4 +548,4 @@ object-assign cursor: pointer; color: var(--fg-color); padding-inline: 8px; -`;function $6(){const{ref:e}=vl(),t=Ps(),[n,r]=mm(),i=n.get("offset"),o=n.get("limit"),l=n.get("search"),a=i?parseInt(i):0,s=o?parseInt(o):25,[u,f]=R.useState(""),c=[{label:"25",value:"25"},{label:"50",value:"50"},{label:"100",value:"100"}],p=R.useRef(null),{data:v,isFetching:E,isLoading:g}=C6({queryKey:["articles",l,o,i],queryFn:()=>Hw({limit:s,offset:a,search:l??""}),refetchOnMount:!1,refetchOnWindowFocus:!1});function k({offset:m,search:h,limit:y}){const T=new URLSearchParams;T.append("offset",m.toString()),T.append("search",h),T.append("limit",y.toString()),t(`/news?${T.toString()}`)}return F("div",{css:N6,ref:e,children:[d("h1",{children:"News"}),F("p",{children:["An example of a search experience built with a"," ",d("a",{href:"https://spaceflightnewsapi.net/?ref=public_apis",target:"_blank",children:"public api"}),"."]}),F("div",{css:j6,children:[F("form",{css:z6,onSubmit:m=>{m.preventDefault(),k({limit:s,offset:0,search:u})},children:[d("input",{ref:p,id:"news-search",type:"text","aria-label":"search news",css:I6,placeholder:"Search articles...",onChange:m=>{f(m.target.value)}}),d(hn,{type:"submit",css:F6,"aria-label":"perform search",children:d(D6,{})})]}),d(Uw,{label:"Limit",hideLabel:!0,css:U6,options:c,onChange:({target:m})=>{k({limit:parseInt(m.value),offset:a,search:l??""})}}),d(hn,{css:Hf,onClick:()=>{r(),p.current&&(p.current.value="")},children:"Reset"})]}),v!=null&&v.results.length?d(cp,{articlesResponse:v}):null,E||g?d("div",{css:b6,children:d(T6,{})}):v?d("div",{css:A6,children:v.results.length===0?d("p",{children:"No results found."}):v.results.map(m=>d(O6,{...m},m.id))}):null,v!=null&&v.results.length?d(cp,{articlesResponse:v}):null]})}function H6(){const e=new i6,t=Y4([{path:"/",element:d(mw,{}),children:[{path:"/",Component:y5,index:!0},{path:"/about",Component:C5},{path:"/tech",Component:Aw},{path:"/news",Component:$6},{path:"*",Component:zw}]}]);return R.useLayoutEffect(()=>{typeof window<"u"&&ym(window.localStorage.getItem("theme"))},[]),d(u6,{client:e,children:d(o3,{router:t})})}J1(document.getElementById("root")).render(d(R.StrictMode,{children:d(H6,{})})); +`;function $6(){const{ref:e}=vl(),t=Ps(),[n,r]=mm(),i=n.get("offset"),o=n.get("limit"),l=n.get("search"),a=i?parseInt(i):0,s=o?parseInt(o):25,[u,f]=R.useState(""),c=[{label:"25",value:"25"},{label:"50",value:"50"},{label:"100",value:"100"}],p=R.useRef(null),{data:v,isFetching:E,isLoading:y}=C6({queryKey:["articles",l,o,i],queryFn:()=>Hw({limit:s,offset:a,search:l??""}),refetchOnMount:!1,refetchOnWindowFocus:!1});function k({offset:m,search:h,limit:g}){const T=new URLSearchParams;T.append("offset",m.toString()),T.append("search",h),T.append("limit",g.toString()),t(`/news?${T.toString()}`)}return b("div",{css:N6,ref:e,children:[d("h1",{children:"News"}),b("p",{children:["An example of a search experience built with a"," ",d("a",{href:"https://spaceflightnewsapi.net/?ref=public_apis",target:"_blank",children:"public api"}),"."]}),b("div",{css:j6,children:[b("form",{css:z6,onSubmit:m=>{m.preventDefault(),k({limit:s,offset:0,search:u})},children:[d("input",{ref:p,id:"news-search",type:"text","aria-label":"search news",css:I6,placeholder:"Search articles...",onChange:m=>{f(m.target.value)}}),d(hn,{type:"submit",css:b6,"aria-label":"perform search",children:d(D6,{})})]}),d(Uw,{label:"Limit",hideLabel:!0,css:U6,options:c,onChange:({target:m})=>{k({limit:parseInt(m.value),offset:a,search:l??""})}}),d(hn,{css:Hf,onClick:()=>{r(),p.current&&(p.current.value="")},children:"Reset"})]}),v!=null&&v.results.length?d(cp,{articlesResponse:v}):null,E||y?d("div",{css:F6,children:d(T6,{})}):v?d("div",{css:A6,children:v.results.length===0?d("p",{children:"No results found."}):v.results.map(m=>d(O6,{...m},m.id))}):null,v!=null&&v.results.length?d(cp,{articlesResponse:v}):null]})}function H6(){const e=new i6,t=Y4([{path:"/",element:d(mw,{}),children:[{path:"/",Component:g5,index:!0},{path:"/about",Component:C5},{path:"/tech",Component:Aw},{path:"/news",Component:$6},{path:"*",Component:zw}]}]);return R.useLayoutEffect(()=>{typeof window<"u"&&gm(window.localStorage.getItem("theme"))},[]),d(u6,{client:e,children:d(o3,{router:t})})}J1(document.getElementById("root")).render(d(R.StrictMode,{children:d(H6,{})})); diff --git a/index.html b/index.html index 2752d30..181aa24 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Joseph D. Phelan - +