(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))c(h);new MutationObserver(h=>{for(const S of h)if(S.type==="childList")for(const T of S.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&c(T)}).observe(document,{childList:!0,subtree:!0});function o(h){const S={};return h.integrity&&(S.integrity=h.integrity),h.referrerPolicy&&(S.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?S.credentials="include":h.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function c(h){if(h.ep)return;h.ep=!0;const S=o(h);fetch(h.href,S)}})();function Ud(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}function ky(f){if(f.__esModule)return f;var s=f.default;if(typeof s=="function"){var o=function c(){return this instanceof c?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};o.prototype=s.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(f).forEach(function(c){var h=Object.getOwnPropertyDescriptor(f,c);Object.defineProperty(o,c,h.get?h:{enumerable:!0,get:function(){return f[c]}})}),o}var hc={exports:{}},Uu={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var md;function vv(){if(md)return Uu;md=1;var f=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(c,h,S){var T=null;if(S!==void 0&&(T=""+S),h.key!==void 0&&(T=""+h.key),"key"in h){S={};for(var z in h)z!=="key"&&(S[z]=h[z])}else S=h;return h=S.ref,{$$typeof:f,type:c,key:T,ref:h!==void 0?h:null,props:S}}return Uu.Fragment=s,Uu.jsx=o,Uu.jsxs=o,Uu}var vd;function yv(){return vd||(vd=1,hc.exports=vv()),hc.exports}var Fy=yv(),mc={exports:{}},tt={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yd;function gv(){if(yd)return tt;yd=1;var f=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),T=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),H=Symbol.iterator;function N(v){return v===null||typeof v!="object"?null:(v=H&&v[H]||v["@@iterator"],typeof v=="function"?v:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},V=Object.assign,k={};function L(v,C,J){this.props=v,this.context=C,this.refs=k,this.updater=J||q}L.prototype.isReactComponent={},L.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,C,"setState")},L.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function Z(){}Z.prototype=L.prototype;function $(v,C,J){this.props=v,this.context=C,this.refs=k,this.updater=J||q}var X=$.prototype=new Z;X.constructor=$,V(X,L.prototype),X.isPureReactComponent=!0;var St=Array.isArray,P={H:null,A:null,T:null,S:null},Ht=Object.prototype.hasOwnProperty;function $t(v,C,J,w,x,ft){return J=ft.ref,{$$typeof:f,type:v,key:C,ref:J!==void 0?J:null,props:ft}}function It(v,C){return $t(v.type,C,void 0,void 0,void 0,v.props)}function G(v){return typeof v=="object"&&v!==null&&v.$$typeof===f}function at(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(J){return C[J]})}var Vt=/\/+/g;function Be(v,C){return typeof v=="object"&&v!==null&&v.key!=null?at(""+v.key):C.toString(36)}function Oe(){}function xe(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Oe,Oe):(v.status="pending",v.then(function(C){v.status==="pending"&&(v.status="fulfilled",v.value=C)},function(C){v.status==="pending"&&(v.status="rejected",v.reason=C)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function Wt(v,C,J,w,x){var ft=typeof v;(ft==="undefined"||ft==="boolean")&&(v=null);var et=!1;if(v===null)et=!0;else switch(ft){case"bigint":case"string":case"number":et=!0;break;case"object":switch(v.$$typeof){case f:case s:et=!0;break;case A:return et=v._init,Wt(et(v._payload),C,J,w,x)}}if(et)return x=x(v),et=w===""?"."+Be(v,0):w,St(x)?(J="",et!=null&&(J=et.replace(Vt,"$&/")+"/"),Wt(x,C,J,"",function(_t){return _t})):x!=null&&(G(x)&&(x=It(x,J+(x.key==null||v&&v.key===x.key?"":(""+x.key).replace(Vt,"$&/")+"/")+et)),C.push(x)),1;et=0;var wt=w===""?".":w+":";if(St(v))for(var ot=0;ot>>1,v=B[vt];if(0>>1;vth(w,W))xh(ft,w)?(B[vt]=ft,B[x]=W,vt=x):(B[vt]=w,B[J]=W,vt=J);else if(xh(ft,W))B[vt]=ft,B[x]=W,vt=x;else break t}}return I}function h(B,I){var W=B.sortIndex-I.sortIndex;return W!==0?W:B.id-I.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;f.unstable_now=function(){return S.now()}}else{var T=Date,z=T.now();f.unstable_now=function(){return T.now()-z}}var p=[],m=[],A=1,H=null,N=3,q=!1,V=!1,k=!1,L=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function X(B){for(var I=o(m);I!==null;){if(I.callback===null)c(m);else if(I.startTime<=B)c(m),I.sortIndex=I.expirationTime,s(p,I);else break;I=o(m)}}function St(B){if(k=!1,X(B),!V)if(o(p)!==null)V=!0,xe();else{var I=o(m);I!==null&&Wt(St,I.startTime-B)}}var P=!1,Ht=-1,$t=5,It=-1;function G(){return!(f.unstable_now()-It<$t)}function at(){if(P){var B=f.unstable_now();It=B;var I=!0;try{t:{V=!1,k&&(k=!1,Z(Ht),Ht=-1),q=!0;var W=N;try{e:{for(X(B),H=o(p);H!==null&&!(H.expirationTime>B&&G());){var vt=H.callback;if(typeof vt=="function"){H.callback=null,N=H.priorityLevel;var v=vt(H.expirationTime<=B);if(B=f.unstable_now(),typeof v=="function"){H.callback=v,X(B),I=!0;break e}H===o(p)&&c(p),X(B)}else c(p);H=o(p)}if(H!==null)I=!0;else{var C=o(m);C!==null&&Wt(St,C.startTime-B),I=!1}}break t}finally{H=null,N=W,q=!1}I=void 0}}finally{I?Vt():P=!1}}}var Vt;if(typeof $=="function")Vt=function(){$(at)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,Oe=Be.port2;Be.port1.onmessage=at,Vt=function(){Oe.postMessage(null)}}else Vt=function(){L(at,0)};function xe(){P||(P=!0,Vt())}function Wt(B,I){Ht=L(function(){B(f.unstable_now())},I)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(B){B.callback=null},f.unstable_continueExecution=function(){V||q||(V=!0,xe())},f.unstable_forceFrameRate=function(B){0>B||125vt?(B.sortIndex=W,s(m,B),o(p)===null&&B===o(m)&&(k?(Z(Ht),Ht=-1):k=!0,Wt(St,W-vt))):(B.sortIndex=v,s(p,B),V||q||(V=!0,xe())),B},f.unstable_shouldYield=G,f.unstable_wrapCallback=function(B){var I=N;return function(){var W=N;N=I;try{return B.apply(this,arguments)}finally{N=W}}}}(gc)),gc}var pd;function pv(){return pd||(pd=1,yc.exports=Sv()),yc.exports}var Sc={exports:{}},Zt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bd;function bv(){if(bd)return Zt;bd=1;var f=Rc();function s(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(s){console.error(s)}}return f(),Sc.exports=bv(),Sc.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Td;function Tv(){if(Td)return Hu;Td=1;var f=pv(),s=Rc(),o=Ev();function c(t){var e="https://react.dev/errors/"+t;if(1)":-1u||d[a]!==g[u]){var _=` `+d[a].replace(" at new "," at ");return t.displayName&&_.includes("")&&(_=_.replace("",t.displayName)),_}while(1<=a&&0<=u);break}}}finally{xe=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Oe(l):""}function B(t){switch(t.tag){case 26:case 27:case 5:return Oe(t.type);case 16:return Oe("Lazy");case 13:return Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return t=Wt(t.type,!1),t;case 11:return t=Wt(t.type.render,!1),t;case 1:return t=Wt(t.type,!0),t;default:return""}}function I(t){try{var e="";do e+=B(t),t=t.return;while(t);return e}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}function W(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function vt(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(W(t)!==t)throw Error(c(188))}function C(t){var e=t.alternate;if(!e){if(e=W(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,a=e;;){var u=l.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){l=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===l)return v(u),t;if(n===a)return v(u),e;n=n.sibling}throw Error(c(188))}if(l.return!==a.return)l=u,a=n;else{for(var i=!1,r=u.child;r;){if(r===l){i=!0,l=u,a=n;break}if(r===a){i=!0,a=u,l=n;break}r=r.sibling}if(!i){for(r=n.child;r;){if(r===l){i=!0,l=n,a=u;break}if(r===a){i=!0,a=n,l=u;break}r=r.sibling}if(!i)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function J(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=J(t),e!==null)return e;t=t.sibling}return null}var w=Array.isArray,x=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ft={pending:!1,data:null,method:null,action:null},et=[],wt=-1;function ot(t){return{current:t}}function _t(t){0>wt||(t.current=et[wt],et[wt]=null,wt--)}function pt(t,e){wt++,et[wt]=t.current,t.current=e}var _e=ot(null),Na=ot(null),el=ot(null),qu=ot(null);function Yu(t,e){switch(pt(el,e),pt(Na,t),pt(_e,null),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)&&(e=e.namespaceURI)?Zo(e):0;break;default:if(t=t===8?e.parentNode:e,e=t.tagName,t=t.namespaceURI)t=Zo(t),e=Vo(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}_t(_e),pt(_e,e)}function $l(){_t(_e),_t(Na),_t(el)}function ai(t){t.memoizedState!==null&&pt(qu,t);var e=_e.current,l=Vo(e,t.type);e!==l&&(pt(Na,t),pt(_e,l))}function Lu(t){Na.current===t&&(_t(_e),_t(Na)),qu.current===t&&(_t(qu),zu._currentValue=ft)}var ui=Object.prototype.hasOwnProperty,ni=f.unstable_scheduleCallback,ii=f.unstable_cancelCallback,Jd=f.unstable_shouldYield,$d=f.unstable_requestPaint,De=f.unstable_now,Wd=f.unstable_getCurrentPriorityLevel,Hc=f.unstable_ImmediatePriority,Cc=f.unstable_UserBlockingPriority,Gu=f.unstable_NormalPriority,kd=f.unstable_LowPriority,Nc=f.unstable_IdlePriority,Fd=f.log,Pd=f.unstable_setDisableYieldValue,Ba=null,te=null;function Id(t){if(te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Ba,t,void 0,(t.current.flags&128)===128)}catch{}}function ll(t){if(typeof Fd=="function"&&Pd(t),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Ba,t)}catch{}}var ee=Math.clz32?Math.clz32:lh,th=Math.log,eh=Math.LN2;function lh(t){return t>>>=0,t===0?32:31-(th(t)/eh|0)|0}var Xu=128,ju=4194304;function Ol(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:return 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 t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Qu(t,e){var l=t.pendingLanes;if(l===0)return 0;var a=0,u=t.suspendedLanes,n=t.pingedLanes,i=t.warmLanes;t=t.finishedLanes!==0;var r=l&134217727;return r!==0?(l=r&~u,l!==0?a=Ol(l):(n&=r,n!==0?a=Ol(n):t||(i=r&~i,i!==0&&(a=Ol(i))))):(r=l&~u,r!==0?a=Ol(r):n!==0?a=Ol(n):t||(i=l&~i,i!==0&&(a=Ol(i)))),a===0?0:e!==0&&e!==a&&!(e&u)&&(u=a&-a,i=e&-e,u>=i||u===32&&(i&4194176)!==0)?e:a}function xa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ah(t,e){switch(t){case 1:case 2:case 4:case 8:return e+250;case 16:case 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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bc(){var t=Xu;return Xu<<=1,!(Xu&4194176)&&(Xu=128),t}function xc(){var t=ju;return ju<<=1,!(ju&62914560)&&(ju=4194304),t}function fi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function qa(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function uh(t,e,l,a,u,n){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,d=t.expirationTimes,g=t.hiddenUpdates;for(l=i&~l;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ch=RegExp("^[: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]*$"),Zc={},Vc={};function rh(t){return ui.call(Vc,t)?!0:ui.call(Zc,t)?!1:ch.test(t)?Vc[t]=!0:(Zc[t]=!0,!1)}function Zu(t,e,l){if(rh(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Vu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Ye(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function fe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function sh(t){var e=wc(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),a=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,n=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(i){a=""+i,n.call(this,i)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wu(t){t._valueTracker||(t._valueTracker=sh(t))}function Kc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=wc(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Ku(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var oh=/[\n"\\]/g;function ce(t){return t.replace(oh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function si(t,e,l,a,u,n,i,r){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+fe(e)):t.value!==""+fe(e)&&(t.value=""+fe(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?oi(t,i,fe(e)):l!=null?oi(t,i,fe(l)):a!=null&&t.removeAttribute("value"),u==null&&n!=null&&(t.defaultChecked=!!n),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+fe(r):t.removeAttribute("name")}function Jc(t,e,l,a,u,n,i,r){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(t.type=n),e!=null||l!=null){if(!(n!=="submit"&&n!=="reset"||e!=null))return;l=l!=null?""+fe(l):"",e=e!=null?""+fe(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i)}function oi(t,e,l){e==="number"&&Ku(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Il(t,e,l,a){if(t=t.options,e){e={};for(var u=0;u=Za),ir=" ",fr=!1;function cr(t,e){switch(t){case"keyup":return Gh.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var aa=!1;function jh(t,e){switch(t){case"compositionend":return rr(e);case"keypress":return e.which!==32?null:(fr=!0,ir);case"textInput":return t=e.data,t===ir&&fr?null:t;default:return null}}function Qh(t,e){if(aa)return t==="compositionend"||!Ti&&cr(t,e)?(t=tr(),$u=gi=ul=null,aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=gr(l)}}function pr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function br(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ku(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Ku(t.document)}return e}function zi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function kh(t,e){var l=br(e);e=t.focusedElem;var a=t.selectionRange;if(l!==e&&e&&e.ownerDocument&&pr(e.ownerDocument.documentElement,e)){if(a!==null&&zi(e)){if(t=a.start,l=a.end,l===void 0&&(l=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(l,e.value.length);else if(l=(t=e.ownerDocument||document)&&t.defaultView||window,l.getSelection){l=l.getSelection();var u=e.textContent.length,n=Math.min(a.start,u);a=a.end===void 0?n:Math.min(a.end,u),!l.extend&&n>a&&(u=a,a=n,n=u),u=Sr(e,n);var i=Sr(e,a);u&&i&&(l.rangeCount!==1||l.anchorNode!==u.node||l.anchorOffset!==u.offset||l.focusNode!==i.node||l.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),l.removeAllRanges(),n>a?(l.addRange(t),l.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),l.addRange(t)))}}for(t=[],l=e;l=l.parentNode;)l.nodeType===1&&t.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,ua=null,Oi=null,Ja=null,_i=!1;function Er(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_i||ua==null||ua!==Ku(a)||(a=ua,"selectionStart"in a&&zi(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}),Ja&&Ka(Ja,a)||(Ja=a,a=qn(Oi,"onSelect"),0>=i,u-=i,Le=1<<32-ee(e)+u|l<K?(Yt=Q,Q=null):Yt=Q.sibling;var st=R(b,Q,E[K],M);if(st===null){Q===null&&(Q=Yt);break}t&&Q&&st.alternate===null&&e(b,Q),y=n(st,y,K),ut===null?Y=st:ut.sibling=st,ut=st,Q=Yt}if(K===E.length)return l(b,Q),rt&&Nl(b,K),Y;if(Q===null){for(;KK?(Yt=Q,Q=null):Yt=Q.sibling;var Al=R(b,Q,st.value,M);if(Al===null){Q===null&&(Q=Yt);break}t&&Q&&Al.alternate===null&&e(b,Q),y=n(Al,y,K),ut===null?Y=Al:ut.sibling=Al,ut=Al,Q=Yt}if(st.done)return l(b,Q),rt&&Nl(b,K),Y;if(Q===null){for(;!st.done;K++,st=E.next())st=U(b,st.value,M),st!==null&&(y=n(st,y,K),ut===null?Y=st:ut.sibling=st,ut=st);return rt&&Nl(b,K),Y}for(Q=a(Q);!st.done;K++,st=E.next())st=O(Q,b,K,st.value,M),st!==null&&(t&&st.alternate!==null&&Q.delete(st.key===null?K:st.key),y=n(st,y,K),ut===null?Y=st:ut.sibling=st,ut=st);return t&&Q.forEach(function(mv){return e(b,mv)}),rt&&Nl(b,K),Y}function zt(b,y,E,M){if(typeof E=="object"&&E!==null&&E.type===p&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case T:t:{for(var Y=E.key;y!==null;){if(y.key===Y){if(Y=E.type,Y===p){if(y.tag===7){l(b,y.sibling),M=u(y,E.props.children),M.return=b,b=M;break t}}else if(y.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===$&&Lr(Y)===y.type){l(b,y.sibling),M=u(y,E.props),tu(M,E),M.return=b,b=M;break t}l(b,y);break}else e(b,y);y=y.sibling}E.type===p?(M=Vl(E.props.children,b.mode,M,E.key),M.return=b,b=M):(M=On(E.type,E.key,E.props,null,b.mode,M),tu(M,E),M.return=b,b=M)}return i(b);case z:t:{for(Y=E.key;y!==null;){if(y.key===Y)if(y.tag===4&&y.stateNode.containerInfo===E.containerInfo&&y.stateNode.implementation===E.implementation){l(b,y.sibling),M=u(y,E.children||[]),M.return=b,b=M;break t}else{l(b,y);break}else e(b,y);y=y.sibling}M=Uf(E,b.mode,M),M.return=b,b=M}return i(b);case $:return Y=E._init,E=Y(E._payload),zt(b,y,E,M)}if(w(E))return j(b,y,E,M);if(Ht(E)){if(Y=Ht(E),typeof Y!="function")throw Error(c(150));return E=Y.call(E),F(b,y,E,M)}if(typeof E.then=="function")return zt(b,y,fn(E),M);if(E.$$typeof===q)return zt(b,y,Rn(b,E),M);cn(b,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,y!==null&&y.tag===6?(l(b,y.sibling),M=u(y,E),M.return=b,b=M):(l(b,y),M=Mf(E,b.mode,M),M.return=b,b=M),i(b)):l(b,y)}return function(b,y,E,M){try{Ia=0;var Y=zt(b,y,E,M);return sa=null,Y}catch(Q){if(Q===Fa)throw Q;var ut=ye(29,Q,null,b.mode);return ut.lanes=M,ut.return=b,ut}finally{}}}var xl=Gr(!0),Xr=Gr(!1),oa=ot(null),rn=ot(0);function jr(t,e){t=ke,pt(rn,t),pt(oa,e),ke=t|e.baseLanes}function xi(){pt(rn,ke),pt(oa,oa.current)}function qi(){ke=rn.current,_t(oa),_t(rn)}var he=ot(null),Ue=null;function il(t){var e=t.alternate;pt(Ct,Ct.current&1),pt(he,t),Ue===null&&(e===null||oa.current!==null||e.memoizedState!==null)&&(Ue=t)}function Qr(t){if(t.tag===22){if(pt(Ct,Ct.current),pt(he,t),Ue===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ue=t)}}else fl()}function fl(){pt(Ct,Ct.current),pt(he,he.current)}function Xe(t){_t(he),Ue===t&&(Ue=null),_t(Ct)}var Ct=ot(0);function sn(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var em=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},lm=f.unstable_scheduleCallback,am=f.unstable_NormalPriority,Nt={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yi(){return{controller:new em,data:new Map,refCount:0}}function eu(t){t.refCount--,t.refCount===0&&lm(am,function(){t.controller.abort()})}var lu=null,Li=0,da=0,ha=null;function um(t,e){if(lu===null){var l=lu=[];Li=0,da=wf(),ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Li++,e.then(Zr,Zr),e}function Zr(){if(--Li===0&&lu!==null){ha!==null&&(ha.status="fulfilled");var t=lu;lu=null,da=0,ha=null;for(var e=0;en?n:8;var i=G.T,r={};G.T=r,ef(t,!1,e,l);try{var d=u(),g=G.S;if(g!==null&&g(r,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var _=nm(d,a);nu(t,e,_,ie(t))}else nu(t,e,a,ie(t))}catch(U){nu(t,e,{then:function(){},status:"rejected",reason:U},ie())}finally{x.p=n,G.T=i}}function sm(){}function Ii(t,e,l,a){if(t.tag!==5)throw Error(c(476));var u=bs(t).queue;ps(t,u,e,ft,l===null?sm:function(){return Es(t),l(a)})}function bs(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ft,baseState:ft,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:je,lastRenderedState:ft},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:je,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Es(t){var e=bs(t).next.queue;nu(t,e,{},ie())}function tf(){return Qt(zu)}function Ts(){return Mt().memoizedState}function Rs(){return Mt().memoizedState}function om(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ie();t=dl(l);var a=hl(e,t,l);a!==null&&(Jt(a,e,l),cu(a,e,l)),e={cache:Yi()},t.payload=e;return}e=e.return}}function dm(t,e,l){var a=ie();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},pn(t)?zs(e,l):(l=Ui(t,e,l,a),l!==null&&(Jt(l,t,a),Os(l,e,a)))}function As(t,e,l){var a=ie();nu(t,e,l,a)}function nu(t,e,l,a){var u={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(pn(t))zs(e,u);else{var n=t.alternate;if(t.lanes===0&&(n===null||n.lanes===0)&&(n=e.lastRenderedReducer,n!==null))try{var i=e.lastRenderedState,r=n(i,l);if(u.hasEagerState=!0,u.eagerState=r,le(r,i))return en(t,e,u,0),yt===null&&tn(),!1}catch{}finally{}if(l=Ui(t,e,u,a),l!==null)return Jt(l,t,a),Os(l,e,a),!0}return!1}function ef(t,e,l,a){if(a={lane:2,revertLane:wf(),action:a,hasEagerState:!1,eagerState:null,next:null},pn(t)){if(e)throw Error(c(479))}else e=Ui(t,l,a,2),e!==null&&Jt(e,t,2)}function pn(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function zs(t,e){ma=dn=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Os(t,e,l){if(l&4194176){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Yc(t,l)}}var He={readContext:Qt,use:vn,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot};He.useCacheRefresh=Ot,He.useMemoCache=Ot,He.useHostTransitionStatus=Ot,He.useFormState=Ot,He.useActionState=Ot,He.useOptimistic=Ot;var Ll={readContext:Qt,use:vn,useCallback:function(t,e){return Pt().memoizedState=[t,e===void 0?null:e],t},useContext:Qt,useEffect:os,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,gn(4194308,4,ms.bind(null,e,t),l)},useLayoutEffect:function(t,e){return gn(4194308,4,t,e)},useInsertionEffect:function(t,e){gn(4,2,t,e)},useMemo:function(t,e){var l=Pt();e=e===void 0?null:e;var a=t();if(Yl){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Pt();if(l!==void 0){var u=l(e);if(Yl){ll(!0);try{l(e)}finally{ll(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=dm.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=Pt();return t={current:t},e.memoizedState=t},useState:function(t){t=$i(t);var e=t.queue,l=As.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Fi,useDeferredValue:function(t,e){var l=Pt();return Pi(l,t,e)},useTransition:function(){var t=$i(!1);return t=ps.bind(null,lt,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=lt,u=Pt();if(rt){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),yt===null)throw Error(c(349));ct&60||Wr(a,e,l)}u.memoizedState=l;var n={value:l,getSnapshot:e};return u.queue=n,os(Fr.bind(null,a,n,t),[t]),a.flags|=2048,ya(9,kr.bind(null,a,n,l,e),{destroy:void 0},null),l},useId:function(){var t=Pt(),e=yt.identifierPrefix;if(rt){var l=Ge,a=Le;l=(a&~(1<<32-ee(a)-1)).toString(32)+l,e=":"+e+"R"+l,l=hn++,0 title"))),Xt(n,a,l),n[jt]=t,Bt(n),a=n;break t;case"link":var i=td("link","href",u).get(a+(l.href||""));if(i){for(var r=0;r<\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?t.multiple=!0:a.size&&(t.size=a.size);break;default:t=typeof a.is=="string"?u.createElement(l,{is:a.is}):u.createElement(l)}}t[jt]=e,t[kt]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)t.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=t;t:switch(Xt(t,l,a),l){case"button":case"input":case"select":case"textarea":t=!!a.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&$e(e)}}return Et(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&$e(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=el.current,$a(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,u=Kt,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[jt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Qo(t.nodeValue,l)),t||Bl(e)}else t=Ln(t).createTextNode(a),t[jt]=e,e.stateNode=t}return Et(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=$a(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[jt]=e}else Wa(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Et(e),u=!1}else Ee!==null&&(Lf(Ee),Ee=null),u=!0;if(!u)return e.flags&256?(Xe(e),e):(Xe(e),null)}if(Xe(e),e.flags&128)return e.lanes=l,e;if(l=a!==null,t=t!==null&&t.memoizedState!==null,l){a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool);var n=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),_n(e,e.updateQueue),Et(e),null;case 4:return $l(),t===null&&Wf(e.stateNode.containerInfo),Et(e),null;case 10:return Ve(e.type),Et(e),null;case 19:if(_t(Ct),u=e.memoizedState,u===null)return Et(e),null;if(a=(e.flags&128)!==0,n=u.rendering,n===null)if(a)vu(u,!1);else{if(At!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(n=sn(t),n!==null){for(e.flags|=128,vu(u,!1),t=n.updateQueue,e.updateQueue=t,_n(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)yo(l,t),l=l.sibling;return pt(Ct,Ct.current&1|2),e.child}t=t.sibling}u.tail!==null&&De()>Dn&&(e.flags|=128,a=!0,vu(u,!1),e.lanes=4194304)}else{if(!a)if(t=sn(n),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,_n(e,t),vu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!n.alternate&&!rt)return Et(e),null}else 2*De()-u.renderingStartTime>Dn&&l!==536870912&&(e.flags|=128,a=!0,vu(u,!1),e.lanes=4194304);u.isBackwards?(n.sibling=e.child,e.child=n):(t=u.last,t!==null?t.sibling=n:e.child=n,u.last=n)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=De(),e.sibling=null,t=Ct.current,pt(Ct,a?t&1|2:t&1),e):(Et(e),null);case 22:case 23:return Xe(e),qi(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?l&536870912&&!(e.flags&128)&&(Et(e),e.subtreeFlags&6&&(e.flags|=8192)):Et(e),l=e.updateQueue,l!==null&&_n(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&_t(ql),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ve(Nt),Et(e),null;case 25:return null}throw Error(c(156,e.tag))}function pm(t,e){switch(Ci(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ve(Nt),$l(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Lu(e),null;case 13:if(Xe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Wa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _t(Ct),null;case 4:return $l(),null;case 10:return Ve(e.type),null;case 22:case 23:return Xe(e),qi(),t!==null&&_t(ql),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ve(Nt),null;case 25:return null;default:return null}}function po(t,e){switch(Ci(e),e.tag){case 3:Ve(Nt),$l();break;case 26:case 27:case 5:Lu(e);break;case 4:$l();break;case 13:Xe(e);break;case 19:_t(Ct);break;case 10:Ve(e.type);break;case 22:case 23:Xe(e),qi(),t!==null&&_t(ql);break;case 24:Ve(Nt)}}var bm={getCacheForType:function(t){var e=Qt(Nt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},Em=typeof WeakMap=="function"?WeakMap:Map,Tt=0,yt=null,nt=null,ct=0,gt=0,ne=null,We=!1,ba=!1,Hf=!1,ke=0,At=0,Sl=0,wl=0,Cf=0,ge=0,Ea=0,yu=null,Ce=null,Nf=!1,Bf=0,Dn=1/0,Mn=null,pl=null,Un=!1,Kl=null,gu=0,xf=0,qf=null,Su=0,Yf=null;function ie(){if(Tt&2&&ct!==0)return ct&-ct;if(G.T!==null){var t=da;return t!==0?t:wf()}return Gc()}function bo(){ge===0&&(ge=!(ct&536870912)||rt?Bc():536870912);var t=he.current;return t!==null&&(t.flags|=32),ge}function Jt(t,e,l){(t===yt&>===2||t.cancelPendingCommit!==null)&&(Ta(t,0),Fe(t,ct,ge,!1)),qa(t,l),(!(Tt&2)||t!==yt)&&(t===yt&&(!(Tt&2)&&(wl|=l),At===4&&Fe(t,ct,ge,!1)),Ne(t))}function Eo(t,e,l){if(Tt&6)throw Error(c(327));var a=!l&&(e&60)===0&&(e&t.expiredLanes)===0||xa(t,e),u=a?Am(t,e):jf(t,e,!0),n=a;do{if(u===0){ba&&!a&&Fe(t,e,0,!1);break}else if(u===6)Fe(t,e,0,!We);else{if(l=t.current.alternate,n&&!Tm(l)){u=jf(t,e,!1),n=!1;continue}if(u===2){if(n=e,t.errorRecoveryDisabledLanes&n)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var r=t;u=yu;var d=r.current.memoizedState.isDehydrated;if(d&&(Ta(r,i).flags|=256),i=jf(r,i,!1),i!==2){if(Hf&&!d){r.errorRecoveryDisabledLanes|=n,wl|=n,u=4;break t}n=Ce,Ce=u,n!==null&&Lf(n)}u=i}if(n=!1,u!==2)continue}}if(u===1){Ta(t,0),Fe(t,e,0,!0);break}t:{switch(a=t,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194176)===e){Fe(a,e,ge,!We);break t}break;case 2:Ce=null;break;case 3:case 5:break;default:throw Error(c(329))}if(a.finishedWork=l,a.finishedLanes=e,(e&62914560)===e&&(n=Bf+300-De(),10l?32:l,G.T=null,Kl===null)var n=!1;else{l=qf,qf=null;var i=Kl,r=gu;if(Kl=null,gu=0,Tt&6)throw Error(c(331));var d=Tt;if(Tt|=4,mo(i.current),so(i,i.current,r,l),Tt=d,pu(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Ba,i)}catch{}n=!0}return n}finally{x.p=u,G.T=a,Uo(t,e)}}return!1}function Ho(t,e,l){e=se(l,e),e=uf(t.stateNode,e,2),t=hl(t,e,2),t!==null&&(qa(t,2),Ne(t))}function mt(t,e,l){if(t.tag===3)Ho(t,t,l);else for(;e!==null;){if(e.tag===3){Ho(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pl===null||!pl.has(a))){t=se(l,t),l=Ns(2),a=hl(e,l,2),a!==null&&(Bs(l,a,e,t),qa(a,2),Ne(a));break}}e=e.return}}function Qf(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Em;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(l)||(Hf=!0,u.add(l),t=_m.bind(null,t,e,l),e.then(t,t))}function _m(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,yt===t&&(ct&l)===l&&(At===4||At===3&&(ct&62914560)===ct&&300>De()-Bf?!(Tt&2)&&Ta(t,0):Cf|=l,Ea===ct&&(Ea=0)),Ne(t)}function Co(t,e){e===0&&(e=xc()),t=nl(t,e),t!==null&&(qa(t,e),Ne(t))}function Dm(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Co(t,l)}function Mm(t,e){var l=0;switch(t.tag){case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(e),Co(t,l)}function Um(t,e){return ni(t,e)}var Nn=null,za=null,Zf=!1,Bn=!1,Vf=!1,Jl=0;function Ne(t){t!==za&&t.next===null&&(za===null?Nn=za=t:za=za.next=t),Bn=!0,Zf||(Zf=!0,Cm(Hm))}function pu(t,e){if(!Vf&&Bn){Vf=!0;do for(var l=!1,a=Nn;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,r=a.pingedLanes;n=(1<<31-ee(42|t)+1)-1,n&=u&~(i&~r),n=n&201326677?n&201326677|1:n?n|2:0}n!==0&&(l=!0,xo(a,n))}else n=ct,n=Qu(a,a===yt?n:0),!(n&3)||xa(a,n)||(l=!0,xo(a,n));a=a.next}while(l);Vf=!1}}function Hm(){Bn=Zf=!1;var t=0;Jl!==0&&(Xm()&&(t=Jl),Jl=0);for(var e=De(),l=null,a=Nn;a!==null;){var u=a.next,n=No(a,e);n===0?(a.next=null,l===null?Nn=u:l.next=u,u===null&&(za=l)):(l=a,(t!==0||n&3)&&(Bn=!0)),a=u}pu(t)}function No(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,n=t.pendingLanes&-62914561;0"u"?null:document;function ko(t,e,l){var a=_a;if(a&&typeof e=="string"&&e){var u=ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),Wo.has(u)||(Wo.add(u),t={rel:t,crossOrigin:l,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),Xt(e,"link",t),Bt(e),a.head.appendChild(e)))}}function $m(t){Pe.D(t),ko("dns-prefetch",t,null)}function Wm(t,e){Pe.C(t,e),ko("preconnect",t,e)}function km(t,e,l){Pe.L(t,e,l);var a=_a;if(a&&t&&e){var u='link[rel="preload"][as="'+ce(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+ce(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+ce(l.imageSizes)+'"]')):u+='[href="'+ce(t)+'"]';var n=u;switch(e){case"style":n=Da(t);break;case"script":n=Ma(t)}Se.has(n)||(t=at({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Se.set(n,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(Tu(n))||e==="script"&&a.querySelector(Ru(n))||(e=a.createElement("link"),Xt(e,"link",t),Bt(e),a.head.appendChild(e)))}}function Fm(t,e){Pe.m(t,e);var l=_a;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+ce(a)+'"][href="'+ce(t)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ma(t)}if(!Se.has(n)&&(t=at({rel:"modulepreload",href:t},e),Se.set(n,t),l.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ru(n)))return}a=l.createElement("link"),Xt(a,"link",t),Bt(a),l.head.appendChild(a)}}}function Pm(t,e,l){Pe.S(t,e,l);var a=_a;if(a&&t){var u=Fl(a).hoistableStyles,n=Da(t);e=e||"default";var i=u.get(n);if(!i){var r={loading:0,preload:null};if(i=a.querySelector(Tu(n)))r.loading=5;else{t=at({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Se.get(n))&&uc(t,l);var d=i=a.createElement("link");Bt(d),Xt(d,"link",t),d._p=new Promise(function(g,_){d.onload=g,d.onerror=_}),d.addEventListener("load",function(){r.loading|=1}),d.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Xn(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:r},u.set(n,i)}}}function Im(t,e){Pe.X(t,e);var l=_a;if(l&&t){var a=Fl(l).hoistableScripts,u=Ma(t),n=a.get(u);n||(n=l.querySelector(Ru(u)),n||(t=at({src:t,async:!0},e),(e=Se.get(u))&&nc(t,e),n=l.createElement("script"),Bt(n),Xt(n,"link",t),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function tv(t,e){Pe.M(t,e);var l=_a;if(l&&t){var a=Fl(l).hoistableScripts,u=Ma(t),n=a.get(u);n||(n=l.querySelector(Ru(u)),n||(t=at({src:t,async:!0,type:"module"},e),(e=Se.get(u))&&nc(t,e),n=l.createElement("script"),Bt(n),Xt(n,"link",t),l.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function Fo(t,e,l,a){var u=(u=el.current)?Gn(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Da(l.href),l=Fl(u).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Da(l.href);var n=Fl(u).hoistableStyles,i=n.get(t);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(t,i),(n=u.querySelector(Tu(t)))&&!n._p&&(i.instance=n,i.state.loading=5),Se.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Se.set(t,l),n||ev(u,t,l,i.state))),e&&a===null)throw Error(c(528,""));return i}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ma(l),l=Fl(u).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Da(t){return'href="'+ce(t)+'"'}function Tu(t){return'link[rel="stylesheet"]['+t+"]"}function Po(t){return at({},t,{"data-precedence":t.precedence,precedence:null})}function ev(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Xt(e,"link",l),Bt(e),t.head.appendChild(e))}function Ma(t){return'[src="'+ce(t)+'"]'}function Ru(t){return"script[async]"+t}function Io(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ce(l.href)+'"]');if(a)return e.instance=a,Bt(a),a;var u=at({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Bt(a),Xt(a,"style",u),Xn(a,l.precedence,t),e.instance=a;case"stylesheet":u=Da(l.href);var n=t.querySelector(Tu(u));if(n)return e.state.loading|=4,e.instance=n,Bt(n),n;a=Po(l),(u=Se.get(u))&&uc(a,u),n=(t.ownerDocument||t).createElement("link"),Bt(n);var i=n;return i._p=new Promise(function(r,d){i.onload=r,i.onerror=d}),Xt(n,"link",a),e.state.loading|=4,Xn(n,l.precedence,t),e.instance=n;case"script":return n=Ma(l.src),(u=t.querySelector(Ru(n)))?(e.instance=u,Bt(u),u):(a=l,(u=Se.get(n))&&(a=at({},l),nc(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Bt(u),Xt(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(a=e.instance,e.state.loading|=4,Xn(a,l.precedence,t));return e.instance}function Xn(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,i=0;i title"):null)}function lv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function ld(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Au=null;function av(){}function uv(t,e,l){if(Au===null)throw Error(c(475));var a=Au;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(e.state.loading&4)){if(e.instance===null){var u=Da(l.href),n=t.querySelector(Tu(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(a.count++,a=Qn.bind(a),t.then(a,a)),e.state.loading|=4,e.instance=n,Bt(n);return}n=t.ownerDocument||t,l=Po(l),(u=Se.get(u))&&uc(l,u),n=n.createElement("link"),Bt(n);var i=n;i._p=new Promise(function(r,d){i.onload=r,i.onerror=d}),Xt(n,"link",l),e.instance=n}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(e,t),(t=e.state.preload)&&!(e.state.loading&3)&&(a.count++,e=Qn.bind(a),t.addEventListener("load",e),t.addEventListener("error",e))}}function nv(){if(Au===null)throw Error(c(475));var t=Au;return t.stylesheets&&t.count===0&&ic(t,t.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(s){console.error(s)}}return f(),vc.exports=Tv(),vc.exports}var Av=Rv();const Iy=Ud(Av),zv="modulepreload",Ov=function(f){return"/"+f},Ad={},t0=function(s,o,c){let h=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const T=document.querySelector("meta[property=csp-nonce]"),z=(T==null?void 0:T.nonce)||(T==null?void 0:T.getAttribute("nonce"));h=Promise.allSettled(o.map(p=>{if(p=Ov(p),p in Ad)return;Ad[p]=!0;const m=p.endsWith(".css"),A=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${A}`))return;const H=document.createElement("link");if(H.rel=m?"stylesheet":zv,m||(H.as="script"),H.crossOrigin="",H.href=p,z&&H.setAttribute("nonce",z),document.head.appendChild(H),m)return new Promise((N,q)=>{H.addEventListener("load",N),H.addEventListener("error",()=>q(new Error(`Unable to preload CSS for ${p}`)))})}))}function S(T){const z=new Event("vite:preloadError",{cancelable:!0});if(z.payload=T,window.dispatchEvent(z),!z.defaultPrevented)throw T}return h.then(T=>{for(const z of T||[])z.status==="rejected"&&S(z.reason);return s().catch(S)})};/** * react-router v7.9.5 * * 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 zd="popstate";function _v(f={}){function s(c,h){let{pathname:S,search:T,hash:z}=c.location;return Ec("",{pathname:S,search:T,hash:z},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function o(c,h){return typeof h=="string"?h:Nu(h)}return Mv(s,o,null,f)}function bt(f,s){if(f===!1||f===null||typeof f>"u")throw new Error(s)}function Ae(f,s){if(!f){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Dv(){return Math.random().toString(36).substring(2,10)}function Od(f,s){return{usr:f.state,key:f.key,idx:s}}function Ec(f,s,o=null,c){return{pathname:typeof f=="string"?f:f.pathname,search:"",hash:"",...typeof s=="string"?Ua(s):s,state:o,key:s&&s.key||c||Dv()}}function Nu({pathname:f="/",search:s="",hash:o=""}){return s&&s!=="?"&&(f+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(f+=o.charAt(0)==="#"?o:"#"+o),f}function Ua(f){let s={};if(f){let o=f.indexOf("#");o>=0&&(s.hash=f.substring(o),f=f.substring(0,o));let c=f.indexOf("?");c>=0&&(s.search=f.substring(c),f=f.substring(0,c)),f&&(s.pathname=f)}return s}function Mv(f,s,o,c={}){let{window:h=document.defaultView,v5Compat:S=!1}=c,T=h.history,z="POP",p=null,m=A();m==null&&(m=0,T.replaceState({...T.state,idx:m},""));function A(){return(T.state||{idx:null}).idx}function H(){z="POP";let L=A(),Z=L==null?null:L-m;m=L,p&&p({action:z,location:k.location,delta:Z})}function N(L,Z){z="PUSH";let $=Ec(k.location,L,Z);m=A()+1;let X=Od($,m),St=k.createHref($);try{T.pushState(X,"",St)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;h.location.assign(St)}S&&p&&p({action:z,location:k.location,delta:1})}function q(L,Z){z="REPLACE";let $=Ec(k.location,L,Z);m=A();let X=Od($,m),St=k.createHref($);T.replaceState(X,"",St),S&&p&&p({action:z,location:k.location,delta:0})}function V(L){return Uv(L)}let k={get action(){return z},get location(){return f(h,T)},listen(L){if(p)throw new Error("A history only accepts one active listener");return h.addEventListener(zd,H),p=L,()=>{h.removeEventListener(zd,H),p=null}},createHref(L){return s(h,L)},createURL:V,encodeLocation(L){let Z=V(L);return{pathname:Z.pathname,search:Z.search,hash:Z.hash}},push:N,replace:q,go(L){return T.go(L)}};return k}function Uv(f,s=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),bt(o,"No window.location.(origin|href) available to create URL");let c=typeof f=="string"?f:Nu(f);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=o+c),new URL(c,o)}function Hd(f,s,o="/"){return Hv(f,s,o,!1)}function Hv(f,s,o,c){let h=typeof s=="string"?Ua(s):s,S=tl(h.pathname||"/",o);if(S==null)return null;let T=Cd(f);Cv(T);let z=null;for(let p=0;z==null&&p{let A={relativePath:m===void 0?T.path||"":m,caseSensitive:T.caseSensitive===!0,childrenIndex:z,route:T};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(c)&&p)return;bt(A.relativePath.startsWith(c),`Absolute route path "${A.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(c.length)}let H=Ie([c,A.relativePath]),N=o.concat(A);T.children&&T.children.length>0&&(bt(T.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${H}".`),Cd(T.children,s,N,H,p)),!(T.path==null&&!T.index)&&s.push({path:H,score:Gv(H,T.index),routesMeta:N})};return f.forEach((T,z)=>{var p;if(T.path===""||!((p=T.path)!=null&&p.includes("?")))S(T,z);else for(let m of Nd(T.path))S(T,z,!0,m)}),s}function Nd(f){let s=f.split("/");if(s.length===0)return[];let[o,...c]=s,h=o.endsWith("?"),S=o.replace(/\?$/,"");if(c.length===0)return h?[S,""]:[S];let T=Nd(c.join("/")),z=[];return z.push(...T.map(p=>p===""?S:[S,p].join("/"))),h&&z.push(...T),z.map(p=>f.startsWith("/")&&p===""?"/":p)}function Cv(f){f.sort((s,o)=>s.score!==o.score?o.score-s.score:Xv(s.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var Nv=/^:[\w-]+$/,Bv=3,xv=2,qv=1,Yv=10,Lv=-2,_d=f=>f==="*";function Gv(f,s){let o=f.split("/"),c=o.length;return o.some(_d)&&(c+=Lv),s&&(c+=xv),o.filter(h=>!_d(h)).reduce((h,S)=>h+(Nv.test(S)?Bv:S===""?qv:Yv),c)}function Xv(f,s){return f.length===s.length&&f.slice(0,-1).every((c,h)=>c===s[h])?f[f.length-1]-s[s.length-1]:0}function jv(f,s,o=!1){let{routesMeta:c}=f,h={},S="/",T=[];for(let z=0;z{if(A==="*"){let V=z[N]||"";T=S.slice(0,S.length-V.length).replace(/(.)\/+$/,"$1")}const q=z[N];return H&&!q?m[A]=void 0:m[A]=(q||"").replace(/%2F/g,"/"),m},{}),pathname:S,pathnameBase:T,pattern:f}}function Qv(f,s=!1,o=!0){Ae(f==="*"||!f.endsWith("*")||f.endsWith("/*"),`Route path "${f}" will be treated as if it were "${f.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${f.replace(/\*$/,"/*")}".`);let c=[],h="^"+f.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(T,z,p)=>(c.push({paramName:z,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return f.endsWith("*")?(c.push({paramName:"*"}),h+=f==="*"||f==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?h+="\\/*$":f!==""&&f!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),c]}function Zv(f){try{return f.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Ae(!1,`The URL path "${f}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),f}}function tl(f,s){if(s==="/")return f;if(!f.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,c=f.charAt(o);return c&&c!=="/"?null:f.slice(o)||"/"}function Vv(f,s="/"){let{pathname:o,search:c="",hash:h=""}=typeof f=="string"?Ua(f):f;return{pathname:o?o.startsWith("/")?o:wv(o,s):s,search:$v(c),hash:Wv(h)}}function wv(f,s){let o=s.replace(/\/+$/,"").split("/");return f.split("/").forEach(h=>{h===".."?o.length>1&&o.pop():h!=="."&&o.push(h)}),o.length>1?o.join("/"):"/"}function pc(f,s,o,c){return`Cannot include a '${f}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Kv(f){return f.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function Ac(f){let s=Kv(f);return s.map((o,c)=>c===s.length-1?o.pathname:o.pathnameBase)}function zc(f,s,o,c=!1){let h;typeof f=="string"?h=Ua(f):(h={...f},bt(!h.pathname||!h.pathname.includes("?"),pc("?","pathname","search",h)),bt(!h.pathname||!h.pathname.includes("#"),pc("#","pathname","hash",h)),bt(!h.search||!h.search.includes("#"),pc("#","search","hash",h)));let S=f===""||h.pathname==="",T=S?"/":h.pathname,z;if(T==null)z=o;else{let H=s.length-1;if(!c&&T.startsWith("..")){let N=T.split("/");for(;N[0]==="..";)N.shift(),H-=1;h.pathname=N.join("/")}z=H>=0?s[H]:"/"}let p=Vv(h,z),m=T&&T!=="/"&&T.endsWith("/"),A=(S||T===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(m||A)&&(p.pathname+="/"),p}var Ie=f=>f.join("/").replace(/\/\/+/g,"/"),Jv=f=>f.replace(/\/+$/,"").replace(/^\/*/,"/"),$v=f=>!f||f==="?"?"":f.startsWith("?")?f:"?"+f,Wv=f=>!f||f==="#"?"":f.startsWith("#")?f:"#"+f;function kv(f){return f!=null&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.internal=="boolean"&&"data"in f}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Bd=["POST","PUT","PATCH","DELETE"];new Set(Bd);var Fv=["GET",...Bd];new Set(Fv);var Ha=D.createContext(null);Ha.displayName="DataRouter";var ei=D.createContext(null);ei.displayName="DataRouterState";D.createContext(!1);var xd=D.createContext({isTransitioning:!1});xd.displayName="ViewTransition";var Pv=D.createContext(new Map);Pv.displayName="Fetchers";var Iv=D.createContext(null);Iv.displayName="Await";var ze=D.createContext(null);ze.displayName="Navigation";var Bu=D.createContext(null);Bu.displayName="Location";var pe=D.createContext({outlet:null,matches:[],isDataRoute:!1});pe.displayName="Route";var Oc=D.createContext(null);Oc.displayName="RouteError";function ty(f,{relative:s}={}){bt(Ca(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:c}=D.useContext(ze),{hash:h,pathname:S,search:T}=xu(f,{relative:s}),z=S;return o!=="/"&&(z=S==="/"?o:Ie([o,S])),c.createHref({pathname:z,search:T,hash:h})}function Ca(){return D.useContext(Bu)!=null}function zl(){return bt(Ca(),"useLocation() may be used only in the context of a component."),D.useContext(Bu).location}var qd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yd(f){D.useContext(ze).static||D.useLayoutEffect(f)}function Ld(){let{isDataRoute:f}=D.useContext(pe);return f?vy():ey()}function ey(){bt(Ca(),"useNavigate() may be used only in the context of a component.");let f=D.useContext(Ha),{basename:s,navigator:o}=D.useContext(ze),{matches:c}=D.useContext(pe),{pathname:h}=zl(),S=JSON.stringify(Ac(c)),T=D.useRef(!1);return Yd(()=>{T.current=!0}),D.useCallback((p,m={})=>{if(Ae(T.current,qd),!T.current)return;if(typeof p=="number"){o.go(p);return}let A=zc(p,JSON.parse(S),h,m.relative==="path");f==null&&s!=="/"&&(A.pathname=A.pathname==="/"?s:Ie([s,A.pathname])),(m.replace?o.replace:o.push)(A,m.state,m)},[s,o,S,h,f])}var ly=D.createContext(null);function ay(f){let s=D.useContext(pe).outlet;return D.useMemo(()=>s&&D.createElement(ly.Provider,{value:f},s),[s,f])}function e0(){let{matches:f}=D.useContext(pe),s=f[f.length-1];return s?s.params:{}}function xu(f,{relative:s}={}){let{matches:o}=D.useContext(pe),{pathname:c}=zl(),h=JSON.stringify(Ac(o));return D.useMemo(()=>zc(f,JSON.parse(h),c,s==="path"),[f,h,c,s])}function uy(f,s){return Gd(f,s)}function Gd(f,s,o,c,h){var $;bt(Ca(),"useRoutes() may be used only in the context of a component.");let{navigator:S}=D.useContext(ze),{matches:T}=D.useContext(pe),z=T[T.length-1],p=z?z.params:{},m=z?z.pathname:"/",A=z?z.pathnameBase:"/",H=z&&z.route;{let X=H&&H.path||"";Xd(m,!H||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (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 N=zl(),q;if(s){let X=typeof s=="string"?Ua(s):s;bt(A==="/"||(($=X.pathname)==null?void 0:$.startsWith(A)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${A}" but pathname "${X.pathname}" was given in the \`location\` prop.`),q=X}else q=N;let V=q.pathname||"/",k=V;if(A!=="/"){let X=A.replace(/^\//,"").split("/");k="/"+V.replace(/^\//,"").split("/").slice(X.length).join("/")}let L=Hd(f,{pathname:k});Ae(H||L!=null,`No routes matched location "${q.pathname}${q.search}${q.hash}" `),Ae(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${q.pathname}${q.search}${q.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.`);let Z=ry(L&&L.map(X=>Object.assign({},X,{params:Object.assign({},p,X.params),pathname:Ie([A,S.encodeLocation?S.encodeLocation(X.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?A:Ie([A,S.encodeLocation?S.encodeLocation(X.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),T,o,c,h);return s&&Z?D.createElement(Bu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...q},navigationType:"POP"}},Z):Z}function ny(){let f=my(),s=kv(f)?`${f.status} ${f.statusText}`:f instanceof Error?f.message:JSON.stringify(f),o=f instanceof Error?f.stack:null,c="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:c},S={padding:"2px 4px",backgroundColor:c},T=null;return console.error("Error handled by React Router default ErrorBoundary:",f),T=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:S},"ErrorBoundary")," or"," ",D.createElement("code",{style:S},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},s),o?D.createElement("pre",{style:h},o):null,T)}var iy=D.createElement(ny,null),fy=class extends D.Component{constructor(f){super(f),this.state={location:f.location,revalidation:f.revalidation,error:f.error}}static getDerivedStateFromError(f){return{error:f}}static getDerivedStateFromProps(f,s){return s.location!==f.location||s.revalidation!=="idle"&&f.revalidation==="idle"?{error:f.error,location:f.location,revalidation:f.revalidation}:{error:f.error!==void 0?f.error:s.error,location:s.location,revalidation:f.revalidation||s.revalidation}}componentDidCatch(f,s){this.props.unstable_onError?this.props.unstable_onError(f,s):console.error("React Router caught the following error during render",f)}render(){return this.state.error!==void 0?D.createElement(pe.Provider,{value:this.props.routeContext},D.createElement(Oc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function cy({routeContext:f,match:s,children:o}){let c=D.useContext(Ha);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),D.createElement(pe.Provider,{value:f},o)}function ry(f,s=[],o=null,c=null,h=null){if(f==null){if(!o)return null;if(o.errors)f=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)f=o.matches;else return null}let S=f,T=o==null?void 0:o.errors;if(T!=null){let m=S.findIndex(A=>A.route.id&&(T==null?void 0:T[A.route.id])!==void 0);bt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(T).join(",")}`),S=S.slice(0,Math.min(S.length,m+1))}let z=!1,p=-1;if(o)for(let m=0;m=0?S=S.slice(0,p+1):S=[S[0]];break}}}return S.reduceRight((m,A,H)=>{let N,q=!1,V=null,k=null;o&&(N=T&&A.route.id?T[A.route.id]:void 0,V=A.route.errorElement||iy,z&&(p<0&&H===0?(Xd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,k=null):p===H&&(q=!0,k=A.route.hydrateFallbackElement||null)));let L=s.concat(S.slice(0,H+1)),Z=()=>{let $;return N?$=V:q?$=k:A.route.Component?$=D.createElement(A.route.Component,null):A.route.element?$=A.route.element:$=m,D.createElement(cy,{match:A,routeContext:{outlet:m,matches:L,isDataRoute:o!=null},children:$})};return o&&(A.route.ErrorBoundary||A.route.errorElement||H===0)?D.createElement(fy,{location:o.location,revalidation:o.revalidation,component:V,error:N,children:Z(),routeContext:{outlet:null,matches:L,isDataRoute:!0},unstable_onError:c}):Z()},null)}function _c(f){return`${f} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sy(f){let s=D.useContext(Ha);return bt(s,_c(f)),s}function oy(f){let s=D.useContext(ei);return bt(s,_c(f)),s}function dy(f){let s=D.useContext(pe);return bt(s,_c(f)),s}function Dc(f){let s=dy(f),o=s.matches[s.matches.length-1];return bt(o.route.id,`${f} can only be used on routes that contain a unique "id"`),o.route.id}function hy(){return Dc("useRouteId")}function my(){var c;let f=D.useContext(Oc),s=oy("useRouteError"),o=Dc("useRouteError");return f!==void 0?f:(c=s.errors)==null?void 0:c[o]}function vy(){let{router:f}=sy("useNavigate"),s=Dc("useNavigate"),o=D.useRef(!1);return Yd(()=>{o.current=!0}),D.useCallback(async(h,S={})=>{Ae(o.current,qd),o.current&&(typeof h=="number"?f.navigate(h):await f.navigate(h,{fromRouteId:s,...S}))},[f,s])}var Dd={};function Xd(f,s,o){!s&&!Dd[f]&&(Dd[f]=!0,Ae(!1,o))}D.memo(yy);function yy({routes:f,future:s,state:o,unstable_onError:c}){return Gd(f,void 0,o,c,s)}function l0({to:f,replace:s,state:o,relative:c}){bt(Ca()," may be used only in the context of a component.");let{static:h}=D.useContext(ze);Ae(!h," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:S}=D.useContext(pe),{pathname:T}=zl(),z=Ld(),p=zc(f,Ac(S),T,c==="path"),m=JSON.stringify(p);return D.useEffect(()=>{z(JSON.parse(m),{replace:s,state:o,relative:c})},[z,m,c,s,o]),null}function a0(f){return ay(f.context)}function gy(f){bt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Sy({basename:f="/",children:s=null,location:o,navigationType:c="POP",navigator:h,static:S=!1}){bt(!Ca(),"You cannot render a inside another . You should never have more than one in your app.");let T=f.replace(/^\/*/,"/"),z=D.useMemo(()=>({basename:T,navigator:h,static:S,future:{}}),[T,h,S]);typeof o=="string"&&(o=Ua(o));let{pathname:p="/",search:m="",hash:A="",state:H=null,key:N="default"}=o,q=D.useMemo(()=>{let V=tl(p,T);return V==null?null:{location:{pathname:V,search:m,hash:A,state:H,key:N},navigationType:c}},[T,p,m,A,H,N,c]);return Ae(q!=null,` is not able to match the URL "${p}${m}${A}" because it does not start with the basename, so the won't render anything.`),q==null?null:D.createElement(ze.Provider,{value:z},D.createElement(Bu.Provider,{children:s,value:q}))}function u0({children:f,location:s}){return uy(Tc(f),s)}function Tc(f,s=[]){let o=[];return D.Children.forEach(f,(c,h)=>{if(!D.isValidElement(c))return;let S=[...s,h];if(c.type===D.Fragment){o.push.apply(o,Tc(c.props.children,S));return}bt(c.type===gy,`[${typeof c.type=="string"?c.type:c.type.name}] is not a component. All component children of must be a or `),bt(!c.props.index||!c.props.children,"An index route cannot have child routes.");let T={id:c.props.id||S.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(T.children=Tc(c.props.children,S)),o.push(T)}),o}var Pn="get",In="application/x-www-form-urlencoded";function li(f){return f!=null&&typeof f.tagName=="string"}function py(f){return li(f)&&f.tagName.toLowerCase()==="button"}function by(f){return li(f)&&f.tagName.toLowerCase()==="form"}function Ey(f){return li(f)&&f.tagName.toLowerCase()==="input"}function Ty(f){return!!(f.metaKey||f.altKey||f.ctrlKey||f.shiftKey)}function Ry(f,s){return f.button===0&&(!s||s==="_self")&&!Ty(f)}var Fn=null;function Ay(){if(Fn===null)try{new FormData(document.createElement("form"),0),Fn=!1}catch{Fn=!0}return Fn}var zy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bc(f){return f!=null&&!zy.has(f)?(Ae(!1,`"${f}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${In}"`),null):f}function Oy(f,s){let o,c,h,S,T;if(by(f)){let z=f.getAttribute("action");c=z?tl(z,s):null,o=f.getAttribute("method")||Pn,h=bc(f.getAttribute("enctype"))||In,S=new FormData(f)}else if(py(f)||Ey(f)&&(f.type==="submit"||f.type==="image")){let z=f.form;if(z==null)throw new Error('Cannot submit a