@mukulaggarwal/pacman 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-DNI6TIXZ.js → chunk-LKKDJ5A7.js} +3 -3
- package/dist/{chunk-WH3UMGHQ.js → chunk-S5ZLV5QT.js} +2 -2
- package/dist/{chunk-YJ32S56Q.js → chunk-X6CHTBN2.js} +5 -3
- package/dist/chunk-X6CHTBN2.js.map +1 -0
- package/dist/daemon.js +1 -1
- package/dist/{dist-WFQSK6BF.js → dist-6XSJ2XC4.js} +48 -7
- package/dist/dist-6XSJ2XC4.js.map +1 -0
- package/dist/{dist-RFHCRKM3.js → dist-GJFZVMLI.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-compat.js +2 -2
- package/dist/onboarding-server.js +1684 -93
- package/dist/onboarding-server.js.map +1 -1
- package/dist/onboarding-web/assets/index-BwF9HPxA.css +1 -0
- package/dist/onboarding-web/assets/index-C0NQ8pNs.js +99 -0
- package/dist/onboarding-web/index.html +2 -2
- package/dist/slack-listener.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YJ32S56Q.js.map +0 -1
- package/dist/dist-WFQSK6BF.js.map +0 -1
- package/dist/onboarding-web/assets/index-BOAOMlJT.css +0 -1
- package/dist/onboarding-web/assets/index-DBwmBIzA.js +0 -71
- /package/dist/{chunk-DNI6TIXZ.js.map → chunk-LKKDJ5A7.js.map} +0 -0
- /package/dist/{chunk-WH3UMGHQ.js.map → chunk-S5ZLV5QT.js.map} +0 -0
- /package/dist/{dist-RFHCRKM3.js.map → dist-GJFZVMLI.js.map} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
(function(){const M=document.createElement("link").relList;if(M&&M.supports&&M.supports("modulepreload"))return;for(const R of document.querySelectorAll('link[rel="modulepreload"]'))m(R);new MutationObserver(R=>{for(const X of R)if(X.type==="childList")for(const B of X.addedNodes)B.tagName==="LINK"&&B.rel==="modulepreload"&&m(B)}).observe(document,{childList:!0,subtree:!0});function Y(R){const X={};return R.integrity&&(X.integrity=R.integrity),R.referrerPolicy&&(X.referrerPolicy=R.referrerPolicy),R.crossOrigin==="use-credentials"?X.credentials="include":R.crossOrigin==="anonymous"?X.credentials="omit":X.credentials="same-origin",X}function m(R){if(R.ep)return;R.ep=!0;const X=Y(R);fetch(R.href,X)}})();function Xd(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ds={exports:{}},An={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Ed;function ov(){if(Ed)return An;Ed=1;var o=Symbol.for("react.transitional.element"),M=Symbol.for("react.fragment");function Y(m,R,X){var B=null;if(X!==void 0&&(B=""+X),R.key!==void 0&&(B=""+R.key),"key"in R){X={};for(var K in R)K!=="key"&&(X[K]=R[K])}else X=R;return R=X.ref,{$$typeof:o,type:m,key:B,ref:R!==void 0?R:null,props:X}}return An.Fragment=M,An.jsx=Y,An.jsxs=Y,An}var zd;function fv(){return zd||(zd=1,ds.exports=ov()),ds.exports}var u=fv(),ms={exports:{}},F={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Md;function dv(){if(Md)return F;Md=1;var o=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),B=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),L=Symbol.iterator;function ae(r){return r===null||typeof r!="object"?null:(r=L&&r[L]||r["@@iterator"],typeof r=="function"?r:null)}var ce={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fe=Object.assign,Te={};function de(r,h,N){this.props=r,this.context=h,this.refs=Te,this.updater=N||ce}de.prototype.isReactComponent={},de.prototype.setState=function(r,h){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,h,"setState")},de.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function we(){}we.prototype=de.prototype;function be(r,h,N){this.props=r,this.context=h,this.refs=Te,this.updater=N||ce}var Se=be.prototype=new we;Se.constructor=be,fe(Se,de.prototype),Se.isPureReactComponent=!0;var xe=Array.isArray;function $(){}var _={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function me(r,h,N){var C=N.ref;return{$$typeof:o,type:r,key:h,ref:C!==void 0?C:null,props:N}}function ke(r,h){return me(r.type,h,r.props)}function We(r){return typeof r=="object"&&r!==null&&r.$$typeof===o}function Xe(r){var h={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(N){return h[N]})}var Ie=/\/+/g;function rl(r,h){return typeof r=="object"&&r!==null&&r.key!=null?Xe(""+r.key):h.toString(36)}function Pe(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then($,$):(r.status="pending",r.then(function(h){r.status==="pending"&&(r.status="fulfilled",r.value=h)},function(h){r.status==="pending"&&(r.status="rejected",r.reason=h)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function j(r,h,N,C,V){var D=typeof r;(D==="undefined"||D==="boolean")&&(r=null);var I=!1;if(r===null)I=!0;else switch(D){case"bigint":case"string":case"number":I=!0;break;case"object":switch(r.$$typeof){case o:case M:I=!0;break;case J:return I=r._init,j(I(r._payload),h,N,C,V)}}if(I)return V=V(r),I=C===""?"."+rl(r,0):C,xe(V)?(N="",I!=null&&(N=I.replace(Ie,"$&/")+"/"),j(V,h,N,"",function(Oa){return Oa})):V!=null&&(We(V)&&(V=ke(V,N+(V.key==null||r&&r.key===V.key?"":(""+V.key).replace(Ie,"$&/")+"/")+I)),h.push(V)),1;I=0;var el=C===""?".":C+":";if(xe(r))for(var _e=0;_e<r.length;_e++)C=r[_e],D=el+rl(C,_e),I+=j(C,h,N,D,V);else if(_e=ae(r),typeof _e=="function")for(r=_e.call(r),_e=0;!(C=r.next()).done;)C=C.value,D=el+rl(C,_e++),I+=j(C,h,N,D,V);else if(D==="object"){if(typeof r.then=="function")return j(Pe(r),h,N,C,V);throw h=String(r),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}return I}function O(r,h,N){if(r==null)return r;var C=[],V=0;return j(r,C,"","",function(D){return h.call(N,D,V++)}),C}function b(r){if(r._status===-1){var h=r._result;h=h(),h.then(function(N){(r._status===0||r._status===-1)&&(r._status=1,r._result=N)},function(N){(r._status===0||r._status===-1)&&(r._status=2,r._result=N)}),r._status===-1&&(r._status=0,r._result=h)}if(r._status===1)return r._result.default;throw r._result}var U=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},p={map:O,forEach:function(r,h,N){O(r,function(){h.apply(this,arguments)},N)},count:function(r){var h=0;return O(r,function(){h++}),h},toArray:function(r){return O(r,function(h){return h})||[]},only:function(r){if(!We(r))throw Error("React.Children.only expected to receive a single React element child.");return r}};return F.Activity=q,F.Children=p,F.Component=de,F.Fragment=Y,F.Profiler=R,F.PureComponent=be,F.StrictMode=m,F.Suspense=H,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,F.__COMPILER_RUNTIME={__proto__:null,c:function(r){return _.H.useMemoCache(r)}},F.cache=function(r){return function(){return r.apply(null,arguments)}},F.cacheSignal=function(){return null},F.cloneElement=function(r,h,N){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var C=fe({},r.props),V=r.key;if(h!=null)for(D in h.key!==void 0&&(V=""+h.key),h)!k.call(h,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&h.ref===void 0||(C[D]=h[D]);var D=arguments.length-2;if(D===1)C.children=N;else if(1<D){for(var I=Array(D),el=0;el<D;el++)I[el]=arguments[el+2];C.children=I}return me(r.type,V,C)},F.createContext=function(r){return r={$$typeof:B,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:X,_context:r},r},F.createElement=function(r,h,N){var C,V={},D=null;if(h!=null)for(C in h.key!==void 0&&(D=""+h.key),h)k.call(h,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(V[C]=h[C]);var I=arguments.length-2;if(I===1)V.children=N;else if(1<I){for(var el=Array(I),_e=0;_e<I;_e++)el[_e]=arguments[_e+2];V.children=el}if(r&&r.defaultProps)for(C in I=r.defaultProps,I)V[C]===void 0&&(V[C]=I[C]);return me(r,D,V)},F.createRef=function(){return{current:null}},F.forwardRef=function(r){return{$$typeof:K,render:r}},F.isValidElement=We,F.lazy=function(r){return{$$typeof:J,_payload:{_status:-1,_result:r},_init:b}},F.memo=function(r,h){return{$$typeof:A,type:r,compare:h===void 0?null:h}},F.startTransition=function(r){var h=_.T,N={};_.T=N;try{var C=r(),V=_.S;V!==null&&V(N,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then($,U)}catch(D){U(D)}finally{h!==null&&N.types!==null&&(h.types=N.types),_.T=h}},F.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},F.use=function(r){return _.H.use(r)},F.useActionState=function(r,h,N){return _.H.useActionState(r,h,N)},F.useCallback=function(r,h){return _.H.useCallback(r,h)},F.useContext=function(r){return _.H.useContext(r)},F.useDebugValue=function(){},F.useDeferredValue=function(r,h){return _.H.useDeferredValue(r,h)},F.useEffect=function(r,h){return _.H.useEffect(r,h)},F.useEffectEvent=function(r){return _.H.useEffectEvent(r)},F.useId=function(){return _.H.useId()},F.useImperativeHandle=function(r,h,N){return _.H.useImperativeHandle(r,h,N)},F.useInsertionEffect=function(r,h){return _.H.useInsertionEffect(r,h)},F.useLayoutEffect=function(r,h){return _.H.useLayoutEffect(r,h)},F.useMemo=function(r,h){return _.H.useMemo(r,h)},F.useOptimistic=function(r,h){return _.H.useOptimistic(r,h)},F.useReducer=function(r,h,N){return _.H.useReducer(r,h,N)},F.useRef=function(r){return _.H.useRef(r)},F.useState=function(r){return _.H.useState(r)},F.useSyncExternalStore=function(r,h,N){return _.H.useSyncExternalStore(r,h,N)},F.useTransition=function(){return _.H.useTransition()},F.version="19.2.4",F}var Cd;function xs(){return Cd||(Cd=1,ms.exports=dv()),ms.exports}var te=xs();const mv=Xd(te);var hs={exports:{}},Nn={},vs={exports:{}},ys={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Od;function hv(){return Od||(Od=1,(function(o){function M(j,O){var b=j.length;j.push(O);e:for(;0<b;){var U=b-1>>>1,p=j[U];if(0<R(p,O))j[U]=O,j[b]=p,b=U;else break e}}function Y(j){return j.length===0?null:j[0]}function m(j){if(j.length===0)return null;var O=j[0],b=j.pop();if(b!==O){j[0]=b;e:for(var U=0,p=j.length,r=p>>>1;U<r;){var h=2*(U+1)-1,N=j[h],C=h+1,V=j[C];if(0>R(N,b))C<p&&0>R(V,N)?(j[U]=V,j[C]=b,U=C):(j[U]=N,j[h]=b,U=h);else if(C<p&&0>R(V,b))j[U]=V,j[C]=b,U=C;else break e}}return O}function R(j,O){var b=j.sortIndex-O.sortIndex;return b!==0?b:j.id-O.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var X=performance;o.unstable_now=function(){return X.now()}}else{var B=Date,K=B.now();o.unstable_now=function(){return B.now()-K}}var H=[],A=[],J=1,q=null,L=3,ae=!1,ce=!1,fe=!1,Te=!1,de=typeof setTimeout=="function"?setTimeout:null,we=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function Se(j){for(var O=Y(A);O!==null;){if(O.callback===null)m(A);else if(O.startTime<=j)m(A),O.sortIndex=O.expirationTime,M(H,O);else break;O=Y(A)}}function xe(j){if(fe=!1,Se(j),!ce)if(Y(H)!==null)ce=!0,$||($=!0,Xe());else{var O=Y(A);O!==null&&Pe(xe,O.startTime-j)}}var $=!1,_=-1,k=5,me=-1;function ke(){return Te?!0:!(o.unstable_now()-me<k)}function We(){if(Te=!1,$){var j=o.unstable_now();me=j;var O=!0;try{e:{ce=!1,fe&&(fe=!1,we(_),_=-1),ae=!0;var b=L;try{l:{for(Se(j),q=Y(H);q!==null&&!(q.expirationTime>j&&ke());){var U=q.callback;if(typeof U=="function"){q.callback=null,L=q.priorityLevel;var p=U(q.expirationTime<=j);if(j=o.unstable_now(),typeof p=="function"){q.callback=p,Se(j),O=!0;break l}q===Y(H)&&m(H),Se(j)}else m(H);q=Y(H)}if(q!==null)O=!0;else{var r=Y(A);r!==null&&Pe(xe,r.startTime-j),O=!1}}break e}finally{q=null,L=b,ae=!1}O=void 0}}finally{O?Xe():$=!1}}}var Xe;if(typeof be=="function")Xe=function(){be(We)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,rl=Ie.port2;Ie.port1.onmessage=We,Xe=function(){rl.postMessage(null)}}else Xe=function(){de(We,0)};function Pe(j,O){_=de(function(){j(o.unstable_now())},O)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(j){j.callback=null},o.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<j?Math.floor(1e3/j):5},o.unstable_getCurrentPriorityLevel=function(){return L},o.unstable_next=function(j){switch(L){case 1:case 2:case 3:var O=3;break;default:O=L}var b=L;L=O;try{return j()}finally{L=b}},o.unstable_requestPaint=function(){Te=!0},o.unstable_runWithPriority=function(j,O){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var b=L;L=j;try{return O()}finally{L=b}},o.unstable_scheduleCallback=function(j,O,b){var U=o.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?U+b:U):b=U,j){case 1:var p=-1;break;case 2:p=250;break;case 5:p=1073741823;break;case 4:p=1e4;break;default:p=5e3}return p=b+p,j={id:J++,callback:O,priorityLevel:j,startTime:b,expirationTime:p,sortIndex:-1},b>U?(j.sortIndex=b,M(A,j),Y(H)===null&&j===Y(A)&&(fe?(we(_),_=-1):fe=!0,Pe(xe,b-U))):(j.sortIndex=p,M(H,j),ce||ae||(ce=!0,$||($=!0,Xe()))),j},o.unstable_shouldYield=ke,o.unstable_wrapCallback=function(j){var O=L;return function(){var b=L;L=O;try{return j.apply(this,arguments)}finally{L=b}}}})(ys)),ys}var _d;function vv(){return _d||(_d=1,vs.exports=hv()),vs.exports}var gs={exports:{}},$e={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Dd;function yv(){if(Dd)return $e;Dd=1;var o=xs();function M(H){var A="https://react.dev/errors/"+H;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var J=2;J<arguments.length;J++)A+="&args[]="+encodeURIComponent(arguments[J])}return"Minified React error #"+H+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Y(){}var m={d:{f:Y,r:function(){throw Error(M(522))},D:Y,C:Y,L:Y,m:Y,X:Y,S:Y,M:Y},p:0,findDOMNode:null},R=Symbol.for("react.portal");function X(H,A,J){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:q==null?null:""+q,children:H,containerInfo:A,implementation:J}}var B=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function K(H,A){if(H==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return $e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,$e.createPortal=function(H,A){var J=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(M(299));return X(H,A,null,J)},$e.flushSync=function(H){var A=B.T,J=m.p;try{if(B.T=null,m.p=2,H)return H()}finally{B.T=A,m.p=J,m.d.f()}},$e.preconnect=function(H,A){typeof H=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,m.d.C(H,A))},$e.prefetchDNS=function(H){typeof H=="string"&&m.d.D(H)},$e.preinit=function(H,A){if(typeof H=="string"&&A&&typeof A.as=="string"){var J=A.as,q=K(J,A.crossOrigin),L=typeof A.integrity=="string"?A.integrity:void 0,ae=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;J==="style"?m.d.S(H,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:q,integrity:L,fetchPriority:ae}):J==="script"&&m.d.X(H,{crossOrigin:q,integrity:L,fetchPriority:ae,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},$e.preinitModule=function(H,A){if(typeof H=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var J=K(A.as,A.crossOrigin);m.d.M(H,{crossOrigin:J,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&m.d.M(H)},$e.preload=function(H,A){if(typeof H=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var J=A.as,q=K(J,A.crossOrigin);m.d.L(H,J,{crossOrigin:q,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},$e.preloadModule=function(H,A){if(typeof H=="string")if(A){var J=K(A.as,A.crossOrigin);m.d.m(H,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:J,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else m.d.m(H)},$e.requestFormReset=function(H){m.d.r(H)},$e.unstable_batchedUpdates=function(H,A){return H(A)},$e.useFormState=function(H,A,J){return B.H.useFormState(H,A,J)},$e.useFormStatus=function(){return B.H.useHostTransitionStatus()},$e.version="19.2.4",$e}var Ud;function gv(){if(Ud)return gs.exports;Ud=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(M){console.error(M)}}return o(),gs.exports=yv(),gs.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Rd;function pv(){if(Rd)return Nn;Rd=1;var o=vv(),M=xs(),Y=gv();function m(e){var l="https://react.dev/errors/"+e;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)l+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function R(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function X(e){var l=e,t=e;if(e.alternate)for(;l.return;)l=l.return;else{e=l;do l=e,(l.flags&4098)!==0&&(t=l.return),e=l.return;while(e)}return l.tag===3?t:null}function B(e){if(e.tag===13){var l=e.memoizedState;if(l===null&&(e=e.alternate,e!==null&&(l=e.memoizedState)),l!==null)return l.dehydrated}return null}function K(e){if(e.tag===31){var l=e.memoizedState;if(l===null&&(e=e.alternate,e!==null&&(l=e.memoizedState)),l!==null)return l.dehydrated}return null}function H(e){if(X(e)!==e)throw Error(m(188))}function A(e){var l=e.alternate;if(!l){if(l=X(e),l===null)throw Error(m(188));return l!==e?null:e}for(var t=e,a=l;;){var n=t.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){t=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===t)return H(n),e;if(i===a)return H(n),l;i=i.sibling}throw Error(m(188))}if(t.return!==a.return)t=n,a=i;else{for(var c=!1,s=n.child;s;){if(s===t){c=!0,t=n,a=i;break}if(s===a){c=!0,a=n,t=i;break}s=s.sibling}if(!c){for(s=i.child;s;){if(s===t){c=!0,t=i,a=n;break}if(s===a){c=!0,a=i,t=n;break}s=s.sibling}if(!c)throw Error(m(189))}}if(t.alternate!==a)throw Error(m(190))}if(t.tag!==3)throw Error(m(188));return t.stateNode.current===t?e:l}function J(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e;for(e=e.child;e!==null;){if(l=J(e),l!==null)return l;e=e.sibling}return null}var q=Object.assign,L=Symbol.for("react.element"),ae=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),fe=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),we=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),ke=Symbol.for("react.memo_cache_sentinel"),We=Symbol.iterator;function Xe(e){return e===null||typeof e!="object"?null:(e=We&&e[We]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function rl(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fe:return"Fragment";case de:return"Profiler";case Te:return"StrictMode";case xe:return"Suspense";case $:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ce:return"Portal";case be:return e.displayName||"Context";case we:return(e._context.displayName||"Context")+".Consumer";case Se:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _:return l=e.displayName||null,l!==null?l:rl(e.type)||"Memo";case k:l=e._payload,e=e._init;try{return rl(e(l))}catch{}}return null}var Pe=Array.isArray,j=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b={pending:!1,data:null,method:null,action:null},U=[],p=-1;function r(e){return{current:e}}function h(e){0>p||(e.current=U[p],U[p]=null,p--)}function N(e,l){p++,U[p]=e.current,e.current=l}var C=r(null),V=r(null),D=r(null),I=r(null);function el(e,l){switch(N(D,l),N(V,e),N(C,null),l.nodeType){case 9:case 11:e=(e=l.documentElement)&&(e=e.namespaceURI)?Ff(e):0;break;default:if(e=l.tagName,l=l.namespaceURI)l=Ff(l),e=Wf(l,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}h(C),N(C,e)}function _e(){h(C),h(V),h(D)}function Oa(e){e.memoizedState!==null&&N(I,e);var l=C.current,t=Wf(l,e.type);l!==t&&(N(V,e),N(C,t))}function Cn(e){V.current===e&&(h(C),h(V)),I.current===e&&(h(I),Sn._currentValue=b)}var Ji,Ts;function zt(e){if(Ji===void 0)try{throw Error()}catch(t){var l=t.stack.trim().match(/\n( *(at )?)/);Ji=l&&l[1]||"",Ts=-1<t.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ji+e+Ts}var Fi=!1;function Wi(e,l){if(!e||Fi)return"";Fi=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(x){var S=x}Reflect.construct(e,[],z)}else{try{z.call()}catch(x){S=x}e.call(z.prototype)}}else{try{throw Error()}catch(x){S=x}(z=e())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(x){if(x&&S&&typeof x.stack=="string")return[x.stack,S.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 i=a.DetermineComponentFrameRoot(),c=i[0],s=i[1];if(c&&s){var f=c.split(`
|
|
44
|
-
`),g=s.split(`
|
|
45
|
-
`);for(n=a=0;a<f.length&&!f[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===f.length||n===g.length)for(a=f.length-1,n=g.length-1;1<=a&&0<=n&&f[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(f[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||f[a]!==g[n]){var T=`
|
|
46
|
-
`+f[a].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),T}while(1<=a&&0<=n);break}}}finally{Fi=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?zt(t):""}function Qd(e,l){switch(e.tag){case 26:case 27:case 5:return zt(e.type);case 16:return zt("Lazy");case 13:return e.child!==l&&l!==null?zt("Suspense Fallback"):zt("Suspense");case 19:return zt("SuspenseList");case 0:case 15:return Wi(e.type,!1);case 11:return Wi(e.type.render,!1);case 1:return Wi(e.type,!0);case 31:return zt("Activity");default:return""}}function As(e){try{var l="",t=null;do l+=Qd(e,t),t=e,e=e.return;while(e);return l}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var $i=Object.prototype.hasOwnProperty,Ii=o.unstable_scheduleCallback,Pi=o.unstable_cancelCallback,Ld=o.unstable_shouldYield,wd=o.unstable_requestPaint,ol=o.unstable_now,kd=o.unstable_getCurrentPriorityLevel,Ns=o.unstable_ImmediatePriority,Es=o.unstable_UserBlockingPriority,On=o.unstable_NormalPriority,Zd=o.unstable_LowPriority,zs=o.unstable_IdlePriority,Vd=o.log,Kd=o.unstable_setDisableYieldValue,_a=null,fl=null;function tt(e){if(typeof Vd=="function"&&Kd(e),fl&&typeof fl.setStrictMode=="function")try{fl.setStrictMode(_a,e)}catch{}}var dl=Math.clz32?Math.clz32:Wd,Jd=Math.log,Fd=Math.LN2;function Wd(e){return e>>>=0,e===0?32:31-(Jd(e)/Fd|0)|0}var _n=256,Dn=262144,Un=4194304;function Mt(e){var l=e&42;if(l!==0)return l;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 Rn(e,l,t){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~i,a!==0?n=Mt(a):(c&=s,c!==0?n=Mt(c):t||(t=s&~e,t!==0&&(n=Mt(t))))):(s=a&~i,s!==0?n=Mt(s):c!==0?n=Mt(c):t||(t=a&~e,t!==0&&(n=Mt(t)))),n===0?0:l!==0&&l!==n&&(l&i)===0&&(i=n&-n,t=l&-l,i>=t||i===32&&(t&4194048)!==0)?l:n}function Da(e,l){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&l)===0}function $d(e,l){switch(e){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 Ms(){var e=Un;return Un<<=1,(Un&62914560)===0&&(Un=4194304),e}function eu(e){for(var l=[],t=0;31>t;t++)l.push(e);return l}function Ua(e,l){e.pendingLanes|=l,l!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Id(e,l,t,a,n,i){var c=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var s=e.entanglements,f=e.expirationTimes,g=e.hiddenUpdates;for(t=c&~t;0<t;){var T=31-dl(t),z=1<<T;s[T]=0,f[T]=-1;var S=g[T];if(S!==null)for(g[T]=null,T=0;T<S.length;T++){var x=S[T];x!==null&&(x.lane&=-536870913)}t&=~z}a!==0&&Cs(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~l))}function Cs(e,l,t){e.pendingLanes|=l,e.suspendedLanes&=~l;var a=31-dl(l);e.entangledLanes|=l,e.entanglements[a]=e.entanglements[a]|1073741824|t&261930}function Os(e,l){var t=e.entangledLanes|=l;for(e=e.entanglements;t;){var a=31-dl(t),n=1<<a;n&l|e[a]&l&&(e[a]|=l),t&=~n}}function _s(e,l){var t=l&-l;return t=(t&42)!==0?1:lu(t),(t&(e.suspendedLanes|l))!==0?0:t}function lu(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 tu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ds(){var e=O.p;return e!==0?e:(e=window.event,e===void 0?32:bd(e.type))}function Us(e,l){var t=O.p;try{return O.p=e,l()}finally{O.p=t}}var at=Math.random().toString(36).slice(2),Ze="__reactFiber$"+at,tl="__reactProps$"+at,Vt="__reactContainer$"+at,au="__reactEvents$"+at,Pd="__reactListeners$"+at,em="__reactHandles$"+at,Rs="__reactResources$"+at,Ra="__reactMarker$"+at;function nu(e){delete e[Ze],delete e[tl],delete e[au],delete e[Pd],delete e[em]}function Kt(e){var l=e[Ze];if(l)return l;for(var t=e.parentNode;t;){if(l=t[Vt]||t[Ze]){if(t=l.alternate,l.child!==null||t!==null&&t.child!==null)for(e=ad(e);e!==null;){if(t=e[Ze])return t;e=ad(e)}return l}e=t,t=e.parentNode}return null}function Jt(e){if(e=e[Ze]||e[Vt]){var l=e.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return e}return null}function Ba(e){var l=e.tag;if(l===5||l===26||l===27||l===6)return e.stateNode;throw Error(m(33))}function Ft(e){var l=e[Rs];return l||(l=e[Rs]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Qe(e){e[Ra]=!0}var Bs=new Set,Hs={};function Ct(e,l){Wt(e,l),Wt(e+"Capture",l)}function Wt(e,l){for(Hs[e]=l,e=0;e<l.length;e++)Bs.add(l[e])}var lm=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]*$"),Gs={},qs={};function tm(e){return $i.call(qs,e)?!0:$i.call(Gs,e)?!1:lm.test(e)?qs[e]=!0:(Gs[e]=!0,!1)}function Bn(e,l,t){if(tm(l))if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(l);return}}e.setAttribute(l,""+t)}}function Hn(e,l,t){if(t===null)e.removeAttribute(l);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttribute(l,""+t)}}function Gl(e,l,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(l,t,""+a)}}function Sl(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ys(e){var l=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function am(e,l,t){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,l);if(!e.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,l,{configurable:!0,get:function(){return n.call(this)},set:function(c){t=""+c,i.call(this,c)}}),Object.defineProperty(e,l,{enumerable:a.enumerable}),{getValue:function(){return t},setValue:function(c){t=""+c},stopTracking:function(){e._valueTracker=null,delete e[l]}}}}function iu(e){if(!e._valueTracker){var l=Ys(e)?"checked":"value";e._valueTracker=am(e,l,""+e[l])}}function Xs(e){if(!e)return!1;var l=e._valueTracker;if(!l)return!0;var t=l.getValue(),a="";return e&&(a=Ys(e)?e.checked?"true":"false":e.value),e=a,e!==t?(l.setValue(e),!0):!1}function Gn(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 nm=/[\n"\\]/g;function xl(e){return e.replace(nm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function uu(e,l,t,a,n,i,c,s){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),l!=null?c==="number"?(l===0&&e.value===""||e.value!=l)&&(e.value=""+Sl(l)):e.value!==""+Sl(l)&&(e.value=""+Sl(l)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),l!=null?cu(e,c,Sl(l)):t!=null?cu(e,c,Sl(t)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Sl(s):e.removeAttribute("name")}function Qs(e,l,t,a,n,i,c,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),l!=null||t!=null){if(!(i!=="submit"&&i!=="reset"||l!=null)){iu(e);return}t=t!=null?""+Sl(t):"",l=l!=null?""+Sl(l):t,s||l===e.value||(e.value=l),e.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),iu(e)}function cu(e,l,t){l==="number"&&Gn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function $t(e,l,t,a){if(e=e.options,l){l={};for(var n=0;n<t.length;n++)l["$"+t[n]]=!0;for(t=0;t<e.length;t++)n=l.hasOwnProperty("$"+e[t].value),e[t].selected!==n&&(e[t].selected=n),n&&a&&(e[t].defaultSelected=!0)}else{for(t=""+Sl(t),l=null,n=0;n<e.length;n++){if(e[n].value===t){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}l!==null||e[n].disabled||(l=e[n])}l!==null&&(l.selected=!0)}}function Ls(e,l,t){if(l!=null&&(l=""+Sl(l),l!==e.value&&(e.value=l),t==null)){e.defaultValue!==l&&(e.defaultValue=l);return}e.defaultValue=t!=null?""+Sl(t):""}function ws(e,l,t,a){if(l==null){if(a!=null){if(t!=null)throw Error(m(92));if(Pe(a)){if(1<a.length)throw Error(m(93));a=a[0]}t=a}t==null&&(t=""),l=t}t=Sl(l),e.defaultValue=t,a=e.textContent,a===t&&a!==""&&a!==null&&(e.value=a),iu(e)}function It(e,l){if(l){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=l;return}}e.textContent=l}var im=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 ks(e,l,t){var a=l.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?a?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="":a?e.setProperty(l,t):typeof t!="number"||t===0||im.has(l)?l==="float"?e.cssFloat=t:e[l]=(""+t).trim():e[l]=t+"px"}function Zs(e,l,t){if(l!=null&&typeof l!="object")throw Error(m(62));if(e=e.style,t!=null){for(var a in t)!t.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&t[n]!==a&&ks(e,n,a)}else for(var i in l)l.hasOwnProperty(i)&&ks(e,i,l[i])}function su(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 um=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"]]),cm=/^[\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 qn(e){return cm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ql(){}var ru=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pt=null,ea=null;function Vs(e){var l=Jt(e);if(l&&(e=l.stateNode)){var t=e[tl]||null;e:switch(e=l.stateNode,l.type){case"input":if(uu(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),l=t.name,t.type==="radio"&&l!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+xl(""+l)+'"][type="radio"]'),l=0;l<t.length;l++){var a=t[l];if(a!==e&&a.form===e.form){var n=a[tl]||null;if(!n)throw Error(m(90));uu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<t.length;l++)a=t[l],a.form===e.form&&Xs(a)}break e;case"textarea":Ls(e,t.value,t.defaultValue);break e;case"select":l=t.value,l!=null&&$t(e,!!t.multiple,l,!1)}}}var fu=!1;function Ks(e,l,t){if(fu)return e(l,t);fu=!0;try{var a=e(l);return a}finally{if(fu=!1,(Pt!==null||ea!==null)&&(Ni(),Pt&&(l=Pt,e=ea,ea=Pt=null,Vs(l),e)))for(l=0;l<e.length;l++)Vs(e[l])}}function Ha(e,l){var t=e.stateNode;if(t===null)return null;var a=t[tl]||null;if(a===null)return null;t=a[l];e:switch(l){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(t&&typeof t!="function")throw Error(m(231,l,typeof t));return t}var Yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=!1;if(Yl)try{var Ga={};Object.defineProperty(Ga,"passive",{get:function(){du=!0}}),window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{du=!1}var nt=null,mu=null,Yn=null;function Js(){if(Yn)return Yn;var e,l=mu,t=l.length,a,n="value"in nt?nt.value:nt.textContent,i=n.length;for(e=0;e<t&&l[e]===n[e];e++);var c=t-e;for(a=1;a<=c&&l[t-a]===n[i-a];a++);return Yn=n.slice(e,1<a?1-a:void 0)}function Xn(e){var l=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&l===13&&(e=13)):e=l,e===10&&(e=13),32<=e||e===13?e:0}function Qn(){return!0}function Fs(){return!1}function al(e){function l(t,a,n,i,c){this._reactName=t,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Qn:Fs,this.isPropagationStopped=Fs,this}return q(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Qn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Qn)},persist:function(){},isPersistent:Qn}),l}var Ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=al(Ot),qa=q({},Ot,{view:0,detail:0}),sm=al(qa),hu,vu,Ya,wn=q({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,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!==Ya&&(Ya&&e.type==="mousemove"?(hu=e.screenX-Ya.screenX,vu=e.screenY-Ya.screenY):vu=hu=0,Ya=e),hu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),Ws=al(wn),rm=q({},wn,{dataTransfer:0}),om=al(rm),fm=q({},qa,{relatedTarget:0}),yu=al(fm),dm=q({},Ot,{animationName:0,elapsedTime:0,pseudoElement:0}),mm=al(dm),hm=q({},Ot,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vm=al(hm),ym=q({},Ot,{data:0}),$s=al(ym),gm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pm={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"},bm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sm(e){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(e):(e=bm[e])?!!l[e]:!1}function gu(){return Sm}var xm=q({},qa,{key:function(e){if(e.key){var l=gm[e.key]||e.key;if(l!=="Unidentified")return l}return e.type==="keypress"?(e=Xn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(e){return e.type==="keypress"?Xn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jm=al(xm),Tm=q({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Is=al(Tm),Am=q({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),Nm=al(Am),Em=q({},Ot,{propertyName:0,elapsedTime:0,pseudoElement:0}),zm=al(Em),Mm=q({},wn,{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}),Cm=al(Mm),Om=q({},Ot,{newState:0,oldState:0}),_m=al(Om),Dm=[9,13,27,32],pu=Yl&&"CompositionEvent"in window,Xa=null;Yl&&"documentMode"in document&&(Xa=document.documentMode);var Um=Yl&&"TextEvent"in window&&!Xa,Ps=Yl&&(!pu||Xa&&8<Xa&&11>=Xa),er=" ",lr=!1;function tr(e,l){switch(e){case"keyup":return Dm.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ar(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var la=!1;function Rm(e,l){switch(e){case"compositionend":return ar(l);case"keypress":return l.which!==32?null:(lr=!0,er);case"textInput":return e=l.data,e===er&&lr?null:e;default:return null}}function Bm(e,l){if(la)return e==="compositionend"||!pu&&tr(e,l)?(e=Js(),Yn=mu=nt=null,la=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Ps&&l.locale!=="ko"?null:l.data;default:return null}}var Hm={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 nr(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l==="input"?!!Hm[e.type]:l==="textarea"}function ir(e,l,t,a){Pt?ea?ea.push(a):ea=[a]:Pt=a,l=Di(l,"onChange"),0<l.length&&(t=new Ln("onChange","change",null,t,a),e.push({event:t,listeners:l}))}var Qa=null,La=null;function Gm(e){wf(e,0)}function kn(e){var l=Ba(e);if(Xs(l))return e}function ur(e,l){if(e==="change")return l}var cr=!1;if(Yl){var bu;if(Yl){var Su="oninput"in document;if(!Su){var sr=document.createElement("div");sr.setAttribute("oninput","return;"),Su=typeof sr.oninput=="function"}bu=Su}else bu=!1;cr=bu&&(!document.documentMode||9<document.documentMode)}function rr(){Qa&&(Qa.detachEvent("onpropertychange",or),La=Qa=null)}function or(e){if(e.propertyName==="value"&&kn(La)){var l=[];ir(l,La,e,ou(e)),Ks(Gm,l)}}function qm(e,l,t){e==="focusin"?(rr(),Qa=l,La=t,Qa.attachEvent("onpropertychange",or)):e==="focusout"&&rr()}function Ym(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kn(La)}function Xm(e,l){if(e==="click")return kn(l)}function Qm(e,l){if(e==="input"||e==="change")return kn(l)}function Lm(e,l){return e===l&&(e!==0||1/e===1/l)||e!==e&&l!==l}var ml=typeof Object.is=="function"?Object.is:Lm;function wa(e,l){if(ml(e,l))return!0;if(typeof e!="object"||e===null||typeof l!="object"||l===null)return!1;var t=Object.keys(e),a=Object.keys(l);if(t.length!==a.length)return!1;for(a=0;a<t.length;a++){var n=t[a];if(!$i.call(l,n)||!ml(e[n],l[n]))return!1}return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,l){var t=fr(e);e=0;for(var a;t;){if(t.nodeType===3){if(a=e+t.textContent.length,e<=l&&a>=l)return{node:t,offset:l-e};e=a}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=fr(t)}}function mr(e,l){return e&&l?e===l?!0:e&&e.nodeType===3?!1:l&&l.nodeType===3?mr(e,l.parentNode):"contains"in e?e.contains(l):e.compareDocumentPosition?!!(e.compareDocumentPosition(l)&16):!1:!1}function hr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var l=Gn(e.document);l instanceof e.HTMLIFrameElement;){try{var t=typeof l.contentWindow.location.href=="string"}catch{t=!1}if(t)e=l.contentWindow;else break;l=Gn(e.document)}return l}function xu(e){var l=e&&e.nodeName&&e.nodeName.toLowerCase();return l&&(l==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||l==="textarea"||e.contentEditable==="true")}var wm=Yl&&"documentMode"in document&&11>=document.documentMode,ta=null,ju=null,ka=null,Tu=!1;function vr(e,l,t){var a=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Tu||ta==null||ta!==Gn(a)||(a=ta,"selectionStart"in a&&xu(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}),ka&&wa(ka,a)||(ka=a,a=Di(ju,"onSelect"),0<a.length&&(l=new Ln("onSelect","select",null,l,t),e.push({event:l,listeners:a}),l.target=ta)))}function _t(e,l){var t={};return t[e.toLowerCase()]=l.toLowerCase(),t["Webkit"+e]="webkit"+l,t["Moz"+e]="moz"+l,t}var aa={animationend:_t("Animation","AnimationEnd"),animationiteration:_t("Animation","AnimationIteration"),animationstart:_t("Animation","AnimationStart"),transitionrun:_t("Transition","TransitionRun"),transitionstart:_t("Transition","TransitionStart"),transitioncancel:_t("Transition","TransitionCancel"),transitionend:_t("Transition","TransitionEnd")},Au={},yr={};Yl&&(yr=document.createElement("div").style,"AnimationEvent"in window||(delete aa.animationend.animation,delete aa.animationiteration.animation,delete aa.animationstart.animation),"TransitionEvent"in window||delete aa.transitionend.transition);function Dt(e){if(Au[e])return Au[e];if(!aa[e])return e;var l=aa[e],t;for(t in l)if(l.hasOwnProperty(t)&&t in yr)return Au[e]=l[t];return e}var gr=Dt("animationend"),pr=Dt("animationiteration"),br=Dt("animationstart"),km=Dt("transitionrun"),Zm=Dt("transitionstart"),Vm=Dt("transitioncancel"),Sr=Dt("transitionend"),xr=new Map,Nu="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(" ");Nu.push("scrollEnd");function Ol(e,l){xr.set(e,l),Ct(l,[e])}var Zn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jl=[],na=0,Eu=0;function Vn(){for(var e=na,l=Eu=na=0;l<e;){var t=jl[l];jl[l++]=null;var a=jl[l];jl[l++]=null;var n=jl[l];jl[l++]=null;var i=jl[l];if(jl[l++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&jr(t,n,i)}}function Kn(e,l,t,a){jl[na++]=e,jl[na++]=l,jl[na++]=t,jl[na++]=a,Eu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function zu(e,l,t,a){return Kn(e,l,t,a),Jn(e)}function Ut(e,l){return Kn(e,null,null,l),Jn(e)}function jr(e,l,t){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t);for(var n=!1,i=e.return;i!==null;)i.childLanes|=t,a=i.alternate,a!==null&&(a.childLanes|=t),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&l!==null&&(n=31-dl(t),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[l]:a.push(l),l.lane=t|536870912),i):null}function Jn(e){if(50<mn)throw mn=0,Hc=null,Error(m(185));for(var l=e.return;l!==null;)e=l,l=e.return;return e.tag===3?e.stateNode:null}var ia={};function Km(e,l,t,a){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,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 hl(e,l,t,a){return new Km(e,l,t,a)}function Mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xl(e,l){var t=e.alternate;return t===null?(t=hl(e.tag,l,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=l,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Tr(e,l){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=l,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),e}function Fn(e,l,t,a,n,i){var c=0;if(a=e,typeof e=="function")Mu(e)&&(c=1);else if(typeof e=="string")c=Ih(e,t,C.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=hl(31,t,l,n),e.elementType=me,e.lanes=i,e;case fe:return Rt(t.children,n,i,l);case Te:c=8,n|=24;break;case de:return e=hl(12,t,l,n|2),e.elementType=de,e.lanes=i,e;case xe:return e=hl(13,t,l,n),e.elementType=xe,e.lanes=i,e;case $:return e=hl(19,t,l,n),e.elementType=$,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:c=10;break e;case we:c=9;break e;case Se:c=11;break e;case _:c=14;break e;case k:c=16,a=null;break e}c=29,t=Error(m(130,e===null?"null":typeof e,"")),a=null}return l=hl(c,t,l,n),l.elementType=e,l.type=a,l.lanes=i,l}function Rt(e,l,t,a){return e=hl(7,e,a,l),e.lanes=t,e}function Cu(e,l,t){return e=hl(6,e,null,l),e.lanes=t,e}function Ar(e){var l=hl(18,null,null,0);return l.stateNode=e,l}function Ou(e,l,t){return l=hl(4,e.children!==null?e.children:[],e.key,l),l.lanes=t,l.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},l}var Nr=new WeakMap;function Tl(e,l){if(typeof e=="object"&&e!==null){var t=Nr.get(e);return t!==void 0?t:(l={value:e,source:l,stack:As(l)},Nr.set(e,l),l)}return{value:e,source:l,stack:As(l)}}var ua=[],ca=0,Wn=null,Za=0,Al=[],Nl=0,it=null,Ul=1,Rl="";function Ql(e,l){ua[ca++]=Za,ua[ca++]=Wn,Wn=e,Za=l}function Er(e,l,t){Al[Nl++]=Ul,Al[Nl++]=Rl,Al[Nl++]=it,it=e;var a=Ul;e=Rl;var n=32-dl(a)-1;a&=~(1<<n),t+=1;var i=32-dl(l)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ul=1<<32-dl(l)+n|t<<n|a,Rl=i+e}else Ul=1<<i|t<<n|a,Rl=e}function _u(e){e.return!==null&&(Ql(e,1),Er(e,1,0))}function Du(e){for(;e===Wn;)Wn=ua[--ca],ua[ca]=null,Za=ua[--ca],ua[ca]=null;for(;e===it;)it=Al[--Nl],Al[Nl]=null,Rl=Al[--Nl],Al[Nl]=null,Ul=Al[--Nl],Al[Nl]=null}function zr(e,l){Al[Nl++]=Ul,Al[Nl++]=Rl,Al[Nl++]=it,Ul=l.id,Rl=l.overflow,it=e}var Ve=null,Ae=null,ue=!1,ut=null,El=!1,Uu=Error(m(519));function ct(e){var l=Error(m(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(Tl(l,e)),Uu}function Mr(e){var l=e.stateNode,t=e.type,a=e.memoizedProps;switch(l[Ze]=e,l[tl]=a,t){case"dialog":le("cancel",l),le("close",l);break;case"iframe":case"object":case"embed":le("load",l);break;case"video":case"audio":for(t=0;t<vn.length;t++)le(vn[t],l);break;case"source":le("error",l);break;case"img":case"image":case"link":le("error",l),le("load",l);break;case"details":le("toggle",l);break;case"input":le("invalid",l),Qs(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":le("invalid",l);break;case"textarea":le("invalid",l),ws(l,a.value,a.defaultValue,a.children)}t=a.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||l.textContent===""+t||a.suppressHydrationWarning===!0||Kf(l.textContent,t)?(a.popover!=null&&(le("beforetoggle",l),le("toggle",l)),a.onScroll!=null&&le("scroll",l),a.onScrollEnd!=null&&le("scrollend",l),a.onClick!=null&&(l.onclick=ql),l=!0):l=!1,l||ct(e,!0)}function Cr(e){for(Ve=e.return;Ve;)switch(Ve.tag){case 5:case 31:case 13:El=!1;return;case 27:case 3:El=!0;return;default:Ve=Ve.return}}function sa(e){if(e!==Ve)return!1;if(!ue)return Cr(e),ue=!0,!1;var l=e.tag,t;if((t=l!==3&&l!==27)&&((t=l===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||$c(e.type,e.memoizedProps)),t=!t),t&&Ae&&ct(e),Cr(e),l===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));Ae=td(e)}else if(l===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(317));Ae=td(e)}else l===27?(l=Ae,xt(e.type)?(e=ts,ts=null,Ae=e):Ae=l):Ae=Ve?Ml(e.stateNode.nextSibling):null;return!0}function Bt(){Ae=Ve=null,ue=!1}function Ru(){var e=ut;return e!==null&&(cl===null?cl=e:cl.push.apply(cl,e),ut=null),e}function Va(e){ut===null?ut=[e]:ut.push(e)}var Bu=r(null),Ht=null,Ll=null;function st(e,l,t){N(Bu,l._currentValue),l._currentValue=t}function wl(e){e._currentValue=Bu.current,h(Bu)}function Hu(e,l,t){for(;e!==null;){var a=e.alternate;if((e.childLanes&l)!==l?(e.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),e===t)break;e=e.return}}function Gu(e,l,t,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=n;for(var f=0;f<l.length;f++)if(s.context===l[f]){i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),Hu(i.return,t,e),a||(c=null);break e}i=s.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(m(341));c.lanes|=t,i=c.alternate,i!==null&&(i.lanes|=t),Hu(c,t,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ra(e,l,t,a){e=null;for(var n=l,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(m(387));if(c=c.memoizedProps,c!==null){var s=n.type;ml(n.pendingProps.value,c.value)||(e!==null?e.push(s):e=[s])}}else if(n===I.current){if(c=n.alternate,c===null)throw Error(m(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Sn):e=[Sn])}n=n.return}e!==null&&Gu(l,e,t,a),l.flags|=262144}function $n(e){for(e=e.firstContext;e!==null;){if(!ml(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gt(e){Ht=e,Ll=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ke(e){return Or(Ht,e)}function In(e,l){return Ht===null&&Gt(e),Or(e,l)}function Or(e,l){var t=l._currentValue;if(l={context:l,memoizedValue:t,next:null},Ll===null){if(e===null)throw Error(m(308));Ll=l,e.dependencies={lanes:0,firstContext:l},e.flags|=524288}else Ll=Ll.next=l;return t}var Jm=typeof AbortController<"u"?AbortController:function(){var e=[],l=this.signal={aborted:!1,addEventListener:function(t,a){e.push(a)}};this.abort=function(){l.aborted=!0,e.forEach(function(t){return t()})}},Fm=o.unstable_scheduleCallback,Wm=o.unstable_NormalPriority,Be={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qu(){return{controller:new Jm,data:new Map,refCount:0}}function Ka(e){e.refCount--,e.refCount===0&&Fm(Wm,function(){e.controller.abort()})}var Ja=null,Yu=0,oa=0,fa=null;function $m(e,l){if(Ja===null){var t=Ja=[];Yu=0,oa=Lc(),fa={status:"pending",value:void 0,then:function(a){t.push(a)}}}return Yu++,l.then(_r,_r),l}function _r(){if(--Yu===0&&Ja!==null){fa!==null&&(fa.status="fulfilled");var e=Ja;Ja=null,oa=0,fa=null;for(var l=0;l<e.length;l++)(0,e[l])()}}function Im(e,l){var t=[],a={status:"pending",value:null,reason:null,then:function(n){t.push(n)}};return e.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<t.length;n++)(0,t[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<t.length;n++)(0,t[n])(void 0)}),a}var Dr=j.S;j.S=function(e,l){gf=ol(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&$m(e,l),Dr!==null&&Dr(e,l)};var qt=r(null);function Xu(){var e=qt.current;return e!==null?e:je.pooledCache}function Pn(e,l){l===null?N(qt,qt.current):N(qt,l.pool)}function Ur(){var e=Xu();return e===null?null:{parent:Be._currentValue,pool:e}}var da=Error(m(460)),Qu=Error(m(474)),ei=Error(m(542)),li={then:function(){}};function Rr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Br(e,l,t){switch(t=e[t],t===void 0?e.push(l):t!==l&&(l.then(ql,ql),l=t),l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,Gr(e),e;default:if(typeof l.status=="string")l.then(ql,ql);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(m(482));e=l,e.status="pending",e.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw e=l.reason,Gr(e),e}throw Xt=l,da}}function Yt(e){try{var l=e._init;return l(e._payload)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Xt=t,da):t}}var Xt=null;function Hr(){if(Xt===null)throw Error(m(459));var e=Xt;return Xt=null,e}function Gr(e){if(e===da||e===ei)throw Error(m(483))}var ma=null,Fa=0;function ti(e){var l=Fa;return Fa+=1,ma===null&&(ma=[]),Br(ma,e,l)}function Wa(e,l){l=l.props.ref,e.ref=l!==void 0?l:null}function ai(e,l){throw l.$$typeof===L?Error(m(525)):(e=Object.prototype.toString.call(l),Error(m(31,e==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":e)))}function qr(e){function l(v,d){if(e){var y=v.deletions;y===null?(v.deletions=[d],v.flags|=16):y.push(d)}}function t(v,d){if(!e)return null;for(;d!==null;)l(v,d),d=d.sibling;return null}function a(v){for(var d=new Map;v!==null;)v.key!==null?d.set(v.key,v):d.set(v.index,v),v=v.sibling;return d}function n(v,d){return v=Xl(v,d),v.index=0,v.sibling=null,v}function i(v,d,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<d?(v.flags|=67108866,d):y):(v.flags|=67108866,d)):(v.flags|=1048576,d)}function c(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function s(v,d,y,E){return d===null||d.tag!==6?(d=Cu(y,v.mode,E),d.return=v,d):(d=n(d,y),d.return=v,d)}function f(v,d,y,E){var w=y.type;return w===fe?T(v,d,y.props.children,E,y.key):d!==null&&(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===k&&Yt(w)===d.type)?(d=n(d,y.props),Wa(d,y),d.return=v,d):(d=Fn(y.type,y.key,y.props,null,v.mode,E),Wa(d,y),d.return=v,d)}function g(v,d,y,E){return d===null||d.tag!==4||d.stateNode.containerInfo!==y.containerInfo||d.stateNode.implementation!==y.implementation?(d=Ou(y,v.mode,E),d.return=v,d):(d=n(d,y.children||[]),d.return=v,d)}function T(v,d,y,E,w){return d===null||d.tag!==7?(d=Rt(y,v.mode,E,w),d.return=v,d):(d=n(d,y),d.return=v,d)}function z(v,d,y){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Cu(""+d,v.mode,y),d.return=v,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case ae:return y=Fn(d.type,d.key,d.props,null,v.mode,y),Wa(y,d),y.return=v,y;case ce:return d=Ou(d,v.mode,y),d.return=v,d;case k:return d=Yt(d),z(v,d,y)}if(Pe(d)||Xe(d))return d=Rt(d,v.mode,y,null),d.return=v,d;if(typeof d.then=="function")return z(v,ti(d),y);if(d.$$typeof===be)return z(v,In(v,d),y);ai(v,d)}return null}function S(v,d,y,E){var w=d!==null?d.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return w!==null?null:s(v,d,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ae:return y.key===w?f(v,d,y,E):null;case ce:return y.key===w?g(v,d,y,E):null;case k:return y=Yt(y),S(v,d,y,E)}if(Pe(y)||Xe(y))return w!==null?null:T(v,d,y,E,null);if(typeof y.then=="function")return S(v,d,ti(y),E);if(y.$$typeof===be)return S(v,d,In(v,y),E);ai(v,y)}return null}function x(v,d,y,E,w){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return v=v.get(y)||null,s(d,v,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ae:return v=v.get(E.key===null?y:E.key)||null,f(d,v,E,w);case ce:return v=v.get(E.key===null?y:E.key)||null,g(d,v,E,w);case k:return E=Yt(E),x(v,d,y,E,w)}if(Pe(E)||Xe(E))return v=v.get(y)||null,T(d,v,E,w,null);if(typeof E.then=="function")return x(v,d,y,ti(E),w);if(E.$$typeof===be)return x(v,d,y,In(d,E),w);ai(d,E)}return null}function G(v,d,y,E){for(var w=null,se=null,Q=d,P=d=0,ie=null;Q!==null&&P<y.length;P++){Q.index>P?(ie=Q,Q=null):ie=Q.sibling;var re=S(v,Q,y[P],E);if(re===null){Q===null&&(Q=ie);break}e&&Q&&re.alternate===null&&l(v,Q),d=i(re,d,P),se===null?w=re:se.sibling=re,se=re,Q=ie}if(P===y.length)return t(v,Q),ue&&Ql(v,P),w;if(Q===null){for(;P<y.length;P++)Q=z(v,y[P],E),Q!==null&&(d=i(Q,d,P),se===null?w=Q:se.sibling=Q,se=Q);return ue&&Ql(v,P),w}for(Q=a(Q);P<y.length;P++)ie=x(Q,v,P,y[P],E),ie!==null&&(e&&ie.alternate!==null&&Q.delete(ie.key===null?P:ie.key),d=i(ie,d,P),se===null?w=ie:se.sibling=ie,se=ie);return e&&Q.forEach(function(Et){return l(v,Et)}),ue&&Ql(v,P),w}function Z(v,d,y,E){if(y==null)throw Error(m(151));for(var w=null,se=null,Q=d,P=d=0,ie=null,re=y.next();Q!==null&&!re.done;P++,re=y.next()){Q.index>P?(ie=Q,Q=null):ie=Q.sibling;var Et=S(v,Q,re.value,E);if(Et===null){Q===null&&(Q=ie);break}e&&Q&&Et.alternate===null&&l(v,Q),d=i(Et,d,P),se===null?w=Et:se.sibling=Et,se=Et,Q=ie}if(re.done)return t(v,Q),ue&&Ql(v,P),w;if(Q===null){for(;!re.done;P++,re=y.next())re=z(v,re.value,E),re!==null&&(d=i(re,d,P),se===null?w=re:se.sibling=re,se=re);return ue&&Ql(v,P),w}for(Q=a(Q);!re.done;P++,re=y.next())re=x(Q,v,P,re.value,E),re!==null&&(e&&re.alternate!==null&&Q.delete(re.key===null?P:re.key),d=i(re,d,P),se===null?w=re:se.sibling=re,se=re);return e&&Q.forEach(function(rv){return l(v,rv)}),ue&&Ql(v,P),w}function pe(v,d,y,E){if(typeof y=="object"&&y!==null&&y.type===fe&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ae:e:{for(var w=y.key;d!==null;){if(d.key===w){if(w=y.type,w===fe){if(d.tag===7){t(v,d.sibling),E=n(d,y.props.children),E.return=v,v=E;break e}}else if(d.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===k&&Yt(w)===d.type){t(v,d.sibling),E=n(d,y.props),Wa(E,y),E.return=v,v=E;break e}t(v,d);break}else l(v,d);d=d.sibling}y.type===fe?(E=Rt(y.props.children,v.mode,E,y.key),E.return=v,v=E):(E=Fn(y.type,y.key,y.props,null,v.mode,E),Wa(E,y),E.return=v,v=E)}return c(v);case ce:e:{for(w=y.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===y.containerInfo&&d.stateNode.implementation===y.implementation){t(v,d.sibling),E=n(d,y.children||[]),E.return=v,v=E;break e}else{t(v,d);break}else l(v,d);d=d.sibling}E=Ou(y,v.mode,E),E.return=v,v=E}return c(v);case k:return y=Yt(y),pe(v,d,y,E)}if(Pe(y))return G(v,d,y,E);if(Xe(y)){if(w=Xe(y),typeof w!="function")throw Error(m(150));return y=w.call(y),Z(v,d,y,E)}if(typeof y.then=="function")return pe(v,d,ti(y),E);if(y.$$typeof===be)return pe(v,d,In(v,y),E);ai(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,d!==null&&d.tag===6?(t(v,d.sibling),E=n(d,y),E.return=v,v=E):(t(v,d),E=Cu(y,v.mode,E),E.return=v,v=E),c(v)):t(v,d)}return function(v,d,y,E){try{Fa=0;var w=pe(v,d,y,E);return ma=null,w}catch(Q){if(Q===da||Q===ei)throw Q;var se=hl(29,Q,null,v.mode);return se.lanes=E,se.return=v,se}finally{}}}var Qt=qr(!0),Yr=qr(!1),rt=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wu(e,l){e=e.updateQueue,l.updateQueue===e&&(l.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ot(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ft(e,l,t){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(oe&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Jn(e),jr(e,null,t),l}return Kn(e,a,l,t),Jn(e)}function $a(e,l,t){if(l=l.updateQueue,l!==null&&(l=l.shared,(t&4194048)!==0)){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,Os(e,t)}}function ku(e,l){var t=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,t===a)){var n=null,i=null;if(t=t.firstBaseUpdate,t!==null){do{var c={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,t=t.next}while(t!==null);i===null?n=i=l:i=i.next=l}else n=i=l;t={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=l:e.next=l,t.lastBaseUpdate=l}var Zu=!1;function Ia(){if(Zu){var e=fa;if(e!==null)throw e}}function Pa(e,l,t,a){Zu=!1;var n=e.updateQueue;rt=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var f=s,g=f.next;f.next=null,c===null?i=g:c.next=g,c=f;var T=e.alternate;T!==null&&(T=T.updateQueue,s=T.lastBaseUpdate,s!==c&&(s===null?T.firstBaseUpdate=g:s.next=g,T.lastBaseUpdate=f))}if(i!==null){var z=n.baseState;c=0,T=g=f=null,s=i;do{var S=s.lane&-536870913,x=S!==s.lane;if(x?(ne&S)===S:(a&S)===S){S!==0&&S===oa&&(Zu=!0),T!==null&&(T=T.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var G=e,Z=s;S=l;var pe=t;switch(Z.tag){case 1:if(G=Z.payload,typeof G=="function"){z=G.call(pe,z,S);break e}z=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Z.payload,S=typeof G=="function"?G.call(pe,z,S):G,S==null)break e;z=q({},z,S);break e;case 2:rt=!0}}S=s.callback,S!==null&&(e.flags|=64,x&&(e.flags|=8192),x=n.callbacks,x===null?n.callbacks=[S]:x.push(S))}else x={lane:S,tag:s.tag,payload:s.payload,callback:s.callback,next:null},T===null?(g=T=x,f=z):T=T.next=x,c|=S;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;x=s,s=x.next,x.next=null,n.lastBaseUpdate=x,n.shared.pending=null}}while(!0);T===null&&(f=z),n.baseState=f,n.firstBaseUpdate=g,n.lastBaseUpdate=T,i===null&&(n.shared.lanes=0),yt|=c,e.lanes=c,e.memoizedState=z}}function Xr(e,l){if(typeof e!="function")throw Error(m(191,e));e.call(l)}function Qr(e,l){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)Xr(t[e],l)}var ha=r(null),ni=r(0);function Lr(e,l){e=Il,N(ni,e),N(ha,l),Il=e|l.baseLanes}function Vu(){N(ni,Il),N(ha,ha.current)}function Ku(){Il=ni.current,h(ha),h(ni)}var vl=r(null),zl=null;function dt(e){var l=e.alternate;N(De,De.current&1),N(vl,e),zl===null&&(l===null||ha.current!==null||l.memoizedState!==null)&&(zl=e)}function Ju(e){N(De,De.current),N(vl,e),zl===null&&(zl=e)}function wr(e){e.tag===22?(N(De,De.current),N(vl,e),zl===null&&(zl=e)):mt()}function mt(){N(De,De.current),N(vl,vl.current)}function yl(e){h(vl),zl===e&&(zl=null),h(De)}var De=r(0);function ii(e){for(var l=e;l!==null;){if(l.tag===13){var t=l.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||es(t)||ls(t)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var kl=0,W=null,ye=null,He=null,ui=!1,va=!1,Lt=!1,ci=0,en=0,ya=null,Pm=0;function Me(){throw Error(m(321))}function Fu(e,l){if(l===null)return!1;for(var t=0;t<l.length&&t<e.length;t++)if(!ml(e[t],l[t]))return!1;return!0}function Wu(e,l,t,a,n,i){return kl=i,W=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=e===null||e.memoizedState===null?zo:fc,Lt=!1,i=t(a,n),Lt=!1,va&&(i=Zr(l,t,a,n)),kr(e),i}function kr(e){j.H=an;var l=ye!==null&&ye.next!==null;if(kl=0,He=ye=W=null,ui=!1,en=0,ya=null,l)throw Error(m(300));e===null||Ge||(e=e.dependencies,e!==null&&$n(e)&&(Ge=!0))}function Zr(e,l,t,a){W=e;var n=0;do{if(va&&(ya=null),en=0,va=!1,25<=n)throw Error(m(301));if(n+=1,He=ye=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}j.H=Mo,i=l(t,a)}while(va);return i}function eh(){var e=j.H,l=e.useState()[0];return l=typeof l.then=="function"?ln(l):l,e=e.useState()[0],(ye!==null?ye.memoizedState:null)!==e&&(W.flags|=1024),l}function $u(){var e=ci!==0;return ci=0,e}function Iu(e,l,t){l.updateQueue=e.updateQueue,l.flags&=-2053,e.lanes&=~t}function Pu(e){if(ui){for(e=e.memoizedState;e!==null;){var l=e.queue;l!==null&&(l.pending=null),e=e.next}ui=!1}kl=0,He=ye=W=null,va=!1,en=ci=0,ya=null}function ll(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?W.memoizedState=He=e:He=He.next=e,He}function Ue(){if(ye===null){var e=W.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var l=He===null?W.memoizedState:He.next;if(l!==null)He=l,ye=e;else{if(e===null)throw W.alternate===null?Error(m(467)):Error(m(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},He===null?W.memoizedState=He=e:He=He.next=e}return He}function si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ln(e){var l=en;return en+=1,ya===null&&(ya=[]),e=Br(ya,e,l),l=W,(He===null?l.memoizedState:He.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?zo:fc),e}function ri(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ln(e);if(e.$$typeof===be)return Ke(e)}throw Error(m(438,String(e)))}function ec(e){var l=null,t=W.updateQueue;if(t!==null&&(l=t.memoCache),l==null){var a=W.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),t===null&&(t=si(),W.updateQueue=t),t.memoCache=l,t=l.data[l.index],t===void 0)for(t=l.data[l.index]=Array(e),a=0;a<e;a++)t[a]=ke;return l.index++,t}function Zl(e,l){return typeof l=="function"?l(e):l}function oi(e){var l=Ue();return lc(l,ye,e)}function lc(e,l,t){var a=e.queue;if(a===null)throw Error(m(311));a.lastRenderedReducer=t;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}l.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{l=n.next;var s=c=null,f=null,g=l,T=!1;do{var z=g.lane&-536870913;if(z!==g.lane?(ne&z)===z:(kl&z)===z){var S=g.revertLane;if(S===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),z===oa&&(T=!0);else if((kl&S)===S){g=g.next,S===oa&&(T=!0);continue}else z={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},f===null?(s=f=z,c=i):f=f.next=z,W.lanes|=S,yt|=S;z=g.action,Lt&&t(i,z),i=g.hasEagerState?g.eagerState:t(i,z)}else S={lane:z,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},f===null?(s=f=S,c=i):f=f.next=S,W.lanes|=z,yt|=z;g=g.next}while(g!==null&&g!==l);if(f===null?c=i:f.next=s,!ml(i,e.memoizedState)&&(Ge=!0,T&&(t=fa,t!==null)))throw t;e.memoizedState=i,e.baseState=c,e.baseQueue=f,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tc(e){var l=Ue(),t=l.queue;if(t===null)throw Error(m(311));t.lastRenderedReducer=e;var a=t.dispatch,n=t.pending,i=l.memoizedState;if(n!==null){t.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);ml(i,l.memoizedState)||(Ge=!0),l.memoizedState=i,l.baseQueue===null&&(l.baseState=i),t.lastRenderedState=i}return[i,a]}function Vr(e,l,t){var a=W,n=Ue(),i=ue;if(i){if(t===void 0)throw Error(m(407));t=t()}else t=l();var c=!ml((ye||n).memoizedState,t);if(c&&(n.memoizedState=t,Ge=!0),n=n.queue,ic(Fr.bind(null,a,n,e),[e]),n.getSnapshot!==l||c||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,ga(9,{destroy:void 0},Jr.bind(null,a,n,t,l),null),je===null)throw Error(m(349));i||(kl&127)!==0||Kr(a,l,t)}return t}function Kr(e,l,t){e.flags|=16384,e={getSnapshot:l,value:t},l=W.updateQueue,l===null?(l=si(),W.updateQueue=l,l.stores=[e]):(t=l.stores,t===null?l.stores=[e]:t.push(e))}function Jr(e,l,t,a){l.value=t,l.getSnapshot=a,Wr(l)&&$r(e)}function Fr(e,l,t){return t(function(){Wr(l)&&$r(e)})}function Wr(e){var l=e.getSnapshot;e=e.value;try{var t=l();return!ml(e,t)}catch{return!0}}function $r(e){var l=Ut(e,2);l!==null&&sl(l,e,2)}function ac(e){var l=ll();if(typeof e=="function"){var t=e;if(e=t(),Lt){tt(!0);try{t()}finally{tt(!1)}}}return l.memoizedState=l.baseState=e,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:e},l}function Ir(e,l,t,a){return e.baseState=t,lc(e,ye,typeof a=="function"?a:Zl)}function lh(e,l,t,a,n){if(mi(e))throw Error(m(485));if(e=l.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};j.T!==null?t(!0):i.isTransition=!1,a(i),t=l.pending,t===null?(i.next=l.pending=i,Pr(l,i)):(i.next=t.next,l.pending=t.next=i)}}function Pr(e,l){var t=l.action,a=l.payload,n=e.state;if(l.isTransition){var i=j.T,c={};j.T=c;try{var s=t(n,a),f=j.S;f!==null&&f(c,s),eo(e,l,s)}catch(g){nc(e,l,g)}finally{i!==null&&c.types!==null&&(i.types=c.types),j.T=i}}else try{i=t(n,a),eo(e,l,i)}catch(g){nc(e,l,g)}}function eo(e,l,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(a){lo(e,l,a)},function(a){return nc(e,l,a)}):lo(e,l,t)}function lo(e,l,t){l.status="fulfilled",l.value=t,to(l),e.state=t,l=e.pending,l!==null&&(t=l.next,t===l?e.pending=null:(t=t.next,l.next=t,Pr(e,t)))}function nc(e,l,t){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=t,to(l),l=l.next;while(l!==a)}e.action=null}function to(e){e=e.listeners;for(var l=0;l<e.length;l++)(0,e[l])()}function ao(e,l){return l}function no(e,l){if(ue){var t=je.formState;if(t!==null){e:{var a=W;if(ue){if(Ae){l:{for(var n=Ae,i=El;n.nodeType!==8;){if(!i){n=null;break l}if(n=Ml(n.nextSibling),n===null){n=null;break l}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ae=Ml(n.nextSibling),a=n.data==="F!";break e}}ct(a)}a=!1}a&&(l=t[0])}}return t=ll(),t.memoizedState=t.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ao,lastRenderedState:l},t.queue=a,t=Ao.bind(null,W,a),a.dispatch=t,a=ac(!1),i=oc.bind(null,W,!1,a.queue),a=ll(),n={state:l,dispatch:null,action:e,pending:null},a.queue=n,t=lh.bind(null,W,n,i,t),n.dispatch=t,a.memoizedState=e,[l,t,!1]}function io(e){var l=Ue();return uo(l,ye,e)}function uo(e,l,t){if(l=lc(e,l,ao)[0],e=oi(Zl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=ln(l)}catch(c){throw c===da?ei:c}else a=l;l=Ue();var n=l.queue,i=n.dispatch;return t!==l.memoizedState&&(W.flags|=2048,ga(9,{destroy:void 0},th.bind(null,n,t),null)),[a,i,e]}function th(e,l){e.action=l}function co(e){var l=Ue(),t=ye;if(t!==null)return uo(l,t,e);Ue(),l=l.memoizedState,t=Ue();var a=t.queue.dispatch;return t.memoizedState=e,[l,a,!1]}function ga(e,l,t,a){return e={tag:e,create:t,deps:a,inst:l,next:null},l=W.updateQueue,l===null&&(l=si(),W.updateQueue=l),t=l.lastEffect,t===null?l.lastEffect=e.next=e:(a=t.next,t.next=e,e.next=a,l.lastEffect=e),e}function so(){return Ue().memoizedState}function fi(e,l,t,a){var n=ll();W.flags|=e,n.memoizedState=ga(1|l,{destroy:void 0},t,a===void 0?null:a)}function di(e,l,t,a){var n=Ue();a=a===void 0?null:a;var i=n.memoizedState.inst;ye!==null&&a!==null&&Fu(a,ye.memoizedState.deps)?n.memoizedState=ga(l,i,t,a):(W.flags|=e,n.memoizedState=ga(1|l,i,t,a))}function ro(e,l){fi(8390656,8,e,l)}function ic(e,l){di(2048,8,e,l)}function ah(e){W.flags|=4;var l=W.updateQueue;if(l===null)l=si(),W.updateQueue=l,l.events=[e];else{var t=l.events;t===null?l.events=[e]:t.push(e)}}function oo(e){var l=Ue().memoizedState;return ah({ref:l,nextImpl:e}),function(){if((oe&2)!==0)throw Error(m(440));return l.impl.apply(void 0,arguments)}}function fo(e,l){return di(4,2,e,l)}function mo(e,l){return di(4,4,e,l)}function ho(e,l){if(typeof l=="function"){e=e();var t=l(e);return function(){typeof t=="function"?t():l(null)}}if(l!=null)return e=e(),l.current=e,function(){l.current=null}}function vo(e,l,t){t=t!=null?t.concat([e]):null,di(4,4,ho.bind(null,l,e),t)}function uc(){}function yo(e,l){var t=Ue();l=l===void 0?null:l;var a=t.memoizedState;return l!==null&&Fu(l,a[1])?a[0]:(t.memoizedState=[e,l],e)}function go(e,l){var t=Ue();l=l===void 0?null:l;var a=t.memoizedState;if(l!==null&&Fu(l,a[1]))return a[0];if(a=e(),Lt){tt(!0);try{e()}finally{tt(!1)}}return t.memoizedState=[a,l],a}function cc(e,l,t){return t===void 0||(kl&1073741824)!==0&&(ne&261930)===0?e.memoizedState=l:(e.memoizedState=t,e=bf(),W.lanes|=e,yt|=e,t)}function po(e,l,t,a){return ml(t,l)?t:ha.current!==null?(e=cc(e,t,a),ml(e,l)||(Ge=!0),e):(kl&42)===0||(kl&1073741824)!==0&&(ne&261930)===0?(Ge=!0,e.memoizedState=t):(e=bf(),W.lanes|=e,yt|=e,l)}function bo(e,l,t,a,n){var i=O.p;O.p=i!==0&&8>i?i:8;var c=j.T,s={};j.T=s,oc(e,!1,l,t);try{var f=n(),g=j.S;if(g!==null&&g(s,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var T=Im(f,a);tn(e,l,T,bl(e))}else tn(e,l,a,bl(e))}catch(z){tn(e,l,{then:function(){},status:"rejected",reason:z},bl())}finally{O.p=i,c!==null&&s.types!==null&&(c.types=s.types),j.T=c}}function nh(){}function sc(e,l,t,a){if(e.tag!==5)throw Error(m(476));var n=So(e).queue;bo(e,n,l,b,t===null?nh:function(){return xo(e),t(a)})}function So(e){var l=e.memoizedState;if(l!==null)return l;l={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:b},next:null};var t={};return l.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:t},next:null},e.memoizedState=l,e=e.alternate,e!==null&&(e.memoizedState=l),l}function xo(e){var l=So(e);l.next===null&&(l=e.alternate.memoizedState),tn(e,l.next.queue,{},bl())}function rc(){return Ke(Sn)}function jo(){return Ue().memoizedState}function To(){return Ue().memoizedState}function ih(e){for(var l=e.return;l!==null;){switch(l.tag){case 24:case 3:var t=bl();e=ot(t);var a=ft(l,e,t);a!==null&&(sl(a,l,t),$a(a,l,t)),l={cache:qu()},e.payload=l;return}l=l.return}}function uh(e,l,t){var a=bl();t={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},mi(e)?No(l,t):(t=zu(e,l,t,a),t!==null&&(sl(t,e,a),Eo(t,l,a)))}function Ao(e,l,t){var a=bl();tn(e,l,t,a)}function tn(e,l,t,a){var n={lane:a,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(mi(e))No(l,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=l.lastRenderedReducer,i!==null))try{var c=l.lastRenderedState,s=i(c,t);if(n.hasEagerState=!0,n.eagerState=s,ml(s,c))return Kn(e,l,n,0),je===null&&Vn(),!1}catch{}finally{}if(t=zu(e,l,n,a),t!==null)return sl(t,e,a),Eo(t,l,a),!0}return!1}function oc(e,l,t,a){if(a={lane:2,revertLane:Lc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mi(e)){if(l)throw Error(m(479))}else l=zu(e,t,a,2),l!==null&&sl(l,e,2)}function mi(e){var l=e.alternate;return e===W||l!==null&&l===W}function No(e,l){va=ui=!0;var t=e.pending;t===null?l.next=l:(l.next=t.next,t.next=l),e.pending=l}function Eo(e,l,t){if((t&4194048)!==0){var a=l.lanes;a&=e.pendingLanes,t|=a,l.lanes=t,Os(e,t)}}var an={readContext:Ke,use:ri,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useLayoutEffect:Me,useInsertionEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useSyncExternalStore:Me,useId:Me,useHostTransitionStatus:Me,useFormState:Me,useActionState:Me,useOptimistic:Me,useMemoCache:Me,useCacheRefresh:Me};an.useEffectEvent=Me;var zo={readContext:Ke,use:ri,useCallback:function(e,l){return ll().memoizedState=[e,l===void 0?null:l],e},useContext:Ke,useEffect:ro,useImperativeHandle:function(e,l,t){t=t!=null?t.concat([e]):null,fi(4194308,4,ho.bind(null,l,e),t)},useLayoutEffect:function(e,l){return fi(4194308,4,e,l)},useInsertionEffect:function(e,l){fi(4,2,e,l)},useMemo:function(e,l){var t=ll();l=l===void 0?null:l;var a=e();if(Lt){tt(!0);try{e()}finally{tt(!1)}}return t.memoizedState=[a,l],a},useReducer:function(e,l,t){var a=ll();if(t!==void 0){var n=t(l);if(Lt){tt(!0);try{t(l)}finally{tt(!1)}}}else n=l;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=uh.bind(null,W,e),[a.memoizedState,e]},useRef:function(e){var l=ll();return e={current:e},l.memoizedState=e},useState:function(e){e=ac(e);var l=e.queue,t=Ao.bind(null,W,l);return l.dispatch=t,[e.memoizedState,t]},useDebugValue:uc,useDeferredValue:function(e,l){var t=ll();return cc(t,e,l)},useTransition:function(){var e=ac(!1);return e=bo.bind(null,W,e.queue,!0,!1),ll().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,l,t){var a=W,n=ll();if(ue){if(t===void 0)throw Error(m(407));t=t()}else{if(t=l(),je===null)throw Error(m(349));(ne&127)!==0||Kr(a,l,t)}n.memoizedState=t;var i={value:t,getSnapshot:l};return n.queue=i,ro(Fr.bind(null,a,i,e),[e]),a.flags|=2048,ga(9,{destroy:void 0},Jr.bind(null,a,i,t,l),null),t},useId:function(){var e=ll(),l=je.identifierPrefix;if(ue){var t=Rl,a=Ul;t=(a&~(1<<32-dl(a)-1)).toString(32)+t,l="_"+l+"R_"+t,t=ci++,0<t&&(l+="H"+t.toString(32)),l+="_"}else t=Pm++,l="_"+l+"r_"+t.toString(32)+"_";return e.memoizedState=l},useHostTransitionStatus:rc,useFormState:no,useActionState:no,useOptimistic:function(e){var l=ll();l.memoizedState=l.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=t,l=oc.bind(null,W,!0,t),t.dispatch=l,[e,l]},useMemoCache:ec,useCacheRefresh:function(){return ll().memoizedState=ih.bind(null,W)},useEffectEvent:function(e){var l=ll(),t={impl:e};return l.memoizedState=t,function(){if((oe&2)!==0)throw Error(m(440));return t.impl.apply(void 0,arguments)}}},fc={readContext:Ke,use:ri,useCallback:yo,useContext:Ke,useEffect:ic,useImperativeHandle:vo,useInsertionEffect:fo,useLayoutEffect:mo,useMemo:go,useReducer:oi,useRef:so,useState:function(){return oi(Zl)},useDebugValue:uc,useDeferredValue:function(e,l){var t=Ue();return po(t,ye.memoizedState,e,l)},useTransition:function(){var e=oi(Zl)[0],l=Ue().memoizedState;return[typeof e=="boolean"?e:ln(e),l]},useSyncExternalStore:Vr,useId:jo,useHostTransitionStatus:rc,useFormState:io,useActionState:io,useOptimistic:function(e,l){var t=Ue();return Ir(t,ye,e,l)},useMemoCache:ec,useCacheRefresh:To};fc.useEffectEvent=oo;var Mo={readContext:Ke,use:ri,useCallback:yo,useContext:Ke,useEffect:ic,useImperativeHandle:vo,useInsertionEffect:fo,useLayoutEffect:mo,useMemo:go,useReducer:tc,useRef:so,useState:function(){return tc(Zl)},useDebugValue:uc,useDeferredValue:function(e,l){var t=Ue();return ye===null?cc(t,e,l):po(t,ye.memoizedState,e,l)},useTransition:function(){var e=tc(Zl)[0],l=Ue().memoizedState;return[typeof e=="boolean"?e:ln(e),l]},useSyncExternalStore:Vr,useId:jo,useHostTransitionStatus:rc,useFormState:co,useActionState:co,useOptimistic:function(e,l){var t=Ue();return ye!==null?Ir(t,ye,e,l):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:ec,useCacheRefresh:To};Mo.useEffectEvent=oo;function dc(e,l,t,a){l=e.memoizedState,t=t(a,l),t=t==null?l:q({},l,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var mc={enqueueSetState:function(e,l,t){e=e._reactInternals;var a=bl(),n=ot(a);n.payload=l,t!=null&&(n.callback=t),l=ft(e,n,a),l!==null&&(sl(l,e,a),$a(l,e,a))},enqueueReplaceState:function(e,l,t){e=e._reactInternals;var a=bl(),n=ot(a);n.tag=1,n.payload=l,t!=null&&(n.callback=t),l=ft(e,n,a),l!==null&&(sl(l,e,a),$a(l,e,a))},enqueueForceUpdate:function(e,l){e=e._reactInternals;var t=bl(),a=ot(t);a.tag=2,l!=null&&(a.callback=l),l=ft(e,a,t),l!==null&&(sl(l,e,t),$a(l,e,t))}};function Co(e,l,t,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):l.prototype&&l.prototype.isPureReactComponent?!wa(t,a)||!wa(n,i):!0}function Oo(e,l,t,a){e=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(t,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(t,a),l.state!==e&&mc.enqueueReplaceState(l,l.state,null)}function wt(e,l){var t=l;if("ref"in l){t={};for(var a in l)a!=="ref"&&(t[a]=l[a])}if(e=e.defaultProps){t===l&&(t=q({},t));for(var n in e)t[n]===void 0&&(t[n]=e[n])}return t}function _o(e){Zn(e)}function Do(e){console.error(e)}function Uo(e){Zn(e)}function hi(e,l){try{var t=e.onUncaughtError;t(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function Ro(e,l,t){try{var a=e.onCaughtError;a(t.value,{componentStack:t.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function hc(e,l,t){return t=ot(t),t.tag=3,t.payload={element:null},t.callback=function(){hi(e,l)},t}function Bo(e){return e=ot(e),e.tag=3,e}function Ho(e,l,t,a){var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Ro(l,t,a)}}var c=t.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Ro(l,t,a),typeof n!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function ch(e,l,t,a,n){if(t.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=t.alternate,l!==null&&ra(l,t,n,!0),t=vl.current,t!==null){switch(t.tag){case 31:case 13:return zl===null?Ei():t.alternate===null&&Ce===0&&(Ce=3),t.flags&=-257,t.flags|=65536,t.lanes=n,a===li?t.flags|=16384:(l=t.updateQueue,l===null?t.updateQueue=new Set([a]):l.add(a),Yc(e,a,n)),!1;case 22:return t.flags|=65536,a===li?t.flags|=16384:(l=t.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},t.updateQueue=l):(t=l.retryQueue,t===null?l.retryQueue=new Set([a]):t.add(a)),Yc(e,a,n)),!1}throw Error(m(435,t.tag))}return Yc(e,a,n),Ei(),!1}if(ue)return l=vl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Uu&&(e=Error(m(422),{cause:a}),Va(Tl(e,t)))):(a!==Uu&&(l=Error(m(423),{cause:a}),Va(Tl(l,t))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tl(a,t),n=hc(e.stateNode,a,n),ku(e,n),Ce!==4&&(Ce=2)),!1;var i=Error(m(520),{cause:a});if(i=Tl(i,t),dn===null?dn=[i]:dn.push(i),Ce!==4&&(Ce=2),l===null)return!0;a=Tl(a,t),t=l;do{switch(t.tag){case 3:return t.flags|=65536,e=n&-n,t.lanes|=e,e=hc(t.stateNode,a,e),ku(t,e),!1;case 1:if(l=t.type,i=t.stateNode,(t.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(gt===null||!gt.has(i))))return t.flags|=65536,n&=-n,t.lanes|=n,n=Bo(n),Ho(n,e,t,a),ku(t,n),!1}t=t.return}while(t!==null);return!1}var vc=Error(m(461)),Ge=!1;function Je(e,l,t,a){l.child=e===null?Yr(l,null,t,a):Qt(l,e.child,t,a)}function Go(e,l,t,a,n){t=t.render;var i=l.ref;if("ref"in a){var c={};for(var s in a)s!=="ref"&&(c[s]=a[s])}else c=a;return Gt(l),a=Wu(e,l,t,c,i,n),s=$u(),e!==null&&!Ge?(Iu(e,l,n),Vl(e,l,n)):(ue&&s&&_u(l),l.flags|=1,Je(e,l,a,n),l.child)}function qo(e,l,t,a,n){if(e===null){var i=t.type;return typeof i=="function"&&!Mu(i)&&i.defaultProps===void 0&&t.compare===null?(l.tag=15,l.type=i,Yo(e,l,i,a,n)):(e=Fn(t.type,null,a,l,l.mode,n),e.ref=l.ref,e.return=l,l.child=e)}if(i=e.child,!Tc(e,n)){var c=i.memoizedProps;if(t=t.compare,t=t!==null?t:wa,t(c,a)&&e.ref===l.ref)return Vl(e,l,n)}return l.flags|=1,e=Xl(i,a),e.ref=l.ref,e.return=l,l.child=e}function Yo(e,l,t,a,n){if(e!==null){var i=e.memoizedProps;if(wa(i,a)&&e.ref===l.ref)if(Ge=!1,l.pendingProps=a=i,Tc(e,n))(e.flags&131072)!==0&&(Ge=!0);else return l.lanes=e.lanes,Vl(e,l,n)}return yc(e,l,t,a,n)}function Xo(e,l,t,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(i=i!==null?i.baseLanes|t:t,e!==null){for(a=l.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,l.child=null;return Qo(e,l,i,t,a)}if((t&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pn(l,i!==null?i.cachePool:null),i!==null?Lr(l,i):Vu(),wr(l);else return a=l.lanes=536870912,Qo(e,l,i!==null?i.baseLanes|t:t,t,a)}else i!==null?(Pn(l,i.cachePool),Lr(l,i),mt(),l.memoizedState=null):(e!==null&&Pn(l,null),Vu(),mt());return Je(e,l,n,t),l.child}function nn(e,l){return e!==null&&e.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Qo(e,l,t,a,n){var i=Xu();return i=i===null?null:{parent:Be._currentValue,pool:i},l.memoizedState={baseLanes:t,cachePool:i},e!==null&&Pn(l,null),Vu(),wr(l),e!==null&&ra(e,l,a,!0),l.childLanes=n,null}function vi(e,l){return l=gi({mode:l.mode,children:l.children},e.mode),l.ref=e.ref,e.child=l,l.return=e,l}function Lo(e,l,t){return Qt(l,e.child,null,t),e=vi(l,l.pendingProps),e.flags|=2,yl(l),l.memoizedState=null,e}function sh(e,l,t){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,e===null){if(ue){if(a.mode==="hidden")return e=vi(l,a),l.lanes=536870912,nn(null,e);if(Ju(l),(e=Ae)?(e=ld(e,El),e=e!==null&&e.data==="&"?e:null,e!==null&&(l.memoizedState={dehydrated:e,treeContext:it!==null?{id:Ul,overflow:Rl}:null,retryLane:536870912,hydrationErrors:null},t=Ar(e),t.return=l,l.child=t,Ve=l,Ae=null)):e=null,e===null)throw ct(l);return l.lanes=536870912,null}return vi(l,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Ju(l),n)if(l.flags&256)l.flags&=-257,l=Lo(e,l,t);else if(l.memoizedState!==null)l.child=e.child,l.flags|=128,l=null;else throw Error(m(558));else if(Ge||ra(e,l,t,!1),n=(t&e.childLanes)!==0,Ge||n){if(a=je,a!==null&&(c=_s(a,t),c!==0&&c!==i.retryLane))throw i.retryLane=c,Ut(e,c),sl(a,e,c),vc;Ei(),l=Lo(e,l,t)}else e=i.treeContext,Ae=Ml(c.nextSibling),Ve=l,ue=!0,ut=null,El=!1,e!==null&&zr(l,e),l=vi(l,a),l.flags|=4096;return l}return e=Xl(e.child,{mode:a.mode,children:a.children}),e.ref=l.ref,l.child=e,e.return=l,e}function yi(e,l){var t=l.ref;if(t===null)e!==null&&e.ref!==null&&(l.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(m(284));(e===null||e.ref!==t)&&(l.flags|=4194816)}}function yc(e,l,t,a,n){return Gt(l),t=Wu(e,l,t,a,void 0,n),a=$u(),e!==null&&!Ge?(Iu(e,l,n),Vl(e,l,n)):(ue&&a&&_u(l),l.flags|=1,Je(e,l,t,n),l.child)}function wo(e,l,t,a,n,i){return Gt(l),l.updateQueue=null,t=Zr(l,a,t,n),kr(e),a=$u(),e!==null&&!Ge?(Iu(e,l,i),Vl(e,l,i)):(ue&&a&&_u(l),l.flags|=1,Je(e,l,t,i),l.child)}function ko(e,l,t,a,n){if(Gt(l),l.stateNode===null){var i=ia,c=t.contextType;typeof c=="object"&&c!==null&&(i=Ke(c)),i=new t(a,i),l.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=mc,l.stateNode=i,i._reactInternals=l,i=l.stateNode,i.props=a,i.state=l.memoizedState,i.refs={},Lu(l),c=t.contextType,i.context=typeof c=="object"&&c!==null?Ke(c):ia,i.state=l.memoizedState,c=t.getDerivedStateFromProps,typeof c=="function"&&(dc(l,t,c,a),i.state=l.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&mc.enqueueReplaceState(i,i.state,null),Pa(l,a,i,n),Ia(),i.state=l.memoizedState),typeof i.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(e===null){i=l.stateNode;var s=l.memoizedProps,f=wt(t,s);i.props=f;var g=i.context,T=t.contextType;c=ia,typeof T=="object"&&T!==null&&(c=Ke(T));var z=t.getDerivedStateFromProps;T=typeof z=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=l.pendingProps!==s,T||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||g!==c)&&Oo(l,i,a,c),rt=!1;var S=l.memoizedState;i.state=S,Pa(l,a,i,n),Ia(),g=l.memoizedState,s||S!==g||rt?(typeof z=="function"&&(dc(l,t,z,a),g=l.memoizedState),(f=rt||Co(l,t,f,a,S,g,c))?(T||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(l.flags|=4194308)):(typeof i.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=g),i.props=a,i.state=g,i.context=c,a=f):(typeof i.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{i=l.stateNode,wu(e,l),c=l.memoizedProps,T=wt(t,c),i.props=T,z=l.pendingProps,S=i.context,g=t.contextType,f=ia,typeof g=="object"&&g!==null&&(f=Ke(g)),s=t.getDerivedStateFromProps,(g=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==z||S!==f)&&Oo(l,i,a,f),rt=!1,S=l.memoizedState,i.state=S,Pa(l,a,i,n),Ia();var x=l.memoizedState;c!==z||S!==x||rt||e!==null&&e.dependencies!==null&&$n(e.dependencies)?(typeof s=="function"&&(dc(l,t,s,a),x=l.memoizedState),(T=rt||Co(l,t,T,a,S,x,f)||e!==null&&e.dependencies!==null&&$n(e.dependencies))?(g||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,x,f),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,x,f)),typeof i.componentDidUpdate=="function"&&(l.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=x),i.props=a,i.state=x,i.context=f,a=T):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&S===e.memoizedState||(l.flags|=1024),a=!1)}return i=a,yi(e,l),a=(l.flags&128)!==0,i||a?(i=l.stateNode,t=a&&typeof t.getDerivedStateFromError!="function"?null:i.render(),l.flags|=1,e!==null&&a?(l.child=Qt(l,e.child,null,n),l.child=Qt(l,null,t,n)):Je(e,l,t,n),l.memoizedState=i.state,e=l.child):e=Vl(e,l,n),e}function Zo(e,l,t,a){return Bt(),l.flags|=256,Je(e,l,t,a),l.child}var gc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:Ur()}}function bc(e,l,t){return e=e!==null?e.childLanes&~t:0,l&&(e|=pl),e}function Vo(e,l,t){var a=l.pendingProps,n=!1,i=(l.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(De.current&2)!==0),c&&(n=!0,l.flags&=-129),c=(l.flags&32)!==0,l.flags&=-33,e===null){if(ue){if(n?dt(l):mt(),(e=Ae)?(e=ld(e,El),e=e!==null&&e.data!=="&"?e:null,e!==null&&(l.memoizedState={dehydrated:e,treeContext:it!==null?{id:Ul,overflow:Rl}:null,retryLane:536870912,hydrationErrors:null},t=Ar(e),t.return=l,l.child=t,Ve=l,Ae=null)):e=null,e===null)throw ct(l);return ls(e)?l.lanes=32:l.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(mt(),n=l.mode,s=gi({mode:"hidden",children:s},n),a=Rt(a,n,t,null),s.return=l,a.return=l,s.sibling=a,l.child=s,a=l.child,a.memoizedState=pc(t),a.childLanes=bc(e,c,t),l.memoizedState=gc,nn(null,a)):(dt(l),Sc(l,s))}var f=e.memoizedState;if(f!==null&&(s=f.dehydrated,s!==null)){if(i)l.flags&256?(dt(l),l.flags&=-257,l=xc(e,l,t)):l.memoizedState!==null?(mt(),l.child=e.child,l.flags|=128,l=null):(mt(),s=a.fallback,n=l.mode,a=gi({mode:"visible",children:a.children},n),s=Rt(s,n,t,null),s.flags|=2,a.return=l,s.return=l,a.sibling=s,l.child=a,Qt(l,e.child,null,t),a=l.child,a.memoizedState=pc(t),a.childLanes=bc(e,c,t),l.memoizedState=gc,l=nn(null,a));else if(dt(l),ls(s)){if(c=s.nextSibling&&s.nextSibling.dataset,c)var g=c.dgst;c=g,a=Error(m(419)),a.stack="",a.digest=c,Va({value:a,source:null,stack:null}),l=xc(e,l,t)}else if(Ge||ra(e,l,t,!1),c=(t&e.childLanes)!==0,Ge||c){if(c=je,c!==null&&(a=_s(c,t),a!==0&&a!==f.retryLane))throw f.retryLane=a,Ut(e,a),sl(c,e,a),vc;es(s)||Ei(),l=xc(e,l,t)}else es(s)?(l.flags|=192,l.child=e.child,l=null):(e=f.treeContext,Ae=Ml(s.nextSibling),Ve=l,ue=!0,ut=null,El=!1,e!==null&&zr(l,e),l=Sc(l,a.children),l.flags|=4096);return l}return n?(mt(),s=a.fallback,n=l.mode,f=e.child,g=f.sibling,a=Xl(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&65011712,g!==null?s=Xl(g,s):(s=Rt(s,n,t,null),s.flags|=2),s.return=l,a.return=l,a.sibling=s,l.child=a,nn(null,a),a=l.child,s=e.child.memoizedState,s===null?s=pc(t):(n=s.cachePool,n!==null?(f=Be._currentValue,n=n.parent!==f?{parent:f,pool:f}:n):n=Ur(),s={baseLanes:s.baseLanes|t,cachePool:n}),a.memoizedState=s,a.childLanes=bc(e,c,t),l.memoizedState=gc,nn(e.child,a)):(dt(l),t=e.child,e=t.sibling,t=Xl(t,{mode:"visible",children:a.children}),t.return=l,t.sibling=null,e!==null&&(c=l.deletions,c===null?(l.deletions=[e],l.flags|=16):c.push(e)),l.child=t,l.memoizedState=null,t)}function Sc(e,l){return l=gi({mode:"visible",children:l},e.mode),l.return=e,e.child=l}function gi(e,l){return e=hl(22,e,null,l),e.lanes=0,e}function xc(e,l,t){return Qt(l,e.child,null,t),e=Sc(l,l.pendingProps.children),e.flags|=2,l.memoizedState=null,e}function Ko(e,l,t){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l),Hu(e.return,l,t)}function jc(e,l,t,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:t,tailMode:n,treeForkCount:i}:(c.isBackwards=l,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=t,c.tailMode=n,c.treeForkCount=i)}function Jo(e,l,t){var a=l.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=De.current,s=(c&2)!==0;if(s?(c=c&1|2,l.flags|=128):c&=1,N(De,c),Je(e,l,a,t),a=ue?Za:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=l.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ko(e,t,l);else if(e.tag===19)Ko(e,t,l);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===l)break e;for(;e.sibling===null;){if(e.return===null||e.return===l)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(t=l.child,n=null;t!==null;)e=t.alternate,e!==null&&ii(e)===null&&(n=t),t=t.sibling;t=n,t===null?(n=l.child,l.child=null):(n=t.sibling,t.sibling=null),jc(l,!1,n,t,i,a);break;case"backwards":case"unstable_legacy-backwards":for(t=null,n=l.child,l.child=null;n!==null;){if(e=n.alternate,e!==null&&ii(e)===null){l.child=n;break}e=n.sibling,n.sibling=t,t=n,n=e}jc(l,!0,t,null,i,a);break;case"together":jc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Vl(e,l,t){if(e!==null&&(l.dependencies=e.dependencies),yt|=l.lanes,(t&l.childLanes)===0)if(e!==null){if(ra(e,l,t,!1),(t&l.childLanes)===0)return null}else return null;if(e!==null&&l.child!==e.child)throw Error(m(153));if(l.child!==null){for(e=l.child,t=Xl(e,e.pendingProps),l.child=t,t.return=l;e.sibling!==null;)e=e.sibling,t=t.sibling=Xl(e,e.pendingProps),t.return=l;t.sibling=null}return l.child}function Tc(e,l){return(e.lanes&l)!==0?!0:(e=e.dependencies,!!(e!==null&&$n(e)))}function rh(e,l,t){switch(l.tag){case 3:el(l,l.stateNode.containerInfo),st(l,Be,e.memoizedState.cache),Bt();break;case 27:case 5:Oa(l);break;case 4:el(l,l.stateNode.containerInfo);break;case 10:st(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Ju(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(dt(l),l.flags|=128,null):(t&l.child.childLanes)!==0?Vo(e,l,t):(dt(l),e=Vl(e,l,t),e!==null?e.sibling:null);dt(l);break;case 19:var n=(e.flags&128)!==0;if(a=(t&l.childLanes)!==0,a||(ra(e,l,t,!1),a=(t&l.childLanes)!==0),n){if(a)return Jo(e,l,t);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),N(De,De.current),a)break;return null;case 22:return l.lanes=0,Xo(e,l,t,l.pendingProps);case 24:st(l,Be,e.memoizedState.cache)}return Vl(e,l,t)}function Fo(e,l,t){if(e!==null)if(e.memoizedProps!==l.pendingProps)Ge=!0;else{if(!Tc(e,t)&&(l.flags&128)===0)return Ge=!1,rh(e,l,t);Ge=(e.flags&131072)!==0}else Ge=!1,ue&&(l.flags&1048576)!==0&&Er(l,Za,l.index);switch(l.lanes=0,l.tag){case 16:e:{var a=l.pendingProps;if(e=Yt(l.elementType),l.type=e,typeof e=="function")Mu(e)?(a=wt(e,a),l.tag=1,l=ko(null,l,e,a,t)):(l.tag=0,l=yc(null,l,e,a,t));else{if(e!=null){var n=e.$$typeof;if(n===Se){l.tag=11,l=Go(null,l,e,a,t);break e}else if(n===_){l.tag=14,l=qo(null,l,e,a,t);break e}}throw l=rl(e)||e,Error(m(306,l,""))}}return l;case 0:return yc(e,l,l.type,l.pendingProps,t);case 1:return a=l.type,n=wt(a,l.pendingProps),ko(e,l,a,n,t);case 3:e:{if(el(l,l.stateNode.containerInfo),e===null)throw Error(m(387));a=l.pendingProps;var i=l.memoizedState;n=i.element,wu(e,l),Pa(l,a,null,t);var c=l.memoizedState;if(a=c.cache,st(l,Be,a),a!==i.cache&&Gu(l,[Be],t,!0),Ia(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},l.updateQueue.baseState=i,l.memoizedState=i,l.flags&256){l=Zo(e,l,a,t);break e}else if(a!==n){n=Tl(Error(m(424)),l),Va(n),l=Zo(e,l,a,t);break e}else{switch(e=l.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ae=Ml(e.firstChild),Ve=l,ue=!0,ut=null,El=!0,t=Yr(l,null,a,t),l.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(Bt(),a===n){l=Vl(e,l,t);break e}Je(e,l,a,t)}l=l.child}return l;case 26:return yi(e,l),e===null?(t=cd(l.type,null,l.pendingProps,null))?l.memoizedState=t:ue||(t=l.type,e=l.pendingProps,a=Ui(D.current).createElement(t),a[Ze]=l,a[tl]=e,Fe(a,t,e),Qe(a),l.stateNode=a):l.memoizedState=cd(l.type,e.memoizedProps,l.pendingProps,e.memoizedState),null;case 27:return Oa(l),e===null&&ue&&(a=l.stateNode=nd(l.type,l.pendingProps,D.current),Ve=l,El=!0,n=Ae,xt(l.type)?(ts=n,Ae=Ml(a.firstChild)):Ae=n),Je(e,l,l.pendingProps.children,t),yi(e,l),e===null&&(l.flags|=4194304),l.child;case 5:return e===null&&ue&&((n=a=Ae)&&(a=Yh(a,l.type,l.pendingProps,El),a!==null?(l.stateNode=a,Ve=l,Ae=Ml(a.firstChild),El=!1,n=!0):n=!1),n||ct(l)),Oa(l),n=l.type,i=l.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,$c(n,i)?a=null:c!==null&&$c(n,c)&&(l.flags|=32),l.memoizedState!==null&&(n=Wu(e,l,eh,null,null,t),Sn._currentValue=n),yi(e,l),Je(e,l,a,t),l.child;case 6:return e===null&&ue&&((e=t=Ae)&&(t=Xh(t,l.pendingProps,El),t!==null?(l.stateNode=t,Ve=l,Ae=null,e=!0):e=!1),e||ct(l)),null;case 13:return Vo(e,l,t);case 4:return el(l,l.stateNode.containerInfo),a=l.pendingProps,e===null?l.child=Qt(l,null,a,t):Je(e,l,a,t),l.child;case 11:return Go(e,l,l.type,l.pendingProps,t);case 7:return Je(e,l,l.pendingProps,t),l.child;case 8:return Je(e,l,l.pendingProps.children,t),l.child;case 12:return Je(e,l,l.pendingProps.children,t),l.child;case 10:return a=l.pendingProps,st(l,l.type,a.value),Je(e,l,a.children,t),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Gt(l),n=Ke(n),a=a(n),l.flags|=1,Je(e,l,a,t),l.child;case 14:return qo(e,l,l.type,l.pendingProps,t);case 15:return Yo(e,l,l.type,l.pendingProps,t);case 19:return Jo(e,l,t);case 31:return sh(e,l,t);case 22:return Xo(e,l,t,l.pendingProps);case 24:return Gt(l),a=Ke(Be),e===null?(n=Xu(),n===null&&(n=je,i=qu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=t),n=i),l.memoizedState={parent:a,cache:n},Lu(l),st(l,Be,n)):((e.lanes&t)!==0&&(wu(e,l),Pa(l,null,null,t),Ia()),n=e.memoizedState,i=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),st(l,Be,a)):(a=i.cache,st(l,Be,a),a!==n.cache&&Gu(l,[Be],t,!0))),Je(e,l,l.pendingProps.children,t),l.child;case 29:throw l.pendingProps}throw Error(m(156,l.tag))}function Kl(e){e.flags|=4}function Ac(e,l,t,a,n){if((l=(e.mode&32)!==0)&&(l=!1),l){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Tf())e.flags|=8192;else throw Xt=li,Qu}else e.flags&=-16777217}function Wo(e,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dd(l))if(Tf())e.flags|=8192;else throw Xt=li,Qu}function pi(e,l){l!==null&&(e.flags|=4),e.flags&16384&&(l=e.tag!==22?Ms():536870912,e.lanes|=l,xa|=l)}function un(e,l){if(!ue)switch(e.tailMode){case"hidden":l=e.tail;for(var t=null;l!==null;)l.alternate!==null&&(t=l),l=l.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?l||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var l=e.alternate!==null&&e.alternate.child===e.child,t=0,a=0;if(l)for(var n=e.child;n!==null;)t|=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;)t|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=t,l}function oh(e,l,t){var a=l.pendingProps;switch(Du(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(l),null;case 1:return Ne(l),null;case 3:return t=l.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),wl(Be),_e(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(sa(l)?Kl(l):e===null||e.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ru())),Ne(l),null;case 26:var n=l.type,i=l.memoizedState;return e===null?(Kl(l),i!==null?(Ne(l),Wo(l,i)):(Ne(l),Ac(l,n,null,a,t))):i?i!==e.memoizedState?(Kl(l),Ne(l),Wo(l,i)):(Ne(l),l.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kl(l),Ne(l),Ac(l,n,e,a,t)),null;case 27:if(Cn(l),t=D.current,n=l.type,e!==null&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(!a){if(l.stateNode===null)throw Error(m(166));return Ne(l),null}e=C.current,sa(l)?Mr(l):(e=nd(n,a,t),l.stateNode=e,Kl(l))}return Ne(l),null;case 5:if(Cn(l),n=l.type,e!==null&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(!a){if(l.stateNode===null)throw Error(m(166));return Ne(l),null}if(i=C.current,sa(l))Mr(l);else{var c=Ui(D.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Ze]=l,i[tl]=a;e:for(c=l.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}l.stateNode=i;e:switch(Fe(i,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&&Kl(l)}}return Ne(l),Ac(l,l.type,e===null?null:e.memoizedProps,l.pendingProps,t),null;case 6:if(e&&l.stateNode!=null)e.memoizedProps!==a&&Kl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(m(166));if(e=D.current,sa(l)){if(e=l.stateNode,t=l.memoizedProps,a=null,n=Ve,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ze]=l,e=!!(e.nodeValue===t||a!==null&&a.suppressHydrationWarning===!0||Kf(e.nodeValue,t)),e||ct(l,!0)}else e=Ui(e).createTextNode(a),e[Ze]=l,l.stateNode=e}return Ne(l),null;case 31:if(t=l.memoizedState,e===null||e.memoizedState!==null){if(a=sa(l),t!==null){if(e===null){if(!a)throw Error(m(318));if(e=l.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(m(557));e[Ze]=l}else Bt(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ne(l),e=!1}else t=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return l.flags&256?(yl(l),l):(yl(l),null);if((l.flags&128)!==0)throw Error(m(558))}return Ne(l),null;case 13:if(a=l.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=sa(l),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(m(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(m(317));n[Ze]=l}else Bt(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Ne(l),n=!1}else n=Ru(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(yl(l),l):(yl(l),null)}return yl(l),(l.flags&128)!==0?(l.lanes=t,l):(t=a!==null,e=e!==null&&e.memoizedState!==null,t&&(a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),t!==e&&t&&(l.child.flags|=8192),pi(l,l.updateQueue),Ne(l),null);case 4:return _e(),e===null&&Vc(l.stateNode.containerInfo),Ne(l),null;case 10:return wl(l.type),Ne(l),null;case 19:if(h(De),a=l.memoizedState,a===null)return Ne(l),null;if(n=(l.flags&128)!==0,i=a.rendering,i===null)if(n)un(a,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=l.child;e!==null;){if(i=ii(e),i!==null){for(l.flags|=128,un(a,!1),e=i.updateQueue,l.updateQueue=e,pi(l,e),l.subtreeFlags=0,e=t,t=l.child;t!==null;)Tr(t,e),t=t.sibling;return N(De,De.current&1|2),ue&&Ql(l,a.treeForkCount),l.child}e=e.sibling}a.tail!==null&&ol()>Ti&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304)}else{if(!n)if(e=ii(i),e!==null){if(l.flags|=128,n=!0,e=e.updateQueue,l.updateQueue=e,pi(l,e),un(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ue)return Ne(l),null}else 2*ol()-a.renderingStartTime>Ti&&t!==536870912&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304);a.isBackwards?(i.sibling=l.child,l.child=i):(e=a.last,e!==null?e.sibling=i:l.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ol(),e.sibling=null,t=De.current,N(De,n?t&1|2:t&1),ue&&Ql(l,a.treeForkCount),e):(Ne(l),null);case 22:case 23:return yl(l),Ku(),a=l.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(t&536870912)!==0&&(l.flags&128)===0&&(Ne(l),l.subtreeFlags&6&&(l.flags|=8192)):Ne(l),t=l.updateQueue,t!==null&&pi(l,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==t&&(l.flags|=2048),e!==null&&h(qt),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),l.memoizedState.cache!==t&&(l.flags|=2048),wl(Be),Ne(l),null;case 25:return null;case 30:return null}throw Error(m(156,l.tag))}function fh(e,l){switch(Du(l),l.tag){case 1:return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 3:return wl(Be),_e(),e=l.flags,(e&65536)!==0&&(e&128)===0?(l.flags=e&-65537|128,l):null;case 26:case 27:case 5:return Cn(l),null;case 31:if(l.memoizedState!==null){if(yl(l),l.alternate===null)throw Error(m(340));Bt()}return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 13:if(yl(l),e=l.memoizedState,e!==null&&e.dehydrated!==null){if(l.alternate===null)throw Error(m(340));Bt()}return e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 19:return h(De),null;case 4:return _e(),null;case 10:return wl(l.type),null;case 22:case 23:return yl(l),Ku(),e!==null&&h(qt),e=l.flags,e&65536?(l.flags=e&-65537|128,l):null;case 24:return wl(Be),null;case 25:return null;default:return null}}function $o(e,l){switch(Du(l),l.tag){case 3:wl(Be),_e();break;case 26:case 27:case 5:Cn(l);break;case 4:_e();break;case 31:l.memoizedState!==null&&yl(l);break;case 13:yl(l);break;case 19:h(De);break;case 10:wl(l.type);break;case 22:case 23:yl(l),Ku(),e!==null&&h(qt);break;case 24:wl(Be)}}function cn(e,l){try{var t=l.updateQueue,a=t!==null?t.lastEffect:null;if(a!==null){var n=a.next;t=n;do{if((t.tag&e)===e){a=void 0;var i=t.create,c=t.inst;a=i(),c.destroy=a}t=t.next}while(t!==n)}}catch(s){ve(l,l.return,s)}}function ht(e,l,t){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,s=c.destroy;if(s!==void 0){c.destroy=void 0,n=l;var f=t,g=s;try{g()}catch(T){ve(n,f,T)}}}a=a.next}while(a!==i)}}catch(T){ve(l,l.return,T)}}function Io(e){var l=e.updateQueue;if(l!==null){var t=e.stateNode;try{Qr(l,t)}catch(a){ve(e,e.return,a)}}}function Po(e,l,t){t.props=wt(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(a){ve(e,l,a)}}function sn(e,l){try{var t=e.ref;if(t!==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 t=="function"?e.refCleanup=t(a):t.current=a}}catch(n){ve(e,l,n)}}function Bl(e,l){var t=e.ref,a=e.refCleanup;if(t!==null)if(typeof a=="function")try{a()}catch(n){ve(e,l,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(n){ve(e,l,n)}else t.current=null}function ef(e){var l=e.type,t=e.memoizedProps,a=e.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":t.autoFocus&&a.focus();break e;case"img":t.src?a.src=t.src:t.srcSet&&(a.srcset=t.srcSet)}}catch(n){ve(e,e.return,n)}}function Nc(e,l,t){try{var a=e.stateNode;Uh(a,e.type,t,l),a[tl]=l}catch(n){ve(e,e.return,n)}}function lf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&xt(e.type)||e.tag===4}function Ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lf(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&&xt(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 zc(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,l):(l=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.appendChild(e),t=t._reactRootContainer,t!=null||l.onclick!==null||(l.onclick=ql));else if(a!==4&&(a===27&&xt(e.type)&&(t=e.stateNode,l=null),e=e.child,e!==null))for(zc(e,l,t),e=e.sibling;e!==null;)zc(e,l,t),e=e.sibling}function bi(e,l,t){var a=e.tag;if(a===5||a===6)e=e.stateNode,l?t.insertBefore(e,l):t.appendChild(e);else if(a!==4&&(a===27&&xt(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(bi(e,l,t),e=e.sibling;e!==null;)bi(e,l,t),e=e.sibling}function tf(e){var l=e.stateNode,t=e.memoizedProps;try{for(var a=e.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Fe(l,a,t),l[Ze]=e,l[tl]=t}catch(i){ve(e,e.return,i)}}var Jl=!1,qe=!1,Mc=!1,af=typeof WeakSet=="function"?WeakSet:Set,Le=null;function dh(e,l){if(e=e.containerInfo,Fc=Xi,e=hr(e),xu(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var a=t.getSelection&&t.getSelection();if(a&&a.rangeCount!==0){t=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var c=0,s=-1,f=-1,g=0,T=0,z=e,S=null;l:for(;;){for(var x;z!==t||n!==0&&z.nodeType!==3||(s=c+n),z!==i||a!==0&&z.nodeType!==3||(f=c+a),z.nodeType===3&&(c+=z.nodeValue.length),(x=z.firstChild)!==null;)S=z,z=x;for(;;){if(z===e)break l;if(S===t&&++g===n&&(s=c),S===i&&++T===a&&(f=c),(x=z.nextSibling)!==null)break;z=S,S=z.parentNode}z=x}t=s===-1||f===-1?null:{start:s,end:f}}else t=null}t=t||{start:0,end:0}}else t=null;for(Wc={focusedElem:e,selectionRange:t},Xi=!1,Le=l;Le!==null;)if(l=Le,e=l.child,(l.subtreeFlags&1028)!==0&&e!==null)e.return=l,Le=e;else for(;Le!==null;){switch(l=Le,i=l.alternate,e=l.flags,l.tag){case 0:if((e&4)!==0&&(e=l.updateQueue,e=e!==null?e.events:null,e!==null))for(t=0;t<e.length;t++)n=e[t],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,t=l,n=i.memoizedProps,i=i.memoizedState,a=t.stateNode;try{var G=wt(t.type,n);e=a.getSnapshotBeforeUpdate(G,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(Z){ve(t,t.return,Z)}}break;case 3:if((e&1024)!==0){if(e=l.stateNode.containerInfo,t=e.nodeType,t===9)Pc(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pc(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(m(163))}if(e=l.sibling,e!==null){e.return=l.return,Le=e;break}Le=l.return}}function nf(e,l,t){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Wl(e,t),a&4&&cn(5,t);break;case 1:if(Wl(e,t),a&4)if(e=t.stateNode,l===null)try{e.componentDidMount()}catch(c){ve(t,t.return,c)}else{var n=wt(t.type,l.memoizedProps);l=l.memoizedState;try{e.componentDidUpdate(n,l,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ve(t,t.return,c)}}a&64&&Io(t),a&512&&sn(t,t.return);break;case 3:if(Wl(e,t),a&64&&(e=t.updateQueue,e!==null)){if(l=null,t.child!==null)switch(t.child.tag){case 27:case 5:l=t.child.stateNode;break;case 1:l=t.child.stateNode}try{Qr(e,l)}catch(c){ve(t,t.return,c)}}break;case 27:l===null&&a&4&&tf(t);case 26:case 5:Wl(e,t),l===null&&a&4&&ef(t),a&512&&sn(t,t.return);break;case 12:Wl(e,t);break;case 31:Wl(e,t),a&4&&sf(e,t);break;case 13:Wl(e,t),a&4&&rf(e,t),a&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=xh.bind(null,t),Qh(e,t))));break;case 22:if(a=t.memoizedState!==null||Jl,!a){l=l!==null&&l.memoizedState!==null||qe,n=Jl;var i=qe;Jl=a,(qe=l)&&!i?$l(e,t,(t.subtreeFlags&8772)!==0):Wl(e,t),Jl=n,qe=i}break;case 30:break;default:Wl(e,t)}}function uf(e){var l=e.alternate;l!==null&&(e.alternate=null,uf(l)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(l=e.stateNode,l!==null&&nu(l)),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 Ee=null,nl=!1;function Fl(e,l,t){for(t=t.child;t!==null;)cf(e,l,t),t=t.sibling}function cf(e,l,t){if(fl&&typeof fl.onCommitFiberUnmount=="function")try{fl.onCommitFiberUnmount(_a,t)}catch{}switch(t.tag){case 26:qe||Bl(t,l),Fl(e,l,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:qe||Bl(t,l);var a=Ee,n=nl;xt(t.type)&&(Ee=t.stateNode,nl=!1),Fl(e,l,t),gn(t.stateNode),Ee=a,nl=n;break;case 5:qe||Bl(t,l);case 6:if(a=Ee,n=nl,Ee=null,Fl(e,l,t),Ee=a,nl=n,Ee!==null)if(nl)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(t.stateNode)}catch(i){ve(t,l,i)}else try{Ee.removeChild(t.stateNode)}catch(i){ve(t,l,i)}break;case 18:Ee!==null&&(nl?(e=Ee,Pf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),Ca(e)):Pf(Ee,t.stateNode));break;case 4:a=Ee,n=nl,Ee=t.stateNode.containerInfo,nl=!0,Fl(e,l,t),Ee=a,nl=n;break;case 0:case 11:case 14:case 15:ht(2,t,l),qe||ht(4,t,l),Fl(e,l,t);break;case 1:qe||(Bl(t,l),a=t.stateNode,typeof a.componentWillUnmount=="function"&&Po(t,l,a)),Fl(e,l,t);break;case 21:Fl(e,l,t);break;case 22:qe=(a=qe)||t.memoizedState!==null,Fl(e,l,t),qe=a;break;default:Fl(e,l,t)}}function sf(e,l){if(l.memoizedState===null&&(e=l.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ca(e)}catch(t){ve(l,l.return,t)}}}function rf(e,l){if(l.memoizedState===null&&(e=l.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ca(e)}catch(t){ve(l,l.return,t)}}function mh(e){switch(e.tag){case 31:case 13:case 19:var l=e.stateNode;return l===null&&(l=e.stateNode=new af),l;case 22:return e=e.stateNode,l=e._retryCache,l===null&&(l=e._retryCache=new af),l;default:throw Error(m(435,e.tag))}}function Si(e,l){var t=mh(e);l.forEach(function(a){if(!t.has(a)){t.add(a);var n=jh.bind(null,e,a);a.then(n,n)}})}function il(e,l){var t=l.deletions;if(t!==null)for(var a=0;a<t.length;a++){var n=t[a],i=e,c=l,s=c;e:for(;s!==null;){switch(s.tag){case 27:if(xt(s.type)){Ee=s.stateNode,nl=!1;break e}break;case 5:Ee=s.stateNode,nl=!1;break e;case 3:case 4:Ee=s.stateNode.containerInfo,nl=!0;break e}s=s.return}if(Ee===null)throw Error(m(160));cf(i,c,n),Ee=null,nl=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)of(l,e),l=l.sibling}var _l=null;function of(e,l){var t=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:il(l,e),ul(e),a&4&&(ht(3,e,e.return),cn(3,e),ht(5,e,e.return));break;case 1:il(l,e),ul(e),a&512&&(qe||t===null||Bl(t,t.return)),a&64&&Jl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?a:t.concat(a))));break;case 26:var n=_l;if(il(l,e),ul(e),a&512&&(qe||t===null||Bl(t,t.return)),a&4){var i=t!==null?t.memoizedState:null;if(a=e.memoizedState,t===null)if(a===null)if(e.stateNode===null){e:{a=e.type,t=e.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ra]||i[Ze]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Fe(i,a,t),i[Ze]=e,Qe(i),a=i;break e;case"link":var c=od("link","href",n).get(a+(t.href||""));if(c){for(var s=0;s<c.length;s++)if(i=c[s],i.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&i.getAttribute("rel")===(t.rel==null?null:t.rel)&&i.getAttribute("title")===(t.title==null?null:t.title)&&i.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){c.splice(s,1);break l}}i=n.createElement(a),Fe(i,a,t),n.head.appendChild(i);break;case"meta":if(c=od("meta","content",n).get(a+(t.content||""))){for(s=0;s<c.length;s++)if(i=c[s],i.getAttribute("content")===(t.content==null?null:""+t.content)&&i.getAttribute("name")===(t.name==null?null:t.name)&&i.getAttribute("property")===(t.property==null?null:t.property)&&i.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&i.getAttribute("charset")===(t.charSet==null?null:t.charSet)){c.splice(s,1);break l}}i=n.createElement(a),Fe(i,a,t),n.head.appendChild(i);break;default:throw Error(m(468,a))}i[Ze]=e,Qe(i),a=i}e.stateNode=a}else fd(n,e.type,e.stateNode);else e.stateNode=rd(n,a,e.memoizedProps);else i!==a?(i===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):i.count--,a===null?fd(n,e.type,e.stateNode):rd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Nc(e,e.memoizedProps,t.memoizedProps)}break;case 27:il(l,e),ul(e),a&512&&(qe||t===null||Bl(t,t.return)),t!==null&&a&4&&Nc(e,e.memoizedProps,t.memoizedProps);break;case 5:if(il(l,e),ul(e),a&512&&(qe||t===null||Bl(t,t.return)),e.flags&32){n=e.stateNode;try{It(n,"")}catch(G){ve(e,e.return,G)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Nc(e,n,t!==null?t.memoizedProps:n)),a&1024&&(Mc=!0);break;case 6:if(il(l,e),ul(e),a&4){if(e.stateNode===null)throw Error(m(162));a=e.memoizedProps,t=e.stateNode;try{t.nodeValue=a}catch(G){ve(e,e.return,G)}}break;case 3:if(Hi=null,n=_l,_l=Ri(l.containerInfo),il(l,e),_l=n,ul(e),a&4&&t!==null&&t.memoizedState.isDehydrated)try{Ca(l.containerInfo)}catch(G){ve(e,e.return,G)}Mc&&(Mc=!1,ff(e));break;case 4:a=_l,_l=Ri(e.stateNode.containerInfo),il(l,e),ul(e),_l=a;break;case 12:il(l,e),ul(e);break;case 31:il(l,e),ul(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 13:il(l,e),ul(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&(ji=ol()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 22:n=e.memoizedState!==null;var f=t!==null&&t.memoizedState!==null,g=Jl,T=qe;if(Jl=g||n,qe=T||f,il(l,e),qe=T,Jl=g,ul(e),a&8192)e:for(l=e.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(t===null||f||Jl||qe||kt(e)),t=null,l=e;;){if(l.tag===5||l.tag===26){if(t===null){f=t=l;try{if(i=f.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{s=f.stateNode;var z=f.memoizedProps.style,S=z!=null&&z.hasOwnProperty("display")?z.display:null;s.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(G){ve(f,f.return,G)}}}else if(l.tag===6){if(t===null){f=l;try{f.stateNode.nodeValue=n?"":f.memoizedProps}catch(G){ve(f,f.return,G)}}}else if(l.tag===18){if(t===null){f=l;try{var x=f.stateNode;n?ed(x,!0):ed(f.stateNode,!1)}catch(G){ve(f,f.return,G)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break e;for(;l.sibling===null;){if(l.return===null||l.return===e)break e;t===l&&(t=null),l=l.return}t===l&&(t=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=e.updateQueue,a!==null&&(t=a.retryQueue,t!==null&&(a.retryQueue=null,Si(e,t))));break;case 19:il(l,e),ul(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Si(e,a)));break;case 30:break;case 21:break;default:il(l,e),ul(e)}}function ul(e){var l=e.flags;if(l&2){try{for(var t,a=e.return;a!==null;){if(lf(a)){t=a;break}a=a.return}if(t==null)throw Error(m(160));switch(t.tag){case 27:var n=t.stateNode,i=Ec(e);bi(e,i,n);break;case 5:var c=t.stateNode;t.flags&32&&(It(c,""),t.flags&=-33);var s=Ec(e);bi(e,s,c);break;case 3:case 4:var f=t.stateNode.containerInfo,g=Ec(e);zc(e,g,f);break;default:throw Error(m(161))}}catch(T){ve(e,e.return,T)}e.flags&=-3}l&4096&&(e.flags&=-4097)}function ff(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var l=e;ff(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),e=e.sibling}}function Wl(e,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)nf(e,l.alternate,l),l=l.sibling}function kt(e){for(e=e.child;e!==null;){var l=e;switch(l.tag){case 0:case 11:case 14:case 15:ht(4,l,l.return),kt(l);break;case 1:Bl(l,l.return);var t=l.stateNode;typeof t.componentWillUnmount=="function"&&Po(l,l.return,t),kt(l);break;case 27:gn(l.stateNode);case 26:case 5:Bl(l,l.return),kt(l);break;case 22:l.memoizedState===null&&kt(l);break;case 30:kt(l);break;default:kt(l)}e=e.sibling}}function $l(e,l,t){for(t=t&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=e,i=l,c=i.flags;switch(i.tag){case 0:case 11:case 15:$l(n,i,t),cn(4,i);break;case 1:if($l(n,i,t),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){ve(a,a.return,g)}if(a=i,n=a.updateQueue,n!==null){var s=a.stateNode;try{var f=n.shared.hiddenCallbacks;if(f!==null)for(n.shared.hiddenCallbacks=null,n=0;n<f.length;n++)Xr(f[n],s)}catch(g){ve(a,a.return,g)}}t&&c&64&&Io(i),sn(i,i.return);break;case 27:tf(i);case 26:case 5:$l(n,i,t),t&&a===null&&c&4&&ef(i),sn(i,i.return);break;case 12:$l(n,i,t);break;case 31:$l(n,i,t),t&&c&4&&sf(n,i);break;case 13:$l(n,i,t),t&&c&4&&rf(n,i);break;case 22:i.memoizedState===null&&$l(n,i,t),sn(i,i.return);break;case 30:break;default:$l(n,i,t)}l=l.sibling}}function Cc(e,l){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&Ka(t))}function Oc(e,l){e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ka(e))}function Dl(e,l,t,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)df(e,l,t,a),l=l.sibling}function df(e,l,t,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Dl(e,l,t,a),n&2048&&cn(9,l);break;case 1:Dl(e,l,t,a);break;case 3:Dl(e,l,t,a),n&2048&&(e=null,l.alternate!==null&&(e=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==e&&(l.refCount++,e!=null&&Ka(e)));break;case 12:if(n&2048){Dl(e,l,t,a),e=l.stateNode;try{var i=l.memoizedProps,c=i.id,s=i.onPostCommit;typeof s=="function"&&s(c,l.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(f){ve(l,l.return,f)}}else Dl(e,l,t,a);break;case 31:Dl(e,l,t,a);break;case 13:Dl(e,l,t,a);break;case 23:break;case 22:i=l.stateNode,c=l.alternate,l.memoizedState!==null?i._visibility&2?Dl(e,l,t,a):rn(e,l):i._visibility&2?Dl(e,l,t,a):(i._visibility|=2,pa(e,l,t,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&Cc(c,l);break;case 24:Dl(e,l,t,a),n&2048&&Oc(l.alternate,l);break;default:Dl(e,l,t,a)}}function pa(e,l,t,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var i=e,c=l,s=t,f=a,g=c.flags;switch(c.tag){case 0:case 11:case 15:pa(i,c,s,f,n),cn(8,c);break;case 23:break;case 22:var T=c.stateNode;c.memoizedState!==null?T._visibility&2?pa(i,c,s,f,n):rn(i,c):(T._visibility|=2,pa(i,c,s,f,n)),n&&g&2048&&Cc(c.alternate,c);break;case 24:pa(i,c,s,f,n),n&&g&2048&&Oc(c.alternate,c);break;default:pa(i,c,s,f,n)}l=l.sibling}}function rn(e,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var t=e,a=l,n=a.flags;switch(a.tag){case 22:rn(t,a),n&2048&&Cc(a.alternate,a);break;case 24:rn(t,a),n&2048&&Oc(a.alternate,a);break;default:rn(t,a)}l=l.sibling}}var on=8192;function ba(e,l,t){if(e.subtreeFlags&on)for(e=e.child;e!==null;)mf(e,l,t),e=e.sibling}function mf(e,l,t){switch(e.tag){case 26:ba(e,l,t),e.flags&on&&e.memoizedState!==null&&Ph(t,_l,e.memoizedState,e.memoizedProps);break;case 5:ba(e,l,t);break;case 3:case 4:var a=_l;_l=Ri(e.stateNode.containerInfo),ba(e,l,t),_l=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,ba(e,l,t),on=a):ba(e,l,t));break;default:ba(e,l,t)}}function hf(e){var l=e.alternate;if(l!==null&&(e=l.child,e!==null)){l.child=null;do l=e.sibling,e.sibling=null,e=l;while(e!==null)}}function fn(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];Le=a,yf(a,e)}hf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vf(e),e=e.sibling}function vf(e){switch(e.tag){case 0:case 11:case 15:fn(e),e.flags&2048&&ht(9,e,e.return);break;case 3:fn(e);break;case 12:fn(e);break;case 22:var l=e.stateNode;e.memoizedState!==null&&l._visibility&2&&(e.return===null||e.return.tag!==13)?(l._visibility&=-3,xi(e)):fn(e);break;default:fn(e)}}function xi(e){var l=e.deletions;if((e.flags&16)!==0){if(l!==null)for(var t=0;t<l.length;t++){var a=l[t];Le=a,yf(a,e)}hf(e)}for(e=e.child;e!==null;){switch(l=e,l.tag){case 0:case 11:case 15:ht(8,l,l.return),xi(l);break;case 22:t=l.stateNode,t._visibility&2&&(t._visibility&=-3,xi(l));break;default:xi(l)}e=e.sibling}}function yf(e,l){for(;Le!==null;){var t=Le;switch(t.tag){case 0:case 11:case 15:ht(8,t,l);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var a=t.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ka(t.memoizedState.cache)}if(a=t.child,a!==null)a.return=t,Le=a;else e:for(t=e;Le!==null;){a=Le;var n=a.sibling,i=a.return;if(uf(a),a===t){Le=null;break e}if(n!==null){n.return=i,Le=n;break e}Le=i}}}var hh={getCacheForType:function(e){var l=Ke(Be),t=l.data.get(e);return t===void 0&&(t=e(),l.data.set(e,t)),t},cacheSignal:function(){return Ke(Be).controller.signal}},vh=typeof WeakMap=="function"?WeakMap:Map,oe=0,je=null,ee=null,ne=0,he=0,gl=null,vt=!1,Sa=!1,_c=!1,Il=0,Ce=0,yt=0,Zt=0,Dc=0,pl=0,xa=0,dn=null,cl=null,Uc=!1,ji=0,gf=0,Ti=1/0,Ai=null,gt=null,Ye=0,pt=null,ja=null,Pl=0,Rc=0,Bc=null,pf=null,mn=0,Hc=null;function bl(){return(oe&2)!==0&&ne!==0?ne&-ne:j.T!==null?Lc():Ds()}function bf(){if(pl===0)if((ne&536870912)===0||ue){var e=Dn;Dn<<=1,(Dn&3932160)===0&&(Dn=262144),pl=e}else pl=536870912;return e=vl.current,e!==null&&(e.flags|=32),pl}function sl(e,l,t){(e===je&&(he===2||he===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),bt(e,ne,pl,!1)),Ua(e,t),((oe&2)===0||e!==je)&&(e===je&&((oe&2)===0&&(Zt|=t),Ce===4&&bt(e,ne,pl,!1)),Hl(e))}function Sf(e,l,t){if((oe&6)!==0)throw Error(m(327));var a=!t&&(l&127)===0&&(l&e.expiredLanes)===0||Da(e,l),n=a?ph(e,l):qc(e,l,!0),i=a;do{if(n===0){Sa&&!a&&bt(e,l,0,!1);break}else{if(t=e.current.alternate,i&&!yh(t)){n=qc(e,l,!1),i=!1;continue}if(n===2){if(i=l,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){l=c;e:{var s=e;n=dn;var f=s.current.memoizedState.isDehydrated;if(f&&(Ta(s,c).flags|=256),c=qc(s,c,!1),c!==2){if(_c&&!f){s.errorRecoveryDisabledLanes|=i,Zt|=i,n=4;break e}i=cl,cl=n,i!==null&&(cl===null?cl=i:cl.push.apply(cl,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ta(e,0),bt(e,l,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(m(345));case 4:if((l&4194048)!==l)break;case 6:bt(a,l,pl,!vt);break e;case 2:cl=null;break;case 3:case 5:break;default:throw Error(m(329))}if((l&62914560)===l&&(n=ji+300-ol(),10<n)){if(bt(a,l,pl,!vt),Rn(a,0,!0)!==0)break e;Pl=l,a.timeoutHandle=$f(xf.bind(null,a,t,cl,Ai,Uc,l,pl,Zt,xa,vt,i,"Throttled",-0,0),n);break e}xf(a,t,cl,Ai,Uc,l,pl,Zt,xa,vt,i,null,-0,0)}}break}while(!0);Hl(e)}function xf(e,l,t,a,n,i,c,s,f,g,T,z,S,x){if(e.timeoutHandle=-1,z=l.subtreeFlags,z&8192||(z&16785408)===16785408){z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ql},mf(l,i,z);var G=(i&62914560)===i?ji-ol():(i&4194048)===i?gf-ol():0;if(G=ev(z,G),G!==null){Pl=i,e.cancelPendingCommit=G(Cf.bind(null,e,l,i,t,a,n,c,s,f,T,z,null,S,x)),bt(e,i,c,!g);return}}Cf(e,l,i,t,a,n,c,s,f)}function yh(e){for(var l=e;;){var t=l.tag;if((t===0||t===11||t===15)&&l.flags&16384&&(t=l.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var a=0;a<t.length;a++){var n=t[a],i=n.getSnapshot;n=n.value;try{if(!ml(i(),n))return!1}catch{return!1}}if(t=l.child,l.subtreeFlags&16384&&t!==null)t.return=l,l=t;else{if(l===e)break;for(;l.sibling===null;){if(l.return===null||l.return===e)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function bt(e,l,t,a){l&=~Dc,l&=~Zt,e.suspendedLanes|=l,e.pingedLanes&=~l,a&&(e.warmLanes|=l),a=e.expirationTimes;for(var n=l;0<n;){var i=31-dl(n),c=1<<i;a[i]=-1,n&=~c}t!==0&&Cs(e,t,l)}function Ni(){return(oe&6)===0?(hn(0),!1):!0}function Gc(){if(ee!==null){if(he===0)var e=ee.return;else e=ee,Ll=Ht=null,Pu(e),ma=null,Fa=0,e=ee;for(;e!==null;)$o(e.alternate,e),e=e.return;ee=null}}function Ta(e,l){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,Hh(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),Pl=0,Gc(),je=e,ee=t=Xl(e.current,null),ne=l,he=0,gl=null,vt=!1,Sa=Da(e,l),_c=!1,xa=pl=Dc=Zt=yt=Ce=0,cl=dn=null,Uc=!1,(l&8)!==0&&(l|=l&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=l;0<a;){var n=31-dl(a),i=1<<n;l|=e[n],a&=~i}return Il=l,Vn(),t}function jf(e,l){W=null,j.H=an,l===da||l===ei?(l=Hr(),he=3):l===Qu?(l=Hr(),he=4):he=l===vc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,gl=l,ee===null&&(Ce=1,hi(e,Tl(l,e.current)))}function Tf(){var e=vl.current;return e===null?!0:(ne&4194048)===ne?zl===null:(ne&62914560)===ne||(ne&536870912)!==0?e===zl:!1}function Af(){var e=j.H;return j.H=an,e===null?an:e}function Nf(){var e=j.A;return j.A=hh,e}function Ei(){Ce=4,vt||(ne&4194048)!==ne&&vl.current!==null||(Sa=!0),(yt&134217727)===0&&(Zt&134217727)===0||je===null||bt(je,ne,pl,!1)}function qc(e,l,t){var a=oe;oe|=2;var n=Af(),i=Nf();(je!==e||ne!==l)&&(Ai=null,Ta(e,l)),l=!1;var c=Ce;e:do try{if(he!==0&&ee!==null){var s=ee,f=gl;switch(he){case 8:Gc(),c=6;break e;case 3:case 2:case 9:case 6:vl.current===null&&(l=!0);var g=he;if(he=0,gl=null,Aa(e,s,f,g),t&&Sa){c=0;break e}break;default:g=he,he=0,gl=null,Aa(e,s,f,g)}}gh(),c=Ce;break}catch(T){jf(e,T)}while(!0);return l&&e.shellSuspendCounter++,Ll=Ht=null,oe=a,j.H=n,j.A=i,ee===null&&(je=null,ne=0,Vn()),c}function gh(){for(;ee!==null;)Ef(ee)}function ph(e,l){var t=oe;oe|=2;var a=Af(),n=Nf();je!==e||ne!==l?(Ai=null,Ti=ol()+500,Ta(e,l)):Sa=Da(e,l);e:do try{if(he!==0&&ee!==null){l=ee;var i=gl;l:switch(he){case 1:he=0,gl=null,Aa(e,l,i,1);break;case 2:case 9:if(Rr(i)){he=0,gl=null,zf(l);break}l=function(){he!==2&&he!==9||je!==e||(he=7),Hl(e)},i.then(l,l);break e;case 3:he=7;break e;case 4:he=5;break e;case 7:Rr(i)?(he=0,gl=null,zf(l)):(he=0,gl=null,Aa(e,l,i,7));break;case 5:var c=null;switch(ee.tag){case 26:c=ee.memoizedState;case 5:case 27:var s=ee;if(c?dd(c):s.stateNode.complete){he=0,gl=null;var f=s.sibling;if(f!==null)ee=f;else{var g=s.return;g!==null?(ee=g,zi(g)):ee=null}break l}}he=0,gl=null,Aa(e,l,i,5);break;case 6:he=0,gl=null,Aa(e,l,i,6);break;case 8:Gc(),Ce=6;break e;default:throw Error(m(462))}}bh();break}catch(T){jf(e,T)}while(!0);return Ll=Ht=null,j.H=a,j.A=n,oe=t,ee!==null?0:(je=null,ne=0,Vn(),Ce)}function bh(){for(;ee!==null&&!Ld();)Ef(ee)}function Ef(e){var l=Fo(e.alternate,e,Il);e.memoizedProps=e.pendingProps,l===null?zi(e):ee=l}function zf(e){var l=e,t=l.alternate;switch(l.tag){case 15:case 0:l=wo(t,l,l.pendingProps,l.type,void 0,ne);break;case 11:l=wo(t,l,l.pendingProps,l.type.render,l.ref,ne);break;case 5:Pu(l);default:$o(t,l),l=ee=Tr(l,Il),l=Fo(t,l,Il)}e.memoizedProps=e.pendingProps,l===null?zi(e):ee=l}function Aa(e,l,t,a){Ll=Ht=null,Pu(l),ma=null,Fa=0;var n=l.return;try{if(ch(e,n,l,t,ne)){Ce=1,hi(e,Tl(t,e.current)),ee=null;return}}catch(i){if(n!==null)throw ee=n,i;Ce=1,hi(e,Tl(t,e.current)),ee=null;return}l.flags&32768?(ue||a===1?e=!0:Sa||(ne&536870912)!==0?e=!1:(vt=e=!0,(a===2||a===9||a===3||a===6)&&(a=vl.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mf(l,e)):zi(l)}function zi(e){var l=e;do{if((l.flags&32768)!==0){Mf(l,vt);return}e=l.return;var t=oh(l.alternate,l,Il);if(t!==null){ee=t;return}if(l=l.sibling,l!==null){ee=l;return}ee=l=e}while(l!==null);Ce===0&&(Ce=5)}function Mf(e,l){do{var t=fh(e.alternate,e);if(t!==null){t.flags&=32767,ee=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!l&&(e=e.sibling,e!==null)){ee=e;return}ee=e=t}while(e!==null);Ce=6,ee=null}function Cf(e,l,t,a,n,i,c,s,f){e.cancelPendingCommit=null;do Mi();while(Ye!==0);if((oe&6)!==0)throw Error(m(327));if(l!==null){if(l===e.current)throw Error(m(177));if(i=l.lanes|l.childLanes,i|=Eu,Id(e,t,i,c,s,f),e===je&&(ee=je=null,ne=0),ja=l,pt=e,Pl=t,Rc=i,Bc=n,pf=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Th(On,function(){return Rf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,n=O.p,O.p=2,c=oe,oe|=4;try{dh(e,l,t)}finally{oe=c,O.p=n,j.T=a}}Ye=1,Of(),_f(),Df()}}function Of(){if(Ye===1){Ye=0;var e=pt,l=ja,t=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||t){t=j.T,j.T=null;var a=O.p;O.p=2;var n=oe;oe|=4;try{of(l,e);var i=Wc,c=hr(e.containerInfo),s=i.focusedElem,f=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&mr(s.ownerDocument.documentElement,s)){if(f!==null&&xu(s)){var g=f.start,T=f.end;if(T===void 0&&(T=g),"selectionStart"in s)s.selectionStart=g,s.selectionEnd=Math.min(T,s.value.length);else{var z=s.ownerDocument||document,S=z&&z.defaultView||window;if(S.getSelection){var x=S.getSelection(),G=s.textContent.length,Z=Math.min(f.start,G),pe=f.end===void 0?Z:Math.min(f.end,G);!x.extend&&Z>pe&&(c=pe,pe=Z,Z=c);var v=dr(s,Z),d=dr(s,pe);if(v&&d&&(x.rangeCount!==1||x.anchorNode!==v.node||x.anchorOffset!==v.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)){var y=z.createRange();y.setStart(v.node,v.offset),x.removeAllRanges(),Z>pe?(x.addRange(y),x.extend(d.node,d.offset)):(y.setEnd(d.node,d.offset),x.addRange(y))}}}}for(z=[],x=s;x=x.parentNode;)x.nodeType===1&&z.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<z.length;s++){var E=z[s];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Xi=!!Fc,Wc=Fc=null}finally{oe=n,O.p=a,j.T=t}}e.current=l,Ye=2}}function _f(){if(Ye===2){Ye=0;var e=pt,l=ja,t=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||t){t=j.T,j.T=null;var a=O.p;O.p=2;var n=oe;oe|=4;try{nf(e,l.alternate,l)}finally{oe=n,O.p=a,j.T=t}}Ye=3}}function Df(){if(Ye===4||Ye===3){Ye=0,wd();var e=pt,l=ja,t=Pl,a=pf;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ye=5:(Ye=0,ja=pt=null,Uf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(gt=null),tu(t),l=l.stateNode,fl&&typeof fl.onCommitFiberRoot=="function")try{fl.onCommitFiberRoot(_a,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=j.T,n=O.p,O.p=2,j.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var s=a[c];i(s.value,{componentStack:s.stack})}}finally{j.T=l,O.p=n}}(Pl&3)!==0&&Mi(),Hl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?e===Hc?mn++:(mn=0,Hc=e):mn=0,hn(0)}}function Uf(e,l){(e.pooledCacheLanes&=l)===0&&(l=e.pooledCache,l!=null&&(e.pooledCache=null,Ka(l)))}function Mi(){return Of(),_f(),Df(),Rf()}function Rf(){if(Ye!==5)return!1;var e=pt,l=Rc;Rc=0;var t=tu(Pl),a=j.T,n=O.p;try{O.p=32>t?32:t,j.T=null,t=Bc,Bc=null;var i=pt,c=Pl;if(Ye=0,ja=pt=null,Pl=0,(oe&6)!==0)throw Error(m(331));var s=oe;if(oe|=4,vf(i.current),df(i,i.current,c,t),oe=s,hn(0,!1),fl&&typeof fl.onPostCommitFiberRoot=="function")try{fl.onPostCommitFiberRoot(_a,i)}catch{}return!0}finally{O.p=n,j.T=a,Uf(e,l)}}function Bf(e,l,t){l=Tl(t,l),l=hc(e.stateNode,l,2),e=ft(e,l,2),e!==null&&(Ua(e,2),Hl(e))}function ve(e,l,t){if(e.tag===3)Bf(e,e,t);else for(;l!==null;){if(l.tag===3){Bf(l,e,t);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(gt===null||!gt.has(a))){e=Tl(t,e),t=Bo(2),a=ft(l,t,2),a!==null&&(Ho(t,a,l,e),Ua(a,2),Hl(a));break}}l=l.return}}function Yc(e,l,t){var a=e.pingCache;if(a===null){a=e.pingCache=new vh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(t)||(_c=!0,n.add(t),e=Sh.bind(null,e,l,t),l.then(e,e))}function Sh(e,l,t){var a=e.pingCache;a!==null&&a.delete(l),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,je===e&&(ne&t)===t&&(Ce===4||Ce===3&&(ne&62914560)===ne&&300>ol()-ji?(oe&2)===0&&Ta(e,0):Dc|=t,xa===ne&&(xa=0)),Hl(e)}function Hf(e,l){l===0&&(l=Ms()),e=Ut(e,l),e!==null&&(Ua(e,l),Hl(e))}function xh(e){var l=e.memoizedState,t=0;l!==null&&(t=l.retryLane),Hf(e,t)}function jh(e,l){var t=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(t=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(m(314))}a!==null&&a.delete(l),Hf(e,t)}function Th(e,l){return Ii(e,l)}var Ci=null,Na=null,Xc=!1,Oi=!1,Qc=!1,St=0;function Hl(e){e!==Na&&e.next===null&&(Na===null?Ci=Na=e:Na=Na.next=e),Oi=!0,Xc||(Xc=!0,Nh())}function hn(e,l){if(!Qc&&Oi){Qc=!0;do for(var t=!1,a=Ci;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,s=a.pingedLanes;i=(1<<31-dl(42|e)+1)-1,i&=n&~(c&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(t=!0,Xf(a,i))}else i=ne,i=Rn(a,a===je?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Da(a,i)||(t=!0,Xf(a,i));a=a.next}while(t);Qc=!1}}function Ah(){Gf()}function Gf(){Oi=Xc=!1;var e=0;St!==0&&Bh()&&(e=St);for(var l=ol(),t=null,a=Ci;a!==null;){var n=a.next,i=qf(a,l);i===0?(a.next=null,t===null?Ci=n:t.next=n,n===null&&(Na=t)):(t=a,(e!==0||(i&3)!==0)&&(Oi=!0)),a=n}Ye!==0&&Ye!==5||hn(e),St!==0&&(St=0)}function qf(e,l){for(var t=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-dl(i),s=1<<c,f=n[c];f===-1?((s&t)===0||(s&a)!==0)&&(n[c]=$d(s,l)):f<=l&&(e.expiredLanes|=s),i&=~s}if(l=je,t=ne,t=Rn(e,e===l?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,t===0||e===l&&(he===2||he===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Pi(a),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||Da(e,t)){if(l=t&-t,l===e.callbackPriority)return l;switch(a!==null&&Pi(a),tu(t)){case 2:case 8:t=Es;break;case 32:t=On;break;case 268435456:t=zs;break;default:t=On}return a=Yf.bind(null,e),t=Ii(t,a),e.callbackPriority=l,e.callbackNode=t,l}return a!==null&&a!==null&&Pi(a),e.callbackPriority=2,e.callbackNode=null,2}function Yf(e,l){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Mi()&&e.callbackNode!==t)return null;var a=ne;return a=Rn(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Sf(e,a,l),qf(e,ol()),e.callbackNode!=null&&e.callbackNode===t?Yf.bind(null,e):null)}function Xf(e,l){if(Mi())return null;Sf(e,l,!0)}function Nh(){Gh(function(){(oe&6)!==0?Ii(Ns,Ah):Gf()})}function Lc(){if(St===0){var e=oa;e===0&&(e=_n,_n<<=1,(_n&261888)===0&&(_n=256)),St=e}return St}function Qf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qn(""+e)}function Lf(e,l){var t=l.ownerDocument.createElement("input");return t.name=l.name,t.value=l.value,e.id&&t.setAttribute("form",e.id),l.parentNode.insertBefore(t,l),e=new FormData(e),t.parentNode.removeChild(t),e}function Eh(e,l,t,a,n){if(l==="submit"&&t&&t.stateNode===n){var i=Qf((n[tl]||null).action),c=a.submitter;c&&(l=(l=c[tl]||null)?Qf(l.formAction):c.getAttribute("formAction"),l!==null&&(i=l,c=null));var s=new Ln("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(St!==0){var f=c?Lf(n,c):new FormData(n);sc(t,{pending:!0,data:f,method:n.method,action:i},null,f)}}else typeof i=="function"&&(s.preventDefault(),f=c?Lf(n,c):new FormData(n),sc(t,{pending:!0,data:f,method:n.method,action:i},i,f))},currentTarget:n}]})}}for(var wc=0;wc<Nu.length;wc++){var kc=Nu[wc],zh=kc.toLowerCase(),Mh=kc[0].toUpperCase()+kc.slice(1);Ol(zh,"on"+Mh)}Ol(gr,"onAnimationEnd"),Ol(pr,"onAnimationIteration"),Ol(br,"onAnimationStart"),Ol("dblclick","onDoubleClick"),Ol("focusin","onFocus"),Ol("focusout","onBlur"),Ol(km,"onTransitionRun"),Ol(Zm,"onTransitionStart"),Ol(Vm,"onTransitionCancel"),Ol(Sr,"onTransitionEnd"),Wt("onMouseEnter",["mouseout","mouseover"]),Wt("onMouseLeave",["mouseout","mouseover"]),Wt("onPointerEnter",["pointerout","pointerover"]),Wt("onPointerLeave",["pointerout","pointerover"]),Ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vn="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(" "),Ch=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vn));function wf(e,l){l=(l&4)!==0;for(var t=0;t<e.length;t++){var a=e[t],n=a.event;a=a.listeners;e:{var i=void 0;if(l)for(var c=a.length-1;0<=c;c--){var s=a[c],f=s.instance,g=s.currentTarget;if(s=s.listener,f!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=g;try{i(n)}catch(T){Zn(T)}n.currentTarget=null,i=f}else for(c=0;c<a.length;c++){if(s=a[c],f=s.instance,g=s.currentTarget,s=s.listener,f!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=g;try{i(n)}catch(T){Zn(T)}n.currentTarget=null,i=f}}}}function le(e,l){var t=l[au];t===void 0&&(t=l[au]=new Set);var a=e+"__bubble";t.has(a)||(kf(l,e,2,!1),t.add(a))}function Zc(e,l,t){var a=0;l&&(a|=4),kf(t,e,a,l)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Vc(e){if(!e[_i]){e[_i]=!0,Bs.forEach(function(t){t!=="selectionchange"&&(Ch.has(t)||Zc(t,!1,e),Zc(t,!0,e))});var l=e.nodeType===9?e:e.ownerDocument;l===null||l[_i]||(l[_i]=!0,Zc("selectionchange",!1,l))}}function kf(e,l,t,a){switch(bd(l)){case 2:var n=av;break;case 8:n=nv;break;default:n=cs}t=n.bind(null,l,t,e),n=void 0,!du||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(l,t,{capture:!0,passive:n}):e.addEventListener(l,t,!0):n!==void 0?e.addEventListener(l,t,{passive:n}):e.addEventListener(l,t,!1)}function Kc(e,l,t,a,n){var i=a;if((l&1)===0&&(l&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var s=a.stateNode.containerInfo;if(s===n)break;if(c===4)for(c=a.return;c!==null;){var f=c.tag;if((f===3||f===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;s!==null;){if(c=Kt(s),c===null)return;if(f=c.tag,f===5||f===6||f===26||f===27){a=i=c;continue e}s=s.parentNode}}a=a.return}Ks(function(){var g=i,T=ou(t),z=[];e:{var S=xr.get(e);if(S!==void 0){var x=Ln,G=e;switch(e){case"keypress":if(Xn(t)===0)break e;case"keydown":case"keyup":x=jm;break;case"focusin":G="focus",x=yu;break;case"focusout":G="blur",x=yu;break;case"beforeblur":case"afterblur":x=yu;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Ws;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Nm;break;case gr:case pr:case br:x=mm;break;case Sr:x=zm;break;case"scroll":case"scrollend":x=sm;break;case"wheel":x=Cm;break;case"copy":case"cut":case"paste":x=vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Is;break;case"toggle":case"beforetoggle":x=_m}var Z=(l&4)!==0,pe=!Z&&(e==="scroll"||e==="scrollend"),v=Z?S!==null?S+"Capture":null:S;Z=[];for(var d=g,y;d!==null;){var E=d;if(y=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||y===null||v===null||(E=Ha(d,v),E!=null&&Z.push(yn(d,E,y))),pe)break;d=d.return}0<Z.length&&(S=new x(S,G,null,t,T),z.push({event:S,listeners:Z}))}}if((l&7)===0){e:{if(S=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",S&&t!==ru&&(G=t.relatedTarget||t.fromElement)&&(Kt(G)||G[Vt]))break e;if((x||S)&&(S=T.window===T?T:(S=T.ownerDocument)?S.defaultView||S.parentWindow:window,x?(G=t.relatedTarget||t.toElement,x=g,G=G?Kt(G):null,G!==null&&(pe=X(G),Z=G.tag,G!==pe||Z!==5&&Z!==27&&Z!==6)&&(G=null)):(x=null,G=g),x!==G)){if(Z=Ws,E="onMouseLeave",v="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(Z=Is,E="onPointerLeave",v="onPointerEnter",d="pointer"),pe=x==null?S:Ba(x),y=G==null?S:Ba(G),S=new Z(E,d+"leave",x,t,T),S.target=pe,S.relatedTarget=y,E=null,Kt(T)===g&&(Z=new Z(v,d+"enter",G,t,T),Z.target=y,Z.relatedTarget=pe,E=Z),pe=E,x&&G)l:{for(Z=Oh,v=x,d=G,y=0,E=v;E;E=Z(E))y++;E=0;for(var w=d;w;w=Z(w))E++;for(;0<y-E;)v=Z(v),y--;for(;0<E-y;)d=Z(d),E--;for(;y--;){if(v===d||d!==null&&v===d.alternate){Z=v;break l}v=Z(v),d=Z(d)}Z=null}else Z=null;x!==null&&Zf(z,S,x,Z,!1),G!==null&&pe!==null&&Zf(z,pe,G,Z,!0)}}e:{if(S=g?Ba(g):window,x=S.nodeName&&S.nodeName.toLowerCase(),x==="select"||x==="input"&&S.type==="file")var se=ur;else if(nr(S))if(cr)se=Qm;else{se=Ym;var Q=qm}else x=S.nodeName,!x||x.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?g&&su(g.elementType)&&(se=ur):se=Xm;if(se&&(se=se(e,g))){ir(z,se,t,T);break e}Q&&Q(e,S,g),e==="focusout"&&g&&S.type==="number"&&g.memoizedProps.value!=null&&cu(S,"number",S.value)}switch(Q=g?Ba(g):window,e){case"focusin":(nr(Q)||Q.contentEditable==="true")&&(ta=Q,ju=g,ka=null);break;case"focusout":ka=ju=ta=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,vr(z,t,T);break;case"selectionchange":if(wm)break;case"keydown":case"keyup":vr(z,t,T)}var P;if(pu)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else la?tr(e,t)&&(ie="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(ie="onCompositionStart");ie&&(Ps&&t.locale!=="ko"&&(la||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&la&&(P=Js()):(nt=T,mu="value"in nt?nt.value:nt.textContent,la=!0)),Q=Di(g,ie),0<Q.length&&(ie=new $s(ie,e,null,t,T),z.push({event:ie,listeners:Q}),P?ie.data=P:(P=ar(t),P!==null&&(ie.data=P)))),(P=Um?Rm(e,t):Bm(e,t))&&(ie=Di(g,"onBeforeInput"),0<ie.length&&(Q=new $s("onBeforeInput","beforeinput",null,t,T),z.push({event:Q,listeners:ie}),Q.data=P)),Eh(z,e,g,t,T)}wf(z,l)})}function yn(e,l,t){return{instance:e,listener:l,currentTarget:t}}function Di(e,l){for(var t=l+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ha(e,t),n!=null&&a.unshift(yn(e,n,i)),n=Ha(e,l),n!=null&&a.push(yn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Oh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,l,t,a,n){for(var i=l._reactName,c=[];t!==null&&t!==a;){var s=t,f=s.alternate,g=s.stateNode;if(s=s.tag,f!==null&&f===a)break;s!==5&&s!==26&&s!==27||g===null||(f=g,n?(g=Ha(t,i),g!=null&&c.unshift(yn(t,g,f))):n||(g=Ha(t,i),g!=null&&c.push(yn(t,g,f)))),t=t.return}c.length!==0&&e.push({event:l,listeners:c})}var _h=/\r\n?/g,Dh=/\u0000|\uFFFD/g;function Vf(e){return(typeof e=="string"?e:""+e).replace(_h,`
|
|
49
|
-
`).replace(Dh,"")}function Kf(e,l){return l=Vf(l),Vf(e)===l}function ge(e,l,t,a,n,i){switch(t){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||It(e,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&It(e,""+a);break;case"className":Hn(e,"class",a);break;case"tabIndex":Hn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Hn(e,t,a);break;case"style":Zs(e,a,i);break;case"data":if(l!=="object"){Hn(e,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||t!=="href")){e.removeAttribute(t);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(t,"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 i=="function"&&(t==="formAction"?(l!=="input"&&ge(e,l,"name",n.name,n,null),ge(e,l,"formEncType",n.formEncType,n,null),ge(e,l,"formMethod",n.formMethod,n,null),ge(e,l,"formTarget",n.formTarget,n,null)):(ge(e,l,"encType",n.encType,n,null),ge(e,l,"method",n.method,n,null),ge(e,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(t);break}a=qn(""+a),e.setAttribute(t,a);break;case"onClick":a!=null&&(e.onclick=ql);break;case"onScroll":a!=null&&le("scroll",e);break;case"onScrollEnd":a!=null&&le("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(m(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(m(60));e.innerHTML=t}}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}t=qn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);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(t,""+a):e.removeAttribute(t);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(t,""):e.removeAttribute(t);break;case"capture":case"download":a===!0?e.setAttribute(t,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(t,a):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(t,a):e.removeAttribute(t);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(t):e.setAttribute(t,a);break;case"popover":le("beforetoggle",e),le("toggle",e),Bn(e,"popover",a);break;case"xlinkActuate":Gl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Bn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=um.get(t)||t,Bn(e,t,a))}}function Jc(e,l,t,a,n,i){switch(t){case"style":Zs(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(m(61));if(t=a.__html,t!=null){if(n.children!=null)throw Error(m(60));e.innerHTML=t}}break;case"children":typeof a=="string"?It(e,a):(typeof a=="number"||typeof a=="bigint")&&It(e,""+a);break;case"onScroll":a!=null&&le("scroll",e);break;case"onScrollEnd":a!=null&&le("scrollend",e);break;case"onClick":a!=null&&(e.onclick=ql);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hs.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(n=t.endsWith("Capture"),l=t.slice(2,n?t.length-7:void 0),i=e[tl]||null,i=i!=null?i[t]:null,typeof i=="function"&&e.removeEventListener(l,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(l,a,n);break e}t in e?e[t]=a:a===!0?e.setAttribute(t,""):Bn(e,t,a)}}}function Fe(e,l,t){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":le("error",e),le("load",e);var a=!1,n=!1,i;for(i in t)if(t.hasOwnProperty(i)){var c=t[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(m(137,l));default:ge(e,l,i,c,t,null)}}n&&ge(e,l,"srcSet",t.srcSet,t,null),a&&ge(e,l,"src",t.src,t,null);return;case"input":le("invalid",e);var s=i=c=n=null,f=null,g=null;for(a in t)if(t.hasOwnProperty(a)){var T=t[a];if(T!=null)switch(a){case"name":n=T;break;case"type":c=T;break;case"checked":f=T;break;case"defaultChecked":g=T;break;case"value":i=T;break;case"defaultValue":s=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(m(137,l));break;default:ge(e,l,a,T,t,null)}}Qs(e,i,s,f,g,c,n,!1);return;case"select":le("invalid",e),a=c=i=null;for(n in t)if(t.hasOwnProperty(n)&&(s=t[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":c=s;break;case"multiple":a=s;default:ge(e,l,n,s,t,null)}l=i,t=c,e.multiple=!!a,l!=null?$t(e,!!a,l,!1):t!=null&&$t(e,!!a,t,!0);return;case"textarea":le("invalid",e),i=n=a=null;for(c in t)if(t.hasOwnProperty(c)&&(s=t[c],s!=null))switch(c){case"value":a=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(m(91));break;default:ge(e,l,c,s,t,null)}ws(e,a,n,i);return;case"option":for(f in t)if(t.hasOwnProperty(f)&&(a=t[f],a!=null))switch(f){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ge(e,l,f,a,t,null)}return;case"dialog":le("beforetoggle",e),le("toggle",e),le("cancel",e),le("close",e);break;case"iframe":case"object":le("load",e);break;case"video":case"audio":for(a=0;a<vn.length;a++)le(vn[a],e);break;case"image":le("error",e),le("load",e);break;case"details":le("toggle",e);break;case"embed":case"source":case"link":le("error",e),le("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 t)if(t.hasOwnProperty(g)&&(a=t[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(m(137,l));default:ge(e,l,g,a,t,null)}return;default:if(su(l)){for(T in t)t.hasOwnProperty(T)&&(a=t[T],a!==void 0&&Jc(e,l,T,a,t,void 0));return}}for(s in t)t.hasOwnProperty(s)&&(a=t[s],a!=null&&ge(e,l,s,a,t,null))}function Uh(e,l,t,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,s=null,f=null,g=null,T=null;for(x in t){var z=t[x];if(t.hasOwnProperty(x)&&z!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":f=z;default:a.hasOwnProperty(x)||ge(e,l,x,null,a,z)}}for(var S in a){var x=a[S];if(z=t[S],a.hasOwnProperty(S)&&(x!=null||z!=null))switch(S){case"type":i=x;break;case"name":n=x;break;case"checked":g=x;break;case"defaultChecked":T=x;break;case"value":c=x;break;case"defaultValue":s=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(m(137,l));break;default:x!==z&&ge(e,l,S,x,a,z)}}uu(e,c,s,f,g,T,i,n);return;case"select":x=c=s=S=null;for(i in t)if(f=t[i],t.hasOwnProperty(i)&&f!=null)switch(i){case"value":break;case"multiple":x=f;default:a.hasOwnProperty(i)||ge(e,l,i,null,a,f)}for(n in a)if(i=a[n],f=t[n],a.hasOwnProperty(n)&&(i!=null||f!=null))switch(n){case"value":S=i;break;case"defaultValue":s=i;break;case"multiple":c=i;default:i!==f&&ge(e,l,n,i,a,f)}l=s,t=c,a=x,S!=null?$t(e,!!t,S,!1):!!a!=!!t&&(l!=null?$t(e,!!t,l,!0):$t(e,!!t,t?[]:"",!1));return;case"textarea":x=S=null;for(s in t)if(n=t[s],t.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ge(e,l,s,null,a,n)}for(c in a)if(n=a[c],i=t[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":S=n;break;case"defaultValue":x=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(m(91));break;default:n!==i&&ge(e,l,c,n,a,i)}Ls(e,S,x);return;case"option":for(var G in t)if(S=t[G],t.hasOwnProperty(G)&&S!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:ge(e,l,G,null,a,S)}for(f in a)if(S=a[f],x=t[f],a.hasOwnProperty(f)&&S!==x&&(S!=null||x!=null))switch(f){case"selected":e.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:ge(e,l,f,S,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 Z in t)S=t[Z],t.hasOwnProperty(Z)&&S!=null&&!a.hasOwnProperty(Z)&&ge(e,l,Z,null,a,S);for(g in a)if(S=a[g],x=t[g],a.hasOwnProperty(g)&&S!==x&&(S!=null||x!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(m(137,l));break;default:ge(e,l,g,S,a,x)}return;default:if(su(l)){for(var pe in t)S=t[pe],t.hasOwnProperty(pe)&&S!==void 0&&!a.hasOwnProperty(pe)&&Jc(e,l,pe,void 0,a,S);for(T in a)S=a[T],x=t[T],!a.hasOwnProperty(T)||S===x||S===void 0&&x===void 0||Jc(e,l,T,S,a,x);return}}for(var v in t)S=t[v],t.hasOwnProperty(v)&&S!=null&&!a.hasOwnProperty(v)&&ge(e,l,v,null,a,S);for(z in a)S=a[z],x=t[z],!a.hasOwnProperty(z)||S===x||S==null&&x==null||ge(e,l,z,S,a,x)}function Jf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,l=0,t=performance.getEntriesByType("resource"),a=0;a<t.length;a++){var n=t[a],i=n.transferSize,c=n.initiatorType,s=n.duration;if(i&&s&&Jf(c)){for(c=0,s=n.responseEnd,a+=1;a<t.length;a++){var f=t[a],g=f.startTime;if(g>s)break;var T=f.transferSize,z=f.initiatorType;T&&Jf(z)&&(f=f.responseEnd,c+=T*(f<s?1:(s-g)/(f-g)))}if(--a,l+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return l/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Fc=null,Wc=null;function Ui(e){return e.nodeType===9?e:e.ownerDocument}function Ff(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 Wf(e,l){if(e===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&l==="foreignObject"?0:e}function $c(e,l){return e==="textarea"||e==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ic=null;function Bh(){var e=window.event;return e&&e.type==="popstate"?e===Ic?!1:(Ic=e,!0):(Ic=null,!1)}var $f=typeof setTimeout=="function"?setTimeout:void 0,Hh=typeof clearTimeout=="function"?clearTimeout:void 0,If=typeof Promise=="function"?Promise:void 0,Gh=typeof queueMicrotask=="function"?queueMicrotask:typeof If<"u"?function(e){return If.resolve(null).then(e).catch(qh)}:$f;function qh(e){setTimeout(function(){throw e})}function xt(e){return e==="head"}function Pf(e,l){var t=l,a=0;do{var n=t.nextSibling;if(e.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"||t==="/&"){if(a===0){e.removeChild(n),Ca(l);return}a--}else if(t==="$"||t==="$?"||t==="$~"||t==="$!"||t==="&")a++;else if(t==="html")gn(e.ownerDocument.documentElement);else if(t==="head"){t=e.ownerDocument.head,gn(t);for(var i=t.firstChild;i;){var c=i.nextSibling,s=i.nodeName;i[Ra]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||t.removeChild(i),i=c}}else t==="body"&&gn(e.ownerDocument.body);t=n}while(t);Ca(l)}function ed(e,l){var t=e;e=0;do{var a=t.nextSibling;if(t.nodeType===1?l?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",t.getAttribute("style")===""&&t.removeAttribute("style")):t.nodeType===3&&(l?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),a&&a.nodeType===8)if(t=a.data,t==="/$"){if(e===0)break;e--}else t!=="$"&&t!=="$?"&&t!=="$~"&&t!=="$!"||e++;t=a}while(t)}function Pc(e){var l=e.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var t=l;switch(l=l.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Pc(t),nu(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function Yh(e,l,t,a){for(;e.nodeType===1;){var n=t;if(e.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ra])switch(l){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==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(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(l==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ml(e.nextSibling),e===null)break}return null}function Xh(e,l,t){if(l==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ml(e.nextSibling),e===null))return null;return e}function ld(e,l){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ml(e.nextSibling),e===null))return null;return e}function es(e){return e.data==="$?"||e.data==="$~"}function ls(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qh(e,l){var t=e.ownerDocument;if(e.data==="$~")e._reactRetry=l;else if(e.data!=="$?"||t.readyState!=="loading")l();else{var a=function(){l(),t.removeEventListener("DOMContentLoaded",a)};t.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ml(e){for(;e!=null;e=e.nextSibling){var l=e.nodeType;if(l===1||l===3)break;if(l===8){if(l=e.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return e}var ts=null;function td(e){e=e.nextSibling;for(var l=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"||t==="/&"){if(l===0)return Ml(e.nextSibling);l--}else t!=="$"&&t!=="$!"&&t!=="$?"&&t!=="$~"&&t!=="&"||l++}e=e.nextSibling}return null}function ad(e){e=e.previousSibling;for(var l=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"){if(l===0)return e;l--}else t!=="/$"&&t!=="/&"||l++}e=e.previousSibling}return null}function nd(e,l,t){switch(l=Ui(t),e){case"html":if(e=l.documentElement,!e)throw Error(m(452));return e;case"head":if(e=l.head,!e)throw Error(m(453));return e;case"body":if(e=l.body,!e)throw Error(m(454));return e;default:throw Error(m(451))}}function gn(e){for(var l=e.attributes;l.length;)e.removeAttributeNode(l[0]);nu(e)}var Cl=new Map,id=new Set;function Ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var et=O.d;O.d={f:Lh,r:wh,D:kh,C:Zh,L:Vh,m:Kh,X:Fh,S:Jh,M:Wh};function Lh(){var e=et.f(),l=Ni();return e||l}function wh(e){var l=Jt(e);l!==null&&l.tag===5&&l.type==="form"?xo(l):et.r(e)}var Ea=typeof document>"u"?null:document;function ud(e,l,t){var a=Ea;if(a&&typeof l=="string"&&l){var n=xl(l);n='link[rel="'+e+'"][href="'+n+'"]',typeof t=="string"&&(n+='[crossorigin="'+t+'"]'),id.has(n)||(id.add(n),e={rel:e,crossOrigin:t,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Fe(l,"link",e),Qe(l),a.head.appendChild(l)))}}function kh(e){et.D(e),ud("dns-prefetch",e,null)}function Zh(e,l){et.C(e,l),ud("preconnect",e,l)}function Vh(e,l,t){et.L(e,l,t);var a=Ea;if(a&&e&&l){var n='link[rel="preload"][as="'+xl(l)+'"]';l==="image"&&t&&t.imageSrcSet?(n+='[imagesrcset="'+xl(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(n+='[imagesizes="'+xl(t.imageSizes)+'"]')):n+='[href="'+xl(e)+'"]';var i=n;switch(l){case"style":i=za(e);break;case"script":i=Ma(e)}Cl.has(i)||(e=q({rel:"preload",href:l==="image"&&t&&t.imageSrcSet?void 0:e,as:l},t),Cl.set(i,e),a.querySelector(n)!==null||l==="style"&&a.querySelector(pn(i))||l==="script"&&a.querySelector(bn(i))||(l=a.createElement("link"),Fe(l,"link",e),Qe(l),a.head.appendChild(l)))}}function Kh(e,l){et.m(e,l);var t=Ea;if(t&&e){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+xl(a)+'"][href="'+xl(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ma(e)}if(!Cl.has(i)&&(e=q({rel:"modulepreload",href:e},l),Cl.set(i,e),t.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(bn(i)))return}a=t.createElement("link"),Fe(a,"link",e),Qe(a),t.head.appendChild(a)}}}function Jh(e,l,t){et.S(e,l,t);var a=Ea;if(a&&e){var n=Ft(a).hoistableStyles,i=za(e);l=l||"default";var c=n.get(i);if(!c){var s={loading:0,preload:null};if(c=a.querySelector(pn(i)))s.loading=5;else{e=q({rel:"stylesheet",href:e,"data-precedence":l},t),(t=Cl.get(i))&&as(e,t);var f=c=a.createElement("link");Qe(f),Fe(f,"link",e),f._p=new Promise(function(g,T){f.onload=g,f.onerror=T}),f.addEventListener("load",function(){s.loading|=1}),f.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Bi(c,l,a)}c={type:"stylesheet",instance:c,count:1,state:s},n.set(i,c)}}}function Fh(e,l){et.X(e,l);var t=Ea;if(t&&e){var a=Ft(t).hoistableScripts,n=Ma(e),i=a.get(n);i||(i=t.querySelector(bn(n)),i||(e=q({src:e,async:!0},l),(l=Cl.get(n))&&ns(e,l),i=t.createElement("script"),Qe(i),Fe(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Wh(e,l){et.M(e,l);var t=Ea;if(t&&e){var a=Ft(t).hoistableScripts,n=Ma(e),i=a.get(n);i||(i=t.querySelector(bn(n)),i||(e=q({src:e,async:!0,type:"module"},l),(l=Cl.get(n))&&ns(e,l),i=t.createElement("script"),Qe(i),Fe(i,"link",e),t.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function cd(e,l,t,a){var n=(n=D.current)?Ri(n):null;if(!n)throw Error(m(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(l=za(t.href),t=Ft(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=za(t.href);var i=Ft(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(pn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Cl.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},Cl.set(e,t),i||$h(n,e,t,c.state))),l&&a===null)throw Error(m(528,""));return c}if(l&&a!==null)throw Error(m(529,""));return null;case"script":return l=t.async,t=t.src,typeof t=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Ma(t),t=Ft(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,e))}}function za(e){return'href="'+xl(e)+'"'}function pn(e){return'link[rel="stylesheet"]['+e+"]"}function sd(e){return q({},e,{"data-precedence":e.precedence,precedence:null})}function $h(e,l,t,a){e.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=e.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Fe(l,"link",t),Qe(l),e.head.appendChild(l))}function Ma(e){return'[src="'+xl(e)+'"]'}function bn(e){return"script[async]"+e}function rd(e,l,t){if(l.count++,l.instance===null)switch(l.type){case"style":var a=e.querySelector('style[data-href~="'+xl(t.href)+'"]');if(a)return l.instance=a,Qe(a),a;var n=q({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),Fe(a,"style",n),Bi(a,t.precedence,e),l.instance=a;case"stylesheet":n=za(t.href);var i=e.querySelector(pn(n));if(i)return l.state.loading|=4,l.instance=i,Qe(i),i;a=sd(t),(n=Cl.get(n))&&as(a,n),i=(e.ownerDocument||e).createElement("link"),Qe(i);var c=i;return c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Fe(i,"link",a),l.state.loading|=4,Bi(i,t.precedence,e),l.instance=i;case"script":return i=Ma(t.src),(n=e.querySelector(bn(i)))?(l.instance=n,Qe(n),n):(a=t,(n=Cl.get(i))&&(a=q({},t),ns(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Qe(n),Fe(n,"link",a),e.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(m(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Bi(a,t.precedence,e));return l.instance}function Bi(e,l,t){for(var a=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var s=a[c];if(s.dataset.precedence===l)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(l=t.nodeType===9?t.head:t,l.insertBefore(e,l.firstChild))}function as(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.title==null&&(e.title=l.title)}function ns(e,l){e.crossOrigin==null&&(e.crossOrigin=l.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=l.referrerPolicy),e.integrity==null&&(e.integrity=l.integrity)}var Hi=null;function od(e,l,t){if(Hi===null){var a=new Map,n=Hi=new Map;n.set(t,a)}else n=Hi,a=n.get(t),a||(a=new Map,n.set(t,a));if(a.has(e))return a;for(a.set(e,null),t=t.getElementsByTagName(e),n=0;n<t.length;n++){var i=t[n];if(!(i[Ra]||i[Ze]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(l)||"";c=e+c;var s=a.get(c);s?s.push(i):a.set(c,[i])}}return a}function fd(e,l,t){e=e.ownerDocument||e,e.head.insertBefore(t,l==="title"?e.querySelector("head > title"):null)}function Ih(e,l,t){if(t===1||l.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return e=l.disabled,typeof l.precedence=="string"&&e==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function dd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ph(e,l,t,a){if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=za(a.href),i=l.querySelector(pn(n));if(i){l=i._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(e.count++,e=Gi.bind(e),l.then(e,e)),t.state.loading|=4,t.instance=i,Qe(i);return}i=l.ownerDocument||l,a=sd(a),(n=Cl.get(n))&&as(a,n),i=i.createElement("link"),Qe(i);var c=i;c._p=new Promise(function(s,f){c.onload=s,c.onerror=f}),Fe(i,"link",a),t.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(t,l),(l=t.state.preload)&&(t.state.loading&3)===0&&(e.count++,t=Gi.bind(e),l.addEventListener("load",t),l.addEventListener("error",t))}}var is=0;function ev(e,l){return e.stylesheets&&e.count===0&&Yi(e,e.stylesheets),0<e.count||0<e.imgCount?function(t){var a=setTimeout(function(){if(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+l);0<e.imgBytes&&is===0&&(is=62500*Rh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>is?50:800)+l);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Gi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qi=null;function Yi(e,l){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qi=new Map,l.forEach(lv,e),qi=null,Gi.call(e))}function lv(e,l){if(!(l.state.loading&4)){var t=qi.get(e);if(t)var a=t.get(null);else{t=new Map,qi.set(e,t);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(t.set(c.dataset.precedence,c),a=c)}a&&t.set(null,a)}n=l.instance,c=n.getAttribute("data-precedence"),i=t.get(c)||a,i===a&&t.set(null,n),t.set(c,n),this.count++,a=Gi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),l.state.loading|=4}}var Sn={$$typeof:be,Provider:null,Consumer:null,_currentValue:b,_currentValue2:b,_threadCount:0};function tv(e,l,t,a,n,i,c,s,f){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=eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.hiddenUpdates=eu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map}function md(e,l,t,a,n,i,c,s,f,g,T,z){return e=new tv(e,l,t,c,f,g,T,z,s),l=1,i===!0&&(l|=24),i=hl(3,null,null,l),e.current=i,i.stateNode=e,l=qu(),l.refCount++,e.pooledCache=l,l.refCount++,i.memoizedState={element:a,isDehydrated:t,cache:l},Lu(i),e}function hd(e){return e?(e=ia,e):ia}function vd(e,l,t,a,n,i){n=hd(n),a.context===null?a.context=n:a.pendingContext=n,a=ot(l),a.payload={element:t},i=i===void 0?null:i,i!==null&&(a.callback=i),t=ft(e,a,l),t!==null&&(sl(t,e,l),$a(t,e,l))}function yd(e,l){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<l?t:l}}function us(e,l){yd(e,l),(e=e.alternate)&&yd(e,l)}function gd(e){if(e.tag===13||e.tag===31){var l=Ut(e,67108864);l!==null&&sl(l,e,67108864),us(e,67108864)}}function pd(e){if(e.tag===13||e.tag===31){var l=bl();l=lu(l);var t=Ut(e,l);t!==null&&sl(t,e,l),us(e,l)}}var Xi=!0;function av(e,l,t,a){var n=j.T;j.T=null;var i=O.p;try{O.p=2,cs(e,l,t,a)}finally{O.p=i,j.T=n}}function nv(e,l,t,a){var n=j.T;j.T=null;var i=O.p;try{O.p=8,cs(e,l,t,a)}finally{O.p=i,j.T=n}}function cs(e,l,t,a){if(Xi){var n=ss(a);if(n===null)Kc(e,l,a,Qi,t),Sd(e,a);else if(uv(n,e,l,t,a))a.stopPropagation();else if(Sd(e,a),l&4&&-1<iv.indexOf(e)){for(;n!==null;){var i=Jt(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Mt(i.pendingLanes);if(c!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;c;){var f=1<<31-dl(c);s.entanglements[1]|=f,c&=~f}Hl(i),(oe&6)===0&&(Ti=ol()+500,hn(0))}}break;case 31:case 13:s=Ut(i,2),s!==null&&sl(s,i,2),Ni(),us(i,2)}if(i=ss(a),i===null&&Kc(e,l,a,Qi,t),i===n)break;n=i}n!==null&&a.stopPropagation()}else Kc(e,l,a,null,t)}}function ss(e){return e=ou(e),rs(e)}var Qi=null;function rs(e){if(Qi=null,e=Kt(e),e!==null){var l=X(e);if(l===null)e=null;else{var t=l.tag;if(t===13){if(e=B(l),e!==null)return e;e=null}else if(t===31){if(e=K(l),e!==null)return e;e=null}else if(t===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;e=null}else l!==e&&(e=null)}}return Qi=e,null}function bd(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(kd()){case Ns:return 2;case Es:return 8;case On:case Zd:return 32;case zs:return 268435456;default:return 32}default:return 32}}var os=!1,jt=null,Tt=null,At=null,xn=new Map,jn=new Map,Nt=[],iv="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 Sd(e,l){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":xn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":jn.delete(l.pointerId)}}function Tn(e,l,t,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:l,domEventName:t,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},l!==null&&(l=Jt(l),l!==null&&gd(l)),e):(e.eventSystemFlags|=a,l=e.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),e)}function uv(e,l,t,a,n){switch(l){case"focusin":return jt=Tn(jt,e,l,t,a,n),!0;case"dragenter":return Tt=Tn(Tt,e,l,t,a,n),!0;case"mouseover":return At=Tn(At,e,l,t,a,n),!0;case"pointerover":var i=n.pointerId;return xn.set(i,Tn(xn.get(i)||null,e,l,t,a,n)),!0;case"gotpointercapture":return i=n.pointerId,jn.set(i,Tn(jn.get(i)||null,e,l,t,a,n)),!0}return!1}function xd(e){var l=Kt(e.target);if(l!==null){var t=X(l);if(t!==null){if(l=t.tag,l===13){if(l=B(t),l!==null){e.blockedOn=l,Us(e.priority,function(){pd(t)});return}}else if(l===31){if(l=K(t),l!==null){e.blockedOn=l,Us(e.priority,function(){pd(t)});return}}else if(l===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Li(e){if(e.blockedOn!==null)return!1;for(var l=e.targetContainers;0<l.length;){var t=ss(e.nativeEvent);if(t===null){t=e.nativeEvent;var a=new t.constructor(t.type,t);ru=a,t.target.dispatchEvent(a),ru=null}else return l=Jt(t),l!==null&&gd(l),e.blockedOn=t,!1;l.shift()}return!0}function jd(e,l,t){Li(e)&&t.delete(l)}function cv(){os=!1,jt!==null&&Li(jt)&&(jt=null),Tt!==null&&Li(Tt)&&(Tt=null),At!==null&&Li(At)&&(At=null),xn.forEach(jd),jn.forEach(jd)}function wi(e,l){e.blockedOn===l&&(e.blockedOn=null,os||(os=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,cv)))}var ki=null;function Td(e){ki!==e&&(ki=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){ki===e&&(ki=null);for(var l=0;l<e.length;l+=3){var t=e[l],a=e[l+1],n=e[l+2];if(typeof a!="function"){if(rs(a||t)===null)continue;break}var i=Jt(t);i!==null&&(e.splice(l,3),l-=3,sc(i,{pending:!0,data:n,method:t.method,action:a},a,n))}}))}function Ca(e){function l(f){return wi(f,e)}jt!==null&&wi(jt,e),Tt!==null&&wi(Tt,e),At!==null&&wi(At,e),xn.forEach(l),jn.forEach(l);for(var t=0;t<Nt.length;t++){var a=Nt[t];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Nt.length&&(t=Nt[0],t.blockedOn===null);)xd(t),t.blockedOn===null&&Nt.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(a=0;a<t.length;a+=3){var n=t[a],i=t[a+1],c=n[tl]||null;if(typeof i=="function")c||Td(t);else if(c){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[tl]||null)s=c.formAction;else if(rs(n)!==null)continue}else s=c.action;typeof s=="function"?t[a+1]=s:(t.splice(a,3),a-=3),Td(t)}}}function Ad(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(t,20)}function t(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(t,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function fs(e){this._internalRoot=e}Zi.prototype.render=fs.prototype.render=function(e){var l=this._internalRoot;if(l===null)throw Error(m(409));var t=l.current,a=bl();vd(t,a,e,l,null,null)},Zi.prototype.unmount=fs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var l=e.containerInfo;vd(e.current,2,null,e,null,null),Ni(),l[Vt]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var l=Ds();e={blockedOn:null,target:e,priority:l};for(var t=0;t<Nt.length&&l!==0&&l<Nt[t].priority;t++);Nt.splice(t,0,e),t===0&&xd(e)}};var Nd=M.version;if(Nd!=="19.2.4")throw Error(m(527,Nd,"19.2.4"));O.findDOMNode=function(e){var l=e._reactInternals;if(l===void 0)throw typeof e.render=="function"?Error(m(188)):(e=Object.keys(e).join(","),Error(m(268,e)));return e=A(l),e=e!==null?J(e):null,e=e===null?null:e.stateNode,e};var sv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{_a=Vi.inject(sv),fl=Vi}catch{}}return Nn.createRoot=function(e,l){if(!R(e))throw Error(m(299));var t=!1,a="",n=_o,i=Do,c=Uo;return l!=null&&(l.unstable_strictMode===!0&&(t=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError)),l=md(e,1,!1,null,null,t,a,null,n,i,c,Ad),e[Vt]=l.current,Vc(e),new fs(l)},Nn.hydrateRoot=function(e,l,t){if(!R(e))throw Error(m(299));var a=!1,n="",i=_o,c=Do,s=Uo,f=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.formState!==void 0&&(f=t.formState)),l=md(e,1,!0,l,t??null,a,n,f,i,c,s,Ad),l.context=hd(null),t=l.current,a=bl(),a=lu(a),n=ot(a),n.callback=null,ft(t,n,a),t=a,l.current.lanes=t,Ua(l,t),Hl(l),e[Vt]=l.current,Vc(e),new Zi(l)},Nn.version="19.2.4",Nn}var Bd;function bv(){if(Bd)return hs.exports;Bd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(M){console.error(M)}}return o(),hs.exports=pv(),hs.exports}var Sv=bv();const xv=Xd(Sv),jv=[{accentClass:"ghost-red",color:"#FF1744",title:"Thread Overload",problem:"Tired of replying to the same questions across dozens of Slack threads, emails, and docs? Context is scattered everywhere and you're the bottleneck.",solutionTitle:"Auto-reply in Slack with the right project context",solutionDetail:"Replies land in-thread with the docs, notes, and decisions Pac-Man has already saved for that project."},{accentClass:"ghost-pink",color:"#FF80AB",animationDelay:"0.5s",title:"Knowledge Loss",problem:"When you're on PTO or leave the company, your team struggles with the institutional knowledge you've built. Tedious handover docs go stale on day one.",solutionTitle:"Keep institutional knowledge available when people are out",solutionDetail:"Pac-Man keeps context structured, current, and ready for the next teammate instead of trapped in someone else’s head."},{accentClass:"ghost-cyan",color:"#00E5FF",animationDelay:"1s",title:"Context Confusion",problem:"Is Claude or Codex mixing project-level context against each other? Giving answers about Project A when you're asking about Project B?",solutionTitle:"Isolate context by project so answers stay grounded",solutionDetail:"Each workspace gets its own context boundary, so project memory does not leak across teams or threads."},{accentClass:"ghost-orange",color:"#FFAB40",animationDelay:"1.5s",title:"Decision Archaeology",problem:"Can't remember why a decision was made? The rationale is buried across Slack threads, PR comments, commit messages, and meeting notes that nobody can find.",solutionTitle:"Surface the why behind past decisions on demand",solutionDetail:"Pac-Man connects discussions, commits, and notes so the reasoning behind old calls is searchable when it matters."}];function Tv({color:o,style:M}){return u.jsx("div",{className:"ghost-icon",style:M,children:u.jsxs("svg",{viewBox:"0 0 64 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"ghost-svg",children:[u.jsx("path",{d:"M32 4C17.088 4 5 16.088 5 31v29l6-8 7 8 7-8 7 8 7-8 7 8 7-8 6 8V31C59 16.088 46.912 4 32 4z",fill:o,opacity:"0.9"}),u.jsx("ellipse",{cx:"23",cy:"28",rx:"6",ry:"7",fill:"white"}),u.jsx("ellipse",{cx:"41",cy:"28",rx:"6",ry:"7",fill:"white"}),u.jsx("ellipse",{cx:"25",cy:"29",rx:"3",ry:"3.5",fill:"#111"}),u.jsx("ellipse",{cx:"43",cy:"29",rx:"3",ry:"3.5",fill:"#111"})]})})}function Av(){return u.jsx("span",{style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:"var(--pac-yellow)",boxShadow:"0 0 6px var(--pac-yellow-glow)",verticalAlign:"middle",flexShrink:0}})}function Nv({onStart:o}){return u.jsxs("div",{className:"landing",children:[u.jsxs("div",{className:"landing-hero",children:[u.jsxs("div",{className:"pac-scene",children:[u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("span",{className:"pac-trail-dot eaten"}),u.jsx("div",{className:"pacman-char"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot power"})]}),u.jsx("h1",{className:"landing-brand",children:"PACMAN"}),u.jsx("p",{className:"landing-subtitle",children:"Personal Assistant Context Manager"}),u.jsx("p",{className:"landing-tagline",children:"Feed your AI the context it craves. Chomp through scattered knowledge, swallow integrations whole, and power up your workflow."})]}),u.jsxs("div",{className:"ghost-section",children:[u.jsx("h2",{className:"section-heading",children:"These ghosts haunting your workflow?"}),u.jsx("div",{className:"ghost-grid",children:jv.map(M=>u.jsxs("div",{className:`ghost-card ${M.accentClass}`,children:[u.jsxs("div",{className:"ghost-card-top",children:[u.jsx(Tv,{color:M.color,style:{animationDelay:M.animationDelay}}),u.jsxs("div",{className:"ghost-card-copy",children:[u.jsx("h3",{children:M.title}),u.jsx("p",{className:"ghost-problem",children:M.problem})]})]}),u.jsxs("div",{className:"ghost-solution",children:[u.jsxs("div",{className:"ghost-solution-kicker",children:[u.jsx(Av,{}),u.jsx("span",{children:"Pac-Man fix"})]}),u.jsx("p",{className:"ghost-solution-title",children:M.solutionTitle}),u.jsx("p",{className:"ghost-solution-detail",children:M.solutionDetail})]})]},M.title))})]}),u.jsxs("div",{className:"comparison-section",children:[u.jsx("h2",{className:"section-heading",children:"Pac-Man eats the confusion"}),u.jsxs("div",{className:"comparison-grid",children:[u.jsxs("div",{className:"comparison-card before",children:[u.jsx("span",{className:"comparison-label",children:"BEFORE"}),u.jsxs("div",{className:"mock-chat",children:[u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar user",children:"N"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsx("div",{className:"mock-msg-name",style:{color:"var(--text-primary)"},children:"Nick"}),u.jsxs("div",{className:"mock-msg-text",children:[u.jsx("span",{style:{color:"var(--ghost-cyan)"},children:"@Personal Assistant"})," ","who is our biggest competitor based on our study"]})]})]}),u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar bot",children:"PA"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsxs("div",{className:"mock-msg-name",style:{color:"var(--text-secondary)"},children:["Personal Assistant ",u.jsx("span",{className:"badge",children:"APP"})]}),u.jsxs("div",{className:"mock-msg-text dim",children:["I can't answer confidently from the current context.",u.jsx("br",{}),u.jsx("br",{}),"Missing context: Could not determine which project the Slack thread is asking about.",u.jsx("br",{}),u.jsx("br",{}),"Best escalation path: Mukul."]})]})]})]})]}),u.jsx("div",{className:"comparison-arrow",children:u.jsxs("div",{className:"comparison-arrow-inner",children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--pac-yellow)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polyline",{points:"9 18 15 12 9 6"})})]})}),u.jsxs("div",{className:"comparison-card after",children:[u.jsx("span",{className:"comparison-label",children:"AFTER"}),u.jsxs("div",{className:"mock-chat",children:[u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar user",children:"N"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsx("div",{className:"mock-msg-name",style:{color:"var(--text-primary)"},children:"Nick"}),u.jsxs("div",{className:"mock-msg-text",children:[u.jsx("span",{style:{color:"var(--ghost-cyan)"},children:"@Personal Assistant"})," ","who is our biggest competitor based on our study"]})]})]}),u.jsxs("div",{className:"mock-msg",children:[u.jsx("div",{className:"mock-avatar bot",children:"PA"}),u.jsxs("div",{className:"mock-msg-body",children:[u.jsxs("div",{className:"mock-msg-name",style:{color:"var(--text-secondary)"},children:["Personal Assistant ",u.jsx("span",{className:"badge",children:"APP"})]}),u.jsxs("div",{className:"mock-msg-text bright",children:["Based on our competitive landscape research, ",u.jsx("strong",{children:"CrowdRiff"})," is identified as our biggest competitor. They have raised $11.1M and are the closest pure-play for travel UGC. Other notable players include Emplifi, Flowbox, Social Native, and Taggbox..."]})]})]})]})]})]})]}),u.jsxs("div",{className:"landing-cta",children:[u.jsxs("button",{className:"btn-start",onClick:o,children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),"Start Setup"]}),u.jsx("p",{style:{marginTop:"1rem",fontSize:"0.75rem",color:"var(--text-dim)",fontFamily:"var(--font-mono)"},children:"5 steps · ~3 minutes · fully reversible"})]})]})}const Ev="https://optimus.mem2ai.com/v1/events/counters";function Ki(o,M){o&&fetch(Ev,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email_id:o,event_name:M})}).then(Y=>Y.json()).then(Y=>console.log(`[track] ${M}:`,Y)).catch(Y=>console.warn(`[track] ${M} failed:`,Y))}const zv=[{value:"software-engineer",label:"Software Engineer",desc:"Code reviews, architecture, debugging",color:"#6366f1"},{value:"product-manager",label:"Product Manager",desc:"Roadmaps, specs, stakeholder alignment",color:"#a855f7"},{value:"engineering-manager",label:"Engineering Manager",desc:"Team health, delivery, hiring",color:"#14b8a6"},{value:"devops",label:"DevOps Engineer",desc:"Infrastructure, CI/CD, monitoring",color:"#f97316"}],Mv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function Cv({state:o,update:M,onNext:Y}){const m=o.email.trim(),R=o.name.trim(),X=Mv.test(m);return te.useEffect(()=>{fetch(`/api/responsibilities/${o.profileType}`).then(B=>B.json()).then(B=>{B.responsibilities&&M({responsibilities:B.responsibilities})}).catch(()=>{})},[o.profileType]),u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Meet your assistant"}),u.jsx("h2",{children:"A few details so Pac-Man knows what to chomp"}),u.jsxs("div",{className:"form-card",children:[u.jsxs("div",{className:"form-row",style:{marginBottom:"1rem"},children:[u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Your name"}),u.jsx("input",{type:"text",value:o.name,onChange:B=>M({name:B.target.value}),placeholder:"Jane Smith"})]}),u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Email"}),u.jsx("input",{type:"email",value:o.email,onChange:B=>M({email:B.target.value}),placeholder:"jane@company.com",required:!0,"aria-invalid":!!m&&!X}),m&&!X&&u.jsx("span",{className:"field-error",children:"Enter a valid work email to continue."})]})]}),u.jsxs("div",{className:"form-field",children:[u.jsx("label",{className:"field-label",children:"Assistant name"}),u.jsx("input",{type:"text",value:o.assistantName,onChange:B=>M({assistantName:B.target.value}),placeholder:"Atlas"})]})]}),u.jsxs("div",{className:"form-section",children:[u.jsx("label",{className:"field-label",children:"Your role"}),u.jsx("div",{className:"profile-grid",children:zv.map(B=>u.jsxs("div",{className:`profile-card ${o.profileType===B.value?"selected":""}`,onClick:()=>M({profileType:B.value}),children:[u.jsx("div",{className:"profile-indicator",style:{background:B.color}}),u.jsxs("div",{className:"profile-info",children:[u.jsx("span",{className:"profile-name",children:B.label}),u.jsx("span",{className:"profile-desc",children:B.desc})]})]},B.value))})]}),u.jsx("div",{className:"btn-group",children:u.jsx("button",{className:"btn-primary",onClick:()=>{Ki(o.email,"onboarding_started"),Y()},disabled:!R||!X,children:"Continue"})})]})}const Hd={"software-engineer":{ids:["slack","github"],message:"Slack and GitHub are recommended for Software Engineers — stay on top of PRs, code reviews, and team discussions."},"product-manager":{ids:["gdrive","slack"],message:"Google Drive and Slack are recommended for Product Managers — sync roadmaps, specs, and stakeholder threads."},"engineering-manager":{ids:["slack","github"],message:"Slack and GitHub are recommended for Engineering Managers — track team activity, delivery, and discussions."},devops:{ids:["github","gitlab"],message:"GitHub and GitLab are recommended for DevOps Engineers — monitor pipelines, infra changes, and incidents."}},Oe=o=>u.jsx("code",{style:{display:"inline-block",background:"var(--bg-inset)",color:"var(--pac-yellow)",borderRadius:4,padding:"1px 7px",fontSize:"0.76rem",fontFamily:"var(--font-mono)",margin:"0 3px 3px 0",border:"1px solid rgba(255, 215, 0, 0.12)"},children:o},o),Re=o=>u.jsx("strong",{style:{color:"var(--text-primary)"},children:o}),ze=o=>u.jsx("li",{style:{marginBottom:"0.5rem"},children:o}),En=o=>u.jsx("ol",{style:{paddingLeft:"1.1rem",margin:0,lineHeight:1.7,color:"var(--text-secondary)",fontSize:"0.83rem"},children:o}),Ov=[{id:"slack",name:"Slack",desc:"Connect a shared Slack channel for instant project-aware replies",color:"#4A154B",initials:"Sl",fields:[{key:"botToken",label:"Bot Token",placeholder:"xoxb-...",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[ze(u.jsxs(u.Fragment,{children:["Go to ",Re("api.slack.com/apps")," → Create New App → From scratch"]})),ze(u.jsxs(u.Fragment,{children:["Under ",Re("Socket Mode")," enable Socket Mode, create an app token with scope ",Oe("connections:write"),", and copy the ",Re("App-Level Token")," (starts with ",Oe("xapp-"),")"]})),ze(u.jsxs(u.Fragment,{children:["Under ",Re("OAuth & Permissions")," add bot scopes: ",Oe("channels:history")," ",Oe("channels:read")," ",Oe("groups:history")," ",Oe("groups:read")," ",Oe("im:history")," ",Oe("app_mentions:read")," ",Oe("chat:write")]})),ze(u.jsxs(u.Fragment,{children:["Under ",Re("Event Subscriptions")," enable bot events: ",Oe("message.channels")," and/or ",Oe("message.groups")," plus ",Oe("app_mention")]})),ze(u.jsxs(u.Fragment,{children:["Click ",Re("Install to Workspace")," and copy the ",Re("Bot User OAuth Token")," (starts with ",Oe("xoxb-"),")"]})),ze(u.jsxs(u.Fragment,{children:["Invite the bot to any channel: ",Oe("/invite @YourAppName")]}))]}))},{id:"gmail",name:"Gmail",desc:"Pull email thread summaries into your context",color:"#EA4335",initials:"Gm",fields:[{key:"clientId",label:"Client ID",placeholder:"your-client-id.apps.googleusercontent.com"},{key:"clientSecret",label:"Client Secret",placeholder:"your-client-secret",type:"password"},{key:"refreshToken",label:"Refresh Token",placeholder:"your-refresh-token",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[ze(u.jsx(u.Fragment,{children:"Use the same Google Cloud project from your Storage setup, or create a new one"})),ze(u.jsxs(u.Fragment,{children:["Enable the ",Re("Gmail API")," in ",Re("APIs & Services → Library")]})),ze(u.jsxs(u.Fragment,{children:["Go to ",Re("developers.google.com/oauthplayground")," → settings gear → check ",Re("Use your own OAuth credentials")," → enter Client ID & Secret"]})),ze(u.jsxs(u.Fragment,{children:["In Step 1 select ",Oe("https://www.googleapis.com/auth/gmail.readonly")," → Authorise APIs"]})),ze(u.jsxs(u.Fragment,{children:["In Step 2 click ",Re("Exchange authorisation code for tokens")," → copy the ",Re("Refresh token")]}))]}))},{id:"github",name:"GitHub",desc:"Track your commits, PRs, issues, and all comments",color:"#24292F",initials:"GH",fields:[{key:"token",label:"Personal Access Token",placeholder:"ghp_...",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[ze(u.jsxs(u.Fragment,{children:["Go to ",Re("github.com → Settings → Developer settings → Personal access tokens → Tokens (classic)")]})),ze(u.jsxs(u.Fragment,{children:["Click ",Re("Generate new token (classic)")]})),ze(u.jsxs(u.Fragment,{children:["Select scopes — ",Oe("repo")," ",Oe("read:user")," ",Oe("user:email")," ",Oe("notifications")]})),ze(u.jsxs(u.Fragment,{children:["Click ",Re("Generate token")," and copy it"]}))]}))},{id:"gitlab",name:"GitLab",desc:"Sync MRs, issues, and activity events",color:"#FC6D26",initials:"GL",fields:[{key:"token",label:"Personal Access Token",placeholder:"glpat-...",type:"password"},{key:"baseUrl",label:"Base URL",placeholder:"https://gitlab.com/api/v4",optional:!0}],steps:En(u.jsxs(u.Fragment,{children:[ze(u.jsxs(u.Fragment,{children:["Go to ",Re("gitlab.com → User Settings → Access Tokens")]})),ze(u.jsxs(u.Fragment,{children:["Create a token with scopes: ",Oe("read_api")," ",Oe("read_repository")]})),ze(u.jsx(u.Fragment,{children:"Copy the token (shown only once)"})),ze(u.jsx(u.Fragment,{children:"If self-hosted, enter your API base URL"}))]}))},{id:"gdrive",name:"Google Drive",desc:"Extract content from documents in your Drive",color:"#4285F4",initials:"GD",fields:[{key:"clientId",label:"Client ID",placeholder:"your-client-id.apps.googleusercontent.com"},{key:"clientSecret",label:"Client Secret",placeholder:"your-client-secret",type:"password"},{key:"refreshToken",label:"Refresh Token",placeholder:"your-refresh-token",type:"password"}],steps:En(u.jsxs(u.Fragment,{children:[ze(u.jsx(u.Fragment,{children:"Reuse the Client ID and Secret from the Storage step if you already set up Google Drive storage"})),ze(u.jsxs(u.Fragment,{children:["Go to ",Re("developers.google.com/oauthplayground")," → settings → ",Re("Use your own OAuth credentials")]})),ze(u.jsxs(u.Fragment,{children:["In Step 1 select ",Oe("https://www.googleapis.com/auth/drive.readonly")," → Authorise"]})),ze(u.jsxs(u.Fragment,{children:["In Step 2 click ",Re("Exchange authorisation code for tokens")," → copy the ",Re("Refresh token")]}))]}))},{id:"gchat",name:"Google Chat",desc:"Sync space messages into your context",color:"#00AC47",initials:"GC",fields:[],comingSoon:!0,steps:null}];function Gd(o){const M=o.trim().replace(/[\\/]+$/,"");if(!M)return"";const m=(M.split(/[\\/]/).filter(Boolean).pop()??"").replace(/\.[^.]+$/,"").replace(/[-_]+/g," ").replace(/\s+/g," ").trim();return m?m.replace(/\b\w/g,R=>R.toUpperCase()):""}function _v({state:o,update:M,onNext:Y,onPrev:m}){const[R,X]=te.useState(null),[B,K]=te.useState({}),[H,A]=te.useState({}),[J,q]=te.useState(null),[L,ae]=te.useState(""),ce=Hd[o.profileType]||Hd["software-engineer"],fe=b=>ce.ids.includes(b),Te=b=>o.integrations.includes(b),de=b=>o.integrationCredentials[b]??{},we=b=>{K(U=>({...U,[b]:"idle"})),A(U=>({...U,[b]:""})),X(b)},be=b=>{const U={integrations:o.integrations.filter(p=>p!==b),integrationCredentials:{...o.integrationCredentials,[b]:{}}};b==="slack"&&Object.assign(U,{slackAppToken:"",slackChannelId:"",slackChannelName:"",slackReviewerUserId:"",slackReviewerDisplayName:o.name,slackReviewMode:"auto_send",slackGenerationEnabled:!0,slackDefaultProvider:"openai",slackDefaultModel:o.openAIModel||"gpt-4.1-mini"}),M(U),K(p=>({...p,[b]:"idle"})),A(p=>({...p,[b]:""})),X(null)},Se=(b,U,p)=>{K(r=>({...r,[b]:"idle"})),M({integrationCredentials:{...o.integrationCredentials,[b]:{...de(b),[U]:p}}})},xe=(b,U)=>{U!=null&&U.invalidateValidation&&K(p=>({...p,slack:"idle"})),M(b)},$=b=>{var p;if(b.id==="slack")return!!((p=de("slack").botToken)!=null&&p.trim()&&o.slackAppToken.trim());const U=de(b.id);return b.fields.filter(r=>!r.optional).every(r=>(U[r.key]??"").trim()!=="")},_=b=>b==="slack"?"Connecting to Slack API, verifying socket mode & provider keys":b==="github"?"Authenticating with GitHub and checking token scopes":b==="gitlab"?"Authenticating with GitLab and verifying access":b==="gmail"?"Verifying Gmail API credentials and refresh token":b==="gdrive"?"Checking Google Drive API access":"Verifying credentials",k=async b=>{K(U=>({...U,[b.id]:"validating"})),A(U=>({...U,[b.id]:_(b.id)}));try{if(b.id==="slack"){const h=await(await fetch("/api/validate-slack-runtime",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({botToken:de("slack").botToken,appToken:o.slackAppToken,generationEnabled:o.slackGenerationEnabled,providers:{openai:{apiKey:o.openAIApiKey,model:o.openAIModel},anthropic:{apiKey:o.anthropicApiKey,model:o.anthropicModel}}})})).json();if(!h.valid){K(N=>({...N,slack:"invalid"})),A(N=>({...N,slack:h.error??"Slack validation failed"}));return}xe({slackReviewerDisplayName:o.name}),K(N=>({...N,slack:"valid"})),A(N=>({...N,slack:h.info??"Slack connected"}));return}const p=await(await fetch("/api/validate-integration",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:b.id,credentials:de(b.id)})})).json();p.valid?(K(r=>({...r,[b.id]:"valid"})),A(r=>({...r,[b.id]:p.info??""}))):(K(r=>({...r,[b.id]:"invalid"})),A(r=>({...r,[b.id]:p.error??"Validation failed"})))}catch(U){K(p=>({...p,[b.id]:"invalid"})),A(p=>({...p,[b.id]:String(U)}))}},me=b=>{const U=B[b.id]??"idle";if(b.id!=="slack")return U==="valid";const p=!o.slackGenerationEnabled||(o.slackDefaultProvider==="openai"?!!o.openAIApiKey.trim()&&!!o.openAIModel.trim():!!o.anthropicApiKey.trim()&&!!o.anthropicModel.trim());return U==="valid"&&p},ke=()=>(B.slack??"idle")!=="valid"?"Validate Slack first":o.slackGenerationEnabled&&o.slackDefaultProvider==="openai"&&!o.openAIApiKey.trim()?"Add an OpenAI API key or disable draft generation":o.slackGenerationEnabled&&o.slackDefaultProvider==="anthropic"&&!o.anthropicApiKey.trim()?"Add a Claude API key or disable draft generation":"",We=b=>{Te(b)||(M({integrations:[...o.integrations,b]}),Ki(o.email,`integration_${b}_connected`)),X(null)},Xe=()=>{M({localFolders:[...o.localFolders,{path:"",project:""}]})},Ie=(b,U)=>{const p=[...o.localFolders];p[b]={...p[b],...U},M({localFolders:p})},rl=b=>{M({localFolders:o.localFolders.filter((U,p)=>p!==b)})},Pe=async b=>{var p,r;q(b),ae("");const U=performance.now();try{const h=await fetch("/api/pick-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultPath:((p=o.localFolders[b])==null?void 0:p.path)||o.localPath,purpose:"local-source"})});if(!h.ok)throw new Error(`Server returned ${h.status}`);const N=await h.json();if(N.error)throw new Error(N.error);if(console.info(`[onboarding] local source picker resolved in ${Math.round(performance.now()-U)}ms`),!N.cancelled&&N.path){const C=((r=o.localFolders[b])==null?void 0:r.project.trim())??"";Ie(b,{path:N.path,...C?{}:{project:Gd(N.path)}})}}catch(h){const N=h instanceof Error?h.message:String(h);ae(N||"Could not open folder picker. Make sure the backend is running (pacman init)."),setTimeout(()=>ae(""),5e3)}finally{q(null)}},j=[...new Set(o.localFolders.map(b=>b.project).filter(Boolean))],O=o.integrations.length;return u.jsxs("div",{className:"step-content",children:[u.jsxs("div",{className:"integration-section-header",children:[u.jsxs("div",{children:[u.jsx("h1",{style:{marginBottom:"0.25rem"},children:"Integrations"}),u.jsx("h2",{style:{margin:0},children:"Feed Pac-Man your tools and documents"})]}),O>0&&u.jsxs("span",{className:"integration-count",children:[O," connected"]})]}),u.jsxs("div",{className:"recommendation-banner",children:[u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("span",{children:ce.message})]}),u.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.625rem",marginBottom:"0.5rem"},children:Ov.map(b=>{const U=Te(b.id),p=R===b.id,r=B[b.id]??"idle",h=H[b.id]??"",N=$(b)&&r!=="validating",C=me(b),V=fe(b.id);return u.jsxs("div",{style:{borderRadius:"var(--radius)",border:`1px solid ${U?"rgba(0, 255, 136, 0.15)":p?"var(--border-hover)":"var(--border)"}`,background:U?"linear-gradient(to right, rgba(0, 255, 136, 0.03), var(--bg-surface))":p?"var(--bg-surface)":"var(--bg-input)",overflow:"hidden",transition:"border-color 0.2s"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.875rem 1.25rem"},children:[u.jsx("div",{style:{width:40,height:40,borderRadius:"var(--radius-sm)",background:b.color,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"0.75rem",fontFamily:"var(--font-mono)",color:"#fff",flexShrink:0,opacity:b.comingSoon?.35:1},children:b.initials}),u.jsxs("div",{style:{flex:1},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",flexWrap:"wrap"},children:[u.jsx("span",{style:{color:"var(--text-primary)",fontWeight:600,fontSize:"0.9rem"},children:b.name}),U&&u.jsx("span",{style:{fontSize:"0.7rem",background:"var(--success-subtle)",color:"var(--success)",padding:"1px 8px",borderRadius:99,fontWeight:600},children:"Connected"}),V&&!U&&u.jsx("span",{className:"recommended-badge",children:"RECOMMENDED"}),b.comingSoon&&u.jsx("span",{style:{fontSize:"0.7rem",background:"var(--bg-elevated)",color:"var(--text-dim)",padding:"1px 8px",borderRadius:99},children:"Coming soon"})]}),u.jsx("div",{style:{color:"var(--text-dim)",fontSize:"0.78rem",marginTop:"2px"},children:b.desc})]}),!b.comingSoon&&u.jsx("div",{style:{display:"flex",gap:"0.5rem",flexShrink:0},children:U?u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>we(b.id),style:qd,children:"Edit"}),u.jsx("button",{onClick:()=>be(b.id),style:{...qd,color:"var(--error)",borderColor:"rgba(255, 68, 102, 0.2)"},children:"Disconnect"})]}):u.jsx("button",{onClick:()=>we(b.id),style:{...Dv,background:p?"var(--pac-yellow-dim)":"var(--bg-elevated)",borderColor:p?"var(--pac-yellow)":"var(--border)",color:p?"var(--pac-yellow)":"var(--text-secondary)"},children:p?"Setting up...":"+ Connect"})})]}),p&&u.jsxs("div",{style:{borderTop:"1px solid var(--border)",padding:"1.25rem"},children:[u.jsxs("div",{style:{background:"var(--bg-inset)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1.25rem"},children:[u.jsx("p",{style:{color:"var(--text-muted)",fontSize:"0.7rem",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:"0.625rem"},children:"Setup steps"}),b.steps]}),u.jsx("div",{style:{display:"grid",gridTemplateColumns:b.fields.length>1?"1fr 1fr":"1fr",gap:"0.75rem",marginBottom:b.id==="slack"?"0.75rem":"1rem"},children:b.fields.map(D=>u.jsxs("div",{children:[u.jsxs("label",{style:{display:"block",fontSize:"0.78rem",color:"var(--text-muted)",marginBottom:"0.3rem",fontWeight:500},children:[D.label,D.optional&&u.jsx("span",{style:{color:"var(--text-dim)"},children:" — optional"})]}),u.jsx("input",{type:D.type??"text",value:de(b.id)[D.key]??"",onChange:I=>Se(b.id,D.key,I.target.value),placeholder:D.placeholder,style:{marginBottom:0,fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",borderColor:"var(--border)"}})]},D.key))}),b.id==="slack"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:{marginBottom:"0.75rem"},children:[u.jsx("label",{style:lt,children:"Socket Mode App Token"}),u.jsx("input",{type:"password",value:o.slackAppToken,onChange:D=>xe({slackAppToken:D.target.value},{invalidateValidation:!0}),placeholder:"xapp-...",style:zn})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Monitored Channels"}),u.jsx("div",{style:ps,children:"Any channel where the bot is added"})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Escalation Owner"}),u.jsx("div",{style:ps,children:o.name||"Configured user"})]})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Reply Mode"}),u.jsx("div",{style:ps,children:"Auto reply"})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Default Provider"}),u.jsxs("select",{value:o.slackDefaultProvider,onChange:D=>{const I=D.target.value;xe({slackDefaultProvider:I,slackDefaultModel:I==="openai"?o.openAIModel:o.anthropicModel})},style:Uv,children:[u.jsx("option",{value:"openai",children:"OpenAI"}),u.jsx("option",{value:"anthropic",children:"Claude / Anthropic"})]})]})]}),u.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.55rem",marginBottom:"0.9rem",fontSize:"0.82rem",color:"var(--text-secondary)"},children:[u.jsx("input",{type:"checkbox",checked:o.slackGenerationEnabled,onChange:D=>xe({slackGenerationEnabled:D.target.checked},{invalidateValidation:!0})}),"Enable real-time draft generation"]}),u.jsxs("div",{style:{background:"var(--bg-inset)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"0.9rem",marginBottom:"0.9rem"},children:[u.jsx("div",{style:{color:"var(--text-primary)",fontSize:"0.82rem",fontWeight:600,marginBottom:"0.6rem"},children:"Model providers"}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem",marginBottom:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"OpenAI API Key"}),u.jsx("input",{type:"password",value:o.openAIApiKey,onChange:D=>xe({openAIApiKey:D.target.value},{invalidateValidation:!0}),placeholder:"sk-...",style:zn})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"OpenAI Model"}),u.jsx("input",{value:o.openAIModel,onChange:D=>xe({openAIModel:D.target.value,...o.slackDefaultProvider==="openai"?{slackDefaultModel:D.target.value}:{}},{invalidateValidation:!0}),placeholder:"gpt-4.1-mini",style:zn})]})]}),u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.75rem"},children:[u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Claude API Key"}),u.jsx("input",{type:"password",value:o.anthropicApiKey,onChange:D=>xe({anthropicApiKey:D.target.value},{invalidateValidation:!0}),placeholder:"sk-ant-...",style:zn})]}),u.jsxs("div",{children:[u.jsx("label",{style:lt,children:"Claude Model"}),u.jsx("input",{value:o.anthropicModel,onChange:D=>xe({anthropicModel:D.target.value,...o.slackDefaultProvider==="anthropic"?{slackDefaultModel:D.target.value}:{}},{invalidateValidation:!0}),placeholder:"claude-3-7-sonnet-latest",style:zn})]})]})]})]}),u.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"1rem"},children:[u.jsxs("div",{style:{fontSize:"0.82rem",flex:1},children:[r==="idle"&&u.jsx("span",{style:{color:"var(--text-dim)"},children:"Enter credentials and validate to connect"}),r==="validating"&&u.jsxs("span",{style:{color:"var(--pac-yellow)",display:"flex",alignItems:"center",gap:"0.5rem"},children:[u.jsxs("span",{className:"validation-dots",children:[u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}}),u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}}),u.jsx("span",{className:"pac-trail-dot",style:{width:5,height:5}})]}),h||"Validating credentials..."]}),r==="valid"&&u.jsxs("span",{style:{color:"var(--success)"},children:[h,b.id==="slack"&&ke()?` · ${ke()}`:""]}),r==="invalid"&&u.jsx("span",{style:{color:"var(--error)"},children:h})]}),u.jsxs("div",{style:{display:"flex",gap:"0.5rem",flexShrink:0},children:[u.jsx("button",{onClick:()=>k(b),disabled:!N,style:{...Yd,background:N?"var(--pac-yellow-dim)":"var(--bg-inset)",color:N?"var(--pac-yellow)":"var(--text-dim)",borderColor:N?"rgba(255, 215, 0, 0.25)":"var(--border)",cursor:N?"pointer":"not-allowed"},children:r==="validating"?"Validating...":"Validate"}),u.jsx("button",{onClick:()=>We(b.id),disabled:!C,style:{...Yd,background:C?"var(--success-dim)":"var(--bg-inset)",color:C?"var(--success)":"var(--text-dim)",borderColor:C?"rgba(0, 255, 136, 0.25)":"var(--border)",cursor:C?"pointer":"not-allowed",fontWeight:700},children:"Save"})]})]})]})]},b.id)})}),u.jsxs("div",{className:"folder-section",children:[u.jsxs("div",{className:"folder-section-title",children:[u.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--pac-yellow)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("path",{d:"M22 19a2 2 0 01-2 2H4a2 2 0 01-2-2V5a2 2 0 012-2h5l2 3h9a2 2 0 012 2z"})}),"Local Context Sources"]}),u.jsx("p",{className:"folder-section-desc",children:"Point Pac-Man at local folders to chomp for context. Tag each folder with a project name — multiple folders can share the same project."}),o.localFolders.length>0&&u.jsx("div",{className:"folder-list",children:o.localFolders.map((b,U)=>u.jsxs("div",{className:"folder-row",children:[u.jsx("input",{type:"text",value:b.path,onChange:p=>Ie(U,{path:p.target.value}),onBlur:()=>{!b.project.trim()&&b.path.trim()&&Ie(U,{project:Gd(b.path)})},placeholder:"/path/to/folder",style:{background:"var(--bg-inset)"}}),u.jsx("button",{type:"button",className:"btn-browse",onClick:()=>Pe(U),disabled:J===U,children:J===U?"Opening...":"Browse"}),u.jsx("input",{type:"text",value:b.project,onChange:p=>Ie(U,{project:p.target.value}),placeholder:"Project tag",list:"project-suggestions",style:{background:"var(--bg-inset)"}}),u.jsx("button",{type:"button",className:"btn-remove",onClick:()=>rl(U),title:"Remove",children:"×"})]},U))}),j.length>0&&u.jsx("datalist",{id:"project-suggestions",children:j.map(b=>u.jsx("option",{value:b},b))}),u.jsx("button",{type:"button",className:"btn-add-folder",onClick:Xe,children:"+ Add Folder"}),J!==null&&!L&&u.jsx("span",{className:"field-hint",style:{marginTop:"0.75rem"},children:"Opening your file manager. The native folder picker can take a moment to appear the first time."}),L&&u.jsx("p",{style:{color:"var(--error)",fontSize:"0.78rem",marginTop:"0.75rem"},children:L})]}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:m,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:Y,children:"Continue"})]})]})}const qd={background:"none",border:"1px solid var(--border)",borderRadius:6,padding:"5px 12px",color:"var(--text-dim)",fontSize:"0.78rem",cursor:"pointer",fontWeight:500},Dv={border:"1px solid",borderRadius:6,padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",transition:"all 0.15s"},Yd={border:"1px solid",borderRadius:6,padding:"6px 16px",fontSize:"0.8rem",fontWeight:600,transition:"all 0.15s"},lt={display:"block",fontSize:"0.78rem",color:"var(--text-muted)",marginBottom:"0.3rem",fontWeight:500},zn={marginBottom:0,fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",borderColor:"var(--border)"},Uv={width:"100%",fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:8},ps={width:"100%",fontSize:"0.83rem",padding:"0.6rem 0.75rem",background:"var(--bg-inset)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:8,minHeight:40,display:"flex",alignItems:"center"};function Rv({state:o,update:M,onNext:Y,onPrev:m}){const[R,X]=te.useState({}),[B,K]=te.useState(""),[H,A]=te.useState(!0),[J,q]=te.useState(""),[L,ae]=te.useState(null),[ce,fe]=te.useState(""),[Te,de]=te.useState(new Set),[we,be]=te.useState(new Set),Se=te.useRef(null);te.useEffect(()=>{let p=!1;return A(!0),q(""),fetch("/api/project-structure-preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({profileType:o.profileType,name:o.name,assistantName:o.assistantName,responsibilities:o.responsibilities,localFolders:o.localFolders,integrations:o.integrations})}).then(async r=>{const h=await r.json();if(!r.ok)throw new Error(h.error??"Failed to load project structure preview");return h}).then(r=>{if(p)return;const h=r.files??{};X(h),M({templateFiles:h,inferredProjects:r.projects??[],projectInference:r.inference??null});const N=Object.keys(h);be(new Set);const C=(r.projects??[]).map(D=>`projects/${D.slug}.md`).find(D=>h[D]!==void 0);K(D=>D&&h[D]!==void 0?D:C??N[0]??"");const V=new Set;for(const D of N){const I=D.indexOf("/");I!==-1&&V.add(D.substring(0,I))}de(V)}).catch(r=>{p||q(r instanceof Error?r.message:"Failed to load project structure preview")}).finally(()=>{p||A(!1)}),()=>{p=!0}},[o.profileType,o.name,o.assistantName,o.responsibilities,o.localFolders,o.integrations]),te.useEffect(()=>{L&&Se.current&&Se.current.focus()},[L]);const xe=p=>{const r={...R,[B]:p};X(r),M({templateFiles:r})},$=p=>{const r=p.split("/");return r[r.length-1]},_=p=>p.endsWith(".md")?"M":p.endsWith(".json")?"J":p.endsWith(".yaml")||p.endsWith(".yml")?"Y":"F",k=p=>p.split(`
|
|
50
|
-
`).length,me=p=>`projects/${p.slug}.md`,We=(()=>{const p=new Map,r=[];for(const h of Object.keys(R).sort()){const N=h.indexOf("/");if(N===-1)r.push(h);else{const C=h.substring(0,N);p.has(C)||p.set(C,[]),p.get(C).push(h)}}for(const h of we)p.has(h)||p.set(h,[]);return{folders:[...p.keys()].sort(),folderFiles:p,rootFiles:r}})(),Xe=p=>{de(r=>{const h=new Set(r);return h.has(p)?h.delete(p):h.add(p),h})},Ie=()=>{const p=ce.trim();if(!p||!L){ae(null),fe("");return}if(L.type==="folder"){const r=p.replace(/[/\\]/g,"");if(!r)return;be(h=>new Set(h).add(r)),de(h=>new Set(h).add(r))}else{const r=p.includes(".")?p:`${p}.md`,h=L.parent?`${L.parent}/${r}`:r;if(R[h]!==void 0)K(h);else{const N=r.replace(/\.\w+$/,"").replace(/[-_]/g," "),C=N.charAt(0).toUpperCase()+N.slice(1),V={...R,[h]:`# ${C}
|
|
51
|
-
|
|
52
|
-
`};X(V),M({templateFiles:V}),K(h),L.parent&&(be(D=>{const I=new Set(D);return I.delete(L.parent),I}),de(D=>new Set(D).add(L.parent)))}}ae(null),fe("")},rl=(p,r)=>{r.stopPropagation();const h={...R};if(delete h[p],X(h),M({templateFiles:h}),B===p){const N=Object.keys(h);K(N.length>0?N[0]:"")}},Pe=(p,r)=>{r.stopPropagation();const h={...R};for(const N of Object.keys(h))N.startsWith(`${p}/`)&&delete h[N];if(X(h),M({templateFiles:h}),be(N=>{const C=new Set(N);return C.delete(p),C}),B.startsWith(`${p}/`)){const N=Object.keys(h);K(N.length>0?N[0]:"")}},j=p=>{p.key==="Enter"?(p.preventDefault(),Ie()):p.key==="Escape"&&(ae(null),fe(""))},O=()=>u.jsxs("div",{className:"template-create-input",children:[(L==null?void 0:L.parent)&&u.jsxs("span",{className:"template-create-prefix",children:[L.parent,"/"]}),u.jsx("input",{ref:Se,type:"text",className:"template-create-field",value:ce,onChange:p=>fe(p.target.value),onKeyDown:j,onBlur:Ie,placeholder:(L==null?void 0:L.type)==="folder"?"folder name":"filename.md"})]}),b=(p,r=!1)=>u.jsxs("button",{className:`template-file-tab ${B===p?"active":""} ${r?"indented":""}`,onClick:()=>K(p),title:p,children:[u.jsx("span",{className:`template-file-icon icon-${_(p).toLowerCase()}`,children:_(p)}),u.jsx("span",{className:"template-file-name",children:$(p)}),u.jsxs("span",{className:"template-file-lines",children:[k(R[p]),"L"]}),u.jsx("span",{className:"template-item-delete",onClick:h=>rl(p,h),title:"Delete file",children:"×"})]},p),U=p=>{const r=Te.has(p),h=We.folderFiles.get(p)||[];return u.jsxs("div",{className:"template-folder-group",children:[u.jsxs("div",{className:"template-folder-row",children:[u.jsxs("button",{className:"template-folder-tab",onClick:()=>Xe(p),children:[u.jsx("span",{className:"template-folder-arrow",children:r?"▾":"▸"}),u.jsx("span",{className:"template-file-icon icon-folder",children:u.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",children:u.jsx("path",{d:"M1.75 1A1.75 1.75 0 000 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0016 13.25V4.75A1.75 1.75 0 0014.25 3H7.5a.25.25 0 01-.2-.1l-.9-1.2A1.75 1.75 0 004.98 1H1.75z"})})}),u.jsx("span",{className:"template-file-name",children:p}),u.jsx("span",{className:"template-file-lines",children:h.length})]}),u.jsx("span",{className:"template-folder-action template-folder-add",onClick:N=>{N.stopPropagation(),ae({type:"file",parent:p}),fe(""),de(C=>new Set(C).add(p))},title:`New file in ${p}/`,children:"+"}),u.jsx("span",{className:"template-folder-action template-item-delete",onClick:N=>Pe(p,N),title:"Delete folder",children:"×"})]}),r&&u.jsxs("div",{className:"template-folder-children",children:[h.map(N=>b(N,!0)),(L==null?void 0:L.type)==="file"&&L.parent===p&&O(),h.length===0&&!L&&u.jsx("div",{className:"template-folder-empty",children:"Empty folder"})]})]},p)};return u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Confirm Project Structure"}),u.jsx("h2",{children:o.inferredProjects.length>0?`Pac-Man grouped your sources into ${o.inferredProjects.length} project(s). Review the structure and tighten the generated context below.`:"Review the base workspace template below and confirm how Pac-Man should organize your context."}),o.projectInference&&u.jsxs("div",{className:"project-structure-banner",children:[u.jsx("strong",{children:o.projectInference.strategy==="ollama"?`Local LLM: ${o.projectInference.model??"Ollama"}`:"Local inference"}),u.jsx("span",{children:o.projectInference.note})]}),o.inferredProjects.length>0&&u.jsx("div",{className:"project-structure-grid",children:o.inferredProjects.map(p=>{const r=me(p);return u.jsxs("button",{type:"button",className:`project-structure-card ${B===r?"active":""}`,onClick:()=>K(r),children:[u.jsxs("div",{className:"project-structure-card-top",children:[u.jsx("strong",{children:p.name}),u.jsxs("span",{children:[p.sourceFolders.length," source",p.sourceFolders.length===1?"":"s"]})]}),u.jsx("p",{children:p.summary}),u.jsxs("div",{className:"project-structure-meta",children:[u.jsx("span",{className:"project-structure-chip",children:p.primaryFocus}),p.connectedIntegrations.slice(0,2).map(h=>u.jsx("span",{className:"project-structure-chip muted",children:h},h))]})]},p.slug)})}),u.jsxs("div",{className:"template-preview",children:[H&&u.jsxs("div",{className:"template-loading",children:[u.jsx("div",{className:"template-spinner"}),u.jsx("span",{children:"Generating project structure..."})]}),J&&u.jsx("div",{className:"template-error",children:J}),!H&&!J&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"template-sidebar",children:[u.jsxs("div",{className:"template-sidebar-header",children:[u.jsx("span",{children:"Files"}),u.jsxs("div",{className:"template-sidebar-actions",children:[u.jsx("button",{className:"template-action-btn",onClick:()=>ae({type:"file",parent:null}),title:"New file",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),u.jsx("polyline",{points:"14 2 14 8 20 8"}),u.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"12"}),u.jsx("line",{x1:"9",y1:"15",x2:"15",y2:"15"})]})}),u.jsx("button",{className:"template-action-btn",onClick:()=>ae({type:"folder",parent:null}),title:"New folder",children:u.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[u.jsx("path",{d:"M22 19a2 2 0 01-2 2H4a2 2 0 01-2-2V5a2 2 0 012-2h5l2 3h9a2 2 0 012 2z"}),u.jsx("line",{x1:"12",y1:"11",x2:"12",y2:"17"}),u.jsx("line",{x1:"9",y1:"14",x2:"15",y2:"14"})]})})]})]}),We.folders.map(p=>U(p)),We.rootFiles.map(p=>b(p)),L&&L.parent===null&&O()]}),u.jsx("div",{className:"template-editor",children:B&&R[B]!==void 0?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"template-editor-header",children:[u.jsx("span",{className:"template-editor-path",children:B}),u.jsx("span",{className:"template-editor-badge",children:"editable"})]}),u.jsxs("div",{className:"template-editor-body",children:[u.jsx("div",{className:"template-line-numbers",children:R[B].split(`
|
|
53
|
-
`).map((p,r)=>u.jsx("span",{children:r+1},r))}),u.jsx("textarea",{className:"template-textarea",value:R[B],onChange:p=>xe(p.target.value),spellCheck:!1})]})]}):u.jsx("div",{className:"template-empty-editor",children:"Select a file to edit"})})]})]}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:m,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:Y,children:"Continue"})]})]})}function Bv({state:o,update:M,onNext:Y,onPrev:m}){const[R,X]=te.useState(o.gdriveFolderId?"complete":"idle"),[B,K]=te.useState(""),[H,A]=te.useState(!1),[J,q]=te.useState(!1),[L,ae]=te.useState(!1),[ce,fe]=te.useState(""),Te=te.useRef(null);te.useEffect(()=>()=>{Te.current&&clearInterval(Te.current)},[]);const de=async()=>{ae(!0),fe("");const _=performance.now();try{const k=await fetch("/api/pick-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({defaultPath:o.localPath,purpose:"storage"})});if(!k.ok)throw new Error(`Server returned ${k.status}`);const me=await k.json();if(me.error)throw new Error(me.error);console.info(`[onboarding] storage picker resolved in ${Math.round(performance.now()-_)}ms`),!me.cancelled&&me.path&&M({localPath:me.path})}catch(k){const me=k instanceof Error?k.message:String(k);fe(me||"Could not open the file manager right now.")}finally{ae(!1)}},we=async()=>{if(!o.gdriveClientId.trim()||!o.gdriveClientSecret.trim()){K("Client ID and Client Secret are required.");return}A(!0),K(""),X("pending");try{const k=await(await fetch("/api/gdrive/auth-start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientId:o.gdriveClientId,clientSecret:o.gdriveClientSecret})})).json();if(!k.authUrl)throw new Error(k.error||"Failed to start auth");window.open(k.authUrl,"_blank"),Te.current=setInterval(async()=>{try{const ke=await(await fetch("/api/gdrive/auth-status")).json();ke.status==="authenticated"?(clearInterval(Te.current),X("authenticated"),A(!1)):ke.status==="error"&&(clearInterval(Te.current),X("error"),K(ke.error||"Authentication failed"),A(!1))}catch{}},2e3)}catch(_){X("error"),K(String(_)),A(!1)}},be=async()=>{q(!0),K("");try{const k=await(await fetch("/api/gdrive/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({folderName:o.gdriveFolderName||"Personal Assistant",parentFolderName:o.gdriveFolderParent.trim()||""})})).json();if(k.error)throw new Error(k.error);M({gdriveFolderId:k.folderId,gdriveFolderName:k.folderName,gdriveFolderPath:k.folderPath,gdriveRefreshToken:k.refreshToken}),X("complete")}catch(_){K(String(_))}finally{q(!1)}},Se=()=>{M({gdriveFolderId:"",gdriveFolderPath:""}),X("authenticated"),K("")},xe=()=>{Te.current&&clearInterval(Te.current),X("idle"),K(""),A(!1),M({gdriveFolderId:"",gdriveFolderName:"Personal Assistant",gdriveFolderParent:"",gdriveFolderPath:"",gdriveRefreshToken:""})},$=o.storageMode==="local"?o.localPath.trim().length>0:R==="complete";return u.jsxs("div",{className:"step-content",children:[u.jsx("h1",{children:"Storage"}),u.jsx("h2",{children:"Where should your context be stored?"}),u.jsxs("div",{className:"radio-group",children:[u.jsxs("div",{className:`radio-item ${o.storageMode==="local"?"selected":""}`,onClick:()=>M({storageMode:"local"}),children:[u.jsx("strong",{children:"Local Workspace"}),u.jsx("br",{}),u.jsx("small",{children:"Files stored on this machine"})]}),u.jsxs("div",{className:`radio-item ${o.storageMode==="gdrive"?"selected":""}`,onClick:()=>M({storageMode:"gdrive"}),children:[u.jsx("strong",{children:"Google Drive"}),u.jsx("br",{}),u.jsx("small",{children:"Files stored in your Drive folder"})]})]}),o.storageMode==="local"&&u.jsxs("div",{style:{marginBottom:"1.25rem"},children:[u.jsx("label",{className:"field-label",children:"Storage path"}),u.jsxs("div",{style:{display:"flex",gap:"0.5rem",alignItems:"center"},children:[u.jsx("input",{type:"text",value:o.localPath,onChange:_=>M({localPath:_.target.value}),placeholder:".personal-assistant",style:{flex:1,marginBottom:0}}),u.jsx("button",{className:"btn-secondary",onClick:de,disabled:L,style:{whiteSpace:"nowrap",flexShrink:0},children:L?"Opening...":"Browse"})]}),u.jsx("span",{className:"field-hint",children:L?"Opening your file manager. The first launch can take a moment while the OS starts the native picker.":"Click Browse to open a folder picker, or type a path directly (relative or absolute)."}),ce&&u.jsx("span",{className:"field-error",children:ce})]}),o.storageMode==="gdrive"&&u.jsxs("div",{style:{marginBottom:"1.25rem"},children:[(R==="idle"||R==="pending"||R==="error")&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1.25rem",fontSize:"0.85rem",color:"var(--text-secondary)",lineHeight:"1.6"},children:[u.jsx("p",{style:{color:"var(--text-primary)",fontWeight:600,marginBottom:"0.75rem"},children:"How to get your Client ID and Secret"}),u.jsx("p",{style:{marginBottom:"0.5rem"},children:"No credentials are bundled with this app. You create your own in Google Cloud — it takes about 5 minutes and gives you full control over your own quota and data."}),u.jsxs("ol",{style:{paddingLeft:"1.25rem",margin:"0.75rem 0"},children:[u.jsxs("li",{style:{marginBottom:"0.4rem"},children:["Go to ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"console.cloud.google.com"}),' → create a new project (any name, e.g. "Personal Assistant")']}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"APIs & Services → Library"})," → search for ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Google Drive API"})," → Enable"]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"APIs & Services → OAuth consent screen"})," ","→ User type: External → fill in app name and email → add scope"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3},children:".../auth/drive.file"})," ","→ add your email as a test user → Save."," ",u.jsx("strong",{style:{color:"var(--warning)"},children:'Your email must be in this list or Google will block the login with "Access denied — app not verified".'})]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:[u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Credentials → Create Credentials → OAuth client ID"})," ","→ Application type:"," ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Web application"})]}),u.jsxs("li",{style:{marginBottom:"0.4rem"},children:["Under ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Authorized redirect URIs"})," add exactly:"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3},children:"http://localhost:3847/api/gdrive/callback"})]}),u.jsxs("li",{children:["Click ",u.jsx("strong",{style:{color:"var(--text-primary)"},children:"Create"})," and copy the Client ID and Client Secret shown."]})]}),u.jsxs("p",{style:{color:"var(--text-dim)",fontSize:"0.8rem"},children:["The refresh token obtained during this flow is saved locally to"," ",u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 3px",borderRadius:3},children:"profile/storage.json"})," ","— the sync daemon will use it automatically on future runs."]})]}),u.jsxs("div",{className:"banner-warning",style:{marginBottom:"1.25rem"},children:["Getting ",u.jsx("strong",{children:'"Access blocked: app not verified"'}),"? Your Google account must be added as a test user. Go to"," ",u.jsx("strong",{children:"OAuth consent screen → Test users → Add users"})," and add your email, then try connecting again. You do not need to publish or verify the app for personal use."]}),u.jsx("label",{className:"field-label",children:"Client ID"}),u.jsx("input",{type:"text",value:o.gdriveClientId,onChange:_=>M({gdriveClientId:_.target.value}),placeholder:"your-client-id.apps.googleusercontent.com",disabled:R==="pending"}),u.jsx("label",{className:"field-label",children:"Client Secret"}),u.jsx("input",{type:"password",value:o.gdriveClientSecret,onChange:_=>M({gdriveClientSecret:_.target.value}),placeholder:"your-client-secret",disabled:R==="pending"}),R==="idle"&&u.jsx("button",{className:"btn-primary",onClick:we,disabled:H,children:"Connect Google Drive"}),R==="pending"&&u.jsx("p",{style:{color:"var(--warning)",fontSize:"0.9rem"},children:"Waiting for Google authentication — complete it in the browser tab that just opened..."}),R==="error"&&u.jsxs("div",{style:{marginTop:"0.5rem"},children:[u.jsx("p",{style:{color:"var(--error)",fontSize:"0.9rem",marginBottom:"0.5rem"},children:B}),u.jsx("button",{className:"btn-secondary",onClick:xe,children:"Try Again"})]})]}),R==="authenticated"&&u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1rem"},children:[u.jsx("p",{style:{color:"var(--success)",fontSize:"0.9rem",marginBottom:"1rem"},children:"Google account connected. Now configure where the folder will be created."}),u.jsx("label",{className:"field-label",children:"Folder name"}),u.jsx("input",{type:"text",value:o.gdriveFolderName,onChange:_=>M({gdriveFolderName:_.target.value}),placeholder:"Personal Assistant"}),u.jsxs("label",{className:"field-label",children:["Parent folder in My Drive"," ",u.jsx("span",{style:{color:"var(--text-dim)",fontWeight:400},children:"(optional — leave empty for root)"})]}),u.jsx("input",{type:"text",value:o.gdriveFolderParent,onChange:_=>M({gdriveFolderParent:_.target.value}),placeholder:"e.g. Work"}),u.jsx("span",{className:"field-hint",style:{marginTop:"-0.5rem",marginBottom:"1rem"},children:"If this folder doesn't exist in your Drive it will be created automatically."}),u.jsxs("div",{style:{display:"flex",gap:"0.75rem",alignItems:"center"},children:[u.jsx("button",{className:"btn-primary",onClick:be,disabled:J||!o.gdriveFolderName.trim(),children:J?"Creating...":"Create Folder"}),u.jsx("button",{className:"btn-secondary",onClick:xe,style:{fontSize:"0.85rem"},children:"Start Over"})]}),B&&u.jsx("p",{style:{color:"var(--error)",fontSize:"0.9rem",marginTop:"0.75rem"},children:B})]}),R==="complete"&&u.jsxs("div",{style:{background:"var(--success-subtle)",border:"1px solid rgba(34, 197, 94, 0.2)",borderRadius:"var(--radius-sm)",padding:"1rem",marginBottom:"1rem"},children:[u.jsx("p",{style:{color:"var(--success)",fontSize:"0.9rem",marginBottom:"0.75rem",fontWeight:600},children:"Folder created in Google Drive"}),u.jsxs("div",{style:{fontSize:"0.875rem",color:"var(--text-secondary)",lineHeight:"1.8"},children:[u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Name: "}),u.jsx("strong",{style:{color:"var(--text-primary)"},children:o.gdriveFolderName})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Location: "}),u.jsx("strong",{style:{color:"var(--text-primary)"},children:o.gdriveFolderPath})]}),u.jsxs("div",{children:[u.jsx("span",{style:{color:"var(--text-muted)"},children:"Folder ID: "}),u.jsx("code",{style:{background:"var(--bg-elevated)",padding:"0 4px",borderRadius:3,fontSize:"0.8rem",color:"var(--text-secondary)"},children:o.gdriveFolderId})]})]}),u.jsx("button",{className:"btn-secondary",onClick:Se,style:{marginTop:"0.75rem",fontSize:"0.85rem"},children:"Change location"})]})]}),u.jsx("div",{className:"banner-warning",style:{marginBottom:"1.5rem"},children:"Do not delete, move, or rename the folder structure created by this setup. Claude and the sync daemon rely on the exact file and folder layout to load and update your context. Deleting files will result in lost context that cannot be automatically recovered."}),u.jsxs("div",{className:"btn-group",children:[u.jsx("button",{className:"btn-secondary",onClick:m,children:"Back"}),u.jsx("button",{className:"btn-primary",onClick:()=>{Ki(o.email,`storage_${o.storageMode}_configured`),Y()},disabled:!$,children:"Continue"})]})]})}function Hv({state:o,alreadySaved:M,onPrev:Y,onSaved:m,onHardReset:R}){const[X,B]=te.useState(()=>M?"saved":"saving"),[K,H]=te.useState(""),[A,J]=te.useState(0);te.useEffect(()=>{if(M||X!=="saving")return;const ae=Gv(o);fetch("/api/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ae)}).then(ce=>ce.json()).then(ce=>{ce.success?(Ki(o.email,"onboarding_completed"),m(),B("saved")):(B("error"),H(ce.error||"Failed to save configuration"))}).catch(ce=>{B("error"),H(String(ce))})},[M,m,A,o,X]);const q=()=>{window.confirm("Clear the saved onboarding draft stored in this browser and restart onboarding?")&&R()},L=()=>{B("saving"),H(""),J(ae=>ae+1)};return X==="saving"?u.jsx("div",{className:"step-content",children:u.jsxs("div",{className:"saving-overlay",children:[u.jsx("div",{className:"pacman-char"}),u.jsxs("div",{className:"saving-dots",children:[u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"})]}),u.jsx("p",{className:"saving-text",children:"Pac-Man is saving your configuration..."})]})}):X==="error"?u.jsx("div",{className:"step-content",children:u.jsxs("div",{style:{textAlign:"center",padding:"3rem 0"},children:[u.jsx("div",{style:{width:72,height:72,borderRadius:"50%",background:"var(--error-subtle)",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto 1.5rem",fontSize:"2rem"},children:"!"}),u.jsx("h1",{children:"Save Failed"}),u.jsx("p",{style:{color:"var(--error)",marginTop:"0.75rem",fontSize:"0.9rem"},children:K}),u.jsxs("p",{style:{color:"var(--text-muted)",marginTop:"1rem",fontSize:"0.85rem"},children:["Try running ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"2px 6px",borderRadius:4,border:"1px solid var(--border)"},children:"pacman init"})," from the command line instead."]}),u.jsxs("div",{className:"btn-group",style:{justifyContent:"center",marginTop:"1.5rem"},children:[u.jsx("button",{className:"btn-secondary",onClick:Y,children:"Go Back"}),u.jsx("button",{className:"btn-primary",onClick:L,children:"Retry"})]})]})}):u.jsxs("div",{className:"success step-content",children:[u.jsx("div",{className:"success-icon",children:u.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polyline",{points:"20 6 9 17 4 12"})})}),u.jsx("h1",{children:"Setup Complete"}),u.jsxs("div",{className:"pac-celebration",children:[u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("div",{className:"pacman-char pacman-char-small"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"}),u.jsx("span",{className:"pac-trail-dot"})]}),u.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"1rem",lineHeight:1.6,marginBottom:"0.5rem"},children:["Your personal assistant context has been initialized.",u.jsx("br",{}),"Here's how to start using Pac-Man:"]}),u.jsxs("div",{className:"instructions-grid",children:[u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"var(--maze-wall)"},children:"CC"}),u.jsx("h4",{children:"Claude Code"}),u.jsx("p",{children:"Install the MCP server for Claude Code"}),u.jsx("code",{className:"cmd",children:`pacman claude install
|
|
54
|
-
pacman mcp claude install`})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"#24292F"},children:"CX"}),u.jsx("h4",{children:"Codex"}),u.jsx("p",{children:"Install the MCP server for Codex"}),u.jsx("code",{className:"cmd",children:`pacman codex install
|
|
55
|
-
pacman mcp codex install`})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"#4A154B"},children:"Sl"}),u.jsx("h4",{children:"Slack Listener"}),u.jsx("p",{children:"Start real-time Slack replies"}),u.jsx("code",{className:"cmd",children:"pacman slack listen"})]}),u.jsxs("div",{className:"instruction-card",children:[u.jsx("div",{className:"instruction-card-icon",style:{background:"var(--ghost-orange)"},children:"DM"}),u.jsx("h4",{children:"Sync Daemon"}),u.jsx("p",{children:"Start the context sync daemon"}),u.jsx("code",{className:"cmd",children:"pacman daemon"})]})]}),u.jsxs("div",{style:{background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius)",padding:"1.25rem",textAlign:"left",marginTop:"1rem"},children:[u.jsx("h4",{style:{fontFamily:"var(--font-display)",fontSize:"0.78rem",fontWeight:600,color:"var(--pac-yellow)",marginBottom:"0.75rem",letterSpacing:"0.03em"},children:"Example Usage"}),u.jsx("div",{className:"code-block",style:{marginTop:0,background:"var(--bg-inset)"},children:`# Start assistant for a project in Claude Code
|
|
56
|
-
/pacman start my-project
|
|
57
|
-
|
|
58
|
-
# Ask Codex to load your context
|
|
59
|
-
"Load my Pac-Man context for my-project"
|
|
60
|
-
|
|
61
|
-
# Manually sync context now
|
|
62
|
-
pacman sync now
|
|
63
|
-
|
|
64
|
-
# Check sync status
|
|
65
|
-
pacman sync status
|
|
66
|
-
|
|
67
|
-
# List all configured projects
|
|
68
|
-
pacman project list
|
|
69
|
-
|
|
70
|
-
# Search your context
|
|
71
|
-
pacman context search "deployment process"`})]}),u.jsx("div",{style:{marginTop:"1.5rem",padding:"1rem",background:"var(--pac-yellow-dim)",border:"1px solid rgba(255, 215, 0, 0.15)",borderRadius:"var(--radius-sm)",textAlign:"left"},children:u.jsxs("p",{style:{color:"var(--text-secondary)",fontSize:"0.82rem",lineHeight:1.7},children:[u.jsx("strong",{style:{color:"var(--pac-yellow)"},children:"Pro tips:"})," ","Restart Claude Code or Codex after installing the MCP server. Make sure"," ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"0 5px",borderRadius:4,border:"1px solid var(--border)"},children:"pacman"})," ","is available globally. For local repo testing, run:"," ",u.jsx("code",{style:{background:"var(--bg-surface)",padding:"2px 6px",borderRadius:4,display:"inline-block",marginTop:"0.3rem",border:"1px solid var(--border)"},children:"pnpm setup && source ~/.zshrc && cd packages/cli && pnpm link --global"})]})}),u.jsxs("div",{style:{marginTop:"1rem",padding:"1rem",background:"var(--bg-surface)",border:"1px solid var(--border)",borderRadius:"var(--radius-sm)",textAlign:"left"},children:[u.jsx("h4",{style:{fontFamily:"var(--font-display)",fontSize:"0.78rem",fontWeight:600,color:"var(--pac-yellow)",marginBottom:"0.5rem",letterSpacing:"0.03em"},children:"Browser Checkpoint"}),u.jsx("p",{style:{color:"var(--text-secondary)",fontSize:"0.82rem",lineHeight:1.7},children:"Pac-Man keeps this onboarding draft in browser local storage so a refresh or reopened tab resumes your setup. Use a hard reset only when you want to wipe the local onboarding checkpoint and start from scratch."}),u.jsxs("p",{style:{color:"var(--text-muted)",fontSize:"0.78rem",lineHeight:1.7,marginTop:"0.5rem"},children:["Stored key:"," ",u.jsx("code",{style:{background:"var(--bg-inset)",padding:"2px 6px",borderRadius:4,border:"1px solid var(--border)"},children:"pacman.onboarding.v1"})]}),u.jsx("div",{className:"btn-group",style:{marginTop:"1rem"},children:u.jsx("button",{className:"btn-secondary",onClick:q,children:"Hard Reset Onboarding Draft"})})]})]})}function Gv(o){var M;return{user:{name:o.name,email:o.email,assistantName:o.assistantName,profileType:o.profileType,responsibilities:o.responsibilities},storage:o.storageMode==="local"?{mode:"local",workspacePath:o.localPath}:{mode:"gdrive",folderId:o.gdriveFolderId,folderName:o.gdriveFolderName,cachePath:`${o.localPath||".personal-assistant"}/cache`,credentials:{clientId:o.gdriveClientId,clientSecret:o.gdriveClientSecret,refreshToken:o.gdriveRefreshToken}},templateFiles:o.templateFiles,integrations:o.integrations.map(Y=>({type:Y,enabled:!0,credentials:o.integrationCredentials[Y]??{}})),activeProject:(M=o.inferredProjects[0])==null?void 0:M.slug,localFolders:o.localFolders.filter(Y=>Y.path.trim()),inferredProjects:o.inferredProjects,sync:{dailySyncTime:o.syncTime,timezone:o.timezone,manualSyncEnabled:o.manualSync,asyncUpdateEnabled:o.asyncUpdate},slackRuntime:o.integrations.includes("slack")?{enabled:!0,transport:"socket_mode",appToken:o.slackAppToken,reviewMode:o.slackReviewMode,generationEnabled:o.slackGenerationEnabled,defaultProvider:o.slackGenerationEnabled?o.slackDefaultProvider:void 0,defaultModel:o.slackGenerationEnabled?o.slackDefaultModel:void 0,channelMappings:[]}:void 0,providers:o.integrations.includes("slack")&&(o.openAIApiKey||o.anthropicApiKey)?{...o.openAIApiKey?{openai:{apiKey:o.openAIApiKey,model:o.openAIModel}}:{},...o.anthropicApiKey?{anthropic:{apiKey:o.anthropicApiKey,model:o.anthropicModel}}:{}}:void 0}}const bs={name:"",email:"",assistantName:"Atlas",profileType:"software-engineer",responsibilities:[],templateFiles:{},storageMode:"local",localPath:".personal-assistant",gdriveClientId:"",gdriveClientSecret:"",gdriveFolderId:"",gdriveFolderName:"Personal Assistant",gdriveFolderParent:"",gdriveFolderPath:"",gdriveRefreshToken:"",integrations:[],integrationCredentials:{},localFolders:[],inferredProjects:[],projectInference:null,slackAppToken:"",slackChannelId:"",slackChannelName:"",slackReviewerUserId:"",slackReviewerDisplayName:"",slackReviewMode:"auto_send",slackGenerationEnabled:!0,slackDefaultProvider:"openai",slackDefaultModel:"gpt-4.1-mini",openAIApiKey:"",openAIModel:"gpt-4.1-mini",anthropicApiKey:"",anthropicModel:"claude-3-7-sonnet-latest",syncTime:"08:00",timezone:"America/New_York",manualSync:!0,asyncUpdate:!0},Ss=["Identity","Integrations","Project Structure","Storage","Complete"],Mn=Ss.length,js="pacman.onboarding.v1",qv={"software-engineer":"Software Engineer","product-manager":"Product Manager","engineering-manager":"Engineering Manager",devops:"DevOps Engineer"},Yv={slack:"Slack",gmail:"Gmail",github:"GitHub",gitlab:"GitLab",gdrive:"Google Drive",gchat:"Google Chat"};function Xv(o){return Math.max(0,Math.min(o,Mn))}function Qv(){if(typeof window>"u")return null;try{const o=window.localStorage.getItem(js);if(!o)return null;const M=JSON.parse(o);return!M||typeof M!="object"||typeof M.step!="number"||!M.state?null:{step:Xv(M.step),state:{...bs,...M.state},completed:M.completed===!0}}catch{return null}}function Lv(o,M,Y){typeof window>"u"||window.localStorage.setItem(js,JSON.stringify({step:o,state:M,completed:Y}))}function wv(){typeof window>"u"||window.localStorage.removeItem(js)}function kv(o){return Yv[o]??o}function Zv(o){return qv[o]??o}function Vv(o){const M=o.trim();if(!M)return"Not set";const Y=M.split(/[\\/]/).filter(Boolean);return Y.length<=2?M:`.../${Y.slice(-2).join("/")}`}function Kv(){const o=te.useMemo(()=>Qv(),[]),[M,Y]=te.useState(()=>(o==null?void 0:o.step)??0),[m,R]=te.useState(()=>(o==null?void 0:o.state)??bs),[X,B]=te.useState(()=>(o==null?void 0:o.completed)??!1),[K,H]=te.useState(!1),A=$=>{R(_=>({..._,...$})),B(!1)},J=()=>Y($=>Math.min($+1,Mn)),q=()=>Y($=>Math.max($-1,1)),L=()=>Y(1),ae=M>=1&&M<=4,ce=M===5?4:Math.max(1,Math.min(M,4)),fe=$=>$<=ce,Te=$=>{fe($)&&Y($)},de=()=>{wv(),R(bs),Y(0),B(!1),H(!1)};te.useEffect(()=>{Lv(M,m,X)},[X,m,M]);const we=te.useMemo(()=>{const $=m.localFolders.length>0?m.localFolders.slice(0,3).map(k=>`${k.project||"Unassigned"}: ${Vv(k.path)}`):["No local folders tagged yet"],_=m.inferredProjects.length>0?m.inferredProjects.slice(0,3).map(k=>`${k.name} (${k.sourceFolders.length} source${k.sourceFolders.length===1?"":"s"})`):["Projects will appear after source analysis"];return[{step:0,label:"Homepage",lines:["Overview: Pac-Man onboarding landing page","Use this to revisit the product framing and onboarding promise","Edit path: jump back here from any later step"]},{step:1,label:"Identity",lines:[`Name: ${m.name.trim()||"Not set"}`,`Email: ${m.email.trim()||"Required"}`,`Role: ${Zv(m.profileType)}`,`Assistant: ${m.assistantName.trim()||"Atlas"}`]},{step:2,label:"Integrations",lines:[`Connected: ${m.integrations.length>0?m.integrations.map(kv).join(", "):"None yet"}`,`Folders: ${m.localFolders.length}`,...$]},{step:3,label:"Project Structure",lines:[`Projects: ${m.inferredProjects.length||0}`,...m.projectInference?[`Inference: ${m.projectInference.strategy==="ollama"?m.projectInference.model??"Ollama":"Local heuristic"}`]:["Inference: Waiting for preview"],`Files ready: ${Object.keys(m.templateFiles).length}`,..._]},{step:4,label:"Storage",lines:m.storageMode==="local"?["Mode: Local workspace",`Path: ${m.localPath.trim()||"Not set"}`]:["Mode: Google Drive",`Folder: ${m.gdriveFolderName.trim()||"Not set"}`,`Location: ${m.gdriveFolderPath.trim()||"Pending"}`]}]},[m]),be=M>=1&&M<=4,Se=M-1,xe=($=!1)=>u.jsxs("div",{className:`onboarding-summary-panel ${$?"mobile":"desktop"}`,children:[u.jsxs("div",{className:"onboarding-summary-header",children:[u.jsxs("div",{children:[u.jsx("span",{className:"onboarding-summary-kicker",children:"Saved Choices"}),u.jsx("h3",{children:"Review and edit your setup"})]}),u.jsxs("span",{className:"onboarding-summary-count",children:[ce," of 4 ready"]})]}),u.jsx("div",{className:"onboarding-summary-list",children:we.map(_=>{const k=_.step===0?!0:fe(_.step),me=M===_.step;return u.jsxs("button",{type:"button",className:`onboarding-summary-card ${me?"current":""}`,onClick:()=>Te(_.step),disabled:!k,children:[u.jsxs("div",{className:"onboarding-summary-card-top",children:[u.jsxs("div",{className:"onboarding-summary-card-title",children:[u.jsx("span",{className:"onboarding-summary-step",children:_.step}),u.jsxs("div",{children:[u.jsx("strong",{children:_.label}),u.jsx("span",{children:me?"Current step":k?"Edit step":"Locked until earlier steps are complete"})]})]}),u.jsx("span",{className:"onboarding-summary-action",children:k?"Edit":"Locked"})]}),u.jsx("div",{className:"onboarding-summary-lines",children:_.lines.slice(0,$?3:4).map(ke=>u.jsx("span",{children:ke},ke))})]},_.label)})})]});return u.jsx("div",{className:`container ${ae?"container-with-sidebar":""}`,children:u.jsxs("div",{className:`onboarding-shell ${ae?"with-summary":""}`,children:[u.jsxs("div",{className:"onboarding-main",children:[be&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"step-header",children:[u.jsxs("div",{className:"step-meta",children:[u.jsxs("span",{className:"step-counter",children:[M," / ",Mn-1]}),u.jsx("span",{className:"step-name",children:Ss[Se]})]}),u.jsx("div",{className:"progress-track",children:u.jsx("div",{className:"progress-fill",style:{width:`${Se/(Mn-2)*100}%`}})})]}),u.jsx("div",{className:"pac-progress",style:{"--eaten-width":`${Se/(Mn-2)*100}%`},children:Ss.slice(0,-1).map(($,_)=>{const k=_+1,me=fe(k);return u.jsxs("button",{type:"button",className:`pac-progress-step ${_<Se?"eaten":_===Se?"current":""} ${me?"clickable":"locked"}`,onClick:()=>Te(k),disabled:!me,children:[_===Se?u.jsx("div",{className:"pacman-char pacman-char-small"}):u.jsx("div",{className:"pac-dot"}),u.jsx("span",{className:"pac-step-label",children:$})]},$)})})]}),ae&&u.jsxs("div",{className:"onboarding-summary-mobile-wrap",children:[u.jsxs("button",{type:"button",className:"onboarding-summary-toggle",onClick:()=>H($=>!$),children:[u.jsx("span",{children:K?"Hide your selections":"Review your selections"}),u.jsx("span",{children:K?"−":"+"})]}),K&&xe(!0)]}),M===0&&u.jsx(Nv,{onStart:L}),M===1&&u.jsx(Cv,{state:m,update:A,onNext:J}),M===2&&u.jsx(_v,{state:m,update:A,onNext:J,onPrev:q}),M===3&&u.jsx(Rv,{state:m,update:A,onNext:J,onPrev:q}),M===4&&u.jsx(Bv,{state:m,update:A,onNext:J,onPrev:q}),M===5&&u.jsx(Hv,{state:m,alreadySaved:X,onPrev:()=>Y(4),onSaved:()=>B(!0),onHardReset:de})]}),ae&&u.jsx("aside",{className:"onboarding-summary-sidebar",children:xe(!1)})]})})}xv.createRoot(document.getElementById("root")).render(u.jsx(mv.StrictMode,{children:u.jsx(Kv,{})}));
|