@ottocode/web-ui 0.1.256 → 0.1.257
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.
- package/dist/index.js +9 -9
- package/dist/web-assets/assets/framework-BmpT4gLy.js +9 -0
- package/dist/web-assets/assets/{icons-D-eybTSz.js → icons-NLumJnzD.js} +1 -1
- package/dist/web-assets/assets/{index-Xr3sqvuP.js → index-DZZoyq1H.js} +50 -50
- package/dist/web-assets/assets/{markdown-CAGBwngP.js → markdown-CKLCmqUf.js} +1 -1
- package/dist/web-assets/assets/{syntax-a1ZtzTcD.js → syntax-C2rKonqc.js} +1 -1
- package/dist/web-assets/index.html +5 -5
- package/package.json +1 -1
- package/dist/web-assets/assets/framework-TON0KZtY.js +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var VS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ig(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function KS(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 Ro={exports:{}},fi={};var cm;function ug(){if(cm)return fi;cm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,r,h){var m=null;if(h!==void 0&&(m=""+h),r.key!==void 0&&(m=""+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:m,ref:r!==void 0?r:null,props:h}}return fi.Fragment=i,fi.jsx=s,fi.jsxs=s,fi}var om;function sg(){return om||(om=1,Ro.exports=ug()),Ro.exports}var lt=sg(),Eo={exports:{}},st={};var rm;function cg(){if(rm)return st;rm=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"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function D(M,j,Z){this.props=M,this.context=j,this.refs=L,this.updater=Z||E}D.prototype.isReactComponent={},D.prototype.setState=function(M,j){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,j,"setState")},D.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Q(){}Q.prototype=D.prototype;function G(M,j,Z){this.props=M,this.context=j,this.refs=L,this.updater=Z||E}var Y=G.prototype=new Q;Y.constructor=G,O(Y,D.prototype),Y.isPureReactComponent=!0;var $=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function K(M,j,Z){var P=Z.ref;return{$$typeof:l,type:M,key:j,ref:P!==void 0?P:null,props:Z}}function et(M,j){return K(M.type,j,M.props)}function F(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function ut(M){var j={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Z){return j[Z]})}var rt=/\/+/g;function Bt(M,j){return typeof M=="object"&&M!==null&&M.key!=null?ut(""+M.key):j.toString(36)}function Mt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(J,J):(M.status="pending",M.then(function(j){M.status==="pending"&&(M.status="fulfilled",M.value=j)},function(j){M.status==="pending"&&(M.status="rejected",M.reason=j)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function w(M,j,Z,P,tt){var ft=typeof M;(ft==="undefined"||ft==="boolean")&&(M=null);var pt=!1;if(M===null)pt=!0;else switch(ft){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(M.$$typeof){case l:case i:pt=!0;break;case S:return pt=M._init,w(pt(M._payload),j,Z,P,tt)}}if(pt)return tt=tt(M),pt=P===""?"."+Bt(M,0):P,$(tt)?(Z="",pt!=null&&(Z=pt.replace(rt,"$&/")+"/"),w(tt,j,Z,"",function(Pe){return Pe})):tt!=null&&(F(tt)&&(tt=et(tt,Z+(tt.key==null||M&&M.key===tt.key?"":(""+tt.key).replace(rt,"$&/")+"/")+pt)),j.push(tt)),1;pt=0;var qt=P===""?".":P+":";if($(M))for(var xt=0;xt<M.length;xt++)P=M[xt],ft=qt+Bt(P,xt),pt+=w(P,j,Z,ft,tt);else if(xt=_(M),typeof xt=="function")for(M=xt.call(M),xt=0;!(P=M.next()).done;)P=P.value,ft=qt+Bt(P,xt++),pt+=w(P,j,Z,ft,tt);else if(ft==="object"){if(typeof M.then=="function")return w(Mt(M),j,Z,P,tt);throw j=String(M),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return pt}function X(M,j,Z){if(M==null)return M;var P=[],tt=0;return w(M,P,"","",function(ft){return j.call(Z,ft,tt++)}),P}function at(M){if(M._status===-1){var j=M._result;j=j(),j.then(function(Z){(M._status===0||M._status===-1)&&(M._status=1,M._result=Z)},function(Z){(M._status===0||M._status===-1)&&(M._status=2,M._result=Z)}),M._status===-1&&(M._status=0,M._result=j)}if(M._status===1)return M._result.default;throw M._result}var bt=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Rt={map:X,forEach:function(M,j,Z){X(M,function(){j.apply(this,arguments)},Z)},count:function(M){var j=0;return X(M,function(){j++}),j},toArray:function(M){return X(M,function(j){return j})||[]},only:function(M){if(!F(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return st.Activity=g,st.Children=Rt,st.Component=D,st.Fragment=s,st.Profiler=r,st.PureComponent=G,st.StrictMode=o,st.Suspense=y,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,st.__COMPILER_RUNTIME={__proto__:null,c:function(M){return q.H.useMemoCache(M)}},st.cache=function(M){return function(){return M.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(M,j,Z){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var P=O({},M.props),tt=M.key;if(j!=null)for(ft in j.key!==void 0&&(tt=""+j.key),j)!V.call(j,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&j.ref===void 0||(P[ft]=j[ft]);var ft=arguments.length-2;if(ft===1)P.children=Z;else if(1<ft){for(var pt=Array(ft),qt=0;qt<ft;qt++)pt[qt]=arguments[qt+2];P.children=pt}return K(M.type,tt,P)},st.createContext=function(M){return M={$$typeof:m,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:h,_context:M},M},st.createElement=function(M,j,Z){var P,tt={},ft=null;if(j!=null)for(P in j.key!==void 0&&(ft=""+j.key),j)V.call(j,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(tt[P]=j[P]);var pt=arguments.length-2;if(pt===1)tt.children=Z;else if(1<pt){for(var qt=Array(pt),xt=0;xt<pt;xt++)qt[xt]=arguments[xt+2];tt.children=qt}if(M&&M.defaultProps)for(P in pt=M.defaultProps,pt)tt[P]===void 0&&(tt[P]=pt[P]);return K(M,ft,tt)},st.createRef=function(){return{current:null}},st.forwardRef=function(M){return{$$typeof:p,render:M}},st.isValidElement=F,st.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:at}},st.memo=function(M,j){return{$$typeof:d,type:M,compare:j===void 0?null:j}},st.startTransition=function(M){var j=q.T,Z={};q.T=Z;try{var P=M(),tt=q.S;tt!==null&&tt(Z,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,bt)}catch(ft){bt(ft)}finally{j!==null&&Z.types!==null&&(j.types=Z.types),q.T=j}},st.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},st.use=function(M){return q.H.use(M)},st.useActionState=function(M,j,Z){return q.H.useActionState(M,j,Z)},st.useCallback=function(M,j){return q.H.useCallback(M,j)},st.useContext=function(M){return q.H.useContext(M)},st.useDebugValue=function(){},st.useDeferredValue=function(M,j){return q.H.useDeferredValue(M,j)},st.useEffect=function(M,j){return q.H.useEffect(M,j)},st.useEffectEvent=function(M){return q.H.useEffectEvent(M)},st.useId=function(){return q.H.useId()},st.useImperativeHandle=function(M,j,Z){return q.H.useImperativeHandle(M,j,Z)},st.useInsertionEffect=function(M,j){return q.H.useInsertionEffect(M,j)},st.useLayoutEffect=function(M,j){return q.H.useLayoutEffect(M,j)},st.useMemo=function(M,j){return q.H.useMemo(M,j)},st.useOptimistic=function(M,j){return q.H.useOptimistic(M,j)},st.useReducer=function(M,j,Z){return q.H.useReducer(M,j,Z)},st.useRef=function(M){return q.H.useRef(M)},st.useState=function(M){return q.H.useState(M)},st.useSyncExternalStore=function(M,j,Z){return q.H.useSyncExternalStore(M,j,Z)},st.useTransition=function(){return q.H.useTransition()},st.version="19.2.0",st}var fm;function Oi(){return fm||(fm=1,Eo.exports=cg()),Eo.exports}var W=Oi();const Si=ig(W);var To={exports:{}},hi={},Mo={exports:{}},Oo={};var hm;function og(){return hm||(hm=1,(function(l){function i(w,X){var at=w.length;w.push(X);t:for(;0<at;){var bt=at-1>>>1,Rt=w[bt];if(0<r(Rt,X))w[bt]=X,w[at]=Rt,at=bt;else break t}}function s(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var X=w[0],at=w.pop();if(at!==X){w[0]=at;t:for(var bt=0,Rt=w.length,M=Rt>>>1;bt<M;){var j=2*(bt+1)-1,Z=w[j],P=j+1,tt=w[P];if(0>r(Z,at))P<Rt&&0>r(tt,Z)?(w[bt]=tt,w[P]=at,bt=P):(w[bt]=Z,w[j]=at,bt=j);else if(P<Rt&&0>r(tt,at))w[bt]=tt,w[P]=at,bt=P;else break t}}return X}function r(w,X){var at=w.sortIndex-X.sortIndex;return at!==0?at:w.id-X.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 m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var y=[],d=[],S=1,g=null,b=3,_=!1,E=!1,O=!1,L=!1,D=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function Y(w){for(var X=s(d);X!==null;){if(X.callback===null)o(d);else if(X.startTime<=w)o(d),X.sortIndex=X.expirationTime,i(y,X);else break;X=s(d)}}function $(w){if(O=!1,Y(w),!E)if(s(y)!==null)E=!0,J||(J=!0,ut());else{var X=s(d);X!==null&&Mt($,X.startTime-w)}}var J=!1,q=-1,V=5,K=-1;function et(){return L?!0:!(l.unstable_now()-K<V)}function F(){if(L=!1,J){var w=l.unstable_now();K=w;var X=!0;try{t:{E=!1,O&&(O=!1,Q(q),q=-1),_=!0;var at=b;try{e:{for(Y(w),g=s(y);g!==null&&!(g.expirationTime>w&&et());){var bt=g.callback;if(typeof bt=="function"){g.callback=null,b=g.priorityLevel;var Rt=bt(g.expirationTime<=w);if(w=l.unstable_now(),typeof Rt=="function"){g.callback=Rt,Y(w),X=!0;break e}g===s(y)&&o(y),Y(w)}else o(y);g=s(y)}if(g!==null)X=!0;else{var M=s(d);M!==null&&Mt($,M.startTime-w),X=!1}}break t}finally{g=null,b=at,_=!1}X=void 0}}finally{X?ut():J=!1}}}var ut;if(typeof G=="function")ut=function(){G(F)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Bt=rt.port2;rt.port1.onmessage=F,ut=function(){Bt.postMessage(null)}}else ut=function(){D(F,0)};function Mt(w,X){q=D(function(){w(l.unstable_now())},X)}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"):V=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 X=3;break;default:X=b}var at=b;b=X;try{return w()}finally{b=at}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(w,X){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var at=b;b=w;try{return X()}finally{b=at}},l.unstable_scheduleCallback=function(w,X,at){var bt=l.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?bt+at:bt):at=bt,w){case 1:var Rt=-1;break;case 2:Rt=250;break;case 5:Rt=1073741823;break;case 4:Rt=1e4;break;default:Rt=5e3}return Rt=at+Rt,w={id:S++,callback:X,priorityLevel:w,startTime:at,expirationTime:Rt,sortIndex:-1},at>bt?(w.sortIndex=at,i(d,w),s(y)===null&&w===s(d)&&(O?(Q(q),q=-1):O=!0,Mt($,at-bt))):(w.sortIndex=Rt,i(y,w),E||_||(E=!0,J||(J=!0,ut()))),w},l.unstable_shouldYield=et,l.unstable_wrapCallback=function(w){var X=b;return function(){var at=b;b=X;try{return w.apply(this,arguments)}finally{b=at}}}})(Oo)),Oo}var dm;function rg(){return dm||(dm=1,Mo.exports=og()),Mo.exports}var Co={exports:{}},ae={};var mm;function fg(){if(mm)return ae;mm=1;var l=Oi();function i(y){var d="https://react.dev/errors/"+y;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)d+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+d+" 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,d,S){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:y,containerInfo:d,implementation:S}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,d){if(y==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(y,d){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return h(y,d,null,S)},ae.flushSync=function(y){var d=m.T,S=o.p;try{if(m.T=null,o.p=2,y)return y()}finally{m.T=d,o.p=S,o.d.f()}},ae.preconnect=function(y,d){typeof y=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(y,d))},ae.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},ae.preinit=function(y,d){if(typeof y=="string"&&d&&typeof d.as=="string"){var S=d.as,g=p(S,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;S==="style"?o.d.S(y,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:_}):S==="script"&&o.d.X(y,{crossOrigin:g,integrity:b,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(y,d){if(typeof y=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var S=p(d.as,d.crossOrigin);o.d.M(y,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(y)},ae.preload=function(y,d){if(typeof y=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var S=d.as,g=p(S,d.crossOrigin);o.d.L(y,S,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(y,d){if(typeof y=="string")if(d){var S=p(d.as,d.crossOrigin);o.d.m(y,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(y)},ae.requestFormReset=function(y){o.d.r(y)},ae.unstable_batchedUpdates=function(y,d){return y(d)},ae.useFormState=function(y,d,S){return m.H.useFormState(y,d,S)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.0",ae}var ym;function ty(){if(ym)return Co.exports;ym=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(),Co.exports=fg(),Co.exports}var vm;function hg(){if(vm)return hi;vm=1;var l=rg(),i=Oi(),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 m(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 d(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"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ut(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var rt=Symbol.for("react.client.reference");function Bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case D:return"Profiler";case L:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case G: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 q:return e=t.displayName||null,e!==null?e:Bt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return Bt(t(e))}catch{}}return null}var Mt=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},bt=[],Rt=-1;function M(t){return{current:t}}function j(t){0>Rt||(t.current=bt[Rt],bt[Rt]=null,Rt--)}function Z(t,e){Rt++,bt[Rt]=t.current,t.current=e}var P=M(null),tt=M(null),ft=M(null),pt=M(null);function qt(t,e){switch(Z(ft,e),Z(tt,t),Z(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Dd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Dd(e),t=Ud(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(P),Z(P,t)}function xt(){j(P),j(tt),j(ft)}function Pe(t){t.memoizedState!==null&&Z(pt,t);var e=P.current,n=Ud(e,t.type);e!==n&&(Z(tt,t),Z(P,n))}function Fe(t){tt.current===t&&(j(P),j(tt)),pt.current===t&&(j(pt),si._currentValue=at)}var pn,vl;function Ye(t){if(pn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);pn=e&&e[1]||"",vl=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+pn+t+vl}var pl=!1;function Ta(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 H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(U){var z=U}Reflect.construct(t,[],H)}else{try{H.call()}catch(U){z=U}t.call(H.prototype)}}else{try{throw Error()}catch(U){z=U}(H=t())&&typeof H.catch=="function"&&H.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 Ci(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 Ta(t.type,!1);case 11:return Ta(t.type.render,!1);case 1:return Ta(t.type,!0);case 31:return Ye("Activity");default:return""}}function ke(t){try{var e="",n=null;do e+=Ci(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Fn=Object.prototype.hasOwnProperty,je=l.unstable_scheduleCallback,gl=l.unstable_cancelCallback,Ai=l.unstable_shouldYield,cs=l.unstable_requestPaint,ne=l.unstable_now,Dt=l.unstable_getCurrentPriorityLevel,kt=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ma=l.unstable_NormalPriority,Qy=l.unstable_LowPriority,rr=l.unstable_IdlePriority,Yy=l.log,Gy=l.unstable_setDisableYieldValue,Sl=null,ye=null;function gn(t){if(typeof Yy=="function"&&Gy(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Sl,t)}catch{}}var ve=Math.clz32?Math.clz32:Ky,Xy=Math.log,Vy=Math.LN2;function Ky(t){return t>>>=0,t===0?32:31-(Xy(t)/Vy|0)|0}var xi=256,zi=262144,Di=4194304;function kn(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 Ui(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=kn(a):(f&=v,f!==0?u=kn(f):n||(n=v&~t,n!==0&&(u=kn(n))))):(v=a&~c,v!==0?u=kn(v):f!==0?u=kn(f):n||(n=a&~t,n!==0&&(u=kn(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 Zy(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 fr(){var t=Di;return Di<<=1,(Di&62914560)===0&&(Di=4194304),t}function os(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 Jy(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),H=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&=~H}a!==0&&hr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function hr(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 dr(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 mr(t,e){var n=e&-e;return n=(n&42)!==0?1:rs(n),(n&(t.suspendedLanes|e))!==0?0:n}function rs(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 fs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function yr(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:em(t.type))}function vr(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var Sn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Sn,se="__reactProps$"+Sn,Oa="__reactContainer$"+Sn,hs="__reactEvents$"+Sn,Py="__reactListeners$"+Sn,Fy="__reactHandles$"+Sn,pr="__reactResources$"+Sn,Rl="__reactMarker$"+Sn;function ds(t){delete t[Wt],delete t[se],delete t[hs],delete t[Py],delete t[Fy]}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=qd(t);t!==null;){if(n=t[Wt])return n;t=qd(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 El(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[pr];return e||(e=t[pr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[Rl]=!0}var gr=new Set,Sr={};function Wn(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(Sr[t]=e,t=0;t<e.length;t++)gr.add(e[t])}var ky=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]*$"),br={},_r={};function Wy(t){return Fn.call(_r,t)?!0:Fn.call(br,t)?!1:ky.test(t)?_r[t]=!0:(br[t]=!0,!1)}function Li(t,e,n){if(Wy(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 wi(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 Rr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Iy(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 ms(t){if(!t._valueTracker){var e=Rr(t)?"checked":"value";t._valueTracker=Iy(t,e,""+t[e])}}function Er(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Rr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ni(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 $y=/[\n"\\]/g;function Ce(t){return t.replace($y,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ys(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?vs(t,f,Oe(e)):n!=null?vs(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)){ms(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),ms(t)}function vs(t,e,n){e==="number"&&Ni(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 Mr(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 Or(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Mt(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),ms(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 tv=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 Cr(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||tv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ar(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&&Cr(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&Cr(t,c,e[c])}function ps(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 ev=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"]]),nv=/^[\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 Bi(t){return nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var gs=null;function Ss(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 xr(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(ys(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));ys(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&&Er(a)}break t;case"textarea":Mr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var bs=!1;function zr(t,e,n){if(bs)return t(e,n);bs=!0;try{var a=t(e);return a}finally{if(bs=!1,(La!==null||wa!==null)&&(Eu(),La&&(e=La,t=wa,wa=La=null,xr(e),t)))for(e=0;e<t.length;e++)xr(t[e])}}function Tl(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"),_s=!1;if($e)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){_s=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{_s=!1}var bn=null,Rs=null,ji=null;function Dr(){if(ji)return ji;var t,e=Rs,n=e.length,a,u="value"in bn?bn.value:bn.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 ji=u.slice(t,1<a?1-a:void 0)}function Hi(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 qi(){return!0}function Ur(){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)?qi:Ur,this.isPropagationStopped=Ur,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=qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),e}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qi=ce(In),Ol=g({},In,{view:0,detail:0}),av=ce(Ol),Es,Ts,Cl,Yi=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Os,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,Ts=t.screenY-Cl.screenY):Ts=Es=0,Cl=t),Es)},movementY:function(t){return"movementY"in t?t.movementY:Ts}}),Lr=ce(Yi),lv=g({},Yi,{dataTransfer:0}),iv=ce(lv),uv=g({},Ol,{relatedTarget:0}),Ms=ce(uv),sv=g({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),cv=ce(sv),ov=g({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rv=ce(ov),fv=g({},In,{data:0}),wr=ce(fv),hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dv={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mv[t])?!!e[t]:!1}function Os(){return yv}var vv=g({},Ol,{key:function(t){if(t.key){var e=hv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?dv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Os,charCode:function(t){return t.type==="keypress"?Hi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),pv=ce(vv),gv=g({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nr=ce(gv),Sv=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Os}),bv=ce(Sv),_v=g({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rv=ce(_v),Ev=g({},Yi,{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}),Tv=ce(Ev),Mv=g({},In,{newState:0,oldState:0}),Ov=ce(Mv),Cv=[9,13,27,32],Cs=$e&&"CompositionEvent"in window,Al=null;$e&&"documentMode"in document&&(Al=document.documentMode);var Av=$e&&"TextEvent"in window&&!Al,Br=$e&&(!Cs||Al&&8<Al&&11>=Al),jr=" ",Hr=!1;function qr(t,e){switch(t){case"keyup":return Cv.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 xv(t,e){switch(t){case"compositionend":return Qr(e);case"keypress":return e.which!==32?null:(Hr=!0,jr);case"textInput":return t=e.data,t===jr&&Hr?null:t;default:return null}}function zv(t,e){if(Na)return t==="compositionend"||!Cs&&qr(t,e)?(t=Dr(),ji=Rs=bn=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 Br&&e.locale!=="ko"?null:e.data;default:return null}}var Dv={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 Yr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Dv[t.type]:e==="textarea"}function Gr(t,e,n,a){La?wa?wa.push(a):wa=[a]:La=a,e=zu(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 Uv(t){Md(t,0)}function Gi(t){var e=El(t);if(Er(e))return t}function Xr(t,e){if(t==="change")return e}var Vr=!1;if($e){var As;if($e){var xs="oninput"in document;if(!xs){var Kr=document.createElement("div");Kr.setAttribute("oninput","return;"),xs=typeof Kr.oninput=="function"}As=xs}else As=!1;Vr=As&&(!document.documentMode||9<document.documentMode)}function Zr(){xl&&(xl.detachEvent("onpropertychange",Jr),zl=xl=null)}function Jr(t){if(t.propertyName==="value"&&Gi(zl)){var e=[];Gr(e,zl,t,Ss(t)),zr(Uv,e)}}function Lv(t,e,n){t==="focusin"?(Zr(),xl=e,zl=n,xl.attachEvent("onpropertychange",Jr)):t==="focusout"&&Zr()}function wv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gi(zl)}function Nv(t,e){if(t==="click")return Gi(e)}function Bv(t,e){if(t==="input"||t==="change")return Gi(e)}function jv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:jv;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(!Fn.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function Pr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Fr(t,e){var n=Pr(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=Pr(n)}}function kr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?kr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Wr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ni(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=Ni(t.document)}return e}function zs(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 Hv=$e&&"documentMode"in document&&11>=document.documentMode,Ba=null,Ds=null,Ul=null,Us=!1;function Ir(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Us||Ba==null||Ba!==Ni(a)||(a=Ba,"selectionStart"in a&&zs(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=zu(Ds,"onSelect"),0<a.length&&(e=new Qi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ba)))}function $n(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ja={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Ls={},$r={};$e&&($r=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 ta(t){if(Ls[t])return Ls[t];if(!ja[t])return t;var e=ja[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in $r)return Ls[t]=e[n];return t}var tf=ta("animationend"),ef=ta("animationiteration"),nf=ta("animationstart"),qv=ta("transitionrun"),Qv=ta("transitionstart"),Yv=ta("transitioncancel"),af=ta("transitionend"),lf=new Map,ws="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(" ");ws.push("scrollEnd");function He(t,e){lf.set(t,e),Wn(e,[t])}var Xi=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,Ns=0;function Vi(){for(var t=Ha,e=Ns=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&&uf(n,u,c)}}function Ki(t,e,n,a){Ae[Ha++]=t,Ae[Ha++]=e,Ae[Ha++]=n,Ae[Ha++]=a,Ns|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Bs(t,e,n,a){return Ki(t,e,n,a),Zi(t)}function ea(t,e){return Ki(t,null,null,e),Zi(t)}function uf(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 Zi(t){if(50<ti)throw ti=0,Kc=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 Gv(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 Gv(t,e,n,a)}function js(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 sf(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 Ji(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")js(t)&&(f=1);else if(typeof t=="string")f=Jp(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case K:return t=ge(31,n,e,u),t.elementType=K,t.lanes=c,t;case O:return na(n.children,u,c,e);case L:f=8,u|=24;break;case D:return t=ge(12,n,e,u|2),t.elementType=D,t.lanes=c,t;case $:return t=ge(13,n,e,u),t.elementType=$,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 G:f=10;break t;case Q:f=9;break t;case Y:f=11;break t;case q:f=14;break t;case V: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 na(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function Hs(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function cf(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 of=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=of.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ke(e)},of.set(t,e),e)}return{value:t,source:e,stack:ke(e)}}var Qa=[],Ya=0,Pi=null,Ll=0,ze=[],De=0,_n=null,Xe=1,Ve="";function en(t,e){Qa[Ya++]=Ll,Qa[Ya++]=Pi,Pi=t,Ll=e}function rf(t,e,n){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=_n,_n=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 Qs(t){t.return!==null&&(en(t,1),rf(t,1,0))}function Ys(t){for(;t===Pi;)Pi=Qa[--Ya],Qa[Ya]=null,Ll=Qa[--Ya],Qa[Ya]=null;for(;t===_n;)_n=ze[--De],ze[De]=null,Ve=ze[--De],ze[De]=null,Xe=ze[--De],ze[De]=null}function ff(t,e){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=_n,Xe=e.id,Ve=e.overflow,_n=t}var It=null,Ut=null,vt=!1,Rn=null,Ue=!1,Gs=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)),Gs}function hf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<ni.length;n++)dt(ni[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Tr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Or(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||xd(e.textContent,n)?(a.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),a.onScroll!=null&&dt("scroll",e),a.onScrollEnd!=null&&dt("scrollend",e),a.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||En(t,!0)}function df(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(!vt)return df(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||uo(t.type,t.memoizedProps)),n=!n),n&&Ut&&En(t),df(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Hd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Hd(t)}else e===27?(e=Ut,jn(t.type)?(t=fo,fo=null,Ut=t):Ut=e):Ut=It?we(t.stateNode.nextSibling):null;return!0}function aa(){Ut=It=null,vt=!1}function Xs(){var t=Rn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Rn=null),t}function wl(t){Rn===null?Rn=[t]:Rn.push(t)}var Vs=M(null),la=null,nn=null;function Tn(t,e,n){Z(Vs,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Vs.current,j(Vs)}function Ks(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 Zs(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),Ks(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),Ks(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===pt.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&&Zs(e,t,n,a),e.flags|=262144}function Fi(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ia(t){la=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return mf(la,t)}function ki(t,e){return la===null&&ia(t),mf(t,e)}function mf(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 Xv=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()})}},Vv=l.unstable_scheduleCallback,Kv=l.unstable_NormalPriority,Gt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Js(){return{controller:new Xv,data:new Map,refCount:0}}function Nl(t){t.refCount--,t.refCount===0&&Vv(Kv,function(){t.controller.abort()})}var Bl=null,Ps=0,Va=0,Ka=null;function Zv(t,e){if(Bl===null){var n=Bl=[];Ps=0,Va=Wc(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Ps++,e.then(yf,yf),e}function yf(){if(--Ps===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 Jv(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 vf=w.S;w.S=function(t,e){$h=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Zv(t,e),vf!==null&&vf(t,e)};var ua=M(null);function Fs(){var t=ua.current;return t!==null?t:zt.pooledCache}function Wi(t,e){e===null?Z(ua,ua.current):Z(ua,e.pool)}function pf(){var t=Fs();return t===null?null:{parent:Gt._currentValue,pool:t}}var Za=Error(o(460)),ks=Error(o(474)),Ii=Error(o(542)),$i={then:function(){}};function gf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Sf(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,_f(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=zt,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,_f(t),t}throw ca=e,Za}}function sa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ca=n,Za):n}}var ca=null;function bf(){if(ca===null)throw Error(o(459));var t=ca;return ca=null,t}function _f(t){if(t===Za||t===Ii)throw Error(o(483))}var Ja=null,jl=0;function tu(t){var e=jl;return jl+=1,Ja===null&&(Ja=[]),Sf(Ja,t,e)}function Hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function eu(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 Rf(t){function e(C,T){if(t){var A=C.deletions;A===null?(C.deletions=[T],C.flags|=16):A.push(T)}}function n(C,T){if(!t)return null;for(;T!==null;)e(C,T),T=T.sibling;return null}function a(C){for(var T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function u(C,T){return C=tn(C,T),C.index=0,C.sibling=null,C}function c(C,T,A){return C.index=A,t?(A=C.alternate,A!==null?(A=A.index,A<T?(C.flags|=67108866,T):A):(C.flags|=67108866,T)):(C.flags|=1048576,T)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function v(C,T,A,B){return T===null||T.tag!==6?(T=Hs(A,C.mode,B),T.return=C,T):(T=u(T,A),T.return=C,T)}function R(C,T,A,B){var nt=A.type;return nt===O?N(C,T,A.props.children,B,A.key):T!==null&&(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&sa(nt)===T.type)?(T=u(T,A.props),Hl(T,A),T.return=C,T):(T=Ji(A.type,A.key,A.props,null,C.mode,B),Hl(T,A),T.return=C,T)}function x(C,T,A,B){return T===null||T.tag!==4||T.stateNode.containerInfo!==A.containerInfo||T.stateNode.implementation!==A.implementation?(T=qs(A,C.mode,B),T.return=C,T):(T=u(T,A.children||[]),T.return=C,T)}function N(C,T,A,B,nt){return T===null||T.tag!==7?(T=na(A,C.mode,B,nt),T.return=C,T):(T=u(T,A),T.return=C,T)}function H(C,T,A){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Hs(""+T,C.mode,A),T.return=C,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return A=Ji(T.type,T.key,T.props,null,C.mode,A),Hl(A,T),A.return=C,A;case E:return T=qs(T,C.mode,A),T.return=C,T;case V:return T=sa(T),H(C,T,A)}if(Mt(T)||ut(T))return T=na(T,C.mode,A,null),T.return=C,T;if(typeof T.then=="function")return H(C,tu(T),A);if(T.$$typeof===G)return H(C,ki(C,T),A);eu(C,T)}return null}function z(C,T,A,B){var nt=T!==null?T.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:v(C,T,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?R(C,T,A,B):null;case E:return A.key===nt?x(C,T,A,B):null;case V:return A=sa(A),z(C,T,A,B)}if(Mt(A)||ut(A))return nt!==null?null:N(C,T,A,B,null);if(typeof A.then=="function")return z(C,T,tu(A),B);if(A.$$typeof===G)return z(C,T,ki(C,A),B);eu(C,A)}return null}function U(C,T,A,B,nt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(A)||null,v(T,C,""+B,nt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return C=C.get(B.key===null?A:B.key)||null,R(T,C,B,nt);case E:return C=C.get(B.key===null?A:B.key)||null,x(T,C,B,nt);case V:return B=sa(B),U(C,T,A,B,nt)}if(Mt(B)||ut(B))return C=C.get(A)||null,N(T,C,B,nt,null);if(typeof B.then=="function")return U(C,T,A,tu(B),nt);if(B.$$typeof===G)return U(C,T,A,ki(T,B),nt);eu(T,B)}return null}function k(C,T,A,B){for(var nt=null,gt=null,I=T,ot=T=0,yt=null;I!==null&&ot<A.length;ot++){I.index>ot?(yt=I,I=null):yt=I.sibling;var St=z(C,I,A[ot],B);if(St===null){I===null&&(I=yt);break}t&&I&&St.alternate===null&&e(C,I),T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St,I=yt}if(ot===A.length)return n(C,I),vt&&en(C,ot),nt;if(I===null){for(;ot<A.length;ot++)I=H(C,A[ot],B),I!==null&&(T=c(I,T,ot),gt===null?nt=I:gt.sibling=I,gt=I);return vt&&en(C,ot),nt}for(I=a(I);ot<A.length;ot++)yt=U(I,C,ot,A[ot],B),yt!==null&&(t&&yt.alternate!==null&&I.delete(yt.key===null?ot:yt.key),T=c(yt,T,ot),gt===null?nt=yt:gt.sibling=yt,gt=yt);return t&&I.forEach(function(Gn){return e(C,Gn)}),vt&&en(C,ot),nt}function it(C,T,A,B){if(A==null)throw Error(o(151));for(var nt=null,gt=null,I=T,ot=T=0,yt=null,St=A.next();I!==null&&!St.done;ot++,St=A.next()){I.index>ot?(yt=I,I=null):yt=I.sibling;var Gn=z(C,I,St.value,B);if(Gn===null){I===null&&(I=yt);break}t&&I&&Gn.alternate===null&&e(C,I),T=c(Gn,T,ot),gt===null?nt=Gn:gt.sibling=Gn,gt=Gn,I=yt}if(St.done)return n(C,I),vt&&en(C,ot),nt;if(I===null){for(;!St.done;ot++,St=A.next())St=H(C,St.value,B),St!==null&&(T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St);return vt&&en(C,ot),nt}for(I=a(I);!St.done;ot++,St=A.next())St=U(I,C,ot,St.value,B),St!==null&&(t&&St.alternate!==null&&I.delete(St.key===null?ot:St.key),T=c(St,T,ot),gt===null?nt=St:gt.sibling=St,gt=St);return t&&I.forEach(function(lg){return e(C,lg)}),vt&&en(C,ot),nt}function At(C,T,A,B){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;T!==null;){if(T.key===nt){if(nt=A.type,nt===O){if(T.tag===7){n(C,T.sibling),B=u(T,A.props.children),B.return=C,C=B;break t}}else if(T.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===V&&sa(nt)===T.type){n(C,T.sibling),B=u(T,A.props),Hl(B,A),B.return=C,C=B;break t}n(C,T);break}else e(C,T);T=T.sibling}A.type===O?(B=na(A.props.children,C.mode,B,A.key),B.return=C,C=B):(B=Ji(A.type,A.key,A.props,null,C.mode,B),Hl(B,A),B.return=C,C=B)}return f(C);case E:t:{for(nt=A.key;T!==null;){if(T.key===nt)if(T.tag===4&&T.stateNode.containerInfo===A.containerInfo&&T.stateNode.implementation===A.implementation){n(C,T.sibling),B=u(T,A.children||[]),B.return=C,C=B;break t}else{n(C,T);break}else e(C,T);T=T.sibling}B=qs(A,C.mode,B),B.return=C,C=B}return f(C);case V:return A=sa(A),At(C,T,A,B)}if(Mt(A))return k(C,T,A,B);if(ut(A)){if(nt=ut(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),it(C,T,A,B)}if(typeof A.then=="function")return At(C,T,tu(A),B);if(A.$$typeof===G)return At(C,T,ki(C,A),B);eu(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,T!==null&&T.tag===6?(n(C,T.sibling),B=u(T,A),B.return=C,C=B):(n(C,T),B=Hs(A,C.mode,B),B.return=C,C=B),f(C)):n(C,T)}return function(C,T,A,B){try{jl=0;var nt=At(C,T,A,B);return Ja=null,nt}catch(I){if(I===Za||I===Ii)throw I;var gt=ge(29,I,null,C.mode);return gt.lanes=B,gt.return=C,gt}}}var oa=Rf(!0),Ef=Rf(!1),Mn=!1;function Ws(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Is(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 On(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(_t&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Zi(t),uf(t,null,n),e}return Ki(t,a,e,n),Zi(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,dr(t,n)}}function $s(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 tc=!1;function Ql(){if(tc){var t=Ka;if(t!==null)throw t}}function Yl(t,e,n,a){tc=!1;var u=t.updateQueue;Mn=!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 H=u.baseState;f=0,N=x=R=null,v=c;do{var z=v.lane&-536870913,U=z!==v.lane;if(U?(mt&z)===z:(a&z)===z){z!==0&&z===Va&&(tc=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var k=t,it=v;z=e;var At=n;switch(it.tag){case 1:if(k=it.payload,typeof k=="function"){H=k.call(At,H,z);break t}H=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=it.payload,z=typeof k=="function"?k.call(At,H,z):k,z==null)break t;H=g({},H,z);break t;case 2:Mn=!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=H):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=H),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=H}}function Tf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Mf(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=M(null),nu=M(0);function Of(t,e){t=dn,Z(nu,t),Z(Pa,e),dn=t|e.baseLanes}function ec(){Z(nu,dn),Z(Pa,Pa.current)}function nc(){dn=nu.current,j(Pa),j(nu)}var Se=M(null),Le=null;function An(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(Se,t),Le===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Le=t)}function ac(t){Z(Qt,Qt.current),Z(Se,t),Le===null&&(Le=t)}function Cf(t){t.tag===22?(Z(Qt,Qt.current),Z(Se,t),Le===null&&(Le=t)):xn()}function xn(){Z(Qt,Qt.current),Z(Se,Se.current)}function be(t){j(Se),Le===t&&(Le=null),j(Qt)}var Qt=M(0);function au(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||oo(n)||ro(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,Ot=null,Xt=null,lu=!1,Fa=!1,ra=!1,iu=0,Gl=0,ka=null,Pv=0;function jt(){throw Error(o(321))}function lc(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 ic(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?rh:bc,ra=!1,c=n(a,u),ra=!1,Fa&&(c=xf(e,n,a,u)),Af(t),c}function Af(t){w.H=Kl;var e=Ot!==null&&Ot.next!==null;if(ln=0,Xt=Ot=ct=null,lu=!1,Gl=0,ka=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&Fi(t)&&(Vt=!0))}function xf(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=Ot=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=fh,c=e(n,a)}while(Fa);return c}function Fv(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?Xl(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ct.flags|=1024),e}function uc(){var t=iu!==0;return iu=0,t}function sc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function cc(t){if(lu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}lu=!1}ln=0,Xt=Ot=ct=null,Fa=!1,Gl=iu=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(Ot===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Ot=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(t){var e=Gl;return Gl+=1,ka===null&&(ka=[]),t=Sf(ka,t,e),e=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?rh:bc),t}function su(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xl(t);if(t.$$typeof===G)return $t(t)}throw Error(o(438,String(t)))}function oc(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=uu(),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]=et;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function cu(t){var e=Yt();return rc(e,Ot,t)}function rc(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 H=x.lane&-536870913;if(H!==x.lane?(mt&H)===H:(ln&H)===H){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}),H===Va&&(N=!0);else if((ln&z)===z){x=x.next,z===Va&&(N=!0);continue}else H={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=H,f=c):R=R.next=H,ct.lanes|=z,Un|=z;H=x.action,ra&&n(c,H),c=x.hasEagerState?x.eagerState:n(c,H)}else z={lane:H,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|=H,Un|=H;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 fc(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 zf(t,e,n){var a=ct,u=Yt(),c=vt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!pe((Ot||u).memoizedState,n);if(f&&(u.memoizedState=n,Vt=!0),u=u.queue,mc(Lf.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},Uf.bind(null,a,u,n,e),null),zt===null)throw Error(o(349));c||(ln&127)!==0||Df(a,e,n)}return n}function Df(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=uu(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Uf(t,e,n,a){e.value=n,e.getSnapshot=a,wf(e)&&Nf(t)}function Lf(t,e,n){return n(function(){wf(e)&&Nf(t)})}function wf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function Nf(t){var e=ea(t,2);e!==null&&de(e,t,2)}function hc(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ra){gn(!0);try{n()}finally{gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Bf(t,e,n,a){return t.baseState=n,rc(t,Ot,typeof a=="function"?a:un)}function kv(t,e,n,a,u){if(fu(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,jf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function jf(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),Hf(t,e,v)}catch(x){dc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),w.T=c}}else try{c=n(u,a),Hf(t,e,c)}catch(x){dc(t,e,x)}}function Hf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){qf(t,e,a)},function(a){return dc(t,e,a)}):qf(t,e,n)}function qf(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,jf(t,n)))}function dc(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 Yf(t,e){return e}function Gf(t,e){if(vt){var n=zt.formState;if(n!==null){t:{var a=ct;if(vt){if(Ut){e:{for(var u=Ut,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){Ut=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:Yf,lastRenderedState:e},n.queue=a,n=sh.bind(null,ct,a),a.dispatch=n,a=hc(!1),c=Sc.bind(null,ct,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=kv.bind(null,ct,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function Xf(t){var e=Yt();return Vf(e,Ot,t)}function Vf(t,e,n){if(e=rc(t,e,Yf)[0],t=cu(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Xl(e)}catch(f){throw f===Za?Ii: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},Wv.bind(null,u,n),null)),[a,c,t]}function Wv(t,e){t.action=e}function Kf(t){var e=Yt(),n=Ot;if(n!==null)return Vf(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=uu(),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 Zf(){return Yt().memoizedState}function ou(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 ru(t,e,n,a){var u=Yt();a=a===void 0?null:a;var c=u.memoizedState.inst;Ot!==null&&a!==null&&lc(a,Ot.memoizedState.deps)?u.memoizedState=Wa(e,c,n,a):(ct.flags|=t,u.memoizedState=Wa(1|e,c,n,a))}function Jf(t,e){ou(8390656,8,t,e)}function mc(t,e){ru(2048,8,t,e)}function Iv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=uu(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Pf(t){var e=Yt().memoizedState;return Iv({ref:e,nextImpl:t}),function(){if((_t&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Ff(t,e){return ru(4,2,t,e)}function kf(t,e){return ru(4,4,t,e)}function Wf(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 If(t,e,n){n=n!=null?n.concat([t]):null,ru(4,4,Wf.bind(null,e,t),n)}function yc(){}function $f(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&lc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function th(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&lc(e,a[1]))return a[0];if(a=t(),ra){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[a,e],a}function vc(t,e,n){return n===void 0||(ln&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ed(),ct.lanes|=t,Un|=t,n)}function eh(t,e,n,a){return pe(n,e)?n:Pa.current!==null?(t=vc(t,n,a),pe(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(mt&261930)===0?(Vt=!0,t.memoizedState=n):(t=ed(),ct.lanes|=t,Un|=t,e)}function nh(t,e,n,a,u){var c=X.p;X.p=c!==0&&8>c?c:8;var f=w.T,v={};w.T=v,Sc(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=Jv(R,a);Vl(t,e,N,Ee(t))}else Vl(t,e,a,Ee(t))}catch(H){Vl(t,e,{then:function(){},status:"rejected",reason:H},Ee())}finally{X.p=c,f!==null&&v.types!==null&&(f.types=v.types),w.T=f}}function $v(){}function pc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=ah(t).queue;nh(t,u,e,at,n===null?$v:function(){return lh(t),n(a)})}function ah(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 lh(t){var e=ah(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},Ee())}function gc(){return $t(si)}function ih(){return Yt().memoizedState}function uh(){return Yt().memoizedState}function tp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=On(n);var a=Cn(e,t,n);a!==null&&(de(a,e,n),ql(a,e,n)),e={cache:Js()},t.payload=e;return}e=e.return}}function ep(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fu(t)?ch(e,n):(n=Bs(t,e,n,a),n!==null&&(de(n,t,a),oh(n,e,a)))}function sh(t,e,n){var a=Ee();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(fu(t))ch(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 Ki(t,e,u,0),zt===null&&Vi(),!1}catch{}if(n=Bs(t,e,u,a),n!==null)return de(n,t,a),oh(n,e,a),!0}return!1}function Sc(t,e,n,a){if(a={lane:2,revertLane:Wc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fu(t)){if(e)throw Error(o(479))}else e=Bs(t,n,a,2),e!==null&&de(e,t,2)}function fu(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function ch(t,e){Fa=lu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function oh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,dr(t,n)}}var Kl={readContext:$t,use:su,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};Kl.useEffectEvent=jt;var rh={readContext:$t,use:su,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Jf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ou(4194308,4,Wf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ou(4194308,4,t,e)},useInsertionEffect:function(t,e){ou(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(ra){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(ra){gn(!0);try{n(e)}finally{gn(!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=ep.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=hc(t);var e=t.queue,n=sh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:yc,useDeferredValue:function(t,e){var n=ie();return vc(n,t,e)},useTransition:function(){var t=hc(!1);return t=nh.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,u=ie();if(vt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(mt&127)!==0||Df(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,Jf(Lf.bind(null,a,c,t),[t]),a.flags|=2048,Wa(9,{destroy:void 0},Uf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=zt.identifierPrefix;if(vt){var n=Ve,a=Xe;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=iu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Pv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:gc,useFormState:Gf,useActionState:Gf,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=Sc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:oc,useCacheRefresh:function(){return ie().memoizedState=tp.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((_t&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},bc={readContext:$t,use:su,useCallback:$f,useContext:$t,useEffect:mc,useImperativeHandle:If,useInsertionEffect:Ff,useLayoutEffect:kf,useMemo:th,useReducer:cu,useRef:Zf,useState:function(){return cu(un)},useDebugValue:yc,useDeferredValue:function(t,e){var n=Yt();return eh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=cu(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:zf,useId:ih,useHostTransitionStatus:gc,useFormState:Xf,useActionState:Xf,useOptimistic:function(t,e){var n=Yt();return Bf(n,Ot,t,e)},useMemoCache:oc,useCacheRefresh:uh};bc.useEffectEvent=Pf;var fh={readContext:$t,use:su,useCallback:$f,useContext:$t,useEffect:mc,useImperativeHandle:If,useInsertionEffect:Ff,useLayoutEffect:kf,useMemo:th,useReducer:fc,useRef:Zf,useState:function(){return fc(un)},useDebugValue:yc,useDeferredValue:function(t,e){var n=Yt();return Ot===null?vc(n,t,e):eh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=fc(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:zf,useId:ih,useHostTransitionStatus:gc,useFormState:Kf,useActionState:Kf,useOptimistic:function(t,e){var n=Yt();return Ot!==null?Bf(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:oc,useCacheRefresh:uh};fh.useEffectEvent=Pf;function _c(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 Rc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=On(a);u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=On(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,a),e!==null&&(de(e,t,a),ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=On(n);a.tag=2,e!=null&&(a.callback=e),e=Cn(t,a,n),e!==null&&(de(e,t,n),ql(e,t,n))}};function hh(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 dh(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&&Rc.enqueueReplaceState(e,e.state,null)}function fa(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 mh(t){Xi(t)}function yh(t){console.error(t)}function vh(t){Xi(t)}function hu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function ph(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=On(n),n.tag=3,n.payload={element:null},n.callback=function(){hu(t,e)},n}function gh(t){return t=On(t),t.tag=3,t}function Sh(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(){ph(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){ph(e,n,a),typeof u!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function np(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&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===$i?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Pc(t,a,u)),!1;case 22:return n.flags|=65536,a===$i?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)),Pc(t,a,u)),!1}throw Error(o(435,n.tag))}return Pc(t,a,u),Tu(),!1}if(vt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Gs&&(t=Error(o(422),{cause:a}),wl(xe(t,n)))):(a!==Gs&&(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),$s(t,u),Ht!==4&&(Ht=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),$l===null?$l=[c]:$l.push(c),Ht!==4&&(Ht=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),$s(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"&&(Ln===null||!Ln.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=gh(u),Sh(u,t,n,a),$s(n,u),!1}n=n.return}while(n!==null);return!1}var Tc=Error(o(461)),Vt=!1;function te(t,e,n,a){e.child=t===null?Ef(e,null,n,a):oa(e,t.child,n,a)}function bh(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 ia(e),a=ic(t,e,n,f,c,u),v=uc(),t!==null&&!Vt?(sc(t,e,u),sn(t,e,u)):(vt&&v&&Qs(e),e.flags|=1,te(t,e,a,u),e.child)}function _h(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!js(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Rh(t,e,c,a,u)):(t=Ji(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Uc(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 Rh(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,Uc(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,sn(t,e,u)}return Mc(t,e,n,a,u)}function Eh(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&&Wi(e,c!==null?c.cachePool:null),c!==null?Of(e,c):ec(),Cf(e);else return a=e.lanes=536870912,Th(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Wi(e,c.cachePool),Of(e,c),xn(),e.memoizedState=null):(t!==null&&Wi(e,null),ec(),xn());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=Fs();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Wi(e,null),ec(),Cf(e),t!==null&&Xa(t,e,a,!0),e.childLanes=u,null}function du(t,e){return e=yu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Mh(t,e,n){return oa(e,t.child,null,n),t=du(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function ap(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(a.mode==="hidden")return t=du(e,a),e.lanes=536870912,Zl(null,t);if(ac(e),(t=Ut)?(t=jd(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=cf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return du(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(ac(e),u)if(e.flags&256)e.flags&=-257,e=Mh(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=zt,a!==null&&(f=mr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ea(t,f),de(a,t,f),Tc;Tu(),e=Mh(t,e,n)}else t=c.treeContext,Ut=we(f.nextSibling),It=e,vt=!0,Rn=null,Ue=!1,t!==null&&ff(e,t),e=du(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 mu(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 Mc(t,e,n,a,u){return ia(e),n=ic(t,e,n,a,void 0,u),a=uc(),t!==null&&!Vt?(sc(t,e,u),sn(t,e,u)):(vt&&a&&Qs(e),e.flags|=1,te(t,e,n,u),e.child)}function Oh(t,e,n,a,u,c){return ia(e),e.updateQueue=null,n=xf(e,a,n,u),Af(t),a=uc(),t!==null&&!Vt?(sc(t,e,c),sn(t,e,c)):(vt&&a&&Qs(e),e.flags|=1,te(t,e,n,c),e.child)}function Ch(t,e,n,a,u){if(ia(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=Rc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},Ws(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?$t(f):qa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(_c(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&&Rc.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=fa(n,v);c.props=R;var x=c.context,N=n.contextType;f=qa,typeof N=="object"&&N!==null&&(f=$t(N));var H=n.getDerivedStateFromProps;N=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&dh(e,c,a,f),Mn=!1;var z=e.memoizedState;c.state=z,Yl(e,a,c,u),Ql(),x=e.memoizedState,v||z!==x||Mn?(typeof H=="function"&&(_c(e,n,H,a),x=e.memoizedState),(R=Mn||hh(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,Is(t,e),f=e.memoizedProps,N=fa(n,f),c.props=N,H=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!==H||z!==R)&&dh(e,c,a,R),Mn=!1,z=e.memoizedState,c.state=z,Yl(e,a,c,u),Ql();var U=e.memoizedState;f!==H||z!==U||Mn||t!==null&&t.dependencies!==null&&Fi(t.dependencies)?(typeof v=="function"&&(_c(e,n,v,a),U=e.memoizedState),(N=Mn||hh(e,n,N,a,z,U,R)||t!==null&&t.dependencies!==null&&Fi(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,mu(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=oa(e,t.child,null,u),e.child=oa(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=sn(t,e,u),t}function Ah(t,e,n,a){return aa(),e.flags|=256,te(t,e,n,a),e.child}var Oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cc(t){return{baseLanes:t,cachePool:pf()}}function Ac(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function xh(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(vt){if(u?An(e):xn(),(t=Ut)?(t=jd(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=cf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw En(e);return ro(t)?e.lanes=32:e.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(xn(),u=e.mode,v=yu({mode:"hidden",children:v},u),a=na(a,u,n,null),v.return=e,a.return=e,v.sibling=a,e.child=v,a=e.child,a.memoizedState=Cc(n),a.childLanes=Ac(t,f,n),e.memoizedState=Oc,Zl(null,a)):(An(e),xc(e,v))}var R=t.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)e.flags&256?(An(e),e.flags&=-257,e=zc(t,e,n)):e.memoizedState!==null?(xn(),e.child=t.child,e.flags|=128,e=null):(xn(),v=a.fallback,u=e.mode,a=yu({mode:"visible",children:a.children},u),v=na(v,u,n,null),v.flags|=2,a.return=e,v.return=e,a.sibling=v,e.child=a,oa(e,t.child,null,n),a=e.child,a.memoizedState=Cc(n),a.childLanes=Ac(t,f,n),e.memoizedState=Oc,e=Zl(null,a));else if(An(e),ro(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=zc(t,e,n)}else if(Vt||Xa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=zt,f!==null&&(a=mr(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,ea(t,a),de(f,t,a),Tc;oo(v)||Tu(),e=zc(t,e,n)}else oo(v)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=we(v.nextSibling),It=e,vt=!0,Rn=null,Ue=!1,t!==null&&ff(e,t),e=xc(e,a.children),e.flags|=4096);return e}return u?(xn(),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=na(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=Cc(n):(u=v.cachePool,u!==null?(R=Gt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=pf(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=Ac(t,f,n),e.memoizedState=Oc,Zl(t.child,a)):(An(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 xc(t,e){return e=yu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function zc(t,e,n){return oa(e,t.child,null,n),t=xc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function zh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ks(t.return,e,n)}function Dc(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 Dh(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,Z(Qt,f),te(t,e,a,n),a=vt?Ll:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&zh(t,n,e);else if(t.tag===19)zh(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&&au(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Dc(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&&au(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Dc(e,!0,n,null,c,a);break;case"together":Dc(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),Un|=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 Uc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Fi(t)))}function lp(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Tn(e,Gt,t.memoizedState.cache),aa();break;case 27:case 5:Pe(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Tn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ac(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(An(e),e.flags|=128,null):(n&e.child.childLanes)!==0?xh(t,e,n):(An(e),t=sn(t,e,n),t!==null?t.sibling:null);An(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 Dh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Z(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Eh(t,e,n,e.pendingProps);case 24:Tn(e,Gt,t.memoizedState.cache)}return sn(t,e,n)}function Uh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Uc(t,n)&&(e.flags&128)===0)return Vt=!1,lp(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,vt&&(e.flags&1048576)!==0&&rf(e,Ll,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=sa(e.elementType),e.type=t,typeof t=="function")js(t)?(a=fa(t,a),e.tag=1,e=Ch(null,e,t,a,n)):(e.tag=0,e=Mc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===Y){e.tag=11,e=bh(null,e,t,a,n);break t}else if(u===q){e.tag=14,e=_h(null,e,t,a,n);break t}}throw e=Bt(t)||t,Error(o(306,e,""))}}return e;case 0:return Mc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=fa(a,e.pendingProps),Ch(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,Is(t,e),Yl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Tn(e,Gt,a),a!==c.cache&&Zs(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=Ah(t,e,a,n);break t}else if(a!==u){u=xe(Error(o(424)),e),wl(u),e=Ah(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,Ut=we(t.firstChild),It=e,vt=!0,Rn=null,Ue=!0,n=Ef(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(aa(),a===u){e=sn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return mu(t,e),t===null?(n=Xd(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,a=Du(ft.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=Xd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&vt&&(a=e.stateNode=Qd(e.type,e.pendingProps,ft.current),It=e,Ue=!0,u=Ut,jn(e.type)?(fo=u,Ut=we(a.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),mu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((u=a=Ut)&&(a=wp(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,It=e,Ut=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,uo(u,c)?a=null:f!==null&&uo(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=ic(t,e,Fv,null,null,n),si._currentValue=u),mu(t,e),te(t,e,a,n),e.child;case 6:return t===null&&vt&&((t=n=Ut)&&(n=Np(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,It=e,Ut=null,t=!0):t=!1),t||En(e)),null;case 13:return xh(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=oa(e,null,a,n):te(t,e,a,n),e.child;case 11:return bh(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,Tn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,ia(e),u=$t(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return _h(t,e,e.type,e.pendingProps,n);case 15:return Rh(t,e,e.type,e.pendingProps,n);case 19:return Dh(t,e,n);case 31:return ap(t,e,n);case 22:return Eh(t,e,n,e.pendingProps);case 24:return ia(e),a=$t(Gt),t===null?(u=Fs(),u===null&&(u=zt,c=Js(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},Ws(e),Tn(e,Gt,u)):((t.lanes&n)!==0&&(Is(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),Tn(e,Gt,a)):(a=c.cache,Tn(e,Gt,a),a!==u.cache&&Zs(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 Lc(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(id())t.flags|=8192;else throw ca=$i,ks}else t.flags&=-16777217}function Lh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Pd(e))if(id())t.flags|=8192;else throw ca=$i,ks}function vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?fr():536870912,t.lanes|=e,el|=e)}function Jl(t,e){if(!vt)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 Lt(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 ip(t,e,n){var a=e.pendingProps;switch(Ys(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(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),xt(),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,Xs())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Lt(e),Lh(e,c)):(Lt(e),Lc(e,u,null,a,n))):c?c!==t.memoizedState?(cn(e),Lt(e),Lh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Lt(e),Lc(e,u,t,a,n)),null;case 27:if(Fe(e),n=ft.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 Lt(e),null}t=P.current,Ga(e)?hf(e):(t=Qd(u,a,n),e.stateNode=t,cn(e))}return Lt(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 Lt(e),null}if(c=P.current,Ga(e))hf(e);else{var f=Du(ft.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 Lt(e),Lc(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=ft.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||xd(t.nodeValue,n)),t||En(e,!0)}else t=Du(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Lt(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 aa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=Xs(),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 Lt(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 aa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=Xs(),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),vu(e,e.updateQueue),Lt(e),null);case 4:return xt(),t===null&&eo(e.stateNode.containerInfo),Lt(e),null;case 10:return an(e.type),Lt(e),null;case 19:if(j(Qt),a=e.memoizedState,a===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Jl(a,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=au(t),c!==null){for(e.flags|=128,Jl(a,!1),t=c.updateQueue,e.updateQueue=t,vu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)sf(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),vt&&en(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ne()>_u&&(e.flags|=128,u=!0,Jl(a,!1),e.lanes=4194304)}else{if(!u)if(t=au(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,vu(e,t),Jl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!vt)return Lt(e),null}else 2*ne()-a.renderingStartTime>_u&&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,Z(Qt,u?n&1|2:n&1),vt&&en(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return be(e),nc(),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&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&vu(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&&j(ua),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Gt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function up(t,e){switch(Ys(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Gt),xt(),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));aa()}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));aa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Qt),null;case 4:return xt(),null;case 10:return an(e.type),null;case 22:case 23:return be(e),nc(),t!==null&&j(ua),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 wh(t,e){switch(Ys(e),e.tag){case 3:an(Gt),xt();break;case 26:case 27:case 5:Fe(e);break;case 4:xt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:j(Qt);break;case 10:an(e.type);break;case 22:case 23:be(e),nc(),t!==null&&j(ua);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 zn(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 Nh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Mf(e,n)}catch(a){Tt(t,t.return,a)}}}function Bh(t,e,n){n.props=fa(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 jh(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 wc(t,e,n){try{var a=t.stateNode;Ap(a,t.type,n,e),a[se]=e}catch(u){Tt(t,t.return,u)}}function Hh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Nc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Hh(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&&jn(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 Bc(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&&jn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Bc(t,e,n),t=t.sibling;t!==null;)Bc(t,e,n),t=t.sibling}function pu(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&&jn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(pu(t,e,n),t=t.sibling;t!==null;)pu(t,e,n),t=t.sibling}function qh(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,jc=!1,Qh=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function sp(t,e){if(t=t.containerInfo,lo=Hu,t=Wr(t),zs(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,H=t,z=null;e:for(;;){for(var U;H!==n||u!==0&&H.nodeType!==3||(v=f+u),H!==c||a!==0&&H.nodeType!==3||(R=f+a),H.nodeType===3&&(f+=H.nodeValue.length),(U=H.firstChild)!==null;)z=H,H=U;for(;;){if(H===t)break e;if(z===n&&++x===u&&(v=f),z===c&&++N===a&&(R=f),(U=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=U}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(io={focusedElem:t,selectionRange:n},Hu=!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 k=fa(n.type,u);t=a.getSnapshotBeforeUpdate(k,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(it){Tt(n,n.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)co(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":co(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 Yh(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=fa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}a&64&&Nh(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{Mf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&a&4&&qh(n);case 26:case 5:fn(t,n),e===null&&a&4&&jh(n),a&512&&Fl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),a&4&&Vh(t,n);break;case 13:fn(t,n),a&4&&Kh(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=vp.bind(null,n),Bp(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 Gh(t){var e=t.alternate;e!==null&&(t.alternate=null,Gh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ds(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 wt=null,oe=!1;function rn(t,e,n){for(n=n.child;n!==null;)Xh(t,e,n),n=n.sibling}function Xh(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=wt,u=oe;jn(n.type)&&(wt=n.stateNode,oe=!1),rn(t,e,n),li(n.stateNode),wt=a,oe=u;break;case 5:Kt||Ke(n,e);case 6:if(a=wt,u=oe,wt=null,rn(t,e,n),wt=a,oe=u,wt!==null)if(oe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:wt!==null&&(oe?(t=wt,Nd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):Nd(wt,n.stateNode));break;case 4:a=wt,u=oe,wt=n.stateNode.containerInfo,oe=!0,rn(t,e,n),wt=a,oe=u;break;case 0:case 11:case 14:case 15:zn(2,n,e),Kt||zn(4,n,e),rn(t,e,n);break;case 1:Kt||(Ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Bh(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 Vh(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 Kh(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 cp(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 gu(t,e){var n=cp(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=pp.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(jn(v.type)){wt=v.stateNode,oe=!1;break t}break;case 5:wt=v.stateNode,oe=!1;break t;case 3:case 4:wt=v.stateNode.containerInfo,oe=!0;break t}v=v.return}if(wt===null)throw Error(o(160));Xh(c,f,u),wt=null,oe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zh(e,t),e=e.sibling}var qe=null;function Zh(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&&(zn(3,t,t.return),Pl(3,t),zn(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=Zd("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=Zd("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 Jd(u,t.type,t.stateNode);else t.stateNode=Kd(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Jd(u,t.type,t.stateNode):Kd(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&wc(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&&wc(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(k){Tt(t,t.return,k)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,wc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(jc=!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(k){Tt(t,t.return,k)}}break;case 3:if(wu=null,u=qe,qe=Uu(e.containerInfo),re(e,t),qe=u,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(k){Tt(t,t.return,k)}jc&&(jc=!1,Jh(t));break;case 4:a=qe,qe=Uu(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,gu(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bu=ne()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gu(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||ha(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 H=R.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Tt(R,R.return,k)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(k){Tt(R,R.return,k)}}}else if(e.tag===18){if(n===null){R=e;try{var U=R.stateNode;u?Bd(U,!0):Bd(R.stateNode,!1)}catch(k){Tt(R,R.return,k)}}}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,gu(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,gu(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(Hh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Nc(t);pu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ua(f,""),n.flags&=-33);var v=Nc(t);pu(t,v,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Nc(t);Bc(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 Jh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Jh(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;)Yh(t,e.alternate,e),e=e.sibling}function ha(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:zn(4,e,e.return),ha(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Bh(e,e.return,n),ha(e);break;case 27:li(e.stateNode);case 26:case 5:Ke(e,e.return),ha(e);break;case 22:e.memoizedState===null&&ha(e);break;case 30:ha(e);break;default:ha(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&&Nh(c),Fl(c,c.return);break;case 27:qh(c);case 26:case 5:hn(u,c,n),n&&a===null&&f&4&&jh(c),Fl(c,c.return);break;case 12:hn(u,c,n);break;case 31:hn(u,c,n),n&&f&4&&Vh(u,c);break;case 13:hn(u,c,n),n&&f&4&&Kh(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 Hc(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;)Ph(t,e,n,a),e=e.sibling}function Ph(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&&Hc(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&&Hc(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&&Hc(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;)Fh(t,e,n),t=t.sibling}function Fh(t,e,n){switch(t.tag){case 26:$a(t,e,n),t.flags&Wl&&t.memoizedState!==null&&Pp(n,qe,t.memoizedState,t.memoizedProps);break;case 5:$a(t,e,n);break;case 3:case 4:var a=qe;qe=Uu(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 kh(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,Ih(a,t)}kh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wh(t),t=t.sibling}function Wh(t){switch(t.tag){case 0:case 11:case 15:Il(t),t.flags&2048&&zn(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,Su(t)):Il(t);break;default:Il(t)}}function Su(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,Ih(a,t)}kh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:zn(8,e,e.return),Su(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Su(e));break;default:Su(e)}t=t.sibling}}function Ih(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:zn(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(Gh(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var op={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}},rp=typeof WeakMap=="function"?WeakMap:Map,_t=0,zt=null,ht=null,mt=0,Et=0,_e=null,Dn=!1,tl=!1,Qc=!1,dn=0,Ht=0,Un=0,da=0,Yc=0,Re=0,el=0,$l=null,he=null,Gc=!1,bu=0,$h=0,_u=1/0,Ru=null,Ln=null,Zt=0,wn=null,nl=null,mn=0,Xc=0,Vc=null,td=null,ti=0,Kc=null;function Ee(){return(_t&2)!==0&&mt!==0?mt&-mt:w.T!==null?Wc():yr()}function ed(){if(Re===0)if((mt&536870912)===0||vt){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===zt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(al(t,0),Nn(t,mt,Re,!1)),_l(t,n),((_t&2)===0||t!==zt)&&(t===zt&&((_t&2)===0&&(da|=n),Ht===4&&Nn(t,mt,Re,!1)),Ze(t))}function nd(t,e,n){if((_t&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||bl(t,e),u=a?dp(t,e):Jc(t,e,!0),c=a;do{if(u===0){tl&&!a&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!fp(n)){u=Jc(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=Jc(v,f,!1),f!==2){if(Qc&&!R){v.errorRecoveryDisabledLanes|=c,da|=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),Nn(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:Nn(a,e,Re,!Dn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=bu+300-ne(),10<u)){if(Nn(a,e,Re,!Dn),Ui(a,0,!0)!==0)break t;mn=e,a.timeoutHandle=Ld(ad.bind(null,a,n,he,Ru,Gc,e,Re,da,el,Dn,c,"Throttled",-0,0),u);break t}ad(a,n,he,Ru,Gc,e,Re,da,el,Dn,c,null,-0,0)}}break}while(!0);Ze(t)}function ad(t,e,n,a,u,c,f,v,R,x,N,H,z,U){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},Fh(e,c,H);var k=(c&62914560)===c?bu-ne():(c&4194048)===c?$h-ne():0;if(k=Fp(H,k),k!==null){mn=c,t.cancelPendingCommit=k(fd.bind(null,t,e,c,n,a,u,f,v,R,N,H,null,z,U)),Nn(t,c,f,!x);return}}fd(t,e,c,n,a,u,f,v,R)}function fp(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 Nn(t,e,n,a){e&=~Yc,e&=~da,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&&hr(t,n,e)}function Eu(){return(_t&6)===0?(ei(0),!1):!0}function Zc(){if(ht!==null){if(Et===0)var t=ht.return;else t=ht,nn=la=null,cc(t),Ja=null,jl=0,t=ht;for(;t!==null;)wh(t.alternate,t),t=t.return;ht=null}}function al(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Dp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,Zc(),zt=t,ht=n=tn(t.current,null),mt=e,Et=0,_e=null,Dn=!1,tl=bl(t,e),Qc=!1,el=Re=Yc=da=Un=Ht=0,he=$l=null,Gc=!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,Vi(),n}function ld(t,e){ct=null,w.H=Kl,e===Za||e===Ii?(e=bf(),Et=3):e===ks?(e=bf(),Et=4):Et=e===Tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ht===null&&(Ht=1,hu(t,xe(e,t.current)))}function id(){var t=Se.current;return t===null?!0:(mt&4194048)===mt?Le===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Le:!1}function ud(){var t=w.H;return w.H=Kl,t===null?Kl:t}function sd(){var t=w.A;return w.A=op,t}function Tu(){Ht=4,Dn||(mt&4194048)!==mt&&Se.current!==null||(tl=!0),(Un&134217727)===0&&(da&134217727)===0||zt===null||Nn(zt,mt,Re,!1)}function Jc(t,e,n){var a=_t;_t|=2;var u=ud(),c=sd();(zt!==t||mt!==e)&&(Ru=null,al(t,e)),e=!1;var f=Ht;t:do try{if(Et!==0&&ht!==null){var v=ht,R=_e;switch(Et){case 8:Zc(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Et;if(Et=0,_e=null,ll(t,v,R,x),n&&tl){f=0;break t}break;default:x=Et,Et=0,_e=null,ll(t,v,R,x)}}hp(),f=Ht;break}catch(N){ld(t,N)}while(!0);return e&&t.shellSuspendCounter++,nn=la=null,_t=a,w.H=u,w.A=c,ht===null&&(zt=null,mt=0,Vi()),f}function hp(){for(;ht!==null;)cd(ht)}function dp(t,e){var n=_t;_t|=2;var a=ud(),u=sd();zt!==t||mt!==e?(Ru=null,_u=ne()+500,al(t,e)):tl=bl(t,e);t:do try{if(Et!==0&&ht!==null){e=ht;var c=_e;e:switch(Et){case 1:Et=0,_e=null,ll(t,e,c,1);break;case 2:case 9:if(gf(c)){Et=0,_e=null,od(e);break}e=function(){Et!==2&&Et!==9||zt!==t||(Et=7),Ze(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:gf(c)?(Et=0,_e=null,od(e)):(Et=0,_e=null,ll(t,e,c,7));break;case 5:var f=null;switch(ht.tag){case 26:f=ht.memoizedState;case 5:case 27:var v=ht;if(f?Pd(f):v.stateNode.complete){Et=0,_e=null;var R=v.sibling;if(R!==null)ht=R;else{var x=v.return;x!==null?(ht=x,Mu(x)):ht=null}break e}}Et=0,_e=null,ll(t,e,c,5);break;case 6:Et=0,_e=null,ll(t,e,c,6);break;case 8:Zc(),Ht=6;break t;default:throw Error(o(462))}}mp();break}catch(N){ld(t,N)}while(!0);return nn=la=null,w.H=a,w.A=u,_t=n,ht!==null?0:(zt=null,mt=0,Vi(),Ht)}function mp(){for(;ht!==null&&!Ai();)cd(ht)}function cd(t){var e=Uh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Mu(t):ht=e}function od(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Oh(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Oh(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:cc(e);default:wh(n,e),e=ht=sf(e,dn),e=Uh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Mu(t):ht=e}function ll(t,e,n,a){nn=la=null,cc(e),Ja=null,jl=0;var u=e.return;try{if(np(t,u,e,n,mt)){Ht=1,hu(t,xe(n,t.current)),ht=null;return}}catch(c){if(u!==null)throw ht=u,c;Ht=1,hu(t,xe(n,t.current)),ht=null;return}e.flags&32768?(vt||a===1?t=!0:tl||(mt&536870912)!==0?t=!1:(Dn=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),rd(e,t)):Mu(e)}function Mu(t){var e=t;do{if((e.flags&32768)!==0){rd(e,Dn);return}t=e.return;var n=ip(e.alternate,e,dn);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);Ht===0&&(Ht=5)}function rd(t,e){do{var n=up(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);Ht=6,ht=null}function fd(t,e,n,a,u,c,f,v,R){t.cancelPendingCommit=null;do Ou();while(Zt!==0);if((_t&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Ns,Jy(t,n,c,f,v,R),t===zt&&(ht=zt=null,mt=0),nl=e,wn=t,mn=n,Xc=c,Vc=u,td=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,gp(Ma,function(){return vd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,u=X.p,X.p=2,f=_t,_t|=4;try{sp(t,e,n)}finally{_t=f,X.p=u,w.T=a}}Zt=1,hd(),dd(),md()}}function hd(){if(Zt===1){Zt=0;var t=wn,e=nl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var a=X.p;X.p=2;var u=_t;_t|=4;try{Zh(e,t);var c=io,f=Wr(t.containerInfo),v=c.focusedElem,R=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&kr(v.ownerDocument.documentElement,v)){if(R!==null&&zs(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 H=v.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var U=z.getSelection(),k=v.textContent.length,it=Math.min(R.start,k),At=R.end===void 0?it:Math.min(R.end,k);!U.extend&&it>At&&(f=At,At=it,it=f);var C=Fr(v,it),T=Fr(v,At);if(C&&T&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var A=H.createRange();A.setStart(C.node,C.offset),U.removeAllRanges(),it>At?(U.addRange(A),U.extend(T.node,T.offset)):(A.setEnd(T.node,T.offset),U.addRange(A))}}}}for(H=[],U=v;U=U.parentNode;)U.nodeType===1&&H.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<H.length;v++){var B=H[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Hu=!!lo,io=lo=null}finally{_t=u,X.p=a,w.T=n}}t.current=e,Zt=2}}function dd(){if(Zt===2){Zt=0;var t=wn,e=nl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var a=X.p;X.p=2;var u=_t;_t|=4;try{Yh(t,e.alternate,e)}finally{_t=u,X.p=a,w.T=n}}Zt=3}}function md(){if(Zt===4||Zt===3){Zt=0,cs();var t=wn,e=nl,n=mn,a=td;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,nl=wn=null,yd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ln=null),fs(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=X.p,X.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,X.p=u}}(mn&3)!==0&&Ou(),Ze(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Kc?ti++:(ti=0,Kc=t):ti=0,ei(0)}}function yd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Nl(e)))}function Ou(){return hd(),dd(),md(),vd()}function vd(){if(Zt!==5)return!1;var t=wn,e=Xc;Xc=0;var n=fs(mn),a=w.T,u=X.p;try{X.p=32>n?32:n,w.T=null,n=Vc,Vc=null;var c=wn,f=mn;if(Zt=0,nl=wn=null,mn=0,(_t&6)!==0)throw Error(o(331));var v=_t;if(_t|=4,Wh(c.current),Ph(c,c.current,f,n),_t=v,ei(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Sl,c)}catch{}return!0}finally{X.p=u,w.T=a,yd(t,e)}}function pd(t,e,n){e=xe(n,e),e=Ec(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(_l(t,2),Ze(t))}function Tt(t,e,n){if(t.tag===3)pd(t,t,n);else for(;e!==null;){if(e.tag===3){pd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ln===null||!Ln.has(a))){t=xe(n,t),n=gh(2),a=Cn(e,n,2),a!==null&&(Sh(n,a,e,t),_l(a,2),Ze(a));break}}e=e.return}}function Pc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new rp;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)||(Qc=!0,u.add(n),t=yp.bind(null,t,e,n),e.then(t,t))}function yp(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(mt&n)===n&&(Ht===4||Ht===3&&(mt&62914560)===mt&&300>ne()-bu?(_t&2)===0&&al(t,0):Yc|=n,el===mt&&(el=0)),Ze(t)}function gd(t,e){e===0&&(e=fr()),t=ea(t,e),t!==null&&(_l(t,e),Ze(t))}function vp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),gd(t,n)}function pp(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),gd(t,n)}function gp(t,e){return je(t,e)}var Cu=null,il=null,Fc=!1,Au=!1,kc=!1,Bn=0;function Ze(t){t!==il&&t.next===null&&(il===null?Cu=il=t:il=il.next=t),Au=!0,Fc||(Fc=!0,bp())}function ei(t,e){if(!kc&&Au){kc=!0;do for(var n=!1,a=Cu;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,Rd(a,c))}else c=mt,c=Ui(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||bl(a,c)||(n=!0,Rd(a,c));a=a.next}while(n);kc=!1}}function Sp(){Sd()}function Sd(){Au=Fc=!1;var t=0;Bn!==0&&zp()&&(t=Bn);for(var e=ne(),n=null,a=Cu;a!==null;){var u=a.next,c=bd(a,e);c===0?(a.next=null,n===null?Cu=u:n.next=u,u===null&&(il=n)):(n=a,(t!==0||(c&3)!==0)&&(Au=!0)),a=u}Zt!==0&&Zt!==5||ei(t),Bn!==0&&(Bn=0)}function bd(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]=Zy(v,e)):R<=e&&(t.expiredLanes|=v),c&=~v}if(e=zt,n=mt,n=Ui(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Et===2||Et===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),fs(n)){case 2:case 8:n=Ge;break;case 32:n=Ma;break;case 268435456:n=rr;break;default:n=Ma}return a=_d.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 _d(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ou()&&t.callbackNode!==n)return null;var a=mt;return a=Ui(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(nd(t,a,e),bd(t,ne()),t.callbackNode!=null&&t.callbackNode===n?_d.bind(null,t):null)}function Rd(t,e){if(Ou())return null;nd(t,e,!0)}function bp(){Up(function(){(_t&6)!==0?je(kt,Sp):Sd()})}function Wc(){if(Bn===0){var t=Va;t===0&&(t=xi,xi<<=1,(xi&261888)===0&&(xi=256)),Bn=t}return Bn}function Ed(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bi(""+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 _p(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Ed((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Ed(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(Bn!==0){var R=f?Td(u,f):new FormData(u);pc(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),pc(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var Ic=0;Ic<ws.length;Ic++){var $c=ws[Ic],Rp=$c.toLowerCase(),Ep=$c[0].toUpperCase()+$c.slice(1);He(Rp,"on"+Ep)}He(tf,"onAnimationEnd"),He(ef,"onAnimationIteration"),He(nf,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(qv,"onTransitionRun"),He(Qv,"onTransitionStart"),He(Yv,"onTransitionCancel"),He(af,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("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(" "),Tp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ni));function Md(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){Xi(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){Xi(N)}u.currentTarget=null,c=R}}}}function dt(t,e){var n=e[hs];n===void 0&&(n=e[hs]=new Set);var a=t+"__bubble";n.has(a)||(Od(e,t,2,!1),n.add(a))}function to(t,e,n){var a=0;e&&(a|=4),Od(n,t,a,e)}var xu="_reactListening"+Math.random().toString(36).slice(2);function eo(t){if(!t[xu]){t[xu]=!0,gr.forEach(function(n){n!=="selectionchange"&&(Tp.has(n)||to(n,!1,t),to(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xu]||(e[xu]=!0,to("selectionchange",!1,e))}}function Od(t,e,n,a){switch(em(e)){case 2:var u=Ip;break;case 8:u=$p;break;default:u=po}n=u.bind(null,e,n,t),u=void 0,!_s||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 no(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}zr(function(){var x=c,N=Ss(n),H=[];t:{var z=lf.get(t);if(z!==void 0){var U=Qi,k=t;switch(t){case"keypress":if(Hi(n)===0)break t;case"keydown":case"keyup":U=pv;break;case"focusin":k="focus",U=Ms;break;case"focusout":k="blur",U=Ms;break;case"beforeblur":case"afterblur":U=Ms;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=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=bv;break;case tf:case ef:case nf:U=cv;break;case af:U=Rv;break;case"scroll":case"scrollend":U=av;break;case"wheel":U=Tv;break;case"copy":case"cut":case"paste":U=rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Nr;break;case"toggle":case"beforetoggle":U=Ov}var it=(e&4)!==0,At=!it&&(t==="scroll"||t==="scrollend"),C=it?z!==null?z+"Capture":null:z;it=[];for(var T=x,A;T!==null;){var B=T;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||C===null||(B=Tl(T,C),B!=null&&it.push(ai(T,B,A))),At)break;T=T.return}0<it.length&&(z=new U(z,k,null,n,N),H.push({event:z,listeners:it}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",z&&n!==gs&&(k=n.relatedTarget||n.fromElement)&&(Ca(k)||k[Oa]))break t;if((U||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,U?(k=n.relatedTarget||n.toElement,U=x,k=k?Ca(k):null,k!==null&&(At=h(k),it=k.tag,k!==At||it!==5&&it!==27&&it!==6)&&(k=null)):(U=null,k=x),U!==k)){if(it=Lr,B="onMouseLeave",C="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(it=Nr,B="onPointerLeave",C="onPointerEnter",T="pointer"),At=U==null?z:El(U),A=k==null?z:El(k),z=new it(B,T+"leave",U,n,N),z.target=At,z.relatedTarget=A,B=null,Ca(N)===x&&(it=new it(C,T+"enter",k,n,N),it.target=A,it.relatedTarget=At,B=it),At=B,U&&k)e:{for(it=Mp,C=U,T=k,A=0,B=C;B;B=it(B))A++;B=0;for(var nt=T;nt;nt=it(nt))B++;for(;0<A-B;)C=it(C),A--;for(;0<B-A;)T=it(T),B--;for(;A--;){if(C===T||T!==null&&C===T.alternate){it=C;break e}C=it(C),T=it(T)}it=null}else it=null;U!==null&&Cd(H,z,U,it,!1),k!==null&&At!==null&&Cd(H,At,k,it,!0)}}t:{if(z=x?El(x):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var gt=Xr;else if(Yr(z))if(Vr)gt=Bv;else{gt=wv;var I=Lv}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&ps(x.elementType)&&(gt=Xr):gt=Nv;if(gt&&(gt=gt(t,x))){Gr(H,gt,n,N);break t}I&&I(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&vs(z,"number",z.value)}switch(I=x?El(x):window,t){case"focusin":(Yr(I)||I.contentEditable==="true")&&(Ba=I,Ds=x,Ul=null);break;case"focusout":Ul=Ds=Ba=null;break;case"mousedown":Us=!0;break;case"contextmenu":case"mouseup":case"dragend":Us=!1,Ir(H,n,N);break;case"selectionchange":if(Hv)break;case"keydown":case"keyup":Ir(H,n,N)}var ot;if(Cs)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else Na?qr(t,n)&&(yt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(yt="onCompositionStart");yt&&(Br&&n.locale!=="ko"&&(Na||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&Na&&(ot=Dr()):(bn=N,Rs="value"in bn?bn.value:bn.textContent,Na=!0)),I=zu(x,yt),0<I.length&&(yt=new wr(yt,t,null,n,N),H.push({event:yt,listeners:I}),ot?yt.data=ot:(ot=Qr(n),ot!==null&&(yt.data=ot)))),(ot=Av?xv(t,n):zv(t,n))&&(yt=zu(x,"onBeforeInput"),0<yt.length&&(I=new wr("onBeforeInput","beforeinput",null,n,N),H.push({event:I,listeners:yt}),I.data=ot)),_p(H,t,x,n,N)}Md(H,e)})}function ai(t,e,n){return{instance:t,listener:e,currentTarget:n}}function zu(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=Tl(t,n),u!=null&&a.unshift(ai(t,u,c)),u=Tl(t,e),u!=null&&a.push(ai(t,u,c))),t.tag===3)return a;t=t.return}return[]}function Mp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Cd(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=Tl(n,c),x!=null&&f.unshift(ai(n,x,R))):u||(x=Tl(n,c),x!=null&&f.push(ai(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Op=/\r\n?/g,Cp=/\u0000|\uFFFD/g;function Ad(t){return(typeof t=="string"?t:""+t).replace(Op,`
|
|
9
|
-
`).replace(Cp,"")}function xd(t,e){return e=Ad(e),Ad(t)===e}function Ct(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":wi(t,"class",a);break;case"tabIndex":wi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":wi(t,n,a);break;case"style":Ar(t,a,c);break;case"data":if(e!=="object"){wi(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=Bi(""+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"&&Ct(t,e,"name",u.name,u,null),Ct(t,e,"formEncType",u.formEncType,u,null),Ct(t,e,"formMethod",u.formMethod,u,null),Ct(t,e,"formTarget",u.formTarget,u,null)):(Ct(t,e,"encType",u.encType,u,null),Ct(t,e,"method",u.method,u,null),Ct(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Bi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"onScroll":a!=null&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("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=Bi(""+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":dt("beforetoggle",t),dt("toggle",t),Li(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":Li(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=ev.get(n)||n,Li(t,n,a))}}function ao(t,e,n,a,u,c){switch(n){case"style":Ar(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&&dt("scroll",t);break;case"onScrollEnd":a!=null&&dt("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(!Sr.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,""):Li(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":dt("error",t),dt("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:Ct(t,e,c,f,n,null)}}u&&Ct(t,e,"srcSet",n.srcSet,n,null),a&&Ct(t,e,"src",n.src,n,null);return;case"input":dt("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:Ct(t,e,a,N,n,null)}}Tr(t,c,v,R,x,f,u,!1);return;case"select":dt("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:Ct(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":dt("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:Ct(t,e,f,v,n,null)}Or(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":Ct(t,e,R,a,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(a=0;a<ni.length;a++)dt(ni[a],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("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:Ct(t,e,x,a,n,null)}return;default:if(ps(e)){for(N in n)n.hasOwnProperty(N)&&(a=n[N],a!==void 0&&ao(t,e,N,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ct(t,e,v,a,n,null))}function Ap(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 H=n[U];if(n.hasOwnProperty(U)&&H!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":R=H;default:a.hasOwnProperty(U)||Ct(t,e,U,null,a,H)}}for(var z in a){var U=a[z];if(H=n[z],a.hasOwnProperty(z)&&(U!=null||H!=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!==H&&Ct(t,e,z,U,a,H)}}ys(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)||Ct(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&&Ct(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:Ct(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&&Ct(t,e,f,u,a,c)}Mr(t,z,U);return;case"option":for(var k in n)z=n[k],n.hasOwnProperty(k)&&z!=null&&!a.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:Ct(t,e,k,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":Ct(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 it in n)z=n[it],n.hasOwnProperty(it)&&z!=null&&!a.hasOwnProperty(it)&&Ct(t,e,it,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:Ct(t,e,x,z,a,U)}return;default:if(ps(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&ao(t,e,At,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||ao(t,e,N,z,a,U);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Ct(t,e,C,null,a,z);for(H in a)z=a[H],U=n[H],!a.hasOwnProperty(H)||z===U||z==null&&U==null||Ct(t,e,H,z,a,U)}function zd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xp(){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&&zd(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,H=R.initiatorType;N&&zd(H)&&(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 lo=null,io=null;function Du(t){return t.nodeType===9?t:t.ownerDocument}function Dd(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 Ud(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 uo(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 so=null;function zp(){var t=window.event;return t&&t.type==="popstate"?t===so?!1:(so=t,!0):(so=null,!1)}var Ld=typeof setTimeout=="function"?setTimeout:void 0,Dp=typeof clearTimeout=="function"?clearTimeout:void 0,wd=typeof Promise=="function"?Promise:void 0,Up=typeof queueMicrotask=="function"?queueMicrotask:typeof wd<"u"?function(t){return wd.resolve(null).then(t).catch(Lp)}:Ld;function Lp(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Nd(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 Bd(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 co(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":co(n),ds(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function wp(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 Np(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 jd(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 oo(t){return t.data==="$?"||t.data==="$~"}function ro(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Bp(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 fo=null;function Hd(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 qd(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=Du(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]);ds(t)}var Ne=new Map,Yd=new Set;function Uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=X.d;X.d={f:jp,r:Hp,D:qp,C:Qp,L:Yp,m:Gp,X:Vp,S:Xp,M:Kp};function jp(){var t=yn.f(),e=Eu();return t||e}function Hp(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?lh(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Gd(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+'"]'),Yd.has(u)||(Yd.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 qp(t){yn.D(t),Gd("dns-prefetch",t,null)}function Qp(t,e){yn.C(t,e),Gd("preconnect",t,e)}function Yp(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 Gp(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 Xp(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))&&ho(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,Lu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function Vp(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))&&mo(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 Kp(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))&&mo(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 Xd(t,e,n,a){var u=(u=ft.current)?Uu(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||Zp(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 Vd(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Zp(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 Kd(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),Lu(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=Vd(n),(u=Ne.get(u))&&ho(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,Lu(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),mo(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,Lu(a,n.precedence,t));return e.instance}function Lu(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 ho(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function mo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var wu=null;function Zd(t,e,n){if(wu===null){var a=new Map,u=wu=new Map;u.set(n,a)}else u=wu,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 Jd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Jp(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 Pd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Pp(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=Nu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,a=Vd(a),(u=Ne.get(u))&&ho(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=Nu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var yo=0;function Fp(t,e){return t.stylesheets&&t.count===0&&ju(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&yo===0&&(yo=62500*xp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>yo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Bu=null;function ju(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bu=new Map,e.forEach(kp,t),Bu=null,Nu.call(t))}function kp(t,e){if(!(e.state.loading&4)){var n=Bu.get(t);if(n)var a=n.get(null);else{n=new Map,Bu.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=Nu.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:G,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function Wp(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=os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.hiddenUpdates=os(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 Fd(t,e,n,a,u,c,f,v,R,x,N,H){return t=new Wp(t,e,n,f,R,x,N,H,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=Js(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},Ws(c),t}function kd(t){return t?(t=qa,t):qa}function Wd(t,e,n,a,u,c){u=kd(u),a.context===null?a.context=u:a.pendingContext=u,a=On(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Cn(t,a,e),n!==null&&(de(n,t,e),ql(n,t,e))}function Id(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vo(t,e){Id(t,e),(t=t.alternate)&&Id(t,e)}function $d(t){if(t.tag===13||t.tag===31){var e=ea(t,67108864);e!==null&&de(e,t,67108864),vo(t,67108864)}}function tm(t){if(t.tag===13||t.tag===31){var e=Ee();e=rs(e);var n=ea(t,e);n!==null&&de(n,t,e),vo(t,e)}}var Hu=!0;function Ip(t,e,n,a){var u=w.T;w.T=null;var c=X.p;try{X.p=2,po(t,e,n,a)}finally{X.p=c,w.T=u}}function $p(t,e,n,a){var u=w.T;w.T=null;var c=X.p;try{X.p=8,po(t,e,n,a)}finally{X.p=c,w.T=u}}function po(t,e,n,a){if(Hu){var u=go(a);if(u===null)no(t,e,a,qu,n),nm(t,a);else if(eg(u,t,e,n,a))a.stopPropagation();else if(nm(t,a),e&4&&-1<tg.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=kn(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),(_t&6)===0&&(_u=ne()+500,ei(0))}}break;case 31:case 13:v=ea(c,2),v!==null&&de(v,c,2),Eu(),vo(c,2)}if(c=go(a),c===null&&no(t,e,a,qu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else no(t,e,a,null,n)}}function go(t){return t=Ss(t),So(t)}var qu=null;function So(t){if(qu=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=m(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 qu=t,null}function em(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(Dt()){case kt:return 2;case Ge:return 8;case Ma:case Qy:return 32;case rr:return 268435456;default:return 32}default:return 32}}var bo=!1,Hn=null,qn=null,Qn=null,ci=new Map,oi=new Map,Yn=[],tg="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 nm(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Qn=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&&$d(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function eg(t,e,n,a,u){switch(e){case"focusin":return Hn=ri(Hn,t,e,n,a,u),!0;case"dragenter":return qn=ri(qn,t,e,n,a,u),!0;case"mouseover":return Qn=ri(Qn,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 am(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,vr(t.priority,function(){tm(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,vr(t.priority,function(){tm(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=go(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);gs=a,n.target.dispatchEvent(a),gs=null}else return e=Aa(n),e!==null&&$d(e),t.blockedOn=n,!1;e.shift()}return!0}function lm(t,e,n){Qu(t)&&n.delete(e)}function ng(){bo=!1,Hn!==null&&Qu(Hn)&&(Hn=null),qn!==null&&Qu(qn)&&(qn=null),Qn!==null&&Qu(Qn)&&(Qn=null),ci.forEach(lm),oi.forEach(lm)}function Yu(t,e){t.blockedOn===e&&(t.blockedOn=null,bo||(bo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ng)))}var Gu=null;function im(t){Gu!==t&&(Gu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Gu===t&&(Gu=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(So(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,pc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ol(t){function e(R){return Yu(R,t)}Hn!==null&&Yu(Hn,t),qn!==null&&Yu(qn,t),Qn!==null&&Yu(Qn,t),ci.forEach(e),oi.forEach(e);for(var n=0;n<Yn.length;n++){var a=Yn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)am(n),n.blockedOn===null&&Yn.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||im(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)v=f.formAction;else if(So(u)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),im(n)}}}function um(){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 _o(t){this._internalRoot=t}Xu.prototype.render=_o.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();Wd(n,a,t,e,null,null)},Xu.prototype.unmount=_o.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Wd(t.current,2,null,t,null,null),Eu(),e[Oa]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var e=yr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Yn.length&&e!==0&&e<Yn[n].priority;n++);Yn.splice(n,0,t),n===0&&am(t)}};var sm=i.version;if(sm!=="19.2.0")throw Error(o(527,sm,"19.2.0"));X.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=d(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var ag={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{Sl=Vu.inject(ag),ye=Vu}catch{}}return hi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=mh,c=yh,f=vh;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=Fd(t,1,!1,null,null,n,a,null,u,c,f,um),t[Oa]=e.current,eo(t),new _o(e)},hi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=mh,f=yh,v=vh,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=Fd(t,1,!0,e,n??null,a,u,R,c,f,v,um),e.context=kd(null),n=e.current,a=Ee(),a=rs(a),u=On(a),u.callback=null,Cn(n,u,a),n=a,e.current.lanes=n,_l(e,n),Ze(e),t[Oa]=e.current,eo(t),new Xu(e)},hi.version="19.2.0",hi}var pm;function dg(){if(pm)return To.exports;pm=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(),To.exports=hg(),To.exports}var ZS=dg(),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(){}},mg=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 mg,yg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},vg=class{#t=yg;#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)}},ya=new vg;function pg(l){setTimeout(l,0)}var gg=typeof window>"u"||"Deno"in globalThis;function ue(){}function Sg(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 Zn(l,i){return typeof l=="function"?l(i):l}function Te(l,i){return typeof l=="function"?l(i):l}function gm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:m,stale:p}=l;if(m){if(o){if(i.queryHash!==tr(m,i.options))return!1}else if(!bi(i.queryKey,m))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 Sm(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(!bi(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 bi(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>bi(l[s],i[s])):!1}var bg=Object.prototype.hasOwnProperty;function ny(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=bm(l)&&bm(i);if(!o&&!(Go(l)&&Go(i)))return i;const h=(o?l:Object.keys(l)).length,m=o?i:Object.keys(i),p=m.length,y=o?new Array(p):{};let d=0;for(let S=0;S<p;S++){const g=o?S:m[S],b=l[g],_=i[g];if(b===_){y[g]=b,(o?S<h:bg.call(l,g))&&d++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){y[g]=_;continue}const E=ny(b,_,s+1);y[g]=E,E===b&&d++}return h===p&&d===h?l:y}function Iu(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 bm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Go(l){if(!_m(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!_m(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function _m(l){return Object.prototype.toString.call(l)==="[object Object]"}function _g(l){return new Promise(i=>{ya.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 Rg(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Eg(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 Tg(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 _i=(()=>{let l=()=>gg;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 Mg=pg;function Og(){let l=[],i=0,s=p=>{p()},o=p=>{p()},r=Mg;const h=p=>{i?l.push(p):r(()=>{s(p)})},m=()=>{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||m()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{r=p}}}var Jt=Og(),Cg=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}},$u=new Cg;function Ag(l){return Math.min(1e3*2**l,3e4)}function ly(l){return(l??"online")==="online"?$u.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",m=O=>{if(!h()){const L=new Ko(O);b(L),l.onCancel?.(L)}},p=()=>{i=!0},y=()=>{i=!1},d=()=>$o.isFocused()&&(l.networkMode==="always"||$u.isOnline())&&l.canRun(),S=()=>ly(l.networkMode)&&l.canRun(),g=O=>{h()||(o?.(),r.resolve(O))},b=O=>{h()||(o?.(),r.reject(O))},_=()=>new Promise(O=>{o=L=>{(h()||d())&&O(L)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),E=()=>{if(h())return;let O;const L=s===0?l.initialPromise:void 0;try{O=L??l.fn()}catch(D){O=Promise.reject(D)}Promise.resolve(O).then(g).catch(D=>{if(h())return;const Q=l.retry??(_i.isServer()?0:3),G=l.retryDelay??Ag,Y=typeof G=="function"?G(s,D):G,$=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,D);if(i||!$){b(D);return}s++,l.onFail?.(s,D),_g(Y).then(()=>d()?void 0:_()).then(()=>{i?b(D):E()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(o?.(),r),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?E():_().then(E),r)}}var uy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yo(this.gcTime)&&(this.#t=ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(_i.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(ya.clearTimeout(this.#t),this.#t=void 0)}};function xg(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const d=async()=>{let S=!1;const g=E=>{Tg(E,()=>i.signal,()=>S=!0)},b=ay(i.options,i.fetchOptions),_=async(E,O,L)=>{if(S)return Promise.reject(i.signal.reason);if(O==null&&E.pages.length)return Promise.resolve(E);const Q=(()=>{const J={client:i.client,queryKey:i.queryKey,pageParam:O,direction:L?"backward":"forward",meta:i.options.meta};return g(J),J})(),G=await b(Q),{maxPages:Y}=i.options,$=L?Eg:Rg;return{pages:$(E.pages,G,Y),pageParams:$(E.pageParams,O,Y)}};if(r&&h.length){const E=r==="backward",O=E?sy:Zo,L={pages:h,pageParams:m},D=O(o,L);p=await _(L,D,E)}else{const E=l??h.length;do{const O=y===0?m[0]??o.initialPageParam:Zo(o,p);if(y>0&&O==null)break;p=await _(p,O),y++}while(y<E)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=d}}}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 zg(l,i){return i?Zo(l,i)!=null:!1}function Dg(l,i){return!i||!l.getPreviousPageParam?!1:sy(l,i)!=null}var Ug=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=Em(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=Em(this.options);i.data!==void 0&&(this.setState(Rm(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=>Te(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=>Zn(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(d=>d.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)},m=(()=>{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"?xg(this.options.pages):this.options.behavior)?.onFetch(m,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#c({type:"fetch",meta:m.fetchOptions?.meta}),this.#l=iy({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:y=>{y instanceof Ko&&y.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(y,d)=>{this.#c({type:"failed",failureCount:y,error:d})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.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,...Rm(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 Rm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Em(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 Te(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&&!Iu(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Mm(this.#e,s,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||Zn(this.options.staleTime,this.#e)!==Zn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(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 wg(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=Zn(this.options.staleTime,this.#e);if(_i.isServer()||this.#a.isStale||!Yo(l))return;const s=ey(this.#a.dataUpdatedAt,l)+1;this.#f=ya.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,!(_i.isServer()||Te(this.options.enabled,this.#e)===!1||!Yo(this.#o)||this.#o===0)&&(this.#h=ya.setInterval(()=>{(this.options.refetchIntervalInBackground||$o.isFocused())&&this.#d()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#f!==void 0&&(ya.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h!==void 0&&(ya.clearInterval(this.#h),this.#h=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#a,h=this.#i,m=this.#l,y=l!==s?l.state:this.#n,{state:d}=l;let S={...d},g=!1,b;if(i._optimisticResults){const V=this.hasListeners(),K=!V&&Tm(l,i),et=V&&Mm(l,s,i,o);(K||et)&&(S={...S,...cy(d.data,l.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:_,errorUpdatedAt:E,status:O}=S;b=S.data;let L=!1;if(i.placeholderData!==void 0&&b===void 0&&O==="pending"){let V;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(V=r.data,L=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,V!==void 0&&(O="success",b=Xo(r?.data,V,i),g=!0)}if(i.select&&b!==void 0&&!L)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(V){this.#u=V}this.#u&&(_=this.#u,b=this.#c,E=Date.now(),O="error");const D=S.fetchStatus==="fetching",Q=O==="pending",G=O==="error",Y=Q&&D,$=b!==void 0,q={status:O,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:O==="success",isError:G,isInitialLoading:Y,isLoading:Y,data:b,dataUpdatedAt:S.dataUpdatedAt,error:_,errorUpdatedAt:E,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:D,isRefetching:D&&!Q,isLoadingError:G&&!$,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:G&&$,isStale:ar(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Te(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const V=q.data!==void 0,K=q.status==="error"&&!V,et=rt=>{K?rt.reject(q.error):V&&rt.resolve(q.data)},F=()=>{const rt=this.#s=q.promise=Vo();et(rt)},ut=this.#s;switch(ut.status){case"pending":l.queryHash===s.queryHash&&et(ut);break;case"fulfilled":(K||q.data!==ut.value)&&F();break;case"rejected":(!K||q.error!==ut.reason)&&F();break}}return q}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),Iu(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(m=>{const p=m;return this.#a[p]!==l[p]&&h.has(p)})};this.#E({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()}#E(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Lg(l,i){return Te(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Te(i.retryOnMount,l)===!1)}function Tm(l,i){return Lg(l,i)||l.state.data!==void 0&&Jo(l,i,i.refetchOnMount)}function Jo(l,i,s){if(Te(i.enabled,l)!==!1&&Zn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&ar(l,i)}return!1}function Mm(l,i,s,o){return(l!==i||Te(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&ar(l,s)}function ar(l,i){return Te(i.enabled,l)!==!1&&l.isStaleByTime(Zn(i.staleTime,l))}function wg(l,i){return!Iu(l.getCurrentResult(),i)}var Ng=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:m,isRefetchError:p}=o,y=s.fetchMeta?.fetchMore?.direction,d=m&&y==="forward",S=r&&y==="forward",g=m&&y==="backward",b=r&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:zg(i,s.data),hasPreviousPage:Dg(i,s.data),isFetchNextPageError:d,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:p&&!d&&!g,isRefetching:h&&!S&&!b}}},Bg=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,m)=>{this.#i({type:"failed",failureCount:h,error:m})},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 m=await this.options.onMutate?.(l,s);m!==this.state.context&&this.#i({type:"pending",context:m,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(m){Promise.reject(m)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(m){Promise.reject(m)}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 jg=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 Bg({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=Ku(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=Ku(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=Ku(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=Ku(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=>Sm(i,s))}findAll(l={}){return this.getAll().filter(i=>Sm(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 Ku(l){return l.options.scope?.id}var Hg=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),Iu(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)})})}},qg=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 Ug({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=>gm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>gm(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()})})}},JS=class{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l={}){this.#t=l.queryCache||new qg,this.#e=l.mutationCache||new jg,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=$u.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(Zn(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,m=Sg(i,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...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(Zn(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 $u.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=>{bi(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=>{bi(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=W.createContext(void 0),hy=l=>{const i=W.useContext(fy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},PS=({client:l,children:i})=>(W.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),lt.jsx(fy.Provider,{value:l,children:i})),dy=W.createContext(!1),Qg=()=>W.useContext(dy);dy.Provider;function Yg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Gg=W.createContext(Yg()),Xg=()=>W.useContext(Gg),Vg=(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))},Kg=l=>{W.useEffect(()=>{l.clearReset()},[l])},Zg=({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])),Jg=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))}},Pg=(l,i)=>l.isLoading&&l.isFetching&&!i,Fg=(l,i)=>l?.suspense&&i.isPending,Om=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function my(l,i,s){const o=Qg(),r=Xg(),h=hy(),m=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const p=h.getQueryCache().get(m.queryHash);m._optimisticResults=o?"isRestoring":"optimistic",Jg(m),Vg(m,r,p),Kg(r);const y=!h.getQueryCache().get(m.queryHash),[d]=W.useState(()=>new i(h,m)),S=d.getOptimisticResult(m),g=!o&&l.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(b=>{const _=g?d.subscribe(Jt.batchCalls(b)):ue;return d.updateResult(),_},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),W.useEffect(()=>{d.setOptions(m)},[m,d]),Fg(m,S))throw Om(m,d,r);if(Zg({result:S,errorResetBoundary:r,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,S),m.experimental_prefetchInRender&&!_i.isServer()&&Pg(S,o)&&(y?Om(m,d,r):p?.promise)?.catch(ue).finally(()=>{d.updateResult()}),m.notifyOnChangeProps?S:d.trackResult(S)}function FS(l,i){return my(l,oy)}function kS(l,i){const s=hy(),[o]=W.useState(()=>new Hg(s,l));W.useEffect(()=>{o.setOptions(l)},[o,l]);const r=W.useSyncExternalStore(W.useCallback(m=>o.subscribe(Jt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=W.useCallback((m,p)=>{o.mutate(m,p).catch(ue)},[o]);if(r.error&&nr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function WS(l,i){return my(l,Ng)}var gi=typeof window<"u"?W.useLayoutEffect:W.useEffect;function Ao(l){const i=W.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function kg(l,i,s={},o={}){W.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 Wg(l){const i=W.useRef(null);return W.useImperativeHandle(l,()=>i.current,[]),i}var yy=!1;function Ri(l){return l[l.length-1]}function Ig(l){return typeof l=="function"}function Vn(l,i){return Ig(l)?l(i):l}var $g=Object.prototype.hasOwnProperty,Cm=Object.prototype.propertyIsEnumerable,t0=()=>Object.create(null),ma=(l,i)=>va(l,i,t0);function va(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=zm(l)&&zm(r);if(!h&&!(dl(l)&&dl(r)))return r;const m=h?l:Am(l);if(!m)return r;const p=h?r:Am(r);if(!p)return r;const y=m.length,d=p.length,S=h?new Array(d):s();let g=0;for(let b=0;b<d;b++){const _=h?b:p[b],E=l[_],O=r[_];if(E===O){S[_]=E,(h?b<y:$g.call(l,_))&&g++;continue}if(E===null||O===null||typeof E!="object"||typeof O!="object"){S[_]=O;continue}const L=va(E,O,s,o+1);S[_]=L,L===E&&g++}return y===d&&g===y?l:S}function Am(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!Cm.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(!Cm.call(l,r))return!1;o.push(r)}return o}function dl(l){if(!xm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!xm(s)||!s.hasOwnProperty("isPrototypeOf"))}function xm(l){return Object.prototype.toString.call(l)==="[object Object]"}function zm(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 m in i)if((!o||i[m]!==void 0)&&!Sa(l[m],i[m],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const m in l)l[m]!==void 0&&r++;let h=0;for(const m in i)if((!o||i[m]!==void 0)&&(h++,h>r||!Sa(l[m],i[m],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 Ei(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function e0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Dm(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 e0(i)}var n0=["http:","https:","mailto:","tel:"];function ts(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+=Dm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Dm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function a0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function l0(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 vn(){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 m=i.get(h);if(m)return r(m),m.value},set(h,m){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=m,r(p);else{const y={key:h,value:m,prev:o};o&&(o.next=y),o=y,s||(s=y),i.set(h,y)}},clear(){i.clear(),s=void 0,o=void 0}}}var pa=4,vy=5;function i0(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 lr(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 m=i0(h);if(m){const[p,y]=m,d=h.charCodeAt(p+1);if(d===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(d===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 is(l,i,s,o,r,h,m){m?.(s);let p=o;{const y=s.fullPath??s.from,d=y.length,S=s.options?.caseSensitive??l,g=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;p<d;){const _=lr(y,p,i);let E;const O=p,L=_[5];switch(p=L+1,h++,_[0]){case 0:{const D=y.substring(_[2],_[3]);if(S){const Q=r.static?.get(D);if(Q)E=Q;else{r.static??=new Map;const G=ga(s.fullPath??s.from);G.parent=r,G.depth=h,E=G,r.static.set(D,G)}}else{const Q=D.toLowerCase(),G=r.staticInsensitive?.get(Q);if(G)E=G;else{r.staticInsensitive??=new Map;const Y=ga(s.fullPath??s.from);Y.parent=r,Y.depth=h,E=Y,r.staticInsensitive.set(Q,Y)}}break}case 1:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),G=S&&!!(D||Q),Y=D?G?D:D.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=!g&&r.dynamic?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===Y&&q.suffix===$);if(J)E=J;else{const q=zo(1,s.fullPath??s.from,G,Y,$);E=q,q.depth=h,q.parent=r,r.dynamic??=[],r.dynamic.push(q)}break}case 3:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),G=S&&!!(D||Q),Y=D?G?D:D.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=!g&&r.optional?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===Y&&q.suffix===$);if(J)E=J;else{const q=zo(3,s.fullPath??s.from,G,Y,$);E=q,q.parent=r,q.depth=h,r.optional??=[],r.optional.push(q)}break}case 2:{const D=y.substring(O,_[1]),Q=y.substring(_[4],L),G=S&&!!(D||Q),Y=D?G?D:D.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=zo(2,s.fullPath??s.from,G,Y,$);E=J,J.parent=r,J.depth=h,r.wildcard??=[],r.wildcard.push(J)}}r=E}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=ga(s.fullPath??s.from);_.kind=vy,_.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=pa,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=g,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const y of s.children)is(l,i,y,p,r,h,m)}function xo(l,i){if(l.skipOnParamError&&!i.skipOnParamError)return-1;if(!l.skipOnParamError&&i.skipOnParamError)return 1;if(l.skipOnParamError&&i.skipOnParamError&&(l.parsingPriority||i.parsingPriority))return i.parsingPriority-l.parsingPriority;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 Xn(l){if(l.pathless)for(const i of l.pathless)Xn(i);if(l.static)for(const i of l.static.values())Xn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Xn(i);if(l.dynamic?.length){l.dynamic.sort(xo);for(const i of l.dynamic)Xn(i)}if(l.optional?.length){l.optional.sort(xo);for(const i of l.optional)Xn(i)}if(l.wildcard?.length){l.wildcard.sort(xo);for(const i of l.wildcard)Xn(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,skipOnParamError:!1,parsingPriority:0}}function zo(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,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function u0(l,i){const s=ga("/"),o=new Uint16Array(6);for(const r of l)is(!1,o,r,1,s,0);Xn(s),i.masksTree=s,i.flatCache=Ti(1e3)}function s0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=ir(l,i.masksTree);return i.flatCache.set(l,o),o}function c0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let m=r.singleCache.get(h);return m||(m=ga("/"),is(i,new Uint16Array(6),{from:l},1,m,0),r.singleCache.set(h,m)),ir(o,m,s)}function o0(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=ir(l,i.segmentTree,s)}catch(m){if(m instanceof URIError)h=null;else throw m}return h&&(h.branch=h0(h.route)),i.matchCache.set(o,h),h}function r0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function f0(l,i=!1,s){const o=ga(l.fullPath),r=new Uint16Array(6),h={},m={};let p=0;return is(i,r,l,1,o,0,y=>{if(s?.(y,p),y.id in h&&vn(),h[y.id]=y,p!==0&&y.path){const d=r0(y.fullPath);(!m[d]||y.fullPath.endsWith("/"))&&(m[d]=y)}p++}),Xn(o),{processedTree:{segmentTree:o,singleCache:Ti(1e3),matchCache:Ti(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:m}}function ir(l,i,s=!1){const o=l.split("/"),r=m0(l,o,i,s);if(!r)return null;const[h]=py(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function py(l,i,s){const o=d0(s.node);let r=null;const h=Object.create(null);let m=s.extract?.part??0,p=s.extract?.node??0,y=s.extract?.path??0,d=s.extract?.segment??0;for(;p<o.length;m++,p++,y++,d++){const S=o[p];if(S.kind===pa)break;if(S.kind===vy){d--,m--,y--;continue}const g=i[m],b=y;if(g&&(y+=g.length),S.kind===1){r??=s.node.fullPath.split("/");const _=r[d],E=S.prefix?.length??0;if(_.charCodeAt(E)===123){const O=S.suffix?.length??0,L=_.substring(E+2,_.length-O-1),D=g.substring(E,g.length-O);h[L]=decodeURIComponent(D)}else{const O=_.substring(1);h[O]=decodeURIComponent(g)}}else if(S.kind===3){if(s.skipped&1<<p){m--,y=b-1;continue}r??=s.node.fullPath.split("/");const _=r[d],E=S.prefix?.length??0,O=S.suffix?.length??0,L=_.substring(E+3,_.length-O-1),D=S.suffix||S.prefix?g.substring(E,g.length-O):g;D&&(h[L]=decodeURIComponent(D))}else if(S.kind===2){const _=S,E=l.substring(b+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),O=decodeURIComponent(E);h["*"]=O,h._splat=O;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:m,node:p,path:y,segment:d}]}function h0(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function d0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function m0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Ri(i),h=r&&l!=="/",m=i.length-(r?1:0),p=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let y=null,d=null,S=null;for(;p.length;){const g=p.pop(),{node:b,index:_,skipped:E,depth:O,statics:L,dynamics:D,optionals:Q}=g;let{extract:G,rawParams:Y,parsedParams:$}=g;if(b.skipOnParamError){if(!Do(l,i,g))continue;Y=g.rawParams,G=g.extract,$=g.parsedParams}o&&b.route&&b.kind!==pa&&mi(d,g)&&(d=g);const J=_===m;if(J&&(b.route&&!h&&mi(S,g)&&(S=g),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const q=J?void 0:i[_];let V;if(J&&b.index){const K={node:b.index,index:_,skipped:E,depth:O+1,statics:L,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$};let et=!0;if(b.index.skipOnParamError&&(Do(l,i,K)||(et=!1)),et){if(L===m&&!D&&!Q&&!E)return K;mi(S,K)&&(S=K)}}if(b.wildcard&&mi(y,g))for(const K of b.wildcard){const{prefix:et,suffix:F}=K;if(et&&(J||!(K.caseSensitive?q:V??=q.toLowerCase()).startsWith(et)))continue;if(F){if(J)continue;const rt=i.slice(_).join("/").slice(-F.length);if((K.caseSensitive?rt:rt.toLowerCase())!==F)continue}const ut={node:K,index:m,skipped:E,depth:O,statics:L,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$};if(!(K.skipOnParamError&&!Do(l,i,ut))){y=ut;break}}if(b.optional){const K=E|1<<O,et=O+1;for(let F=b.optional.length-1;F>=0;F--){const ut=b.optional[F];p.push({node:ut,index:_,skipped:K,depth:et,statics:L,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$})}if(!J)for(let F=b.optional.length-1;F>=0;F--){const ut=b.optional[F],{prefix:rt,suffix:Bt}=ut;if(rt||Bt){const Mt=ut.caseSensitive?q:V??=q.toLowerCase();if(rt&&!Mt.startsWith(rt)||Bt&&!Mt.endsWith(Bt))continue}p.push({node:ut,index:_+1,skipped:E,depth:et,statics:L,dynamics:D,optionals:Q+1,extract:G,rawParams:Y,parsedParams:$})}}if(!J&&b.dynamic&&q)for(let K=b.dynamic.length-1;K>=0;K--){const et=b.dynamic[K],{prefix:F,suffix:ut}=et;if(F||ut){const rt=et.caseSensitive?q:V??=q.toLowerCase();if(F&&!rt.startsWith(F)||ut&&!rt.endsWith(ut))continue}p.push({node:et,index:_+1,skipped:E,depth:O+1,statics:L,dynamics:D+1,optionals:Q,extract:G,rawParams:Y,parsedParams:$})}if(!J&&b.staticInsensitive){const K=b.staticInsensitive.get(V??=q.toLowerCase());K&&p.push({node:K,index:_+1,skipped:E,depth:O+1,statics:L+1,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$})}if(!J&&b.static){const K=b.static.get(q);K&&p.push({node:K,index:_+1,skipped:E,depth:O+1,statics:L+1,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$})}if(b.pathless){const K=O+1;for(let et=b.pathless.length-1;et>=0;et--){const F=b.pathless[et];p.push({node:F,index:_,skipped:E,depth:K,statics:L,dynamics:D,optionals:Q,extract:G,rawParams:Y,parsedParams:$})}}}if(S&&y)return mi(y,S)?S:y;if(S)return S;if(y)return y;if(o&&d){let g=d.index;for(let _=0;_<d.index;_++)g+=i[_].length;const b=g===l.length?"/":l.slice(g);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(b),d}return null}function Do(l,i,s){try{const[o,r]=py(l,i,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign(Object.create(null),s.parsedParams,h),!0}catch{return null}}function mi(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===pa)>(l.node.kind===pa)||i.node.kind===pa==(l.node.kind===pa)&&i.depth>l.depth))):!0}function Pu(l){return ur(l.filter(i=>i!==void 0).join("/"))}function ur(l){return l.replace(/\/{2,}/g,"/")}function gy(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function Jn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Sy(l){return Jn(gy(l))}function es(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function y0(l,i,s){return es(l,s)===es(i,s)}function v0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let m;if(o){m=r?i:h?l:l+"\0"+i;const g=o.get(m);if(g)return g}let p;if(h)p=l.split("/");else if(r)p=i.split("/");else{for(p=l.split("/");p.length>1&&Ri(p)==="";)p.pop();const g=i.split("/");for(let b=0,_=g.length;b<_;b++){const E=g[b];E===""?b?b===_-1&&p.push(E):p=[E]:E===".."?p.pop():E==="."||p.push(E)}}p.length>1&&(Ri(p)===""?s==="never"&&p.pop():s==="always"&&p.push(""));let y,d="";for(let g=0;g<p.length;g++){g>0&&(d+="/");const b=p[g];if(!b)continue;y=lr(b,0,y);const _=y[0];if(_===0){d+=b;continue}const E=y[5],O=b.substring(0,y[1]),L=b.substring(y[4],E),D=b.substring(y[2],y[3]);_===1?d+=O||L?`${O}{$${D}}${L}`:`$${D}`:_===2?d+=O||L?`${O}{$}${L}`:"$":d+=`${O}{-$${D}}${L}`}d=ur(d);const S=d||"/";return m&&o&&o.set(m,S),S}function p0(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 m=l.length;let p=0,y,d="";for(;p<m;){const S=p;y=lr(l,S,y);const g=y[5];if(p=g+1,S===g)continue;const b=y[0];if(b===0){d+="/"+l.substring(S,g);continue}if(b===2){const _=i._splat;h._splat=_,h["*"]=_;const E=l.substring(S,y[1]),O=l.substring(y[4],g);if(!_){r=!0,(E||O)&&(d+="/"+E+O);continue}const L=Uo("_splat",i,s);d+="/"+E+L+O;continue}if(b===1){const _=l.substring(y[2],y[3]);!r&&!(_ in i)&&(r=!0),h[_]=i[_];const E=l.substring(S,y[1]),O=l.substring(y[4],g),L=Uo(_,i,s)??"undefined";d+="/"+E+L+O;continue}if(b===3){const _=l.substring(y[2],y[3]),E=i[_];if(E==null)continue;h[_]=E;const O=l.substring(S,y[1]),L=l.substring(y[4],g),D=Uo(_,i,s)??"";d+="/"+O+D+L;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Lm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function le(l){return l?.isNotFound===!0}function g0(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var S0="tsr-scroll-restoration-v1_3";function b0(){const l=g0();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=Vn(o,i)||i},persist:()=>{try{l.setItem(S0,JSON.stringify(i))}catch{}}}}var wm=b0(),_0=l=>l.state.__TSR_key||l.href;function R0(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()}var Zu=!1,yi="window",Nm="data-scroll-restoration-id";function E0(l,i){if(!wm)return;const s=wm;if((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!s)return;l.isScrollRestorationSetup=!0,Zu=!1;const o=l.options.getScrollRestorationKey||_0,r=new Map;window.history.scrollRestoration="manual";const h=p=>{if(!(Zu||!l.isScrollRestoring))if(p.target===document||p.target===window)r.set(yi,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const y=p.target;r.set(y,{scrollX:y.scrollLeft||0,scrollY:y.scrollTop||0})}},m=p=>{if(!l.isScrollRestoring||!p||r.size===0||!s)return;const y=s.state[p]||={};for(const[d,S]of r){let g;if(d===yi)g=yi;else if(d.isConnected){const b=d.getAttribute(Nm);g=b?`[${Nm}="${b}"]`:R0(d)}g&&(y[g]=S)}};document.addEventListener("scroll",h,!0),l.subscribe("onBeforeLoad",p=>{m(p.fromLocation?o(p.fromLocation):void 0),r.clear()}),window.addEventListener("pagehide",()=>{m(o(l.stores.resolvedLocation.get()??l.stores.location.get())),s.persist()}),l.subscribe("onRendered",p=>{const y=o(p.toLocation),d=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}))){Zu=!0;try{const g=l.isScrollRestoring?s.state[y]:void 0;let b=!1;if(g)for(const _ in g){const E=g[_];if(!dl(E))continue;const{scrollX:O,scrollY:L}=E;if(!(!Number.isFinite(O)||!Number.isFinite(L))){if(_===yi)window.scrollTo({top:L,left:O,behavior:d}),b=!0;else if(_){let D;try{D=document.querySelector(_)}catch{continue}D&&(D.scrollLeft=O,D.scrollTop=L,b=!0)}}}if(!b){const _=l.history.location.hash.slice(1);if(_){const E=window.history.state?.__hashScrollIntoViewOptions??!0;if(E){const O=document.getElementById(_);O&&O.scrollIntoView(E)}}else{const E={top:0,left:0,behavior:d};if(window.scrollTo(E),S)for(const O of S){if(O===yi)continue;const L=typeof O=="function"?O():document.querySelector(O);L&&L.scrollTo(E)}}}}finally{Zu=!1}l.isScrollRestoring&&s.set(g=>(g[y]||={},g))}})}function T0(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 M0(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}var O0=A0(JSON.parse),C0=x0(JSON.stringify,JSON.parse);function A0(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=M0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function x0(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=T0(r,o);return h?`?${h}`:""}}var ba="__root__";function z0(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 D0(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=by(l[s],i);return i}}}function U0(l){const i=Sy(l.basepath),s=`/${i}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:m})=>{const p=l.caseSensitive?m.pathname:m.pathname.toLowerCase();return p===r?m.pathname="/":p.startsWith(h)&&(m.pathname=m.pathname.slice(s.length)),m},output:({url:m})=>(m.pathname=Pu(["/",i,m.pathname]),m)}}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 by(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 L0(l,i){const{createMutableStore:s,createReadonlyStore:o,batch:r,init:h}=i,m=new Map,p=new Map,y=new Map,d=s(l.status),S=s(l.loadedAt),g=s(l.isLoading),b=s(l.isTransitioning),_=s(l.location),E=s(l.resolvedLocation),O=s(l.statusCode),L=s(l.redirect),D=s([]),Q=s([]),G=s([]),Y=o(()=>wo(m,D.get())),$=o(()=>wo(p,Q.get())),J=o(()=>wo(y,G.get())),q=o(()=>D.get()[0]),V=o(()=>D.get().some(X=>m.get(X)?.get().status==="pending")),K=o(()=>({locationHref:_.get().href,resolvedLocationHref:E.get()?.href,status:d.get()})),et=o(()=>({status:d.get(),loadedAt:S.get(),isLoading:g.get(),isTransitioning:b.get(),matches:Y.get(),location:_.get(),resolvedLocation:E.get(),statusCode:O.get(),redirect:L.get()})),F=Ti(64);function ut(X){let at=F.get(X);return at||(at=o(()=>{const bt=D.get();for(const Rt of bt){const M=m.get(Rt);if(M&&M.routeId===X)return M.get()}}),F.set(X,at)),at}const rt={status:d,loadedAt:S,isLoading:g,isTransitioning:b,location:_,resolvedLocation:E,statusCode:O,redirect:L,matchesId:D,pendingIds:Q,cachedIds:G,matches:Y,pendingMatches:$,cachedMatches:J,firstId:q,hasPending:V,matchRouteDeps:K,matchStores:m,pendingMatchStores:p,cachedMatchStores:y,__store:et,getRouteMatchStore:ut,setMatches:Bt,setPending:Mt,setCached:w};Bt(l.matches),h?.(rt);function Bt(X){No(X,m,D,s,r)}function Mt(X){No(X,p,Q,s,r)}function w(X){No(X,y,G,s,r)}return rt}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),m=new Set(h);r(()=>{for(const p of i.keys())m.has(p)||i.delete(p);for(const p of l){const y=i.get(p.id);if(!y){const d=o(p);d.routeId=p.routeId,i.set(p.id,d);continue}y.routeId=p.routeId,y.get()!==p&&y.set(p)}l0(s.get(),h)||s.set(h)})}var Fo=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},w0=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),us=(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 m=l.matches[h];if(!m)continue;const p=l.router.getMatch(m.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(m=>m.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(m=>m.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let m=h;m>=0;m--){const p=l.matches[m];if(l.router.looseRoutesById[p.routeId].options.notFoundComponent)return m}return s?h:r},Kn=(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},_y=(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}))},vi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],m=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Kn(l,l.router.getMatch(r),s);try{m.options.onError?.(s)}catch(p){s=p,Kn(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)},Ry=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!us(l,i)&&(s.options.loader||s.options.beforeLoad||Ty(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{Fo(l)},r);o._nonReactive.pendingTimeout=h}},N0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ry(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Kn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},B0=(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:m,searchError:p}=r;m&&vi(l,s,m,"PARSE_PARAMS"),p&&vi(l,s,p,"VALIDATE_SEARCH"),Ry(l,i,o,r);const y=new AbortController;let d=!1;const S=()=>{d||(d=!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:E,cause:O}=r,L=us(l,i),D={search:_,abortController:y,params:E,preload:L,context:b,location:l.location,navigate:Y=>l.router.navigate({...Y,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:L?"preload":O,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(),vi(l,s,Y,"BEFORE_LOAD")),l.router.batch(()=>{S(),l.updateMatch(i,$=>({...$,__beforeLoadContext:Y})),g()})};let G;try{if(G=o.options.beforeLoad(D),Ei(G))return S(),G.catch(Y=>{vi(l,s,Y,"BEFORE_LOAD")}).then(Q)}catch(Y){S(),vi(l,s,Y,"BEFORE_LOAD")}Q(G)},j0=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>p(),m=()=>B0(l,s,i,r),p=()=>{if(_y(l,s))return;const y=N0(l,s,r);return Ei(y)?y.then(m):m()};return h()},H0=(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,m,p])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:p,scripts:m,styles:h?.styles}))},Ey=(l,i,s,o,r)=>{const h=i[o-1],{params:m,loaderDeps:p,abortController:y,cause:d}=l.router.getMatch(s),S=_a(l,o),g=us(l,s);return{params:m,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":d,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)&&Mi(r);const m=r.options.loader,p=typeof m=="function"?m:m?.handler,y=p?.(Ey(l,i,s,o,r)),d=!!p&&Ei(y);if((d||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=d?await y:y;Kn(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(m){let p=m;if(p?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:_a(l,o)}));return}const y=h._nonReactive.minPendingPromise;y&&await y,le(m)&&await r.options.notFoundComponent?.preload?.(),Kn(l,l.router.getMatch(s),m);try{r.options.onError?.(m)}catch(d){p=d,Kn(l,l.router.getMatch(s),d)}!me(p)&&!le(p)&&await Mi(r,["errorComponent"]),l.updateMatch(s,d=>({...d,error:p,context:_a(l,o),status:"error",isFetching:!1}))}}catch(h){const m=l.router.getMatch(s);m&&(m._nonReactive.loaderPromise=void 0),Kn(l,m,h)}},q0=async(l,i,s)=>{async function o(_,E,O,L,D){const Q=Date.now()-E.updatedAt,G=_?D.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:D.options.staleTime??l.router.options.defaultStaleTime??0,Y=D.options.shouldReload,$=typeof Y=="function"?Y(Ey(l,i,r,s,D)):Y,{status:J,invalid:q}=L,V=Q>=G&&(!!l.forceStaleReload||L.cause==="enter"||O!==void 0&&O!==L.id);m=J==="success"&&(q||($??V)),_&&D.options.preload===!1||(m&&!l.sync&&S?(p=!0,(async()=>{try{await Hm(l,i,r,s,D);const K=l.router.getMatch(r);K._nonReactive.loaderPromise?.resolve(),K._nonReactive.loadPromise?.resolve(),K._nonReactive.loaderPromise=void 0,K._nonReactive.loadPromise=void 0}catch(K){me(K)&&await l.router.navigate(K.options)}})()):J!=="success"||m?await Hm(l,i,r,s,D):jm(l,r,s))}const{id:r,routeId:h}=l.matches[s];let m=!1,p=!1;const y=l.router.looseRoutesById[h],d=y.options.loader,S=((typeof d=="function"?void 0:d?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(_y(l,r)){if(!l.router.getMatch(r))return l.matches[s];jm(l,r,s)}else{const _=l.router.getMatch(r),E=l.router.stores.matchesId.get()[s],O=(E&&l.router.stores.matchStores.get(E)||null)?.routeId===h?E:l.router.stores.matches.get().find(D=>D.routeId===h)?.id,L=us(l,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!l.sync&&!_.preload&&S)return _;await _._nonReactive.loaderPromise;const D=l.router.getMatch(r),Q=D._nonReactive.error||D.error;Q&&Kn(l,D,Q),D.status==="pending"&&await o(L,_,O,D,y)}else{const D=L&&!l.router.stores.matchStores.has(r),Q=l.router.getMatch(r);Q._nonReactive.loaderPromise=ml(),D!==Q.preload&&l.updateMatch(r,G=>({...G,preload:D})),await o(L,_,O,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=[];w0(i.router)&&Fo(i);let o;for(let b=0;b<i.matches.length;b++){try{const _=j0(i,b);Ei(_)&&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,m=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let p,y;for(let b=0;b<m;b++)s.push(q0(i,s,b));try{await Promise.all(s)}catch{const b=await Promise.allSettled(s);for(const _ of b){if(_.status!=="rejected")continue;const E=_.reason;if(me(E))throw E;le(E)?p??=E:y??=E}if(y!==void 0)throw y}const d=p??(o&&!i.preload?o:void 0);let S=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!d&&o&&i.preload)return i.matches;if(d){const b=Bm(i,d);b===void 0&&vn();const _=i.matches[b],E=i.router.looseRoutesById[_.routeId],O=i.router.options?.defaultNotFoundComponent;!E.options.notFoundComponent&&O&&(E.options.notFoundComponent=O),d.routeId=_.routeId;const L=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,D=>({...D,...L?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),S=b,await Mi(E,["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 Mi(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:_,routeId:E}=i.matches[b],O=i.router.looseRoutesById[E];try{const L=H0(i,_,O);if(L){const D=await L;i.updateMatch(_,Q=>({...Q,...D}))}}catch(L){console.error(`Error executing head for route ${E}:`,L)}}const g=Fo(i);if(Ei(g)&&await g,d)throw d;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 Mi(l,i=Fu){!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===Fu?(()=>{if(l._componentsPromise===void 0){const o=Qm(l,Fu);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 Ty(l){for(const i of Fu)if(l.options[i]?.preload)return!0;return!1}var Fu=["component","errorComponent","pendingComponent","notFoundComponent"],Pn="__TSR_index",Ym="popstate",Gm="beforeunload";function Q0(l){let i=l.getLocation();const s=new Set,o=m=>{i=l.getLocation(),s.forEach(p=>p({location:i,action:m}))},r=m=>{l.notifyOnIndexChange??!0?o(m):i=l.getLocation()},h=async({task:m,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){m();return}const d=l.getBlockers?.()??[],S=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&d.length&&S)for(const g of d){const b=ns(y.path,y.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:y.type})){l.onBlocked?.();return}}m()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:m=>(s.add(m),()=>{s.delete(m)}),push:(m,p,y)=>{const d=i.state[Pn];p=Xm(d+1,p),h({task:()=>{l.pushState(m,p),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:m,state:p})},replace:(m,p,y)=>{const d=i.state[Pn];p=Xm(d,p),h({task:()=>{l.replaceState(m,p),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:m,state:p})},go:(m,p)=>{h({task:()=>{l.go(m),r({type:"GO",index:m})},navigateOpts:p,type:"GO"})},back:m=>{h({task:()=>{l.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{h({task:()=>{l.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[Pn]!==0,createHref:m=>l.createHref(m),block:m=>{if(!l.setBlockers)return()=>{};const p=l.getBlockers?.()??[];return l.setBlockers([...p,m]),()=>{const y=l.getBlockers?.()??[];l.setBlockers?.(y.filter(d=>d!==m))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Xm(l,i){i||(i={});const s=sr();return{...i,key:s,__TSR_key:s,[Pn]:l}}function Y0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,m=V=>r=V,p=(V=>V),y=(()=>ns(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const V=sr();i.history.replaceState({[Pn]:0,key:V,__TSR_key:V},"")}let d=y(),S,g=!1,b=!1,_=!1,E=!1;const O=()=>d;let L,D;const Q=()=>{L&&(q._ignoreSubscribers=!0,(L.isPush?i.history.pushState:i.history.replaceState)(L.state,"",L.href),q._ignoreSubscribers=!1,L=void 0,D=void 0,S=void 0)},G=(V,K,et)=>{const F=p(K);D||(S=d),d=ns(K,et),L={href:F,state:et,isPush:L?.isPush||V==="push"},D||(D=Promise.resolve().then(()=>Q()))},Y=V=>{d=y(),q.notify({type:V})},$=async()=>{if(b){b=!1;return}const V=y(),K=V.state[Pn]-d.state[Pn],et=K===1,F=K===-1,ut=!et&&!F||g;g=!1;const rt=ut?"GO":F?"BACK":"FORWARD",Bt=ut?{type:"GO",index:K}:{type:F?"BACK":"FORWARD"};if(_)_=!1;else{const Mt=h();if(typeof document<"u"&&Mt.length){for(const w of Mt)if(await w.blockerFn({currentLocation:d,nextLocation:V,action:rt})){b=!0,i.history.go(1),q.notify(Bt);return}}}d=y(),q.notify(Bt)},J=V=>{if(E){E=!1;return}let K=!1;const et=h();if(typeof document<"u"&&et.length)for(const F of et){const ut=F.enableBeforeUnload??!0;if(ut===!0){K=!0;break}if(typeof ut=="function"&&ut()===!0){K=!0;break}}if(K)return V.preventDefault(),V.returnValue=""},q=Q0({getLocation:O,getLength:()=>i.history.length,pushState:(V,K)=>G("push",V,K),replaceState:(V,K)=>G("replace",V,K),back:V=>(V&&(_=!0),E=!0,i.history.back()),forward:V=>{V&&(_=!0),E=!0,i.history.forward()},go:V=>{g=!0,i.history.go(V)},createHref:V=>p(V),flush:Q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Gm,J,{capture:!0}),i.removeEventListener(Ym,$)},onBlocked:()=>{S&&d!==S&&(d=S)},getBlockers:h,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(Gm,J,{capture:!0}),i.addEventListener(Ym,$),i.history.pushState=function(...V){const K=s.apply(i.history,V);return q._ignoreSubscribers||Y("PUSH"),K},i.history.replaceState=function(...V){const K=o.apply(i.history,V);return q._ignoreSubscribers||Y("REPLACE"),K},q}function G0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function ns(l,i){const s=G0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=sr();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||{[Pn]:0,key:h,__TSR_key:h}}}function sr(){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 X0=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.startTransition=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,m=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=p0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Y0()),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=L0(K0(this.latestLocation),S),E0(this)}let p=!1;const y=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==y||m!==d){this.basepath=y;const S=[],g=Sy(y);g&&g!=="/"&&S.push(U0({basepath:y})),d&&S.push(d),this.rewrite=S.length===0?void 0:S.length===1?S[0]:D0(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=f0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&u0(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:d,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const D=this.options.parseSearch(d),Q=this.options.stringifySearch(D);return{href:y+Q+S,publicHref:y+Q+S,pathname:di(y).path,external:!1,searchStr:Q,search:ma(o?.search,D),hash:di(S.slice(1)).path,state:va(o?.state,b)}}const _=new URL(g,this.origin),E=Po(this.rewrite,_),O=this.options.parseSearch(E.search),L=this.options.stringifySearch(O);return E.search=L,{href:E.href.replace(E.origin,""),publicHref:g,pathname:di(E.pathname).path,external:!!this.rewrite&&E.origin!==this.origin,searchStr:L,search:ma(o?.search,O),hash:di(E.hash.slice(1)).path,state:va(o?.state,b)}},h=r(s),{__tempLocation:m,__tempKey:p}=h.state;if(m&&(!p||p===this.tempLocationKey)){const y=r(m);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)=>v0({base:s,to:ur(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=>Z0({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 m=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(m);h.from;const y=h.unsafeRelative==="path"?m.pathname:h.from??p.fullPath,d=this.resolvePathWithBase(y,"."),S=p.search,g=Object.assign(Object.create(null),p.params),b=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),_=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,Vn(h.params,g)),E=this.getMatchedRoutes(b);let O=E.matchedRoutes;if((!E.foundRoute||E.foundRoute.path!=="/"&&E.routeParams["**"])&&this.options.notFoundRoute&&(O=[...O,this.options.notFoundRoute]),Object.keys(_).length>0)for(const et of O){const F=et.options.params?.stringify??et.options.stringifyParams;if(F)try{Object.assign(_,F(_))}catch{}}const L=s.leaveParams?b:di(Um({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let D=S;if(s._includeValidateSearch&&this.options.search?.strict){const et={};O.forEach(F=>{if(F.options.validateSearch)try{Object.assign(et,ku(F.options.validateSearch,{...et,...D}))}catch{}}),D=et}D=J0({search:D,dest:h,destRoutes:O,_includeValidateSearch:s._includeValidateSearch}),D=ma(S,D);const Q=this.options.stringifySearch(D),G=h.hash===!0?m.hash:h.hash?Vn(h.hash,m.hash):void 0,Y=G?`#${G}`:"";let $=h.state===!0?m.state:h.state?Vn(h.state,m.state):{};$=va(m.state,$);const J=`${L}${Q}${Y}`;let q,V,K=!1;if(this.rewrite){const et=new URL(J,this.origin),F=by(this.rewrite,et);q=et.href.replace(et.origin,""),F.origin!==this.origin?(V=F.href,K=!0):V=F.pathname+F.search+F.hash}else q=a0(J),V=q;return{publicHref:V,href:q,pathname:L,search:D,searchStr:Q,state:$,hash:G??"",external:K,unmaskOnReload:h.unmaskOnReload}},r=(h={},m)=>{const p=o(h);let y=m?o(m):void 0;if(!y){const d=Object.create(null);if(this.options.routeMasks){const S=s0(p.pathname,this.processedTree);if(S){Object.assign(d,S.rawParams);const{from:g,params:b,..._}=S.route,E=b===!1||b===null?Object.create(null):(b??!0)===!0?d:Object.assign(d,Vn(b,d));m={from:s.from,..._,params:E},y=o(m)}}}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 d=Sa(r.state,this.latestLocation.state);return y.forEach(S=>{delete r.state[S]}),d},m=Jn(this.latestLocation.href)===Jn(r.href);let p=this.commitLocationPromise;if(this.commitLocationPromise=ml(()=>{p?.resolve(),p=void 0}),m&&h())this.load();else{let{maskedLocation:y,hashScrollIntoView:d,...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=d??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:m,href:p,...y}={})=>{if(p){const g=this.history.location.state.__TSR_index,b=ns(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 d=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const S=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...m})=>{let p=!1;if(r)try{new URL(`${r}`),p=!0}catch{}if(p&&!o&&(o=!0),o){if(s!==void 0||!r){const d=this.buildLocation({to:s,...m});r=r??d.publicHref,h=h??d.publicHref}const y=!p&&h?h:r;if(ts(y,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const d=this.history.getBlockers?.()??[];for(const S of d)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...m,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 m=this.stores.resolvedLocation.get()??this.stores.location.get();for(h=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,S=hl(d,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:m.href===d.href,matches:this.stores.pendingMatches.get(),location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=null,b=null,_=null,E=null;this.batch(()=>{const O=this.stores.pendingMatches.get(),L=O.length,D=this.stores.matches.get();g=L?D.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 G=new Set;for(const Y of this.stores.matchStores.values())Y.routeId&&G.add(Y.routeId);b=L?D.filter(Y=>!Q.has(Y.routeId)):null,_=L?O.filter(Y=>!G.has(Y.routeId)):null,E=L?O.filter(Y=>G.has(Y.routeId)):D,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),L&&(this.stores.setMatches(O),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[O,L]of[[b,"onLeave"],[_,"onEnter"],[E,"onStay"]])if(O)for(const D of O)this.looseRoutesById[D.routeId].options[L]?.(D)})})}})}catch(d){me(d)?(o=d,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):le(d)&&(r=d);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,m=this.stores.resolvedLocation.get(),p=typeof o.types=="function"?o.types(hl(h,m)):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 m=this.stores.cachedMatchStores.get(s);if(m){const p=o(m.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(y=>y.filter(d=>d!==s)):m.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&&ts(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 m=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:s-r.updatedAt>=m};this.clearCache({filter:o})},this.loadRouteChunk=Mi,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()]),m=new Set([...h,...this.stores.cachedIds.get()]),p=r.filter(y=>!m.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,d)=>{h.has(y)?r=r.map(S=>S.id===y?d(S):S):this.updateMatch(y,d)}}),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 m=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=c0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!p||s.params&&!Sa(p.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(m.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??C0,parseSearch:l.parseSearch??O0,protocolAllowlist:l.protocolAllowlist??n0}),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)}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,parsedParams:h}=s;let{matchedRoutes:m}=s,p=!1;(o?o.path!=="/"&&r["**"]:Jn(l.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:p=!0);const y=p?F0(this.options.notFoundMode,m):void 0,d=new Array(m.length),S=new Map;for(const g of this.stores.matchStores.values())g.routeId&&S.set(g.routeId,g.get());for(let g=0;g<m.length;g++){const b=m[g],_=d[g-1];let E,O,L;{const rt=_?.search??l.search,Bt=_?._strictSearch??void 0;try{const Mt=ku(b.options.validateSearch,{...rt})??void 0;E={...rt,...Mt},O={...Bt,...Mt},L=void 0}catch(Mt){let w=Mt;if(Mt instanceof as||(w=new as(Mt.message,{cause:Mt})),i?.throwOnError)throw w;E=rt,O={},L=w}}const D=b.options.loaderDeps?.({search:E})??"",Q=D?JSON.stringify(D):"",{interpolatedPath:G,usedParams:Y}=Um({path:b.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),$=b.id+G+Q,J=this.getMatch($),q=S.get(b.id),V=J?._strictParams??Y;let K;if(!J)try{Vm(b,Y,h,V)}catch(rt){if(le(rt)||me(rt)?K=rt:K=new V0(rt.message,{cause:rt}),i?.throwOnError)throw K}Object.assign(r,V);const et=q?"stay":"enter";let F;if(J)F={...J,cause:et,params:q?.params??r,_strictParams:V,search:ma(q?q.search:J.search,E),_strictSearch:O};else{const rt=b.options.loader||b.options.beforeLoad||b.lazyFn||Ty(b)?"pending":"success";F={id:$,ssr:b.options.ssr,index:g,routeId:b.id,params:q?.params??r,_strictParams:V,pathname:G,updatedAt:Date.now(),search:q?ma(q.search,E):E,_strictSearch:O,searchError:void 0,status:rt,isFetching:!1,error:void 0,paramsError:K,__routeContext:void 0,_nonReactive:{loadPromise:ml()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:et,loaderDeps:q?va(q.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},fullPath:b.fullPath}}i?.preload||(F.globalNotFound=y===b.id),F.searchError=L;const ut=this.getParentContext(_);F.context={...ut,...F.__routeContext,...F.__beforeLoadContext},d[g]=F}for(let g=0;g<d.length;g++){const b=d[g],_=this.looseRoutesById[b.routeId],E=this.getMatch(b.id),O=S.get(b.routeId);if(b.params=O?ma(O.params,r):r,!E){const L=d[g-1],D=this.getParentContext(L);if(_.options.context){const Q={deps:b.loaderDeps,params:b.params,context:D??{},location:l,navigate:G=>this.navigate({...G,_fromLocation:l}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:d,routeId:_.id};b.__routeContext=_.options.context(Q)??void 0}b.context={...D,...b.__routeContext,...b.__beforeLoadContext}}}return d}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s,parsedParams:o}=this.getMatchedRoutes(l.pathname),r=Ri(i),h={...l.search};for(const S of i)try{Object.assign(h,ku(S.options.validateSearch,h))}catch{}const m=Ri(this.stores.matchesId.get()),p=m&&this.stores.matchStores.get(m)?.get(),y=p&&p.routeId===r.id&&p.pathname===l.pathname;let d;if(y)d=p.params;else{const S=Object.assign(Object.create(null),s);for(const g of i)try{Vm(g,s,o??{},S)}catch{}d=S}return{matchedRoutes:i,fullPath:r.fullPath,search:h,params:d}}},as=class extends Error{},V0=class extends Error{};function K0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function ku(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new as("Async validation not supported");if(s.issues)throw new as(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 Z0({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=Jn(l);let h,m;const p=o0(r,s,!0);return p&&(h=p.route,Object.assign(o,p.rawParams),m=Object.assign(Object.create(null),p.parsedParams)),{matchedRoutes:p?.branch||[i.__root__],routeParams:o,foundRoute:h,parsedParams:m}}function J0({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return P0(s)(l,i,o??!1)}function P0(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:m,next:p})=>{let y=m;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(y=r.options.preSearchFilters.reduce((S,g)=>g(S),m));const d=p(y);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),d):d};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:m,next:p})=>{const y=p(m);if(!i._includeValidateSearch)return y;try{return{...y,...ku(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:Vn(h.search,r):{}};i.middlewares.push(s);const o=(r,h,m)=>{if(r>=m.length)return h;const p=m[r];return p({search:h,next:d=>o(r+1,d,m)})};return function(h,m,p){return i.dest=m,i._includeValidateSearch=p,o(0,h,i.middlewares)}}function F0(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,s,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in i)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}var k0="Error preloading route! ☝️",My=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||vn();let r=o?ba:s?.path;r&&r!=="/"&&(r=gy(r));const h=s?.id||r;let m=o?ba:Pu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=Pu(["/",m]));const p=m==="__root__"?"/":Pu([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=p,this._to=Jn(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=>z0({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.")}},W0=class extends My{constructor(l){super(l)}};function I0(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 cr(l){const i=l.errorComponent??or;return lt.jsx($0,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?W.createElement(i,{error:s,reset:o}):l.children})}var $0=class extends W.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 or({error:l}){const[i,s]=W.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 tS({children:l,fallback:i=null}){return Oy()?lt.jsx(Si.Fragment,{children:l}):lt.jsx(Si.Fragment,{children:i})}function Oy(){return Si.useSyncExternalStore(eS,()=>!0,()=>!1)}function eS(){return()=>{}}var Cy=W.createContext(null);function Be(l){return W.useContext(Cy)}var ss=W.createContext(void 0),nS=W.createContext(void 0),Nt=(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))(Nt||{});function aS({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:m,shallowPropagate:p};function o(d,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===d)return;const _=b!==void 0?b.nextDep:S.deps;if(_!==void 0&&_.dep===d){_.version=g,S.depsTail=_;return}const E=d.subsTail;if(E!==void 0&&E.version===g&&E.sub===S)return;const O=S.depsTail=d.subsTail={version:g,dep:d,sub:S,prevDep:b,nextDep:_,prevSub:E,nextSub:void 0};_!==void 0&&(_.prevDep=O),b!==void 0?b.nextDep=O:S.deps=O,E!==void 0?E.nextSub=O:d.subs=O}function r(d,S=d.sub){const g=d.dep,b=d.prevDep,_=d.nextDep,E=d.nextSub,O=d.prevSub;return _!==void 0?_.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=_:S.deps=_,E!==void 0?E.prevSub=O:g.subsTail=O,O!==void 0?O.nextSub=E:(g.subs=E)===void 0&&s(g),_}function h(d){let S=d.nextSub,g;t:do{const b=d.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&y(d,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&i(b),_&1){const E=b.subs;if(E!==void 0){const O=(d=E).nextSub;O!==void 0&&(g={value:S,prev:g},S=O);continue}}if((d=S)!==void 0){S=d.nextSub;continue}for(;g!==void 0;)if(d=g.value,g=g.prev,d!==void 0){S=d.nextSub;continue t}break}while(!0)}function m(d,S){let g,b=0,_=!1;t:do{const E=d.dep,O=E.flags;if(S.flags&16)_=!0;else if((O&17)===17){if(l(E)){const L=E.subs;L.nextSub!==void 0&&p(L),_=!0}}else if((O&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(g={value:d,prev:g}),d=E.deps,S=E,++b;continue}if(!_){const L=d.nextDep;if(L!==void 0){d=L;continue}}for(;b--;){const L=S.subs,D=L.nextSub!==void 0;if(D?(d=g.value,g=g.prev):d=L,_){if(l(S)){D&&p(L),S=d.sub;continue}_=!1}else S.flags&=-33;S=d.sub;const Q=d.nextDep;if(Q!==void 0){d=Q;continue t}}return _}while(!0)}function p(d){do{const S=d.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((d=d.nextSub)!==void 0)}function y(d,S){let g=S.depsTail;for(;g!==void 0;){if(g===d)return!0;g=g.prevDep}return!1}}function lS(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 Wu=0;const{link:Km,unlink:iS,propagate:uS,checkDirty:Ay,shallowPropagate:Zm}=aS({update(l){return l._update()},notify(l){ko[Wo++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,ls(l))}});let Ju=0,Wo=0,Je,Io=0;function xy(l){try{++Io,l()}finally{--Io||zy()}}function ls(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=iS(s,l)}function zy(){if(!(Io>0)){for(;Ju<Wo;){const l=ko[Ju];ko[Ju++]=void 0,l.notify()}Ju=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?Nt.None:Nt.Mutable,get(){return Je!==void 0&&Km(r,Je,Wu),r._snapshot},subscribe(h){const m=lS(h),p={current:!1},y=sS(()=>{r.get(),p.current?m.next?.(r._snapshot):p.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(h){const m=Je,p=i?.compare??Object.is;if(s)Je=r,++Wu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const y=r._snapshot,d=typeof h=="function"?h(y):h===void 0&&s?o(y):h;return y===void 0||!p(y,d)?(r._snapshot=d,!0):!1}finally{Je=m,s&&(r.flags&=~Nt.RecursedCheck),ls(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&Ay(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&Zm(m)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Je!==void 0&&Km(r,Je,Wu),r._snapshot}):r.set=function(h){if(r._update(h)){const m=r.subs;m!==void 0&&(uS(m),Zm(m),zy())}},r}function sS(l){const i=()=>{const o=Je;Je=s,++Wu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{Je=o,s.flags&=~Nt.RecursedCheck,ls(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&Ay(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ls(this)}};return i(),s}var Bo={exports:{}},jo={},Ho={exports:{}},qo={};var Pm;function cS(){if(Pm)return qo;Pm=1;var l=Oi();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,m=l.useDebugValue;function p(g,b){var _=b(),E=o({inst:{value:_,getSnapshot:b}}),O=E[0].inst,L=E[1];return h(function(){O.value=_,O.getSnapshot=b,y(O)&&L({inst:O})},[g,_,b]),r(function(){return y(O)&&L({inst:O}),g(function(){y(O)&&L({inst:O})})},[g]),m(_),_}function y(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!s(g,_)}catch{return!0}}function d(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:p;return qo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,qo}var Fm;function oS(){return Fm||(Fm=1,Ho.exports=cS()),Ho.exports}var km;function rS(){if(km)return jo;km=1;var l=Oi(),i=oS();function s(d,S){return d===S&&(d!==0||1/d===1/S)||d!==d&&S!==S}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,m=l.useEffect,p=l.useMemo,y=l.useDebugValue;return jo.useSyncExternalStoreWithSelector=function(d,S,g,b,_){var E=h(null);if(E.current===null){var O={hasValue:!1,value:null};E.current=O}else O=E.current;E=p(function(){function D(J){if(!Q){if(Q=!0,G=J,J=b(J),_!==void 0&&O.hasValue){var q=O.value;if(_(q,J))return Y=q}return Y=J}if(q=Y,o(G,J))return q;var V=b(J);return _!==void 0&&_(q,V)?(G=J,q):(G=J,Y=V)}var Q=!1,G,Y,$=g===void 0?null:g;return[function(){return D(S())},$===null?void 0:function(){return D($())}]},[S,g,b,_]);var L=r(d,E[0],E[1]);return m(function(){O.hasValue=!0,O.value=L},[L]),y(L),L},jo}var Wm;function fS(){return Wm||(Wm=1,Bo.exports=rS()),Bo.exports}var hS=fS();function dS(l,i){return l===i}function Me(l,i,s=dS){const o=W.useCallback(m=>{if(!l)return()=>{};const{unsubscribe:p}=l.subscribe(m);return p},[l]),r=W.useCallback(()=>l?.get(),[l]);return hS.useSyncExternalStoreWithSelector(o,r,r,i,s)}var mS={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ea(l){const i=Be(),s=W.useContext(l.from?nS:ss),o=l.from??s,r=o?l.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,h=W.useRef(void 0);return Me(r??mS,m=>{if((l.shouldThrow??!0)&&!m&&vn(),m===void 0)return;const p=l.select?l.select(m):m;if(l.structuralSharing??i.options.defaultStructuralSharing){const y=va(h.current,p);return h.current=y,y}return p})}function Dy(l){return Ea({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function Uy(l){const{select:i,...s}=l;return Ea({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Ly(l){return Ea({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 wy(l){return Ea({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function Ny(l){const i=Be();return W.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function By(l){return Ea({...l,select:i=>l.select?l.select(i.context):i.context})}var yS=ty();function vS(l,i){const s=Be(),o=Wg(i),{activeProps:r,inactiveProps:h,activeOptions:m,to:p,preload:y,preloadDelay:d,preloadIntentProximity:S,hashScrollIntoView:g,replace:b,startTransition:_,resetScroll:E,viewTransition:O,children:L,target:D,disabled:Q,style:G,className:Y,onClick:$,onBlur:J,onFocus:q,onMouseEnter:V,onMouseLeave:K,onTouchStart:et,ignoreBlocker:F,params:ut,search:rt,hash:Bt,state:Mt,mask:w,reloadDocument:X,unsafeRelative:at,from:bt,_fromLocation:Rt,...M}=l,j=Oy(),Z=W.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,Dt=>Dt,(Dt,kt)=>Dt.href===kt.href),tt=W.useMemo(()=>{const Dt={_fromLocation:P,...Z};return s.buildLocation(Dt)},[s,P,Z]),ft=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,pt=tt.maskedLocation?tt.maskedLocation.external:tt.external,qt=W.useMemo(()=>RS(ft,pt,s.history,Q),[Q,pt,ft,s.history]),xt=W.useMemo(()=>{if(qt?.external)return ts(qt.href,s.protocolAllowlist)?void 0:qt.href;if(!ES(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),ts(p,s.protocolAllowlist)?void 0:p}catch{}},[p,qt,s.protocolAllowlist]),Pe=W.useMemo(()=>{if(xt)return!1;if(m?.exact){if(!y0(P.pathname,tt.pathname,s.basepath))return!1}else{const Dt=es(P.pathname,s.basepath),kt=es(tt.pathname,s.basepath);if(!(Dt.startsWith(kt)&&(Dt.length===kt.length||Dt[kt.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Sa(P.search,tt.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?j&&P.hash===tt.hash:!0},[m?.exact,m?.explicitUndefined,m?.includeHash,m?.includeSearch,P,xt,j,tt.hash,tt.pathname,tt.search,s.basepath]),Fe=Pe?Vn(r,{})??pS:Qo,pn=Pe?Qo:Vn(h,{})??Qo,vl=[Y,Fe.className,pn.className].filter(Boolean).join(" "),Ye=(G||Fe.style||pn.style)&&{...G,...Fe.style,...pn.style},[pl,Ta]=W.useState(!1),Ci=W.useRef(!1),ke=l.reloadDocument||xt?!1:y??s.options.defaultPreload,Fn=d??s.options.defaultPreloadDelay??0,je=W.useCallback(()=>{s.preloadRoute({...Z,_builtLocation:tt}).catch(Dt=>{console.warn(Dt),console.warn(k0)})},[s,Z,tt]);kg(o,W.useCallback(Dt=>{Dt?.isIntersecting&&je()},[je]),_S,{disabled:!!Q||ke!=="viewport"}),W.useEffect(()=>{Ci.current||!Q&&ke==="render"&&(je(),Ci.current=!0)},[Q,je,ke]);const gl=Dt=>{const kt=Dt.currentTarget.getAttribute("target"),Ge=D!==void 0?D:kt;if(!Q&&!TS(Dt)&&!Dt.defaultPrevented&&(!Ge||Ge==="_self")&&Dt.button===0){Dt.preventDefault(),yS.flushSync(()=>{Ta(!0)});const Ma=s.subscribe("onResolved",()=>{Ma(),Ta(!1)});s.navigate({...Z,replace:b,resetScroll:E,hashScrollIntoView:g,startTransition:_,viewTransition:O,ignoreBlocker:F})}};if(xt)return{...M,ref:o,href:xt,...L&&{children:L},...D&&{target:D},...Q&&{disabled:Q},...G&&{style:G},...Y&&{className:Y},...$&&{onClick:$},...J&&{onBlur:J},...q&&{onFocus:q},...V&&{onMouseEnter:V},...K&&{onMouseLeave:K},...et&&{onTouchStart:et}};const Ai=Dt=>{if(Q||ke!=="intent")return;if(!Fn){je();return}const kt=Dt.currentTarget;if(pi.has(kt))return;const Ge=setTimeout(()=>{pi.delete(kt),je()},Fn);pi.set(kt,Ge)},cs=Dt=>{Q||ke!=="intent"||je()},ne=Dt=>{if(Q||!ke||!Fn)return;const kt=Dt.currentTarget,Ge=pi.get(kt);Ge&&(clearTimeout(Ge),pi.delete(kt))};return{...M,...Fe,...pn,href:qt?.href,ref:o,onClick:rl([$,gl]),onBlur:rl([J,ne]),onFocus:rl([q,Ai]),onMouseEnter:rl([V,Ai]),onMouseLeave:rl([K,ne]),onTouchStart:rl([et,cs]),disabled:!!Q,target:D,...Ye&&{style:Ye},...vl&&{className:vl},...Q&&gS,...Pe&&SS,...j&&pl&&bS}}var Qo={},pS={className:"active"},gS={role:"link","aria-disabled":!0},SS={"data-status":"active","aria-current":"page"},bS={"data-transitioning":"transitioning"},pi=new WeakMap,_S={rootMargin:"100px"},rl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function RS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function ES(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var jy=W.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=vS(o,i),m=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:p,...y}=h;return W.createElement("a",y,m)}return W.createElement(s,h,m)});function TS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var MS=class extends My{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>By({...i,from:this.id}),this.useSearch=i=>wy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Ly({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Uy({...i,from:this.id}),this.useLoaderData=i=>Dy({...i,from:this.id}),this.useNavigate=()=>Ny({from:this.fullPath}),this.Link=Si.forwardRef((i,s)=>lt.jsx(jy,{ref:s,from:this.fullPath,...i}))}};function OS(l){return new MS(l)}var CS=class extends W0{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>By({...i,from:this.id}),this.useSearch=i=>wy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Ly({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Uy({...i,from:this.id}),this.useLoaderData=i=>Dy({...i,from:this.id}),this.useNavigate=()=>Ny({from:this.fullPath}),this.Link=Si.forwardRef((i,s)=>lt.jsx(jy,{ref:s,from:this.fullPath,...i}))}};function IS(l){return new CS(l)}function $S(l){return new AS(l,{silent:!0}).createRoute}var AS=class{constructor(l,i){this.path=l,this.createRoute=s=>{const o=OS(s);return o.isRoot=!1,o},this.silent=i?.silent}};function xS(l){const i=Be(),s=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return lt.jsx(cr,{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 zS(){return lt.jsx("p",{children:"Not Found"})}function fl(l){return lt.jsx(lt.Fragment,{children:l.children})}function Hy(l,i,s){return i.options.notFoundComponent?lt.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?lt.jsx(l.options.defaultNotFoundComponent,{...s}):lt.jsx(zS,{})}function DS(l){return null}function US(){return DS(Be()),null}var qy=W.memo(function({matchId:i}){const s=Be(),o=s.stores.matchStores.get(i);o||vn();const r=Me(s.stores.loadedAt,m=>m),h=Me(o,m=>m);return lt.jsx(LS,{router:s,matchId:i,resetKey:r,matchState:W.useMemo(()=>{const m=h.routeId,p=s.routesById[m].parentRoute?.id;return{routeId:m,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:p}},[h._displayPending,h.routeId,h.ssr,s.routesById])})});function LS({router:l,matchId:i,resetKey:s,matchState:o}){const r=l.routesById[o.routeId],h=r.options.pendingComponent??l.options.defaultPendingComponent,m=h?lt.jsx(h,{}):null,p=r.options.errorComponent??l.options.defaultErrorComponent,y=r.options.onCatch??l.options.defaultOnCatch,d=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))?W.Suspense:fl,b=p?cr:fl,_=d?xS:fl;return lt.jsxs(r.isRoot?r.options.shellComponent??fl:fl,{children:[lt.jsx(ss.Provider,{value:i,children:lt.jsx(g,{fallback:m,children:lt.jsx(b,{getResetKey:()=>s,errorComponent:p||or,onCatch:(E,O)=>{if(le(E))throw E.routeId??=o.routeId,E;y?.(E,O)},children:lt.jsx(_,{fallback:E=>{if(E.routeId??=o.routeId,!d||E.routeId&&E.routeId!==o.routeId||!E.routeId&&!r.isRoot)throw E;return W.createElement(d,E)},children:S||o._displayPending?lt.jsx(tS,{fallback:m,children:lt.jsx(Im,{matchId:i})}):lt.jsx(Im,{matchId:i})})})})}),o.parentRouteId===ba?lt.jsxs(lt.Fragment,{children:[lt.jsx(wS,{resetKey:s}),l.options.scrollRestoration&&yy?lt.jsx(US,{}):null]}):null]})}function wS({resetKey:l}){const i=Be(),s=W.useRef(void 0);return gi(()=>{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=W.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||vn();const h=Me(r,S=>S),m=h.routeId,p=s.routesById[m],y=W.useMemo(()=>{const S=(s.routesById[m].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:m,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return S?JSON.stringify(S):void 0},[m,h.loaderDeps,h._strictParams,h._strictSearch,s.options.defaultRemountDeps,s.routesById]),d=W.useMemo(()=>{const S=p.options.component??s.options.defaultComponent;return S?lt.jsx(S,{},y):lt.jsx(NS,{})},[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)||vn(),Hy(s,p,h.error);if(h.status==="redirected")throw me(h.error)||vn(),o(h,"loadPromise");if(h.status==="error")throw h.error;return d}),NS=W.memo(function(){const i=Be(),s=W.useContext(ss);let o,r=!1,h;{const d=s?i.stores.matchStores.get(s):void 0;[o,r]=Me(d,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===s)+1])}const m=o?i.routesById[o]:void 0,p=i.options.defaultPendingComponent?lt.jsx(i.options.defaultPendingComponent,{}):null;if(r)return m||vn(),Hy(i,m,void 0);if(!h)return null;const y=lt.jsx(qy,{matchId:h});return o===ba?lt.jsx(W.Suspense,{fallback:p,children:y}):y});function BS(){const l=Be(),i=W.useRef({router:l,mounted:!1}),[s,o]=W.useState(!1),r=Me(l.stores.isLoading,g=>g),h=Me(l.stores.hasPending,g=>g),m=Ao(r),p=r||s||h,y=Ao(p),d=r||h,S=Ao(d);return l.startTransition=g=>{o(!0),W.startTransition(()=>{g(),o(!1)})},W.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 Jn(l.latestLocation.publicHref)!==Jn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{g()}},[l,l.history]),gi(()=>{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]),gi(()=>{m&&!r&&l.emit({type:"onLoad",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,l,r]),gi(()=>{S&&!d&&l.emit({type:"onBeforeRouteMount",...hl(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,S,l]),gi(()=>{if(y&&!p){const g=hl(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...g}),xy(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())}),g.hrefChanged&&I0(l)}},[p,y,l]),null}function jS(){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:W.Suspense,{fallback:s,children:[lt.jsx(BS,{}),lt.jsx(HS,{})]});return l.options.InnerWrap?lt.jsx(l.options.InnerWrap,{children:o}):o}function HS(){const l=Be(),i=Me(l.stores.firstId,r=>r),s=Me(l.stores.loadedAt,r=>r),o=i?lt.jsx(qy,{matchId:i}):null;return lt.jsx(ss.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:lt.jsx(cr,{getResetKey:()=>s,errorComponent:or,onCatch:void 0,children:o})})}var qS=l=>({createMutableStore:Jm,createReadonlyStore:Jm,batch:xy}),tb=l=>new QS(l),QS=class extends X0{constructor(l){super(l,qS)}};function YS({router:l,children:i,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=lt.jsx(Cy.Provider,{value:l,children:i});return l.options.Wrap?lt.jsx(l.options.Wrap,{children:o}):o}function eb({router:l,...i}){return lt.jsx(YS,{router:l,...i,children:lt.jsx(jS,{})})}const GS="modulepreload",XS=function(l){return"/"+l},$m={},nb=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let y=function(d){return Promise.all(d.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),p=m?.nonce||m?.getAttribute("nonce");r=y(s.map(d=>{if(d=XS(d),d in $m)return;$m[d]=!0;const S=d.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":GS,S||(b.as="script"),b.crossOrigin="",b.href=d,p&&b.setAttribute("nonce",p),document.head.appendChild(b),S)return new Promise((_,E)=>{b.addEventListener("load",_),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(m){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=m,window.dispatchEvent(p),!p.defaultPrevented)throw m}return r.then(m=>{for(const p of m||[])p.status==="rejected"&&h(p.reason);return i().catch(h)})};export{NS as O,JS as Q,Si as R,nb as _,hy as a,kS as b,VS as c,WS as d,KS as e,yS as f,ig as g,IS as h,$S as i,lt as j,z0 as k,Ny as l,tb as m,PS as n,eb as o,ZS as p,W as r,FS as u};
|