@ottocode/web-ui 0.1.269 → 0.1.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +0,0 @@
1
- var JS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function og(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function PS(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var i=l.default;if(typeof i=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(l).forEach(function(o){var r=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:function(){return l[o]}})}),s}var To={exports:{}},fi={};var sm;function rg(){if(sm)return fi;sm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,r,h){var d=null;if(h!==void 0&&(d=""+h),r.key!==void 0&&(d=""+r.key),"key"in r){h={};for(var p in r)p!=="key"&&(h[p]=r[p])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:d,ref:r!==void 0?r:null,props:h}}return fi.Fragment=i,fi.jsx=s,fi.jsxs=s,fi}var cm;function fg(){return cm||(cm=1,To.exports=rg()),To.exports}var lt=fg(),Eo={exports:{}},st={};var om;function hg(){if(om)return st;om=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=b&&E[b]||E["@@iterator"],typeof E=="function"?E:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function L(E,H,K){this.props=E,this.context=H,this.refs=D,this.updater=K||M}L.prototype.isReactComponent={},L.prototype.setState=function(E,H){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,H,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=L.prototype;function X(E,H,K){this.props=E,this.context=H,this.refs=D,this.updater=K||M}var Y=X.prototype=new Q;Y.constructor=X,C(Y,L.prototype),Y.isPureReactComponent=!0;var I=Array.isArray;function J(){}var B={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function Z(E,H,K){var P=K.ref;return{$$typeof:l,type:E,key:H,ref:P!==void 0?P:null,props:K}}function it(E,H){return Z(E.type,H,E.props)}function nt(E){return typeof E=="object"&&E!==null&&E.$$typeof===l}function tt(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return H[K]})}var Nt=/\/+/g;function Ut(E,H){return typeof E=="object"&&E!==null&&E.key!=null?tt(""+E.key):H.toString(36)}function Ht(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(J,J):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function w(E,H,K,P,$){var rt=typeof E;(rt==="undefined"||rt==="boolean")&&(E=null);var vt=!1;if(E===null)vt=!0;else switch(rt){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(E.$$typeof){case l:case i:vt=!0;break;case S:return vt=E._init,w(vt(E._payload),H,K,P,$)}}if(vt)return $=$(E),vt=P===""?"."+Ut(E,0):P,I($)?(K="",vt!=null&&(K=vt.replace(Nt,"$&/")+"/"),w($,H,K,"",function(Pe){return Pe})):$!=null&&(nt($)&&($=it($,K+($.key==null||E&&E.key===$.key?"":(""+$.key).replace(Nt,"$&/")+"/")+vt)),H.push($)),1;vt=0;var qt=P===""?".":P+":";if(I(E))for(var Ct=0;Ct<E.length;Ct++)P=E[Ct],rt=qt+Ut(P,Ct),vt+=w(P,H,K,rt,$);else if(Ct=_(E),typeof Ct=="function")for(E=Ct.call(E),Ct=0;!(P=E.next()).done;)P=P.value,rt=qt+Ut(P,Ct++),vt+=w(P,H,K,rt,$);else if(rt==="object"){if(typeof E.then=="function")return w(Ht(E),H,K,P,$);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return vt}function V(E,H,K){if(E==null)return E;var P=[],$=0;return w(E,P,"","",function(rt){return H.call(K,rt,$++)}),P}function at(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(K){(E._status===0||E._status===-1)&&(E._status=1,E._result=K)},function(K){(E._status===0||E._status===-1)&&(E._status=2,E._result=K)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var St=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},_t={map:V,forEach:function(E,H,K){V(E,function(){H.apply(this,arguments)},K)},count:function(E){var H=0;return V(E,function(){H++}),H},toArray:function(E){return V(E,function(H){return H})||[]},only:function(E){if(!nt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return st.Activity=g,st.Children=_t,st.Component=L,st.Fragment=s,st.Profiler=r,st.PureComponent=X,st.StrictMode=o,st.Suspense=y,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,st.__COMPILER_RUNTIME={__proto__:null,c:function(E){return B.H.useMemoCache(E)}},st.cache=function(E){return function(){return E.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(E,H,K){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var P=C({},E.props),$=E.key;if(H!=null)for(rt in H.key!==void 0&&($=""+H.key),H)!G.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(P[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)P.children=K;else if(1<rt){for(var vt=Array(rt),qt=0;qt<rt;qt++)vt[qt]=arguments[qt+2];P.children=vt}return Z(E.type,$,P)},st.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:h,_context:E},E},st.createElement=function(E,H,K){var P,$={},rt=null;if(H!=null)for(P in H.key!==void 0&&(rt=""+H.key),H)G.call(H,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&($[P]=H[P]);var vt=arguments.length-2;if(vt===1)$.children=K;else if(1<vt){for(var qt=Array(vt),Ct=0;Ct<vt;Ct++)qt[Ct]=arguments[Ct+2];$.children=qt}if(E&&E.defaultProps)for(P in vt=E.defaultProps,vt)$[P]===void 0&&($[P]=vt[P]);return Z(E,rt,$)},st.createRef=function(){return{current:null}},st.forwardRef=function(E){return{$$typeof:p,render:E}},st.isValidElement=nt,st.lazy=function(E){return{$$typeof:S,_payload:{_status:-1,_result:E},_init:at}},st.memo=function(E,H){return{$$typeof:m,type:E,compare:H===void 0?null:H}},st.startTransition=function(E){var H=B.T,K={};B.T=K;try{var P=E(),$=B.S;$!==null&&$(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,St)}catch(rt){St(rt)}finally{H!==null&&K.types!==null&&(H.types=K.types),B.T=H}},st.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},st.use=function(E){return B.H.use(E)},st.useActionState=function(E,H,K){return B.H.useActionState(E,H,K)},st.useCallback=function(E,H){return B.H.useCallback(E,H)},st.useContext=function(E){return B.H.useContext(E)},st.useDebugValue=function(){},st.useDeferredValue=function(E,H){return B.H.useDeferredValue(E,H)},st.useEffect=function(E,H){return B.H.useEffect(E,H)},st.useEffectEvent=function(E){return B.H.useEffectEvent(E)},st.useId=function(){return B.H.useId()},st.useImperativeHandle=function(E,H,K){return B.H.useImperativeHandle(E,H,K)},st.useInsertionEffect=function(E,H){return B.H.useInsertionEffect(E,H)},st.useLayoutEffect=function(E,H){return B.H.useLayoutEffect(E,H)},st.useMemo=function(E,H){return B.H.useMemo(E,H)},st.useOptimistic=function(E,H){return B.H.useOptimistic(E,H)},st.useReducer=function(E,H,K){return B.H.useReducer(E,H,K)},st.useRef=function(E){return B.H.useRef(E)},st.useState=function(E){return B.H.useState(E)},st.useSyncExternalStore=function(E,H,K){return B.H.useSyncExternalStore(E,H,K)},st.useTransition=function(){return B.H.useTransition()},st.version="19.2.0",st}var rm;function Mi(){return rm||(rm=1,Eo.exports=hg()),Eo.exports}var k=Mi();const gi=og(k);var Mo={exports:{}},hi={},Oo={exports:{}},Co={};var fm;function dg(){return fm||(fm=1,(function(l){function i(w,V){var at=w.length;w.push(V);t:for(;0<at;){var St=at-1>>>1,_t=w[St];if(0<r(_t,V))w[St]=V,w[at]=_t,at=St;else break t}}function s(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var V=w[0],at=w.pop();if(at!==V){w[0]=at;t:for(var St=0,_t=w.length,E=_t>>>1;St<E;){var H=2*(St+1)-1,K=w[H],P=H+1,$=w[P];if(0>r(K,at))P<_t&&0>r($,K)?(w[St]=$,w[P]=at,St=P):(w[St]=K,w[H]=at,St=H);else if(P<_t&&0>r($,at))w[St]=$,w[P]=at,St=P;else break t}}return V}function r(w,V){var at=w.sortIndex-V.sortIndex;return at!==0?at:w.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var d=Date,p=d.now();l.unstable_now=function(){return d.now()-p}}var y=[],m=[],S=1,g=null,b=3,_=!1,M=!1,C=!1,D=!1,L=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Y(w){for(var V=s(m);V!==null;){if(V.callback===null)o(m);else if(V.startTime<=w)o(m),V.sortIndex=V.expirationTime,i(y,V);else break;V=s(m)}}function I(w){if(C=!1,Y(w),!M)if(s(y)!==null)M=!0,J||(J=!0,tt());else{var V=s(m);V!==null&&Ht(I,V.startTime-w)}}var J=!1,B=-1,G=5,Z=-1;function it(){return D?!0:!(l.unstable_now()-Z<G)}function nt(){if(D=!1,J){var w=l.unstable_now();Z=w;var V=!0;try{t:{M=!1,C&&(C=!1,Q(B),B=-1),_=!0;var at=b;try{e:{for(Y(w),g=s(y);g!==null&&!(g.expirationTime>w&&it());){var St=g.callback;if(typeof St=="function"){g.callback=null,b=g.priorityLevel;var _t=St(g.expirationTime<=w);if(w=l.unstable_now(),typeof _t=="function"){g.callback=_t,Y(w),V=!0;break e}g===s(y)&&o(y),Y(w)}else o(y);g=s(y)}if(g!==null)V=!0;else{var E=s(m);E!==null&&Ht(I,E.startTime-w),V=!1}}break t}finally{g=null,b=at,_=!1}V=void 0}}finally{V?tt():J=!1}}}var tt;if(typeof X=="function")tt=function(){X(nt)};else if(typeof MessageChannel<"u"){var Nt=new MessageChannel,Ut=Nt.port2;Nt.port1.onmessage=nt,tt=function(){Ut.postMessage(null)}}else tt=function(){L(nt,0)};function Ht(w,V){B=L(function(){w(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(w){w.callback=null},l.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<w?Math.floor(1e3/w):5},l.unstable_getCurrentPriorityLevel=function(){return b},l.unstable_next=function(w){switch(b){case 1:case 2:case 3:var V=3;break;default:V=b}var at=b;b=V;try{return w()}finally{b=at}},l.unstable_requestPaint=function(){D=!0},l.unstable_runWithPriority=function(w,V){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var at=b;b=w;try{return V()}finally{b=at}},l.unstable_scheduleCallback=function(w,V,at){var St=l.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?St+at:St):at=St,w){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=at+_t,w={id:S++,callback:V,priorityLevel:w,startTime:at,expirationTime:_t,sortIndex:-1},at>St?(w.sortIndex=at,i(m,w),s(y)===null&&w===s(m)&&(C?(Q(B),B=-1):C=!0,Ht(I,at-St))):(w.sortIndex=_t,i(y,w),M||_||(M=!0,J||(J=!0,tt()))),w},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(w){var V=b;return function(){var at=b;b=V;try{return w.apply(this,arguments)}finally{b=at}}}})(Co)),Co}var hm;function mg(){return hm||(hm=1,Oo.exports=dg()),Oo.exports}var Ao={exports:{}},ae={};var dm;function yg(){if(dm)return ae;dm=1;var l=Mi();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(y,m,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:y,containerInfo:m,implementation:S}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(y,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return h(y,m,null,S)},ae.flushSync=function(y){var m=d.T,S=o.p;try{if(d.T=null,o.p=2,y)return y()}finally{d.T=m,o.p=S,o.d.f()}},ae.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(y,m))},ae.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},ae.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var S=m.as,g=p(S,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?o.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:_}):S==="script"&&o.d.X(y,{crossOrigin:g,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ae.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=p(m.as,m.crossOrigin);o.d.M(y,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(y)},ae.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,g=p(S,m.crossOrigin);o.d.L(y,S,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ae.preloadModule=function(y,m){if(typeof y=="string")if(m){var S=p(m.as,m.crossOrigin);o.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(y)},ae.requestFormReset=function(y){o.d.r(y)},ae.unstable_batchedUpdates=function(y,m){return y(m)},ae.useFormState=function(y,m,S){return d.H.useFormState(y,m,S)},ae.useFormStatus=function(){return d.H.useHostTransitionStatus()},ae.version="19.2.0",ae}var mm;function ty(){if(mm)return Ao.exports;mm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Ao.exports=yg(),Ao.exports}var ym;function vg(){if(ym)return hi;ym=1;var l=mg(),i=Mi(),s=ty();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function d(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 p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(h(t)!==t)throw Error(o(188))}function m(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return y(u),t;if(c===a)return y(u),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=c;else{for(var f=!1,v=u.child;v;){if(v===n){f=!0,n=u,a=c;break}if(v===a){f=!0,a=u,n=c;break}v=v.sibling}if(!f){for(v=c.child;v;){if(v===n){f=!0,n=c,a=u;break}if(v===a){f=!0,a=c,n=u;break}v=v.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),nt=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=nt&&t[nt]||t["@@iterator"],typeof t=="function"?t:null)}var Nt=Symbol.for("react.client.reference");function Ut(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Nt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case L:return"Profiler";case D:return"StrictMode";case I:return"Suspense";case J:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case X:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case Y:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return e=t.displayName||null,e!==null?e:Ut(t.type)||"Memo";case G:e=t._payload,t=t._init;try{return Ut(t(e))}catch{}}return null}var Ht=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},St=[],_t=-1;function E(t){return{current:t}}function H(t){0>_t||(t.current=St[_t],St[_t]=null,_t--)}function K(t,e){_t++,St[_t]=t.current,t.current=e}var P=E(null),$=E(null),rt=E(null),vt=E(null);function qt(t,e){switch(K(rt,e),K($,t),K(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?zd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=zd(e),t=Dd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(P),K(P,t)}function Ct(){H(P),H($),H(rt)}function Pe(t){t.memoizedState!==null&&K(vt,t);var e=P.current,n=Dd(e,t.type);e!==n&&(K($,t),K(P,n))}function Fe(t){$.current===t&&(H(P),H($)),vt.current===t&&(H(vt),si._currentValue=at)}var gn,vl;function Ye(t){if(gn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);gn=e&&e[1]||"",vl=-1<n.stack.indexOf(`
2
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+gn+t+vl}var pl=!1;function Ea(t,e){if(!t||pl)return"";pl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(U){var z=U}Reflect.construct(t,[],q)}else{try{q.call()}catch(U){z=U}t.call(q.prototype)}}else{try{throw Error()}catch(U){z=U}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],v=c[1];if(f&&v){var R=f.split(`
4
- `),x=v.split(`
5
- `);for(u=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(a===R.length||u===x.length)for(a=R.length-1,u=x.length-1;1<=a&&0<=u&&R[a]!==x[u];)u--;for(;1<=a&&0<=u;a--,u--)if(R[a]!==x[u]){if(a!==1||u!==1)do if(a--,u--,0>u||R[a]!==x[u]){var N=`
6
- `+R[a].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=a&&0<=u);break}}}finally{pl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ye(n):""}function Oi(t,e){switch(t.tag){case 26:case 27:case 5:return Ye(t.type);case 16:return Ye("Lazy");case 13:return t.child!==e&&e!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return Ea(t.type,!1);case 11:return Ea(t.type.render,!1);case 1:return Ea(t.type,!0);case 31:return Ye("Activity");default:return""}}function ke(t){try{var e="",n=null;do e+=Oi(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
- Error generating stack: `+a.message+`
8
- `+a.stack}}var kn=Object.prototype.hasOwnProperty,je=l.unstable_scheduleCallback,gl=l.unstable_cancelCallback,Ci=l.unstable_shouldYield,os=l.unstable_requestPaint,ne=l.unstable_now,xt=l.unstable_getCurrentPriorityLevel,kt=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ma=l.unstable_NormalPriority,Vy=l.unstable_LowPriority,or=l.unstable_IdlePriority,Ky=l.log,Zy=l.unstable_setDisableYieldValue,Sl=null,ye=null;function Sn(t){if(typeof Ky=="function"&&Zy(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Sl,t)}catch{}}var ve=Math.clz32?Math.clz32:Fy,Jy=Math.log,Py=Math.LN2;function Fy(t){return t>>>=0,t===0?32:31-(Jy(t)/Py|0)|0}var Ai=256,xi=262144,zi=4194304;function Wn(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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;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 Di(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?u=Wn(a):(f&=v,f!==0?u=Wn(f):n||(n=v&~t,n!==0&&(u=Wn(n))))):(v=a&~c,v!==0?u=Wn(v):f!==0?u=Wn(f):n||(n=a&~t,n!==0&&(u=Wn(n)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:u}function bl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ky(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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 rr(){var t=zi;return zi<<=1,(zi&62914560)===0&&(zi=4194304),t}function rs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function _l(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Wy(t,e,n,a,u,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var N=31-ve(n),q=1<<N;v[N]=0,R[N]=-1;var z=x[N];if(z!==null)for(x[N]=null,N=0;N<z.length;N++){var U=z[N];U!==null&&(U.lane&=-536870913)}n&=~q}a!==0&&fr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function fr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ve(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function hr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ve(n),u=1<<a;u&e|t[a]&e&&(t[a]|=e),n&=~u}}function dr(t,e){var n=e&-e;return n=(n&42)!==0?1:fs(n),(n&(t.suspendedLanes|e))!==0?0:n}function fs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function hs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function mr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:tm(t.type))}function yr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var bn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+bn,se="__reactProps$"+bn,Oa="__reactContainer$"+bn,ds="__reactEvents$"+bn,Iy="__reactListeners$"+bn,$y="__reactHandles$"+bn,vr="__reactResources$"+bn,Rl="__reactMarker$"+bn;function ms(t){delete t[Wt],delete t[se],delete t[ds],delete t[Iy],delete t[$y]}function Ca(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Hd(t);t!==null;){if(n=t[Wt])return n;t=Hd(t)}return e}t=n,n=t.parentNode}return null}function Aa(t){if(t=t[Wt]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Tl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function xa(t){var e=t[vr];return e||(e=t[vr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[Rl]=!0}var pr=new Set,gr={};function In(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(gr[t]=e,t=0;t<e.length;t++)pr.add(e[t])}var tv=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]*$"),Sr={},br={};function ev(t){return kn.call(br,t)?!0:kn.call(Sr,t)?!1:tv.test(t)?br[t]=!0:(Sr[t]=!0,!1)}function Ui(t,e,n){if(ev(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){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,""+n)}}function Li(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function We(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function _r(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function nv(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ys(t){if(!t._valueTracker){var e=_r(t)?"checked":"value";t._valueTracker=nv(t,e,""+t[e])}}function Rr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=_r(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function wi(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 av=/[\n"\\]/g;function Ce(t){return t.replace(av,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vs(t,e,n,a,u,c,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?ps(t,f,Oe(e)):n!=null?ps(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Oe(v):t.removeAttribute("name")}function Tr(t,e,n,a,u,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){ys(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=v?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),ys(t)}function ps(t,e,n){e==="number"&&wi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Da(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Er(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Mr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Ht(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),ys(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var lv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Or(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||lv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Cr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&n[u]!==a&&Or(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&Or(t,c,e[c])}function gs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 iv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),uv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ni(t){return uv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var Ss=null;function bs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,wa=null;function Ar(t){var e=Aa(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(vs(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var u=a[se]||null;if(!u)throw Error(o(90));vs(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Rr(a)}break t;case"textarea":Er(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var _s=!1;function xr(t,e,n){if(_s)return t(e,n);_s=!0;try{var a=t(e);return a}finally{if(_s=!1,(La!==null||wa!==null)&&(Ru(),La&&(e=La,t=wa,wa=La=null,Ar(e),t)))for(e=0;e<t.length;e++)Ar(t[e])}}function El(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var $e=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rs=!1;if($e)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Rs=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Rs=!1}var _n=null,Ts=null,Bi=null;function zr(){if(Bi)return Bi;var t,e=Ts,n=e.length,a,u="value"in _n?_n.value:_n.textContent,c=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===u[c-a];a++);return Bi=u.slice(t,1<a?1-a:void 0)}function ji(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Hi(){return!0}function Dr(){return!1}function ce(t){function e(n,a,u,c,f){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hi:Dr,this.isPropagationStopped=Dr,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),e}var $n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=ce($n),Ol=g({},$n,{view:0,detail:0}),sv=ce(Ol),Es,Ms,Cl,Qi=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cs,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Cl&&(Cl&&t.type==="mousemove"?(Es=t.screenX-Cl.screenX,Ms=t.screenY-Cl.screenY):Ms=Es=0,Cl=t),Es)},movementY:function(t){return"movementY"in t?t.movementY:Ms}}),Ur=ce(Qi),cv=g({},Qi,{dataTransfer:0}),ov=ce(cv),rv=g({},Ol,{relatedTarget:0}),Os=ce(rv),fv=g({},$n,{animationName:0,elapsedTime:0,pseudoElement:0}),hv=ce(fv),dv=g({},$n,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),mv=ce(dv),yv=g({},$n,{data:0}),Lr=ce(yv),vv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gv[t])?!!e[t]:!1}function Cs(){return Sv}var bv=g({},Ol,{key:function(t){if(t.key){var e=vv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?pv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cs,charCode:function(t){return t.type==="keypress"?ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),_v=ce(bv),Rv=g({},Qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wr=ce(Rv),Tv=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cs}),Ev=ce(Tv),Mv=g({},$n,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ov=ce(Mv),Cv=g({},Qi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Av=ce(Cv),xv=g({},$n,{newState:0,oldState:0}),zv=ce(xv),Dv=[9,13,27,32],As=$e&&"CompositionEvent"in window,Al=null;$e&&"documentMode"in document&&(Al=document.documentMode);var Uv=$e&&"TextEvent"in window&&!Al,Nr=$e&&(!As||Al&&8<Al&&11>=Al),Br=" ",jr=!1;function Hr(t,e){switch(t){case"keyup":return Dv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Na=!1;function Lv(t,e){switch(t){case"compositionend":return qr(e);case"keypress":return e.which!==32?null:(jr=!0,Br);case"textInput":return t=e.data,t===Br&&jr?null:t;default:return null}}function wv(t,e){if(Na)return t==="compositionend"||!As&&Hr(t,e)?(t=zr(),Bi=Ts=_n=null,Na=!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.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nr&&e.locale!=="ko"?null:e.data;default:return null}}var Nv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Nv[t.type]:e==="textarea"}function Yr(t,e,n,a){La?wa?wa.push(a):wa=[a]:La=a,e=xu(e,"onChange"),0<e.length&&(n=new qi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var xl=null,zl=null;function Bv(t){Ed(t,0)}function Yi(t){var e=Tl(t);if(Rr(e))return t}function Gr(t,e){if(t==="change")return e}var Xr=!1;if($e){var xs;if($e){var zs="oninput"in document;if(!zs){var Vr=document.createElement("div");Vr.setAttribute("oninput","return;"),zs=typeof Vr.oninput=="function"}xs=zs}else xs=!1;Xr=xs&&(!document.documentMode||9<document.documentMode)}function Kr(){xl&&(xl.detachEvent("onpropertychange",Zr),zl=xl=null)}function Zr(t){if(t.propertyName==="value"&&Yi(zl)){var e=[];Yr(e,zl,t,bs(t)),xr(Bv,e)}}function jv(t,e,n){t==="focusin"?(Kr(),xl=e,zl=n,xl.attachEvent("onpropertychange",Zr)):t==="focusout"&&Kr()}function Hv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yi(zl)}function qv(t,e){if(t==="click")return Yi(e)}function Qv(t,e){if(t==="input"||t==="change")return Yi(e)}function Yv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:Yv;function Dl(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!kn.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function Jr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pr(t,e){var n=Jr(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Jr(n)}}function Fr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Fr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function kr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=wi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=wi(t.document)}return e}function Ds(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")}var Gv=$e&&"documentMode"in document&&11>=document.documentMode,Ba=null,Us=null,Ul=null,Ls=!1;function Wr(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ls||Ba==null||Ba!==wi(a)||(a=Ba,"selectionStart"in a&&Ds(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}),Ul&&Dl(Ul,a)||(Ul=a,a=xu(Us,"onSelect"),0<a.length&&(e=new qi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ba)))}function ta(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ja={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},ws={},Ir={};$e&&(Ir=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function ea(t){if(ws[t])return ws[t];if(!ja[t])return t;var e=ja[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ir)return ws[t]=e[n];return t}var $r=ea("animationend"),tf=ea("animationiteration"),ef=ea("animationstart"),Xv=ea("transitionrun"),Vv=ea("transitionstart"),Kv=ea("transitioncancel"),nf=ea("transitionend"),af=new Map,Ns="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ns.push("scrollEnd");function He(t,e){af.set(t,e),In(e,[t])}var Gi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ha=0,Bs=0;function Xi(){for(var t=Ha,e=Bs=Ha=0;e<t;){var n=Ae[e];Ae[e++]=null;var a=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}c!==0&&lf(n,u,c)}}function Vi(t,e,n,a){Ae[Ha++]=t,Ae[Ha++]=e,Ae[Ha++]=n,Ae[Ha++]=a,Bs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function js(t,e,n,a){return Vi(t,e,n,a),Ki(t)}function na(t,e){return Vi(t,null,null,e),Ki(t)}function lf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var u=!1,c=t.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-ve(n),t=c.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=n|536870912),c):null}function Ki(t){if(50<ti)throw ti=0,Zc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qa={};function Zv(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 ge(t,e,n,a){return new Zv(t,e,n,a)}function Hs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function uf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Zi(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")Hs(t)&&(f=1);else if(typeof t=="string")f=Wp(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ge(31,n,e,u),t.elementType=Z,t.lanes=c,t;case C:return aa(n.children,u,c,e);case D:f=8,u|=24;break;case L:return t=ge(12,n,e,u|2),t.elementType=L,t.lanes=c,t;case I:return t=ge(13,n,e,u),t.elementType=I,t.lanes=c,t;case J:return t=ge(19,n,e,u),t.elementType=J,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case Q:f=9;break t;case Y:f=11;break t;case B:f=14;break t;case G:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ge(f,n,e,u),e.elementType=t,e.type=a,e.lanes=c,e}function aa(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function qs(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function sf(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Qs(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var cf=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=cf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ke(e)},cf.set(t,e),e)}return{value:t,source:e,stack:ke(e)}}var Qa=[],Ya=0,Ji=null,Ll=0,ze=[],De=0,Rn=null,Xe=1,Ve="";function en(t,e){Qa[Ya++]=Ll,Qa[Ya++]=Ji,Ji=t,Ll=e}function of(t,e,n){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=Rn,Rn=t;var a=Xe;t=Ve;var u=32-ve(a)-1;a&=~(1<<u),n+=1;var c=32-ve(e)+u;if(30<c){var f=u-u%5;c=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Xe=1<<32-ve(e)+u|n<<u|a,Ve=c+t}else Xe=1<<c|n<<u|a,Ve=t}function Ys(t){t.return!==null&&(en(t,1),of(t,1,0))}function Gs(t){for(;t===Ji;)Ji=Qa[--Ya],Qa[Ya]=null,Ll=Qa[--Ya],Qa[Ya]=null;for(;t===Rn;)Rn=ze[--De],ze[De]=null,Ve=ze[--De],ze[De]=null,Xe=ze[--De],ze[De]=null}function rf(t,e){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=Rn,Xe=e.id,Ve=e.overflow,Rn=t}var It=null,zt=null,yt=!1,Tn=null,Ue=!1,Xs=Error(o(519));function En(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(xe(e,t)),Xs}function ff(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<ni.length;n++)ht(ni[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Tr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Mr(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Ad(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||En(t,!0)}function hf(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:It=It.return}}function Ga(t){if(t!==It)return!1;if(!yt)return hf(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||so(t.type,t.memoizedProps)),n=!n),n&&zt&&En(t),hf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=jd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=jd(t)}else e===27?(e=zt,Hn(t.type)?(t=ho,ho=null,zt=t):zt=e):zt=It?we(t.stateNode.nextSibling):null;return!0}function la(){zt=It=null,yt=!1}function Vs(){var t=Tn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Tn=null),t}function wl(t){Tn===null?Tn=[t]:Tn.push(t)}var Ks=E(null),ia=null,nn=null;function Mn(t,e,n){K(Ks,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Ks.current,H(Ks)}function Zs(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Js(t,e,n,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var f=u.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=u;for(var R=0;R<e.length;R++)if(v.context===e[R]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Zs(c.return,n,t),a||(f=null);break t}c=v.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Zs(f,n,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Xa(t,e,n,a){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=u.type;pe(u.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(u===vt.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(si):t=[si])}u=u.return}t!==null&&Js(e,t,n,a),e.flags|=262144}function Pi(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ua(t){ia=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return df(ia,t)}function Fi(t,e){return ia===null&&ua(t),df(t,e)}function df(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(o(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var Jv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Pv=l.unstable_scheduleCallback,Fv=l.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ps(){return{controller:new Jv,data:new Map,refCount:0}}function Nl(t){t.refCount--,t.refCount===0&&Pv(Fv,function(){t.controller.abort()})}var Bl=null,Fs=0,Va=0,Ka=null;function kv(t,e){if(Bl===null){var n=Bl=[];Fs=0,Va=Ic(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Fs++,e.then(mf,mf),e}function mf(){if(--Fs===0&&Bl!==null){Ka!==null&&(Ka.status="fulfilled");var t=Bl;Bl=null,Va=0,Ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Wv(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var yf=w.S;w.S=function(t,e){Ih=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&kv(t,e),yf!==null&&yf(t,e)};var sa=E(null);function ks(){var t=sa.current;return t!==null?t:At.pooledCache}function ki(t,e){e===null?K(sa,sa.current):K(sa,e.pool)}function vf(){var t=ks();return t===null?null:{parent:Gt._currentValue,pool:t}}var Za=Error(o(460)),Ws=Error(o(474)),Wi=Error(o(542)),Ii={then:function(){}};function pf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function gf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bf(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=At,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,bf(t),t}throw oa=e,Za}}function ca(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(oa=n,Za):n}}var oa=null;function Sf(){if(oa===null)throw Error(o(459));var t=oa;return oa=null,t}function bf(t){if(t===Za||t===Wi)throw Error(o(483))}var Ja=null,jl=0;function $i(t){var e=jl;return jl+=1,Ja===null&&(Ja=[]),gf(Ja,t,e)}function Hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function tu(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function _f(t){function e(O,T){if(t){var A=O.deletions;A===null?(O.deletions=[T],O.flags|=16):A.push(T)}}function n(O,T){if(!t)return null;for(;T!==null;)e(O,T),T=T.sibling;return null}function a(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function u(O,T){return O=tn(O,T),O.index=0,O.sibling=null,O}function c(O,T,A){return O.index=A,t?(A=O.alternate,A!==null?(A=A.index,A<T?(O.flags|=67108866,T):A):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function v(O,T,A,j){return T===null||T.tag!==6?(T=qs(A,O.mode,j),T.return=O,T):(T=u(T,A),T.return=O,T)}function R(O,T,A,j){var et=A.type;return et===C?N(O,T,A.props.children,j,A.key):T!==null&&(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===G&&ca(et)===T.type)?(T=u(T,A.props),Hl(T,A),T.return=O,T):(T=Zi(A.type,A.key,A.props,null,O.mode,j),Hl(T,A),T.return=O,T)}function x(O,T,A,j){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=Qs(A,O.mode,j),T.return=O,T):(T=u(T,A.children||[]),T.return=O,T)}function N(O,T,A,j,et){return T===null||T.tag!==7?(T=aa(A,O.mode,j,et),T.return=O,T):(T=u(T,A),T.return=O,T)}function q(O,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=qs(""+T,O.mode,A),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return A=Zi(T.type,T.key,T.props,null,O.mode,A),Hl(A,T),A.return=O,A;case M:return T=Qs(T,O.mode,A),T.return=O,T;case G:return T=ca(T),q(O,T,A)}if(Ht(T)||tt(T))return T=aa(T,O.mode,A,null),T.return=O,T;if(typeof T.then=="function")return q(O,$i(T),A);if(T.$$typeof===X)return q(O,Fi(O,T),A);tu(O,T)}return null}function z(O,T,A,j){var et=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return et!==null?null:v(O,T,""+A,j);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===et?R(O,T,A,j):null;case M:return A.key===et?x(O,T,A,j):null;case G:return A=ca(A),z(O,T,A,j)}if(Ht(A)||tt(A))return et!==null?null:N(O,T,A,j,null);if(typeof A.then=="function")return z(O,T,$i(A),j);if(A.$$typeof===X)return z(O,T,Fi(O,A),j);tu(O,A)}return null}function U(O,T,A,j,et){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return O=O.get(A)||null,v(T,O,""+j,et);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return O=O.get(j.key===null?A:j.key)||null,R(T,O,j,et);case M:return O=O.get(j.key===null?A:j.key)||null,x(T,O,j,et);case G:return j=ca(j),U(O,T,A,j,et)}if(Ht(j)||tt(j))return O=O.get(A)||null,N(T,O,j,et,null);if(typeof j.then=="function")return U(O,T,A,$i(j),et);if(j.$$typeof===X)return U(O,T,A,Fi(T,j),et);tu(T,j)}return null}function F(O,T,A,j){for(var et=null,pt=null,W=T,ot=T=0,mt=null;W!==null&&ot<A.length;ot++){W.index>ot?(mt=W,W=null):mt=W.sibling;var gt=z(O,W,A[ot],j);if(gt===null){W===null&&(W=mt);break}t&&W&&gt.alternate===null&&e(O,W),T=c(gt,T,ot),pt===null?et=gt:pt.sibling=gt,pt=gt,W=mt}if(ot===A.length)return n(O,W),yt&&en(O,ot),et;if(W===null){for(;ot<A.length;ot++)W=q(O,A[ot],j),W!==null&&(T=c(W,T,ot),pt===null?et=W:pt.sibling=W,pt=W);return yt&&en(O,ot),et}for(W=a(W);ot<A.length;ot++)mt=U(W,O,ot,A[ot],j),mt!==null&&(t&&mt.alternate!==null&&W.delete(mt.key===null?ot:mt.key),T=c(mt,T,ot),pt===null?et=mt:pt.sibling=mt,pt=mt);return t&&W.forEach(function(Xn){return e(O,Xn)}),yt&&en(O,ot),et}function ut(O,T,A,j){if(A==null)throw Error(o(151));for(var et=null,pt=null,W=T,ot=T=0,mt=null,gt=A.next();W!==null&&!gt.done;ot++,gt=A.next()){W.index>ot?(mt=W,W=null):mt=W.sibling;var Xn=z(O,W,gt.value,j);if(Xn===null){W===null&&(W=mt);break}t&&W&&Xn.alternate===null&&e(O,W),T=c(Xn,T,ot),pt===null?et=Xn:pt.sibling=Xn,pt=Xn,W=mt}if(gt.done)return n(O,W),yt&&en(O,ot),et;if(W===null){for(;!gt.done;ot++,gt=A.next())gt=q(O,gt.value,j),gt!==null&&(T=c(gt,T,ot),pt===null?et=gt:pt.sibling=gt,pt=gt);return yt&&en(O,ot),et}for(W=a(W);!gt.done;ot++,gt=A.next())gt=U(W,O,ot,gt.value,j),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ot:gt.key),T=c(gt,T,ot),pt===null?et=gt:pt.sibling=gt,pt=gt);return t&&W.forEach(function(cg){return e(O,cg)}),yt&&en(O,ot),et}function Ot(O,T,A,j){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var et=A.key;T!==null;){if(T.key===et){if(et=A.type,et===C){if(T.tag===7){n(O,T.sibling),j=u(T,A.props.children),j.return=O,O=j;break t}}else if(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===G&&ca(et)===T.type){n(O,T.sibling),j=u(T,A.props),Hl(j,A),j.return=O,O=j;break t}n(O,T);break}else e(O,T);T=T.sibling}A.type===C?(j=aa(A.props.children,O.mode,j,A.key),j.return=O,O=j):(j=Zi(A.type,A.key,A.props,null,O.mode,j),Hl(j,A),j.return=O,O=j)}return f(O);case M:t:{for(et=A.key;T!==null;){if(T.key===et)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){n(O,T.sibling),j=u(T,A.children||[]),j.return=O,O=j;break t}else{n(O,T);break}else e(O,T);T=T.sibling}j=Qs(A,O.mode,j),j.return=O,O=j}return f(O);case G:return A=ca(A),Ot(O,T,A,j)}if(Ht(A))return F(O,T,A,j);if(tt(A)){if(et=tt(A),typeof et!="function")throw Error(o(150));return A=et.call(A),ut(O,T,A,j)}if(typeof A.then=="function")return Ot(O,T,$i(A),j);if(A.$$typeof===X)return Ot(O,T,Fi(O,A),j);tu(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(n(O,T.sibling),j=u(T,A),j.return=O,O=j):(n(O,T),j=qs(A,O.mode,j),j.return=O,O=j),f(O)):n(O,T)}return function(O,T,A,j){try{jl=0;var et=Ot(O,T,A,j);return Ja=null,et}catch(W){if(W===Za||W===Wi)throw W;var pt=ge(29,W,null,O.mode);return pt.lanes=j,pt.return=O,pt}}}var ra=_f(!0),Rf=_f(!1),On=!1;function Is(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $s(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(bt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Ki(t),lf(t,null,n),e}return Vi(t,a,e,n),Ki(t)}function ql(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hr(t,n)}}function tc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?u=c=e:c=c.next=e}else u=c=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var ec=!1;function Ql(){if(ec){var t=Ka;if(t!==null)throw t}}function Yl(t,e,n,a){ec=!1;var u=t.updateQueue;On=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var R=v,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var N=t.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==f&&(v===null?N.firstBaseUpdate=x:v.next=x,N.lastBaseUpdate=R))}if(c!==null){var q=u.baseState;f=0,N=x=R=null,v=c;do{var z=v.lane&-536870913,U=z!==v.lane;if(U?(dt&z)===z:(a&z)===z){z!==0&&z===Va&&(ec=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var F=t,ut=v;z=e;var Ot=n;switch(ut.tag){case 1:if(F=ut.payload,typeof F=="function"){q=F.call(Ot,q,z);break t}q=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ut.payload,z=typeof F=="function"?F.call(Ot,q,z):F,z==null)break t;q=g({},q,z);break t;case 2:On=!0}}z=v.callback,z!==null&&(t.flags|=64,U&&(t.flags|=8192),U=u.callbacks,U===null?u.callbacks=[z]:U.push(z))}else U={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(x=N=U,R=q):N=N.next=U,f|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;U=v,v=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);N===null&&(R=q),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),Ln|=f,t.lanes=f,t.memoizedState=q}}function Tf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Ef(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Tf(n[t],e)}var Pa=E(null),eu=E(0);function Mf(t,e){t=dn,K(eu,t),K(Pa,e),dn=t|e.baseLanes}function nc(){K(eu,dn),K(Pa,Pa.current)}function ac(){dn=eu.current,H(Pa),H(eu)}var Se=E(null),Le=null;function xn(t){var e=t.alternate;K(Qt,Qt.current&1),K(Se,t),Le===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Le=t)}function lc(t){K(Qt,Qt.current),K(Se,t),Le===null&&(Le=t)}function Of(t){t.tag===22?(K(Qt,Qt.current),K(Se,t),Le===null&&(Le=t)):zn()}function zn(){K(Qt,Qt.current),K(Se,Se.current)}function be(t){H(Se),Le===t&&(Le=null),H(Qt)}var Qt=E(0);function nu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ro(n)||fo(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)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 ln=0,ct=null,Et=null,Xt=null,au=!1,Fa=!1,fa=!1,lu=0,Gl=0,ka=null,Iv=0;function Bt(){throw Error(o(321))}function ic(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function uc(t,e,n,a,u,c){return ln=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?oh:_c,fa=!1,c=n(a,u),fa=!1,Fa&&(c=Af(e,n,a,u)),Cf(t),c}function Cf(t){w.H=Kl;var e=Et!==null&&Et.next!==null;if(ln=0,Xt=Et=ct=null,au=!1,Gl=0,ka=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&Pi(t)&&(Vt=!0))}function Af(t,e,n,a){ct=t;var u=0;do{if(Fa&&(ka=null),Gl=0,Fa=!1,25<=u)throw Error(o(301));if(u+=1,Xt=Et=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}w.H=rh,c=e(n,a)}while(Fa);return c}function $v(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?Xl(e):e,t=t.useState()[0],(Et!==null?Et.memoizedState:null)!==t&&(ct.flags|=1024),e}function sc(){var t=lu!==0;return lu=0,t}function cc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function oc(t){if(au){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}au=!1}ln=0,Xt=Et=ct=null,Fa=!1,Gl=lu=0,ka=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Et===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Et.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Et=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Et=t,t={memoizedState:Et.memoizedState,baseState:Et.baseState,baseQueue:Et.baseQueue,queue:Et.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function iu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(t){var e=Gl;return Gl+=1,ka===null&&(ka=[]),t=gf(ka,t,e),e=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?oh:_c),t}function uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xl(t);if(t.$$typeof===X)return $t(t)}throw Error(o(438,String(t)))}function rc(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=iu(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=it;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function su(t){var e=Yt();return fc(e,Et,t)}function fc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var u=t.baseQueue,c=a.pending;if(c!==null){if(u!==null){var f=u.next;u.next=c.next,c.next=f}e.baseQueue=u=c,a.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var v=f=null,R=null,x=e,N=!1;do{var q=x.lane&-536870913;if(q!==x.lane?(dt&q)===q:(ln&q)===q){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),q===Va&&(N=!0);else if((ln&z)===z){x=x.next,z===Va&&(N=!0);continue}else q={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=q,f=c):R=R.next=q,ct.lanes|=z,Ln|=z;q=x.action,fa&&n(c,q),c=x.hasEagerState?x.eagerState:n(c,q)}else z={lane:q,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=z,f=c):R=R.next=z,ct.lanes|=q,Ln|=q;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=v,!pe(c,t.memoizedState)&&(Vt=!0,N&&(n=Ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,a.lastRenderedState=c}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function hc(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,u=n.pending,c=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do c=t(c,f.action),f=f.next;while(f!==u);pe(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function xf(t,e,n){var a=ct,u=Yt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!pe((Et||u).memoizedState,n);if(f&&(u.memoizedState=n,Vt=!0),u=u.queue,yc(Uf.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Wa(9,{destroy:void 0},Df.bind(null,a,u,n,e),null),At===null)throw Error(o(349));c||(ln&127)!==0||zf(a,e,n)}return n}function zf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=iu(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Df(t,e,n,a){e.value=n,e.getSnapshot=a,Lf(e)&&wf(t)}function Uf(t,e,n){return n(function(){Lf(e)&&wf(t)})}function Lf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function wf(t){var e=na(t,2);e!==null&&de(e,t,2)}function dc(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),fa){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Nf(t,e,n,a){return t.baseState=n,fc(t,Et,typeof a=="function"?a:un)}function tp(t,e,n,a,u){if(ru(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};w.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,Bf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function Bf(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var c=w.T,f={};w.T=f;try{var v=n(u,a),R=w.S;R!==null&&R(f,v),jf(t,e,v)}catch(x){mc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),w.T=c}}else try{c=n(u,a),jf(t,e,c)}catch(x){mc(t,e,x)}}function jf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Hf(t,e,a)},function(a){return mc(t,e,a)}):Hf(t,e,n)}function Hf(t,e,n){e.status="fulfilled",e.value=n,qf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Bf(t,n)))}function mc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,qf(e),e=e.next;while(e!==a)}t.action=null}function qf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Qf(t,e){return e}function Yf(t,e){if(yt){var n=At.formState;if(n!==null){t:{var a=ct;if(yt){if(zt){e:{for(var u=zt,c=Ue;u.nodeType!==8;){if(!c){u=null;break e}if(u=we(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){zt=we(u.nextSibling),a=u.data==="F!";break t}}En(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qf,lastRenderedState:e},n.queue=a,n=uh.bind(null,ct,a),a.dispatch=n,a=dc(!1),c=bc.bind(null,ct,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=tp.bind(null,ct,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function Gf(t){var e=Yt();return Xf(e,Et,t)}function Xf(t,e,n){if(e=fc(t,e,Qf)[0],t=su(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Xl(e)}catch(f){throw f===Za?Wi:f}else a=e;e=Yt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Wa(9,{destroy:void 0},ep.bind(null,u,n),null)),[a,c,t]}function ep(t,e){t.action=e}function Vf(t){var e=Yt(),n=Et;if(n!==null)return Xf(e,n,t);Yt(),e=e.memoizedState,n=Yt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Wa(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=iu(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Kf(){return Yt().memoizedState}function cu(t,e,n,a){var u=ie();ct.flags|=t,u.memoizedState=Wa(1|e,{destroy:void 0},n,a===void 0?null:a)}function ou(t,e,n,a){var u=Yt();a=a===void 0?null:a;var c=u.memoizedState.inst;Et!==null&&a!==null&&ic(a,Et.memoizedState.deps)?u.memoizedState=Wa(e,c,n,a):(ct.flags|=t,u.memoizedState=Wa(1|e,c,n,a))}function Zf(t,e){cu(8390656,8,t,e)}function yc(t,e){ou(2048,8,t,e)}function np(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=iu(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Jf(t){var e=Yt().memoizedState;return np({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Pf(t,e){return ou(4,2,t,e)}function Ff(t,e){return ou(4,4,t,e)}function kf(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Wf(t,e,n){n=n!=null?n.concat([t]):null,ou(4,4,kf.bind(null,e,t),n)}function vc(){}function If(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&ic(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function $f(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&ic(e,a[1]))return a[0];if(a=t(),fa){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function pc(t,e,n){return n===void 0||(ln&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=td(),ct.lanes|=t,Ln|=t,n)}function th(t,e,n,a){return pe(n,e)?n:Pa.current!==null?(t=pc(t,n,a),pe(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(dt&261930)===0?(Vt=!0,t.memoizedState=n):(t=td(),ct.lanes|=t,Ln|=t,e)}function eh(t,e,n,a,u){var c=V.p;V.p=c!==0&&8>c?c:8;var f=w.T,v={};w.T=v,bc(t,!1,e,n);try{var R=u(),x=w.S;if(x!==null&&x(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var N=Wv(R,a);Vl(t,e,N,Te(t))}else Vl(t,e,a,Te(t))}catch(q){Vl(t,e,{then:function(){},status:"rejected",reason:q},Te())}finally{V.p=c,f!==null&&v.types!==null&&(f.types=v.types),w.T=f}}function ap(){}function gc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=nh(t).queue;eh(t,u,e,at,n===null?ap:function(){return ah(t),n(a)})}function nh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:at},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ah(t){var e=nh(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},Te())}function Sc(){return $t(si)}function lh(){return Yt().memoizedState}function ih(){return Yt().memoizedState}function lp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=Cn(n);var a=An(e,t,n);a!==null&&(de(a,e,n),ql(a,e,n)),e={cache:Ps()},t.payload=e;return}e=e.return}}function ip(t,e,n){var a=Te();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ru(t)?sh(e,n):(n=js(t,e,n,a),n!==null&&(de(n,t,a),ch(n,e,a)))}function uh(t,e,n){var a=Te();Vl(t,e,n,a)}function Vl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(t))sh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,v=c(f,n);if(u.hasEagerState=!0,u.eagerState=v,pe(v,f))return Vi(t,e,u,0),At===null&&Xi(),!1}catch{}if(n=js(t,e,u,a),n!==null)return de(n,t,a),ch(n,e,a),!0}return!1}function bc(t,e,n,a){if(a={lane:2,revertLane:Ic(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ru(t)){if(e)throw Error(o(479))}else e=js(t,n,a,2),e!==null&&de(e,t,2)}function ru(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function sh(t,e){Fa=au=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ch(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,hr(t,n)}}var Kl={readContext:$t,use:uu,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Kl.useEffectEvent=Bt;var oh={readContext:$t,use:uu,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Zf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,cu(4194308,4,kf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cu(4194308,4,t,e)},useInsertionEffect:function(t,e){cu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(fa){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(fa){Sn(!0);try{n(e)}finally{Sn(!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=ip.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=dc(t);var e=t.queue,n=uh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:vc,useDeferredValue:function(t,e){var n=ie();return pc(n,t,e)},useTransition:function(){var t=dc(!1);return t=eh.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,u=ie();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),At===null)throw Error(o(349));(dt&127)!==0||zf(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,Zf(Uf.bind(null,a,c,t),[t]),a.flags|=2048,Wa(9,{destroy:void 0},Df.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=At.identifierPrefix;if(yt){var n=Ve,a=Xe;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=lu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Iv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Sc,useFormState:Yf,useActionState:Yf,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=bc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:rc,useCacheRefresh:function(){return ie().memoizedState=lp.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:$t,use:uu,useCallback:If,useContext:$t,useEffect:yc,useImperativeHandle:Wf,useInsertionEffect:Pf,useLayoutEffect:Ff,useMemo:$f,useReducer:su,useRef:Kf,useState:function(){return su(un)},useDebugValue:vc,useDeferredValue:function(t,e){var n=Yt();return th(n,Et.memoizedState,t,e)},useTransition:function(){var t=su(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:xf,useId:lh,useHostTransitionStatus:Sc,useFormState:Gf,useActionState:Gf,useOptimistic:function(t,e){var n=Yt();return Nf(n,Et,t,e)},useMemoCache:rc,useCacheRefresh:ih};_c.useEffectEvent=Jf;var rh={readContext:$t,use:uu,useCallback:If,useContext:$t,useEffect:yc,useImperativeHandle:Wf,useInsertionEffect:Pf,useLayoutEffect:Ff,useMemo:$f,useReducer:hc,useRef:Kf,useState:function(){return hc(un)},useDebugValue:vc,useDeferredValue:function(t,e){var n=Yt();return Et===null?pc(n,t,e):th(n,Et.memoizedState,t,e)},useTransition:function(){var t=hc(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:xf,useId:lh,useHostTransitionStatus:Sc,useFormState:Vf,useActionState:Vf,useOptimistic:function(t,e){var n=Yt();return Et!==null?Nf(n,Et,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:rc,useCacheRefresh:ih};rh.useEffectEvent=Jf;function Rc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Tc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Te(),u=Cn(a);u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Te(),u=Cn(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=An(t,a,n),e!==null&&(de(e,t,n),ql(e,t,n))}};function fh(t,e,n,a,u,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Dl(n,a)||!Dl(u,c):!0}function hh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Tc.enqueueReplaceState(e,e.state,null)}function ha(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function dh(t){Gi(t)}function mh(t){console.error(t)}function yh(t){Gi(t)}function fu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function vh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ec(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){fu(t,e)},n}function ph(t){return t=Cn(t),t.tag=3,t}function gh(t,e,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;t.payload=function(){return u(c)},t.callback=function(){vh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){vh(e,n,a),typeof u!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function up(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Xa(e,n,u,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Tu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ii?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Fc(t,a,u)),!1;case 22:return n.flags|=65536,a===Ii?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Fc(t,a,u)),!1}throw Error(o(435,n.tag))}return Fc(t,a,u),Tu(),!1}if(yt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Xs&&(t=Error(o(422),{cause:a}),wl(xe(t,n)))):(a!==Xs&&(e=Error(o(423),{cause:a}),wl(xe(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=xe(a,n),u=Ec(t.stateNode,a,u),tc(t,u),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),$l===null?$l=[c]:$l.push(c),jt!==4&&(jt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Ec(n.stateNode,a,t),tc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(wn===null||!wn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=ph(u),gh(u,t,n,a),tc(n,u),!1}n=n.return}while(n!==null);return!1}var Mc=Error(o(461)),Vt=!1;function te(t,e,n,a){e.child=t===null?Rf(e,null,n,a):ra(e,t.child,n,a)}function Sh(t,e,n,a,u){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var v in a)v!=="ref"&&(f[v]=a[v])}else f=a;return ua(e),a=uc(t,e,n,f,c,u),v=sc(),t!==null&&!Vt?(cc(t,e,u),sn(t,e,u)):(yt&&v&&Ys(e),e.flags|=1,te(t,e,a,u),e.child)}function bh(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!Hs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,_h(t,e,c,a,u)):(t=Zi(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Lc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(f,a)&&t.ref===e.ref)return sn(t,e,u)}return e.flags|=1,t=tn(c,a),t.ref=e.ref,t.return=e,e.child=t}function _h(t,e,n,a,u){if(t!==null){var c=t.memoizedProps;if(Dl(c,a)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=a=c,Lc(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,sn(t,e,u)}return Oc(t,e,n,a,u)}function Rh(t,e,n,a){var u=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,e.child=null;return Th(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ki(e,c!==null?c.cachePool:null),c!==null?Mf(e,c):nc(),Of(e);else return a=e.lanes=536870912,Th(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ki(e,c.cachePool),Mf(e,c),zn(),e.memoizedState=null):(t!==null&&ki(e,null),nc(),zn());return te(t,e,u,n),e.child}function Zl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Th(t,e,n,a,u){var c=ks();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&ki(e,null),nc(),Of(e),t!==null&&Xa(t,e,a,!0),e.childLanes=u,null}function hu(t,e){return e=mu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Eh(t,e,n){return ra(e,t.child,null,n),t=hu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function sp(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=hu(e,a),e.lanes=536870912,Zl(null,t);if(lc(e),(t=zt)?(t=Bd(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=sf(t),n.return=e,e.child=n,It=e,zt=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return hu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(lc(e),u)if(e.flags&256)e.flags&=-257,e=Eh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Xa(t,e,n,!1),u=(n&t.childLanes)!==0,Vt||u){if(a=At,a!==null&&(f=dr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,na(t,f),de(a,t,f),Mc;Tu(),e=Eh(t,e,n)}else t=c.treeContext,zt=we(f.nextSibling),It=e,yt=!0,Tn=null,Ue=!1,t!==null&&rf(e,t),e=hu(e,a),e.flags|=4096;return e}return t=tn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function du(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Oc(t,e,n,a,u){return ua(e),n=uc(t,e,n,a,void 0,u),a=sc(),t!==null&&!Vt?(cc(t,e,u),sn(t,e,u)):(yt&&a&&Ys(e),e.flags|=1,te(t,e,n,u),e.child)}function Mh(t,e,n,a,u,c){return ua(e),e.updateQueue=null,n=Af(e,a,n,u),Cf(t),a=sc(),t!==null&&!Vt?(cc(t,e,c),sn(t,e,c)):(yt&&a&&Ys(e),e.flags|=1,te(t,e,n,c),e.child)}function Oh(t,e,n,a,u){if(ua(e),e.stateNode===null){var c=qa,f=n.contextType;typeof f=="object"&&f!==null&&(c=$t(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Tc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},Is(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?$t(f):qa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Rc(e,n,f,a),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Tc.enqueueReplaceState(c,c.state,null),Yl(e,a,c,u),Ql(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,R=ha(n,v);c.props=R;var x=c.context,N=n.contextType;f=qa,typeof N=="object"&&N!==null&&(f=$t(N));var q=n.getDerivedStateFromProps;N=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&hh(e,c,a,f),On=!1;var z=e.memoizedState;c.state=z,Yl(e,a,c,u),Ql(),x=e.memoizedState,v||z!==x||On?(typeof q=="function"&&(Rc(e,n,q,a),x=e.memoizedState),(R=On||fh(e,n,R,a,z,x,f))?(N||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,$s(t,e),f=e.memoizedProps,N=ha(n,f),c.props=N,q=e.pendingProps,z=c.context,x=n.contextType,R=qa,typeof x=="object"&&x!==null&&(R=$t(x)),v=n.getDerivedStateFromProps,(x=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==q||z!==R)&&hh(e,c,a,R),On=!1,z=e.memoizedState,c.state=z,Yl(e,a,c,u),Ql();var U=e.memoizedState;f!==q||z!==U||On||t!==null&&t.dependencies!==null&&Pi(t.dependencies)?(typeof v=="function"&&(Rc(e,n,v,a),U=e.memoizedState),(N=On||fh(e,n,N,a,z,U,R)||t!==null&&t.dependencies!==null&&Pi(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=U),c.props=a,c.state=U,c.context=R,a=N):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,du(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=ra(e,t.child,null,u),e.child=ra(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=sn(t,e,u),t}function Ch(t,e,n,a){return la(),e.flags|=256,te(t,e,n,a),e.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ac(t){return{baseLanes:t,cachePool:vf()}}function xc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Ah(t,e,n){var a=e.pendingProps,u=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?xn(e):zn(),(t=zt)?(t=Bd(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=sf(t),n.return=e,e.child=n,It=e,zt=null)):t=null,t===null)throw En(e);return fo(t)?e.lanes=32:e.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(zn(),u=e.mode,v=mu({mode:"hidden",children:v},u),a=aa(a,u,n,null),v.return=e,a.return=e,v.sibling=a,e.child=v,a=e.child,a.memoizedState=Ac(n),a.childLanes=xc(t,f,n),e.memoizedState=Cc,Zl(null,a)):(xn(e),zc(e,v))}var R=t.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)e.flags&256?(xn(e),e.flags&=-257,e=Dc(t,e,n)):e.memoizedState!==null?(zn(),e.child=t.child,e.flags|=128,e=null):(zn(),v=a.fallback,u=e.mode,a=mu({mode:"visible",children:a.children},u),v=aa(v,u,n,null),v.flags|=2,a.return=e,v.return=e,a.sibling=v,e.child=a,ra(e,t.child,null,n),a=e.child,a.memoizedState=Ac(n),a.childLanes=xc(t,f,n),e.memoizedState=Cc,e=Zl(null,a));else if(xn(e),fo(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,wl({value:a,source:null,stack:null}),e=Dc(t,e,n)}else if(Vt||Xa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=At,f!==null&&(a=dr(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,na(t,a),de(f,t,a),Mc;ro(v)||Tu(),e=Dc(t,e,n)}else ro(v)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,zt=we(v.nextSibling),It=e,yt=!0,Tn=null,Ue=!1,t!==null&&rf(e,t),e=zc(e,a.children),e.flags|=4096);return e}return u?(zn(),v=a.fallback,u=e.mode,R=t.child,x=R.sibling,a=tn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?v=tn(x,v):(v=aa(v,u,n,null),v.flags|=2),v.return=e,a.return=e,a.sibling=v,e.child=a,Zl(null,a),a=e.child,v=t.child.memoizedState,v===null?v=Ac(n):(u=v.cachePool,u!==null?(R=Gt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=vf(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=xc(t,f,n),e.memoizedState=Cc,Zl(t.child,a)):(xn(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function zc(t,e){return e=mu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function mu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function Dc(t,e,n){return ra(e,t.child,null,n),t=zc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Zs(t.return,e,n)}function Uc(t,e,n,a,u,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=u,f.treeForkCount=c)}function zh(t,e,n){var a=e.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var f=Qt.current,v=(f&2)!==0;if(v?(f=f&1|2,e.flags|=128):f&=1,K(Qt,f),te(t,e,a,n),a=yt?Ll:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xh(t,n,e);else if(t.tag===19)xh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&nu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Uc(e,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&nu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Uc(e,!0,n,null,c,a);break;case"together":Uc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ln|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Xa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Lc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Pi(t)))}function cp(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Mn(e,Gt,t.memoizedState.cache),la();break;case 27:case 5:Pe(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,lc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Ah(t,e,n):(xn(e),t=sn(t,e,n),t!==null?t.sibling:null);xn(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Xa(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return zh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Rh(t,e,n,e.pendingProps);case 24:Mn(e,Gt,t.memoizedState.cache)}return sn(t,e,n)}function Dh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Lc(t,n)&&(e.flags&128)===0)return Vt=!1,cp(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,yt&&(e.flags&1048576)!==0&&of(e,Ll,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ca(e.elementType),e.type=t,typeof t=="function")Hs(t)?(a=ha(t,a),e.tag=1,e=Oh(null,e,t,a,n)):(e.tag=0,e=Oc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===Y){e.tag=11,e=Sh(null,e,t,a,n);break t}else if(u===B){e.tag=14,e=bh(null,e,t,a,n);break t}}throw e=Ut(t)||t,Error(o(306,e,""))}}return e;case 0:return Oc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=ha(a,e.pendingProps),Oh(t,e,a,u,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;u=c.element,$s(t,e),Yl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Mn(e,Gt,a),a!==c.cache&&Js(e,[Gt],n,!0),Ql(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Ch(t,e,a,n);break t}else if(a!==u){u=xe(Error(o(424)),e),wl(u),e=Ch(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,zt=we(t.firstChild),It=e,yt=!0,Tn=null,Ue=!0,n=Rf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(la(),a===u){e=sn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return du(t,e),t===null?(n=Gd(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=zu(rt.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=Gd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&yt&&(a=e.stateNode=qd(e.type,e.pendingProps,rt.current),It=e,Ue=!0,u=zt,Hn(e.type)?(ho=u,zt=we(a.firstChild)):zt=u),te(t,e,e.pendingProps.children,n),du(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=a=zt)&&(a=Hp(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,It=e,zt=we(a.firstChild),Ue=!1,u=!0):u=!1),u||En(e)),Pe(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,so(u,c)?a=null:f!==null&&so(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=uc(t,e,$v,null,null,n),si._currentValue=u),du(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=zt)&&(n=qp(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,It=e,zt=null,t=!0):t=!1),t||En(e)),null;case 13:return Ah(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ra(e,null,a,n):te(t,e,a,n),e.child;case 11:return Sh(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Mn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,ua(e),u=$t(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return bh(t,e,e.type,e.pendingProps,n);case 15:return _h(t,e,e.type,e.pendingProps,n);case 19:return zh(t,e,n);case 31:return sp(t,e,n);case 22:return Rh(t,e,n,e.pendingProps);case 24:return ua(e),a=$t(Gt),t===null?(u=ks(),u===null&&(u=At,c=Ps(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},Is(e),Mn(e,Gt,u)):((t.lanes&n)!==0&&($s(t,e),Yl(e,null,null,n),Ql()),u=t.memoizedState,c=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Mn(e,Gt,a)):(a=c.cache,Mn(e,Gt,a),a!==u.cache&&Js(e,[Gt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function wc(t,e,n,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(ld())t.flags|=8192;else throw oa=Ii,Ws}else t.flags&=-16777217}function Uh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Jd(e))if(ld())t.flags|=8192;else throw oa=Ii,Ws}function yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?rr():536870912,t.lanes|=e,el|=e)}function Jl(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Dt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function op(t,e,n){var a=e.pendingProps;switch(Gs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(e),null;case 1:return Dt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),an(Gt),Ct(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ga(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Vs())),Dt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Dt(e),Uh(e,c)):(Dt(e),wc(e,u,null,a,n))):c?c!==t.memoizedState?(cn(e),Dt(e),Uh(e,c)):(Dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Dt(e),wc(e,u,t,a,n)),null;case 27:if(Fe(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Dt(e),null}t=P.current,Ga(e)?ff(e):(t=qd(u,a,n),e.stateNode=t,cn(e))}return Dt(e),null;case 5:if(Fe(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Dt(e),null}if(c=P.current,Ga(e))ff(e);else{var f=zu(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}c[Wt]=e,c[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&cn(e)}}return Dt(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Ga(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=It,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Ad(t.nodeValue,n)),t||En(e,!0)}else t=zu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Dt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ga(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),t=!1}else n=Vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Dt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ga(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Wt]=e}else la(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),u=!1}else u=Vs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),yu(e,e.updateQueue),Dt(e),null);case 4:return Ct(),t===null&&no(e.stateNode.containerInfo),Dt(e),null;case 10:return an(e.type),Dt(e),null;case 19:if(H(Qt),a=e.memoizedState,a===null)return Dt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Jl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=nu(t),c!==null){for(e.flags|=128,Jl(a,!1),t=c.updateQueue,e.updateQueue=t,yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)uf(n,t),n=n.sibling;return K(Qt,Qt.current&1|2),yt&&en(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ne()>bu&&(e.flags|=128,u=!0,Jl(a,!1),e.lanes=4194304)}else{if(!u)if(t=nu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,yu(e,t),Jl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Dt(e),null}else 2*ne()-a.renderingStartTime>bu&&n!==536870912&&(e.flags|=128,u=!0,Jl(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ne(),t.sibling=null,n=Qt.current,K(Qt,u?n&1|2:n&1),yt&&en(e,a.treeForkCount),t):(Dt(e),null);case 22:case 23:return be(e),ac(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Dt(e),e.subtreeFlags&6&&(e.flags|=8192)):Dt(e),n=e.updateQueue,n!==null&&yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&H(sa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Gt),Dt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function rp(t,e){switch(Gs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Gt),Ct(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Fe(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));la()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Qt),null;case 4:return Ct(),null;case 10:return an(e.type),null;case 22:case 23:return be(e),ac(),t!==null&&H(sa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(Gt),null;case 25:return null;default:return null}}function Lh(t,e){switch(Gs(e),e.tag){case 3:an(Gt),Ct();break;case 26:case 27:case 5:Fe(e);break;case 4:Ct();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:H(Qt);break;case 10:an(e.type);break;case 22:case 23:be(e),ac(),t!==null&&H(sa);break;case 24:an(Gt)}}function Pl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==u)}}catch(v){Tt(e,e.return,v)}}function Dn(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&t)===t){var f=a.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,u=e;var R=n,x=v;try{x()}catch(N){Tt(u,R,N)}}}a=a.next}while(a!==c)}}catch(N){Tt(e,e.return,N)}}function wh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Ef(e,n)}catch(a){Tt(t,t.return,a)}}}function Nh(t,e,n){n.props=ha(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Tt(t,e,a)}}function Fl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Tt(t,e,u)}}function Ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Tt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Tt(t,e,u)}else n.current=null}function Bh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Tt(t,t.return,u)}}function Nc(t,e,n){try{var a=t.stateNode;Up(a,t.type,n,e),a[se]=e}catch(u){Tt(t,t.return,u)}}function jh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hn(t.type)||t.tag===4}function Bc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||jh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Hn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ie));else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(jc(t,e,n),t=t.sibling;t!==null;)jc(t,e,n),t=t.sibling}function vu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(vu(t,e,n),t=t.sibling;t!==null;)vu(t,e,n),t=t.sibling}function Hh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,a,n),e[Wt]=t,e[se]=n}catch(c){Tt(t,t.return,c)}}var on=!1,Kt=!1,Hc=!1,qh=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function fp(t,e){if(t=t.containerInfo,io=ju,t=kr(t),Ds(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,v=-1,R=-1,x=0,N=0,q=t,z=null;e:for(;;){for(var U;q!==n||u!==0&&q.nodeType!==3||(v=f+u),q!==c||a!==0&&q.nodeType!==3||(R=f+a),q.nodeType===3&&(f+=q.nodeValue.length),(U=q.firstChild)!==null;)z=q,q=U;for(;;){if(q===t)break e;if(z===n&&++x===u&&(v=f),z===c&&++N===a&&(R=f),(U=q.nextSibling)!==null)break;q=z,z=q.parentNode}q=U}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(uo={focusedElem:t,selectionRange:n},ju=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var F=ha(n.type,u);t=a.getSnapshotBeforeUpdate(F,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Tt(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)oo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":oo(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Qh(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),a&4&&Pl(5,n);break;case 1:if(fn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var u=ha(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}a&64&&wh(n),a&512&&Fl(n,n.return);break;case 3:if(fn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Ef(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&a&4&&Hh(n);case 26:case 5:fn(t,n),e===null&&a&4&&Bh(n),a&512&&Fl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),a&4&&Xh(t,n);break;case 13:fn(t,n),a&4&&Vh(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=bp.bind(null,n),Qp(t,n))));break;case 22:if(a=n.memoizedState!==null||on,!a){e=e!==null&&e.memoizedState!==null||Kt,u=on;var c=Kt;on=a,(Kt=e)&&!c?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),on=u,Kt=c}break;case 30:break;default:fn(t,n)}}function Yh(t){var e=t.alternate;e!==null&&(t.alternate=null,Yh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ms(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Lt=null,oe=!1;function rn(t,e,n){for(n=n.child;n!==null;)Gh(t,e,n),n=n.sibling}function Gh(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 26:Kt||Ke(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||Ke(n,e);var a=Lt,u=oe;Hn(n.type)&&(Lt=n.stateNode,oe=!1),rn(t,e,n),li(n.stateNode),Lt=a,oe=u;break;case 5:Kt||Ke(n,e);case 6:if(a=Lt,u=oe,Lt=null,rn(t,e,n),Lt=a,oe=u,Lt!==null)if(oe)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{Lt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:Lt!==null&&(oe?(t=Lt,wd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):wd(Lt,n.stateNode));break;case 4:a=Lt,u=oe,Lt=n.stateNode.containerInfo,oe=!0,rn(t,e,n),Lt=a,oe=u;break;case 0:case 11:case 14:case 15:Dn(2,n,e),Kt||Dn(4,n,e),rn(t,e,n);break;case 1:Kt||(Ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Nh(n,e,a)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,rn(t,e,n),Kt=a;break;default:rn(t,e,n)}}function Xh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(n){Tt(e,e.return,n)}}}function Vh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ol(t)}catch(n){Tt(e,e.return,n)}}function hp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new qh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new qh),e;default:throw Error(o(435,t.tag))}}function pu(t,e){var n=hp(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=_p.bind(null,t,a);a.then(u,u)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(Hn(v.type)){Lt=v.stateNode,oe=!1;break t}break;case 5:Lt=v.stateNode,oe=!1;break t;case 3:case 4:Lt=v.stateNode.containerInfo,oe=!0;break t}v=v.return}if(Lt===null)throw Error(o(160));Gh(c,f,u),Lt=null,oe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Kh(e,t),e=e.sibling}var qe=null;function Kh(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(Dn(3,t,t.return),Pl(3,t),Dn(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),a&64&&on&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=qe;if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Rl]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,Pt(c),a=c;break t;case"link":var f=Kd("link","href",u).get(a+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;case"meta":if(f=Kd("meta","content",u).get(a+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,Pt(c),a=c}t.stateNode=a}else Zd(u,t.type,t.stateNode);else t.stateNode=Vd(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Zd(u,t.type,t.stateNode):Vd(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),n!==null&&a&4&&Nc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),t.flags&32){u=t.stateNode;try{Ua(u,"")}catch(F){Tt(t,t.return,F)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Nc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(Hc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(F){Tt(t,t.return,F)}}break;case 3:if(Lu=null,u=qe,qe=Du(e.containerInfo),re(e,t),qe=u,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(F){Tt(t,t.return,F)}Hc&&(Hc=!1,Zh(t));break;case 4:a=qe,qe=Du(t.stateNode.containerInfo),re(e,t),fe(t),qe=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Su=ne()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 22:u=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=on,N=Kt;if(on=x||u,Kt=N||R,re(e,t),Kt=N,on=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||R||on||Kt||da(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,u)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=R.stateNode;var q=R.memoizedProps.style,z=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(F){Tt(R,R.return,F)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(F){Tt(R,R.return,F)}}}else if(e.tag===18){if(n===null){R=e;try{var U=R.stateNode;u?Nd(U,!0):Nd(R.stateNode,!1)}catch(F){Tt(R,R.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,pu(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(jh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Bc(t);vu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ua(f,""),n.flags&=-33);var v=Bc(t);vu(t,v,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Bc(t);jc(t,x,R);break;default:throw Error(o(161))}}catch(N){Tt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Zh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Zh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Qh(t,e.alternate,e),e=e.sibling}function da(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Dn(4,e,e.return),da(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Nh(e,e.return,n),da(e);break;case 27:li(e.stateNode);case 26:case 5:Ke(e,e.return),da(e);break;case 22:e.memoizedState===null&&da(e);break;case 30:da(e);break;default:da(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:hn(u,c,n),Pl(4,c);break;case 1:if(hn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Tt(a,a.return,x)}if(a=c,u=a.updateQueue,u!==null){var v=a.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Tf(R[u],v)}catch(x){Tt(a,a.return,x)}}n&&f&64&&wh(c),Fl(c,c.return);break;case 27:Hh(c);case 26:case 5:hn(u,c,n),n&&a===null&&f&4&&Bh(c),Fl(c,c.return);break;case 12:hn(u,c,n);break;case 31:hn(u,c,n),n&&f&4&&Xh(u,c);break;case 13:hn(u,c,n),n&&f&4&&Vh(u,c);break;case 22:c.memoizedState===null&&hn(u,c,n),Fl(c,c.return);break;case 30:break;default:hn(u,c,n)}e=e.sibling}}function qc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Nl(n))}function Qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Nl(t))}function Qe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jh(t,e,n,a),e=e.sibling}function Jh(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,n,a),u&2048&&Pl(9,e);break;case 1:Qe(t,e,n,a);break;case 3:Qe(t,e,n,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Nl(t)));break;case 12:if(u&2048){Qe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Tt(e,e.return,R)}}else Qe(t,e,n,a);break;case 31:Qe(t,e,n,a);break;case 13:Qe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Qe(t,e,n,a):kl(t,e):c._visibility&2?Qe(t,e,n,a):(c._visibility|=2,Ia(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&qc(f,e);break;case 24:Qe(t,e,n,a),u&2048&&Qc(e.alternate,e);break;default:Qe(t,e,n,a)}}function Ia(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:Ia(c,f,v,R,u),Pl(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?Ia(c,f,v,R,u):kl(c,f):(N._visibility|=2,Ia(c,f,v,R,u)),u&&x&2048&&qc(f.alternate,f);break;case 24:Ia(c,f,v,R,u),u&&x&2048&&Qc(f.alternate,f);break;default:Ia(c,f,v,R,u)}e=e.sibling}}function kl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,u=a.flags;switch(a.tag){case 22:kl(n,a),u&2048&&qc(a.alternate,a);break;case 24:kl(n,a),u&2048&&Qc(a.alternate,a);break;default:kl(n,a)}e=e.sibling}}var Wl=8192;function $a(t,e,n){if(t.subtreeFlags&Wl)for(t=t.child;t!==null;)Ph(t,e,n),t=t.sibling}function Ph(t,e,n){switch(t.tag){case 26:$a(t,e,n),t.flags&Wl&&t.memoizedState!==null&&Ip(n,qe,t.memoizedState,t.memoizedProps);break;case 5:$a(t,e,n);break;case 3:case 4:var a=qe;qe=Du(t.stateNode.containerInfo),$a(t,e,n),qe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Wl,Wl=16777216,$a(t,e,n),Wl=a):$a(t,e,n));break;default:$a(t,e,n)}}function Fh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Il(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,Wh(a,t)}Fh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kh(t),t=t.sibling}function kh(t){switch(t.tag){case 0:case 11:case 15:Il(t),t.flags&2048&&Dn(9,t,t.return);break;case 3:Il(t);break;case 12:Il(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gu(t)):Il(t);break;default:Il(t)}}function gu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,Wh(a,t)}Fh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Dn(8,e,e.return),gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gu(e));break;default:gu(e)}t=t.sibling}}function Wh(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Dn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Nl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var u=a.sibling,c=a.return;if(Yh(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var dp={getCacheForType:function(t){var e=$t(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Gt).controller.signal}},mp=typeof WeakMap=="function"?WeakMap:Map,bt=0,At=null,ft=null,dt=0,Rt=0,_e=null,Un=!1,tl=!1,Yc=!1,dn=0,jt=0,Ln=0,ma=0,Gc=0,Re=0,el=0,$l=null,he=null,Xc=!1,Su=0,Ih=0,bu=1/0,_u=null,wn=null,Zt=0,Nn=null,nl=null,mn=0,Vc=0,Kc=null,$h=null,ti=0,Zc=null;function Te(){return(bt&2)!==0&&dt!==0?dt&-dt:w.T!==null?Ic():mr()}function td(){if(Re===0)if((dt&536870912)===0||yt){var t=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===At&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(al(t,0),Bn(t,dt,Re,!1)),_l(t,n),((bt&2)===0||t!==At)&&(t===At&&((bt&2)===0&&(ma|=n),jt===4&&Bn(t,dt,Re,!1)),Ze(t))}function ed(t,e,n){if((bt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||bl(t,e),u=a?pp(t,e):Pc(t,e,!0),c=a;do{if(u===0){tl&&!a&&Bn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!yp(n)){u=Pc(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var v=t;u=$l;var R=v.current.memoizedState.isDehydrated;if(R&&(al(v,f).flags|=256),f=Pc(v,f,!1),f!==2){if(Yc&&!R){v.errorRecoveryDisabledLanes|=c,ma|=c,u=4;break t}c=he,he=u,c!==null&&(he===null?he=c:he.push.apply(he,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){al(t,0),Bn(t,e,0,!0);break}t:{switch(a=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Bn(a,e,Re,!Un);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=Su+300-ne(),10<u)){if(Bn(a,e,Re,!Un),Di(a,0,!0)!==0)break t;mn=e,a.timeoutHandle=Ud(nd.bind(null,a,n,he,_u,Xc,e,Re,ma,el,Un,c,"Throttled",-0,0),u);break t}nd(a,n,he,_u,Xc,e,Re,ma,el,Un,c,null,-0,0)}}break}while(!0);Ze(t)}function nd(t,e,n,a,u,c,f,v,R,x,N,q,z,U){if(t.timeoutHandle=-1,q=e.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},Ph(e,c,q);var F=(c&62914560)===c?Su-ne():(c&4194048)===c?Ih-ne():0;if(F=$p(q,F),F!==null){mn=c,t.cancelPendingCommit=F(rd.bind(null,t,e,c,n,a,u,f,v,R,N,q,null,z,U)),Bn(t,c,f,!x);return}}rd(t,e,c,n,a,u,f,v,R)}function yp(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],c=u.getSnapshot;u=u.value;try{if(!pe(c(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bn(t,e,n,a){e&=~Gc,e&=~ma,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var c=31-ve(u),f=1<<c;a[c]=-1,u&=~f}n!==0&&fr(t,n,e)}function Ru(){return(bt&6)===0?(ei(0),!1):!0}function Jc(){if(ft!==null){if(Rt===0)var t=ft.return;else t=ft,nn=ia=null,oc(t),Ja=null,jl=0,t=ft;for(;t!==null;)Lh(t.alternate,t),t=t.return;ft=null}}function al(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Np(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,Jc(),At=t,ft=n=tn(t.current,null),dt=e,Rt=0,_e=null,Un=!1,tl=bl(t,e),Yc=!1,el=Re=Gc=ma=Ln=jt=0,he=$l=null,Xc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-ve(a),c=1<<u;e|=t[u],a&=~c}return dn=e,Xi(),n}function ad(t,e){ct=null,w.H=Kl,e===Za||e===Wi?(e=Sf(),Rt=3):e===Ws?(e=Sf(),Rt=4):Rt=e===Mc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(jt=1,fu(t,xe(e,t.current)))}function ld(){var t=Se.current;return t===null?!0:(dt&4194048)===dt?Le===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Le:!1}function id(){var t=w.H;return w.H=Kl,t===null?Kl:t}function ud(){var t=w.A;return w.A=dp,t}function Tu(){jt=4,Un||(dt&4194048)!==dt&&Se.current!==null||(tl=!0),(Ln&134217727)===0&&(ma&134217727)===0||At===null||Bn(At,dt,Re,!1)}function Pc(t,e,n){var a=bt;bt|=2;var u=id(),c=ud();(At!==t||dt!==e)&&(_u=null,al(t,e)),e=!1;var f=jt;t:do try{if(Rt!==0&&ft!==null){var v=ft,R=_e;switch(Rt){case 8:Jc(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Rt;if(Rt=0,_e=null,ll(t,v,R,x),n&&tl){f=0;break t}break;default:x=Rt,Rt=0,_e=null,ll(t,v,R,x)}}vp(),f=jt;break}catch(N){ad(t,N)}while(!0);return e&&t.shellSuspendCounter++,nn=ia=null,bt=a,w.H=u,w.A=c,ft===null&&(At=null,dt=0,Xi()),f}function vp(){for(;ft!==null;)sd(ft)}function pp(t,e){var n=bt;bt|=2;var a=id(),u=ud();At!==t||dt!==e?(_u=null,bu=ne()+500,al(t,e)):tl=bl(t,e);t:do try{if(Rt!==0&&ft!==null){e=ft;var c=_e;e:switch(Rt){case 1:Rt=0,_e=null,ll(t,e,c,1);break;case 2:case 9:if(pf(c)){Rt=0,_e=null,cd(e);break}e=function(){Rt!==2&&Rt!==9||At!==t||(Rt=7),Ze(t)},c.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:pf(c)?(Rt=0,_e=null,cd(e)):(Rt=0,_e=null,ll(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var v=ft;if(f?Jd(f):v.stateNode.complete){Rt=0,_e=null;var R=v.sibling;if(R!==null)ft=R;else{var x=v.return;x!==null?(ft=x,Eu(x)):ft=null}break e}}Rt=0,_e=null,ll(t,e,c,5);break;case 6:Rt=0,_e=null,ll(t,e,c,6);break;case 8:Jc(),jt=6;break t;default:throw Error(o(462))}}gp();break}catch(N){ad(t,N)}while(!0);return nn=ia=null,w.H=a,w.A=u,bt=n,ft!==null?0:(At=null,dt=0,Xi(),jt)}function gp(){for(;ft!==null&&!Ci();)sd(ft)}function sd(t){var e=Dh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Eu(t):ft=e}function cd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Mh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Mh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:oc(e);default:Lh(n,e),e=ft=uf(e,dn),e=Dh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Eu(t):ft=e}function ll(t,e,n,a){nn=ia=null,oc(e),Ja=null,jl=0;var u=e.return;try{if(up(t,u,e,n,dt)){jt=1,fu(t,xe(n,t.current)),ft=null;return}}catch(c){if(u!==null)throw ft=u,c;jt=1,fu(t,xe(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:tl||(dt&536870912)!==0?t=!1:(Un=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),od(e,t)):Eu(e)}function Eu(t){var e=t;do{if((e.flags&32768)!==0){od(e,Un);return}t=e.return;var n=op(e.alternate,e,dn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);jt===0&&(jt=5)}function od(t,e){do{var n=rp(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);jt=6,ft=null}function rd(t,e,n,a,u,c,f,v,R){t.cancelPendingCommit=null;do Mu();while(Zt!==0);if((bt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Bs,Wy(t,n,c,f,v,R),t===At&&(ft=At=null,dt=0),nl=e,Nn=t,mn=n,Vc=c,Kc=u,$h=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Rp(Ma,function(){return yd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,u=V.p,V.p=2,f=bt,bt|=4;try{fp(t,e,n)}finally{bt=f,V.p=u,w.T=a}}Zt=1,fd(),hd(),dd()}}function fd(){if(Zt===1){Zt=0;var t=Nn,e=nl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var a=V.p;V.p=2;var u=bt;bt|=4;try{Kh(e,t);var c=uo,f=kr(t.containerInfo),v=c.focusedElem,R=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&Fr(v.ownerDocument.documentElement,v)){if(R!==null&&Ds(v)){var x=R.start,N=R.end;if(N===void 0&&(N=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(N,v.value.length);else{var q=v.ownerDocument||document,z=q&&q.defaultView||window;if(z.getSelection){var U=z.getSelection(),F=v.textContent.length,ut=Math.min(R.start,F),Ot=R.end===void 0?ut:Math.min(R.end,F);!U.extend&&ut>Ot&&(f=Ot,Ot=ut,ut=f);var O=Pr(v,ut),T=Pr(v,Ot);if(O&&T&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var A=q.createRange();A.setStart(O.node,O.offset),U.removeAllRanges(),ut>Ot?(U.addRange(A),U.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),U.addRange(A))}}}}for(q=[],U=v;U=U.parentNode;)U.nodeType===1&&q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var j=q[v];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}ju=!!io,uo=io=null}finally{bt=u,V.p=a,w.T=n}}t.current=e,Zt=2}}function hd(){if(Zt===2){Zt=0;var t=Nn,e=nl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var a=V.p;V.p=2;var u=bt;bt|=4;try{Qh(t,e.alternate,e)}finally{bt=u,V.p=a,w.T=n}}Zt=3}}function dd(){if(Zt===4||Zt===3){Zt=0,os();var t=Nn,e=nl,n=mn,a=$h;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,nl=Nn=null,md(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(wn=null),hs(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=w.T,u=V.p,V.p=2,w.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var v=a[f];c(v.value,{componentStack:v.stack})}}finally{w.T=e,V.p=u}}(mn&3)!==0&&Mu(),Ze(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Zc?ti++:(ti=0,Zc=t):ti=0,ei(0)}}function md(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Nl(e)))}function Mu(){return fd(),hd(),dd(),yd()}function yd(){if(Zt!==5)return!1;var t=Nn,e=Vc;Vc=0;var n=hs(mn),a=w.T,u=V.p;try{V.p=32>n?32:n,w.T=null,n=Kc,Kc=null;var c=Nn,f=mn;if(Zt=0,nl=Nn=null,mn=0,(bt&6)!==0)throw Error(o(331));var v=bt;if(bt|=4,kh(c.current),Jh(c,c.current,f,n),bt=v,ei(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Sl,c)}catch{}return!0}finally{V.p=u,w.T=a,md(t,e)}}function vd(t,e,n){e=xe(n,e),e=Ec(t.stateNode,e,2),t=An(t,e,2),t!==null&&(_l(t,2),Ze(t))}function Tt(t,e,n){if(t.tag===3)vd(t,t,n);else for(;e!==null;){if(e.tag===3){vd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wn===null||!wn.has(a))){t=xe(n,t),n=ph(2),a=An(e,n,2),a!==null&&(gh(n,a,e,t),_l(a,2),Ze(a));break}}e=e.return}}function Fc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new mp;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(n)||(Yc=!0,u.add(n),t=Sp.bind(null,t,e,n),e.then(t,t))}function Sp(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,At===t&&(dt&n)===n&&(jt===4||jt===3&&(dt&62914560)===dt&&300>ne()-Su?(bt&2)===0&&al(t,0):Gc|=n,el===dt&&(el=0)),Ze(t)}function pd(t,e){e===0&&(e=rr()),t=na(t,e),t!==null&&(_l(t,e),Ze(t))}function bp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),pd(t,n)}function _p(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),pd(t,n)}function Rp(t,e){return je(t,e)}var Ou=null,il=null,kc=!1,Cu=!1,Wc=!1,jn=0;function Ze(t){t!==il&&t.next===null&&(il===null?Ou=il=t:il=il.next=t),Cu=!0,kc||(kc=!0,Ep())}function ei(t,e){if(!Wc&&Cu){Wc=!0;do for(var n=!1,a=Ou;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var f=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-ve(42|t)+1)-1,c&=u&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,_d(a,c))}else c=dt,c=Di(a,a===At?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||bl(a,c)||(n=!0,_d(a,c));a=a.next}while(n);Wc=!1}}function Tp(){gd()}function gd(){Cu=kc=!1;var t=0;jn!==0&&wp()&&(t=jn);for(var e=ne(),n=null,a=Ou;a!==null;){var u=a.next,c=Sd(a,e);c===0?(a.next=null,n===null?Ou=u:n.next=u,u===null&&(il=n)):(n=a,(t!==0||(c&3)!==0)&&(Cu=!0)),a=u}Zt!==0&&Zt!==5||ei(t),jn!==0&&(jn=0)}function Sd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ve(c),v=1<<f,R=u[f];R===-1?((v&n)===0||(v&a)!==0)&&(u[f]=ky(v,e)):R<=e&&(t.expiredLanes|=v),c&=~v}if(e=At,n=dt,n=Di(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&gl(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||bl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&gl(a),hs(n)){case 2:case 8:n=Ge;break;case 32:n=Ma;break;case 268435456:n=or;break;default:n=Ma}return a=bd.bind(null,t),n=je(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&gl(a),t.callbackPriority=2,t.callbackNode=null,2}function bd(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Mu()&&t.callbackNode!==n)return null;var a=dt;return a=Di(t,t===At?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(ed(t,a,e),Sd(t,ne()),t.callbackNode!=null&&t.callbackNode===n?bd.bind(null,t):null)}function _d(t,e){if(Mu())return null;ed(t,e,!0)}function Ep(){Bp(function(){(bt&6)!==0?je(kt,Tp):gd()})}function Ic(){if(jn===0){var t=Va;t===0&&(t=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),jn=t}return jn}function Rd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ni(""+t)}function Td(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Mp(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Rd((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Rd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new qi("action","action",null,a,u);t.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jn!==0){var R=f?Td(u,f):new FormData(u);gc(n,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(v.preventDefault(),R=f?Td(u,f):new FormData(u),gc(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var $c=0;$c<Ns.length;$c++){var to=Ns[$c],Op=to.toLowerCase(),Cp=to[0].toUpperCase()+to.slice(1);He(Op,"on"+Cp)}He($r,"onAnimationEnd"),He(tf,"onAnimationIteration"),He(ef,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(Xv,"onTransitionRun"),He(Vv,"onTransitionStart"),He(Kv,"onTransitionCancel"),He(nf,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ni="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ni));function Ed(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],u=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var v=a[f],R=v.instance,x=v.currentTarget;if(v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Gi(N)}u.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(v=a[f],R=v.instance,x=v.currentTarget,v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Gi(N)}u.currentTarget=null,c=R}}}}function ht(t,e){var n=e[ds];n===void 0&&(n=e[ds]=new Set);var a=t+"__bubble";n.has(a)||(Md(e,t,2,!1),n.add(a))}function eo(t,e,n){var a=0;e&&(a|=4),Md(n,t,a,e)}var Au="_reactListening"+Math.random().toString(36).slice(2);function no(t){if(!t[Au]){t[Au]=!0,pr.forEach(function(n){n!=="selectionchange"&&(Ap.has(n)||eo(n,!1,t),eo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Au]||(e[Au]=!0,eo("selectionchange",!1,e))}}function Md(t,e,n,a){switch(tm(e)){case 2:var u=ng;break;case 8:u=ag;break;default:u=go}n=u.bind(null,e,n,t),u=void 0,!Rs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function ao(t,e,n,a,u){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var v=a.stateNode.containerInfo;if(v===u)break;if(f===4)for(f=a.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;v!==null;){if(f=Ca(v),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}v=v.parentNode}}a=a.return}xr(function(){var x=c,N=bs(n),q=[];t:{var z=af.get(t);if(z!==void 0){var U=qi,F=t;switch(t){case"keypress":if(ji(n)===0)break t;case"keydown":case"keyup":U=_v;break;case"focusin":F="focus",U=Os;break;case"focusout":F="blur",U=Os;break;case"beforeblur":case"afterblur":U=Os;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ur;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=ov;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Ev;break;case $r:case tf:case ef:U=hv;break;case nf:U=Ov;break;case"scroll":case"scrollend":U=sv;break;case"wheel":U=Av;break;case"copy":case"cut":case"paste":U=mv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=wr;break;case"toggle":case"beforetoggle":U=zv}var ut=(e&4)!==0,Ot=!ut&&(t==="scroll"||t==="scrollend"),O=ut?z!==null?z+"Capture":null:z;ut=[];for(var T=x,A;T!==null;){var j=T;if(A=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||A===null||O===null||(j=El(T,O),j!=null&&ut.push(ai(T,j,A))),Ot)break;T=T.return}0<ut.length&&(z=new U(z,F,null,n,N),q.push({event:z,listeners:ut}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",z&&n!==Ss&&(F=n.relatedTarget||n.fromElement)&&(Ca(F)||F[Oa]))break t;if((U||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,U?(F=n.relatedTarget||n.toElement,U=x,F=F?Ca(F):null,F!==null&&(Ot=h(F),ut=F.tag,F!==Ot||ut!==5&&ut!==27&&ut!==6)&&(F=null)):(U=null,F=x),U!==F)){if(ut=Ur,j="onMouseLeave",O="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(ut=wr,j="onPointerLeave",O="onPointerEnter",T="pointer"),Ot=U==null?z:Tl(U),A=F==null?z:Tl(F),z=new ut(j,T+"leave",U,n,N),z.target=Ot,z.relatedTarget=A,j=null,Ca(N)===x&&(ut=new ut(O,T+"enter",F,n,N),ut.target=A,ut.relatedTarget=Ot,j=ut),Ot=j,U&&F)e:{for(ut=xp,O=U,T=F,A=0,j=O;j;j=ut(j))A++;j=0;for(var et=T;et;et=ut(et))j++;for(;0<A-j;)O=ut(O),A--;for(;0<j-A;)T=ut(T),j--;for(;A--;){if(O===T||T!==null&&O===T.alternate){ut=O;break e}O=ut(O),T=ut(T)}ut=null}else ut=null;U!==null&&Od(q,z,U,ut,!1),F!==null&&Ot!==null&&Od(q,Ot,F,ut,!0)}}t:{if(z=x?Tl(x):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var pt=Gr;else if(Qr(z))if(Xr)pt=Qv;else{pt=Hv;var W=jv}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&gs(x.elementType)&&(pt=Gr):pt=qv;if(pt&&(pt=pt(t,x))){Yr(q,pt,n,N);break t}W&&W(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&ps(z,"number",z.value)}switch(W=x?Tl(x):window,t){case"focusin":(Qr(W)||W.contentEditable==="true")&&(Ba=W,Us=x,Ul=null);break;case"focusout":Ul=Us=Ba=null;break;case"mousedown":Ls=!0;break;case"contextmenu":case"mouseup":case"dragend":Ls=!1,Wr(q,n,N);break;case"selectionchange":if(Gv)break;case"keydown":case"keyup":Wr(q,n,N)}var ot;if(As)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else Na?Hr(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Nr&&n.locale!=="ko"&&(Na||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Na&&(ot=zr()):(_n=N,Ts="value"in _n?_n.value:_n.textContent,Na=!0)),W=xu(x,mt),0<W.length&&(mt=new Lr(mt,t,null,n,N),q.push({event:mt,listeners:W}),ot?mt.data=ot:(ot=qr(n),ot!==null&&(mt.data=ot)))),(ot=Uv?Lv(t,n):wv(t,n))&&(mt=xu(x,"onBeforeInput"),0<mt.length&&(W=new Lr("onBeforeInput","beforeinput",null,n,N),q.push({event:W,listeners:mt}),W.data=ot)),Mp(q,t,x,n,N)}Ed(q,e)})}function ai(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xu(t,e){for(var n=e+"Capture",a=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=El(t,n),u!=null&&a.unshift(ai(t,u,c)),u=El(t,e),u!=null&&a.push(ai(t,u,c))),t.tag===3)return a;t=t.return}return[]}function xp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Od(t,e,n,a,u){for(var c=e._reactName,f=[];n!==null&&n!==a;){var v=n,R=v.alternate,x=v.stateNode;if(v=v.tag,R!==null&&R===a)break;v!==5&&v!==26&&v!==27||x===null||(R=x,u?(x=El(n,c),x!=null&&f.unshift(ai(n,x,R))):u||(x=El(n,c),x!=null&&f.push(ai(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var zp=/\r\n?/g,Dp=/\u0000|\uFFFD/g;function Cd(t){return(typeof t=="string"?t:""+t).replace(zp,`
9
- `).replace(Dp,"")}function Ad(t,e){return e=Cd(e),Cd(t)===e}function Mt(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ua(t,""+a);break;case"className":Li(t,"class",a);break;case"tabIndex":Li(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(t,n,a);break;case"style":Cr(t,a,c);break;case"data":if(e!=="object"){Li(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ni(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Ni(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Ni(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Ui(t,"popover",a);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ui(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=iv.get(n)||n,Ui(t,n,a))}}function lo(t,e,n,a,u,c){switch(n){case"style":Cr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&Ua(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Ui(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,c,f,n,null)}}u&&Mt(t,e,"srcSet",n.srcSet,n,null),a&&Mt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var v=c=f=u=null,R=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var N=n[a];if(N!=null)switch(a){case"name":u=N;break;case"type":f=N;break;case"checked":R=N;break;case"defaultChecked":x=N;break;case"value":c=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:Mt(t,e,a,N,n,null)}}Tr(t,c,v,R,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Mt(t,e,u,v,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Da(t,!!a,e,!1):n!=null&&Da(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Mt(t,e,f,v,n,null)}Mr(t,a,u,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Mt(t,e,R,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ni.length;a++)ht(ni[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,x,a,n,null)}return;default:if(gs(e)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&lo(t,e,N,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Mt(t,e,v,a,n,null))}function Up(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,f=null,v=null,R=null,x=null,N=null;for(U in n){var q=n[U];if(n.hasOwnProperty(U)&&q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=q;default:a.hasOwnProperty(U)||Mt(t,e,U,null,a,q)}}for(var z in a){var U=a[z];if(q=n[z],a.hasOwnProperty(z)&&(U!=null||q!=null))switch(z){case"type":c=U;break;case"name":u=U;break;case"checked":x=U;break;case"defaultChecked":N=U;break;case"value":f=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==q&&Mt(t,e,z,U,a,q)}}vs(t,f,v,R,x,N,c,u);return;case"select":U=f=v=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":U=R;default:a.hasOwnProperty(c)||Mt(t,e,c,null,a,R)}for(u in a)if(c=a[u],R=n[u],a.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==R&&Mt(t,e,u,c,a,R)}e=v,n=f,a=U,z!=null?Da(t,!!n,z,!1):!!a!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Mt(t,e,v,null,a,u)}for(f in a)if(u=a[f],c=n[f],a.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Mt(t,e,f,u,a,c)}Er(t,z,U);return;case"option":for(var F in n)z=n[F],n.hasOwnProperty(F)&&z!=null&&!a.hasOwnProperty(F)&&(F==="selected"?t.selected=!1:Mt(t,e,F,null,a,z));for(R in a)z=a[R],U=n[R],a.hasOwnProperty(R)&&z!==U&&(z!=null||U!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Mt(t,e,R,z,a,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in n)z=n[ut],n.hasOwnProperty(ut)&&z!=null&&!a.hasOwnProperty(ut)&&Mt(t,e,ut,null,a,z);for(x in a)if(z=a[x],U=n[x],a.hasOwnProperty(x)&&z!==U&&(z!=null||U!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Mt(t,e,x,z,a,U)}return;default:if(gs(e)){for(var Ot in n)z=n[Ot],n.hasOwnProperty(Ot)&&z!==void 0&&!a.hasOwnProperty(Ot)&&lo(t,e,Ot,void 0,a,z);for(N in a)z=a[N],U=n[N],!a.hasOwnProperty(N)||z===U||z===void 0&&U===void 0||lo(t,e,N,z,a,U);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Mt(t,e,O,null,a,z);for(q in a)z=a[q],U=n[q],!a.hasOwnProperty(q)||z===U||z==null&&U==null||Mt(t,e,q,z,a,U)}function xd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,f=u.initiatorType,v=u.duration;if(c&&v&&xd(f)){for(f=0,v=u.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>v)break;var N=R.transferSize,q=R.initiatorType;N&&xd(q)&&(R=R.responseEnd,f+=N*(R<v?1:(v-x)/(R-x)))}if(--a,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var io=null,uo=null;function zu(t){return t.nodeType===9?t:t.ownerDocument}function zd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function so(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var co=null;function wp(){var t=window.event;return t&&t.type==="popstate"?t===co?!1:(co=t,!0):(co=null,!1)}var Ud=typeof setTimeout=="function"?setTimeout:void 0,Np=typeof clearTimeout=="function"?clearTimeout:void 0,Ld=typeof Promise=="function"?Promise:void 0,Bp=typeof queueMicrotask=="function"?queueMicrotask:typeof Ld<"u"?function(t){return Ld.resolve(null).then(t).catch(jp)}:Ud;function jp(t){setTimeout(function(){throw t})}function Hn(t){return t==="head"}function wd(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),ol(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")li(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,li(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Rl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&li(t.ownerDocument.body);n=u}while(n);ol(e)}function Nd(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function oo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":oo(n),ms(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Hp(t,e,n,a){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Rl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function qp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function Bd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function ro(t){return t.data==="$?"||t.data==="$~"}function fo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Qp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function we(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ho=null;function jd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Hd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function qd(t,e,n){switch(e=zu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function li(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ms(t)}var Ne=new Map,Qd=new Set;function Du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=V.d;V.d={f:Yp,r:Gp,D:Xp,C:Vp,L:Kp,m:Zp,X:Pp,S:Jp,M:Fp};function Yp(){var t=yn.f(),e=Ru();return t||e}function Gp(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?ah(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Yd(t,e,n){var a=ul;if(a&&typeof e=="string"&&e){var u=Ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Qd.has(u)||(Qd.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Xp(t){yn.D(t),Yd("dns-prefetch",t,null)}function Vp(t,e){yn.C(t,e),Yd("preconnect",t,e)}function Kp(t,e,n){yn.L(t,e,n);var a=ul;if(a&&t&&e){var u='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ce(n.imageSizes)+'"]')):u+='[href="'+Ce(t)+'"]';var c=u;switch(e){case"style":c=sl(t);break;case"script":c=cl(t)}Ne.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(c,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(ii(c))||e==="script"&&a.querySelector(ui(c))||(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Zp(t,e){yn.m(t,e);var n=ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cl(t)}if(!Ne.has(c)&&(t=g({rel:"modulepreload",href:t},e),Ne.set(c,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ui(c)))return}a=n.createElement("link"),ee(a,"link",t),Pt(a),n.head.appendChild(a)}}}function Jp(t,e,n){yn.S(t,e,n);var a=ul;if(a&&t){var u=xa(a).hoistableStyles,c=sl(t);e=e||"default";var f=u.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(ii(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(c))&&mo(t,n);var R=f=a.createElement("link");Pt(R),ee(R,"link",t),R._p=new Promise(function(x,N){R.onload=x,R.onerror=N}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Uu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function Pp(t,e){yn.X(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(ui(u)),c||(t=g({src:t,async:!0},e),(e=Ne.get(u))&&yo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Fp(t,e){yn.M(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(ui(u)),c||(t=g({src:t,async:!0,type:"module"},e),(e=Ne.get(u))&&yo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Gd(t,e,n,a){var u=(u=rt.current)?Du(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=sl(n.href),n=xa(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=sl(n.href);var c=xa(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.querySelector(ii(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ne.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ne.set(t,n),c||kp(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=cl(n),n=xa(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function sl(t){return'href="'+Ce(t)+'"'}function ii(t){return'link[rel="stylesheet"]['+t+"]"}function Xd(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function kp(t,e,n,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}),ee(e,"link",n),Pt(e),t.head.appendChild(e))}function cl(t){return'[src="'+Ce(t)+'"]'}function ui(t){return"script[async]"+t}function Vd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ee(a,"style",u),Uu(a,n.precedence,t),e.instance=a;case"stylesheet":u=sl(n.href);var c=t.querySelector(ii(u));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;a=Xd(n),(u=Ne.get(u))&&mo(a,u),c=(t.ownerDocument||t).createElement("link"),Pt(c);var f=c;return f._p=new Promise(function(v,R){f.onload=v,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Uu(c,n.precedence,t),e.instance=c;case"script":return c=cl(n.src),(u=t.querySelector(ui(c)))?(e.instance=u,Pt(u),u):(a=n,(u=Ne.get(c))&&(a=g({},n),yo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Pt(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Uu(a,n.precedence,t));return e.instance}function Uu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,f=0;f<a.length;f++){var v=a[f];if(v.dataset.precedence===e)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function mo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function yo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lu=null;function Kd(t,e,n){if(Lu===null){var a=new Map,u=Lu=new Map;u.set(n,a)}else u=Lu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];if(!(c[Rl]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=a.get(f);v?v.push(c):a.set(f,[c])}}return a}function Zd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Wp(t,e,n){if(n===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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 Jd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ip(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=sl(a.href),c=e.querySelector(ii(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=wu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,a=Xd(a),(u=Ne.get(u))&&mo(a,u),c=c.createElement("link"),Pt(c);var f=c;f._p=new Promise(function(v,R){f.onload=v,f.onerror=R}),ee(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=wu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var vo=0;function $p(t,e){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&vo===0&&(vo=62500*Lp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>vo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Nu=null;function Bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Nu=new Map,e.forEach(tg,t),Nu=null,wu.call(t))}function tg(t,e){if(!(e.state.loading&4)){var n=Nu.get(t);if(n)var a=n.get(null);else{n=new Map,Nu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,u),n.set(f,u),this.count++,a=wu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var si={$$typeof:X,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function eg(t,e,n,a,u,c,f,v,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Pd(t,e,n,a,u,c,f,v,R,x,N,q){return t=new eg(t,e,n,f,R,x,N,q,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=Ps(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},Is(c),t}function Fd(t){return t?(t=qa,t):qa}function kd(t,e,n,a,u,c){u=Fd(u),a.context===null?a.context=u:a.pendingContext=u,a=Cn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=An(t,a,e),n!==null&&(de(n,t,e),ql(n,t,e))}function Wd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function po(t,e){Wd(t,e),(t=t.alternate)&&Wd(t,e)}function Id(t){if(t.tag===13||t.tag===31){var e=na(t,67108864);e!==null&&de(e,t,67108864),po(t,67108864)}}function $d(t){if(t.tag===13||t.tag===31){var e=Te();e=fs(e);var n=na(t,e);n!==null&&de(n,t,e),po(t,e)}}var ju=!0;function ng(t,e,n,a){var u=w.T;w.T=null;var c=V.p;try{V.p=2,go(t,e,n,a)}finally{V.p=c,w.T=u}}function ag(t,e,n,a){var u=w.T;w.T=null;var c=V.p;try{V.p=8,go(t,e,n,a)}finally{V.p=c,w.T=u}}function go(t,e,n,a){if(ju){var u=So(a);if(u===null)ao(t,e,a,Hu,n),em(t,a);else if(ig(u,t,e,n,a))a.stopPropagation();else if(em(t,a),e&4&&-1<lg.indexOf(t)){for(;u!==null;){var c=Aa(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Wn(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var R=1<<31-ve(f);v.entanglements[1]|=R,f&=~R}Ze(c),(bt&6)===0&&(bu=ne()+500,ei(0))}}break;case 31:case 13:v=na(c,2),v!==null&&de(v,c,2),Ru(),po(c,2)}if(c=So(a),c===null&&ao(t,e,a,Hu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else ao(t,e,a,null,n)}}function So(t){return t=bs(t),bo(t)}var Hu=null;function bo(t){if(Hu=null,t=Ca(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Hu=t,null}function tm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xt()){case kt:return 2;case Ge:return 8;case Ma:case Vy:return 32;case or:return 268435456;default:return 32}default:return 32}}var _o=!1,qn=null,Qn=null,Yn=null,ci=new Map,oi=new Map,Gn=[],lg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function em(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":ci.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(e.pointerId)}}function ri(t,e,n,a,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Aa(e),e!==null&&Id(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function ig(t,e,n,a,u){switch(e){case"focusin":return qn=ri(qn,t,e,n,a,u),!0;case"dragenter":return Qn=ri(Qn,t,e,n,a,u),!0;case"mouseover":return Yn=ri(Yn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return ci.set(c,ri(ci.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,oi.set(c,ri(oi.get(c)||null,t,e,n,a,u)),!0}return!1}function nm(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,yr(t.priority,function(){$d(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,yr(t.priority,function(){$d(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=So(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Ss=a,n.target.dispatchEvent(a),Ss=null}else return e=Aa(n),e!==null&&Id(e),t.blockedOn=n,!1;e.shift()}return!0}function am(t,e,n){qu(t)&&n.delete(e)}function ug(){_o=!1,qn!==null&&qu(qn)&&(qn=null),Qn!==null&&qu(Qn)&&(Qn=null),Yn!==null&&qu(Yn)&&(Yn=null),ci.forEach(am),oi.forEach(am)}function Qu(t,e){t.blockedOn===e&&(t.blockedOn=null,_o||(_o=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ug)))}var Yu=null;function lm(t){Yu!==t&&(Yu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Yu===t&&(Yu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(bo(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,gc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ol(t){function e(R){return Qu(R,t)}qn!==null&&Qu(qn,t),Qn!==null&&Qu(Qn,t),Yn!==null&&Qu(Yn,t),ci.forEach(e),oi.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)nm(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],f=u[se]||null;if(typeof c=="function")f||lm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)v=f.formAction;else if(bo(u)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),lm(n)}}}function im(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Ro(t){this._internalRoot=t}Gu.prototype.render=Ro.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Te();kd(n,a,t,e,null,null)},Gu.prototype.unmount=Ro.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;kd(t.current,2,null,t,null,null),Ru(),e[Oa]=null}};function Gu(t){this._internalRoot=t}Gu.prototype.unstable_scheduleHydration=function(t){if(t){var e=mr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&nm(t)}};var um=i.version;if(um!=="19.2.0")throw Error(o(527,um,"19.2.0"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var sg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{Sl=Xu.inject(sg),ye=Xu}catch{}}return hi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=dh,c=mh,f=yh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Pd(t,1,!1,null,null,n,a,null,u,c,f,im),t[Oa]=e.current,no(t),new Ro(e)},hi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=dh,f=mh,v=yh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=Pd(t,1,!0,e,n??null,a,u,R,c,f,v,im),e.context=Fd(null),n=e.current,a=Te(),a=fs(a),u=Cn(a),u.callback=null,An(n,u,a),n=a,e.current.lanes=n,_l(e,n),Ze(e),t[Oa]=e.current,no(t),new Gu(e)},hi.version="19.2.0",hi}var vm;function pg(){if(vm)return Mo.exports;vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Mo.exports=vg(),Mo.exports}var FS=pg(),yl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},gg=class extends yl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},$o=new gg,Sg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},bg=class{#t=Sg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,i){return this.#t.setTimeout(l,i)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,i){return this.#t.setInterval(l,i)}clearInterval(l){this.#t.clearInterval(l)}},va=new bg;function _g(l){setTimeout(l,0)}var Rg=typeof window>"u"||"Deno"in globalThis;function ue(){}function Tg(l,i){return typeof l=="function"?l(i):l}function Yo(l){return typeof l=="number"&&l>=0&&l!==1/0}function ey(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Pn(l,i){return typeof l=="function"?l(i):l}function Ee(l,i){return typeof l=="function"?l(i):l}function pm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:d,stale:p}=l;if(d){if(o){if(i.queryHash!==tr(d,i.options))return!1}else if(!Si(i.queryKey,d))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||r&&r!==i.state.fetchStatus||h&&!h(i))}function gm(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ra(i.options.mutationKey)!==Ra(h))return!1}else if(!Si(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function tr(l,i){return(i?.queryKeyHashFn||Ra)(l)}function Ra(l){return JSON.stringify(l,(i,s)=>Go(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Si(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Si(l[s],i[s])):!1}var Eg=Object.prototype.hasOwnProperty;function ny(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=Sm(l)&&Sm(i);if(!o&&!(Go(l)&&Go(i)))return i;const h=(o?l:Object.keys(l)).length,d=o?i:Object.keys(i),p=d.length,y=o?new Array(p):{};let m=0;for(let S=0;S<p;S++){const g=o?S:d[S],b=l[g],_=i[g];if(b===_){y[g]=b,(o?S<h:Eg.call(l,g))&&m++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){y[g]=_;continue}const M=ny(b,_,s+1);y[g]=M,M===b&&m++}return h===p&&m===h?l:y}function $u(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function Sm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Go(l){if(!bm(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!bm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function bm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Mg(l){return new Promise(i=>{va.setTimeout(i,l)})}function Xo(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?ny(l,i):i}function Og(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Cg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var er=Symbol();function ay(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===er?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function nr(l,i){return typeof l=="function"?l(...i):!!l}function Ag(l,i,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var bi=(()=>{let l=()=>Rg;return{isServer(){return l()},setIsServer(i){l=i}}})();function Vo(){let l,i;const s=new Promise((r,h)=>{l=r,i=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),i(r)},s}var xg=_g;function zg(){let l=[],i=0,s=p=>{p()},o=p=>{p()},r=xg;const h=p=>{i?l.push(p):r(()=>{s(p)})},d=()=>{const p=l;l=[],p.length&&r(()=>{o(()=>{p.forEach(y=>{s(y)})})})};return{batch:p=>{let y;i++;try{y=p()}finally{i--,i||d()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{r=p}}}var Jt=zg(),Dg=class extends yl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(s=>{s(l)}))}isOnline(){return this.#t}},ts=new Dg;function Ug(l){return Math.min(1e3*2**l,3e4)}function ly(l){return(l??"online")==="online"?ts.isOnline():!0}var Ko=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function iy(l){let i=!1,s=0,o;const r=Vo(),h=()=>r.status!=="pending",d=C=>{if(!h()){const D=new Ko(C);b(D),l.onCancel?.(D)}},p=()=>{i=!0},y=()=>{i=!1},m=()=>$o.isFocused()&&(l.networkMode==="always"||ts.isOnline())&&l.canRun(),S=()=>ly(l.networkMode)&&l.canRun(),g=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=D=>{(h()||m())&&C(D)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let C;const D=s===0?l.initialPromise:void 0;try{C=D??l.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(g).catch(L=>{if(h())return;const Q=l.retry??(bi.isServer()?0:3),X=l.retryDelay??Ug,Y=typeof X=="function"?X(s,L):X,I=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,L);if(i||!I){b(L);return}s++,l.onFail?.(s,L),Mg(Y).then(()=>m()?void 0:_()).then(()=>{i?b(L):M()})})};return{promise:r,status:()=>r.status,cancel:d,continue:()=>(o?.(),r),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?M():_().then(M),r)}}var uy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yo(this.gcTime)&&(this.#t=va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(bi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(va.clearTimeout(this.#t),this.#t=void 0)}};function Lg(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const m=async()=>{let S=!1;const g=M=>{Ag(M,()=>i.signal,()=>S=!0)},b=ay(i.options,i.fetchOptions),_=async(M,C,D)=>{if(S)return Promise.reject(i.signal.reason);if(C==null&&M.pages.length)return Promise.resolve(M);const Q=(()=>{const J={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return g(J),J})(),X=await b(Q),{maxPages:Y}=i.options,I=D?Cg:Og;return{pages:I(M.pages,X,Y),pageParams:I(M.pageParams,C,Y)}};if(r&&h.length){const M=r==="backward",C=M?sy:Zo,D={pages:h,pageParams:d},L=C(o,D);p=await _(D,L,M)}else{const M=l??h.length;do{const C=y===0?d[0]??o.initialPageParam:Zo(o,p);if(y>0&&C==null)break;p=await _(p,C),y++}while(y<M)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=m}}}function Zo(l,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?l.getNextPageParam(i[o],i,s[o],s):void 0}function sy(l,{pages:i,pageParams:s}){return i.length>0?l.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function wg(l,i){return i?Zo(l,i)!=null:!1}function Ng(l,i){return!i||!l.getPreviousPageParam?!1:sy(l,i)!=null}var Bg=class extends uy{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#i=l.client,this.#a=this.#i.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=Rm(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},l?._type&&(this.#t=l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Rm(this.options);i.data!==void 0&&(this.setState(_m(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(l,i){const s=Xo(this.state.data,l,this.options);return this.#c({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l){this.#c({type:"setState",state:l})}cancel(l){const i=this.#l?.promise;return this.#l?.cancel(l),i?i.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Ee(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===er||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Pn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!ey(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(this.#l&&(this.#u||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(l,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},r=()=>{const y=ay(this.options,i),S=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#u=!1,this.options.persister?this.options.persister(y,S,this):y(S)},d=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(y),y})();(this.#t==="infinite"?Lg(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#c({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=iy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:y=>{y instanceof Ko&&y.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(y,m)=>{this.#c({type:"failed",failureCount:y,error:m})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const y=await this.#l.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Ko){if(y.silent)return this.#l.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#c({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#c(l){const i=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...cy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,..._m(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=l.manual?o:void 0,o;case"error":const r=l.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=i(this.state),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:l})})}};function cy(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ly(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function _m(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Rm(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var oy=class extends yl{constructor(l,i){super(),this.options=i,this.#t=l,this.#u=null,this.#s=Vo(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#s;#u;#r;#c;#m;#f;#h;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Tm(this.#e,this.options)?this.#d():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const i=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ee(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),i._defaulted&&!$u(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Em(this.#e,s,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==s||Ee(this.options.enabled,this.#e)!==Ee(i.enabled,this.#e)||Pn(this.options.staleTime,this.#e)!==Pn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Ee(this.options.enabled,this.#e)!==Ee(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Hg(this,s)&&(this.#a=s,this.#l=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(l,i){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(l){this.#y.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(l){return this.#d({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#v(){this.#b();const l=Pn(this.options.staleTime,this.#e);if(bi.isServer()||this.#a.isStale||!Yo(l))return;const s=ey(this.#a.dataUpdatedAt,l)+1;this.#f=va.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#o=l,!(bi.isServer()||Ee(this.options.enabled,this.#e)===!1||!Yo(this.#o)||this.#o===0)&&(this.#h=va.setInterval(()=>{(this.options.refetchIntervalInBackground||$o.isFocused())&&this.#d()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#f!==void 0&&(va.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h!==void 0&&(va.clearInterval(this.#h),this.#h=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#a,h=this.#i,d=this.#l,y=l!==s?l.state:this.#n,{state:m}=l;let S={...m},g=!1,b;if(i._optimisticResults){const G=this.hasListeners(),Z=!G&&Tm(l,i),it=G&&Em(l,s,i,o);(Z||it)&&(S={...S,...cy(m.data,l.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:C}=S;b=S.data;let D=!1;if(i.placeholderData!==void 0&&b===void 0&&C==="pending"){let G;r?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(G=r.data,D=!0):G=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,G!==void 0&&(C="success",b=Xo(r?.data,G,i),g=!0)}if(i.select&&b!==void 0&&!D)if(r&&b===h?.data&&i.select===this.#r)b=this.#c;else try{this.#r=i.select,b=i.select(b),b=Xo(r?.data,b,i),this.#c=b,this.#u=null}catch(G){this.#u=G}this.#u&&(_=this.#u,b=this.#c,M=Date.now(),C="error");const L=S.fetchStatus==="fetching",Q=C==="pending",X=C==="error",Y=Q&&L,I=b!==void 0,B={status:C,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:C==="success",isError:X,isInitialLoading:Y,isLoading:Y,data:b,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:L,isRefetching:L&&!Q,isLoadingError:X&&!I,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:X&&I,isStale:ar(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Ee(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const G=B.data!==void 0,Z=B.status==="error"&&!G,it=Nt=>{Z?Nt.reject(B.error):G&&Nt.resolve(B.data)},nt=()=>{const Nt=this.#s=B.promise=Vo();it(Nt)},tt=this.#s;switch(tt.status){case"pending":l.queryHash===s.queryHash&&it(tt);break;case"fulfilled":(Z||B.data!==tt.value)&&nt();break;case"rejected":(!Z||B.error!==tt.reason)&&nt();break}}return B}updateResult(){const l=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),$u(i,l))return;this.#a=i;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#y.size)return!0;const h=new Set(r??this.#y);return this.options.throwOnError&&h.add("error"),Object.keys(this.#a).some(d=>{const p=d;return this.#a[p]!==l[p]&&h.has(p)})};this.#T({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const i=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(i?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#T(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jg(l,i){return Ee(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Ee(i.retryOnMount,l)===!1)}function Tm(l,i){return jg(l,i)||l.state.data!==void 0&&Jo(l,i,i.refetchOnMount)}function Jo(l,i,s){if(Ee(i.enabled,l)!==!1&&Pn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&ar(l,i)}return!1}function Em(l,i,s,o){return(l!==i||Ee(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&ar(l,s)}function ar(l,i){return Ee(i.enabled,l)!==!1&&l.isStaleByTime(Pn(i.staleTime,l))}function Hg(l,i){return!$u(l.getCurrentResult(),i)}var qg=class extends oy{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){l._type="infinite",super.setOptions(l)}getOptimisticResult(l){return l._type="infinite",super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,i){const{state:s}=l,o=super.createResult(l,i),{isFetching:r,isRefetching:h,isError:d,isRefetchError:p}=o,y=s.fetchMeta?.fetchMore?.direction,m=d&&y==="forward",S=r&&y==="forward",g=d&&y==="backward",b=r&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:wg(i,s.data),hasPreviousPage:Ng(i,s.data),isFetchNextPageError:m,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:p&&!m&&!g,isRefetching:h&&!S&&!b}}},Qg=class extends uy{#t;#e;#n;#a;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||ry(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(i=>i!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(l){const i=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=iy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,d)=>{this.#i({type:"failed",failureCount:h,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#a.canStart();try{if(o)i();else{this.#i({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const d=await this.options.onMutate?.(l,s);d!==this.state.context&&this.#i({type:"pending",context:d,variables:l,isPaused:r})}const h=await this.#a.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#i({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(d){Promise.reject(d)}throw this.#i({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#i(l){const i=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function ry(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Yg=class extends yl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,i,s){const o=new Qg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(i),state:s});return this.add(o),o}add(l){this.#t.add(l);const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(l):this.#e.set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Vu(l);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const i=Vu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const i={exact:!0,...l};return this.getAll().find(s=>gm(i,s))}findAll(l={}){return this.getAll().filter(i=>gm(l,i))}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Jt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Vu(l){return l.options.scope?.id}var Gg=class extends yl{#t;#e=void 0;#n;#a;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const i=this.options;this.options=this.#t.defaultMutationOptions(l),$u(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ra(i.mutationKey)!==Ra(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#i(),this.#l(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#l()}mutate(l,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??ry();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#l(l){Jt.batch(()=>{if(this.#a&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#a.onSuccess?.(l.data,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#a.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Xg=class extends yl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??tr(o,i);let h=this.get(r);return h||(h=new Bg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(i),state:s,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=this.#t.get(l.queryHash);i&&(l.destroy(),i===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Jt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const i={exact:!0,...l};return this.getAll().find(s=>pm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>pm(l,s)):i}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},kS=class{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l={}){this.#t=l.queryCache||new Xg,this.#e=l.mutationCache||new Yg,this.#n=l.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=$o.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=ts.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#u?.(),this.#u=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Pn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(l,i,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,d=Tg(i,h);if(d!==void 0)return this.#t.build(this,o).setData(d,{...s,manual:!0})}setQueriesData(l,i,s){return Jt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state}removeQueries(l){const i=this.#t;Jt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Jt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Pn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return ts.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,i){this.#a.set(Ra(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Si(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#i.set(Ra(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#i.values()],s={};return i.forEach(o=>{Si(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=tr(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===er&&(i.enabled=!1),i}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},fy=k.createContext(void 0),hy=l=>{const i=k.useContext(fy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},WS=({client:l,children:i})=>(k.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),lt.jsx(fy.Provider,{value:l,children:i})),dy=k.createContext(!1),Vg=()=>k.useContext(dy);dy.Provider;function Kg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Zg=k.createContext(Kg()),Jg=()=>k.useContext(Zg),Pg=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?nr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},Fg=l=>{k.useEffect(()=>{l.clearReset()},[l])},kg=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||nr(s,[l.error,o])),Wg=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Ig=(l,i)=>l.isLoading&&l.isFetching&&!i,$g=(l,i)=>l?.suspense&&i.isPending,Mm=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function my(l,i,s){const o=Vg(),r=Jg(),h=hy(),d=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=h.getQueryCache().get(d.queryHash);d._optimisticResults=o?"isRestoring":"optimistic",Wg(d),Pg(d,r,p),Fg(r);const y=!h.getQueryCache().get(d.queryHash),[m]=k.useState(()=>new i(h,d)),S=m.getOptimisticResult(d),g=!o&&l.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(b=>{const _=g?m.subscribe(Jt.batchCalls(b)):ue;return m.updateResult(),_},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),k.useEffect(()=>{m.setOptions(d)},[d,m]),$g(d,S))throw Mm(d,m,r);if(kg({result:S,errorResetBoundary:r,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(d,S),d.experimental_prefetchInRender&&!bi.isServer()&&Ig(S,o)&&(y?Mm(d,m,r):p?.promise)?.catch(ue).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?S:m.trackResult(S)}function IS(l,i){return my(l,oy)}function $S(l,i){const s=hy(),[o]=k.useState(()=>new Gg(s,l));k.useEffect(()=>{o.setOptions(l)},[o,l]);const r=k.useSyncExternalStore(k.useCallback(d=>o.subscribe(Jt.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=k.useCallback((d,p)=>{o.mutate(d,p).catch(ue)},[o]);if(r.error&&nr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function tb(l,i){return my(l,qg)}var pi=typeof window<"u"?k.useLayoutEffect:k.useEffect;function xo(l){const i=k.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function t0(l,i,s={},o={}){k.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[i,s,o.disabled,l])}function e0(l){const i=k.useRef(null);return k.useImperativeHandle(l,()=>i.current,[]),i}const yy=!1;function _i(l){return l[l.length-1]}function n0(l){return typeof l=="function"}function Kn(l,i){return n0(l)?l(i):l}const vy=Object.prototype.hasOwnProperty,Om=Object.prototype.propertyIsEnumerable;function py(l){for(const i in l)if(vy.call(l,i))return!0;return!1}const a0=()=>Object.create(null),ya=(l,i)=>pa(l,i,a0);function pa(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=xm(l)&&xm(r);if(!h&&!(dl(l)&&dl(r)))return r;const d=h?l:Cm(l);if(!d)return r;const p=h?r:Cm(r);if(!p)return r;const y=d.length,m=p.length,S=h?new Array(m):s();let g=0;for(let b=0;b<m;b++){const _=h?b:p[b],M=l[_],C=r[_];if(M===C){S[_]=M,(h?b<y:vy.call(l,_))&&g++;continue}if(M===null||C===null||typeof M!="object"||typeof C!="object"){S[_]=C;continue}const D=pa(M,C,s,o+1);S[_]=D,D===M&&g++}return y===m&&g===y?l:S}function Cm(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!Om.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const o=i;for(const r of s){if(!Om.call(l,r))return!1;o.push(r)}return o}function dl(l){if(!Am(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Am(s)||!s.hasOwnProperty("isPrototypeOf"))}function Am(l){return Object.prototype.toString.call(l)==="[object Object]"}function xm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sa(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Sa(l[o],i[o],s))return!1;return!0}if(dl(l)&&dl(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const d in i)if((!o||i[d]!==void 0)&&!Sa(l[d],i[d],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const d in l)l[d]!==void 0&&r++;let h=0;for(const d in i)if((!o||i[d]!==void 0)&&(h++,h>r||!Sa(l[d],i[d],s)))return!1;return r===h}return!1}function ml(l){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Ri(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function l0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function zm(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return l0(i)}const i0=["http:","https:","mailto:","tel:"];function es(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function di(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(l))!==null;)o+=zm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+zm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function u0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function s0(l,i){if(l===i)return!0;if(l.length!==i.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==i[s])return!1;return!0}function pn(){throw new Error("Invariant failed")}function Ti(l){const i=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const d=i.get(h);if(d)return r(d),d.value},set(h,d){if(i.size>=l&&s){const y=s;i.delete(y.key),y.next&&(s=y.next,y.next.prev=void 0),y===o&&(o=void 0)}const p=i.get(h);if(p)p.value=d,r(p);else{const y={key:h,value:d,prev:o};o&&(o.next=y),o=y,s||(s=y),i.set(h,y)}},clear(){i.clear(),s=void 0,o=void 0}}}const Zn=4,gy=5;function c0(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function Sy(l,i,s=new Uint16Array(6)){const o=l.indexOf("/",i),r=o===-1?l.length:o,h=l.substring(i,r);if(!h||!h.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const p=l.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=p,s[4]=p,s[5]=p,s}if(h.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const d=c0(h);if(d){const[p,y]=d,m=h.charCodeAt(p+1);if(m===45){if(p+2<h.length&&h.charCodeAt(p+2)===36){const S=p+3,g=y;if(S<g)return s[0]=3,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=r,s}}else if(m===36){const S=p+1,g=p+2;return g===y?(s[0]=2,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=l.length,s):(s[0]=1,s[1]=i+p,s[2]=i+g,s[3]=i+y,s[4]=i+y+1,s[5]=r,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function us(l,i,s,o,r,h,d){d?.(s);let p=o;{const y=s.fullPath??s.from,m=y.length,S=s.options?.caseSensitive??l,g=s.options?.params?.parse??s.options?.parseParams;for(;p<m;){const _=Sy(y,p,i);let M;const C=p,D=_[5];switch(p=D+1,h++,_[0]){case 0:{const L=y.substring(_[2],_[3]);if(S){const Q=r.static?.get(L);if(Q)M=Q;else{r.static??=new Map;const X=ga(s.fullPath??s.from);X.parent=r,X.depth=h,M=X,r.static.set(L,X)}}else{const Q=L.toLowerCase(),X=r.staticInsensitive?.get(Q);if(X)M=X;else{r.staticInsensitive??=new Map;const Y=ga(s.fullPath??s.from);Y.parent=r,Y.depth=h,M=Y,r.staticInsensitive.set(Q,Y)}}break}case 1:{const L=y.substring(C,_[1]),Q=y.substring(_[4],D),X=S&&!!(L||Q),Y=L?X?L:L.toLowerCase():void 0,I=Q?X?Q:Q.toLowerCase():void 0,J=!g&&r.dynamic?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===Y&&B.suffix===I);if(J)M=J;else{const B=Do(1,s.fullPath??s.from,X,Y,I);M=B,B.depth=h,B.parent=r,r.dynamic??=[],r.dynamic.push(B)}break}case 3:{const L=y.substring(C,_[1]),Q=y.substring(_[4],D),X=S&&!!(L||Q),Y=L?X?L:L.toLowerCase():void 0,I=Q?X?Q:Q.toLowerCase():void 0,J=!g&&r.optional?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===Y&&B.suffix===I);if(J)M=J;else{const B=Do(3,s.fullPath??s.from,X,Y,I);M=B,B.parent=r,B.depth=h,r.optional??=[],r.optional.push(B)}break}case 2:{const L=y.substring(C,_[1]),Q=y.substring(_[4],D),X=S&&!!(L||Q),Y=L?X?L:L.toLowerCase():void 0,I=Q?X?Q:Q.toLowerCase():void 0,J=Do(2,s.fullPath??s.from,X,Y,I);M=J,J.parent=r,J.depth=h,r.wildcard??=[],r.wildcard.push(J)}}r=M}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=ga(s.fullPath??s.from);_.kind=gy,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const b=(s.path||!s.children)&&!s.isRoot;if(b&&y.endsWith("/")){const _=ga(s.fullPath??s.from);_.kind=Zn,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=g??null,r.priority=s.options?.params?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const y of s.children)us(l,i,y,p,r,h,d)}function zo(l,i){if(l.parse&&!i.parse)return-1;if(!l.parse&&i.parse)return 1;if(l.parse&&i.parse&&(l.priority||i.priority))return i.priority-l.priority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Vn(l){if(l.pathless)for(const i of l.pathless)Vn(i);if(l.static)for(const i of l.static.values())Vn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Vn(i);if(l.dynamic?.length){l.dynamic.sort(zo);for(const i of l.dynamic)Vn(i)}if(l.optional?.length){l.optional.sort(zo);for(const i of l.optional)Vn(i)}if(l.wildcard?.length){l.wildcard.sort(zo);for(const i of l.wildcard)Vn(i)}}function ga(l){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,priority:0}}function Do(l,i,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:s,prefix:o,suffix:r}}function o0(l,i){const s=ga("/"),o=new Uint16Array(6);for(const r of l)us(!1,o,r,1,s,0);Vn(s),i.masksTree=s,i.flatCache=Ti(1e3)}function r0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=lr(l,i.masksTree);return i.flatCache.set(l,o),o}function f0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let d=r.singleCache.get(h);return d||(d=ga("/"),us(i,new Uint16Array(6),{from:l},1,d,0),r.singleCache.set(h,d)),lr(o,d,s)}function h0(l,i,s=!1){const o=s?l:`nofuzz\0${l}`,r=i.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=lr(l,i.segmentTree,s)}catch(d){if(d instanceof URIError)h=null;else throw d}return h&&(h.branch=_y(h.route)),i.matchCache.set(o,h),h}function d0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function m0(l,i=!1,s){const o=ga(l.fullPath),r=new Uint16Array(6),h={},d={};let p=0;return us(i,r,l,1,o,0,y=>{if(s?.(y,p),y.id in h&&pn(),h[y.id]=y,p!==0&&y.path){const m=d0(y.fullPath);(!d[m]||y.fullPath.endsWith("/"))&&(d[m]=y)}p++}),Vn(o),{processedTree:{segmentTree:o,singleCache:Ti(1e3),matchCache:Ti(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:d}}function lr(l,i,s=!1){const o=l.split("/"),r=v0(l,o,i,s);if(!r)return null;const[h]=by(l,o,r);return{route:r.node.route,rawParams:h}}function by(l,i,s){const o=y0(s.node);let r=null;const h=Object.create(null);let d=s.extract?.part??0,p=s.extract?.node??0,y=s.extract?.path??0,m=s.extract?.segment??0;for(;p<o.length;d++,p++,y++,m++){const S=o[p];if(S.kind===Zn)break;if(S.kind===gy){m--,d--,y--;continue}const g=i[d],b=y;if(g&&(y+=g.length),S.kind===1){r??=s.node.fullPath.split("/");const _=r[m],M=S.prefix?.length??0;if(_.charCodeAt(M)===123){const C=S.suffix?.length??0,D=_.substring(M+2,_.length-C-1),L=g.substring(M,g.length-C);h[D]=decodeURIComponent(L)}else{const C=_.substring(1);h[C]=decodeURIComponent(g)}}else if(S.kind===3){if(s.skipped&1<<p){d--,y=b-1;continue}r??=s.node.fullPath.split("/");const _=r[m],M=S.prefix?.length??0,C=S.suffix?.length??0,D=_.substring(M+3,_.length-C-1),L=S.suffix||S.prefix?g.substring(M,g.length-C):g;L&&(h[D]=decodeURIComponent(L))}else if(S.kind===2){const _=S,M=l.substring(b+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:d,node:p,path:y,segment:m}]}function _y(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function y0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function v0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!_i(i),h=r&&l!=="/",d=i.length-(r?1:0),p=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let y=null,m=null;for(;p.length;){const S=p.pop(),{node:g,index:b,skipped:_,depth:M,statics:C,dynamics:D,optionals:L}=S;let{extract:Q,rawParams:X}=S;if(g.kind===2&&g.route&&!Zu(m,S))continue;if(g.parse){if(!Dm(l,i,S))continue;X=S.rawParams,Q=S.extract}o&&g.route&&g.kind!==Zn&&Zu(y,S)&&(y=S);const Y=b===d;if(Y&&(g.route&&(!h||g.kind===Zn||g.kind===2)&&Zu(m,S)&&(m=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const I=Y?void 0:i[b];let J;if(Y&&g.index){const B={node:g.index,index:b,skipped:_,depth:M+1,statics:C,dynamics:D,optionals:L,extract:Q,rawParams:X};let G=!0;if(g.index.parse&&(Dm(l,i,B)||(G=!1)),G){if(!D&&!L&&!_&&p0(C,d))return B;Zu(m,B)&&(m=B)}}if(g.wildcard)for(let B=g.wildcard.length-1;B>=0;B--){const G=g.wildcard[B],{prefix:Z,suffix:it}=G;if(!(Z&&(Y||!(G.caseSensitive?I:J??=I.toLowerCase()).startsWith(Z)))){if(it){if(Y)continue;const nt=i.slice(b).join("/").slice(-it.length);if((G.caseSensitive?nt:nt.toLowerCase())!==it)continue}p.push({node:G,index:d,skipped:_,depth:M+1,statics:C,dynamics:D,optionals:L,extract:Q,rawParams:X})}}if(g.optional){const B=_|1<<M,G=M+1;for(let Z=g.optional.length-1;Z>=0;Z--){const it=g.optional[Z];p.push({node:it,index:b,skipped:B,depth:G,statics:C,dynamics:D,optionals:L,extract:Q,rawParams:X})}if(!Y)for(let Z=g.optional.length-1;Z>=0;Z--){const it=g.optional[Z],{prefix:nt,suffix:tt}=it;if(nt||tt){const Nt=it.caseSensitive?I:J??=I.toLowerCase();if(nt&&!Nt.startsWith(nt)||tt&&!Nt.endsWith(tt))continue}p.push({node:it,index:b+1,skipped:_,depth:G,statics:C,dynamics:D,optionals:L+Ku(d,b),extract:Q,rawParams:X})}}if(!Y&&g.dynamic&&I)for(let B=g.dynamic.length-1;B>=0;B--){const G=g.dynamic[B],{prefix:Z,suffix:it}=G;if(Z||it){const nt=G.caseSensitive?I:J??=I.toLowerCase();if(Z&&!nt.startsWith(Z)||it&&!nt.endsWith(it))continue}p.push({node:G,index:b+1,skipped:_,depth:M+1,statics:C,dynamics:D+Ku(d,b),optionals:L,extract:Q,rawParams:X})}if(!Y&&g.staticInsensitive){const B=g.staticInsensitive.get(J??=I.toLowerCase());B&&p.push({node:B,index:b+1,skipped:_,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:Q,rawParams:X})}if(!Y&&g.static){const B=g.static.get(I);B&&p.push({node:B,index:b+1,skipped:_,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:Q,rawParams:X})}if(g.pathless){const B=M+1;for(let G=g.pathless.length-1;G>=0;G--){const Z=g.pathless[G];p.push({node:Z,index:b,skipped:_,depth:B,statics:C,dynamics:D,optionals:L,extract:Q,rawParams:X})}}}if(m)return m;if(o&&y){let S=y.index;for(let b=0;b<y.index;b++)S+=i[b].length;const g=S===l.length?"/":l.slice(S);return y.rawParams??=Object.create(null),y.rawParams["**"]=decodeURIComponent(g),y}return null}function Ku(l,i){return 2**(l-i-1)}function p0(l,i){return l===2**(i-1)-1}function Dm(l,i,s){let o,r;try{[o,r]=by(l,i,s)}catch{return null}if(s.rawParams=o,s.extract=r,!s.node.parse)return!0;try{if(s.node.parse(o)===!1)return null}catch{}return!0}function Zu(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===Zn)>(l.node.kind===Zn)||i.node.kind===Zn==(l.node.kind===Zn)&&i.depth>l.depth))):!0}function Fu(l){return ir(l.filter(i=>i!==void 0).join("/"))}function ir(l){return l.replace(/\/{2,}/g,"/")}function Ry(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function vn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Ty(l){return vn(Ry(l))}function ns(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function g0(l,i,s){return ns(l,s)===ns(i,s)}function S0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let d;if(o){d=r?i:h?l:l+"\0"+i;const m=o.get(d);if(m)return m}let p;if(h)p=l.split("/");else if(r)p=i.split("/");else{for(p=l.split("/");p.length>1&&_i(p)==="";)p.pop();const m=i.split("/");for(let S=0,g=m.length;S<g;S++){const b=m[S];b===""?S?S===g-1&&p.push(b):p=[b]:b===".."?p.pop():b==="."||p.push(b)}}p.length>1&&(_i(p)===""?s==="never"&&p.pop():s==="always"&&p.push(""));const y=ir(p.join("/"))||"/";return d&&o&&o.set(d,y),y}function b0(l){const i=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Uo(l,i,s){const o=i[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Lm(r,s)).join("/"):Lm(o,s)}function Um({path:l,params:i,decoder:s,...o}){let r=!1;const h=Object.create(null);if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const d=l.length;let p=0,y,m="";for(;p<d;){const S=p;y=Sy(l,S,y);const g=y[5];if(p=g+1,S===g)continue;const b=y[0];if(b===0){m+="/"+l.substring(S,g);continue}if(b===2){const _=i._splat;h._splat=_,h["*"]=_;const M=l.substring(S,y[1]),C=l.substring(y[4],g);if(!_){r=!0,(M||C)&&(m+="/"+M+C);continue}const D=Uo("_splat",i,s);m+="/"+M+D+C;continue}if(b===1){const _=l.substring(y[2],y[3]);!r&&!(_ in i)&&(r=!0),h[_]=i[_];const M=l.substring(S,y[1]),C=l.substring(y[4],g),D=Uo(_,i,s)??"undefined";m+="/"+M+D+C;continue}if(b===3){const _=l.substring(y[2],y[3]),M=i[_];if(M==null)continue;h[_]=M;const C=l.substring(S,y[1]),D=l.substring(y[4],g),L=Uo(_,i,s)??"";m+="/"+C+L+D;continue}}return l.endsWith("/")&&(m+="/"),{usedParams:h,interpolatedPath:m||"/",isMissingParams:r}}function Lm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function le(l){return l?.isNotFound===!0}function _0(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}const R0="tsr-scroll-restoration-v1_3";function T0(){const l=_0();if(!l)return null;let i={};try{const o=JSON.parse(l.getItem("tsr-scroll-restoration-v1_3")||"{}");dl(o)&&(i=o)}catch{}return{get state(){return i},set:o=>{i=Kn(o,i)||i},persist:()=>{try{l.setItem(R0,JSON.stringify(i))}catch{}}}}const wm=T0(),E0=l=>l.state.__TSR_key||l.href;function M0(l){const i=[];let s;for(;s=l.parentNode;)i.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,l)+1})`),l=s;return`${i.reverse().join(" > ")}`.toLowerCase()}let Ju=!1;const mi="window",Nm="data-scroll-restoration-id";function O0(l,i){if(!wm)return;const s=wm;if((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!s)return;l.isScrollRestorationSetup=!0,Ju=!1;const o=l.options.getScrollRestorationKey||E0,r=new Map;window.history.scrollRestoration="manual";const h=p=>{if(!(Ju||!l.isScrollRestoring))if(p.target===document||p.target===window)r.set(mi,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const y=p.target;r.set(y,{scrollX:y.scrollLeft||0,scrollY:y.scrollTop||0})}},d=p=>{if(!l.isScrollRestoring||!p||r.size===0||!s)return;const y=s.state[p]||={};for(const[m,S]of r){let g;if(m===mi)g=mi;else if(m.isConnected){const b=m.getAttribute(Nm);g=b?`[${Nm}="${b}"]`:M0(m)}g&&(y[g]=S)}};document.addEventListener("scroll",h,!0),l.subscribe("onBeforeLoad",p=>{d(p.fromLocation?o(p.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{d(o(l.stores.resolvedLocation.get()??l.stores.location.get())),s.persist()}),l.subscribe("onRendered",p=>{const y=o(p.toLocation),m=l.options.scrollRestorationBehavior,S=l.options.scrollToTopSelectors;if(r.clear(),!l.resetNextScroll){l.resetNextScroll=!0;return}if(!(typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))){Ju=!0;try{const g=l.isScrollRestoring?s.state[y]:void 0;let b=!1;if(g)for(const _ in g){const M=g[_];if(!dl(M))continue;const{scrollX:C,scrollY:D}=M;if(!(!Number.isFinite(C)||!Number.isFinite(D))){if(_===mi)window.scrollTo({top:D,left:C,behavior:m}),b=!0;else if(_){let L;try{L=document.querySelector(_)}catch{continue}L&&(L.scrollLeft=C,L.scrollTop=D,b=!0)}}}if(!b){const _=l.history.location.hash.slice(1);if(_){const M=window.history.state?.__hashScrollIntoViewOptions??!0;if(M){const C=document.getElementById(_);C&&C.scrollIntoView(M)}}else{const M={top:0,left:0,behavior:m};if(window.scrollTo(M),S)for(const C of S){if(C===mi)continue;const D=typeof C=="function"?C():document.querySelector(C);D&&D.scrollTo(M)}}}}finally{Ju=!1}l.isScrollRestoring&&s.set(g=>(g[y]||={},g))}})}function C0(l,i=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function Lo(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function A0(l){const i=new URLSearchParams(l),s=Object.create(null);for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=Lo(r):Array.isArray(h)?h.push(Lo(r)):s[o]=[h,Lo(r)]}return s}const x0=D0(JSON.parse),z0=U0(JSON.stringify,JSON.parse);function D0(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=A0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function U0(l,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return i(r),l(r)}catch{}return r}return r=>{const h=C0(r,o);return h?`?${h}`:""}}const ba="__root__";function L0(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function me(l){return l instanceof Response&&!!l.options}function w0(l){return{input:({url:i})=>{for(const s of l)i=Po(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=Ey(l[s],i);return i}}}function N0(l){const i=Ty(l.basepath),s=`/${i}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:d})=>{const p=l.caseSensitive?d.pathname:d.pathname.toLowerCase();return p===r?d.pathname="/":p.startsWith(h)&&(d.pathname=d.pathname.slice(s.length)),d},output:({url:d})=>(d.pathname=Fu(["/",i,d.pathname]),d)}}function Po(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Ey(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function B0(l,i){const{createMutableStore:s,createReadonlyStore:o,batch:r,init:h}=i,d=new Map,p=new Map,y=new Map,m=s(l.status),S=s(l.loadedAt),g=s(l.isLoading),b=s(l.isTransitioning),_=s(l.location),M=s(l.resolvedLocation),C=s(l.statusCode),D=s(l.redirect),L=s([]),Q=s([]),X=s([]),Y=o(()=>wo(d,L.get())),I=o(()=>wo(p,Q.get())),J=o(()=>wo(y,X.get())),B=o(()=>L.get()[0]),G=o(()=>L.get().some(V=>d.get(V)?.get().status==="pending")),Z=o(()=>({locationHref:_.get().href,resolvedLocationHref:M.get()?.href,status:m.get()})),it=o(()=>({status:m.get(),loadedAt:S.get(),isLoading:g.get(),isTransitioning:b.get(),matches:Y.get(),location:_.get(),resolvedLocation:M.get(),statusCode:C.get(),redirect:D.get()})),nt=Ti(64);function tt(V){let at=nt.get(V);return at||(at=o(()=>{const St=L.get();for(const _t of St){const E=d.get(_t);if(E&&E.routeId===V)return E.get()}}),nt.set(V,at)),at}const Nt={status:m,loadedAt:S,isLoading:g,isTransitioning:b,location:_,resolvedLocation:M,statusCode:C,redirect:D,matchesId:L,pendingIds:Q,cachedIds:X,matches:Y,pendingMatches:I,cachedMatches:J,firstId:B,hasPending:G,matchRouteDeps:Z,matchStores:d,pendingMatchStores:p,cachedMatchStores:y,__store:it,getRouteMatchStore:tt,setMatches:Ut,setPending:Ht,setCached:w};Ut(l.matches),h?.(Nt);function Ut(V){No(V,d,L,s,r)}function Ht(V){No(V,p,Q,s,r)}function w(V){No(V,y,X,s,r)}return Nt}function wo(l,i){const s=[];for(const o of i){const r=l.get(o);r&&s.push(r.get())}return s}function No(l,i,s,o,r){const h=l.map(p=>p.id),d=new Set(h);r(()=>{for(const p of i.keys())d.has(p)||i.delete(p);for(const p of l){const y=i.get(p.id);if(!y){const m=o(p);m.routeId=p.routeId,i.set(p.id,m);continue}y.routeId=p.routeId,y.get()!==p&&y.set(p)}s0(s.get(),h)||s.set(h)})}const Fo=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},j0=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),ss=(l,i)=>!!(l.preload&&!l.router.stores.matchStores.has(i)),_a=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const d=l.matches[h];if(!d)continue;const p=l.router.getMatch(d.id);p&&Object.assign(o,p.__routeContext,p.__beforeLoadContext)}return o},Bm=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(d=>d.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(d=>d.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let d=h;d>=0;d--){const p=l.matches[d];if(l.router.looseRoutesById[p.routeId].options.notFoundComponent)return d}return s?h:r},Jn=(l,i,s)=>{if(!(!me(s)&&!le(s)))throw me(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,o=>({...o,status:me(s)?"redirected":le(s)?"notFound":o.status==="pending"?"success":o.status,context:_a(l,i.index),isFetching:!1,error:s})),le(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},My=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},jm=(l,i,s)=>{const o=_a(l,s);l.updateMatch(i,r=>({...r,context:o}))},yi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],d=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Jn(l,l.router.getMatch(r),s);try{d.options.onError?.(s)}catch(p){s=p,Jn(l,l.router.getMatch(r),s)}l.updateMatch(r,p=>(p._nonReactive.beforeLoadPromise?.resolve(),p._nonReactive.beforeLoadPromise=void 0,p._nonReactive.loadPromise?.resolve(),{...p,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!me(s)&&!le(s)&&(l.serialError??=s)},Oy=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!ss(l,i)&&(s.options.loader||s.options.beforeLoad||Ay(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{Fo(l)},r);o._nonReactive.pendingTimeout=h}},H0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Oy(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Jn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},q0=(l,i,s,o)=>{const r=l.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=ml(()=>{h?.resolve(),h=void 0});const{paramsError:d,searchError:p}=r;d&&yi(l,s,d,"PARSE_PARAMS"),p&&yi(l,s,p,"VALIDATE_SEARCH"),Oy(l,i,o,r);const y=new AbortController;let m=!1;const S=()=>{m||(m=!0,l.updateMatch(i,Y=>({...Y,isFetching:"beforeLoad",fetchCount:Y.fetchCount+1,abortController:y})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,Y=>({...Y,isFetching:!1}))};if(!o.options.beforeLoad){l.router.batch(()=>{S(),g()});return}r._nonReactive.beforeLoadPromise=ml();const b={..._a(l,s,!1),...r.__routeContext},{search:_,params:M,cause:C}=r,D=ss(l,i),L={search:_,abortController:y,params:M,preload:D,context:b,location:l.location,navigate:Y=>l.router.navigate({...Y,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:D?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},Q=Y=>{if(Y===void 0){l.router.batch(()=>{S(),g()});return}(me(Y)||le(Y))&&(S(),yi(l,s,Y,"BEFORE_LOAD")),l.router.batch(()=>{S(),l.updateMatch(i,I=>({...I,__beforeLoadContext:Y})),g()})};let X;try{if(X=o.options.beforeLoad(L),Ri(X))return S(),X.catch(Y=>{yi(l,s,Y,"BEFORE_LOAD")}).then(Q)}catch(Y){S(),yi(l,s,Y,"BEFORE_LOAD")}Q(X)},Q0=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>p(),d=()=>q0(l,s,i,r),p=()=>{if(My(l,s))return;const y=H0(l,s,r);return Ri(y)?y.then(d):d()};return h()},Y0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,d,p])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:p,scripts:d,styles:h?.styles}))},Cy=(l,i,s,o,r)=>{const h=i[o-1],{params:d,loaderDeps:p,abortController:y,cause:m}=l.router.getMatch(s),S=_a(l,o),g=ss(l,s);return{params:d,deps:p,preload:!!g,parentMatchPromise:h,abortController:y,context:S,location:l.location,navigate:b=>l.router.navigate({...b,_fromLocation:l.location}),cause:g?"preload":m,route:r,...l.router.options.additionalContext}},Hm=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(yy??l.router.isServer)||h.ssr===!0)&&Ei(r);const d=r.options.loader,p=typeof d=="function"?d:d?.handler,y=p?.(Cy(l,i,s,o,r)),m=!!p&&Ri(y);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,g=>({...g,isFetching:"loader"})),p){const g=m?await y:y;Jn(l,l.router.getMatch(s),g),g!==void 0&&l.updateMatch(s,b=>({...b,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const S=h._nonReactive.minPendingPromise;S&&await S,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,g=>({...g,error:void 0,context:_a(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let p=d;if(p?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:_a(l,o)}));return}const y=h._nonReactive.minPendingPromise;y&&await y,le(d)&&await r.options.notFoundComponent?.preload?.(),Jn(l,l.router.getMatch(s),d);try{r.options.onError?.(d)}catch(m){p=m,Jn(l,l.router.getMatch(s),m)}!me(p)&&!le(p)&&await Ei(r,["errorComponent"]),l.updateMatch(s,m=>({...m,error:p,context:_a(l,o),status:"error",isFetching:!1}))}}catch(h){const d=l.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Jn(l,d,h)}},G0=async(l,i,s)=>{async function o(_,M,C,D,L){const Q=Date.now()-M.updatedAt,X=_?L.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??l.router.options.defaultStaleTime??0,Y=L.options.shouldReload,I=typeof Y=="function"?Y(Cy(l,i,r,s,L)):Y,{status:J,invalid:B}=D,G=Q>=X&&(!!l.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);d=J==="success"&&(B||(I??G)),_&&L.options.preload===!1||(d&&!l.sync&&S?(p=!0,(async()=>{try{await Hm(l,i,r,s,L);const Z=l.router.getMatch(r);Z._nonReactive.loaderPromise?.resolve(),Z._nonReactive.loadPromise?.resolve(),Z._nonReactive.loaderPromise=void 0,Z._nonReactive.loadPromise=void 0}catch(Z){me(Z)&&await l.router.navigate(Z.options)}})()):J!=="success"||d?await Hm(l,i,r,s,L):jm(l,r,s))}const{id:r,routeId:h}=l.matches[s];let d=!1,p=!1;const y=l.router.looseRoutesById[h],m=y.options.loader,S=((typeof m=="function"?void 0:m?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(My(l,r)){if(!l.router.getMatch(r))return l.matches[s];jm(l,r,s)}else{const _=l.router.getMatch(r),M=l.router.stores.matchesId.get()[s],C=(M&&l.router.stores.matchStores.get(M)||null)?.routeId===h?M:l.router.stores.matches.get().find(L=>L.routeId===h)?.id,D=ss(l,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!l.sync&&!_.preload&&S)return _;await _._nonReactive.loaderPromise;const L=l.router.getMatch(r),Q=L._nonReactive.error||L.error;Q&&Jn(l,L,Q),L.status==="pending"&&await o(D,_,C,L,y)}else{const L=D&&!l.router.stores.matchStores.has(r),Q=l.router.getMatch(r);Q._nonReactive.loaderPromise=ml(),L!==Q.preload&&l.updateMatch(r,X=>({...X,preload:L})),await o(D,_,C,Q,y)}}const g=l.router.getMatch(r);p||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,p||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=p?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(l.updateMatch(r,_=>({..._,isFetching:b,invalid:!1})),l.router.getMatch(r)):g};async function qm(l){const i=l,s=[];j0(i.router)&&Fo(i);let o;for(let b=0;b<i.matches.length;b++){try{const _=Q0(i,b);Ri(_)&&await _}catch(_){if(me(_))throw _;if(le(_))o=_;else if(!i.preload)throw _;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?Bm(i,o):void 0,d=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let p,y;for(let b=0;b<d;b++)s.push(G0(i,s,b));try{await Promise.all(s)}catch{const b=await Promise.allSettled(s);for(const _ of b){if(_.status!=="rejected")continue;const M=_.reason;if(me(M))throw M;le(M)?p??=M:y??=M}if(y!==void 0)throw y}const m=p??(o&&!i.preload?o:void 0);let S=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&o&&i.preload)return i.matches;if(m){const b=Bm(i,m);b===void 0&&pn();const _=i.matches[b],M=i.router.looseRoutesById[_.routeId],C=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&C&&(M.options.notFoundComponent=C),m.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,L=>({...L,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),S=b,await Ei(M,["notFoundComponent"])}else if(!i.preload){const b=i.matches[0];b.globalNotFound||i.router.getMatch(b.id)?.globalNotFound&&i.updateMatch(b.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const b=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ei(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:_,routeId:M}=i.matches[b],C=i.router.looseRoutesById[M];try{const D=Y0(i,_,C);if(D){const L=await D;i.updateMatch(_,Q=>({...Q,...L}))}}catch(D){console.error(`Error executing head for route ${M}:`,D)}}const g=Fo(i);if(Ri(g)&&await g,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Qm(l,i){const s=i.map(o=>l.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ei(l,i=ku){!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(o=>{const{id:r,...h}=o.options;Object.assign(l.options,h),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0);const s=()=>l._componentsLoaded?void 0:i===ku?(()=>{if(l._componentsPromise===void 0){const o=Qm(l,ku);o?l._componentsPromise=o.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():Qm(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function Ay(l){for(const i of ku)if(l.options[i]?.preload)return!0;return!1}const ku=["component","errorComponent","pendingComponent","notFoundComponent"];var Fn="__TSR_index",Ym="popstate",Gm="beforeunload";function X0(l){let i=l.getLocation();const s=new Set,o=d=>{i=l.getLocation(),s.forEach(p=>p({location:i,action:d}))},r=d=>{l.notifyOnIndexChange??!0?o(d):i=l.getLocation()},h=async({task:d,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){d();return}const m=l.getBlockers?.()??[],S=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&m.length&&S)for(const g of m){const b=as(y.path,y.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:y.type})){l.onBlocked?.();return}}d()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,p,y)=>{const m=i.state[Fn];p=Xm(m+1,p),h({task:()=>{l.pushState(d,p),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:d,state:p})},replace:(d,p,y)=>{const m=i.state[Fn];p=Xm(m,p),h({task:()=>{l.replaceState(d,p),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:d,state:p})},go:(d,p)=>{h({task:()=>{l.go(d),r({type:"GO",index:d})},navigateOpts:p,type:"GO"})},back:d=>{h({task:()=>{l.back(d?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{h({task:()=>{l.forward(d?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Fn]!==0,createHref:d=>l.createHref(d),block:d=>{if(!l.setBlockers)return()=>{};const p=l.getBlockers?.()??[];return l.setBlockers([...p,d]),()=>{const y=l.getBlockers?.()??[];l.setBlockers?.(y.filter(m=>m!==d))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Xm(l,i){i||(i={});const s=ur();return{...i,key:s,__TSR_key:s,[Fn]:l}}function V0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,d=G=>r=G,p=(G=>G),y=(()=>as(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const G=ur();i.history.replaceState({[Fn]:0,key:G,__TSR_key:G},"")}let m=y(),S,g=!1,b=!1,_=!1,M=!1;const C=()=>m;let D,L;const Q=()=>{D&&(B._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),B._ignoreSubscribers=!1,D=void 0,L=void 0,S=void 0)},X=(G,Z,it)=>{const nt=p(Z);L||(S=m),m=as(Z,it),D={href:nt,state:it,isPush:D?.isPush||G==="push"},L||(L=Promise.resolve().then(()=>Q()))},Y=G=>{m=y(),B.notify({type:G})},I=async()=>{if(b){b=!1;return}const G=y(),Z=G.state[Fn]-m.state[Fn],it=Z===1,nt=Z===-1,tt=!it&&!nt||g;g=!1;const Nt=tt?"GO":nt?"BACK":"FORWARD",Ut=tt?{type:"GO",index:Z}:{type:nt?"BACK":"FORWARD"};if(_)_=!1;else{const Ht=h();if(typeof document<"u"&&Ht.length){for(const w of Ht)if(await w.blockerFn({currentLocation:m,nextLocation:G,action:Nt})){b=!0,i.history.go(1),B.notify(Ut);return}}}m=y(),B.notify(Ut)},J=G=>{if(M){M=!1;return}let Z=!1;const it=h();if(typeof document<"u"&&it.length)for(const nt of it){const tt=nt.enableBeforeUnload??!0;if(tt===!0){Z=!0;break}if(typeof tt=="function"&&tt()===!0){Z=!0;break}}if(Z)return G.preventDefault(),G.returnValue=""},B=X0({getLocation:C,getLength:()=>i.history.length,pushState:(G,Z)=>X("push",G,Z),replaceState:(G,Z)=>X("replace",G,Z),back:G=>(G&&(_=!0),M=!0,i.history.back()),forward:G=>{G&&(_=!0),M=!0,i.history.forward()},go:G=>{g=!0,i.history.go(G)},createHref:G=>p(G),flush:Q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Gm,J,{capture:!0}),i.removeEventListener(Ym,I)},onBlocked:()=>{S&&m!==S&&(m=S)},getBlockers:h,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(Gm,J,{capture:!0}),i.addEventListener(Ym,I),i.history.pushState=function(...G){const Z=s.apply(i.history,G);return B._ignoreSubscribers||Y("PUSH"),Z},i.history.replaceState=function(...G){const Z=o.apply(i.history,G);return B._ignoreSubscribers||Y("REPLACE"),Z},B}function K0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function as(l,i){const s=K0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=ur();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:i||{[Fn]:0,key:h,__TSR_key:h}}}function ur(){return(Math.random()+1).toString(36).substring(7)}function hl(l,i){const s=i,o=l;return{fromLocation:s,toLocation:o,pathChanged:s?.pathname!==o.pathname,hrefChanged:s?.href!==o.href,hashChanged:s?.hash!==o.hash}}var Z0=class{constructor(l,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,d=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=b0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=V0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let S;this.resolvePathCache=Ti(1e3),S=this.buildRouteTree(),this.setRoutes(S)}if(!this.stores&&this.latestLocation){const S=this.getStoreConfig(this);this.batch=S.batch,this.stores=B0(P0(this.latestLocation),S),O0(this)}let p=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(h||r!==y||d!==m){this.basepath=y;const S=[],g=Ty(y);g&&g!=="/"&&S.push(N0({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:w0(S),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=m0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&o0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:y,search:m,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const L=this.options.parseSearch(m),Q=this.options.stringifySearch(L);return{href:y+Q+S,publicHref:y+Q+S,pathname:di(y).path,external:!1,searchStr:Q,search:ya(o?.search,L),hash:di(S.slice(1)).path,state:pa(o?.state,b)}}const _=new URL(g,this.origin),M=Po(this.rewrite,_),C=this.options.parseSearch(M.search),D=this.options.stringifySearch(C);return M.search=D,{href:M.href.replace(M.origin,""),publicHref:g,pathname:di(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:D,search:ya(o?.search,C),hash:di(M.hash.slice(1)).path,state:pa(o?.state,b)}},h=r(s),{__tempLocation:d,__tempKey:p}=h.state;if(d&&(!p||p===this.tempLocationKey)){const y=r(d);return y.state.key=h.state.key,y.state.__TSR_key=h.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>S0({base:s,to:o.includes("//")?ir(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>F0({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const o=this.stores.matchStores.get(s)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(h={})=>{const d=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(d);h.from;const y=h.unsafeRelative==="path"?d.pathname:h.from??p.fullPath,m=h.to?`${h.to}`:void 0,S=p.search,g=Object.assign(Object.create(null),p.params),b=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(y,"."),_=m?this.resolvePathWithBase(b,m):b,M=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,Kn(h.params,g)),C=this.routesByPath[vn(_)];let D;if(C)D=this.getRouteBranch(C);else if(_.includes("$"))D=[];else{const nt=this.getMatchedRoutes(_);D=nt.matchedRoutes,this.options.notFoundRoute&&(!nt.foundRoute||nt.foundRoute.path!=="/"&&nt.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&py(M))for(const nt of D){const tt=nt.options.params?.stringify??nt.options.stringifyParams;if(tt)try{Object.assign(M,tt(M))}catch{}}const L=s.leaveParams?_:di(Um({path:_,params:M,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let Q=S;if(s._includeValidateSearch&&this.options.search?.strict){const nt={};D.forEach(tt=>{if(tt.options.validateSearch)try{Object.assign(nt,Wu(tt.options.validateSearch,{...nt,...Q}))}catch{}}),Q=nt}Q=k0({search:Q,dest:h,destRoutes:D,_includeValidateSearch:s._includeValidateSearch}),Q=ya(S,Q);const X=this.options.stringifySearch(Q),Y=h.hash===!0?d.hash:h.hash?Kn(h.hash,d.hash):void 0,I=Y?`#${Y}`:"";let J=h.state===!0?d.state:h.state?Kn(h.state,d.state):{};J=pa(d.state,J);const B=`${L}${X}${I}`;let G,Z,it=!1;if(this.rewrite){const nt=new URL(B,this.origin),tt=Ey(this.rewrite,nt);G=nt.href.replace(nt.origin,""),tt.origin!==this.origin?(Z=tt.href,it=!0):Z=tt.pathname+tt.search+tt.hash}else G=u0(B),Z=G;return{publicHref:Z,href:G,pathname:L,search:Q,searchStr:X,state:J,hash:Y??"",external:it,unmaskOnReload:h.unmaskOnReload}},r=(h={},d)=>{const p=o(h);let y=d?o(d):void 0;if(!y){const m=Object.create(null);if(this.options.routeMasks){const S=r0(p.pathname,this.processedTree);if(S){Object.assign(m,S.rawParams);const{from:g,params:b,..._}=S.route,M=b===!1||b===null?Object.create(null):(b??!0)===!0?m:Object.assign(m,Kn(b,m));d={from:s.from,..._,params:M},y=o(d)}}}return y&&(p.maskedLocation=y),p};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{const h=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(S=>{r.state[S]=this.latestLocation.state[S]});const m=Sa(r.state,this.latestLocation.state);return y.forEach(S=>{delete r.state[S]}),m},d=vn(this.latestLocation.href)===vn(r.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=ml(()=>{p?.resolve(),p=void 0}),d&&h())this.load();else{let{maskedLocation:y,hashScrollIntoView:m,...S}=r;y&&(S={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=m??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](S.publicHref,S.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:d,href:p,...y}={})=>{if(p){const g=this.history.location.state.__TSR_index,b=as(p,{__TSR_index:s?g:g+1}),_=new URL(b.pathname,this.origin);y.to=Po(this.rewrite,_).pathname,y.search=this.options.parseSearch(b.search),y.hash=b.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const S=this.commitLocation({...m,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...d})=>{let p=!1;if(r)try{new URL(`${r}`),p=!0}catch{}if(p&&!o&&(o=!0),o){if(s!==void 0||!r){const m=this.buildLocation({to:s,...d});r=r??m.publicHref,h=h??m.publicHref}const y=!p&&h?h:r;if(es(y,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const S of m)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(r=>!s.some(h=>h.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(o)})},this.load=async s=>{let o,r,h;const d=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const m=this.latestLocation,S=hl(m,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await qm({router:this,sync:s?.sync,forceStaleReload:d.href===m.href,matches:this.stores.pendingMatches.get(),location:m,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,b=null,_=null,M=null;this.batch(()=>{const C=this.stores.pendingMatches.get(),D=C.length,L=this.stores.matches.get();g=D?L.filter(Y=>!this.stores.pendingMatchStores.has(Y.id)):null;const Q=new Set;for(const Y of this.stores.pendingMatchStores.values())Y.routeId&&Q.add(Y.routeId);const X=new Set;for(const Y of this.stores.matchStores.values())Y.routeId&&X.add(Y.routeId);b=D?L.filter(Y=>!Q.has(Y.routeId)):null,_=D?C.filter(Y=>!X.has(Y.routeId)):null,M=D?C.filter(Y=>X.has(Y.routeId)):L,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),D&&(this.stores.setMatches(C),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...g.filter(Y=>Y.status!=="error"&&Y.status!=="notFound"&&Y.status!=="redirected")]),this.clearExpiredCache())});for(const[C,D]of[[b,"onLeave"],[_,"onEnter"],[M,"onStay"]])if(C)for(const L of C)this.looseRoutesById[L.routeId].options[D]?.(L)})})}})}catch(m){me(m)?(o=m,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):le(m)&&(r=m);const S=o?o.status:r?404:this.stores.matches.get().some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(S),this.stores.redirect.set(o)})}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let p;this.hasNotFoundMatch()?p=404:this.stores.matches.get().some(y=>y.status==="error")&&(p=500),p!==void 0&&this.stores.statusCode.set(p)},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,d=this.stores.resolvedLocation.get(),p=typeof o.types=="function"?o.types(hl(h,d)):o.types;if(p===!1){s();return}r={update:s,types:p}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(s);if(r){r.set(o);return}const h=this.stores.matchStores.get(s);if(h){h.set(o);return}const d=this.stores.cachedMatchStores.get(s);if(d){const p=o(d.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(y=>y.filter(m=>m!==s)):d.set(p)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&es(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!o(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=r=>{const h=this.looseRoutesById[r.routeId];if(!h.options.loader)return!0;const d=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:s-r.updatedAt>=d};this.clearCache({filter:o})},this.loadRouteChunk=Ei,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...h,...this.stores.cachedIds.get()]),p=r.filter(y=>!d.has(y.id));if(p.length){const y=this.stores.cachedMatches.get();this.stores.setCached([...y,...p])}try{return r=await qm({router:this,matches:r,location:o,preload:!0,updateMatch:(y,m)=>{h.has(y)?r=r.map(S=>S.id===y?m(S):S):this.updateMatch(y,m)}}),r}catch(y){if(me(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});le(y)||console.error(y);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const d=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=f0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Sa(p.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(d.search,h.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??z0,parseSearch:l.parseSearch??x0,protocolAllowlist:l.protocolAllowlist??i0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:l,routesByPath:i,processedTree:s}){this.routesById=l,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(l){let i=this.routeBranchCache.get(l);return i||(i=_y(l),this.routeBranchCache.set(l,i)),i}get looseRoutesById(){return this.routesById}getParentContext(l){return l?.id?l.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(l,i){const s=this.getMatchedRoutes(l.pathname),{foundRoute:o,routeParams:r}=s;let{matchedRoutes:h}=s,d=!1;(o?o.path!=="/"&&r["**"]:vn(l.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:d=!0);const p=d?I0(this.options.notFoundMode,h):void 0,y=new Array(h.length),m=new Map;for(const S of this.stores.matchStores.values())S.routeId&&m.set(S.routeId,S.get());for(let S=0;S<h.length;S++){const g=h[S],b=y[S-1];let _,M,C;{const tt=b?.search??l.search,Nt=b?._strictSearch??void 0;try{const Ut=Wu(g.options.validateSearch,{...tt})??void 0;_={...tt,...Ut},M={...Nt,...Ut},C=void 0}catch(Ut){let Ht=Ut;if(Ut instanceof ls||(Ht=new ls(Ut.message,{cause:Ut})),i?.throwOnError)throw Ht;_=tt,M={},C=Ht}}const D=g.options.loaderDeps?.({search:_})??"",L=D?JSON.stringify(D):"",{interpolatedPath:Q,usedParams:X}=Um({path:g.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),Y=g.id+Q+L,I=this.getMatch(Y),J=m.get(g.id),B=I?._strictParams??X;let G;if(!I)try{Vm(g,B)}catch(tt){if(le(tt)||me(tt)?G=tt:G=new J0(tt.message,{cause:tt}),i?.throwOnError)throw G}Object.assign(r,B);const Z=J?"stay":"enter";let it;if(I)it={...I,cause:Z,params:J?.params??r,_strictParams:B,search:ya(J?J.search:I.search,_),_strictSearch:M};else{const tt=g.options.loader||g.options.beforeLoad||g.lazyFn||Ay(g)?"pending":"success";it={id:Y,ssr:g.options.ssr,index:S,routeId:g.id,params:J?.params??r,_strictParams:B,pathname:Q,updatedAt:Date.now(),search:J?ya(J.search,_):_,_strictSearch:M,searchError:void 0,status:tt,isFetching:!1,error:void 0,paramsError:G,__routeContext:void 0,_nonReactive:{loadPromise:ml()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:Z,loaderDeps:J?pa(J.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}i?.preload||(it.globalNotFound=p===g.id),it.searchError=C;const nt=this.getParentContext(b);it.context={...nt,...it.__routeContext,...it.__beforeLoadContext},y[S]=it}for(let S=0;S<y.length;S++){const g=y[S],b=this.looseRoutesById[g.routeId],_=this.getMatch(g.id),M=m.get(g.routeId);if(g.params=M?ya(M.params,r):r,!_){const C=y[S-1],D=this.getParentContext(C);if(b.options.context){const L={deps:g.loaderDeps,params:g.params,context:D??{},location:l,navigate:Q=>this.navigate({...Q,_fromLocation:l}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:y,routeId:b.id};g.__routeContext=b.options.context(L)??void 0}g.context={...D,...g.__routeContext,...g.__beforeLoadContext}}}return y}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(l.pathname),o=_i(i),r={...l.search};for(const m of i)try{Object.assign(r,Wu(m.options.validateSearch,r))}catch{}const h=_i(this.stores.matchesId.get()),d=h&&this.stores.matchStores.get(h)?.get(),p=d&&d.routeId===o.id&&d.pathname===l.pathname;let y;if(p)y=d.params;else{const m=Object.assign(Object.create(null),s);for(const S of i)try{Vm(S,m)}catch{}y=m}return{matchedRoutes:i,fullPath:o.fullPath,search:r,params:y}}},ls=class extends Error{},J0=class extends Error{};function P0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function Wu(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new ls("Async validation not supported");if(s.issues)throw new ls(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function F0({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=vn(l);let h;const d=h0(r,s,!0);return d&&(h=d.route,Object.assign(o,d.rawParams)),{matchedRoutes:d?.branch||[i.__root__],routeParams:o,foundRoute:h}}function k0({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return W0(s)(l,i,o??!1)}function W0(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:d,next:p})=>{let y=d;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(y=r.options.preSearchFilters.reduce((S,g)=>g(S),d));const m=p(y);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),m):m};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:d,next:p})=>{const y=p(d);if(!i._includeValidateSearch)return y;try{return{...y,...Wu(r.options.validateSearch,y)??void 0}}catch{return y}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Kn(h.search,r):{}};i.middlewares.push(s);const o=(r,h,d)=>{if(r>=d.length)return h;const p=d[r];return p({search:h,next:m=>o(r+1,m,d)})};return function(h,d,p){return i.dest=d,i._includeValidateSearch=p,o(0,h,i.middlewares)}}function I0(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return ba}function Vm(l,i){const s=l.options.params?.parse??l.options.parseParams;if(s){const o=s(i);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,o)}}const $0="Error preloading route! ☝️";var xy=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(l){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ba:this.parentRoute||pn();let r=o?ba:s?.path;r&&r!=="/"&&(r=Ry(r));const h=s?.id||r;let d=o?ba:Fu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),d!=="__root__"&&(d=Fu(["/",d]));const p=d==="__root__"?"/":Fu([this.parentRoute.fullPath,r]);this._path=r,this._id=d,this._fullPath=p,this._to=vn(p)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>L0({from:this.fullPath,...i}),this.options=l||{},this.isRoot=!l?.getParentRoute,l?.id&&l?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},tS=class extends xy{constructor(l){super(l)}};function eS(l){if(typeof document<"u"&&document.querySelector){const i=l.stores.location.get(),s=i.state.__hashScrollIntoViewOptions??!0;if(s&&i.hash!==""){const o=document.getElementById(i.hash);o&&o.scrollIntoView(s)}}}function sr(l){const i=l.errorComponent??cr;return lt.jsx(nS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?k.createElement(i,{error:s,reset:o}):l.children})}var nS=class extends k.Component{constructor(...l){super(...l),this.state={error:null}}static getDerivedStateFromProps(l,i){const s=l.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidCatch(l,i){this.props.onCatch&&this.props.onCatch(l,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function cr({error:l}){const[i,s]=k.useState(!1);return lt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[lt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[lt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),lt.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),lt.jsx("div",{style:{height:".25rem"}}),i?lt.jsx("div",{children:lt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?lt.jsx("code",{children:l.message}):null})}):null]})}function aS({children:l,fallback:i=null}){return zy()?lt.jsx(gi.Fragment,{children:l}):lt.jsx(gi.Fragment,{children:i})}function zy(){return gi.useSyncExternalStore(lS,()=>!0,()=>!1)}function lS(){return()=>{}}var Dy=k.createContext(null);function Be(l){return k.useContext(Dy)}var cs=k.createContext(void 0),iS=k.createContext(void 0),wt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(wt||{});function uS({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:d,shallowPropagate:p};function o(m,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===m)return;const _=b!==void 0?b.nextDep:S.deps;if(_!==void 0&&_.dep===m){_.version=g,S.depsTail=_;return}const M=m.subsTail;if(M!==void 0&&M.version===g&&M.sub===S)return;const C=S.depsTail=m.subsTail={version:g,dep:m,sub:S,prevDep:b,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=C),b!==void 0?b.nextDep=C:S.deps=C,M!==void 0?M.nextSub=C:m.subs=C}function r(m,S=m.sub){const g=m.dep,b=m.prevDep,_=m.nextDep,M=m.nextSub,C=m.prevSub;return _!==void 0?_.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=_:S.deps=_,M!==void 0?M.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=M:(g.subs=M)===void 0&&s(g),_}function h(m){let S=m.nextSub,g;t:do{const b=m.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&y(m,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&i(b),_&1){const M=b.subs;if(M!==void 0){const C=(m=M).nextSub;C!==void 0&&(g={value:S,prev:g},S=C);continue}}if((m=S)!==void 0){S=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){S=m.nextSub;continue t}break}while(!0)}function d(m,S){let g,b=0,_=!1;t:do{const M=m.dep,C=M.flags;if(S.flags&16)_=!0;else if((C&17)===17){if(l(M)){const D=M.subs;D.nextSub!==void 0&&p(D),_=!0}}else if((C&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=M.deps,S=M,++b;continue}if(!_){const D=m.nextDep;if(D!==void 0){m=D;continue}}for(;b--;){const D=S.subs,L=D.nextSub!==void 0;if(L?(m=g.value,g=g.prev):m=D,_){if(l(S)){L&&p(D),S=m.sub;continue}_=!1}else S.flags&=-33;S=m.sub;const Q=m.nextDep;if(Q!==void 0){m=Q;continue t}}return _}while(!0)}function p(m){do{const S=m.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((m=m.nextSub)!==void 0)}function y(m,S){let g=S.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function sS(l,i,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:i)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const ko=[];let Iu=0;const{link:Km,unlink:cS,propagate:oS,checkDirty:Uy,shallowPropagate:Zm}=uS({update(l){return l._update()},notify(l){ko[Wo++]=l,l.flags&=~wt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=wt.Mutable|wt.Dirty,is(l))}});let Pu=0,Wo=0,Je,Io=0;function Ly(l){try{++Io,l()}finally{--Io||wy()}}function is(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=cS(s,l)}function wy(){if(!(Io>0)){for(;Pu<Wo;){const l=ko[Pu];ko[Pu++]=void 0,l.notify()}Pu=0,Wo=0}}function Jm(l,i){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?wt.None:wt.Mutable,get(){return Je!==void 0&&Km(r,Je,Iu),r._snapshot},subscribe(h){const d=sS(h),p={current:!1},y=rS(()=>{r.get(),p.current?d.next?.(r._snapshot):p.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(h){const d=Je,p=i?.compare??Object.is;if(s)Je=r,++Iu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=wt.Mutable|wt.RecursedCheck);try{const y=r._snapshot,m=typeof h=="function"?h(y):h===void 0&&s?o(y):h;return y===void 0||!p(y,m)?(r._snapshot=m,!0):!1}finally{Je=d,s&&(r.flags&=~wt.RecursedCheck),is(r)}}};return s?(r.flags=wt.Mutable|wt.Dirty,r.get=function(){const h=r.flags;if(h&wt.Dirty||h&wt.Pending&&Uy(r.deps,r)){if(r._update()){const d=r.subs;d!==void 0&&Zm(d)}}else h&wt.Pending&&(r.flags=h&~wt.Pending);return Je!==void 0&&Km(r,Je,Iu),r._snapshot}):r.set=function(h){if(r._update(h)){const d=r.subs;d!==void 0&&(oS(d),Zm(d),wy())}},r}function rS(l){const i=()=>{const o=Je;Je=s,++Iu,s.depsTail=void 0,s.flags=wt.Watching|wt.RecursedCheck;try{return l()}finally{Je=o,s.flags&=~wt.RecursedCheck,is(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:wt.Watching|wt.RecursedCheck,notify(){const o=this.flags;o&wt.Dirty||o&wt.Pending&&Uy(this.deps,this)?i():this.flags=wt.Watching},stop(){this.flags=wt.None,this.depsTail=void 0,is(this)}};return i(),s}var Bo={exports:{}},jo={},Ho={exports:{}},qo={};var Pm;function fS(){if(Pm)return qo;Pm=1;var l=Mi();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,d=l.useDebugValue;function p(g,b){var _=b(),M=o({inst:{value:_,getSnapshot:b}}),C=M[0].inst,D=M[1];return h(function(){C.value=_,C.getSnapshot=b,y(C)&&D({inst:C})},[g,_,b]),r(function(){return y(C)&&D({inst:C}),g(function(){y(C)&&D({inst:C})})},[g]),d(_),_}function y(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!s(g,_)}catch{return!0}}function m(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return qo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,qo}var Fm;function hS(){return Fm||(Fm=1,Ho.exports=fS()),Ho.exports}var km;function dS(){if(km)return jo;km=1;var l=Mi(),i=hS();function s(m,S){return m===S&&(m!==0||1/m===1/S)||m!==m&&S!==S}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,d=l.useEffect,p=l.useMemo,y=l.useDebugValue;return jo.useSyncExternalStoreWithSelector=function(m,S,g,b,_){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=p(function(){function L(J){if(!Q){if(Q=!0,X=J,J=b(J),_!==void 0&&C.hasValue){var B=C.value;if(_(B,J))return Y=B}return Y=J}if(B=Y,o(X,J))return B;var G=b(J);return _!==void 0&&_(B,G)?(X=J,B):(X=J,Y=G)}var Q=!1,X,Y,I=g===void 0?null:g;return[function(){return L(S())},I===null?void 0:function(){return L(I())}]},[S,g,b,_]);var D=r(m,M[0],M[1]);return d(function(){C.hasValue=!0,C.value=D},[D]),y(D),D},jo}var Wm;function mS(){return Wm||(Wm=1,Bo.exports=dS()),Bo.exports}var yS=mS();function vS(l,i){return l===i}function Me(l,i,s=vS){const o=k.useCallback(d=>{if(!l)return()=>{};const{unsubscribe:p}=l.subscribe(d);return p},[l]),r=k.useCallback(()=>l?.get(),[l]);return yS.useSyncExternalStoreWithSelector(o,r,r,i,s)}var pS={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ta(l){const i=Be(),s=k.useContext(l.from?iS:cs),o=l.from??s,r=o?l.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,h=k.useRef(void 0);return Me(r??pS,d=>{if((l.shouldThrow??!0)&&!d&&pn(),d===void 0)return;const p=l.select?l.select(d):d;if(l.structuralSharing??i.options.defaultStructuralSharing){const y=pa(h.current,p);return h.current=y,y}return p})}function Ny(l){return Ta({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function By(l){const{select:i,...s}=l;return Ta({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function jy(l){return Ta({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function Hy(l){return Ta({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function qy(l){const i=Be();return k.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function Qy(l){return Ta({...l,select:i=>l.select?l.select(i.context):i.context})}var gS=ty();function SS(l,i){const s=Be(),o=e0(i),{activeProps:r,inactiveProps:h,activeOptions:d,to:p,preload:y,preloadDelay:m,preloadIntentProximity:S,hashScrollIntoView:g,replace:b,startTransition:_,resetScroll:M,viewTransition:C,children:D,target:L,disabled:Q,style:X,className:Y,onClick:I,onBlur:J,onFocus:B,onMouseEnter:G,onMouseLeave:Z,onTouchStart:it,ignoreBlocker:nt,params:tt,search:Nt,hash:Ut,state:Ht,mask:w,reloadDocument:V,unsafeRelative:at,from:St,_fromLocation:_t,...E}=l,H=zy(),K=k.useMemo(()=>l,[s,l.from,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),P=Me(s.stores.location,xt=>xt,(xt,kt)=>xt.href===kt.href),$=k.useMemo(()=>{const xt={_fromLocation:P,...K};return s.buildLocation(xt)},[s,P,K]),rt=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,vt=$.maskedLocation?$.maskedLocation.external:$.external,qt=k.useMemo(()=>MS(rt,vt,s.history,Q),[Q,vt,rt,s.history]),Ct=k.useMemo(()=>{if(qt?.external)return es(qt.href,s.protocolAllowlist)?void 0:qt.href;if(!OS(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),es(p,s.protocolAllowlist)?void 0:p}catch{}},[p,qt,s.protocolAllowlist]),Pe=k.useMemo(()=>{if(Ct)return!1;if(d?.exact){if(!g0(P.pathname,$.pathname,s.basepath))return!1}else{const xt=ns(P.pathname,s.basepath),kt=ns($.pathname,s.basepath);if(!(xt.startsWith(kt)&&(xt.length===kt.length||xt[kt.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Sa(P.search,$.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?H&&P.hash===$.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,P,Ct,H,$.hash,$.pathname,$.search,s.basepath]),Fe=Pe?Kn(r,{})??bS:Qo,gn=Pe?Qo:Kn(h,{})??Qo,vl=[Y,Fe.className,gn.className].filter(Boolean).join(" "),Ye=(X||Fe.style||gn.style)&&{...X,...Fe.style,...gn.style},[pl,Ea]=k.useState(!1),Oi=k.useRef(!1),ke=l.reloadDocument||Ct?!1:y??s.options.defaultPreload,kn=m??s.options.defaultPreloadDelay??0,je=k.useCallback(()=>{s.preloadRoute({...K,_builtLocation:$}).catch(xt=>{console.warn(xt),console.warn($0)})},[s,K,$]);t0(o,k.useCallback(xt=>{xt?.isIntersecting&&je()},[je]),ES,{disabled:!!Q||ke!=="viewport"}),k.useEffect(()=>{Oi.current||!Q&&ke==="render"&&(je(),Oi.current=!0)},[Q,je,ke]);const gl=xt=>{const kt=xt.currentTarget.getAttribute("target"),Ge=L!==void 0?L:kt;if(!Q&&!CS(xt)&&!xt.defaultPrevented&&(!Ge||Ge==="_self")&&xt.button===0){xt.preventDefault(),gS.flushSync(()=>{Ea(!0)});const Ma=s.subscribe("onResolved",()=>{Ma(),Ea(!1)});s.navigate({...K,replace:b,resetScroll:M,hashScrollIntoView:g,startTransition:_,viewTransition:C,ignoreBlocker:nt})}};if(Ct)return{...E,ref:o,href:Ct,...D&&{children:D},...L&&{target:L},...Q&&{disabled:Q},...X&&{style:X},...Y&&{className:Y},...I&&{onClick:I},...J&&{onBlur:J},...B&&{onFocus:B},...G&&{onMouseEnter:G},...Z&&{onMouseLeave:Z},...it&&{onTouchStart:it}};const Ci=xt=>{if(Q||ke!=="intent")return;if(!kn){je();return}const kt=xt.currentTarget;if(vi.has(kt))return;const Ge=setTimeout(()=>{vi.delete(kt),je()},kn);vi.set(kt,Ge)},os=xt=>{Q||ke!=="intent"||je()},ne=xt=>{if(Q||!ke||!kn)return;const kt=xt.currentTarget,Ge=vi.get(kt);Ge&&(clearTimeout(Ge),vi.delete(kt))};return{...E,...Fe,...gn,href:qt?.href,ref:o,onClick:rl([I,gl]),onBlur:rl([J,ne]),onFocus:rl([B,Ci]),onMouseEnter:rl([G,Ci]),onMouseLeave:rl([Z,ne]),onTouchStart:rl([it,os]),disabled:!!Q,target:L,...Ye&&{style:Ye},...vl&&{className:vl},...Q&&_S,...Pe&&RS,...H&&pl&&TS}}var Qo={},bS={className:"active"},_S={role:"link","aria-disabled":!0},RS={"data-status":"active","aria-current":"page"},TS={"data-transitioning":"transitioning"},vi=new WeakMap,ES={rootMargin:"100px"},rl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function MS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function OS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var Yy=k.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=SS(o,i),d=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:p,...y}=h;return k.createElement("a",y,d)}return k.createElement(s,h,d)});function CS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var AS=class extends xy{constructor(l){super(l),this.useMatch=i=>Ta({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Qy({...i,from:this.id}),this.useSearch=i=>Hy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>jy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>By({...i,from:this.id}),this.useLoaderData=i=>Ny({...i,from:this.id}),this.useNavigate=()=>qy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Yy,{ref:s,from:this.fullPath,...i}))}};function xS(l){return new AS(l)}var zS=class extends tS{constructor(l){super(l),this.useMatch=i=>Ta({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Qy({...i,from:this.id}),this.useSearch=i=>Hy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>jy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>By({...i,from:this.id}),this.useLoaderData=i=>Ny({...i,from:this.id}),this.useNavigate=()=>qy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Yy,{ref:s,from:this.fullPath,...i}))}};function eb(l){return new zS(l)}function nb(l){return new DS(l,{silent:!0}).createRoute}var DS=class{constructor(l,i){this.path=l,this.createRoute=s=>{const o=xS(s);return o.isRoot=!1,o},this.silent=i?.silent}};function US(l){const i=Be(),s=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return lt.jsx(sr,{getResetKey:()=>s,onCatch:(o,r)=>{if(le(o))l.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(le(o))return l.fallback?.(o);throw o},children:l.children})}function LS(){return lt.jsx("p",{children:"Not Found"})}function fl(l){return lt.jsx(lt.Fragment,{children:l.children})}function Gy(l,i,s){return i.options.notFoundComponent?lt.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?lt.jsx(l.options.defaultNotFoundComponent,{...s}):lt.jsx(LS,{})}function wS(l){return null}function NS(){return wS(Be()),null}var Xy=k.memo(function({matchId:i}){const s=Be(),o=s.stores.matchStores.get(i);o||pn();const r=Me(s.stores.loadedAt,d=>d),h=Me(o,d=>d);return lt.jsx(BS,{router:s,matchId:i,resetKey:r,matchState:k.useMemo(()=>{const d=h.routeId,p=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:p}},[h._displayPending,h.routeId,h.ssr,s.routesById])})});function BS({router:l,matchId:i,resetKey:s,matchState:o}){const r=l.routesById[o.routeId],h=r.options.pendingComponent??l.options.defaultPendingComponent,d=h?lt.jsx(h,{}):null,p=r.options.errorComponent??l.options.defaultErrorComponent,y=r.options.onCatch??l.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??l.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||S))?k.Suspense:fl,b=p?sr:fl,_=m?US:fl;return lt.jsxs(r.isRoot?r.options.shellComponent??fl:fl,{children:[lt.jsx(cs.Provider,{value:i,children:lt.jsx(g,{fallback:d,children:lt.jsx(b,{getResetKey:()=>s,errorComponent:p||cr,onCatch:(M,C)=>{if(le(M))throw M.routeId??=o.routeId,M;y?.(M,C)},children:lt.jsx(_,{fallback:M=>{if(M.routeId??=o.routeId,!m||M.routeId&&M.routeId!==o.routeId||!M.routeId&&!r.isRoot)throw M;return k.createElement(m,M)},children:S||o._displayPending?lt.jsx(aS,{fallback:d,children:lt.jsx(Im,{matchId:i})}):lt.jsx(Im,{matchId:i})})})})}),o.parentRouteId===ba?lt.jsxs(lt.Fragment,{children:[lt.jsx(jS,{resetKey:s}),l.options.scrollRestoration&&yy?lt.jsx(NS,{}):null]}):null]})}function jS({resetKey:l}){const i=Be(),s=k.useRef(void 0);return pi(()=>{const o=i.latestLocation.href;(s.current===void 0||s.current!==o)&&(i.emit({type:"onRendered",...hl(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=o)},[i.latestLocation.state.__TSR_key,l,i]),null}var Im=k.memo(function({matchId:i}){const s=Be(),o=(S,g)=>s.getMatch(S.id)?._nonReactive[g]??S._nonReactive[g],r=s.stores.matchStores.get(i);r||pn();const h=Me(r,S=>S),d=h.routeId,p=s.routesById[d],y=k.useMemo(()=>{const S=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return S?JSON.stringify(S):void 0},[d,h.loaderDeps,h._strictParams,h._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=k.useMemo(()=>{const S=p.options.component??s.options.defaultComponent;return S?lt.jsx(S,{},y):lt.jsx(HS,{})},[y,p.options.component,s.options.defaultComponent]);if(h._displayPending)throw o(h,"displayPendingPromise");if(h._forcePending)throw o(h,"minPendingPromise");if(h.status==="pending"){const S=p.options.pendingMinMs??s.options.defaultPendingMinMs;if(S){const g=s.getMatch(h.id);if(g&&!g._nonReactive.minPendingPromise){const b=ml();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},S)}}throw o(h,"loadPromise")}if(h.status==="notFound")return le(h.error)||pn(),Gy(s,p,h.error);if(h.status==="redirected")throw me(h.error)||pn(),o(h,"loadPromise");if(h.status==="error")throw h.error;return m}),HS=k.memo(function(){const i=Be(),s=k.useContext(cs);let o,r=!1,h;{const m=s?i.stores.matchStores.get(s):void 0;[o,r]=Me(m,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===s)+1])}const d=o?i.routesById[o]:void 0,p=i.options.defaultPendingComponent?lt.jsx(i.options.defaultPendingComponent,{}):null;if(r)return d||pn(),Gy(i,d,void 0);if(!h)return null;const y=lt.jsx(Xy,{matchId:h});return o===ba?lt.jsx(k.Suspense,{fallback:p,children:y}):y});function qS(){const l=Be(),i=k.useRef({router:l,mounted:!1}),[s,o]=k.useState(!1),r=Me(l.stores.isLoading,g=>g),h=Me(l.stores.hasPending,g=>g),d=xo(r),p=r||s||h,y=xo(p),m=r||h,S=xo(m);return l.startTransition=g=>{o(!0),k.startTransition(()=>{g(),o(!1)})},k.useEffect(()=>{const g=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return vn(l.latestLocation.publicHref)!==vn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{g()}},[l,l.history]),pi(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(b){console.error(b)}})()},[l]),pi(()=>{d&&!r&&l.emit({type:"onLoad",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,l,r]),pi(()=>{S&&!m&&l.emit({type:"onBeforeRouteMount",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,S,l]),pi(()=>{if(y&&!p){const g=hl(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...g}),Ly(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())}),g.hrefChanged&&eS(l)}},[p,y,l]),null}function QS(){const l=Be(),i=l.routesById[ba].options.pendingComponent??l.options.defaultPendingComponent,s=i?lt.jsx(i,{}):null,o=lt.jsxs(typeof document<"u"&&l.ssr?fl:k.Suspense,{fallback:s,children:[lt.jsx(qS,{}),lt.jsx(YS,{})]});return l.options.InnerWrap?lt.jsx(l.options.InnerWrap,{children:o}):o}function YS(){const l=Be(),i=Me(l.stores.firstId,r=>r),s=Me(l.stores.loadedAt,r=>r),o=i?lt.jsx(Xy,{matchId:i}):null;return lt.jsx(cs.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:lt.jsx(sr,{getResetKey:()=>s,errorComponent:cr,onCatch:void 0,children:o})})}var GS=l=>({createMutableStore:Jm,createReadonlyStore:Jm,batch:Ly}),ab=l=>new XS(l),XS=class extends Z0{constructor(l){super(l,GS)}};function VS({router:l,children:i,...s}){py(s)&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=lt.jsx(Dy.Provider,{value:l,children:i});return l.options.Wrap?lt.jsx(l.options.Wrap,{children:o}):o}function lb({router:l,...i}){return lt.jsx(VS,{router:l,...i,children:lt.jsx(QS,{})})}const KS="modulepreload",ZS=function(l){return"/"+l},$m={},ib=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let y=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");r=y(s.map(m=>{if(m=ZS(m),m in $m)return;$m[m]=!0;const S=m.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":KS,S||(b.as="script"),b.crossOrigin="",b.href=m,p&&b.setAttribute("nonce",p),document.head.appendChild(b),S)return new Promise((_,M)=>{b.addEventListener("load",_),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${m}`)))})}))}function h(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return r.then(d=>{for(const p of d||[])p.status==="rejected"&&h(p.reason);return i().catch(h)})};export{HS as O,kS as Q,gi as R,ib as _,WS as a,lb as b,FS as c,JS as d,nb as e,eb as f,ab as g,PS as h,og as i,lt as j,k,L0 as l,$S as m,qy as n,IS as o,hy as p,gS as r,tb as u};