const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-Dmrpc9BS.js","assets/vendor-query-Brcc40-Y.js","assets/vendor-form-BQNAly2Z.js","assets/vendor-react-DP6BW_9B.js","assets/AuthLayout-DounjrD9.js","assets/GoogleAuthButton-N4KE3YsZ.js","assets/vendor-utils-ui5PHgZB.js","assets/vendor-zustand-CVDiRiMG.js","assets/RegisterPage-eKx07Wcm.js","assets/ForgotPasswordPage-Cj6m9Q1R.js","assets/ResetPasswordPage-b9hVYr7y.js","assets/AuthCallbackPage-BzZTYaI6.js","assets/users.service-CoC1p39-.js","assets/VerifyEmailPage-BtMuj0xg.js","assets/JoinInvitePage-DBH2DY0L.js","assets/DashboardPage-DhYhMhgW.js","assets/Skeleton-DGpeJz1z.js","assets/EmptyState-DBHsSu6q.js","assets/Badge-CnBuGwnc.js","assets/GroupsPage-CoJ941Iv.js","assets/GroupDetailPage-D4LVPq-h.js","assets/PendingInvitesList-NJPOzwUK.js","assets/GroupSettingsPage-CMRsbREe.js","assets/ExpenseDetailPage-CMlc_Z7N.js","assets/SettlementsPage-BXDKe4Wb.js","assets/ActivityPage--9LBVV7W.js","assets/ReportsPage-1XiteF4o.js","assets/ProfilePage-C1Hc3DN3.js","assets/NotificationsPage-BmgZlEJF.js","assets/SearchPage-CLT0wY1t.js"])))=>i.map(i=>d[i]);
import{r as Bh,Q as Ch,j as s,u as Dl,c as Et,d as qe,a as R,e as qh}from"./vendor-query-Brcc40-Y.js";import{r as Hh,O as Pu,N as Ms,u as $l,L as Rh,a as Ra,c as Lh,R as Gh}from"./vendor-react-DP6BW_9B.js";import{a as Wd,t as Qh,c as Yh,f as Xh,b as Vh,A as $d}from"./vendor-utils-ui5PHgZB.js";import{c as Ts}from"./vendor-zustand-CVDiRiMG.js";import{o as Zh,r as kh,a as Kh,b as Ds,s as vt,u as _s,C as Os,e as Fd,c as Id}from"./vendor-form-BQNAly2Z.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))o(j);new MutationObserver(j=>{for(const S of j)if(S.type==="childList")for(const E of S.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&o(E)}).observe(document,{childList:!0,subtree:!0});function m(j){const S={};return j.integrity&&(S.integrity=j.integrity),j.referrerPolicy&&(S.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?S.credentials="include":j.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function o(j){if(j.ep)return;j.ep=!0;const S=m(j);fetch(j.href,S)}})();var ps={exports:{}},On={},Ss={exports:{}},js={};/**
 * @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 Yd;function wh(){return Yd||(Yd=1,(function(c){function r(N,U){var k=N.length;N.push(U);e:for(;0<k;){var ye=k-1>>>1,ge=N[ye];if(0<j(ge,U))N[ye]=U,N[k]=ge,k=ye;else break e}}function m(N){return N.length===0?null:N[0]}function o(N){if(N.length===0)return null;var U=N[0],k=N.pop();if(k!==U){N[0]=k;e:for(var ye=0,ge=N.length,We=ge>>>1;ye<We;){var Ne=2*(ye+1)-1,ce=N[Ne],Le=Ne+1,Ut=N[Le];if(0>j(ce,k))Le<ge&&0>j(Ut,ce)?(N[ye]=Ut,N[Le]=k,ye=Le):(N[ye]=ce,N[Ne]=k,ye=Ne);else if(Le<ge&&0>j(Ut,k))N[ye]=Ut,N[Le]=k,ye=Le;else break e}}return U}function j(N,U){var k=N.sortIndex-U.sortIndex;return k!==0?k:N.id-U.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;c.unstable_now=function(){return S.now()}}else{var E=Date,M=E.now();c.unstable_now=function(){return E.now()-M}}var T=[],O=[],X=1,_=null,D=3,K=!1,P=!1,he=!1,V=!1,ze=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function Z(N){for(var U=m(O);U!==null;){if(U.callback===null)o(O);else if(U.startTime<=N)o(O),U.sortIndex=U.expirationTime,r(T,U);else break;U=m(O)}}function le(N){if(he=!1,Z(N),!P)if(m(T)!==null)P=!0,Se||(Se=!0,q());else{var U=m(O);U!==null&&Ye(le,U.startTime-N)}}var Se=!1,Re=-1,Je=5,Ot=-1;function G(){return V?!0:!(c.unstable_now()-Ot<Je)}function C(){if(V=!1,Se){var N=c.unstable_now();Ot=N;var U=!0;try{e:{P=!1,he&&(he=!1,pe(Re),Re=-1),K=!0;var k=D;try{t:{for(Z(N),_=m(T);_!==null&&!(_.expirationTime>N&&G());){var ye=_.callback;if(typeof ye=="function"){_.callback=null,D=_.priorityLevel;var ge=ye(_.expirationTime<=N);if(N=c.unstable_now(),typeof ge=="function"){_.callback=ge,Z(N),U=!0;break t}_===m(T)&&o(T),Z(N)}else o(T);_=m(T)}if(_!==null)U=!0;else{var We=m(O);We!==null&&Ye(le,We.startTime-N),U=!1}}break e}finally{_=null,D=k,K=!1}U=void 0}}finally{U?q():Se=!1}}}var q;if(typeof B=="function")q=function(){B(C)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,De=se.port2;se.port1.onmessage=C,q=function(){De.postMessage(null)}}else q=function(){ze(C,0)};function Ye(N,U){Re=ze(function(){N(c.unstable_now())},U)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(N){N.callback=null},c.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Je=0<N?Math.floor(1e3/N):5},c.unstable_getCurrentPriorityLevel=function(){return D},c.unstable_next=function(N){switch(D){case 1:case 2:case 3:var U=3;break;default:U=D}var k=D;D=U;try{return N()}finally{D=k}},c.unstable_requestPaint=function(){V=!0},c.unstable_runWithPriority=function(N,U){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var k=D;D=N;try{return U()}finally{D=k}},c.unstable_scheduleCallback=function(N,U,k){var ye=c.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ye+k:ye):k=ye,N){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=k+ge,N={id:X++,callback:U,priorityLevel:N,startTime:k,expirationTime:ge,sortIndex:-1},k>ye?(N.sortIndex=k,r(O,N),m(T)===null&&N===m(O)&&(he?(pe(Re),Re=-1):he=!0,Ye(le,k-ye))):(N.sortIndex=ge,r(T,N),P||K||(P=!0,Se||(Se=!0,q()))),N},c.unstable_shouldYield=G,c.unstable_wrapCallback=function(N){var U=D;return function(){var k=D;D=U;try{return N.apply(this,arguments)}finally{D=k}}}})(js)),js}var Xd;function Jh(){return Xd||(Xd=1,Ss.exports=wh()),Ss.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 Vd;function Wh(){if(Vd)return On;Vd=1;var c=Jh(),r=Bh(),m=Hh();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function S(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function E(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function M(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function T(e){if(S(e)!==e)throw Error(o(188))}function O(e){var t=e.alternate;if(!t){if(t=S(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return T(n),e;if(u===a)return T(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,f=n.child;f;){if(f===l){i=!0,l=n,a=u;break}if(f===a){i=!0,a=n,l=u;break}f=f.sibling}if(!i){for(f=u.child;f;){if(f===l){i=!0,l=u,a=n;break}if(f===a){i=!0,a=u,l=n;break}f=f.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function X(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=X(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,D=Symbol.for("react.element"),K=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),B=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),Je=Symbol.for("react.lazy"),Ot=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),C=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=C&&e[C]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case ze:return"Profiler";case V:return"StrictMode";case le:return"Suspense";case Se:return"SuspenseList";case Ot:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case P:return"Portal";case B:return e.displayName||"Context";case pe:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Re:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case Je:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var Ye=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},ye=[],ge=-1;function We(e){return{current:e}}function Ne(e){0>ge||(e.current=ye[ge],ye[ge]=null,ge--)}function ce(e,t){ge++,ye[ge]=e.current,e.current=t}var Le=We(null),Ut=We(null),ll=We(null),Un=We(null);function Bn(e,t){switch(ce(ll,t),ce(Ut,e),ce(Le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rd(t),e=od(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ne(Le),ce(Le,e)}function Il(){Ne(Le),Ne(Ut),Ne(ll)}function ti(e){e.memoizedState!==null&&ce(Un,e);var t=Le.current,l=od(t,e.type);t!==l&&(ce(Ut,e),ce(Le,l))}function Cn(e){Ut.current===e&&(Ne(Le),Ne(Ut)),Un.current===e&&(Ne(Un),Mn._currentValue=k)}var li,Ls;function Ol(e){if(li===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);li=t&&t[1]||"",Ls=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+li+e+Ls}var ai=!1;function ni(e,t){if(!e||ai)return"";ai=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(x){var b=x}Reflect.construct(e,[],A)}else{try{A.call()}catch(x){b=x}e.call(A.prototype)}}else{try{throw Error()}catch(x){b=x}(A=e())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(x){if(x&&b&&typeof x.stack=="string")return[x.stack,b.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],f=u[1];if(i&&f){var d=i.split(`
`),g=f.split(`
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===g.length)for(a=d.length-1,n=g.length-1;1<=a&&0<=n&&d[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==g[n]){var p=`
`+d[a].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=a&&0<=n);break}}}finally{ai=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ol(l):""}function rm(e,t){switch(e.tag){case 26:case 27:case 5:return Ol(e.type);case 16:return Ol("Lazy");case 13:return e.child!==t&&t!==null?Ol("Suspense Fallback"):Ol("Suspense");case 19:return Ol("SuspenseList");case 0:case 15:return ni(e.type,!1);case 11:return ni(e.type.render,!1);case 1:return ni(e.type,!0);case 31:return Ol("Activity");default:return""}}function Gs(e){try{var t="",l=null;do t+=rm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ui=Object.prototype.hasOwnProperty,ii=c.unstable_scheduleCallback,ci=c.unstable_cancelCallback,om=c.unstable_shouldYield,dm=c.unstable_requestPaint,ut=c.unstable_now,mm=c.unstable_getCurrentPriorityLevel,Qs=c.unstable_ImmediatePriority,Ys=c.unstable_UserBlockingPriority,qn=c.unstable_NormalPriority,hm=c.unstable_LowPriority,Xs=c.unstable_IdlePriority,vm=c.log,ym=c.unstable_setDisableYieldValue,La=null,it=null;function al(e){if(typeof vm=="function"&&ym(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(La,e)}catch{}}var ct=Math.clz32?Math.clz32:xm,gm=Math.log,bm=Math.LN2;function xm(e){return e>>>=0,e===0?32:31-(gm(e)/bm|0)|0}var Hn=256,Rn=262144,Ln=4194304;function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Gn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ul(a):(i&=f,i!==0?n=Ul(i):l||(l=f&~e,l!==0&&(n=Ul(l))))):(f=a&~u,f!==0?n=Ul(f):i!==0?n=Ul(i):l||(l=a&~e,l!==0&&(n=Ul(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Vs(){var e=Ln;return Ln<<=1,(Ln&62914560)===0&&(Ln=4194304),e}function si(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sm(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,d=e.expirationTimes,g=e.hiddenUpdates;for(l=i&~l;0<l;){var p=31-ct(l),A=1<<p;f[p]=0,d[p]=-1;var b=g[p];if(b!==null)for(g[p]=null,p=0;p<b.length;p++){var x=b[p];x!==null&&(x.lane&=-536870913)}l&=~A}a!==0&&Zs(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Zs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ks(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ks(e,t){var l=t&-t;return l=(l&42)!==0?1:fi(l),(l&(e.suspendedLanes|t))!==0?0:l}function fi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ri(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ws(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:Cd(e.type))}function Js(e,t){var l=U.p;try{return U.p=e,t()}finally{U.p=l}}var nl=Math.random().toString(36).slice(2),Xe="__reactFiber$"+nl,Ie="__reactProps$"+nl,Pl="__reactContainer$"+nl,oi="__reactEvents$"+nl,jm="__reactListeners$"+nl,zm="__reactHandles$"+nl,Ws="__reactResources$"+nl,Ya="__reactMarker$"+nl;function di(e){delete e[Xe],delete e[Ie],delete e[oi],delete e[jm],delete e[zm]}function ea(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=bd(e);e!==null;){if(l=e[Xe])return l;e=bd(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[Xe]||e[Pl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function la(e){var t=e[Ws];return t||(t=e[Ws]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[Ya]=!0}var $s=new Set,Fs={};function Bl(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(Fs[e]=t,e=0;e<t.length;e++)$s.add(t[e])}var Nm=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]*$"),Is={},Ps={};function Am(e){return ui.call(Ps,e)?!0:ui.call(Is,e)?!1:Nm.test(e)?Ps[e]=!0:(Is[e]=!0,!1)}function Qn(e,t,l){if(Am(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Yn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Rt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ef(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Em(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mi(e){if(!e._valueTracker){var t=ef(e)?"checked":"value";e._valueTracker=Em(e,t,""+e[t])}}function tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=ef(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Xn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Mm=/[\n"\\]/g;function gt(e){return e.replace(Mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hi(e,t,l,a,n,u,i,f){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?vi(e,i,yt(t)):l!=null?vi(e,i,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+yt(f):e.removeAttribute("name")}function lf(e,t,l,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){mi(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),mi(e)}function vi(e,t,l){t==="number"&&Xn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+yt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function af(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function nf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ye(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),mi(e)}function ua(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Tm=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 uf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Tm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function cf(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&uf(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&uf(e,u,t[u])}function yi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Dm=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"]]),_m=/^[\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 Vn(e){return _m.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var gi=null;function bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,ca=null;function sf(e){var t=ta(e);if(t&&(e=t.stateNode)){var l=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(hi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ie]||null;if(!n)throw Error(o(90));hi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&tf(a)}break e;case"textarea":af(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&na(e,!!l.multiple,t,!1)}}}var xi=!1;function ff(e,t,l){if(xi)return e(t,l);xi=!0;try{var a=e(t);return a}finally{if(xi=!1,(ia!==null||ca!==null)&&(_u(),ia&&(t=ia,e=ca,ca=ia=null,sf(t),e)))for(t=0;t<e.length;t++)sf(e[t])}}function Va(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ie]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Gt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pi=!1;if(Gt)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){pi=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{pi=!1}var ul=null,Si=null,Zn=null;function rf(){if(Zn)return Zn;var e,t=Si,l=t.length,a,n="value"in ul?ul.value:ul.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return Zn=n.slice(e,1<a?1-a:void 0)}function kn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kn(){return!0}function of(){return!1}function Pe(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Kn:of,this.isPropagationStopped=of,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Kn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Kn)},persist:function(){},isPersistent:Kn}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wn=Pe(Cl),ka=_({},Cl,{view:0,detail:0}),Om=Pe(ka),ji,zi,Ka,Jn=_({},ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ai,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ka&&(Ka&&e.type==="mousemove"?(ji=e.screenX-Ka.screenX,zi=e.screenY-Ka.screenY):zi=ji=0,Ka=e),ji)},movementY:function(e){return"movementY"in e?e.movementY:zi}}),df=Pe(Jn),Um=_({},Jn,{dataTransfer:0}),Bm=Pe(Um),Cm=_({},ka,{relatedTarget:0}),Ni=Pe(Cm),qm=_({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),Hm=Pe(qm),Rm=_({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Lm=Pe(Rm),Gm=_({},Cl,{data:0}),mf=Pe(Gm),Qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ym={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"},Xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xm[e])?!!t[e]:!1}function Ai(){return Vm}var Zm=_({},ka,{key:function(e){if(e.key){var t=Qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=kn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ym[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ai,charCode:function(e){return e.type==="keypress"?kn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?kn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),km=Pe(Zm),Km=_({},Jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hf=Pe(Km),wm=_({},ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ai}),Jm=Pe(wm),Wm=_({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),$m=Pe(Wm),Fm=_({},Jn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Im=Pe(Fm),Pm=_({},Cl,{newState:0,oldState:0}),e0=Pe(Pm),t0=[9,13,27,32],Ei=Gt&&"CompositionEvent"in window,wa=null;Gt&&"documentMode"in document&&(wa=document.documentMode);var l0=Gt&&"TextEvent"in window&&!wa,vf=Gt&&(!Ei||wa&&8<wa&&11>=wa),yf=" ",gf=!1;function bf(e,t){switch(e){case"keyup":return t0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function a0(e,t){switch(e){case"compositionend":return xf(t);case"keypress":return t.which!==32?null:(gf=!0,yf);case"textInput":return e=t.data,e===yf&&gf?null:e;default:return null}}function n0(e,t){if(sa)return e==="compositionend"||!Ei&&bf(e,t)?(e=rf(),Zn=Si=ul=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vf&&t.locale!=="ko"?null:t.data;default:return null}}var u0={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 pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!u0[e.type]:t==="textarea"}function Sf(e,t,l,a){ia?ca?ca.push(a):ca=[a]:ia=a,t=Ru(t,"onChange"),0<t.length&&(l=new wn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ja=null,Wa=null;function i0(e){nd(e,0)}function Wn(e){var t=Xa(e);if(tf(t))return e}function jf(e,t){if(e==="change")return t}var zf=!1;if(Gt){var Mi;if(Gt){var Ti="oninput"in document;if(!Ti){var Nf=document.createElement("div");Nf.setAttribute("oninput","return;"),Ti=typeof Nf.oninput=="function"}Mi=Ti}else Mi=!1;zf=Mi&&(!document.documentMode||9<document.documentMode)}function Af(){Ja&&(Ja.detachEvent("onpropertychange",Ef),Wa=Ja=null)}function Ef(e){if(e.propertyName==="value"&&Wn(Wa)){var t=[];Sf(t,Wa,e,bi(e)),ff(i0,t)}}function c0(e,t,l){e==="focusin"?(Af(),Ja=t,Wa=l,Ja.attachEvent("onpropertychange",Ef)):e==="focusout"&&Af()}function s0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wn(Wa)}function f0(e,t){if(e==="click")return Wn(t)}function r0(e,t){if(e==="input"||e==="change")return Wn(t)}function o0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var st=typeof Object.is=="function"?Object.is:o0;function $a(e,t){if(st(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ui.call(t,n)||!st(e[n],t[n]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tf(e,t){var l=Mf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Mf(l)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Xn(e.document)}return t}function Di(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var d0=Gt&&"documentMode"in document&&11>=document.documentMode,fa=null,_i=null,Fa=null,Oi=!1;function Of(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Oi||fa==null||fa!==Xn(a)||(a=fa,"selectionStart"in a&&Di(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fa&&$a(Fa,a)||(Fa=a,a=Ru(_i,"onSelect"),0<a.length&&(t=new wn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function ql(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ra={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionrun:ql("Transition","TransitionRun"),transitionstart:ql("Transition","TransitionStart"),transitioncancel:ql("Transition","TransitionCancel"),transitionend:ql("Transition","TransitionEnd")},Ui={},Uf={};Gt&&(Uf=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Hl(e){if(Ui[e])return Ui[e];if(!ra[e])return e;var t=ra[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Uf)return Ui[e]=t[l];return e}var Bf=Hl("animationend"),Cf=Hl("animationiteration"),qf=Hl("animationstart"),m0=Hl("transitionrun"),h0=Hl("transitionstart"),v0=Hl("transitioncancel"),Hf=Hl("transitionend"),Rf=new Map,Bi="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(" ");Bi.push("scrollEnd");function Mt(e,t){Rf.set(e,t),Bl(t,[e])}var $n=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},bt=[],oa=0,Ci=0;function Fn(){for(var e=oa,t=Ci=oa=0;t<e;){var l=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var n=bt[t];bt[t++]=null;var u=bt[t];if(bt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Lf(l,n,u)}}function In(e,t,l,a){bt[oa++]=e,bt[oa++]=t,bt[oa++]=l,bt[oa++]=a,Ci|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function qi(e,t,l,a){return In(e,t,l,a),Pn(e)}function Rl(e,t){return In(e,null,null,t),Pn(e)}function Lf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ct(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Pn(e){if(50<pn)throw pn=0,Zc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function y0(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,l,a){return new y0(e,t,l,a)}function Hi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=ft(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Gf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function eu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Hi(e)&&(i=1);else if(typeof e=="string")i=Sh(e,l,Le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ot:return e=ft(31,l,t,n),e.elementType=Ot,e.lanes=u,e;case he:return Ll(l.children,n,u,t);case V:i=8,n|=24;break;case ze:return e=ft(12,l,t,n|2),e.elementType=ze,e.lanes=u,e;case le:return e=ft(13,l,t,n),e.elementType=le,e.lanes=u,e;case Se:return e=ft(19,l,t,n),e.elementType=Se,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:i=10;break e;case pe:i=9;break e;case Z:i=11;break e;case Re:i=14;break e;case Je:i=16,a=null;break e}i=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ft(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Ll(e,t,l,a){return e=ft(7,e,a,t),e.lanes=l,e}function Ri(e,t,l){return e=ft(6,e,null,t),e.lanes=l,e}function Qf(e){var t=ft(18,null,null,0);return t.stateNode=e,t}function Li(e,t,l){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yf=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var l=Yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Gs(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Gs(t)}}var ma=[],ha=0,tu=null,Ia=0,pt=[],St=0,il=null,Bt=1,Ct="";function Yt(e,t){ma[ha++]=Ia,ma[ha++]=tu,tu=e,Ia=t}function Xf(e,t,l){pt[St++]=Bt,pt[St++]=Ct,pt[St++]=il,il=e;var a=Bt;e=Ct;var n=32-ct(a)-1;a&=~(1<<n),l+=1;var u=32-ct(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Bt=1<<32-ct(t)+n|l<<n|a,Ct=u+e}else Bt=1<<u|l<<n|a,Ct=e}function Gi(e){e.return!==null&&(Yt(e,1),Xf(e,1,0))}function Qi(e){for(;e===tu;)tu=ma[--ha],ma[ha]=null,Ia=ma[--ha],ma[ha]=null;for(;e===il;)il=pt[--St],pt[St]=null,Ct=pt[--St],pt[St]=null,Bt=pt[--St],pt[St]=null}function Vf(e,t){pt[St++]=Bt,pt[St++]=Ct,pt[St++]=il,Bt=t.id,Ct=t.overflow,il=e}var Ve=null,be=null,ae=!1,cl=null,jt=!1,Yi=Error(o(519));function sl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pa(xt(t,e)),Yi}function Zf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[Ie]=a,l){case"dialog":I("cancel",t),I("close",t);break;case"iframe":case"object":case"embed":I("load",t);break;case"video":case"audio":for(l=0;l<jn.length;l++)I(jn[l],t);break;case"source":I("error",t);break;case"img":case"image":case"link":I("error",t),I("load",t);break;case"details":I("toggle",t);break;case"input":I("invalid",t),lf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":I("invalid",t);break;case"textarea":I("invalid",t),nf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||sd(t.textContent,l)?(a.popover!=null&&(I("beforetoggle",t),I("toggle",t)),a.onScroll!=null&&I("scroll",t),a.onScrollEnd!=null&&I("scrollend",t),a.onClick!=null&&(t.onclick=Lt),t=!0):t=!1,t||sl(e,!0)}function kf(e){for(Ve=e.return;Ve;)switch(Ve.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Ve=Ve.return}}function va(e){if(e!==Ve)return!1;if(!ae)return kf(e),ae=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||us(e.type,e.memoizedProps)),l=!l),l&&be&&sl(e),kf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));be=gd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));be=gd(e)}else t===27?(t=be,jl(e.type)?(e=rs,rs=null,be=e):be=t):be=Ve?Nt(e.stateNode.nextSibling):null;return!0}function Gl(){be=Ve=null,ae=!1}function Xi(){var e=cl;return e!==null&&(at===null?at=e:at.push.apply(at,e),cl=null),e}function Pa(e){cl===null?cl=[e]:cl.push(e)}var Vi=We(null),Ql=null,Xt=null;function fl(e,t,l){ce(Vi,t._currentValue),t._currentValue=l}function Vt(e){e._currentValue=Vi.current,Ne(Vi)}function Zi(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ki(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var d=0;d<t.length;d++)if(f.context===t[d]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),Zi(u.return,l,e),a||(i=null);break e}u=f.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Zi(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ya(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var f=n.type;st(n.pendingProps.value,i.value)||(e!==null?e.push(f):e=[f])}}else if(n===Un.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&ki(t,e,l,a),t.flags|=262144}function lu(e){for(e=e.firstContext;e!==null;){if(!st(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yl(e){Ql=e,Xt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return Kf(Ql,e)}function au(e,t){return Ql===null&&Yl(e),Kf(e,t)}function Kf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Xt===null){if(e===null)throw Error(o(308));Xt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xt=Xt.next=t;return l}var g0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},b0=c.unstable_scheduleCallback,x0=c.unstable_NormalPriority,_e={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ki(){return{controller:new g0,data:new Map,refCount:0}}function en(e){e.refCount--,e.refCount===0&&b0(x0,function(){e.controller.abort()})}var tn=null,wi=0,ga=0,ba=null;function p0(e,t){if(tn===null){var l=tn=[];wi=0,ga=$c(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return wi++,t.then(wf,wf),t}function wf(){if(--wi===0&&tn!==null){ba!==null&&(ba.status="fulfilled");var e=tn;tn=null,ga=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function S0(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Jf=N.S;N.S=function(e,t){Uo=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&p0(e,t),Jf!==null&&Jf(e,t)};var Xl=We(null);function Ji(){var e=Xl.current;return e!==null?e:ve.pooledCache}function nu(e,t){t===null?ce(Xl,Xl.current):ce(Xl,t.pool)}function Wf(){var e=Ji();return e===null?null:{parent:_e._currentValue,pool:e}}var xa=Error(o(460)),Wi=Error(o(474)),uu=Error(o(542)),iu={then:function(){}};function $f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ff(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Lt,Lt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e;default:if(typeof t.status=="string")t.then(Lt,Lt);else{if(e=ve,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Pf(e),e}throw Zl=t,xa}}function Vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Zl=l,xa):l}}var Zl=null;function If(){if(Zl===null)throw Error(o(459));var e=Zl;return Zl=null,e}function Pf(e){if(e===xa||e===uu)throw Error(o(483))}var pa=null,ln=0;function cu(e){var t=ln;return ln+=1,pa===null&&(pa=[]),Ff(pa,e,t)}function an(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function su(e,t){throw t.$$typeof===D?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function er(e){function t(v,h){if(e){var y=v.deletions;y===null?(v.deletions=[h],v.flags|=16):y.push(h)}}function l(v,h){if(!e)return null;for(;h!==null;)t(v,h),h=h.sibling;return null}function a(v){for(var h=new Map;v!==null;)v.key!==null?h.set(v.key,v):h.set(v.index,v),v=v.sibling;return h}function n(v,h){return v=Qt(v,h),v.index=0,v.sibling=null,v}function u(v,h,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<h?(v.flags|=67108866,h):y):(v.flags|=67108866,h)):(v.flags|=1048576,h)}function i(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function f(v,h,y,z){return h===null||h.tag!==6?(h=Ri(y,v.mode,z),h.return=v,h):(h=n(h,y),h.return=v,h)}function d(v,h,y,z){var Q=y.type;return Q===he?p(v,h,y.props.children,z,y.key):h!==null&&(h.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Je&&Vl(Q)===h.type)?(h=n(h,y.props),an(h,y),h.return=v,h):(h=eu(y.type,y.key,y.props,null,v.mode,z),an(h,y),h.return=v,h)}function g(v,h,y,z){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=Li(y,v.mode,z),h.return=v,h):(h=n(h,y.children||[]),h.return=v,h)}function p(v,h,y,z,Q){return h===null||h.tag!==7?(h=Ll(y,v.mode,z,Q),h.return=v,h):(h=n(h,y),h.return=v,h)}function A(v,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Ri(""+h,v.mode,y),h.return=v,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case K:return y=eu(h.type,h.key,h.props,null,v.mode,y),an(y,h),y.return=v,y;case P:return h=Li(h,v.mode,y),h.return=v,h;case Je:return h=Vl(h),A(v,h,y)}if(Ye(h)||q(h))return h=Ll(h,v.mode,y,null),h.return=v,h;if(typeof h.then=="function")return A(v,cu(h),y);if(h.$$typeof===B)return A(v,au(v,h),y);su(v,h)}return null}function b(v,h,y,z){var Q=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return Q!==null?null:f(v,h,""+y,z);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case K:return y.key===Q?d(v,h,y,z):null;case P:return y.key===Q?g(v,h,y,z):null;case Je:return y=Vl(y),b(v,h,y,z)}if(Ye(y)||q(y))return Q!==null?null:p(v,h,y,z,null);if(typeof y.then=="function")return b(v,h,cu(y),z);if(y.$$typeof===B)return b(v,h,au(v,y),z);su(v,y)}return null}function x(v,h,y,z,Q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(y)||null,f(h,v,""+z,Q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case K:return v=v.get(z.key===null?y:z.key)||null,d(h,v,z,Q);case P:return v=v.get(z.key===null?y:z.key)||null,g(h,v,z,Q);case Je:return z=Vl(z),x(v,h,y,z,Q)}if(Ye(z)||q(z))return v=v.get(y)||null,p(h,v,z,Q,null);if(typeof z.then=="function")return x(v,h,y,cu(z),Q);if(z.$$typeof===B)return x(v,h,y,au(h,z),Q);su(h,z)}return null}function H(v,h,y,z){for(var Q=null,ne=null,L=h,J=h=0,te=null;L!==null&&J<y.length;J++){L.index>J?(te=L,L=null):te=L.sibling;var ue=b(v,L,y[J],z);if(ue===null){L===null&&(L=te);break}e&&L&&ue.alternate===null&&t(v,L),h=u(ue,h,J),ne===null?Q=ue:ne.sibling=ue,ne=ue,L=te}if(J===y.length)return l(v,L),ae&&Yt(v,J),Q;if(L===null){for(;J<y.length;J++)L=A(v,y[J],z),L!==null&&(h=u(L,h,J),ne===null?Q=L:ne.sibling=L,ne=L);return ae&&Yt(v,J),Q}for(L=a(L);J<y.length;J++)te=x(L,v,J,y[J],z),te!==null&&(e&&te.alternate!==null&&L.delete(te.key===null?J:te.key),h=u(te,h,J),ne===null?Q=te:ne.sibling=te,ne=te);return e&&L.forEach(function(Ml){return t(v,Ml)}),ae&&Yt(v,J),Q}function Y(v,h,y,z){if(y==null)throw Error(o(151));for(var Q=null,ne=null,L=h,J=h=0,te=null,ue=y.next();L!==null&&!ue.done;J++,ue=y.next()){L.index>J?(te=L,L=null):te=L.sibling;var Ml=b(v,L,ue.value,z);if(Ml===null){L===null&&(L=te);break}e&&L&&Ml.alternate===null&&t(v,L),h=u(Ml,h,J),ne===null?Q=Ml:ne.sibling=Ml,ne=Ml,L=te}if(ue.done)return l(v,L),ae&&Yt(v,J),Q;if(L===null){for(;!ue.done;J++,ue=y.next())ue=A(v,ue.value,z),ue!==null&&(h=u(ue,h,J),ne===null?Q=ue:ne.sibling=ue,ne=ue);return ae&&Yt(v,J),Q}for(L=a(L);!ue.done;J++,ue=y.next())ue=x(L,v,J,ue.value,z),ue!==null&&(e&&ue.alternate!==null&&L.delete(ue.key===null?J:ue.key),h=u(ue,h,J),ne===null?Q=ue:ne.sibling=ue,ne=ue);return e&&L.forEach(function(Uh){return t(v,Uh)}),ae&&Yt(v,J),Q}function me(v,h,y,z){if(typeof y=="object"&&y!==null&&y.type===he&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case K:e:{for(var Q=y.key;h!==null;){if(h.key===Q){if(Q=y.type,Q===he){if(h.tag===7){l(v,h.sibling),z=n(h,y.props.children),z.return=v,v=z;break e}}else if(h.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Je&&Vl(Q)===h.type){l(v,h.sibling),z=n(h,y.props),an(z,y),z.return=v,v=z;break e}l(v,h);break}else t(v,h);h=h.sibling}y.type===he?(z=Ll(y.props.children,v.mode,z,y.key),z.return=v,v=z):(z=eu(y.type,y.key,y.props,null,v.mode,z),an(z,y),z.return=v,v=z)}return i(v);case P:e:{for(Q=y.key;h!==null;){if(h.key===Q)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){l(v,h.sibling),z=n(h,y.children||[]),z.return=v,v=z;break e}else{l(v,h);break}else t(v,h);h=h.sibling}z=Li(y,v.mode,z),z.return=v,v=z}return i(v);case Je:return y=Vl(y),me(v,h,y,z)}if(Ye(y))return H(v,h,y,z);if(q(y)){if(Q=q(y),typeof Q!="function")throw Error(o(150));return y=Q.call(y),Y(v,h,y,z)}if(typeof y.then=="function")return me(v,h,cu(y),z);if(y.$$typeof===B)return me(v,h,au(v,y),z);su(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(l(v,h.sibling),z=n(h,y),z.return=v,v=z):(l(v,h),z=Ri(y,v.mode,z),z.return=v,v=z),i(v)):l(v,h)}return function(v,h,y,z){try{ln=0;var Q=me(v,h,y,z);return pa=null,Q}catch(L){if(L===xa||L===uu)throw L;var ne=ft(29,L,null,v.mode);return ne.lanes=z,ne.return=v,ne}finally{}}}var kl=er(!0),tr=er(!1),rl=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ol(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ie&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Pn(e),Lf(e,null,l),t}return In(e,a,t,l),Pn(e)}function nn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ks(e,l)}}function Ii(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Pi=!1;function un(){if(Pi){var e=ba;if(e!==null)throw e}}function cn(e,t,l,a){Pi=!1;var n=e.updateQueue;rl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var d=f,g=d.next;d.next=null,i===null?u=g:i.next=g,i=d;var p=e.alternate;p!==null&&(p=p.updateQueue,f=p.lastBaseUpdate,f!==i&&(f===null?p.firstBaseUpdate=g:f.next=g,p.lastBaseUpdate=d))}if(u!==null){var A=n.baseState;i=0,p=g=d=null,f=u;do{var b=f.lane&-536870913,x=b!==f.lane;if(x?(ee&b)===b:(a&b)===b){b!==0&&b===ga&&(Pi=!0),p!==null&&(p=p.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var H=e,Y=f;b=t;var me=l;switch(Y.tag){case 1:if(H=Y.payload,typeof H=="function"){A=H.call(me,A,b);break e}A=H;break e;case 3:H.flags=H.flags&-65537|128;case 0:if(H=Y.payload,b=typeof H=="function"?H.call(me,A,b):H,b==null)break e;A=_({},A,b);break e;case 2:rl=!0}}b=f.callback,b!==null&&(e.flags|=64,x&&(e.flags|=8192),x=n.callbacks,x===null?n.callbacks=[b]:x.push(b))}else x={lane:b,tag:f.tag,payload:f.payload,callback:f.callback,next:null},p===null?(g=p=x,d=A):p=p.next=x,i|=b;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;x=f,f=x.next,x.next=null,n.lastBaseUpdate=x,n.shared.pending=null}}while(!0);p===null&&(d=A),n.baseState=d,n.firstBaseUpdate=g,n.lastBaseUpdate=p,u===null&&(n.shared.lanes=0),gl|=i,e.lanes=i,e.memoizedState=A}}function lr(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ar(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)lr(l[e],t)}var Sa=We(null),fu=We(0);function nr(e,t){e=It,ce(fu,e),ce(Sa,t),It=e|t.baseLanes}function ec(){ce(fu,It),ce(Sa,Sa.current)}function tc(){It=fu.current,Ne(Sa),Ne(fu)}var rt=We(null),zt=null;function ml(e){var t=e.alternate;ce(Me,Me.current&1),ce(rt,e),zt===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(zt=e)}function lc(e){ce(Me,Me.current),ce(rt,e),zt===null&&(zt=e)}function ur(e){e.tag===22?(ce(Me,Me.current),ce(rt,e),zt===null&&(zt=e)):hl()}function hl(){ce(Me,Me.current),ce(rt,rt.current)}function ot(e){Ne(rt),zt===e&&(zt=null),Ne(Me)}var Me=We(0);function ru(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ss(l)||fs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zt=0,w=null,oe=null,Oe=null,ou=!1,ja=!1,Kl=!1,du=0,sn=0,za=null,j0=0;function Ae(){throw Error(o(321))}function ac(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!st(e[l],t[l]))return!1;return!0}function nc(e,t,l,a,n,u){return Zt=u,w=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Xr:xc,Kl=!1,u=l(a,n),Kl=!1,ja&&(u=cr(t,l,a,n)),ir(e),u}function ir(e){N.H=on;var t=oe!==null&&oe.next!==null;if(Zt=0,Oe=oe=w=null,ou=!1,sn=0,za=null,t)throw Error(o(300));e===null||Ue||(e=e.dependencies,e!==null&&lu(e)&&(Ue=!0))}function cr(e,t,l,a){w=e;var n=0;do{if(ja&&(za=null),sn=0,ja=!1,25<=n)throw Error(o(301));if(n+=1,Oe=oe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=Vr,u=t(l,a)}while(ja);return u}function z0(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?fn(t):t,e=e.useState()[0],(oe!==null?oe.memoizedState:null)!==e&&(w.flags|=1024),t}function uc(){var e=du!==0;return du=0,e}function ic(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function cc(e){if(ou){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ou=!1}Zt=0,Oe=oe=w=null,ja=!1,sn=du=0,za=null}function $e(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?w.memoizedState=Oe=e:Oe=Oe.next=e,Oe}function Te(){if(oe===null){var e=w.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=Oe===null?w.memoizedState:Oe.next;if(t!==null)Oe=t,oe=e;else{if(e===null)throw w.alternate===null?Error(o(467)):Error(o(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},Oe===null?w.memoizedState=Oe=e:Oe=Oe.next=e}return Oe}function mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fn(e){var t=sn;return sn+=1,za===null&&(za=[]),e=Ff(za,e,t),t=w,(Oe===null?t.memoizedState:Oe.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Xr:xc),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fn(e);if(e.$$typeof===B)return Ze(e)}throw Error(o(438,String(e)))}function sc(e){var t=null,l=w.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=w.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=mu(),w.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=G;return t.index++,l}function kt(e,t){return typeof t=="function"?t(e):t}function vu(e){var t=Te();return fc(t,oe,e)}function fc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=i=null,d=null,g=t,p=!1;do{var A=g.lane&-536870913;if(A!==g.lane?(ee&A)===A:(Zt&A)===A){var b=g.revertLane;if(b===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),A===ga&&(p=!0);else if((Zt&b)===b){g=g.next,b===ga&&(p=!0);continue}else A={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},d===null?(f=d=A,i=u):d=d.next=A,w.lanes|=b,gl|=b;A=g.action,Kl&&l(u,A),u=g.hasEagerState?g.eagerState:l(u,A)}else b={lane:A,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},d===null?(f=d=b,i=u):d=d.next=b,w.lanes|=A,gl|=A;g=g.next}while(g!==null&&g!==t);if(d===null?i=u:d.next=f,!st(u,e.memoizedState)&&(Ue=!0,p&&(l=ba,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function rc(e){var t=Te(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);st(u,t.memoizedState)||(Ue=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function sr(e,t,l){var a=w,n=Te(),u=ae;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var i=!st((oe||n).memoizedState,l);if(i&&(n.memoizedState=l,Ue=!0),n=n.queue,mc(or.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||Oe!==null&&Oe.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},rr.bind(null,a,n,l,t),null),ve===null)throw Error(o(349));u||(Zt&127)!==0||fr(a,t,l)}return l}function fr(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=w.updateQueue,t===null?(t=mu(),w.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rr(e,t,l,a){t.value=l,t.getSnapshot=a,dr(t)&&mr(e)}function or(e,t,l){return l(function(){dr(t)&&mr(e)})}function dr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!st(e,l)}catch{return!0}}function mr(e){var t=Rl(e,2);t!==null&&nt(t,e,2)}function oc(e){var t=$e();if(typeof e=="function"){var l=e;if(e=l(),Kl){al(!0);try{l()}finally{al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:e},t}function hr(e,t,l,a){return e.baseState=l,fc(e,oe,typeof a=="function"?a:kt)}function N0(e,t,l,a,n){if(bu(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};N.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,vr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function vr(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=N.T,i={};N.T=i;try{var f=l(n,a),d=N.S;d!==null&&d(i,f),yr(e,t,f)}catch(g){dc(e,t,g)}finally{u!==null&&i.types!==null&&(u.types=i.types),N.T=u}}else try{u=l(n,a),yr(e,t,u)}catch(g){dc(e,t,g)}}function yr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){gr(e,t,a)},function(a){return dc(e,t,a)}):gr(e,t,l)}function gr(e,t,l){t.status="fulfilled",t.value=l,br(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,vr(e,l)))}function dc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,br(t),t=t.next;while(t!==a)}e.action=null}function br(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xr(e,t){return t}function pr(e,t){if(ae){var l=ve.formState;if(l!==null){e:{var a=w;if(ae){if(be){t:{for(var n=be,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){be=Nt(n.nextSibling),a=n.data==="F!";break e}}sl(a)}a=!1}a&&(t=l[0])}}return l=$e(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:t},l.queue=a,l=Gr.bind(null,w,a),a.dispatch=l,a=oc(!1),u=bc.bind(null,w,!1,a.queue),a=$e(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=N0.bind(null,w,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Sr(e){var t=Te();return jr(t,oe,e)}function jr(e,t,l){if(t=fc(e,t,xr)[0],e=vu(kt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fn(t)}catch(i){throw i===xa?uu:i}else a=t;t=Te();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(w.flags|=2048,Na(9,{destroy:void 0},A0.bind(null,n,l),null)),[a,u,e]}function A0(e,t){e.action=t}function zr(e){var t=Te(),l=oe;if(l!==null)return jr(t,l,e);Te(),t=t.memoizedState,l=Te();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Na(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=w.updateQueue,t===null&&(t=mu(),w.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Nr(){return Te().memoizedState}function yu(e,t,l,a){var n=$e();w.flags|=e,n.memoizedState=Na(1|t,{destroy:void 0},l,a===void 0?null:a)}function gu(e,t,l,a){var n=Te();a=a===void 0?null:a;var u=n.memoizedState.inst;oe!==null&&a!==null&&ac(a,oe.memoizedState.deps)?n.memoizedState=Na(t,u,l,a):(w.flags|=e,n.memoizedState=Na(1|t,u,l,a))}function Ar(e,t){yu(8390656,8,e,t)}function mc(e,t){gu(2048,8,e,t)}function E0(e){w.flags|=4;var t=w.updateQueue;if(t===null)t=mu(),w.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Er(e){var t=Te().memoizedState;return E0({ref:t,nextImpl:e}),function(){if((ie&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Mr(e,t){return gu(4,2,e,t)}function Tr(e,t){return gu(4,4,e,t)}function Dr(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _r(e,t,l){l=l!=null?l.concat([e]):null,gu(4,4,Dr.bind(null,t,e),l)}function hc(){}function Or(e,t){var l=Te();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ac(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Ur(e,t){var l=Te();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ac(t,a[1]))return a[0];if(a=e(),Kl){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a}function vc(e,t,l){return l===void 0||(Zt&1073741824)!==0&&(ee&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Co(),w.lanes|=e,gl|=e,l)}function Br(e,t,l,a){return st(l,t)?l:Sa.current!==null?(e=vc(e,l,a),st(e,t)||(Ue=!0),e):(Zt&42)===0||(Zt&1073741824)!==0&&(ee&261930)===0?(Ue=!0,e.memoizedState=l):(e=Co(),w.lanes|=e,gl|=e,t)}function Cr(e,t,l,a,n){var u=U.p;U.p=u!==0&&8>u?u:8;var i=N.T,f={};N.T=f,bc(e,!1,t,l);try{var d=n(),g=N.S;if(g!==null&&g(f,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var p=S0(d,a);rn(e,t,p,ht(e))}else rn(e,t,a,ht(e))}catch(A){rn(e,t,{then:function(){},status:"rejected",reason:A},ht())}finally{U.p=u,i!==null&&f.types!==null&&(i.types=f.types),N.T=i}}function M0(){}function yc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=qr(e).queue;Cr(e,n,t,k,l===null?M0:function(){return Hr(e),l(a)})}function qr(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:k},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:kt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Hr(e){var t=qr(e);t.next===null&&(t=e.alternate.memoizedState),rn(e,t.next.queue,{},ht())}function gc(){return Ze(Mn)}function Rr(){return Te().memoizedState}function Lr(){return Te().memoizedState}function T0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ht();e=ol(l);var a=dl(t,e,l);a!==null&&(nt(a,t,l),nn(a,t,l)),t={cache:Ki()},e.payload=t;return}t=t.return}}function D0(e,t,l){var a=ht();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bu(e)?Qr(t,l):(l=qi(e,t,l,a),l!==null&&(nt(l,e,a),Yr(l,t,a)))}function Gr(e,t,l){var a=ht();rn(e,t,l,a)}function rn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(bu(e))Qr(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,f=u(i,l);if(n.hasEagerState=!0,n.eagerState=f,st(f,i))return In(e,t,n,0),ve===null&&Fn(),!1}catch{}finally{}if(l=qi(e,t,n,a),l!==null)return nt(l,e,a),Yr(l,t,a),!0}return!1}function bc(e,t,l,a){if(a={lane:2,revertLane:$c(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bu(e)){if(t)throw Error(o(479))}else t=qi(e,l,a,2),t!==null&&nt(t,e,2)}function bu(e){var t=e.alternate;return e===w||t!==null&&t===w}function Qr(e,t){ja=ou=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Yr(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ks(e,l)}}var on={readContext:Ze,use:hu,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useLayoutEffect:Ae,useInsertionEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useSyncExternalStore:Ae,useId:Ae,useHostTransitionStatus:Ae,useFormState:Ae,useActionState:Ae,useOptimistic:Ae,useMemoCache:Ae,useCacheRefresh:Ae};on.useEffectEvent=Ae;var Xr={readContext:Ze,use:hu,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Ar,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,yu(4194308,4,Dr.bind(null,t,e),l)},useLayoutEffect:function(e,t){return yu(4194308,4,e,t)},useInsertionEffect:function(e,t){yu(4,2,e,t)},useMemo:function(e,t){var l=$e();t=t===void 0?null:t;var a=e();if(Kl){al(!0);try{e()}finally{al(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=$e();if(l!==void 0){var n=l(t);if(Kl){al(!0);try{l(t)}finally{al(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=D0.bind(null,w,e),[a.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:function(e){e=oc(e);var t=e.queue,l=Gr.bind(null,w,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:hc,useDeferredValue:function(e,t){var l=$e();return vc(l,e,t)},useTransition:function(){var e=oc(!1);return e=Cr.bind(null,w,e.queue,!0,!1),$e().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=w,n=$e();if(ae){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),ve===null)throw Error(o(349));(ee&127)!==0||fr(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Ar(or.bind(null,a,u,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},rr.bind(null,a,u,l,t),null),l},useId:function(){var e=$e(),t=ve.identifierPrefix;if(ae){var l=Ct,a=Bt;l=(a&~(1<<32-ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=du++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=j0++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:gc,useFormState:pr,useActionState:pr,useOptimistic:function(e){var t=$e();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=bc.bind(null,w,!0,l),l.dispatch=t,[e,t]},useMemoCache:sc,useCacheRefresh:function(){return $e().memoizedState=T0.bind(null,w)},useEffectEvent:function(e){var t=$e(),l={impl:e};return t.memoizedState=l,function(){if((ie&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},xc={readContext:Ze,use:hu,useCallback:Or,useContext:Ze,useEffect:mc,useImperativeHandle:_r,useInsertionEffect:Mr,useLayoutEffect:Tr,useMemo:Ur,useReducer:vu,useRef:Nr,useState:function(){return vu(kt)},useDebugValue:hc,useDeferredValue:function(e,t){var l=Te();return Br(l,oe.memoizedState,e,t)},useTransition:function(){var e=vu(kt)[0],t=Te().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:sr,useId:Rr,useHostTransitionStatus:gc,useFormState:Sr,useActionState:Sr,useOptimistic:function(e,t){var l=Te();return hr(l,oe,e,t)},useMemoCache:sc,useCacheRefresh:Lr};xc.useEffectEvent=Er;var Vr={readContext:Ze,use:hu,useCallback:Or,useContext:Ze,useEffect:mc,useImperativeHandle:_r,useInsertionEffect:Mr,useLayoutEffect:Tr,useMemo:Ur,useReducer:rc,useRef:Nr,useState:function(){return rc(kt)},useDebugValue:hc,useDeferredValue:function(e,t){var l=Te();return oe===null?vc(l,e,t):Br(l,oe.memoizedState,e,t)},useTransition:function(){var e=rc(kt)[0],t=Te().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:sr,useId:Rr,useHostTransitionStatus:gc,useFormState:zr,useActionState:zr,useOptimistic:function(e,t){var l=Te();return oe!==null?hr(l,oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:sc,useCacheRefresh:Lr};Vr.useEffectEvent=Er;function pc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:_({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Sc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=ht(),n=ol(a);n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(nt(t,e,a),nn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=ht(),n=ol(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=dl(e,n,a),t!==null&&(nt(t,e,a),nn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ht(),a=ol(l);a.tag=2,t!=null&&(a.callback=t),t=dl(e,a,l),t!==null&&(nt(t,e,l),nn(t,e,l))}};function Zr(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!$a(l,a)||!$a(n,u):!0}function kr(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Sc.enqueueReplaceState(t,t.state,null)}function wl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=_({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Kr(e){$n(e)}function wr(e){console.error(e)}function Jr(e){$n(e)}function xu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Wr(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function jc(e,t,l){return l=ol(l),l.tag=3,l.payload={element:null},l.callback=function(){xu(e,t)},l}function $r(e){return e=ol(e),e.tag=3,e}function Fr(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Wr(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){Wr(t,l,a),typeof n!="function"&&(bl===null?bl=new Set([this]):bl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function _0(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ya(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return zt===null?Ou():l.alternate===null&&Ee===0&&(Ee=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===iu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),wc(e,a,n)),!1;case 22:return l.flags|=65536,a===iu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),wc(e,a,n)),!1}throw Error(o(435,l.tag))}return wc(e,a,n),Ou(),!1}if(ae)return t=rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Yi&&(e=Error(o(422),{cause:a}),Pa(xt(e,l)))):(a!==Yi&&(t=Error(o(423),{cause:a}),Pa(xt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=xt(a,l),n=jc(e.stateNode,a,n),Ii(e,n),Ee!==4&&(Ee=2)),!1;var u=Error(o(520),{cause:a});if(u=xt(u,l),xn===null?xn=[u]:xn.push(u),Ee!==4&&(Ee=2),t===null)return!0;a=xt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=jc(l.stateNode,a,e),Ii(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(bl===null||!bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=$r(n),Fr(n,e,l,a),Ii(l,n),!1}l=l.return}while(l!==null);return!1}var zc=Error(o(461)),Ue=!1;function ke(e,t,l,a){t.child=e===null?tr(t,null,l,a):kl(t,e.child,l,a)}function Ir(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return Yl(t),a=nc(e,t,l,i,u,n),f=uc(),e!==null&&!Ue?(ic(e,t,n),Kt(e,t,n)):(ae&&f&&Gi(t),t.flags|=1,ke(e,t,a,n),t.child)}function Pr(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Hi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,eo(e,t,u,a,n)):(e=eu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Oc(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:$a,l(i,a)&&e.ref===t.ref)return Kt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function eo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if($a(u,a)&&e.ref===t.ref)if(Ue=!1,t.pendingProps=a=u,Oc(e,n))(e.flags&131072)!==0&&(Ue=!0);else return t.lanes=e.lanes,Kt(e,t,n)}return Nc(e,t,l,a,n)}function to(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return lo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&nu(t,u!==null?u.cachePool:null),u!==null?nr(t,u):ec(),ur(t);else return a=t.lanes=536870912,lo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(nu(t,u.cachePool),nr(t,u),hl(),t.memoizedState=null):(e!==null&&nu(t,null),ec(),hl());return ke(e,t,n,l),t.child}function dn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lo(e,t,l,a,n){var u=Ji();return u=u===null?null:{parent:_e._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&nu(t,null),ec(),ur(t),e!==null&&ya(e,t,a,!0),t.childLanes=n,null}function pu(e,t){return t=ju({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ao(e,t,l){return kl(t,e.child,null,l),e=pu(t,t.pendingProps),e.flags|=2,ot(t),t.memoizedState=null,e}function O0(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ae){if(a.mode==="hidden")return e=pu(t,a),t.lanes=536870912,dn(null,e);if(lc(t),(e=be)?(e=yd(e,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:Bt,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Qf(e),l.return=t,t.child=l,Ve=t,be=null)):e=null,e===null)throw sl(t);return t.lanes=536870912,null}return pu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(lc(t),n)if(t.flags&256)t.flags&=-257,t=ao(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ue||ya(e,t,l,!1),n=(l&e.childLanes)!==0,Ue||n){if(a=ve,a!==null&&(i=Ks(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Rl(e,i),nt(a,e,i),zc;Ou(),t=ao(e,t,l)}else e=u.treeContext,be=Nt(i.nextSibling),Ve=t,ae=!0,cl=null,jt=!1,e!==null&&Vf(t,e),t=pu(t,a),t.flags|=4096;return t}return e=Qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Su(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Nc(e,t,l,a,n){return Yl(t),l=nc(e,t,l,a,void 0,n),a=uc(),e!==null&&!Ue?(ic(e,t,n),Kt(e,t,n)):(ae&&a&&Gi(t),t.flags|=1,ke(e,t,l,n),t.child)}function no(e,t,l,a,n,u){return Yl(t),t.updateQueue=null,l=cr(t,a,l,n),ir(e),a=uc(),e!==null&&!Ue?(ic(e,t,u),Kt(e,t,u)):(ae&&a&&Gi(t),t.flags|=1,ke(e,t,l,u),t.child)}function uo(e,t,l,a,n){if(Yl(t),t.stateNode===null){var u=da,i=l.contextType;typeof i=="object"&&i!==null&&(u=Ze(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Sc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},$i(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?Ze(i):da,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(pc(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Sc.enqueueReplaceState(u,u.state,null),cn(t,a,u,n),un(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,d=wl(l,f);u.props=d;var g=u.context,p=l.contextType;i=da,typeof p=="object"&&p!==null&&(i=Ze(p));var A=l.getDerivedStateFromProps;p=typeof A=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,p||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||g!==i)&&kr(t,u,a,i),rl=!1;var b=t.memoizedState;u.state=b,cn(t,a,u,n),un(),g=t.memoizedState,f||b!==g||rl?(typeof A=="function"&&(pc(t,l,A,a),g=t.memoizedState),(d=rl||Zr(t,l,d,a,b,g,i))?(p||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=g),u.props=a,u.state=g,u.context=i,a=d):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Fi(e,t),i=t.memoizedProps,p=wl(l,i),u.props=p,A=t.pendingProps,b=u.context,g=l.contextType,d=da,typeof g=="object"&&g!==null&&(d=Ze(g)),f=l.getDerivedStateFromProps,(g=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==A||b!==d)&&kr(t,u,a,d),rl=!1,b=t.memoizedState,u.state=b,cn(t,a,u,n),un();var x=t.memoizedState;i!==A||b!==x||rl||e!==null&&e.dependencies!==null&&lu(e.dependencies)?(typeof f=="function"&&(pc(t,l,f,a),x=t.memoizedState),(p=rl||Zr(t,l,p,a,b,x,d)||e!==null&&e.dependencies!==null&&lu(e.dependencies))?(g||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,x,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,x,d)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=x),u.props=a,u.state=x,u.context=d,a=p):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&b===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&b===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Su(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=kl(t,e.child,null,n),t.child=kl(t,null,l,n)):ke(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Kt(e,t,n),e}function io(e,t,l,a){return Gl(),t.flags|=256,ke(e,t,l,a),t.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ec(e){return{baseLanes:e,cachePool:Wf()}}function Mc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=mt),e}function co(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(Me.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ae){if(n?ml(t):hl(),(e=be)?(e=yd(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:Bt,overflow:Ct}:null,retryLane:536870912,hydrationErrors:null},l=Qf(e),l.return=t,t.child=l,Ve=t,be=null)):e=null,e===null)throw sl(t);return fs(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(hl(),n=t.mode,f=ju({mode:"hidden",children:f},n),a=Ll(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=Ec(l),a.childLanes=Mc(e,i,l),t.memoizedState=Ac,dn(null,a)):(ml(t),Tc(t,f))}var d=e.memoizedState;if(d!==null&&(f=d.dehydrated,f!==null)){if(u)t.flags&256?(ml(t),t.flags&=-257,t=Dc(e,t,l)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),f=a.fallback,n=t.mode,a=ju({mode:"visible",children:a.children},n),f=Ll(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,kl(t,e.child,null,l),a=t.child,a.memoizedState=Ec(l),a.childLanes=Mc(e,i,l),t.memoizedState=Ac,t=dn(null,a));else if(ml(t),fs(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var g=i.dgst;i=g,a=Error(o(419)),a.stack="",a.digest=i,Pa({value:a,source:null,stack:null}),t=Dc(e,t,l)}else if(Ue||ya(e,t,l,!1),i=(l&e.childLanes)!==0,Ue||i){if(i=ve,i!==null&&(a=Ks(i,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,Rl(e,a),nt(i,e,a),zc;ss(f)||Ou(),t=Dc(e,t,l)}else ss(f)?(t.flags|=192,t.child=e.child,t=null):(e=d.treeContext,be=Nt(f.nextSibling),Ve=t,ae=!0,cl=null,jt=!1,e!==null&&Vf(t,e),t=Tc(t,a.children),t.flags|=4096);return t}return n?(hl(),f=a.fallback,n=t.mode,d=e.child,g=d.sibling,a=Qt(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,g!==null?f=Qt(g,f):(f=Ll(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,dn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=Ec(l):(n=f.cachePool,n!==null?(d=_e._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Wf(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Mc(e,i,l),t.memoizedState=Ac,dn(e.child,a)):(ml(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Tc(e,t){return t=ju({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ju(e,t){return e=ft(22,e,null,t),e.lanes=0,e}function Dc(e,t,l){return kl(t,e.child,null,l),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function so(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Zi(e.return,t,l)}function _c(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function fo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Me.current,f=(i&2)!==0;if(f?(i=i&1|2,t.flags|=128):i&=1,ce(Me,i),ke(e,t,a,l),a=ae?Ia:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&so(e,l,t);else if(e.tag===19)so(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&ru(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),_c(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ru(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}_c(t,!0,l,null,u,a);break;case"together":_c(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Kt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),gl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ya(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&lu(e)))}function U0(e,t,l){switch(t.tag){case 3:Bn(t,t.stateNode.containerInfo),fl(t,_e,e.memoizedState.cache),Gl();break;case 27:case 5:ti(t);break;case 4:Bn(t,t.stateNode.containerInfo);break;case 10:fl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ml(t),t.flags|=128,null):(l&t.child.childLanes)!==0?co(e,t,l):(ml(t),e=Kt(e,t,l),e!==null?e.sibling:null);ml(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ya(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return fo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),ce(Me,Me.current),a)break;return null;case 22:return t.lanes=0,to(e,t,l,t.pendingProps);case 24:fl(t,_e,e.memoizedState.cache)}return Kt(e,t,l)}function ro(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ue=!0;else{if(!Oc(e,l)&&(t.flags&128)===0)return Ue=!1,U0(e,t,l);Ue=(e.flags&131072)!==0}else Ue=!1,ae&&(t.flags&1048576)!==0&&Xf(t,Ia,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Vl(t.elementType),t.type=e,typeof e=="function")Hi(e)?(a=wl(e,a),t.tag=1,t=uo(null,t,e,a,l)):(t.tag=0,t=Nc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Z){t.tag=11,t=Ir(null,t,e,a,l);break e}else if(n===Re){t.tag=14,t=Pr(null,t,e,a,l);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return Nc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=wl(a,t.pendingProps),uo(e,t,a,n,l);case 3:e:{if(Bn(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Fi(e,t),cn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,fl(t,_e,a),a!==u.cache&&ki(t,[_e],l,!0),un(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=io(e,t,a,l);break e}else if(a!==n){n=xt(Error(o(424)),t),Pa(n),t=io(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(be=Nt(e.firstChild),Ve=t,ae=!0,cl=null,jt=!0,l=tr(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),a===n){t=Kt(e,t,l);break e}ke(e,t,a,l)}t=t.child}return t;case 26:return Su(e,t),e===null?(l=jd(t.type,null,t.pendingProps,null))?t.memoizedState=l:ae||(l=t.type,e=t.pendingProps,a=Lu(ll.current).createElement(l),a[Xe]=t,a[Ie]=e,Ke(a,l,e),Ge(a),t.stateNode=a):t.memoizedState=jd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ti(t),e===null&&ae&&(a=t.stateNode=xd(t.type,t.pendingProps,ll.current),Ve=t,jt=!0,n=be,jl(t.type)?(rs=n,be=Nt(a.firstChild)):be=n),ke(e,t,t.pendingProps.children,l),Su(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ae&&((n=a=be)&&(a=sh(a,t.type,t.pendingProps,jt),a!==null?(t.stateNode=a,Ve=t,be=Nt(a.firstChild),jt=!1,n=!0):n=!1),n||sl(t)),ti(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,us(n,u)?a=null:i!==null&&us(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=nc(e,t,z0,null,null,l),Mn._currentValue=n),Su(e,t),ke(e,t,a,l),t.child;case 6:return e===null&&ae&&((e=l=be)&&(l=fh(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Ve=t,be=null,e=!0):e=!1),e||sl(t)),null;case 13:return co(e,t,l);case 4:return Bn(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=kl(t,null,a,l):ke(e,t,a,l),t.child;case 11:return Ir(e,t,t.type,t.pendingProps,l);case 7:return ke(e,t,t.pendingProps,l),t.child;case 8:return ke(e,t,t.pendingProps.children,l),t.child;case 12:return ke(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,fl(t,t.type,a.value),ke(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Yl(t),n=Ze(n),a=a(n),t.flags|=1,ke(e,t,a,l),t.child;case 14:return Pr(e,t,t.type,t.pendingProps,l);case 15:return eo(e,t,t.type,t.pendingProps,l);case 19:return fo(e,t,l);case 31:return O0(e,t,l);case 22:return to(e,t,l,t.pendingProps);case 24:return Yl(t),a=Ze(_e),e===null?(n=Ji(),n===null&&(n=ve,u=Ki(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},$i(t),fl(t,_e,n)):((e.lanes&l)!==0&&(Fi(e,t),cn(t,null,null,l),un()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),fl(t,_e,a)):(a=u.cache,fl(t,_e,a),a!==n.cache&&ki(t,[_e],l,!0))),ke(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function wt(e){e.flags|=4}function Uc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Lo())e.flags|=8192;else throw Zl=iu,Wi}else e.flags&=-16777217}function oo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Md(t))if(Lo())e.flags|=8192;else throw Zl=iu,Wi}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vs():536870912,e.lanes|=t,Ta|=t)}function mn(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function B0(e,t,l){var a=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return xe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vt(_e),Il(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(va(t)?wt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xi())),xe(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(wt(t),u!==null?(xe(t),oo(t,u)):(xe(t),Uc(t,n,null,a,l))):u?u!==e.memoizedState?(wt(t),xe(t),oo(t,u)):(xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&wt(t),xe(t),Uc(t,n,e,a,l)),null;case 27:if(Cn(t),l=ll.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return xe(t),null}e=Le.current,va(t)?Zf(t):(e=xd(n,a,l),t.stateNode=e,wt(t))}return xe(t),null;case 5:if(Cn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return xe(t),null}if(u=Le.current,va(t))Zf(t);else{var i=Lu(ll.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Xe]=t,u[Ie]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ke(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&wt(t)}}return xe(t),Uc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&wt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ll.current,va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ve,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||sd(e.nodeValue,l)),e||sl(t,!0)}else e=Lu(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return xe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Xe]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xe(t),e=!1}else l=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ot(t),t):(ot(t),null);if((t.flags&128)!==0)throw Error(o(558))}return xe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Xe]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;xe(t),n=!1}else n=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ot(t),t):(ot(t),null)}return ot(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),zu(t,t.updateQueue),xe(t),null);case 4:return Il(),e===null&&es(t.stateNode.containerInfo),xe(t),null;case 10:return Vt(t.type),xe(t),null;case 19:if(Ne(Me),a=t.memoizedState,a===null)return xe(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)mn(a,!1);else{if(Ee!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ru(e),u!==null){for(t.flags|=128,mn(a,!1),e=u.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Gf(l,e),l=l.sibling;return ce(Me,Me.current&1|2),ae&&Yt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ut()>Tu&&(t.flags|=128,n=!0,mn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ru(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ae)return xe(t),null}else 2*ut()-a.renderingStartTime>Tu&&l!==536870912&&(t.flags|=128,n=!0,mn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ut(),e.sibling=null,l=Me.current,ce(Me,n?l&1|2:l&1),ae&&Yt(t,a.treeForkCount),e):(xe(t),null);case 22:case 23:return ot(t),tc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),l=t.updateQueue,l!==null&&zu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&Ne(Xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(_e),xe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function C0(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vt(_e),Il(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cn(t),null;case 31:if(t.memoizedState!==null){if(ot(t),t.alternate===null)throw Error(o(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(Me),null;case 4:return Il(),null;case 10:return Vt(t.type),null;case 22:case 23:return ot(t),tc(),e!==null&&Ne(Xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(_e),null;case 25:return null;default:return null}}function mo(e,t){switch(Qi(t),t.tag){case 3:Vt(_e),Il();break;case 26:case 27:case 5:Cn(t);break;case 4:Il();break;case 31:t.memoizedState!==null&&ot(t);break;case 13:ot(t);break;case 19:Ne(Me);break;case 10:Vt(t.type);break;case 22:case 23:ot(t),tc(),e!==null&&Ne(Xl);break;case 24:Vt(_e)}}function hn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(f){re(t,t.return,f)}}function vl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=t;var d=l,g=f;try{g()}catch(p){re(n,d,p)}}}a=a.next}while(a!==u)}}catch(p){re(t,t.return,p)}}function ho(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ar(t,l)}catch(a){re(e,e.return,a)}}}function vo(e,t,l){l.props=wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){re(e,t,a)}}function vn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){re(e,t,n)}}function qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){re(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){re(e,t,n)}else l.current=null}function yo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){re(e,e.return,n)}}function Bc(e,t,l){try{var a=e.stateNode;lh(a,e.type,l,t),a[Ie]=t}catch(n){re(e,e.return,n)}}function go(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jl(e.type)||e.tag===4}function Cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||go(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&jl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Lt));else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(qc(e,t,l),e=e.sibling;e!==null;)qc(e,t,l),e=e.sibling}function Nu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Nu(e,t,l),e=e.sibling;e!==null;)Nu(e,t,l),e=e.sibling}function bo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ke(t,a,l),t[Xe]=e,t[Ie]=l}catch(u){re(e,e.return,u)}}var Jt=!1,Be=!1,Hc=!1,xo=typeof WeakSet=="function"?WeakSet:Set,Qe=null;function q0(e,t){if(e=e.containerInfo,as=ku,e=_f(e),Di(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,f=-1,d=-1,g=0,p=0,A=e,b=null;t:for(;;){for(var x;A!==l||n!==0&&A.nodeType!==3||(f=i+n),A!==u||a!==0&&A.nodeType!==3||(d=i+a),A.nodeType===3&&(i+=A.nodeValue.length),(x=A.firstChild)!==null;)b=A,A=x;for(;;){if(A===e)break t;if(b===l&&++g===n&&(f=i),b===u&&++p===a&&(d=i),(x=A.nextSibling)!==null)break;A=b,b=A.parentNode}A=x}l=f===-1||d===-1?null:{start:f,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(ns={focusedElem:e,selectionRange:l},ku=!1,Qe=t;Qe!==null;)if(t=Qe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Qe=e;else for(;Qe!==null;){switch(t=Qe,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var H=wl(l.type,n);e=a.getSnapshotBeforeUpdate(H,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(Y){re(l,l.return,Y)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)cs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Qe=e;break}Qe=t.return}}function po(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:$t(e,l),a&4&&hn(5,l);break;case 1:if($t(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){re(l,l.return,i)}else{var n=wl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){re(l,l.return,i)}}a&64&&ho(l),a&512&&vn(l,l.return);break;case 3:if($t(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ar(e,t)}catch(i){re(l,l.return,i)}}break;case 27:t===null&&a&4&&bo(l);case 26:case 5:$t(e,l),t===null&&a&4&&yo(l),a&512&&vn(l,l.return);break;case 12:$t(e,l);break;case 31:$t(e,l),a&4&&zo(e,l);break;case 13:$t(e,l),a&4&&No(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Z0.bind(null,l),rh(e,l))));break;case 22:if(a=l.memoizedState!==null||Jt,!a){t=t!==null&&t.memoizedState!==null||Be,n=Jt;var u=Be;Jt=a,(Be=t)&&!u?Ft(e,l,(l.subtreeFlags&8772)!==0):$t(e,l),Jt=n,Be=u}break;case 30:break;default:$t(e,l)}}function So(e){var t=e.alternate;t!==null&&(e.alternate=null,So(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&di(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var je=null,et=!1;function Wt(e,t,l){for(l=l.child;l!==null;)jo(e,t,l),l=l.sibling}function jo(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(La,l)}catch{}switch(l.tag){case 26:Be||qt(l,t),Wt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Be||qt(l,t);var a=je,n=et;jl(l.type)&&(je=l.stateNode,et=!1),Wt(e,t,l),Nn(l.stateNode),je=a,et=n;break;case 5:Be||qt(l,t);case 6:if(a=je,n=et,je=null,Wt(e,t,l),je=a,et=n,je!==null)if(et)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(l.stateNode)}catch(u){re(l,t,u)}else try{je.removeChild(l.stateNode)}catch(u){re(l,t,u)}break;case 18:je!==null&&(et?(e=je,hd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ha(e)):hd(je,l.stateNode));break;case 4:a=je,n=et,je=l.stateNode.containerInfo,et=!0,Wt(e,t,l),je=a,et=n;break;case 0:case 11:case 14:case 15:vl(2,l,t),Be||vl(4,l,t),Wt(e,t,l);break;case 1:Be||(qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&vo(l,t,a)),Wt(e,t,l);break;case 21:Wt(e,t,l);break;case 22:Be=(a=Be)||l.memoizedState!==null,Wt(e,t,l),Be=a;break;default:Wt(e,t,l)}}function zo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ha(e)}catch(l){re(t,t.return,l)}}}function No(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ha(e)}catch(l){re(t,t.return,l)}}function H0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xo),t;default:throw Error(o(435,e.tag))}}function Au(e,t){var l=H0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=k0.bind(null,e,a);a.then(n,n)}})}function tt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,f=i;e:for(;f!==null;){switch(f.tag){case 27:if(jl(f.type)){je=f.stateNode,et=!1;break e}break;case 5:je=f.stateNode,et=!1;break e;case 3:case 4:je=f.stateNode.containerInfo,et=!0;break e}f=f.return}if(je===null)throw Error(o(160));jo(u,i,n),je=null,et=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ao(t,e),t=t.sibling}var Tt=null;function Ao(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tt(t,e),lt(e),a&4&&(vl(3,e,e.return),hn(3,e),vl(5,e,e.return));break;case 1:tt(t,e),lt(e),a&512&&(Be||l===null||qt(l,l.return)),a&64&&Jt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Tt;if(tt(t,e),lt(e),a&512&&(Be||l===null||qt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ya]||u[Xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ke(u,a,l),u[Xe]=e,Ge(u),a=u;break e;case"link":var i=Ad("link","href",n).get(a+(l.href||""));if(i){for(var f=0;f<i.length;f++)if(u=i[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(f,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Ad("meta","content",n).get(a+(l.content||""))){for(f=0;f<i.length;f++)if(u=i[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(f,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Xe]=e,Ge(u),a=u}e.stateNode=a}else Ed(n,e.type,e.stateNode);else e.stateNode=Nd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Ed(n,e.type,e.stateNode):Nd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Bc(e,e.memoizedProps,l.memoizedProps)}break;case 27:tt(t,e),lt(e),a&512&&(Be||l===null||qt(l,l.return)),l!==null&&a&4&&Bc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(tt(t,e),lt(e),a&512&&(Be||l===null||qt(l,l.return)),e.flags&32){n=e.stateNode;try{ua(n,"")}catch(H){re(e,e.return,H)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Bc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Hc=!0);break;case 6:if(tt(t,e),lt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(H){re(e,e.return,H)}}break;case 3:if(Yu=null,n=Tt,Tt=Gu(t.containerInfo),tt(t,e),Tt=n,lt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(H){re(e,e.return,H)}Hc&&(Hc=!1,Eo(e));break;case 4:a=Tt,Tt=Gu(e.stateNode.containerInfo),tt(t,e),lt(e),Tt=a;break;case 12:tt(t,e),lt(e);break;case 31:tt(t,e),lt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 13:tt(t,e),lt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mu=ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 22:n=e.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,g=Jt,p=Be;if(Jt=g||n,Be=p||d,tt(t,e),Be=p,Jt=g,lt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||d||Jt||Be||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){d=l=t;try{if(u=d.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=d.stateNode;var A=d.memoizedProps.style,b=A!=null&&A.hasOwnProperty("display")?A.display:null;f.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(H){re(d,d.return,H)}}}else if(t.tag===6){if(l===null){d=t;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(H){re(d,d.return,H)}}}else if(t.tag===18){if(l===null){d=t;try{var x=d.stateNode;n?vd(x,!0):vd(d.stateNode,!1)}catch(H){re(d,d.return,H)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Au(e,l))));break;case 19:tt(t,e),lt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Au(e,a)));break;case 30:break;case 21:break;default:tt(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(go(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Cc(e);Nu(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ua(i,""),l.flags&=-33);var f=Cc(e);Nu(e,f,i);break;case 3:case 4:var d=l.stateNode.containerInfo,g=Cc(e);qc(e,g,d);break;default:throw Error(o(161))}}catch(p){re(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Eo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $t(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)po(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Jl(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&vo(t,t.return,l),Jl(t);break;case 27:Nn(t.stateNode);case 26:case 5:qt(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Ft(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Ft(n,u,l),hn(4,u);break;case 1:if(Ft(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){re(a,a.return,g)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)lr(d[n],f)}catch(g){re(a,a.return,g)}}l&&i&64&&ho(u),vn(u,u.return);break;case 27:bo(u);case 26:case 5:Ft(n,u,l),l&&a===null&&i&4&&yo(u),vn(u,u.return);break;case 12:Ft(n,u,l);break;case 31:Ft(n,u,l),l&&i&4&&zo(n,u);break;case 13:Ft(n,u,l),l&&i&4&&No(n,u);break;case 22:u.memoizedState===null&&Ft(n,u,l),vn(u,u.return);break;case 30:break;default:Ft(n,u,l)}t=t.sibling}}function Rc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&en(l))}function Lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&en(e))}function Dt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mo(e,t,l,a),t=t.sibling}function Mo(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Dt(e,t,l,a),n&2048&&hn(9,t);break;case 1:Dt(e,t,l,a);break;case 3:Dt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&en(e)));break;case 12:if(n&2048){Dt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(d){re(t,t.return,d)}}else Dt(e,t,l,a);break;case 31:Dt(e,t,l,a);break;case 13:Dt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Dt(e,t,l,a):yn(e,t):u._visibility&2?Dt(e,t,l,a):(u._visibility|=2,Aa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Rc(i,t);break;case 24:Dt(e,t,l,a),n&2048&&Lc(t.alternate,t);break;default:Dt(e,t,l,a)}}function Aa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,f=l,d=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:Aa(u,i,f,d,n),hn(8,i);break;case 23:break;case 22:var p=i.stateNode;i.memoizedState!==null?p._visibility&2?Aa(u,i,f,d,n):yn(u,i):(p._visibility|=2,Aa(u,i,f,d,n)),n&&g&2048&&Rc(i.alternate,i);break;case 24:Aa(u,i,f,d,n),n&&g&2048&&Lc(i.alternate,i);break;default:Aa(u,i,f,d,n)}t=t.sibling}}function yn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:yn(l,a),n&2048&&Rc(a.alternate,a);break;case 24:yn(l,a),n&2048&&Lc(a.alternate,a);break;default:yn(l,a)}t=t.sibling}}var gn=8192;function Ea(e,t,l){if(e.subtreeFlags&gn)for(e=e.child;e!==null;)To(e,t,l),e=e.sibling}function To(e,t,l){switch(e.tag){case 26:Ea(e,t,l),e.flags&gn&&e.memoizedState!==null&&jh(l,Tt,e.memoizedState,e.memoizedProps);break;case 5:Ea(e,t,l);break;case 3:case 4:var a=Tt;Tt=Gu(e.stateNode.containerInfo),Ea(e,t,l),Tt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,Ea(e,t,l),gn=a):Ea(e,t,l));break;default:Ea(e,t,l)}}function Do(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function bn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Qe=a,Oo(a,e)}Do(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_o(e),e=e.sibling}function _o(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&vl(9,e,e.return);break;case 3:bn(e);break;case 12:bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Eu(e)):bn(e);break;default:bn(e)}}function Eu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Qe=a,Oo(a,e)}Do(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),Eu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Eu(t));break;default:Eu(t)}e=e.sibling}}function Oo(e,t){for(;Qe!==null;){var l=Qe;switch(l.tag){case 0:case 11:case 15:vl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:en(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Qe=a;else e:for(l=e;Qe!==null;){a=Qe;var n=a.sibling,u=a.return;if(So(a),a===l){Qe=null;break e}if(n!==null){n.return=u,Qe=n;break e}Qe=u}}}var R0={getCacheForType:function(e){var t=Ze(_e),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ze(_e).controller.signal}},L0=typeof WeakMap=="function"?WeakMap:Map,ie=0,ve=null,F=null,ee=0,fe=0,dt=null,yl=!1,Ma=!1,Gc=!1,It=0,Ee=0,gl=0,Wl=0,Qc=0,mt=0,Ta=0,xn=null,at=null,Yc=!1,Mu=0,Uo=0,Tu=1/0,Du=null,bl=null,Ce=0,xl=null,Da=null,Pt=0,Xc=0,Vc=null,Bo=null,pn=0,Zc=null;function ht(){return(ie&2)!==0&&ee!==0?ee&-ee:N.T!==null?$c():ws()}function Co(){if(mt===0)if((ee&536870912)===0||ae){var e=Rn;Rn<<=1,(Rn&3932160)===0&&(Rn=262144),mt=e}else mt=536870912;return e=rt.current,e!==null&&(e.flags|=32),mt}function nt(e,t,l){(e===ve&&(fe===2||fe===9)||e.cancelPendingCommit!==null)&&(_a(e,0),pl(e,ee,mt,!1)),Qa(e,l),((ie&2)===0||e!==ve)&&(e===ve&&((ie&2)===0&&(Wl|=l),Ee===4&&pl(e,ee,mt,!1)),Ht(e))}function qo(e,t,l){if((ie&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ga(e,t),n=a?Y0(e,t):Kc(e,t,!0),u=a;do{if(n===0){Ma&&!a&&pl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!G0(l)){n=Kc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var f=e;n=xn;var d=f.current.memoizedState.isDehydrated;if(d&&(_a(f,i).flags|=256),i=Kc(f,i,!1),i!==2){if(Gc&&!d){f.errorRecoveryDisabledLanes|=u,Wl|=u,n=4;break e}u=at,at=n,u!==null&&(at===null?at=u:at.push.apply(at,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){_a(e,0),pl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:pl(a,t,mt,!yl);break e;case 2:at=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Mu+300-ut(),10<n)){if(pl(a,t,mt,!yl),Gn(a,0,!0)!==0)break e;Pt=t,a.timeoutHandle=dd(Ho.bind(null,a,l,at,Du,Yc,t,mt,Wl,Ta,yl,u,"Throttled",-0,0),n);break e}Ho(a,l,at,Du,Yc,t,mt,Wl,Ta,yl,u,null,-0,0)}}break}while(!0);Ht(e)}function Ho(e,t,l,a,n,u,i,f,d,g,p,A,b,x){if(e.timeoutHandle=-1,A=t.subtreeFlags,A&8192||(A&16785408)===16785408){A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt},To(t,u,A);var H=(u&62914560)===u?Mu-ut():(u&4194048)===u?Uo-ut():0;if(H=zh(A,H),H!==null){Pt=u,e.cancelPendingCommit=H(Zo.bind(null,e,t,u,l,a,n,i,f,d,p,A,null,b,x)),pl(e,u,i,!g);return}}Zo(e,t,u,l,a,n,i,f,d)}function G0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!st(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pl(e,t,l,a){t&=~Qc,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ct(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Zs(e,l,t)}function _u(){return(ie&6)===0?(Sn(0),!1):!0}function kc(){if(F!==null){if(fe===0)var e=F.return;else e=F,Xt=Ql=null,cc(e),pa=null,ln=0,e=F;for(;e!==null;)mo(e.alternate,e),e=e.return;F=null}}function _a(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,uh(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pt=0,kc(),ve=e,F=l=Qt(e.current,null),ee=t,fe=0,dt=null,yl=!1,Ma=Ga(e,t),Gc=!1,Ta=mt=Qc=Wl=gl=Ee=0,at=xn=null,Yc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ct(a),u=1<<n;t|=e[n],a&=~u}return It=t,Fn(),l}function Ro(e,t){w=null,N.H=on,t===xa||t===uu?(t=If(),fe=3):t===Wi?(t=If(),fe=4):fe=t===zc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dt=t,F===null&&(Ee=1,xu(e,xt(t,e.current)))}function Lo(){var e=rt.current;return e===null?!0:(ee&4194048)===ee?zt===null:(ee&62914560)===ee||(ee&536870912)!==0?e===zt:!1}function Go(){var e=N.H;return N.H=on,e===null?on:e}function Qo(){var e=N.A;return N.A=R0,e}function Ou(){Ee=4,yl||(ee&4194048)!==ee&&rt.current!==null||(Ma=!0),(gl&134217727)===0&&(Wl&134217727)===0||ve===null||pl(ve,ee,mt,!1)}function Kc(e,t,l){var a=ie;ie|=2;var n=Go(),u=Qo();(ve!==e||ee!==t)&&(Du=null,_a(e,t)),t=!1;var i=Ee;e:do try{if(fe!==0&&F!==null){var f=F,d=dt;switch(fe){case 8:kc(),i=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var g=fe;if(fe=0,dt=null,Oa(e,f,d,g),l&&Ma){i=0;break e}break;default:g=fe,fe=0,dt=null,Oa(e,f,d,g)}}Q0(),i=Ee;break}catch(p){Ro(e,p)}while(!0);return t&&e.shellSuspendCounter++,Xt=Ql=null,ie=a,N.H=n,N.A=u,F===null&&(ve=null,ee=0,Fn()),i}function Q0(){for(;F!==null;)Yo(F)}function Y0(e,t){var l=ie;ie|=2;var a=Go(),n=Qo();ve!==e||ee!==t?(Du=null,Tu=ut()+500,_a(e,t)):Ma=Ga(e,t);e:do try{if(fe!==0&&F!==null){t=F;var u=dt;t:switch(fe){case 1:fe=0,dt=null,Oa(e,t,u,1);break;case 2:case 9:if($f(u)){fe=0,dt=null,Xo(t);break}t=function(){fe!==2&&fe!==9||ve!==e||(fe=7),Ht(e)},u.then(t,t);break e;case 3:fe=7;break e;case 4:fe=5;break e;case 7:$f(u)?(fe=0,dt=null,Xo(t)):(fe=0,dt=null,Oa(e,t,u,7));break;case 5:var i=null;switch(F.tag){case 26:i=F.memoizedState;case 5:case 27:var f=F;if(i?Md(i):f.stateNode.complete){fe=0,dt=null;var d=f.sibling;if(d!==null)F=d;else{var g=f.return;g!==null?(F=g,Uu(g)):F=null}break t}}fe=0,dt=null,Oa(e,t,u,5);break;case 6:fe=0,dt=null,Oa(e,t,u,6);break;case 8:kc(),Ee=6;break e;default:throw Error(o(462))}}X0();break}catch(p){Ro(e,p)}while(!0);return Xt=Ql=null,N.H=a,N.A=n,ie=l,F!==null?0:(ve=null,ee=0,Fn(),Ee)}function X0(){for(;F!==null&&!om();)Yo(F)}function Yo(e){var t=ro(e.alternate,e,It);e.memoizedProps=e.pendingProps,t===null?Uu(e):F=t}function Xo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=no(l,t,t.pendingProps,t.type,void 0,ee);break;case 11:t=no(l,t,t.pendingProps,t.type.render,t.ref,ee);break;case 5:cc(t);default:mo(l,t),t=F=Gf(t,It),t=ro(l,t,It)}e.memoizedProps=e.pendingProps,t===null?Uu(e):F=t}function Oa(e,t,l,a){Xt=Ql=null,cc(t),pa=null,ln=0;var n=t.return;try{if(_0(e,n,t,l,ee)){Ee=1,xu(e,xt(l,e.current)),F=null;return}}catch(u){if(n!==null)throw F=n,u;Ee=1,xu(e,xt(l,e.current)),F=null;return}t.flags&32768?(ae||a===1?e=!0:Ma||(ee&536870912)!==0?e=!1:(yl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Vo(t,e)):Uu(t)}function Uu(e){var t=e;do{if((t.flags&32768)!==0){Vo(t,yl);return}e=t.return;var l=B0(t.alternate,t,It);if(l!==null){F=l;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);Ee===0&&(Ee=5)}function Vo(e,t){do{var l=C0(e.alternate,e);if(l!==null){l.flags&=32767,F=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=l}while(e!==null);Ee=6,F=null}function Zo(e,t,l,a,n,u,i,f,d){e.cancelPendingCommit=null;do Bu();while(Ce!==0);if((ie&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Ci,Sm(e,l,u,i,f,d),e===ve&&(F=ve=null,ee=0),Da=t,xl=e,Pt=l,Xc=u,Vc=n,Bo=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,K0(qn,function(){return Wo(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,n=U.p,U.p=2,i=ie,ie|=4;try{q0(e,t,l)}finally{ie=i,U.p=n,N.T=a}}Ce=1,ko(),Ko(),wo()}}function ko(){if(Ce===1){Ce=0;var e=xl,t=Da,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var a=U.p;U.p=2;var n=ie;ie|=4;try{Ao(t,e);var u=ns,i=_f(e.containerInfo),f=u.focusedElem,d=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&Df(f.ownerDocument.documentElement,f)){if(d!==null&&Di(f)){var g=d.start,p=d.end;if(p===void 0&&(p=g),"selectionStart"in f)f.selectionStart=g,f.selectionEnd=Math.min(p,f.value.length);else{var A=f.ownerDocument||document,b=A&&A.defaultView||window;if(b.getSelection){var x=b.getSelection(),H=f.textContent.length,Y=Math.min(d.start,H),me=d.end===void 0?Y:Math.min(d.end,H);!x.extend&&Y>me&&(i=me,me=Y,Y=i);var v=Tf(f,Y),h=Tf(f,me);if(v&&h&&(x.rangeCount!==1||x.anchorNode!==v.node||x.anchorOffset!==v.offset||x.focusNode!==h.node||x.focusOffset!==h.offset)){var y=A.createRange();y.setStart(v.node,v.offset),x.removeAllRanges(),Y>me?(x.addRange(y),x.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),x.addRange(y))}}}}for(A=[],x=f;x=x.parentNode;)x.nodeType===1&&A.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<A.length;f++){var z=A[f];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}ku=!!as,ns=as=null}finally{ie=n,U.p=a,N.T=l}}e.current=t,Ce=2}}function Ko(){if(Ce===2){Ce=0;var e=xl,t=Da,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var a=U.p;U.p=2;var n=ie;ie|=4;try{po(e,t.alternate,t)}finally{ie=n,U.p=a,N.T=l}}Ce=3}}function wo(){if(Ce===4||Ce===3){Ce=0,dm();var e=xl,t=Da,l=Pt,a=Bo;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ce=5:(Ce=0,Da=xl=null,Jo(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(bl=null),ri(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(La,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=N.T,n=U.p,U.p=2,N.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var f=a[i];u(f.value,{componentStack:f.stack})}}finally{N.T=t,U.p=n}}(Pt&3)!==0&&Bu(),Ht(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Zc?pn++:(pn=0,Zc=e):pn=0,Sn(0)}}function Jo(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,en(t)))}function Bu(){return ko(),Ko(),wo(),Wo()}function Wo(){if(Ce!==5)return!1;var e=xl,t=Xc;Xc=0;var l=ri(Pt),a=N.T,n=U.p;try{U.p=32>l?32:l,N.T=null,l=Vc,Vc=null;var u=xl,i=Pt;if(Ce=0,Da=xl=null,Pt=0,(ie&6)!==0)throw Error(o(331));var f=ie;if(ie|=4,_o(u.current),Mo(u,u.current,i,l),ie=f,Sn(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(La,u)}catch{}return!0}finally{U.p=n,N.T=a,Jo(e,t)}}function $o(e,t,l){t=xt(l,t),t=jc(e.stateNode,t,2),e=dl(e,t,2),e!==null&&(Qa(e,2),Ht(e))}function re(e,t,l){if(e.tag===3)$o(e,e,l);else for(;t!==null;){if(t.tag===3){$o(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(bl===null||!bl.has(a))){e=xt(l,e),l=$r(2),a=dl(t,l,2),a!==null&&(Fr(l,a,t,e),Qa(a,2),Ht(a));break}}t=t.return}}function wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new L0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Gc=!0,n.add(l),e=V0.bind(null,e,t,l),t.then(e,e))}function V0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ve===e&&(ee&l)===l&&(Ee===4||Ee===3&&(ee&62914560)===ee&&300>ut()-Mu?(ie&2)===0&&_a(e,0):Qc|=l,Ta===ee&&(Ta=0)),Ht(e)}function Fo(e,t){t===0&&(t=Vs()),e=Rl(e,t),e!==null&&(Qa(e,t),Ht(e))}function Z0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Fo(e,l)}function k0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Fo(e,l)}function K0(e,t){return ii(e,t)}var Cu=null,Ua=null,Jc=!1,qu=!1,Wc=!1,Sl=0;function Ht(e){e!==Ua&&e.next===null&&(Ua===null?Cu=Ua=e:Ua=Ua.next=e),qu=!0,Jc||(Jc=!0,J0())}function Sn(e,t){if(!Wc&&qu){Wc=!0;do for(var l=!1,a=Cu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ct(42|e)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,td(a,u))}else u=ee,u=Gn(a,a===ve?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ga(a,u)||(l=!0,td(a,u));a=a.next}while(l);Wc=!1}}function w0(){Io()}function Io(){qu=Jc=!1;var e=0;Sl!==0&&nh()&&(e=Sl);for(var t=ut(),l=null,a=Cu;a!==null;){var n=a.next,u=Po(a,t);u===0?(a.next=null,l===null?Cu=n:l.next=n,n===null&&(Ua=l)):(l=a,(e!==0||(u&3)!==0)&&(qu=!0)),a=n}Ce!==0&&Ce!==5||Sn(e),Sl!==0&&(Sl=0)}function Po(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-ct(u),f=1<<i,d=n[i];d===-1?((f&l)===0||(f&a)!==0)&&(n[i]=pm(f,t)):d<=t&&(e.expiredLanes|=f),u&=~f}if(t=ve,l=ee,l=Gn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(fe===2||fe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ci(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ga(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ci(a),ri(l)){case 2:case 8:l=Ys;break;case 32:l=qn;break;case 268435456:l=Xs;break;default:l=qn}return a=ed.bind(null,e),l=ii(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ci(a),e.callbackPriority=2,e.callbackNode=null,2}function ed(e,t){if(Ce!==0&&Ce!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Bu()&&e.callbackNode!==l)return null;var a=ee;return a=Gn(e,e===ve?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(qo(e,a,t),Po(e,ut()),e.callbackNode!=null&&e.callbackNode===l?ed.bind(null,e):null)}function td(e,t){if(Bu())return null;qo(e,t,!0)}function J0(){ih(function(){(ie&6)!==0?ii(Qs,w0):Io()})}function $c(){if(Sl===0){var e=ga;e===0&&(e=Hn,Hn<<=1,(Hn&261888)===0&&(Hn=256)),Sl=e}return Sl}function ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Vn(""+e)}function ad(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function W0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=ld((n[Ie]||null).action),i=a.submitter;i&&(t=(t=i[Ie]||null)?ld(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var f=new wn("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Sl!==0){var d=i?ad(n,i):new FormData(n);yc(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(f.preventDefault(),d=i?ad(n,i):new FormData(n),yc(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var Fc=0;Fc<Bi.length;Fc++){var Ic=Bi[Fc],$0=Ic.toLowerCase(),F0=Ic[0].toUpperCase()+Ic.slice(1);Mt($0,"on"+F0)}Mt(Bf,"onAnimationEnd"),Mt(Cf,"onAnimationIteration"),Mt(qf,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(m0,"onTransitionRun"),Mt(h0,"onTransitionStart"),Mt(v0,"onTransitionCancel"),Mt(Hf,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jn="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(" "),I0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jn));function nd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var f=a[i],d=f.instance,g=f.currentTarget;if(f=f.listener,d!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=g;try{u(n)}catch(p){$n(p)}n.currentTarget=null,u=d}else for(i=0;i<a.length;i++){if(f=a[i],d=f.instance,g=f.currentTarget,f=f.listener,d!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=g;try{u(n)}catch(p){$n(p)}n.currentTarget=null,u=d}}}}function I(e,t){var l=t[oi];l===void 0&&(l=t[oi]=new Set);var a=e+"__bubble";l.has(a)||(ud(t,e,2,!1),l.add(a))}function Pc(e,t,l){var a=0;t&&(a|=4),ud(l,e,a,t)}var Hu="_reactListening"+Math.random().toString(36).slice(2);function es(e){if(!e[Hu]){e[Hu]=!0,$s.forEach(function(l){l!=="selectionchange"&&(I0.has(l)||Pc(l,!1,e),Pc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hu]||(t[Hu]=!0,Pc("selectionchange",!1,t))}}function ud(e,t,l,a){switch(Cd(t)){case 2:var n=Eh;break;case 8:n=Mh;break;default:n=vs}l=n.bind(null,t,l,e),n=void 0,!pi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ts(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var f=a.stateNode.containerInfo;if(f===n)break;if(i===4)for(i=a.return;i!==null;){var d=i.tag;if((d===3||d===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=ea(f),i===null)return;if(d=i.tag,d===5||d===6||d===26||d===27){a=u=i;continue e}f=f.parentNode}}a=a.return}ff(function(){var g=u,p=bi(l),A=[];e:{var b=Rf.get(e);if(b!==void 0){var x=wn,H=e;switch(e){case"keypress":if(kn(l)===0)break e;case"keydown":case"keyup":x=km;break;case"focusin":H="focus",x=Ni;break;case"focusout":H="blur",x=Ni;break;case"beforeblur":case"afterblur":x=Ni;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Bm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Jm;break;case Bf:case Cf:case qf:x=Hm;break;case Hf:x=$m;break;case"scroll":case"scrollend":x=Om;break;case"wheel":x=Im;break;case"copy":case"cut":case"paste":x=Lm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=hf;break;case"toggle":case"beforetoggle":x=e0}var Y=(t&4)!==0,me=!Y&&(e==="scroll"||e==="scrollend"),v=Y?b!==null?b+"Capture":null:b;Y=[];for(var h=g,y;h!==null;){var z=h;if(y=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||y===null||v===null||(z=Va(h,v),z!=null&&Y.push(zn(h,z,y))),me)break;h=h.return}0<Y.length&&(b=new x(b,H,null,l,p),A.push({event:b,listeners:Y}))}}if((t&7)===0){e:{if(b=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",b&&l!==gi&&(H=l.relatedTarget||l.fromElement)&&(ea(H)||H[Pl]))break e;if((x||b)&&(b=p.window===p?p:(b=p.ownerDocument)?b.defaultView||b.parentWindow:window,x?(H=l.relatedTarget||l.toElement,x=g,H=H?ea(H):null,H!==null&&(me=S(H),Y=H.tag,H!==me||Y!==5&&Y!==27&&Y!==6)&&(H=null)):(x=null,H=g),x!==H)){if(Y=df,z="onMouseLeave",v="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(Y=hf,z="onPointerLeave",v="onPointerEnter",h="pointer"),me=x==null?b:Xa(x),y=H==null?b:Xa(H),b=new Y(z,h+"leave",x,l,p),b.target=me,b.relatedTarget=y,z=null,ea(p)===g&&(Y=new Y(v,h+"enter",H,l,p),Y.target=y,Y.relatedTarget=me,z=Y),me=z,x&&H)t:{for(Y=P0,v=x,h=H,y=0,z=v;z;z=Y(z))y++;z=0;for(var Q=h;Q;Q=Y(Q))z++;for(;0<y-z;)v=Y(v),y--;for(;0<z-y;)h=Y(h),z--;for(;y--;){if(v===h||h!==null&&v===h.alternate){Y=v;break t}v=Y(v),h=Y(h)}Y=null}else Y=null;x!==null&&id(A,b,x,Y,!1),H!==null&&me!==null&&id(A,me,H,Y,!0)}}e:{if(b=g?Xa(g):window,x=b.nodeName&&b.nodeName.toLowerCase(),x==="select"||x==="input"&&b.type==="file")var ne=jf;else if(pf(b))if(zf)ne=r0;else{ne=s0;var L=c0}else x=b.nodeName,!x||x.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?g&&yi(g.elementType)&&(ne=jf):ne=f0;if(ne&&(ne=ne(e,g))){Sf(A,ne,l,p);break e}L&&L(e,b,g),e==="focusout"&&g&&b.type==="number"&&g.memoizedProps.value!=null&&vi(b,"number",b.value)}switch(L=g?Xa(g):window,e){case"focusin":(pf(L)||L.contentEditable==="true")&&(fa=L,_i=g,Fa=null);break;case"focusout":Fa=_i=fa=null;break;case"mousedown":Oi=!0;break;case"contextmenu":case"mouseup":case"dragend":Oi=!1,Of(A,l,p);break;case"selectionchange":if(d0)break;case"keydown":case"keyup":Of(A,l,p)}var J;if(Ei)e:{switch(e){case"compositionstart":var te="onCompositionStart";break e;case"compositionend":te="onCompositionEnd";break e;case"compositionupdate":te="onCompositionUpdate";break e}te=void 0}else sa?bf(e,l)&&(te="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(te="onCompositionStart");te&&(vf&&l.locale!=="ko"&&(sa||te!=="onCompositionStart"?te==="onCompositionEnd"&&sa&&(J=rf()):(ul=p,Si="value"in ul?ul.value:ul.textContent,sa=!0)),L=Ru(g,te),0<L.length&&(te=new mf(te,e,null,l,p),A.push({event:te,listeners:L}),J?te.data=J:(J=xf(l),J!==null&&(te.data=J)))),(J=l0?a0(e,l):n0(e,l))&&(te=Ru(g,"onBeforeInput"),0<te.length&&(L=new mf("onBeforeInput","beforeinput",null,l,p),A.push({event:L,listeners:te}),L.data=J)),W0(A,e,g,l,p)}nd(A,t)})}function zn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ru(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Va(e,l),n!=null&&a.unshift(zn(e,n,u)),n=Va(e,t),n!=null&&a.push(zn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function P0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function id(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var f=l,d=f.alternate,g=f.stateNode;if(f=f.tag,d!==null&&d===a)break;f!==5&&f!==26&&f!==27||g===null||(d=g,n?(g=Va(l,u),g!=null&&i.unshift(zn(l,g,d))):n||(g=Va(l,u),g!=null&&i.push(zn(l,g,d)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var eh=/\r\n?/g,th=/\u0000|\uFFFD/g;function cd(e){return(typeof e=="string"?e:""+e).replace(eh,`
`).replace(th,"")}function sd(e,t){return t=cd(t),cd(e)===t}function de(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ua(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ua(e,""+a);break;case"className":Yn(e,"class",a);break;case"tabIndex":Yn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,l,a);break;case"style":cf(e,a,u);break;case"data":if(t!=="object"){Yn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Vn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 u=="function"&&(l==="formAction"?(t!=="input"&&de(e,t,"name",n.name,n,null),de(e,t,"formEncType",n.formEncType,n,null),de(e,t,"formMethod",n.formMethod,n,null),de(e,t,"formTarget",n.formTarget,n,null)):(de(e,t,"encType",n.encType,n,null),de(e,t,"method",n.method,n,null),de(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Vn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Lt);break;case"onScroll":a!=null&&I("scroll",e);break;case"onScrollEnd":a!=null&&I("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Vn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":I("beforetoggle",e),I("toggle",e),Qn(e,"popover",a);break;case"xlinkActuate":Rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Qn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Dm.get(l)||l,Qn(e,l,a))}}function ls(e,t,l,a,n,u){switch(l){case"style":cf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ua(e,a):(typeof a=="number"||typeof a=="bigint")&&ua(e,""+a);break;case"onScroll":a!=null&&I("scroll",e);break;case"onScrollEnd":a!=null&&I("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ie]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Qn(e,l,a)}}}function Ke(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":I("error",e),I("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:de(e,t,u,i,l,null)}}n&&de(e,t,"srcSet",l.srcSet,l,null),a&&de(e,t,"src",l.src,l,null);return;case"input":I("invalid",e);var f=u=i=n=null,d=null,g=null;for(a in l)if(l.hasOwnProperty(a)){var p=l[a];if(p!=null)switch(a){case"name":n=p;break;case"type":i=p;break;case"checked":d=p;break;case"defaultChecked":g=p;break;case"value":u=p;break;case"defaultValue":f=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,t));break;default:de(e,t,a,p,l,null)}}lf(e,u,f,d,g,i,n,!1);return;case"select":I("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:de(e,t,n,f,l,null)}t=u,l=i,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":I("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(f=l[i],f!=null))switch(i){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:de(e,t,i,f,l,null)}nf(e,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:de(e,t,d,a,l,null)}return;case"dialog":I("beforetoggle",e),I("toggle",e),I("cancel",e),I("close",e);break;case"iframe":case"object":I("load",e);break;case"video":case"audio":for(a=0;a<jn.length;a++)I(jn[a],e);break;case"image":I("error",e),I("load",e);break;case"details":I("toggle",e);break;case"embed":case"source":case"link":I("error",e),I("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:de(e,t,g,a,l,null)}return;default:if(yi(t)){for(p in l)l.hasOwnProperty(p)&&(a=l[p],a!==void 0&&ls(e,t,p,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&de(e,t,f,a,l,null))}function lh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,f=null,d=null,g=null,p=null;for(x in l){var A=l[x];if(l.hasOwnProperty(x)&&A!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":d=A;default:a.hasOwnProperty(x)||de(e,t,x,null,a,A)}}for(var b in a){var x=a[b];if(A=l[b],a.hasOwnProperty(b)&&(x!=null||A!=null))switch(b){case"type":u=x;break;case"name":n=x;break;case"checked":g=x;break;case"defaultChecked":p=x;break;case"value":i=x;break;case"defaultValue":f=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(137,t));break;default:x!==A&&de(e,t,b,x,a,A)}}hi(e,i,f,d,g,p,u,n);return;case"select":x=i=f=b=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":x=d;default:a.hasOwnProperty(u)||de(e,t,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":b=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==d&&de(e,t,n,u,a,d)}t=f,l=i,a=x,b!=null?na(e,!!l,b,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":x=b=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:de(e,t,f,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":b=n;break;case"defaultValue":x=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&de(e,t,i,n,a,u)}af(e,b,x);return;case"option":for(var H in l)if(b=l[H],l.hasOwnProperty(H)&&b!=null&&!a.hasOwnProperty(H))switch(H){case"selected":e.selected=!1;break;default:de(e,t,H,null,a,b)}for(d in a)if(b=a[d],x=l[d],a.hasOwnProperty(d)&&b!==x&&(b!=null||x!=null))switch(d){case"selected":e.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:de(e,t,d,b,a,x)}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 Y in l)b=l[Y],l.hasOwnProperty(Y)&&b!=null&&!a.hasOwnProperty(Y)&&de(e,t,Y,null,a,b);for(g in a)if(b=a[g],x=l[g],a.hasOwnProperty(g)&&b!==x&&(b!=null||x!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(137,t));break;default:de(e,t,g,b,a,x)}return;default:if(yi(t)){for(var me in l)b=l[me],l.hasOwnProperty(me)&&b!==void 0&&!a.hasOwnProperty(me)&&ls(e,t,me,void 0,a,b);for(p in a)b=a[p],x=l[p],!a.hasOwnProperty(p)||b===x||b===void 0&&x===void 0||ls(e,t,p,b,a,x);return}}for(var v in l)b=l[v],l.hasOwnProperty(v)&&b!=null&&!a.hasOwnProperty(v)&&de(e,t,v,null,a,b);for(A in a)b=a[A],x=l[A],!a.hasOwnProperty(A)||b===x||b==null&&x==null||de(e,t,A,b,a,x)}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ah(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,f=n.duration;if(u&&f&&fd(i)){for(i=0,f=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],g=d.startTime;if(g>f)break;var p=d.transferSize,A=d.initiatorType;p&&fd(A)&&(d=d.responseEnd,i+=p*(d<f?1:(f-g)/(d-g)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var as=null,ns=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function rd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function od(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function us(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var is=null;function nh(){var e=window.event;return e&&e.type==="popstate"?e===is?!1:(is=e,!0):(is=null,!1)}var dd=typeof setTimeout=="function"?setTimeout:void 0,uh=typeof clearTimeout=="function"?clearTimeout:void 0,md=typeof Promise=="function"?Promise:void 0,ih=typeof queueMicrotask=="function"?queueMicrotask:typeof md<"u"?function(e){return md.resolve(null).then(e).catch(ch)}:dd;function ch(e){setTimeout(function(){throw e})}function jl(e){return e==="head"}function hd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ha(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Nn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Nn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[Ya]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Nn(e.ownerDocument.body);l=n}while(l);Ha(t)}function vd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function cs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":cs(l),di(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function sh(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ya])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Nt(e.nextSibling),e===null)break}return null}function fh(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(e.nextSibling),e===null))return null;return e}function yd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nt(e.nextSibling),e===null))return null;return e}function ss(e){return e.data==="$?"||e.data==="$~"}function fs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function rh(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var rs=null;function gd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Nt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function bd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function xd(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Nn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);di(e)}var At=new Map,pd=new Set;function Gu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var el=U.d;U.d={f:oh,r:dh,D:mh,C:hh,L:vh,m:yh,X:bh,S:gh,M:xh};function oh(){var e=el.f(),t=_u();return e||t}function dh(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?Hr(t):el.r(e)}var Ba=typeof document>"u"?null:document;function Sd(e,t,l){var a=Ba;if(a&&typeof t=="string"&&t){var n=gt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),pd.has(n)||(pd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ke(t,"link",e),Ge(t),a.head.appendChild(t)))}}function mh(e){el.D(e),Sd("dns-prefetch",e,null)}function hh(e,t){el.C(e,t),Sd("preconnect",e,t)}function vh(e,t,l){el.L(e,t,l);var a=Ba;if(a&&e&&t){var n='link[rel="preload"][as="'+gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+gt(l.imageSizes)+'"]')):n+='[href="'+gt(e)+'"]';var u=n;switch(t){case"style":u=Ca(e);break;case"script":u=qa(e)}At.has(u)||(e=_({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(An(u))||t==="script"&&a.querySelector(En(u))||(t=a.createElement("link"),Ke(t,"link",e),Ge(t),a.head.appendChild(t)))}}function yh(e,t){el.m(e,t);var l=Ba;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+gt(a)+'"][href="'+gt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=qa(e)}if(!At.has(u)&&(e=_({rel:"modulepreload",href:e},t),At.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(En(u)))return}a=l.createElement("link"),Ke(a,"link",e),Ge(a),l.head.appendChild(a)}}}function gh(e,t,l){el.S(e,t,l);var a=Ba;if(a&&e){var n=la(a).hoistableStyles,u=Ca(e);t=t||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(An(u)))f.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(u))&&os(e,l);var d=i=a.createElement("link");Ge(d),Ke(d,"link",e),d._p=new Promise(function(g,p){d.onload=g,d.onerror=p}),d.addEventListener("load",function(){f.loading|=1}),d.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Qu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function bh(e,t){el.X(e,t);var l=Ba;if(l&&e){var a=la(l).hoistableScripts,n=qa(e),u=a.get(n);u||(u=l.querySelector(En(n)),u||(e=_({src:e,async:!0},t),(t=At.get(n))&&ds(e,t),u=l.createElement("script"),Ge(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function xh(e,t){el.M(e,t);var l=Ba;if(l&&e){var a=la(l).hoistableScripts,n=qa(e),u=a.get(n);u||(u=l.querySelector(En(n)),u||(e=_({src:e,async:!0,type:"module"},t),(t=At.get(n))&&ds(e,t),u=l.createElement("script"),Ge(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function jd(e,t,l,a){var n=(n=ll.current)?Gu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ca(l.href),l=la(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ca(l.href);var u=la(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(An(e)))&&!u._p&&(i.instance=u,i.state.loading=5),At.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},At.set(e,l),u||ph(n,e,l,i.state))),t&&a===null)throw Error(o(528,""));return i}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(l),l=la(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ca(e){return'href="'+gt(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function zd(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function ph(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ke(t,"link",l),Ge(t),e.head.appendChild(t))}function qa(e){return'[src="'+gt(e)+'"]'}function En(e){return"script[async]"+e}function Nd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+gt(l.href)+'"]');if(a)return t.instance=a,Ge(a),a;var n=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ge(a),Ke(a,"style",n),Qu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ca(l.href);var u=e.querySelector(An(n));if(u)return t.state.loading|=4,t.instance=u,Ge(u),u;a=zd(l),(n=At.get(n))&&os(a,n),u=(e.ownerDocument||e).createElement("link"),Ge(u);var i=u;return i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),Ke(u,"link",a),t.state.loading|=4,Qu(u,l.precedence,e),t.instance=u;case"script":return u=qa(l.src),(n=e.querySelector(En(u)))?(t.instance=n,Ge(n),n):(a=l,(n=At.get(u))&&(a=_({},l),ds(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ge(n),Ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Qu(a,l.precedence,e));return t.instance}function Qu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===t)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ds(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yu=null;function Ad(e,t,l){if(Yu===null){var a=new Map,n=Yu=new Map;n.set(l,a)}else n=Yu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ya]||u[Xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function Ed(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Sh(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Md(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jh(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ca(a.href),u=t.querySelector(An(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Xu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ge(u);return}u=t.ownerDocument||t,a=zd(a),(n=At.get(n))&&os(a,n),u=u.createElement("link"),Ge(u);var i=u;i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),Ke(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Xu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ms=0;function zh(e,t){return e.stylesheets&&e.count===0&&Zu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Zu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ms===0&&(ms=62500*ah());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ms?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function Zu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,t.forEach(Nh,e),Vu=null,Xu.call(e))}function Nh(e,t){if(!(t.state.loading&4)){var l=Vu.get(e);if(l)var a=l.get(null);else{l=new Map,Vu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Xu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:B,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function Ah(e,t,l,a,n,u,i,f,d){this.tag=1,this.containerInfo=e,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=si(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=si(0),this.hiddenUpdates=si(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Td(e,t,l,a,n,u,i,f,d,g,p,A){return e=new Ah(e,t,l,i,d,g,p,A,f),t=1,u===!0&&(t|=24),u=ft(3,null,null,t),e.current=u,u.stateNode=e,t=Ki(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},$i(u),e}function Dd(e){return e?(e=da,e):da}function _d(e,t,l,a,n,u){n=Dd(n),a.context===null?a.context=n:a.pendingContext=n,a=ol(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=dl(e,a,t),l!==null&&(nt(l,e,t),nn(l,e,t))}function Od(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function hs(e,t){Od(e,t),(e=e.alternate)&&Od(e,t)}function Ud(e){if(e.tag===13||e.tag===31){var t=Rl(e,67108864);t!==null&&nt(t,e,67108864),hs(e,67108864)}}function Bd(e){if(e.tag===13||e.tag===31){var t=ht();t=fi(t);var l=Rl(e,t);l!==null&&nt(l,e,t),hs(e,t)}}var ku=!0;function Eh(e,t,l,a){var n=N.T;N.T=null;var u=U.p;try{U.p=2,vs(e,t,l,a)}finally{U.p=u,N.T=n}}function Mh(e,t,l,a){var n=N.T;N.T=null;var u=U.p;try{U.p=8,vs(e,t,l,a)}finally{U.p=u,N.T=n}}function vs(e,t,l,a){if(ku){var n=ys(a);if(n===null)ts(e,t,a,Ku,l),qd(e,a);else if(Dh(n,e,t,l,a))a.stopPropagation();else if(qd(e,a),t&4&&-1<Th.indexOf(e)){for(;n!==null;){var u=ta(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ul(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var d=1<<31-ct(i);f.entanglements[1]|=d,i&=~d}Ht(u),(ie&6)===0&&(Tu=ut()+500,Sn(0))}}break;case 31:case 13:f=Rl(u,2),f!==null&&nt(f,u,2),_u(),hs(u,2)}if(u=ys(a),u===null&&ts(e,t,a,Ku,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ts(e,t,a,null,l)}}function ys(e){return e=bi(e),gs(e)}var Ku=null;function gs(e){if(Ku=null,e=ea(e),e!==null){var t=S(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=E(t),e!==null)return e;e=null}else if(l===31){if(e=M(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function Cd(e){switch(e){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(mm()){case Qs:return 2;case Ys:return 8;case qn:case hm:return 32;case Xs:return 268435456;default:return 32}default:return 32}}var bs=!1,zl=null,Nl=null,Al=null,Tn=new Map,Dn=new Map,El=[],Th="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 qd(e,t){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":Tn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function _n(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ta(t),t!==null&&Ud(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Dh(e,t,l,a,n){switch(t){case"focusin":return zl=_n(zl,e,t,l,a,n),!0;case"dragenter":return Nl=_n(Nl,e,t,l,a,n),!0;case"mouseover":return Al=_n(Al,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Tn.set(u,_n(Tn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Dn.set(u,_n(Dn.get(u)||null,e,t,l,a,n)),!0}return!1}function Hd(e){var t=ea(e.target);if(t!==null){var l=S(t);if(l!==null){if(t=l.tag,t===13){if(t=E(l),t!==null){e.blockedOn=t,Js(e.priority,function(){Bd(l)});return}}else if(t===31){if(t=M(l),t!==null){e.blockedOn=t,Js(e.priority,function(){Bd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ys(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);gi=a,l.target.dispatchEvent(a),gi=null}else return t=ta(l),t!==null&&Ud(t),e.blockedOn=l,!1;t.shift()}return!0}function Rd(e,t,l){wu(e)&&l.delete(t)}function _h(){bs=!1,zl!==null&&wu(zl)&&(zl=null),Nl!==null&&wu(Nl)&&(Nl=null),Al!==null&&wu(Al)&&(Al=null),Tn.forEach(Rd),Dn.forEach(Rd)}function Ju(e,t){e.blockedOn===t&&(e.blockedOn=null,bs||(bs=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,_h)))}var Wu=null;function Ld(e){Wu!==e&&(Wu=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Wu===e&&(Wu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(gs(a||l)===null)continue;break}var u=ta(l);u!==null&&(e.splice(t,3),t-=3,yc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ha(e){function t(d){return Ju(d,e)}zl!==null&&Ju(zl,e),Nl!==null&&Ju(Nl,e),Al!==null&&Ju(Al,e),Tn.forEach(t),Dn.forEach(t);for(var l=0;l<El.length;l++){var a=El[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)Hd(l),l.blockedOn===null&&El.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Ie]||null;if(typeof u=="function")i||Ld(l);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ie]||null)f=i.formAction;else if(gs(n)!==null)continue}else f=i.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Ld(l)}}}function Gd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function xs(e){this._internalRoot=e}$u.prototype.render=xs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=ht();_d(l,a,e,t,null,null)},$u.prototype.unmount=xs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_d(e.current,2,null,e,null,null),_u(),t[Pl]=null}};function $u(e){this._internalRoot=e}$u.prototype.unstable_scheduleHydration=function(e){if(e){var t=ws();e={blockedOn:null,target:e,priority:t};for(var l=0;l<El.length&&t!==0&&t<El[l].priority;l++);El.splice(l,0,e),l===0&&Hd(e)}};var Qd=r.version;if(Qd!=="19.2.7")throw Error(o(527,Qd,"19.2.7"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=O(t),e=e!==null?X(e):null,e=e===null?null:e.stateNode,e};var Oh={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fu.isDisabled&&Fu.supportsFiber)try{La=Fu.inject(Oh),it=Fu}catch{}}return On.createRoot=function(e,t){if(!j(e))throw Error(o(299));var l=!1,a="",n=Kr,u=wr,i=Jr;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Td(e,1,!1,null,null,l,a,null,n,u,i,Gd),e[Pl]=t.current,es(e),new xs(t)},On.hydrateRoot=function(e,t,l){if(!j(e))throw Error(o(299));var a=!1,n="",u=Kr,i=wr,f=Jr,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),t=Td(e,1,!0,t,l??null,a,n,d,u,i,f,Gd),t.context=Dd(null),l=t.current,a=ht(),a=fi(a),n=ol(a),n.callback=null,dl(l,n,a),l=a,t.current.lanes=l,Qa(t,l),Ht(t),e[Pl]=t.current,es(e),new $u(t)},On.version="19.2.7",On}var Zd;function $h(){if(Zd)return ps.exports;Zd=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),ps.exports=Wh(),ps.exports}var Fh=$h();const Ih="modulepreload",Ph=function(c){return"/"+c},kd={},He=function(r,m,o){let j=Promise.resolve();if(m&&m.length>0){let E=function(O){return Promise.all(O.map(X=>Promise.resolve(X).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const M=document.querySelector("meta[property=csp-nonce]"),T=(M==null?void 0:M.nonce)||(M==null?void 0:M.getAttribute("nonce"));j=E(m.map(O=>{if(O=Ph(O),O in kd)return;kd[O]=!0;const X=O.endsWith(".css"),_=X?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${O}"]${_}`))return;const D=document.createElement("link");if(D.rel=X?"stylesheet":Ih,X||(D.as="script"),D.crossOrigin="",D.href=O,T&&D.setAttribute("nonce",T),document.head.appendChild(D),X)return new Promise((K,P)=>{D.addEventListener("load",K),D.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${O}`)))})}))}function S(E){const M=new Event("vite:preloadError",{cancelable:!0});if(M.payload=E,window.dispatchEvent(M),!M.defaultPrevented)throw E}return j.then(E=>{for(const M of E||[])M.status==="rejected"&&S(M.reason);return r().catch(S)})};var ev=function(){return null};const Pd=new Ch({defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1,refetchOnWindowFocus:!1},mutations:{retry:0}}});function tv(c,r){let m;try{m=c()}catch{return}return{getItem:j=>{var S;const E=T=>T===null?null:JSON.parse(T,void 0),M=(S=m.getItem(j))!=null?S:null;return M instanceof Promise?M.then(E):E(M)},setItem:(j,S)=>m.setItem(j,JSON.stringify(S,void 0)),removeItem:j=>m.removeItem(j)}}const Ns=c=>r=>{try{const m=c(r);return m instanceof Promise?m:{then(o){return Ns(o)(m)},catch(o){return this}}}catch(m){return{then(o){return this},catch(o){return Ns(o)(m)}}}},lv=(c,r)=>(m,o,j)=>{let S={storage:tv(()=>window.localStorage),partialize:V=>V,version:0,merge:(V,ze)=>({...ze,...V}),...r},E=!1,M=0;const T=new Set,O=new Set;let X=S.storage;if(!X)return c((...V)=>{console.warn(`[zustand persist middleware] Unable to update item '${S.name}', the given storage is currently unavailable.`),m(...V)},o,j);const _=()=>{const V=S.partialize({...o()});return X.setItem(S.name,{state:V,version:S.version})},D=j.setState;j.setState=(V,ze)=>(D(V,ze),_());const K=c((...V)=>(m(...V),_()),o,j);j.getInitialState=()=>K;let P;const he=()=>{var V,ze;if(!X)return;const pe=++M;E=!1,T.forEach(Z=>{var le;return Z((le=o())!=null?le:K)});const B=((ze=S.onRehydrateStorage)==null?void 0:ze.call(S,(V=o())!=null?V:K))||void 0;return Ns(X.getItem.bind(X))(S.name).then(Z=>{if(Z)if(typeof Z.version=="number"&&Z.version!==S.version){if(S.migrate){const le=S.migrate(Z.state,Z.version);return le instanceof Promise?le.then(Se=>[!0,Se]):[!0,le]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,Z.state];return[!1,void 0]}).then(Z=>{var le;if(pe!==M)return;const[Se,Re]=Z;if(P=S.merge(Re,(le=o())!=null?le:K),m(P,!0),Se)return _()}).then(()=>{pe===M&&(B==null||B(o(),void 0),P=o(),E=!0,O.forEach(Z=>Z(P)))}).catch(Z=>{pe===M&&(B==null||B(void 0,Z))})};return j.persist={setOptions:V=>{S={...S,...V},V.storage&&(X=V.storage)},clearStorage:()=>{X==null||X.removeItem(S.name)},getOptions:()=>S,rehydrate:()=>he(),hasHydrated:()=>E,onHydrate:V=>(T.add(V),()=>{T.delete(V)}),onFinishHydration:V=>(O.add(V),()=>{O.delete(V)})},S.skipHydration||he(),P||K},av=lv;function nv(){const c="https://divyourday.tradedatainsight.com/api/v1".trim();return c?c.replace(/\/$/,""):"/api/v1"}const Us={apiBaseUrl:nv(),appName:"Divyourday"},W=Wd.create({baseURL:Us.apiBaseUrl,withCredentials:!0,headers:{"Content-Type":"application/json"}});W.interceptors.request.use(c=>{const r=uv();return r&&(c.headers.Authorization=`Bearer ${r}`),typeof FormData<"u"&&c.data instanceof FormData&&delete c.headers["Content-Type"],c});let zs=!1,As=[];function Kd(c,r){As.forEach(m=>{c?m.reject(c):m.resolve(r)}),As=[]}W.interceptors.response.use(c=>(c.data&&"data"in c.data&&(c.data=c.data.data),c),async c=>{var m;const r=c.config;if(((m=c.response)==null?void 0:m.status)!==401||r._retry)return Promise.reject(c);if(zs)return new Promise((o,j)=>{As.push({resolve:S=>{r.headers.Authorization=`Bearer ${S}`,o(W(r))},reject:j})});r._retry=!0,zs=!0;try{const{data:o}=await Wd.post(`${Us.apiBaseUrl}/auth/refresh`,{},{withCredentials:!0}),j=o.data.accessToken;return em(j),Kd(null,j),r.headers.Authorization=`Bearer ${j}`,W(r)}catch(o){return Kd(o,null),Es(),window.location.href="/login",Promise.reject(o)}finally{zs=!1}});let Bs=null;function uv(){return Bs}function em(c){Bs=c}function Es(){Bs=null}const _l=Ts()(av(c=>({user:null,isAuthenticated:!1,setAuth(r,m){em(m),c({user:r,isAuthenticated:!0})},updateUser(r){c(m=>({user:m.user?{...m.user,...r}:null}))},clearAuth(){Es(),c({user:null,isAuthenticated:!1})}}),{name:"divyourday-auth",partialize:c=>({user:c.user,isAuthenticated:c.isAuthenticated}),onRehydrateStorage:()=>c=>{c&&Es()}}));function iv(){return _l(r=>r.isAuthenticated)?s.jsx(Pu,{}):s.jsx(Ms,{to:"/login",replace:!0})}function cv(){return _l(r=>r.isAuthenticated)?s.jsx(Ms,{to:"/",replace:!0}):s.jsx(Pu,{})}var sv=function(c,r){for(var m={};c.length;){var o=c[0],j=o.code,S=o.message,E=o.path.join(".");if(!m[E])if("unionErrors"in o){var M=o.unionErrors[0].errors[0];m[E]={message:M.message,type:M.code}}else m[E]={message:S,type:j};if("unionErrors"in o&&o.unionErrors.forEach(function(X){return X.errors.forEach(function(_){return c.push(_)})}),r){var T=m[E].types,O=T&&T[o.code];m[E]=Kh(E,r,m,j,O?[].concat(O,o.message):o.message)}c.shift()}return m},Cs=function(c,r,m){return m===void 0&&(m={}),function(o,j,S){try{return Promise.resolve((function(E,M){try{var T=Promise.resolve(c[m.mode==="sync"?"parse":"parseAsync"](o,r)).then(function(O){return S.shouldUseNativeValidation&&Zh({},S),{errors:{},values:m.raw?o:O}})}catch(O){return M(O)}return T&&T.then?T.then(void 0,M):T})(0,function(E){if((function(M){return Array.isArray(M==null?void 0:M.errors)})(E))return{values:{},errors:kh(sv(E.errors,!S.shouldUseNativeValidation&&S.criteriaMode==="all"),S)};throw E}))}catch(E){return Promise.reject(E)}}};const tl=Ts(c=>({sidebarOpen:!1,activeModal:null,activeGroupId:null,setSidebarOpen:r=>c({sidebarOpen:r}),toggleSidebar:()=>c(r=>({sidebarOpen:!r.sidebarOpen})),openModal:(r,m)=>c({activeModal:r,activeGroupId:m??null}),closeModal:()=>c({activeModal:null,activeGroupId:null})})),_t={list:()=>W.get("/groups").then(c=>c.data),create:c=>W.post("/groups",c).then(r=>r.data),getById:c=>W.get(`/groups/${c}`).then(r=>r.data),update:(c,r)=>W.patch(`/groups/${c}`,r).then(m=>m.data),delete:c=>W.delete(`/groups/${c}`).then(r=>r.data),getMembers:c=>W.get(`/groups/${c}/members`).then(r=>r.data),inviteMember:(c,r)=>W.post(`/groups/${c}/members`,{email:r}).then(m=>m.data),listInvites:c=>W.get(`/groups/${c}/invites`).then(r=>r.data),cancelInvite:(c,r)=>W.delete(`/groups/${c}/invites/${r}`).then(m=>m.data),removeMember:(c,r)=>W.delete(`/groups/${c}/members/${r}`).then(m=>m.data),leave:c=>W.post(`/groups/${c}/leave`).then(r=>r.data),getBalances:c=>W.get(`/groups/${c}/balances`).then(r=>r.data),previewInvite:c=>W.get(`/invites/${c}`).then(r=>r.data),acceptInvite:c=>W.post(`/invites/${c}/accept`).then(r=>r.data)},we={all:()=>["groups"],detail:c=>["groups",c],members:c=>["groups",c,"members"],balances:c=>["groups",c,"balances"],invites:c=>["groups",c,"invites"]};function fv(){return Dl({queryKey:we.all(),queryFn:_t.list,staleTime:6e4})}function tm(c){return Dl({queryKey:we.detail(c),queryFn:()=>_t.getById(c),staleTime:3e4,enabled:!!c})}function rv(c){return Dl({queryKey:we.balances(c),queryFn:()=>_t.getBalances(c),staleTime:3e4,enabled:!!c})}function ov(){const c=Et();return qe({mutationFn:_t.create,onSuccess:()=>{c.invalidateQueries({queryKey:we.all()})}})}function _y(c){const r=Et();return qe({mutationFn:m=>_t.update(c,m),onSuccess:()=>{r.invalidateQueries({queryKey:we.detail(c)}),r.invalidateQueries({queryKey:we.all()})}})}function Oy(){const c=Et(),r=$l();return qe({mutationFn:m=>_t.delete(m),onSuccess:()=>{c.invalidateQueries({queryKey:we.all()}),r("/groups")}})}function dv(c){const r=Et();return qe({mutationFn:m=>_t.inviteMember(c,m),onSuccess:()=>{r.invalidateQueries({queryKey:we.detail(c)}),r.invalidateQueries({queryKey:we.members(c)}),r.invalidateQueries({queryKey:we.invites(c)})}})}function Uy(c,r=!0){return Dl({queryKey:we.invites(c),queryFn:()=>_t.listInvites(c),staleTime:3e4,enabled:!!c&&r})}function By(c){const r=Et();return qe({mutationFn:m=>_t.cancelInvite(c,m),onSuccess:()=>{r.invalidateQueries({queryKey:we.invites(c)})}})}function Cy(c){const r=Et();return qe({mutationFn:m=>_t.removeMember(c,m),onSuccess:()=>{r.invalidateQueries({queryKey:we.detail(c)})}})}function qy(){const c=Et(),r=$l();return qe({mutationFn:m=>_t.leave(m),onSuccess:()=>{c.invalidateQueries({queryKey:we.all()}),r("/groups")}})}function $(...c){return Qh(Yh(c))}function mv(c,r="USD"){const m=r==="LKR"?"en-LK":"en-US";return new Intl.NumberFormat(m,{style:"currency",currency:r,minimumFractionDigits:2,maximumFractionDigits:2}).format(c)}function Hy(c){return Vh(new Date(c),{addSuffix:!0})}function Ry(c){return Xh(new Date(c),"MMM d, yyyy")}function hv(c){return c.split(" ").map(r=>r[0]).join("").toUpperCase().slice(0,2)}const vv={food:"Food & Drink",travel:"Travel",shopping:"Shopping",fuel:"Fuel",bills:"Bills",entertainment:"Entertainment",rent:"Rent",other:"Other"},lm={food:"🍽️",travel:"✈️",shopping:"🛍️",fuel:"⛽",bills:"🧾",entertainment:"🎬",rent:"🏠",other:"📦"},Ly={expense_added:"added an expense",expense_updated:"updated an expense",expense_deleted:"deleted an expense",settlement_recorded:"recorded a payment",member_joined:"joined the group",member_left:"left the group"},yv={sm:"h-4 w-4 border-[1.5px]",md:"h-5 w-5 border-2",lg:"h-8 w-8 border-2"};function gv({size:c="md",className:r}){return s.jsx("span",{role:"status","aria-label":"Loading",className:$("inline-block animate-spin rounded-full border-current border-t-transparent",yv[c],r)})}const bv={primary:"bg-primary hover:bg-primary-hover text-white",secondary:"bg-bg-elevated hover:bg-bg-overlay text-ink border border-bg-overlay",ghost:"hover:bg-bg-elevated text-ink-muted hover:text-ink",danger:"bg-danger hover:bg-danger-hover text-white"},xv={sm:"h-8 px-3 text-sm gap-1.5",md:"h-10 px-4 text-sm gap-2",lg:"h-12 px-6 text-base gap-2"},Fe=R.forwardRef(({variant:c="primary",size:r="md",loading:m=!1,fullWidth:o=!1,className:j,children:S,disabled:E,...M},T)=>s.jsxs("button",{ref:T,disabled:E||m,className:$("inline-flex items-center justify-center rounded-xl font-medium transition-colors duration-150","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2 focus-visible:ring-offset-bg-base","disabled:pointer-events-none disabled:opacity-50",bv[c],xv[r],o&&"w-full",j),...M,children:[m&&s.jsx(gv,{size:"sm"}),S]}));Fe.displayName="Button";const am=R.forwardRef(({label:c,error:r,hint:m,leftIcon:o,rightElement:j,className:S,id:E,...M},T)=>{const O=E??(c==null?void 0:c.toLowerCase().replace(/\s+/g,"-"));return s.jsxs("div",{className:"w-full space-y-1.5",children:[c&&s.jsx("label",{htmlFor:O,className:"block text-sm font-medium text-ink",children:c}),s.jsxs("div",{className:"relative flex items-center",children:[o&&s.jsx("span",{className:"pointer-events-none absolute left-3 text-ink-faint",children:o}),s.jsx("input",{ref:T,id:O,className:$("w-full rounded-xl border bg-bg-surface px-3 py-2.5 text-sm text-ink","placeholder:text-ink-faint","transition-colors duration-150","focus:outline-none focus:ring-2 focus:ring-primary/25 focus:border-primary","disabled:cursor-not-allowed disabled:opacity-50",r?"border-danger focus:ring-danger/25 focus:border-danger":"border-bg-overlay hover:border-ink-faint",o&&"pl-9",j&&"pr-10",S),"aria-invalid":!!r,"aria-describedby":r?`${O}-error`:m?`${O}-hint`:void 0,...M}),j&&s.jsx("span",{className:"absolute right-3",children:j})]}),r&&s.jsx("p",{id:`${O}-error`,className:"text-xs text-danger",role:"alert",children:r}),m&&!r&&s.jsx("p",{id:`${O}-hint`,className:"text-xs text-ink-muted",children:m})]})});am.displayName="Input";function qs({label:c,error:r,options:m,value:o,onChange:j,onBlur:S,placeholder:E="Select…",disabled:M=!1,className:T,name:O,id:X}){var G;const _=R.useId(),D=X??_,K=`${D}-listbox`,P=R.useRef(null),he=R.useRef(null),[V,ze]=R.useState(!1),[pe,B]=R.useState(-1),Z=m.find(C=>C.value===o),le=R.useCallback(()=>{ze(!1),B(-1),S==null||S()},[S]);R.useEffect(()=>{if(!V)return;function C(se){var De;(De=P.current)!=null&&De.contains(se.target)||le()}function q(se){se.key==="Escape"&&(se.preventDefault(),le())}return document.addEventListener("mousedown",C),document.addEventListener("keydown",q),()=>{document.removeEventListener("mousedown",C),document.removeEventListener("keydown",q)}},[V,le]),R.useEffect(()=>{if(!V){B(-1);return}const C=m.findIndex(se=>!se.disabled&&se.value===o),q=m.findIndex(se=>!se.disabled);B(C>=0?C:Math.max(0,q))},[V,o]),R.useEffect(()=>{var q;if(!V||pe<0)return;const C=(q=he.current)==null?void 0:q.querySelector(`[data-opt-idx="${pe}"]`);C==null||C.scrollIntoView({block:"nearest"})},[pe,V]);function Se(C){j==null||j(C),le()}function Re(C){const q=m.map((Ye,N)=>Ye.disabled?-1:N).filter(Ye=>Ye>=0);if(q.length===0)return;const se=q.indexOf(pe),De=se<0?C>0?0:q.length-1:Math.min(Math.max(se+C,0),q.length-1);B(q[De])}function Je(C){if(!M){if(C.key==="ArrowDown"||C.key==="Enter"||C.key===" "){C.preventDefault(),ze(!0);return}C.key==="ArrowUp"&&(C.preventDefault(),ze(!0))}}function Ot(C){if(C.key==="ArrowDown")C.preventDefault(),Re(1);else if(C.key==="ArrowUp")C.preventDefault(),Re(-1);else if(C.key==="Home"){C.preventDefault();const q=m.findIndex(se=>!se.disabled);q>=0&&B(q)}else if(C.key==="End"){C.preventDefault();for(let q=m.length-1;q>=0;q--)if(!m[q].disabled){B(q);break}}else if(C.key==="Enter"||C.key===" "){C.preventDefault();const q=m[pe];q&&!q.disabled&&Se(q.value)}else C.key==="Tab"&&le()}return s.jsxs("div",{ref:P,className:$("relative w-full space-y-1.5",T),children:[c&&s.jsx("label",{htmlFor:D,className:"block text-sm font-medium text-ink",children:c}),O&&s.jsx("input",{type:"hidden",name:O,value:o??"",readOnly:!0}),s.jsxs("button",{type:"button",id:D,disabled:M,"aria-haspopup":"listbox","aria-expanded":V,"aria-controls":K,"aria-invalid":!!r,onClick:()=>V?le():ze(!0),onKeyDown:Je,className:$("flex w-full items-center justify-between gap-2 rounded-xl border bg-bg-elevated px-4 py-3 text-left text-sm transition-all","focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary","disabled:cursor-not-allowed disabled:opacity-50",r?"border-danger focus:ring-danger/25 focus:border-danger":"border-bg-overlay hover:border-ink-faint",V&&!r&&"border-primary ring-2 ring-primary/30"),children:[s.jsx("span",{className:$("truncate",Z?"text-ink font-medium":"text-ink-faint"),children:(Z==null?void 0:Z.label)??E}),s.jsx("svg",{className:$("h-4 w-4 flex-shrink-0 text-ink-muted transition-transform duration-150",V&&"rotate-180"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),V&&s.jsxs("ul",{ref:he,id:K,role:"listbox",tabIndex:-1,"aria-activedescendant":pe>=0?`${D}-opt-${(G=m[pe])==null?void 0:G.value}`:void 0,onKeyDown:Ot,className:"absolute z-50 mt-1.5 max-h-56 w-full overflow-auto rounded-xl border border-bg-overlay bg-bg-surface py-1.5 shadow-lg animate-fade-in focus:outline-none",children:[m.length===0&&s.jsx("li",{className:"px-4 py-2.5 text-sm text-ink-muted",children:"No options"}),m.map((C,q)=>{const se=C.value===o,De=q===pe;return s.jsxs("li",{id:`${D}-opt-${C.value}`,role:"option","aria-selected":se,"aria-disabled":C.disabled||void 0,"data-opt-idx":q,onMouseEnter:()=>{C.disabled||B(q)},onClick:()=>{C.disabled||Se(C.value)},className:$("flex cursor-pointer items-center justify-between gap-2 px-4 py-2.5 text-sm transition-colors",C.disabled&&"cursor-not-allowed opacity-40",De&&!C.disabled&&"bg-primary-subtle text-primary",se&&!De&&"text-primary font-medium",!De&&!se&&"text-ink hover:bg-bg-elevated"),children:[s.jsx("span",{className:"truncate",children:C.label}),se&&s.jsx("svg",{className:"h-4 w-4 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})})]},C.value)})]}),r&&s.jsx("p",{className:"text-xs text-danger",role:"alert",children:r})]})}const pv=["USD","LKR","EUR","GBP","INR","AUD","CAD","JPY","SGD"],Sv=Ds({name:vt().min(2,"Name must be at least 2 characters").max(60),description:vt().max(200).optional(),currency:vt().min(3).max(3).default("USD")});function jv(){var _;const c=tl(D=>D.activeModal),r=tl(D=>D.closeModal),m=$l(),o=ov(),j=c==="add-group",{register:S,handleSubmit:E,control:M,reset:T,formState:{errors:O}}=_s({resolver:Cs(Sv),defaultValues:{currency:"USD"}});if(R.useEffect(()=>(document.body.style.overflow=j?"hidden":"",()=>{document.body.style.overflow=""}),[j]),R.useEffect(()=>{j||T()},[j,T]),!j)return null;async function X(D){const K=await o.mutateAsync(D);r(),m(`/groups/${K.id}`)}return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm animate-fade-in",onClick:r,"aria-hidden":"true"}),s.jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":"create-group-title",className:`fixed inset-x-0 bottom-0 z-50 rounded-t-3xl bg-bg-surface border border-bg-overlay p-6 pb-safe animate-slide-up
                   lg:inset-0 lg:m-auto lg:h-fit lg:max-w-md lg:rounded-2xl`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsx("h2",{id:"create-group-title",className:"text-lg font-bold text-ink",children:"Create a group"}),s.jsx("button",{onClick:r,className:"flex h-8 w-8 items-center justify-center rounded-lg text-ink-muted hover:bg-bg-elevated hover:text-ink transition-all","aria-label":"Close",children:s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs("form",{onSubmit:E(X),className:"space-y-4",children:[s.jsx(am,{label:"Group name",placeholder:"e.g. Bali Trip, Apartment",error:(_=O.name)==null?void 0:_.message,...S("name")}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"block text-sm font-medium text-ink",children:["Description ",s.jsx("span",{className:"text-ink-muted",children:"(optional)"})]}),s.jsx("textarea",{rows:2,placeholder:"What's this group for?",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                         focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none transition-all`,...S("description")}),O.description&&s.jsx("p",{className:"text-xs text-danger",children:O.description.message})]}),s.jsx(Os,{name:"currency",control:M,render:({field:D})=>s.jsx(qs,{label:"Default currency",options:pv.map(K=>({value:K,label:K})),value:D.value,onChange:D.onChange,onBlur:D.onBlur,name:D.name})}),o.error&&s.jsx("p",{className:"text-sm text-danger bg-danger-subtle rounded-xl p-3",children:o.error.message||"Something went wrong"}),s.jsxs("div",{className:"flex gap-3 pt-2",children:[s.jsx(Fe,{type:"button",variant:"secondary",fullWidth:!0,onClick:r,children:"Cancel"}),s.jsx(Fe,{type:"submit",fullWidth:!0,loading:o.isPending,children:"Create group"})]})]})]})]})}function wd(c){const r=new URLSearchParams;return c.page&&r.set("page",String(c.page)),c.limit&&r.set("limit",String(c.limit)),c.category&&r.set("category",c.category),c.from&&r.set("from",c.from),c.to&&r.set("to",c.to),c.sortBy&&r.set("sortBy",c.sortBy),c.sortOrder&&r.set("sortOrder",c.sortOrder),r.toString()?`?${r.toString()}`:""}const ei={listByGroup:(c,r={})=>W.get(`/groups/${c}/expenses${wd(r)}`).then(m=>m.data),listMine:(c={})=>W.get(`/expenses${wd(c)}`).then(r=>r.data),getById:c=>W.get(`/expenses/${c}`).then(r=>r.data),create:(c,r)=>W.post(`/groups/${c}/expenses`,r).then(m=>m.data),update:(c,r)=>W.patch(`/expenses/${c}`,r).then(m=>m.data),delete:c=>W.delete(`/expenses/${c}`).then(r=>r.data)},nm={getSummary:()=>W.get("/dashboard").then(c=>c.data),getRecent:(c=20)=>W.get(`/dashboard/recent?limit=${c}`).then(r=>r.data)},Tl={summary:()=>["dashboard","summary"],recent:c=>["dashboard","recent",c]};function Gy(){return Dl({queryKey:Tl.summary(),queryFn:nm.getSummary,staleTime:6e4})}function Qy(c=8){return Dl({queryKey:Tl.recent(c),queryFn:()=>nm.getRecent(c),staleTime:6e4})}const um={group:(c,r=1)=>["groups",c,"expenses",r],detail:c=>["expenses",c]};function Yy(c){return Dl({queryKey:um.detail(c),queryFn:()=>ei.getById(c),staleTime:3e4,enabled:!!c})}function zv(c){const r=Et();return qe({mutationFn:m=>ei.create(c,m),onSuccess:()=>{r.invalidateQueries({queryKey:["groups",c,"expenses"]}),r.invalidateQueries({queryKey:we.balances(c)}),r.invalidateQueries({queryKey:Tl.summary()}),r.invalidateQueries({queryKey:Tl.recent(8)})}})}function Xy(c){const r=Et();return qe({mutationFn:m=>ei.delete(m),onSuccess:()=>{c&&(r.invalidateQueries({queryKey:["groups",c,"expenses"]}),r.invalidateQueries({queryKey:we.balances(c)})),r.invalidateQueries({queryKey:Tl.summary()})}})}function Vy(c,r){const m=Et();return qe({mutationFn:o=>ei.update(c,o),onSuccess:o=>{m.setQueryData(um.detail(c),o),r&&m.invalidateQueries({queryKey:["groups",r,"expenses"]})}})}const Jd={xs:"h-6 w-6 text-[10px]",sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base",xl:"h-16 w-16 text-xl"},im=["bg-teal-700","bg-emerald-700","bg-cyan-800","bg-amber-700","bg-rose-700","bg-sky-800","bg-stone-700","bg-lime-800"];function Nv(c){return c.charCodeAt(0)%im.length}function Hs({name:c,src:r,size:m="md",className:o}){return r?s.jsx("img",{src:r,alt:c,className:$("rounded-full object-cover ring-1 ring-bg-overlay",Jd[m],o)}):s.jsx("div",{className:$("inline-flex items-center justify-center rounded-full font-semibold text-white ring-1 ring-bg-overlay flex-shrink-0",im[Nv(c)],Jd[m],o),"aria-label":c,children:hv(c)})}const Av={uploadReceipt:c=>{const r=new FormData;return r.append("file",c),W.post("/uploads/receipt",r).then(m=>m.data)}};function Ev(c){var r;if(c instanceof $d){const m=(r=c.response)==null?void 0:r.data;if(Array.isArray(m==null?void 0:m.message))return m.message[0];if(typeof(m==null?void 0:m.message)=="string")return m.message}return c instanceof Error?c.message:"Upload failed. Please try again."}function cm(c,r){return r==="application/pdf"||c.toLowerCase().endsWith(".pdf")}function Mv({value:c,onChange:r,className:m}){const o=R.useRef(null),[j,S]=R.useState(!1),[E,M]=R.useState(null),[T,O]=R.useState(null);async function X(D){if(D){M(null),S(!0);try{const K=await Av.uploadReceipt(D);r(K.url),O(K.mimeType)}catch(K){M(Ev(K))}finally{S(!1),o.current&&(o.current.value="")}}}function _(){r(null),O(null),M(null)}return s.jsxs("div",{className:$("space-y-2",m),children:[s.jsxs("label",{className:"block text-sm font-medium text-ink",children:["Receipt ",s.jsx("span",{className:"text-ink-muted font-normal",children:"(optional)"})]}),s.jsx("input",{ref:o,type:"file",accept:"image/jpeg,image/png,image/webp,image/gif,application/pdf",className:"hidden",onChange:D=>{var K;return void X((K=D.target.files)==null?void 0:K[0])}}),c?s.jsxs("div",{className:"rounded-xl border border-bg-overlay bg-bg-elevated p-3 space-y-2",children:[cm(c,T)?s.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm font-medium text-primary hover:underline",children:[s.jsx("svg",{className:"h-5 w-5 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.75,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}),"View PDF receipt"]}):s.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"block",children:s.jsx("img",{src:c,alt:"Receipt",className:"max-h-40 w-full rounded-lg object-contain bg-bg-base"})}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(Fe,{type:"button",size:"sm",variant:"secondary",onClick:()=>{var D;return(D=o.current)==null?void 0:D.click()},loading:j,children:"Replace"}),s.jsx(Fe,{type:"button",size:"sm",variant:"ghost",onClick:_,disabled:j,children:"Remove"})]})]}):s.jsx("button",{type:"button",disabled:j,onClick:()=>{var D;return(D=o.current)==null?void 0:D.click()},className:"flex w-full items-center justify-center gap-2 rounded-xl border border-dashed border-bg-overlay bg-bg-elevated px-4 py-3 text-sm font-medium text-primary hover:bg-primary-subtle/40 transition-colors disabled:opacity-50",children:j?"Uploading…":s.jsxs(s.Fragment,{children:[s.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),"Upload image or PDF"]})}),s.jsx("p",{className:"text-xs text-ink-muted",children:"JPEG, PNG, WebP, GIF, or PDF · max 5MB"}),E&&s.jsx("p",{className:"text-xs text-danger bg-danger-subtle rounded-xl px-3 py-2",children:E})]})}function Zy({url:c,className:r}){const m=cm(c);return s.jsxs("div",{className:$("space-y-2",r),children:[s.jsx("h3",{className:"text-xs font-semibold text-ink-muted uppercase tracking-wider",children:"Receipt"}),m?s.jsxs("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 rounded-xl border border-bg-overlay bg-bg-elevated p-4 text-sm font-medium text-primary hover:bg-primary-subtle/40 transition-colors",children:[s.jsx("svg",{className:"h-8 w-8 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"})}),"Open PDF receipt"]}):s.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"block overflow-hidden rounded-xl border border-bg-overlay",children:s.jsx("img",{src:c,alt:"Expense receipt",className:"max-h-64 w-full object-contain bg-bg-elevated"})})]})}const Tv=Object.keys(lm),Dv=[{key:"equal",label:"Equal"},{key:"exact",label:"Exact"},{key:"percentage",label:"%"},{key:"shares",label:"Shares"}],_v=Ds({description:vt().min(1,"Description is required").max(120),amount:Id.number().positive("Amount must be positive"),currency:vt().min(3).max(3),category:vt(),paidById:vt().min(1,"Select who paid"),splitType:Fd(["equal","exact","percentage","shares"]),date:vt().min(1),notes:vt().max(300).optional()});function sm(c,r,m){const o=c.filter(S=>S.included);if(o.length===0)return c.map(()=>0);if(m==="equal"){const S=r/o.length;return c.map(E=>E.included?S:0)}if(m==="exact")return c.map(S=>S.value);if(m==="percentage")return c.map(S=>r*S.value/100);const j=o.reduce((S,E)=>S+E.value,0);return c.map(S=>j>0?r*S.value/j:0)}function fm(c,r,m){if(c.filter(j=>j.included).length===0)return"Include at least one person";if(m==="exact"){const j=c.reduce((E,M)=>E+M.value,0);if(Math.abs(j-r)>.01)return`Total must equal ${r.toFixed(2)} (currently ${j.toFixed(2)})`}if(m==="percentage"){const j=c.reduce((E,M)=>E+M.value,0);if(Math.abs(j-100)>.01)return`Percentages must add up to 100% (currently ${j.toFixed(1)}%)`}return null}function Ov({onPick:c}){const{data:r,isLoading:m}=fv();return s.jsxs("div",{className:"space-y-3",children:[s.jsx("p",{className:"text-sm text-ink-muted",children:"Which group is this expense for?"}),m&&s.jsx("p",{className:"text-sm text-ink-muted",children:"Loading groups…"}),s.jsx("div",{className:"space-y-2",children:r==null?void 0:r.map(o=>s.jsxs("button",{onClick:()=>c(o.id),className:"flex w-full items-center gap-3 rounded-xl bg-bg-elevated p-3 hover:bg-bg-overlay transition-all text-left",children:[s.jsx("div",{className:"h-10 w-10 flex-shrink-0 rounded-xl bg-primary-subtle flex items-center justify-center font-bold text-primary text-sm",children:o.name[0]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-ink",children:o.name}),s.jsxs("p",{className:"text-xs text-ink-muted",children:[o.memberCount," members · ",o.currency]})]})]},o.id))})]})}function Uv({rows:c,splitType:r,totalAmount:m,onChange:o}){const j=R.useMemo(()=>sm(c,m,r),[c,r,m]),S=fm(c,m,r);function E(M,T){o(c.map((O,X)=>X===M?{...O,...T}:O))}return s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"space-y-1.5",children:c.map((M,T)=>s.jsxs("div",{className:"flex items-center gap-2.5 rounded-xl bg-bg-elevated p-2.5",children:[r==="equal"&&s.jsx("button",{type:"button",onClick:()=>E(T,{included:!M.included}),className:$("h-5 w-5 flex-shrink-0 rounded-md border-2 flex items-center justify-center transition-all",M.included?"border-primary bg-primary":"border-ink-faint"),children:M.included&&s.jsx("svg",{className:"h-3 w-3 text-ink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})}),s.jsx(Hs,{name:M.name,src:M.avatarUrl,size:"xs"}),s.jsx("span",{className:$("flex-1 text-sm font-medium truncate",!M.included&&r==="equal"?"text-ink-muted line-through":"text-ink"),children:M.name}),r!=="equal"&&s.jsxs("div",{className:"relative",children:[r==="percentage"&&s.jsx("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-xs text-ink-muted",children:"%"}),s.jsx("input",{type:"number",min:"0",step:r==="shares"?"1":"0.01",value:M.value||"",onChange:O=>E(T,{value:parseFloat(O.target.value)||0}),className:$("w-24 rounded-lg border border-bg-overlay bg-bg-base px-2 py-1.5 text-right text-sm text-ink focus:border-primary focus:outline-none",r==="percentage"&&"pr-6"),placeholder:"0"})]}),s.jsx("span",{className:$("text-sm font-medium w-16 text-right flex-shrink-0",!M.included&&r==="equal"?"text-ink-faint":"text-ink"),children:j[T]>0?j[T].toFixed(2):"—"})]},M.userId))}),S&&s.jsxs("p",{className:"flex items-center gap-1.5 text-xs text-warning",children:[s.jsx("svg",{className:"h-3.5 w-3.5 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),S]})]})}function Bv(c){var r;if(c instanceof $d){const m=(r=c.response)==null?void 0:r.data;if(Array.isArray(m==null?void 0:m.message))return m.message[0];if(typeof(m==null?void 0:m.message)=="string")return m.message}return c instanceof Error?c.message:"Could not add person. Please try again."}function Cv({groupId:c,onMemberAdded:r}){const[m,o]=R.useState(!1),[j,S]=R.useState(""),[E,M]=R.useState(null),T=dv(c);function O(X){X.preventDefault(),X.stopPropagation(),j.trim()&&(M(null),T.mutate(j.trim().toLowerCase(),{onSuccess:_=>{S(""),_.type==="member"&&_.member?(r(_.member),M({type:"success",text:`${_.member.name} added and included in this split`}),o(!1)):M({type:"info",text:_.message+(_.invite?" They’ll appear in splits after joining Divyourday.":"")})},onError:_=>{M({type:"error",text:Bv(_)})}}))}return m?s.jsxs("div",{className:"rounded-xl border border-bg-overlay bg-bg-elevated p-3 space-y-2",children:[s.jsx("p",{className:"text-xs text-ink-muted",children:"Enter their email — if they have Divyourday they join this split now; otherwise we send an invite."}),s.jsxs("form",{onSubmit:O,className:"flex gap-2",children:[s.jsx("input",{type:"email",value:j,onChange:X=>S(X.target.value),placeholder:"friend@example.com",autoFocus:!0,required:!0,className:`flex-1 rounded-xl border border-bg-overlay bg-bg-base px-3 py-2 text-sm text-ink placeholder-ink-faint
                     focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30`}),s.jsx(Fe,{type:"submit",size:"sm",loading:T.isPending,children:"Add"}),s.jsx(Fe,{type:"button",size:"sm",variant:"ghost",onClick:()=>{o(!1),S("")},children:"Cancel"})]}),E&&s.jsx("p",{className:$("text-xs rounded-lg px-2 py-1.5",E.type==="success"&&"text-success bg-success-subtle",E.type==="info"&&"text-ink-muted bg-bg-base",E.type==="error"&&"text-danger bg-danger-subtle"),children:E.text})]}):s.jsxs("div",{className:"space-y-2",children:[s.jsxs("button",{type:"button",onClick:()=>{o(!0),M(null)},className:"flex w-full items-center justify-center gap-2 rounded-xl border border-dashed border-bg-overlay py-2.5 text-sm font-medium text-primary hover:bg-primary-subtle/50 transition-colors",children:[s.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Add person to group"]}),E&&s.jsx("p",{className:$("text-xs rounded-xl px-3 py-2",E.type==="success"&&"text-success bg-success-subtle",E.type==="info"&&"text-ink-muted bg-bg-elevated",E.type==="error"&&"text-danger bg-danger-subtle"),children:E.text})]})}function qv(){const c=tl(G=>G.activeModal),r=tl(G=>G.activeGroupId),m=tl(G=>G.closeModal),o=_l(G=>G.user),j=c==="add-expense",[S,E]=R.useState(null),M=r??S,{data:T}=tm(M??""),O=zv(M??""),[X,_]=R.useState([]),[D,K]=R.useState(null);R.useEffect(()=>{T!=null&&T.members&&_(G=>{const C=new Map(G.map(q=>[q.userId,q]));return T.members.map(q=>{const se=C.get(q.userId);return se?{...se,name:q.name,avatarUrl:q.avatarUrl}:{userId:q.userId,name:q.name,avatarUrl:q.avatarUrl,value:0,included:!0}})})},[T==null?void 0:T.members]);function P(G){_(C=>C.some(q=>q.userId===G.userId)?C.map(q=>q.userId===G.userId?{...q,included:!0}:q):[...C,{userId:G.userId,name:G.name,avatarUrl:G.avatarUrl,value:0,included:!0}])}const{register:he,handleSubmit:V,control:ze,watch:pe,reset:B,setValue:Z,formState:{errors:le}}=_s({resolver:Cs(_v),defaultValues:{category:"other",splitType:"equal",date:new Date().toISOString().substring(0,10),currency:"USD"}}),Se=pe("splitType"),Re=pe("amount")??0,Je=pe("category");if(R.useEffect(()=>{T!=null&&T.currency&&Z("currency",T.currency),o!=null&&o.id&&Z("paidById",o.id)},[T,o,Z]),R.useEffect(()=>(document.body.style.overflow=j?"hidden":"",()=>{document.body.style.overflow=""}),[j]),R.useEffect(()=>{j||(B(),E(null),_([]),K(null))},[j,B]),!j)return null;async function Ot(G){if(!M||fm(X,G.amount,G.splitType))return;const q=sm(X,G.amount,G.splitType),se=X.map((De,Ye)=>({userId:De.userId,amount:G.splitType==="exact"?De.value:q[Ye],percentage:G.splitType==="percentage"?De.value:void 0,shares:G.splitType==="shares"?De.value:void 0})).filter((De,Ye)=>X[Ye].included||G.splitType!=="equal");await O.mutateAsync({description:G.description,amount:G.amount,currency:(T==null?void 0:T.currency)??G.currency??"USD",category:G.category,paidById:G.paidById,splitType:G.splitType,date:G.date,notes:G.notes,receiptUrl:D??void 0,splits:se}),m()}return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm animate-fade-in",onClick:m,"aria-hidden":"true"}),s.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Add expense",className:`fixed inset-x-0 bottom-0 z-50 max-h-[92dvh] overflow-y-auto rounded-t-3xl bg-bg-surface border border-bg-overlay
                   animate-slide-up lg:inset-0 lg:m-auto lg:h-fit lg:max-w-lg lg:rounded-2xl lg:max-h-[90vh]`,children:[s.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between bg-bg-surface border-b border-bg-overlay px-5 py-4",children:[s.jsx("h2",{className:"text-base font-bold text-ink",children:M?"Add expense":"Choose a group"}),s.jsx("button",{onClick:m,className:"flex h-8 w-8 items-center justify-center rounded-lg text-ink-muted hover:bg-bg-elevated hover:text-ink transition-all","aria-label":"Close",children:s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs("div",{className:"p-5 space-y-5",children:[!M&&s.jsx(Ov,{onPick:E}),M&&s.jsxs("form",{onSubmit:V(Ot),className:"space-y-5",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Description"}),s.jsx("input",{type:"text",placeholder:"e.g. Dinner at Nobu",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                             focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all`,...he("description")}),le.description&&s.jsx("p",{className:"text-xs text-danger",children:le.description.message})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Amount"}),s.jsx("input",{type:"number",min:"0",step:"0.01",placeholder:"0.00",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                               focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all`,...he("amount")}),le.amount&&s.jsx("p",{className:"text-xs text-danger",children:le.amount.message})]}),s.jsxs("div",{className:"w-28 space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Currency"}),s.jsx("div",{className:"flex h-[46px] items-center rounded-xl border border-bg-overlay bg-bg-elevated px-3 text-sm font-medium text-ink",title:"Uses the group currency — change it in group settings",children:(T==null?void 0:T.currency)??"USD"})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Date"}),s.jsx("input",{type:"date",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink
                             focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all
                             [color-scheme:light]`,...he("date")})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Category"}),s.jsx("div",{className:"grid grid-cols-4 gap-2",children:Tv.map(G=>s.jsxs("button",{type:"button",onClick:()=>Z("category",G),className:$("flex flex-col items-center gap-1 rounded-xl p-2.5 text-center text-xs font-medium transition-all border",Je===G?"border-primary bg-primary-subtle text-primary":"border-bg-overlay bg-bg-elevated text-ink-muted hover:border-ink-faint hover:text-ink"),children:[s.jsx("span",{className:"text-xl",children:lm[G]}),s.jsx("span",{className:"truncate w-full",children:vv[G].split(" ")[0]})]},G))})]}),(T==null?void 0:T.members)&&s.jsx(Os,{name:"paidById",control:ze,render:({field:G})=>{var C;return s.jsx(qs,{label:"Paid by",error:(C=le.paidById)==null?void 0:C.message,options:T.members.map(q=>({value:q.userId,label:q.userId===(o==null?void 0:o.id)?`${q.name} (you)`:q.name})),value:G.value,onChange:G.onChange,onBlur:G.onBlur,name:G.name,placeholder:"Select who paid"})}}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Split"}),s.jsx("div",{className:"grid grid-cols-4 gap-1.5 rounded-xl bg-bg-elevated p-1",children:Dv.map(({key:G,label:C})=>s.jsx("button",{type:"button",onClick:()=>Z("splitType",G),className:$("rounded-lg py-2 text-xs font-medium transition-all",Se===G?"bg-primary text-ink shadow-soft":"text-ink-muted hover:text-ink"),children:C},G))}),X.length>0&&s.jsx(Uv,{rows:X,splitType:Se,totalAmount:Number(Re)||0,onChange:_}),s.jsx(Cv,{groupId:M,onMemberAdded:P})]}),s.jsx(Mv,{value:D,onChange:K}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"block text-sm font-medium text-ink",children:["Notes ",s.jsx("span",{className:"text-ink-muted",children:"(optional)"})]}),s.jsx("textarea",{rows:2,placeholder:"Any extra details…",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                             focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none transition-all`,...he("notes")})]}),O.error&&s.jsx("p",{className:"text-sm text-danger bg-danger-subtle rounded-xl p-3",children:O.error.message||"Something went wrong"}),s.jsxs("div",{className:"flex gap-3 pb-2",children:[s.jsx(Fe,{type:"button",variant:"secondary",fullWidth:!0,onClick:m,children:"Cancel"}),s.jsx(Fe,{type:"submit",fullWidth:!0,loading:O.isPending,children:"Add expense"})]})]})]})]})]})}const Rs={create:c=>W.post("/settlements",c).then(r=>r.data),listMine:c=>W.get("/settlements",{params:c}).then(r=>r.data),listByGroup:(c,r)=>W.get(`/groups/${c}/settlements`,{params:r}).then(m=>m.data),getById:c=>W.get(`/settlements/${c}`).then(r=>r.data),confirm:c=>W.patch(`/settlements/${c}/confirm`).then(r=>r.data)},Hv={mine:(c=1)=>["settlements","mine",c],group:(c,r=1)=>["settlements","group",c,r],detail:c=>["settlements",c]};function ky(c=1){return Dl({queryKey:Hv.mine(c),queryFn:()=>Rs.listMine({page:c,limit:20}),staleTime:3e4})}function Rv(c){const r=Et();return qe({mutationFn:Rs.create,onSuccess:()=>{r.invalidateQueries({queryKey:["settlements"]}),c&&r.invalidateQueries({queryKey:we.balances(c)}),r.invalidateQueries({queryKey:Tl.summary()}),r.invalidateQueries({queryKey:Tl.recent(8)})}})}function Ky(c){const r=Et();return qe({mutationFn:m=>Rs.confirm(m),onSuccess:()=>{r.invalidateQueries({queryKey:["settlements"]}),r.invalidateQueries({queryKey:Tl.summary()})}})}const Lv=[{key:"cash",label:"Cash",icon:"💵"},{key:"bank_transfer",label:"Bank",icon:"🏦"},{key:"upi",label:"UPI",icon:"📲"},{key:"other",label:"Other",icon:"🔄"}],Gv=Ds({payeeId:vt().min(1,"Select who you are paying"),amount:Id.number().positive("Amount must be positive"),currency:vt().min(3).max(3),method:Fd(["cash","bank_transfer","upi","other"]),notes:vt().max(300).optional(),settledAt:vt().optional()});function Qv(){const c=tl(B=>B.activeModal),r=tl(B=>B.activeGroupId),m=tl(B=>B.closeModal),o=_l(B=>B.user),j=c==="record-settlement",{data:S}=tm(r??""),{data:E}=rv(r??""),M=Rv(r??void 0),{register:T,handleSubmit:O,control:X,watch:_,reset:D,setValue:K,formState:{errors:P}}=_s({resolver:Cs(Gv),defaultValues:{method:"cash",currency:"USD",settledAt:new Date().toISOString().substring(0,10)}}),he=_("payeeId"),V=_("method");if(R.useEffect(()=>{S!=null&&S.currency&&K("currency",S.currency)},[S,K]),R.useEffect(()=>{if(!he||!E||!o)return;const B=E.find(Z=>Z.userId===o.id);B&&B.net<0&&K("amount",Math.abs(B.owes))},[he,E,o,K]),R.useEffect(()=>(document.body.style.overflow=j?"hidden":"",()=>{document.body.style.overflow=""}),[j]),R.useEffect(()=>{j||D()},[j,D]),!j)return null;const ze=(S==null?void 0:S.members.filter(B=>B.userId!==(o==null?void 0:o.id)))??[];async function pe(B){await M.mutateAsync({payeeId:B.payeeId,amount:B.amount,currency:B.currency,method:B.method,notes:B.notes,groupId:r??void 0,settledAt:B.settledAt}),m()}return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm animate-fade-in",onClick:m,"aria-hidden":"true"}),s.jsxs("div",{role:"dialog","aria-modal":"true","aria-label":"Record payment",className:`fixed inset-x-0 bottom-0 z-50 max-h-[90dvh] overflow-y-auto rounded-t-3xl bg-bg-surface border border-bg-overlay
                   animate-slide-up lg:inset-0 lg:m-auto lg:h-fit lg:max-w-md lg:rounded-2xl lg:max-h-[88vh]`,children:[s.jsxs("div",{className:"sticky top-0 z-10 flex items-center justify-between bg-bg-surface border-b border-bg-overlay px-5 py-4",children:[s.jsxs("div",{children:[s.jsx("h2",{className:"text-base font-bold text-ink",children:"Record payment"}),S&&s.jsx("p",{className:"text-xs text-ink-muted",children:S.name})]}),s.jsx("button",{onClick:m,className:"flex h-8 w-8 items-center justify-center rounded-lg text-ink-muted hover:bg-bg-elevated hover:text-ink transition-all","aria-label":"Close",children:s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),s.jsxs("form",{onSubmit:O(pe),className:"p-5 space-y-5",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Paying to"}),ze.length===0?s.jsx("p",{className:"text-sm text-ink-muted",children:"No other members in this group."}):s.jsx("div",{className:"space-y-2",children:ze.map(B=>{const Z=E==null?void 0:E.find(Re=>Re.userId===B.userId),le=Z?Z.net>0:!1,Se=he===B.userId;return s.jsxs("button",{type:"button",onClick:()=>K("payeeId",B.userId),className:$("flex w-full items-center gap-3 rounded-xl border p-3 text-left transition-all",Se?"border-primary bg-primary-subtle":"border-bg-overlay bg-bg-elevated hover:border-ink-faint"),children:[s.jsx(Hs,{name:B.name,src:B.avatarUrl,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:$("text-sm font-medium truncate",Se?"text-primary":"text-ink"),children:B.name}),Z&&s.jsx("p",{className:$("text-xs mt-0.5",le?"text-danger":"text-ink-muted"),children:le?`You owe ${mv(Z.net,(S==null?void 0:S.currency)??"USD")}`:"Settled up"})]}),Se&&s.jsx("div",{className:"h-5 w-5 rounded-full bg-primary flex items-center justify-center flex-shrink-0",children:s.jsx("svg",{className:"h-3 w-3 text-ink",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})})]},B.userId)})}),P.payeeId&&s.jsx("p",{className:"text-xs text-danger",children:P.payeeId.message})]}),s.jsxs("div",{className:"flex gap-3",children:[s.jsxs("div",{className:"flex-1 space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Amount"}),s.jsx("input",{type:"number",min:"0",step:"0.01",placeholder:"0.00",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                           focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all`,...T("amount")}),P.amount&&s.jsx("p",{className:"text-xs text-danger",children:P.amount.message})]}),s.jsx("div",{className:"w-28",children:s.jsx(Os,{name:"currency",control:X,render:({field:B})=>s.jsx(qs,{label:"Currency",options:["USD","LKR","EUR","GBP","INR","AUD","CAD","SGD"].map(Z=>({value:Z,label:Z})),value:B.value,onChange:B.onChange,onBlur:B.onBlur,name:B.name})})})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Payment method"}),s.jsx("div",{className:"grid grid-cols-4 gap-2",children:Lv.map(({key:B,label:Z,icon:le})=>s.jsxs("button",{type:"button",onClick:()=>K("method",B),className:$("flex flex-col items-center gap-1 rounded-xl border py-3 text-xs font-medium transition-all",V===B?"border-primary bg-primary-subtle text-primary":"border-bg-overlay bg-bg-elevated text-ink-muted hover:border-ink-faint"),children:[s.jsx("span",{className:"text-xl",children:le}),Z]},B))})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("label",{className:"block text-sm font-medium text-ink",children:"Date"}),s.jsx("input",{type:"date",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink
                         focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all
                         [color-scheme:light]`,...T("settledAt")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsxs("label",{className:"block text-sm font-medium text-ink",children:["Notes ",s.jsx("span",{className:"text-ink-muted",children:"(optional)"})]}),s.jsx("textarea",{rows:2,placeholder:"Any reference or note…",className:`w-full rounded-xl border border-bg-overlay bg-bg-elevated px-4 py-3 text-sm text-ink placeholder-ink-faint
                         focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/30 resize-none transition-all`,...T("notes")})]}),s.jsxs("div",{className:"flex gap-2 rounded-xl bg-primary-subtle border border-primary/20 p-3",children:[s.jsx("svg",{className:"h-4 w-4 text-primary flex-shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s.jsx("p",{className:"text-xs text-primary",children:"The recipient can confirm this payment. Until confirmed, it's marked pending."})]}),M.error&&s.jsx("p",{className:"text-sm text-danger bg-danger-subtle rounded-xl p-3",children:M.error.message||"Something went wrong"}),s.jsxs("div",{className:"flex gap-3 pb-2",children:[s.jsx(Fe,{type:"button",variant:"secondary",fullWidth:!0,onClick:m,children:"Cancel"}),s.jsx(Fe,{type:"submit",fullWidth:!0,loading:M.isPending,children:"Record payment"})]})]})]})]})}function Yv(){const[c,r]=R.useState(!navigator.onLine),[m,o]=R.useState(!navigator.onLine);return R.useEffect(()=>{function j(){r(!1),setTimeout(()=>o(!1),2e3)}function S(){r(!0),o(!0)}return window.addEventListener("online",j),window.addEventListener("offline",S),()=>{window.removeEventListener("online",j),window.removeEventListener("offline",S)}},[]),m?s.jsx("div",{role:"status","aria-live":"polite",className:`fixed bottom-20 left-1/2 z-50 -translate-x-1/2 flex items-center gap-2 rounded-2xl px-4 py-2.5 text-sm font-medium shadow-xl
                  transition-all duration-500 lg:bottom-6
                  ${c?"bg-bg-elevated text-ink border border-bg-overlay":"bg-success-subtle text-success border border-success/20"}`,children:c?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-orange-400 animate-pulse"}),"You're offline — showing cached data"]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"h-2 w-2 rounded-full bg-success"}),"Back online"]})}):null}function Xv(c={}){const{immediate:r=!1,onNeedRefresh:m,onOfflineReady:o,onRegistered:j,onRegisteredSW:S,onRegisterError:E}=c;let M,T,O;const X=async(D=!0)=>{await T,O==null||O()};async function _(){if("serviceWorker"in navigator){if(M=await He(async()=>{const{Workbox:D}=await import("./workbox-window.prod.es5-BBnX5xw4.js");return{Workbox:D}},[]).then(({Workbox:D})=>new D("/sw.js",{scope:"/",type:"classic"})).catch(D=>{E==null||E(D)}),!M)return;O=()=>{M==null||M.messageSkipWaiting()};{let D=!1;const K=()=>{D=!0,M==null||M.addEventListener("controlling",P=>{P.isUpdate&&window.location.reload()}),m==null||m()};M.addEventListener("installed",P=>{typeof P.isUpdate>"u"?typeof P.isExternal<"u"&&P.isExternal?K():!D&&(o==null||o()):P.isUpdate||o==null||o()}),M.addEventListener("waiting",K)}M.register({immediate:r}).then(D=>{S?S("/sw.js",D):j==null||j(D)}).catch(D=>{E==null||E(D)})}}return T=_(),X}function Vv(c={}){const{immediate:r=!0,onNeedRefresh:m,onOfflineReady:o,onRegistered:j,onRegisteredSW:S,onRegisterError:E}=c,[M,T]=R.useState(!1),[O,X]=R.useState(!1),[_]=R.useState(()=>Xv({immediate:r,onOfflineReady(){X(!0),o==null||o()},onNeedRefresh(){T(!0),m==null||m()},onRegistered:j,onRegisteredSW:S,onRegisterError:E}));return{needRefresh:[M,T],offlineReady:[O,X],updateServiceWorker:_}}function Zv(){const{needRefresh:[c],updateServiceWorker:r}=Vv({onRegistered(m){m&&setInterval(()=>m.update(),6e4)}});return c?s.jsxs("div",{role:"alert",className:`fixed bottom-24 left-1/2 z-50 -translate-x-1/2 w-[calc(100%-2rem)] max-w-sm
                 rounded-2xl bg-bg-surface border border-bg-overlay shadow-2xl p-4
                 flex items-center gap-4 lg:bottom-8 animate-slide-up`,children:[s.jsx("div",{className:"flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-xl bg-primary-subtle",children:s.jsx("svg",{className:"h-5 w-5 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-semibold text-ink",children:"Update available"}),s.jsx("p",{className:"text-xs text-ink-muted mt-0.5",children:"A new version of Divyourday is ready."})]}),s.jsx(Fe,{size:"sm",onClick:()=>r(!0),children:"Update"})]}):null}function kv(){const[c,r]=R.useState(null),[m,o]=R.useState(()=>sessionStorage.getItem("pwa-install-dismissed")==="1");R.useEffect(()=>{function E(M){M.preventDefault(),r(M)}return window.addEventListener("beforeinstallprompt",E),()=>window.removeEventListener("beforeinstallprompt",E)},[]),R.useEffect(()=>{window.matchMedia("(display-mode: standalone)").matches&&o(!0)},[]);function j(){sessionStorage.setItem("pwa-install-dismissed","1"),o(!0),r(null)}async function S(){if(!c)return;await c.prompt();const{outcome:E}=await c.userChoice;E==="dismissed"&&j(),r(null)}return!c||m?null:s.jsxs("div",{role:"complementary","aria-label":"Install Divyourday",className:`fixed bottom-24 left-4 right-4 z-50 mx-auto max-w-sm
                 rounded-2xl bg-bg-surface border border-bg-overlay shadow-2xl p-4
                 flex items-center gap-4 lg:bottom-8 animate-slide-up`,children:[s.jsx("div",{className:"flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-2xl bg-primary shadow-soft",children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-6 w-6 text-ink",children:s.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-semibold text-ink",children:"Add Divyourday to home screen"}),s.jsx("p",{className:"text-xs text-ink-muted mt-0.5",children:"Works offline · No app store needed"})]}),s.jsxs("div",{className:"flex flex-col gap-1.5 flex-shrink-0",children:[s.jsx(Fe,{size:"sm",onClick:S,children:"Install"}),s.jsx("button",{onClick:j,className:"text-xs text-ink-faint hover:text-ink-muted transition-colors text-center",children:"Not now"})]})]})}function Kv(){return s.jsxs(s.Fragment,{children:[s.jsx(Pu,{}),s.jsx(jv,{}),s.jsx(qv,{}),s.jsx(Qv,{}),s.jsx(Yv,{}),s.jsx(Zv,{}),s.jsx(kv,{})]})}function wv({className:c,light:r=!1}){const m=r?"currentColor":"#0F6B5C",o=r?"rgba(255,255,255,0.92)":"#F3F6F8";return s.jsxs("svg",{viewBox:"0 0 48 48",fill:"none",className:$("h-full w-full",c),"aria-hidden":!0,children:[s.jsx("circle",{cx:"24",cy:"24",r:"11",fill:m}),s.jsx("path",{d:"M24 13V35",stroke:o,strokeWidth:"2.25",strokeLinecap:"round"}),s.jsx("path",{d:"M24 24L15.2 31.8",stroke:o,strokeWidth:"2.25",strokeLinecap:"round"}),s.jsx("path",{d:"M24 24L32.8 31.8",stroke:o,strokeWidth:"2.25",strokeLinecap:"round"}),s.jsxs("g",{stroke:m,strokeWidth:"2.5",strokeLinecap:"round",children:[s.jsx("path",{d:"M24 4v4"}),s.jsx("path",{d:"M24 40v4"}),s.jsx("path",{d:"M4 24h4"}),s.jsx("path",{d:"M40 24h4"}),s.jsx("path",{d:"M9.8 9.8l2.8 2.8"}),s.jsx("path",{d:"M35.4 35.4l2.8 2.8"}),s.jsx("path",{d:"M38.2 9.8l-2.8 2.8"}),s.jsx("path",{d:"M12.6 35.4l-2.8 2.8"})]})]})}const Jv={sm:{box:"h-8 w-8",text:"text-lg"},md:{box:"h-10 w-10",text:"text-2xl"},lg:{box:"h-12 w-12",text:"text-3xl"}};function Wv({withWordmark:c=!0,light:r=!1,size:m="md",to:o="/",className:j}){const S=Jv[m],E=s.jsxs(s.Fragment,{children:[s.jsx("div",{className:$("flex flex-shrink-0 items-center justify-center rounded-xl",S.box,r?"bg-white/15 text-white":"bg-primary-subtle text-primary"),children:s.jsx("div",{className:"h-[70%] w-[70%]",children:s.jsx(wv,{light:r})})}),c&&s.jsx("span",{className:$("font-display font-bold tracking-tight",m==="sm"?"text-base":S.text,r?"text-white":"text-ink"),children:Us.appName})]});return o===null?s.jsx("div",{className:$("inline-flex items-center gap-2.5",j),children:E}):s.jsx(Rh,{to:o,className:$("inline-flex items-center gap-2.5 group",j),children:E})}const Fl={register:c=>W.post("/auth/register",c).then(r=>r.data),login:c=>W.post("/auth/login",c).then(r=>r.data),logout:()=>W.post("/auth/logout").then(c=>c.data),refresh:()=>W.post("/auth/refresh").then(c=>c.data),forgotPassword:c=>W.post("/auth/forgot-password",{email:c}).then(r=>r.data),resetPassword:(c,r)=>W.post("/auth/reset-password",{token:c,newPassword:r}).then(m=>m.data),verifyEmail:c=>W.post("/auth/verify-email",{token:c}).then(r=>r.data),resendVerification:c=>W.post("/auth/resend-verification",{email:c}).then(r=>r.data)};function $v(){const r=new URLSearchParams(window.location.search).get("redirect");return r!=null&&r.startsWith("/")&&!r.startsWith("//")?r:"/"}function wy(){const{setAuth:c}=_l(),r=$l();return qe({mutationFn:Fl.login,onSuccess:({accessToken:m,user:o})=>{c(o,m),r($v(),{replace:!0})}})}function Jy(){return qe({mutationFn:Fl.register})}function Fv(){const{clearAuth:c}=_l(),r=$l();return qe({mutationFn:Fl.logout,onSettled:()=>{c(),Pd.clear(),r("/login",{replace:!0})}})}function Wy(){return qe({mutationFn:c=>Fl.forgotPassword(c)})}function $y(){const c=$l();return qe({mutationFn:({token:r,newPassword:m})=>Fl.resetPassword(r,m),onSuccess:()=>{c("/login",{replace:!0})}})}function Fy(){const{setAuth:c}=_l(),r=$l();return qe({mutationFn:m=>Fl.verifyEmail(m),onSuccess:({accessToken:m,user:o})=>{c(o,m),r("/",{replace:!0})}})}function Iy(){return qe({mutationFn:c=>Fl.resendVerification(c)})}const Iv=[{to:"/",label:"Dashboard",icon:c=>s.jsx("svg",{className:$("h-5 w-5",c?"text-primary":"text-ink-faint"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:c?2.25:1.5,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})})},{to:"/groups",label:"Groups",icon:c=>s.jsx("svg",{className:$("h-5 w-5",c?"text-primary":"text-ink-faint"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:c?2.25:1.5,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})})},{to:"/activity",label:"Activity",icon:c=>s.jsx("svg",{className:$("h-5 w-5",c?"text-primary":"text-ink-faint"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:c?2.25:1.5,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})})},{to:"/settlements",label:"Payments",icon:c=>s.jsx("svg",{className:$("h-5 w-5",c?"text-primary":"text-ink-faint"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:c?2.25:1.5,d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})},{to:"/reports",label:"Reports",icon:c=>s.jsx("svg",{className:$("h-5 w-5",c?"text-primary":"text-ink-faint"),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:c?2.25:1.5,d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"})})}];function Pv(){const c=_l(m=>m.user),r=Fv();return s.jsxs("aside",{className:"flex h-full w-60 flex-col border-r border-bg-overlay bg-bg-surface",children:[s.jsx("div",{className:"flex h-16 items-center px-4 border-b border-bg-overlay",children:s.jsx(Wv,{size:"sm"})}),s.jsx("nav",{className:"flex-1 space-y-0.5 p-3 pt-4",children:Iv.map(m=>s.jsx(Ra,{to:m.to,end:m.to==="/",className:({isActive:o})=>$("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors",o?"bg-primary-subtle text-primary":"text-ink-muted hover:bg-bg-elevated hover:text-ink"),children:({isActive:o})=>s.jsxs(s.Fragment,{children:[m.icon(o),m.label]})},m.to))}),s.jsxs("div",{className:"border-t border-bg-overlay p-3",children:[s.jsxs(Ra,{to:"/profile",className:({isActive:m})=>$("flex items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors",m?"bg-primary-subtle text-primary":"text-ink-muted hover:bg-bg-elevated hover:text-ink"),children:[s.jsx(Hs,{name:(c==null?void 0:c.name)??"U",src:c==null?void 0:c.avatarUrl,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"truncate text-ink font-medium",children:c==null?void 0:c.name}),s.jsx("p",{className:"truncate text-xs text-ink-faint",children:c==null?void 0:c.email})]})]}),s.jsxs("button",{onClick:()=>r.mutate(),className:"mt-1 flex w-full items-center gap-3 rounded-xl px-3 py-2 text-sm font-medium text-ink-faint hover:bg-bg-elevated hover:text-ink transition-colors",children:[s.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})}),"Sign out"]})]})]})}function ey(){const c=tl(r=>r.openModal);return s.jsxs("nav",{className:"fixed bottom-0 left-0 right-0 z-40 flex items-center justify-around border-t border-bg-overlay bg-bg-surface px-2 pb-safe",children:[s.jsx(Ra,{to:"/",end:!0,className:({isActive:r})=>$("flex flex-col items-center gap-0.5 py-3 px-4 text-xs font-medium transition-colors",r?"text-primary":"text-ink-faint"),children:({isActive:r})=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:r?2.25:1.5,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),s.jsx("span",{children:"Home"})]})}),s.jsx(Ra,{to:"/groups",className:({isActive:r})=>$("flex flex-col items-center gap-0.5 py-3 px-4 text-xs font-medium transition-colors",r?"text-primary":"text-ink-faint"),children:({isActive:r})=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:r?2.25:1.5,d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z"})}),s.jsx("span",{children:"Groups"})]})}),s.jsx("button",{onClick:()=>c("add-expense"),className:"flex flex-col items-center gap-0.5 py-2 px-4","aria-label":"Add expense",children:s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-primary text-white transition-transform active:scale-95",children:s.jsx("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M12 4v16m8-8H4"})})})}),s.jsx(Ra,{to:"/activity",className:({isActive:r})=>$("flex flex-col items-center gap-0.5 py-3 px-4 text-xs font-medium transition-colors",r?"text-primary":"text-ink-faint"),children:({isActive:r})=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:r?2.25:1.5,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),s.jsx("span",{children:"Activity"})]})}),s.jsx(Ra,{to:"/profile",className:({isActive:r})=>$("flex flex-col items-center gap-0.5 py-3 px-4 text-xs font-medium transition-colors",r?"text-primary":"text-ink-faint"),children:({isActive:r})=>s.jsxs(s.Fragment,{children:[s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:r?2.25:1.5,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),s.jsx("span",{children:"Profile"})]})})]})}function ty(){return s.jsxs("div",{className:"flex h-screen bg-bg-base bg-mesh overflow-hidden",children:[s.jsx("div",{className:"hidden lg:flex lg:flex-shrink-0",children:s.jsx(Pv,{})}),s.jsx("div",{className:"flex flex-1 flex-col overflow-hidden bg-bg-base/80",children:s.jsx("main",{className:"flex-1 overflow-y-auto pb-20 lg:pb-0",children:s.jsx(Pu,{})})}),s.jsx("div",{className:"lg:hidden",children:s.jsx(ey,{})})]})}const ly=R.lazy(()=>He(()=>import("./LoginPage-Dmrpc9BS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),ay=R.lazy(()=>He(()=>import("./RegisterPage-eKx07Wcm.js"),__vite__mapDeps([8,1,2,3,4,5,6,7]))),ny=R.lazy(()=>He(()=>import("./ForgotPasswordPage-Cj6m9Q1R.js"),__vite__mapDeps([9,1,2,3,4,6,7]))),uy=R.lazy(()=>He(()=>import("./ResetPasswordPage-b9hVYr7y.js"),__vite__mapDeps([10,1,2,3,4,6,7]))),iy=R.lazy(()=>He(()=>import("./AuthCallbackPage-BzZTYaI6.js"),__vite__mapDeps([11,1,3,12,6,7,2]))),cy=R.lazy(()=>He(()=>import("./VerifyEmailPage-BtMuj0xg.js"),__vite__mapDeps([13,1,3,4,6,7,2]))),sy=R.lazy(()=>He(()=>import("./JoinInvitePage-DBH2DY0L.js"),__vite__mapDeps([14,1,3,6,4,7,2]))),fy=R.lazy(()=>He(()=>import("./DashboardPage-DhYhMhgW.js"),__vite__mapDeps([15,1,3,16,17,18,6,7,2]))),ry=R.lazy(()=>He(()=>import("./GroupsPage-CoJ941Iv.js"),__vite__mapDeps([19,1,3,16,17,6,7,2]))),oy=R.lazy(()=>He(()=>import("./GroupDetailPage-D4LVPq-h.js"),__vite__mapDeps([20,1,3,16,18,17,21,6,7,2]))),dy=R.lazy(()=>He(()=>import("./GroupSettingsPage-CMRsbREe.js"),__vite__mapDeps([22,1,2,16,3,18,21,6,7]))),my=R.lazy(()=>He(()=>import("./ExpenseDetailPage-CMlc_Z7N.js"),__vite__mapDeps([23,1,16,3,18,6,7,2]))),hy=R.lazy(()=>He(()=>import("./SettlementsPage-BXDKe4Wb.js"),__vite__mapDeps([24,1,16,3,18,17,6,7,2]))),vy=R.lazy(()=>He(()=>import("./ActivityPage--9LBVV7W.js"),__vite__mapDeps([25,1,16,3,17,6,7,2]))),yy=R.lazy(()=>He(()=>import("./ReportsPage-1XiteF4o.js"),__vite__mapDeps([26,1,16,3,17,6,7,2]))),gy=R.lazy(()=>He(()=>import("./ProfilePage-C1Hc3DN3.js"),__vite__mapDeps([27,1,2,16,3,12,6,7]))),by=R.lazy(()=>He(()=>import("./NotificationsPage-BmgZlEJF.js"),__vite__mapDeps([28,1,16,3,17,6,7,2]))),xy=R.lazy(()=>He(()=>import("./SearchPage-CLT0wY1t.js"),__vite__mapDeps([29,1,3,16,6,7,2])));function py(){return s.jsx("div",{className:"flex h-screen items-center justify-center bg-bg-base",children:s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent"})})}const Sy=Lh([{element:s.jsx(Kv,{}),children:[{element:s.jsx(cv,{}),children:[{path:"/login",element:s.jsx(ly,{})},{path:"/register",element:s.jsx(ay,{})},{path:"/forgot-password",element:s.jsx(ny,{})},{path:"/reset-password",element:s.jsx(uy,{})}]},{path:"/auth/callback",element:s.jsx(iy,{})},{path:"/verify-email",element:s.jsx(cy,{})},{path:"/join/:token",element:s.jsx(sy,{})},{element:s.jsx(iv,{}),children:[{element:s.jsx(ty,{}),children:[{path:"/",element:s.jsx(fy,{})},{path:"/groups",element:s.jsx(ry,{})},{path:"/groups/:id",element:s.jsx(oy,{})},{path:"/groups/:id/settings",element:s.jsx(dy,{})},{path:"/expenses/:id",element:s.jsx(my,{})},{path:"/settlements",element:s.jsx(hy,{})},{path:"/activity",element:s.jsx(vy,{})},{path:"/reports",element:s.jsx(yy,{})},{path:"/profile",element:s.jsx(gy,{})},{path:"/notifications",element:s.jsx(by,{})},{path:"/search",element:s.jsx(xy,{})}]}]},{path:"*",element:s.jsx(Ms,{to:"/",replace:!0})}]}]);function jy(){return s.jsx(R.Suspense,{fallback:s.jsx(py,{}),children:s.jsx(Gh,{router:Sy})})}const Iu=Ts((c,r)=>({open:!1,options:null,resolve:null,ask:m=>new Promise(o=>{var j,S;(S=(j=r()).resolve)==null||S.call(j,!1),c({open:!0,options:m,resolve:o})}),respond:m=>{const{resolve:o}=r();o==null||o(m),c({open:!1,options:null,resolve:null})}}));function Py(){return Iu(c=>c.ask)}function zy(){const c=Iu(E=>E.open),r=Iu(E=>E.options),m=Iu(E=>E.respond);if(R.useEffect(()=>{if(!c)return;function E(T){T.key==="Escape"&&m(!1)}document.addEventListener("keydown",E);const M=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",E),document.body.style.overflow=M}},[c,m]),!c||!r)return null;const o=r.variant??"primary",j=r.confirmLabel??(o==="danger"?"Delete":"Confirm"),S=r.cancelLabel??"Cancel";return s.jsxs("div",{className:"fixed inset-0 z-[80] flex items-end justify-center p-4 sm:items-center",children:[s.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in",onClick:()=>m(!1),"aria-hidden":"true"}),s.jsxs("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"confirm-title","aria-describedby":"confirm-desc",className:"relative z-10 w-full max-w-sm rounded-2xl border border-bg-overlay bg-bg-surface p-5 shadow-lg animate-slide-up",children:[s.jsxs("div",{className:"flex gap-3",children:[s.jsx("div",{className:`mt-0.5 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-xl ${o==="danger"?"bg-danger-subtle text-danger":"bg-primary-subtle text-primary"}`,children:o==="danger"?s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"})}):s.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":!0,children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),s.jsxs("div",{className:"min-w-0 flex-1 space-y-1",children:[s.jsx("h2",{id:"confirm-title",className:"text-base font-semibold text-ink",children:r.title}),s.jsx("p",{id:"confirm-desc",className:"text-sm text-ink-muted leading-relaxed",children:r.message})]})]}),s.jsxs("div",{className:"mt-5 flex gap-2",children:[s.jsx(Fe,{type:"button",variant:"secondary",fullWidth:!0,onClick:()=>m(!1),children:S}),s.jsx(Fe,{type:"button",variant:o==="danger"?"danger":"primary",fullWidth:!0,onClick:()=>m(!0),autoFocus:!0,children:j})]})]})]})}function Ny(){return s.jsxs(qh,{client:Pd,children:[s.jsx(jy,{}),s.jsx(zy,{}),s.jsx(ev,{initialIsOpen:!1})]})}Fh.createRoot(document.getElementById("root")).render(s.jsx(R.StrictMode,{children:s.jsx(Ny,{})}));export{Hs as A,Fe as B,lm as C,Py as D,Cy as E,dv as F,Uy as G,By as H,am as I,Yy as J,Xy as K,Vy as L,vv as M,Ry as N,Mv as O,ky as P,Ky as Q,Zy as R,gv as S,W as T,Ly as U,Fv as V,qs as W,Iy as a,Jy as b,Wy as c,$y as d,Us as e,_l as f,Es as g,Fy as h,$ as i,_t as j,Wv as k,tl as l,Gy as m,mv as n,Qy as o,Hy as p,fv as q,tm as r,em as s,Cs as t,wy as u,rv as v,ei as w,_y as x,Oy as y,qy as z};
