diff --git a/assets/index-D0ECyUx1.js b/assets/index-D0ECyUx1.js new file mode 100644 index 0000000..9035a55 --- /dev/null +++ b/assets/index-D0ECyUx1.js @@ -0,0 +1,190 @@ +function tm(n,i){for(var l=0;lu[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=l(s);fetch(s.href,c)}})();function rm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ss={exports:{}},Xi={},Ns={exports:{}},be={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ld;function nm(){if(Ld)return be;Ld=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=v&&E[v]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,T={};function F(E,D,me){this.props=E,this.context=D,this.refs=T,this.updater=me||N}F.prototype.isReactComponent={},F.prototype.setState=function(E,D){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,D,"setState")},F.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=F.prototype;function H(E,D,me){this.props=E,this.context=D,this.refs=T,this.updater=me||N}var G=H.prototype=new Y;G.constructor=H,L(G,F.prototype),G.isPureReactComponent=!0;var ne=Array.isArray,ue=Object.prototype.hasOwnProperty,Se={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function Z(E,D,me){var xe,ve={},Re=null,Fe=null;if(D!=null)for(xe in D.ref!==void 0&&(Fe=D.ref),D.key!==void 0&&(Re=""+D.key),D)ue.call(D,xe)&&!O.hasOwnProperty(xe)&&(ve[xe]=D[xe]);var Me=arguments.length-2;if(Me===1)ve.children=me;else if(1>>1,D=I[E];if(0>>1;Es(ve,W))Res(Fe,ve)?(I[E]=Fe,I[Re]=W,E=Re):(I[E]=ve,I[xe]=W,E=xe);else if(Res(Fe,W))I[E]=Fe,I[Re]=W,E=Re;else break e}}return Q}function s(I,Q){var W=I.sortIndex-Q.sortIndex;return W!==0?W:I.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],y=[],x=1,v=null,S=3,N=!1,L=!1,T=!1,F=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(I){for(var Q=l(y);Q!==null;){if(Q.callback===null)u(y);else if(Q.startTime<=I)u(y),Q.sortIndex=Q.expirationTime,i(p,Q);else break;Q=l(y)}}function ne(I){if(T=!1,G(I),!L)if(l(p)!==null)L=!0,he(ue);else{var Q=l(y);Q!==null&&ge(ne,Q.startTime-I)}}function ue(I,Q){L=!1,T&&(T=!1,Y(Z),Z=-1),N=!0;var W=S;try{for(G(Q),v=l(p);v!==null&&(!(v.expirationTime>Q)||I&&!Pe());){var E=v.callback;if(typeof E=="function"){v.callback=null,S=v.priorityLevel;var D=E(v.expirationTime<=Q);Q=n.unstable_now(),typeof D=="function"?v.callback=D:v===l(p)&&u(p),G(Q)}else u(p);v=l(p)}if(v!==null)var me=!0;else{var xe=l(y);xe!==null&&ge(ne,xe.startTime-Q),me=!1}return me}finally{v=null,S=W,N=!1}}var Se=!1,O=null,Z=-1,ee=5,ce=-1;function Pe(){return!(n.unstable_now()-ceI||125E?(I.sortIndex=W,i(y,I),l(p)===null&&I===l(y)&&(T?(Y(Z),Z=-1):T=!0,ge(ne,W-E))):(I.sortIndex=D,i(p,I),L||N||(L=!0,he(ue))),I},n.unstable_shouldYield=Pe,n.unstable_wrapCallback=function(I){var Q=S;return function(){var W=S;S=Q;try{return I.apply(this,arguments)}finally{S=W}}}})(Cs)),Cs}var _d;function om(){return _d||(_d=1,Es.exports=lm()),Es.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zd;function sm(){if(zd)return bt;zd=1;var n=Il(),i=om();function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,x={},v={};function S(e){return p.call(v,e)?!0:p.call(x,e)?!1:y.test(e)?v[e]=!0:(x[e]=!0,!1)}function N(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,t,r,a){if(t===null||typeof t>"u"||N(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.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 T(e,t,r,a,o,d,m){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=m}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){F[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];F[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){F[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){F[e]=new T(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){F[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){F[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){F[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){F[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){F[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y=/[\-:]([a-z])/g;function H(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(Y,H);F[t]=new T(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(Y,H);F[t]=new T(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(Y,H);F[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){F[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),F.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){F[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function G(e,t,r,a){var o=F.hasOwnProperty(t)?F[t]:null;(o!==null?o.type!==0:a||!(2w||o[m]!==d[w]){var j=` +`+o[m].replace(" at new "," at ");return e.displayName&&j.includes("")&&(j=j.replace("",e.displayName)),j}while(1<=m&&0<=w);break}}}finally{me=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?D(e):""}function ve(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=xe(e.type,!1),e;case 11:return e=xe(e.type.render,!1),e;case 1:return e=xe(e.type,!0),e;default:return""}}function Re(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 O:return"Fragment";case Se:return"Portal";case ee:return"Profiler";case Z:return"StrictMode";case fe:return"Suspense";case ie:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Pe:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case pe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ee:return t=e.displayName||null,t!==null?t:Re(e.type)||"Memo";case he:t=e._payload,e=e._init;try{return Re(e(t))}catch{}}return null}function Fe(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 Re(t);case 8:return t===Z?"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 Me(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ae(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vt(e){var t=Ae(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,d.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mn(e){e._valueTracker||(e._valueTracker=vt(e))}function nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=Ae(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function Qt(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 _n(e,t){var r=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ya(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=Me(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rr(e,t){t=t.checked,t!=null&&G(e,"checked",t,!1)}function ci(e,t){rr(e,t);var r=Me(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zn(e,t.type,r):t.hasOwnProperty("defaultValue")&&zn(e,t.type,Me(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function va(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zn(e,t,r){(t!=="number"||Qt(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ln=Array.isArray;function Rr(e,t,r,a){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Nt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pr(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var sn={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},hi=["Webkit","ms","Moz","O"];Object.keys(sn).forEach(function(e){hi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),sn[t]=sn[e]})});function wa(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||sn.hasOwnProperty(e)&&sn[e]?(""+t).trim():t+"px"}function It(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,o=wa(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,o):e[r]=o}}var ka=W({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 Tn(e,t){if(t){if(ka[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(l(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(l(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(l(61))}if(t.style!=null&&typeof t.style!="object")throw Error(l(62))}}function Dn(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 pi=null;function Fn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var br=null,pr=null,ir=null;function Sa(e){if(e=Di(e)){if(typeof br!="function")throw Error(l(280));var t=e.stateNode;t&&(t=Ua(t),br(e.stateNode,e.type,t))}}function mi(e){pr?ir?ir.push(e):ir=[e]:pr=e}function Na(){if(pr){var e=pr,t=ir;if(ir=pr=null,Sa(e),t)for(e=0;e>>=0,e===0?32:31-(_r(e)/gr|0)|0}var yr=64,hn=4194304;function pn(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 ja(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,o=e.suspendedLanes,d=e.pingedLanes,m=r&268435455;if(m!==0){var w=m&~o;w!==0?a=pn(w):(d&=m,d!==0&&(a=pn(d)))}else m=r&~o,m!==0?a=pn(m):d!==0&&(a=pn(d));if(a===0)return 0;if(t!==0&&t!==a&&(t&o)===0&&(o=a&-a,d=t&-t,o>=d||o===16&&(d&4194240)!==0))return t;if((a&4)!==0&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0r;r++)t.push(e);return t}function xi(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$e(t),e[t]=r}function Sh(e,t){var r=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 a=e.eventTimes;for(e=e.expirationTimes;0=Ri),ku=" ",Su=!1;function Nu(e,t){switch(e){case"keyup":return Jh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Un=!1;function qh(e,t){switch(e){case"compositionend":return ju(t);case"keypress":return t.which!==32?null:(Su=!0,ku);case"textInput":return e=t.data,e===ku&&Su?null:e;default:return null}}function Zh(e,t){if(Un)return e==="compositionend"||!to&&Nu(e,t)?(e=mu(),Pa=Ql=Ir=null,Un=!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:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ou(r)}}function _u(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_u(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zu(){for(var e=window,t=Qt();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Qt(e.document)}return t}function io(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 sp(e){var t=zu(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&_u(r.ownerDocument.documentElement,r)){if(a!==null&&io(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,d=Math.min(a.start,o);a=a.end===void 0?d:Math.min(a.end,o),!e.extend&&d>a&&(o=a,a=d,d=o),o=Mu(r,d);var m=Mu(r,a);o&&m&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),d>a?(e.addRange(t),e.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,$n=null,ao=null,Oi=null,lo=!1;function Tu(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;lo||$n==null||$n!==Qt(a)||(a=$n,"selectionStart"in a&&io(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Oi&&bi(Oi,a)||(Oi=a,a=Fa(ao,"onSelect"),0Kn||(e.current=xo[Kn],xo[Kn]=null,Kn--)}function Ve(e,t){Kn++,xo[Kn]=e.current,e.current=t}var Ar={},ht=$r(Ar),Et=$r(!1),gn=Ar;function Yn(e,t){var r=e.type.contextTypes;if(!r)return Ar;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var o={},d;for(d in r)o[d]=t[d];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function $a(){We(Et),We(ht)}function Ju(e,t,r){if(ht.current!==Ar)throw Error(l(168));Ve(ht,t),Ve(Et,r)}function Xu(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var o in a)if(!(o in t))throw Error(l(108,Fe(e)||"Unknown",o));return W({},r,a)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,gn=ht.current,Ve(ht,e),Ve(Et,Et.current),!0}function qu(e,t,r){var a=e.stateNode;if(!a)throw Error(l(169));r?(e=Xu(e,t,gn),a.__reactInternalMemoizedMergedChildContext=e,We(Et),We(ht),Ve(ht,e)):We(Et),Ve(Et,r)}var xr=null,Va=!1,wo=!1;function Zu(e){xr===null?xr=[e]:xr.push(e)}function wp(e){Va=!0,Zu(e)}function Vr(){if(!wo&&xr!==null){wo=!0;var e=0,t=Ue;try{var r=xr;for(Ue=1;e>=m,o-=m,wr=1<<32-$e(t)+o|r<Ne?(ut=ke,ke=null):ut=ke.sibling;var De=U(P,ke,M[Ne],B);if(De===null){ke===null&&(ke=ut);break}e&&ke&&De.alternate===null&&t(P,ke),C=d(De,C,Ne),we===null?se=De:we.sibling=De,we=De,ke=ut}if(Ne===M.length)return r(P,ke),Ye&&vn(P,Ne),se;if(ke===null){for(;NeNe?(ut=ke,ke=null):ut=ke.sibling;var qr=U(P,ke,De.value,B);if(qr===null){ke===null&&(ke=ut);break}e&&ke&&qr.alternate===null&&t(P,ke),C=d(qr,C,Ne),we===null?se=qr:we.sibling=qr,we=qr,ke=ut}if(De.done)return r(P,ke),Ye&&vn(P,Ne),se;if(ke===null){for(;!De.done;Ne++,De=M.next())De=V(P,De.value,B),De!==null&&(C=d(De,C,Ne),we===null?se=De:we.sibling=De,we=De);return Ye&&vn(P,Ne),se}for(ke=a(P,ke);!De.done;Ne++,De=M.next())De=J(ke,P,Ne,De.value,B),De!==null&&(e&&De.alternate!==null&&ke.delete(De.key===null?Ne:De.key),C=d(De,C,Ne),we===null?se=De:we.sibling=De,we=De);return e&&ke.forEach(function(em){return t(P,em)}),Ye&&vn(P,Ne),se}function Ze(P,C,M,B){if(typeof M=="object"&&M!==null&&M.type===O&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case ue:e:{for(var se=M.key,we=C;we!==null;){if(we.key===se){if(se=M.type,se===O){if(we.tag===7){r(P,we.sibling),C=o(we,M.props.children),C.return=P,P=C;break e}}else if(we.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===he&&ac(se)===we.type){r(P,we.sibling),C=o(we,M.props),C.ref=Fi(P,we,M),C.return=P,P=C;break e}r(P,we);break}else t(P,we);we=we.sibling}M.type===O?(C=Cn(M.props.children,P.mode,B,M.key),C.return=P,P=C):(B=yl(M.type,M.key,M.props,null,P.mode,B),B.ref=Fi(P,C,M),B.return=P,P=B)}return m(P);case Se:e:{for(we=M.key;C!==null;){if(C.key===we)if(C.tag===4&&C.stateNode.containerInfo===M.containerInfo&&C.stateNode.implementation===M.implementation){r(P,C.sibling),C=o(C,M.children||[]),C.return=P,P=C;break e}else{r(P,C);break}else t(P,C);C=C.sibling}C=ys(M,P.mode,B),C.return=P,P=C}return m(P);case he:return we=M._init,Ze(P,C,we(M._payload),B)}if(ln(M))return re(P,C,M,B);if(Q(M))return le(P,C,M,B);Ya(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,C!==null&&C.tag===6?(r(P,C.sibling),C=o(C,M),C.return=P,P=C):(r(P,C),C=gs(M,P.mode,B),C.return=P,P=C),m(P)):r(P,C)}return Ze}var Xn=lc(!0),oc=lc(!1),Ga=$r(null),Qa=null,qn=null,Co=null;function Ro(){Co=qn=Qa=null}function Lo(e){var t=Ga.current;We(Ga),e._currentValue=t}function Po(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function Zn(e,t){Qa=e,Co=qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rt=!0),e.firstContext=null)}function At(e){var t=e._currentValue;if(Co!==e)if(e={context:e,memoizedValue:t,next:null},qn===null){if(Qa===null)throw Error(l(308));qn=e,Qa.dependencies={lanes:0,firstContext:e}}else qn=qn.next=e;return t}var xn=null;function bo(e){xn===null?xn=[e]:xn.push(e)}function sc(e,t,r,a){var o=t.interleaved;return o===null?(r.next=r,bo(t)):(r.next=o.next,o.next=r),t.interleaved=r,Sr(e,a)}function Sr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Br=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function uc(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 Nr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wr(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Te&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,Sr(e,r)}return o=a.interleaved,o===null?(t.next=t,bo(a)):(t.next=o.next,o.next=t),a.interleaved=t,Sr(e,r)}function Ja(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Bl(e,r)}}function cc(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var o=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var m={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};d===null?o=d=m:d=d.next=m,r=r.next}while(r!==null);d===null?o=d=t:d=d.next=t}else o=d=t;r={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:d,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Xa(e,t,r,a){var o=e.updateQueue;Br=!1;var d=o.firstBaseUpdate,m=o.lastBaseUpdate,w=o.shared.pending;if(w!==null){o.shared.pending=null;var j=w,z=j.next;j.next=null,m===null?d=z:m.next=z,m=j;var A=e.alternate;A!==null&&(A=A.updateQueue,w=A.lastBaseUpdate,w!==m&&(w===null?A.firstBaseUpdate=z:w.next=z,A.lastBaseUpdate=j))}if(d!==null){var V=o.baseState;m=0,A=z=j=null,w=d;do{var U=w.lane,J=w.eventTime;if((a&U)===U){A!==null&&(A=A.next={eventTime:J,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var re=e,le=w;switch(U=t,J=r,le.tag){case 1:if(re=le.payload,typeof re=="function"){V=re.call(J,V,U);break e}V=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=le.payload,U=typeof re=="function"?re.call(J,V,U):re,U==null)break e;V=W({},V,U);break e;case 2:Br=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,U=o.effects,U===null?o.effects=[w]:U.push(w))}else J={eventTime:J,lane:U,tag:w.tag,payload:w.payload,callback:w.callback,next:null},A===null?(z=A=J,j=V):A=A.next=J,m|=U;if(w=w.next,w===null){if(w=o.shared.pending,w===null)break;U=w,w=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);if(A===null&&(j=V),o.baseState=j,o.firstBaseUpdate=z,o.lastBaseUpdate=A,t=o.shared.interleaved,t!==null){o=t;do m|=o.lane,o=o.next;while(o!==t)}else d===null&&(o.shared.lanes=0);Sn|=m,e.lanes=m,e.memoizedState=V}}function dc(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var a=Do.transition;Do.transition={};try{e(!1),t()}finally{Ue=r,Do.transition=a}}function bc(){return Vt().memoizedState}function jp(e,t,r){var a=Qr(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},Oc(e))Mc(t,r);else if(r=sc(e,t,r,a),r!==null){var o=kt();tr(r,e,a,o),_c(r,t,a)}}function Ep(e,t,r){var a=Qr(e),o={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(Oc(e))Mc(t,o);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,w=d(m,r);if(o.hasEagerState=!0,o.eagerState=w,Jt(w,m)){var j=t.interleaved;j===null?(o.next=o,bo(t)):(o.next=j.next,j.next=o),t.interleaved=o;return}}catch{}finally{}r=sc(e,t,o,a),r!==null&&(o=kt(),tr(r,e,a,o),_c(r,t,a))}}function Oc(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function Mc(e,t){$i=el=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function _c(e,t,r){if((r&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,Bl(e,r)}}var nl={readContext:At,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},Cp={readContext:At,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Sc,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,tl(4194308,4,Ec.bind(null,t,e),r)},useLayoutEffect:function(e,t){return tl(4194308,4,e,t)},useInsertionEffect:function(e,t){return tl(4,2,e,t)},useMemo:function(e,t){var r=sr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=sr();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=jp.bind(null,Qe,e),[a.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:wc,useDebugValue:Vo,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=wc(!1),t=e[0];return e=Np.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=Qe,o=sr();if(Ye){if(r===void 0)throw Error(l(407));r=r()}else{if(r=t(),st===null)throw Error(l(349));(kn&30)!==0||mc(a,t,r)}o.memoizedState=r;var d={value:r,getSnapshot:t};return o.queue=d,Sc(yc.bind(null,a,d,e),[e]),a.flags|=2048,Bi(9,gc.bind(null,a,d,r,t),void 0,null),r},useId:function(){var e=sr(),t=st.identifierPrefix;if(Ye){var r=kr,a=wr;r=(a&~(1<<32-$e(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ai++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=m.createElement(r,{is:a.is}):(e=m.createElement(r),r==="select"&&(m=e,a.multiple?m.multiple=!0:a.size&&(m.size=a.size))):e=m.createElementNS(e,r),e[lr]=t,e[Ti]=a,Zc(e,t,!1,!1),t.stateNode=e;e:{switch(m=Dn(r,a),r){case"dialog":Be("cancel",e),Be("close",e),o=a;break;case"iframe":case"object":case"embed":Be("load",e),o=a;break;case"video":case"audio":for(o=0;oii&&(t.flags|=128,a=!0,Wi(d,!1),t.lanes=4194304)}else{if(!a)if(e=qa(m),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Wi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!Ye)return mt(t),null}else 2*He()-d.renderingStartTime>ii&&r!==1073741824&&(t.flags|=128,a=!0,Wi(d,!1),t.lanes=4194304);d.isBackwards?(m.sibling=t.child,t.child=m):(r=d.last,r!==null?r.sibling=m:t.child=m,d.last=m)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=He(),t.sibling=null,r=Ge.current,Ve(Ge,a?r&1|2:r&1),t):(mt(t),null);case 22:case 23:return hs(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Tt&1073741824)!==0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(l(156,t.tag))}function zp(e,t){switch(So(t),t.tag){case 1:return Ct(t.type)&&$a(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ei(),We(Et),We(ht),To(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return _o(t),null;case 13:if(We(Ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return We(Ge),null;case 4:return ei(),null;case 10:return Lo(t.type._context),null;case 22:case 23:return hs(),null;case 24:return null;default:return null}}var ol=!1,gt=!1,Tp=typeof WeakSet=="function"?WeakSet:Set,q=null;function ri(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){Je(e,t,a)}else r.current=null}function ts(e,t,r){try{r()}catch(a){Je(e,t,a)}}var rd=!1;function Dp(e,t){if(ho=Ra,e=zu(),io(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var o=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var m=0,w=-1,j=-1,z=0,A=0,V=e,U=null;t:for(;;){for(var J;V!==r||o!==0&&V.nodeType!==3||(w=m+o),V!==d||a!==0&&V.nodeType!==3||(j=m+a),V.nodeType===3&&(m+=V.nodeValue.length),(J=V.firstChild)!==null;)U=V,V=J;for(;;){if(V===e)break t;if(U===r&&++z===o&&(w=m),U===d&&++A===a&&(j=m),(J=V.nextSibling)!==null)break;V=U,U=V.parentNode}V=J}r=w===-1||j===-1?null:{start:w,end:j}}else r=null}r=r||{start:0,end:0}}else r=null;for(po={focusedElem:e,selectionRange:r},Ra=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var re=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(re!==null){var le=re.memoizedProps,Ze=re.memoizedState,P=t.stateNode,C=P.getSnapshotBeforeUpdate(t.elementType===t.type?le:qt(t.type,le),Ze);P.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var M=t.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(l(163))}}catch(B){Je(t,t.return,B)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return re=rd,rd=!1,re}function Ki(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var o=a=a.next;do{if((o.tag&e)===e){var d=o.destroy;o.destroy=void 0,d!==void 0&&ts(t,r,d)}o=o.next}while(o!==a)}}function sl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function rs(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function nd(e){var t=e.alternate;t!==null&&(e.alternate=null,nd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lr],delete t[Ti],delete t[vo],delete t[vp],delete t[xp])),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 id(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||id(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 ns(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ha));else if(a!==4&&(e=e.child,e!==null))for(ns(e,t,r),e=e.sibling;e!==null;)ns(e,t,r),e=e.sibling}function is(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(is(e,t,r),e=e.sibling;e!==null;)is(e,t,r),e=e.sibling}var dt=null,Zt=!1;function Kr(e,t,r){for(r=r.child;r!==null;)ld(e,t,r),r=r.sibling}function ld(e,t,r){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(mr,r)}catch{}switch(r.tag){case 5:gt||ri(r,t);case 6:var a=dt,o=Zt;dt=null,Kr(e,t,r),dt=a,Zt=o,dt!==null&&(Zt?(e=dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):dt.removeChild(r.stateNode));break;case 18:dt!==null&&(Zt?(e=dt,r=r.stateNode,e.nodeType===8?yo(e.parentNode,r):e.nodeType===1&&yo(e,r),ji(e)):yo(dt,r.stateNode));break;case 4:a=dt,o=Zt,dt=r.stateNode.containerInfo,Zt=!0,Kr(e,t,r),dt=a,Zt=o;break;case 0:case 11:case 14:case 15:if(!gt&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){o=a=a.next;do{var d=o,m=d.destroy;d=d.tag,m!==void 0&&((d&2)!==0||(d&4)!==0)&&ts(r,t,m),o=o.next}while(o!==a)}Kr(e,t,r);break;case 1:if(!gt&&(ri(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(w){Je(r,t,w)}Kr(e,t,r);break;case 21:Kr(e,t,r);break;case 22:r.mode&1?(gt=(a=gt)||r.memoizedState!==null,Kr(e,t,r),gt=a):Kr(e,t,r);break;default:Kr(e,t,r)}}function od(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Tp),t.forEach(function(a){var o=Wp.bind(null,e,a);r.has(a)||(r.add(a),a.then(o,o))})}}function er(e,t){var r=t.deletions;if(r!==null)for(var a=0;ao&&(o=m),a&=~d}if(a=o,a=He()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Ip(a/1960))-a,10e?16:e,Gr===null)var a=!1;else{if(e=Gr,Gr=null,hl=0,(Te&6)!==0)throw Error(l(331));var o=Te;for(Te|=4,q=e.current;q!==null;){var d=q,m=d.child;if((q.flags&16)!==0){var w=d.deletions;if(w!==null){for(var j=0;jHe()-os?jn(e,0):ls|=r),Pt(e,t)}function wd(e,t){t===0&&((e.mode&1)===0?t=1:(t=hn,hn<<=1,(hn&130023424)===0&&(hn=4194304)));var r=kt();e=Sr(e,t),e!==null&&(xi(e,t,r),Pt(e,r))}function Bp(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wd(e,r)}function Wp(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(l(314))}a!==null&&a.delete(t),wd(e,r)}var kd;kd=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Rt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Rt=!1,Mp(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,Ye&&(t.flags&1048576)!==0&&ec(t,Wa,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;ll(e,t),e=t.pendingProps;var o=Yn(t,ht.current);Zn(t,r),o=Io(null,t,a,e,o,r);var d=Ho();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(a)?(d=!0,Aa(t)):d=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Oo(t),o.updater=il,t.stateNode=o,o._reactInternals=t,Wo(t,a,e,r),t=Qo(null,t,a,!0,d,r)):(t.tag=0,Ye&&d&&ko(t),wt(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(ll(e,t),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=Yp(a),e=qt(a,e),o){case 0:t=Go(null,t,a,e,r);break e;case 1:t=Yc(null,t,a,e,r);break e;case 11:t=Ac(null,t,a,e,r);break e;case 14:t=Vc(null,t,a,qt(a.type,e),r);break e}throw Error(l(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:qt(a,o),Go(e,t,a,o,r);case 1:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:qt(a,o),Yc(e,t,a,o,r);case 3:e:{if(Gc(t),e===null)throw Error(l(387));a=t.pendingProps,d=t.memoizedState,o=d.element,uc(e,t),Xa(t,a,null,r);var m=t.memoizedState;if(a=m.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){o=ti(Error(l(423)),t),t=Qc(e,t,a,r,o);break e}else if(a!==o){o=ti(Error(l(424)),t),t=Qc(e,t,a,r,o);break e}else for(zt=Ur(t.stateNode.containerInfo.firstChild),_t=t,Ye=!0,Xt=null,r=oc(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Jn(),a===o){t=jr(e,t,r);break e}wt(e,t,a,r)}t=t.child}return t;case 5:return fc(t),e===null&&jo(t),a=t.type,o=t.pendingProps,d=e!==null?e.memoizedProps:null,m=o.children,mo(a,o)?m=null:d!==null&&mo(a,d)&&(t.flags|=32),Kc(e,t),wt(e,t,m,r),t.child;case 6:return e===null&&jo(t),null;case 13:return Jc(e,t,r);case 4:return Mo(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Xn(t,null,a,r):wt(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:qt(a,o),Ac(e,t,a,o,r);case 7:return wt(e,t,t.pendingProps,r),t.child;case 8:return wt(e,t,t.pendingProps.children,r),t.child;case 12:return wt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,d=t.memoizedProps,m=o.value,Ve(Ga,a._currentValue),a._currentValue=m,d!==null)if(Jt(d.value,m)){if(d.children===o.children&&!Et.current){t=jr(e,t,r);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var w=d.dependencies;if(w!==null){m=d.child;for(var j=w.firstContext;j!==null;){if(j.context===a){if(d.tag===1){j=Nr(-1,r&-r),j.tag=2;var z=d.updateQueue;if(z!==null){z=z.shared;var A=z.pending;A===null?j.next=j:(j.next=A.next,A.next=j),z.pending=j}}d.lanes|=r,j=d.alternate,j!==null&&(j.lanes|=r),Po(d.return,r,t),w.lanes|=r;break}j=j.next}}else if(d.tag===10)m=d.type===t.type?null:d.child;else if(d.tag===18){if(m=d.return,m===null)throw Error(l(341));m.lanes|=r,w=m.alternate,w!==null&&(w.lanes|=r),Po(m,r,t),m=d.sibling}else m=d.child;if(m!==null)m.return=d;else for(m=d;m!==null;){if(m===t){m=null;break}if(d=m.sibling,d!==null){d.return=m.return,m=d;break}m=m.return}d=m}wt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,Zn(t,r),o=At(o),a=a(o),t.flags|=1,wt(e,t,a,r),t.child;case 14:return a=t.type,o=qt(a,t.pendingProps),o=qt(a.type,o),Vc(e,t,a,o,r);case 15:return Bc(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:qt(a,o),ll(e,t),t.tag=1,Ct(a)?(e=!0,Aa(t)):e=!1,Zn(t,r),Tc(t,a,o),Wo(t,a,o,r),Qo(null,t,a,!0,e,r);case 19:return qc(e,t,r);case 22:return Wc(e,t,r)}throw Error(l(156,t.tag))};function Sd(e,t){return qe(e,t)}function Kp(e,t,r,a){this.tag=e,this.key=r,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,r,a){return new Kp(e,t,r,a)}function ms(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yp(e){if(typeof e=="function")return ms(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pe)return 11;if(e===Ee)return 14}return 2}function Xr(e,t){var r=e.alternate;return r===null?(r=Wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yl(e,t,r,a,o,d){var m=2;if(a=e,typeof e=="function")ms(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case O:return Cn(r.children,o,d,t);case Z:m=8,o|=8;break;case ee:return e=Wt(12,r,t,o|2),e.elementType=ee,e.lanes=d,e;case fe:return e=Wt(13,r,t,o),e.elementType=fe,e.lanes=d,e;case ie:return e=Wt(19,r,t,o),e.elementType=ie,e.lanes=d,e;case ge:return vl(r,o,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:m=10;break e;case Pe:m=9;break e;case pe:m=11;break e;case Ee:m=14;break e;case he:m=16,a=null;break e}throw Error(l(130,e==null?e:typeof e,""))}return t=Wt(m,r,t,o),t.elementType=e,t.type=a,t.lanes=d,t}function Cn(e,t,r,a){return e=Wt(7,e,a,t),e.lanes=r,e}function vl(e,t,r,a){return e=Wt(22,e,a,t),e.elementType=ge,e.lanes=r,e.stateNode={isHidden:!1},e}function gs(e,t,r){return e=Wt(6,e,null,t),e.lanes=r,e}function ys(e,t,r){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gp(e,t,r,a,o){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=Vl(0),this.expirationTimes=Vl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vl(0),this.identifierPrefix=a,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function vs(e,t,r,a,o,d,m,w,j){return e=new Gp(e,t,r,w,j),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Wt(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(d),e}function Qp(e,t,r){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),js.exports=sm(),js.exports}var Dd;function cm(){if(Dd)return El;Dd=1;var n=um();return El.createRoot=n.createRoot,El.hydrateRoot=n.hydrateRoot,El}var dm=cm(),b=Il();const fm=rm(b),hm=tm({__proto__:null,default:fm},[b]);/** + * react-router v7.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */var _f=n=>{throw TypeError(n)},pm=(n,i,l)=>i.has(n)||_f("Cannot "+l),Rs=(n,i,l)=>(pm(n,i,"read from private field"),l?l.call(n):i.get(n)),mm=(n,i,l)=>i.has(n)?_f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,l),Fd="popstate";function gm(n={}){function i(u,s){let{pathname:c,search:f,hash:h}=u.location;return sa("",{pathname:c,search:f,hash:h},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function l(u,s){return typeof s=="string"?s:fr(s)}return vm(i,l,null,n)}function Oe(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function rt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function ym(){return Math.random().toString(36).substring(2,10)}function Id(n,i){return{usr:n.state,key:n.key,idx:i}}function sa(n,i,l=null,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?rn(i):i,state:l,key:i&&i.key||u||ym()}}function fr({pathname:n="/",search:i="",hash:l=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function rn(n){let i={};if(n){let l=n.indexOf("#");l>=0&&(i.hash=n.substring(l),n=n.substring(0,l));let u=n.indexOf("?");u>=0&&(i.search=n.substring(u),n=n.substring(0,u)),n&&(i.pathname=n)}return i}function vm(n,i,l,u={}){let{window:s=document.defaultView,v5Compat:c=!1}=u,f=s.history,h="POP",p=null,y=x();y==null&&(y=0,f.replaceState({...f.state,idx:y},""));function x(){return(f.state||{idx:null}).idx}function v(){h="POP";let F=x(),Y=F==null?null:F-y;y=F,p&&p({action:h,location:T.location,delta:Y})}function S(F,Y){h="PUSH";let H=sa(T.location,F,Y);y=x()+1;let G=Id(H,y),ne=T.createHref(H);try{f.pushState(G,"",ne)}catch(ue){if(ue instanceof DOMException&&ue.name==="DataCloneError")throw ue;s.location.assign(ne)}c&&p&&p({action:h,location:T.location,delta:1})}function N(F,Y){h="REPLACE";let H=sa(T.location,F,Y);y=x();let G=Id(H,y),ne=T.createHref(H);f.replaceState(G,"",ne),c&&p&&p({action:h,location:T.location,delta:0})}function L(F){return zf(F)}let T={get action(){return h},get location(){return n(s,f)},listen(F){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(Fd,v),p=F,()=>{s.removeEventListener(Fd,v),p=null}},createHref(F){return i(s,F)},createURL:L,encodeLocation(F){let Y=L(F);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:S,replace:N,go(F){return f.go(F)}};return T}function zf(n,i=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(l,"No window.location.(origin|href) available to create URL");let u=typeof n=="string"?n:fr(n);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=l+u),new URL(u,l)}var ra,Hd=class{constructor(n){if(mm(this,ra,new Map),n)for(let[i,l]of n)this.set(i,l)}get(n){if(Rs(this,ra).has(n))return Rs(this,ra).get(n);if(n.defaultValue!==void 0)return n.defaultValue;throw new Error("No value found for context")}set(n,i){Rs(this,ra).set(n,i)}};ra=new WeakMap;var xm=new Set(["lazy","caseSensitive","path","id","index","children"]);function wm(n){return xm.has(n)}var km=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function Sm(n){return km.has(n)}function Nm(n){return n.index===!0}function ua(n,i,l=[],u={},s=!1){return n.map((c,f)=>{let h=[...l,String(f)],p=typeof c.id=="string"?c.id:h.join("-");if(Oe(c.index!==!0||!c.children,"Cannot specify children on an index route"),Oe(s||!u[p],`Found a route id collision on id "${p}". Route id's must be globally unique within Data Router usages`),Nm(c)){let y={...c,id:p};return u[p]=Ud(y,i(y)),y}else{let y={...c,id:p,children:void 0};return u[p]=Ud(y,i(y)),c.children&&(y.children=ua(c.children,i,h,u,s)),y}})}function Ud(n,i){return Object.assign(n,{...i,...typeof i.lazy=="object"&&i.lazy!=null?{lazy:{...n.lazy,...i.lazy}}:{}})}function Zr(n,i,l="/"){return na(n,i,l,!1)}function na(n,i,l,u){let s=typeof i=="string"?rn(i):i,c=Yt(s.pathname||"/",l);if(c==null)return null;let f=Tf(n);Em(f);let h=null;for(let p=0;h==null&&p{let x={relativePath:y===void 0?f.path||"":y,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&p)return;Oe(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let v=dr([u,x.relativePath]),S=l.concat(x);f.children&&f.children.length>0&&(Oe(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Tf(f.children,i,S,v,p)),!(f.path==null&&!f.index)&&i.push({path:v,score:Mm(v,f.index),routesMeta:S})};return n.forEach((f,h)=>{var p;if(f.path===""||!((p=f.path)!=null&&p.includes("?")))c(f,h);else for(let y of Df(f.path))c(f,h,!0,y)}),i}function Df(n){let i=n.split("/");if(i.length===0)return[];let[l,...u]=i,s=l.endsWith("?"),c=l.replace(/\?$/,"");if(u.length===0)return s?[c,""]:[c];let f=Df(u.join("/")),h=[];return h.push(...f.map(p=>p===""?c:[c,p].join("/"))),s&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function Em(n){n.sort((i,l)=>i.score!==l.score?l.score-i.score:_m(i.routesMeta.map(u=>u.childrenIndex),l.routesMeta.map(u=>u.childrenIndex)))}var Cm=/^:[\w-]+$/,Rm=3,Lm=2,Pm=1,bm=10,Om=-2,$d=n=>n==="*";function Mm(n,i){let l=n.split("/"),u=l.length;return l.some($d)&&(u+=Om),i&&(u+=Lm),l.filter(s=>!$d(s)).reduce((s,c)=>s+(Cm.test(c)?Rm:c===""?Pm:bm),u)}function _m(n,i){return n.length===i.length&&n.slice(0,-1).every((u,s)=>u===i[s])?n[n.length-1]-i[i.length-1]:0}function zm(n,i,l=!1){let{routesMeta:u}=n,s={},c="/",f=[];for(let h=0;h{if(x==="*"){let L=h[S]||"";f=c.slice(0,c.length-L.length).replace(/(.)\/+$/,"$1")}const N=h[S];return v&&!N?y[x]=void 0:y[x]=(N||"").replace(/%2F/g,"/"),y},{}),pathname:c,pathnameBase:f,pattern:n}}function Tm(n,i=!1,l=!0){rt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p)=>(u.push({paramName:h,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,i?void 0:"i"),u]}function Dm(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return rt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function Yt(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let l=i.endsWith("/")?i.length-1:i.length,u=n.charAt(l);return u&&u!=="/"?null:n.slice(l)||"/"}function Fm({basename:n,pathname:i}){return i==="/"?n:dr([n,i])}var Ff=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ks=n=>Ff.test(n);function Im(n,i="/"){let{pathname:l,search:u="",hash:s=""}=typeof n=="string"?rn(n):n,c;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?c=Ad(l.substring(1),"/"):c=Ad(l,i)):c=i,{pathname:c,search:Um(u),hash:$m(s)}}function Ad(n,i){let l=i.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?l.length>1&&l.pop():s!=="."&&l.push(s)}),l.length>1?l.join("/"):"/"}function Ls(n,i,l,u){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function If(n){return n.filter((i,l)=>l===0||i.route.path&&i.route.path.length>0)}function Ys(n){let i=If(n);return i.map((l,u)=>u===i.length-1?l.pathname:l.pathnameBase)}function Gs(n,i,l,u=!1){let s;typeof n=="string"?s=rn(n):(s={...n},Oe(!s.pathname||!s.pathname.includes("?"),Ls("?","pathname","search",s)),Oe(!s.pathname||!s.pathname.includes("#"),Ls("#","pathname","hash",s)),Oe(!s.search||!s.search.includes("#"),Ls("#","search","hash",s)));let c=n===""||s.pathname==="",f=c?"/":s.pathname,h;if(f==null)h=l;else{let v=i.length-1;if(!u&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),v-=1;s.pathname=S.join("/")}h=v>=0?i[v]:"/"}let p=Im(s,h),y=f&&f!=="/"&&f.endsWith("/"),x=(c||f===".")&&l.endsWith("/");return!p.pathname.endsWith("/")&&(y||x)&&(p.pathname+="/"),p}var dr=n=>n.join("/").replace(/\/\/+/g,"/"),Hm=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Um=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,$m=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,fa=class{constructor(n,i,l,u=!1){this.status=n,this.statusText=i||"",this.internal=u,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function ca(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function ha(n){return n.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Hf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uf(n,i){let l=n;if(typeof l!="string"||!Ff.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let u=l,s=!1;if(Hf)try{let c=new URL(window.location.href),f=l.startsWith("//")?new URL(c.protocol+l):new URL(l),h=Yt(f.pathname,i);f.origin===c.origin&&h!=null?l=h+f.search+f.hash:s=!0}catch{rt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:s,to:l}}var tn=Symbol("Uninstrumented");function Am(n,i){let l={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};n.forEach(s=>s({id:i.id,index:i.index,path:i.path,instrument(c){let f=Object.keys(l);for(let h of f)c[h]&&l[h].push(c[h])}}));let u={};if(typeof i.lazy=="function"&&l.lazy.length>0){let s=si(l.lazy,i.lazy,()=>{});s&&(u.lazy=s)}if(typeof i.lazy=="object"){let s=i.lazy;["middleware","loader","action"].forEach(c=>{let f=s[c],h=l[`lazy.${c}`];if(typeof f=="function"&&h.length>0){let p=si(h,f,()=>{});p&&(u.lazy=Object.assign(u.lazy||{},{[c]:p}))}})}return["loader","action"].forEach(s=>{let c=i[s];if(typeof c=="function"&&l[s].length>0){let f=c[tn]??c,h=si(l[s],f,(...p)=>Vd(p[0]));h&&(s==="loader"&&f.hydrate===!0&&(h.hydrate=!0),h[tn]=f,u[s]=h)}}),i.middleware&&i.middleware.length>0&&l.middleware.length>0&&(u.middleware=i.middleware.map(s=>{let c=s[tn]??s,f=si(l.middleware,c,(...h)=>Vd(h[0]));return f?(f[tn]=c,f):s})),u}function Vm(n,i){let l={navigate:[],fetch:[]};if(i.forEach(u=>u({instrument(s){let c=Object.keys(s);for(let f of c)s[f]&&l[f].push(s[f])}})),l.navigate.length>0){let u=n.navigate[tn]??n.navigate,s=si(l.navigate,u,(...c)=>{let[f,h]=c;return{to:typeof f=="number"||typeof f=="string"?f:f?fr(f):".",...Bd(n,h??{})}});s&&(s[tn]=u,n.navigate=s)}if(l.fetch.length>0){let u=n.fetch[tn]??n.fetch,s=si(l.fetch,u,(...c)=>{let[f,,h,p]=c;return{href:h??".",fetcherKey:f,...Bd(n,p??{})}});s&&(s[tn]=u,n.fetch=s)}return n}function si(n,i,l){return n.length===0?null:async(...u)=>{let s=await $f(n,l(...u),()=>i(...u),n.length-1);if(s.type==="error")throw s.value;return s.value}}async function $f(n,i,l,u){let s=n[u],c;if(s){let f,h=async()=>(f?console.error("You cannot call instrumented handlers more than once"):f=$f(n,i,l,u-1),c=await f,Oe(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await s(h,i)}catch(p){console.error("An instrumentation function threw an error:",p)}f||await h(),await f}else try{c={type:"success",value:await l()}}catch(f){c={type:"error",value:f}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Vd(n){let{request:i,context:l,params:u,unstable_pattern:s}=n;return{request:Bm(i),params:{...u},unstable_pattern:s,context:Wm(l)}}function Bd(n,i){return{currentUrl:fr(n.state.location),..."formMethod"in i?{formMethod:i.formMethod}:{},..."formEncType"in i?{formEncType:i.formEncType}:{},..."formData"in i?{formData:i.formData}:{},..."body"in i?{body:i.body}:{}}}function Bm(n){return{method:n.method,url:n.url,headers:{get:(...i)=>n.headers.get(...i)}}}function Wm(n){if(Ym(n)){let i={...n};return Object.freeze(i),i}else return{get:i=>n.get(i)}}var Km=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ym(n){if(n===null||typeof n!="object")return!1;const i=Object.getPrototypeOf(n);return i===Object.prototype||i===null||Object.getOwnPropertyNames(i).sort().join("\0")===Km}var Af=["POST","PUT","PATCH","DELETE"],Gm=new Set(Af),Qm=["GET",...Af],Jm=new Set(Qm),Vf=new Set([301,302,303,307,308]),Xm=new Set([307,308]),Ps={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qm={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},qi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Zm=n=>({hasErrorBoundary:!!n.hasErrorBoundary}),Bf="remix-router-transitions",Wf=Symbol("ResetLoaderData");function eg(n){const i=n.window?n.window:typeof window<"u"?window:void 0,l=typeof i<"u"&&typeof i.document<"u"&&typeof i.document.createElement<"u";Oe(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let u=n.hydrationRouteProperties||[],s=n.mapRouteProperties||Zm,c=s;if(n.unstable_instrumentations){let k=n.unstable_instrumentations;c=R=>({...s(R),...Am(k.map(_=>_.route).filter(Boolean),R)})}let f={},h=ua(n.routes,c,void 0,f),p,y=n.basename||"/";y.startsWith("/")||(y=`/${y}`);let x=n.dataStrategy||ag,v={...n.future},S=null,N=new Set,L=null,T=null,F=null,Y=n.hydrationData!=null,H=Zr(h,n.history.location,y),G=!1,ne=null,ue;if(H==null&&!n.patchRoutesOnNavigation){let k=Kt(404,{pathname:n.history.location.pathname}),{matches:R,route:_}=Cl(h);ue=!0,H=R,ne={[_.id]:k}}else if(H&&!n.hydrationData&&un(H,h,n.history.location.pathname).active&&(H=null),H)if(H.some(k=>k.route.lazy))ue=!1;else if(!H.some(k=>Qs(k.route)))ue=!0;else{let k=n.hydrationData?n.hydrationData.loaderData:null,R=n.hydrationData?n.hydrationData.errors:null;if(R){let _=H.findIndex($=>R[$.route.id]!==void 0);ue=H.slice(0,_+1).every($=>!Hs($.route,k,R))}else ue=H.every(_=>!Hs(_.route,k,R))}else{ue=!1,H=[];let k=un(null,h,n.history.location.pathname);k.active&&k.matches&&(G=!0,H=k.matches)}let Se,O={historyAction:n.history.action,location:n.history.location,matches:H,initialized:ue,navigation:Ps,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||ne,fetchers:new Map,blockers:new Map},Z="POP",ee=null,ce=!1,Pe,pe=!1,fe=new Map,ie=null,Ee=!1,he=!1,ge=new Set,I=new Map,Q=0,W=-1,E=new Map,D=new Set,me=new Map,xe=new Map,ve=new Set,Re=new Map,Fe,Me=null;function Ae(){if(S=n.history.listen(({action:k,location:R,delta:_})=>{if(Fe){Fe(),Fe=void 0;return}rt(Re.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 $=pr({currentLocation:O.location,nextLocation:R,historyAction:k});if($&&_!=null){let K=new Promise(oe=>{Fe=oe});n.history.go(_*-1),br($,{state:"blocked",location:R,proceed(){br($,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),K.then(()=>n.history.go(_))},reset(){let oe=new Map(O.blockers);oe.set($,qi),nt({blockers:oe})}}),ee==null||ee.resolve(),ee=null;return}return rr(k,R)}),l){Ng(i,fe);let k=()=>jg(i,fe);i.addEventListener("pagehide",k),ie=()=>i.removeEventListener("pagehide",k)}return O.initialized||rr("POP",O.location,{initialHydration:!0}),Se}function vt(){S&&S(),ie&&ie(),N.clear(),Pe&&Pe.abort(),O.fetchers.forEach((k,R)=>hi(R)),O.blockers.forEach((k,R)=>Fn(R))}function Mn(k){return N.add(k),()=>N.delete(k)}function nt(k,R={}){k.matches&&(k.matches=k.matches.map(K=>{let oe=f[K.route.id],ye=K.route;return ye.element!==oe.element||ye.errorElement!==oe.errorElement||ye.hydrateFallbackElement!==oe.hydrateFallbackElement?{...K,route:oe}:K})),O={...O,...k};let _=[],$=[];O.fetchers.forEach((K,oe)=>{K.state==="idle"&&(ve.has(oe)?_.push(oe):$.push(oe))}),ve.forEach(K=>{!O.fetchers.has(K)&&!I.has(K)&&_.push(K)}),[...N].forEach(K=>K(O,{deletedFetchers:_,newErrors:k.errors??null,viewTransitionOpts:R.viewTransitionOpts,flushSync:R.flushSync===!0})),_.forEach(K=>hi(K)),$.forEach(K=>O.fetchers.delete(K))}function Qt(k,R,{flushSync:_}={}){var Ce,de;let $=O.actionData!=null&&O.navigation.formMethod!=null&&yt(O.navigation.formMethod)&&O.navigation.state==="loading"&&((Ce=k.state)==null?void 0:Ce._isRedirect)!==!0,K;R.actionData?Object.keys(R.actionData).length>0?K=R.actionData:K=null:$?K=O.actionData:K=null;let oe=R.loaderData?ef(O.loaderData,R.loaderData,R.matches||[],R.errors):O.loaderData,ye=O.blockers;ye.size>0&&(ye=new Map(ye),ye.forEach((Le,_e)=>ye.set(_e,qi)));let X=Ee?!1:gi(k,R.matches||O.matches),te=ce===!0||O.navigation.formMethod!=null&&yt(O.navigation.formMethod)&&((de=k.state)==null?void 0:de._isRedirect)!==!0;p&&(h=p,p=void 0),Ee||Z==="POP"||(Z==="PUSH"?n.history.push(k,k.state):Z==="REPLACE"&&n.history.replace(k,k.state));let ae;if(Z==="POP"){let Le=fe.get(O.location.pathname);Le&&Le.has(k.pathname)?ae={currentLocation:O.location,nextLocation:k}:fe.has(k.pathname)&&(ae={currentLocation:k,nextLocation:O.location})}else if(pe){let Le=fe.get(O.location.pathname);Le?Le.add(k.pathname):(Le=new Set([k.pathname]),fe.set(O.location.pathname,Le)),ae={currentLocation:O.location,nextLocation:k}}nt({...R,actionData:K,loaderData:oe,historyAction:Z,location:k,initialized:!0,navigation:Ps,revalidation:"idle",restoreScrollPosition:X,preventScrollReset:te,blockers:ye},{viewTransitionOpts:ae,flushSync:_===!0}),Z="POP",ce=!1,pe=!1,Ee=!1,he=!1,ee==null||ee.resolve(),ee=null,Me==null||Me.resolve(),Me=null}async function _n(k,R){if(ee==null||ee.resolve(),ee=null,typeof k=="number"){ee||(ee=af());let _e=ee.promise;return n.history.go(k),_e}let _=Is(O.location,O.matches,y,k,R==null?void 0:R.fromRouteId,R==null?void 0:R.relative),{path:$,submission:K,error:oe}=Wd(!1,_,R),ye=O.location,X=sa(O.location,$,R&&R.state);X={...X,...n.history.encodeLocation(X)};let te=R&&R.replace!=null?R.replace:void 0,ae="PUSH";te===!0?ae="REPLACE":te===!1||K!=null&&yt(K.formMethod)&&K.formAction===O.location.pathname+O.location.search&&(ae="REPLACE");let Ce=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,de=(R&&R.flushSync)===!0,Le=pr({currentLocation:ye,nextLocation:X,historyAction:ae});if(Le){br(Le,{state:"blocked",location:X,proceed(){br(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),_n(k,R)},reset(){let _e=new Map(O.blockers);_e.set(Le,qi),nt({blockers:_e})}});return}await rr(ae,X,{submission:K,pendingError:oe,preventScrollReset:Ce,replace:R&&R.replace,enableViewTransition:R&&R.viewTransition,flushSync:de,callSiteDefaultShouldRevalidate:R&&R.unstable_defaultShouldRevalidate})}function ya(){Me||(Me=af()),on(),nt({revalidation:"loading"});let k=Me.promise;return O.navigation.state==="submitting"?k:O.navigation.state==="idle"?(rr(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),k):(rr(Z||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:pe===!0}),k)}async function rr(k,R,_){Pe&&Pe.abort(),Pe=null,Z=k,Ee=(_&&_.startUninterruptedRevalidation)===!0,Na(O.location,O.matches),ce=(_&&_.preventScrollReset)===!0,pe=(_&&_.enableViewTransition)===!0;let $=p||h,K=_&&_.overrideNavigation,oe=_!=null&&_.initialHydration&&O.matches&&O.matches.length>0&&!G?O.matches:Zr($,R,y),ye=(_&&_.flushSync)===!0;if(oe&&O.initialized&&!he&&hg(O.location,R)&&!(_&&_.submission&&yt(_.submission.formMethod))){Qt(R,{matches:oe},{flushSync:ye});return}let X=un(oe,$,R.pathname);if(X.active&&X.matches&&(oe=X.matches),!oe){let{error:qe,notFoundMatches:lt,route:Ie}=ir(R.pathname);Qt(R,{matches:lt,loaderData:{},errors:{[Ie.id]:qe}},{flushSync:ye});return}Pe=new AbortController;let te=li(n.history,R,Pe.signal,_&&_.submission),ae=n.getContext?await n.getContext():new Hd,Ce;if(_&&_.pendingError)Ce=[en(oe).route.id,{type:"error",error:_.pendingError}];else if(_&&_.submission&&yt(_.submission.formMethod)){let qe=await ci(te,R,_.submission,oe,ae,X.active,_&&_.initialHydration===!0,{replace:_.replace,flushSync:ye});if(qe.shortCircuited)return;if(qe.pendingActionResult){let[lt,Ie]=qe.pendingActionResult;if(Dt(Ie)&&ca(Ie.error)&&Ie.error.status===404){Pe=null,Qt(R,{matches:qe.matches,loaderData:{},errors:{[lt]:Ie.error}});return}}oe=qe.matches||oe,Ce=qe.pendingActionResult,K=bs(R,_.submission),ye=!1,X.active=!1,te=li(n.history,te.url,te.signal)}let{shortCircuited:de,matches:Le,loaderData:_e,errors:et}=await va(te,R,oe,ae,X.active,K,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,ye,Ce,_&&_.callSiteDefaultShouldRevalidate);de||(Pe=null,Qt(R,{matches:Le||oe,...tf(Ce),loaderData:_e,errors:et}))}async function ci(k,R,_,$,K,oe,ye,X={}){on();let te=kg(R,_);if(nt({navigation:te},{flushSync:X.flushSync===!0}),oe){let de=await Or($,R.pathname,k.signal);if(de.type==="aborted")return{shortCircuited:!0};if(de.type==="error"){if(de.partialMatches.length===0){let{matches:_e,route:et}=Cl(h);return{matches:_e,pendingActionResult:[et.id,{type:"error",error:de.error}]}}let Le=en(de.partialMatches).route.id;return{matches:de.partialMatches,pendingActionResult:[Le,{type:"error",error:de.error}]}}else if(de.matches)$=de.matches;else{let{notFoundMatches:Le,error:_e,route:et}=ir(R.pathname);return{matches:Le,pendingActionResult:[et.id,{type:"error",error:_e}]}}}let ae,Ce=bl($,R);if(!Ce.route.action&&!Ce.route.lazy)ae={type:"error",error:Kt(405,{method:k.method,pathname:R.pathname,routeId:Ce.route.id})};else{let de=ui(c,f,k,$,Ce,ye?[]:u,K),Le=await Lr(k,de,K,null);if(ae=Le[Ce.route.id],!ae){for(let _e of $)if(Le[_e.route.id]){ae=Le[_e.route.id];break}}if(k.signal.aborted)return{shortCircuited:!0}}if(Ln(ae)){let de;return X&&X.replace!=null?de=X.replace:de=Xd(ae.response.headers.get("Location"),new URL(k.url),y,n.history)===O.location.pathname+O.location.search,await nr(k,ae,!0,{submission:_,replace:de}),{shortCircuited:!0}}if(Dt(ae)){let de=en($,Ce.route.id);return(X&&X.replace)!==!0&&(Z="PUSH"),{matches:$,pendingActionResult:[de.route.id,ae,Ce.route.id]}}return{matches:$,pendingActionResult:[Ce.route.id,ae]}}async function va(k,R,_,$,K,oe,ye,X,te,ae,Ce,de,Le){let _e=oe||bs(R,ye),et=ye||X||nf(_e),qe=!Ee&&!ae;if(K){if(qe){let $e=zn(de);nt({navigation:_e,...$e!==void 0?{actionData:$e}:{}},{flushSync:Ce})}let ze=await Or(_,R.pathname,k.signal);if(ze.type==="aborted")return{shortCircuited:!0};if(ze.type==="error"){if(ze.partialMatches.length===0){let{matches:_r,route:gr}=Cl(h);return{matches:_r,loaderData:{},errors:{[gr.id]:ze.error}}}let $e=en(ze.partialMatches).route.id;return{matches:ze.partialMatches,loaderData:{},errors:{[$e]:ze.error}}}else if(ze.matches)_=ze.matches;else{let{error:$e,notFoundMatches:_r,route:gr}=ir(R.pathname);return{matches:_r,loaderData:{},errors:{[gr.id]:$e}}}}let lt=p||h,{dsMatches:Ie,revalidatingFetchers:jt}=Kd(k,$,c,f,n.history,O,_,et,R,ae?[]:u,ae===!0,he,ge,ve,me,D,lt,y,n.patchRoutesOnNavigation!=null,de,Le);if(W=++Q,!n.dataStrategy&&!Ie.some(ze=>ze.shouldLoad)&&!Ie.some(ze=>ze.route.middleware&&ze.route.middleware.length>0)&&jt.length===0){let ze=Tn();return Qt(R,{matches:_,loaderData:{},errors:de&&Dt(de[1])?{[de[0]]:de[1].error}:null,...tf(de),...ze?{fetchers:new Map(O.fetchers)}:{}},{flushSync:Ce}),{shortCircuited:!0}}if(qe){let ze={};if(!K){ze.navigation=_e;let $e=zn(de);$e!==void 0&&(ze.actionData=$e)}jt.length>0&&(ze.fetchers=ln(jt)),nt(ze,{flushSync:Ce})}jt.forEach(ze=>{It(ze.key),ze.controller&&I.set(ze.key,ze.controller)});let He=()=>jt.forEach(ze=>It(ze.key));Pe&&Pe.signal.addEventListener("abort",He);let{loaderResults:dn,fetcherResults:Ht}=await fi(Ie,jt,k,$);if(k.signal.aborted)return{shortCircuited:!0};Pe&&Pe.signal.removeEventListener("abort",He),jt.forEach(ze=>I.delete(ze.key));let Ot=Rl(dn);if(Ot)return await nr(k,Ot.result,!0,{replace:te}),{shortCircuited:!0};if(Ot=Rl(Ht),Ot)return D.add(Ot.key),await nr(k,Ot.result,!0,{replace:te}),{shortCircuited:!0};let{loaderData:Mr,errors:fn}=Zd(O,_,dn,de,jt,Ht);ae&&O.errors&&(fn={...O.errors,...fn});let ar=Tn(),mr=Dn(W),xt=ar||mr||jt.length>0;return{matches:_,loaderData:Mr,errors:fn,...xt?{fetchers:new Map(O.fetchers)}:{}}}function zn(k){if(k&&!Dt(k[1]))return{[k[0]]:k[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function ln(k){return k.forEach(R=>{let _=O.fetchers.get(R.key),$=Zi(void 0,_?_.data:void 0);O.fetchers.set(R.key,$)}),new Map(O.fetchers)}async function Rr(k,R,_,$){It(k);let K=($&&$.flushSync)===!0,oe=p||h,ye=Is(O.location,O.matches,y,_,R,$==null?void 0:$.relative),X=Zr(oe,ye,y),te=un(X,oe,ye);if(te.active&&te.matches&&(X=te.matches),!X){Ft(k,R,Kt(404,{pathname:ye}),{flushSync:K});return}let{path:ae,submission:Ce,error:de}=Wd(!0,ye,$);if(de){Ft(k,R,de,{flushSync:K});return}let Le=n.getContext?await n.getContext():new Hd,_e=($&&$.preventScrollReset)===!0;if(Ce&&yt(Ce.formMethod)){await di(k,R,ae,X,Le,te.active,K,_e,Ce,$&&$.unstable_defaultShouldRevalidate);return}me.set(k,{routeId:R,path:ae}),await xa(k,R,ae,X,Le,te.active,K,_e,Ce)}async function di(k,R,_,$,K,oe,ye,X,te,ae){on(),me.delete(k);let Ce=O.fetchers.get(k);Nt(k,Sg(te,Ce),{flushSync:ye});let de=new AbortController,Le=li(n.history,_,de.signal,te);if(oe){let Ke=await Or($,new URL(Le.url).pathname,Le.signal,k);if(Ke.type==="aborted")return;if(Ke.type==="error"){Ft(k,R,Ke.error,{flushSync:ye});return}else if(Ke.matches)$=Ke.matches;else{Ft(k,R,Kt(404,{pathname:_}),{flushSync:ye});return}}let _e=bl($,_);if(!_e.route.action&&!_e.route.lazy){let Ke=Kt(405,{method:te.formMethod,pathname:_,routeId:R});Ft(k,R,Ke,{flushSync:ye});return}I.set(k,de);let et=Q,qe=ui(c,f,Le,$,_e,u,K),lt=await Lr(Le,qe,K,k),Ie=lt[_e.route.id];if(!Ie){for(let Ke of qe)if(lt[Ke.route.id]){Ie=lt[Ke.route.id];break}}if(Le.signal.aborted){I.get(k)===de&&I.delete(k);return}if(ve.has(k)){if(Ln(Ie)||Dt(Ie)){Nt(k,Cr(void 0));return}}else{if(Ln(Ie))if(I.delete(k),W>et){Nt(k,Cr(void 0));return}else return D.add(k),Nt(k,Zi(te)),nr(Le,Ie,!1,{fetcherSubmission:te,preventScrollReset:X});if(Dt(Ie)){Ft(k,R,Ie.error);return}}let jt=O.navigation.location||O.location,He=li(n.history,jt,de.signal),dn=p||h,Ht=O.navigation.state!=="idle"?Zr(dn,O.navigation.location,y):O.matches;Oe(Ht,"Didn't find any matches after fetcher action");let Ot=++Q;E.set(k,Ot);let Mr=Zi(te,Ie.data);O.fetchers.set(k,Mr);let{dsMatches:fn,revalidatingFetchers:ar}=Kd(He,K,c,f,n.history,O,Ht,te,jt,u,!1,he,ge,ve,me,D,dn,y,n.patchRoutesOnNavigation!=null,[_e.route.id,Ie],ae);ar.filter(Ke=>Ke.key!==k).forEach(Ke=>{let yr=Ke.key,hn=O.fetchers.get(yr),pn=Zi(void 0,hn?hn.data:void 0);O.fetchers.set(yr,pn),It(yr),Ke.controller&&I.set(yr,Ke.controller)}),nt({fetchers:new Map(O.fetchers)});let mr=()=>ar.forEach(Ke=>It(Ke.key));de.signal.addEventListener("abort",mr);let{loaderResults:xt,fetcherResults:ze}=await fi(fn,ar,He,K);if(de.signal.aborted)return;if(de.signal.removeEventListener("abort",mr),E.delete(k),I.delete(k),ar.forEach(Ke=>I.delete(Ke.key)),O.fetchers.has(k)){let Ke=Cr(Ie.data);O.fetchers.set(k,Ke)}let $e=Rl(xt);if($e)return nr(He,$e.result,!1,{preventScrollReset:X});if($e=Rl(ze),$e)return D.add($e.key),nr(He,$e.result,!1,{preventScrollReset:X});let{loaderData:_r,errors:gr}=Zd(O,Ht,xt,void 0,ar,ze);Dn(Ot),O.navigation.state==="loading"&&Ot>W?(Oe(Z,"Expected pending action"),Pe&&Pe.abort(),Qt(O.navigation.location,{matches:Ht,loaderData:_r,errors:gr,fetchers:new Map(O.fetchers)})):(nt({errors:gr,loaderData:ef(O.loaderData,_r,Ht,gr),fetchers:new Map(O.fetchers)}),he=!1)}async function xa(k,R,_,$,K,oe,ye,X,te){let ae=O.fetchers.get(k);Nt(k,Zi(te,ae?ae.data:void 0),{flushSync:ye});let Ce=new AbortController,de=li(n.history,_,Ce.signal);if(oe){let Ie=await Or($,new URL(de.url).pathname,de.signal,k);if(Ie.type==="aborted")return;if(Ie.type==="error"){Ft(k,R,Ie.error,{flushSync:ye});return}else if(Ie.matches)$=Ie.matches;else{Ft(k,R,Kt(404,{pathname:_}),{flushSync:ye});return}}let Le=bl($,_);I.set(k,Ce);let _e=Q,et=ui(c,f,de,$,Le,u,K),lt=(await Lr(de,et,K,k))[Le.route.id];if(I.get(k)===Ce&&I.delete(k),!de.signal.aborted){if(ve.has(k)){Nt(k,Cr(void 0));return}if(Ln(lt))if(W>_e){Nt(k,Cr(void 0));return}else{D.add(k),await nr(de,lt,!1,{preventScrollReset:X});return}if(Dt(lt)){Ft(k,R,lt.error);return}Nt(k,Cr(lt.data))}}async function nr(k,R,_,{submission:$,fetcherSubmission:K,preventScrollReset:oe,replace:ye}={}){_||(ee==null||ee.resolve(),ee=null),R.response.headers.has("X-Remix-Revalidate")&&(he=!0);let X=R.response.headers.get("Location");Oe(X,"Expected a Location header on the redirect Response"),X=Xd(X,new URL(k.url),y,n.history);let te=sa(O.location,X,{_isRedirect:!0});if(l){let et=!1;if(R.response.headers.has("X-Remix-Reload-Document"))et=!0;else if(Ks(X)){const qe=zf(X,!0);et=qe.origin!==i.location.origin||Yt(qe.pathname,y)==null}if(et){ye?i.location.replace(X):i.location.assign(X);return}}Pe=null;let ae=ye===!0||R.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ce,formAction:de,formEncType:Le}=O.navigation;!$&&!K&&Ce&&de&&Le&&($=nf(O.navigation));let _e=$||K;if(Xm.has(R.response.status)&&_e&&yt(_e.formMethod))await rr(ae,te,{submission:{..._e,formAction:X},preventScrollReset:oe||ce,enableViewTransition:_?pe:void 0});else{let et=bs(te,$);await rr(ae,te,{overrideNavigation:et,fetcherSubmission:K,preventScrollReset:oe||ce,enableViewTransition:_?pe:void 0})}}async function Lr(k,R,_,$){var ye;let K,oe={};try{K=await og(x,k,R,$,_,!1)}catch(X){return R.filter(te=>te.shouldLoad).forEach(te=>{oe[te.route.id]={type:"error",error:X}}),oe}if(k.signal.aborted)return oe;if(!yt(k.method))for(let X of R){if(((ye=K[X.route.id])==null?void 0:ye.type)==="error")break;!K.hasOwnProperty(X.route.id)&&!O.loaderData.hasOwnProperty(X.route.id)&&(!O.errors||!O.errors.hasOwnProperty(X.route.id))&&X.shouldCallHandler()&&(K[X.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${X.route.id}`)})}for(let[X,te]of Object.entries(K))if(yg(te)){let ae=te.result;oe[X]={type:"redirect",response:dg(ae,k,X,R,y)}}else oe[X]=await cg(te);return oe}async function fi(k,R,_,$){let K=Lr(_,k,$,null),oe=Promise.all(R.map(async te=>{if(te.matches&&te.match&&te.request&&te.controller){let Ce=(await Lr(te.request,te.matches,$,te.key))[te.match.route.id];return{[te.key]:Ce}}else return Promise.resolve({[te.key]:{type:"error",error:Kt(404,{pathname:te.path})}})})),ye=await K,X=(await oe).reduce((te,ae)=>Object.assign(te,ae),{});return{loaderResults:ye,fetcherResults:X}}function on(){he=!0,me.forEach((k,R)=>{I.has(R)&&ge.add(R),It(R)})}function Nt(k,R,_={}){O.fetchers.set(k,R),nt({fetchers:new Map(O.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function Ft(k,R,_,$={}){let K=en(O.matches,R);hi(k),nt({errors:{[K.route.id]:_},fetchers:new Map(O.fetchers)},{flushSync:($&&$.flushSync)===!0})}function Pr(k){return xe.set(k,(xe.get(k)||0)+1),ve.has(k)&&ve.delete(k),O.fetchers.get(k)||qm}function sn(k,R){It(k,R==null?void 0:R.reason),Nt(k,Cr(null))}function hi(k){let R=O.fetchers.get(k);I.has(k)&&!(R&&R.state==="loading"&&E.has(k))&&It(k),me.delete(k),E.delete(k),D.delete(k),ve.delete(k),ge.delete(k),O.fetchers.delete(k)}function wa(k){let R=(xe.get(k)||0)-1;R<=0?(xe.delete(k),ve.add(k)):xe.set(k,R),nt({fetchers:new Map(O.fetchers)})}function It(k,R){let _=I.get(k);_&&(_.abort(R),I.delete(k))}function ka(k){for(let R of k){let _=Pr(R),$=Cr(_.data);O.fetchers.set(R,$)}}function Tn(){let k=[],R=!1;for(let _ of D){let $=O.fetchers.get(_);Oe($,`Expected fetcher: ${_}`),$.state==="loading"&&(D.delete(_),k.push(_),R=!0)}return ka(k),R}function Dn(k){let R=[];for(let[_,$]of E)if($0}function pi(k,R){let _=O.blockers.get(k)||qi;return Re.get(k)!==R&&Re.set(k,R),_}function Fn(k){O.blockers.delete(k),Re.delete(k)}function br(k,R){let _=O.blockers.get(k)||qi;Oe(_.state==="unblocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="proceeding"||_.state==="blocked"&&R.state==="unblocked"||_.state==="proceeding"&&R.state==="unblocked",`Invalid blocker state transition: ${_.state} -> ${R.state}`);let $=new Map(O.blockers);$.set(k,R),nt({blockers:$})}function pr({currentLocation:k,nextLocation:R,historyAction:_}){if(Re.size===0)return;Re.size>1&&rt(!1,"A router only supports one blocker at a time");let $=Array.from(Re.entries()),[K,oe]=$[$.length-1],ye=O.blockers.get(K);if(!(ye&&ye.state==="proceeding")&&oe({currentLocation:k,nextLocation:R,historyAction:_}))return K}function ir(k){let R=Kt(404,{pathname:k}),_=p||h,{matches:$,route:K}=Cl(_);return{notFoundMatches:$,route:K,error:R}}function Sa(k,R,_){if(L=k,F=R,T=_||null,!Y&&O.navigation===Ps){Y=!0;let $=gi(O.location,O.matches);$!=null&&nt({restoreScrollPosition:$})}return()=>{L=null,F=null,T=null}}function mi(k,R){return T&&T(k,R.map($=>jm($,O.loaderData)))||k.key}function Na(k,R){if(L&&F){let _=mi(k,R);L[_]=F()}}function gi(k,R){if(L){let _=mi(k,R),$=L[_];if(typeof $=="number")return $}return null}function un(k,R,_){if(n.patchRoutesOnNavigation)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:na(R,_,y,!0)}}else return{active:!0,matches:na(R,_,y,!0)||[]};return{active:!1,matches:null}}async function Or(k,R,_,$){if(!n.patchRoutesOnNavigation)return{type:"success",matches:k};let K=k;for(;;){let oe=p==null,ye=p||h,X=f;try{await n.patchRoutesOnNavigation({signal:_,path:R,matches:K,fetcherKey:$,patch:(Ce,de)=>{_.aborted||Yd(Ce,de,ye,X,c,!1)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:K}}finally{oe&&!_.aborted&&(h=[...h])}if(_.aborted)return{type:"aborted"};let te=Zr(ye,R,y),ae=null;if(te){if(Object.keys(te[0].params).length===0)return{type:"success",matches:te};if(ae=na(ye,R,y,!0),!(ae&&K.length_.route.id===R[$].route.id)}function cn(k){f={},p=ua(k,c,void 0,f)}function vi(k,R,_=!1){let $=p==null;Yd(k,R,p||h,f,c,_),$&&(h=[...h],nt({}))}return Se={get basename(){return y},get future(){return v},get state(){return O},get routes(){return h},get window(){return i},initialize:Ae,subscribe:Mn,enableScrollRestoration:Sa,navigate:_n,fetch:Rr,revalidate:ya,createHref:k=>n.history.createHref(k),encodeLocation:k=>n.history.encodeLocation(k),getFetcher:Pr,resetFetcher:sn,deleteFetcher:wa,dispose:vt,getBlocker:pi,deleteBlocker:Fn,patchRoutes:vi,_internalFetchControllers:I,_internalSetRoutes:cn,_internalSetStateDoNotUseOrYouWillBreakYourApp(k){nt(k)}},n.unstable_instrumentations&&(Se=Vm(Se,n.unstable_instrumentations.map(k=>k.router).filter(Boolean))),Se}function tg(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function Is(n,i,l,u,s,c){let f,h;if(s){f=[];for(let y of i)if(f.push(y),y.route.id===s){h=y;break}}else f=i,h=i[i.length-1];let p=Gs(u||".",Ys(f),Yt(n.pathname,l)||n.pathname,c==="path");if(u==null&&(p.search=n.search,p.hash=n.hash),(u==null||u===""||u===".")&&h){let y=Xs(p.search);if(h.route.index&&!y)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&y){let x=new URLSearchParams(p.search),v=x.getAll("index");x.delete("index"),v.filter(N=>N).forEach(N=>x.append("index",N));let S=x.toString();p.search=S?`?${S}`:""}}return l!=="/"&&(p.pathname=Fm({basename:l,pathname:p.pathname})),fr(p)}function Wd(n,i,l){if(!l||!tg(l))return{path:i};if(l.formMethod&&!wg(l.formMethod))return{path:i,error:Kt(405,{method:l.formMethod})};let u=()=>({path:i,error:Kt(400,{type:"invalid-body"})}),c=(l.formMethod||"get").toUpperCase(),f=Xf(i);if(l.body!==void 0){if(l.formEncType==="text/plain"){if(!yt(c))return u();let v=typeof l.body=="string"?l.body:l.body instanceof FormData||l.body instanceof URLSearchParams?Array.from(l.body.entries()).reduce((S,[N,L])=>`${S}${N}=${L} +`,""):String(l.body);return{path:i,submission:{formMethod:c,formAction:f,formEncType:l.formEncType,formData:void 0,json:void 0,text:v}}}else if(l.formEncType==="application/json"){if(!yt(c))return u();try{let v=typeof l.body=="string"?JSON.parse(l.body):l.body;return{path:i,submission:{formMethod:c,formAction:f,formEncType:l.formEncType,formData:void 0,json:v,text:void 0}}}catch{return u()}}}Oe(typeof FormData=="function","FormData is not available in this environment");let h,p;if(l.formData)h=$s(l.formData),p=l.formData;else if(l.body instanceof FormData)h=$s(l.body),p=l.body;else if(l.body instanceof URLSearchParams)h=l.body,p=qd(h);else if(l.body==null)h=new URLSearchParams,p=new FormData;else try{h=new URLSearchParams(l.body),p=qd(h)}catch{return u()}let y={formMethod:c,formAction:f,formEncType:l&&l.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(yt(y.formMethod))return{path:i,submission:y};let x=rn(i);return n&&x.search&&Xs(x.search)&&h.append("index",""),x.search=`?${h}`,{path:fr(x),submission:y}}function Kd(n,i,l,u,s,c,f,h,p,y,x,v,S,N,L,T,F,Y,H,G,ne){var Ee;let ue=G?Dt(G[1])?G[1].error:G[1].data:void 0,Se=s.createURL(c.location),O=s.createURL(p),Z;if(x&&c.errors){let he=Object.keys(c.errors)[0];Z=f.findIndex(ge=>ge.route.id===he)}else if(G&&Dt(G[1])){let he=G[0];Z=f.findIndex(ge=>ge.route.id===he)-1}let ee=G?G[1].statusCode:void 0,ce=ee&&ee>=400,Pe={currentUrl:Se,currentParams:((Ee=c.matches[0])==null?void 0:Ee.params)||{},nextUrl:O,nextParams:f[0].params,...h,actionResult:ue,actionStatus:ee},pe=ha(f),fe=f.map((he,ge)=>{let{route:I}=he,Q=null;if(Z!=null&&ge>Z?Q=!1:I.lazy?Q=!0:Qs(I)?x?Q=Hs(I,c.loaderData,c.errors):rg(c.loaderData,c.matches[ge],he)&&(Q=!0):Q=!1,Q!==null)return Us(l,u,n,pe,he,y,i,Q);let W=!1;typeof ne=="boolean"?W=ne:ce?W=!1:(v||Se.pathname+Se.search===O.pathname+O.search||Se.search!==O.search||ng(c.matches[ge],he))&&(W=!0);let E={...Pe,defaultShouldRevalidate:W},D=ia(he,E);return Us(l,u,n,pe,he,y,i,D,E,ne)}),ie=[];return L.forEach((he,ge)=>{if(x||!f.some(ve=>ve.route.id===he.routeId)||N.has(ge))return;let I=c.fetchers.get(ge),Q=I&&I.state!=="idle"&&I.data===void 0,W=Zr(F,he.path,Y);if(!W){if(H&&Q)return;ie.push({key:ge,routeId:he.routeId,path:he.path,matches:null,match:null,request:null,controller:null});return}if(T.has(ge))return;let E=bl(W,he.path),D=new AbortController,me=li(s,he.path,D.signal),xe=null;if(S.has(ge))S.delete(ge),xe=ui(l,u,me,W,E,y,i);else if(Q)v&&(xe=ui(l,u,me,W,E,y,i));else{let ve;typeof ne=="boolean"?ve=ne:ce?ve=!1:ve=v;let Re={...Pe,defaultShouldRevalidate:ve};ia(E,Re)&&(xe=ui(l,u,me,W,E,y,i,Re))}xe&&ie.push({key:ge,routeId:he.routeId,path:he.path,matches:xe,match:E,request:me,controller:D})}),{dsMatches:fe,revalidatingFetchers:ie}}function Qs(n){return n.loader!=null||n.middleware!=null&&n.middleware.length>0}function Hs(n,i,l){if(n.lazy)return!0;if(!Qs(n))return!1;let u=i!=null&&n.id in i,s=l!=null&&l[n.id]!==void 0;return!u&&s?!1:typeof n.loader=="function"&&n.loader.hydrate===!0?!0:!u&&!s}function rg(n,i,l){let u=!i||l.route.id!==i.route.id,s=!n.hasOwnProperty(l.route.id);return u||s}function ng(n,i){let l=n.route.path;return n.pathname!==i.pathname||l!=null&&l.endsWith("*")&&n.params["*"]!==i.params["*"]}function ia(n,i){if(n.route.shouldRevalidate){let l=n.route.shouldRevalidate(i);if(typeof l=="boolean")return l}return i.defaultShouldRevalidate}function Yd(n,i,l,u,s,c){let f;if(n){let y=u[n];Oe(y,`No route found to patch children into: routeId = ${n}`),y.children||(y.children=[]),f=y.children}else f=l;let h=[],p=[];if(i.forEach(y=>{let x=f.find(v=>Kf(y,v));x?p.push({existingRoute:x,newRoute:y}):h.push(y)}),h.length>0){let y=ua(h,s,[n||"_","patch",String((f==null?void 0:f.length)||"0")],u);f.push(...y)}if(c&&p.length>0)for(let y=0;y{var s;return(s=i.children)==null?void 0:s.some(c=>Kf(l,c))}):!1}var Gd=new WeakMap,Yf=({key:n,route:i,manifest:l,mapRouteProperties:u})=>{let s=l[i.id];if(Oe(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let c=s.lazy[n];if(!c)return;let f=Gd.get(s);f||(f={},Gd.set(s,f));let h=f[n];if(h)return h;let p=(async()=>{let y=wm(n),v=s[n]!==void 0&&n!=="hasErrorBoundary";if(y)rt(!y,"Route property "+n+" is not a supported lazy route property. This property will be ignored."),f[n]=Promise.resolve();else if(v)rt(!1,`Route "${s.id}" has a static property "${n}" defined. The lazy property will be ignored.`);else{let S=await c();S!=null&&(Object.assign(s,{[n]:S}),Object.assign(s,u(s)))}typeof s.lazy=="object"&&(s.lazy[n]=void 0,Object.values(s.lazy).every(S=>S===void 0)&&(s.lazy=void 0))})();return f[n]=p,p},Qd=new WeakMap;function ig(n,i,l,u,s){let c=l[n.id];if(Oe(c,"No route found in manifest"),!n.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof n.lazy=="function"){let x=Qd.get(c);if(x)return{lazyRoutePromise:x,lazyHandlerPromise:x};let v=(async()=>{Oe(typeof n.lazy=="function","No lazy route function found");let S=await n.lazy(),N={};for(let L in S){let T=S[L];if(T===void 0)continue;let F=Sm(L),H=c[L]!==void 0&&L!=="hasErrorBoundary";F?rt(!F,"Route property "+L+" is not a supported property to be returned from a lazy route function. This property will be ignored."):H?rt(!H,`Route "${c.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.`):N[L]=T}Object.assign(c,N),Object.assign(c,{...u(c),lazy:void 0})})();return Qd.set(c,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let f=Object.keys(n.lazy),h=[],p;for(let x of f){if(s&&s.includes(x))continue;let v=Yf({key:x,route:n,manifest:l,mapRouteProperties:u});v&&(h.push(v),x===i&&(p=v))}let y=h.length>0?Promise.all(h).then(()=>{}):void 0;return y==null||y.catch(()=>{}),p==null||p.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:p}}async function Jd(n){let i=n.matches.filter(s=>s.shouldLoad),l={};return(await Promise.all(i.map(s=>s.resolve()))).forEach((s,c)=>{l[i[c].route.id]=s}),l}async function ag(n){return n.matches.some(i=>i.route.middleware)?Gf(n,()=>Jd(n)):Jd(n)}function Gf(n,i){return lg(n,i,u=>{if(xg(u))throw u;return u},mg,l);function l(u,s,c){if(c)return Promise.resolve(Object.assign(c.value,{[s]:{type:"error",result:u}}));{let{matches:f}=n,h=Math.min(Math.max(f.findIndex(y=>y.route.id===s),0),Math.max(f.findIndex(y=>y.shouldCallHandler()),0)),p=en(f,f[h].route.id).route.id;return Promise.resolve({[p]:{type:"error",result:u}})}}}async function lg(n,i,l,u,s){let{matches:c,request:f,params:h,context:p,unstable_pattern:y}=n,x=c.flatMap(S=>S.route.middleware?S.route.middleware.map(N=>[S.route.id,N]):[]);return await Qf({request:f,params:h,context:p,unstable_pattern:y},x,i,l,u,s)}async function Qf(n,i,l,u,s,c,f=0){let{request:h}=n;if(h.signal.aborted)throw h.signal.reason??new Error(`Request aborted: ${h.method} ${h.url}`);let p=i[f];if(!p)return await l();let[y,x]=p,v,S=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await Qf(n,i,l,u,s,c,f+1)},v.value}catch(N){return v={value:await c(N,y,v)},v.value}};try{let N=await x(n,S),L=N!=null?u(N):void 0;return s(L)?L:v?L??v.value:(v={value:await S()},v.value)}catch(N){return await c(N,y,v)}}function Jf(n,i,l,u,s){let c=Yf({key:"middleware",route:u.route,manifest:i,mapRouteProperties:n}),f=ig(u.route,yt(l.method)?"action":"loader",i,n,s);return{middleware:c,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function Us(n,i,l,u,s,c,f,h,p=null,y){let x=!1,v=Jf(n,i,l,s,c);return{...s,_lazyPromises:v,shouldLoad:h,shouldRevalidateArgs:p,shouldCallHandler(S){return x=!0,p?typeof y=="boolean"?ia(s,{...p,defaultShouldRevalidate:y}):typeof S=="boolean"?ia(s,{...p,defaultShouldRevalidate:S}):ia(s,p):h},resolve(S){let{lazy:N,loader:L,middleware:T}=s.route,F=x||h||S&&!yt(l.method)&&(N||L),Y=T&&T.length>0&&!L&&!N;return F&&(yt(l.method)||!Y)?sg({request:l,unstable_pattern:u,match:s,lazyHandlerPromise:v==null?void 0:v.handler,lazyRoutePromise:v==null?void 0:v.route,handlerOverride:S,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function ui(n,i,l,u,s,c,f,h=null){return u.map(p=>p.route.id!==s.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:h,shouldCallHandler:()=>!1,_lazyPromises:Jf(n,i,l,p,c),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Us(n,i,l,ha(u),p,c,f,!0,h))}async function og(n,i,l,u,s,c){l.some(y=>{var x;return(x=y._lazyPromises)==null?void 0:x.middleware})&&await Promise.all(l.map(y=>{var x;return(x=y._lazyPromises)==null?void 0:x.middleware}));let f={request:i,unstable_pattern:ha(l),params:l[0].params,context:s,matches:l},p=await n({...f,fetcherKey:u,runClientMiddleware:y=>{let x=f;return Gf(x,()=>y({...x,fetcherKey:u,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(l.flatMap(y=>{var x,v;return[(x=y._lazyPromises)==null?void 0:x.handler,(v=y._lazyPromises)==null?void 0:v.route]}))}catch{}return p}async function sg({request:n,unstable_pattern:i,match:l,lazyHandlerPromise:u,lazyRoutePromise:s,handlerOverride:c,scopedContext:f}){let h,p,y=yt(n.method),x=y?"action":"loader",v=S=>{let N,L=new Promise((Y,H)=>N=H);p=()=>N(),n.signal.addEventListener("abort",p);let T=Y=>typeof S!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${x}" [routeId: ${l.route.id}]`)):S({request:n,unstable_pattern:i,params:l.params,context:f},...Y!==void 0?[Y]:[]),F=(async()=>{try{return{type:"data",result:await(c?c(H=>T(H)):T())}}catch(Y){return{type:"error",result:Y}}})();return Promise.race([F,L])};try{let S=y?l.route.action:l.route.loader;if(u||s)if(S){let N,[L]=await Promise.all([v(S).catch(T=>{N=T}),u,s]);if(N!==void 0)throw N;h=L}else{await u;let N=y?l.route.action:l.route.loader;if(N)[h]=await Promise.all([v(N),s]);else if(x==="action"){let L=new URL(n.url),T=L.pathname+L.search;throw Kt(405,{method:n.method,pathname:T,routeId:l.route.id})}else return{type:"data",result:void 0}}else if(S)h=await v(S);else{let N=new URL(n.url),L=N.pathname+N.search;throw Kt(404,{pathname:L})}}catch(S){return{type:"error",result:S}}finally{p&&n.signal.removeEventListener("abort",p)}return h}async function ug(n){let i=n.headers.get("Content-Type");return i&&/\bapplication\/json\b/.test(i)?n.body==null?null:n.json():n.text()}async function cg(n){var u,s,c,f,h;let{result:i,type:l}=n;if(Js(i)){let p;try{p=await ug(i)}catch(y){return{type:"error",error:y}}return l==="error"?{type:"error",error:new fa(i.status,i.statusText,p),statusCode:i.status,headers:i.headers}:{type:"data",data:p,statusCode:i.status,headers:i.headers}}return l==="error"?rf(i)?i.data instanceof Error?{type:"error",error:i.data,statusCode:(u=i.init)==null?void 0:u.status,headers:(s=i.init)!=null&&s.headers?new Headers(i.init.headers):void 0}:{type:"error",error:pg(i),statusCode:ca(i)?i.status:void 0,headers:(c=i.init)!=null&&c.headers?new Headers(i.init.headers):void 0}:{type:"error",error:i,statusCode:ca(i)?i.status:void 0}:rf(i)?{type:"data",data:i.data,statusCode:(f=i.init)==null?void 0:f.status,headers:(h=i.init)!=null&&h.headers?new Headers(i.init.headers):void 0}:{type:"data",data:i}}function dg(n,i,l,u,s){let c=n.headers.get("Location");if(Oe(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ks(c)){let f=u.slice(0,u.findIndex(h=>h.route.id===l)+1);c=Is(new URL(i.url),f,s,c),n.headers.set("Location",c)}return n}function Xd(n,i,l,u){let s=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(Ks(n)){let c=n,f=c.startsWith("//")?new URL(i.protocol+c):new URL(c);if(s.includes(f.protocol))throw new Error("Invalid redirect location");let h=Yt(f.pathname,l)!=null;if(f.origin===i.origin&&h)return f.pathname+f.search+f.hash}try{let c=u.createURL(n);if(s.includes(c.protocol))throw new Error("Invalid redirect location")}catch{}return n}function li(n,i,l,u){let s=n.createURL(Xf(i)).toString(),c={signal:l};if(u&&yt(u.formMethod)){let{formMethod:f,formEncType:h}=u;c.method=f.toUpperCase(),h==="application/json"?(c.headers=new Headers({"Content-Type":h}),c.body=JSON.stringify(u.json)):h==="text/plain"?c.body=u.text:h==="application/x-www-form-urlencoded"&&u.formData?c.body=$s(u.formData):c.body=u.formData}return new Request(s,c)}function $s(n){let i=new URLSearchParams;for(let[l,u]of n.entries())i.append(l,typeof u=="string"?u:u.name);return i}function qd(n){let i=new FormData;for(let[l,u]of n.entries())i.append(l,u);return i}function fg(n,i,l,u=!1,s=!1){let c={},f=null,h,p=!1,y={},x=l&&Dt(l[1])?l[1].error:void 0;return n.forEach(v=>{if(!(v.route.id in i))return;let S=v.route.id,N=i[S];if(Oe(!Ln(N),"Cannot handle redirect results in processLoaderData"),Dt(N)){let L=N.error;if(x!==void 0&&(L=x,x=void 0),f=f||{},s)f[S]=L;else{let T=en(n,S);f[T.route.id]==null&&(f[T.route.id]=L)}u||(c[S]=Wf),p||(p=!0,h=ca(N.error)?N.error.status:500),N.headers&&(y[S]=N.headers)}else c[S]=N.data,N.statusCode&&N.statusCode!==200&&!p&&(h=N.statusCode),N.headers&&(y[S]=N.headers)}),x!==void 0&&l&&(f={[l[0]]:x},l[2]&&(c[l[2]]=void 0)),{loaderData:c,errors:f,statusCode:h||200,loaderHeaders:y}}function Zd(n,i,l,u,s,c){let{loaderData:f,errors:h}=fg(i,l,u);return s.filter(p=>!p.matches||p.matches.some(y=>y.shouldLoad)).forEach(p=>{let{key:y,match:x,controller:v}=p;if(v&&v.signal.aborted)return;let S=c[y];if(Oe(S,"Did not find corresponding fetcher result"),Dt(S)){let N=en(n.matches,x==null?void 0:x.route.id);h&&h[N.route.id]||(h={...h,[N.route.id]:S.error}),n.fetchers.delete(y)}else if(Ln(S))Oe(!1,"Unhandled fetcher revalidation redirect");else{let N=Cr(S.data);n.fetchers.set(y,N)}}),{loaderData:f,errors:h}}function ef(n,i,l,u){let s=Object.entries(i).filter(([,c])=>c!==Wf).reduce((c,[f,h])=>(c[f]=h,c),{});for(let c of l){let f=c.route.id;if(!i.hasOwnProperty(f)&&n.hasOwnProperty(f)&&c.route.loader&&(s[f]=n[f]),u&&u.hasOwnProperty(f))break}return s}function tf(n){return n?Dt(n[1])?{actionData:{}}:{actionData:{[n[0]]:n[1].data}}:{}}function en(n,i){return(i?n.slice(0,n.findIndex(u=>u.route.id===i)+1):[...n]).reverse().find(u=>u.route.hasErrorBoundary===!0)||n[0]}function Cl(n){let i=n.length===1?n[0]:n.find(l=>l.index||!l.path||l.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:i}],route:i}}function Kt(n,{pathname:i,routeId:l,method:u,type:s,message:c}={}){let f="Unknown Server Error",h="Unknown @remix-run/router error";return n===400?(f="Bad Request",u&&i&&l?h=`You made a ${u} request to "${i}" but did not provide a \`loader\` for route "${l}", so there is no way to handle the request.`:s==="invalid-body"&&(h="Unable to encode submission body")):n===403?(f="Forbidden",h=`Route "${l}" does not match URL "${i}"`):n===404?(f="Not Found",h=`No route matches URL "${i}"`):n===405&&(f="Method Not Allowed",u&&i&&l?h=`You made a ${u.toUpperCase()} request to "${i}" but did not provide an \`action\` for route "${l}", so there is no way to handle the request.`:u&&(h=`Invalid request method "${u.toUpperCase()}"`)),new fa(n||500,f,new Error(h),!0)}function Rl(n){let i=Object.entries(n);for(let l=i.length-1;l>=0;l--){let[u,s]=i[l];if(Ln(s))return{key:u,result:s}}}function Xf(n){let i=typeof n=="string"?rn(n):n;return fr({...i,hash:""})}function hg(n,i){return n.pathname!==i.pathname||n.search!==i.search?!1:n.hash===""?i.hash!=="":n.hash===i.hash?!0:i.hash!==""}function pg(n){var i,l;return new fa(((i=n.init)==null?void 0:i.status)??500,((l=n.init)==null?void 0:l.statusText)??"Internal Server Error",n.data)}function mg(n){return n!=null&&typeof n=="object"&&Object.entries(n).every(([i,l])=>typeof i=="string"&&gg(l))}function gg(n){return n!=null&&typeof n=="object"&&"type"in n&&"result"in n&&(n.type==="data"||n.type==="error")}function yg(n){return Js(n.result)&&Vf.has(n.result.status)}function Dt(n){return n.type==="error"}function Ln(n){return(n&&n.type)==="redirect"}function rf(n){return typeof n=="object"&&n!=null&&"type"in n&&"data"in n&&"init"in n&&n.type==="DataWithResponseInit"}function Js(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function vg(n){return Vf.has(n)}function xg(n){return Js(n)&&vg(n.status)&&n.headers.has("Location")}function wg(n){return Jm.has(n.toUpperCase())}function yt(n){return Gm.has(n.toUpperCase())}function Xs(n){return new URLSearchParams(n).getAll("index").some(i=>i==="")}function bl(n,i){let l=typeof i=="string"?rn(i).search:i.search;if(n[n.length-1].route.index&&Xs(l||""))return n[n.length-1];let u=If(n);return u[u.length-1]}function nf(n){let{formMethod:i,formAction:l,formEncType:u,text:s,formData:c,json:f}=n;if(!(!i||!l||!u)){if(s!=null)return{formMethod:i,formAction:l,formEncType:u,formData:void 0,json:void 0,text:s};if(c!=null)return{formMethod:i,formAction:l,formEncType:u,formData:c,json:void 0,text:void 0};if(f!==void 0)return{formMethod:i,formAction:l,formEncType:u,formData:void 0,json:f,text:void 0}}}function bs(n,i){return i?{state:"loading",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function kg(n,i){return{state:"submitting",location:n,formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text}}function Zi(n,i){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function Sg(n,i){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:i?i.data:void 0}}function Cr(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function Ng(n,i){try{let l=n.sessionStorage.getItem(Bf);if(l){let u=JSON.parse(l);for(let[s,c]of Object.entries(u||{}))c&&Array.isArray(c)&&i.set(s,new Set(c||[]))}}catch{}}function jg(n,i){if(i.size>0){let l={};for(let[u,s]of i)l[u]=[...s];try{n.sessionStorage.setItem(Bf,JSON.stringify(l))}catch(u){rt(!1,`Failed to save applied view transitions in sessionStorage (${u}).`)}}}function af(){let n,i,l=new Promise((u,s)=>{n=async c=>{u(c);try{await l}catch{}},i=async c=>{s(c);try{await l}catch{}}});return{promise:l,resolve:n,reject:i}}var On=b.createContext(null);On.displayName="DataRouter";var pa=b.createContext(null);pa.displayName="DataRouterState";var qf=b.createContext(!1);function Eg(){return b.useContext(qf)}var qs=b.createContext({isTransitioning:!1});qs.displayName="ViewTransition";var Zf=b.createContext(new Map);Zf.displayName="Fetchers";var Cg=b.createContext(null);Cg.displayName="Await";var Gt=b.createContext(null);Gt.displayName="Navigation";var Hl=b.createContext(null);Hl.displayName="Location";var hr=b.createContext({outlet:null,matches:[],isDataRoute:!1});hr.displayName="Route";var Zs=b.createContext(null);Zs.displayName="RouteError";var eh="REACT_ROUTER_ERROR",Rg="REDIRECT",Lg="ROUTE_ERROR_RESPONSE";function Pg(n){if(n.startsWith(`${eh}:${Rg}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function bg(n){if(n.startsWith(`${eh}:${Lg}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new fa(i.status,i.statusText,i.data)}catch{}}function Og(n,{relative:i}={}){Oe(ma(),"useHref() may be used only in the context of a component.");let{basename:l,navigator:u}=b.useContext(Gt),{hash:s,pathname:c,search:f}=ga(n,{relative:i}),h=c;return l!=="/"&&(h=c==="/"?l:dr([l,c])),u.createHref({pathname:h,search:f,hash:s})}function ma(){return b.useContext(Hl)!=null}function nn(){return Oe(ma(),"useLocation() may be used only in the context of a component."),b.useContext(Hl).location}var th="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rh(n){b.useContext(Gt).static||b.useLayoutEffect(n)}function Mg(){let{isDataRoute:n}=b.useContext(hr);return n?Yg():_g()}function _g(){Oe(ma(),"useNavigate() may be used only in the context of a component.");let n=b.useContext(On),{basename:i,navigator:l}=b.useContext(Gt),{matches:u}=b.useContext(hr),{pathname:s}=nn(),c=JSON.stringify(Ys(u)),f=b.useRef(!1);return rh(()=>{f.current=!0}),b.useCallback((p,y={})=>{if(rt(f.current,th),!f.current)return;if(typeof p=="number"){l.go(p);return}let x=Gs(p,JSON.parse(c),s,y.relative==="path");n==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:dr([i,x.pathname])),(y.replace?l.replace:l.push)(x,y.state,y)},[i,l,c,s,n])}var zg=b.createContext(null);function Tg(n){let i=b.useContext(hr).outlet;return b.useMemo(()=>i&&b.createElement(zg.Provider,{value:n},i),[i,n])}function ga(n,{relative:i}={}){let{matches:l}=b.useContext(hr),{pathname:u}=nn(),s=JSON.stringify(Ys(l));return b.useMemo(()=>Gs(n,JSON.parse(s),u,i==="path"),[n,s,u,i])}function Dg(n,i,l,u,s){Oe(ma(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=b.useContext(Gt),{matches:f}=b.useContext(hr),h=f[f.length-1],p=h?h.params:{},y=h?h.pathname:"/",x=h?h.pathnameBase:"/",v=h&&h.route;{let H=v&&v.path||"";ih(y,!v||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${y}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. + +Please change the parent to .`)}let S=nn(),N;N=S;let L=N.pathname||"/",T=L;if(x!=="/"){let H=x.replace(/^\//,"").split("/");T="/"+L.replace(/^\//,"").split("/").slice(H.length).join("/")}let F=Zr(n,{pathname:T});return rt(v||F!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),rt(F==null||F[F.length-1].route.element!==void 0||F[F.length-1].route.Component!==void 0||F[F.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),$g(F&&F.map(H=>Object.assign({},H,{params:Object.assign({},p,H.params),pathname:dr([x,c.encodeLocation?c.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?x:dr([x,c.encodeLocation?c.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),f,l,u,s)}function Fg(){let n=Kg(),i=ca(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:u},c={padding:"2px 4px",backgroundColor:u},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:c},"ErrorBoundary")," or"," ",b.createElement("code",{style:c},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},i),l?b.createElement("pre",{style:s},l):null,f)}var Ig=b.createElement(Fg,null),nh=class extends b.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const l=bg(n.digest);l&&(n=l)}let i=n!==void 0?b.createElement(hr.Provider,{value:this.props.routeContext},b.createElement(Zs.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?b.createElement(Hg,{error:n},i):i}};nh.contextType=qf;var Os=new WeakMap;function Hg({children:n,error:i}){let{basename:l}=b.useContext(Gt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=Pg(i.digest);if(u){let s=Os.get(i);if(s)throw s;let c=Uf(u.location,l);if(Hf&&!Os.get(i))if(c.isExternal||u.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:u.replace}));throw Os.set(i,f),f}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function Ug({routeContext:n,match:i,children:l}){let u=b.useContext(On);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),b.createElement(hr.Provider,{value:n},l)}function $g(n,i=[],l=null,u=null,s=null){if(n==null){if(!l)return null;if(l.errors)n=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)n=l.matches;else return null}let c=n,f=l==null?void 0:l.errors;if(f!=null){let x=c.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Oe(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let h=!1,p=-1;if(l)for(let x=0;x=0?c=c.slice(0,p+1):c=[c[0]];break}}}let y=l&&u?(x,v)=>{var S,N;u(x,{location:l.location,params:((N=(S=l.matches)==null?void 0:S[0])==null?void 0:N.params)??{},unstable_pattern:ha(l.matches),errorInfo:v})}:void 0;return c.reduceRight((x,v,S)=>{let N,L=!1,T=null,F=null;l&&(N=f&&v.route.id?f[v.route.id]:void 0,T=v.route.errorElement||Ig,h&&(p<0&&S===0?(ih("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),L=!0,F=null):p===S&&(L=!0,F=v.route.hydrateFallbackElement||null)));let Y=i.concat(c.slice(0,S+1)),H=()=>{let G;return N?G=T:L?G=F:v.route.Component?G=b.createElement(v.route.Component,null):v.route.element?G=v.route.element:G=x,b.createElement(Ug,{match:v,routeContext:{outlet:x,matches:Y,isDataRoute:l!=null},children:G})};return l&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?b.createElement(nh,{location:l.location,revalidation:l.revalidation,component:T,error:N,children:H(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:y}):H()},null)}function eu(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ag(n){let i=b.useContext(On);return Oe(i,eu(n)),i}function Vg(n){let i=b.useContext(pa);return Oe(i,eu(n)),i}function Bg(n){let i=b.useContext(hr);return Oe(i,eu(n)),i}function tu(n){let i=Bg(n),l=i.matches[i.matches.length-1];return Oe(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function Wg(){return tu("useRouteId")}function Kg(){var u;let n=b.useContext(Zs),i=Vg("useRouteError"),l=tu("useRouteError");return n!==void 0?n:(u=i.errors)==null?void 0:u[l]}function Yg(){let{router:n}=Ag("useNavigate"),i=tu("useNavigate"),l=b.useRef(!1);return rh(()=>{l.current=!0}),b.useCallback(async(s,c={})=>{rt(l.current,th),l.current&&(typeof s=="number"?await n.navigate(s):await n.navigate(s,{fromRouteId:i,...c}))},[n,i])}var lf={};function ih(n,i,l){!i&&!lf[n]&&(lf[n]=!0,rt(!1,l))}var of={};function sf(n,i){!n&&!of[i]&&(of[i]=!0,console.warn(i))}var Gg="useOptimistic",uf=hm[Gg],Qg=()=>{};function Jg(n){return uf?uf(n):[n,Qg]}function Xg(n){let i={hasErrorBoundary:n.hasErrorBoundary||n.ErrorBoundary!=null||n.errorElement!=null};return n.Component&&(n.element&&rt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(i,{element:b.createElement(n.Component),Component:void 0})),n.HydrateFallback&&(n.hydrateFallbackElement&&rt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(i,{hydrateFallbackElement:b.createElement(n.HydrateFallback),HydrateFallback:void 0})),n.ErrorBoundary&&(n.errorElement&&rt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(i,{errorElement:b.createElement(n.ErrorBoundary),ErrorBoundary:void 0})),i}var qg=["HydrateFallback","hydrateFallbackElement"],Zg=class{constructor(){this.status="pending",this.promise=new Promise((n,i)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",i(l))}})}};function ey({router:n,flushSync:i,onError:l,unstable_useTransitions:u}){u=Eg()||u;let[c,f]=b.useState(n.state),[h,p]=Jg(c),[y,x]=b.useState(),[v,S]=b.useState({isTransitioning:!1}),[N,L]=b.useState(),[T,F]=b.useState(),[Y,H]=b.useState(),G=b.useRef(new Map),ne=b.useCallback((Z,{deletedFetchers:ee,newErrors:ce,flushSync:Pe,viewTransitionOpts:pe})=>{ce&&l&&Object.values(ce).forEach(ie=>{var Ee;return l(ie,{location:Z.location,params:((Ee=Z.matches[0])==null?void 0:Ee.params)??{},unstable_pattern:ha(Z.matches)})}),Z.fetchers.forEach((ie,Ee)=>{ie.data!==void 0&&G.current.set(Ee,ie.data)}),ee.forEach(ie=>G.current.delete(ie)),sf(Pe===!1||i!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let fe=n.window!=null&&n.window.document!=null&&typeof n.window.document.startViewTransition=="function";if(sf(pe==null||fe,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!pe||!fe){i&&Pe?i(()=>f(Z)):u===!1?f(Z):b.startTransition(()=>{u===!0&&p(ie=>cf(ie,Z)),f(Z)});return}if(i&&Pe){i(()=>{T&&(N==null||N.resolve(),T.skipTransition()),S({isTransitioning:!0,flushSync:!0,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation})});let ie=n.window.document.startViewTransition(()=>{i(()=>f(Z))});ie.finished.finally(()=>{i(()=>{L(void 0),F(void 0),x(void 0),S({isTransitioning:!1})})}),i(()=>F(ie));return}T?(N==null||N.resolve(),T.skipTransition(),H({state:Z,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation})):(x(Z),S({isTransitioning:!0,flushSync:!1,currentLocation:pe.currentLocation,nextLocation:pe.nextLocation}))},[n.window,i,T,N,u,p,l]);b.useLayoutEffect(()=>n.subscribe(ne),[n,ne]),b.useEffect(()=>{v.isTransitioning&&!v.flushSync&&L(new Zg)},[v]),b.useEffect(()=>{if(N&&y&&n.window){let Z=y,ee=N.promise,ce=n.window.document.startViewTransition(async()=>{u===!1?f(Z):b.startTransition(()=>{u===!0&&p(Pe=>cf(Pe,Z)),f(Z)}),await ee});ce.finished.finally(()=>{L(void 0),F(void 0),x(void 0),S({isTransitioning:!1})}),F(ce)}},[y,N,n.window,u,p]),b.useEffect(()=>{N&&y&&h.location.key===y.location.key&&N.resolve()},[N,T,h.location,y]),b.useEffect(()=>{!v.isTransitioning&&Y&&(x(Y.state),S({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}),H(void 0))},[v.isTransitioning,Y]);let ue=b.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Z=>n.navigate(Z),push:(Z,ee,ce)=>n.navigate(Z,{state:ee,preventScrollReset:ce==null?void 0:ce.preventScrollReset}),replace:(Z,ee,ce)=>n.navigate(Z,{replace:!0,state:ee,preventScrollReset:ce==null?void 0:ce.preventScrollReset})}),[n]),Se=n.basename||"/",O=b.useMemo(()=>({router:n,navigator:ue,static:!1,basename:Se,onError:l}),[n,ue,Se,l]);return b.createElement(b.Fragment,null,b.createElement(On.Provider,{value:O},b.createElement(pa.Provider,{value:h},b.createElement(Zf.Provider,{value:G.current},b.createElement(qs.Provider,{value:v},b.createElement(iy,{basename:Se,location:h.location,navigationType:h.historyAction,navigator:ue,unstable_useTransitions:u},b.createElement(ty,{routes:n.routes,future:n.future,state:h,onError:l})))))),null)}function cf(n,i){return{...n,navigation:i.navigation.state!=="idle"?i.navigation:n.navigation,revalidation:i.revalidation!=="idle"?i.revalidation:n.revalidation,actionData:i.navigation.state!=="submitting"?i.actionData:n.actionData,fetchers:i.fetchers}}var ty=b.memo(ry);function ry({routes:n,future:i,state:l,onError:u}){return Dg(n,void 0,l,u,i)}function ny(n){return Tg(n.context)}function iy({basename:n="/",children:i=null,location:l,navigationType:u="POP",navigator:s,static:c=!1,unstable_useTransitions:f}){Oe(!ma(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=b.useMemo(()=>({basename:h,navigator:s,static:c,unstable_useTransitions:f,future:{}}),[h,s,c,f]);typeof l=="string"&&(l=rn(l));let{pathname:y="/",search:x="",hash:v="",state:S=null,key:N="default"}=l,L=b.useMemo(()=>{let T=Yt(y,h);return T==null?null:{location:{pathname:T,search:x,hash:v,state:S,key:N},navigationType:u}},[h,y,x,v,S,N,u]);return rt(L!=null,` is not able to match the URL "${y}${x}${v}" because it does not start with the basename, so the won't render anything.`),L==null?null:b.createElement(Gt.Provider,{value:p},b.createElement(Hl.Provider,{children:i,value:L}))}var Ol="get",Ml="application/x-www-form-urlencoded";function Ul(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function ay(n){return Ul(n)&&n.tagName.toLowerCase()==="button"}function ly(n){return Ul(n)&&n.tagName.toLowerCase()==="form"}function oy(n){return Ul(n)&&n.tagName.toLowerCase()==="input"}function sy(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function uy(n,i){return n.button===0&&(!i||i==="_self")&&!sy(n)}var Ll=null;function cy(){if(Ll===null)try{new FormData(document.createElement("form"),0),Ll=!1}catch{Ll=!0}return Ll}var dy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ms(n){return n!=null&&!dy.has(n)?(rt(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ml}"`),null):n}function fy(n,i){let l,u,s,c,f;if(ly(n)){let h=n.getAttribute("action");u=h?Yt(h,i):null,l=n.getAttribute("method")||Ol,s=Ms(n.getAttribute("enctype"))||Ml,c=new FormData(n)}else if(ay(n)||oy(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a