From 40e5f8cd42d9770108e8aa2db59bd042574ddfdf Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Mon, 28 Oct 2024 22:07:21 -0500 Subject: [PATCH] Updates --- .../{index-D0LwI13v.js => index-Dvw_z39K.js} | 46 +++++++++---------- index.html | 4 +- 2 files changed, 25 insertions(+), 25 deletions(-) rename assets/{index-D0LwI13v.js => index-Dvw_z39K.js} (81%) diff --git a/assets/index-D0LwI13v.js b/assets/index-Dvw_z39K.js similarity index 81% rename from assets/index-D0LwI13v.js rename to assets/index-Dvw_z39K.js index 35caa47..0884be7 100644 --- a/assets/index-D0LwI13v.js +++ b/assets/index-Dvw_z39K.js @@ -6,7 +6,7 @@ function Sd(e,t){for(var n=0;n0?Ue(Qr,--st):0,zr--,Le===10&&(zr=1,zl--),Le}function ht(){return Le=st2||Li(Le)>3?"":" "}function Rh(e,t){for(;--t&&ht()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return to(e,Ho()+(t<6&&Vt()==32&&ht()==32))}function Za(e){for(;ht();)switch(Le){case e:return st;case 34:case 39:e!==34&&e!==39&&Za(Le);break;case 40:e===41&&Za(e);break;case 92:ht();break}return st}function Lh(e,t){for(;ht()&&e+Le!==57;)if(e+Le===84&&Vt()===47)break;return"/*"+to(t,st-1)+"*"+Dl(e===47?e:ht())}function Mh(e){for(;!Li(Vt());)ht();return to(e,st)}function Oh(e){return Fd(bo("",null,null,null,[""],e=zd(e),0,[0],e))}function bo(e,t,n,r,i,o,l,a,u){for(var s=0,f=0,c=l,h=0,y=0,E=0,x=1,P=1,m=1,p=0,g="",T=i,R=o,O=r,L=g;P;)switch(E=p,p=ht()){case 40:if(E!=108&&Ue(L,c-1)==58){Ka(L+=ne(Bo(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:L+=Bo(p);break;case 9:case 10:case 13:case 32:L+=_h(E);break;case 92:L+=Rh(Ho()-1,7);continue;case 47:switch(Vt()){case 42:case 47:wo(Nh(Lh(ht(),Ho()),t,n),u);break;default:L+="/"}break;case 123*x:a[s++]=$t(L)*m;case 125*x:case 59:case 0:switch(p){case 0:case 125:P=0;case 59+f:m==-1&&(L=ne(L,/\f/g,"")),y>0&&$t(L)-c&&wo(y>32?Lc(L+";",r,n,c-1):Lc(ne(L," ","")+";",r,n,c-2),u);break;case 59:L+=";";default:if(wo(O=Rc(L,t,n,s,f,i,a,g,T=[],R=[],c),o),p===123)if(f===0)bo(L,t,O,O,T,o,c,a,R);else switch(h===99&&Ue(L,3)===110?100:h){case 100:case 108:case 109:case 115:bo(e,O,O,r&&wo(Rc(e,O,O,0,0,i,a,g,i,T=[],c),R),i,R,c,a,r?T:R);break;default:bo(L,O,O,O,[""],R,0,a,R)}}s=f=y=0,x=m=1,g=L="",c=l;break;case 58:c=1+$t(L),y=E;default:if(x<1){if(p==123)--x;else if(p==125&&x++==0&&Ph()==125)continue}switch(L+=Dl(p),p*x){case 38:m=f>0?1:(L+="\f",-1);break;case 44:a[s++]=($t(L)-1)*m,m=1;break;case 64:Vt()===45&&(L+=Bo(ht())),h=Vt(),f=c=$t(g=L+=Mh(Ho())),p++;break;case 45:E===45&&$t(L)==2&&(x=0)}}return o}function Rc(e,t,n,r,i,o,l,a,u,s,f){for(var c=i-1,h=i===0?o:[""],y=rs(h),E=0,x=0,P=0;E0?h[m]+" "+p:ne(p,/&\f/g,h[m])))&&(u[P++]=g);return Fl(e,t,n,i===0?ts:a,u,s,f)}function Nh(e,t,n){return Fl(e,t,n,Nd,Dl(kh()),Ri(e,2,-2),0)}function Lc(e,t,n,r){return Fl(e,t,n,ns,Ri(e,0,r),Ri(e,r+1,-1),r)}function Rr(e,t){for(var n="",r=rs(e),i=0;i6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+rl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ka(e,"stretch")?jd(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,$t(e)-3-(~Ka(e,"!important")&&10))){case 107:return ne(e,":",":"+te)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ue(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Ve+e+e}return e}var Hh=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ns:t.return=jd(t.value,t.length);break;case Ad:return Rr([Jr(t,{value:ne(t.value,"@","@"+te)})],i);case ts:if(t.length)return Th(t.props,function(o){switch(Ch(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rr([Jr(t,{props:[ne(o,/:(read-\w+)/,":"+rl+"$1")]})],i);case"::placeholder":return Rr([Jr(t,{props:[ne(o,/:(plac\w+)/,":"+te+"input-$1")]}),Jr(t,{props:[ne(o,/:(plac\w+)/,":"+rl+"$1")]}),Jr(t,{props:[ne(o,/:(plac\w+)/,Ve+"input-$1")]})],i)}return""})}},Bh=[Hh],bh=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(x){var P=x.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||Bh,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var P=x.getAttribute("data-emotion").split(" "),m=1;m0?Ue(Qr,--st):0,Dr--,Le===10&&(Dr=1,zl--),Le}function ht(){return Le=st2||Li(Le)>3?"":" "}function Rh(e,t){for(;--t&&ht()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return to(e,Ho()+(t<6&&Vt()==32&&ht()==32))}function Za(e){for(;ht();)switch(Le){case e:return st;case 34:case 39:e!==34&&e!==39&&Za(Le);break;case 40:e===41&&Za(e);break;case 92:ht();break}return st}function Lh(e,t){for(;ht()&&e+Le!==57;)if(e+Le===84&&Vt()===47)break;return"/*"+to(t,st-1)+"*"+Dl(e===47?e:ht())}function Mh(e){for(;!Li(Vt());)ht();return to(e,st)}function Oh(e){return Fd(bo("",null,null,null,[""],e=zd(e),0,[0],e))}function bo(e,t,n,r,i,o,l,a,u){for(var s=0,f=0,c=l,h=0,y=0,E=0,x=1,P=1,m=1,p=0,g="",T=i,R=o,O=r,L=g;P;)switch(E=p,p=ht()){case 40:if(E!=108&&Ue(L,c-1)==58){Ka(L+=ne(Bo(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:L+=Bo(p);break;case 9:case 10:case 13:case 32:L+=_h(E);break;case 92:L+=Rh(Ho()-1,7);continue;case 47:switch(Vt()){case 42:case 47:wo(Nh(Lh(ht(),Ho()),t,n),u);break;default:L+="/"}break;case 123*x:a[s++]=$t(L)*m;case 125*x:case 59:case 0:switch(p){case 0:case 125:P=0;case 59+f:m==-1&&(L=ne(L,/\f/g,"")),y>0&&$t(L)-c&&wo(y>32?Lc(L+";",r,n,c-1):Lc(ne(L," ","")+";",r,n,c-2),u);break;case 59:L+=";";default:if(wo(O=Rc(L,t,n,s,f,i,a,g,T=[],R=[],c),o),p===123)if(f===0)bo(L,t,O,O,T,o,c,a,R);else switch(h===99&&Ue(L,3)===110?100:h){case 100:case 108:case 109:case 115:bo(e,O,O,r&&wo(Rc(e,O,O,0,0,i,a,g,i,T=[],c),R),i,R,c,a,r?T:R);break;default:bo(L,O,O,O,[""],R,0,a,R)}}s=f=y=0,x=m=1,g=L="",c=l;break;case 58:c=1+$t(L),y=E;default:if(x<1){if(p==123)--x;else if(p==125&&x++==0&&Ph()==125)continue}switch(L+=Dl(p),p*x){case 38:m=f>0?1:(L+="\f",-1);break;case 44:a[s++]=($t(L)-1)*m,m=1;break;case 64:Vt()===45&&(L+=Bo(ht())),h=Vt(),f=c=$t(g=L+=Mh(Ho())),p++;break;case 45:E===45&&$t(L)==2&&(x=0)}}return o}function Rc(e,t,n,r,i,o,l,a,u,s,f){for(var c=i-1,h=i===0?o:[""],y=rs(h),E=0,x=0,P=0;E0?h[m]+" "+p:ne(p,/&\f/g,h[m])))&&(u[P++]=g);return Fl(e,t,n,i===0?ts:a,u,s,f)}function Nh(e,t,n){return Fl(e,t,n,Nd,Dl(kh()),Ri(e,2,-2),0)}function Lc(e,t,n,r){return Fl(e,t,n,ns,Ri(e,0,r),Ri(e,r+1,-1),r)}function _r(e,t){for(var n="",r=rs(e),i=0;i6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+rl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ka(e,"stretch")?jd(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,$t(e)-3-(~Ka(e,"!important")&&10))){case 107:return ne(e,":",":"+te)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ue(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+Ve+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+Ve+e+e}return e}var Hh=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ns:t.return=jd(t.value,t.length);break;case Ad:return _r([Jr(t,{value:ne(t.value,"@","@"+te)})],i);case ts:if(t.length)return Th(t.props,function(o){switch(Ch(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _r([Jr(t,{props:[ne(o,/:(read-\w+)/,":"+rl+"$1")]})],i);case"::placeholder":return _r([Jr(t,{props:[ne(o,/:(plac\w+)/,":"+te+"input-$1")]}),Jr(t,{props:[ne(o,/:(plac\w+)/,":"+rl+"$1")]}),Jr(t,{props:[ne(o,/:(plac\w+)/,Ve+"input-$1")]})],i)}return""})}},Bh=[Hh],bh=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(x){var P=x.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||Bh,o={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var P=x.getAttribute("data-emotion").split(" "),m=1;m>>1,ce=I[ue];if(0>>1;uei(qt,W))Fei(St,qt)?(I[ue]=St,I[Fe]=W,ue=Fe):(I[ue]=qt,I[nt]=W,ue=nt);else if(Fei(St,W))I[ue]=St,I[Fe]=W,ue=Fe;else break e}}return F}function i(I,F){var W=I.sortIndex-F.sortIndex;return W!==0?W:I.id-F.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 u=[],s=[],f=1,c=null,h=3,y=!1,E=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=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(I){for(var F=n(s);F!==null;){if(F.callback===null)r(s);else if(F.startTime<=I)r(s),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(s)}}function T(I){if(x=!1,g(I),!E)if(n(u)!==null)E=!0,_t(R);else{var F=n(s);F!==null&&pn(T,F.startTime-I)}}function R(I,F){E=!1,x&&(x=!1,m(w),w=-1),y=!0;var W=h;try{for(g(F),c=n(u);c!==null&&(!(c.expirationTime>F)||I&&!q());){var ue=c.callback;if(typeof ue=="function"){c.callback=null,h=c.priorityLevel;var ce=ue(c.expirationTime<=F);F=e.unstable_now(),typeof ce=="function"?c.callback=ce:c===n(u)&&r(u),g(F)}else r(u);c=n(u)}if(c!==null)var tt=!0;else{var nt=n(s);nt!==null&&pn(T,nt.startTime-F),tt=!1}return tt}finally{c=null,h=W,y=!1}}var O=!1,L=null,w=-1,j=5,A=-1;function q(){return!(e.unstable_now()-AI||125ue?(I.sortIndex=W,t(s,I),n(u)===null&&I===n(s)&&(x?(m(w),w=-1):x=!0,pn(T,W-ue))):(I.sortIndex=ce,t(u,I),E||y||(E=!0,_t(R))),I},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(I){var F=h;return function(){var W=h;h=F;try{return I.apply(this,arguments)}finally{h=W}}}})(e0);Jd.exports=e0;var um=Jd.exports;/** + */(function(e){function t(I,F){var W=I.length;I.push(F);e:for(;0>>1,ce=I[ue];if(0>>1;uei(qt,W))Fei(St,qt)?(I[ue]=St,I[Fe]=W,ue=Fe):(I[ue]=qt,I[nt]=W,ue=nt);else if(Fei(St,W))I[ue]=St,I[Fe]=W,ue=Fe;else break e}}return F}function i(I,F){var W=I.sortIndex-F.sortIndex;return W!==0?W:I.id-F.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 u=[],s=[],f=1,c=null,h=3,y=!1,E=!1,x=!1,P=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=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(I){for(var F=n(s);F!==null;){if(F.callback===null)r(s);else if(F.startTime<=I)r(s),F.sortIndex=F.expirationTime,t(u,F);else break;F=n(s)}}function T(I){if(x=!1,g(I),!E)if(n(u)!==null)E=!0,_t(R);else{var F=n(s);F!==null&&dn(T,F.startTime-I)}}function R(I,F){E=!1,x&&(x=!1,m(w),w=-1),y=!0;var W=h;try{for(g(F),c=n(u);c!==null&&(!(c.expirationTime>F)||I&&!q());){var ue=c.callback;if(typeof ue=="function"){c.callback=null,h=c.priorityLevel;var ce=ue(c.expirationTime<=F);F=e.unstable_now(),typeof ce=="function"?c.callback=ce:c===n(u)&&r(u),g(F)}else r(u);c=n(u)}if(c!==null)var tt=!0;else{var nt=n(s);nt!==null&&dn(T,nt.startTime-F),tt=!1}return tt}finally{c=null,h=W,y=!1}}var O=!1,L=null,w=-1,j=5,A=-1;function q(){return!(e.unstable_now()-AI||125ue?(I.sortIndex=W,t(s,I),n(u)===null&&I===n(s)&&(x?(m(w),w=-1):x=!0,dn(T,W-ue))):(I.sortIndex=ce,t(u,I),E||y||(E=!0,_t(R))),I},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(I){var F=h;return function(){var W=h;h=F;try{return I.apply(this,arguments)}finally{h=W}}}})(e0);Jd.exports=e0;var um=Jd.exports;/** * @license React * react-dom.production.min.js * @@ -37,14 +37,14 @@ function Sd(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=Object.prototype.hasOwnProperty,cm=/^[: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]*$/,Dc={},zc={};function fm(e){return eu.call(zc,e)?!0:eu.call(Dc,e)?!1:cm.test(e)?zc[e]=!0:(Dc[e]=!0,!1)}function dm(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 pm(e,t,n,r){if(t===null||typeof t>"u"||dm(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 et(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 He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new et(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){He[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var ps=/[\-:]([a-z])/g;function hs(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(ps,hs);He[t]=new et(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(ps,hs);He[t]=new et(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(ps,hs);He[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function ms(e,t,n,r){var i=He.hasOwnProperty(t)?He[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=Object.prototype.hasOwnProperty,cm=/^[: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]*$/,Dc={},zc={};function fm(e){return eu.call(zc,e)?!0:eu.call(Dc,e)?!1:cm.test(e)?zc[e]=!0:(Dc[e]=!0,!1)}function dm(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 pm(e,t,n,r){if(t===null||typeof t>"u"||dm(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 et(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 He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new et(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){He[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var ps=/[\-:]([a-z])/g;function hs(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(ps,hs);He[t]=new et(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(ps,hs);He[t]=new et(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(ps,hs);He[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function ms(e,t,n,r){var i=He.hasOwnProperty(t)?He[t]:null;(i!==null?i.type!==0:r||!(2a||i[l]!==o[a]){var u=` -`+i[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pi(e):""}function hm(e){switch(e.tag){case 5:return pi(e.type);case 16:return pi("Lazy");case 13:return pi("Suspense");case 19:return pi("SuspenseList");case 0:case 2:case 15:return e=wa(e.type,!1),e;case 11:return e=wa(e.type.render,!1),e;case 1:return e=wa(e.type,!0),e;default:return""}}function iu(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 mr:return"Fragment";case hr:return"Portal";case tu:return"Profiler";case vs:return"StrictMode";case nu:return"Suspense";case ru: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 gs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ys:return t=e.displayName||null,t!==null?t:iu(e.type)||"Memo";case wn:t=e._payload,e=e._init;try{return iu(e(t))}catch{}}return null}function mm(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 iu(t);case 8:return t===vs?"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 In(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 vm(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 xo(e){e._valueTracker||(e._valueTracker=vm(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 il(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 ou(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=In(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&&ms(e,"checked",t,!1)}function lu(e,t){a0(e,t);var n=In(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")?au(e,t.type,n):t.hasOwnProperty("defaultValue")&&au(e,t.type,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uc(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 au(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hi=Array.isArray;function Lr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yi={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},gm=["Webkit","ms","Moz","O"];Object.keys(yi).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yi[t]=yi[e]})});function f0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yi.hasOwnProperty(e)&&yi[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 ym=Se({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 cu(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function fu(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 du=null;function ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pu=null,Mr=null,Or=null;function Bc(e){if(e=io(e)){if(typeof pu!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Jl(t),pu(e.stateNode,e.type,t))}}function p0(e){Mr?Or?Or.push(e):Or=[e]:Mr=e}function h0(){if(Mr){var e=Mr,t=Or;if(Or=Mr=null,Bc(e),t)for(e=0;e>>=0,e===0?32:31-(Lm(e)/Mm|0)|0}var Co=64,To=4194304;function mi(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 ul(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=mi(a):(o&=l,o!==0&&(r=mi(o)))}else l=n&~i,l!==0?r=mi(l):o!==0&&(r=mi(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 no(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Im(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=Si),Zc=" ",Xc=!1;function I0(e,t){switch(e){case"keyup":return uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function cv(e,t){switch(e){case"compositionend":return D0(t);case"keypress":return t.which!==32?null:(Xc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Xc?null:e;default:return null}}function fv(e,t){if(vr)return e==="compositionend"||!_s&&I0(e,t)?(e=N0(),Wo=Ts=Cn=null,vr=!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=nf(n)}}function U0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?U0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function Rs(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 Sv(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&U0(n.ownerDocument.documentElement,n)){if(r!==null&&Rs(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=rf(n,o);var l=rf(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,gr=null,wu=null,Ei=null,Su=!1;function of(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||gr==null||gr!==il(r)||(r=gr,"selectionStart"in r&&Rs(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}),Ei&&ji(Ei,r)||(Ei=r,r=fl(wu,"onSelect"),0Sr||(e.current=Pu[Sr],Pu[Sr]=null,Sr--)}function se(e,t){Sr++,Pu[Sr]=e.current,e.current=t}var Dn={},Qe=Fn(Dn),lt=Fn(!1),Jn=Dn;function jr(e,t){var n=e.type.contextTypes;if(!n)return Dn;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 at(e){return e=e.childContextTypes,e!=null}function pl(){pe(lt),pe(Qe)}function df(e,t,n){if(Qe.current!==Dn)throw Error(M(168));se(Qe,t),se(lt,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(M(108,mm(e)||"Unknown",i));return Se({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,Jn=Qe.current,se(Qe,e),se(lt,lt.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=G0(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,pe(lt),pe(Qe),se(Qe,e)):pe(lt),se(lt,n)}var en=null,ea=!1,Aa=!1;function K0(e){en===null?en=[e]:en.push(e)}function Nv(e){ea=!0,K0(e)}function jn(){if(!Aa&&en!==null){Aa=!0;var e=0,t=ie;try{var n=en;for(ie=1;e>=l,i-=l,tn=1<<32-It(t)+i|n<w?(j=L,L=null):j=L.sibling;var A=h(m,L,g[w],T);if(A===null){L===null&&(L=j);break}e&&L&&A.alternate===null&&t(m,L),p=o(A,p,w),O===null?R=A:O.sibling=A,O=A,L=j}if(w===g.length)return n(m,L),ve&&bn(m,w),R;if(L===null){for(;ww?(j=L,L=null):j=L.sibling;var q=h(m,L,A.value,T);if(q===null){L===null&&(L=j);break}e&&L&&q.alternate===null&&t(m,L),p=o(q,p,w),O===null?R=q:O.sibling=q,O=q,L=j}if(A.done)return n(m,L),ve&&bn(m,w),R;if(L===null){for(;!A.done;w++,A=g.next())A=c(m,A.value,T),A!==null&&(p=o(A,p,w),O===null?R=A:O.sibling=A,O=A);return ve&&bn(m,w),R}for(L=r(m,L);!A.done;w++,A=g.next())A=y(L,m,w,A.value,T),A!==null&&(e&&A.alternate!==null&&L.delete(A.key===null?w:A.key),p=o(A,p,w),O===null?R=A:O.sibling=A,O=A);return e&&L.forEach(function(ae){return t(m,ae)}),ve&&bn(m,w),R}function P(m,p,g,T){if(typeof g=="object"&&g!==null&&g.type===mr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case So:e:{for(var R=g.key,O=p;O!==null;){if(O.key===R){if(R=g.type,R===mr){if(O.tag===7){n(m,O.sibling),p=i(O,g.props.children),p.return=m,m=p;break e}}else if(O.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===wn&&vf(R)===O.type){n(m,O.sibling),p=i(O,g.props),p.ref=oi(m,O,g),p.return=m,m=p;break e}n(m,O);break}else t(m,O);O=O.sibling}g.type===mr?(p=Zn(g.props.children,m.mode,T,g.key),p.return=m,m=p):(T=Jo(g.type,g.key,g.props,null,m.mode,T),T.ref=oi(m,p,g),T.return=m,m=T)}return l(m);case hr:e:{for(O=g.key;p!==null;){if(p.key===O)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ha(g,m.mode,T),p.return=m,m=p}return l(m);case wn:return O=g._init,P(m,p,O(g._payload),T)}if(hi(g))return E(m,p,g,T);if(ei(g))return x(m,p,g,T);Oo(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=$a(g,m.mode,T),p.return=m,m=p),l(m)):n(m,p)}return P}var $r=e1(!0),t1=e1(!1),gl=Fn(null),yl=null,Cr=null,Ns=null;function As(){Ns=Cr=yl=null}function Is(e){var t=gl.current;pe(gl),e._currentValue=t}function Lu(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 Ar(e,t){yl=e,Ns=Cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Ns!==e)if(e={context:e,memoizedValue:t,next:null},Cr===null){if(yl===null)throw Error(M(308));Cr=e,yl.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return t}var qn=null;function Ds(e){qn===null?qn=[e]:qn.push(e)}function n1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ds(t)):(n.next=i.next,i.next=n),t.interleaved=n,un(e,r)}function un(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 Sn=!1;function zs(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,un(e,n)}return i=r.interleaved,i===null?(t.next=t,Ds(r)):(t.next=i.next,i.next=t),r.interleaved=t,un(e,n)}function qo(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,xs(e,n)}}function gf(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 wl(e,t,n,r){var i=e.updateQueue;Sn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,s=u.next;u.next=null,l===null?o=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=s:a.next=s,f.lastBaseUpdate=u))}if(o!==null){var c=i.baseState;l=0,f=s=u=null,a=o;do{var h=a.lane,y=a.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,x=a;switch(h=t,y=n,x.tag){case 1:if(E=x.payload,typeof E=="function"){c=E.call(y,c,h);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=x.payload,h=typeof E=="function"?E.call(y,c,h):E,h==null)break e;c=Se({},c,h);break e;case 2:Sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(s=f=y,u=c):f=f.next=y,l|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,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);nr|=l,e.lanes=l,e.memoizedState=c}}function yf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Da.transition;Da.transition={};try{e(!1),t()}finally{ie=n,Da.transition=r}}function S1(){return Pt().memoizedState}function zv(e,t,n){var r=Nn(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=Xe();Dt(n,e,r,i),C1(n,t,r)}}function Fv(e,t,n){var r=Nn(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,zt(a,l)){var u=t.interleaved;u===null?(i.next=i,Ds(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=n1(e,t,i,r),n!==null&&(i=Xe(),Dt(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===we||t!==null&&t===we}function E1(e,t){Ci=xl=!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,xs(e,n)}}var El={readContext:kt,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},jv={readContext:kt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Go(4194308,4,m1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();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=zv.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:Vs,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=Dv.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Ut();if(ve){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),De===null)throw Error(M(349));tr&30||a1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Sf(s1.bind(null,r,o,e),[e]),r.flags|=2048,Qi(9,u1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ut(),t=De.identifierPrefix;if(ve){var n=nn,r=tn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,0")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{ya=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pi(e):""}function hm(e){switch(e.tag){case 5:return pi(e.type);case 16:return pi("Lazy");case 13:return pi("Suspense");case 19:return pi("SuspenseList");case 0:case 2:case 15:return e=wa(e.type,!1),e;case 11:return e=wa(e.type.render,!1),e;case 1:return e=wa(e.type,!0),e;default:return""}}function iu(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 hr:return"Fragment";case pr:return"Portal";case tu:return"Profiler";case vs:return"StrictMode";case nu:return"Suspense";case ru: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 gs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ys:return t=e.displayName||null,t!==null?t:iu(e.type)||"Memo";case yn:t=e._payload,e=e._init;try{return iu(e(t))}catch{}}return null}function mm(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 iu(t);case 8:return t===vs?"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 An(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 vm(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 xo(e){e._valueTracker||(e._valueTracker=vm(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 il(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 ou(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=An(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&&ms(e,"checked",t,!1)}function lu(e,t){a0(e,t);var n=An(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")?au(e,t.type,n):t.hasOwnProperty("defaultValue")&&au(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uc(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 au(e,t,n){(t!=="number"||il(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hi=Array.isArray;function Rr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ni(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yi={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},gm=["Webkit","ms","Moz","O"];Object.keys(yi).forEach(function(e){gm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yi[t]=yi[e]})});function f0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yi.hasOwnProperty(e)&&yi[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 ym=Se({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 cu(e,t){if(t){if(ym[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function fu(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 du=null;function ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pu=null,Lr=null,Mr=null;function Bc(e){if(e=io(e)){if(typeof pu!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Jl(t),pu(e.stateNode,e.type,t))}}function p0(e){Lr?Mr?Mr.push(e):Mr=[e]:Lr=e}function h0(){if(Lr){var e=Lr,t=Mr;if(Mr=Lr=null,Bc(e),t)for(e=0;e>>=0,e===0?32:31-(Lm(e)/Mm|0)|0}var Co=64,To=4194304;function mi(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 ul(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=mi(a):(o&=l,o!==0&&(r=mi(o)))}else l=n&~i,l!==0?r=mi(l):o!==0&&(r=mi(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 no(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Im(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=Si),Zc=" ",Xc=!1;function I0(e,t){switch(e){case"keyup":return uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function D0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mr=!1;function cv(e,t){switch(e){case"compositionend":return D0(t);case"keypress":return t.which!==32?null:(Xc=!0,Zc);case"textInput":return e=t.data,e===Zc&&Xc?null:e;default:return null}}function fv(e,t){if(mr)return e==="compositionend"||!_s&&I0(e,t)?(e=N0(),Wo=Ts=En=null,mr=!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=nf(n)}}function U0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?U0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=il();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=il(e.document)}return t}function Rs(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 Sv(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&U0(n.ownerDocument.documentElement,n)){if(r!==null&&Rs(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=rf(n,o);var l=rf(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,vr=null,wu=null,Ei=null,Su=!1;function of(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||vr==null||vr!==il(r)||(r=vr,"selectionStart"in r&&Rs(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}),Ei&&ji(Ei,r)||(Ei=r,r=fl(wu,"onSelect"),0wr||(e.current=Pu[wr],Pu[wr]=null,wr--)}function se(e,t){wr++,Pu[wr]=e.current,e.current=t}var In={},Qe=zn(In),lt=zn(!1),Jn=In;function Fr(e,t){var n=e.type.contextTypes;if(!n)return In;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 at(e){return e=e.childContextTypes,e!=null}function pl(){pe(lt),pe(Qe)}function df(e,t,n){if(Qe.current!==In)throw Error(M(168));se(Qe,t),se(lt,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(M(108,mm(e)||"Unknown",i));return Se({},n,r)}function hl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Jn=Qe.current,se(Qe,e),se(lt,lt.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=G0(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,pe(lt),pe(Qe),se(Qe,e)):pe(lt),se(lt,n)}var en=null,ea=!1,Aa=!1;function K0(e){en===null?en=[e]:en.push(e)}function Nv(e){ea=!0,K0(e)}function Fn(){if(!Aa&&en!==null){Aa=!0;var e=0,t=ie;try{var n=en;for(ie=1;e>=l,i-=l,tn=1<<32-It(t)+i|n<w?(j=L,L=null):j=L.sibling;var A=h(m,L,g[w],T);if(A===null){L===null&&(L=j);break}e&&L&&A.alternate===null&&t(m,L),p=o(A,p,w),O===null?R=A:O.sibling=A,O=A,L=j}if(w===g.length)return n(m,L),ve&&bn(m,w),R;if(L===null){for(;ww?(j=L,L=null):j=L.sibling;var q=h(m,L,A.value,T);if(q===null){L===null&&(L=j);break}e&&L&&q.alternate===null&&t(m,L),p=o(q,p,w),O===null?R=q:O.sibling=q,O=q,L=j}if(A.done)return n(m,L),ve&&bn(m,w),R;if(L===null){for(;!A.done;w++,A=g.next())A=c(m,A.value,T),A!==null&&(p=o(A,p,w),O===null?R=A:O.sibling=A,O=A);return ve&&bn(m,w),R}for(L=r(m,L);!A.done;w++,A=g.next())A=y(L,m,w,A.value,T),A!==null&&(e&&A.alternate!==null&&L.delete(A.key===null?w:A.key),p=o(A,p,w),O===null?R=A:O.sibling=A,O=A);return e&&L.forEach(function(ae){return t(m,ae)}),ve&&bn(m,w),R}function P(m,p,g,T){if(typeof g=="object"&&g!==null&&g.type===hr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case So:e:{for(var R=g.key,O=p;O!==null;){if(O.key===R){if(R=g.type,R===hr){if(O.tag===7){n(m,O.sibling),p=i(O,g.props.children),p.return=m,m=p;break e}}else if(O.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===yn&&vf(R)===O.type){n(m,O.sibling),p=i(O,g.props),p.ref=oi(m,O,g),p.return=m,m=p;break e}n(m,O);break}else t(m,O);O=O.sibling}g.type===hr?(p=Zn(g.props.children,m.mode,T,g.key),p.return=m,m=p):(T=Jo(g.type,g.key,g.props,null,m.mode,T),T.ref=oi(m,p,g),T.return=m,m=T)}return l(m);case pr:e:{for(O=g.key;p!==null;){if(p.key===O)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(m,p.sibling),p=i(p,g.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Ha(g,m.mode,T),p.return=m,m=p}return l(m);case yn:return O=g._init,P(m,p,O(g._payload),T)}if(hi(g))return E(m,p,g,T);if(ei(g))return x(m,p,g,T);Oo(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,g),p.return=m,m=p):(n(m,p),p=$a(g,m.mode,T),p.return=m,m=p),l(m)):n(m,p)}return P}var Ur=e1(!0),t1=e1(!1),gl=zn(null),yl=null,Er=null,Ns=null;function As(){Ns=Er=yl=null}function Is(e){var t=gl.current;pe(gl),e._currentValue=t}function Lu(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 Nr(e,t){yl=e,Ns=Er=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function kt(e){var t=e._currentValue;if(Ns!==e)if(e={context:e,memoizedValue:t,next:null},Er===null){if(yl===null)throw Error(M(308));Er=e,yl.dependencies={lanes:0,firstContext:e}}else Er=Er.next=e;return t}var qn=null;function Ds(e){qn===null?qn=[e]:qn.push(e)}function n1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ds(t)):(n.next=i.next,i.next=n),t.interleaved=n,un(e,r)}function un(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 wn=!1;function zs(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,un(e,n)}return i=r.interleaved,i===null?(t.next=t,Ds(r)):(t.next=i.next,i.next=t),r.interleaved=t,un(e,n)}function qo(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,xs(e,n)}}function gf(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 wl(e,t,n,r){var i=e.updateQueue;wn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,s=u.next;u.next=null,l===null?o=s:l.next=s,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==l&&(a===null?f.firstBaseUpdate=s:a.next=s,f.lastBaseUpdate=u))}if(o!==null){var c=i.baseState;l=0,f=s=u=null,a=o;do{var h=a.lane,y=a.eventTime;if((r&h)===h){f!==null&&(f=f.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var E=e,x=a;switch(h=t,y=n,x.tag){case 1:if(E=x.payload,typeof E=="function"){c=E.call(y,c,h);break e}c=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=x.payload,h=typeof E=="function"?E.call(y,c,h):E,h==null)break e;c=Se({},c,h);break e;case 2:wn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else y={eventTime:y,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(s=f=y,u=c):f=f.next=y,l|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,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);nr|=l,e.lanes=l,e.memoizedState=c}}function yf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Da.transition;Da.transition={};try{e(!1),t()}finally{ie=n,Da.transition=r}}function S1(){return Pt().memoizedState}function zv(e,t,n){var r=On(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=Xe();Dt(n,e,r,i),C1(n,t,r)}}function Fv(e,t,n){var r=On(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,zt(a,l)){var u=t.interleaved;u===null?(i.next=i,Ds(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=n1(e,t,i,r),n!==null&&(i=Xe(),Dt(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===we||t!==null&&t===we}function E1(e,t){Ci=xl=!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,xs(e,n)}}var El={readContext:kt,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},jv={readContext:kt,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:Sf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Go(4194308,4,m1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Go(4194308,4,e,t)},useInsertionEffect:function(e,t){return Go(4,2,e,t)},useMemo:function(e,t){var n=Ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ut();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=zv.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:wf,useDebugValue:Vs,useDeferredValue:function(e){return Ut().memoizedState=e},useTransition:function(){var e=wf(!1),t=e[0];return e=Dv.bind(null,e[1]),Ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,i=Ut();if(ve){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),De===null)throw Error(M(349));tr&30||a1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Sf(s1.bind(null,r,o,e),[e]),r.flags|=2048,Qi(9,u1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ut(),t=De.identifierPrefix;if(ve){var n=nn,r=tn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Vi++,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[bt]=t,e[Hi]=r,A1(e,t,!1,!1),t.stateNode=e;e:{switch(l=fu(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;ibr&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ve)return be(t),null}else 2*ke()-o.renderingStartTime>br&&n!==1073741824&&(t.flags|=128,r=!0,li(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=ke(),t.sibling=null,n=ye.current,se(ye,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return Ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function Qv(e,t){switch(Ms(t),t.tag){case 1:return at(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),pe(lt),pe(Qe),Us(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return js(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ye),null;case 4:return Hr(),null;case 10:return Is(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Ao=!1,We=!1,qv=typeof WeakSet=="function"?WeakSet:Set,z=null;function Tr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Of=!1;function Yv(e,t){if(xu=sl,e=$0(),Rs(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,u=-1,s=0,f=0,c=e,h=null;t:for(;;){for(var y;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(y=c.firstChild)!==null;)h=c,c=y;for(;;){if(c===e)break t;if(h===n&&++s===i&&(a=l),h===o&&++f===r&&(u=l),(y=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},sl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;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 x=E.memoizedProps,P=E.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Lt(t.type,x),P);m.__reactInternalSnapshotBeforeUpdate=p}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(M(163))}}catch(T){Te(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return E=Of,Of=!1,E}function Ti(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&&ju(t,n,o)}i=i.next}while(i!==r)}}function ra(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 Uu(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 z1(e){var t=e.alternate;t!==null&&(e.alternate=null,z1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[Hi],delete t[ku],delete t[Mv],delete t[Ov])),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 Nf(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 $u(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=dl));else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}function Hu(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(Hu(e,t,n),e=e.sibling;e!==null;)Hu(e,t,n),e=e.sibling}var je=null,Mt=!1;function gn(e,t,n){for(n=n.child;n!==null;)j1(e,t,n),n=n.sibling}function j1(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:We||Tr(n,t);case 6:var r=je,i=Mt;je=null,gn(e,t,n),je=r,Mt=i,je!==null&&(Mt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Mt?(e=je,n=n.stateNode,e.nodeType===8?Na(e.parentNode,n):e.nodeType===1&&Na(e,n),zi(e)):Na(je,n.stateNode));break;case 4:r=je,i=Mt,je=n.stateNode.containerInfo,Mt=!0,gn(e,t,n),je=r,Mt=i;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&ju(n,t,l),i=i.next}while(i!==r)}gn(e,t,n);break;case 1:if(!We&&(Tr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Te(n,t,a)}gn(e,t,n);break;case 21:gn(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,gn(e,t,n),We=r):gn(e,t,n);break;default:gn(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qv),t.forEach(function(r){var i=r2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kv(r/1960))-r,10e?16:e,Tn===null)var r=!1;else{if(e=Tn,Tn=null,kl=0,J&6)throw Error(M(331));var i=J;for(J|=4,z=e.current;z!==null;){var o=z,l=o.child;if(z.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uke()-Ys?Kn(e,0):qs|=n),ut(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Xe();e=un(e,t),e!==null&&(no(e,t,n),ut(e,n))}function n2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Q1(e,n)}function r2(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(M(314))}r!==null&&r.delete(t),Q1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,Vv(e,t,n);ot=!!(e.flags&131072)}else ot=!1,ve&&t.flags&1048576&&Z0(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ko(e,t),e=t.pendingProps;var i=jr(t,Qe.current);Ar(t,n),i=Hs(null,t,r,e,i,n);var o=Bs();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,at(r)?(o=!0,hl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zs(t),i.updater=na,t.stateNode=i,i._reactInternals=t,Ou(t,r,e,n),t=Iu(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&Ls(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=o2(r),e=Lt(r,e),i){case 0:t=Au(null,t,r,e,n);break e;case 1:t=Rf(null,t,r,e,n);break e;case 11:t=Pf(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Lt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Au(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Rf(e,t,r,i,n);case 3:e:{if(M1(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,r1(e,t),wl(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=Br(Error(M(423)),t),t=Lf(e,t,r,n,i);break e}else if(r!==i){i=Br(Error(M(424)),t),t=Lf(e,t,r,n,i);break e}else for(pt=Ln(t.stateNode.containerInfo.firstChild),mt=t,ve=!0,Nt=null,n=t1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===i){t=sn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return i1(t),e===null&&Ru(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Cu(r,i)?l=null:o!==null&&Cu(r,o)&&(t.flags|=32),L1(e,t),Ze(e,t,l,n),t.child;case 6:return e===null&&Ru(t),null;case 13:return O1(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$r(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Pf(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(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,se(gl,r._currentValue),r._currentValue=l,o!==null)if(zt(o.value,l)){if(o.children===i.children&&!lt.current){t=sn(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 u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=rn(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Lu(o.return,n,t),a.lanes|=n;break}u=u.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(M(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Lu(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}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ar(t,n),i=kt(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=Lt(r,t.pendingProps),i=Lt(r.type,i),_f(e,t,r,i,n);case 15:return _1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Ko(e,t),t.tag=1,at(r)?(e=!0,hl(t)):e=!1,Ar(t,n),T1(t,r,i),Ou(t,r,i,n),Iu(null,t,r,!0,e,n);case 19:return N1(e,t,n);case 22:return R1(e,t,n)}throw Error(M(156,t.tag))};function Y1(e,t){return x0(e,t)}function i2(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 Ct(e,t,n,r){return new i2(e,t,n,r)}function Xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o2(e){if(typeof e=="function")return Xs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gs)return 11;if(e===ys)return 14}return 2}function An(e,t){var n=e.alternate;return n===null?(n=Ct(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 Jo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Xs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case mr:return Zn(n.children,i,o,t);case vs:l=8,i|=8;break;case tu:return e=Ct(12,n,t,i|2),e.elementType=tu,e.lanes=o,e;case nu:return e=Ct(13,n,t,i),e.elementType=nu,e.lanes=o,e;case ru:return e=Ct(19,n,t,i),e.elementType=ru,e.lanes=o,e;case i0:return oa(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 gs:l=11;break e;case ys:l=14;break e;case wn:l=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zn(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=i0,e.lanes=n,e.stateNode={isHidden:!1},e}function $a(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Ha(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l2(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=xa(0),this.expirationTimes=xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Js(e,t,n,r,i,o,l,a,u){return e=new l2(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zs(o),e}function a2(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(),Xd.exports=yt;var rc=Xd.exports;const d2=Vr(rc),p2=Sd({__proto__:null,default:d2},[rc]);var J1,Hf=rc;J1=Hf.createRoot,Hf.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ja(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Nu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hv=typeof WeakMap=="function"?WeakMap:Map;function k1(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tl||(Tl=!0,Bu=r),Nu(e,t)},n}function P1(e,t,n){n=rn(-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(){Nu(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Nu(e,t),typeof r!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Cf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hv;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=t2.bind(null,e,t,n),t.then(e,e))}function Tf(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 kf(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=rn(-1,1),t.tag=2,Ln(n,t,1))),n.lanes|=1),e)}var Bv=cn.ReactCurrentOwner,ot=!1;function Ze(e,t,n,r){t.child=e===null?t1(t,null,n,r):Ur(t,e.child,n,r)}function Pf(e,t,n,r,i){n=n.render;var o=t.ref;return Nr(t,i),r=Hs(e,t,n,r,o,i),n=Bs(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sn(e,t,i)):(ve&&n&&Ls(t),t.flags|=1,Ze(e,t,r,i),t.child)}function _f(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Xs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,_1(e,t,o,r,i)):(e=Jo(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:ji,n(l,r)&&e.ref===t.ref)return sn(e,t,i)}return t.flags|=1,e=Nn(o,r),e.ref=t.ref,e.return=t,t.child=e}function _1(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(ji(o,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,sn(e,t,i)}return Au(e,t,n,r,i)}function R1(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},se(Tr,ft),ft|=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,se(Tr,ft),ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,se(Tr,ft),ft|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,se(Tr,ft),ft|=r;return Ze(e,t,i,n),t.child}function L1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Au(e,t,n,r,i){var o=at(n)?Jn:Qe.current;return o=Fr(t,o),Nr(t,i),n=Hs(e,t,n,r,o,i),r=Bs(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,sn(e,t,i)):(ve&&r&&Ls(t),t.flags|=1,Ze(e,t,n,i),t.child)}function Rf(e,t,n,r,i){if(at(n)){var o=!0;hl(t)}else o=!1;if(Nr(t,i),t.stateNode===null)Ko(e,t),T1(t,n,r),Ou(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=kt(s):(s=at(n)?Jn:Qe.current,s=Fr(t,s));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&Ef(t,l,r,s),wn=!1;var h=t.memoizedState;l.state=h,wl(t,r,l,i),u=t.memoizedState,a!==r||h!==u||lt.current||wn?(typeof f=="function"&&(Mu(t,n,f,r),u=t.memoizedState),(a=wn||xf(t,n,a,r,h,u,s))?(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=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,r1(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:Lt(t.type,a),l.props=s,c=t.pendingProps,h=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=kt(u):(u=at(n)?Jn:Qe.current,u=Fr(t,u));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==c||h!==u)&&Ef(t,l,r,u),wn=!1,h=t.memoizedState,l.state=h,wl(t,r,l,i);var E=t.memoizedState;a!==c||h!==E||lt.current||wn?(typeof y=="function"&&(Mu(t,n,y,r),E=t.memoizedState),(s=wn||xf(t,n,s,r,h,E,u)||!1)?(f||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,E,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,E,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=E),l.props=r,l.state=E,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Iu(e,t,n,r,o,i)}function Iu(e,t,n,r,i,o){L1(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&pf(t,n,!1),sn(e,t,o);r=t.stateNode,Bv.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Ur(t,e.child,null,o),t.child=Ur(t,null,a,o)):Ze(e,t,a,o),t.memoizedState=r.state,i&&pf(t,n,!0),t.child}function M1(e){var t=e.stateNode;t.pendingContext?df(e,t.pendingContext,t.pendingContext!==t.context):t.context&&df(e,t.context,!1),Fs(e,t.containerInfo)}function Lf(e,t,n,r,i){return jr(),Os(i),t.flags|=256,Ze(e,t,n,r),t.child}var Du={dehydrated:null,treeContext:null,retryLane:0};function zu(e){return{baseLanes:e,cachePool:null,transitions:null}}function O1(e,t,n){var r=t.pendingProps,i=ye.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),se(ye,i&1),e===null)return Ru(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=oa(l,r,0,null),e=Zn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=zu(n),t.memoizedState=Du,e):Ws(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return bv(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Nn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Nn(a,o):(o=Zn(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?zu(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Du,r}return o=e.child,e=o.sibling,r=Nn(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 Ws(e,t){return t=oa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function No(e,t,n,r){return r!==null&&Os(r),Ur(t,e.child,null,n),e=Ws(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bv(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=ja(Error(M(422))),No(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=oa({mode:"visible",children:r.children},i,0,null),o=Zn(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ur(t,e.child,null,l),t.child.memoizedState=zu(l),t.memoizedState=Du,o);if(!(t.mode&1))return No(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(M(419)),r=ja(o,r,void 0),No(e,t,l,r)}if(a=(l&e.childLanes)!==0,ot||a){if(r=De,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,un(e,i),Dt(r,e,i,-1))}return Zs(),r=ja(Error(M(421))),No(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=n2.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,pt=Rn(i.nextSibling),mt=t,ve=!0,Nt=null,e!==null&&(xt[Et++]=tn,xt[Et++]=nn,xt[Et++]=er,tn=e.id,nn=e.overflow,er=t),t=Ws(t,r.children),t.flags|=4096,t)}function Mf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lu(e.return,t,n)}function Ua(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 N1(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ze(e,t,r.children,n),r=ye.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&&Mf(e,n,t);else if(e.tag===19)Mf(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(se(ye,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&&Sl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ua(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&&Sl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ua(t,!0,n,null,o);break;case"together":Ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ko(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(M(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vv(e,t,n){switch(t.tag){case 3:M1(t),jr();break;case 5:i1(t);break;case 1:at(t.type)&&hl(t);break;case 4:Fs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;se(gl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(se(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?O1(e,t,n):(se(ye,ye.current&1),e=sn(e,t,n),e!==null?e.sibling:null);se(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return N1(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),se(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,R1(e,t,n)}return sn(e,t,n)}var A1,Fu,I1,D1;A1=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}};Fu=function(){};I1=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yn(Qt.current);var o=null;switch(n){case"input":i=ou(e,i),r=ou(e,r),o=[];break;case"select":i=Se({},i,{value:void 0}),r=Se({},r,{value:void 0}),o=[];break;case"textarea":i=uu(e,i),r=uu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=dl)}cu(n,r);var l;n=null;for(s in i)if(!r.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var a=i[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Oi.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in r){var u=r[s];if(a=i!=null?i[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(o||(o=[]),o.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Oi.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&de("scroll",e),o||a===u||(o=[])):(o=o||[]).push(s,u))}n&&(o=o||[]).push("style",n);var s=o;(t.updateQueue=s)&&(t.flags|=4)}};D1=function(e,t,n,r){n!==r&&(t.flags|=4)};function li(e,t){if(!ve)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 be(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 Wv(e,t,n){var r=t.pendingProps;switch(Ms(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return at(t.type)&&pl(),be(t),null;case 3:return r=t.stateNode,$r(),pe(lt),pe(Qe),Us(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Mo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(Wu(Nt),Nt=null))),Fu(e,t),be(t),null;case 5:js(t);var i=Yn(bi.current);if(n=t.type,e!==null&&t.stateNode!=null)I1(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(M(166));return be(t),null}if(e=Yn(Qt.current),Mo(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[bt]=t,r[Hi]=o,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("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[bt]=t,e[Hi]=r,A1(e,t,!1,!1),t.stateNode=e;e:{switch(l=fu(n,r),n){case"dialog":de("cancel",e),de("close",e),i=r;break;case"iframe":case"object":case"embed":de("load",e),i=r;break;case"video":case"audio":for(i=0;iBr&&(t.flags|=128,r=!0,li(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ve)return be(t),null}else 2*ke()-o.renderingStartTime>Br&&n!==1073741824&&(t.flags|=128,r=!0,li(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=ke(),t.sibling=null,n=ye.current,se(ye,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return Ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ft&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function Qv(e,t){switch(Ms(t),t.tag){case 1:return at(t.type)&&pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),pe(lt),pe(Qe),Us(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return js(t),null;case 13:if(pe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));jr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ye),null;case 4:return $r(),null;case 10:return Is(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Ao=!1,We=!1,qv=typeof WeakSet=="function"?WeakSet:Set,z=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function ju(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Of=!1;function Yv(e,t){if(xu=sl,e=$0(),Rs(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,u=-1,s=0,f=0,c=e,h=null;t:for(;;){for(var y;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(y=c.firstChild)!==null;)h=c,c=y;for(;;){if(c===e)break t;if(h===n&&++s===i&&(a=l),h===o&&++f===r&&(u=l),(y=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=y}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},sl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;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 x=E.memoizedProps,P=E.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:Lt(t.type,x),P);m.__reactInternalSnapshotBeforeUpdate=p}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(M(163))}}catch(T){Te(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return E=Of,Of=!1,E}function Ti(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&&ju(t,n,o)}i=i.next}while(i!==r)}}function ra(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 Uu(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 z1(e){var t=e.alternate;t!==null&&(e.alternate=null,z1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bt],delete t[Hi],delete t[ku],delete t[Mv],delete t[Ov])),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 Nf(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 $u(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=dl));else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}function Hu(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(Hu(e,t,n),e=e.sibling;e!==null;)Hu(e,t,n),e=e.sibling}var je=null,Mt=!1;function vn(e,t,n){for(n=n.child;n!==null;)j1(e,t,n),n=n.sibling}function j1(e,t,n){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:We||Cr(n,t);case 6:var r=je,i=Mt;je=null,vn(e,t,n),je=r,Mt=i,je!==null&&(Mt?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Mt?(e=je,n=n.stateNode,e.nodeType===8?Na(e.parentNode,n):e.nodeType===1&&Na(e,n),zi(e)):Na(je,n.stateNode));break;case 4:r=je,i=Mt,je=n.stateNode.containerInfo,Mt=!0,vn(e,t,n),je=r,Mt=i;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&ju(n,t,l),i=i.next}while(i!==r)}vn(e,t,n);break;case 1:if(!We&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Te(n,t,a)}vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,vn(e,t,n),We=r):vn(e,t,n);break;default:vn(e,t,n)}}function Af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qv),t.forEach(function(r){var i=r2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Rt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kv(r/1960))-r,10e?16:e,Cn===null)var r=!1;else{if(e=Cn,Cn=null,kl=0,J&6)throw Error(M(331));var i=J;for(J|=4,z=e.current;z!==null;){var o=z,l=o.child;if(z.flags&16){var a=o.deletions;if(a!==null){for(var u=0;uke()-Ys?Kn(e,0):qs|=n),ut(e,t)}function Q1(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Xe();e=un(e,t),e!==null&&(no(e,t,n),ut(e,n))}function n2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Q1(e,n)}function r2(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(M(314))}r!==null&&r.delete(t),Q1(e,n)}var q1;q1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,Vv(e,t,n);ot=!!(e.flags&131072)}else ot=!1,ve&&t.flags&1048576&&Z0(t,vl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ko(e,t),e=t.pendingProps;var i=Fr(t,Qe.current);Nr(t,n),i=Hs(null,t,r,e,i,n);var o=Bs();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,at(r)?(o=!0,hl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,zs(t),i.updater=na,t.stateNode=i,i._reactInternals=t,Ou(t,r,e,n),t=Iu(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&Ls(t),Ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ko(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=o2(r),e=Lt(r,e),i){case 0:t=Au(null,t,r,e,n);break e;case 1:t=Rf(null,t,r,e,n);break e;case 11:t=Pf(null,t,r,e,n);break e;case 14:t=_f(null,t,r,Lt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Au(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Rf(e,t,r,i,n);case 3:e:{if(M1(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,r1(e,t),wl(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=Hr(Error(M(423)),t),t=Lf(e,t,r,n,i);break e}else if(r!==i){i=Hr(Error(M(424)),t),t=Lf(e,t,r,n,i);break e}else for(pt=Rn(t.stateNode.containerInfo.firstChild),mt=t,ve=!0,Nt=null,n=t1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(jr(),r===i){t=sn(e,t,n);break e}Ze(e,t,r,n)}t=t.child}return t;case 5:return i1(t),e===null&&Ru(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Cu(r,i)?l=null:o!==null&&Cu(r,o)&&(t.flags|=32),L1(e,t),Ze(e,t,l,n),t.child;case 6:return e===null&&Ru(t),null;case 13:return O1(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Pf(e,t,r,i,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(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,se(gl,r._currentValue),r._currentValue=l,o!==null)if(zt(o.value,l)){if(o.children===i.children&&!lt.current){t=sn(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 u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=rn(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Lu(o.return,n,t),a.lanes|=n;break}u=u.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(M(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Lu(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}Ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Nr(t,n),i=kt(i),r=r(i),t.flags|=1,Ze(e,t,r,n),t.child;case 14:return r=t.type,i=Lt(r,t.pendingProps),i=Lt(r.type,i),_f(e,t,r,i,n);case 15:return _1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lt(r,i),Ko(e,t),t.tag=1,at(r)?(e=!0,hl(t)):e=!1,Nr(t,n),T1(t,r,i),Ou(t,r,i,n),Iu(null,t,r,!0,e,n);case 19:return N1(e,t,n);case 22:return R1(e,t,n)}throw Error(M(156,t.tag))};function Y1(e,t){return x0(e,t)}function i2(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 Ct(e,t,n,r){return new i2(e,t,n,r)}function Xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function o2(e){if(typeof e=="function")return Xs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gs)return 11;if(e===ys)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=Ct(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 Jo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Xs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case hr:return Zn(n.children,i,o,t);case vs:l=8,i|=8;break;case tu:return e=Ct(12,n,t,i|2),e.elementType=tu,e.lanes=o,e;case nu:return e=Ct(13,n,t,i),e.elementType=nu,e.lanes=o,e;case ru:return e=Ct(19,n,t,i),e.elementType=ru,e.lanes=o,e;case i0:return oa(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 gs:l=11;break e;case ys:l=14;break e;case yn:l=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Ct(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zn(e,t,n,r){return e=Ct(7,e,r,t),e.lanes=n,e}function oa(e,t,n,r){return e=Ct(22,e,r,t),e.elementType=i0,e.lanes=n,e.stateNode={isHidden:!1},e}function $a(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Ha(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l2(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=xa(0),this.expirationTimes=xa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Js(e,t,n,r,i,o,l,a,u){return e=new l2(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ct(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zs(o),e}function a2(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(),Xd.exports=yt;var rc=Xd.exports;const d2=Vr(rc),p2=Sd({__proto__:null,default:d2},[rc]);var J1,Hf=rc;J1=Hf.createRoot,Hf.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 ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ir(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m2(){return Math.random().toString(36).substr(2,8)}function bf(e,t){return{usr:e.state,key:e.key,idx:t}}function Yi(e,t,n,r){return n===void 0&&(n=null),ge({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fn(t):t,{state:n,key:t&&t.key||r||m2()})}function or(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 fn(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 v2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Re.Pop,u=null,s=f();s==null&&(s=0,l.replaceState(ge({},l.state,{idx:s}),""));function f(){return(l.state||{idx:null}).idx}function c(){a=Re.Pop;let P=f(),m=P==null?null:P-s;s=P,u&&u({action:a,location:x.location,delta:m})}function h(P,m){a=Re.Push;let p=Yi(x.location,P,m);n&&n(p,P),s=f()+1;let g=bf(p,s),T=x.createHref(p);try{l.pushState(g,"",T)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(T)}o&&u&&u({action:a,location:x.location,delta:1})}function y(P,m){a=Re.Replace;let p=Yi(x.location,P,m);n&&n(p,P),s=f();let g=bf(p,s),T=x.createHref(p);l.replaceState(g,"",T),o&&u&&u({action:a,location:x.location,delta:0})}function E(P){let m=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof P=="string"?P:or(P);return p=p.replace(/ $/,"%20"),K(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let x={get action(){return a},get location(){return e(i,l)},listen(P){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Bf,c),u=P,()=>{i.removeEventListener(Bf,c),u=null}},createHref(P){return t(i,P)},createURL:E,encodeLocation(P){let m=E(P);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:y,go(P){return l.go(P)}};return x}var le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(le||(le={}));const g2=new Set(["lazy","caseSensitive","path","id","index","children"]);function y2(e){return e.index===!0}function Gi(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(K(i.index!==!0||!i.children,"Cannot specify children on an index route"),K(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),y2(i)){let u=ge({},i,t(i),{id:a});return r[a]=u,u}else{let u=ge({},i,t(i),{id:a,children:void 0});return r[a]=u,i.children&&(u.children=Gi(i.children,t,l,r)),u}})}function Wn(e,t,n){return n===void 0&&(n="/"),el(e,t,n,!1)}function el(e,t,n,r){let i=typeof t=="string"?fn(t):t,o=Gr(i.pathname||"/",n);if(o==null)return null;let l=ep(e);S2(l);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(K(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=on([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),ep(o.children,t,f,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:_2(s,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 u of tp(o.path))i(o,l,u)}),t}function tp(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=tp(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function S2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const x2=/^:[\w-]+$/,E2=3,C2=2,T2=1,k2=10,P2=-2,Vf=e=>e==="*";function _2(e,t){let n=e.split("/"),r=n.length;return n.some(Vf)&&(r+=P2),t&&(r+=C2),n.filter(i=>!Vf(i)).reduce((i,o)=>i+(x2.test(o)?E2:o===""?T2:k2),r)}function R2(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 L2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a{let{paramName:h,isOptional:y}=f;if(h==="*"){let x=a[c]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const E=a[c];return y&&!E?s[h]=void 0:s[h]=(E||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:l,pattern:e}}function M2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ir(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,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function O2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ir(!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 Gr(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 N2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?fn(e):e;return{pathname:n?n.startsWith("/")?n:A2(n,t):t,search:D2(r),hash:z2(i)}}function A2(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 Ba(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 np(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ic(e,t){let n=np(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function oc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=fn(e):(i=ge({},e),K(!i.pathname||!i.pathname.includes("?"),Ba("?","pathname","search",i)),K(!i.pathname||!i.pathname.includes("#"),Ba("#","pathname","hash",i)),K(!i.search||!i.search.includes("#"),Ba("#","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 h=l.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}a=c>=0?t[c]:"/"}let u=N2(i,a),s=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}const on=e=>e.join("/").replace(/\/\/+/g,"/"),I2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Rl{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 ca(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rp=["post","put","patch","delete"],F2=new Set(rp),j2=["get",...rp],U2=new Set(j2),$2=new Set([301,302,303,307,308]),H2=new Set([307,308]),ba={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},B2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ui={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},lc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ip="remix-router-transitions";function V2(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;K(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 v=e.detectErrorBoundary;i=S=>({hasErrorBoundary:v(S)})}else i=b2;let o={},l=Gi(e.routes,i,void 0,o),a,u=e.basename||"/",s=e.unstable_dataStrategy||K2,f=e.unstable_patchRoutesOnNavigation,c=ge({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,y=new Set,E=1e3,x=new Set,P=null,m=null,p=null,g=e.hydrationData!=null,T=Wn(l,e.history.location,u),R=null;if(T==null&&!f){let v=Ke(404,{pathname:e.history.location.pathname}),{matches:S,route:C}=ed(l);T=S,R={[C.id]:v}}T&&!e.hydrationData&&fo(T,l,e.history.location.pathname).active&&(T=null);let O;if(T)if(T.some(v=>v.route.lazy))O=!1;else if(!T.some(v=>v.route.loader))O=!0;else if(c.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null,C=_=>_.route.loader?typeof _.route.loader=="function"&&_.route.loader.hydrate===!0?!1:v&&v[_.route.id]!==void 0||S&&S[_.route.id]!==void 0:!0;if(S){let _=T.findIndex(D=>S[D.route.id]!==void 0);O=T.slice(0,_+1).every(C)}else O=T.every(C)}else O=e.hydrationData!=null;else if(O=!1,T=[],c.v7_partialHydration){let v=fo(null,l,e.history.location.pathname);v.active&&v.matches&&(T=v.matches)}let L,w={historyAction:e.history.action,location:e.history.location,matches:T,initialized:O,navigation:ba,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||R,fetchers:new Map,blockers:new Map},j=Re.Pop,A=!1,q,ae=!1,Pe=new Map,xe=null,Ft=!1,_t=!1,pn=[],I=new Set,F=new Map,W=0,ue=-1,ce=new Map,tt=new Set,nt=new Map,qt=new Map,Fe=new Set,St=new Map,$n=new Map,Lp=new Map,ao;function Mp(){if(h=e.history.listen(v=>{let{action:S,location:C,delta:_}=v;if(ao){ao(),ao=void 0;return}ir($n.size===0||_!=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 D=Sc({currentLocation:w.location,nextLocation:C,historyAction:S});if(D&&_!=null){let B=new Promise(V=>{ao=V});e.history.go(_*-1),so(D,{state:"blocked",location:C,proceed(){so(D,{state:"proceeding",proceed:void 0,reset:void 0,location:C}),B.then(()=>e.history.go(_))},reset(){let V=new Map(w.blockers);V.set(D,ui),qe({blockers:V})}});return}return Hn(S,C)}),n){fg(t,Pe);let v=()=>dg(t,Pe);t.addEventListener("pagehide",v),xe=()=>t.removeEventListener("pagehide",v)}return w.initialized||Hn(Re.Pop,w.location,{initialHydration:!0}),L}function Op(){h&&h(),xe&&xe(),y.clear(),q&&q.abort(),w.fetchers.forEach((v,S)=>uo(S)),w.blockers.forEach((v,S)=>wc(S))}function Np(v){return y.add(v),()=>y.delete(v)}function qe(v,S){S===void 0&&(S={}),w=ge({},w,v);let C=[],_=[];c.v7_fetcherPersist&&w.fetchers.forEach((D,B)=>{D.state==="idle"&&(Fe.has(B)?_.push(B):C.push(B))}),[...y].forEach(D=>D(w,{deletedFetchers:_,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),c.v7_fetcherPersist&&(C.forEach(D=>w.fetchers.delete(D)),_.forEach(D=>uo(D)))}function sr(v,S,C){var _,D;let{flushSync:B}=C===void 0?{}:C,V=w.actionData!=null&&w.navigation.formMethod!=null&&Ot(w.navigation.formMethod)&&w.navigation.state==="loading"&&((_=v.state)==null?void 0:_._isRedirect)!==!0,N;S.actionData?Object.keys(S.actionData).length>0?N=S.actionData:N=null:V?N=w.actionData:N=null;let b=S.loaderData?Xf(w.loaderData,S.loaderData,S.matches||[],S.errors):w.loaderData,U=w.blockers;U.size>0&&(U=new Map(U),U.forEach((re,fe)=>U.set(fe,ui)));let H=A===!0||w.navigation.formMethod!=null&&Ot(w.navigation.formMethod)&&((D=v.state)==null?void 0:D._isRedirect)!==!0;a&&(l=a,a=void 0),Ft||j===Re.Pop||(j===Re.Push?e.history.push(v,v.state):j===Re.Replace&&e.history.replace(v,v.state));let ee;if(j===Re.Pop){let re=Pe.get(w.location.pathname);re&&re.has(v.pathname)?ee={currentLocation:w.location,nextLocation:v}:Pe.has(v.pathname)&&(ee={currentLocation:v,nextLocation:w.location})}else if(ae){let re=Pe.get(w.location.pathname);re?re.add(v.pathname):(re=new Set([v.pathname]),Pe.set(w.location.pathname,re)),ee={currentLocation:w.location,nextLocation:v}}qe(ge({},S,{actionData:N,loaderData:b,historyAction:j,location:v,initialized:!0,navigation:ba,revalidation:"idle",restoreScrollPosition:Ec(v,S.matches||w.matches),preventScrollReset:H,blockers:U}),{viewTransitionOpts:ee,flushSync:B===!0}),j=Re.Pop,A=!1,ae=!1,Ft=!1,_t=!1,pn=[]}async function dc(v,S){if(typeof v=="number"){e.history.go(v);return}let C=Qu(w.location,w.matches,u,c.v7_prependBasename,v,c.v7_relativeSplatPath,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:_,submission:D,error:B}=Qf(c.v7_normalizeFormMethod,!1,C,S),V=w.location,N=Yi(w.location,_,S&&S.state);N=ge({},N,e.history.encodeLocation(N));let b=S&&S.replace!=null?S.replace:void 0,U=Re.Push;b===!0?U=Re.Replace:b===!1||D!=null&&Ot(D.formMethod)&&D.formAction===w.location.pathname+w.location.search&&(U=Re.Replace);let H=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,ee=(S&&S.unstable_flushSync)===!0,re=Sc({currentLocation:V,nextLocation:N,historyAction:U});if(re){so(re,{state:"blocked",location:N,proceed(){so(re,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),dc(v,S)},reset(){let fe=new Map(w.blockers);fe.set(re,ui),qe({blockers:fe})}});return}return await Hn(U,N,{submission:D,pendingError:B,preventScrollReset:H,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:ee})}function Ap(){if(da(),qe({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Hn(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Hn(j||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:ae===!0})}}async function Hn(v,S,C){q&&q.abort(),q=null,j=v,Ft=(C&&C.startUninterruptedRevalidation)===!0,bp(w.location,w.matches),A=(C&&C.preventScrollReset)===!0,ae=(C&&C.enableViewTransition)===!0;let _=a||l,D=C&&C.overrideNavigation,B=Wn(_,S,u),V=(C&&C.flushSync)===!0,N=fo(B,_,S.pathname);if(N.active&&N.matches&&(B=N.matches),!B){let{error:X,notFoundMatches:Ae,route:_e}=pa(S.pathname);sr(S,{matches:Ae,loaderData:{},errors:{[_e.id]:X}},{flushSync:V});return}if(w.initialized&&!_t&&ng(w.location,S)&&!(C&&C.submission&&Ot(C.submission.formMethod))){sr(S,{matches:B},{flushSync:V});return}q=new AbortController;let b=dr(e.history,S,q.signal,C&&C.submission),U;if(C&&C.pendingError)U=[Pr(B).route.id,{type:le.error,error:C.pendingError}];else if(C&&C.submission&&Ot(C.submission.formMethod)){let X=await Ip(b,S,C.submission,B,N.active,{replace:C.replace,flushSync:V});if(X.shortCircuited)return;if(X.pendingActionResult){let[Ae,_e]=X.pendingActionResult;if(dt(_e)&&ca(_e.error)&&_e.error.status===404){q=null,sr(S,{matches:X.matches,loaderData:{},errors:{[Ae]:_e.error}});return}}B=X.matches||B,U=X.pendingActionResult,D=Va(S,C.submission),V=!1,N.active=!1,b=dr(e.history,b.url,b.signal)}let{shortCircuited:H,matches:ee,loaderData:re,errors:fe}=await Dp(b,S,B,N.active,D,C&&C.submission,C&&C.fetcherSubmission,C&&C.replace,C&&C.initialHydration===!0,V,U);H||(q=null,sr(S,ge({matches:ee||B},Jf(U),{loaderData:re,errors:fe})))}async function Ip(v,S,C,_,D,B){B===void 0&&(B={}),da();let V=sg(S,C);if(qe({navigation:V},{flushSync:B.flushSync===!0}),D){let U=await po(_,S.pathname,v.signal);if(U.type==="aborted")return{shortCircuited:!0};if(U.type==="error"){let{boundaryId:H,error:ee}=co(S.pathname,U);return{matches:U.partialMatches,pendingActionResult:[H,{type:le.error,error:ee}]}}else if(U.matches)_=U.matches;else{let{notFoundMatches:H,error:ee,route:re}=pa(S.pathname);return{matches:H,pendingActionResult:[re.id,{type:le.error,error:ee}]}}}let N,b=gi(_,S);if(!b.route.action&&!b.route.lazy)N={type:le.error,error:Ke(405,{method:v.method,pathname:S.pathname,routeId:b.route.id})};else if(N=(await Zr("action",w,v,[b],_,null))[b.route.id],v.signal.aborted)return{shortCircuited:!0};if(Gn(N)){let U;return B&&B.replace!=null?U=B.replace:U=Gf(N.response.headers.get("Location"),new URL(v.url),u)===w.location.pathname+w.location.search,await Bn(v,N,!0,{submission:C,replace:U}),{shortCircuited:!0}}if(kn(N))throw Ke(400,{type:"defer-action"});if(dt(N)){let U=Pr(_,b.route.id);return(B&&B.replace)!==!0&&(j=Re.Push),{matches:_,pendingActionResult:[U.route.id,N]}}return{matches:_,pendingActionResult:[b.route.id,N]}}async function Dp(v,S,C,_,D,B,V,N,b,U,H){let ee=D||Va(S,B),re=B||V||nd(ee),fe=!Ft&&(!c.v7_partialHydration||!b);if(_){if(fe){let Ee=pc(H);qe(ge({navigation:ee},Ee!==void 0?{actionData:Ee}:{}),{flushSync:U})}let G=await po(C,S.pathname,v.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Ee,error:ct}=co(S.pathname,G);return{matches:G.partialMatches,loaderData:{},errors:{[Ee]:ct}}}else if(G.matches)C=G.matches;else{let{error:Ee,notFoundMatches:ct,route:Ce}=pa(S.pathname);return{matches:ct,loaderData:{},errors:{[Ce.id]:Ee}}}}let X=a||l,[Ae,_e]=qf(e.history,w,C,re,S,c.v7_partialHydration&&b===!0,c.v7_skipActionErrorRevalidation,_t,pn,I,Fe,nt,tt,X,u,H);if(ha(G=>!(C&&C.some(Ee=>Ee.route.id===G))||Ae&&Ae.some(Ee=>Ee.route.id===G)),ue=++W,Ae.length===0&&_e.length===0){let G=gc();return sr(S,ge({matches:C,loaderData:{},errors:H&&dt(H[1])?{[H[0]]:H[1].error}:null},Jf(H),G?{fetchers:new Map(w.fetchers)}:{}),{flushSync:U}),{shortCircuited:!0}}if(fe){let G={};if(!_){G.navigation=ee;let Ee=pc(H);Ee!==void 0&&(G.actionData=Ee)}_e.length>0&&(G.fetchers=zp(_e)),qe(G,{flushSync:U})}_e.forEach(G=>{F.has(G.key)&&mn(G.key),G.controller&&F.set(G.key,G.controller)});let Xr=()=>_e.forEach(G=>mn(G.key));q&&q.signal.addEventListener("abort",Xr);let{loaderResults:Gt,fetcherResults:cr}=await hc(w,C,Ae,_e,v);if(v.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Xr),_e.forEach(G=>F.delete(G.key));let vn=zo(Gt);if(vn)return await Bn(v,vn.result,!0,{replace:N}),{shortCircuited:!0};if(vn=zo(cr),vn)return tt.add(vn.key),await Bn(v,vn.result,!0,{replace:N}),{shortCircuited:!0};let{loaderData:ho,errors:Kt}=Zf(w,C,Ae,Gt,H,_e,cr,St);St.forEach((G,Ee)=>{G.subscribe(ct=>{(ct||G.done)&&St.delete(Ee)})}),c.v7_partialHydration&&b&&w.errors&&Object.entries(w.errors).filter(G=>{let[Ee]=G;return!Ae.some(ct=>ct.route.id===Ee)}).forEach(G=>{let[Ee,ct]=G;Kt=Object.assign(Kt||{},{[Ee]:ct})});let mo=gc(),vo=yc(ue),go=mo||vo||_e.length>0;return ge({matches:C,loaderData:ho,errors:Kt},go?{fetchers:new Map(w.fetchers)}:{})}function pc(v){if(v&&!dt(v[1]))return{[v[0]]:v[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function zp(v){return v.forEach(S=>{let C=w.fetchers.get(S.key),_=si(void 0,C?C.data:void 0);w.fetchers.set(S.key,_)}),new Map(w.fetchers)}function Fp(v,S,C,_){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.");F.has(v)&&mn(v);let D=(_&&_.unstable_flushSync)===!0,B=a||l,V=Qu(w.location,w.matches,u,c.v7_prependBasename,C,c.v7_relativeSplatPath,S,_==null?void 0:_.relative),N=Wn(B,V,u),b=fo(N,B,V);if(b.active&&b.matches&&(N=b.matches),!N){Yt(v,S,Ke(404,{pathname:V}),{flushSync:D});return}let{path:U,submission:H,error:ee}=Qf(c.v7_normalizeFormMethod,!0,V,_);if(ee){Yt(v,S,ee,{flushSync:D});return}let re=gi(N,U);if(A=(_&&_.preventScrollReset)===!0,H&&Ot(H.formMethod)){jp(v,S,U,re,N,b.active,D,H);return}nt.set(v,{routeId:S,path:U}),Up(v,S,U,re,N,b.active,D,H)}async function jp(v,S,C,_,D,B,V,N){da(),nt.delete(v);function b(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Zt=Ke(405,{method:N.formMethod,pathname:C,routeId:S});return Yt(v,S,Zt,{flushSync:V}),!0}return!1}if(!B&&b(_))return;let U=w.fetchers.get(v);hn(v,cg(N,U),{flushSync:V});let H=new AbortController,ee=dr(e.history,C,H.signal,N);if(B){let Ce=await po(D,C,ee.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){let{error:Zt}=co(C,Ce);Yt(v,S,Zt,{flushSync:V});return}else if(Ce.matches){if(D=Ce.matches,_=gi(D,C),b(_))return}else{Yt(v,S,Ke(404,{pathname:C}),{flushSync:V});return}}F.set(v,H);let re=W,X=(await Zr("action",w,ee,[_],D,v))[_.route.id];if(ee.signal.aborted){F.get(v)===H&&F.delete(v);return}if(c.v7_fetcherPersist&&Fe.has(v)){if(Gn(X)||dt(X)){hn(v,yn(void 0));return}}else{if(Gn(X))if(F.delete(v),ue>re){hn(v,yn(void 0));return}else return tt.add(v),hn(v,si(N)),Bn(ee,X,!1,{fetcherSubmission:N});if(dt(X)){Yt(v,S,X.error);return}}if(kn(X))throw Ke(400,{type:"defer-action"});let Ae=w.navigation.location||w.location,_e=dr(e.history,Ae,H.signal),Xr=a||l,Gt=w.navigation.state!=="idle"?Wn(Xr,w.navigation.location,u):w.matches;K(Gt,"Didn't find any matches after fetcher action");let cr=++W;ce.set(v,cr);let vn=si(N,X.data);w.fetchers.set(v,vn);let[ho,Kt]=qf(e.history,w,Gt,N,Ae,!1,c.v7_skipActionErrorRevalidation,_t,pn,I,Fe,nt,tt,Xr,u,[_.route.id,X]);Kt.filter(Ce=>Ce.key!==v).forEach(Ce=>{let Zt=Ce.key,Tc=w.fetchers.get(Zt),Qp=si(void 0,Tc?Tc.data:void 0);w.fetchers.set(Zt,Qp),F.has(Zt)&&mn(Zt),Ce.controller&&F.set(Zt,Ce.controller)}),qe({fetchers:new Map(w.fetchers)});let mo=()=>Kt.forEach(Ce=>mn(Ce.key));H.signal.addEventListener("abort",mo);let{loaderResults:vo,fetcherResults:go}=await hc(w,Gt,ho,Kt,_e);if(H.signal.aborted)return;H.signal.removeEventListener("abort",mo),ce.delete(v),F.delete(v),Kt.forEach(Ce=>F.delete(Ce.key));let G=zo(vo);if(G)return Bn(_e,G.result,!1);if(G=zo(go),G)return tt.add(G.key),Bn(_e,G.result,!1);let{loaderData:Ee,errors:ct}=Zf(w,Gt,ho,vo,void 0,Kt,go,St);if(w.fetchers.has(v)){let Ce=yn(X.data);w.fetchers.set(v,Ce)}yc(cr),w.navigation.state==="loading"&&cr>ue?(K(j,"Expected pending action"),q&&q.abort(),sr(w.navigation.location,{matches:Gt,loaderData:Ee,errors:ct,fetchers:new Map(w.fetchers)})):(qe({errors:ct,loaderData:Xf(w.loaderData,Ee,Gt,ct),fetchers:new Map(w.fetchers)}),_t=!1)}async function Up(v,S,C,_,D,B,V,N){let b=w.fetchers.get(v);hn(v,si(N,b?b.data:void 0),{flushSync:V});let U=new AbortController,H=dr(e.history,C,U.signal);if(B){let X=await po(D,C,H.signal);if(X.type==="aborted")return;if(X.type==="error"){let{error:Ae}=co(C,X);Yt(v,S,Ae,{flushSync:V});return}else if(X.matches)D=X.matches,_=gi(D,C);else{Yt(v,S,Ke(404,{pathname:C}),{flushSync:V});return}}F.set(v,U);let ee=W,fe=(await Zr("loader",w,H,[_],D,v))[_.route.id];if(kn(fe)&&(fe=await ac(fe,H.signal,!0)||fe),F.get(v)===U&&F.delete(v),!H.signal.aborted){if(Fe.has(v)){hn(v,yn(void 0));return}if(Gn(fe))if(ue>ee){hn(v,yn(void 0));return}else{tt.add(v),await Bn(H,fe,!1);return}if(dt(fe)){Yt(v,S,fe.error);return}K(!kn(fe),"Unhandled fetcher deferred data"),hn(v,yn(fe.data))}}async function Bn(v,S,C,_){let{submission:D,fetcherSubmission:B,replace:V}=_===void 0?{}:_;S.response.headers.has("X-Remix-Revalidate")&&(_t=!0);let N=S.response.headers.get("Location");K(N,"Expected a Location header on the redirect Response"),N=Gf(N,new URL(v.url),u);let b=Yi(w.location,N,{_isRedirect:!0});if(n){let X=!1;if(S.response.headers.has("X-Remix-Reload-Document"))X=!0;else if(lc.test(N)){const Ae=e.history.createURL(N);X=Ae.origin!==t.location.origin||Gr(Ae.pathname,u)==null}if(X){V?t.location.replace(N):t.location.assign(N);return}}q=null;let U=V===!0||S.response.headers.has("X-Remix-Replace")?Re.Replace:Re.Push,{formMethod:H,formAction:ee,formEncType:re}=w.navigation;!D&&!B&&H&&ee&&re&&(D=nd(w.navigation));let fe=D||B;if(H2.has(S.response.status)&&fe&&Ot(fe.formMethod))await Hn(U,b,{submission:ge({},fe,{formAction:N}),preventScrollReset:A,enableViewTransition:C?ae:void 0});else{let X=Va(b,D);await Hn(U,b,{overrideNavigation:X,fetcherSubmission:B,preventScrollReset:A,enableViewTransition:C?ae:void 0})}}async function Zr(v,S,C,_,D,B){let V,N={};try{V=await Z2(s,v,S,C,_,D,B,o,i)}catch(b){return _.forEach(U=>{N[U.route.id]={type:le.error,error:b}}),N}for(let[b,U]of Object.entries(V))if(ig(U)){let H=U.result;N[b]={type:le.redirect,response:eg(H,C,b,D,u,c.v7_relativeSplatPath)}}else N[b]=await J2(U);return N}async function hc(v,S,C,_,D){let B=v.matches,V=Zr("loader",v,D,C,S,null),N=Promise.all(_.map(async H=>{if(H.matches&&H.match&&H.controller){let re=(await Zr("loader",v,dr(e.history,H.path,H.controller.signal),[H.match],H.matches,H.key))[H.match.route.id];return{[H.key]:re}}else return Promise.resolve({[H.key]:{type:le.error,error:Ke(404,{pathname:H.path})}})})),b=await V,U=(await N).reduce((H,ee)=>Object.assign(H,ee),{});return await Promise.all([ag(S,b,D.signal,B,v.loaderData),ug(S,U,_)]),{loaderResults:b,fetcherResults:U}}function da(){_t=!0,pn.push(...ha()),nt.forEach((v,S)=>{F.has(S)&&(I.add(S),mn(S))})}function hn(v,S,C){C===void 0&&(C={}),w.fetchers.set(v,S),qe({fetchers:new Map(w.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Yt(v,S,C,_){_===void 0&&(_={});let D=Pr(w.matches,S);uo(v),qe({errors:{[D.route.id]:C},fetchers:new Map(w.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function mc(v){return c.v7_fetcherPersist&&(qt.set(v,(qt.get(v)||0)+1),Fe.has(v)&&Fe.delete(v)),w.fetchers.get(v)||B2}function uo(v){let S=w.fetchers.get(v);F.has(v)&&!(S&&S.state==="loading"&&ce.has(v))&&mn(v),nt.delete(v),ce.delete(v),tt.delete(v),Fe.delete(v),I.delete(v),w.fetchers.delete(v)}function $p(v){if(c.v7_fetcherPersist){let S=(qt.get(v)||0)-1;S<=0?(qt.delete(v),Fe.add(v)):qt.set(v,S)}else uo(v);qe({fetchers:new Map(w.fetchers)})}function mn(v){let S=F.get(v);K(S,"Expected fetch controller: "+v),S.abort(),F.delete(v)}function vc(v){for(let S of v){let C=mc(S),_=yn(C.data);w.fetchers.set(S,_)}}function gc(){let v=[],S=!1;for(let C of tt){let _=w.fetchers.get(C);K(_,"Expected fetcher: "+C),_.state==="loading"&&(tt.delete(C),v.push(C),S=!0)}return vc(v),S}function yc(v){let S=[];for(let[C,_]of ce)if(_0}function Hp(v,S){let C=w.blockers.get(v)||ui;return $n.get(v)!==S&&$n.set(v,S),C}function wc(v){w.blockers.delete(v),$n.delete(v)}function so(v,S){let C=w.blockers.get(v)||ui;K(C.state==="unblocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="proceeding"||C.state==="blocked"&&S.state==="unblocked"||C.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+C.state+" -> "+S.state);let _=new Map(w.blockers);_.set(v,S),qe({blockers:_})}function Sc(v){let{currentLocation:S,nextLocation:C,historyAction:_}=v;if($n.size===0)return;$n.size>1&&ir(!1,"A router only supports one blocker at a time");let D=Array.from($n.entries()),[B,V]=D[D.length-1],N=w.blockers.get(B);if(!(N&&N.state==="proceeding")&&V({currentLocation:S,nextLocation:C,historyAction:_}))return B}function pa(v){let S=Ke(404,{pathname:v}),C=a||l,{matches:_,route:D}=ed(C);return ha(),{notFoundMatches:_,route:D,error:S}}function co(v,S){return{boundaryId:Pr(S.partialMatches).route.id,error:Ke(400,{type:"route-discovery",pathname:v,message:S.error!=null&&"message"in S.error?S.error:String(S.error)})}}function ha(v){let S=[];return St.forEach((C,_)=>{(!v||v(_))&&(C.cancel(),S.push(_),St.delete(_))}),S}function Bp(v,S,C){if(P=v,p=S,m=C||null,!g&&w.navigation===ba){g=!0;let _=Ec(w.location,w.matches);_!=null&&qe({restoreScrollPosition:_})}return()=>{P=null,p=null,m=null}}function xc(v,S){return m&&m(v,S.map(_=>w2(_,w.loaderData)))||v.key}function bp(v,S){if(P&&p){let C=xc(v,S);P[C]=p()}}function Ec(v,S){if(P){let C=xc(v,S),_=P[C];if(typeof _=="number")return _}return null}function fo(v,S,C){if(f){if(x.has(C))return{active:!1,matches:v};if(v){if(Object.keys(v[0].params).length>0)return{active:!0,matches:el(S,C,u,!0)}}else return{active:!0,matches:el(S,C,u,!0)||[]}}return{active:!1,matches:null}}async function po(v,S,C){let _=v;for(;;){let D=a==null,B=a||l;try{await Y2(f,S,_,B,o,i,Lp,C)}catch(b){return{type:"error",error:b,partialMatches:_}}finally{D&&(l=[...l])}if(C.aborted)return{type:"aborted"};let V=Wn(B,S,u);if(V)return Cc(S,x),{type:"success",matches:V};let N=el(B,S,u,!0);if(!N||_.length===N.length&&_.every((b,U)=>b.route.id===N[U].route.id))return Cc(S,x),{type:"success",matches:null};_=N}}function Cc(v,S){if(S.size>=E){let C=S.values().next().value;S.delete(C)}S.add(v)}function Vp(v){o={},a=Gi(v,i,void 0,o)}function Wp(v,S){let C=a==null;lp(v,S,a||l,o,i),C&&(l=[...l],qe({}))}return L={get basename(){return u},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Mp,subscribe:Np,enableScrollRestoration:Bp,navigate:dc,fetch:Fp,revalidate:Ap,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:mc,deleteFetcher:$p,dispose:Op,getBlocker:Hp,deleteBlocker:wc,patchRoutes:Wp,_internalFetchControllers:F,_internalActiveDeferreds:St,_internalSetRoutes:Vp},L}function W2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Qu(e,t,n,r,i,o,l,a){let u,s;if(l){u=[];for(let c of t)if(u.push(c),c.route.id===l){s=c;break}}else u=t,s=t[t.length-1];let f=oc(i||".",ic(u,o),Gr(e.pathname,n)||e.pathname,a==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&s&&s.route.index&&!uc(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:on([n,f.pathname])),or(f)}function Qf(e,t,n,r){if(!r||!W2(r))return{path:n};if(r.formMethod&&!lg(r.formMethod))return{path:n,error:Ke(405,{method:r.formMethod})};let i=()=>({path:n,error:Ke(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=ap(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ot(l))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,E)=>{let[x,P]=E;return""+y+x+"="+P+` -`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Ot(l))return i();try{let h=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:h,text:void 0}}}catch{return i()}}}K(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=qu(r.formData),s=r.formData;else if(r.body instanceof FormData)u=qu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Kf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Kf(u)}catch{return i()}let f={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ot(f.formMethod))return{path:n,submission:f};let c=fn(n);return t&&c.search&&uc(c.search)&&u.append("index",""),c.search="?"+u,{path:or(c),submission:f}}function Q2(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 qf(e,t,n,r,i,o,l,a,u,s,f,c,h,y,E,x){let P=x?dt(x[1])?x[1].error:x[1].data:void 0,m=e.createURL(t.location),p=e.createURL(i),g=x&&dt(x[1])?x[0]:void 0,T=g?Q2(n,g):n,R=x?x[1].statusCode:void 0,O=l&&R&&R>=400,L=T.filter((j,A)=>{let{route:q}=j;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(q2(t.loaderData,t.matches[A],j)||u.some(xe=>xe===j.route.id))return!0;let ae=t.matches[A],Pe=j;return Yf(j,ge({currentUrl:m,currentParams:ae.params,nextUrl:p,nextParams:Pe.params},r,{actionResult:P,actionStatus:R,defaultShouldRevalidate:O?!1:a||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||op(ae,Pe)}))}),w=[];return c.forEach((j,A)=>{if(o||!n.some(Ft=>Ft.route.id===j.routeId)||f.has(A))return;let q=Wn(y,j.path,E);if(!q){w.push({key:A,routeId:j.routeId,path:j.path,matches:null,match:null,controller:null});return}let ae=t.fetchers.get(A),Pe=gi(q,j.path),xe=!1;h.has(A)?xe=!1:s.has(A)?(s.delete(A),xe=!0):ae&&ae.state!=="idle"&&ae.data===void 0?xe=a:xe=Yf(Pe,ge({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:P,actionStatus:R,defaultShouldRevalidate:O?!1:a})),xe&&w.push({key:A,routeId:j.routeId,path:j.path,matches:q,match:Pe,controller:new AbortController})}),[L,w]}function q2(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function op(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Yf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Y2(e,t,n,r,i,o,l,a){let u=[t,...n.map(s=>s.route.id)].join("-");try{let s=l.get(u);s||(s=e({path:t,matches:n,patch:(f,c)=>{a.aborted||lp(f,c,r,i,o)}}),l.set(u,s)),s&&rg(s)&&await s}finally{l.delete(u)}}function lp(e,t,n,r,i){if(e){var o;let l=r[e];K(l,"No route found to patch children into: routeId = "+e);let a=Gi(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=Gi(t,i,["patch",String(n.length||"0")],r);n.push(...l)}}async function G2(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];K(i,"No route found in manifest");let o={};for(let l in r){let u=i[l]!==void 0&&l!=="hasErrorBoundary";ir(!u,'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.')),!u&&!g2.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ge({},t(i),{lazy:void 0}))}async function K2(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 Z2(e,t,n,r,i,o,l,a,u,s){let f=o.map(y=>y.route.lazy?G2(y.route,u,a):void 0),c=o.map((y,E)=>{let x=f[E],P=i.some(p=>p.route.id===y.route.id);return ge({},y,{shouldLoad:P,resolve:async p=>(p&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(P=!0),P?X2(t,r,y,x,p,s):Promise.resolve({type:le.data,result:void 0}))})}),h=await e({matches:c,request:r,params:o[0].params,fetcherKey:l,context:s});try{await Promise.all(f)}catch{}return h}async function X2(e,t,n,r,i,o){let l,a,u=s=>{let f,c=new Promise((E,x)=>f=x);a=()=>f(),t.signal.addEventListener("abort",a);let h=E=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):s({request:t,params:n.params,context:o},...E!==void 0?[E]:[]),y=(async()=>{try{return{type:"data",result:await(i?i(x=>h(x)):h())}}catch(E){return{type:"error",result:E}}})();return Promise.race([y,c])};try{let s=n.route[e];if(r)if(s){let f,[c]=await Promise.all([u(s).catch(h=>{f=h}),r]);if(f!==void 0)throw f;l=c}else if(await r,s=n.route[e],s)l=await u(s);else if(e==="action"){let f=new URL(t.url),c=f.pathname+f.search;throw Ke(405,{method:t.method,pathname:c,routeId:n.route.id})}else return{type:le.data,result:void 0};else if(s)l=await u(s);else{let f=new URL(t.url),c=f.pathname+f.search;throw Ke(404,{pathname:c})}K(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(s){return{type:le.error,result:s}}finally{a&&t.signal.removeEventListener("abort",a)}return l}async function J2(e){let{result:t,type:n}=e;if(up(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:le.error,error:f}}return n===le.error?{type:le.error,error:new Rl(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:le.data,data:s,statusCode:t.status,headers:t.headers}}if(n===le.error){if(td(t)){var r;if(t.data instanceof Error){var i;return{type:le.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Rl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:le.error,error:t,statusCode:ca(t)?t.status:void 0}}if(og(t)){var o,l;return{type:le.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(td(t)){var a,u;return{type:le.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:le.data,data:t}}function eg(e,t,n,r,i,o){let l=e.headers.get("Location");if(K(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!lc.test(l)){let a=r.slice(0,r.findIndex(u=>u.route.id===n)+1);l=Qu(new URL(t.url),a,i,!0,l,o),e.headers.set("Location",l)}return e}function Gf(e,t,n){if(lc.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Gr(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function dr(e,t,n,r){let i=e.createURL(ap(t)).toString(),o={signal:n};if(r&&Ot(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=qu(r.formData):o.body=r.formData}return new Request(i,o)}function qu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Kf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function tg(e,t,n,r,i){let o={},l=null,a,u=!1,s={},f=n&&dt(n[1])?n[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let h=c.route.id,y=t[h];if(K(!Gn(y),"Cannot handle redirect results in processLoaderData"),dt(y)){let E=y.error;f!==void 0&&(E=f,f=void 0),l=l||{};{let x=Pr(e,h);l[x.route.id]==null&&(l[x.route.id]=E)}o[h]=void 0,u||(u=!0,a=ca(y.error)?y.error.status:500),y.headers&&(s[h]=y.headers)}else kn(y)?(r.set(h,y.deferredData),o[h]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!u&&(a=y.statusCode),y.headers&&(s[h]=y.headers)):(o[h]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(a=y.statusCode),y.headers&&(s[h]=y.headers))}),f!==void 0&&n&&(l={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:s}}function Zf(e,t,n,r,i,o,l,a){let{loaderData:u,errors:s}=tg(t,r,i,a);return o.forEach(f=>{let{key:c,match:h,controller:y}=f,E=l[c];if(K(E,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(dt(E)){let x=Pr(e.matches,h==null?void 0:h.route.id);s&&s[x.route.id]||(s=ge({},s,{[x.route.id]:E.error})),e.fetchers.delete(c)}else if(Gn(E))K(!1,"Unhandled fetcher revalidation redirect");else if(kn(E))K(!1,"Unhandled fetcher deferred data");else{let x=yn(E.data);e.fetchers.set(c,x)}}),{loaderData:u,errors:s}}function Xf(e,t,n,r){let i=ge({},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 Jf(e){return e?dt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Pr(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 ed(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 Ke(e,t){let{pathname:n,routeId:r,method:i,type:o,message:l}=t===void 0?{}:t,a="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(a="Bad Request",o==="route-discovery"?u='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: -`+l):i&&n&&r?u="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"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(a="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",u='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?u="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&&(u='Invalid request method "'+i.toUpperCase()+'"')),new Rl(e||500,a,new Error(u),!0)}function zo(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Gn(i))return{key:r,result:i}}}function ap(e){let t=typeof e=="string"?fn(e):e;return or(ge({},t,{hash:""}))}function ng(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function rg(e){return typeof e=="object"&&e!=null&&"then"in e}function ig(e){return up(e.result)&&$2.has(e.result.status)}function kn(e){return e.type===le.deferred}function dt(e){return e.type===le.error}function Gn(e){return(e&&e.type)===le.redirect}function td(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function og(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 up(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function lg(e){return U2.has(e.toLowerCase())}function Ot(e){return F2.has(e.toLowerCase())}async function ag(e,t,n,r,i){let o=Object.entries(t);for(let l=0;l(h==null?void 0:h.route.id)===a);if(!s)continue;let f=r.find(h=>h.route.id===s.route.id),c=f!=null&&!op(f,s)&&(i&&i[s.route.id])!==void 0;kn(u)&&c&&await ac(u,n,!1).then(h=>{h&&(t[a]=h)})}}async function ug(e,t,n){for(let r=0;r(s==null?void 0:s.route.id)===o)&&kn(a)&&(K(l,"Expected an AbortController for revalidating fetcher deferred result"),await ac(a,l.signal,!0).then(s=>{s&&(t[i]=s)}))}}async function ac(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:le.data,data:e.deferredData.unwrappedData}}catch(i){return{type:le.error,error:i}}return{type:le.data,data:e.deferredData.data}}}function uc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function gi(e,t){let n=typeof t=="string"?fn(t).search:t.search;if(e[e.length-1].route.index&&uc(n||""))return e[e.length-1];let r=np(e);return r[r.length-1]}function nd(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 Va(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 sg(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 si(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 cg(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 yn(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 fg(e,t){try{let n=e.sessionStorage.getItem(ip);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 dg(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ip,JSON.stringify(n))}catch(r){ir(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function br(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m2(){return Math.random().toString(36).substr(2,8)}function bf(e,t){return{usr:e.state,key:e.key,idx:t}}function Yi(e,t,n,r){return n===void 0&&(n=null),ge({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?jn(t):t,{state:n,key:t&&t.key||r||m2()})}function ir(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 jn(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 v2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=Re.Pop,u=null,s=f();s==null&&(s=0,l.replaceState(ge({},l.state,{idx:s}),""));function f(){return(l.state||{idx:null}).idx}function c(){a=Re.Pop;let P=f(),m=P==null?null:P-s;s=P,u&&u({action:a,location:x.location,delta:m})}function h(P,m){a=Re.Push;let p=Yi(x.location,P,m);s=f()+1;let g=bf(p,s),T=x.createHref(p);try{l.pushState(g,"",T)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;i.location.assign(T)}o&&u&&u({action:a,location:x.location,delta:1})}function y(P,m){a=Re.Replace;let p=Yi(x.location,P,m);s=f();let g=bf(p,s),T=x.createHref(p);l.replaceState(g,"",T),o&&u&&u({action:a,location:x.location,delta:0})}function E(P){let m=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof P=="string"?P:ir(P);return p=p.replace(/ $/,"%20"),K(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let x={get action(){return a},get location(){return e(i,l)},listen(P){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Bf,c),u=P,()=>{i.removeEventListener(Bf,c),u=null}},createHref(P){return t(i,P)},createURL:E,encodeLocation(P){let m=E(P);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:y,go(P){return l.go(P)}};return x}var le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(le||(le={}));const g2=new Set(["lazy","caseSensitive","path","id","index","children"]);function y2(e){return e.index===!0}function Gi(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(K(i.index!==!0||!i.children,"Cannot specify children on an index route"),K(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),y2(i)){let u=ge({},i,t(i),{id:a});return r[a]=u,u}else{let u=ge({},i,t(i),{id:a,children:void 0});return r[a]=u,i.children&&(u.children=Gi(i.children,t,l,r)),u}})}function Wn(e,t,n){return n===void 0&&(n="/"),el(e,t,n,!1)}function el(e,t,n,r){let i=typeof t=="string"?jn(t):t,o=Gr(i.pathname||"/",n);if(o==null)return null;let l=ep(e);S2(l);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};u.relativePath.startsWith("/")&&(K(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=on([r,u.relativePath]),f=n.concat(u);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),ep(o.children,t,f,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:_2(s,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 u of tp(o.path))i(o,l,u)}),t}function tp(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=tp(r.join("/")),a=[];return a.push(...l.map(u=>u===""?o:[o,u].join("/"))),i&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function S2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const x2=/^:[\w-]+$/,E2=3,C2=2,T2=1,k2=10,P2=-2,Vf=e=>e==="*";function _2(e,t){let n=e.split("/"),r=n.length;return n.some(Vf)&&(r+=P2),t&&(r+=C2),n.filter(i=>!Vf(i)).reduce((i,o)=>i+(x2.test(o)?E2:o===""?T2:k2),r)}function R2(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 L2(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a{let{paramName:h,isOptional:y}=f;if(h==="*"){let x=a[c]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const E=a[c];return y&&!E?s[h]=void 0:s[h]=(E||"").replace(/%2F/g,"/"),s},{}),pathname:o,pathnameBase:l,pattern:e}}function M2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),br(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,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function O2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return br(!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 Gr(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 N2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?jn(e):e;return{pathname:n?n.startsWith("/")?n:A2(n,t):t,search:D2(r),hash:z2(i)}}function A2(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 Ba(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 np(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ic(e,t){let n=np(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function oc(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=jn(e):(i=ge({},e),K(!i.pathname||!i.pathname.includes("?"),Ba("?","pathname","search",i)),K(!i.pathname||!i.pathname.includes("#"),Ba("#","pathname","hash",i)),K(!i.search||!i.search.includes("#"),Ba("#","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 h=l.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}a=c>=0?t[c]:"/"}let u=N2(i,a),s=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||f)&&(u.pathname+="/"),u}const on=e=>e.join("/").replace(/\/\/+/g,"/"),I2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Rl{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 ca(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rp=["post","put","patch","delete"],F2=new Set(rp),j2=["get",...rp],U2=new Set(j2),$2=new Set([301,302,303,307,308]),H2=new Set([307,308]),ba={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},B2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ui={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},lc=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,b2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ip="remix-router-transitions";function V2(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;K(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 v=e.detectErrorBoundary;i=S=>({hasErrorBoundary:v(S)})}else i=b2;let o={},l=Gi(e.routes,i,void 0,o),a,u=e.basename||"/",s=e.unstable_dataStrategy||K2,f=e.unstable_patchRoutesOnNavigation,c=ge({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,y=new Set,E=1e3,x=new Set,P=null,m=null,p=null,g=e.hydrationData!=null,T=Wn(l,e.history.location,u),R=null;if(T==null&&!f){let v=Ke(404,{pathname:e.history.location.pathname}),{matches:S,route:C}=ed(l);T=S,R={[C.id]:v}}T&&!e.hydrationData&&fo(T,l,e.history.location.pathname).active&&(T=null);let O;if(T)if(T.some(v=>v.route.lazy))O=!1;else if(!T.some(v=>v.route.loader))O=!0;else if(c.v7_partialHydration){let v=e.hydrationData?e.hydrationData.loaderData:null,S=e.hydrationData?e.hydrationData.errors:null,C=_=>_.route.loader?typeof _.route.loader=="function"&&_.route.loader.hydrate===!0?!1:v&&v[_.route.id]!==void 0||S&&S[_.route.id]!==void 0:!0;if(S){let _=T.findIndex(D=>S[D.route.id]!==void 0);O=T.slice(0,_+1).every(C)}else O=T.every(C)}else O=e.hydrationData!=null;else if(O=!1,T=[],c.v7_partialHydration){let v=fo(null,l,e.history.location.pathname);v.active&&v.matches&&(T=v.matches)}let L,w={historyAction:e.history.action,location:e.history.location,matches:T,initialized:O,navigation:ba,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||R,fetchers:new Map,blockers:new Map},j=Re.Pop,A=!1,q,ae=!1,Pe=new Map,xe=null,Ft=!1,_t=!1,dn=[],I=new Set,F=new Map,W=0,ue=-1,ce=new Map,tt=new Set,nt=new Map,qt=new Map,Fe=new Set,St=new Map,$n=new Map,Lp=new Map,ao;function Mp(){if(h=e.history.listen(v=>{let{action:S,location:C,delta:_}=v;if(ao){ao(),ao=void 0;return}br($n.size===0||_!=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 D=Sc({currentLocation:w.location,nextLocation:C,historyAction:S});if(D&&_!=null){let B=new Promise(V=>{ao=V});e.history.go(_*-1),so(D,{state:"blocked",location:C,proceed(){so(D,{state:"proceeding",proceed:void 0,reset:void 0,location:C}),B.then(()=>e.history.go(_))},reset(){let V=new Map(w.blockers);V.set(D,ui),qe({blockers:V})}});return}return Hn(S,C)}),n){fg(t,Pe);let v=()=>dg(t,Pe);t.addEventListener("pagehide",v),xe=()=>t.removeEventListener("pagehide",v)}return w.initialized||Hn(Re.Pop,w.location,{initialHydration:!0}),L}function Op(){h&&h(),xe&&xe(),y.clear(),q&&q.abort(),w.fetchers.forEach((v,S)=>uo(S)),w.blockers.forEach((v,S)=>wc(S))}function Np(v){return y.add(v),()=>y.delete(v)}function qe(v,S){S===void 0&&(S={}),w=ge({},w,v);let C=[],_=[];c.v7_fetcherPersist&&w.fetchers.forEach((D,B)=>{D.state==="idle"&&(Fe.has(B)?_.push(B):C.push(B))}),[...y].forEach(D=>D(w,{deletedFetchers:_,unstable_viewTransitionOpts:S.viewTransitionOpts,unstable_flushSync:S.flushSync===!0})),c.v7_fetcherPersist&&(C.forEach(D=>w.fetchers.delete(D)),_.forEach(D=>uo(D)))}function ur(v,S,C){var _,D;let{flushSync:B}=C===void 0?{}:C,V=w.actionData!=null&&w.navigation.formMethod!=null&&Ot(w.navigation.formMethod)&&w.navigation.state==="loading"&&((_=v.state)==null?void 0:_._isRedirect)!==!0,N;S.actionData?Object.keys(S.actionData).length>0?N=S.actionData:N=null:V?N=w.actionData:N=null;let b=S.loaderData?Xf(w.loaderData,S.loaderData,S.matches||[],S.errors):w.loaderData,U=w.blockers;U.size>0&&(U=new Map(U),U.forEach((re,fe)=>U.set(fe,ui)));let H=A===!0||w.navigation.formMethod!=null&&Ot(w.navigation.formMethod)&&((D=v.state)==null?void 0:D._isRedirect)!==!0;a&&(l=a,a=void 0),Ft||j===Re.Pop||(j===Re.Push?e.history.push(v,v.state):j===Re.Replace&&e.history.replace(v,v.state));let ee;if(j===Re.Pop){let re=Pe.get(w.location.pathname);re&&re.has(v.pathname)?ee={currentLocation:w.location,nextLocation:v}:Pe.has(v.pathname)&&(ee={currentLocation:v,nextLocation:w.location})}else if(ae){let re=Pe.get(w.location.pathname);re?re.add(v.pathname):(re=new Set([v.pathname]),Pe.set(w.location.pathname,re)),ee={currentLocation:w.location,nextLocation:v}}qe(ge({},S,{actionData:N,loaderData:b,historyAction:j,location:v,initialized:!0,navigation:ba,revalidation:"idle",restoreScrollPosition:Ec(v,S.matches||w.matches),preventScrollReset:H,blockers:U}),{viewTransitionOpts:ee,flushSync:B===!0}),j=Re.Pop,A=!1,ae=!1,Ft=!1,_t=!1,dn=[]}async function dc(v,S){if(typeof v=="number"){e.history.go(v);return}let C=Qu(w.location,w.matches,u,c.v7_prependBasename,v,c.v7_relativeSplatPath,S==null?void 0:S.fromRouteId,S==null?void 0:S.relative),{path:_,submission:D,error:B}=Qf(c.v7_normalizeFormMethod,!1,C,S),V=w.location,N=Yi(w.location,_,S&&S.state);N=ge({},N,e.history.encodeLocation(N));let b=S&&S.replace!=null?S.replace:void 0,U=Re.Push;b===!0?U=Re.Replace:b===!1||D!=null&&Ot(D.formMethod)&&D.formAction===w.location.pathname+w.location.search&&(U=Re.Replace);let H=S&&"preventScrollReset"in S?S.preventScrollReset===!0:void 0,ee=(S&&S.unstable_flushSync)===!0,re=Sc({currentLocation:V,nextLocation:N,historyAction:U});if(re){so(re,{state:"blocked",location:N,proceed(){so(re,{state:"proceeding",proceed:void 0,reset:void 0,location:N}),dc(v,S)},reset(){let fe=new Map(w.blockers);fe.set(re,ui),qe({blockers:fe})}});return}return await Hn(U,N,{submission:D,pendingError:B,preventScrollReset:H,replace:S&&S.replace,enableViewTransition:S&&S.unstable_viewTransition,flushSync:ee})}function Ap(){if(da(),qe({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Hn(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Hn(j||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:ae===!0})}}async function Hn(v,S,C){q&&q.abort(),q=null,j=v,Ft=(C&&C.startUninterruptedRevalidation)===!0,bp(w.location,w.matches),A=(C&&C.preventScrollReset)===!0,ae=(C&&C.enableViewTransition)===!0;let _=a||l,D=C&&C.overrideNavigation,B=Wn(_,S,u),V=(C&&C.flushSync)===!0,N=fo(B,_,S.pathname);if(N.active&&N.matches&&(B=N.matches),!B){let{error:X,notFoundMatches:Ae,route:_e}=pa(S.pathname);ur(S,{matches:Ae,loaderData:{},errors:{[_e.id]:X}},{flushSync:V});return}if(w.initialized&&!_t&&ng(w.location,S)&&!(C&&C.submission&&Ot(C.submission.formMethod))){ur(S,{matches:B},{flushSync:V});return}q=new AbortController;let b=fr(e.history,S,q.signal,C&&C.submission),U;if(C&&C.pendingError)U=[kr(B).route.id,{type:le.error,error:C.pendingError}];else if(C&&C.submission&&Ot(C.submission.formMethod)){let X=await Ip(b,S,C.submission,B,N.active,{replace:C.replace,flushSync:V});if(X.shortCircuited)return;if(X.pendingActionResult){let[Ae,_e]=X.pendingActionResult;if(dt(_e)&&ca(_e.error)&&_e.error.status===404){q=null,ur(S,{matches:X.matches,loaderData:{},errors:{[Ae]:_e.error}});return}}B=X.matches||B,U=X.pendingActionResult,D=Va(S,C.submission),V=!1,N.active=!1,b=fr(e.history,b.url,b.signal)}let{shortCircuited:H,matches:ee,loaderData:re,errors:fe}=await Dp(b,S,B,N.active,D,C&&C.submission,C&&C.fetcherSubmission,C&&C.replace,C&&C.initialHydration===!0,V,U);H||(q=null,ur(S,ge({matches:ee||B},Jf(U),{loaderData:re,errors:fe})))}async function Ip(v,S,C,_,D,B){B===void 0&&(B={}),da();let V=sg(S,C);if(qe({navigation:V},{flushSync:B.flushSync===!0}),D){let U=await po(_,S.pathname,v.signal);if(U.type==="aborted")return{shortCircuited:!0};if(U.type==="error"){let{boundaryId:H,error:ee}=co(S.pathname,U);return{matches:U.partialMatches,pendingActionResult:[H,{type:le.error,error:ee}]}}else if(U.matches)_=U.matches;else{let{notFoundMatches:H,error:ee,route:re}=pa(S.pathname);return{matches:H,pendingActionResult:[re.id,{type:le.error,error:ee}]}}}let N,b=gi(_,S);if(!b.route.action&&!b.route.lazy)N={type:le.error,error:Ke(405,{method:v.method,pathname:S.pathname,routeId:b.route.id})};else if(N=(await Zr("action",w,v,[b],_,null))[b.route.id],v.signal.aborted)return{shortCircuited:!0};if(Gn(N)){let U;return B&&B.replace!=null?U=B.replace:U=Gf(N.response.headers.get("Location"),new URL(v.url),u)===w.location.pathname+w.location.search,await Bn(v,N,!0,{submission:C,replace:U}),{shortCircuited:!0}}if(Tn(N))throw Ke(400,{type:"defer-action"});if(dt(N)){let U=kr(_,b.route.id);return(B&&B.replace)!==!0&&(j=Re.Push),{matches:_,pendingActionResult:[U.route.id,N]}}return{matches:_,pendingActionResult:[b.route.id,N]}}async function Dp(v,S,C,_,D,B,V,N,b,U,H){let ee=D||Va(S,B),re=B||V||nd(ee),fe=!Ft&&(!c.v7_partialHydration||!b);if(_){if(fe){let Ee=pc(H);qe(ge({navigation:ee},Ee!==void 0?{actionData:Ee}:{}),{flushSync:U})}let G=await po(C,S.pathname,v.signal);if(G.type==="aborted")return{shortCircuited:!0};if(G.type==="error"){let{boundaryId:Ee,error:ct}=co(S.pathname,G);return{matches:G.partialMatches,loaderData:{},errors:{[Ee]:ct}}}else if(G.matches)C=G.matches;else{let{error:Ee,notFoundMatches:ct,route:Ce}=pa(S.pathname);return{matches:ct,loaderData:{},errors:{[Ce.id]:Ee}}}}let X=a||l,[Ae,_e]=qf(e.history,w,C,re,S,c.v7_partialHydration&&b===!0,c.v7_skipActionErrorRevalidation,_t,dn,I,Fe,nt,tt,X,u,H);if(ha(G=>!(C&&C.some(Ee=>Ee.route.id===G))||Ae&&Ae.some(Ee=>Ee.route.id===G)),ue=++W,Ae.length===0&&_e.length===0){let G=gc();return ur(S,ge({matches:C,loaderData:{},errors:H&&dt(H[1])?{[H[0]]:H[1].error}:null},Jf(H),G?{fetchers:new Map(w.fetchers)}:{}),{flushSync:U}),{shortCircuited:!0}}if(fe){let G={};if(!_){G.navigation=ee;let Ee=pc(H);Ee!==void 0&&(G.actionData=Ee)}_e.length>0&&(G.fetchers=zp(_e)),qe(G,{flushSync:U})}_e.forEach(G=>{F.has(G.key)&&hn(G.key),G.controller&&F.set(G.key,G.controller)});let Xr=()=>_e.forEach(G=>hn(G.key));q&&q.signal.addEventListener("abort",Xr);let{loaderResults:Gt,fetcherResults:sr}=await hc(w,C,Ae,_e,v);if(v.signal.aborted)return{shortCircuited:!0};q&&q.signal.removeEventListener("abort",Xr),_e.forEach(G=>F.delete(G.key));let mn=zo(Gt);if(mn)return await Bn(v,mn.result,!0,{replace:N}),{shortCircuited:!0};if(mn=zo(sr),mn)return tt.add(mn.key),await Bn(v,mn.result,!0,{replace:N}),{shortCircuited:!0};let{loaderData:ho,errors:Kt}=Zf(w,C,Ae,Gt,H,_e,sr,St);St.forEach((G,Ee)=>{G.subscribe(ct=>{(ct||G.done)&&St.delete(Ee)})}),c.v7_partialHydration&&b&&w.errors&&Object.entries(w.errors).filter(G=>{let[Ee]=G;return!Ae.some(ct=>ct.route.id===Ee)}).forEach(G=>{let[Ee,ct]=G;Kt=Object.assign(Kt||{},{[Ee]:ct})});let mo=gc(),vo=yc(ue),go=mo||vo||_e.length>0;return ge({matches:C,loaderData:ho,errors:Kt},go?{fetchers:new Map(w.fetchers)}:{})}function pc(v){if(v&&!dt(v[1]))return{[v[0]]:v[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function zp(v){return v.forEach(S=>{let C=w.fetchers.get(S.key),_=si(void 0,C?C.data:void 0);w.fetchers.set(S.key,_)}),new Map(w.fetchers)}function Fp(v,S,C,_){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.");F.has(v)&&hn(v);let D=(_&&_.unstable_flushSync)===!0,B=a||l,V=Qu(w.location,w.matches,u,c.v7_prependBasename,C,c.v7_relativeSplatPath,S,_==null?void 0:_.relative),N=Wn(B,V,u),b=fo(N,B,V);if(b.active&&b.matches&&(N=b.matches),!N){Yt(v,S,Ke(404,{pathname:V}),{flushSync:D});return}let{path:U,submission:H,error:ee}=Qf(c.v7_normalizeFormMethod,!0,V,_);if(ee){Yt(v,S,ee,{flushSync:D});return}let re=gi(N,U);if(A=(_&&_.preventScrollReset)===!0,H&&Ot(H.formMethod)){jp(v,S,U,re,N,b.active,D,H);return}nt.set(v,{routeId:S,path:U}),Up(v,S,U,re,N,b.active,D,H)}async function jp(v,S,C,_,D,B,V,N){da(),nt.delete(v);function b(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Zt=Ke(405,{method:N.formMethod,pathname:C,routeId:S});return Yt(v,S,Zt,{flushSync:V}),!0}return!1}if(!B&&b(_))return;let U=w.fetchers.get(v);pn(v,cg(N,U),{flushSync:V});let H=new AbortController,ee=fr(e.history,C,H.signal,N);if(B){let Ce=await po(D,C,ee.signal);if(Ce.type==="aborted")return;if(Ce.type==="error"){let{error:Zt}=co(C,Ce);Yt(v,S,Zt,{flushSync:V});return}else if(Ce.matches){if(D=Ce.matches,_=gi(D,C),b(_))return}else{Yt(v,S,Ke(404,{pathname:C}),{flushSync:V});return}}F.set(v,H);let re=W,X=(await Zr("action",w,ee,[_],D,v))[_.route.id];if(ee.signal.aborted){F.get(v)===H&&F.delete(v);return}if(c.v7_fetcherPersist&&Fe.has(v)){if(Gn(X)||dt(X)){pn(v,gn(void 0));return}}else{if(Gn(X))if(F.delete(v),ue>re){pn(v,gn(void 0));return}else return tt.add(v),pn(v,si(N)),Bn(ee,X,!1,{fetcherSubmission:N});if(dt(X)){Yt(v,S,X.error);return}}if(Tn(X))throw Ke(400,{type:"defer-action"});let Ae=w.navigation.location||w.location,_e=fr(e.history,Ae,H.signal),Xr=a||l,Gt=w.navigation.state!=="idle"?Wn(Xr,w.navigation.location,u):w.matches;K(Gt,"Didn't find any matches after fetcher action");let sr=++W;ce.set(v,sr);let mn=si(N,X.data);w.fetchers.set(v,mn);let[ho,Kt]=qf(e.history,w,Gt,N,Ae,!1,c.v7_skipActionErrorRevalidation,_t,dn,I,Fe,nt,tt,Xr,u,[_.route.id,X]);Kt.filter(Ce=>Ce.key!==v).forEach(Ce=>{let Zt=Ce.key,Tc=w.fetchers.get(Zt),Qp=si(void 0,Tc?Tc.data:void 0);w.fetchers.set(Zt,Qp),F.has(Zt)&&hn(Zt),Ce.controller&&F.set(Zt,Ce.controller)}),qe({fetchers:new Map(w.fetchers)});let mo=()=>Kt.forEach(Ce=>hn(Ce.key));H.signal.addEventListener("abort",mo);let{loaderResults:vo,fetcherResults:go}=await hc(w,Gt,ho,Kt,_e);if(H.signal.aborted)return;H.signal.removeEventListener("abort",mo),ce.delete(v),F.delete(v),Kt.forEach(Ce=>F.delete(Ce.key));let G=zo(vo);if(G)return Bn(_e,G.result,!1);if(G=zo(go),G)return tt.add(G.key),Bn(_e,G.result,!1);let{loaderData:Ee,errors:ct}=Zf(w,Gt,ho,vo,void 0,Kt,go,St);if(w.fetchers.has(v)){let Ce=gn(X.data);w.fetchers.set(v,Ce)}yc(sr),w.navigation.state==="loading"&&sr>ue?(K(j,"Expected pending action"),q&&q.abort(),ur(w.navigation.location,{matches:Gt,loaderData:Ee,errors:ct,fetchers:new Map(w.fetchers)})):(qe({errors:ct,loaderData:Xf(w.loaderData,Ee,Gt,ct),fetchers:new Map(w.fetchers)}),_t=!1)}async function Up(v,S,C,_,D,B,V,N){let b=w.fetchers.get(v);pn(v,si(N,b?b.data:void 0),{flushSync:V});let U=new AbortController,H=fr(e.history,C,U.signal);if(B){let X=await po(D,C,H.signal);if(X.type==="aborted")return;if(X.type==="error"){let{error:Ae}=co(C,X);Yt(v,S,Ae,{flushSync:V});return}else if(X.matches)D=X.matches,_=gi(D,C);else{Yt(v,S,Ke(404,{pathname:C}),{flushSync:V});return}}F.set(v,U);let ee=W,fe=(await Zr("loader",w,H,[_],D,v))[_.route.id];if(Tn(fe)&&(fe=await ac(fe,H.signal,!0)||fe),F.get(v)===U&&F.delete(v),!H.signal.aborted){if(Fe.has(v)){pn(v,gn(void 0));return}if(Gn(fe))if(ue>ee){pn(v,gn(void 0));return}else{tt.add(v),await Bn(H,fe,!1);return}if(dt(fe)){Yt(v,S,fe.error);return}K(!Tn(fe),"Unhandled fetcher deferred data"),pn(v,gn(fe.data))}}async function Bn(v,S,C,_){let{submission:D,fetcherSubmission:B,replace:V}=_===void 0?{}:_;S.response.headers.has("X-Remix-Revalidate")&&(_t=!0);let N=S.response.headers.get("Location");K(N,"Expected a Location header on the redirect Response"),N=Gf(N,new URL(v.url),u);let b=Yi(w.location,N,{_isRedirect:!0});if(n){let X=!1;if(S.response.headers.has("X-Remix-Reload-Document"))X=!0;else if(lc.test(N)){const Ae=e.history.createURL(N);X=Ae.origin!==t.location.origin||Gr(Ae.pathname,u)==null}if(X){V?t.location.replace(N):t.location.assign(N);return}}q=null;let U=V===!0||S.response.headers.has("X-Remix-Replace")?Re.Replace:Re.Push,{formMethod:H,formAction:ee,formEncType:re}=w.navigation;!D&&!B&&H&&ee&&re&&(D=nd(w.navigation));let fe=D||B;if(H2.has(S.response.status)&&fe&&Ot(fe.formMethod))await Hn(U,b,{submission:ge({},fe,{formAction:N}),preventScrollReset:A,enableViewTransition:C?ae:void 0});else{let X=Va(b,D);await Hn(U,b,{overrideNavigation:X,fetcherSubmission:B,preventScrollReset:A,enableViewTransition:C?ae:void 0})}}async function Zr(v,S,C,_,D,B){let V,N={};try{V=await Z2(s,v,S,C,_,D,B,o,i)}catch(b){return _.forEach(U=>{N[U.route.id]={type:le.error,error:b}}),N}for(let[b,U]of Object.entries(V))if(ig(U)){let H=U.result;N[b]={type:le.redirect,response:eg(H,C,b,D,u,c.v7_relativeSplatPath)}}else N[b]=await J2(U);return N}async function hc(v,S,C,_,D){let B=v.matches,V=Zr("loader",v,D,C,S,null),N=Promise.all(_.map(async H=>{if(H.matches&&H.match&&H.controller){let re=(await Zr("loader",v,fr(e.history,H.path,H.controller.signal),[H.match],H.matches,H.key))[H.match.route.id];return{[H.key]:re}}else return Promise.resolve({[H.key]:{type:le.error,error:Ke(404,{pathname:H.path})}})})),b=await V,U=(await N).reduce((H,ee)=>Object.assign(H,ee),{});return await Promise.all([ag(S,b,D.signal,B,v.loaderData),ug(S,U,_)]),{loaderResults:b,fetcherResults:U}}function da(){_t=!0,dn.push(...ha()),nt.forEach((v,S)=>{F.has(S)&&(I.add(S),hn(S))})}function pn(v,S,C){C===void 0&&(C={}),w.fetchers.set(v,S),qe({fetchers:new Map(w.fetchers)},{flushSync:(C&&C.flushSync)===!0})}function Yt(v,S,C,_){_===void 0&&(_={});let D=kr(w.matches,S);uo(v),qe({errors:{[D.route.id]:C},fetchers:new Map(w.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function mc(v){return c.v7_fetcherPersist&&(qt.set(v,(qt.get(v)||0)+1),Fe.has(v)&&Fe.delete(v)),w.fetchers.get(v)||B2}function uo(v){let S=w.fetchers.get(v);F.has(v)&&!(S&&S.state==="loading"&&ce.has(v))&&hn(v),nt.delete(v),ce.delete(v),tt.delete(v),Fe.delete(v),I.delete(v),w.fetchers.delete(v)}function $p(v){if(c.v7_fetcherPersist){let S=(qt.get(v)||0)-1;S<=0?(qt.delete(v),Fe.add(v)):qt.set(v,S)}else uo(v);qe({fetchers:new Map(w.fetchers)})}function hn(v){let S=F.get(v);K(S,"Expected fetch controller: "+v),S.abort(),F.delete(v)}function vc(v){for(let S of v){let C=mc(S),_=gn(C.data);w.fetchers.set(S,_)}}function gc(){let v=[],S=!1;for(let C of tt){let _=w.fetchers.get(C);K(_,"Expected fetcher: "+C),_.state==="loading"&&(tt.delete(C),v.push(C),S=!0)}return vc(v),S}function yc(v){let S=[];for(let[C,_]of ce)if(_0}function Hp(v,S){let C=w.blockers.get(v)||ui;return $n.get(v)!==S&&$n.set(v,S),C}function wc(v){w.blockers.delete(v),$n.delete(v)}function so(v,S){let C=w.blockers.get(v)||ui;K(C.state==="unblocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="blocked"||C.state==="blocked"&&S.state==="proceeding"||C.state==="blocked"&&S.state==="unblocked"||C.state==="proceeding"&&S.state==="unblocked","Invalid blocker state transition: "+C.state+" -> "+S.state);let _=new Map(w.blockers);_.set(v,S),qe({blockers:_})}function Sc(v){let{currentLocation:S,nextLocation:C,historyAction:_}=v;if($n.size===0)return;$n.size>1&&br(!1,"A router only supports one blocker at a time");let D=Array.from($n.entries()),[B,V]=D[D.length-1],N=w.blockers.get(B);if(!(N&&N.state==="proceeding")&&V({currentLocation:S,nextLocation:C,historyAction:_}))return B}function pa(v){let S=Ke(404,{pathname:v}),C=a||l,{matches:_,route:D}=ed(C);return ha(),{notFoundMatches:_,route:D,error:S}}function co(v,S){return{boundaryId:kr(S.partialMatches).route.id,error:Ke(400,{type:"route-discovery",pathname:v,message:S.error!=null&&"message"in S.error?S.error:String(S.error)})}}function ha(v){let S=[];return St.forEach((C,_)=>{(!v||v(_))&&(C.cancel(),S.push(_),St.delete(_))}),S}function Bp(v,S,C){if(P=v,p=S,m=C||null,!g&&w.navigation===ba){g=!0;let _=Ec(w.location,w.matches);_!=null&&qe({restoreScrollPosition:_})}return()=>{P=null,p=null,m=null}}function xc(v,S){return m&&m(v,S.map(_=>w2(_,w.loaderData)))||v.key}function bp(v,S){if(P&&p){let C=xc(v,S);P[C]=p()}}function Ec(v,S){if(P){let C=xc(v,S),_=P[C];if(typeof _=="number")return _}return null}function fo(v,S,C){if(f){if(x.has(C))return{active:!1,matches:v};if(v){if(Object.keys(v[0].params).length>0)return{active:!0,matches:el(S,C,u,!0)}}else return{active:!0,matches:el(S,C,u,!0)||[]}}return{active:!1,matches:null}}async function po(v,S,C){let _=v;for(;;){let D=a==null,B=a||l;try{await Y2(f,S,_,B,o,i,Lp,C)}catch(b){return{type:"error",error:b,partialMatches:_}}finally{D&&(l=[...l])}if(C.aborted)return{type:"aborted"};let V=Wn(B,S,u);if(V)return Cc(S,x),{type:"success",matches:V};let N=el(B,S,u,!0);if(!N||_.length===N.length&&_.every((b,U)=>b.route.id===N[U].route.id))return Cc(S,x),{type:"success",matches:null};_=N}}function Cc(v,S){if(S.size>=E){let C=S.values().next().value;S.delete(C)}S.add(v)}function Vp(v){o={},a=Gi(v,i,void 0,o)}function Wp(v,S){let C=a==null;lp(v,S,a||l,o,i),C&&(l=[...l],qe({}))}return L={get basename(){return u},get future(){return c},get state(){return w},get routes(){return l},get window(){return t},initialize:Mp,subscribe:Np,enableScrollRestoration:Bp,navigate:dc,fetch:Fp,revalidate:Ap,createHref:v=>e.history.createHref(v),encodeLocation:v=>e.history.encodeLocation(v),getFetcher:mc,deleteFetcher:$p,dispose:Op,getBlocker:Hp,deleteBlocker:wc,patchRoutes:Wp,_internalFetchControllers:F,_internalActiveDeferreds:St,_internalSetRoutes:Vp},L}function W2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Qu(e,t,n,r,i,o,l,a){let u,s;if(l){u=[];for(let c of t)if(u.push(c),c.route.id===l){s=c;break}}else u=t,s=t[t.length-1];let f=oc(i||".",ic(u,o),Gr(e.pathname,n)||e.pathname,a==="path");return i==null&&(f.search=e.search,f.hash=e.hash),(i==null||i===""||i===".")&&s&&s.route.index&&!uc(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(f.pathname=f.pathname==="/"?n:on([n,f.pathname])),ir(f)}function Qf(e,t,n,r){if(!r||!W2(r))return{path:n};if(r.formMethod&&!lg(r.formMethod))return{path:n,error:Ke(405,{method:r.formMethod})};let i=()=>({path:n,error:Ke(400,{type:"invalid-body"})}),o=r.formMethod||"get",l=e?o.toUpperCase():o.toLowerCase(),a=ap(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Ot(l))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,E)=>{let[x,P]=E;return""+y+x+"="+P+` +`},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Ot(l))return i();try{let h=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:h,text:void 0}}}catch{return i()}}}K(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=qu(r.formData),s=r.formData;else if(r.body instanceof FormData)u=qu(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=Kf(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=Kf(u)}catch{return i()}let f={formMethod:l,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(Ot(f.formMethod))return{path:n,submission:f};let c=jn(n);return t&&c.search&&uc(c.search)&&u.append("index",""),c.search="?"+u,{path:ir(c),submission:f}}function Q2(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 qf(e,t,n,r,i,o,l,a,u,s,f,c,h,y,E,x){let P=x?dt(x[1])?x[1].error:x[1].data:void 0,m=e.createURL(t.location),p=e.createURL(i),g=x&&dt(x[1])?x[0]:void 0,T=g?Q2(n,g):n,R=x?x[1].statusCode:void 0,O=l&&R&&R>=400,L=T.filter((j,A)=>{let{route:q}=j;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(q2(t.loaderData,t.matches[A],j)||u.some(xe=>xe===j.route.id))return!0;let ae=t.matches[A],Pe=j;return Yf(j,ge({currentUrl:m,currentParams:ae.params,nextUrl:p,nextParams:Pe.params},r,{actionResult:P,actionStatus:R,defaultShouldRevalidate:O?!1:a||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||op(ae,Pe)}))}),w=[];return c.forEach((j,A)=>{if(o||!n.some(Ft=>Ft.route.id===j.routeId)||f.has(A))return;let q=Wn(y,j.path,E);if(!q){w.push({key:A,routeId:j.routeId,path:j.path,matches:null,match:null,controller:null});return}let ae=t.fetchers.get(A),Pe=gi(q,j.path),xe=!1;h.has(A)?xe=!1:s.has(A)?(s.delete(A),xe=!0):ae&&ae.state!=="idle"&&ae.data===void 0?xe=a:xe=Yf(Pe,ge({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:P,actionStatus:R,defaultShouldRevalidate:O?!1:a})),xe&&w.push({key:A,routeId:j.routeId,path:j.path,matches:q,match:Pe,controller:new AbortController})}),[L,w]}function q2(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function op(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Yf(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Y2(e,t,n,r,i,o,l,a){let u=[t,...n.map(s=>s.route.id)].join("-");try{let s=l.get(u);s||(s=e({path:t,matches:n,patch:(f,c)=>{a.aborted||lp(f,c,r,i,o)}}),l.set(u,s)),s&&rg(s)&&await s}finally{l.delete(u)}}function lp(e,t,n,r,i){if(e){var o;let l=r[e];K(l,"No route found to patch children into: routeId = "+e);let a=Gi(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=Gi(t,i,["patch",String(n.length||"0")],r);n.push(...l)}}async function G2(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];K(i,"No route found in manifest");let o={};for(let l in r){let u=i[l]!==void 0&&l!=="hasErrorBoundary";br(!u,'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.')),!u&&!g2.has(l)&&(o[l]=r[l])}Object.assign(i,o),Object.assign(i,ge({},t(i),{lazy:void 0}))}async function K2(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 Z2(e,t,n,r,i,o,l,a,u,s){let f=o.map(y=>y.route.lazy?G2(y.route,u,a):void 0),c=o.map((y,E)=>{let x=f[E],P=i.some(p=>p.route.id===y.route.id);return ge({},y,{shouldLoad:P,resolve:async p=>(p&&r.method==="GET"&&(y.route.lazy||y.route.loader)&&(P=!0),P?X2(t,r,y,x,p,s):Promise.resolve({type:le.data,result:void 0}))})}),h=await e({matches:c,request:r,params:o[0].params,fetcherKey:l,context:s});try{await Promise.all(f)}catch{}return h}async function X2(e,t,n,r,i,o){let l,a,u=s=>{let f,c=new Promise((E,x)=>f=x);a=()=>f(),t.signal.addEventListener("abort",a);let h=E=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):s({request:t,params:n.params,context:o},...E!==void 0?[E]:[]),y=(async()=>{try{return{type:"data",result:await(i?i(x=>h(x)):h())}}catch(E){return{type:"error",result:E}}})();return Promise.race([y,c])};try{let s=n.route[e];if(r)if(s){let f,[c]=await Promise.all([u(s).catch(h=>{f=h}),r]);if(f!==void 0)throw f;l=c}else if(await r,s=n.route[e],s)l=await u(s);else if(e==="action"){let f=new URL(t.url),c=f.pathname+f.search;throw Ke(405,{method:t.method,pathname:c,routeId:n.route.id})}else return{type:le.data,result:void 0};else if(s)l=await u(s);else{let f=new URL(t.url),c=f.pathname+f.search;throw Ke(404,{pathname:c})}K(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(s){return{type:le.error,result:s}}finally{a&&t.signal.removeEventListener("abort",a)}return l}async function J2(e){let{result:t,type:n}=e;if(up(t)){let s;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(f){return{type:le.error,error:f}}return n===le.error?{type:le.error,error:new Rl(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:le.data,data:s,statusCode:t.status,headers:t.headers}}if(n===le.error){if(td(t)){var r;if(t.data instanceof Error){var i;return{type:le.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new Rl(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:le.error,error:t,statusCode:ca(t)?t.status:void 0}}if(og(t)){var o,l;return{type:le.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(td(t)){var a,u;return{type:le.data,data:t.data,statusCode:(a=t.init)==null?void 0:a.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:le.data,data:t}}function eg(e,t,n,r,i,o){let l=e.headers.get("Location");if(K(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!lc.test(l)){let a=r.slice(0,r.findIndex(u=>u.route.id===n)+1);l=Qu(new URL(t.url),a,i,!0,l,o),e.headers.set("Location",l)}return e}function Gf(e,t,n){if(lc.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=Gr(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function fr(e,t,n,r){let i=e.createURL(ap(t)).toString(),o={signal:n};if(r&&Ot(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=qu(r.formData):o.body=r.formData}return new Request(i,o)}function qu(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Kf(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function tg(e,t,n,r,i){let o={},l=null,a,u=!1,s={},f=n&&dt(n[1])?n[1].error:void 0;return e.forEach(c=>{if(!(c.route.id in t))return;let h=c.route.id,y=t[h];if(K(!Gn(y),"Cannot handle redirect results in processLoaderData"),dt(y)){let E=y.error;f!==void 0&&(E=f,f=void 0),l=l||{};{let x=kr(e,h);l[x.route.id]==null&&(l[x.route.id]=E)}o[h]=void 0,u||(u=!0,a=ca(y.error)?y.error.status:500),y.headers&&(s[h]=y.headers)}else Tn(y)?(r.set(h,y.deferredData),o[h]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!u&&(a=y.statusCode),y.headers&&(s[h]=y.headers)):(o[h]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(a=y.statusCode),y.headers&&(s[h]=y.headers))}),f!==void 0&&n&&(l={[n[0]]:f},o[n[0]]=void 0),{loaderData:o,errors:l,statusCode:a||200,loaderHeaders:s}}function Zf(e,t,n,r,i,o,l,a){let{loaderData:u,errors:s}=tg(t,r,i,a);return o.forEach(f=>{let{key:c,match:h,controller:y}=f,E=l[c];if(K(E,"Did not find corresponding fetcher result"),!(y&&y.signal.aborted))if(dt(E)){let x=kr(e.matches,h==null?void 0:h.route.id);s&&s[x.route.id]||(s=ge({},s,{[x.route.id]:E.error})),e.fetchers.delete(c)}else if(Gn(E))K(!1,"Unhandled fetcher revalidation redirect");else if(Tn(E))K(!1,"Unhandled fetcher deferred data");else{let x=gn(E.data);e.fetchers.set(c,x)}}),{loaderData:u,errors:s}}function Xf(e,t,n,r){let i=ge({},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 Jf(e){return e?dt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function kr(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 ed(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 Ke(e,t){let{pathname:n,routeId:r,method:i,type:o,message:l}=t===void 0?{}:t,a="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(a="Bad Request",o==="route-discovery"?u='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+l):i&&n&&r?u="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"?u="defer() is not supported in actions":o==="invalid-body"&&(u="Unable to encode submission body")):e===403?(a="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",u='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?u="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&&(u='Invalid request method "'+i.toUpperCase()+'"')),new Rl(e||500,a,new Error(u),!0)}function zo(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(Gn(i))return{key:r,result:i}}}function ap(e){let t=typeof e=="string"?jn(e):e;return ir(ge({},t,{hash:""}))}function ng(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function rg(e){return typeof e=="object"&&e!=null&&"then"in e}function ig(e){return up(e.result)&&$2.has(e.result.status)}function Tn(e){return e.type===le.deferred}function dt(e){return e.type===le.error}function Gn(e){return(e&&e.type)===le.redirect}function td(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function og(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 up(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function lg(e){return U2.has(e.toLowerCase())}function Ot(e){return F2.has(e.toLowerCase())}async function ag(e,t,n,r,i){let o=Object.entries(t);for(let l=0;l(h==null?void 0:h.route.id)===a);if(!s)continue;let f=r.find(h=>h.route.id===s.route.id),c=f!=null&&!op(f,s)&&(i&&i[s.route.id])!==void 0;Tn(u)&&c&&await ac(u,n,!1).then(h=>{h&&(t[a]=h)})}}async function ug(e,t,n){for(let r=0;r(s==null?void 0:s.route.id)===o)&&Tn(a)&&(K(l,"Expected an AbortController for revalidating fetcher deferred result"),await ac(a,l.signal,!0).then(s=>{s&&(t[i]=s)}))}}async function ac(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:le.data,data:e.deferredData.unwrappedData}}catch(i){return{type:le.error,error:i}}return{type:le.data,data:e.deferredData.data}}}function uc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function gi(e,t){let n=typeof t=="string"?jn(t).search:t.search;if(e[e.length-1].route.index&&uc(n||""))return e[e.length-1];let r=np(e);return r[r.length-1]}function nd(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 Va(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 sg(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 si(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 cg(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 gn(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 fg(e,t){try{let n=e.sessionStorage.getItem(ip);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 dg(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(ip,JSON.stringify(n))}catch(r){br(!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 Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),k.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let c=oc(s,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 vg=k.createContext(null);function gg(e){let t=k.useContext(Un).outlet;return t&&k.createElement(vg.Provider,{value:e},t)}function dp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(ur),{matches:i}=k.useContext(Un),{pathname:o}=Kr(),l=JSON.stringify(ic(i,r.v7_relativeSplatPath));return k.useMemo(()=>oc(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function yg(e,t,n,r){lo()||K(!1);let{navigator:i}=k.useContext(ur),{matches:o}=k.useContext(Un),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Kr(),f;f=s;let c=f.pathname||"/",h=c;if(u!=="/"){let x=u.replace(/^\//,"").split("/");h="/"+c.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=Wn(e,{pathname:h});return Cg(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:on([u,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:on([u,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function wg(){let e=_g(),t=ca(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const Sg=k.createElement(wg,null);class xg extends k.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?k.createElement(Un.Provider,{value:this.props.routeContext},k.createElement(cp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Eg(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(fa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Un.Provider,{value:t},r)}function Cg(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||K(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((f,c,h)=>{let y,E=!1,x=null,P=null;n&&(y=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||Sg,u&&(s<0&&h===0?(Lg("route-fallback"),E=!0,P=null):s===h&&(E=!0,P=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,h+1)),p=()=>{let g;return y?g=x:E?g=P:c.route.Component?g=k.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=f,k.createElement(Eg,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?k.createElement(xg,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var pp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pp||{}),Ml=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}(Ml||{});function Tg(e){let t=k.useContext(fa);return t||K(!1),t}function kg(e){let t=k.useContext(sp);return t||K(!1),t}function Pg(e){let t=k.useContext(Un);return t||K(!1),t}function hp(e){let t=Pg(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function _g(){var e;let t=k.useContext(cp),n=kg(Ml.UseRouteError),r=hp(Ml.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Rg(){let{router:e}=Tg(pp.UseNavigateStable),t=hp(Ml.UseNavigateStable),n=k.useRef(!1);return fp(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ll({fromRouteId:t},o)))},[e,t])}const rd={};function Lg(e,t,n){rd[e]||(rd[e]=!0)}function Mg(e){return gg(e.context)}function Og(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Re.Pop,navigator:o,static:l=!1,future:a}=e;lo()&&K(!1);let u=t.replace(/^\/*/,"/"),s=k.useMemo(()=>({basename:u,navigator:o,static:l,future:Ll({v7_relativeSplatPath:!1},a)}),[u,a,o,l]);typeof r=="string"&&(r=fn(r));let{pathname:f="/",search:c="",hash:h="",state:y=null,key:E="default"}=r,x=k.useMemo(()=>{let P=Gr(f,u);return P==null?null:{location:{pathname:P,search:c,hash:h,state:y,key:E},navigationType:i}},[u,f,c,h,y,E,i]);return x==null?null:k.createElement(ur.Provider,{value:s},k.createElement(sc.Provider,{children:n,value:x}))}new Promise(()=>{});function Ng(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),k.useCallback(function(s,f){if(f===void 0&&(f={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let c=oc(s,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 vg=k.createContext(null);function gg(e){let t=k.useContext(Un).outlet;return t&&k.createElement(vg.Provider,{value:e},t)}function dp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(ar),{matches:i}=k.useContext(Un),{pathname:o}=Kr(),l=JSON.stringify(ic(i,r.v7_relativeSplatPath));return k.useMemo(()=>oc(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function yg(e,t,n,r){lo()||K(!1);let{navigator:i}=k.useContext(ar),{matches:o}=k.useContext(Un),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let s=Kr(),f;f=s;let c=f.pathname||"/",h=c;if(u!=="/"){let x=u.replace(/^\//,"").split("/");h="/"+c.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=Wn(e,{pathname:h});return Cg(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:on([u,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:on([u,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r)}function wg(){let e=_g(),t=ca(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 k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const Sg=k.createElement(wg,null);class xg extends k.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?k.createElement(Un.Provider,{value:this.props.routeContext},k.createElement(cp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Eg(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(fa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Un.Provider,{value:t},r)}function Cg(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||K(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,s+1):l=[l[0]];break}}}return l.reduceRight((f,c,h)=>{let y,E=!1,x=null,P=null;n&&(y=a&&c.route.id?a[c.route.id]:void 0,x=c.route.errorElement||Sg,u&&(s<0&&h===0?(Lg("route-fallback"),E=!0,P=null):s===h&&(E=!0,P=c.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,h+1)),p=()=>{let g;return y?g=x:E?g=P:c.route.Component?g=k.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=f,k.createElement(Eg,{match:c,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?k.createElement(xg,{location:n.location,revalidation:n.revalidation,component:x,error:y,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var pp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pp||{}),Ml=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}(Ml||{});function Tg(e){let t=k.useContext(fa);return t||K(!1),t}function kg(e){let t=k.useContext(sp);return t||K(!1),t}function Pg(e){let t=k.useContext(Un);return t||K(!1),t}function hp(e){let t=Pg(),n=t.matches[t.matches.length-1];return n.route.id||K(!1),n.route.id}function _g(){var e;let t=k.useContext(cp),n=kg(Ml.UseRouteError),r=hp(Ml.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Rg(){let{router:e}=Tg(pp.UseNavigateStable),t=hp(Ml.UseNavigateStable),n=k.useRef(!1);return fp(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ll({fromRouteId:t},o)))},[e,t])}const rd={};function Lg(e,t,n){rd[e]||(rd[e]=!0)}function Mg(e){return gg(e.context)}function Og(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Re.Pop,navigator:o,static:l=!1,future:a}=e;lo()&&K(!1);let u=t.replace(/^\/*/,"/"),s=k.useMemo(()=>({basename:u,navigator:o,static:l,future:Ll({v7_relativeSplatPath:!1},a)}),[u,a,o,l]);typeof r=="string"&&(r=jn(r));let{pathname:f="/",search:c="",hash:h="",state:y=null,key:E="default"}=r,x=k.useMemo(()=>{let P=Gr(f,u);return P==null?null:{location:{pathname:P,search:c,hash:h,state:y,key:E},navigationType:i}},[u,f,c,h,y,E,i]);return x==null?null:k.createElement(ar.Provider,{value:s},k.createElement(sc.Provider,{children:n,value:x}))}new Promise(()=>{});function Ng(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:k.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:k.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:k.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 Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dg(e,t){return e.button===0&&(!t||t==="_self")&&!Ig(e)}const zg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Fg="6";try{window.__reactRouterVersion=Fg}catch{}function jg(e,t){return V2({basename:void 0,future:Ki({},void 0,{v7_prependBasename:!0}),history:h2({window:void 0}),hydrationData:Ug(),routes:e,mapRouteProperties:Ng,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Ug(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ki({},t,{errors:$g(t.errors)})),t}function $g(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 Rl(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 Hg=k.createContext({isTransitioning:!1}),Bg=k.createContext(new Map),bg="startTransition",id=Ga[bg],Vg="flushSync",od=p2[Vg];function Wg(e){id?id(e):e()}function ci(e){od?od(e):e()}class Qg{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 qg(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=k.useState(n.state),[l,a]=k.useState(),[u,s]=k.useState({isTransitioning:!1}),[f,c]=k.useState(),[h,y]=k.useState(),[E,x]=k.useState(),P=k.useRef(new Map),{v7_startTransition:m}=r||{},p=k.useCallback(w=>{m?Wg(w):w()},[m]),g=k.useCallback((w,j)=>{let{deletedFetchers:A,unstable_flushSync:q,unstable_viewTransitionOpts:ae}=j;A.forEach(xe=>P.current.delete(xe)),w.fetchers.forEach((xe,Ft)=>{xe.data!==void 0&&P.current.set(Ft,xe.data)});let Pe=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ae||Pe){q?ci(()=>o(w)):p(()=>o(w));return}if(q){ci(()=>{h&&(f&&f.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let xe=n.window.document.startViewTransition(()=>{ci(()=>o(w))});xe.finished.finally(()=>{ci(()=>{c(void 0),y(void 0),a(void 0),s({isTransitioning:!1})})}),ci(()=>y(xe));return}h?(f&&f.resolve(),h.skipTransition(),x({state:w,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(a(w),s({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[n.window,h,f,P,p]);k.useLayoutEffect(()=>n.subscribe(g),[n,g]),k.useEffect(()=>{u.isTransitioning&&!u.flushSync&&c(new Qg)},[u]),k.useEffect(()=>{if(f&&l&&n.window){let w=l,j=f.promise,A=n.window.document.startViewTransition(async()=>{p(()=>o(w)),await j});A.finished.finally(()=>{c(void 0),y(void 0),a(void 0),s({isTransitioning:!1})}),y(A)}},[p,l,f,n.window]),k.useEffect(()=>{f&&l&&i.location.key===l.location.key&&f.resolve()},[f,h,i.location,l]),k.useEffect(()=>{!u.isTransitioning&&E&&(a(E.state),s({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),x(void 0))},[u.isTransitioning,E]),k.useEffect(()=>{},[]);let T=k.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,j,A)=>n.navigate(w,{state:j,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,j,A)=>n.navigate(w,{replace:!0,state:j,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),R=n.basename||"/",O=k.useMemo(()=>({router:n,navigator:T,static:!1,basename:R}),[n,T,R]),L=k.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return k.createElement(k.Fragment,null,k.createElement(fa.Provider,{value:O},k.createElement(sp.Provider,{value:i},k.createElement(Bg.Provider,{value:P.current},k.createElement(Hg.Provider,{value:u},k.createElement(Og,{basename:R,location:i.location,navigationType:i.historyAction,navigator:T,future:L},i.initialized||n.future.v7_partialHydration?k.createElement(Yg,{routes:n.routes,future:n.future,state:i}):t))))),null)}const Yg=k.memo(Gg);function Gg(e){let{routes:t,future:n,state:r}=e;return yg(t,void 0,r,n)}const Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_i=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:f,unstable_viewTransition:c}=t,h=Ag(t,zg),{basename:y}=k.useContext(ur),E,x=!1;if(typeof s=="string"&&Zg.test(s)&&(E=s,Kg))try{let g=new URL(window.location.href),T=s.startsWith("//")?new URL(g.protocol+s):new URL(s),R=Gr(T.pathname,y);T.origin===g.origin&&R!=null?s=R+T.search+T.hash:x=!0}catch{}let P=pg(s,{relative:i}),m=Xg(s,{replace:l,state:a,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:c});function p(g){r&&r(g),g.defaultPrevented||m(g)}return k.createElement("a",Ki({},h,{href:E||P,onClick:x||o?r:p,ref:n,target:u}))});var ld;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ld||(ld={}));var ad;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ad||(ad={}));function Xg(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=hg(),s=Kr(),f=dp(e,{relative:l});return k.useCallback(c=>{if(Dg(c,n)){c.preventDefault();let h=r!==void 0?r:or(s)===or(f);u(e,{replace:h,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,f,r,i,n,e,o,l,a])}var Jg=fs(function(e,t){var n=e.styles,r=cs([n],void 0,k.useContext(ds)),i=k.useRef();return Ic(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,u=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),u!==null&&(a=!0,u.setAttribute("data-emotion",o),l.hydrate([u])),i.current=[l,a],function(){l.flush()}},[t]),Ic(function(){var o=i.current,l=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&ss(t,r.next,!0),l.tags.length){var u=l.tags[l.tags.length-1].nextElementSibling;l.before=u,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Y(){for(var e=arguments.length,t=new Array(e),n=0;n=0)&&(n[i]=e[i]);return n}function Ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Dg(e,t){return e.button===0&&(!t||t==="_self")&&!Ig(e)}const zg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Fg="6";try{window.__reactRouterVersion=Fg}catch{}function jg(e,t){return V2({basename:void 0,future:Ki({},void 0,{v7_prependBasename:!0}),history:h2({window:void 0}),hydrationData:Ug(),routes:e,mapRouteProperties:Ng,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function Ug(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ki({},t,{errors:$g(t.errors)})),t}function $g(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 Rl(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 Hg=k.createContext({isTransitioning:!1}),Bg=k.createContext(new Map),bg="startTransition",id=Ga[bg],Vg="flushSync",od=p2[Vg];function Wg(e){id?id(e):e()}function ci(e){od?od(e):e()}class Qg{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 qg(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=k.useState(n.state),[l,a]=k.useState(),[u,s]=k.useState({isTransitioning:!1}),[f,c]=k.useState(),[h,y]=k.useState(),[E,x]=k.useState(),P=k.useRef(new Map),{v7_startTransition:m}=r||{},p=k.useCallback(w=>{m?Wg(w):w()},[m]),g=k.useCallback((w,j)=>{let{deletedFetchers:A,unstable_flushSync:q,unstable_viewTransitionOpts:ae}=j;A.forEach(xe=>P.current.delete(xe)),w.fetchers.forEach((xe,Ft)=>{xe.data!==void 0&&P.current.set(Ft,xe.data)});let Pe=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!ae||Pe){q?ci(()=>o(w)):p(()=>o(w));return}if(q){ci(()=>{h&&(f&&f.resolve(),h.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})});let xe=n.window.document.startViewTransition(()=>{ci(()=>o(w))});xe.finished.finally(()=>{ci(()=>{c(void 0),y(void 0),a(void 0),s({isTransitioning:!1})})}),ci(()=>y(xe));return}h?(f&&f.resolve(),h.skipTransition(),x({state:w,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation})):(a(w),s({isTransitioning:!0,flushSync:!1,currentLocation:ae.currentLocation,nextLocation:ae.nextLocation}))},[n.window,h,f,P,p]);k.useLayoutEffect(()=>n.subscribe(g),[n,g]),k.useEffect(()=>{u.isTransitioning&&!u.flushSync&&c(new Qg)},[u]),k.useEffect(()=>{if(f&&l&&n.window){let w=l,j=f.promise,A=n.window.document.startViewTransition(async()=>{p(()=>o(w)),await j});A.finished.finally(()=>{c(void 0),y(void 0),a(void 0),s({isTransitioning:!1})}),y(A)}},[p,l,f,n.window]),k.useEffect(()=>{f&&l&&i.location.key===l.location.key&&f.resolve()},[f,h,i.location,l]),k.useEffect(()=>{!u.isTransitioning&&E&&(a(E.state),s({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),x(void 0))},[u.isTransitioning,E]),k.useEffect(()=>{},[]);let T=k.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,j,A)=>n.navigate(w,{state:j,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,j,A)=>n.navigate(w,{replace:!0,state:j,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),R=n.basename||"/",O=k.useMemo(()=>({router:n,navigator:T,static:!1,basename:R}),[n,T,R]),L=k.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return k.createElement(k.Fragment,null,k.createElement(fa.Provider,{value:O},k.createElement(sp.Provider,{value:i},k.createElement(Bg.Provider,{value:P.current},k.createElement(Hg.Provider,{value:u},k.createElement(Og,{basename:R,location:i.location,navigationType:i.historyAction,navigator:T,future:L},i.initialized||n.future.v7_partialHydration?k.createElement(Yg,{routes:n.routes,future:n.future,state:i}):t))))),null)}const Yg=k.memo(Gg);function Gg(e){let{routes:t,future:n,state:r}=e;return yg(t,void 0,r,n)}const Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_i=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:u,to:s,preventScrollReset:f,unstable_viewTransition:c}=t,h=Ag(t,zg),{basename:y}=k.useContext(ar),E,x=!1;if(typeof s=="string"&&Zg.test(s)&&(E=s,Kg))try{let g=new URL(window.location.href),T=s.startsWith("//")?new URL(g.protocol+s):new URL(s),R=Gr(T.pathname,y);T.origin===g.origin&&R!=null?s=R+T.search+T.hash:x=!0}catch{}let P=pg(s,{relative:i}),m=Xg(s,{replace:l,state:a,target:u,preventScrollReset:f,relative:i,unstable_viewTransition:c});function p(g){r&&r(g),g.defaultPrevented||m(g)}return k.createElement("a",Ki({},h,{href:E||P,onClick:x||o?r:p,ref:n,target:u}))});var ld;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ld||(ld={}));var ad;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ad||(ad={}));function Xg(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=hg(),s=Kr(),f=dp(e,{relative:l});return k.useCallback(c=>{if(Dg(c,n)){c.preventDefault();let h=r!==void 0?r:ir(s)===ir(f);u(e,{replace:h,state:i,preventScrollReset:o,relative:l,unstable_viewTransition:a})}},[s,u,f,r,i,n,e,o,l,a])}var Jg=fs(function(e,t){var n=e.styles,r=cs([n],void 0,k.useContext(ds)),i=k.useRef();return Ic(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,u=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),u!==null&&(a=!0,u.setAttribute("data-emotion",o),l.hydrate([u])),i.current=[l,a],function(){l.flush()}},[t]),Ic(function(){var o=i.current,l=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&ss(t,r.next,!0),l.tags.length){var u=l.tags[l.tags.length-1].nextElementSibling;l.before=u,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Y(){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},jy=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},Yu=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,"'")},Uy=function(t){var n=Dr(t,Q.TITLE),r=Dr(t,Zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=Dr(t,Zi.DEFAULT_TITLE);return n||i||void 0},$y=function(t){return Dr(t,Zi.ON_CHANGE_CLIENT_STATE)||function(){}},Wa=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return rt({},r,i)},{})},Hy=function(t,n){return n.filter(function(r){return typeof r[Q.BASE]<"u"}).map(function(r){return r[Q.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},By=function(t){return{baseTag:Hy([me.HREF,me.TARGET],t),bodyAttributes:Wa(Xn.BODY,t),defer:Dr(t,Zi.DEFER),encode:Dr(t,Zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Wa(Xn.HTML,t),linkTags:fi(Q.LINK,[me.REL,me.HREF],t),metaTags:fi(Q.META,[me.NAME,me.CHARSET,me.HTTPEQUIV,me.PROPERTY,me.ITEM_PROP],t),noscriptTags:fi(Q.NOSCRIPT,[me.INNER_HTML],t),onChangeClientState:$y(t),scriptTags:fi(Q.SCRIPT,[me.SRC,me.INNER_HTML],t),styleTags:fi(Q.STYLE,[me.CSS_TEXT],t),title:Uy(t),titleAttributes:Wa(Xn.TITLE,t)}},Gu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Gu(t)},0)}}(),fd=function(t){return clearTimeout(t)},by=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Gu:global.requestAnimationFrame||Gu,Vy=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||fd:global.cancelAnimationFrame||fd,Wy=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},di=null,Qy=function(t){di&&Vy(di),t.defer?di=by(function(){dd(t,function(){di=null})}):(dd(t),di=null)},dd=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,h=t.title,y=t.titleAttributes;Ku(Q.BODY,i),Ku(Q.HTML,o),qy(h,y);var E={baseTag:pr(Q.BASE,r),linkTags:pr(Q.LINK,l),metaTags:pr(Q.META,a),noscriptTags:pr(Q.NOSCRIPT,u),scriptTags:pr(Q.SCRIPT,f),styleTags:pr(Q.STYLE,c)},x={},P={};Object.keys(E).forEach(function(m){var p=E[m],g=p.newTags,T=p.oldTags;g.length&&(x[m]=g),T.length&&(P[m]=E[m].oldTags)}),n&&n(),s(t,x,P)},Ep=function(t){return Array.isArray(t)?t.join(""):t},qy=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Ep(t)),Ku(Q.TITLE,n)},Ku=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(At),o=i?i.split(","):[],l=[].concat(o),a=Object.keys(n),u=0;u=0;h--)r.removeAttribute(l[h]);o.length===l.length?r.removeAttribute(At):r.getAttribute(At)!==a.join(",")&&r.setAttribute(At,a.join(","))}},pr=function(t,n){var r=document.head||document.querySelector(Q.HEAD),i=r.querySelectorAll(t+"["+At+"]"),o=Array.prototype.slice.call(i),l=[],a=void 0;return n&&n.length&&n.forEach(function(u){var s=document.createElement(t);for(var f in u)if(u.hasOwnProperty(f))if(f===me.INNER_HTML)s.innerHTML=u.innerHTML;else if(f===me.CSS_TEXT)s.styleSheet?s.styleSheet.cssText=u.cssText:s.appendChild(document.createTextNode(u.cssText));else{var c=typeof u[f]>"u"?"":u[f];s.setAttribute(f,c)}s.setAttribute(At,"true"),o.some(function(h,y){return a=y,s.isEqualNode(h)})?o.splice(a,1):l.push(s)}),o.forEach(function(u){return u.parentNode.removeChild(u)}),l.forEach(function(u){return r.appendChild(u)}),{oldTags:o,newTags:l}},Cp=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},"")},Yy=function(t,n,r,i){var o=Cp(r),l=Ep(n);return o?"<"+t+" "+At+'="true" '+o+">"+Yu(l,i)+"":"<"+t+" "+At+'="true">'+Yu(l,i)+""},Gy=function(t,n,r){return n.reduce(function(i,o){var l=Object.keys(o).filter(function(s){return!(s===me.INNER_HTML||s===me.CSS_TEXT)}).reduce(function(s,f){var c=typeof o[f]>"u"?f:f+'="'+Yu(o[f],r)+'"';return s?s+" "+c:c},""),a=o.innerHTML||o.cssText||"",u=Ay.indexOf(t)===-1;return i+"<"+t+" "+At+'="true" '+l+(u?"/>":">"+a+"")},"")},Tp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Ol[i]||i]=t[i],r},n)},Ky=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Ny[i]||i]=t[i],r},n)},Zy=function(t,n,r){var i,o=(i={key:n},i[At]=!0,i),l=Tp(r,o);return[_r.createElement(Q.TITLE,l,n)]},Xy=function(t,n){return n.map(function(r,i){var o,l=(o={key:i},o[At]=!0,o);return Object.keys(r).forEach(function(a){var u=Ol[a]||a;if(u===me.INNER_HTML||u===me.CSS_TEXT){var s=r.innerHTML||r.cssText;l.dangerouslySetInnerHTML={__html:s}}else l[u]=r[a]}),_r.createElement(t,l)})},Xt=function(t,n,r){switch(t){case Q.TITLE:return{toComponent:function(){return Zy(t,n.title,n.titleAttributes)},toString:function(){return Yy(t,n.title,n.titleAttributes,r)}};case Xn.BODY:case Xn.HTML:return{toComponent:function(){return Tp(n)},toString:function(){return Cp(n)}};default:return{toComponent:function(){return Xy(t,n)},toString:function(){return Gy(t,n,r)}}}},kp=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.scriptTags,f=t.styleTags,c=t.title,h=c===void 0?"":c,y=t.titleAttributes;return{base:Xt(Q.BASE,n,i),bodyAttributes:Xt(Xn.BODY,r,i),htmlAttributes:Xt(Xn.HTML,o,i),link:Xt(Q.LINK,l,i),meta:Xt(Q.META,a,i),noscript:Xt(Q.NOSCRIPT,u,i),script:Xt(Q.SCRIPT,s,i),style:Xt(Q.STYLE,f,i),title:Xt(Q.TITLE,{title:h,titleAttributes:y},i)}},Jy=function(t){var n,r;return r=n=function(i){Fy(o,i);function o(){return Dy(this,o),jy(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!ky(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,u){if(!u)return null;switch(a.type){case Q.SCRIPT:case Q.NOSCRIPT:return{innerHTML:u};case Q.STYLE:return{cssText:u}}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 u,s=a.child,f=a.arrayTypeChildren,c=a.newChildProps,h=a.nestedChildren;return rt({},f,(u={},u[s.type]=[].concat(f[s.type]||[],[rt({},c,this.mapNestedChildrenToProps(s,h))]),u))},o.prototype.mapObjectTypeChildren=function(a){var u,s,f=a.child,c=a.newProps,h=a.newChildProps,y=a.nestedChildren;switch(f.type){case Q.TITLE:return rt({},c,(u={},u[f.type]=y,u.titleAttributes=rt({},h),u));case Q.BODY:return rt({},c,{bodyAttributes:rt({},h)});case Q.HTML:return rt({},c,{htmlAttributes:rt({},h)})}return rt({},c,(s={},s[f.type]=rt({},h),s))},o.prototype.mapArrayTypeChildrenToProps=function(a,u){var s=rt({},u);return Object.keys(a).forEach(function(f){var c;s=rt({},s,(c={},c[f]=a[f],c))}),s},o.prototype.warnOnInvalidChildren=function(a,u){return!0},o.prototype.mapChildrenToProps=function(a,u){var s=this,f={};return _r.Children.forEach(a,function(c){if(!(!c||!c.props)){var h=c.props,y=h.children,E=cd(h,["children"]),x=Ky(E);switch(s.warnOnInvalidChildren(c,y),c.type){case Q.LINK:case Q.META:case Q.NOSCRIPT:case Q.SCRIPT:case Q.STYLE:f=s.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:x,nestedChildren:y});break;default:u=s.mapObjectTypeChildren({child:c,newProps:u,newChildProps:x,nestedChildren:y});break}}}),u=this.mapArrayTypeChildrenToProps(f,u),u},o.prototype.render=function(){var a=this.props,u=a.children,s=cd(a,["children"]),f=rt({},s);return u&&(f=this.mapChildrenToProps(u,f)),_r.createElement(t,f)},zy(o,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),o}(_r.Component),n.propTypes={base:he.object,bodyAttributes:he.object,children:he.oneOfType([he.arrayOf(he.node),he.node]),defaultTitle:he.string,defer:he.bool,encodeSpecialCharacters:he.bool,htmlAttributes:he.object,link:he.arrayOf(he.object),meta:he.arrayOf(he.object),noscript:he.arrayOf(he.object),onChangeClientState:he.func,script:he.arrayOf(he.object),style:he.arrayOf(he.object),title:he.string,titleAttributes:he.object,titleTemplate:he.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=kp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},e4=function(){return null},t4=wy(By,Qy,kp)(e4),Xi=Jy(t4);Xi.renderStatic=Xi.rewind;const n4=Y` +*/var sd=Object.getOwnPropertySymbols,Py=Object.prototype.hasOwnProperty,_y=Object.prototype.propertyIsEnumerable;function Ry(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ly(){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 My=Ly()?Object.assign:function(e,t){for(var n,r=Ry(e),i,o=1;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},jy=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},Yu=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,"'")},Uy=function(t){var n=Ir(t,Q.TITLE),r=Ir(t,Zi.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=Ir(t,Zi.DEFAULT_TITLE);return n||i||void 0},$y=function(t){return Ir(t,Zi.ON_CHANGE_CLIENT_STATE)||function(){}},Wa=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return rt({},r,i)},{})},Hy=function(t,n){return n.filter(function(r){return typeof r[Q.BASE]<"u"}).map(function(r){return r[Q.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},By=function(t){return{baseTag:Hy([me.HREF,me.TARGET],t),bodyAttributes:Wa(Xn.BODY,t),defer:Ir(t,Zi.DEFER),encode:Ir(t,Zi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Wa(Xn.HTML,t),linkTags:fi(Q.LINK,[me.REL,me.HREF],t),metaTags:fi(Q.META,[me.NAME,me.CHARSET,me.HTTPEQUIV,me.PROPERTY,me.ITEM_PROP],t),noscriptTags:fi(Q.NOSCRIPT,[me.INNER_HTML],t),onChangeClientState:$y(t),scriptTags:fi(Q.SCRIPT,[me.SRC,me.INNER_HTML],t),styleTags:fi(Q.STYLE,[me.CSS_TEXT],t),title:Uy(t),titleAttributes:Wa(Xn.TITLE,t)}},Gu=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Gu(t)},0)}}(),fd=function(t){return clearTimeout(t)},by=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Gu:global.requestAnimationFrame||Gu,Vy=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||fd:global.cancelAnimationFrame||fd,Wy=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},di=null,Qy=function(t){di&&Vy(di),t.defer?di=by(function(){dd(t,function(){di=null})}):(dd(t),di=null)},dd=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.onChangeClientState,f=t.scriptTags,c=t.styleTags,h=t.title,y=t.titleAttributes;Ku(Q.BODY,i),Ku(Q.HTML,o),qy(h,y);var E={baseTag:dr(Q.BASE,r),linkTags:dr(Q.LINK,l),metaTags:dr(Q.META,a),noscriptTags:dr(Q.NOSCRIPT,u),scriptTags:dr(Q.SCRIPT,f),styleTags:dr(Q.STYLE,c)},x={},P={};Object.keys(E).forEach(function(m){var p=E[m],g=p.newTags,T=p.oldTags;g.length&&(x[m]=g),T.length&&(P[m]=E[m].oldTags)}),n&&n(),s(t,x,P)},Ep=function(t){return Array.isArray(t)?t.join(""):t},qy=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=Ep(t)),Ku(Q.TITLE,n)},Ku=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(At),o=i?i.split(","):[],l=[].concat(o),a=Object.keys(n),u=0;u=0;h--)r.removeAttribute(l[h]);o.length===l.length?r.removeAttribute(At):r.getAttribute(At)!==a.join(",")&&r.setAttribute(At,a.join(","))}},dr=function(t,n){var r=document.head||document.querySelector(Q.HEAD),i=r.querySelectorAll(t+"["+At+"]"),o=Array.prototype.slice.call(i),l=[],a=void 0;return n&&n.length&&n.forEach(function(u){var s=document.createElement(t);for(var f in u)if(u.hasOwnProperty(f))if(f===me.INNER_HTML)s.innerHTML=u.innerHTML;else if(f===me.CSS_TEXT)s.styleSheet?s.styleSheet.cssText=u.cssText:s.appendChild(document.createTextNode(u.cssText));else{var c=typeof u[f]>"u"?"":u[f];s.setAttribute(f,c)}s.setAttribute(At,"true"),o.some(function(h,y){return a=y,s.isEqualNode(h)})?o.splice(a,1):l.push(s)}),o.forEach(function(u){return u.parentNode.removeChild(u)}),l.forEach(function(u){return r.appendChild(u)}),{oldTags:o,newTags:l}},Cp=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},"")},Yy=function(t,n,r,i){var o=Cp(r),l=Ep(n);return o?"<"+t+" "+At+'="true" '+o+">"+Yu(l,i)+"":"<"+t+" "+At+'="true">'+Yu(l,i)+""},Gy=function(t,n,r){return n.reduce(function(i,o){var l=Object.keys(o).filter(function(s){return!(s===me.INNER_HTML||s===me.CSS_TEXT)}).reduce(function(s,f){var c=typeof o[f]>"u"?f:f+'="'+Yu(o[f],r)+'"';return s?s+" "+c:c},""),a=o.innerHTML||o.cssText||"",u=Ay.indexOf(t)===-1;return i+"<"+t+" "+At+'="true" '+l+(u?"/>":">"+a+"")},"")},Tp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Ol[i]||i]=t[i],r},n)},Ky=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[Ny[i]||i]=t[i],r},n)},Zy=function(t,n,r){var i,o=(i={key:n},i[At]=!0,i),l=Tp(r,o);return[Pr.createElement(Q.TITLE,l,n)]},Xy=function(t,n){return n.map(function(r,i){var o,l=(o={key:i},o[At]=!0,o);return Object.keys(r).forEach(function(a){var u=Ol[a]||a;if(u===me.INNER_HTML||u===me.CSS_TEXT){var s=r.innerHTML||r.cssText;l.dangerouslySetInnerHTML={__html:s}}else l[u]=r[a]}),Pr.createElement(t,l)})},Xt=function(t,n,r){switch(t){case Q.TITLE:return{toComponent:function(){return Zy(t,n.title,n.titleAttributes)},toString:function(){return Yy(t,n.title,n.titleAttributes,r)}};case Xn.BODY:case Xn.HTML:return{toComponent:function(){return Tp(n)},toString:function(){return Cp(n)}};default:return{toComponent:function(){return Xy(t,n)},toString:function(){return Gy(t,n,r)}}}},kp=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,l=t.linkTags,a=t.metaTags,u=t.noscriptTags,s=t.scriptTags,f=t.styleTags,c=t.title,h=c===void 0?"":c,y=t.titleAttributes;return{base:Xt(Q.BASE,n,i),bodyAttributes:Xt(Xn.BODY,r,i),htmlAttributes:Xt(Xn.HTML,o,i),link:Xt(Q.LINK,l,i),meta:Xt(Q.META,a,i),noscript:Xt(Q.NOSCRIPT,u,i),script:Xt(Q.SCRIPT,s,i),style:Xt(Q.STYLE,f,i),title:Xt(Q.TITLE,{title:h,titleAttributes:y},i)}},Jy=function(t){var n,r;return r=n=function(i){Fy(o,i);function o(){return Dy(this,o),jy(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!ky(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,u){if(!u)return null;switch(a.type){case Q.SCRIPT:case Q.NOSCRIPT:return{innerHTML:u};case Q.STYLE:return{cssText:u}}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 u,s=a.child,f=a.arrayTypeChildren,c=a.newChildProps,h=a.nestedChildren;return rt({},f,(u={},u[s.type]=[].concat(f[s.type]||[],[rt({},c,this.mapNestedChildrenToProps(s,h))]),u))},o.prototype.mapObjectTypeChildren=function(a){var u,s,f=a.child,c=a.newProps,h=a.newChildProps,y=a.nestedChildren;switch(f.type){case Q.TITLE:return rt({},c,(u={},u[f.type]=y,u.titleAttributes=rt({},h),u));case Q.BODY:return rt({},c,{bodyAttributes:rt({},h)});case Q.HTML:return rt({},c,{htmlAttributes:rt({},h)})}return rt({},c,(s={},s[f.type]=rt({},h),s))},o.prototype.mapArrayTypeChildrenToProps=function(a,u){var s=rt({},u);return Object.keys(a).forEach(function(f){var c;s=rt({},s,(c={},c[f]=a[f],c))}),s},o.prototype.warnOnInvalidChildren=function(a,u){return!0},o.prototype.mapChildrenToProps=function(a,u){var s=this,f={};return Pr.Children.forEach(a,function(c){if(!(!c||!c.props)){var h=c.props,y=h.children,E=cd(h,["children"]),x=Ky(E);switch(s.warnOnInvalidChildren(c,y),c.type){case Q.LINK:case Q.META:case Q.NOSCRIPT:case Q.SCRIPT:case Q.STYLE:f=s.flattenArrayTypeChildren({child:c,arrayTypeChildren:f,newChildProps:x,nestedChildren:y});break;default:u=s.mapObjectTypeChildren({child:c,newProps:u,newChildProps:x,nestedChildren:y});break}}}),u=this.mapArrayTypeChildrenToProps(f,u),u},o.prototype.render=function(){var a=this.props,u=a.children,s=cd(a,["children"]),f=rt({},s);return u&&(f=this.mapChildrenToProps(u,f)),Pr.createElement(t,f)},zy(o,null,[{key:"canUseDOM",set:function(a){t.canUseDOM=a}}]),o}(Pr.Component),n.propTypes={base:he.object,bodyAttributes:he.object,children:he.oneOfType([he.arrayOf(he.node),he.node]),defaultTitle:he.string,defer:he.bool,encodeSpecialCharacters:he.bool,htmlAttributes:he.object,link:he.arrayOf(he.object),meta:he.arrayOf(he.object),noscript:he.arrayOf(he.object),onChangeClientState:he.func,script:he.arrayOf(he.object),style:he.arrayOf(he.object),title:he.string,titleAttributes:he.object,titleTemplate:he.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=kp({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},e4=function(){return null},t4=wy(By,Qy,kp)(e4),Xi=Jy(t4);Xi.renderStatic=Xi.rewind;const n4=Y` ${cc} display: flex; gap: 8px; @@ -171,7 +171,7 @@ object-assign display: flex; width: 100%; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { justify-content: start; flex-wrap: wrap; } @@ -181,7 +181,7 @@ object-assign max-width: 42em; font-size: large; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { max-width: 100%; } `,pd=Y` @@ -194,7 +194,7 @@ object-assign `;function o4(){const e=`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 $("div",{css:n4,children:[$(Xi,{children:[d("meta",{name:"description",content:e}),d("title",{children:"Joseph D. Phelan"})]}),d("h1",{css:ay,children:"Home page for Joseph Phelan"}),$("div",{css:r4,children:[d(ry,{}),d("p",{css:i4,children:e})]}),d(ly,{}),d("h3",{children:"Work"}),d("p",{css:pd,children:"Acquia"}),d("p",{css:Fo,children:"Staff software engineer (2024 - current)"}),$("ul",{css:jo,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:Fo,children:"Senior software engineer (2022 - 2024)"}),$("ul",{css:jo,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:Fo,children:"Business Systems Software Developer III (2019 - 2022)"}),$("ul",{css:jo,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:pd,children:"Nelnet (formerly Great Lakes Higher Education)"}),d("p",{css:Fo,children:"Senior software engineer (2012 - 2019)"}),$("ul",{css:jo,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 l4="/assets/family-C2zfP4Fb.jpg",a4=Y` + design new innovative features.`;return $("div",{css:n4,children:[$(Xi,{children:[d("meta",{name:"description",content:e}),d("title",{children:"Joseph D. Phelan"})]}),d("h1",{css:ay,children:"Home page for Joseph Phelan"}),$("div",{css:r4,children:[d(ry,{}),d("p",{css:i4,children:e})]}),d(ly,{}),d("h3",{children:"Work"}),d("p",{css:pd,children:"Acquia"}),d("p",{css:Fo,children:"Staff software engineer (2024 - current)"}),$("ul",{css:jo,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:Fo,children:"Senior software engineer (2022 - 2024)"}),$("ul",{css:jo,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:Fo,children:"Business Systems Software Developer III (2019 - 2022)"}),$("ul",{css:jo,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:pd,children:"Nelnet (formerly Great Lakes Higher Education)"}),d("p",{css:Fo,children:"Senior software engineer (2012 - 2019)"}),$("ul",{css:jo,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 l4="https://joephela.com/assets/family-C2zfP4Fb.jpg",a4=Y` width: 100%; display: block; height: auto; @@ -207,7 +207,7 @@ object-assign grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { grid-template-columns: repeat(1, minmax(0, 1fr)); } `,s4=Y` @@ -236,7 +236,7 @@ object-assign gap: 20px; padding: 0px; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { flex-direction: column; } `,qa=Y` @@ -250,7 +250,7 @@ object-assign border-bottom: 1px solid var(--bg-accent); `,R4=Y` display: none; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { display: block; } `;function Rp(){const{pathname:e}=Kr();return d("nav",{role:"navigation",children:$("ul",{css:_4,children:[d("li",{children:d(_i,{to:"/",css:[qa,e==="/"&&Ya],"aria-current":e==="/"?"page":void 0,children:"Home"})}),d("li",{children:d(_i,{to:"/about",css:[qa,e==="/about"&&Ya],"aria-current":e==="/about"?"page":void 0,children:"About"})}),d("li",{children:d(_i,{to:"/tech",css:[qa,e==="/tech"&&Ya],"aria-current":e==="/tech"?"page":void 0,children:"Tech"})}),d("li",{css:R4,children:d(Al,{onClick:()=>{gp()},css:{fontSize:"xxx-large"},"aria-label":"Toggle theme",title:"Toggle theme",children:"Toggle Theme"})})]})})}function L4({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 M4(){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 O4=Y` @@ -298,7 +298,7 @@ object-assign gap: 20px; align-items: center; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { && { background: red; display: none; @@ -315,7 +315,7 @@ object-assign `,$4=Y` display: none; - @media only screen and (max-width: ${dn}) { + @media only screen and (max-width: ${fn}) { display: block; } `;function H4(){return $("header",{css:z4,children:[$("div",{css:U4,children:[d(_i,{to:"/",children:d("img",{src:mp,css:j4,alt:"Picture of Joe Phelan",id:"joephela-avatar"})}),d("span",{css:D4,children:"Joseph D. Phelan"})]}),$("div",{children:[d("div",{css:$4,children:d(I4,{})}),$("div",{css:F4,children:[d(Rp,{}),d(Al,{onClick:()=>{gp()},"aria-label":"Toggle theme",title:"Toggle theme",children:d(d4,{fill:"var(--fg-color)"})})]})]})]})}function B4({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 b4({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 V4=Y` diff --git a/index.html b/index.html index 25658b7..a9571c8 100644 --- a/index.html +++ b/index.html @@ -2,10 +2,10 @@ - + Joseph D. Phelan - +