const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-BeWMw3rv.js","assets/arrow-left-BCbxOhwr.js","assets/Onboard-Dskct_uT.js","assets/sparkles-B_fRgra5.js","assets/chevron-left-CszmN4ew.js","assets/chevron-right-C6HnkgbW.js","assets/MainLayout--ahK6uhf.js","assets/conv-Bjv4KHHA.js","assets/apns-sync-QtkY3KuK.js","assets/message-square-C_2krCe_.js","assets/inbox--WgPiz9p.js","assets/shield-alert-BMBo5hwV.js","assets/ChatList-NyeQ20oP.js","assets/moon-D8G1Jab0.js","assets/EmailP2PChatView-CRdromJV.js","assets/utils-ByjjaO5W.js","assets/OverflowMenu-DJzqLCzM.js","assets/check-nLNiXUjs.js","assets/safety-E_f_lY8Z.js","assets/loader-circle-DyQaSIqS.js","assets/pencil-BzXEGuPc.js","assets/rotate-ccw-2iXWu7iJ.js","assets/send-C0h2ZO9-.js","assets/Discover-9x-q0pNa.js","assets/useTopics-5z2qXUdo.js","assets/radio-F28iVYDm.js","assets/Inbox-DNsB1k_L.js","assets/tag-CWDawkLr.js","assets/InboxDetail-BygefJqX.js","assets/circle-x-Digfokbc.js","assets/TopicDetail-D3_qrT9i.js","assets/Notifications-BsYjQ_xW.js","assets/Settings-hppbMnGd.js","assets/email-CU3Ykopu.js","assets/NotificationTest-BiizG7na.js","assets/Claiming-_z07DhGx.js","assets/Signin-NGwkbIjV.js","assets/Demo-CyuHWEpq.js","assets/ChatKit-CSpt3uvp.js","assets/pgsl-driver-CqczDiy1.js","assets/TypingLoader-CK_kuktd.js","assets/pgsl-llm-callbacks-CViR11kC.js","assets/DemoOnboarding-BREfe-Hu.js","assets/DemoOnboarding-DWhtEAT3.css","assets/JobChannel-BBvVKbMe.js","assets/PlanCard-4wkH7N-p.js","assets/ConversationChannel-3dZJC7Pf.js","assets/BeckyAvatar-BGQu3t5Y.js","assets/sleep-intake-CHdAVVZe.js","assets/use-warm-theme-ajGMlTyE.js","assets/AdminTrace-D3rrvrOX.js","assets/AdminReports-d8tR86fi.js","assets/InChatFunnel-ClEPGwCc.js","assets/intake-sleep-VhqKU7tw.js","assets/meta-pixel-oND_FF6D.js","assets/Baby-BvQqGctV.js","assets/BabyIntake-BBaoq1b9.js","assets/BabyQuiz-8WFFMAE5.js"])))=>i.map(i=>d[i]);
var Rg=Object.defineProperty;var Cg=(u,i,o)=>i in u?Rg(u,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):u[i]=o;var Gh=(u,i,o)=>Cg(u,typeof i!="symbol"?i+"":i,o);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function o(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=o(f);fetch(f.href,d)}})();const zg="modulepreload",Og=function(u){return"/"+u},Xh={},Dt=function(i,o,r){let f=Promise.resolve();if(o&&o.length>0){let g=function(m){return Promise.all(m.map(T=>Promise.resolve(T).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),y=(b==null?void 0:b.nonce)||(b==null?void 0:b.getAttribute("nonce"));f=g(o.map(m=>{if(m=Og(m),m in Xh)return;Xh[m]=!0;const T=m.endsWith(".css"),A=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${A}`))return;const N=document.createElement("link");if(N.rel=T?"stylesheet":zg,T||(N.as="script"),N.crossOrigin="",N.href=m,y&&N.setAttribute("nonce",y),document.head.appendChild(N),T)return new Promise((Q,Z)=>{N.addEventListener("load",Q),N.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return f.then(g=>{for(const b of g||[])b.status==="rejected"&&d(b.reason);return i().catch(d)})};var uo={exports:{}},ui={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qh;function Ng(){if(Qh)return ui;Qh=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(r,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var b in f)b!=="key"&&(d[b]=f[b])}else d=f;return f=d.ref,{$$typeof:u,type:r,key:g,ref:f!==void 0?f:null,props:d}}return ui.Fragment=i,ui.jsx=o,ui.jsxs=o,ui}var Zh;function kg(){return Zh||(Zh=1,uo.exports=Ng()),uo.exports}var w=kg(),so={exports:{}},ct={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kh;function Ug(){if(Kh)return ct;Kh=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),N=Symbol.iterator;function Q(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,j={};function O(x,q,J){this.props=x,this.context=q,this.refs=j,this.updater=J||Z}O.prototype.isReactComponent={},O.prototype.setState=function(x,q){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,q,"setState")},O.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function k(){}k.prototype=O.prototype;function p(x,q,J){this.props=x,this.context=q,this.refs=j,this.updater=J||Z}var $=p.prototype=new k;$.constructor=p,G($,O.prototype),$.isPureReactComponent=!0;var X=Array.isArray;function tt(){}var K={H:null,A:null,T:null,S:null},Et=Object.prototype.hasOwnProperty;function Qt(x,q,J){var I=J.ref;return{$$typeof:u,type:x,key:q,ref:I!==void 0?I:null,props:J}}function re(x,q){return Qt(x.type,q,x.props)}function le(x){return typeof x=="object"&&x!==null&&x.$$typeof===u}function kt(x){var q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(J){return q[J]})}var ve=/\/+/g;function pe(x,q){return typeof x=="object"&&x!==null&&x.key!=null?kt(""+x.key):q.toString(36)}function Ht(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(tt,tt):(x.status="pending",x.then(function(q){x.status==="pending"&&(x.status="fulfilled",x.value=q)},function(q){x.status==="pending"&&(x.status="rejected",x.reason=q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function U(x,q,J,I,ot){var ht=typeof x;(ht==="undefined"||ht==="boolean")&&(x=null);var V=!1;if(x===null)V=!0;else switch(ht){case"bigint":case"string":case"number":V=!0;break;case"object":switch(x.$$typeof){case u:case i:V=!0;break;case T:return V=x._init,U(V(x._payload),q,J,I,ot)}}if(V)return ot=ot(x),V=I===""?"."+pe(x,0):I,X(ot)?(J="",V!=null&&(J=V.replace(ve,"$&/")+"/"),U(ot,q,J,"",function(st){return st})):ot!=null&&(le(ot)&&(ot=re(ot,J+(ot.key==null||x&&x.key===ot.key?"":(""+ot.key).replace(ve,"$&/")+"/")+V)),q.push(ot)),1;V=0;var Y=I===""?".":I+":";if(X(x))for(var W=0;W<x.length;W++)I=x[W],ht=Y+pe(I,W),V+=U(I,q,J,ht,ot);else if(W=Q(x),typeof W=="function")for(x=W.call(x),W=0;!(I=x.next()).done;)I=I.value,ht=Y+pe(I,W++),V+=U(I,q,J,ht,ot);else if(ht==="object"){if(typeof x.then=="function")return U(Ht(x),q,J,I,ot);throw q=String(x),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return V}function M(x,q,J){if(x==null)return x;var I=[],ot=0;return U(x,I,"","",function(ht){return q.call(J,ht,ot++)}),I}function P(x){if(x._status===-1){var q=x._result;q=q(),q.then(function(J){(x._status===0||x._status===-1)&&(x._status=1,x._result=J)},function(J){(x._status===0||x._status===-1)&&(x._status=2,x._result=J)}),x._status===-1&&(x._status=0,x._result=q)}if(x._status===1)return x._result.default;throw x._result}var rt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},nt={map:M,forEach:function(x,q,J){M(x,function(){q.apply(this,arguments)},J)},count:function(x){var q=0;return M(x,function(){q++}),q},toArray:function(x){return M(x,function(q){return q})||[]},only:function(x){if(!le(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ct.Activity=A,ct.Children=nt,ct.Component=O,ct.Fragment=o,ct.Profiler=f,ct.PureComponent=p,ct.StrictMode=r,ct.Suspense=y,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ct.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},ct.cache=function(x){return function(){return x.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(x,q,J){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var I=G({},x.props),ot=x.key;if(q!=null)for(ht in q.key!==void 0&&(ot=""+q.key),q)!Et.call(q,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&q.ref===void 0||(I[ht]=q[ht]);var ht=arguments.length-2;if(ht===1)I.children=J;else if(1<ht){for(var V=Array(ht),Y=0;Y<ht;Y++)V[Y]=arguments[Y+2];I.children=V}return Qt(x.type,ot,I)},ct.createContext=function(x){return x={$$typeof:g,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ct.createElement=function(x,q,J){var I,ot={},ht=null;if(q!=null)for(I in q.key!==void 0&&(ht=""+q.key),q)Et.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ot[I]=q[I]);var V=arguments.length-2;if(V===1)ot.children=J;else if(1<V){for(var Y=Array(V),W=0;W<V;W++)Y[W]=arguments[W+2];ot.children=Y}if(x&&x.defaultProps)for(I in V=x.defaultProps,V)ot[I]===void 0&&(ot[I]=V[I]);return Qt(x,ht,ot)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(x){return{$$typeof:b,render:x}},ct.isValidElement=le,ct.lazy=function(x){return{$$typeof:T,_payload:{_status:-1,_result:x},_init:P}},ct.memo=function(x,q){return{$$typeof:m,type:x,compare:q===void 0?null:q}},ct.startTransition=function(x){var q=K.T,J={};K.T=J;try{var I=x(),ot=K.S;ot!==null&&ot(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(tt,rt)}catch(ht){rt(ht)}finally{q!==null&&J.types!==null&&(q.types=J.types),K.T=q}},ct.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ct.use=function(x){return K.H.use(x)},ct.useActionState=function(x,q,J){return K.H.useActionState(x,q,J)},ct.useCallback=function(x,q){return K.H.useCallback(x,q)},ct.useContext=function(x){return K.H.useContext(x)},ct.useDebugValue=function(){},ct.useDeferredValue=function(x,q){return K.H.useDeferredValue(x,q)},ct.useEffect=function(x,q){return K.H.useEffect(x,q)},ct.useEffectEvent=function(x){return K.H.useEffectEvent(x)},ct.useId=function(){return K.H.useId()},ct.useImperativeHandle=function(x,q,J){return K.H.useImperativeHandle(x,q,J)},ct.useInsertionEffect=function(x,q){return K.H.useInsertionEffect(x,q)},ct.useLayoutEffect=function(x,q){return K.H.useLayoutEffect(x,q)},ct.useMemo=function(x,q){return K.H.useMemo(x,q)},ct.useOptimistic=function(x,q){return K.H.useOptimistic(x,q)},ct.useReducer=function(x,q,J){return K.H.useReducer(x,q,J)},ct.useRef=function(x){return K.H.useRef(x)},ct.useState=function(x){return K.H.useState(x)},ct.useSyncExternalStore=function(x,q,J){return K.H.useSyncExternalStore(x,q,J)},ct.useTransition=function(){return K.H.useTransition()},ct.version="19.2.7",ct}var Jh;function Ro(){return Jh||(Jh=1,so.exports=Ug()),so.exports}var E=Ro(),ro={exports:{}},si={},oo={exports:{}},co={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $h;function jg(){return $h||($h=1,(function(u){function i(U,M){var P=U.length;U.push(M);t:for(;0<P;){var rt=P-1>>>1,nt=U[rt];if(0<f(nt,M))U[rt]=M,U[P]=nt,P=rt;else break t}}function o(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var M=U[0],P=U.pop();if(P!==M){U[0]=P;t:for(var rt=0,nt=U.length,x=nt>>>1;rt<x;){var q=2*(rt+1)-1,J=U[q],I=q+1,ot=U[I];if(0>f(J,P))I<nt&&0>f(ot,J)?(U[rt]=ot,U[I]=P,rt=I):(U[rt]=J,U[q]=P,rt=q);else if(I<nt&&0>f(ot,P))U[rt]=ot,U[I]=P,rt=I;else break t}}return M}function f(U,M){var P=U.sortIndex-M.sortIndex;return P!==0?P:U.id-M.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;u.unstable_now=function(){return d.now()}}else{var g=Date,b=g.now();u.unstable_now=function(){return g.now()-b}}var y=[],m=[],T=1,A=null,N=3,Q=!1,Z=!1,G=!1,j=!1,O=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function $(U){for(var M=o(m);M!==null;){if(M.callback===null)r(m);else if(M.startTime<=U)r(m),M.sortIndex=M.expirationTime,i(y,M);else break;M=o(m)}}function X(U){if(G=!1,$(U),!Z)if(o(y)!==null)Z=!0,tt||(tt=!0,kt());else{var M=o(m);M!==null&&Ht(X,M.startTime-U)}}var tt=!1,K=-1,Et=5,Qt=-1;function re(){return j?!0:!(u.unstable_now()-Qt<Et)}function le(){if(j=!1,tt){var U=u.unstable_now();Qt=U;var M=!0;try{t:{Z=!1,G&&(G=!1,k(K),K=-1),Q=!0;var P=N;try{e:{for($(U),A=o(y);A!==null&&!(A.expirationTime>U&&re());){var rt=A.callback;if(typeof rt=="function"){A.callback=null,N=A.priorityLevel;var nt=rt(A.expirationTime<=U);if(U=u.unstable_now(),typeof nt=="function"){A.callback=nt,$(U),M=!0;break e}A===o(y)&&r(y),$(U)}else r(y);A=o(y)}if(A!==null)M=!0;else{var x=o(m);x!==null&&Ht(X,x.startTime-U),M=!1}}break t}finally{A=null,N=P,Q=!1}M=void 0}}finally{M?kt():tt=!1}}}var kt;if(typeof p=="function")kt=function(){p(le)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,pe=ve.port2;ve.port1.onmessage=le,kt=function(){pe.postMessage(null)}}else kt=function(){O(le,0)};function Ht(U,M){K=O(function(){U(u.unstable_now())},M)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(U){U.callback=null},u.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Et=0<U?Math.floor(1e3/U):5},u.unstable_getCurrentPriorityLevel=function(){return N},u.unstable_next=function(U){switch(N){case 1:case 2:case 3:var M=3;break;default:M=N}var P=N;N=M;try{return U()}finally{N=P}},u.unstable_requestPaint=function(){j=!0},u.unstable_runWithPriority=function(U,M){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var P=N;N=U;try{return M()}finally{N=P}},u.unstable_scheduleCallback=function(U,M,P){var rt=u.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?rt+P:rt):P=rt,U){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=P+nt,U={id:T++,callback:M,priorityLevel:U,startTime:P,expirationTime:nt,sortIndex:-1},P>rt?(U.sortIndex=P,i(m,U),o(y)===null&&U===o(m)&&(G?(k(K),K=-1):G=!0,Ht(X,P-rt))):(U.sortIndex=nt,i(y,U),Z||Q||(Z=!0,tt||(tt=!0,kt()))),U},u.unstable_shouldYield=re,u.unstable_wrapCallback=function(U){var M=N;return function(){var P=N;N=M;try{return U.apply(this,arguments)}finally{N=P}}}})(co)),co}var Ph;function Lg(){return Ph||(Ph=1,oo.exports=jg()),oo.exports}var fo={exports:{}},me={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Wh;function Bg(){if(Wh)return me;Wh=1;var u=Ro();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)m+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,m,T){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:A==null?null:""+A,children:y,containerInfo:m,implementation:T}}var g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(y,m){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(y,m,null,T)},me.flushSync=function(y){var m=g.T,T=r.p;try{if(g.T=null,r.p=2,y)return y()}finally{g.T=m,r.p=T,r.d.f()}},me.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},me.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},me.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var T=m.as,A=b(T,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,Q=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;T==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:A,integrity:N,fetchPriority:Q}):T==="script"&&r.d.X(y,{crossOrigin:A,integrity:N,fetchPriority:Q,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var T=b(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},me.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var T=m.as,A=b(T,m.crossOrigin);r.d.L(y,T,{crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(y,m){if(typeof y=="string")if(m){var T=b(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},me.requestFormReset=function(y){r.d.r(y)},me.unstable_batchedUpdates=function(y,m){return y(m)},me.useFormState=function(y,m,T){return g.H.useFormState(y,m,T)},me.useFormStatus=function(){return g.H.useHostTransitionStatus()},me.version="19.2.7",me}var Fh;function Hg(){if(Fh)return fo.exports;Fh=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),fo.exports=Bg(),fo.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ih;function qg(){if(Ih)return si;Ih=1;var u=Lg(),i=Ro(),o=Hg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}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 f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function g(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 b(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(d(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,n=e;;){var l=a.return;if(l===null)break;var s=l.alternate;if(s===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===s.child){for(s=l.child;s;){if(s===a)return y(l),t;if(s===n)return y(l),e;s=s.sibling}throw Error(r(188))}if(a.return!==n.return)a=l,n=s;else{for(var c=!1,h=l.child;h;){if(h===a){c=!0,a=l,n=s;break}if(h===n){c=!0,n=l,a=s;break}h=h.sibling}if(!c){for(h=s.child;h;){if(h===a){c=!0,a=s,n=l;break}if(h===n){c=!0,n=s,a=l;break}h=h.sibling}if(!c)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var A=Object.assign,N=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),p=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Et=Symbol.for("react.lazy"),Qt=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function kt(t){return t===null||typeof t!="object"?null:(t=le&&t[le]||t["@@iterator"],typeof t=="function"?t:null)}var ve=Symbol.for("react.client.reference");function pe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ve?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case G:return"Fragment";case O:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case tt:return"SuspenseList";case Qt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case p:return t.displayName||"Context";case k:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case K:return e=t.displayName||null,e!==null?e:pe(t.type)||"Memo";case Et:e=t._payload,t=t._init;try{return pe(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},rt=[],nt=-1;function x(t){return{current:t}}function q(t){0>nt||(t.current=rt[nt],rt[nt]=null,nt--)}function J(t,e){nt++,rt[nt]=t.current,t.current=e}var I=x(null),ot=x(null),ht=x(null),V=x(null);function Y(t,e){switch(J(ht,e),J(ot,t),J(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dh(e),t=hh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(I),J(I,t)}function W(){q(I),q(ot),q(ht)}function st(t){t.memoizedState!==null&&J(V,t);var e=I.current,a=hh(e,t.type);e!==a&&(J(ot,t),J(I,a))}function lt(t){ot.current===t&&(q(I),q(ot)),V.current===t&&(q(V),ai._currentValue=P)}var ut,Ct;function mt(t){if(ut===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ut=e&&e[1]||"",Ct=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ut+t+Ct}var xt=!1;function Zt(t,e){if(!t||xt)return"";xt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={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(z){var C=z}Reflect.construct(t,[],H)}else{try{H.call()}catch(z){C=z}t.call(H.prototype)}}else{try{throw Error()}catch(z){C=z}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),c=s[0],h=s[1];if(c&&h){var v=c.split(`
`),R=h.split(`
`);for(l=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;if(n===v.length||l===R.length)for(n=v.length-1,l=R.length-1;1<=n&&0<=l&&v[n]!==R[l];)l--;for(;1<=n&&0<=l;n--,l--)if(v[n]!==R[l]){if(n!==1||l!==1)do if(n--,l--,0>l||v[n]!==R[l]){var L=`
`+v[n].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=n&&0<=l);break}}}finally{xt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?mt(a):""}function zt(t,e){switch(t.tag){case 26:case 27:case 5:return mt(t.type);case 16:return mt("Lazy");case 13:return t.child!==e&&e!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Zt(t.type,!1);case 11:return Zt(t.type.render,!1);case 1:return Zt(t.type,!0);case 31:return mt("Activity");default:return""}}function Kt(t){try{var e="",a=null;do e+=zt(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var be=Object.prototype.hasOwnProperty,Jt=u.unstable_scheduleCallback,De=u.unstable_cancelCallback,ge=u.unstable_shouldYield,ie=u.unstable_requestPaint,qt=u.unstable_now,ia=u.unstable_getCurrentPriorityLevel,ua=u.unstable_ImmediatePriority,Xo=u.unstable_UserBlockingPriority,gi=u.unstable_NormalPriority,c0=u.unstable_LowPriority,Qo=u.unstable_IdlePriority,f0=u.log,d0=u.unstable_setDisableYieldValue,ml=null,Re=null;function Oa(t){if(typeof f0=="function"&&d0(t),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(ml,t)}catch{}}var Ce=Math.clz32?Math.clz32:p0,h0=Math.log,m0=Math.LN2;function p0(t){return t>>>=0,t===0?32:31-(h0(t)/m0|0)|0}var yi=256,vi=262144,bi=4194304;function ln(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 Si(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var l=0,s=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~s,n!==0?l=ln(n):(c&=h,c!==0?l=ln(c):a||(a=h&~t,a!==0&&(l=ln(a))))):(h=n&~s,h!==0?l=ln(h):c!==0?l=ln(c):a||(a=n&~t,a!==0&&(l=ln(a)))),l===0?0:e!==0&&e!==l&&(e&s)===0&&(s=l&-l,a=e&-e,s>=a||s===32&&(a&4194048)!==0)?e:l}function pl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function g0(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 Zo(){var t=bi;return bi<<=1,(bi&62914560)===0&&(bi=4194304),t}function Ju(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function gl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function y0(t,e,a,n,l,s){var c=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var h=t.entanglements,v=t.expirationTimes,R=t.hiddenUpdates;for(a=c&~a;0<a;){var L=31-Ce(a),H=1<<L;h[L]=0,v[L]=-1;var C=R[L];if(C!==null)for(R[L]=null,L=0;L<C.length;L++){var z=C[L];z!==null&&(z.lane&=-536870913)}a&=~H}n!==0&&Ko(t,n,0),s!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=s&~(c&~e))}function Ko(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Ce(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Jo(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-Ce(a),l=1<<n;l&e|t[n]&e&&(t[n]|=e),a&=~l}}function $o(t,e){var a=e&-e;return a=(a&42)!==0?1:$u(a),(a&(t.suspendedLanes|e))!==0?0:a}function $u(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 Pu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Po(){var t=M.p;return t!==0?t:(t=window.event,t===void 0?32:jh(t.type))}function Wo(t,e){var a=M.p;try{return M.p=t,e()}finally{M.p=a}}var Na=Math.random().toString(36).slice(2),oe="__reactFiber$"+Na,Se="__reactProps$"+Na,Tn="__reactContainer$"+Na,Wu="__reactEvents$"+Na,v0="__reactListeners$"+Na,b0="__reactHandles$"+Na,Fo="__reactResources$"+Na,yl="__reactMarker$"+Na;function Fu(t){delete t[oe],delete t[Se],delete t[Wu],delete t[v0],delete t[b0]}function Mn(t){var e=t[oe];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Tn]||a[oe]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Sh(t);t!==null;){if(a=t[oe])return a;t=Sh(t)}return e}t=a,a=t.parentNode}return null}function Dn(t){if(t=t[oe]||t[Tn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function vl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Rn(t){var e=t[Fo];return e||(e=t[Fo]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[yl]=!0}var Io=new Set,tc={};function un(t,e){Cn(t,e),Cn(t+"Capture",e)}function Cn(t,e){for(tc[t]=e,t=0;t<e.length;t++)Io.add(e[t])}var S0=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]*$"),ec={},ac={};function w0(t){return be.call(ac,t)?!0:be.call(ec,t)?!1:S0.test(t)?ac[t]=!0:(ec[t]=!0,!1)}function wi(t,e,a){if(w0(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Ei(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function fa(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+n)}}function qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function nc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function E0(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(c){a=""+c,s.call(this,c)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Iu(t){if(!t._valueTracker){var e=nc(t)?"checked":"value";t._valueTracker=E0(t,e,""+t[e])}}function lc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=nc(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function xi(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 x0=/[\n"\\]/g;function Ye(t){return t.replace(x0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ts(t,e,a,n,l,s,c,h){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qe(e)):t.value!==""+qe(e)&&(t.value=""+qe(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?es(t,c,qe(e)):a!=null?es(t,c,qe(a)):n!=null&&t.removeAttribute("value"),l==null&&s!=null&&(t.defaultChecked=!!s),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+qe(h):t.removeAttribute("name")}function ic(t,e,a,n,l,s,c,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Iu(t);return}a=a!=null?""+qe(a):"",e=e!=null?""+qe(e):a,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),Iu(t)}function es(t,e,a){e==="number"&&xi(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function zn(t,e,a,n){if(t=t.options,e){e={};for(var l=0;l<a.length;l++)e["$"+a[l]]=!0;for(a=0;a<t.length;a++)l=e.hasOwnProperty("$"+t[a].value),t[a].selected!==l&&(t[a].selected=l),l&&n&&(t[a].defaultSelected=!0)}else{for(a=""+qe(a),e=null,l=0;l<t.length;l++){if(t[l].value===a){t[l].selected=!0,n&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function uc(t,e,a){if(e!=null&&(e=""+qe(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+qe(a):""}function sc(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(r(92));if(Ht(n)){if(1<n.length)throw Error(r(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=qe(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),Iu(t)}function On(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var A0=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 rc(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||A0.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function oc(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var l in e)n=e[l],e.hasOwnProperty(l)&&a[l]!==n&&rc(t,l,n)}else for(var s in e)e.hasOwnProperty(s)&&rc(t,s,e[s])}function as(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 _0=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"]]),T0=/^[\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 Ai(t){return T0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function da(){}var ns=null;function ls(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Nn=null,kn=null;function cc(t){var e=Dn(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(ts(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ye(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var l=n[Se]||null;if(!l)throw Error(r(90));ts(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&lc(n)}break t;case"textarea":uc(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&zn(t,!!a.multiple,e,!1)}}}var is=!1;function fc(t,e,a){if(is)return t(e,a);is=!0;try{var n=t(e);return n}finally{if(is=!1,(Nn!==null||kn!==null)&&(fu(),Nn&&(e=Nn,t=kn,kn=Nn=null,cc(e),t)))for(e=0;e<t.length;e++)cc(t[e])}}function bl(t,e){var a=t.stateNode;if(a===null)return null;var n=a[Se]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ha=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),us=!1;if(ha)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){us=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{us=!1}var ka=null,ss=null,_i=null;function dc(){if(_i)return _i;var t,e=ss,a=e.length,n,l="value"in ka?ka.value:ka.textContent,s=l.length;for(t=0;t<a&&e[t]===l[t];t++);var c=a-t;for(n=1;n<=c&&e[a-n]===l[s-n];n++);return _i=l.slice(t,1<n?1-n:void 0)}function Ti(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 Mi(){return!0}function hc(){return!1}function we(t){function e(a,n,l,s,c){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=s,this.target=c,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(a=t[h],this[h]=a?a(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Mi:hc,this.isPropagationStopped=hc,this}return A(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Mi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),e}var sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=we(sn),wl=A({},sn,{view:0,detail:0}),M0=we(wl),rs,os,El,Ri=A({},wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fs,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!==El&&(El&&t.type==="mousemove"?(rs=t.screenX-El.screenX,os=t.screenY-El.screenY):os=rs=0,El=t),rs)},movementY:function(t){return"movementY"in t?t.movementY:os}}),mc=we(Ri),D0=A({},Ri,{dataTransfer:0}),R0=we(D0),C0=A({},wl,{relatedTarget:0}),cs=we(C0),z0=A({},sn,{animationName:0,elapsedTime:0,pseudoElement:0}),O0=we(z0),N0=A({},sn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),k0=we(N0),U0=A({},sn,{data:0}),pc=we(U0),j0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L0={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"},B0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=B0[t])?!!e[t]:!1}function fs(){return H0}var q0=A({},wl,{key:function(t){if(t.key){var e=j0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ti(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?L0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fs,charCode:function(t){return t.type==="keypress"?Ti(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ti(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Y0=we(q0),V0=A({},Ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gc=we(V0),G0=A({},wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fs}),X0=we(G0),Q0=A({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z0=we(Q0),K0=A({},Ri,{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}),J0=we(K0),$0=A({},sn,{newState:0,oldState:0}),P0=we($0),W0=[9,13,27,32],ds=ha&&"CompositionEvent"in window,xl=null;ha&&"documentMode"in document&&(xl=document.documentMode);var F0=ha&&"TextEvent"in window&&!xl,yc=ha&&(!ds||xl&&8<xl&&11>=xl),vc=" ",bc=!1;function Sc(t,e){switch(t){case"keyup":return W0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Un=!1;function I0(t,e){switch(t){case"compositionend":return wc(e);case"keypress":return e.which!==32?null:(bc=!0,vc);case"textInput":return t=e.data,t===vc&&bc?null:t;default:return null}}function tp(t,e){if(Un)return t==="compositionend"||!ds&&Sc(t,e)?(t=dc(),_i=ss=ka=null,Un=!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 yc&&e.locale!=="ko"?null:e.data;default:return null}}var ep={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 Ec(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ep[t.type]:e==="textarea"}function xc(t,e,a,n){Nn?kn?kn.push(n):kn=[n]:Nn=n,e=vu(e,"onChange"),0<e.length&&(a=new Di("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var Al=null,_l=null;function ap(t){uh(t,0)}function Ci(t){var e=vl(t);if(lc(e))return t}function Ac(t,e){if(t==="change")return e}var _c=!1;if(ha){var hs;if(ha){var ms="oninput"in document;if(!ms){var Tc=document.createElement("div");Tc.setAttribute("oninput","return;"),ms=typeof Tc.oninput=="function"}hs=ms}else hs=!1;_c=hs&&(!document.documentMode||9<document.documentMode)}function Mc(){Al&&(Al.detachEvent("onpropertychange",Dc),_l=Al=null)}function Dc(t){if(t.propertyName==="value"&&Ci(_l)){var e=[];xc(e,_l,t,ls(t)),fc(ap,e)}}function np(t,e,a){t==="focusin"?(Mc(),Al=e,_l=a,Al.attachEvent("onpropertychange",Dc)):t==="focusout"&&Mc()}function lp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ci(_l)}function ip(t,e){if(t==="click")return Ci(e)}function up(t,e){if(t==="input"||t==="change")return Ci(e)}function sp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:sp;function Tl(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!be.call(e,l)||!ze(t[l],e[l]))return!1}return!0}function Rc(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cc(t,e){var a=Rc(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Rc(a)}}function zc(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zc(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Oc(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=xi(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=xi(t.document)}return e}function ps(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 rp=ha&&"documentMode"in document&&11>=document.documentMode,jn=null,gs=null,Ml=null,ys=!1;function Nc(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ys||jn==null||jn!==xi(n)||(n=jn,"selectionStart"in n&&ps(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ml&&Tl(Ml,n)||(Ml=n,n=vu(gs,"onSelect"),0<n.length&&(e=new Di("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=jn)))}function rn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ln={animationend:rn("Animation","AnimationEnd"),animationiteration:rn("Animation","AnimationIteration"),animationstart:rn("Animation","AnimationStart"),transitionrun:rn("Transition","TransitionRun"),transitionstart:rn("Transition","TransitionStart"),transitioncancel:rn("Transition","TransitionCancel"),transitionend:rn("Transition","TransitionEnd")},vs={},kc={};ha&&(kc=document.createElement("div").style,"AnimationEvent"in window||(delete Ln.animationend.animation,delete Ln.animationiteration.animation,delete Ln.animationstart.animation),"TransitionEvent"in window||delete Ln.transitionend.transition);function on(t){if(vs[t])return vs[t];if(!Ln[t])return t;var e=Ln[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in kc)return vs[t]=e[a];return t}var Uc=on("animationend"),jc=on("animationiteration"),Lc=on("animationstart"),op=on("transitionrun"),cp=on("transitionstart"),fp=on("transitioncancel"),Bc=on("transitionend"),Hc=new Map,bs="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(" ");bs.push("scrollEnd");function Ie(t,e){Hc.set(t,e),un(e,[t])}var zi=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)},Ve=[],Bn=0,Ss=0;function Oi(){for(var t=Bn,e=Ss=Bn=0;e<t;){var a=Ve[e];Ve[e++]=null;var n=Ve[e];Ve[e++]=null;var l=Ve[e];Ve[e++]=null;var s=Ve[e];if(Ve[e++]=null,n!==null&&l!==null){var c=n.pending;c===null?l.next=l:(l.next=c.next,c.next=l),n.pending=l}s!==0&&qc(a,l,s)}}function Ni(t,e,a,n){Ve[Bn++]=t,Ve[Bn++]=e,Ve[Bn++]=a,Ve[Bn++]=n,Ss|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function ws(t,e,a,n){return Ni(t,e,a,n),ki(t)}function cn(t,e){return Ni(t,null,null,e),ki(t)}function qc(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var l=!1,s=t.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(l=!0)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,l&&e!==null&&(l=31-Ce(a),t=s.hiddenUpdates,n=t[l],n===null?t[l]=[e]:n.push(e),e.lane=a|536870912),s):null}function ki(t){if(50<$l)throw $l=0,Cr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Hn={};function dp(t,e,a,n){this.tag=t,this.key=a,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,a,n){return new dp(t,e,a,n)}function Es(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ma(t,e){var a=t.alternate;return a===null?(a=Oe(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Yc(t,e){t.flags&=65011714;var a=t.alternate;return a===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=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ui(t,e,a,n,l,s){var c=0;if(n=t,typeof t=="function")Es(t)&&(c=1);else if(typeof t=="string")c=yg(t,a,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Qt:return t=Oe(31,a,e,l),t.elementType=Qt,t.lanes=s,t;case G:return fn(a.children,l,s,e);case j:c=8,l|=24;break;case O:return t=Oe(12,a,e,l|2),t.elementType=O,t.lanes=s,t;case X:return t=Oe(13,a,e,l),t.elementType=X,t.lanes=s,t;case tt:return t=Oe(19,a,e,l),t.elementType=tt,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case p:c=10;break t;case k:c=9;break t;case $:c=11;break t;case K:c=14;break t;case Et:c=16,n=null;break t}c=29,a=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=Oe(c,a,e,l),e.elementType=t,e.type=n,e.lanes=s,e}function fn(t,e,a,n){return t=Oe(7,t,n,e),t.lanes=a,t}function xs(t,e,a){return t=Oe(6,t,null,e),t.lanes=a,t}function Vc(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function As(t,e,a){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Gc=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var a=Gc.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Kt(e)},Gc.set(t,e),e)}return{value:t,source:e,stack:Kt(e)}}var qn=[],Yn=0,ji=null,Dl=0,Xe=[],Qe=0,Ua=null,sa=1,ra="";function pa(t,e){qn[Yn++]=Dl,qn[Yn++]=ji,ji=t,Dl=e}function Xc(t,e,a){Xe[Qe++]=sa,Xe[Qe++]=ra,Xe[Qe++]=Ua,Ua=t;var n=sa;t=ra;var l=32-Ce(n)-1;n&=~(1<<l),a+=1;var s=32-Ce(e)+l;if(30<s){var c=l-l%5;s=(n&(1<<c)-1).toString(32),n>>=c,l-=c,sa=1<<32-Ce(e)+l|a<<l|n,ra=s+t}else sa=1<<s|a<<l|n,ra=t}function _s(t){t.return!==null&&(pa(t,1),Xc(t,1,0))}function Ts(t){for(;t===ji;)ji=qn[--Yn],qn[Yn]=null,Dl=qn[--Yn],qn[Yn]=null;for(;t===Ua;)Ua=Xe[--Qe],Xe[Qe]=null,ra=Xe[--Qe],Xe[Qe]=null,sa=Xe[--Qe],Xe[Qe]=null}function Qc(t,e){Xe[Qe++]=sa,Xe[Qe++]=ra,Xe[Qe++]=Ua,sa=e.id,ra=e.overflow,Ua=t}var ce=null,Yt=null,wt=!1,ja=null,Ze=!1,Ms=Error(r(519));function La(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rl(Ge(e,t)),Ms}function Zc(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[oe]=t,e[Se]=n,a){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(a=0;a<Wl.length;a++)yt(Wl[a],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),ic(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),sc(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||ch(e.textContent,a)?(n.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),n.onScroll!=null&&yt("scroll",e),n.onScrollEnd!=null&&yt("scrollend",e),n.onClick!=null&&(e.onclick=da),e=!0):e=!1,e||La(t,!0)}function Kc(t){for(ce=t.return;ce;)switch(ce.tag){case 5:case 31:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:ce=ce.return}}function Vn(t){if(t!==ce)return!1;if(!wt)return Kc(t),wt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Qr(t.type,t.memoizedProps)),a=!a),a&&Yt&&La(t),Kc(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=bh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=bh(t)}else e===27?(e=Yt,Wa(t.type)?(t=Pr,Pr=null,Yt=t):Yt=e):Yt=ce?Je(t.stateNode.nextSibling):null;return!0}function dn(){Yt=ce=null,wt=!1}function Ds(){var t=ja;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),ja=null),t}function Rl(t){ja===null?ja=[t]:ja.push(t)}var Rs=x(null),hn=null,ga=null;function Ba(t,e,a){J(Rs,e._currentValue),e._currentValue=a}function ya(t){t._currentValue=Rs.current,q(Rs)}function Cs(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function zs(t,e,a,n){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){var c=l.child;s=s.firstContext;t:for(;s!==null;){var h=s;s=l;for(var v=0;v<e.length;v++)if(h.context===e[v]){s.lanes|=a,h=s.alternate,h!==null&&(h.lanes|=a),Cs(s.return,a,t),n||(c=null);break t}s=h.next}}else if(l.tag===18){if(c=l.return,c===null)throw Error(r(341));c.lanes|=a,s=c.alternate,s!==null&&(s.lanes|=a),Cs(c,a,t),c=null}else c=l.child;if(c!==null)c.return=l;else for(c=l;c!==null;){if(c===t){c=null;break}if(l=c.sibling,l!==null){l.return=c.return,c=l;break}c=c.return}l=c}}function Gn(t,e,a,n){t=null;for(var l=e,s=!1;l!==null;){if(!s){if((l.flags&524288)!==0)s=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var c=l.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var h=l.type;ze(l.pendingProps.value,c.value)||(t!==null?t.push(h):t=[h])}}else if(l===V.current){if(c=l.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(ai):t=[ai])}l=l.return}t!==null&&zs(e,t,a,n),e.flags|=262144}function Li(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function mn(t){hn=t,ga=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return Jc(hn,t)}function Bi(t,e){return hn===null&&mn(t),Jc(t,e)}function Jc(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ga===null){if(t===null)throw Error(r(308));ga=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ga=ga.next=e;return a}var hp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},mp=u.unstable_scheduleCallback,pp=u.unstable_NormalPriority,It={$$typeof:p,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Os(){return{controller:new hp,data:new Map,refCount:0}}function Cl(t){t.refCount--,t.refCount===0&&mp(pp,function(){t.controller.abort()})}var zl=null,Ns=0,Xn=0,Qn=null;function gp(t,e){if(zl===null){var a=zl=[];Ns=0,Xn=jr(),Qn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Ns++,e.then($c,$c),e}function $c(){if(--Ns===0&&zl!==null){Qn!==null&&(Qn.status="fulfilled");var t=zl;zl=null,Xn=0,Qn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function yp(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var l=0;l<a.length;l++)(0,a[l])(e)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var Pc=U.S;U.S=function(t,e){kd=qt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&gp(t,e),Pc!==null&&Pc(t,e)};var pn=x(null);function ks(){var t=pn.current;return t!==null?t:Bt.pooledCache}function Hi(t,e){e===null?J(pn,pn.current):J(pn,e.pool)}function Wc(){var t=ks();return t===null?null:{parent:It._currentValue,pool:t}}var Zn=Error(r(460)),Us=Error(r(474)),qi=Error(r(542)),Yi={then:function(){}};function Fc(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ic(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(da,da),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ef(t),t;default:if(typeof e.status=="string")e.then(da,da);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=n}},function(n){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ef(t),t}throw yn=e,Zn}}function gn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(yn=a,Zn):a}}var yn=null;function tf(){if(yn===null)throw Error(r(459));var t=yn;return yn=null,t}function ef(t){if(t===Zn||t===qi)throw Error(r(483))}var Kn=null,Ol=0;function Vi(t){var e=Ol;return Ol+=1,Kn===null&&(Kn=[]),Ic(Kn,t,e)}function Nl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Gi(t,e){throw e.$$typeof===N?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function af(t){function e(_,S){if(t){var D=_.deletions;D===null?(_.deletions=[S],_.flags|=16):D.push(S)}}function a(_,S){if(!t)return null;for(;S!==null;)e(_,S),S=S.sibling;return null}function n(_){for(var S=new Map;_!==null;)_.key!==null?S.set(_.key,_):S.set(_.index,_),_=_.sibling;return S}function l(_,S){return _=ma(_,S),_.index=0,_.sibling=null,_}function s(_,S,D){return _.index=D,t?(D=_.alternate,D!==null?(D=D.index,D<S?(_.flags|=67108866,S):D):(_.flags|=67108866,S)):(_.flags|=1048576,S)}function c(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function h(_,S,D,B){return S===null||S.tag!==6?(S=xs(D,_.mode,B),S.return=_,S):(S=l(S,D),S.return=_,S)}function v(_,S,D,B){var at=D.type;return at===G?L(_,S,D.props.children,B,D.key):S!==null&&(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&gn(at)===S.type)?(S=l(S,D.props),Nl(S,D),S.return=_,S):(S=Ui(D.type,D.key,D.props,null,_.mode,B),Nl(S,D),S.return=_,S)}function R(_,S,D,B){return S===null||S.tag!==4||S.stateNode.containerInfo!==D.containerInfo||S.stateNode.implementation!==D.implementation?(S=As(D,_.mode,B),S.return=_,S):(S=l(S,D.children||[]),S.return=_,S)}function L(_,S,D,B,at){return S===null||S.tag!==7?(S=fn(D,_.mode,B,at),S.return=_,S):(S=l(S,D),S.return=_,S)}function H(_,S,D){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=xs(""+S,_.mode,D),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:return D=Ui(S.type,S.key,S.props,null,_.mode,D),Nl(D,S),D.return=_,D;case Z:return S=As(S,_.mode,D),S.return=_,S;case Et:return S=gn(S),H(_,S,D)}if(Ht(S)||kt(S))return S=fn(S,_.mode,D,null),S.return=_,S;if(typeof S.then=="function")return H(_,Vi(S),D);if(S.$$typeof===p)return H(_,Bi(_,S),D);Gi(_,S)}return null}function C(_,S,D,B){var at=S!==null?S.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return at!==null?null:h(_,S,""+D,B);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:return D.key===at?v(_,S,D,B):null;case Z:return D.key===at?R(_,S,D,B):null;case Et:return D=gn(D),C(_,S,D,B)}if(Ht(D)||kt(D))return at!==null?null:L(_,S,D,B,null);if(typeof D.then=="function")return C(_,S,Vi(D),B);if(D.$$typeof===p)return C(_,S,Bi(_,D),B);Gi(_,D)}return null}function z(_,S,D,B,at){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return _=_.get(D)||null,h(S,_,""+B,at);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return _=_.get(B.key===null?D:B.key)||null,v(S,_,B,at);case Z:return _=_.get(B.key===null?D:B.key)||null,R(S,_,B,at);case Et:return B=gn(B),z(_,S,D,B,at)}if(Ht(B)||kt(B))return _=_.get(D)||null,L(S,_,B,at,null);if(typeof B.then=="function")return z(_,S,D,Vi(B),at);if(B.$$typeof===p)return z(_,S,D,Bi(S,B),at);Gi(S,B)}return null}function F(_,S,D,B){for(var at=null,At=null,et=S,dt=S=0,bt=null;et!==null&&dt<D.length;dt++){et.index>dt?(bt=et,et=null):bt=et.sibling;var _t=C(_,et,D[dt],B);if(_t===null){et===null&&(et=bt);break}t&&et&&_t.alternate===null&&e(_,et),S=s(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t,et=bt}if(dt===D.length)return a(_,et),wt&&pa(_,dt),at;if(et===null){for(;dt<D.length;dt++)et=H(_,D[dt],B),et!==null&&(S=s(et,S,dt),At===null?at=et:At.sibling=et,At=et);return wt&&pa(_,dt),at}for(et=n(et);dt<D.length;dt++)bt=z(et,_,dt,D[dt],B),bt!==null&&(t&&bt.alternate!==null&&et.delete(bt.key===null?dt:bt.key),S=s(bt,S,dt),At===null?at=bt:At.sibling=bt,At=bt);return t&&et.forEach(function(an){return e(_,an)}),wt&&pa(_,dt),at}function it(_,S,D,B){if(D==null)throw Error(r(151));for(var at=null,At=null,et=S,dt=S=0,bt=null,_t=D.next();et!==null&&!_t.done;dt++,_t=D.next()){et.index>dt?(bt=et,et=null):bt=et.sibling;var an=C(_,et,_t.value,B);if(an===null){et===null&&(et=bt);break}t&&et&&an.alternate===null&&e(_,et),S=s(an,S,dt),At===null?at=an:At.sibling=an,At=an,et=bt}if(_t.done)return a(_,et),wt&&pa(_,dt),at;if(et===null){for(;!_t.done;dt++,_t=D.next())_t=H(_,_t.value,B),_t!==null&&(S=s(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return wt&&pa(_,dt),at}for(et=n(et);!_t.done;dt++,_t=D.next())_t=z(et,_,dt,_t.value,B),_t!==null&&(t&&_t.alternate!==null&&et.delete(_t.key===null?dt:_t.key),S=s(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return t&&et.forEach(function(Dg){return e(_,Dg)}),wt&&pa(_,dt),at}function Lt(_,S,D,B){if(typeof D=="object"&&D!==null&&D.type===G&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:t:{for(var at=D.key;S!==null;){if(S.key===at){if(at=D.type,at===G){if(S.tag===7){a(_,S.sibling),B=l(S,D.props.children),B.return=_,_=B;break t}}else if(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&gn(at)===S.type){a(_,S.sibling),B=l(S,D.props),Nl(B,D),B.return=_,_=B;break t}a(_,S);break}else e(_,S);S=S.sibling}D.type===G?(B=fn(D.props.children,_.mode,B,D.key),B.return=_,_=B):(B=Ui(D.type,D.key,D.props,null,_.mode,B),Nl(B,D),B.return=_,_=B)}return c(_);case Z:t:{for(at=D.key;S!==null;){if(S.key===at)if(S.tag===4&&S.stateNode.containerInfo===D.containerInfo&&S.stateNode.implementation===D.implementation){a(_,S.sibling),B=l(S,D.children||[]),B.return=_,_=B;break t}else{a(_,S);break}else e(_,S);S=S.sibling}B=As(D,_.mode,B),B.return=_,_=B}return c(_);case Et:return D=gn(D),Lt(_,S,D,B)}if(Ht(D))return F(_,S,D,B);if(kt(D)){if(at=kt(D),typeof at!="function")throw Error(r(150));return D=at.call(D),it(_,S,D,B)}if(typeof D.then=="function")return Lt(_,S,Vi(D),B);if(D.$$typeof===p)return Lt(_,S,Bi(_,D),B);Gi(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,S!==null&&S.tag===6?(a(_,S.sibling),B=l(S,D),B.return=_,_=B):(a(_,S),B=xs(D,_.mode,B),B.return=_,_=B),c(_)):a(_,S)}return function(_,S,D,B){try{Ol=0;var at=Lt(_,S,D,B);return Kn=null,at}catch(et){if(et===Zn||et===qi)throw et;var At=Oe(29,et,null,_.mode);return At.lanes=B,At.return=_,At}finally{}}}var vn=af(!0),nf=af(!1),Ha=!1;function js(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ls(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 qa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ya(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Mt&2)!==0){var l=n.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),n.pending=e,e=ki(t),qc(t,null,a),e}return Ni(t,n,e,a),ki(t)}function kl(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Jo(t,a)}}function Bs(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?l=s=c:s=s.next=c,a=a.next}while(a!==null);s===null?l=s=e:s=s.next=e}else l=s=e;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:s,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Hs=!1;function Ul(){if(Hs){var t=Qn;if(t!==null)throw t}}function jl(t,e,a,n){Hs=!1;var l=t.updateQueue;Ha=!1;var s=l.firstBaseUpdate,c=l.lastBaseUpdate,h=l.shared.pending;if(h!==null){l.shared.pending=null;var v=h,R=v.next;v.next=null,c===null?s=R:c.next=R,c=v;var L=t.alternate;L!==null&&(L=L.updateQueue,h=L.lastBaseUpdate,h!==c&&(h===null?L.firstBaseUpdate=R:h.next=R,L.lastBaseUpdate=v))}if(s!==null){var H=l.baseState;c=0,L=R=v=null,h=s;do{var C=h.lane&-536870913,z=C!==h.lane;if(z?(vt&C)===C:(n&C)===C){C!==0&&C===Xn&&(Hs=!0),L!==null&&(L=L.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var F=t,it=h;C=e;var Lt=a;switch(it.tag){case 1:if(F=it.payload,typeof F=="function"){H=F.call(Lt,H,C);break t}H=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=it.payload,C=typeof F=="function"?F.call(Lt,H,C):F,C==null)break t;H=A({},H,C);break t;case 2:Ha=!0}}C=h.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=l.callbacks,z===null?l.callbacks=[C]:z.push(C))}else z={lane:C,tag:h.tag,payload:h.payload,callback:h.callback,next:null},L===null?(R=L=z,v=H):L=L.next=z,c|=C;if(h=h.next,h===null){if(h=l.shared.pending,h===null)break;z=h,h=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);L===null&&(v=H),l.baseState=v,l.firstBaseUpdate=R,l.lastBaseUpdate=L,s===null&&(l.shared.lanes=0),Za|=c,t.lanes=c,t.memoizedState=H}}function lf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function uf(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)lf(a[t],e)}var Jn=x(null),Xi=x(0);function sf(t,e){t=Ta,J(Xi,t),J(Jn,e),Ta=t|e.baseLanes}function qs(){J(Xi,Ta),J(Jn,Jn.current)}function Ys(){Ta=Xi.current,q(Jn),q(Xi)}var Ne=x(null),Ke=null;function Va(t){var e=t.alternate;J(Wt,Wt.current&1),J(Ne,t),Ke===null&&(e===null||Jn.current!==null||e.memoizedState!==null)&&(Ke=t)}function Vs(t){J(Wt,Wt.current),J(Ne,t),Ke===null&&(Ke=t)}function rf(t){t.tag===22?(J(Wt,Wt.current),J(Ne,t),Ke===null&&(Ke=t)):Ga()}function Ga(){J(Wt,Wt.current),J(Ne,Ne.current)}function ke(t){q(Ne),Ke===t&&(Ke=null),q(Wt)}var Wt=x(0);function Qi(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Jr(a)||$r(a)))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 va=0,ft=null,Ut=null,te=null,Zi=!1,$n=!1,bn=!1,Ki=0,Ll=0,Pn=null,vp=0;function $t(){throw Error(r(321))}function Gs(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ze(t[a],e[a]))return!1;return!0}function Xs(t,e,a,n,l,s){return va=s,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Qf:ir,bn=!1,s=a(n,l),bn=!1,$n&&(s=cf(e,a,n,l)),of(t),s}function of(t){U.H=ql;var e=Ut!==null&&Ut.next!==null;if(va=0,te=Ut=ft=null,Zi=!1,Ll=0,Pn=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&Li(t)&&(ee=!0))}function cf(t,e,a,n){ft=t;var l=0;do{if($n&&(Pn=null),Ll=0,$n=!1,25<=l)throw Error(r(301));if(l+=1,te=Ut=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}U.H=Zf,s=e(a,n)}while($n);return s}function bp(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Bl(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(ft.flags|=1024),e}function Qs(){var t=Ki!==0;return Ki=0,t}function Zs(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ks(t){if(Zi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Zi=!1}va=0,te=Ut=ft=null,$n=!1,Ll=Ki=0,Pn=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?ft.memoizedState=te=t:te=te.next=t,te}function Ft(){if(Ut===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=te===null?ft.memoizedState:te.next;if(e!==null)te=e,Ut=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},te===null?ft.memoizedState=te=t:te=te.next=t}return te}function Ji(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(t){var e=Ll;return Ll+=1,Pn===null&&(Pn=[]),t=Ic(Pn,t,e),e=ft,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Qf:ir),t}function $i(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Bl(t);if(t.$$typeof===p)return fe(t)}throw Error(r(438,String(t)))}function Js(t){var e=null,a=ft.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Ji(),ft.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=re;return e.index++,a}function ba(t,e){return typeof e=="function"?e(t):e}function Pi(t){var e=Ft();return $s(e,Ut,t)}function $s(t,e,a){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var l=t.baseQueue,s=n.pending;if(s!==null){if(l!==null){var c=l.next;l.next=s.next,s.next=c}e.baseQueue=l=s,n.pending=null}if(s=t.baseState,l===null)t.memoizedState=s;else{e=l.next;var h=c=null,v=null,R=e,L=!1;do{var H=R.lane&-536870913;if(H!==R.lane?(vt&H)===H:(va&H)===H){var C=R.revertLane;if(C===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),H===Xn&&(L=!0);else if((va&C)===C){R=R.next,C===Xn&&(L=!0);continue}else H={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=H,c=s):v=v.next=H,ft.lanes|=C,Za|=C;H=R.action,bn&&a(s,H),s=R.hasEagerState?R.eagerState:a(s,H)}else C={lane:H,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=C,c=s):v=v.next=C,ft.lanes|=H,Za|=H;R=R.next}while(R!==null&&R!==e);if(v===null?c=s:v.next=h,!ze(s,t.memoizedState)&&(ee=!0,L&&(a=Qn,a!==null)))throw a;t.memoizedState=s,t.baseState=c,t.baseQueue=v,n.lastRenderedState=s}return l===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Ps(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var n=a.dispatch,l=a.pending,s=e.memoizedState;if(l!==null){a.pending=null;var c=l=l.next;do s=t(s,c.action),c=c.next;while(c!==l);ze(s,e.memoizedState)||(ee=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),a.lastRenderedState=s}return[s,n]}function ff(t,e,a){var n=ft,l=Ft(),s=wt;if(s){if(a===void 0)throw Error(r(407));a=a()}else a=e();var c=!ze((Ut||l).memoizedState,a);if(c&&(l.memoizedState=a,ee=!0),l=l.queue,Is(mf.bind(null,n,l,t),[t]),l.getSnapshot!==e||c||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,Wn(9,{destroy:void 0},hf.bind(null,n,l,a,e),null),Bt===null)throw Error(r(349));s||(va&127)!==0||df(n,e,a)}return a}function df(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ft.updateQueue,e===null?(e=Ji(),ft.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function hf(t,e,a,n){e.value=a,e.getSnapshot=n,pf(e)&&gf(t)}function mf(t,e,a){return a(function(){pf(e)&&gf(t)})}function pf(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ze(t,a)}catch{return!0}}function gf(t){var e=cn(t,2);e!==null&&Te(e,t,2)}function Ws(t){var e=ye();if(typeof t=="function"){var a=t;if(t=a(),bn){Oa(!0);try{a()}finally{Oa(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:t},e}function yf(t,e,a,n){return t.baseState=a,$s(t,Ut,typeof n=="function"?n:ba)}function Sp(t,e,a,n,l){if(Ii(t))throw Error(r(485));if(t=e.action,t!==null){var s={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){s.listeners.push(c)}};U.T!==null?a(!0):s.isTransition=!1,n(s),a=e.pending,a===null?(s.next=e.pending=s,vf(e,s)):(s.next=a.next,e.pending=a.next=s)}}function vf(t,e){var a=e.action,n=e.payload,l=t.state;if(e.isTransition){var s=U.T,c={};U.T=c;try{var h=a(l,n),v=U.S;v!==null&&v(c,h),bf(t,e,h)}catch(R){Fs(t,e,R)}finally{s!==null&&c.types!==null&&(s.types=c.types),U.T=s}}else try{s=a(l,n),bf(t,e,s)}catch(R){Fs(t,e,R)}}function bf(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Sf(t,e,n)},function(n){return Fs(t,e,n)}):Sf(t,e,a)}function Sf(t,e,a){e.status="fulfilled",e.value=a,wf(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,vf(t,a)))}function Fs(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,wf(e),e=e.next;while(e!==n)}t.action=null}function wf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ef(t,e){return e}function xf(t,e){if(wt){var a=Bt.formState;if(a!==null){t:{var n=ft;if(wt){if(Yt){e:{for(var l=Yt,s=Ze;l.nodeType!==8;){if(!s){l=null;break e}if(l=Je(l.nextSibling),l===null){l=null;break e}}s=l.data,l=s==="F!"||s==="F"?l:null}if(l){Yt=Je(l.nextSibling),n=l.data==="F!";break t}}La(n)}n=!1}n&&(e=a[0])}}return a=ye(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ef,lastRenderedState:e},a.queue=n,a=Vf.bind(null,ft,n),n.dispatch=a,n=Ws(!1),s=lr.bind(null,ft,!1,n.queue),n=ye(),l={state:e,dispatch:null,action:t,pending:null},n.queue=l,a=Sp.bind(null,ft,l,s,a),l.dispatch=a,n.memoizedState=t,[e,a,!1]}function Af(t){var e=Ft();return _f(e,Ut,t)}function _f(t,e,a){if(e=$s(t,e,Ef)[0],t=Pi(ba)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Bl(e)}catch(c){throw c===Zn?qi:c}else n=e;e=Ft();var l=e.queue,s=l.dispatch;return a!==e.memoizedState&&(ft.flags|=2048,Wn(9,{destroy:void 0},wp.bind(null,l,a),null)),[n,s,t]}function wp(t,e){t.action=e}function Tf(t){var e=Ft(),a=Ut;if(a!==null)return _f(e,a,t);Ft(),e=e.memoizedState,a=Ft();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Wn(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Ji(),ft.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function Mf(){return Ft().memoizedState}function Wi(t,e,a,n){var l=ye();ft.flags|=t,l.memoizedState=Wn(1|e,{destroy:void 0},a,n===void 0?null:n)}function Fi(t,e,a,n){var l=Ft();n=n===void 0?null:n;var s=l.memoizedState.inst;Ut!==null&&n!==null&&Gs(n,Ut.memoizedState.deps)?l.memoizedState=Wn(e,s,a,n):(ft.flags|=t,l.memoizedState=Wn(1|e,s,a,n))}function Df(t,e){Wi(8390656,8,t,e)}function Is(t,e){Fi(2048,8,t,e)}function Ep(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Ji(),ft.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Rf(t){var e=Ft().memoizedState;return Ep({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Cf(t,e){return Fi(4,2,t,e)}function zf(t,e){return Fi(4,4,t,e)}function Of(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Nf(t,e,a){a=a!=null?a.concat([t]):null,Fi(4,4,Of.bind(null,e,t),a)}function tr(){}function kf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&Gs(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function Uf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&Gs(e,n[1]))return n[0];if(n=t(),bn){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[n,e],n}function er(t,e,a){return a===void 0||(va&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=jd(),ft.lanes|=t,Za|=t,a)}function jf(t,e,a,n){return ze(a,e)?a:Jn.current!==null?(t=er(t,a,n),ze(t,e)||(ee=!0),t):(va&42)===0||(va&1073741824)!==0&&(vt&261930)===0?(ee=!0,t.memoizedState=a):(t=jd(),ft.lanes|=t,Za|=t,e)}function Lf(t,e,a,n,l){var s=M.p;M.p=s!==0&&8>s?s:8;var c=U.T,h={};U.T=h,lr(t,!1,e,a);try{var v=l(),R=U.S;if(R!==null&&R(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var L=yp(v,n);Hl(t,e,L,Le(t))}else Hl(t,e,n,Le(t))}catch(H){Hl(t,e,{then:function(){},status:"rejected",reason:H},Le())}finally{M.p=s,c!==null&&h.types!==null&&(c.types=h.types),U.T=c}}function xp(){}function ar(t,e,a,n){if(t.tag!==5)throw Error(r(476));var l=Bf(t).queue;Lf(t,l,e,P,a===null?xp:function(){return Hf(t),a(n)})}function Bf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:P},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Hf(t){var e=Bf(t);e.next===null&&(e=t.alternate.memoizedState),Hl(t,e.next.queue,{},Le())}function nr(){return fe(ai)}function qf(){return Ft().memoizedState}function Yf(){return Ft().memoizedState}function Ap(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Le();t=qa(a);var n=Ya(e,t,a);n!==null&&(Te(n,e,a),kl(n,e,a)),e={cache:Os()},t.payload=e;return}e=e.return}}function _p(t,e,a){var n=Le();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ii(t)?Gf(e,a):(a=ws(t,e,a,n),a!==null&&(Te(a,t,n),Xf(a,e,n)))}function Vf(t,e,a){var n=Le();Hl(t,e,a,n)}function Hl(t,e,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ii(t))Gf(e,l);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var c=e.lastRenderedState,h=s(c,a);if(l.hasEagerState=!0,l.eagerState=h,ze(h,c))return Ni(t,e,l,0),Bt===null&&Oi(),!1}catch{}finally{}if(a=ws(t,e,l,n),a!==null)return Te(a,t,n),Xf(a,e,n),!0}return!1}function lr(t,e,a,n){if(n={lane:2,revertLane:jr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ii(t)){if(e)throw Error(r(479))}else e=ws(t,a,n,2),e!==null&&Te(e,t,2)}function Ii(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Gf(t,e){$n=Zi=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Xf(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Jo(t,a)}}var ql={readContext:fe,use:$i,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};ql.useEffectEvent=$t;var Qf={readContext:fe,use:$i,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:Df,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Wi(4194308,4,Of.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Wi(4194308,4,t,e)},useInsertionEffect:function(t,e){Wi(4,2,t,e)},useMemo:function(t,e){var a=ye();e=e===void 0?null:e;var n=t();if(bn){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=ye();if(a!==void 0){var l=a(e);if(bn){Oa(!0);try{a(e)}finally{Oa(!1)}}}else l=e;return n.memoizedState=n.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},n.queue=t,t=t.dispatch=_p.bind(null,ft,t),[n.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Ws(t);var e=t.queue,a=Vf.bind(null,ft,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:tr,useDeferredValue:function(t,e){var a=ye();return er(a,t,e)},useTransition:function(){var t=Ws(!1);return t=Lf.bind(null,ft,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=ft,l=ye();if(wt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(vt&127)!==0||df(n,e,a)}l.memoizedState=a;var s={value:a,getSnapshot:e};return l.queue=s,Df(mf.bind(null,n,s,t),[t]),n.flags|=2048,Wn(9,{destroy:void 0},hf.bind(null,n,s,a,e),null),a},useId:function(){var t=ye(),e=Bt.identifierPrefix;if(wt){var a=ra,n=sa;a=(n&~(1<<32-Ce(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Ki++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=vp++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:nr,useFormState:xf,useActionState:xf,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=lr.bind(null,ft,!0,a),a.dispatch=e,[t,e]},useMemoCache:Js,useCacheRefresh:function(){return ye().memoizedState=Ap.bind(null,ft)},useEffectEvent:function(t){var e=ye(),a={impl:t};return e.memoizedState=a,function(){if((Mt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},ir={readContext:fe,use:$i,useCallback:kf,useContext:fe,useEffect:Is,useImperativeHandle:Nf,useInsertionEffect:Cf,useLayoutEffect:zf,useMemo:Uf,useReducer:Pi,useRef:Mf,useState:function(){return Pi(ba)},useDebugValue:tr,useDeferredValue:function(t,e){var a=Ft();return jf(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Pi(ba)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Bl(t),e]},useSyncExternalStore:ff,useId:qf,useHostTransitionStatus:nr,useFormState:Af,useActionState:Af,useOptimistic:function(t,e){var a=Ft();return yf(a,Ut,t,e)},useMemoCache:Js,useCacheRefresh:Yf};ir.useEffectEvent=Rf;var Zf={readContext:fe,use:$i,useCallback:kf,useContext:fe,useEffect:Is,useImperativeHandle:Nf,useInsertionEffect:Cf,useLayoutEffect:zf,useMemo:Uf,useReducer:Ps,useRef:Mf,useState:function(){return Ps(ba)},useDebugValue:tr,useDeferredValue:function(t,e){var a=Ft();return Ut===null?er(a,t,e):jf(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Ps(ba)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:Bl(t),e]},useSyncExternalStore:ff,useId:qf,useHostTransitionStatus:nr,useFormState:Tf,useActionState:Tf,useOptimistic:function(t,e){var a=Ft();return Ut!==null?yf(a,Ut,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Js,useCacheRefresh:Yf};Zf.useEffectEvent=Rf;function ur(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:A({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var sr={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=Le(),l=qa(n);l.payload=e,a!=null&&(l.callback=a),e=Ya(t,l,n),e!==null&&(Te(e,t,n),kl(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=Le(),l=qa(n);l.tag=1,l.payload=e,a!=null&&(l.callback=a),e=Ya(t,l,n),e!==null&&(Te(e,t,n),kl(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Le(),n=qa(a);n.tag=2,e!=null&&(n.callback=e),e=Ya(t,n,a),e!==null&&(Te(e,t,a),kl(e,t,a))}};function Kf(t,e,a,n,l,s,c){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,s,c):e.prototype&&e.prototype.isPureReactComponent?!Tl(a,n)||!Tl(l,s):!0}function Jf(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&sr.enqueueReplaceState(e,e.state,null)}function Sn(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=A({},a));for(var l in t)a[l]===void 0&&(a[l]=t[l])}return a}function $f(t){zi(t)}function Pf(t){console.error(t)}function Wf(t){zi(t)}function tu(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Ff(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function rr(t,e,a){return a=qa(a),a.tag=3,a.payload={element:null},a.callback=function(){tu(t,e)},a}function If(t){return t=qa(t),t.tag=3,t}function td(t,e,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var s=n.value;t.payload=function(){return l(s)},t.callback=function(){Ff(e,a,n)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(t.callback=function(){Ff(e,a,n),typeof l!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Tp(t,e,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&Gn(e,a,l,!0),a=Ne.current,a!==null){switch(a.tag){case 31:case 13:return Ke===null?du():a.alternate===null&&Pt===0&&(Pt=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Yi?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),Nr(t,n,l)),!1;case 22:return a.flags|=65536,n===Yi?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),Nr(t,n,l)),!1}throw Error(r(435,a.tag))}return Nr(t,n,l),du(),!1}if(wt)return e=Ne.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,n!==Ms&&(t=Error(r(422),{cause:n}),Rl(Ge(t,a)))):(n!==Ms&&(e=Error(r(423),{cause:n}),Rl(Ge(e,a))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,n=Ge(n,a),l=rr(t.stateNode,n,l),Bs(t,l),Pt!==4&&(Pt=2)),!1;var s=Error(r(520),{cause:n});if(s=Ge(s,a),Jl===null?Jl=[s]:Jl.push(s),Pt!==4&&(Pt=2),e===null)return!0;n=Ge(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=l&-l,a.lanes|=t,t=rr(a.stateNode,n,t),Bs(a,t),!1;case 1:if(e=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Ka===null||!Ka.has(s))))return a.flags|=65536,l&=-l,a.lanes|=l,l=If(l),td(l,t,a,n),Bs(a,l),!1}a=a.return}while(a!==null);return!1}var or=Error(r(461)),ee=!1;function de(t,e,a,n){e.child=t===null?nf(e,null,a,n):vn(e,t.child,a,n)}function ed(t,e,a,n,l){a=a.render;var s=e.ref;if("ref"in n){var c={};for(var h in n)h!=="ref"&&(c[h]=n[h])}else c=n;return mn(e),n=Xs(t,e,a,c,s,l),h=Qs(),t!==null&&!ee?(Zs(t,e,l),Sa(t,e,l)):(wt&&h&&_s(e),e.flags|=1,de(t,e,n,l),e.child)}function ad(t,e,a,n,l){if(t===null){var s=a.type;return typeof s=="function"&&!Es(s)&&s.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=s,nd(t,e,s,n,l)):(t=Ui(a.type,null,n,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!yr(t,l)){var c=s.memoizedProps;if(a=a.compare,a=a!==null?a:Tl,a(c,n)&&t.ref===e.ref)return Sa(t,e,l)}return e.flags|=1,t=ma(s,n),t.ref=e.ref,t.return=e,e.child=t}function nd(t,e,a,n,l){if(t!==null){var s=t.memoizedProps;if(Tl(s,n)&&t.ref===e.ref)if(ee=!1,e.pendingProps=n=s,yr(t,l))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,Sa(t,e,l)}return cr(t,e,a,n,l)}function ld(t,e,a,n){var l=n.children,s=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,t!==null){for(n=e.child=t.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~s}else n=0,e.child=null;return id(t,e,s,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Hi(e,s!==null?s.cachePool:null),s!==null?sf(e,s):qs(),rf(e);else return n=e.lanes=536870912,id(t,e,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Hi(e,s.cachePool),sf(e,s),Ga(),e.memoizedState=null):(t!==null&&Hi(e,null),qs(),Ga());return de(t,e,l,a),e.child}function Yl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function id(t,e,a,n,l){var s=ks();return s=s===null?null:{parent:It._currentValue,pool:s},e.memoizedState={baseLanes:a,cachePool:s},t!==null&&Hi(e,null),qs(),rf(e),t!==null&&Gn(t,e,n,!0),e.childLanes=l,null}function eu(t,e){return e=nu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ud(t,e,a){return vn(e,t.child,null,a),t=eu(e,e.pendingProps),t.flags|=2,ke(e),e.memoizedState=null,t}function Mp(t,e,a){var n=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(n.mode==="hidden")return t=eu(e,n),e.lanes=536870912,Yl(null,t);if(Vs(e),(t=Yt)?(t=vh(t,Ze),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Vc(t),a.return=e,e.child=a,ce=e,Yt=null)):t=null,t===null)throw La(e);return e.lanes=536870912,null}return eu(e,n)}var s=t.memoizedState;if(s!==null){var c=s.dehydrated;if(Vs(e),l)if(e.flags&256)e.flags&=-257,e=ud(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||Gn(t,e,a,!1),l=(a&t.childLanes)!==0,ee||l){if(n=Bt,n!==null&&(c=$o(n,a),c!==0&&c!==s.retryLane))throw s.retryLane=c,cn(t,c),Te(n,t,c),or;du(),e=ud(t,e,a)}else t=s.treeContext,Yt=Je(c.nextSibling),ce=e,wt=!0,ja=null,Ze=!1,t!==null&&Qc(e,t),e=eu(e,n),e.flags|=4096;return e}return t=ma(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function au(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function cr(t,e,a,n,l){return mn(e),a=Xs(t,e,a,n,void 0,l),n=Qs(),t!==null&&!ee?(Zs(t,e,l),Sa(t,e,l)):(wt&&n&&_s(e),e.flags|=1,de(t,e,a,l),e.child)}function sd(t,e,a,n,l,s){return mn(e),e.updateQueue=null,a=cf(e,n,a,l),of(t),n=Qs(),t!==null&&!ee?(Zs(t,e,s),Sa(t,e,s)):(wt&&n&&_s(e),e.flags|=1,de(t,e,a,s),e.child)}function rd(t,e,a,n,l){if(mn(e),e.stateNode===null){var s=Hn,c=a.contextType;typeof c=="object"&&c!==null&&(s=fe(c)),s=new a(n,s),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=sr,e.stateNode=s,s._reactInternals=e,s=e.stateNode,s.props=n,s.state=e.memoizedState,s.refs={},js(e),c=a.contextType,s.context=typeof c=="object"&&c!==null?fe(c):Hn,s.state=e.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(ur(e,a,c,n),s.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(c=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),c!==s.state&&sr.enqueueReplaceState(s,s.state,null),jl(e,n,s,l),Ul(),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){s=e.stateNode;var h=e.memoizedProps,v=Sn(a,h);s.props=v;var R=s.context,L=a.contextType;c=Hn,typeof L=="object"&&L!==null&&(c=fe(L));var H=a.getDerivedStateFromProps;L=typeof H=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,L||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||R!==c)&&Jf(e,s,n,c),Ha=!1;var C=e.memoizedState;s.state=C,jl(e,n,s,l),Ul(),R=e.memoizedState,h||C!==R||Ha?(typeof H=="function"&&(ur(e,a,H,n),R=e.memoizedState),(v=Ha||Kf(e,a,v,n,C,R,c))?(L||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=R),s.props=n,s.state=R,s.context=c,n=v):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,Ls(t,e),c=e.memoizedProps,L=Sn(a,c),s.props=L,H=e.pendingProps,C=s.context,R=a.contextType,v=Hn,typeof R=="object"&&R!==null&&(v=fe(R)),h=a.getDerivedStateFromProps,(R=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(c!==H||C!==v)&&Jf(e,s,n,v),Ha=!1,C=e.memoizedState,s.state=C,jl(e,n,s,l),Ul();var z=e.memoizedState;c!==H||C!==z||Ha||t!==null&&t.dependencies!==null&&Li(t.dependencies)?(typeof h=="function"&&(ur(e,a,h,n),z=e.memoizedState),(L=Ha||Kf(e,a,L,n,C,z,v)||t!==null&&t.dependencies!==null&&Li(t.dependencies))?(R||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,z,v),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,z,v)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=z),s.props=n,s.state=z,s.context=v,n=L):(typeof s.componentDidUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),n=!1)}return s=n,au(t,e),n=(e.flags&128)!==0,s||n?(s=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),e.flags|=1,t!==null&&n?(e.child=vn(e,t.child,null,l),e.child=vn(e,null,a,l)):de(t,e,a,l),e.memoizedState=s.state,t=e.child):t=Sa(t,e,l),t}function od(t,e,a,n){return dn(),e.flags|=256,de(t,e,a,n),e.child}var fr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dr(t){return{baseLanes:t,cachePool:Wc()}}function hr(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=je),t}function cd(t,e,a){var n=e.pendingProps,l=!1,s=(e.flags&128)!==0,c;if((c=s)||(c=t!==null&&t.memoizedState===null?!1:(Wt.current&2)!==0),c&&(l=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(l?Va(e):Ga(),(t=Yt)?(t=vh(t,Ze),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ua!==null?{id:sa,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},a=Vc(t),a.return=e,e.child=a,ce=e,Yt=null)):t=null,t===null)throw La(e);return $r(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,l?(Ga(),l=e.mode,h=nu({mode:"hidden",children:h},l),n=fn(n,l,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=dr(a),n.childLanes=hr(t,c,a),e.memoizedState=fr,Yl(null,n)):(Va(e),mr(e,h))}var v=t.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(s)e.flags&256?(Va(e),e.flags&=-257,e=pr(t,e,a)):e.memoizedState!==null?(Ga(),e.child=t.child,e.flags|=128,e=null):(Ga(),h=n.fallback,l=e.mode,n=nu({mode:"visible",children:n.children},l),h=fn(h,l,a,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,vn(e,t.child,null,a),n=e.child,n.memoizedState=dr(a),n.childLanes=hr(t,c,a),e.memoizedState=fr,e=Yl(null,n));else if(Va(e),$r(h)){if(c=h.nextSibling&&h.nextSibling.dataset,c)var R=c.dgst;c=R,n=Error(r(419)),n.stack="",n.digest=c,Rl({value:n,source:null,stack:null}),e=pr(t,e,a)}else if(ee||Gn(t,e,a,!1),c=(a&t.childLanes)!==0,ee||c){if(c=Bt,c!==null&&(n=$o(c,a),n!==0&&n!==v.retryLane))throw v.retryLane=n,cn(t,n),Te(c,t,n),or;Jr(h)||du(),e=pr(t,e,a)}else Jr(h)?(e.flags|=192,e.child=t.child,e=null):(t=v.treeContext,Yt=Je(h.nextSibling),ce=e,wt=!0,ja=null,Ze=!1,t!==null&&Qc(e,t),e=mr(e,n.children),e.flags|=4096);return e}return l?(Ga(),h=n.fallback,l=e.mode,v=t.child,R=v.sibling,n=ma(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,R!==null?h=ma(R,h):(h=fn(h,l,a,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,Yl(null,n),n=e.child,h=t.child.memoizedState,h===null?h=dr(a):(l=h.cachePool,l!==null?(v=It._currentValue,l=l.parent!==v?{parent:v,pool:v}:l):l=Wc(),h={baseLanes:h.baseLanes|a,cachePool:l}),n.memoizedState=h,n.childLanes=hr(t,c,a),e.memoizedState=fr,Yl(t.child,n)):(Va(e),a=t.child,t=a.sibling,a=ma(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(c=e.deletions,c===null?(e.deletions=[t],e.flags|=16):c.push(t)),e.child=a,e.memoizedState=null,a)}function mr(t,e){return e=nu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function nu(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function pr(t,e,a){return vn(e,t.child,null,a),t=mr(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fd(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Cs(t.return,e,a)}function gr(t,e,a,n,l,s){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:s}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=a,c.tailMode=l,c.treeForkCount=s)}function dd(t,e,a){var n=e.pendingProps,l=n.revealOrder,s=n.tail;n=n.children;var c=Wt.current,h=(c&2)!==0;if(h?(c=c&1|2,e.flags|=128):c&=1,J(Wt,c),de(t,e,n,a),n=wt?Dl:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fd(t,a,e);else if(t.tag===19)fd(t,a,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(l){case"forwards":for(a=e.child,l=null;a!==null;)t=a.alternate,t!==null&&Qi(t)===null&&(l=a),a=a.sibling;a=l,a===null?(l=e.child,e.child=null):(l=a.sibling,a.sibling=null),gr(e,!1,l,a,s,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Qi(t)===null){e.child=l;break}t=l.sibling,l.sibling=a,a=l,l=t}gr(e,!0,a,null,s,n);break;case"together":gr(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Sa(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Za|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Gn(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ma(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ma(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function yr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Li(t)))}function Dp(t,e,a){switch(e.tag){case 3:Y(e,e.stateNode.containerInfo),Ba(e,It,t.memoizedState.cache),dn();break;case 27:case 5:st(e);break;case 4:Y(e,e.stateNode.containerInfo);break;case 10:Ba(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Vs(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Va(e),e.flags|=128,null):(a&e.child.childLanes)!==0?cd(t,e,a):(Va(e),t=Sa(t,e,a),t!==null?t.sibling:null);Va(e);break;case 19:var l=(t.flags&128)!==0;if(n=(a&e.childLanes)!==0,n||(Gn(t,e,a,!1),n=(a&e.childLanes)!==0),l){if(n)return dd(t,e,a);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),J(Wt,Wt.current),n)break;return null;case 22:return e.lanes=0,ld(t,e,a,e.pendingProps);case 24:Ba(e,It,t.memoizedState.cache)}return Sa(t,e,a)}function hd(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!yr(t,a)&&(e.flags&128)===0)return ee=!1,Dp(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,wt&&(e.flags&1048576)!==0&&Xc(e,Dl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=gn(e.elementType),e.type=t,typeof t=="function")Es(t)?(n=Sn(t,n),e.tag=1,e=rd(null,e,t,n,a)):(e.tag=0,e=cr(null,e,t,n,a));else{if(t!=null){var l=t.$$typeof;if(l===$){e.tag=11,e=ed(null,e,t,n,a);break t}else if(l===K){e.tag=14,e=ad(null,e,t,n,a);break t}}throw e=pe(t)||t,Error(r(306,e,""))}}return e;case 0:return cr(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,l=Sn(n,e.pendingProps),rd(t,e,n,l,a);case 3:t:{if(Y(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var s=e.memoizedState;l=s.element,Ls(t,e),jl(e,n,null,a);var c=e.memoizedState;if(n=c.cache,Ba(e,It,n),n!==s.cache&&zs(e,[It],a,!0),Ul(),n=c.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){e=od(t,e,n,a);break t}else if(n!==l){l=Ge(Error(r(424)),e),Rl(l),e=od(t,e,n,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Yt=Je(t.firstChild),ce=e,wt=!0,ja=null,Ze=!0,a=nf(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dn(),n===l){e=Sa(t,e,a);break t}de(t,e,n,a)}e=e.child}return e;case 26:return au(t,e),t===null?(a=Ah(e.type,null,e.pendingProps,null))?e.memoizedState=a:wt||(a=e.type,t=e.pendingProps,n=bu(ht.current).createElement(a),n[oe]=e,n[Se]=t,he(n,a,t),ue(n),e.stateNode=n):e.memoizedState=Ah(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return st(e),t===null&&wt&&(n=e.stateNode=wh(e.type,e.pendingProps,ht.current),ce=e,Ze=!0,l=Yt,Wa(e.type)?(Pr=l,Yt=Je(n.firstChild)):Yt=l),de(t,e,e.pendingProps.children,a),au(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((l=n=Yt)&&(n=lg(n,e.type,e.pendingProps,Ze),n!==null?(e.stateNode=n,ce=e,Yt=Je(n.firstChild),Ze=!1,l=!0):l=!1),l||La(e)),st(e),l=e.type,s=e.pendingProps,c=t!==null?t.memoizedProps:null,n=s.children,Qr(l,s)?n=null:c!==null&&Qr(l,c)&&(e.flags|=32),e.memoizedState!==null&&(l=Xs(t,e,bp,null,null,a),ai._currentValue=l),au(t,e),de(t,e,n,a),e.child;case 6:return t===null&&wt&&((t=a=Yt)&&(a=ig(a,e.pendingProps,Ze),a!==null?(e.stateNode=a,ce=e,Yt=null,t=!0):t=!1),t||La(e)),null;case 13:return cd(t,e,a);case 4:return Y(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=vn(e,null,n,a):de(t,e,n,a),e.child;case 11:return ed(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return n=e.pendingProps,Ba(e,e.type,n.value),de(t,e,n.children,a),e.child;case 9:return l=e.type._context,n=e.pendingProps.children,mn(e),l=fe(l),n=n(l),e.flags|=1,de(t,e,n,a),e.child;case 14:return ad(t,e,e.type,e.pendingProps,a);case 15:return nd(t,e,e.type,e.pendingProps,a);case 19:return dd(t,e,a);case 31:return Mp(t,e,a);case 22:return ld(t,e,a,e.pendingProps);case 24:return mn(e),n=fe(It),t===null?(l=ks(),l===null&&(l=Bt,s=Os(),l.pooledCache=s,s.refCount++,s!==null&&(l.pooledCacheLanes|=a),l=s),e.memoizedState={parent:n,cache:l},js(e),Ba(e,It,l)):((t.lanes&a)!==0&&(Ls(t,e),jl(e,null,null,a),Ul()),l=t.memoizedState,s=e.memoizedState,l.parent!==n?(l={parent:n,cache:n},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Ba(e,It,n)):(n=s.cache,Ba(e,It,n),n!==l.cache&&zs(e,[It],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function wa(t){t.flags|=4}function vr(t,e,a,n,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(qd())t.flags|=8192;else throw yn=Yi,Us}else t.flags&=-16777217}function md(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Rh(e))if(qd())t.flags|=8192;else throw yn=Yi,Us}function lu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Zo():536870912,t.lanes|=e,el|=e)}function Vl(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function Rp(t,e,a){var n=e.pendingProps;switch(Ts(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ya(It),W(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Vn(e)?wa(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ds())),Vt(e),null;case 26:var l=e.type,s=e.memoizedState;return t===null?(wa(e),s!==null?(Vt(e),md(e,s)):(Vt(e),vr(e,l,null,n,a))):s?s!==t.memoizedState?(wa(e),Vt(e),md(e,s)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&wa(e),Vt(e),vr(e,l,t,n,a)),null;case 27:if(lt(e),a=ht.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}t=I.current,Vn(e)?Zc(e):(t=wh(l,n,a),e.stateNode=t,wa(e))}return Vt(e),null;case 5:if(lt(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}if(s=I.current,Vn(e))Zc(e);else{var c=bu(ht.current);switch(s){case 1:s=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:s=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":s=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":s=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":s=c.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?c.createElement(l,{is:n.is}):c.createElement(l)}}s[oe]=e,s[Se]=n;t:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)s.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=s;t:switch(he(s,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&wa(e)}}return Vt(e),vr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&wa(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=ht.current,Vn(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,l=ce,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}t[oe]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||ch(t.nodeValue,a)),t||La(e,!0)}else t=bu(t).createTextNode(n),t[oe]=e,e.stateNode=t}return Vt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Vn(e),a!==null){if(t===null){if(!n)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[oe]=e}else dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else a=Ds(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(ke(e),e):(ke(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Vt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Vn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[oe]=e}else dn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),l=!1}else l=Ds(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(ke(e),e):(ke(e),null)}return ke(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==l&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),lu(e,e.updateQueue),Vt(e),null);case 4:return W(),t===null&&qr(e.stateNode.containerInfo),Vt(e),null;case 10:return ya(e.type),Vt(e),null;case 19:if(q(Wt),n=e.memoizedState,n===null)return Vt(e),null;if(l=(e.flags&128)!==0,s=n.rendering,s===null)if(l)Vl(n,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=Qi(t),s!==null){for(e.flags|=128,Vl(n,!1),t=s.updateQueue,e.updateQueue=t,lu(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Yc(a,t),a=a.sibling;return J(Wt,Wt.current&1|2),wt&&pa(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&qt()>ou&&(e.flags|=128,l=!0,Vl(n,!1),e.lanes=4194304)}else{if(!l)if(t=Qi(s),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,lu(e,t),Vl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!wt)return Vt(e),null}else 2*qt()-n.renderingStartTime>ou&&a!==536870912&&(e.flags|=128,l=!0,Vl(n,!1),e.lanes=4194304);n.isBackwards?(s.sibling=e.child,e.child=s):(t=n.last,t!==null?t.sibling=s:e.child=s,n.last=s)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=qt(),t.sibling=null,a=Wt.current,J(Wt,l?a&1|2:a&1),wt&&pa(e,n.treeForkCount),t):(Vt(e),null);case 22:case 23:return ke(e),Ys(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),a=e.updateQueue,a!==null&&lu(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&q(pn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ya(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Cp(t,e){switch(Ts(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ya(It),W(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return lt(e),null;case 31:if(e.memoizedState!==null){if(ke(e),e.alternate===null)throw Error(r(340));dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ke(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));dn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Wt),null;case 4:return W(),null;case 10:return ya(e.type),null;case 22:case 23:return ke(e),Ys(),t!==null&&q(pn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ya(It),null;case 25:return null;default:return null}}function pd(t,e){switch(Ts(e),e.tag){case 3:ya(It),W();break;case 26:case 27:case 5:lt(e);break;case 4:W();break;case 31:e.memoizedState!==null&&ke(e);break;case 13:ke(e);break;case 19:q(Wt);break;case 10:ya(e.type);break;case 22:case 23:ke(e),Ys(),t!==null&&q(pn);break;case 24:ya(It)}}function Gl(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&t)===t){n=void 0;var s=a.create,c=a.inst;n=s(),c.destroy=n}a=a.next}while(a!==l)}}catch(h){Nt(e,e.return,h)}}function Xa(t,e,a){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&t)===t){var c=n.inst,h=c.destroy;if(h!==void 0){c.destroy=void 0,l=e;var v=a,R=h;try{R()}catch(L){Nt(l,v,L)}}}n=n.next}while(n!==s)}}catch(L){Nt(e,e.return,L)}}function gd(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{uf(e,a)}catch(n){Nt(t,t.return,n)}}}function yd(t,e,a){a.props=Sn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Nt(t,e,n)}}function Xl(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(l){Nt(t,e,l)}}function oa(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Nt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Nt(t,e,l)}else a.current=null}function vd(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break t;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Nt(t,t.return,l)}}function br(t,e,a){try{var n=t.stateNode;Fp(n,t.type,a,e),n[Se]=e}catch(l){Nt(t,t.return,l)}}function bd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wa(t.type)||t.tag===4}function Sr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||bd(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&&Wa(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 wr(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=da));else if(n!==4&&(n===27&&Wa(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(wr(t,e,a),t=t.sibling;t!==null;)wr(t,e,a),t=t.sibling}function iu(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(n===27&&Wa(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(iu(t,e,a),t=t.sibling;t!==null;)iu(t,e,a),t=t.sibling}function Sd(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);he(e,n,a),e[oe]=t,e[Se]=a}catch(s){Nt(t,t.return,s)}}var Ea=!1,ae=!1,Er=!1,wd=typeof WeakSet=="function"?WeakSet:Set,se=null;function zp(t,e){if(t=t.containerInfo,Gr=Tu,t=Oc(t),ps(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break t}var c=0,h=-1,v=-1,R=0,L=0,H=t,C=null;e:for(;;){for(var z;H!==a||l!==0&&H.nodeType!==3||(h=c+l),H!==s||n!==0&&H.nodeType!==3||(v=c+n),H.nodeType===3&&(c+=H.nodeValue.length),(z=H.firstChild)!==null;)C=H,H=z;for(;;){if(H===t)break e;if(C===a&&++R===l&&(h=c),C===s&&++L===n&&(v=c),(z=H.nextSibling)!==null)break;H=C,C=H.parentNode}H=z}a=h===-1||v===-1?null:{start:h,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xr={focusedElem:t,selectionRange:a},Tu=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,s=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(a=0;a<t.length;a++)l=t[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,a=e,l=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var F=Sn(a.type,l);t=n.getSnapshotBeforeUpdate(F,s),n.__reactInternalSnapshotBeforeUpdate=t}catch(it){Nt(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Kr(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Kr(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}}function Ed(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Aa(t,a),n&4&&Gl(5,a);break;case 1:if(Aa(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(c){Nt(a,a.return,c)}else{var l=Sn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(c){Nt(a,a.return,c)}}n&64&&gd(a),n&512&&Xl(a,a.return);break;case 3:if(Aa(t,a),n&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{uf(t,e)}catch(c){Nt(a,a.return,c)}}break;case 27:e===null&&n&4&&Sd(a);case 26:case 5:Aa(t,a),e===null&&n&4&&vd(a),n&512&&Xl(a,a.return);break;case 12:Aa(t,a);break;case 31:Aa(t,a),n&4&&_d(t,a);break;case 13:Aa(t,a),n&4&&Td(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=qp.bind(null,a),ug(t,a))));break;case 22:if(n=a.memoizedState!==null||Ea,!n){e=e!==null&&e.memoizedState!==null||ae,l=Ea;var s=ae;Ea=n,(ae=e)&&!s?_a(t,a,(a.subtreeFlags&8772)!==0):Aa(t,a),Ea=l,ae=s}break;case 30:break;default:Aa(t,a)}}function xd(t){var e=t.alternate;e!==null&&(t.alternate=null,xd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Fu(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 Gt=null,Ee=!1;function xa(t,e,a){for(a=a.child;a!==null;)Ad(t,e,a),a=a.sibling}function Ad(t,e,a){if(Re&&typeof Re.onCommitFiberUnmount=="function")try{Re.onCommitFiberUnmount(ml,a)}catch{}switch(a.tag){case 26:ae||oa(a,e),xa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||oa(a,e);var n=Gt,l=Ee;Wa(a.type)&&(Gt=a.stateNode,Ee=!1),xa(t,e,a),Il(a.stateNode),Gt=n,Ee=l;break;case 5:ae||oa(a,e);case 6:if(n=Gt,l=Ee,Gt=null,xa(t,e,a),Gt=n,Ee=l,Gt!==null)if(Ee)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(s){Nt(a,e,s)}else try{Gt.removeChild(a.stateNode)}catch(s){Nt(a,e,s)}break;case 18:Gt!==null&&(Ee?(t=Gt,gh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ol(t)):gh(Gt,a.stateNode));break;case 4:n=Gt,l=Ee,Gt=a.stateNode.containerInfo,Ee=!0,xa(t,e,a),Gt=n,Ee=l;break;case 0:case 11:case 14:case 15:Xa(2,a,e),ae||Xa(4,a,e),xa(t,e,a);break;case 1:ae||(oa(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&yd(a,e,n)),xa(t,e,a);break;case 21:xa(t,e,a);break;case 22:ae=(n=ae)||a.memoizedState!==null,xa(t,e,a),ae=n;break;default:xa(t,e,a)}}function _d(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(a){Nt(e,e.return,a)}}}function Td(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(a){Nt(e,e.return,a)}}function Op(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new wd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new wd),e;default:throw Error(r(435,t.tag))}}function uu(t,e){var a=Op(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var l=Yp.bind(null,t,n);n.then(l,l)}})}function xe(t,e){var a=e.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],s=t,c=e,h=c;t:for(;h!==null;){switch(h.tag){case 27:if(Wa(h.type)){Gt=h.stateNode,Ee=!1;break t}break;case 5:Gt=h.stateNode,Ee=!1;break t;case 3:case 4:Gt=h.stateNode.containerInfo,Ee=!0;break t}h=h.return}if(Gt===null)throw Error(r(160));Ad(s,c,l),Gt=null,Ee=!1,s=l.alternate,s!==null&&(s.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Md(e,t),e=e.sibling}var ta=null;function Md(t,e){var a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Ae(t),n&4&&(Xa(3,t,t.return),Gl(3,t),Xa(5,t,t.return));break;case 1:xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),n&64&&Ea&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=ta;if(xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),n&4){var s=a!==null?a.memoizedState:null;if(n=t.memoizedState,a===null)if(n===null)if(t.stateNode===null){t:{n=t.type,a=t.memoizedProps,l=l.ownerDocument||l;e:switch(n){case"title":s=l.getElementsByTagName("title")[0],(!s||s[yl]||s[oe]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=l.createElement(n),l.head.insertBefore(s,l.querySelector("head > title"))),he(s,n,a),s[oe]=t,ue(s),n=s;break t;case"link":var c=Mh("link","href",l).get(n+(a.href||""));if(c){for(var h=0;h<c.length;h++)if(s=c[h],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(h,1);break e}}s=l.createElement(n),he(s,n,a),l.head.appendChild(s);break;case"meta":if(c=Mh("meta","content",l).get(n+(a.content||""))){for(h=0;h<c.length;h++)if(s=c[h],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(h,1);break e}}s=l.createElement(n),he(s,n,a),l.head.appendChild(s);break;default:throw Error(r(468,n))}s[oe]=t,ue(s),n=s}t.stateNode=n}else Dh(l,t.type,t.stateNode);else t.stateNode=Th(l,n,t.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Dh(l,t.type,t.stateNode):Th(l,n,t.memoizedProps)):n===null&&t.stateNode!==null&&br(t,t.memoizedProps,a.memoizedProps)}break;case 27:xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),a!==null&&n&4&&br(t,t.memoizedProps,a.memoizedProps);break;case 5:if(xe(e,t),Ae(t),n&512&&(ae||a===null||oa(a,a.return)),t.flags&32){l=t.stateNode;try{On(l,"")}catch(F){Nt(t,t.return,F)}}n&4&&t.stateNode!=null&&(l=t.memoizedProps,br(t,l,a!==null?a.memoizedProps:l)),n&1024&&(Er=!0);break;case 6:if(xe(e,t),Ae(t),n&4){if(t.stateNode===null)throw Error(r(162));n=t.memoizedProps,a=t.stateNode;try{a.nodeValue=n}catch(F){Nt(t,t.return,F)}}break;case 3:if(Eu=null,l=ta,ta=Su(e.containerInfo),xe(e,t),ta=l,Ae(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(F){Nt(t,t.return,F)}Er&&(Er=!1,Dd(t));break;case 4:n=ta,ta=Su(t.stateNode.containerInfo),xe(e,t),Ae(t),ta=n;break;case 12:xe(e,t),Ae(t);break;case 31:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,uu(t,n)));break;case 13:xe(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ru=qt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,uu(t,n)));break;case 22:l=t.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,R=Ea,L=ae;if(Ea=R||l,ae=L||v,xe(e,t),ae=L,Ea=R,Ae(t),n&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(a===null||v||Ea||ae||wn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){v=a=e;try{if(s=v.stateNode,l)c=s.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{h=v.stateNode;var H=v.memoizedProps.style,C=H!=null&&H.hasOwnProperty("display")?H.display:null;h.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(F){Nt(v,v.return,F)}}}else if(e.tag===6){if(a===null){v=e;try{v.stateNode.nodeValue=l?"":v.memoizedProps}catch(F){Nt(v,v.return,F)}}}else if(e.tag===18){if(a===null){v=e;try{var z=v.stateNode;l?yh(z,!0):yh(v.stateNode,!1)}catch(F){Nt(v,v.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,uu(t,a))));break;case 19:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,uu(t,n)));break;case 30:break;case 21:break;default:xe(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(bd(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var l=a.stateNode,s=Sr(t);iu(t,s,l);break;case 5:var c=a.stateNode;a.flags&32&&(On(c,""),a.flags&=-33);var h=Sr(t);iu(t,h,c);break;case 3:case 4:var v=a.stateNode.containerInfo,R=Sr(t);wr(t,R,v);break;default:throw Error(r(161))}}catch(L){Nt(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Dd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Dd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Aa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ed(t,e.alternate,e),e=e.sibling}function wn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Xa(4,e,e.return),wn(e);break;case 1:oa(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&yd(e,e.return,a),wn(e);break;case 27:Il(e.stateNode);case 26:case 5:oa(e,e.return),wn(e);break;case 22:e.memoizedState===null&&wn(e);break;case 30:wn(e);break;default:wn(e)}t=t.sibling}}function _a(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,l=t,s=e,c=s.flags;switch(s.tag){case 0:case 11:case 15:_a(l,s,a),Gl(4,s);break;case 1:if(_a(l,s,a),n=s,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(R){Nt(n,n.return,R)}if(n=s,l=n.updateQueue,l!==null){var h=n.stateNode;try{var v=l.shared.hiddenCallbacks;if(v!==null)for(l.shared.hiddenCallbacks=null,l=0;l<v.length;l++)lf(v[l],h)}catch(R){Nt(n,n.return,R)}}a&&c&64&&gd(s),Xl(s,s.return);break;case 27:Sd(s);case 26:case 5:_a(l,s,a),a&&n===null&&c&4&&vd(s),Xl(s,s.return);break;case 12:_a(l,s,a);break;case 31:_a(l,s,a),a&&c&4&&_d(l,s);break;case 13:_a(l,s,a),a&&c&4&&Td(l,s);break;case 22:s.memoizedState===null&&_a(l,s,a),Xl(s,s.return);break;case 30:break;default:_a(l,s,a)}e=e.sibling}}function xr(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Cl(a))}function Ar(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t))}function ea(t,e,a,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rd(t,e,a,n),e=e.sibling}function Rd(t,e,a,n){var l=e.flags;switch(e.tag){case 0:case 11:case 15:ea(t,e,a,n),l&2048&&Gl(9,e);break;case 1:ea(t,e,a,n);break;case 3:ea(t,e,a,n),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Cl(t)));break;case 12:if(l&2048){ea(t,e,a,n),t=e.stateNode;try{var s=e.memoizedProps,c=s.id,h=s.onPostCommit;typeof h=="function"&&h(c,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(v){Nt(e,e.return,v)}}else ea(t,e,a,n);break;case 31:ea(t,e,a,n);break;case 13:ea(t,e,a,n);break;case 23:break;case 22:s=e.stateNode,c=e.alternate,e.memoizedState!==null?s._visibility&2?ea(t,e,a,n):Ql(t,e):s._visibility&2?ea(t,e,a,n):(s._visibility|=2,Fn(t,e,a,n,(e.subtreeFlags&10256)!==0||!1)),l&2048&&xr(c,e);break;case 24:ea(t,e,a,n),l&2048&&Ar(e.alternate,e);break;default:ea(t,e,a,n)}}function Fn(t,e,a,n,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var s=t,c=e,h=a,v=n,R=c.flags;switch(c.tag){case 0:case 11:case 15:Fn(s,c,h,v,l),Gl(8,c);break;case 23:break;case 22:var L=c.stateNode;c.memoizedState!==null?L._visibility&2?Fn(s,c,h,v,l):Ql(s,c):(L._visibility|=2,Fn(s,c,h,v,l)),l&&R&2048&&xr(c.alternate,c);break;case 24:Fn(s,c,h,v,l),l&&R&2048&&Ar(c.alternate,c);break;default:Fn(s,c,h,v,l)}e=e.sibling}}function Ql(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,l=n.flags;switch(n.tag){case 22:Ql(a,n),l&2048&&xr(n.alternate,n);break;case 24:Ql(a,n),l&2048&&Ar(n.alternate,n);break;default:Ql(a,n)}e=e.sibling}}var Zl=8192;function In(t,e,a){if(t.subtreeFlags&Zl)for(t=t.child;t!==null;)Cd(t,e,a),t=t.sibling}function Cd(t,e,a){switch(t.tag){case 26:In(t,e,a),t.flags&Zl&&t.memoizedState!==null&&vg(a,ta,t.memoizedState,t.memoizedProps);break;case 5:In(t,e,a);break;case 3:case 4:var n=ta;ta=Su(t.stateNode.containerInfo),In(t,e,a),ta=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Zl,Zl=16777216,In(t,e,a),Zl=n):In(t,e,a));break;default:In(t,e,a)}}function zd(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 Kl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Nd(n,t)}zd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Od(t),t=t.sibling}function Od(t){switch(t.tag){case 0:case 11:case 15:Kl(t),t.flags&2048&&Xa(9,t,t.return);break;case 3:Kl(t);break;case 12:Kl(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)):Kl(t);break;default:Kl(t)}}function su(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Nd(n,t)}zd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Xa(8,e,e.return),su(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,su(e));break;default:su(e)}t=t.sibling}}function Nd(t,e){for(;se!==null;){var a=se;switch(a.tag){case 0:case 11:case 15:Xa(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,se=n;else t:for(a=t;se!==null;){n=se;var l=n.sibling,s=n.return;if(xd(n),n===a){se=null;break t}if(l!==null){l.return=s,se=l;break t}se=s}}}var Np={getCacheForType:function(t){var e=fe(It),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(It).controller.signal}},kp=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Bt=null,gt=null,vt=0,Ot=0,Ue=null,Qa=!1,tl=!1,_r=!1,Ta=0,Pt=0,Za=0,En=0,Tr=0,je=0,el=0,Jl=null,_e=null,Mr=!1,ru=0,kd=0,ou=1/0,cu=null,Ka=null,ne=0,Ja=null,al=null,Ma=0,Dr=0,Rr=null,Ud=null,$l=0,Cr=null;function Le(){return(Mt&2)!==0&&vt!==0?vt&-vt:U.T!==null?jr():Po()}function jd(){if(je===0)if((vt&536870912)===0||wt){var t=vi;vi<<=1,(vi&3932160)===0&&(vi=262144),je=t}else je=536870912;return t=Ne.current,t!==null&&(t.flags|=32),je}function Te(t,e,a){(t===Bt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(nl(t,0),$a(t,vt,je,!1)),gl(t,a),((Mt&2)===0||t!==Bt)&&(t===Bt&&((Mt&2)===0&&(En|=a),Pt===4&&$a(t,vt,je,!1)),ca(t))}function Ld(t,e,a){if((Mt&6)!==0)throw Error(r(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||pl(t,e),l=n?Lp(t,e):Or(t,e,!0),s=n;do{if(l===0){tl&&!n&&$a(t,e,0,!1);break}else{if(a=t.current.alternate,s&&!Up(a)){l=Or(t,e,!1),s=!1;continue}if(l===2){if(s=e,t.errorRecoveryDisabledLanes&s)var c=0;else c=t.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;t:{var h=t;l=Jl;var v=h.current.memoizedState.isDehydrated;if(v&&(nl(h,c).flags|=256),c=Or(h,c,!1),c!==2){if(_r&&!v){h.errorRecoveryDisabledLanes|=s,En|=s,l=4;break t}s=_e,_e=l,s!==null&&(_e===null?_e=s:_e.push.apply(_e,s))}l=c}if(s=!1,l!==2)continue}}if(l===1){nl(t,0),$a(t,e,0,!0);break}t:{switch(n=t,s=l,s){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:$a(n,e,je,!Qa);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=ru+300-qt(),10<l)){if($a(n,e,je,!Qa),Si(n,0,!0)!==0)break t;Ma=e,n.timeoutHandle=mh(Bd.bind(null,n,a,_e,cu,Mr,e,je,En,el,Qa,s,"Throttled",-0,0),l);break t}Bd(n,a,_e,cu,Mr,e,je,En,el,Qa,s,null,-0,0)}}break}while(!0);ca(t)}function Bd(t,e,a,n,l,s,c,h,v,R,L,H,C,z){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:da},Cd(e,s,H);var F=(s&62914560)===s?ru-qt():(s&4194048)===s?kd-qt():0;if(F=bg(H,F),F!==null){Ma=s,t.cancelPendingCommit=F(Zd.bind(null,t,e,s,a,n,l,c,h,v,L,H,null,C,z)),$a(t,s,c,!R);return}}Zd(t,e,s,a,n,l,c,h,v)}function Up(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],s=l.getSnapshot;l=l.value;try{if(!ze(s(),l))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;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 $a(t,e,a,n){e&=~Tr,e&=~En,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var l=e;0<l;){var s=31-Ce(l),c=1<<s;n[s]=-1,l&=~c}a!==0&&Ko(t,a,e)}function fu(){return(Mt&6)===0?(Pl(0),!1):!0}function zr(){if(gt!==null){if(Ot===0)var t=gt.return;else t=gt,ga=hn=null,Ks(t),Kn=null,Ol=0,t=gt;for(;t!==null;)pd(t.alternate,t),t=t.return;gt=null}}function nl(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,eg(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Ma=0,zr(),Bt=t,gt=a=ma(t.current,null),vt=e,Ot=0,Ue=null,Qa=!1,tl=pl(t,e),_r=!1,el=je=Tr=En=Za=Pt=0,_e=Jl=null,Mr=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var l=31-Ce(n),s=1<<l;e|=t[l],n&=~s}return Ta=e,Oi(),a}function Hd(t,e){ft=null,U.H=ql,e===Zn||e===qi?(e=tf(),Ot=3):e===Us?(e=tf(),Ot=4):Ot=e===or?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,gt===null&&(Pt=1,tu(t,Ge(e,t.current)))}function qd(){var t=Ne.current;return t===null?!0:(vt&4194048)===vt?Ke===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Ke:!1}function Yd(){var t=U.H;return U.H=ql,t===null?ql:t}function Vd(){var t=U.A;return U.A=Np,t}function du(){Pt=4,Qa||(vt&4194048)!==vt&&Ne.current!==null||(tl=!0),(Za&134217727)===0&&(En&134217727)===0||Bt===null||$a(Bt,vt,je,!1)}function Or(t,e,a){var n=Mt;Mt|=2;var l=Yd(),s=Vd();(Bt!==t||vt!==e)&&(cu=null,nl(t,e)),e=!1;var c=Pt;t:do try{if(Ot!==0&>!==null){var h=gt,v=Ue;switch(Ot){case 8:zr(),c=6;break t;case 3:case 2:case 9:case 6:Ne.current===null&&(e=!0);var R=Ot;if(Ot=0,Ue=null,ll(t,h,v,R),a&&tl){c=0;break t}break;default:R=Ot,Ot=0,Ue=null,ll(t,h,v,R)}}jp(),c=Pt;break}catch(L){Hd(t,L)}while(!0);return e&&t.shellSuspendCounter++,ga=hn=null,Mt=n,U.H=l,U.A=s,gt===null&&(Bt=null,vt=0,Oi()),c}function jp(){for(;gt!==null;)Gd(gt)}function Lp(t,e){var a=Mt;Mt|=2;var n=Yd(),l=Vd();Bt!==t||vt!==e?(cu=null,ou=qt()+500,nl(t,e)):tl=pl(t,e);t:do try{if(Ot!==0&>!==null){e=gt;var s=Ue;e:switch(Ot){case 1:Ot=0,Ue=null,ll(t,e,s,1);break;case 2:case 9:if(Fc(s)){Ot=0,Ue=null,Xd(e);break}e=function(){Ot!==2&&Ot!==9||Bt!==t||(Ot=7),ca(t)},s.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:Fc(s)?(Ot=0,Ue=null,Xd(e)):(Ot=0,Ue=null,ll(t,e,s,7));break;case 5:var c=null;switch(gt.tag){case 26:c=gt.memoizedState;case 5:case 27:var h=gt;if(c?Rh(c):h.stateNode.complete){Ot=0,Ue=null;var v=h.sibling;if(v!==null)gt=v;else{var R=h.return;R!==null?(gt=R,hu(R)):gt=null}break e}}Ot=0,Ue=null,ll(t,e,s,5);break;case 6:Ot=0,Ue=null,ll(t,e,s,6);break;case 8:zr(),Pt=6;break t;default:throw Error(r(462))}}Bp();break}catch(L){Hd(t,L)}while(!0);return ga=hn=null,U.H=n,U.A=l,Mt=a,gt!==null?0:(Bt=null,vt=0,Oi(),Pt)}function Bp(){for(;gt!==null&&!ge();)Gd(gt)}function Gd(t){var e=hd(t.alternate,t,Ta);t.memoizedProps=t.pendingProps,e===null?hu(t):gt=e}function Xd(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=sd(a,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=sd(a,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Ks(e);default:pd(a,e),e=gt=Yc(e,Ta),e=hd(a,e,Ta)}t.memoizedProps=t.pendingProps,e===null?hu(t):gt=e}function ll(t,e,a,n){ga=hn=null,Ks(e),Kn=null,Ol=0;var l=e.return;try{if(Tp(t,l,e,a,vt)){Pt=1,tu(t,Ge(a,t.current)),gt=null;return}}catch(s){if(l!==null)throw gt=l,s;Pt=1,tu(t,Ge(a,t.current)),gt=null;return}e.flags&32768?(wt||n===1?t=!0:tl||(vt&536870912)!==0?t=!1:(Qa=t=!0,(n===2||n===9||n===3||n===6)&&(n=Ne.current,n!==null&&n.tag===13&&(n.flags|=16384))),Qd(e,t)):hu(e)}function hu(t){var e=t;do{if((e.flags&32768)!==0){Qd(e,Qa);return}t=e.return;var a=Rp(e.alternate,e,Ta);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Pt===0&&(Pt=5)}function Qd(t,e){do{var a=Cp(t.alternate,t);if(a!==null){a.flags&=32767,gt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=a}while(t!==null);Pt=6,gt=null}function Zd(t,e,a,n,l,s,c,h,v){t.cancelPendingCommit=null;do mu();while(ne!==0);if((Mt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(s=e.lanes|e.childLanes,s|=Ss,y0(t,a,s,c,h,v),t===Bt&&(gt=Bt=null,vt=0),al=e,Ja=t,Ma=a,Dr=s,Rr=l,Ud=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Vp(gi,function(){return Wd(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null,l=M.p,M.p=2,c=Mt,Mt|=4;try{zp(t,e,a)}finally{Mt=c,M.p=l,U.T=n}}ne=1,Kd(),Jd(),$d()}}function Kd(){if(ne===1){ne=0;var t=Ja,e=al,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var n=M.p;M.p=2;var l=Mt;Mt|=4;try{Md(e,t);var s=Xr,c=Oc(t.containerInfo),h=s.focusedElem,v=s.selectionRange;if(c!==h&&h&&h.ownerDocument&&zc(h.ownerDocument.documentElement,h)){if(v!==null&&ps(h)){var R=v.start,L=v.end;if(L===void 0&&(L=R),"selectionStart"in h)h.selectionStart=R,h.selectionEnd=Math.min(L,h.value.length);else{var H=h.ownerDocument||document,C=H&&H.defaultView||window;if(C.getSelection){var z=C.getSelection(),F=h.textContent.length,it=Math.min(v.start,F),Lt=v.end===void 0?it:Math.min(v.end,F);!z.extend&&it>Lt&&(c=Lt,Lt=it,it=c);var _=Cc(h,it),S=Cc(h,Lt);if(_&&S&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var D=H.createRange();D.setStart(_.node,_.offset),z.removeAllRanges(),it>Lt?(z.addRange(D),z.extend(S.node,S.offset)):(D.setEnd(S.node,S.offset),z.addRange(D))}}}}for(H=[],z=h;z=z.parentNode;)z.nodeType===1&&H.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<H.length;h++){var B=H[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Tu=!!Gr,Xr=Gr=null}finally{Mt=l,M.p=n,U.T=a}}t.current=e,ne=2}}function Jd(){if(ne===2){ne=0;var t=Ja,e=al,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var n=M.p;M.p=2;var l=Mt;Mt|=4;try{Ed(t,e.alternate,e)}finally{Mt=l,M.p=n,U.T=a}}ne=3}}function $d(){if(ne===4||ne===3){ne=0,ie();var t=Ja,e=al,a=Ma,n=Ud;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,al=Ja=null,Pd(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Ka=null),Pu(a),e=e.stateNode,Re&&typeof Re.onCommitFiberRoot=="function")try{Re.onCommitFiberRoot(ml,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=U.T,l=M.p,M.p=2,U.T=null;try{for(var s=t.onRecoverableError,c=0;c<n.length;c++){var h=n[c];s(h.value,{componentStack:h.stack})}}finally{U.T=e,M.p=l}}(Ma&3)!==0&&mu(),ca(t),l=t.pendingLanes,(a&261930)!==0&&(l&42)!==0?t===Cr?$l++:($l=0,Cr=t):$l=0,Pl(0)}}function Pd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Cl(e)))}function mu(){return Kd(),Jd(),$d(),Wd()}function Wd(){if(ne!==5)return!1;var t=Ja,e=Dr;Dr=0;var a=Pu(Ma),n=U.T,l=M.p;try{M.p=32>a?32:a,U.T=null,a=Rr,Rr=null;var s=Ja,c=Ma;if(ne=0,al=Ja=null,Ma=0,(Mt&6)!==0)throw Error(r(331));var h=Mt;if(Mt|=4,Od(s.current),Rd(s,s.current,c,a),Mt=h,Pl(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(ml,s)}catch{}return!0}finally{M.p=l,U.T=n,Pd(t,e)}}function Fd(t,e,a){e=Ge(a,e),e=rr(t.stateNode,e,2),t=Ya(t,e,2),t!==null&&(gl(t,2),ca(t))}function Nt(t,e,a){if(t.tag===3)Fd(t,t,a);else for(;e!==null;){if(e.tag===3){Fd(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ka===null||!Ka.has(n))){t=Ge(a,t),a=If(2),n=Ya(e,a,2),n!==null&&(td(a,n,e,t),gl(n,2),ca(n));break}}e=e.return}}function Nr(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new kp;var l=new Set;n.set(e,l)}else l=n.get(e),l===void 0&&(l=new Set,n.set(e,l));l.has(a)||(_r=!0,l.add(a),t=Hp.bind(null,t,e,a),e.then(t,t))}function Hp(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(vt&a)===a&&(Pt===4||Pt===3&&(vt&62914560)===vt&&300>qt()-ru?(Mt&2)===0&&nl(t,0):Tr|=a,el===vt&&(el=0)),ca(t)}function Id(t,e){e===0&&(e=Zo()),t=cn(t,e),t!==null&&(gl(t,e),ca(t))}function qp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Id(t,a)}function Yp(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,l=t.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(e),Id(t,a)}function Vp(t,e){return Jt(t,e)}var pu=null,il=null,kr=!1,gu=!1,Ur=!1,Pa=0;function ca(t){t!==il&&t.next===null&&(il===null?pu=il=t:il=il.next=t),gu=!0,kr||(kr=!0,Xp())}function Pl(t,e){if(!Ur&&gu){Ur=!0;do for(var a=!1,n=pu;n!==null;){if(t!==0){var l=n.pendingLanes;if(l===0)var s=0;else{var c=n.suspendedLanes,h=n.pingedLanes;s=(1<<31-Ce(42|t)+1)-1,s&=l&~(c&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,nh(n,s))}else s=vt,s=Si(n,n===Bt?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||pl(n,s)||(a=!0,nh(n,s));n=n.next}while(a);Ur=!1}}function Gp(){th()}function th(){gu=kr=!1;var t=0;Pa!==0&&tg()&&(t=Pa);for(var e=qt(),a=null,n=pu;n!==null;){var l=n.next,s=eh(n,e);s===0?(n.next=null,a===null?pu=l:a.next=l,l===null&&(il=a)):(a=n,(t!==0||(s&3)!==0)&&(gu=!0)),n=l}ne!==0&&ne!==5||Pl(t),Pa!==0&&(Pa=0)}function eh(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,l=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var c=31-Ce(s),h=1<<c,v=l[c];v===-1?((h&a)===0||(h&n)!==0)&&(l[c]=g0(h,e)):v<=e&&(t.expiredLanes|=h),s&=~h}if(e=Bt,a=vt,a=Si(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&De(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||pl(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&De(n),Pu(a)){case 2:case 8:a=Xo;break;case 32:a=gi;break;case 268435456:a=Qo;break;default:a=gi}return n=ah.bind(null,t),a=Jt(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&De(n),t.callbackPriority=2,t.callbackNode=null,2}function ah(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(mu()&&t.callbackNode!==a)return null;var n=vt;return n=Si(t,t===Bt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Ld(t,n,e),eh(t,qt()),t.callbackNode!=null&&t.callbackNode===a?ah.bind(null,t):null)}function nh(t,e){if(mu())return null;Ld(t,e,!0)}function Xp(){ag(function(){(Mt&6)!==0?Jt(ua,Gp):th()})}function jr(){if(Pa===0){var t=Xn;t===0&&(t=yi,yi<<=1,(yi&261888)===0&&(yi=256)),Pa=t}return Pa}function lh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ai(""+t)}function ih(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function Qp(t,e,a,n,l){if(e==="submit"&&a&&a.stateNode===l){var s=lh((l[Se]||null).action),c=n.submitter;c&&(e=(e=c[Se]||null)?lh(e.formAction):c.getAttribute("formAction"),e!==null&&(s=e,c=null));var h=new Di("action","action",null,n,l);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Pa!==0){var v=c?ih(l,c):new FormData(l);ar(a,{pending:!0,data:v,method:l.method,action:s},null,v)}}else typeof s=="function"&&(h.preventDefault(),v=c?ih(l,c):new FormData(l),ar(a,{pending:!0,data:v,method:l.method,action:s},s,v))},currentTarget:l}]})}}for(var Lr=0;Lr<bs.length;Lr++){var Br=bs[Lr],Zp=Br.toLowerCase(),Kp=Br[0].toUpperCase()+Br.slice(1);Ie(Zp,"on"+Kp)}Ie(Uc,"onAnimationEnd"),Ie(jc,"onAnimationIteration"),Ie(Lc,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(op,"onTransitionRun"),Ie(cp,"onTransitionStart"),Ie(fp,"onTransitionCancel"),Ie(Bc,"onTransitionEnd"),Cn("onMouseEnter",["mouseout","mouseover"]),Cn("onMouseLeave",["mouseout","mouseover"]),Cn("onPointerEnter",["pointerout","pointerover"]),Cn("onPointerLeave",["pointerout","pointerover"]),un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),un("onBeforeInput",["compositionend","keypress","textInput","paste"]),un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wl="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(" "),Jp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wl));function uh(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],l=n.event;n=n.listeners;t:{var s=void 0;if(e)for(var c=n.length-1;0<=c;c--){var h=n[c],v=h.instance,R=h.currentTarget;if(h=h.listener,v!==s&&l.isPropagationStopped())break t;s=h,l.currentTarget=R;try{s(l)}catch(L){zi(L)}l.currentTarget=null,s=v}else for(c=0;c<n.length;c++){if(h=n[c],v=h.instance,R=h.currentTarget,h=h.listener,v!==s&&l.isPropagationStopped())break t;s=h,l.currentTarget=R;try{s(l)}catch(L){zi(L)}l.currentTarget=null,s=v}}}}function yt(t,e){var a=e[Wu];a===void 0&&(a=e[Wu]=new Set);var n=t+"__bubble";a.has(n)||(sh(e,t,2,!1),a.add(n))}function Hr(t,e,a){var n=0;e&&(n|=4),sh(a,t,n,e)}var yu="_reactListening"+Math.random().toString(36).slice(2);function qr(t){if(!t[yu]){t[yu]=!0,Io.forEach(function(a){a!=="selectionchange"&&(Jp.has(a)||Hr(a,!1,t),Hr(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[yu]||(e[yu]=!0,Hr("selectionchange",!1,e))}}function sh(t,e,a,n){switch(jh(e)){case 2:var l=Eg;break;case 8:l=xg;break;default:l=eo}a=l.bind(null,e,a,t),l=void 0,!us||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),n?l!==void 0?t.addEventListener(e,a,{capture:!0,passive:l}):t.addEventListener(e,a,!0):l!==void 0?t.addEventListener(e,a,{passive:l}):t.addEventListener(e,a,!1)}function Yr(t,e,a,n,l){var s=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var h=n.stateNode.containerInfo;if(h===l)break;if(c===4)for(c=n.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===l)return;c=c.return}for(;h!==null;){if(c=Mn(h),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){n=s=c;continue t}h=h.parentNode}}n=n.return}fc(function(){var R=s,L=ls(a),H=[];t:{var C=Hc.get(t);if(C!==void 0){var z=Di,F=t;switch(t){case"keypress":if(Ti(a)===0)break t;case"keydown":case"keyup":z=Y0;break;case"focusin":F="focus",z=cs;break;case"focusout":F="blur",z=cs;break;case"beforeblur":case"afterblur":z=cs;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=mc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=R0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=X0;break;case Uc:case jc:case Lc:z=O0;break;case Bc:z=Z0;break;case"scroll":case"scrollend":z=M0;break;case"wheel":z=J0;break;case"copy":case"cut":case"paste":z=k0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=gc;break;case"toggle":case"beforetoggle":z=P0}var it=(e&4)!==0,Lt=!it&&(t==="scroll"||t==="scrollend"),_=it?C!==null?C+"Capture":null:C;it=[];for(var S=R,D;S!==null;){var B=S;if(D=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||D===null||_===null||(B=bl(S,_),B!=null&&it.push(Fl(S,B,D))),Lt)break;S=S.return}0<it.length&&(C=new z(C,F,null,a,L),H.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&a!==ns&&(F=a.relatedTarget||a.fromElement)&&(Mn(F)||F[Tn]))break t;if((z||C)&&(C=L.window===L?L:(C=L.ownerDocument)?C.defaultView||C.parentWindow:window,z?(F=a.relatedTarget||a.toElement,z=R,F=F?Mn(F):null,F!==null&&(Lt=d(F),it=F.tag,F!==Lt||it!==5&&it!==27&&it!==6)&&(F=null)):(z=null,F=R),z!==F)){if(it=mc,B="onMouseLeave",_="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(it=gc,B="onPointerLeave",_="onPointerEnter",S="pointer"),Lt=z==null?C:vl(z),D=F==null?C:vl(F),C=new it(B,S+"leave",z,a,L),C.target=Lt,C.relatedTarget=D,B=null,Mn(L)===R&&(it=new it(_,S+"enter",F,a,L),it.target=D,it.relatedTarget=Lt,B=it),Lt=B,z&&F)e:{for(it=$p,_=z,S=F,D=0,B=_;B;B=it(B))D++;B=0;for(var at=S;at;at=it(at))B++;for(;0<D-B;)_=it(_),D--;for(;0<B-D;)S=it(S),B--;for(;D--;){if(_===S||S!==null&&_===S.alternate){it=_;break e}_=it(_),S=it(S)}it=null}else it=null;z!==null&&rh(H,C,z,it,!1),F!==null&&Lt!==null&&rh(H,Lt,F,it,!0)}}t:{if(C=R?vl(R):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var At=Ac;else if(Ec(C))if(_c)At=up;else{At=lp;var et=np}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?R&&as(R.elementType)&&(At=Ac):At=ip;if(At&&(At=At(t,R))){xc(H,At,a,L);break t}et&&et(t,C,R),t==="focusout"&&R&&C.type==="number"&&R.memoizedProps.value!=null&&es(C,"number",C.value)}switch(et=R?vl(R):window,t){case"focusin":(Ec(et)||et.contentEditable==="true")&&(jn=et,gs=R,Ml=null);break;case"focusout":Ml=gs=jn=null;break;case"mousedown":ys=!0;break;case"contextmenu":case"mouseup":case"dragend":ys=!1,Nc(H,a,L);break;case"selectionchange":if(rp)break;case"keydown":case"keyup":Nc(H,a,L)}var dt;if(ds)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Un?Sc(t,a)&&(bt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(bt="onCompositionStart");bt&&(yc&&a.locale!=="ko"&&(Un||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Un&&(dt=dc()):(ka=L,ss="value"in ka?ka.value:ka.textContent,Un=!0)),et=vu(R,bt),0<et.length&&(bt=new pc(bt,t,null,a,L),H.push({event:bt,listeners:et}),dt?bt.data=dt:(dt=wc(a),dt!==null&&(bt.data=dt)))),(dt=F0?I0(t,a):tp(t,a))&&(bt=vu(R,"onBeforeInput"),0<bt.length&&(et=new pc("onBeforeInput","beforeinput",null,a,L),H.push({event:et,listeners:bt}),et.data=dt)),Qp(H,t,R,a,L)}uh(H,e)})}function Fl(t,e,a){return{instance:t,listener:e,currentTarget:a}}function vu(t,e){for(var a=e+"Capture",n=[];t!==null;){var l=t,s=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||s===null||(l=bl(t,a),l!=null&&n.unshift(Fl(t,l,s)),l=bl(t,e),l!=null&&n.push(Fl(t,l,s))),t.tag===3)return n;t=t.return}return[]}function $p(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rh(t,e,a,n,l){for(var s=e._reactName,c=[];a!==null&&a!==n;){var h=a,v=h.alternate,R=h.stateNode;if(h=h.tag,v!==null&&v===n)break;h!==5&&h!==26&&h!==27||R===null||(v=R,l?(R=bl(a,s),R!=null&&c.unshift(Fl(a,R,v))):l||(R=bl(a,s),R!=null&&c.push(Fl(a,R,v)))),a=a.return}c.length!==0&&t.push({event:e,listeners:c})}var Pp=/\r\n?/g,Wp=/\u0000|\uFFFD/g;function oh(t){return(typeof t=="string"?t:""+t).replace(Pp,`
`).replace(Wp,"")}function ch(t,e){return e=oh(e),oh(t)===e}function jt(t,e,a,n,l,s){switch(a){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||On(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&On(t,""+n);break;case"className":Ei(t,"class",n);break;case"tabIndex":Ei(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Ei(t,a,n);break;case"style":oc(t,n,s);break;case"data":if(e!=="object"){Ei(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Ai(""+n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(a,"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 s=="function"&&(a==="formAction"?(e!=="input"&&jt(t,e,"name",l.name,l,null),jt(t,e,"formEncType",l.formEncType,l,null),jt(t,e,"formMethod",l.formMethod,l,null),jt(t,e,"formTarget",l.formTarget,l,null)):(jt(t,e,"encType",l.encType,l,null),jt(t,e,"method",l.method,l,null),jt(t,e,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Ai(""+n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=da);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=Ai(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""+n):t.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":yt("beforetoggle",t),yt("toggle",t),wi(t,"popover",n);break;case"xlinkActuate":fa(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":fa(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":fa(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":fa(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":fa(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":fa(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":fa(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":fa(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":fa(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":wi(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_0.get(a)||a,wi(t,a,n))}}function Vr(t,e,a,n,l,s){switch(a){case"style":oc(t,n,s);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof n=="string"?On(t,n):(typeof n=="number"||typeof n=="bigint")&&On(t,""+n);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tc.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),e=a.slice(2,l?a.length-7:void 0),s=t[Se]||null,s=s!=null?s[a]:null,typeof s=="function"&&t.removeEventListener(e,s,l),typeof n=="function")){typeof s!="function"&&s!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,n,l);break t}a in t?t[a]=n:n===!0?t.setAttribute(a,""):wi(t,a,n)}}}function he(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var n=!1,l=!1,s;for(s in a)if(a.hasOwnProperty(s)){var c=a[s];if(c!=null)switch(s){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,s,c,a,null)}}l&&jt(t,e,"srcSet",a.srcSet,a,null),n&&jt(t,e,"src",a.src,a,null);return;case"input":yt("invalid",t);var h=s=c=l=null,v=null,R=null;for(n in a)if(a.hasOwnProperty(n)){var L=a[n];if(L!=null)switch(n){case"name":l=L;break;case"type":c=L;break;case"checked":v=L;break;case"defaultChecked":R=L;break;case"value":s=L;break;case"defaultValue":h=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,e));break;default:jt(t,e,n,L,a,null)}}ic(t,s,h,v,R,c,l,!1);return;case"select":yt("invalid",t),n=c=s=null;for(l in a)if(a.hasOwnProperty(l)&&(h=a[l],h!=null))switch(l){case"value":s=h;break;case"defaultValue":c=h;break;case"multiple":n=h;default:jt(t,e,l,h,a,null)}e=s,a=c,t.multiple=!!n,e!=null?zn(t,!!n,e,!1):a!=null&&zn(t,!!n,a,!0);return;case"textarea":yt("invalid",t),s=l=n=null;for(c in a)if(a.hasOwnProperty(c)&&(h=a[c],h!=null))switch(c){case"value":n=h;break;case"defaultValue":l=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:jt(t,e,c,h,a,null)}sc(t,n,l,s);return;case"option":for(v in a)if(a.hasOwnProperty(v)&&(n=a[v],n!=null))switch(v){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:jt(t,e,v,n,a,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(n=0;n<Wl.length;n++)yt(Wl[n],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("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(R in a)if(a.hasOwnProperty(R)&&(n=a[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,R,n,a,null)}return;default:if(as(e)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&Vr(t,e,L,n,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(n=a[h],n!=null&&jt(t,e,h,n,a,null))}function Fp(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,s=null,c=null,h=null,v=null,R=null,L=null;for(z in a){var H=a[z];if(a.hasOwnProperty(z)&&H!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":v=H;default:n.hasOwnProperty(z)||jt(t,e,z,null,n,H)}}for(var C in n){var z=n[C];if(H=a[C],n.hasOwnProperty(C)&&(z!=null||H!=null))switch(C){case"type":s=z;break;case"name":l=z;break;case"checked":R=z;break;case"defaultChecked":L=z;break;case"value":c=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==H&&jt(t,e,C,z,n,H)}}ts(t,c,h,v,R,L,s,l);return;case"select":z=c=h=C=null;for(s in a)if(v=a[s],a.hasOwnProperty(s)&&v!=null)switch(s){case"value":break;case"multiple":z=v;default:n.hasOwnProperty(s)||jt(t,e,s,null,n,v)}for(l in n)if(s=n[l],v=a[l],n.hasOwnProperty(l)&&(s!=null||v!=null))switch(l){case"value":C=s;break;case"defaultValue":h=s;break;case"multiple":c=s;default:s!==v&&jt(t,e,l,s,n,v)}e=h,a=c,n=z,C!=null?zn(t,!!a,C,!1):!!n!=!!a&&(e!=null?zn(t,!!a,e,!0):zn(t,!!a,a?[]:"",!1));return;case"textarea":z=C=null;for(h in a)if(l=a[h],a.hasOwnProperty(h)&&l!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:jt(t,e,h,null,n,l)}for(c in n)if(l=n[c],s=a[c],n.hasOwnProperty(c)&&(l!=null||s!=null))switch(c){case"value":C=l;break;case"defaultValue":z=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==s&&jt(t,e,c,l,n,s)}uc(t,C,z);return;case"option":for(var F in a)if(C=a[F],a.hasOwnProperty(F)&&C!=null&&!n.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:jt(t,e,F,null,n,C)}for(v in n)if(C=n[v],z=a[v],n.hasOwnProperty(v)&&C!==z&&(C!=null||z!=null))switch(v){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:jt(t,e,v,C,n,z)}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 a)C=a[it],a.hasOwnProperty(it)&&C!=null&&!n.hasOwnProperty(it)&&jt(t,e,it,null,n,C);for(R in n)if(C=n[R],z=a[R],n.hasOwnProperty(R)&&C!==z&&(C!=null||z!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:jt(t,e,R,C,n,z)}return;default:if(as(e)){for(var Lt in a)C=a[Lt],a.hasOwnProperty(Lt)&&C!==void 0&&!n.hasOwnProperty(Lt)&&Vr(t,e,Lt,void 0,n,C);for(L in n)C=n[L],z=a[L],!n.hasOwnProperty(L)||C===z||C===void 0&&z===void 0||Vr(t,e,L,C,n,z);return}}for(var _ in a)C=a[_],a.hasOwnProperty(_)&&C!=null&&!n.hasOwnProperty(_)&&jt(t,e,_,null,n,C);for(H in n)C=n[H],z=a[H],!n.hasOwnProperty(H)||C===z||C==null&&z==null||jt(t,e,H,C,n,z)}function fh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ip(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],s=l.transferSize,c=l.initiatorType,h=l.duration;if(s&&h&&fh(c)){for(c=0,h=l.responseEnd,n+=1;n<a.length;n++){var v=a[n],R=v.startTime;if(R>h)break;var L=v.transferSize,H=v.initiatorType;L&&fh(H)&&(v=v.responseEnd,c+=L*(v<h?1:(h-R)/(v-R)))}if(--n,e+=8*(s+c)/(l.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 Gr=null,Xr=null;function bu(t){return t.nodeType===9?t:t.ownerDocument}function dh(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 hh(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 Qr(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 Zr=null;function tg(){var t=window.event;return t&&t.type==="popstate"?t===Zr?!1:(Zr=t,!0):(Zr=null,!1)}var mh=typeof setTimeout=="function"?setTimeout:void 0,eg=typeof clearTimeout=="function"?clearTimeout:void 0,ph=typeof Promise=="function"?Promise:void 0,ag=typeof queueMicrotask=="function"?queueMicrotask:typeof ph<"u"?function(t){return ph.resolve(null).then(t).catch(ng)}:mh;function ng(t){setTimeout(function(){throw t})}function Wa(t){return t==="head"}function gh(t,e){var a=e,n=0;do{var l=a.nextSibling;if(t.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(l),ol(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Il(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Il(a);for(var s=a.firstChild;s;){var c=s.nextSibling,h=s.nodeName;s[yl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=c}}else a==="body"&&Il(t.ownerDocument.body);a=l}while(a);ol(e)}function yh(t,e){var a=t;t=0;do{var n=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function Kr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Kr(a),Fu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function lg(t,e,a,n){for(;t.nodeType===1;){var l=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[yl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(s=t.getAttribute("src"),(s!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var s=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Je(t.nextSibling),t===null)break}return null}function ig(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Je(t.nextSibling),t===null))return null;return t}function vh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Je(t.nextSibling),t===null))return null;return t}function Jr(t){return t.data==="$?"||t.data==="$~"}function $r(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function ug(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Je(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 Pr=null;function bh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Je(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Sh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function wh(t,e,a){switch(e=bu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Il(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Fu(t)}var $e=new Map,Eh=new Set;function Su(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Da=M.d;M.d={f:sg,r:rg,D:og,C:cg,L:fg,m:dg,X:mg,S:hg,M:pg};function sg(){var t=Da.f(),e=fu();return t||e}function rg(t){var e=Dn(t);e!==null&&e.tag===5&&e.type==="form"?Hf(e):Da.r(t)}var ul=typeof document>"u"?null:document;function xh(t,e,a){var n=ul;if(n&&typeof e=="string"&&e){var l=Ye(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),Eh.has(l)||(Eh.add(l),t={rel:t,crossOrigin:a,href:e},n.querySelector(l)===null&&(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function og(t){Da.D(t),xh("dns-prefetch",t,null)}function cg(t,e){Da.C(t,e),xh("preconnect",t,e)}function fg(t,e,a){Da.L(t,e,a);var n=ul;if(n&&t&&e){var l='link[rel="preload"][as="'+Ye(e)+'"]';e==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+Ye(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+Ye(a.imageSizes)+'"]')):l+='[href="'+Ye(t)+'"]';var s=l;switch(e){case"style":s=sl(t);break;case"script":s=rl(t)}$e.has(s)||(t=A({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),$e.set(s,t),n.querySelector(l)!==null||e==="style"&&n.querySelector(ti(s))||e==="script"&&n.querySelector(ei(s))||(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function dg(t,e){Da.m(t,e);var a=ul;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+Ye(n)+'"][href="'+Ye(t)+'"]',s=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=rl(t)}if(!$e.has(s)&&(t=A({rel:"modulepreload",href:t},e),$e.set(s,t),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ei(s)))return}n=a.createElement("link"),he(n,"link",t),ue(n),a.head.appendChild(n)}}}function hg(t,e,a){Da.S(t,e,a);var n=ul;if(n&&t){var l=Rn(n).hoistableStyles,s=sl(t);e=e||"default";var c=l.get(s);if(!c){var h={loading:0,preload:null};if(c=n.querySelector(ti(s)))h.loading=5;else{t=A({rel:"stylesheet",href:t,"data-precedence":e},a),(a=$e.get(s))&&Wr(t,a);var v=c=n.createElement("link");ue(v),he(v,"link",t),v._p=new Promise(function(R,L){v.onload=R,v.onerror=L}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,wu(c,e,n)}c={type:"stylesheet",instance:c,count:1,state:h},l.set(s,c)}}}function mg(t,e){Da.X(t,e);var a=ul;if(a&&t){var n=Rn(a).hoistableScripts,l=rl(t),s=n.get(l);s||(s=a.querySelector(ei(l)),s||(t=A({src:t,async:!0},e),(e=$e.get(l))&&Fr(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function pg(t,e){Da.M(t,e);var a=ul;if(a&&t){var n=Rn(a).hoistableScripts,l=rl(t),s=n.get(l);s||(s=a.querySelector(ei(l)),s||(t=A({src:t,async:!0,type:"module"},e),(e=$e.get(l))&&Fr(t,e),s=a.createElement("script"),ue(s),he(s,"link",t),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(l,s))}}function Ah(t,e,a,n){var l=(l=ht.current)?Su(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=sl(a.href),a=Rn(l).hoistableStyles,n=a.get(e),n||(n={type:"style",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=sl(a.href);var s=Rn(l).hoistableStyles,c=s.get(t);if(c||(l=l.ownerDocument||l,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,c),(s=l.querySelector(ti(t)))&&!s._p&&(c.instance=s,c.state.loading=5),$e.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$e.set(t,a),s||gg(l,t,a,c.state))),e&&n===null)throw Error(r(528,""));return c}if(e&&n!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=rl(a),a=Rn(l).hoistableScripts,n=a.get(e),n||(n={type:"script",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function sl(t){return'href="'+Ye(t)+'"'}function ti(t){return'link[rel="stylesheet"]['+t+"]"}function _h(t){return A({},t,{"data-precedence":t.precedence,precedence:null})}function gg(t,e,a,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),he(e,"link",a),ue(e),t.head.appendChild(e))}function rl(t){return'[src="'+Ye(t)+'"]'}function ei(t){return"script[async]"+t}function Th(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ye(a.href)+'"]');if(n)return e.instance=n,ue(n),n;var l=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ue(n),he(n,"style",l),wu(n,a.precedence,t),e.instance=n;case"stylesheet":l=sl(a.href);var s=t.querySelector(ti(l));if(s)return e.state.loading|=4,e.instance=s,ue(s),s;n=_h(a),(l=$e.get(l))&&Wr(n,l),s=(t.ownerDocument||t).createElement("link"),ue(s);var c=s;return c._p=new Promise(function(h,v){c.onload=h,c.onerror=v}),he(s,"link",n),e.state.loading|=4,wu(s,a.precedence,t),e.instance=s;case"script":return s=rl(a.src),(l=t.querySelector(ei(s)))?(e.instance=l,ue(l),l):(n=a,(l=$e.get(s))&&(n=A({},a),Fr(n,l)),t=t.ownerDocument||t,l=t.createElement("script"),ue(l),he(l,"link",n),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,wu(n,a.precedence,t));return e.instance}function wu(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,s=l,c=0;c<n.length;c++){var h=n[c];if(h.dataset.precedence===e)s=h;else if(s!==l)break}s?s.parentNode.insertBefore(t,s.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Fr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Eu=null;function Mh(t,e,a){if(Eu===null){var n=new Map,l=Eu=new Map;l.set(a,n)}else l=Eu,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),l=0;l<a.length;l++){var s=a[l];if(!(s[yl]||s[oe]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var c=s.getAttribute(e)||"";c=t+c;var h=n.get(c);h?h.push(s):n.set(c,[s])}}return n}function Dh(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function yg(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Rh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function vg(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=sl(n.href),s=e.querySelector(ti(l));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=xu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=s,ue(s);return}s=e.ownerDocument||e,n=_h(n),(l=$e.get(l))&&Wr(n,l),s=s.createElement("link"),ue(s);var c=s;c._p=new Promise(function(h,v){c.onload=h,c.onerror=v}),he(s,"link",n),a.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=xu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Ir=0;function bg(t,e){return t.stylesheets&&t.count===0&&_u(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&_u(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4+e);0<t.imgBytes&&Ir===0&&(Ir=62500*Ip());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&_u(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s()}},(t.imgBytes>Ir?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_u(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Au=null;function _u(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Au=new Map,e.forEach(Sg,t),Au=null,xu.call(t))}function Sg(t,e){if(!(e.state.loading&4)){var a=Au.get(t);if(a)var n=a.get(null);else{a=new Map,Au.set(t,a);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<l.length;s++){var c=l[s];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),n=c)}n&&a.set(null,n)}l=e.instance,c=l.getAttribute("data-precedence"),s=a.get(c)||n,s===n&&a.set(null,l),a.set(c,l),this.count++,n=xu.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),s?s.parentNode.insertBefore(l,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var ai={$$typeof:p,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function wg(t,e,a,n,l,s,c,h,v){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=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=s,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Ch(t,e,a,n,l,s,c,h,v,R,L,H){return t=new wg(t,e,a,c,v,R,L,H,h),e=1,s===!0&&(e|=24),s=Oe(3,null,null,e),t.current=s,s.stateNode=t,e=Os(),e.refCount++,t.pooledCache=e,e.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:e},js(s),t}function zh(t){return t?(t=Hn,t):Hn}function Oh(t,e,a,n,l,s){l=zh(l),n.context===null?n.context=l:n.pendingContext=l,n=qa(e),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=Ya(t,n,e),a!==null&&(Te(a,t,e),kl(a,t,e))}function Nh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function to(t,e){Nh(t,e),(t=t.alternate)&&Nh(t,e)}function kh(t){if(t.tag===13||t.tag===31){var e=cn(t,67108864);e!==null&&Te(e,t,67108864),to(t,67108864)}}function Uh(t){if(t.tag===13||t.tag===31){var e=Le();e=$u(e);var a=cn(t,e);a!==null&&Te(a,t,e),to(t,e)}}var Tu=!0;function Eg(t,e,a,n){var l=U.T;U.T=null;var s=M.p;try{M.p=2,eo(t,e,a,n)}finally{M.p=s,U.T=l}}function xg(t,e,a,n){var l=U.T;U.T=null;var s=M.p;try{M.p=8,eo(t,e,a,n)}finally{M.p=s,U.T=l}}function eo(t,e,a,n){if(Tu){var l=ao(n);if(l===null)Yr(t,e,n,Mu,a),Lh(t,n);else if(_g(l,t,e,a,n))n.stopPropagation();else if(Lh(t,n),e&4&&-1<Ag.indexOf(t)){for(;l!==null;){var s=Dn(l);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var c=ln(s.pendingLanes);if(c!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;c;){var v=1<<31-Ce(c);h.entanglements[1]|=v,c&=~v}ca(s),(Mt&6)===0&&(ou=qt()+500,Pl(0))}}break;case 31:case 13:h=cn(s,2),h!==null&&Te(h,s,2),fu(),to(s,2)}if(s=ao(n),s===null&&Yr(t,e,n,Mu,a),s===l)break;l=s}l!==null&&n.stopPropagation()}else Yr(t,e,n,null,a)}}function ao(t){return t=ls(t),no(t)}var Mu=null;function no(t){if(Mu=null,t=Mn(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=g(e),t!==null)return t;t=null}else if(a===31){if(t=b(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Mu=t,null}function jh(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(ia()){case ua:return 2;case Xo:return 8;case gi:case c0:return 32;case Qo:return 268435456;default:return 32}default:return 32}}var lo=!1,Fa=null,Ia=null,tn=null,ni=new Map,li=new Map,en=[],Ag="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 Lh(t,e){switch(t){case"focusin":case"focusout":Fa=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":ni.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":li.delete(e.pointerId)}}function ii(t,e,a,n,l,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[l]},e!==null&&(e=Dn(e),e!==null&&kh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function _g(t,e,a,n,l){switch(e){case"focusin":return Fa=ii(Fa,t,e,a,n,l),!0;case"dragenter":return Ia=ii(Ia,t,e,a,n,l),!0;case"mouseover":return tn=ii(tn,t,e,a,n,l),!0;case"pointerover":var s=l.pointerId;return ni.set(s,ii(ni.get(s)||null,t,e,a,n,l)),!0;case"gotpointercapture":return s=l.pointerId,li.set(s,ii(li.get(s)||null,t,e,a,n,l)),!0}return!1}function Bh(t){var e=Mn(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=g(a),e!==null){t.blockedOn=e,Wo(t.priority,function(){Uh(a)});return}}else if(e===31){if(e=b(a),e!==null){t.blockedOn=e,Wo(t.priority,function(){Uh(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Du(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=ao(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);ns=n,a.target.dispatchEvent(n),ns=null}else return e=Dn(a),e!==null&&kh(e),t.blockedOn=a,!1;e.shift()}return!0}function Hh(t,e,a){Du(t)&&a.delete(e)}function Tg(){lo=!1,Fa!==null&&Du(Fa)&&(Fa=null),Ia!==null&&Du(Ia)&&(Ia=null),tn!==null&&Du(tn)&&(tn=null),ni.forEach(Hh),li.forEach(Hh)}function Ru(t,e){t.blockedOn===e&&(t.blockedOn=null,lo||(lo=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,Tg)))}var Cu=null;function qh(t){Cu!==t&&(Cu=t,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Cu===t&&(Cu=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],l=t[e+2];if(typeof n!="function"){if(no(n||a)===null)continue;break}var s=Dn(a);s!==null&&(t.splice(e,3),e-=3,ar(s,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function ol(t){function e(v){return Ru(v,t)}Fa!==null&&Ru(Fa,t),Ia!==null&&Ru(Ia,t),tn!==null&&Ru(tn,t),ni.forEach(e),li.forEach(e);for(var a=0;a<en.length;a++){var n=en[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<en.length&&(a=en[0],a.blockedOn===null);)Bh(a),a.blockedOn===null&&en.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],s=a[n+1],c=l[Se]||null;if(typeof s=="function")c||qh(a);else if(c){var h=null;if(s&&s.hasAttribute("formAction")){if(l=s,c=s[Se]||null)h=c.formAction;else if(no(l)!==null)continue}else h=c.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),qh(a)}}}function Yh(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(c){return l=c})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function io(t){this._internalRoot=t}zu.prototype.render=io.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,n=Le();Oh(a,n,t,e,null,null)},zu.prototype.unmount=io.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Oh(t.current,2,null,t,null,null),fu(),e[Tn]=null}};function zu(t){this._internalRoot=t}zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Po();t={blockedOn:null,target:t,priority:e};for(var a=0;a<en.length&&e!==0&&e<en[a].priority;a++);en.splice(a,0,t),a===0&&Bh(t)}};var Vh=i.version;if(Vh!=="19.2.7")throw Error(r(527,Vh,"19.2.7"));M.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var Mg={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ou.isDisabled&&Ou.supportsFiber)try{ml=Ou.inject(Mg),Re=Ou}catch{}}return si.createRoot=function(t,e){if(!f(t))throw Error(r(299));var a=!1,n="",l=$f,s=Pf,c=Wf;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(s=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=Ch(t,1,!1,null,null,a,n,null,l,s,c,Yh),t[Tn]=e.current,qr(t),new io(e)},si.hydrateRoot=function(t,e,a){if(!f(t))throw Error(r(299));var n=!1,l="",s=$f,c=Pf,h=Wf,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),e=Ch(t,1,!0,e,a??null,n,l,v,s,c,h,Yh),e.context=zh(null),a=e.current,n=Le(),n=$u(n),l=qa(n),l.callback=null,Ya(a,l,n),a=n,e.current.lanes=a,gl(e,a),ca(e),t[Tn]=e.current,qr(t),new zu(e)},si.version="19.2.7",si}var tm;function Yg(){if(tm)return ro.exports;tm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),ro.exports=qg(),ro.exports}var Vg=Yg();/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var em="popstate";function am(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function Gg(u={}){function i(r,f){var m;let d=(m=f.state)==null?void 0:m.masked,{pathname:g,search:b,hash:y}=d||r.location;return wo("",{pathname:g,search:b,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function o(r,f){return typeof f=="string"?f:di(f)}return Qg(i,o,null,u)}function Xt(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Pe(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Xg(){return Math.random().toString(36).substring(2,10)}function nm(u,i){return{usr:u.state,key:u.key,idx:i,masked:u.mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function wo(u,i,o=null,r,f){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?cl(i):i,state:o,key:i&&i.key||r||Xg(),mask:f}}function di({pathname:u="/",search:i="",hash:o=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(u+=o.charAt(0)==="#"?o:"#"+o),u}function cl(u){let i={};if(u){let o=u.indexOf("#");o>=0&&(i.hash=u.substring(o),u=u.substring(0,o));let r=u.indexOf("?");r>=0&&(i.search=u.substring(r),u=u.substring(0,r)),u&&(i.pathname=u)}return i}function Qg(u,i,o,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,g=f.history,b="POP",y=null,m=T();m==null&&(m=0,g.replaceState({...g.state,idx:m},""));function T(){return(g.state||{idx:null}).idx}function A(){b="POP";let j=T(),O=j==null?null:j-m;m=j,y&&y({action:b,location:G.location,delta:O})}function N(j,O){b="PUSH";let k=am(j)?j:wo(G.location,j,O);m=T()+1;let p=nm(k,m),$=G.createHref(k.mask||k);try{g.pushState(p,"",$)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;f.location.assign($)}d&&y&&y({action:b,location:G.location,delta:1})}function Q(j,O){b="REPLACE";let k=am(j)?j:wo(G.location,j,O);m=T();let p=nm(k,m),$=G.createHref(k.mask||k);g.replaceState(p,"",$),d&&y&&y({action:b,location:G.location,delta:0})}function Z(j){return Zg(f,j)}let G={get action(){return b},get location(){return u(f,g)},listen(j){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(em,A),y=j,()=>{f.removeEventListener(em,A),y=null}},createHref(j){return i(f,j)},createURL:Z,encodeLocation(j){let O=Z(j);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:N,replace:Q,go(j){return g.go(j)}};return G}function Zg(u,i,o=!1){let r="http://localhost";u&&(r=u.location.origin!=="null"?u.location.origin:u.location.href),Xt(r,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:di(i);return f=f.replace(/ $/,"%20"),!o&&f.startsWith("//")&&(f=r+f),new URL(f,r)}function Rm(u,i,o="/"){return Kg(u,i,o,!1)}function Kg(u,i,o,r,f){let d=typeof i=="string"?cl(i):i,g=Ca(d.pathname||"/",o);if(g==null)return null;let b=Jg(u),y=null,m=uy(g);for(let T=0;y==null&&T<b.length;++T)y=ly(b[T],m,r);return y}function Jg(u){let i=Cm(u);return $g(i),i}function Cm(u,i=[],o=[],r="",f=!1){let d=(g,b,y=f,m)=>{let T={relativePath:m===void 0?g.path||"":m,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(r)&&y)return;Xt(T.relativePath.startsWith(r),`Absolute route path "${T.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(r.length)}let A=na([r,T.relativePath]),N=o.concat(T);g.children&&g.children.length>0&&(Xt(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Cm(g.children,i,N,A,y)),!(g.path==null&&!g.index)&&i.push({path:A,score:ay(A,g.index),routesMeta:N})};return u.forEach((g,b)=>{var y;if(g.path===""||!((y=g.path)!=null&&y.includes("?")))d(g,b);else for(let m of zm(g.path))d(g,b,!0,m)}),i}function zm(u){let i=u.split("/");if(i.length===0)return[];let[o,...r]=i,f=o.endsWith("?"),d=o.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let g=zm(r.join("/")),b=[];return b.push(...g.map(y=>y===""?d:[d,y].join("/"))),f&&b.push(...g),b.map(y=>u.startsWith("/")&&y===""?"/":y)}function $g(u){u.sort((i,o)=>i.score!==o.score?o.score-i.score:ny(i.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var Pg=/^:[\w-]+$/,Wg=3,Fg=2,Ig=1,ty=10,ey=-2,lm=u=>u==="*";function ay(u,i){let o=u.split("/"),r=o.length;return o.some(lm)&&(r+=ey),i&&(r+=Fg),o.filter(f=>!lm(f)).reduce((f,d)=>f+(Pg.test(d)?Wg:d===""?Ig:ty),r)}function ny(u,i){return u.length===i.length&&u.slice(0,-1).every((r,f)=>r===i[f])?u[u.length-1]-i[i.length-1]:0}function ly(u,i,o=!1){let{routesMeta:r}=u,f={},d="/",g=[];for(let b=0;b<r.length;++b){let y=r[b],m=b===r.length-1,T=d==="/"?i:i.slice(d.length)||"/",A=qu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},T),N=y.route;if(!A&&m&&o&&!r[r.length-1].route.index&&(A=qu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},T)),!A)return null;Object.assign(f,A.params),g.push({params:f,pathname:na([d,A.pathname]),pathnameBase:cy(na([d,A.pathnameBase])),route:N}),A.pathnameBase!=="/"&&(d=na([d,A.pathnameBase]))}return g}function qu(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[o,r]=iy(u.path,u.caseSensitive,u.end),f=i.match(o);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),b=f.slice(1);return{params:r.reduce((m,{paramName:T,isOptional:A},N)=>{if(T==="*"){let Z=b[N]||"";g=d.slice(0,d.length-Z.length).replace(/(.)\/+$/,"$1")}const Q=b[N];return A&&!Q?m[T]=void 0:m[T]=(Q||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:g,pattern:u}}function iy(u,i=!1,o=!0){Pe(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],f="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,y,m,T)=>{if(r.push({paramName:b,isOptional:y!=null}),y){let A=T.charAt(m+g.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),f+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":u!==""&&u!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function uy(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Pe(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Ca(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let o=i.endsWith("/")?i.length-1:i.length,r=u.charAt(o);return r&&r!=="/"?null:u.slice(o)||"/"}var sy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ry(u,i="/"){let{pathname:o,search:r="",hash:f=""}=typeof u=="string"?cl(u):u,d;return o?(o=Om(o),o.startsWith("/")?d=im(o.substring(1),"/"):d=im(o,i)):d=i,{pathname:d,search:fy(r),hash:dy(f)}}function im(u,i){let o=Yu(i).split("/");return u.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function ho(u,i,o,r){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function oy(u){return u.filter((i,o)=>o===0||i.route.path&&i.route.path.length>0)}function Co(u){let i=oy(u);return i.map((o,r)=>r===i.length-1?o.pathname:o.pathnameBase)}function Xu(u,i,o,r=!1){let f;typeof u=="string"?f=cl(u):(f={...u},Xt(!f.pathname||!f.pathname.includes("?"),ho("?","pathname","search",f)),Xt(!f.pathname||!f.pathname.includes("#"),ho("#","pathname","hash",f)),Xt(!f.search||!f.search.includes("#"),ho("#","search","hash",f)));let d=u===""||f.pathname==="",g=d?"/":f.pathname,b;if(g==null)b=o;else{let A=i.length-1;if(!r&&g.startsWith("..")){let N=g.split("/");for(;N[0]==="..";)N.shift(),A-=1;f.pathname=N.join("/")}b=A>=0?i[A]:"/"}let y=ry(f,b),m=g&&g!=="/"&&g.endsWith("/"),T=(d||g===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(m||T)&&(y.pathname+="/"),y}var Om=u=>u.replace(/\/\/+/g,"/"),na=u=>Om(u.join("/")),Yu=u=>u.replace(/\/+$/,""),cy=u=>Yu(u).replace(/^\/*/,"/"),fy=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,dy=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,hy=class{constructor(u,i,o,r=!1){this.status=u,this.statusText=i||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function my(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function py(u){let i=u.map(o=>o.route.path).filter(Boolean);return na(i)||"/"}var Nm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function km(u,i){let o=u;if(typeof o!="string"||!sy.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,f=!1;if(Nm)try{let d=new URL(window.location.href),g=o.startsWith("//")?new URL(d.protocol+o):new URL(o),b=Ca(g.pathname,i);g.origin===d.origin&&b!=null?o=b+g.search+g.hash:f=!0}catch{Pe(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Um=["POST","PUT","PATCH","DELETE"];new Set(Um);var gy=["GET",...Um];new Set(gy);var fl=E.createContext(null);fl.displayName="DataRouter";var Qu=E.createContext(null);Qu.displayName="DataRouterState";var jm=E.createContext(!1);function yy(){return E.useContext(jm)}var Lm=E.createContext({isTransitioning:!1});Lm.displayName="ViewTransition";var vy=E.createContext(new Map);vy.displayName="Fetchers";var by=E.createContext(null);by.displayName="Await";var He=E.createContext(null);He.displayName="Navigation";var mi=E.createContext(null);mi.displayName="Location";var Fe=E.createContext({outlet:null,matches:[],isDataRoute:!1});Fe.displayName="Route";var zo=E.createContext(null);zo.displayName="RouteError";var Bm="REACT_ROUTER_ERROR",Sy="REDIRECT",wy="ROUTE_ERROR_RESPONSE";function Ey(u){if(u.startsWith(`${Bm}:${Sy}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function xy(u){if(u.startsWith(`${Bm}:${wy}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new hy(i.status,i.statusText,i.data)}catch{}}function Ay(u,{relative:i}={}){Xt(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=E.useContext(He),{hash:f,pathname:d,search:g}=pi(u,{relative:i}),b=d;return o!=="/"&&(b=d==="/"?o:na([o,d])),r.createHref({pathname:b,search:g,hash:f})}function dl(){return E.useContext(mi)!=null}function la(){return Xt(dl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(mi).location}var Hm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function qm(u){E.useContext(He).static||E.useLayoutEffect(u)}function An(){let{isDataRoute:u}=E.useContext(Fe);return u?qy():_y()}function _y(){Xt(dl(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(fl),{basename:i,navigator:o}=E.useContext(He),{matches:r}=E.useContext(Fe),{pathname:f}=la(),d=JSON.stringify(Co(r)),g=E.useRef(!1);return qm(()=>{g.current=!0}),E.useCallback((y,m={})=>{if(Pe(g.current,Hm),!g.current)return;if(typeof y=="number"){o.go(y);return}let T=Xu(y,JSON.parse(d),f,m.relative==="path");u==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:na([i,T.pathname])),(m.replace?o.replace:o.push)(T,m.state,m)},[i,o,d,f,u])}var Ty=E.createContext(null);function My(u){let i=E.useContext(Fe).outlet;return E.useMemo(()=>i&&E.createElement(Ty.Provider,{value:u},i),[i,u])}function Dy(){let{matches:u}=E.useContext(Fe),i=u[u.length-1];return(i==null?void 0:i.params)??{}}function pi(u,{relative:i}={}){let{matches:o}=E.useContext(Fe),{pathname:r}=la(),f=JSON.stringify(Co(o));return E.useMemo(()=>Xu(u,JSON.parse(f),r,i==="path"),[u,f,r,i])}function Ry(u,i){return Ym(u,i)}function Ym(u,i,o){var j;Xt(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(He),{matches:f}=E.useContext(Fe),d=f[f.length-1],g=d?d.params:{},b=d?d.pathname:"/",y=d?d.pathnameBase:"/",m=d&&d.route;{let O=m&&m.path||"";Gm(b,!m||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let T=la(),A;if(i){let O=typeof i=="string"?cl(i):i;Xt(y==="/"||((j=O.pathname)==null?void 0:j.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),A=O}else A=T;let N=A.pathname||"/",Q=N;if(y!=="/"){let O=y.replace(/^\//,"").split("/");Q="/"+N.replace(/^\//,"").split("/").slice(O.length).join("/")}let Z=o&&o.state.matches.length?o.state.matches.map(O=>Object.assign(O,{route:o.manifest[O.route.id]||O.route})):Rm(u,{pathname:Q});Pe(m||Z!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Pe(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=ky(Z&&Z.map(O=>Object.assign({},O,{params:Object.assign({},g,O.params),pathname:na([y,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:na([y,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,o);return i&&G?E.createElement(mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},G):G}function Cy(){let u=Hy(),i=my(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),o=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",u),g=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:d},"ErrorBoundary")," or"," ",E.createElement("code",{style:d},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),o?E.createElement("pre",{style:f},o):null,g)}var zy=E.createElement(Cy,null),Vm=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const o=xy(u.digest);o&&(u=o)}let i=u!==void 0?E.createElement(Fe.Provider,{value:this.props.routeContext},E.createElement(zo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(Oy,{error:u},i):i}};Vm.contextType=jm;var mo=new WeakMap;function Oy({children:u,error:i}){let{basename:o}=E.useContext(He);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Ey(i.digest);if(r){let f=mo.get(i);if(f)throw f;let d=km(r.location,o);if(Nm&&!mo.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw mo.set(i,g),g}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return u}function Ny({routeContext:u,match:i,children:o}){let r=E.useContext(fl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(Fe.Provider,{value:u},o)}function ky(u,i=[],o){let r=o==null?void 0:o.state;if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let f=u,d=r==null?void 0:r.errors;if(d!=null){let T=f.findIndex(A=>A.route.id&&(d==null?void 0:d[A.route.id])!==void 0);Xt(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,T+1))}let g=!1,b=-1;if(o&&r){g=r.renderFallback;for(let T=0;T<f.length;T++){let A=f[T];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(b=T),A.route.id){let{loaderData:N,errors:Q}=r,Z=A.route.loader&&!N.hasOwnProperty(A.route.id)&&(!Q||Q[A.route.id]===void 0);if(A.route.lazy||Z){o.isStatic&&(g=!0),b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}}let y=o==null?void 0:o.onError,m=r&&y?(T,A)=>{var N,Q;y(T,{location:r.location,params:((Q=(N=r.matches)==null?void 0:N[0])==null?void 0:Q.params)??{},pattern:py(r.matches),errorInfo:A})}:void 0;return f.reduceRight((T,A,N)=>{let Q,Z=!1,G=null,j=null;r&&(Q=d&&A.route.id?d[A.route.id]:void 0,G=A.route.errorElement||zy,g&&(b<0&&N===0?(Gm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,j=null):b===N&&(Z=!0,j=A.route.hydrateFallbackElement||null)));let O=i.concat(f.slice(0,N+1)),k=()=>{let p;return Q?p=G:Z?p=j:A.route.Component?p=E.createElement(A.route.Component,null):A.route.element?p=A.route.element:p=T,E.createElement(Ny,{match:A,routeContext:{outlet:T,matches:O,isDataRoute:r!=null},children:p})};return r&&(A.route.ErrorBoundary||A.route.errorElement||N===0)?E.createElement(Vm,{location:r.location,revalidation:r.revalidation,component:G,error:Q,children:k(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):k()},null)}function Oo(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uy(u){let i=E.useContext(fl);return Xt(i,Oo(u)),i}function jy(u){let i=E.useContext(Qu);return Xt(i,Oo(u)),i}function Ly(u){let i=E.useContext(Fe);return Xt(i,Oo(u)),i}function No(u){let i=Ly(u),o=i.matches[i.matches.length-1];return Xt(o.route.id,`${u} can only be used on routes that contain a unique "id"`),o.route.id}function By(){return No("useRouteId")}function Hy(){var r;let u=E.useContext(zo),i=jy("useRouteError"),o=No("useRouteError");return u!==void 0?u:(r=i.errors)==null?void 0:r[o]}function qy(){let{router:u}=Uy("useNavigate"),i=No("useNavigate"),o=E.useRef(!1);return qm(()=>{o.current=!0}),E.useCallback(async(f,d={})=>{Pe(o.current,Hm),o.current&&(typeof f=="number"?await u.navigate(f):await u.navigate(f,{fromRouteId:i,...d}))},[u,i])}var um={};function Gm(u,i,o){!i&&!um[u]&&(um[u]=!0,Pe(!1,o))}E.memo(Yy);function Yy({routes:u,manifest:i,future:o,state:r,isStatic:f,onError:d}){return Ym(u,void 0,{manifest:i,state:r,isStatic:f,onError:d})}function xn({to:u,replace:i,state:o,relative:r}){Xt(dl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=E.useContext(He);Pe(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=E.useContext(Fe),{pathname:g}=la(),b=An(),y=Xu(u,Co(d),g,r==="path"),m=JSON.stringify(y);return E.useEffect(()=>{b(JSON.parse(m),{replace:i,state:o,relative:r})},[b,m,r,i,o]),null}function Vy(u){return My(u.context)}function Tt(u){Xt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gy({basename:u="/",children:i=null,location:o,navigationType:r="POP",navigator:f,static:d=!1,useTransitions:g}){Xt(!dl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:b,navigator:f,static:d,useTransitions:g,future:{}}),[b,f,d,g]);typeof o=="string"&&(o=cl(o));let{pathname:m="/",search:T="",hash:A="",state:N=null,key:Q="default",mask:Z}=o,G=E.useMemo(()=>{let j=Ca(m,b);return j==null?null:{location:{pathname:j,search:T,hash:A,state:N,key:Q,mask:Z},navigationType:r}},[b,m,T,A,N,Q,r,Z]);return Pe(G!=null,`<Router basename="${b}"> is not able to match the URL "${m}${T}${A}" because it does not start with the basename, so the <Router> won't render anything.`),G==null?null:E.createElement(He.Provider,{value:y},E.createElement(mi.Provider,{children:i,value:G}))}function Xy({children:u,location:i}){return Ry(Eo(u),i)}function Eo(u,i=[]){let o=[];return E.Children.forEach(u,(r,f)=>{if(!E.isValidElement(r))return;let d=[...i,f];if(r.type===E.Fragment){o.push.apply(o,Eo(r.props.children,d));return}Xt(r.type===Tt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let g={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=Eo(r.props.children,d)),o.push(g)}),o}var ju="get",Lu="application/x-www-form-urlencoded";function Zu(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Qy(u){return Zu(u)&&u.tagName.toLowerCase()==="button"}function Zy(u){return Zu(u)&&u.tagName.toLowerCase()==="form"}function Ky(u){return Zu(u)&&u.tagName.toLowerCase()==="input"}function Jy(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function $y(u,i){return u.button===0&&(!i||i==="_self")&&!Jy(u)}function xo(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((i,o)=>{let r=u[o];return i.concat(Array.isArray(r)?r.map(f=>[o,f]):[[o,r]])},[]))}function Py(u,i){let o=xo(u);return i&&i.forEach((r,f)=>{o.has(f)||i.getAll(f).forEach(d=>{o.append(f,d)})}),o}var Nu=null;function Wy(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var Fy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function po(u){return u!=null&&!Fy.has(u)?(Pe(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lu}"`),null):u}function Iy(u,i){let o,r,f,d,g;if(Zy(u)){let b=u.getAttribute("action");r=b?Ca(b,i):null,o=u.getAttribute("method")||ju,f=po(u.getAttribute("enctype"))||Lu,d=new FormData(u)}else if(Qy(u)||Ky(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=u.getAttribute("formaction")||b.getAttribute("action");if(r=y?Ca(y,i):null,o=u.getAttribute("formmethod")||b.getAttribute("method")||ju,f=po(u.getAttribute("formenctype"))||po(b.getAttribute("enctype"))||Lu,d=new FormData(b,u),!Wy()){let{name:m,type:T,value:A}=u;if(T==="image"){let N=m?`${m}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else m&&d.append(m,A)}}else{if(Zu(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ju,r=null,f=Lu,g=u}return d&&f==="text/plain"&&(g=d,d=void 0),{action:r,method:o.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ko(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Xm(u,i,o,r){let f=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:i&&Ca(f.pathname,i)==="/"?f.pathname=`${Yu(i)}/_root.${r}`:f.pathname=`${Yu(f.pathname)}.${r}`,f}async function tv(u,i){if(u.id in i)return i[u.id];try{let o=await import(u.module);return i[u.id]=o,o}catch(o){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ev(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function av(u,i,o){let r=await Promise.all(u.map(async f=>{let d=i.routes[f.route.id];if(d){let g=await tv(d,o);return g.links?g.links():[]}return[]}));return uv(r.flat(1).filter(ev).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function sm(u,i,o,r,f,d){let g=(y,m)=>o[m]?y.route.id!==o[m].route.id:!0,b=(y,m)=>{var T;return o[m].pathname!==y.pathname||((T=o[m].route.path)==null?void 0:T.endsWith("*"))&&o[m].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,m)=>g(y,m)||b(y,m)):d==="data"?i.filter((y,m)=>{var A;let T=r.routes[y.route.id];if(!T||!T.hasLoader)return!1;if(g(y,m)||b(y,m))return!0;if(y.route.shouldRevalidate){let N=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((A=o[0])==null?void 0:A.params)||{},nextUrl:new URL(u,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function nv(u,i,{includeHydrateFallback:o}={}){return lv(u.map(r=>{let f=i.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function lv(u){return[...new Set(u)]}function iv(u){let i={},o=Object.keys(u).sort();for(let r of o)i[r]=u[r];return i}function uv(u,i){let o=new Set;return new Set(i),u.reduce((r,f)=>{let d=JSON.stringify(iv(f));return o.has(d)||(o.add(d),r.push({key:d,link:f})),r},[])}function Uo(){let u=E.useContext(fl);return ko(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function sv(){let u=E.useContext(Qu);return ko(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var jo=E.createContext(void 0);jo.displayName="FrameworkContext";function Lo(){let u=E.useContext(jo);return ko(u,"You must render this element inside a <HydratedRouter> element"),u}function rv(u,i){let o=E.useContext(jo),[r,f]=E.useState(!1),[d,g]=E.useState(!1),{onFocus:b,onBlur:y,onMouseEnter:m,onMouseLeave:T,onTouchStart:A}=i,N=E.useRef(null);E.useEffect(()=>{if(u==="render"&&g(!0),u==="viewport"){let G=O=>{O.forEach(k=>{g(k.isIntersecting)})},j=new IntersectionObserver(G,{threshold:.5});return N.current&&j.observe(N.current),()=>{j.disconnect()}}},[u]),E.useEffect(()=>{if(r){let G=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(G)}}},[r]);let Q=()=>{f(!0)},Z=()=>{f(!1),g(!1)};return o?u!=="intent"?[d,N,{}]:[d,N,{onFocus:ri(b,Q),onBlur:ri(y,Z),onMouseEnter:ri(m,Q),onMouseLeave:ri(T,Z),onTouchStart:ri(A,Q)}]:[!1,N,{}]}function ri(u,i){return o=>{u&&u(o),o.defaultPrevented||i(o)}}function ov({page:u,...i}){let o=yy(),{router:r}=Uo(),f=E.useMemo(()=>Rm(r.routes,u,r.basename),[r.routes,u,r.basename]);return f?o?E.createElement(fv,{page:u,matches:f,...i}):E.createElement(dv,{page:u,matches:f,...i}):null}function cv(u){let{manifest:i,routeModules:o}=Lo(),[r,f]=E.useState([]);return E.useEffect(()=>{let d=!1;return av(u,i,o).then(g=>{d||f(g)}),()=>{d=!0}},[u,i,o]),r}function fv({page:u,matches:i,...o}){let r=la(),{future:f}=Lo(),{basename:d}=Uo(),g=E.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let b=Xm(u,d,f.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let T of i)typeof T.route.shouldRevalidate=="function"?y=!0:m.push(T.route.id);return y&&m.length>0&&b.searchParams.set("_routes",m.join(",")),[b.pathname+b.search]},[d,f.v8_trailingSlashAwareDataRequests,u,r,i]);return E.createElement(E.Fragment,null,g.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...o})))}function dv({page:u,matches:i,...o}){let r=la(),{future:f,manifest:d,routeModules:g}=Lo(),{basename:b}=Uo(),{loaderData:y,matches:m}=sv(),T=E.useMemo(()=>sm(u,i,m,d,r,"data"),[u,i,m,d,r]),A=E.useMemo(()=>sm(u,i,m,d,r,"assets"),[u,i,m,d,r]),N=E.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let G=new Set,j=!1;if(i.forEach(k=>{var $;let p=d.routes[k.route.id];!p||!p.hasLoader||(!T.some(X=>X.route.id===k.route.id)&&k.route.id in y&&(($=g[k.route.id])!=null&&$.shouldRevalidate)||p.hasClientLoader?j=!0:G.add(k.route.id))}),G.size===0)return[];let O=Xm(u,b,f.v8_trailingSlashAwareDataRequests,"data");return j&&G.size>0&&O.searchParams.set("_routes",i.filter(k=>G.has(k.route.id)).map(k=>k.route.id).join(",")),[O.pathname+O.search]},[b,f.v8_trailingSlashAwareDataRequests,y,r,d,T,i,u,g]),Q=E.useMemo(()=>nv(A,d),[A,d]),Z=cv(A);return E.createElement(E.Fragment,null,N.map(G=>E.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...o})),Q.map(G=>E.createElement("link",{key:G,rel:"modulepreload",href:G,...o})),Z.map(({key:G,link:j})=>E.createElement("link",{key:G,nonce:o.nonce,...j,crossOrigin:j.crossOrigin??o.crossOrigin})))}function hv(...u){return i=>{u.forEach(o=>{typeof o=="function"?o(i):o!=null&&(o.current=i)})}}var mv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mv&&(window.__reactRouterVersion="7.17.0")}catch{}function pv({basename:u,children:i,useTransitions:o,window:r}){let f=E.useRef();f.current==null&&(f.current=Gg({window:r,v5Compat:!0}));let d=f.current,[g,b]=E.useState({action:d.action,location:d.location}),y=E.useCallback(m=>{o===!1?b(m):E.startTransition(()=>b(m))},[o]);return E.useLayoutEffect(()=>d.listen(y),[d,y]),E.createElement(Gy,{basename:u,children:i,location:g.location,navigationType:g.action,navigator:d,useTransitions:o})}var Qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bo=E.forwardRef(function({onClick:i,discover:o="render",prefetch:r="none",relative:f,reloadDocument:d,replace:g,mask:b,state:y,target:m,to:T,preventScrollReset:A,viewTransition:N,defaultShouldRevalidate:Q,...Z},G){let{basename:j,navigator:O,useTransitions:k}=E.useContext(He),p=typeof T=="string"&&Qm.test(T),$=km(T,j);T=$.to;let X=Ay(T,{relative:f}),tt=la(),K=null;if(b){let Ht=Xu(b,[],tt.mask?tt.mask.pathname:"/",!0);j!=="/"&&(Ht.pathname=Ht.pathname==="/"?j:na([j,Ht.pathname])),K=O.createHref(Ht)}let[Et,Qt,re]=rv(r,Z),le=bv(T,{replace:g,mask:b,state:y,target:m,preventScrollReset:A,relative:f,viewTransition:N,defaultShouldRevalidate:Q,useTransitions:k});function kt(Ht){i&&i(Ht),Ht.defaultPrevented||le(Ht)}let ve=!($.isExternal||d),pe=E.createElement("a",{...Z,...re,href:(ve?K:void 0)||$.absoluteURL||X,onClick:ve?kt:i,ref:hv(G,Qt),target:m,"data-discover":!p&&o==="render"?"true":void 0});return Et&&!p?E.createElement(E.Fragment,null,pe,E.createElement(ov,{page:X})):pe});Bo.displayName="Link";var gv=E.forwardRef(function({"aria-current":i="page",caseSensitive:o=!1,className:r="",end:f=!1,style:d,to:g,viewTransition:b,children:y,...m},T){let A=pi(g,{relative:m.relative}),N=la(),Q=E.useContext(Qu),{navigator:Z,basename:G}=E.useContext(He),j=Q!=null&&Av(A)&&b===!0,O=Z.encodeLocation?Z.encodeLocation(A).pathname:A.pathname,k=N.pathname,p=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;o||(k=k.toLowerCase(),p=p?p.toLowerCase():null,O=O.toLowerCase()),p&&G&&(p=Ca(p,G)||p);const $=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let X=k===O||!f&&k.startsWith(O)&&k.charAt($)==="/",tt=p!=null&&(p===O||!f&&p.startsWith(O)&&p.charAt(O.length)==="/"),K={isActive:X,isPending:tt,isTransitioning:j},Et=X?i:void 0,Qt;typeof r=="function"?Qt=r(K):Qt=[r,X?"active":null,tt?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(K):d;return E.createElement(Bo,{...m,"aria-current":Et,className:Qt,ref:T,style:re,to:g,viewTransition:b},typeof y=="function"?y(K):y)});gv.displayName="NavLink";var yv=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:o,reloadDocument:r,replace:f,state:d,method:g=ju,action:b,onSubmit:y,relative:m,preventScrollReset:T,viewTransition:A,defaultShouldRevalidate:N,...Q},Z)=>{let{useTransitions:G}=E.useContext(He),j=Ev(),O=xv(b,{relative:m}),k=g.toLowerCase()==="get"?"get":"post",p=typeof b=="string"&&Qm.test(b),$=X=>{if(y&&y(X),X.defaultPrevented)return;X.preventDefault();let tt=X.nativeEvent.submitter,K=(tt==null?void 0:tt.getAttribute("formmethod"))||g,Et=()=>j(tt||X.currentTarget,{fetcherKey:i,method:K,navigate:o,replace:f,state:d,relative:m,preventScrollReset:T,viewTransition:A,defaultShouldRevalidate:N});G&&o!==!1?E.startTransition(()=>Et()):Et()};return E.createElement("form",{ref:Z,method:k,action:O,onSubmit:r?y:$,...Q,"data-discover":!p&&u==="render"?"true":void 0})});yv.displayName="Form";function vv(u){return`${u} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zm(u){let i=E.useContext(fl);return Xt(i,vv(u)),i}function bv(u,{target:i,replace:o,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y,useTransitions:m}={}){let T=An(),A=la(),N=pi(u,{relative:g});return E.useCallback(Q=>{if($y(Q,i)){Q.preventDefault();let Z=o!==void 0?o:di(A)===di(N),G=()=>T(u,{replace:Z,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y});m?E.startTransition(()=>G()):G()}},[A,T,N,o,r,f,i,u,d,g,b,y,m])}function zS(u){Pe(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=E.useRef(xo(u)),o=E.useRef(!1),r=la(),f=E.useMemo(()=>Py(r.search,o.current?null:i.current),[r.search]),d=An(),g=E.useCallback((b,y)=>{const m=xo(typeof b=="function"?b(new URLSearchParams(f)):b);o.current=!0,d("?"+m,y)},[d,f]);return[f,g]}var Sv=0,wv=()=>`__${String(++Sv)}__`;function Ev(){let{router:u}=Zm("useSubmit"),{basename:i}=E.useContext(He),o=By(),r=u.fetch,f=u.navigate;return E.useCallback(async(d,g={})=>{let{action:b,method:y,encType:m,formData:T,body:A}=Iy(d,i);if(g.navigate===!1){let N=g.fetcherKey||wv();await r(N,o,g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:T,body:A,formMethod:g.method||y,formEncType:g.encType||m,flushSync:g.flushSync})}else await f(g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:T,body:A,formMethod:g.method||y,formEncType:g.encType||m,replace:g.replace,state:g.state,fromRouteId:o,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,f,i,o])}function xv(u,{relative:i}={}){let{basename:o}=E.useContext(He),r=E.useContext(Fe);Xt(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...pi(u||".",{relative:i})},g=la();if(u==null){d.search=g.search;let b=new URLSearchParams(d.search),y=b.getAll("index");if(y.some(T=>T==="")){b.delete("index"),y.filter(A=>A).forEach(A=>b.append("index",A));let T=b.toString();d.search=T?`?${T}`:""}}return(!u||u===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:na([o,d.pathname])),di(d)}function Av(u,{relative:i}={}){let o=E.useContext(Lm);Xt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Zm("useViewTransitionState"),f=pi(u,{relative:i});if(!o.isTransitioning)return!1;let d=Ca(o.currentLocation.pathname,r)||o.currentLocation.pathname,g=Ca(o.nextLocation.pathname,r)||o.nextLocation.pathname;return qu(f.pathname,g)!=null||qu(f.pathname,d)!=null}const _v={storage:{publicUrl:()=>"#"},auth:{restore:()=>{},onAuthStateChange:()=>()=>{},adoptAnonIdentity:()=>"",whenTokenReady:()=>Promise.resolve()},flags:{get:()=>{},isEnabled:()=>!1,variant:()=>"",all:()=>({}),subscribe:()=>()=>{},keys:()=>[],setCookieOverride:()=>{},clearCookieOverride:()=>{}},log:{debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},db:{get:()=>Promise.resolve(null),set:()=>Promise.resolve(),on:()=>()=>{},onChild:()=>()=>{},connect:()=>Promise.resolve(),disconnect:()=>{}}},Tv=new Set(["auth","storage","leads","log","flags","db"]);function Mv(){return new Proxy({},{get:(u,i)=>Tv.has(i)?new Proxy({},{get:(o,r)=>{var f;return((f=_v[i])==null?void 0:f[r])??(()=>Promise.resolve(null))}}):()=>{}})}const pt=typeof window<"u"&&window.Bodify?window.Bodify:Mv(),OS=Object.freeze(Object.defineProperty({__proto__:null,Bodify:pt},Symbol.toStringTag,{value:"Module"}));function Dv(u){const i=u.split("/"),o=[];for(let r=i.length-1;r>0;r--)o.push(i.slice(0,r).join("/"));return o}class Rv{constructor(){this.maxAge=10080*60*1e3,this.maxMemoryEntries=500,this.dbName="boddb-cache",this.enabled=!0}}class Cv{constructor(i,o){this.memory=new Map,this.subscribedPaths=new Set,this.idb=null,this._vfs=null,this._vfsUnsub=null,this.options={...new Rv,...o},this.client=i}async init(){this.options.enabled&&(this.idb=await this.openIDB(),await this.sweepExpired())}openIDB(){return new Promise(i=>{try{if(typeof indexedDB>"u"){i(null);return}const o=indexedDB.open(this.options.dbName,1);o.onupgradeneeded=()=>{const r=o.result;r&&!r.objectStoreNames.contains("entries")&&r.createObjectStore("entries",{keyPath:"path"})},o.onsuccess=()=>i(o.result??null),o.onerror=()=>i(null),o.onblocked=()=>i(null)}catch{i(null)}})}async sweepExpired(){if(!this.idb)return;const i=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();return new Promise(d=>{f.onsuccess=()=>{const g=f.result;if(!g){d();return}g.value.cachedAt<i&&g.delete(),g.continue()},f.onerror=()=>d()})}async get(i){if(!this.options.enabled)return this.client.get(i);const o=this.memory.get(i);if(o&&this.subscribedPaths.has(i))return o.data;if(o)return this.revalidate(i),o.data;const r=await this.idbGet(i);if(r&&Date.now()-r.cachedAt<this.options.maxAge)return this.memSet(i,r),this.revalidate(i),r.data;const f=await this.client.getSnapshot(i),d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};return this.memSet(i,d),this.idbSet(d),d.data}revalidate(i){this.client.getSnapshot(i).then(o=>{const r={path:i,data:o.val(),updatedAt:o.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,r),this.idbSet(r)}).catch(()=>{})}on(i,o){this.subscribedPaths.add(i);const r=this.client.on(i,f=>{const d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,d),this.idbSet(d),o(f)});return()=>{r(),this.subscribedPaths.delete(i)}}onChild(i,o,r){this.subscribedPaths.add(i);const f=this.client.onChild(i,d=>{const g=this.memory.get(i);if(g&&g.data&&typeof g.data=="object"&&!Array.isArray(g.data)){const b={...g.data};d.type==="removed"?delete b[d.key]:b[d.key]=d.val();const y={path:i,data:b,updatedAt:Date.now(),cachedAt:Date.now()};this.memSet(i,y),this.idbSet(y)}o(d)},r);return()=>{f(),this.subscribedPaths.delete(i)}}connect(){return this.client.connect()}disconnect(){var i,o;(o=(i=this.client).disconnect)==null||o.call(i)}get serverInfo(){return this.client.serverInfo}onWelcome(i){return this.client.onWelcome(i)}async push(i,o,r){return await this.client.push(i,o,r)}query(i){return this.client.query(i)}async set(i,o,r){await this.client.set(i,o,r),this.invalidatePath(i)}async update(i,o,r){await this.client.update(i,o,r),this.invalidatePath(i)}async updateMulti(i){await this.client.updateMulti(i);for(const o of Object.keys(i))this.invalidatePath(o)}async delete(i){await this.client.delete(i),this.invalidatePath(i)}invalidatePath(i){this.invalidate(i);for(const o of Dv(i))this.invalidate(o)}invalidate(i){this.memory.delete(i),this.idbDelete(i)}async warmup(i){if(!this.idb)return;const o=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readonly").objectStore("entries"),d=i.map(g=>new Promise(b=>{const y=f.get(g);y.onsuccess=()=>{const m=y.result;m&&m.cachedAt>=o&&this.memSet(g,m),b()},y.onerror=()=>b()}));await Promise.all(d)}vfs(){return this._vfs||(this._vfs=new zv(this.client.vfs(),this.options.maxAge,this.idb),this._vfsUnsub=this.client.onChild("_vfs",()=>{var i;(i=this._vfs)==null||i.clear()})),this._vfs}close(){var i,o;this._vfsUnsub&&(this._vfsUnsub(),this._vfsUnsub=null),(i=this._vfs)==null||i.clear(),this._vfs=null,this.memory.clear(),this.subscribedPaths.clear(),(o=this.idb)==null||o.close(),this.idb=null}memSet(i,o){for(this.memory.delete(i),this.memory.set(i,o);this.memory.size>this.options.maxMemoryEntries;){const r=this.memory.keys().next().value;if(r!==void 0)this.memory.delete(r);else break}}idbGet(i){if(!this.idb)return Promise.resolve(null);const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>f(r.result??null),r.onerror=()=>f(null)})}idbSet(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put(i)}catch{}}idbDelete(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}}class zv{constructor(i,o,r=null){this.raw=i,this.maxAge=o,this.idb=r,this.listCache=new Map,this.statCache=new Map,this._stats={hits:0,misses:0,invalidations:0,pushClears:0}}async stat(i){const o=this.statCache.get(i);if(o&&Date.now()-o.cachedAt<this.maxAge)return this._stats.hits++,this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),o.data;const r=await this.idbGetVfs(`vfs:stat:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.statCache.set(i,r),this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.stat(i);return this.statCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:f,cachedAt:Date.now()}),f}async list(i){const o=this.listCache.get(i);if(o&&Date.now()-o.cachedAt<this.maxAge)return this._stats.hits++,this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),o.data;const r=await this.idbGetVfs(`vfs:list:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.listCache.set(i,r),this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.list(i);return this.listCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:f,cachedAt:Date.now()}),f}async tree(i,o){return this.raw.tree(i,o)}async upload(i,o,r){const f=await this.raw.upload(i,o,r);return this.invalidatePath(i),f}async delete(i){await this.raw.delete(i),this.invalidatePath(i)}async mkdir(i){const o=await this.raw.mkdir(i);return this.invalidatePath(i),this.listCache.delete(i),this.idbDeleteVfs(`vfs:list:${i}`),o}async move(i,o){const r=await this.raw.move(i,o);return this.invalidatePath(i),this.invalidatePath(o),r}async download(i){return this.raw.download(i)}invalidatePath(i){this._stats.invalidations++,this.statCache.delete(i),this.idbDeleteVfs(`vfs:stat:${i}`);const o=i.includes("/")?i.slice(0,i.lastIndexOf("/")):"";this.listCache.delete(o),this.idbDeleteVfs(`vfs:list:${o}`)}clear(){this._stats.pushClears++,this.listCache.clear(),this.statCache.clear(),this.idbClearVfs()}get stats(){const i=this._stats.hits+this._stats.misses;return{...this._stats,total:i,hitRate:i?Math.round(this._stats.hits/i*100)+"%":"n/a",listCacheSize:this.listCache.size,statCacheSize:this.statCache.size}}idbGetVfs(i){if(!this.idb)return Promise.resolve(null);try{const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>{const d=r.result;f(d?{data:d.data,cachedAt:d.cachedAt}:null)},r.onerror=()=>f(null)})}catch{return Promise.resolve(null)}}idbSetVfs(i,o){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put({path:i,data:o.data,cachedAt:o.cachedAt,updatedAt:Date.now()})}catch{}}idbDeleteVfs(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}idbClearVfs(){if(this.idb)try{const r=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();r.onsuccess=()=>{const f=r.result;f&&(typeof f.key=="string"&&f.key.startsWith("vfs:")&&f.delete(),f.continue())}}catch{}}}const Ov="DEBUG";function rm(u){try{const i=localStorage.getItem(Ov)??"";return i==="*"||i.split(",").includes(u)}catch{return!1}}function Nv(u){const i=`[${u}]`;return{debug:(...o)=>{rm(u)&&console.debug(i,...o)},verbose:(...o)=>{rm(u)&&console.debug(i,...o)},info:(...o)=>console.info(i,...o),warn:(...o)=>console.warn(i,...o),error:(...o)=>console.error(i,...o)}}const hl={forComponent:u=>Nv(u)},Ho=hl.forComponent("bod");var Dm;const Km=(Dm=window.Bodify)==null?void 0:Dm.db;Km||Ho.error("Bodify SDK not loaded (window.Bodify is undefined) — /_bodify/sdk.js failed to load; BodDB is unavailable.");const We=new Cv(Km);We.init();if(typeof window<"u"){const u=()=>{typeof document<"u"&&document.visibilityState==="hidden"||We.connect().catch(i=>Ho.warn("wake-reconnect failed",i))};window.addEventListener("online",u),window.addEventListener("focus",u),document.addEventListener("visibilitychange",u)}async function nn(){var r,f,d;const u=We.client;if(!u)return;const i=((r=pt==null?void 0:pt.auth)==null?void 0:r._token)??null,o=g=>Promise.race([g,new Promise((b,y)=>setTimeout(()=>y(new Error("reauthWs timeout")),3e3))]);try{if(!u.connected)return;i?await o(u._send("auth",{token:i})):((f=u.disconnect)==null||f.call(u),await((d=u.connect)==null?void 0:d.call(u)))}catch(g){Ho.warn("reauthWs failed",g)}}localStorage.getItem("BOD_WS_RECORD")&&(window.bod=We,window.bodWs=We.client);const kv=Object.freeze(Object.defineProperty({__proto__:null,client:We,reauthWs:nn},Symbol.toStringTag,{value:"Module"}));function Uv(){const u=navigator.userAgent;return/FBAN|FBAV|FB_IAB|FBIOS/.test(u)?"fb":/Instagram/i.test(u)?"ig":"none"}let om=!1;function go(){try{performance.mark("para:auth-resolved")}catch{}}function jv(){var f;const u=performance.getEntriesByType("resource"),i=d=>d.replace(/^https?:\/\/[^/]+/,"").split("?")[0].slice(-60),o=d=>{const g=u.filter(d).sort((b,y)=>y.duration-b.duration)[0];return g?{start:Math.round(g.startTime),dur:Math.round(g.duration)}:void 0},r=(f=performance.getEntriesByName("para:auth-resolved")[0])==null?void 0:f.startTime;return{authResolved:r!=null?Math.round(r):-1,resourceCount:u.length,me:o(d=>d.name.includes("/auth/me")),sdk:o(d=>d.name.includes("/_bodify/sdk.js")),entry:o(d=>/\/assets\/index-|\/src\/main\.tsx/.test(d.name)),slowest:u.slice().sort((d,g)=>g.duration-d.duration).slice(0,3).map(d=>({n:i(d.name),start:Math.round(d.startTime),dur:Math.round(d.duration)}))}}function Lv(){var u;if(!om){om=!0;try{const i=performance.getEntriesByType("navigation")[0],o=(u=performance.getEntriesByType("paint").find(d=>d.name==="first-contentful-paint"))==null?void 0:u.startTime;let r=null;try{r=localStorage.getItem("para-funnel")}catch{}const f={ttfb:Math.round((i==null?void 0:i.responseStart)??-1),domInteractive:Math.round((i==null?void 0:i.domInteractive)??-1),fcp:o!=null?Math.round(o):-1,appMounted:Math.round(performance.now()),slowBoot:performance.now()>=5e3,webview:Uv(),path:location.pathname,...jv(),...r?{funnel:r}:{}};pt.event("boot_timing",f)}catch{}}}const Jm=E.createContext(null);function cm(){const u="para_dau_date",i=new Date,o=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;localStorage.getItem(u)!==o&&(localStorage.setItem(u,o),pt.event("session_active"))}function Bv({children:u}){const[i,o]=E.useState(null),[r,f]=E.useState(null),[d,g]=E.useState(!0);E.useEffect(()=>{const O=window.Bodify;if(!(O!=null&&O.auth)){go(),g(!1);return}return O.auth.getUser().then(k=>{k&&(o(k),pt.analytics.identify(k.id,{email:k.email,name:k.name}),cm(),nn()),go(),g(!1)}).catch(()=>{go(),g(!1)}),O.auth.onAuthStateChange((k,p)=>{o(k),f(p),nn(),k&&(pt.analytics.identify(k.id,{email:k.email,name:k.name}),cm())})},[]);const b=async(O,k,p)=>{const $=await pt.auth.signUp({email:O,password:k,name:p});$!=null&&$.emailVerificationRequired?f($.user):$!=null&&$.user&&o($.user)},y=async(O,k)=>{const p=await pt.auth.signIn({email:O,password:k});p!=null&&p.emailVerificationRequired?f(p.user):p!=null&&p.user&&o(p.user)},m=async O=>{const k=await pt.auth.verifyEmail(O);k!=null&&k.user&&(o(k.user),f(null))},T=async()=>{await pt.auth.resendVerification()},A=async()=>{await pt.auth.signOut(),o(null),f(null)},N=async()=>{var X,tt;const O=await pt.auth.getUser().catch(()=>null);if(O)return o(O),nn(),O;const k=(X=pt==null?void 0:pt.auth)==null?void 0:X._token;if(k)try{const K=(tt=JSON.parse(atob(k.split(".")[1])))==null?void 0:tt.sub;if(K){const Et=i&&i.id===K?i:{id:K,isAnonymous:!1};return o(Et),nn(),Et}}catch{}const $={id:pt.auth.adoptAnonIdentity(),isAnonymous:!0};return o($),(async()=>{try{const K=await pt.auth.signInAnonymously();o(K.user),await nn()}catch(K){console.error("[auth] anon token sign failed:",K)}})(),$},Q=async(O,k)=>{const p=await pt.auth.linkEmail(O,k);return o(p),await nn(),p},Z=async O=>{const k=await pt.auth.attachEmail(O);return o(k),await nn(),k},G=async O=>pt.auth.startPhoneSignIn(O),j=async(O,k)=>{const p=await pt.auth.linkPhone(O,k);return o(p),p};return w.jsx(Jm.Provider,{value:{user:i,pendingVerification:r,loading:d,signUp:b,signIn:y,verifyEmail:m,resendVerification:T,signOut:A,ensureAnonymousSession:N,linkEmail:Q,attachEmail:Z,startPhoneSignIn:G,linkPhone:j},children:u})}const _n=()=>E.useContext(Jm),$m=E.createContext({theme:"system",resolved:"dark",setTheme:()=>{}});function Hv(){const u=new Date().getHours();return u<7||u>=19?"dark":"light"}function hi(){return Hv()}function fm(u){return u==="system"?hi():u}function dm(u){document.documentElement.classList.toggle("dark",u==="dark")}function hm(u){const i=localStorage.getItem(u);if(!i)return"system";if(i==="light"||i==="dark"||i==="system")return i==="system"?"system":(localStorage.setItem(u,JSON.stringify({theme:i,setUnder:hi()})),i);try{const o=JSON.parse(i);return!["light","dark","system"].includes(o.theme)||o.theme==="system"?"system":o.setUnder&&hi()!==o.setUnder?(localStorage.removeItem(u),"system"):o.theme}catch{return"system"}}function qv(u,i){if(i==="system"){localStorage.removeItem(u);return}localStorage.setItem(u,JSON.stringify({theme:i,setUnder:hi()}))}function Yv({children:u,storageKey:i="theme",defaultTheme:o="system"}){const[r,f]=E.useState(()=>{const y=hm(i);return y!=="system"?y:o}),[d,g]=E.useState(()=>fm(r)),b=E.useCallback(y=>{qv(i,y),f(y)},[i]);return E.useEffect(()=>{const y=fm(r);g(y),dm(y)},[r]),E.useEffect(()=>{const y=()=>{const T=hm(i);if(T!==r){f(T);return}if(r==="system"){const A=hi();g(A),dm(A)}};document.addEventListener("visibilitychange",y),window.addEventListener("focus",y);const m=setInterval(y,5*6e4);return()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("focus",y),clearInterval(m)}},[r,i]),w.jsx($m.Provider,{value:{theme:r,resolved:d,setTheme:b},children:u})}const Vv=()=>E.useContext($m),Gv=200,mm=new Map,ku=new Map;function Ao(u,i,o){u.delete(i),u.set(i,o),u.size>Gv&&u.delete(u.keys().next().value)}function Xv(u,i,o){const r=i?mm.get(i):void 0,[f,d]=E.useState(r??null),[g,b]=E.useState(r===void 0);return E.useEffect(()=>{let m=!0;const T=u.on(i,A=>{if(m){const N=A.val();d(N),b(!1),i&&Ao(mm,i,N)}},void 0);return()=>{m=!1,T()}},[u,i,!1]),{data:f,loading:g}}function NS(u,i){const o=i?ku.get(i):void 0,[r,f]=E.useState(o?new Map(o):new Map),[d,g]=E.useState(!o);return E.useEffect(()=>{let b=!0;const y=i?ku.get(i):void 0;if(g(!y),f(y?new Map(y):new Map),!i){g(!1);return}const m=()=>u.get(i).then(N=>{if(b){if(N&&typeof N=="object"&&!Array.isArray(N)){const Q=new Map(Object.entries(N));f(Z=>{const G=new Map(Q);for(const[j,O]of Z)G.has(j)||G.set(j,O);return Ao(ku,i,G),G})}g(!1)}});let T=null;m().catch(()=>{T=setTimeout(()=>{b&&m().catch(()=>{b&&g(!1)})},500)});const A=u.onChild(i,N=>{b&&(g(!1),f(Q=>{const Z=new Map(Q);return N.type==="removed"?Z.delete(N.key):Z.set(N.key,N.val()),Ao(ku,i,Z),Z}))},{deep:!0});return()=>{b=!1,A(),T&&clearTimeout(T)}},[u,i]),{children:r,loading:d}}function Rt(u,i=2,o=350){return E.lazy(async()=>{let r;for(let f=0;f<=i;f++)try{return await u()}catch(d){if(r=d,f===i)break;await new Promise(g=>setTimeout(g,o*(f+1)))}throw r})}function Pm(){return typeof window>"u"?!1:location.protocol==="app:"||location.protocol==="file:"||location.hostname==="appwrap.local"}const pm="para:native";function qo(){var u;if(typeof window>"u")return!1;if((u=window.__APPWRAP__)!=null&&u.native||Pm())return!0;try{return new URLSearchParams(window.location.search).get("native")==="1"?(sessionStorage.setItem(pm,"1"),!0):sessionStorage.getItem(pm)==="1"}catch{return new URLSearchParams(window.location.search).get("native")==="1"}}class Qv extends E.Component{constructor(){super(...arguments);Gh(this,"state",{failed:!1})}static getDerivedStateFromError(o){const r=String((o==null?void 0:o.message)??o??"");return{failed:/import|module script|Loading chunk|dynamically imported|Failed to fetch/i.test(r)}}render(){return this.state.failed?w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.jsx("button",{onClick:()=>location.reload(),className:"mt-6 rounded-full px-5 py-2 text-body",style:{background:"var(--color-accent, #10b981)",color:"#fff",border:"none"},children:"Tap to reload"})]}):this.props.children}}const Zv=[{sign:"Capricorn",startMonth:1,startDay:1,endMonth:1,endDay:19,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"},{sign:"Aquarius",startMonth:1,startDay:20,endMonth:2,endDay:18,element:"Air",modality:"Fixed",ruler:"Uranus",range:"Jan 20 – Feb 18"},{sign:"Pisces",startMonth:2,startDay:19,endMonth:3,endDay:20,element:"Water",modality:"Mutable",ruler:"Neptune",range:"Feb 19 – Mar 20"},{sign:"Aries",startMonth:3,startDay:21,endMonth:4,endDay:19,element:"Fire",modality:"Cardinal",ruler:"Mars",range:"Mar 21 – Apr 19"},{sign:"Taurus",startMonth:4,startDay:20,endMonth:5,endDay:20,element:"Earth",modality:"Fixed",ruler:"Venus",range:"Apr 20 – May 20"},{sign:"Gemini",startMonth:5,startDay:21,endMonth:6,endDay:20,element:"Air",modality:"Mutable",ruler:"Mercury",range:"May 21 – Jun 20"},{sign:"Cancer",startMonth:6,startDay:21,endMonth:7,endDay:22,element:"Water",modality:"Cardinal",ruler:"Moon",range:"Jun 21 – Jul 22"},{sign:"Leo",startMonth:7,startDay:23,endMonth:8,endDay:22,element:"Fire",modality:"Fixed",ruler:"Sun",range:"Jul 23 – Aug 22"},{sign:"Virgo",startMonth:8,startDay:23,endMonth:9,endDay:22,element:"Earth",modality:"Mutable",ruler:"Mercury",range:"Aug 23 – Sep 22"},{sign:"Libra",startMonth:9,startDay:23,endMonth:10,endDay:22,element:"Air",modality:"Cardinal",ruler:"Venus",range:"Sep 23 – Oct 22"},{sign:"Scorpio",startMonth:10,startDay:23,endMonth:11,endDay:21,element:"Water",modality:"Fixed",ruler:"Pluto",range:"Oct 23 – Nov 21"},{sign:"Sagittarius",startMonth:11,startDay:22,endMonth:12,endDay:21,element:"Fire",modality:"Mutable",ruler:"Jupiter",range:"Nov 22 – Dec 21"},{sign:"Capricorn",startMonth:12,startDay:22,endMonth:12,endDay:31,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"}],Kv=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],Jv=["Wood","Fire","Earth","Metal","Water"],$v=["Garnet","Amethyst","Aquamarine","Diamond","Emerald","Pearl","Ruby","Peridot","Sapphire","Opal","Topaz","Tanzanite"];function Wm(u,i){return Zv.find(r=>r.startMonth===r.endMonth?u===r.startMonth&&i>=r.startDay&&i<=r.endDay:u===r.startMonth?i>=r.startDay:u===r.endMonth?i<=r.endDay:!1)}function Pv(u,i,o){let r;return u===o.startMonth?r=i-o.startDay:u===o.endMonth?r=new Date(2e3,o.startMonth,0).getDate()-o.startDay+i:r=new Date(2e3,o.startMonth,0).getDate()-o.startDay+new Date(2e3,u-1,0).getDate()+i,r<10?1:r<20?2:3}function Wv(u){const i=u-1924,o=(i%12+12)%12,r=Math.floor((i%10+10)%10/2);return{animal:Kv[o],element:Jv[r]}}function Fv(u){let o=[...u.replace(/-/g,"")].reduce((r,f)=>r+Number(f),0);for(;o>9&&o!==11&&o!==22&&o!==33;)o=[...String(o)].reduce((r,f)=>r+Number(f),0);return o}function Iv(u){return u>=3&&u<=5?"Spring":u>=6&&u<=8?"Summer":u>=9&&u<=11?"Autumn":"Winter"}function tb(u){if(!(u!=null&&u.trim()))return null;const i=new Date(u+"T00:00:00"),o=i.getMonth()+1,r=i.getDate();return isNaN(o)||isNaN(r)?null:Wm(o,r).sign}function kS(u){if(!(u!=null&&u.trim()))return null;const i=u.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!i)return null;const o=Number(i[1]),r=Number(i[2]),f=Number(i[3]),d=new Date(o,r-1,f);if(d.getFullYear()!==o||d.getMonth()!==r-1||d.getDate()!==f)return null;const g=Wm(r,f);return{zodiac:{sign:g.sign,element:g.element,modality:g.modality,rulingPlanet:g.ruler,decan:Pv(r,f,g),dateRange:g.range},chineseZodiac:Wv(o),numerology:{lifePath:Fv(u)},birthstone:$v[r-1],season:Iv(r)}}function eb(){var i;if(typeof window>"u")return!1;const u=window.__APPWRAP__;return u&&(u.reduceMotion||u.isEmulator)?!0:((i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches)??!1}const ab={Aries:{stars:[[.28,.52,1],[.38,.44,.8],[.52,.38,.6],[.68,.41,.9],[.73,.44,.5]],lines:[[0,1],[1,2],[2,3],[3,4]]},Taurus:{stars:[[.22,.58,1],[.33,.47,.7],[.43,.39,.9],[.54,.34,.8],[.61,.28,.6],[.48,.52,.5],[.63,.46,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[2,5],[5,6]]},Gemini:{stars:[[.33,.23,1],[.34,.38,.7],[.36,.54,.6],[.37,.68,.5],[.58,.22,.9],[.59,.39,.7],[.61,.53,.6],[.62,.69,.5]],lines:[[0,1],[1,2],[2,3],[4,5],[5,6],[6,7],[1,5],[2,6]]},Cancer:{stars:[[.33,.43,.7],[.44,.33,1],[.56,.44,.8],[.51,.57,.6],[.62,.31,.5]],lines:[[0,1],[1,2],[2,3],[1,4]]},Leo:{stars:[[.23,.53,.7],[.29,.36,1],[.39,.28,.9],[.51,.34,.8],[.57,.46,.6],[.67,.51,.5],[.56,.62,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6],[6,0]]},Virgo:{stars:[[.28,.28,1],[.34,.41,.7],[.44,.51,.8],[.56,.44,.9],[.62,.56,.6],[.67,.38,.5],[.51,.62,.7],[.39,.61,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[3,5],[2,6],[6,7],[7,1]]},Libra:{stars:[[.31,.32,.8],[.48,.27,1],[.66,.34,.7],[.38,.56,.9],[.62,.58,.6],[.5,.48,.5]],lines:[[0,1],[1,2],[0,3],[2,4],[3,5],[5,4]]},Scorpio:{stars:[[.18,.44,1],[.27,.38,.8],[.38,.41,.7],[.48,.46,.9],[.54,.52,.6],[.59,.57,.7],[.66,.61,.5],[.72,.56,.8],[.74,.47,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8]]},Sagittarius:{stars:[[.33,.57,.7],[.39,.44,1],[.49,.33,.9],[.56,.44,.6],[.62,.56,.7],[.48,.51,.8],[.43,.63,.5],[.54,.27,.6]],lines:[[0,1],[1,2],[2,7],[1,5],[5,3],[3,4],[5,6]]},Capricorn:{stars:[[.28,.42,.8],[.38,.34,1],[.49,.37,.7],[.61,.43,.9],[.67,.52,.6],[.56,.57,.7],[.44,.51,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,2]]},Aquarius:{stars:[[.18,.41,.6],[.28,.37,1],[.39,.43,.8],[.49,.37,.7],[.59,.43,.9],[.66,.51,.6],[.72,.57,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]},Pisces:{stars:[[.23,.47,.7],[.29,.36,1],[.38,.29,.8],[.49,.34,.6],[.56,.44,.9],[.61,.52,.7],[.56,.58,.5],[.44,.57,.6],[.34,.51,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,0]]}};function nb(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647),f=["#fff","#fff","#fff","#fff","#ccd6ff","#d4e0ff","#fff4e0","#ffe8c8","#ffd6d6"];return Array.from({length:u},()=>{const d=r()<.5?0:r()<.6?1:2,g=r()<.015,b=g||r()<.2,y=r(),m=r(),T=y-.5,A=m-.5;return{angle:Math.atan2(A,T),dist:Math.sqrt(T*T+A*A),r:g?2+r()*1:b?1.3+r()*1.2:d===0?.4+r()*.4:d===1?.6+r()*.6:1+r()*.8,phase:r()*Math.PI*2,speed:g?.1+r()*.3:.3+r()*1.2,color:f[Math.floor(r()*f.length)],layer:d,baseAlpha:b?.85+r()*.15:.45+r()*.45,shimmer:g}})}function lb(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647);return Array.from({length:u},()=>({x:r(),y:r(),speed:.003+r()*.008,alpha:.3+r()*.4}))}function ib(u,i){let o=i;const r=()=>(o=o*16807%2147483647,o/2147483647);return Array.from({length:u},()=>({x:.05+r()*.9,y:.05+r()*.7,r:120+r()*220,hue:r()<.4?160+r()*40:r()<.7?270+r()*50:30+r()*20,phase:r()*Math.PI*2,speed:.1+r()*.25}))}const ub={Fire:{r:255,g:120,b:50},Earth:{r:120,g:180,b:80},Air:{r:140,g:170,b:255},Water:{r:80,g:140,b:220}},sb={Garnet:"#9b2335",Amethyst:"#9966cc",Aquamarine:"#7fffd4",Diamond:"#e8e8e8",Emerald:"#50c878",Pearl:"#eae0c8",Ruby:"#e0115f",Peridot:"#b4c424",Sapphire:"#0f52ba",Opal:"#a8c3bc",Topaz:"#ffc87c",Tanzanite:"#5a4fcf"},rb={Sun:1,Moon:.7,Mercury:.35,Venus:.5,Mars:.45,Jupiter:.85,Saturn:.75,Uranus:.55,Neptune:.55,Pluto:.3};function ob({date:u,intensity:i,nebulaOpacity:o,showConstellation:r=!1,artifact:f="none",cosmic:d=null,darkMode:g=!0}){const b=E.useRef(null),y=E.useRef(0),m=E.useRef(!0),T=E.useRef(u),A=E.useRef({rotation:0,targetRotation:0,angVel:0,mouseX:0,mouseY:0,tMouseX:0,tMouseY:0,curI:0,curArtifact:0,sign:null,cAlpha:0,lineProgress:0,labelAlpha:0,prevSign:null,prevAlpha:0,planetAlpha:0,elementTintAlpha:0,shootingStars:[],nextShootAt:2e3,pulsars:[],nextPulsarAt:8e3,births:[],nextBirthAt:15e3,auroraPhase:0,t:0}),N=typeof window<"u"&&window.innerWidth<640,Q=E.useMemo(()=>nb(N?600:1200,42),[N]),Z=E.useMemo(()=>ib(N?6:10,77),[N]),G=E.useMemo(()=>lb(N?300:600,99),[N]);E.useEffect(()=>{const O=A.current,k=(X,tt)=>{O.tMouseX=(X/window.innerWidth-.5)*2,O.tMouseY=(tt/window.innerHeight-.5)*2},p=X=>k(X.clientX,X.clientY),$=X=>{X.touches[0]&&k(X.touches[0].clientX,X.touches[0].clientY)};return window.addEventListener("mousemove",p,{passive:!0}),window.addEventListener("touchmove",$,{passive:!0}),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",$)}},[]),E.useEffect(()=>{const O=A.current,k=T.current,p=u;if(T.current=p,p&&k!==p){const[X,tt,K]=(k||"2000-01-01").split("-").map(Number),[Et,Qt,re]=p.split("-").map(Number);if(!isNaN(Et)&&!isNaN(Qt)&&!isNaN(re)){const le=Et-(isNaN(X)?Et:X),kt=Qt-(isNaN(tt)?Qt:tt),ve=re-(isNaN(K)?re:K),Ht=!k||k===""?.8:ve*.12+kt*.4+le*1.5;O.angVel+=Ht,O.angVel=Math.max(-5,Math.min(5,O.angVel)),O.targetRotation+=Ht*.6}}const $=tb(p);$!==O.sign&&(O.prevSign=O.sign,O.prevAlpha=O.cAlpha,O.sign=$,O.cAlpha=0,O.lineProgress=0,O.labelAlpha=0)},[u]);const j=E.useCallback(O=>{const k=b.current;if(!k)return;const p=k.getContext("2d");if(!p)return;const $=Math.min(window.devicePixelRatio||1,2),X=k.clientWidth,tt=k.clientHeight;(k.width!==X*$||k.height!==tt*$)&&(k.width=X*$,k.height=tt*$),p.setTransform($,0,0,$,0,0),p.clearRect(0,0,X,tt);const K=g,Et=K?"255,255,255":"0,0,0",Qt=K?"#fff":"#000",re=K?"220,240,255":"30,30,60",le=K?"255,240,220":"180,140,60",kt=K?[255,250,235,255,220,180,200,170,130]:[210,170,60,190,145,50,160,120,40],ve=K?"255,230,200":"170,130,50",pe=K?"210,255,235":"5,80,50",Ht=K?{}:{"#fff":"#222","#ccd6ff":"#1a2040","#d4e0ff":"#102030","#fff4e0":"#3a2800","#ffe8c8":"#402000","#ffd6d6":"#401010"},U=V=>Ht[V]||V,M=A.current,P=1/60;M.t+=P;const rt=M.t;M.curI+=(i-M.curI)*.04;const nt=M.curI,x=f==="none"?0:1;M.curArtifact+=(x-M.curArtifact)*.06,M.mouseX+=(M.tMouseX-M.mouseX)*.04,M.mouseY+=(M.tMouseY-M.mouseY)*.04,M.targetRotation+=P*.015,M.rotation+=(M.targetRotation-M.rotation)*.05;const q=Math.abs(M.angVel);M.angVel*=.95,q<5e-4&&(M.angVel=0);const J=Math.min(1,q*.8),I=X*.5,ot=tt*.5;if(M.sign&&r?(M.cAlpha=Math.min(1,M.cAlpha+P*1.5),M.lineProgress=Math.min(1,M.lineProgress+P*.8),M.labelAlpha=Math.min(1,M.labelAlpha+P*.6)):r||(M.cAlpha=Math.max(0,M.cAlpha-P*2)),M.prevSign&&(M.prevAlpha=Math.max(0,M.prevAlpha-P*2.5),M.prevAlpha<=0&&(M.prevSign=null)),M.nextShootAt-=P*1e3,M.nextShootAt<=0&&nt>.15&&(M.shootingStars.push({x:Math.random()*X,y:Math.random()*tt*.5,angle:Math.PI*.1+Math.random()*Math.PI*.3,speed:400+Math.random()*500,life:0,maxLife:.3+Math.random()*.35,len:80+Math.random()*150}),M.nextShootAt=3e3+Math.random()*7e3),M.curArtifact>.005&&f==="nebula"){const V=o??nt*.25;for(const Y of Z){const W=Y.x*X+Math.sin(rt*Y.speed+Y.phase)*50,st=Y.y*tt+Math.cos(rt*Y.speed*.7+Y.phase)*35,lt=.5+.5*Math.sin(rt*Y.speed*.4+Y.phase),ut=Y.r*(.8+lt*.5),Ct=M.curArtifact*V*(.5+lt*.5);p.globalAlpha=1;const mt=p.createRadialGradient(W,st,0,W,st,ut);mt.addColorStop(0,`hsla(${Y.hue}, 80%, 55%, ${Ct})`),mt.addColorStop(.3,`hsla(${Y.hue}, 70%, 45%, ${Ct*.5})`),mt.addColorStop(.7,`hsla(${Y.hue}, 60%, 35%, ${Ct*.15})`),mt.addColorStop(1,`hsla(${Y.hue}, 50%, 30%, 0)`),p.fillStyle=mt,p.beginPath(),p.arc(W,st,ut,0,Math.PI*2),p.fill()}}if(M.curArtifact>.005&&f==="stardust"){const V=X*.5+Math.sin(rt*.15)*35,Y=tt*.32+Math.cos(rt*.12)*25,W=.6+.4*Math.sin(rt*.35),st=M.curArtifact*nt,lt=180+W*80,ut=p.createRadialGradient(V,Y,0,V,Y,lt);ut.addColorStop(0,`rgba(16, 185, 129, ${st*.25*W})`),ut.addColorStop(.2,`rgba(16, 185, 129, ${st*.12})`),ut.addColorStop(.5,`rgba(80, 100, 220, ${st*.06})`),ut.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=1,p.fillStyle=ut,p.beginPath(),p.arc(V,Y,lt,0,Math.PI*2),p.fill();const Ct=p.createRadialGradient(V,Y,0,V,Y,40);Ct.addColorStop(0,K?`rgba(200, 255, 230, ${st*.4})`:`rgba(5, 80, 40, ${st*.4})`),Ct.addColorStop(.5,`rgba(16, 185, 129, ${st*.15})`),Ct.addColorStop(1,"rgba(16, 185, 129, 0)"),p.fillStyle=Ct,p.beginPath(),p.arc(V,Y,40,0,Math.PI*2),p.fill();for(let mt=0;mt<8;mt++){const xt=rt*.08+mt/8*Math.PI*2,Zt=80+40*Math.sin(rt*.4+mt*1.3),zt=V+Math.cos(xt)*Zt,Kt=Y+Math.sin(xt)*Zt,be=p.createLinearGradient(V,Y,zt,Kt);be.addColorStop(0,`rgba(16,185,129,${st*.15})`),be.addColorStop(1,"rgba(16,185,129,0)"),p.strokeStyle=be,p.lineWidth=2.5,p.globalAlpha=1,p.beginPath(),p.moveTo(V,Y),p.lineTo(zt,Kt),p.stroke()}}if(nt>.1){p.fillStyle=Qt;for(const V of G)V.y-=V.speed*P,V.x+=Math.sin(rt*.3+V.y*5)*3e-4,V.y<-.01&&(V.y=1.01,V.x=Math.random()),p.globalAlpha=V.alpha*nt*.7,p.fillRect(V.x*X,V.y*tt,1,1)}if(nt>.15){M.auroraPhase+=P*.08,p.save(),p.globalCompositeOperation=K?"screen":"multiply";const V=[{hue:160,y:.18,amp:40,freq:1.2,alpha:.04},{hue:270,y:.25,amp:30,freq:.9,alpha:.03},{hue:190,y:.15,amp:50,freq:1.5,alpha:.025}];for(const Y of V){const W=Y.y*tt;p.beginPath(),p.moveTo(0,W);for(let lt=0;lt<=X;lt+=8){const ut=W+Math.sin(lt*Y.freq*.005+M.auroraPhase+Y.hue)*Y.amp+Math.sin(lt*.003+M.auroraPhase*1.7)*Y.amp*.5;p.lineTo(lt,ut)}p.lineTo(X,0),p.lineTo(0,0),p.closePath();const st=p.createLinearGradient(0,W-60,0,W+80);st.addColorStop(0,"rgba(0,0,0,0)"),st.addColorStop(.4,`hsla(${Y.hue},60%,50%,${Y.alpha*nt})`),st.addColorStop(.6,`hsla(${Y.hue},60%,40%,${Y.alpha*nt*.6})`),st.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=st,p.fill()}p.restore()}for(const V of Q){const Y=V.layer===0?.3:V.layer===1?.65:1,W=V.angle+M.rotation*Y,st=Math.sqrt(X*X+tt*tt)*.75,lt=I+Math.cos(W)*V.dist*st+M.mouseX*25*Y,ut=ot+Math.sin(W)*V.dist*st+M.mouseY*15*Y;if(lt<-60||lt>X+60||ut<-60||ut>tt+60)continue;const mt=V.baseAlpha*(.3+.5*(.5+.35*Math.sin(rt*V.speed+V.phase)+.15*Math.sin(rt*V.speed*2.7+V.phase*1.4)))*nt;if(!(mt<.008)){if(J>.02&&nt>.2){const xt=M.angVel*V.dist*st*Y,Zt=Math.max(-80,Math.min(80,xt));if(Math.abs(Zt)>1.5){const zt=-Math.sin(W),Kt=Math.cos(W);p.beginPath(),p.moveTo(lt-zt*Zt*.5,ut-Kt*Zt*.5),p.lineTo(lt+zt*Zt*.5,ut+Kt*Zt*.5),p.lineWidth=V.r*1.8,p.strokeStyle=U(V.color),p.globalAlpha=mt*.3,p.stroke()}}if(p.globalAlpha=mt,p.fillStyle=U(V.color),p.beginPath(),p.arc(lt,ut,V.r,0,Math.PI*2),p.fill(),V.shimmer&&mt>.1){const xt=.5+.5*Math.sin(rt*V.speed*.7+V.phase),Zt=V.r*(8+xt*6),zt=p.createRadialGradient(lt,ut,0,lt,ut,Zt);zt.addColorStop(0,U(V.color)),zt.addColorStop(.15,U(V.color)),zt.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=mt*.25*xt,p.fillStyle=zt,p.beginPath(),p.arc(lt,ut,Zt,0,Math.PI*2),p.fill();const Kt=V.r*(4+xt*3);p.globalAlpha=mt*.4*xt,p.strokeStyle=U(V.color),p.lineWidth=.8,p.beginPath(),p.moveTo(lt-Kt,ut),p.lineTo(lt+Kt,ut),p.moveTo(lt,ut-Kt),p.lineTo(lt,ut+Kt),p.stroke()}}}for(let V=M.shootingStars.length-1;V>=0;V--){const Y=M.shootingStars[V];if(Y.life+=P,Y.life>Y.maxLife){M.shootingStars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.2?W/.2:1-(W-.2)/.8,lt=Y.x+Math.cos(Y.angle)*Y.speed*Y.life,ut=Y.y+Math.sin(Y.angle)*Y.speed*Y.life,Ct=lt-Math.cos(Y.angle)*Y.len*st,mt=ut-Math.sin(Y.angle)*Y.len*st,xt=p.createLinearGradient(Ct,mt,lt,ut);xt.addColorStop(0,`rgba(${Et},0)`),xt.addColorStop(.6,`rgba(${Et},${st*.3*nt})`),xt.addColorStop(1,`rgba(${Et},${st*.9*nt})`),p.strokeStyle=xt,p.lineWidth=1.8,p.globalAlpha=1,p.beginPath(),p.moveTo(Ct,mt),p.lineTo(lt,ut),p.stroke(),p.fillStyle=`rgba(${Et},${st*nt})`,p.beginPath(),p.arc(lt,ut,2,0,Math.PI*2),p.fill()}M.nextPulsarAt-=P*1e3,M.nextPulsarAt<=0&&nt>.2&&M.pulsars.length<2&&(M.pulsars.push({x:Math.random()*X,y:Math.random()*tt,life:0,maxLife:2.5+Math.random()*1.5}),M.nextPulsarAt=6e3+Math.random()*1e4);for(let V=M.pulsars.length-1;V>=0;V--){const Y=M.pulsars[V];if(Y.life+=P,Y.life>Y.maxLife){M.pulsars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W*60,lt=W<.1?W/.1:1-(W-.1)/.9;if(p.strokeStyle=`rgba(${re},${lt*.3*nt})`,p.lineWidth=1.5*(1-W),p.globalAlpha=1,p.beginPath(),p.arc(Y.x,Y.y,st,0,Math.PI*2),p.stroke(),W<.3){const ut=(1-W/.3)*.6*nt;p.fillStyle=`rgba(${re},${ut})`,p.beginPath(),p.arc(Y.x,Y.y,2,0,Math.PI*2),p.fill()}}if(M.nextBirthAt-=P*1e3,M.nextBirthAt<=0&&nt>.2&&M.births.length<1){const V=K?["#fff","#ccd6ff","#fff4e0","#ffe8c8"]:["#000","#1a2040","#3a2800","#402000"];M.births.push({x:X*.1+Math.random()*X*.8,y:tt*.1+Math.random()*tt*.6,life:0,maxLife:2+Math.random()*1,color:V[Math.floor(Math.random()*V.length)]}),M.nextBirthAt=18e3+Math.random()*15e3}for(let V=M.births.length-1;V>=0;V--){const Y=M.births[V];if(Y.life+=P,Y.life>Y.maxLife){M.births.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.15?W/.15:1,lt=W<.3?1:1-(W-.3)/.7,ut=st*20,Ct=p.createRadialGradient(Y.x,Y.y,0,Y.x,Y.y,ut);Ct.addColorStop(0,Y.color),Ct.addColorStop(.3,Y.color),Ct.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=lt*.4*nt,p.fillStyle=Ct,p.beginPath(),p.arc(Y.x,Y.y,ut,0,Math.PI*2),p.fill();const mt=1+st*2*lt;if(p.globalAlpha=lt*.9*nt,p.fillStyle=Qt,p.beginPath(),p.arc(Y.x,Y.y,mt,0,Math.PI*2),p.fill(),W<.3){const xt=st*15*lt;p.strokeStyle=Y.color,p.lineWidth=.6,p.globalAlpha=lt*.5*nt,p.beginPath(),p.moveTo(Y.x-xt,Y.y),p.lineTo(Y.x+xt,Y.y),p.moveTo(Y.x,Y.y-xt),p.lineTo(Y.x,Y.y+xt),p.stroke()}}if(p.globalAlpha=1,d&&r?(M.planetAlpha=Math.min(1,M.planetAlpha+P*.8),M.elementTintAlpha=Math.min(1,M.elementTintAlpha+P*.6)):(M.planetAlpha=Math.max(0,M.planetAlpha-P*1.5),M.elementTintAlpha=Math.max(0,M.elementTintAlpha-P*1.5)),d&&M.elementTintAlpha>.01){const V=ub[d.zodiac.element];if(V){const zt=M.elementTintAlpha*nt*.12,Kt=p.createRadialGradient(X*.5,tt*.72,0,X*.5,tt*.72,tt*.7);Kt.addColorStop(0,`rgba(${V.r},${V.g},${V.b},${zt})`),Kt.addColorStop(.5,`rgba(${V.r},${V.g},${V.b},${zt*.3})`),Kt.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=Kt,p.beginPath(),p.arc(X*.5,tt*.72,tt*.7,0,Math.PI*2),p.fill()}const W=5+(rb[d.zodiac.rulingPlanet]||.5)*8,st=W*5,lt=X*.73+Math.sin(rt*.1)*8,ut=tt*.68+Math.cos(rt*.08)*6,Ct=M.planetAlpha*(K?nt:Math.max(nt,.7)),mt=p.createRadialGradient(lt,ut,0,lt,ut,st);mt.addColorStop(0,`rgba(${le},${Ct*.08})`),mt.addColorStop(.3,`rgba(${le},${Ct*.03})`),mt.addColorStop(1,`rgba(${le},0)`),p.fillStyle=mt,p.globalAlpha=1,p.beginPath(),p.arc(lt,ut,st,0,Math.PI*2),p.fill();const xt=p.createRadialGradient(lt-W*.2,ut-W*.2,0,lt,ut,W);xt.addColorStop(0,`rgba(${kt[0]},${kt[1]},${kt[2]},${Ct*.5})`),xt.addColorStop(.7,`rgba(${kt[3]},${kt[4]},${kt[5]},${Ct*.25})`),xt.addColorStop(1,`rgba(${kt[6]},${kt[7]},${kt[8]},${Ct*.1})`),p.fillStyle=xt,p.beginPath(),p.arc(lt,ut,W,0,Math.PI*2),p.fill(),d.zodiac.rulingPlanet==="Saturn"&&(p.strokeStyle=`rgba(${ve},${Ct*.2})`,p.lineWidth=1,p.beginPath(),p.ellipse(lt,ut,W*2.2,W*.5,-.2,0,Math.PI*2),p.stroke());const Zt=sb[d.birthstone];if(Zt)for(let zt=0;zt<8;zt++){const Kt=X*.25+zt*.07*X+Math.sin(rt*.25+zt*1.1)*25,be=tt*.65+Math.cos(rt*.2+zt*.9)*30+zt%3*15,Jt=M.elementTintAlpha*nt*.3*(.4+.6*Math.sin(rt*.4+zt*2));p.fillStyle=Zt,p.globalAlpha=Jt,p.beginPath(),p.arc(Kt,be,1.5+zt%3*.5,0,Math.PI*2),p.fill()}p.globalAlpha=1}const ht=(V,Y,W)=>{const st=ab[V];if(!st||Y<=0)return;const lt=M.rotation*.65,ut=X*.5+M.mouseX*25*.65,Ct=tt*.72+M.mouseY*15*.65,mt=Math.min(X*.45,tt*.22),xt=st.stars.map(([Jt,De])=>{const ge=(Jt-.5)*mt,ie=(De-.42)*mt,qt=Math.cos(lt*.15),ia=Math.sin(lt*.15);return[ut+ge*qt-ie*ia,Ct+ge*ia+ie*qt]}),Zt=st.lines.length,zt=Math.floor(W*Zt),Kt=W*Zt-zt,be=K?1:3;p.strokeStyle=`rgba(16,185,129,${Y*.3*nt*be})`,p.lineWidth=K?1:1.5,p.shadowColor=`rgba(16,185,129,${Y*.5*be})`,p.shadowBlur=6,p.beginPath();for(let Jt=0;Jt<=zt&&Jt<Zt;Jt++){const[De,ge]=st.lines[Jt],[ie,qt]=xt[De],[ia,ua]=xt[ge];p.moveTo(ie,qt),p.lineTo(Jt<zt?ia:ie+(ia-ie)*Kt,Jt<zt?ua:qt+(ua-qt)*Kt)}p.stroke(),p.shadowBlur=0;for(let Jt=0;Jt<st.stars.length;Jt++){const[,,De]=st.stars[Jt],[ge,ie]=xt[Jt],qt=Y*De*Math.min(1,W*Zt/Math.max(1,Jt))*nt;if(qt<=0)continue;const ia=5+De*5,ua=p.createRadialGradient(ge,ie,0,ge,ie,ia);ua.addColorStop(0,`rgba(16,185,129,${qt*.7*be})`),ua.addColorStop(.4,`rgba(16,185,129,${qt*.2*be})`),ua.addColorStop(1,"rgba(16,185,129,0)"),p.fillStyle=ua,p.globalAlpha=1,p.beginPath(),p.arc(ge,ie,ia,0,Math.PI*2),p.fill(),p.fillStyle=`rgba(${pe},${qt})`,p.beginPath(),p.arc(ge,ie,1.2+De*1.3,0,Math.PI*2),p.fill()}if(V===M.sign&&M.labelAlpha>0){const Jt=Math.max(13,Math.min(16,X*.035)),De=Math.max(10,Math.min(12,X*.025)),ge=Math.max(...xt.map(ie=>ie[1]));if(p.textAlign="center",p.globalAlpha=M.labelAlpha*(K?.5:1),p.fillStyle=K?"#34d399":"#047857",p.font=`500 ${Jt}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="3px",p.fillText(V.toUpperCase(),ut,ge+24),p.letterSpacing="0px",d&&M.labelAlpha>.4){const ie=(M.labelAlpha-.4)/.6;p.font=`400 ${De}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="1.5px",p.globalAlpha=ie*(K?.6:1),p.fillStyle=K?"#a1a1aa":"#71717a",p.fillText(`${d.zodiac.element} · ${d.zodiac.rulingPlanet}`,ut,ge+42),p.globalAlpha=ie*(K?.45:.85),p.fillStyle=K?"#a1a1aa":"#71717a",p.fillText(`${d.chineseZodiac.element} ${d.chineseZodiac.animal} · Path ${d.numerology.lifePath}`,ut,ge+58),p.letterSpacing="0px"}p.globalAlpha=1}};M.prevSign&&ht(M.prevSign,M.prevAlpha,1),M.sign&&M.cAlpha>0&&ht(M.sign,M.cAlpha,M.lineProgress),m.current&&(y.current=requestAnimationFrame(j))},[Q,Z,G,i,o,r,f,d,g]);return E.useEffect(()=>{if(eb()){m.current=!1,requestAnimationFrame(j);return}const O=()=>{const k=!document.hidden;k!==m.current&&(m.current=k,cancelAnimationFrame(y.current),k&&(y.current=requestAnimationFrame(j)))};return m.current=!document.hidden,m.current&&(y.current=requestAnimationFrame(j)),document.addEventListener("visibilitychange",O),()=>{cancelAnimationFrame(y.current),document.removeEventListener("visibilitychange",O)}},[j]),w.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none z-0","aria-hidden":"true",children:[w.jsx("canvas",{ref:b,className:"absolute inset-0 w-full h-full"}),w.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/4",style:{background:"linear-gradient(to top, var(--color-bg) 0%, transparent 100%)"}}),w.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 140% 90% at 50% 10%, transparent 50%, var(--color-bg) 100%)"}})]})}const cb={date:"",intensity:.5,nebulaOpacity:.05,artifact:"nebula",cosmic:null},Fm=E.createContext(()=>{}),US=()=>E.useContext(Fm);function fb(){const[u,i]=E.useState(cb),o=E.useCallback(f=>i(d=>({...d,...f})),[]),{resolved:r}=Vv();return w.jsx(Fm.Provider,{value:o,children:w.jsxs("div",{className:"relative min-h-screen",children:[w.jsx(ob,{...u,darkMode:r==="dark"}),w.jsx("div",{className:"relative z-10",children:w.jsx(Vy,{})})]})})}function Im(u){const[i,o]=E.useState(()=>pt.flags.get(u));return E.useEffect(()=>pt.flags.subscribe(f=>{(!f||f===u)&&o(pt.flags.get(u))}),[u]),i}const gm=1;class St extends Error{constructor(i,o){super(o),this.code=i,this.name="KitError"}}class db{constructor(){this.kind="appwrap",this.pending=new Map,this.listeners=new Map,this.seq=0}detect(){var i,o;return typeof window<"u"&&(!!((o=(i=window.webkit)==null?void 0:i.messageHandlers)!=null&&o.appwrap)||!!window.appwrapNative)}async handshake(i){return this.installDeliver(),this.request("app.handshake",void 0,i)}invoke(i,o,r){return this.request(i,o,(r==null?void 0:r.timeoutMs)??1e4)}on(i,o){let r=this.listeners.get(i);return r||this.listeners.set(i,r=new Set),r.add(o),()=>r.delete(o)}request(i,o,r){const f=`k${++this.seq}`,d={v:1,id:f,kind:"request",method:i,params:o};return new Promise((g,b)=>{const y=setTimeout(()=>{this.pending.delete(f),b(new St("TIMEOUT",`${i} timed out after ${r}ms`))},r);this.pending.set(f,{resolve:m=>{clearTimeout(y),g(m)},reject:m=>{clearTimeout(y),b(m)}}),this.post(d)})}post(i){var r,f;const o=JSON.stringify(i);if((f=(r=window.webkit)==null?void 0:r.messageHandlers)!=null&&f.appwrap)window.webkit.messageHandlers.appwrap.postMessage(o);else if(window.appwrapNative)window.appwrapNative.postMessage(o);else{const d=this.pending.get(i.id);this.pending.delete(i.id),d==null||d.reject(new St("NOT_READY","No native transport present"))}}installDeliver(){window.__appwrapDeliver||(window.__appwrapDeliver=i=>{var r;let o;try{o=JSON.parse(i)}catch{return}o.kind==="response"?this.handleResponse(o):o.kind==="event"&&((r=this.listeners.get(o.event))==null||r.forEach(f=>f(o.payload)))})}handleResponse(i){const o=this.pending.get(i.id);o&&(this.pending.delete(i.id),i.error?o.reject(new St(i.error.code,i.error.message)):o.resolve(i.result))}}function hb(u){const i=atob(u),o=new Uint8Array(i.length);for(let r=0;r<i.length;r++)o[r]=i.charCodeAt(r);return o.buffer}function mb(u){switch(u){case"portrait-upside-down":return"portrait-secondary";case"landscape-left":return"landscape-primary";case"landscape-right":return"landscape-secondary";default:return u}}class pb{constructor(){this.kind="web",this.toastEl=null,this.wakeLock=null,this.listeners=new Map,this.geoWatchId=null,this.motionHandler=null}detect(){return typeof window<"u"}async handshake(){var r,f;const i=navigator,o={haptics:"vibrate"in navigator?"web":"none",share:"share"in navigator?"web":"none",shareFiles:typeof i.canShare=="function"?"web":"none",orientation:screen!=null&&screen.orientation?"web":"none",storage:"web",secureStorage:"none",toast:"web",statusBar:"none",device:"web",clipboard:navigator.clipboard?"web":"none",notifications:"Notification"in window?"web":"none",biometrics:"none",geo:"geolocation"in navigator?"web":"none",photos:"web",network:"web",screen:"wakeLock"in i?"web":"none",dialogs:"web",reviews:"none",themeColor:"web",motion:typeof DeviceMotionEvent<"u"?"web":"none",contacts:(r=i.contacts)!=null&&r.select?"web":"none",calendar:"none",camera:"web",media:(f=navigator.mediaDevices)!=null&&f.getUserMedia?"web":"none",app:"web",browser:"web",billing:"none",push:"none"};return{protocol:1,platform:"web",app:{id:location.hostname,name:document.title||location.hostname,version:"0.0.0"},capabilities:o}}async invoke(i,o){var f,d,g,b,y,m,T,A,N,Q,Z,G;const r=o??{};switch(i){case"haptics.impact":(f=navigator.vibrate)==null||f.call(navigator,10);return;case"haptics.notify":(d=navigator.vibrate)==null||d.call(navigator,r.type==="error"?[40,60,40]:[20,40,20]);return;case"share.share":if(!navigator.share)throw new St("UNSUPPORTED","Web Share API unavailable");await navigator.share({title:r.title,text:r.text,url:r.url}).catch(j=>{if(j.name!=="AbortError")throw new St("NATIVE_ERROR",j.message)});return;case"share.files":{const O={files:(r.files??[]).map(k=>new File([hb(k.base64)],k.name,{type:k.mimeType})),title:r.title,text:r.text};if(!((g=navigator.canShare)!=null&&g.call(navigator,O)))throw new St("UNSUPPORTED","Sharing files is unavailable here");await navigator.share(O).catch(k=>{if(k.name!=="AbortError")throw new St("NATIVE_ERROR",k.message)});return}case"storage.get":return JSON.parse(localStorage.getItem(`kit:${r.key}`)??"null");case"storage.set":localStorage.setItem(`kit:${r.key}`,JSON.stringify(r.value??null));return;case"storage.remove":localStorage.removeItem(`kit:${r.key}`);return;case"storage.clear":for(const j of Object.keys(localStorage))j.startsWith("kit:")&&localStorage.removeItem(j);return;case"storage.secure.get":case"storage.secure.set":case"storage.secure.remove":throw new St("UNSUPPORTED","No secure storage on web");case"toast.show":this.showToast(String(r.message??""),r.duration==="long"?3500:2e3);return;case"ui.statusBar.setStyle":return;case"ui.safeArea":return this.readSafeArea();case"ui.brightness.get":case"ui.brightness.set":throw new St("UNSUPPORTED","No brightness control on web");case"ui.keepAwake":{const j=navigator.wakeLock;if(!j)throw new St("UNSUPPORTED","Wake Lock API unavailable");r.on?this.wakeLock=await j.request("screen"):(await((b=this.wakeLock)==null?void 0:b.release()),this.wakeLock=null);return}case"ui.alert":window.alert([r.title,r.message].filter(Boolean).join(`

`));return;case"ui.confirm":return window.confirm([r.title,r.message].filter(Boolean).join(`

`));case"ui.action":return this.showActionSheet(r.title,r.options??[],r.cancel??"Cancel");case"ui.setBackgroundColor":{let j=document.querySelector('meta[name="theme-color"]');j||(j=document.createElement("meta"),j.name="theme-color",document.head.appendChild(j)),j.content=String(r.color??"");return}case"screen.orientation.lock":{const j=screen==null?void 0:screen.orientation;if(!(j!=null&&j.lock))throw new St("UNSUPPORTED","Screen orientation lock unavailable");await j.lock(mb(String(r.orientation))).catch(O=>{throw new St("UNSUPPORTED",O.message||"Lock rejected (fullscreen may be required)")});return}case"screen.orientation.unlock":(m=(y=screen==null?void 0:screen.orientation)==null?void 0:y.unlock)==null||m.call(y);return;case"screen.orientation.current":return(((T=screen==null?void 0:screen.orientation)==null?void 0:T.type)??"").startsWith("landscape")?"landscape":"portrait";case"reviews.requestReview":throw new St("UNSUPPORTED","No in-app review prompt on web");case"device.info":{const j=await((A=navigator.getBattery)==null?void 0:A.call(navigator).catch(()=>null));return{model:navigator.userAgent.replace(/^Mozilla\/\d+\.\d+\s*/,"").slice(0,64),os:"web",osVersion:navigator.platform??"",language:navigator.language,battery:j?{level:j.level,charging:j.charging}:void 0}}case"clipboard.copy":if(!navigator.clipboard)throw new St("UNSUPPORTED","Clipboard API unavailable");await navigator.clipboard.writeText(String(r.text??""));return;case"clipboard.read":if(!((N=navigator.clipboard)!=null&&N.readText))throw new St("UNSUPPORTED","Clipboard read unavailable");return await navigator.clipboard.readText().catch(j=>{throw new St("DENIED",j.message)});case"notifications.requestPermission":if(!("Notification"in window))throw new St("UNSUPPORTED","Notifications unavailable");return await Notification.requestPermission();case"notifications.schedule":{if(Notification.permission!=="granted")throw new St("DENIED","Permission not granted");const j=(r.delaySec??1)*1e3;return setTimeout(()=>new Notification(r.title,{body:r.body}),j),{id:r.id??Date.now()%1e5}}case"notifications.pending":return 0;case"notifications.setBadge":{const j=(Q=navigator.setAppBadge)==null?void 0:Q.bind(navigator);if(!j)throw new St("UNSUPPORTED","Badging API unavailable");await j(r.count);return}case"notifications.clear":return;case"biometrics.available":return{available:!1,type:"none"};case"biometrics.authenticate":throw new St("UNSUPPORTED","No biometrics on web");case"geo.current":return new Promise((j,O)=>{navigator.geolocation.getCurrentPosition(k=>j({lat:k.coords.latitude,lng:k.coords.longitude,accuracy:k.coords.accuracy}),k=>O(new St(k.code===1?"DENIED":"NATIVE_ERROR",k.message)),{timeout:1e4})});case"geo.watch.start":this.geoWatchId===null&&(this.geoWatchId=navigator.geolocation.watchPosition(j=>this.emit("geo.position",{lat:j.coords.latitude,lng:j.coords.longitude,accuracy:j.coords.accuracy}),j=>console.warn("[native-kit] geo.watch error",j.message)));return;case"geo.watch.stop":this.geoWatchId!==null&&(navigator.geolocation.clearWatch(this.geoWatchId),this.geoWatchId=null);return;case"motion.start":{if(typeof DeviceMotionEvent>"u")throw new St("UNSUPPORTED","No motion sensors on this browser");const j=DeviceMotionEvent.requestPermission;if(j&&await j().catch(k=>{throw new St("DENIED",k.message)})!=="granted")throw new St("DENIED","Motion permission not granted");if(!this.motionHandler){let O=0;this.motionHandler=k=>{const p=performance.now();if(p-O<100)return;O=p;const $=k.accelerationIncludingGravity,X=k.rotationRate;this.emit("motion.data",{ax:($==null?void 0:$.x)??0,ay:($==null?void 0:$.y)??0,az:($==null?void 0:$.z)??0,rx:(X==null?void 0:X.alpha)??void 0,ry:(X==null?void 0:X.beta)??void 0,rz:(X==null?void 0:X.gamma)??void 0})},window.addEventListener("devicemotion",this.motionHandler)}return}case"motion.stop":this.motionHandler&&(window.removeEventListener("devicemotion",this.motionHandler),this.motionHandler=null);return;case"contacts.pick":{if(!((Z=navigator.contacts)==null?void 0:Z.select))throw new St("UNSUPPORTED","Contact Picker API unavailable");const O=await navigator.contacts.select(["name","tel","email"]).catch(p=>{throw new St("DENIED",p.message)}),k=O==null?void 0:O[0];return k?{picked:!0,name:(G=k.name)==null?void 0:G[0],phones:k.tel,emails:k.email}:{picked:!1}}case"calendar.createEvent":throw new St("UNSUPPORTED","No calendar access on web");case"photos.pick":return this.pickImageFile(!1,!!r.dataUrl,r.maxSize);case"camera.capture":return this.pickImageFile(!0,!!r.dataUrl,r.maxSize);case"media.configureAudio":return;case"network.status":{const j=navigator.connection;return{online:navigator.onLine,type:(j==null?void 0:j.type)??(navigator.onLine?"unknown":"none")}}case"app.openUrl":case"browser.open":{if(!window.open(String(r.url??""),"_blank","noopener"))throw new St("DENIED","Popup blocked");return}case"app.openSettings":throw new St("UNSUPPORTED","No app settings page on web");case"billing.products":case"billing.purchase":case"billing.restore":case"billing.entitlements":case"billing.manageSubscriptions":throw new St("UNSUPPORTED","No in-app purchases on web — use a web checkout");case"push.requestPermission":case"push.register":case"push.unregister":throw new St("UNSUPPORTED","No native remote push on web — use Web Push (VAPID) in your app, or run inside the appwrap shell");default:throw new St("UNSUPPORTED",`Unknown method: ${i}`)}}on(i,o){if(i==="network.change"){const f=()=>o({online:navigator.onLine,type:navigator.onLine?"unknown":"none"});return window.addEventListener("online",f),window.addEventListener("offline",f),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",f)}}if(i==="screen.orientation.change"){const f=screen==null?void 0:screen.orientation;if(!f)return()=>{};const d=()=>o(String(f.type??"").startsWith("landscape")?"landscape":"portrait");return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}if(i==="app.pause"||i==="app.resume"){const f=()=>{const d=document.visibilityState==="hidden";i==="app.pause"===d&&o(void 0)};return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)}let r=this.listeners.get(i);return r||(r=new Set,this.listeners.set(i,r)),r.add(o),()=>r.delete(o)}emit(i,o){var r;(r=this.listeners.get(i))==null||r.forEach(f=>f(o))}pickImageFile(i,o=!1,r=1024){return new Promise(f=>{const d=document.createElement("input");d.type="file",d.accept="image/*",i&&d.setAttribute("capture","environment"),d.onchange=()=>{var y;const g=(y=d.files)==null?void 0:y[0];if(!g)return f({picked:!1});const b=new Image;b.onload=()=>{var T;const m={picked:!0,width:b.naturalWidth,height:b.naturalHeight};if(o){const A=Math.min(1,r/Math.max(b.naturalWidth,b.naturalHeight)),N=document.createElement("canvas");N.width=Math.round(b.naturalWidth*A),N.height=Math.round(b.naturalHeight*A),(T=N.getContext("2d"))==null||T.drawImage(b,0,0,N.width,N.height),m.dataUrl=N.toDataURL("image/jpeg",.85)}URL.revokeObjectURL(b.src),f(m)},b.onerror=()=>f({picked:!0}),b.src=URL.createObjectURL(g)},d.oncancel=()=>f({picked:!1}),d.click()})}showActionSheet(i,o,r){return new Promise(f=>{const d=document.createElement("div");d.style.cssText="position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:99999;display:flex;align-items:flex-end";const g=document.createElement("div");g.style.cssText="width:100%;background:#1c1c22;color:#fff;border-radius:16px 16px 0 0;padding:12px;font:15px system-ui;display:flex;flex-direction:column;gap:6px";const b=m=>{d.remove(),f(m)};if(i){const m=document.createElement("div");m.textContent=i,m.style.cssText="text-align:center;opacity:.6;font-size:13px;padding:4px",g.appendChild(m)}const y=(m,T)=>{const A=document.createElement("button");A.textContent=m,A.style.cssText="background:#2a2a32;color:inherit;border:0;border-radius:10px;padding:12px;font:inherit;cursor:pointer",A.onclick=T,g.appendChild(A)};o.forEach((m,T)=>y(m,()=>b(T))),y(r,()=>b(null)),d.onclick=m=>{m.target===d&&b(null)},d.appendChild(g),document.body.appendChild(d)})}readSafeArea(){const i=document.createElement("div");i.style.cssText="position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)",document.body.appendChild(i);const o=getComputedStyle(i),r={top:parseFloat(o.paddingTop)||0,right:parseFloat(o.paddingRight)||0,bottom:parseFloat(o.paddingBottom)||0,left:parseFloat(o.paddingLeft)||0};return i.remove(),r}showToast(i,o){var f;(f=this.toastEl)==null||f.remove();const r=document.createElement("div");r.textContent=i,r.style.cssText="position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:rgba(20,20,24,.92);color:#fff;padding:10px 18px;border-radius:20px;font:14px/1.3 system-ui;z-index:99999;max-width:80vw;text-align:center;box-shadow:0 4px 16px rgba(0,0,0,.25)",document.body.appendChild(r),this.toastEl=r,setTimeout(()=>{r.remove(),this.toastEl===r&&(this.toastEl=null)},o)}}class gb{constructor(i){this.kit=i}get capability(){return this.kit.capability("app")}openUrl(i){return this.kit.invoke("app.openUrl",{url:i})}openSettings(){return this.kit.invoke("app.openSettings")}}class yb{constructor(i){this.readNative=i}async validate(i){return[{productId:i.productId,active:!0,purchasedAt:Date.now()}]}entitlements(){return this.readNative()}}class vb{constructor(i){this.kit=i,this.validator=new yb(()=>this.nativeEntitlements())}get capability(){return this.kit.is.native?this.kit.capability("billing"):this.webProvider?"web":"none"}configure(i){i.validator&&(this.validator=i.validator),i.webProvider&&(this.webProvider=i.webProvider)}webProviderOrThrow(){if(!this.webProvider)throw new St("UNSUPPORTED","No web billing provider configured. On the web, wire one: kit.billing.configure({ webProvider: new HttpBillingProvider({ baseUrl: '/api/billing' }) })");return this.webProvider}async products(i){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().products(i):this.kit.invoke("billing.products",{ids:i})}async purchase(i){if(await this.kit.ready(),this.kit.is.web){const r=await this.webProviderOrThrow().purchase(i);return{receipt:{platform:"web",productId:i,raw:null},entitlements:r}}const o=await this.kit.invoke("billing.purchase",{productId:i},{timeoutMs:12e4});return{receipt:o,entitlements:await this.validator.validate(o)}}async restore(){if(await this.kit.ready(),this.kit.is.web){const r=this.webProviderOrThrow();return(r.restore??r.entitlements).call(r)}const i=await this.kit.invoke("billing.restore",void 0,{timeoutMs:6e4}),o=[];for(const r of i)o.push(...await this.validator.validate(r));return o}async entitlements(){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().entitlements():this.validator.entitlements()}async manageSubscriptions(){if(await this.kit.ready(),this.kit.is.web){const i=this.webProviderOrThrow();if(!i.manageSubscriptions)throw new St("UNSUPPORTED","This web billing provider has no subscription-management portal");return i.manageSubscriptions()}return this.kit.invoke("billing.manageSubscriptions")}onTransaction(i){return this.kit.on("billing.transaction",o=>i(o))}nativeEntitlements(){return this.kit.invoke("billing.entitlements")}}class bb{constructor(i){this.kit=i}get capability(){return this.kit.capability("biometrics")}available(){return this.kit.invoke("biometrics.available")}authenticate(i){return this.kit.invoke("biometrics.authenticate",{reason:i},{timeoutMs:6e4})}}class Sb{constructor(i){this.kit=i}get capability(){return this.kit.capability("browser")}open(i,o={}){return this.kit.invoke("browser.open",{url:i,...o})}}class wb{constructor(i){this.kit=i}get capability(){return this.kit.capability("calendar")}createEvent(i){return this.kit.invoke("calendar.createEvent",i,{timeoutMs:12e4})}}class Eb{constructor(i){this.kit=i}get capability(){return this.kit.capability("clipboard")}copy(i){return this.kit.invoke("clipboard.copy",{text:i})}read(){return this.kit.invoke("clipboard.read")}}class xb{constructor(i){this.kit=i}get capability(){return this.kit.capability("contacts")}pick(){return this.kit.invoke("contacts.pick",void 0,{timeoutMs:12e4})}}class Ab{constructor(i){this.kit=i}get capability(){return this.kit.capability("device")}info(){return this.kit.invoke("device.info")}}class _b{constructor(i){this.kit=i}get capability(){return this.kit.capability("geo")}current(){return this.kit.invoke("geo.current",void 0,{timeoutMs:6e4})}async watch(i){const o=this.kit.on("geo.position",f=>i(f));try{await this.kit.invoke("geo.watch.start",void 0,{timeoutMs:6e4})}catch(f){throw o(),f}let r=!1;return()=>{r||(r=!0,o(),this.kit.invoke("geo.watch.stop").catch(f=>console.warn("[native-kit] geo.watch.stop failed",f)))}}}class Tb{constructor(i){this.kit=i}get capability(){return this.kit.capability("haptics")}impact(i="medium"){return this.kit.invoke("haptics.impact",{style:i})}notify(i){return this.kit.invoke("haptics.notify",{type:i})}}class Mb{constructor(i){this.kit=i}onPause(i){return this.kit.on("app.pause",()=>i())}onResume(i){return this.kit.on("app.resume",()=>i())}onDeepLink(i){return this.kit.on("deeplink.open",o=>i(o.url))}}class Db{constructor(i){this.kit=i}get capability(){return this.kit.capability("media")}get available(){var i;return typeof navigator<"u"&&!!((i=navigator.mediaDevices)!=null&&i.getUserMedia)}ensurePermission(i){return this.capability!=="native"?Promise.resolve({}):this.kit.invoke("media.ensurePermission",i)}async getUserMedia(i){if(!this.available)throw Object.assign(new Error("getUserMedia unavailable (insecure context?)"),{code:"UNSUPPORTED"});return await this.ensurePermission({audio:!!i.audio,video:!!i.video}).catch(()=>{}),navigator.mediaDevices.getUserMedia(i)}async devices(){var o;return(o=navigator.mediaDevices)!=null&&o.enumerateDevices?(await navigator.mediaDevices.enumerateDevices()).map(r=>({kind:r.kind,label:r.label,deviceId:r.deviceId})):[]}configureAudio(i="playback"){return this.capability!=="native"?Promise.resolve():this.kit.invoke("media.configureAudio",{mode:i})}stop(i){i==null||i.getTracks().forEach(o=>o.stop())}}class Rb{constructor(i){this.kit=i}get capability(){return this.kit.capability("motion")}async watch(i){const o=this.kit.on("motion.data",f=>i(f));try{await this.kit.invoke("motion.start")}catch(f){throw o(),f}let r=!1;return()=>{r||(r=!0,o(),this.kit.invoke("motion.stop").catch(f=>console.warn("[native-kit] motion.stop failed",f)))}}}class Cb{constructor(i){this.kit=i}get capability(){return this.kit.capability("network")}status(){return this.kit.invoke("network.status")}onChange(i){return this.kit.on("network.change",o=>i(o))}}class zb{constructor(i){this.kit=i}get capability(){return this.kit.capability("notifications")}requestPermission(){return this.kit.invoke("notifications.requestPermission",void 0,{timeoutMs:6e4})}schedule(i){return this.kit.invoke("notifications.schedule",i)}pending(){return this.kit.invoke("notifications.pending")}setBadge(i){return this.kit.invoke("notifications.setBadge",{count:i})}clear(){return this.kit.invoke("notifications.clear")}}class Ob{constructor(i){this.kit=i}get capability(){return this.kit.capability("photos")}get cameraCapability(){return this.kit.capability("camera")}pick(i){return this.kit.invoke("photos.pick",i,{timeoutMs:12e4})}capture(i){return this.kit.invoke("camera.capture",i,{timeoutMs:12e4})}}class Nb{constructor(i){this.kit=i}get capability(){return this.kit.is.native?this.kit.capability("push"):"none"}requestPermission(){return this.kit.invoke("push.requestPermission",void 0,{timeoutMs:6e4})}register(){return this.kit.invoke("push.register",void 0,{timeoutMs:3e4})}unregister(){return this.kit.invoke("push.unregister")}onMessage(i){return this.kit.on("push.message",o=>i(o))}onTap(i){return this.kit.on("push.tap",o=>i(o))}}class kb{constructor(i){this.kit=i}get capability(){return this.kit.capability("reviews")}requestReview(){return this.kit.invoke("reviews.requestReview")}}class Ub{constructor(i){this.orientation=new jb(i)}}class jb{constructor(i){this.kit=i}get capability(){return this.kit.capability("orientation")}lock(i){return this.kit.invoke("screen.orientation.lock",{orientation:i})}unlock(){return this.kit.invoke("screen.orientation.unlock")}current(){return this.kit.invoke("screen.orientation.current")}onChange(i){return this.kit.on("screen.orientation.change",o=>i(o))}}class Lb{constructor(i){this.kit=i}get capability(){return this.kit.capability("share")}get filesCapability(){return this.kit.capability("shareFiles")}share(i){return this.kit.invoke("share.share",i)}files(i,o){return this.kit.invoke("share.files",{files:i,...o})}}class Bb{constructor(i){this.kit=i}get capability(){return this.kit.capability("secureStorage")}get(i){return this.kit.invoke("storage.secure.get",{key:i})}set(i,o){return this.kit.invoke("storage.secure.set",{key:i,value:o})}remove(i){return this.kit.invoke("storage.secure.remove",{key:i})}}class Hb{constructor(i){this.kit=i,this.secure=new Bb(i)}get capability(){return this.kit.capability("storage")}get(i){return this.kit.invoke("storage.get",{key:i})}set(i,o){return this.kit.invoke("storage.set",{key:i,value:o})}remove(i){return this.kit.invoke("storage.remove",{key:i})}clear(){return this.kit.invoke("storage.clear")}}class qb{constructor(i){this.kit=i}get capability(){return this.kit.capability("toast")}show(i,o="short"){return this.kit.invoke("toast.show",{message:i,duration:o})}}function Yb(u){const i=u.trim().replace("#",""),o=i.length===3?i.split("").map(g=>g+g).join(""):i;if(o.length<6)return!1;const r=parseInt(o.slice(0,2),16),f=parseInt(o.slice(2,4),16),d=parseInt(o.slice(4,6),16);return(.299*r+.587*f+.114*d)/255>.6}class Vb{constructor(i){this.kit=i}get statusBarCapability(){return this.kit.capability("statusBar")}get screenCapability(){return this.kit.capability("screen")}get dialogsCapability(){return this.kit.capability("dialogs")}get themeColorCapability(){return this.kit.capability("themeColor")}setStatusBarStyle(i){return this.kit.invoke("ui.statusBar.setStyle",{style:i})}safeArea(){return this.kit.invoke("ui.safeArea")}getBrightness(){return this.kit.invoke("ui.brightness.get")}setBrightness(i){return this.kit.invoke("ui.brightness.set",{level:i})}keepAwake(i){return this.kit.invoke("ui.keepAwake",{on:i})}alert(i){return this.kit.invoke("ui.alert",i,{timeoutMs:12e4})}confirm(i){return this.kit.invoke("ui.confirm",i,{timeoutMs:12e4})}action(i){return this.kit.invoke("ui.action",i,{timeoutMs:12e4})}setBackgroundColor(i){return this.kit.invoke("ui.setBackgroundColor",{color:i})}syncThemeColor(){if(this.themeColorCapability!=="native")return()=>{};const i=()=>{const r=document.querySelector('meta[name="theme-color"]');r!=null&&r.content&&(this.setBackgroundColor(r.content).catch(f=>console.warn("[native-kit] setBackgroundColor failed",f)),this.setStatusBarStyle(Yb(r.content)?"dark":"light").catch(()=>{}))};i();const o=new MutationObserver(i);return o.observe(document.head,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["content"]}),()=>o.disconnect()}}class Gb{constructor(){this.adapters=[new db,new pb],this.handshakeTimeoutMs=3e3}}class Xb{constructor(i){this.haptics=new Tb(this),this.share=new Lb(this),this.screen=new Ub(this),this.storage=new Hb(this),this.toast=new qb(this),this.ui=new Vb(this),this.device=new Ab(this),this.clipboard=new Eb(this),this.notifications=new zb(this),this.push=new Nb(this),this.biometrics=new bb(this),this.geo=new _b(this),this.photos=new Ob(this),this.network=new Cb(this),this.lifecycle=new Mb(this),this.reviews=new kb(this),this.motion=new Rb(this),this.media=new Db(this),this.contacts=new xb(this),this.calendar=new wb(this),this.app=new gb(this),this.browser=new Sb(this),this.billing=new vb(this),this.handshakeInfo=null,this.adapter=null,this.readyPromise=null,this.options={...new Gb,...i}}ready(){return this.readyPromise||(this.readyPromise=(async()=>{const i=this.options.adapters.find(r=>r.detect());if(!i)throw new St("NOT_READY","No adapter detected this environment");this.adapter=i;const o=await i.handshake(this.options.handshakeTimeoutMs);if(o.protocol!==gm)throw new St("UNSUPPORTED",`Shell protocol v${o.protocol} ≠ kit protocol v${gm} — the native wrapper is out of date. Re-run \`appwrap init\` to regenerate it.`);return this.handshakeInfo=o,this.handshakeInfo})()),this.readyPromise}get is(){var i,o;return{native:((i=this.adapter)==null?void 0:i.kind)==="appwrap",web:((o=this.adapter)==null?void 0:o.kind)==="web"}}get platform(){var i;return((i=this.handshakeInfo)==null?void 0:i.platform)??"web"}capability(i){var o;return((o=this.handshakeInfo)==null?void 0:o.capabilities[i])??"none"}async invoke(i,o,r){return this.adapter||await this.ready(),this.adapter.invoke(i,o,r)}on(i,o){if(!this.adapter){let r=null,f=!1;return this.ready().then(()=>{f||(r=this.adapter.on(i,o))}).catch(()=>{}),()=>{f=!0,r==null||r()}}return this.adapter.on(i,o)}}const t0=new Xb,Qb=hl.forComponent("DeepLinks");function Zb(u){try{const i=new URL(u);return i.protocol==="http:"||i.protocol==="https:"?`${i.pathname}${i.search}${i.hash}`||"/":`${i.hostname?`/${i.hostname}`:""}${i.pathname}${i.search}${i.hash}`||"/"}catch{return null}}function Kb(){const u=An();E.useEffect(()=>t0.lifecycle.onDeepLink(o=>{const r=Zb(o);Qb.info("deep link",o,"→",r),r&&u(r)}),[u])}function e0(u){return u!=null&&u.topic?"topic":u!=null&&u.convId?"conversation":"info"}function Jb(u){switch(e0(u)){case"topic":return`/t/${encodeURIComponent(String(u.topic))}`;case"conversation":return`/chat/${String(u.convId)}`;default:return"/notifications"}}function jS(u){return e0(u)!=="info"}const Yo=hl.forComponent("NativePushTap");let Bu=null,Vu=null;function $b(u){if(Vu){Vu(u);return}Yo.debug("tap arrived before the router was ready — buffering",u),Bu=u}function Pb(u){const i=(u==null?void 0:u.data)??{};return typeof i.route=="string"&&i.route.startsWith("/")?i.route:Jb({convId:typeof i.convId=="string"?i.convId:null,topic:typeof i.topic=="string"?i.topic:null})}t0.push.onTap(u=>{const i=Pb(u);Yo.info("native push tap",{data:u==null?void 0:u.data,route:i}),$b(i)});function Wb(){const u=An();E.useEffect(()=>{if(Vu=i=>u(i),Bu){const i=Bu;Bu=null,Yo.info("draining buffered native push tap",i),u(i)}return()=>{Vu=null}},[u])}/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a0=(...u)=>u.filter((i,o,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===o).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fb=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ib=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,o,r)=>r?r.toUpperCase():o.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ym=u=>{const i=Ib(u);return i.charAt(0).toUpperCase()+i.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var t1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e1=u=>{for(const i in u)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a1=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:f="",children:d,iconNode:g,...b},y)=>E.createElement("svg",{ref:y,...t1,width:i,height:i,stroke:u,strokeWidth:r?Number(o)*24/Number(i):o,className:a0("lucide",f),...!d&&!e1(b)&&{"aria-hidden":"true"},...b},[...g.map(([m,T])=>E.createElement(m,T)),...Array.isArray(d)?d:[d]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const za=(u,i)=>{const o=E.forwardRef(({className:r,...f},d)=>E.createElement(a1,{ref:d,iconNode:i,className:a0(`lucide-${Fb(ym(u))}`,`lucide-${u}`,r),...f}));return o.displayName=ym(u),o};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],vm=za("bell",n1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l1=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],i1=za("brain",l1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],s1=za("chevron-down",u1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],o1=za("download",r1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c1=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],f1=za("mail",c1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],h1=za("refresh-cw",d1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],p1=za("shield",m1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g1=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],y1=za("smartphone",g1);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],n0=za("x",v1),Me=hl.forComponent("PWA");function yo(u){if(Pm()){Me.debug("Baked native bundle — skipping deploy watch (reload cannot pull a newer build)");return}let i="0.81.22";We.on("_meta/buildId",o=>{const r=o.val(),f=r==null?void 0:r.version;!f||f===i||(Me.info("Deploy detected:",i,"→",f,r==null?void 0:r.sha),i=f,window.dispatchEvent(new Event("sw-update-available")),u&&u.update().catch(()=>{}))})}async function b1(){if(!("serviceWorker"in navigator))return yo(null),null;try{const u=await navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"});yo(u),u.addEventListener("updatefound",()=>{const r=u.installing;r&&r.addEventListener("statechange",()=>{r.state==="installed"&&navigator.serviceWorker.controller&&(Me.info("New version available"),window.dispatchEvent(new Event("sw-update-available")))})});const i=!!navigator.serviceWorker.controller;let o=!1;return navigator.serviceWorker.addEventListener("controllerchange",()=>{o||!i||(o=!0,window.location.reload())}),u}catch(u){return Me.error("Registration failed:",u),yo(null),null}}function _o(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function l0(){return"BJbImCE9AHcqUcia8T2874gKINQDB4aPyNZgAg0fEuS5GrAgCOIuYeGbLGI5aBhPKmuG64SHDW-XtBJXE7B2-Xw"}const bm="push-device-id";let Uu=null;function Ku(){if(Uu)return Uu;try{const i=localStorage.getItem(bm);if(i)return Uu=i}catch(i){Me.warn("device id read failed, using a session-only id",i)}const u=`dev_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}`;Uu=u;try{localStorage.setItem(bm,u)}catch(i){Me.warn("device id persist failed",i)}return u}async function S1(){return"Notification"in window?Notification.permission==="granted"?"granted":Notification.requestPermission():"denied"}async function i0(u,i){Me.debug("subscribeToPush called, key:",(u==null?void 0:u.slice(0,20))+"...");const o=await navigator.serviceWorker.ready;if(!o.pushManager)return Me.error("No pushManager on registration"),null;try{let r=await o.pushManager.getSubscription();if(Me.debug("existing subscription:",r?"yes":"none"),r&&(i!=null&&i.force)&&(await r.unsubscribe().catch(f=>(Me.warn("unsubscribe before resubscribe failed",f),!1)),r=null),!r){Me.debug("creating new subscription...");const f=w1(u);Me.debug("appServerKey length:",f.length),r=await o.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:f}),Me.debug("subscribed! endpoint:",r.endpoint.slice(0,60))}return{endpoint:r.endpoint,keys:{p256dh:Sm(r.getKey("p256dh")),auth:Sm(r.getKey("auth"))}}}catch(r){return Me.error("Push subscription failed:",r),null}}function w1(u){const i="=".repeat((4-u.length%4)%4),o=(u+i).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(o),f=new Uint8Array(r.length);for(let d=0;d<r.length;++d)f[d]=r.charCodeAt(d);return f}function Sm(u){const i=new Uint8Array(u);let o="";for(let r=0;r<i.byteLength;r++)o+=String.fromCharCode(i[r]);return window.btoa(o)}function E1(){const{user:u}=_n(),[i,o]=E.useState(null),[r,f]=E.useState(!1);E.useEffect(()=>{if(!u||_o()||localStorage.getItem("pwa-install-dismissed")==="true"||!localStorage.getItem("para-has-returned"))return;const m=N=>{N.preventDefault(),o(N),f(!0)};window.addEventListener("beforeinstallprompt",m);const T=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);let A;return T&&(A=setTimeout(()=>f(!0),5e3)),()=>{window.removeEventListener("beforeinstallprompt",m),clearTimeout(A)}},[u]);const d=async()=>{if(i)try{await i.prompt();const{outcome:m}=await i.userChoice;m==="accepted"&&f(!1),o(null)}catch{}},g=()=>{f(!1),localStorage.setItem("pwa-install-dismissed","true")};if(!u||!r||_o())return null;const b=/iPhone|iPad|iPod/i.test(navigator.userAgent),y=/Android/i.test(navigator.userAgent);return w.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[w.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(n0,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(y1,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:"Install Para"}),i?w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"text-micro text-muted",children:"Add Para to your home screen for quick access."}),w.jsxs("button",{onClick:d,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors",children:[w.jsx(o1,{className:"w-4 h-4"}),"Install App"]})]}):b?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on iOS:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the Share button"}),w.jsx("li",{children:'Tap "Add to Home Screen"'}),w.jsx("li",{children:'Tap "Add"'})]})]}):y?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on Android:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the menu button (⋮)"}),w.jsx("li",{children:'Tap "Install app"'})]})]}):w.jsx("p",{className:"text-micro text-muted",children:"Visit on your mobile device to install."})]})]})]})}const x1=u=>`users/${u}/pushSubscriptions`,Vo=(u,i)=>`${x1(u)}/${i}`,A1=u=>`users/${u}/pushSubscription`;function _1(u){return!!u&&(u.type===void 0||u.type==="webpush")}function Hu(u){if(!_1(u))return!1;const i=o=>typeof o=="string"&&o.length>0;return i(u.endpoint)&&!!u.keys&&i(u.keys.p256dh)&&i(u.keys.auth)}function T1(u){return!!u&&u.type==="apns"}function LS(u){return T1(u)?typeof u.token=="string"&&u.token.length>=64&&/^[0-9a-f]+$/i.test(u.token):!1}function BS(u,i){return{type:"apns",token:u.token.toLowerCase(),...u.topic?{bundleId:u.topic}:{},updatedAt:Date.now(),...i!=null&&i.ua?{ua:i.ua}:{}}}function u0(u,i){return{type:"webpush",endpoint:u.endpoint,keys:{p256dh:u.keys.p256dh,auth:u.keys.auth},updatedAt:Date.now(),...i!=null&&i.ua?{ua:i.ua}:{}}}const Be=hl.forComponent("PushSync"),M1=3600*1e3,vo=u=>`push-sync-last-repair:${u}`,fi=u=>`push-sync-had-record:${u}:${Ku()}`;function aa(u,i){try{if(u==="get")return localStorage.getItem(i);u==="set"?localStorage.setItem(i,"1"):localStorage.removeItem(i)}catch(o){Be.warn(`localStorage ${u} failed for ${i}`,o)}return null}const D1="push-prompt-dismissed",Gu=u=>`push-prompt-rearmed:${u}`;function s0(u){aa("del",D1),aa("del",Gu(u))}function R1(u){return aa("get",Gu(u))!==null?!1:(s0(u),aa("set",Gu(u)),Be.info("push is gone on both sides — re-arming the enable card once"),!0)}function r0(u){return aa("get",fi(u))!==null}function wm(u){aa("del",Gu(u))}async function C1(u,i){const o=await To(u,Vo(i,Ku()));return o===void 0?null:Hu(o)}const Em=new Set;async function o0(u,i,o){const r=typeof navigator<"u"?navigator.userAgent.slice(0,120):void 0;await u.set(Vo(i,Ku()),u0(o,{ua:r})),aa("set",fi(i))}async function To(u,i){try{return(await u.client.getSnapshot(i)).val()??null}catch(o){Be.warn("could not read stored subscription",o);return}}function HS(u,i){E.useEffect(()=>{!i||Em.has(i)||!("Notification"in window)||!("PushManager"in window)||!("serviceWorker"in navigator)||Notification.permission==="granted"&&(Em.add(i),z1(u,i).catch(o=>Be.error("push sync failed",o)))},[i])}async function z1(u,i){var A,N;const r=(N=await((A=(await navigator.serviceWorker.ready).pushManager)==null?void 0:A.getSubscription()))==null?void 0:N.endpoint,f=Vo(i,Ku()),d=await To(u,f);if(d===void 0)return;if(d===null){const Q=await To(u,A1(i));if(Q===void 0)return;if(r&&Hu(Q)&&Q.endpoint===r){await u.set(f,u0(Q,{ua:navigator.userAgent.slice(0,120)})).then(()=>{aa("set",fi(i)),Be.info("migrated legacy push subscription to a device record")}).catch(Z=>Be.error("legacy push subscription migration failed",Z));return}}if(Hu(d)&&d.endpoint===r){aa("set",fi(i)),Be.debug("in sync, no write");return}if(!r&&d===null){Be.debug("no subscription on either side — nothing to reconcile");return}const g=Number(localStorage.getItem(vo(i))??0);if(Date.now()-g<M1){Be.warn("subscription drift, but a repair was attempted recently — skipping");return}localStorage.setItem(vo(i),String(Date.now()));const b=l0(),y=r0(i),m=d===null&&!!r&&y;Be.info("push subscription drift — reconciling",{browser:r?"present":"none",server:d===null?"missing":Hu(d)?"stale":"malformed",hadRecord:y,remint:m});const T=await i0(b,{force:m});if(!T){m&&(aa("del",fi(i)),aa("del",vo(i)),s0(i)),Be.warn("resubscribe failed — left without a push subscription",{remint:m});return}await o0(u,i,T).then(()=>Be.info("push subscription repaired")).catch(Q=>Be.error("failed to store repaired subscription",Q))}const Ra=hl.forComponent("PushPrompt");function O1(){const{user:u}=_n(),[i,o]=E.useState(!1),[r,f]=E.useState("pitch"),[d,g]=E.useState(!1);E.useEffect(()=>{if(!u||!("Notification"in window)||!("PushManager"in window)||!("serviceWorker"in navigator)||Notification.permission==="denied")return;const m=_o(),T=localStorage.getItem("push-prompt-dismissed")==="true";if(Notification.permission==="granted"){navigator.serviceWorker.ready.then(async N=>{if(await N.pushManager.getSubscription()){wm(u.id);return}const G=await C1(We,u.id)===!1,j=G&&r0(u.id);if(!(!m&&!j)){if(f(j?"recovery":"pitch"),!T){o(!0);return}G&&R1(u.id)&&o(!0)}}).catch(N=>Ra.warn("could not check push state",N));return}if(T||!m)return;const A=setTimeout(()=>o(!0),3e3);return()=>clearTimeout(A)},[u]);const b=async()=>{if(u){g(!0);try{Ra.debug("requesting permission...");const m=await S1();if(Ra.debug("permission:",m),m!=="granted"){o(!1),localStorage.setItem("push-prompt-dismissed","true");return}const T=l0();Ra.debug("VAPID key:",T?T.slice(0,20)+"...":"NOT SET"),Ra.debug("subscribing to push...");const A=await i0(T);if(Ra.debug("subscription:",A?"ok":"null"),!A)return;Ra.debug("saving subscription to DB..."),await o0(We,u.id,A),wm(u.id),Ra.debug("done!"),o(!1)}catch(m){Ra.error("failed:",m)}finally{g(!1)}}},y=()=>{o(!1),localStorage.setItem("push-prompt-dismissed","true")};return i?w.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[w.jsx("button",{onClick:y,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(n0,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(vm,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:r==="recovery"?"Notifications stopped working":"Enable Notifications"}),w.jsx("p",{className:"text-micro text-muted",children:r==="recovery"?"This device lost its connection to Para, so notifications are not arriving. Turn them back on to fix it.":"Get notified when Para replies, even when the app is in the background."}),w.jsxs("button",{onClick:b,disabled:d,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors disabled:opacity-50",children:[w.jsx(vm,{className:"w-4 h-4"}),d?r==="recovery"?"Reconnecting...":"Enabling...":r==="recovery"?"Turn notifications back on":"Enable Notifications"]})]})]})]}):null}function N1(){const[u,i]=E.useState(!1);return E.useEffect(()=>{var r;const o=()=>i(!0);return window.addEventListener("sw-update-available",o),(r=navigator.serviceWorker)==null||r.getRegistration().then(f=>{f!=null&&f.waiting&&o()}),()=>window.removeEventListener("sw-update-available",o)},[]),u?w.jsx("div",{className:"fixed top-4 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx(h1,{className:"w-5 h-5 text-accent shrink-0"}),w.jsx("p",{className:"text-micro flex-1",children:"A new version is available."}),w.jsx("button",{onClick:async()=>{var r;const o=await((r=navigator.serviceWorker)==null?void 0:r.getRegistration());o!=null&&o.waiting?o.waiting.postMessage({type:"SKIP_WAITING"}):window.location.reload()},className:"px-3 py-1.5 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors shrink-0",children:"Reload"})]})}):null}const xm=[{id:"A",headline:"Give out an email that fights back",subtitle:"Agent proxy email for busy founders"},{id:"B",headline:"Your inbox has a bouncer now",subtitle:"An AI that screens, qualifies, and replies for you"},{id:"C",headline:"Cold outreach is AI now. Your reply should be too.",subtitle:"Put an AI between you and your inbox"},{id:"D",headline:"Your AI finally has an email address",subtitle:"you@para.li — people email it, your Para handles the rest"},{id:"E",headline:"Never give out your real email again",subtitle:"you@para.li screens strangers so your inbox stays clean"}],k1=["para","paraai","parali","para_ai","para_li","bod","bodee","bodify","system","official","verified","staff","team","moderator","mod","assistant","bot","ai","me","you","self","everyone","everybody","anyone","someone","nobody","anon","anonymous","guest","user"],U1=["_domainkey","about","aboutus","abuse","access","account","accounts","activate","activities","activity","add","address","adm","admin","administration","administrator","ads","adstxt","adult","advertise","advertising","aes128ctr","aes128gcm","aes192ctr","aes256ctr","aes256gcm","affiliate","affiliates","ajax","alert","alerts","all","alpha","amp","analysis","analytics","android","anon","anonymous","api","app","appadstxt","apps","archive","archives","article","asc","asct","asset","assets","atom","auth","authentication","authorize","autoconfig","autodiscover","avatar","backup","balancermanager","banner","banners","bbs","beta","billing","billings","bin","blog","blogs","board","book","bookmark","bookmarks","bot","bots","broadcasthost","bug","business","buy","cache","cadastro","calendar","call","campaign","cancel","captcha","career","careers","cart","cas","categories","category","cdn","cgi","cgibin","chacha20poly1305","change","changelog","channel","channels","chart","chat","check","checking","checkout","clear","client","cliente","clients","close","cloud","cms","code","codereview","com","comercial","comment","comments","communities","community","company","compare","compose","compras","config","configuration","connect","contact","contact_us","contactus","contest","contribute","cookies","copy","copyright","corp","count","cpanel","create","crossdomainxml","css","curve25519sha256","customer","customers","customize","dashboard","data","deals","debug","default","delete","demo","desc","design","designer","destroy","dev","devel","developer","developers","diagram","diary","dict","dictionary","die","dir","direct_messages","directory","disconnect","discuss","dist","dns","dns0","dns1","dns2","dns3","dns4","doc","docs","documentation","domain","download","downloads","downvote","draft","drop","ecdhsha2nistp256","ecdhsha2nistp384","ecdhsha2nistp521","ecommerce","edit","editor","edu","education","email","employment","empty","end","enterprise","entries","entry","error","errors","eval","event","events","everyone","example","exception","exit","explore","export","extensions","false","family","faq","faqs","faviconico","favorite","favorites","feature","features","feed","feedback","feeds","file","files","filter","first","flash","fleet","fleets","flog","follow","follower","followers","following","fonts","forgot","forgotpassword","form","forms","forum","forums","founder","free","friend","friends","ftp","gadget","gadgets","game","games","get","ghost","gift","gifts","gist","git","graph","graphql","group","groups","guest","guests","guidelines","guides","head","header","help","hide","hmacsha","hmacsha1","hmacsha1etm","hmacsha2256","hmacsha2256etm","hmacsha2512","hmacsha2512etm","home","homepage","host","hosting","hostmaster","hostname","howto","hpg","htaccess","html","htpasswd","http","httpd","https","humanstxt","iamges","icon","icons","idea","ideas","image","images","imap","img","import","index","indice","info","information","inquiry","insert","intranet","investors","invitations","invite","invites","invoice","ipad","iphone","irc","isatap","issue","issues","item","items","java","javascript","job","jobs","join","json","jump","keybasetxt","knowledgebase","language","languages","last","ldapstatus","learn","legal","license","licensing","like","limit","link","links","linux","list","lists","live","load","local","localdomain","localhost","lock","log","log_in","log_out","login","logout","logs","lostpassword","mac","mail","mail0","mail1","mail2","mail3","mail4","mail5","mail6","mail7","mail8","mail9","mailer","mailerdaemon","mailing","maintenance","manager","manual","map","maps","marketing","marketplace","master","media","member","members","message","messages","messenger","metrics","microblog","microblogs","mine","mis","mob","mobile","moderator","modify","more","movie","movies","mp3","msg","msn","music","musicas","mx1","mysql","name","named","nan","navi","navigation","net","network","new","news","newsletter","newsletters","next","nick","nickname","nil","nobody","noc","none","noreply","notes","noticias","notification","notifications","notify","ns0","ns1","ns10","ns2","ns3","ns4","ns5","ns6","ns7","ns8","ns9","null","oauth","oauth2","oauth_clients","offer","offers","official","old","online","openid","operator","order","orders","organization","organizations","overview","owa","owner","owners","page","pager","pages","panel","partners","passwd","password","pay","payment","payments","perl","phone","photo","photoalbum","photos","php","phpmyadmin","phppgadmin","phpredisadmin","pic","pics","ping","pixel","plan","plans","plugin","plugins","policies","policy","pop","pop3","popular","portal","portfolio","post","postfix","postmaster","posts","poweruser","preferences","premium","press","previous","price","pricing","print","privacy","privacy_policy","privacypolicy","private","prod","product","production","products","profile","profiles","project","projects","promo","pub","public","purchase","purpose","put","python","query","quota","random","ranking","read","readme","recent","recruit","recruitment","redirect","reduce","refund","refunds","register","registration","release","remove","replies","reply","report","reports","repositories","repository","req","request","requestpassword","requests","reset","resetpassword","response","return","returns","review","reviews","robotstxt","roc","root","rootuser","rsasha22","rsasha2512","rss","ruby","rule","rules","sag","sale","sales","sample","samples","save","school","script","scripts","sdk","search","secure","security","select","self","send","server","serverinfo","serverstatus","service","services","session","sessions","setting","settings","setup","share","shift","shop","show","sign_in","sign_up","signin","signout","signup","site","sitemap","sites","smartphone","smtp","soporte","sort","source","spec","special","sql","src","ssh","sshrsa","ssl","ssladmin","ssladministrator","sslwebmaster","staff","stage","staging","start","stat","state","static","statistics","stats","status","store","stores","stories","style","styleguide","styles","stylesheet","stylesheets","subdomain","subscribe","subscriptions","sudo","super","superuser","suporte","support","survey","svn","swf","sync","sys","sysadmin","sysadministrator","system","tablet","tablets","tag","tags","talk","task","tasks","team","teams","tech","telnet","term","terms","terms_of_service","termsofservice","termsofuse","test","test1","test2","test3","teste","testimonials","testing","tests","theme","themes","thread","threads","tmp","today","todo","tool","tools","top","topic","topics","tos","tour","training","translate","translations","trending","trends","trial","true","tutorial","tux","umac128","umac128etm","umac64","umac64etm","undef","undefined","unfollow","unlike","unsubscribe","update","upgrade","upload","uploads","url","usage","usenet","user","username","users","usuario","uucp","var","vendas","ver","verify","version","video","videos","view","visitor","void","vote","vpn","watch","weather","web","webhook","webhooks","webmail","webmaster","website","websites","welcome","wellknown","widget","widgets","wiki","win","windows","word","work","works","workshop","wpad","write","wws","www","www1","www2","www3","www4","www5","www6","www7","wwwdata","wwws","wwww","xfn","xml","xmpp","xpg","xxx","yaml","year","yml","you","yourdomain","yourname","yoursite","yourusername","zlib0"],j1=["google","apple","microsoft","amazon","meta","facebook","instagram","whatsapp","messenger","threads","tiktok","twitter","youtube","snapchat","pinterest","reddit","discord","slack","zoom","linkedin","github","gitlab","bitbucket","dropbox","notion","figma","adobe","atlassian","jira","confluence","salesforce","oracle","ibm","intel","nvidia","amd","cisco","samsung","sony","lg","huawei","xiaomi","netflix","spotify","hulu","disney","disneyplus","hbo","hbomax","primevideo","twitch","vimeo","openai","chatgpt","anthropic","claude","gemini","bard","copilot","perplexity","mistral","deepmind","xai","grok","midjourney","stability","runway","huggingface","paypal","venmo","cashapp","stripe","square","wise","revolut","robinhood","coinbase","binance","kraken","bitcoin","ethereum","solana","tether","usdc","metamask","ledger","visa","mastercard","amex","americanexpress","chase","citibank","bankofamerica","wellsfargo","goldmansachs","jpmorgan","ebay","etsy","walmart","target","costco","bestbuy","ikea","homedepot","shopify","alibaba","aliexpress","wish","temu","shein","nike","adidas","puma","reebok","underarmour","lululemon","zara","hm","uniqlo","gucci","prada","louisvuitton","chanel","hermes","rolex","cocacola","pepsi","nestle","starbucks","mcdonalds","burgerking","kfc","subway","dominos","pizzahut","chipotle","tacobell","wendys","dunkin","redbull","heineken","budweiser","guinness","uber","lyft","doordash","grubhub","instacart","airbnb","booking","expedia","tripadvisor","kayak","tesla","spacex","boeing","airbus","toyota","ford","gm","chevrolet","bmw","mercedes","mercedesbenz","audi","volkswagen","porsche","honda","hyundai","kia","nissan","volvo","ferrari","lamborghini","verizon","att","tmobile","sprint","comcast","xfinity","spectrum","vodafone","orange","telefonica","cnn","bbc","nytimes","washingtonpost","wsj","reuters","ap","bloomberg","forbes","fortune","economist","wired","techcrunch","verge","arstechnica","engadget","foxnews","msnbc","aljazeera","gov","whitehouse","congress","senate","fbi","cia","nsa","dod","irs","usps","nasa","noaa","cdc","nih","fda","epa","sec","doj","dhs","ice","tsa","un","nato","who","imf","worldbank","europa","harvard","mit","stanford","yale","princeton","oxford","cambridge","berkeley","cmu","caltech","stackoverflow","npm","pypi","dockerhub","cloudflare","akamai","fastly","digitalocean","linode","heroku","vercel","netlify","render","fly","supabase","firebase","aws","gcp","azure"],L1=["afghanistan","albania","algeria","americansamoa","andorra","angola","anguilla","antarctica","antiguaandbarbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","bosniaandherzegovina","botswana","bouvetisland","brazil","britishvirginislands","brunei","bulgaria","burkinafaso","burundi","cambodia","cameroon","canada","capeverde","caribbeannetherlands","caymanislands","chad","chile","china","christmasisland","cocoskeelingislands","colombia","comoros","cookislands","costarica","croatia","cuba","curaao","cyprus","czechia","czechrepublic","denmark","djibouti","dominica","dominicanrepublic","drcongo","ecuador","egypt","elsalvador","england","equatorialguinea","eritrea","estonia","eswatini","ethiopia","falklandislands","faroeislands","fiji","finland","france","frenchguiana","frenchpolynesia","gabon","gambia","georgia","germany","ghana","gibraltar","greatbritain","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guineabissau","guyana","haiti","holland","honduras","hongkong","hungary","iceland","india","indonesia","iran","iraq","ireland","isleofman","israel","italy","ivorycoast","jamaica","japan","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","landislands","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshallislands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","newcaledonia","newzealand","nicaragua","niger","nigeria","niue","norfolkisland","northernireland","northkorea","northmacedonia","norway","oman","pakistan","palau","palestine","panama","papuanewguinea","paraguay","peru","philippines","pitcairnislands","poland","portugal","puertorico","qatar","republicofthecongo","romania","runion","russia","rwanda","saintbarthlemy","saintkittsandnevis","saintlucia","saintmartin","samoa","sanmarino","saudiarabia","scotland","senegal","serbia","seychelles","sierraleone","singapore","sintmaarten","slovakia","slovenia","solomonislands","somalia","sotomandprncipe","southafrica","southgeorgia","southkorea","southsudan","spain","srilanka","sudan","suriname","svalbardandjanmayen","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timorleste","togo","tokelau","tonga","trinidadandtobago","tunisia","turkey","turkiye","turkmenistan","tuvalu","uganda","ukraine","unitedarabemirates","unitedkingdom","unitedstates","uruguay","uzbekistan","vanuatu","vaticancity","venezuela","vietnam","wales","wallisandfutuna","westernsahara","yemen","zambia","zimbabwe","usa","u_s_a","u_s","america","uk","u_k","britain","uae","u_a_e","ussr","eu","nato","asean","european_union","statesofamerica"],B1=["liv","livshitz","elya"],H1=new Set([...k1,...U1,...j1,...L1,...B1]);function q1(u){return u.toLowerCase().replace(/\./g,"")}function Y1(u){return H1.has(q1(u))}function V1({variant:u,ctaLabel:i="Claim your handle"}){const o=An(),[r,f]=E.useState(""),[d,g]=E.useState(""),[b,y]=E.useState("idle"),[m,T]=E.useState(""),[A,N]=E.useState(!1),Q=E.useRef(null),Z=E.useRef({handle:!1,email:!1}),G=E.useCallback(k=>{Z.current[k]||(Z.current[k]=!0,pt.event(`lp_${k}_focus`,{variant:u}))},[u]),j=k=>{const p=k.toLowerCase().replace(/[^a-z0-9_.]/g,"");f(p);const $=p.replace(/\./g,"");if(Q.current&&clearTimeout(Q.current),!$){y("idle");return}if(!/^[a-z0-9_]{3,20}$/.test($)){y("invalid");return}if(Y1($)){y("reserved");return}y("checking"),Q.current=setTimeout(async()=>{try{const tt=await We.get(`_handle_avail/${$}`)?"taken":"available";tt==="taken"&&pt.event("lp_handle_taken",{handle:$,variant:u}),y(tt)}catch{y("available")}},400)},O=async k=>{if(k.preventDefault(),!(b!=="available"||!d)){T(""),N(!0),pt.event("lp_claim_attempt",{handle:r,variant:u}),pt.metric("lp_claim_attempt",1,{variant:u});try{pt.leads.collect({email:d,name:r,source:`lp-${u}`,meta:{handle:r,variant:u}}).catch(()=>{});const p=r.replace(/\./g,""),$=`claim_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,6)}`;await We.set(`_handle_claims/${$}`,{handle:p,email:d,variant:u,ts:Date.now()}),o(`/claiming/${p}?claim=${$}`)}catch(p){pt.event("lp_claim_error",{handle:r,variant:u,error:p.message}),T(p.message??"Failed to claim handle")}finally{N(!1)}}};return w.jsxs("form",{onSubmit:O,className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center bg-bg border border-border rounded-lg overflow-hidden focus-within:border-accent",children:[w.jsx("input",{type:"text",placeholder:"yourname",value:r,onChange:k=>j(k.target.value),onFocus:()=>G("handle"),maxLength:20,autoFocus:!0,className:"flex-1 px-3 py-3 bg-transparent text-text text-body text-right focus:outline-none"}),w.jsx("span",{className:"pr-3 text-muted text-body",children:"@para.li"})]}),w.jsxs("div",{className:"h-5 mt-1 text-micro text-left pl-1",children:[b==="checking"&&w.jsx("span",{className:"text-muted",children:"Checking..."}),b==="available"&&w.jsxs("span",{className:"text-green-400",children:["@",r," is yours"]}),b==="taken"&&w.jsxs("span",{className:"text-danger",children:["@",r," is taken"]}),b==="reserved"&&w.jsxs("span",{className:"text-danger",children:["@",r," is reserved"]}),b==="invalid"&&r&&w.jsx("span",{className:"text-danger",children:"3-20 chars: letters, numbers, underscore"})]})]}),w.jsx("input",{type:"email",inputMode:"email",placeholder:"Your email",value:d,onChange:k=>g(k.target.value),onFocus:()=>G("email"),required:!0,autoComplete:"email",className:"w-full px-3 py-3 bg-bg border border-border rounded-lg text-text text-body focus:outline-none focus:border-accent"}),w.jsx("button",{type:"submit",disabled:b!=="available"||!d||A,className:"w-full py-3 bg-accent hover:bg-accent-hover text-bg font-semibold rounded-lg text-body transition-colors disabled:opacity-40",children:A?"Claiming...":i}),m&&w.jsx("p",{className:"text-danger text-micro text-center",children:m})]})}function G1(){const u=Im("lp-variant"),i=(u==null?void 0:u.toUpperCase())??"A",o=xm.find(r=>r.id===i)??xm[0];return E.useEffect(()=>{pt.event("lp_view",{variant:o.id}),pt.metric("lp_load_ms",performance.now(),{unit:"ms",variant:o.id})},[o.id]),w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"relative min-h-screen flex items-center justify-center px-4",children:[w.jsxs("div",{className:"relative z-10 text-center space-y-8 w-full max-w-md",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsx("h1",{className:"text-hero font-bold text-text tracking-tight text-balance",children:o.headline}),w.jsx("p",{className:"text-body text-muted",children:o.subtitle})]}),w.jsx(V1,{variant:o.id})]}),w.jsx(Bo,{to:"/chat-auth",onClick:()=>pt.event("lp_signin_click",{variant:o.id}),className:"absolute bottom-14 left-1/2 -translate-x-1/2 text-micro text-muted hover:text-text no-underline",children:"Already have an account? Sign in"}),w.jsx("button",{onClick:()=>{var r;pt.event("lp_scroll_how",{variant:o.id}),(r=document.getElementById("how-it-works"))==null||r.scrollIntoView({behavior:"smooth"})},className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-muted/50 hover:text-muted animate-bounce","aria-label":"Scroll down",children:w.jsx(s1,{size:20})}),!1]}),w.jsx("section",{id:"how-it-works",className:"relative py-24 px-4 bg-surface/80 backdrop-blur-sm border-t border-border",children:w.jsxs("div",{className:"max-w-3xl mx-auto",children:[w.jsx("p",{className:"text-micro font-medium text-accent text-center tracking-widest uppercase mb-3",children:"How it works"}),w.jsx("h2",{className:"text-title font-bold text-text text-center mb-16",children:"Three steps. No setup."}),w.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10 sm:gap-6",children:X1.map((r,f)=>w.jsxs("div",{className:"relative bg-bg rounded-xl border border-border p-6 text-center space-y-4",children:[w.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 w-7 h-7 rounded-full bg-accent text-bg text-micro font-bold flex items-center justify-center",children:f+1}),w.jsx("div",{className:"w-12 h-12 mx-auto rounded-lg bg-accent/10 flex items-center justify-center mt-2",children:w.jsx(r.icon,{size:24,className:"text-accent"})}),w.jsx("h3",{className:"text-body font-semibold text-text",children:r.title}),w.jsx("p",{className:"text-body text-text-secondary",children:r.desc})]},r.title))})]})})]})}const X1=[{icon:f1,title:"Claim your handle",desc:"Pick your @para.li email. It's yours — forever."},{icon:i1,title:"Your AI learns your style",desc:"Reply once and your Para picks up your tone, priorities, and boundaries."},{icon:p1,title:"It handles the rest",desc:"Para screens strangers, replies on your behalf, and only pings you when it matters."}],Q1=Rt(()=>Dt(()=>import("./Auth-BeWMw3rv.js"),__vite__mapDeps([0,1])).then(u=>({default:u.ChatAuthPage}))),Z1=Rt(()=>Dt(()=>import("./Onboard-Dskct_uT.js"),__vite__mapDeps([2,0,1,3,4,5])).then(u=>({default:u.OnboardPage}))),K1=Rt(()=>Dt(()=>import("./Creating-BnDI6ma7.js"),[]).then(u=>({default:u.CreatingPage}))),J1=Rt(()=>Dt(()=>import("./MainLayout--ahK6uhf.js"),__vite__mapDeps([6,7,8,9,10,11])).then(u=>({default:u.MainLayout}))),$1=Rt(()=>Dt(()=>import("./ChatList-NyeQ20oP.js"),__vite__mapDeps([12,7,9,13])).then(u=>({default:u.ChatList}))),P1=Rt(()=>Dt(()=>import("./EmailP2PChatView-CRdromJV.js"),__vite__mapDeps([14,15,7,16,17,18,1,19,20,21,22])).then(u=>({default:u.EmailP2PChatView}))),W1=Rt(()=>Dt(()=>import("./Discover-9x-q0pNa.js"),__vite__mapDeps([23,24,18,13,25,9,19])).then(u=>({default:u.DiscoverView}))),F1=Rt(()=>Dt(()=>import("./Inbox-DNsB1k_L.js"),__vite__mapDeps([26,16,17,10,27])).then(u=>({default:u.InboxListView}))),I1=Rt(()=>Dt(()=>import("./InboxDetail-BygefJqX.js"),__vite__mapDeps([28,16,17,1,27,5,29,19,22,20])).then(u=>({default:u.InboxDetailView}))),tS=Rt(()=>Dt(()=>import("./TopicDetail-D3_qrT9i.js"),__vite__mapDeps([30,24,15,4,25])).then(u=>({default:u.TopicDetailView}))),eS=Rt(()=>Dt(()=>import("./Notifications-BsYjQ_xW.js"),__vite__mapDeps([31,15,25,9,5])).then(u=>({default:u.NotificationsView}))),aS=Rt(()=>Dt(()=>import("./Settings-hppbMnGd.js"),__vite__mapDeps([32,33,7,18])).then(u=>({default:u.SettingsView}))),nS=Rt(()=>Dt(()=>import("./NotificationTest-BiizG7na.js"),__vite__mapDeps([34,8,1,22,19,29])).then(u=>({default:u.NotificationTestPage}))),lS=Rt(()=>Dt(()=>import("./Share-CBGdchTT.js"),[]).then(u=>({default:u.SharePage}))),iS=Rt(()=>Dt(()=>import("./Claiming-_z07DhGx.js"),__vite__mapDeps([35,17])).then(u=>({default:u.ClaimingPage}))),uS=Rt(()=>Dt(()=>import("./Signin-NGwkbIjV.js"),__vite__mapDeps([36,17])).then(u=>({default:u.SigninPage}))),sS=Rt(()=>Dt(()=>import("./Demo-CyuHWEpq.js"),__vite__mapDeps([37,38,39,40,19,41,33])).then(u=>({default:u.DemoPage}))),rS=Rt(()=>Dt(()=>import("./DemoOnboarding-BREfe-Hu.js"),__vite__mapDeps([42,39,40,19,1,43])).then(u=>({default:u.DemoOnboardingPage}))),oS=Rt(()=>Dt(()=>import("./JobChannel-BBvVKbMe.js"),__vite__mapDeps([44,45,46,7,15,17,1,3,21,9,22,47,48,49])).then(u=>({default:u.JobChannel}))),cS=Rt(()=>Dt(()=>import("./JobChannel-BBvVKbMe.js"),__vite__mapDeps([44,45,46,7,15,17,1,3,21,9,22,47,48,49])).then(u=>({default:u.JobLauncher}))),fS=Rt(()=>Dt(()=>import("./AdminTrace-D3rrvrOX.js"),__vite__mapDeps([50,9,1,5])).then(u=>({default:u.AdminTraceView}))),dS=Rt(()=>Dt(()=>import("./AdminReports-d8tR86fi.js"),__vite__mapDeps([51,11])).then(u=>({default:u.AdminReportsView}))),hS=Rt(()=>Dt(()=>import("./InChatFunnel-ClEPGwCc.js"),__vite__mapDeps([52,38,39,40,19,53,45,46,7,15,17,1,3,21,9,22,47,54,33,41,48,49])).then(u=>({default:u.InChatFunnelPage}))),mS=Rt(()=>Dt(()=>import("./ConversationChannel-3dZJC7Pf.js"),__vite__mapDeps([46,7,15,45,17,1,3,21,9,22])).then(u=>({default:u.ConversationChannel}))),pS=Rt(()=>Dt(()=>import("./Baby-BvQqGctV.js"),__vite__mapDeps([55,49])).then(u=>({default:u.BabyPage}))),gS=Rt(()=>Dt(()=>import("./BabyIntake-BBaoq1b9.js"),__vite__mapDeps([56,38,39,40,19,53,45,54,33,41,48,49])).then(u=>({default:u.BabyIntakePage}))),yS=Rt(()=>Dt(()=>import("./BabyQuiz-8WFFMAE5.js"),__vite__mapDeps([57,39,53,45,48,33,41,49])).then(u=>({default:u.BabyQuizPage}))),vS=Rt(()=>Dt(()=>import("./Legal-BbYNG1G5.js"),[]).then(u=>({default:u.PrivacyPage}))),bS=Rt(()=>Dt(()=>import("./Legal-BbYNG1G5.js"),[]).then(u=>({default:u.TermsPage}))),SS=Rt(()=>Dt(()=>import("./Legal-BbYNG1G5.js"),[]).then(u=>({default:u.DataDeletionPage})));function wS(){const{conversationId:u}=Dy(),{user:i}=_n(),o=An();return u!=null&&u.startsWith("conv_sleep_")?qo()?w.jsx(xn,{to:"/chat",replace:!0}):w.jsx(oS,{convId:u}):i&&(u!=null&&u.startsWith(`conv_${i.id}_`))&&!u.slice(`conv_${i.id}_`.length).includes("_")?w.jsx(ES,{convId:u,onBack:()=>o("/chat")}):w.jsx(P1,{})}function ES({convId:u,onBack:i}){var d;const{user:o}=_n(),{data:r}=Xv(We,o?`users/${o.id}/profile`:""),f=(d=r==null?void 0:r.name)==null?void 0:d.trim();return w.jsx(mS,{convId:u,title:"Para",subtitle:"your Para",ownerName:f||"Your",openSubtitle:f?`${f}'s Para`:"Your Para",enableVoice:!0,focusUid:o==null?void 0:o.id,onBack:i})}function bo({children:u}){const{user:i,pendingVerification:o,loading:r}=_n();return r?w.jsx(Go,{}):o||!i?w.jsx(xn,{to:"/chat-auth",replace:!0}):w.jsx(w.Fragment,{children:u})}function So({children:u}){return Im("sleep-consumer-funnel")===!1?w.jsx(xn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:u})}function oi({children:u}){return qo()?w.jsx(xn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:u})}function Go(){return w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.jsx("div",{className:"bs-spin"})]})}function xS(){const{loading:u}=_n();return E.useEffect(()=>{u||Lv()},[u]),null}function AS(){const{user:u,loading:i}=_n();return i?w.jsx(Go,{}):u?w.jsx(xn,{to:"/chat",replace:!0}):qo()?w.jsx(xn,{to:"/chat-auth",replace:!0}):w.jsx(G1,{})}function _S(){return Kb(),Wb(),w.jsxs(w.Fragment,{children:[w.jsx(N1,{}),w.jsx(E1,{}),w.jsx(O1,{}),w.jsx(Qv,{children:w.jsxs(E.Suspense,{fallback:w.jsx(Go,{}),children:[w.jsxs(Xy,{children:[w.jsxs(Tt,{element:w.jsx(fb,{}),children:[w.jsx(Tt,{index:!0,element:w.jsx(AS,{})}),w.jsx(Tt,{path:"/claiming/:handle",element:w.jsx(iS,{})}),w.jsx(Tt,{path:"/signin",element:w.jsx(uS,{})}),w.jsx(Tt,{path:"/chat-auth",element:w.jsx(Q1,{})}),w.jsx(Tt,{path:"/onboard",element:w.jsx(Z1,{})}),w.jsx(Tt,{path:"/chat/:handle/:jobId",element:w.jsx(oi,{children:w.jsx(hS,{})})}),w.jsx(Tt,{path:"/baby",element:w.jsx(oi,{children:w.jsx(So,{children:w.jsx(pS,{})})})}),w.jsx(Tt,{path:"/baby/intake",element:w.jsx(oi,{children:w.jsx(So,{children:w.jsx(gS,{})})})}),w.jsx(Tt,{path:"/baby/quiz",element:w.jsx(oi,{children:w.jsx(So,{children:w.jsx(yS,{})})})}),w.jsx(Tt,{path:"/privacy",element:w.jsx(vS,{})}),w.jsx(Tt,{path:"/terms",element:w.jsx(bS,{})}),w.jsx(Tt,{path:"/data-deletion",element:w.jsx(SS,{})})]}),w.jsx(Tt,{path:"/share",element:w.jsx(bo,{children:w.jsx(lS,{})})}),w.jsx(Tt,{path:"/onboard/creating",element:w.jsx(bo,{children:w.jsx(K1,{})})}),w.jsxs(Tt,{element:w.jsx(bo,{children:w.jsx(J1,{})}),children:[w.jsx(Tt,{path:"/chat",element:w.jsx($1,{})}),w.jsx(Tt,{path:"/chat/:conversationId",element:w.jsx(wS,{})}),w.jsx(Tt,{path:"/job/:jobId",element:w.jsx(oi,{children:w.jsx(cS,{})})}),w.jsx(Tt,{path:"/discover",element:w.jsx(W1,{})}),w.jsx(Tt,{path:"/inbox",element:w.jsx(F1,{})}),w.jsx(Tt,{path:"/inbox/:emailId",element:w.jsx(I1,{})}),w.jsx(Tt,{path:"/t/:topic",element:w.jsx(tS,{})}),w.jsx(Tt,{path:"/notifications",element:w.jsx(eS,{})}),w.jsx(Tt,{path:"/settings",element:w.jsx(aS,{})}),w.jsx(Tt,{path:"/settings/notifications",element:w.jsx(nS,{})}),w.jsx(Tt,{path:"/admin/trace",element:w.jsx(fS,{})}),w.jsx(Tt,{path:"/admin/reports",element:w.jsx(dS,{})})]}),w.jsx(Tt,{path:"/demo-chat-kit",element:w.jsx(sS,{})}),w.jsx(Tt,{path:"/demo-onboarding",element:w.jsx(rS,{})}),w.jsx(Tt,{path:"*",element:w.jsx(xn,{to:"/",replace:!0})})]}),w.jsx(xS,{})]})})]})}const Mo="para_attribution",TS=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","fbclid","ttclid","gclid"];function qS(){try{const u=localStorage.getItem(Mo);if(u){const r=JSON.parse(u);return Am(r),r}const i=new URLSearchParams(window.location.search),o={};for(const r of TS){const f=i.get(r);f&&(o[r]=f.slice(0,120))}return o.landing=window.location.pathname,o.landed_at=Date.now(),localStorage.setItem(Mo,JSON.stringify(o)),Am(o),o}catch{return{}}}function Am(u){try{pt.analytics.register(u)}catch{}}function MS(){try{const u=localStorage.getItem(Mo);if(u)return JSON.parse(u)}catch{}return{}}let Do="init",_m=!1;const Tm=new Set;function YS(u){Do=u}function VS(u,i={}){ci(u,{kind:"stall",...i})}function DS(){try{if(window.matchMedia("(pointer: coarse)").matches||navigator.maxTouchPoints>0)return"mobile"}catch{}return"desktop"}function Mm(u){var i;if(u instanceof Error){const o=(i=u.stack)==null?void 0:i.split(`
`).map(r=>r.trim()).find(r=>r.startsWith("at "));return{name:u.name,message:u.message||u.name||"Error",frame:o==null?void 0:o.slice(0,160)}}if(typeof u=="string")return{message:u};if(u&&typeof u=="object"){const o=u,r=typeof o.message=="string"?o.message:(()=>{try{return JSON.stringify(o).slice(0,200)}catch{return String(u)}})();return{name:typeof o.name=="string"?o.name:void 0,message:r}}return{message:String(u)}}function ci(u,i={}){try{const o=window.location.pathname,r=`${o}|${Do}|${i.name??""}|${u}|${i.at??""}`.slice(0,240);if(Tm.has(r))return;Tm.add(r),pt.event("client_error",{msg:String(u).slice(0,300),route:o,step:Do,device:DS(),...i,...MS()})}catch{}}function RS(){_m||typeof window>"u"||(_m=!0,window.addEventListener("error",u=>{var r;if(!u.error&&u.target&&u.target!==window){const f=u.target,d=f.src||f.href||"";if(d){ci(`resource load failed: ${d}`.slice(0,200),{kind:"resource",name:(r=f.tagName)==null?void 0:r.toLowerCase(),src:d.slice(0,160)});return}}if(!u.error&&(!u.message||u.message==="Script error.")){ci("Script error (cross-origin — detail blocked; add crossorigin+CORS to see it)",{kind:"cross-origin",src:(u.filename||"").slice(0,160)});return}const i=Mm(u.error??u.message),o=u.filename?`${u.filename.split("/").pop()}:${u.lineno??0}:${u.colno??0}`:void 0;ci(i.message,{kind:"error",name:i.name,at:o,frame:i.frame,src:(u.filename||"").slice(0,160)})},!0),window.addEventListener("unhandledrejection",u=>{const i=u.reason;if((i==null?void 0:i.name)==="AbortError")return;const o=Mm(i);ci(o.message,{kind:"rejection",name:o.name,frame:o.frame})}))}RS();window.addEventListener("vite:preloadError",u=>{const i="chunk-reload-at";let o=0;try{o=Number(sessionStorage.getItem(i)??0)}catch{}if(!(Date.now()-o<3e4)){u.preventDefault();try{sessionStorage.setItem(i,String(Date.now()))}catch{}window.location.reload()}});b1();"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",u=>{var i,o;((i=u.data)==null?void 0:i.type)==="NAVIGATE"&&u.data.url&&(window.location.href=u.data.url),((o=u.data)==null?void 0:o.type)==="MARK_READ"&&u.data.nid&&Dt(async()=>{const{client:r}=await Promise.resolve().then(()=>kv);return{client:r}},void 0).then(({client:r})=>{const f=localStorage.getItem("bodify_auth_token");if(f)try{const g=JSON.parse(atob(f.split(".")[1])).sub;if(!g)return;r.get(`users/${g}/notifications/${u.data.nid}`).then(b=>{b&&!b.read&&r.set(`users/${g}/notifications/${u.data.nid}`,{...b,read:!0})})}catch{}})});Vg.createRoot(document.getElementById("root")).render(w.jsx(E.StrictMode,{children:w.jsx(pv,{children:w.jsx(Yv,{children:w.jsx(Bv,{children:w.jsx(_S,{})})})})}));export{i0 as A,pt as B,s1 as C,o0 as D,l0 as E,BS as F,LS as G,MS as H,qS as I,Hg as J,YS as K,Bo as L,f1 as M,xn as N,Vy as O,VS as P,OS as Q,h1 as R,y1 as S,n0 as X,Dt as _,An as a,US as b,za as c,We as d,Im as e,Xv as f,kS as g,NS as h,qo as i,w as j,HS as k,vm as l,gv as m,hl as n,Dy as o,zS as p,e0 as q,E as r,jS as s,Jb as t,_n as u,Vv as v,t0 as w,Vo as x,Ku as y,_o as z};