getgloss 0.9.0 → 0.10.0

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.
@@ -0,0 +1,269 @@
1
+ (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const S of h)if(S.type==="childList")for(const _ of S.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&o(_)}).observe(document,{childList:!0,subtree:!0});function d(h){const S={};return h.integrity&&(S.integrity=h.integrity),h.referrerPolicy&&(S.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?S.credentials="include":h.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function o(h){if(h.ep)return;h.ep=!0;const S=d(h);fetch(h.href,S)}})();function B0(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Ws={exports:{}},Ia={};/**
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 gm;function G0(){if(gm)return Ia;gm=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(o,h,S){var _=null;if(S!==void 0&&(_=""+S),h.key!==void 0&&(_=""+h.key),"key"in h){S={};for(var D in h)D!=="key"&&(S[D]=h[D])}else S=h;return h=S.ref,{$$typeof:u,type:o,key:_,ref:h!==void 0?h:null,props:S}}return Ia.Fragment=f,Ia.jsx=d,Ia.jsxs=d,Ia}var Sm;function Y0(){return Sm||(Sm=1,Ws.exports=G0()),Ws.exports}var s=Y0(),Is={exports:{}},le={};/**
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 bm;function X0(){if(bm)return le;bm=1;var u=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),_=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),B=Symbol.iterator;function $(p){return p===null||typeof p!="object"?null:(p=B&&p[B]||p["@@iterator"],typeof p=="function"?p:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},se=Object.assign,Se={};function k(p,C,L){this.props=p,this.context=C,this.refs=Se,this.updater=L||I}k.prototype.isReactComponent={},k.prototype.setState=function(p,C){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,C,"setState")},k.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function _e(){}_e.prototype=k.prototype;function de(p,C,L){this.props=p,this.context=C,this.refs=Se,this.updater=L||I}var G=de.prototype=new _e;G.constructor=de,se(G,k.prototype),G.isPureReactComponent=!0;var ye=Array.isArray;function te(){}var K={H:null,A:null,T:null,S:null},be=Object.prototype.hasOwnProperty;function Le(p,C,L){var x=L.ref;return{$$typeof:u,type:p,key:C,ref:x!==void 0?x:null,props:L}}function Nt(p,C){return Le(p.type,C,p.props)}function lt(p){return typeof p=="object"&&p!==null&&p.$$typeof===u}function Y(p){var C={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(L){return C[L]})}var xe=/\/+/g;function Te(p,C){return typeof p=="object"&&p!==null&&p.key!=null?Y(""+p.key):C.toString(36)}function Xe(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(te,te):(p.status="pending",p.then(function(C){p.status==="pending"&&(p.status="fulfilled",p.value=C)},function(C){p.status==="pending"&&(p.status="rejected",p.reason=C)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function E(p,C,L,x,U){var Q=typeof p;(Q==="undefined"||Q==="boolean")&&(p=null);var V=!1;if(p===null)V=!0;else switch(Q){case"bigint":case"string":case"number":V=!0;break;case"object":switch(p.$$typeof){case u:case f:V=!0;break;case w:return V=p._init,E(V(p._payload),C,L,x,U)}}if(V)return U=U(p),V=x===""?"."+Te(p,0):x,ye(U)?(L="",V!=null&&(L=V.replace(xe,"$&/")+"/"),E(U,C,L,"",function(Ie){return Ie})):U!=null&&(lt(U)&&(U=Nt(U,L+(U.key==null||p&&p.key===U.key?"":(""+U.key).replace(xe,"$&/")+"/")+V)),C.push(U)),1;V=0;var fe=x===""?".":x+":";if(ye(p))for(var ue=0;ue<p.length;ue++)x=p[ue],Q=fe+Te(x,ue),V+=E(x,C,L,Q,U);else if(ue=$(p),typeof ue=="function")for(p=ue.call(p),ue=0;!(x=p.next()).done;)x=x.value,Q=fe+Te(x,ue++),V+=E(x,C,L,Q,U);else if(Q==="object"){if(typeof p.then=="function")return E(Xe(p),C,L,x,U);throw C=String(p),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return V}function q(p,C,L){if(p==null)return p;var x=[],U=0;return E(p,x,"","",function(Q){return C.call(L,Q,U++)}),x}function F(p){if(p._status===-1){var C=p._result;C=C(),C.then(function(L){(p._status===0||p._status===-1)&&(p._status=1,p._result=L)},function(L){(p._status===0||p._status===-1)&&(p._status=2,p._result=L)}),p._status===-1&&(p._status=0,p._result=C)}if(p._status===1)return p._result.default;throw p._result}var ve=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},ne={map:q,forEach:function(p,C,L){q(p,function(){C.apply(this,arguments)},L)},count:function(p){var C=0;return q(p,function(){C++}),C},toArray:function(p){return q(p,function(C){return C})||[]},only:function(p){if(!lt(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return le.Activity=R,le.Children=ne,le.Component=k,le.Fragment=d,le.Profiler=h,le.PureComponent=de,le.StrictMode=o,le.Suspense=z,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,le.__COMPILER_RUNTIME={__proto__:null,c:function(p){return K.H.useMemoCache(p)}},le.cache=function(p){return function(){return p.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(p,C,L){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var x=se({},p.props),U=p.key;if(C!=null)for(Q in C.key!==void 0&&(U=""+C.key),C)!be.call(C,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&C.ref===void 0||(x[Q]=C[Q]);var Q=arguments.length-2;if(Q===1)x.children=L;else if(1<Q){for(var V=Array(Q),fe=0;fe<Q;fe++)V[fe]=arguments[fe+2];x.children=V}return Le(p.type,U,x)},le.createContext=function(p){return p={$$typeof:_,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:S,_context:p},p},le.createElement=function(p,C,L){var x,U={},Q=null;if(C!=null)for(x in C.key!==void 0&&(Q=""+C.key),C)be.call(C,x)&&x!=="key"&&x!=="__self"&&x!=="__source"&&(U[x]=C[x]);var V=arguments.length-2;if(V===1)U.children=L;else if(1<V){for(var fe=Array(V),ue=0;ue<V;ue++)fe[ue]=arguments[ue+2];U.children=fe}if(p&&p.defaultProps)for(x in V=p.defaultProps,V)U[x]===void 0&&(U[x]=V[x]);return Le(p,Q,U)},le.createRef=function(){return{current:null}},le.forwardRef=function(p){return{$$typeof:D,render:p}},le.isValidElement=lt,le.lazy=function(p){return{$$typeof:w,_payload:{_status:-1,_result:p},_init:F}},le.memo=function(p,C){return{$$typeof:v,type:p,compare:C===void 0?null:C}},le.startTransition=function(p){var C=K.T,L={};K.T=L;try{var x=p(),U=K.S;U!==null&&U(L,x),typeof x=="object"&&x!==null&&typeof x.then=="function"&&x.then(te,ve)}catch(Q){ve(Q)}finally{C!==null&&L.types!==null&&(C.types=L.types),K.T=C}},le.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},le.use=function(p){return K.H.use(p)},le.useActionState=function(p,C,L){return K.H.useActionState(p,C,L)},le.useCallback=function(p,C){return K.H.useCallback(p,C)},le.useContext=function(p){return K.H.useContext(p)},le.useDebugValue=function(){},le.useDeferredValue=function(p,C){return K.H.useDeferredValue(p,C)},le.useEffect=function(p,C){return K.H.useEffect(p,C)},le.useEffectEvent=function(p){return K.H.useEffectEvent(p)},le.useId=function(){return K.H.useId()},le.useImperativeHandle=function(p,C,L){return K.H.useImperativeHandle(p,C,L)},le.useInsertionEffect=function(p,C){return K.H.useInsertionEffect(p,C)},le.useLayoutEffect=function(p,C){return K.H.useLayoutEffect(p,C)},le.useMemo=function(p,C){return K.H.useMemo(p,C)},le.useOptimistic=function(p,C){return K.H.useOptimistic(p,C)},le.useReducer=function(p,C,L){return K.H.useReducer(p,C,L)},le.useRef=function(p){return K.H.useRef(p)},le.useState=function(p){return K.H.useState(p)},le.useSyncExternalStore=function(p,C,L){return K.H.useSyncExternalStore(p,C,L)},le.useTransition=function(){return K.H.useTransition()},le.version="19.2.6",le}var xm;function mf(){return xm||(xm=1,Is.exports=X0()),Is.exports}var H=mf();const ti=B0(H);var Ps={exports:{}},Pa={},ef={exports:{}},tf={};/**
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 jm;function Q0(){return jm||(jm=1,(function(u){function f(E,q){var F=E.length;E.push(q);e:for(;0<F;){var ve=F-1>>>1,ne=E[ve];if(0<h(ne,q))E[ve]=q,E[F]=ne,F=ve;else break e}}function d(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var q=E[0],F=E.pop();if(F!==q){E[0]=F;e:for(var ve=0,ne=E.length,p=ne>>>1;ve<p;){var C=2*(ve+1)-1,L=E[C],x=C+1,U=E[x];if(0>h(L,F))x<ne&&0>h(U,L)?(E[ve]=U,E[x]=F,ve=x):(E[ve]=L,E[C]=F,ve=C);else if(x<ne&&0>h(U,F))E[ve]=U,E[x]=F,ve=x;else break e}}return q}function h(E,q){var F=E.sortIndex-q.sortIndex;return F!==0?F:E.id-q.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;u.unstable_now=function(){return S.now()}}else{var _=Date,D=_.now();u.unstable_now=function(){return _.now()-D}}var z=[],v=[],w=1,R=null,B=3,$=!1,I=!1,se=!1,Se=!1,k=typeof setTimeout=="function"?setTimeout:null,_e=typeof clearTimeout=="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null;function G(E){for(var q=d(v);q!==null;){if(q.callback===null)o(v);else if(q.startTime<=E)o(v),q.sortIndex=q.expirationTime,f(z,q);else break;q=d(v)}}function ye(E){if(se=!1,G(E),!I)if(d(z)!==null)I=!0,te||(te=!0,Y());else{var q=d(v);q!==null&&Xe(ye,q.startTime-E)}}var te=!1,K=-1,be=5,Le=-1;function Nt(){return Se?!0:!(u.unstable_now()-Le<be)}function lt(){if(Se=!1,te){var E=u.unstable_now();Le=E;var q=!0;try{e:{I=!1,se&&(se=!1,_e(K),K=-1),$=!0;var F=B;try{t:{for(G(E),R=d(z);R!==null&&!(R.expirationTime>E&&Nt());){var ve=R.callback;if(typeof ve=="function"){R.callback=null,B=R.priorityLevel;var ne=ve(R.expirationTime<=E);if(E=u.unstable_now(),typeof ne=="function"){R.callback=ne,G(E),q=!0;break t}R===d(z)&&o(z),G(E)}else o(z);R=d(z)}if(R!==null)q=!0;else{var p=d(v);p!==null&&Xe(ye,p.startTime-E),q=!1}}break e}finally{R=null,B=F,$=!1}q=void 0}}finally{q?Y():te=!1}}}var Y;if(typeof de=="function")Y=function(){de(lt)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Te=xe.port2;xe.port1.onmessage=lt,Y=function(){Te.postMessage(null)}}else Y=function(){k(lt,0)};function Xe(E,q){K=k(function(){E(u.unstable_now())},q)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(E){E.callback=null},u.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):be=0<E?Math.floor(1e3/E):5},u.unstable_getCurrentPriorityLevel=function(){return B},u.unstable_next=function(E){switch(B){case 1:case 2:case 3:var q=3;break;default:q=B}var F=B;B=q;try{return E()}finally{B=F}},u.unstable_requestPaint=function(){Se=!0},u.unstable_runWithPriority=function(E,q){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var F=B;B=E;try{return q()}finally{B=F}},u.unstable_scheduleCallback=function(E,q,F){var ve=u.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ve+F:ve):F=ve,E){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=F+ne,E={id:w++,callback:q,priorityLevel:E,startTime:F,expirationTime:ne,sortIndex:-1},F>ve?(E.sortIndex=F,f(v,E),d(z)===null&&E===d(v)&&(se?(_e(K),K=-1):se=!0,Xe(ye,F-ve))):(E.sortIndex=ne,f(z,E),I||$||(I=!0,te||(te=!0,Y()))),E},u.unstable_shouldYield=Nt,u.unstable_wrapCallback=function(E){var q=B;return function(){var F=B;B=q;try{return E.apply(this,arguments)}finally{B=F}}}})(tf)),tf}var Em;function V0(){return Em||(Em=1,ef.exports=Q0()),ef.exports}var lf={exports:{}},rt={};/**
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 Nm;function Z0(){if(Nm)return rt;Nm=1;var u=mf();function f(z){var v="https://react.dev/errors/"+z;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)v+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+z+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var o={d:{f:d,r:function(){throw Error(f(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function S(z,v,w){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:z,containerInfo:v,implementation:w}}var _=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function D(z,v){if(z==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,rt.createPortal=function(z,v){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(f(299));return S(z,v,null,w)},rt.flushSync=function(z){var v=_.T,w=o.p;try{if(_.T=null,o.p=2,z)return z()}finally{_.T=v,o.p=w,o.d.f()}},rt.preconnect=function(z,v){typeof z=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(z,v))},rt.prefetchDNS=function(z){typeof z=="string"&&o.d.D(z)},rt.preinit=function(z,v){if(typeof z=="string"&&v&&typeof v.as=="string"){var w=v.as,R=D(w,v.crossOrigin),B=typeof v.integrity=="string"?v.integrity:void 0,$=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;w==="style"?o.d.S(z,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:R,integrity:B,fetchPriority:$}):w==="script"&&o.d.X(z,{crossOrigin:R,integrity:B,fetchPriority:$,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},rt.preinitModule=function(z,v){if(typeof z=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var w=D(v.as,v.crossOrigin);o.d.M(z,{crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(z)},rt.preload=function(z,v){if(typeof z=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var w=v.as,R=D(w,v.crossOrigin);o.d.L(z,w,{crossOrigin:R,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},rt.preloadModule=function(z,v){if(typeof z=="string")if(v){var w=D(v.as,v.crossOrigin);o.d.m(z,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(z)},rt.requestFormReset=function(z){o.d.r(z)},rt.unstable_batchedUpdates=function(z,v){return z(v)},rt.useFormState=function(z,v,w){return _.H.useFormState(z,v,w)},rt.useFormStatus=function(){return _.H.useHostTransitionStatus()},rt.version="19.2.6",rt}var Tm;function Vm(){if(Tm)return lf.exports;Tm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),lf.exports=Z0(),lf.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 zm;function k0(){if(zm)return Pa;zm=1;var u=V0(),f=mf(),d=Vm();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function S(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function _(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function D(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function z(e){if(S(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=S(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return z(a),e;if(i===n)return z(a),t;i=i.sibling}throw Error(o(188))}if(l.return!==n.return)l=a,n=i;else{for(var c=!1,r=a.child;r;){if(r===l){c=!0,l=a,n=i;break}if(r===n){c=!0,n=a,l=i;break}r=r.sibling}if(!c){for(r=i.child;r;){if(r===l){c=!0,l=i,n=a;break}if(r===n){c=!0,n=i,l=a;break}r=r.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==n)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var R=Object.assign,B=Symbol.for("react.element"),$=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),Se=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),_e=Symbol.for("react.consumer"),de=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),ye=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),Nt=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=lt&&e[lt]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function Te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case se:return"Fragment";case k:return"Profiler";case Se:return"StrictMode";case ye:return"Suspense";case te:return"SuspenseList";case Le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case I:return"Portal";case de:return e.displayName||"Context";case _e:return(e._context.displayName||"Context")+".Consumer";case G:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:Te(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return Te(e(t))}catch{}}return null}var Xe=Array.isArray,E=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ve=[],ne=-1;function p(e){return{current:e}}function C(e){0>ne||(e.current=ve[ne],ve[ne]=null,ne--)}function L(e,t){ne++,ve[ne]=e.current,e.current=t}var x=p(null),U=p(null),Q=p(null),V=p(null);function fe(e,t){switch(L(Q,t),L(U,e),L(x,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(x),L(x,e)}function ue(){C(x),C(U),C(Q)}function Ie(e){e.memoizedState!==null&&L(V,e);var t=x.current,l=Xd(t,e.type);t!==l&&(L(U,e),L(x,l))}function Pe(e){U.current===e&&(C(x),C(U)),V.current===e&&(C(V),Ja._currentValue=F)}var nt,Wt;function qe(e){if(nt===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);nt=t&&t[1]||"",Wt=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+nt+e+Wt}var ot=!1;function Ql(e,t){if(!e||ot)return"";ot=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(T){var N=T}Reflect.construct(e,[],O)}else{try{O.call()}catch(T){N=T}e.call(O.prototype)}}else{try{throw Error()}catch(T){N=T}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(T){if(T&&N&&typeof T.stack=="string")return[T.stack,N.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),c=i[0],r=i[1];if(c&&r){var m=c.split(`
44
+ `),j=r.split(`
45
+ `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<j.length&&!j[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===j.length)for(n=m.length-1,a=j.length-1;1<=n&&0<=a&&m[n]!==j[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==j[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==j[a]){var A=`
46
+ `+m[n].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),A}while(1<=n&&0<=a);break}}}finally{ot=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?qe(l):""}function na(e,t){switch(e.tag){case 26:case 27:case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return e.child!==t&&t!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return Ql(e.type,!1);case 11:return Ql(e.type.render,!1);case 1:return Ql(e.type,!0);case 31:return qe("Activity");default:return""}}function ci(e){try{var t="",l=null;do t+=na(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}var aa=Object.prototype.hasOwnProperty,ia=u.unstable_scheduleCallback,Vl=u.unstable_cancelCallback,Du=u.unstable_shouldYield,wu=u.unstable_requestPaint,at=u.unstable_now,Ru=u.unstable_getCurrentPriorityLevel,ua=u.unstable_ImmediatePriority,si=u.unstable_UserBlockingPriority,Zl=u.unstable_NormalPriority,Uu=u.unstable_LowPriority,fi=u.unstable_IdlePriority,Hu=u.log,Lu=u.unstable_setDisableYieldValue,kl=null,dt=null;function kt(e){if(typeof Hu=="function"&&Lu(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(kl,e)}catch{}}var mt=Math.clz32?Math.clz32:Bu,qu=Math.log,oi=Math.LN2;function Bu(e){return e>>>=0,e===0?32:31-(qu(e)/oi|0)|0}var hn=256,yn=262144,X=4194304;function ce(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fe(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=n&134217727;return r!==0?(n=r&~i,n!==0?a=ce(n):(c&=r,c!==0?a=ce(c):l||(l=r&~e,l!==0&&(a=ce(l))))):(r=n&~i,r!==0?a=ce(r):c!==0?a=ce(c):l||(l=n&~e,l!==0&&(a=ce(l)))),a===0?0:t!==0&&t!==a&&(t&i)===0&&(i=a&-a,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:a}function yt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function It(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ri(){var e=X;return X<<=1,(X&62914560)===0&&(X=4194304),e}function ca(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function sa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ah(e,t,l,n,a,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var r=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=c&~l;0<l;){var A=31-mt(l),O=1<<A;r[A]=0,m[A]=-1;var N=j[A];if(N!==null)for(j[A]=null,A=0;A<N.length;A++){var T=N[A];T!==null&&(T.lane&=-536870913)}l&=~O}n!==0&&jf(e,n,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function jf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Ef(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-mt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Nf(e,t){var l=t&-t;return l=(l&42)!==0?1:Gu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Gu(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 Yu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Tf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:rm(e.type))}function zf(e,t){var l=q.p;try{return q.p=e,t()}finally{q.p=l}}var gl=Math.random().toString(36).slice(2),it="__reactFiber$"+gl,vt="__reactProps$"+gl,vn="__reactContainer$"+gl,Xu="__reactEvents$"+gl,_h="__reactListeners$"+gl,Mh="__reactHandles$"+gl,Af="__reactResources$"+gl,fa="__reactMarker$"+gl;function Qu(e){delete e[it],delete e[vt],delete e[Xu],delete e[_h],delete e[Mh]}function pn(e){var t=e[it];if(t)return t;for(var l=e.parentNode;l;){if(t=l[vn]||l[it]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=$d(e);e!==null;){if(l=e[it])return l;e=$d(e)}return t}e=l,l=e.parentNode}return null}function gn(e){if(e=e[it]||e[vn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function oa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Sn(e){var t=e[Af];return t||(t=e[Af]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[fa]=!0}var _f=new Set,Mf={};function Kl(e,t){bn(e,t),bn(e+"Capture",t)}function bn(e,t){for(Mf[e]=t,e=0;e<t.length;e++)_f.add(t[e])}var Ch=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]*$"),Cf={},Of={};function Oh(e){return aa.call(Of,e)?!0:aa.call(Cf,e)?!1:Ch.test(e)?Of[e]=!0:(Cf[e]=!0,!1)}function di(e,t,l){if(Oh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Pt(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+n)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dh(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vu(e){if(!e._valueTracker){var t=Df(e)?"checked":"value";e._valueTracker=Dh(e,t,""+e[t])}}function wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Df(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function hi(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 wh=/[\n"\\]/g;function wt(e){return e.replace(wh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zu(e,t,l,n,a,i,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?ku(e,c,Dt(t)):l!=null?ku(e,c,Dt(l)):n!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Dt(r):e.removeAttribute("name")}function Rf(e,t,l,n,a,i,c,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Vu(e);return}l=l!=null?""+Dt(l):"",t=t!=null?""+Dt(t):l,r||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=r?e.checked:!!n,e.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Vu(e)}function ku(e,t,l){t==="number"&&hi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function xn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+Dt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Uf(e,t,l){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Dt(l):""}function Hf(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(o(92));if(Xe(n)){if(1<n.length)throw Error(o(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Dt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Vu(e)}function jn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Rh=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 Lf(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||Rh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qf(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&Lf(e,a,n)}else for(var i in t)t.hasOwnProperty(i)&&Lf(e,i,t[i])}function Ku(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 Uh=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"]]),Hh=/^[\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 yi(e){return Hh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function el(){}var Ju=null;function $u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var En=null,Nn=null;function Bf(e){var t=gn(e);if(t&&(e=t.stateNode)){var l=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[vt]||null;if(!a)throw Error(o(90));Zu(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&wf(n)}break e;case"textarea":Uf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&xn(e,!!l.multiple,t,!1)}}}var Fu=!1;function Gf(e,t,l){if(Fu)return e(t,l);Fu=!0;try{var n=e(t);return n}finally{if(Fu=!1,(En!==null||Nn!==null)&&(lu(),En&&(t=En,e=Nn,Nn=En=null,Bf(t),e)))for(t=0;t<e.length;t++)Bf(e[t])}}function ra(e,t){var l=e.stateNode;if(l===null)return null;var n=l[vt]||null;if(n===null)return null;l=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(tl)try{var da={};Object.defineProperty(da,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{Wu=!1}var Sl=null,Iu=null,vi=null;function Yf(){if(vi)return vi;var e,t=Iu,l=t.length,n,a="value"in Sl?Sl.value:Sl.textContent,i=a.length;for(e=0;e<l&&t[e]===a[e];e++);var c=l-e;for(n=1;n<=c&&t[l-n]===a[i-n];n++);return vi=a.slice(e,1<n?1-n:void 0)}function pi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gi(){return!0}function Xf(){return!1}function pt(e){function t(l,n,a,i,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(l=e[r],this[r]=l?l(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gi:Xf,this.isPropagationStopped=Xf,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=gi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=gi)},persist:function(){},isPersistent:gi}),t}var Jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Si=pt(Jl),ma=R({},Jl,{view:0,detail:0}),Lh=pt(ma),Pu,ec,ha,bi=R({},ma,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,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!==ha&&(ha&&e.type==="mousemove"?(Pu=e.screenX-ha.screenX,ec=e.screenY-ha.screenY):ec=Pu=0,ha=e),Pu)},movementY:function(e){return"movementY"in e?e.movementY:ec}}),Qf=pt(bi),qh=R({},bi,{dataTransfer:0}),Bh=pt(qh),Gh=R({},ma,{relatedTarget:0}),tc=pt(Gh),Yh=R({},Jl,{animationName:0,elapsedTime:0,pseudoElement:0}),Xh=pt(Yh),Qh=R({},Jl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vh=pt(Qh),Zh=R({},Jl,{data:0}),Vf=pt(Zh),kh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $h(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jh[e])?!!t[e]:!1}function lc(){return $h}var Fh=R({},ma,{key:function(e){if(e.key){var t=kh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=pi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(e){return e.type==="keypress"?pi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?pi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wh=pt(Fh),Ih=R({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=pt(Ih),Ph=R({},ma,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),ey=pt(Ph),ty=R({},Jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ly=pt(ty),ny=R({},bi,{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}),ay=pt(ny),iy=R({},Jl,{newState:0,oldState:0}),uy=pt(iy),cy=[9,13,27,32],nc=tl&&"CompositionEvent"in window,ya=null;tl&&"documentMode"in document&&(ya=document.documentMode);var sy=tl&&"TextEvent"in window&&!ya,kf=tl&&(!nc||ya&&8<ya&&11>=ya),Kf=" ",Jf=!1;function $f(e,t){switch(e){case"keyup":return cy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function fy(e,t){switch(e){case"compositionend":return Ff(t);case"keypress":return t.which!==32?null:(Jf=!0,Kf);case"textInput":return e=t.data,e===Kf&&Jf?null:e;default:return null}}function oy(e,t){if(Tn)return e==="compositionend"||!nc&&$f(e,t)?(e=Yf(),vi=Iu=Sl=null,Tn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kf&&t.locale!=="ko"?null:t.data;default:return null}}var ry={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 Wf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ry[e.type]:t==="textarea"}function If(e,t,l,n){En?Nn?Nn.push(n):Nn=[n]:En=n,t=fu(t,"onChange"),0<t.length&&(l=new Si("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var va=null,pa=null;function dy(e){Ud(e,0)}function xi(e){var t=oa(e);if(wf(t))return e}function Pf(e,t){if(e==="change")return t}var eo=!1;if(tl){var ac;if(tl){var ic="oninput"in document;if(!ic){var to=document.createElement("div");to.setAttribute("oninput","return;"),ic=typeof to.oninput=="function"}ac=ic}else ac=!1;eo=ac&&(!document.documentMode||9<document.documentMode)}function lo(){va&&(va.detachEvent("onpropertychange",no),pa=va=null)}function no(e){if(e.propertyName==="value"&&xi(pa)){var t=[];If(t,pa,e,$u(e)),Gf(dy,t)}}function my(e,t,l){e==="focusin"?(lo(),va=t,pa=l,va.attachEvent("onpropertychange",no)):e==="focusout"&&lo()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(pa)}function yy(e,t){if(e==="click")return xi(t)}function vy(e,t){if(e==="input"||e==="change")return xi(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:py;function ga(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!aa.call(t,a)||!Tt(e[a],t[a]))return!1}return!0}function ao(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function io(e,t){var l=ao(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ao(l)}}function uo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function co(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=hi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=hi(e.document)}return t}function uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gy=tl&&"documentMode"in document&&11>=document.documentMode,zn=null,cc=null,Sa=null,sc=!1;function so(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;sc||zn==null||zn!==hi(n)||(n=zn,"selectionStart"in n&&uc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Sa&&ga(Sa,n)||(Sa=n,n=fu(cc,"onSelect"),0<n.length&&(t=new Si("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=zn)))}function $l(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var An={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionrun:$l("Transition","TransitionRun"),transitionstart:$l("Transition","TransitionStart"),transitioncancel:$l("Transition","TransitionCancel"),transitionend:$l("Transition","TransitionEnd")},fc={},fo={};tl&&(fo=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function Fl(e){if(fc[e])return fc[e];if(!An[e])return e;var t=An[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in fo)return fc[e]=t[l];return e}var oo=Fl("animationend"),ro=Fl("animationiteration"),mo=Fl("animationstart"),Sy=Fl("transitionrun"),by=Fl("transitionstart"),xy=Fl("transitioncancel"),ho=Fl("transitionend"),yo=new Map,oc="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(" ");oc.push("scrollEnd");function Xt(e,t){yo.set(e,t),Kl(t,[e])}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rt=[],_n=0,rc=0;function Ei(){for(var e=_n,t=rc=_n=0;t<e;){var l=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var i=Rt[t];if(Rt[t++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}i!==0&&vo(l,a,i)}}function Ni(e,t,l,n){Rt[_n++]=e,Rt[_n++]=t,Rt[_n++]=l,Rt[_n++]=n,rc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function dc(e,t,l,n){return Ni(e,t,l,n),Ti(e)}function Wl(e,t){return Ni(e,null,null,t),Ti(e)}function vo(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=e.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-mt(l),e=i.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),i):null}function Ti(e){if(50<Ya)throw Ya=0,xs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mn={};function jy(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,l,n){return new jy(e,t,l,n)}function mc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ll(e,t){var l=e.alternate;return l===null?(l=zt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function po(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zi(e,t,l,n,a,i){var c=0;if(n=e,typeof e=="function")mc(e)&&(c=1);else if(typeof e=="string")c=A0(e,l,x.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Le:return e=zt(31,l,t,a),e.elementType=Le,e.lanes=i,e;case se:return Il(l.children,a,i,t);case Se:c=8,a|=24;break;case k:return e=zt(12,l,t,a|2),e.elementType=k,e.lanes=i,e;case ye:return e=zt(13,l,t,a),e.elementType=ye,e.lanes=i,e;case te:return e=zt(19,l,t,a),e.elementType=te,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:c=10;break e;case _e:c=9;break e;case G:c=11;break e;case K:c=14;break e;case be:c=16,n=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=zt(c,l,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function Il(e,t,l,n){return e=zt(7,e,n,t),e.lanes=l,e}function hc(e,t,l){return e=zt(6,e,null,t),e.lanes=l,e}function go(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function yc(e,t,l){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var So=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var l=So.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ci(t)},So.set(e,t),t)}return{value:e,source:t,stack:ci(t)}}var Cn=[],On=0,Ai=null,ba=0,Ht=[],Lt=0,bl=null,Kt=1,Jt="";function nl(e,t){Cn[On++]=ba,Cn[On++]=Ai,Ai=e,ba=t}function bo(e,t,l){Ht[Lt++]=Kt,Ht[Lt++]=Jt,Ht[Lt++]=bl,bl=e;var n=Kt;e=Jt;var a=32-mt(n)-1;n&=~(1<<a),l+=1;var i=32-mt(t)+a;if(30<i){var c=a-a%5;i=(n&(1<<c)-1).toString(32),n>>=c,a-=c,Kt=1<<32-mt(t)+a|l<<a|n,Jt=i+e}else Kt=1<<i|l<<a|n,Jt=e}function vc(e){e.return!==null&&(nl(e,1),bo(e,1,0))}function pc(e){for(;e===Ai;)Ai=Cn[--On],Cn[On]=null,ba=Cn[--On],Cn[On]=null;for(;e===bl;)bl=Ht[--Lt],Ht[Lt]=null,Jt=Ht[--Lt],Ht[Lt]=null,Kt=Ht[--Lt],Ht[Lt]=null}function xo(e,t){Ht[Lt++]=Kt,Ht[Lt++]=Jt,Ht[Lt++]=bl,Kt=t.id,Jt=t.overflow,bl=e}var ut=null,Re=null,pe=!1,xl=null,qt=!1,gc=Error(o(519));function jl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xa(Ut(t,e)),gc}function jo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[it]=e,t[vt]=n,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<Qa.length;l++)re(Qa[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),Rf(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),Hf(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||Bd(t.textContent,l)?(n.popover!=null&&(re("beforetoggle",t),re("toggle",t)),n.onScroll!=null&&re("scroll",t),n.onScrollEnd!=null&&re("scrollend",t),n.onClick!=null&&(t.onclick=el),t=!0):t=!1,t||jl(e,!0)}function Eo(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:ut=ut.return}}function Dn(e){if(e!==ut)return!1;if(!pe)return Eo(e),pe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Hs(e.type,e.memoizedProps)),l=!l),l&&Re&&jl(e),Eo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Jd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Re=Jd(e)}else t===27?(t=Re,Hl(e.type)?(e=Ys,Ys=null,Re=e):Re=t):Re=ut?Gt(e.stateNode.nextSibling):null;return!0}function Pl(){Re=ut=null,pe=!1}function Sc(){var e=xl;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),xl=null),e}function xa(e){xl===null?xl=[e]:xl.push(e)}var bc=p(null),en=null,al=null;function El(e,t,l){L(bc,t._currentValue),t._currentValue=l}function il(e){e._currentValue=bc.current,C(bc)}function xc(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function jc(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var c=a.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=a;for(var m=0;m<t.length;m++)if(r.context===t[m]){i.lanes|=l,r=i.alternate,r!==null&&(r.lanes|=l),xc(i.return,l,e),n||(c=null);break e}i=r.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(o(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),xc(c,l,e),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===e){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function wn(e,t,l,n){e=null;for(var a=t,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var r=a.type;Tt(a.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(a===V.current){if(c=a.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ja):e=[Ja])}a=a.return}e!==null&&jc(t,e,l,n),t.flags|=262144}function _i(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tn(e){en=e,al=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return No(en,e)}function Mi(e,t){return en===null&&tn(e),No(e,t)}function No(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},al===null){if(e===null)throw Error(o(308));al=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else al=al.next=t;return l}var Ey=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ny=u.unstable_scheduleCallback,Ty=u.unstable_NormalPriority,Ze={$$typeof:de,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ec(){return{controller:new Ey,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Ny(Ty,function(){e.controller.abort()})}var Ea=null,Nc=0,Rn=0,Un=null;function zy(e,t){if(Ea===null){var l=Ea=[];Nc=0,Rn=As(),Un={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Nc++,t.then(To,To),t}function To(){if(--Nc===0&&Ea!==null){Un!==null&&(Un.status="fulfilled");var e=Ea;Ea=null,Rn=0,Un=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ay(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var zo=E.S;E.S=function(e,t){fd=at(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zy(e,t),zo!==null&&zo(e,t)};var ln=p(null);function Tc(){var e=ln.current;return e!==null?e:De.pooledCache}function Ci(e,t){t===null?L(ln,ln.current):L(ln,t.pool)}function Ao(){var e=Tc();return e===null?null:{parent:Ze._currentValue,pool:e}}var Hn=Error(o(460)),zc=Error(o(474)),Oi=Error(o(542)),Di={then:function(){}};function _o(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(el,el),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oo(e),e;default:if(typeof t.status=="string")t.then(el,el);else{if(e=De,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oo(e),e}throw an=t,Hn}}function nn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(an=l,Hn):l}}var an=null;function Co(){if(an===null)throw Error(o(459));var e=an;return an=null,e}function Oo(e){if(e===Hn||e===Oi)throw Error(o(483))}var Ln=null,Na=0;function wi(e){var t=Na;return Na+=1,Ln===null&&(Ln=[]),Mo(Ln,e,t)}function Ta(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ri(e,t){throw t.$$typeof===B?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Do(e){function t(g,y){if(e){var b=g.deletions;b===null?(g.deletions=[y],g.flags|=16):b.push(y)}}function l(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function n(g){for(var y=new Map;g!==null;)g.key!==null?y.set(g.key,g):y.set(g.index,g),g=g.sibling;return y}function a(g,y){return g=ll(g,y),g.index=0,g.sibling=null,g}function i(g,y,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<y?(g.flags|=67108866,y):b):(g.flags|=67108866,y)):(g.flags|=1048576,y)}function c(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function r(g,y,b,M){return y===null||y.tag!==6?(y=hc(b,g.mode,M),y.return=g,y):(y=a(y,b),y.return=g,y)}function m(g,y,b,M){var W=b.type;return W===se?A(g,y,b.props.children,M,b.key):y!==null&&(y.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===be&&nn(W)===y.type)?(y=a(y,b.props),Ta(y,b),y.return=g,y):(y=zi(b.type,b.key,b.props,null,g.mode,M),Ta(y,b),y.return=g,y)}function j(g,y,b,M){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=yc(b,g.mode,M),y.return=g,y):(y=a(y,b.children||[]),y.return=g,y)}function A(g,y,b,M,W){return y===null||y.tag!==7?(y=Il(b,g.mode,M,W),y.return=g,y):(y=a(y,b),y.return=g,y)}function O(g,y,b){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=hc(""+y,g.mode,b),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case $:return b=zi(y.type,y.key,y.props,null,g.mode,b),Ta(b,y),b.return=g,b;case I:return y=yc(y,g.mode,b),y.return=g,y;case be:return y=nn(y),O(g,y,b)}if(Xe(y)||Y(y))return y=Il(y,g.mode,b,null),y.return=g,y;if(typeof y.then=="function")return O(g,wi(y),b);if(y.$$typeof===de)return O(g,Mi(g,y),b);Ri(g,y)}return null}function N(g,y,b,M){var W=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return W!==null?null:r(g,y,""+b,M);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $:return b.key===W?m(g,y,b,M):null;case I:return b.key===W?j(g,y,b,M):null;case be:return b=nn(b),N(g,y,b,M)}if(Xe(b)||Y(b))return W!==null?null:A(g,y,b,M,null);if(typeof b.then=="function")return N(g,y,wi(b),M);if(b.$$typeof===de)return N(g,y,Mi(g,b),M);Ri(g,b)}return null}function T(g,y,b,M,W){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return g=g.get(b)||null,r(y,g,""+M,W);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case $:return g=g.get(M.key===null?b:M.key)||null,m(y,g,M,W);case I:return g=g.get(M.key===null?b:M.key)||null,j(y,g,M,W);case be:return M=nn(M),T(g,y,b,M,W)}if(Xe(M)||Y(M))return g=g.get(b)||null,A(y,g,M,W,null);if(typeof M.then=="function")return T(g,y,b,wi(M),W);if(M.$$typeof===de)return T(g,y,b,Mi(y,M),W);Ri(y,M)}return null}function Z(g,y,b,M){for(var W=null,je=null,J=y,ie=y=0,he=null;J!==null&&ie<b.length;ie++){J.index>ie?(he=J,J=null):he=J.sibling;var Ee=N(g,J,b[ie],M);if(Ee===null){J===null&&(J=he);break}e&&J&&Ee.alternate===null&&t(g,J),y=i(Ee,y,ie),je===null?W=Ee:je.sibling=Ee,je=Ee,J=he}if(ie===b.length)return l(g,J),pe&&nl(g,ie),W;if(J===null){for(;ie<b.length;ie++)J=O(g,b[ie],M),J!==null&&(y=i(J,y,ie),je===null?W=J:je.sibling=J,je=J);return pe&&nl(g,ie),W}for(J=n(J);ie<b.length;ie++)he=T(J,g,ie,b[ie],M),he!==null&&(e&&he.alternate!==null&&J.delete(he.key===null?ie:he.key),y=i(he,y,ie),je===null?W=he:je.sibling=he,je=he);return e&&J.forEach(function(Yl){return t(g,Yl)}),pe&&nl(g,ie),W}function P(g,y,b,M){if(b==null)throw Error(o(151));for(var W=null,je=null,J=y,ie=y=0,he=null,Ee=b.next();J!==null&&!Ee.done;ie++,Ee=b.next()){J.index>ie?(he=J,J=null):he=J.sibling;var Yl=N(g,J,Ee.value,M);if(Yl===null){J===null&&(J=he);break}e&&J&&Yl.alternate===null&&t(g,J),y=i(Yl,y,ie),je===null?W=Yl:je.sibling=Yl,je=Yl,J=he}if(Ee.done)return l(g,J),pe&&nl(g,ie),W;if(J===null){for(;!Ee.done;ie++,Ee=b.next())Ee=O(g,Ee.value,M),Ee!==null&&(y=i(Ee,y,ie),je===null?W=Ee:je.sibling=Ee,je=Ee);return pe&&nl(g,ie),W}for(J=n(J);!Ee.done;ie++,Ee=b.next())Ee=T(J,g,ie,Ee.value,M),Ee!==null&&(e&&Ee.alternate!==null&&J.delete(Ee.key===null?ie:Ee.key),y=i(Ee,y,ie),je===null?W=Ee:je.sibling=Ee,je=Ee);return e&&J.forEach(function(q0){return t(g,q0)}),pe&&nl(g,ie),W}function Oe(g,y,b,M){if(typeof b=="object"&&b!==null&&b.type===se&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case $:e:{for(var W=b.key;y!==null;){if(y.key===W){if(W=b.type,W===se){if(y.tag===7){l(g,y.sibling),M=a(y,b.props.children),M.return=g,g=M;break e}}else if(y.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===be&&nn(W)===y.type){l(g,y.sibling),M=a(y,b.props),Ta(M,b),M.return=g,g=M;break e}l(g,y);break}else t(g,y);y=y.sibling}b.type===se?(M=Il(b.props.children,g.mode,M,b.key),M.return=g,g=M):(M=zi(b.type,b.key,b.props,null,g.mode,M),Ta(M,b),M.return=g,g=M)}return c(g);case I:e:{for(W=b.key;y!==null;){if(y.key===W)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){l(g,y.sibling),M=a(y,b.children||[]),M.return=g,g=M;break e}else{l(g,y);break}else t(g,y);y=y.sibling}M=yc(b,g.mode,M),M.return=g,g=M}return c(g);case be:return b=nn(b),Oe(g,y,b,M)}if(Xe(b))return Z(g,y,b,M);if(Y(b)){if(W=Y(b),typeof W!="function")throw Error(o(150));return b=W.call(b),P(g,y,b,M)}if(typeof b.then=="function")return Oe(g,y,wi(b),M);if(b.$$typeof===de)return Oe(g,y,Mi(g,b),M);Ri(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,y!==null&&y.tag===6?(l(g,y.sibling),M=a(y,b),M.return=g,g=M):(l(g,y),M=hc(b,g.mode,M),M.return=g,g=M),c(g)):l(g,y)}return function(g,y,b,M){try{Na=0;var W=Oe(g,y,b,M);return Ln=null,W}catch(J){if(J===Hn||J===Oi)throw J;var je=zt(29,J,null,g.mode);return je.lanes=M,je.return=g,je}finally{}}}var un=Do(!0),wo=Do(!1),Nl=!1;function Ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ne&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Ti(e),vo(e,null,l),t}return Ni(e,n,t,l),Ti(e)}function za(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ef(e,l)}}function Mc(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?a=i=t:i=i.next=t}else a=i=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cc=!1;function Aa(){if(Cc){var e=Un;if(e!==null)throw e}}function _a(e,t,l,n){Cc=!1;var a=e.updateQueue;Nl=!1;var i=a.firstBaseUpdate,c=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var m=r,j=m.next;m.next=null,c===null?i=j:c.next=j,c=m;var A=e.alternate;A!==null&&(A=A.updateQueue,r=A.lastBaseUpdate,r!==c&&(r===null?A.firstBaseUpdate=j:r.next=j,A.lastBaseUpdate=m))}if(i!==null){var O=a.baseState;c=0,A=j=m=null,r=i;do{var N=r.lane&-536870913,T=N!==r.lane;if(T?(me&N)===N:(n&N)===N){N!==0&&N===Rn&&(Cc=!0),A!==null&&(A=A.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var Z=e,P=r;N=t;var Oe=l;switch(P.tag){case 1:if(Z=P.payload,typeof Z=="function"){O=Z.call(Oe,O,N);break e}O=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=P.payload,N=typeof Z=="function"?Z.call(Oe,O,N):Z,N==null)break e;O=R({},O,N);break e;case 2:Nl=!0}}N=r.callback,N!==null&&(e.flags|=64,T&&(e.flags|=8192),T=a.callbacks,T===null?a.callbacks=[N]:T.push(N))}else T={lane:N,tag:r.tag,payload:r.payload,callback:r.callback,next:null},A===null?(j=A=T,m=O):A=A.next=T,c|=N;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;T=r,r=T.next,T.next=null,a.lastBaseUpdate=T,a.shared.pending=null}}while(!0);A===null&&(m=O),a.baseState=m,a.firstBaseUpdate=j,a.lastBaseUpdate=A,i===null&&(a.shared.lanes=0),Ol|=c,e.lanes=c,e.memoizedState=O}}function Ro(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Uo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ro(l[e],t)}var qn=p(null),Ui=p(0);function Ho(e,t){e=hl,L(Ui,e),L(qn,t),hl=e|t.baseLanes}function Oc(){L(Ui,hl),L(qn,qn.current)}function Dc(){hl=Ui.current,C(qn),C(Ui)}var At=p(null),Bt=null;function Al(e){var t=e.alternate;L(Qe,Qe.current&1),L(At,e),Bt===null&&(t===null||qn.current!==null||t.memoizedState!==null)&&(Bt=e)}function wc(e){L(Qe,Qe.current),L(At,e),Bt===null&&(Bt=e)}function Lo(e){e.tag===22?(L(Qe,Qe.current),L(At,e),Bt===null&&(Bt=e)):_l()}function _l(){L(Qe,Qe.current),L(At,At.current)}function _t(e){C(At),Bt===e&&(Bt=null),C(Qe)}var Qe=p(0);function Hi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Bs(l)||Gs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ul=0,ae=null,Me=null,ke=null,Li=!1,Bn=!1,cn=!1,qi=0,Ma=0,Gn=null,_y=0;function Be(){throw Error(o(321))}function Rc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Tt(e[l],t[l]))return!1;return!0}function Uc(e,t,l,n,a,i){return ul=i,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?br:Fc,cn=!1,i=l(n,a),cn=!1,Bn&&(i=Bo(t,l,n,a)),qo(e),i}function qo(e){E.H=Da;var t=Me!==null&&Me.next!==null;if(ul=0,ke=Me=ae=null,Li=!1,Ma=0,Gn=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&_i(e)&&(Ke=!0))}function Bo(e,t,l,n){ae=e;var a=0;do{if(Bn&&(Gn=null),Ma=0,Bn=!1,25<=a)throw Error(o(301));if(a+=1,ke=Me=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}E.H=xr,i=t(l,n)}while(Bn);return i}function My(){var e=E.H,t=e.useState()[0];return t=typeof t.then=="function"?Ca(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ae.flags|=1024),t}function Hc(){var e=qi!==0;return qi=0,e}function Lc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function qc(e){if(Li){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Li=!1}ul=0,ke=Me=ae=null,Bn=!1,Ma=qi=0,Gn=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ae.memoizedState=ke=e:ke=ke.next=e,ke}function Ve(){if(Me===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=ke===null?ae.memoizedState:ke.next;if(t!==null)ke=t,Me=e;else{if(e===null)throw ae.alternate===null?Error(o(467)):Error(o(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},ke===null?ae.memoizedState=ke=e:ke=ke.next=e}return ke}function Bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ca(e){var t=Ma;return Ma+=1,Gn===null&&(Gn=[]),e=Mo(Gn,e,t),t=ae,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?br:Fc),e}function Gi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ca(e);if(e.$$typeof===de)return ct(e)}throw Error(o(438,String(e)))}function Bc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=ae.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Bi(),ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Nt;return t.index++,l}function cl(e,t){return typeof t=="function"?t(e):t}function Yi(e){var t=Ve();return Gc(t,Me,e)}function Gc(e,t,l){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=l;var a=e.baseQueue,i=n.pending;if(i!==null){if(a!==null){var c=a.next;a.next=i.next,i.next=c}t.baseQueue=a=i,n.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var r=c=null,m=null,j=t,A=!1;do{var O=j.lane&-536870913;if(O!==j.lane?(me&O)===O:(ul&O)===O){var N=j.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),O===Rn&&(A=!0);else if((ul&N)===N){j=j.next,N===Rn&&(A=!0);continue}else O={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=O,c=i):m=m.next=O,ae.lanes|=N,Ol|=N;O=j.action,cn&&l(i,O),i=j.hasEagerState?j.eagerState:l(i,O)}else N={lane:O,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(r=m=N,c=i):m=m.next=N,ae.lanes|=O,Ol|=O;j=j.next}while(j!==null&&j!==t);if(m===null?c=i:m.next=r,!Tt(i,e.memoizedState)&&(Ke=!0,A&&(l=Un,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Yc(e){var t=Ve(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,i=t.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do i=e(i,c.action),c=c.next;while(c!==a);Tt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,n]}function Go(e,t,l){var n=ae,a=Ve(),i=pe;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!Tt((Me||a).memoizedState,l);if(c&&(a.memoizedState=l,Ke=!0),a=a.queue,Vc(Qo.bind(null,n,a,e),[e]),a.getSnapshot!==t||c||ke!==null&&ke.memoizedState.tag&1){if(n.flags|=2048,Yn(9,{destroy:void 0},Xo.bind(null,n,a,l,t),null),De===null)throw Error(o(349));i||(ul&127)!==0||Yo(n,t,l)}return l}function Yo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=Bi(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Xo(e,t,l,n){t.value=l,t.getSnapshot=n,Vo(t)&&Zo(e)}function Qo(e,t,l){return l(function(){Vo(t)&&Zo(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Tt(e,l)}catch{return!0}}function Zo(e){var t=Wl(e,2);t!==null&&jt(t,e,2)}function Xc(e){var t=ht();if(typeof e=="function"){var l=e;if(e=l(),cn){kt(!0);try{l()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:e},t}function ko(e,t,l,n){return e.baseState=l,Gc(e,Me,typeof n=="function"?n:cl)}function Cy(e,t,l,n,a){if(Vi(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};E.T!==null?l(!0):i.isTransition=!1,n(i),l=t.pending,l===null?(i.next=t.pending=i,Ko(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Ko(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var i=E.T,c={};E.T=c;try{var r=l(a,n),m=E.S;m!==null&&m(c,r),Jo(e,t,r)}catch(j){Qc(e,t,j)}finally{i!==null&&c.types!==null&&(i.types=c.types),E.T=i}}else try{i=l(a,n),Jo(e,t,i)}catch(j){Qc(e,t,j)}}function Jo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){$o(e,t,n)},function(n){return Qc(e,t,n)}):$o(e,t,l)}function $o(e,t,l){t.status="fulfilled",t.value=l,Fo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ko(e,l)))}function Qc(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,Fo(t),t=t.next;while(t!==n)}e.action=null}function Fo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wo(e,t){return t}function Io(e,t){if(pe){var l=De.formState;if(l!==null){e:{var n=ae;if(pe){if(Re){t:{for(var a=Re,i=qt;a.nodeType!==8;){if(!i){a=null;break t}if(a=Gt(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Re=Gt(a.nextSibling),n=a.data==="F!";break e}}jl(n)}n=!1}n&&(t=l[0])}}return l=ht(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:t},l.queue=n,l=pr.bind(null,ae,n),n.dispatch=l,n=Xc(!1),i=$c.bind(null,ae,!1,n.queue),n=ht(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=Cy.bind(null,ae,a,i,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function Po(e){var t=Ve();return er(t,Me,e)}function er(e,t,l){if(t=Gc(e,t,Wo)[0],e=Yi(cl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Ca(t)}catch(c){throw c===Hn?Oi:c}else n=t;t=Ve();var a=t.queue,i=a.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Yn(9,{destroy:void 0},Oy.bind(null,a,l),null)),[n,i,e]}function Oy(e,t){e.action=t}function tr(e){var t=Ve(),l=Me;if(l!==null)return er(t,l,e);Ve(),t=t.memoizedState,l=Ve();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function Yn(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Bi(),ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function lr(){return Ve().memoizedState}function Xi(e,t,l,n){var a=ht();ae.flags|=e,a.memoizedState=Yn(1|t,{destroy:void 0},l,n===void 0?null:n)}function Qi(e,t,l,n){var a=Ve();n=n===void 0?null:n;var i=a.memoizedState.inst;Me!==null&&n!==null&&Rc(n,Me.memoizedState.deps)?a.memoizedState=Yn(t,i,l,n):(ae.flags|=e,a.memoizedState=Yn(1|t,i,l,n))}function nr(e,t){Xi(8390656,8,e,t)}function Vc(e,t){Qi(2048,8,e,t)}function Dy(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Bi(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ar(e){var t=Ve().memoizedState;return Dy({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ir(e,t){return Qi(4,2,e,t)}function ur(e,t){return Qi(4,4,e,t)}function cr(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function sr(e,t,l){l=l!=null?l.concat([e]):null,Qi(4,4,cr.bind(null,t,e),l)}function Zc(){}function fr(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Rc(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function or(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Rc(t,n[1]))return n[0];if(n=e(),cn){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[n,t],n}function kc(e,t,l){return l===void 0||(ul&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=rd(),ae.lanes|=e,Ol|=e,l)}function rr(e,t,l,n){return Tt(l,t)?l:qn.current!==null?(e=kc(e,l,n),Tt(e,t)||(Ke=!0),e):(ul&42)===0||(ul&1073741824)!==0&&(me&261930)===0?(Ke=!0,e.memoizedState=l):(e=rd(),ae.lanes|=e,Ol|=e,t)}function dr(e,t,l,n,a){var i=q.p;q.p=i!==0&&8>i?i:8;var c=E.T,r={};E.T=r,$c(e,!1,t,l);try{var m=a(),j=E.S;if(j!==null&&j(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var A=Ay(m,n);Oa(e,t,A,Ot(e))}else Oa(e,t,n,Ot(e))}catch(O){Oa(e,t,{then:function(){},status:"rejected",reason:O},Ot())}finally{q.p=i,c!==null&&r.types!==null&&(c.types=r.types),E.T=c}}function wy(){}function Kc(e,t,l,n){if(e.tag!==5)throw Error(o(476));var a=mr(e).queue;dr(e,a,t,F,l===null?wy:function(){return hr(e),l(n)})}function mr(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function hr(e){var t=mr(e);t.next===null&&(t=e.alternate.memoizedState),Oa(e,t.next.queue,{},Ot())}function Jc(){return ct(Ja)}function yr(){return Ve().memoizedState}function vr(){return Ve().memoizedState}function Ry(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ot();e=Tl(l);var n=zl(t,e,l);n!==null&&(jt(n,t,l),za(n,t,l)),t={cache:Ec()},e.payload=t;return}t=t.return}}function Uy(e,t,l){var n=Ot();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Vi(e)?gr(t,l):(l=dc(e,t,l,n),l!==null&&(jt(l,e,n),Sr(l,t,n)))}function pr(e,t,l){var n=Ot();Oa(e,t,l,n)}function Oa(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Vi(e))gr(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,r=i(c,l);if(a.hasEagerState=!0,a.eagerState=r,Tt(r,c))return Ni(e,t,a,0),De===null&&Ei(),!1}catch{}finally{}if(l=dc(e,t,a,n),l!==null)return jt(l,e,n),Sr(l,t,n),!0}return!1}function $c(e,t,l,n){if(n={lane:2,revertLane:As(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vi(e)){if(t)throw Error(o(479))}else t=dc(e,l,n,2),t!==null&&jt(t,e,2)}function Vi(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function gr(e,t){Bn=Li=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Sr(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Ef(e,l)}}var Da={readContext:ct,use:Gi,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};Da.useEffectEvent=Be;var br={readContext:ct,use:Gi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:nr,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,cr.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=ht();t=t===void 0?null:t;var n=e();if(cn){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=ht();if(l!==void 0){var a=l(t);if(cn){kt(!0);try{l(t)}finally{kt(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=Uy.bind(null,ae,e),[n.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Xc(e);var t=e.queue,l=pr.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Zc,useDeferredValue:function(e,t){var l=ht();return kc(l,e,t)},useTransition:function(){var e=Xc(!1);return e=dr.bind(null,ae,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=ae,a=ht();if(pe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),De===null)throw Error(o(349));(me&127)!==0||Yo(n,t,l)}a.memoizedState=l;var i={value:l,getSnapshot:t};return a.queue=i,nr(Qo.bind(null,n,i,e),[e]),n.flags|=2048,Yn(9,{destroy:void 0},Xo.bind(null,n,i,l,t),null),l},useId:function(){var e=ht(),t=De.identifierPrefix;if(pe){var l=Jt,n=Kt;l=(n&~(1<<32-mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=qi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=_y++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Jc,useFormState:Io,useActionState:Io,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=$c.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:Bc,useCacheRefresh:function(){return ht().memoizedState=Ry.bind(null,ae)},useEffectEvent:function(e){var t=ht(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Fc={readContext:ct,use:Gi,useCallback:fr,useContext:ct,useEffect:Vc,useImperativeHandle:sr,useInsertionEffect:ir,useLayoutEffect:ur,useMemo:or,useReducer:Yi,useRef:lr,useState:function(){return Yi(cl)},useDebugValue:Zc,useDeferredValue:function(e,t){var l=Ve();return rr(l,Me.memoizedState,e,t)},useTransition:function(){var e=Yi(cl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ca(e),t]},useSyncExternalStore:Go,useId:yr,useHostTransitionStatus:Jc,useFormState:Po,useActionState:Po,useOptimistic:function(e,t){var l=Ve();return ko(l,Me,e,t)},useMemoCache:Bc,useCacheRefresh:vr};Fc.useEffectEvent=ar;var xr={readContext:ct,use:Gi,useCallback:fr,useContext:ct,useEffect:Vc,useImperativeHandle:sr,useInsertionEffect:ir,useLayoutEffect:ur,useMemo:or,useReducer:Yc,useRef:lr,useState:function(){return Yc(cl)},useDebugValue:Zc,useDeferredValue:function(e,t){var l=Ve();return Me===null?kc(l,e,t):rr(l,Me.memoizedState,e,t)},useTransition:function(){var e=Yc(cl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Ca(e),t]},useSyncExternalStore:Go,useId:yr,useHostTransitionStatus:Jc,useFormState:tr,useActionState:tr,useOptimistic:function(e,t){var l=Ve();return Me!==null?ko(l,Me,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Bc,useCacheRefresh:vr};xr.useEffectEvent=ar;function Wc(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:R({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ic={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Ot(),a=Tl(n);a.payload=t,l!=null&&(a.callback=l),t=zl(e,a,n),t!==null&&(jt(t,e,n),za(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Ot(),a=Tl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=zl(e,a,n),t!==null&&(jt(t,e,n),za(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ot(),n=Tl(l);n.tag=2,t!=null&&(n.callback=t),t=zl(e,n,l),t!==null&&(jt(t,e,l),za(t,e,l))}};function jr(e,t,l,n,a,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,i,c):t.prototype&&t.prototype.isPureReactComponent?!ga(l,n)||!ga(a,i):!0}function Er(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Ic.enqueueReplaceState(t,t.state,null)}function sn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=R({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Nr(e){ji(e)}function Tr(e){console.error(e)}function zr(e){ji(e)}function Zi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ar(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Pc(e,t,l){return l=Tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Zi(e,t)},l}function _r(e){return e=Tl(e),e.tag=3,e}function Mr(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;e.payload=function(){return a(i)},e.callback=function(){Ar(t,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Ar(t,l,n),typeof a!="function"&&(Dl===null?Dl=new Set([this]):Dl.add(this));var r=n.stack;this.componentDidCatch(n.value,{componentStack:r!==null?r:""})})}function Hy(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&wn(t,l,a,!0),l=At.current,l!==null){switch(l.tag){case 31:case 13:return Bt===null?nu():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Di?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Ns(e,n,a)),!1;case 22:return l.flags|=65536,n===Di?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),Ns(e,n,a)),!1}throw Error(o(435,l.tag))}return Ns(e,n,a),nu(),!1}if(pe)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==gc&&(e=Error(o(422),{cause:n}),xa(Ut(e,l)))):(n!==gc&&(t=Error(o(423),{cause:n}),xa(Ut(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Ut(n,l),a=Pc(e.stateNode,n,a),Mc(e,a),Ge!==4&&(Ge=2)),!1;var i=Error(o(520),{cause:n});if(i=Ut(i,l),Ga===null?Ga=[i]:Ga.push(i),Ge!==4&&(Ge=2),t===null)return!0;n=Ut(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=Pc(l.stateNode,n,e),Mc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Dl===null||!Dl.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=_r(a),Mr(a,e,l,n),Mc(l,a),!1}l=l.return}while(l!==null);return!1}var es=Error(o(461)),Ke=!1;function st(e,t,l,n){t.child=e===null?wo(t,null,l,n):un(t,e.child,l,n)}function Cr(e,t,l,n,a){l=l.render;var i=t.ref;if("ref"in n){var c={};for(var r in n)r!=="ref"&&(c[r]=n[r])}else c=n;return tn(t),n=Uc(e,t,l,c,i,a),r=Hc(),e!==null&&!Ke?(Lc(e,t,a),sl(e,t,a)):(pe&&r&&vc(t),t.flags|=1,st(e,t,n,a),t.child)}function Or(e,t,l,n,a){if(e===null){var i=l.type;return typeof i=="function"&&!mc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Dr(e,t,i,n,a)):(e=zi(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!ss(e,a)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:ga,l(c,n)&&e.ref===t.ref)return sl(e,t,a)}return t.flags|=1,e=ll(i,n),e.ref=t.ref,e.return=t,t.child=e}function Dr(e,t,l,n,a){if(e!==null){var i=e.memoizedProps;if(ga(i,n)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=n=i,ss(e,a))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,sl(e,t,a)}return ts(e,t,l,n,a)}function wr(e,t,l,n){var a=n.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,t.child=null;return Rr(e,t,i,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ci(t,i!==null?i.cachePool:null),i!==null?Ho(t,i):Oc(),Lo(t);else return n=t.lanes=536870912,Rr(e,t,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(Ci(t,i.cachePool),Ho(t,i),_l(),t.memoizedState=null):(e!==null&&Ci(t,null),Oc(),_l());return st(e,t,a,l),t.child}function wa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rr(e,t,l,n,a){var i=Tc();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ci(t,null),Oc(),Lo(t),e!==null&&wn(e,t,n,!0),t.childLanes=a,null}function ki(e,t){return t=Ji({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ur(e,t,l){return un(t,e.child,null,l),e=ki(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function Ly(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(n.mode==="hidden")return e=ki(t,n),t.lanes=536870912,wa(null,e);if(wc(t),(e=Re)?(e=Kd(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bl!==null?{id:Kt,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},l=go(e),l.return=t,t.child=l,ut=t,Re=null)):e=null,e===null)throw jl(t);return t.lanes=536870912,null}return ki(t,n)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(wc(t),a)if(t.flags&256)t.flags&=-257,t=Ur(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ke||wn(e,t,l,!1),a=(l&e.childLanes)!==0,Ke||a){if(n=De,n!==null&&(c=Nf(n,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Wl(e,c),jt(n,e,c),es;nu(),t=Ur(e,t,l)}else e=i.treeContext,Re=Gt(c.nextSibling),ut=t,pe=!0,xl=null,qt=!1,e!==null&&xo(t,e),t=ki(t,n),t.flags|=4096;return t}return e=ll(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function ts(e,t,l,n,a){return tn(t),l=Uc(e,t,l,n,void 0,a),n=Hc(),e!==null&&!Ke?(Lc(e,t,a),sl(e,t,a)):(pe&&n&&vc(t),t.flags|=1,st(e,t,l,a),t.child)}function Hr(e,t,l,n,a,i){return tn(t),t.updateQueue=null,l=Bo(t,n,l,a),qo(e),n=Hc(),e!==null&&!Ke?(Lc(e,t,i),sl(e,t,i)):(pe&&n&&vc(t),t.flags|=1,st(e,t,l,i),t.child)}function Lr(e,t,l,n,a){if(tn(t),t.stateNode===null){var i=Mn,c=l.contextType;typeof c=="object"&&c!==null&&(i=ct(c)),i=new l(n,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ic,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=n,i.state=t.memoizedState,i.refs={},Ac(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?ct(c):Mn,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Wc(t,l,c,n),i.state=t.memoizedState),typeof l.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&&Ic.enqueueReplaceState(i,i.state,null),_a(t,n,i,a),Aa(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,m=sn(l,r);i.props=m;var j=i.context,A=l.contextType;c=Mn,typeof A=="object"&&A!==null&&(c=ct(A));var O=l.getDerivedStateFromProps;A=typeof O=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,A||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||j!==c)&&Er(t,i,n,c),Nl=!1;var N=t.memoizedState;i.state=N,_a(t,n,i,a),Aa(),j=t.memoizedState,r||N!==j||Nl?(typeof O=="function"&&(Wc(t,l,O,n),j=t.memoizedState),(m=Nl||jr(t,l,m,n,N,j,c))?(A||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"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=j),i.props=n,i.state=j,i.context=c,n=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,_c(e,t),c=t.memoizedProps,A=sn(l,c),i.props=A,O=t.pendingProps,N=i.context,j=l.contextType,m=Mn,typeof j=="object"&&j!==null&&(m=ct(j)),r=l.getDerivedStateFromProps,(j=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==O||N!==m)&&Er(t,i,n,m),Nl=!1,N=t.memoizedState,i.state=N,_a(t,n,i,a),Aa();var T=t.memoizedState;c!==O||N!==T||Nl||e!==null&&e.dependencies!==null&&_i(e.dependencies)?(typeof r=="function"&&(Wc(t,l,r,n),T=t.memoizedState),(A=Nl||jr(t,l,A,n,N,T,m)||e!==null&&e.dependencies!==null&&_i(e.dependencies))?(j||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,T,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,T,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=T),i.props=n,i.state=T,i.context=m,n=A):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),n=!1)}return i=n,Ki(e,t),n=(t.flags&128)!==0,i||n?(i=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&n?(t.child=un(t,e.child,null,a),t.child=un(t,null,l,a)):st(e,t,l,a),t.memoizedState=i.state,e=t.child):e=sl(e,t,a),e}function qr(e,t,l,n){return Pl(),t.flags|=256,st(e,t,l,n),t.child}var ls={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ns(e){return{baseLanes:e,cachePool:Ao()}}function as(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ct),e}function Br(e,t,l){var n=t.pendingProps,a=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),c&&(a=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(a?Al(t):_l(),(e=Re)?(e=Kd(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bl!==null?{id:Kt,overflow:Jt}:null,retryLane:536870912,hydrationErrors:null},l=go(e),l.return=t,t.child=l,ut=t,Re=null)):e=null,e===null)throw jl(t);return Gs(e)?t.lanes=32:t.lanes=536870912,null}var r=n.children;return n=n.fallback,a?(_l(),a=t.mode,r=Ji({mode:"hidden",children:r},a),n=Il(n,a,l,null),r.return=t,n.return=t,r.sibling=n,t.child=r,n=t.child,n.memoizedState=ns(l),n.childLanes=as(e,c,l),t.memoizedState=ls,wa(null,n)):(Al(t),is(t,r))}var m=e.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(i)t.flags&256?(Al(t),t.flags&=-257,t=us(e,t,l)):t.memoizedState!==null?(_l(),t.child=e.child,t.flags|=128,t=null):(_l(),r=n.fallback,a=t.mode,n=Ji({mode:"visible",children:n.children},a),r=Il(r,a,l,null),r.flags|=2,n.return=t,r.return=t,n.sibling=r,t.child=n,un(t,e.child,null,l),n=t.child,n.memoizedState=ns(l),n.childLanes=as(e,c,l),t.memoizedState=ls,t=wa(null,n));else if(Al(t),Gs(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var j=c.dgst;c=j,n=Error(o(419)),n.stack="",n.digest=c,xa({value:n,source:null,stack:null}),t=us(e,t,l)}else if(Ke||wn(e,t,l,!1),c=(l&e.childLanes)!==0,Ke||c){if(c=De,c!==null&&(n=Nf(c,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Wl(e,n),jt(c,e,n),es;Bs(r)||nu(),t=us(e,t,l)}else Bs(r)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Re=Gt(r.nextSibling),ut=t,pe=!0,xl=null,qt=!1,e!==null&&xo(t,e),t=is(t,n.children),t.flags|=4096);return t}return a?(_l(),r=n.fallback,a=t.mode,m=e.child,j=m.sibling,n=ll(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,j!==null?r=ll(j,r):(r=Il(r,a,l,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,wa(null,n),n=t.child,r=e.child.memoizedState,r===null?r=ns(l):(a=r.cachePool,a!==null?(m=Ze._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Ao(),r={baseLanes:r.baseLanes|l,cachePool:a}),n.memoizedState=r,n.childLanes=as(e,c,l),t.memoizedState=ls,wa(e.child,n)):(Al(t),l=e.child,e=l.sibling,l=ll(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function is(e,t){return t=Ji({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ji(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function us(e,t,l){return un(t,e.child,null,l),e=is(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gr(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),xc(e.return,t,l)}function cs(e,t,l,n,a,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=i)}function Yr(e,t,l){var n=t.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var c=Qe.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,L(Qe,c),st(e,t,n,l),n=pe?ba:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gr(e,l,t);else if(e.tag===19)Gr(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(l=t.child,a=null;l!==null;)e=l.alternate,e!==null&&Hi(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),cs(t,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Hi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}cs(t,!0,l,null,i,n);break;case"together":cs(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function sl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ol|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(wn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=ll(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ll(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ss(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_i(e)))}function qy(e,t,l){switch(t.tag){case 3:fe(t,t.stateNode.containerInfo),El(t,Ze,e.memoizedState.cache),Pl();break;case 27:case 5:Ie(t);break;case 4:fe(t,t.stateNode.containerInfo);break;case 10:El(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Al(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Br(e,t,l):(Al(t),e=sl(e,t,l),e!==null?e.sibling:null);Al(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(wn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return Yr(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),L(Qe,Qe.current),n)break;return null;case 22:return t.lanes=0,wr(e,t,l,t.pendingProps);case 24:El(t,Ze,e.memoizedState.cache)}return sl(e,t,l)}function Xr(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!ss(e,l)&&(t.flags&128)===0)return Ke=!1,qy(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,pe&&(t.flags&1048576)!==0&&bo(t,ba,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=nn(t.elementType),t.type=e,typeof e=="function")mc(e)?(n=sn(e,n),t.tag=1,t=Lr(null,t,e,n,l)):(t.tag=0,t=ts(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===G){t.tag=11,t=Cr(null,t,e,n,l);break e}else if(a===K){t.tag=14,t=Or(null,t,e,n,l);break e}}throw t=Te(e)||e,Error(o(306,t,""))}}return t;case 0:return ts(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=sn(n,t.pendingProps),Lr(e,t,n,a,l);case 3:e:{if(fe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var i=t.memoizedState;a=i.element,_c(e,t),_a(t,n,null,l);var c=t.memoizedState;if(n=c.cache,El(t,Ze,n),n!==i.cache&&jc(t,[Ze],l,!0),Aa(),n=c.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=qr(e,t,n,l);break e}else if(n!==a){a=Ut(Error(o(424)),t),xa(a),t=qr(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=Gt(e.firstChild),ut=t,pe=!0,xl=null,qt=!0,l=wo(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Pl(),n===a){t=sl(e,t,l);break e}st(e,t,n,l)}t=t.child}return t;case 26:return Ki(e,t),e===null?(l=Pd(t.type,null,t.pendingProps,null))?t.memoizedState=l:pe||(l=t.type,e=t.pendingProps,n=ou(Q.current).createElement(l),n[it]=t,n[vt]=e,ft(n,l,e),et(n),t.stateNode=n):t.memoizedState=Pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ie(t),e===null&&pe&&(n=t.stateNode=Fd(t.type,t.pendingProps,Q.current),ut=t,qt=!0,a=Re,Hl(t.type)?(Ys=a,Re=Gt(n.firstChild)):Re=a),st(e,t,t.pendingProps.children,l),Ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((a=n=Re)&&(n=h0(n,t.type,t.pendingProps,qt),n!==null?(t.stateNode=n,ut=t,Re=Gt(n.firstChild),qt=!1,a=!0):a=!1),a||jl(t)),Ie(t),a=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,n=i.children,Hs(a,i)?n=null:c!==null&&Hs(a,c)&&(t.flags|=32),t.memoizedState!==null&&(a=Uc(e,t,My,null,null,l),Ja._currentValue=a),Ki(e,t),st(e,t,n,l),t.child;case 6:return e===null&&pe&&((e=l=Re)&&(l=y0(l,t.pendingProps,qt),l!==null?(t.stateNode=l,ut=t,Re=null,e=!0):e=!1),e||jl(t)),null;case 13:return Br(e,t,l);case 4:return fe(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=un(t,null,n,l):st(e,t,n,l),t.child;case 11:return Cr(e,t,t.type,t.pendingProps,l);case 7:return st(e,t,t.pendingProps,l),t.child;case 8:return st(e,t,t.pendingProps.children,l),t.child;case 12:return st(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,El(t,t.type,n.value),st(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,tn(t),a=ct(a),n=n(a),t.flags|=1,st(e,t,n,l),t.child;case 14:return Or(e,t,t.type,t.pendingProps,l);case 15:return Dr(e,t,t.type,t.pendingProps,l);case 19:return Yr(e,t,l);case 31:return Ly(e,t,l);case 22:return wr(e,t,l,t.pendingProps);case 24:return tn(t),n=ct(Ze),e===null?(a=Tc(),a===null&&(a=De,i=Ec(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),t.memoizedState={parent:n,cache:a},Ac(t),El(t,Ze,a)):((e.lanes&l)!==0&&(_c(e,t),_a(t,null,null,l),Aa()),a=e.memoizedState,i=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),El(t,Ze,n)):(n=i.cache,El(t,Ze,n),n!==a.cache&&jc(t,[Ze],l,!0))),st(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function fl(e){e.flags|=4}function fs(e,t,l,n,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(yd())e.flags|=8192;else throw an=Di,zc}else e.flags&=-16777217}function Qr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!am(t))if(yd())e.flags|=8192;else throw an=Di,zc}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ri():536870912,e.lanes|=t,Zn|=t)}function Ra(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function By(e,t,l){var n=t.pendingProps;switch(pc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),il(Ze),ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Dn(t)?fl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sc())),Ue(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(fl(t),i!==null?(Ue(t),Qr(t,i)):(Ue(t),fs(t,a,null,n,l))):i?i!==e.memoizedState?(fl(t),Ue(t),Qr(t,i)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&fl(t),Ue(t),fs(t,a,e,n,l)),null;case 27:if(Pe(t),l=Q.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&fl(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}e=x.current,Dn(t)?jo(t):(e=Fd(a,n,l),t.stateNode=e,fl(t))}return Ue(t),null;case 5:if(Pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&fl(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}if(i=x.current,Dn(t))jo(t);else{var c=ou(Q.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}i[it]=t,i[vt]=n;e:for(c=t.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===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(ft(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&fl(t)}}return Ue(t),fs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&fl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=Q.current,Dn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=ut,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Bd(e.nodeValue,l)),e||jl(t,!0)}else e=ou(e).createTextNode(n),e[it]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Dn(t),l!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[it]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Dn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[it]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$i(t,t.updateQueue),Ue(t),null);case 4:return ue(),e===null&&Os(t.stateNode.containerInfo),Ue(t),null;case 10:return il(t.type),Ue(t),null;case 19:if(C(Qe),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)Ra(n,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Hi(e),i!==null){for(t.flags|=128,Ra(n,!1),e=i.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)po(l,e),l=l.sibling;return L(Qe,Qe.current&1|2),pe&&nl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&at()>eu&&(t.flags|=128,a=!0,Ra(n,!1),t.lanes=4194304)}else{if(!a)if(e=Hi(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Ra(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!pe)return Ue(t),null}else 2*at()-n.renderingStartTime>eu&&l!==536870912&&(t.flags|=128,a=!0,Ra(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=at(),e.sibling=null,l=Qe.current,L(Qe,a?l&1|2:l&1),pe&&nl(t,n.treeForkCount),e):(Ue(t),null);case 22:case 23:return _t(t),Dc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&$i(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&C(ln),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),il(Ze),Ue(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gy(e,t){switch(pc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return il(Ze),ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pe(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(o(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(Qe),null;case 4:return ue(),null;case 10:return il(t.type),null;case 22:case 23:return _t(t),Dc(),e!==null&&C(ln),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return il(Ze),null;case 25:return null;default:return null}}function Vr(e,t){switch(pc(t),t.tag){case 3:il(Ze),ue();break;case 26:case 27:case 5:Pe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:C(Qe);break;case 10:il(t.type);break;case 22:case 23:_t(t),Dc(),e!==null&&C(ln);break;case 24:il(Ze)}}function Ua(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var i=l.create,c=l.inst;n=i(),c.destroy=n}l=l.next}while(l!==a)}}catch(r){Ae(t,t.return,r)}}function Ml(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){var c=n.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,a=t;var m=l,j=r;try{j()}catch(A){Ae(a,m,A)}}}n=n.next}while(n!==i)}}catch(A){Ae(t,t.return,A)}}function Zr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Uo(t,l)}catch(n){Ae(e,e.return,n)}}}function kr(e,t,l){l.props=sn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Ae(e,t,n)}}function Ha(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(a){Ae(e,t,a)}}function $t(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Ae(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Ae(e,t,a)}else l.current=null}function Kr(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Ae(e,e.return,a)}}function os(e,t,l){try{var n=e.stateNode;s0(n,e.type,l,t),n[vt]=t}catch(a){Ae(e,e.return,a)}}function Jr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jr(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&&Hl(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 ds(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=el));else if(n!==4&&(n===27&&Hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ds(e,t,l),e=e.sibling;e!==null;)ds(e,t,l),e=e.sibling}function Fi(e,t,l){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(n!==4&&(n===27&&Hl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Fi(e,t,l),e=e.sibling;e!==null;)Fi(e,t,l),e=e.sibling}function $r(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ft(t,n,l),t[it]=e,t[vt]=l}catch(i){Ae(e,e.return,i)}}var ol=!1,Je=!1,ms=!1,Fr=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Yy(e,t){if(e=e.containerInfo,Rs=pu,e=co(e),uc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,r=-1,m=-1,j=0,A=0,O=e,N=null;t:for(;;){for(var T;O!==l||a!==0&&O.nodeType!==3||(r=c+a),O!==i||n!==0&&O.nodeType!==3||(m=c+n),O.nodeType===3&&(c+=O.nodeValue.length),(T=O.firstChild)!==null;)N=O,O=T;for(;;){if(O===e)break t;if(N===l&&++j===a&&(r=c),N===i&&++A===n&&(m=c),(T=O.nextSibling)!==null)break;O=N,N=O.parentNode}O=T}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(Us={focusedElem:e,selectionRange:l},pu=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)a=e[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var Z=sn(l.type,a);e=n.getSnapshotBeforeUpdate(Z,i),n.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ae(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)qs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":qs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function Wr(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:dl(e,l),n&4&&Ua(5,l);break;case 1:if(dl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ae(l,l.return,c)}else{var a=sn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ae(l,l.return,c)}}n&64&&Zr(l),n&512&&Ha(l,l.return);break;case 3:if(dl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Uo(e,t)}catch(c){Ae(l,l.return,c)}}break;case 27:t===null&&n&4&&$r(l);case 26:case 5:dl(e,l),t===null&&n&4&&Kr(l),n&512&&Ha(l,l.return);break;case 12:dl(e,l);break;case 31:dl(e,l),n&4&&ed(e,l);break;case 13:dl(e,l),n&4&&td(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fy.bind(null,l),v0(e,l))));break;case 22:if(n=l.memoizedState!==null||ol,!n){t=t!==null&&t.memoizedState!==null||Je,a=ol;var i=Je;ol=n,(Je=t)&&!i?ml(e,l,(l.subtreeFlags&8772)!==0):dl(e,l),ol=a,Je=i}break;case 30:break;default:dl(e,l)}}function Ir(e){var t=e.alternate;t!==null&&(e.alternate=null,Ir(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,gt=!1;function rl(e,t,l){for(l=l.child;l!==null;)Pr(e,t,l),l=l.sibling}function Pr(e,t,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(kl,l)}catch{}switch(l.tag){case 26:Je||$t(l,t),rl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||$t(l,t);var n=He,a=gt;Hl(l.type)&&(He=l.stateNode,gt=!1),rl(e,t,l),Za(l.stateNode),He=n,gt=a;break;case 5:Je||$t(l,t);case 6:if(n=He,a=gt,He=null,rl(e,t,l),He=n,gt=a,He!==null)if(gt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(l.stateNode)}catch(i){Ae(l,t,i)}else try{He.removeChild(l.stateNode)}catch(i){Ae(l,t,i)}break;case 18:He!==null&&(gt?(e=He,Zd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Pn(e)):Zd(He,l.stateNode));break;case 4:n=He,a=gt,He=l.stateNode.containerInfo,gt=!0,rl(e,t,l),He=n,gt=a;break;case 0:case 11:case 14:case 15:Ml(2,l,t),Je||Ml(4,l,t),rl(e,t,l);break;case 1:Je||($t(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&kr(l,t,n)),rl(e,t,l);break;case 21:rl(e,t,l);break;case 22:Je=(n=Je)||l.memoizedState!==null,rl(e,t,l),Je=n;break;default:rl(e,t,l)}}function ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pn(e)}catch(l){Ae(t,t.return,l)}}}function td(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pn(e)}catch(l){Ae(t,t.return,l)}}function Xy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Fr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Fr),t;default:throw Error(o(435,e.tag))}}function Wi(e,t){var l=Xy(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Wy.bind(null,e,n);n.then(a,a)}})}function St(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(Hl(r.type)){He=r.stateNode,gt=!1;break e}break;case 5:He=r.stateNode,gt=!1;break e;case 3:case 4:He=r.stateNode.containerInfo,gt=!0;break e}r=r.return}if(He===null)throw Error(o(160));Pr(i,c,a),He=null,gt=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ld(t,e),t=t.sibling}var Qt=null;function ld(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),bt(e),n&4&&(Ml(3,e,e.return),Ua(3,e),Ml(5,e,e.return));break;case 1:St(t,e),bt(e),n&512&&(Je||l===null||$t(l,l.return)),n&64&&ol&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Qt;if(St(t,e),bt(e),n&512&&(Je||l===null||$t(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null){e:{n=e.type,l=e.memoizedProps,a=a.ownerDocument||a;t:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[fa]||i[it]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),ft(i,n,l),i[it]=e,et(i),n=i;break e;case"link":var c=lm("link","href",a).get(n+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(i=c[r],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(r,1);break t}}i=a.createElement(n),ft(i,n,l),a.head.appendChild(i);break;case"meta":if(c=lm("meta","content",a).get(n+(l.content||""))){for(r=0;r<c.length;r++)if(i=c[r],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(r,1);break t}}i=a.createElement(n),ft(i,n,l),a.head.appendChild(i);break;default:throw Error(o(468,n))}i[it]=e,et(i),n=i}e.stateNode=n}else nm(a,e.type,e.stateNode);else e.stateNode=tm(a,n,e.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?nm(a,e.type,e.stateNode):tm(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&os(e,e.memoizedProps,l.memoizedProps)}break;case 27:St(t,e),bt(e),n&512&&(Je||l===null||$t(l,l.return)),l!==null&&n&4&&os(e,e.memoizedProps,l.memoizedProps);break;case 5:if(St(t,e),bt(e),n&512&&(Je||l===null||$t(l,l.return)),e.flags&32){a=e.stateNode;try{jn(a,"")}catch(Z){Ae(e,e.return,Z)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,os(e,a,l!==null?l.memoizedProps:a)),n&1024&&(ms=!0);break;case 6:if(St(t,e),bt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(Z){Ae(e,e.return,Z)}}break;case 3:if(mu=null,a=Qt,Qt=ru(t.containerInfo),St(t,e),Qt=a,bt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Pn(t.containerInfo)}catch(Z){Ae(e,e.return,Z)}ms&&(ms=!1,nd(e));break;case 4:n=Qt,Qt=ru(e.stateNode.containerInfo),St(t,e),bt(e),Qt=n;break;case 12:St(t,e),bt(e);break;case 31:St(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 13:St(t,e),bt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Pi=at()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=ol,A=Je;if(ol=j||a,Je=A||m,St(t,e),Je=A,ol=j,bt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||ol||Je||fn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,a)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=m.stateNode;var O=m.memoizedProps.style,N=O!=null&&O.hasOwnProperty("display")?O.display:null;r.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(Z){Ae(m,m.return,Z)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(Z){Ae(m,m.return,Z)}}}else if(t.tag===18){if(l===null){m=t;try{var T=m.stateNode;a?kd(T,!0):kd(m.stateNode,!1)}catch(Z){Ae(m,m.return,Z)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Wi(e,l))));break;case 19:St(t,e),bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 30:break;case 21:break;default:St(t,e),bt(e)}}function bt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(Jr(n)){l=n;break}n=n.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var a=l.stateNode,i=rs(e);Fi(e,i,a);break;case 5:var c=l.stateNode;l.flags&32&&(jn(c,""),l.flags&=-33);var r=rs(e);Fi(e,r,c);break;case 3:case 4:var m=l.stateNode.containerInfo,j=rs(e);ds(e,j,m);break;default:throw Error(o(161))}}catch(A){Ae(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function nd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;nd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wr(e,t.alternate,t),t=t.sibling}function fn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ml(4,t,t.return),fn(t);break;case 1:$t(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&kr(t,t.return,l),fn(t);break;case 27:Za(t.stateNode);case 26:case 5:$t(t,t.return),fn(t);break;case 22:t.memoizedState===null&&fn(t);break;case 30:fn(t);break;default:fn(t)}e=e.sibling}}function ml(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:ml(a,i,l),Ua(4,i);break;case 1:if(ml(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(j){Ae(n,n.return,j)}if(n=i,a=n.updateQueue,a!==null){var r=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)Ro(m[a],r)}catch(j){Ae(n,n.return,j)}}l&&c&64&&Zr(i),Ha(i,i.return);break;case 27:$r(i);case 26:case 5:ml(a,i,l),l&&n===null&&c&4&&Kr(i),Ha(i,i.return);break;case 12:ml(a,i,l);break;case 31:ml(a,i,l),l&&c&4&&ed(a,i);break;case 13:ml(a,i,l),l&&c&4&&td(a,i);break;case 22:i.memoizedState===null&&ml(a,i,l),Ha(i,i.return);break;case 30:break;default:ml(a,i,l)}t=t.sibling}}function hs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ja(l))}function ys(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Vt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ad(e,t,l,n),t=t.sibling}function ad(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,l,n),a&2048&&Ua(9,t);break;case 1:Vt(e,t,l,n);break;case 3:Vt(e,t,l,n),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e)));break;case 12:if(a&2048){Vt(e,t,l,n),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,r=i.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Ae(t,t.return,m)}}else Vt(e,t,l,n);break;case 31:Vt(e,t,l,n);break;case 13:Vt(e,t,l,n);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Vt(e,t,l,n):La(e,t):i._visibility&2?Vt(e,t,l,n):(i._visibility|=2,Xn(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&hs(c,t);break;case 24:Vt(e,t,l,n),a&2048&&ys(t.alternate,t);break;default:Vt(e,t,l,n)}}function Xn(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,r=l,m=n,j=c.flags;switch(c.tag){case 0:case 11:case 15:Xn(i,c,r,m,a),Ua(8,c);break;case 23:break;case 22:var A=c.stateNode;c.memoizedState!==null?A._visibility&2?Xn(i,c,r,m,a):La(i,c):(A._visibility|=2,Xn(i,c,r,m,a)),a&&j&2048&&hs(c.alternate,c);break;case 24:Xn(i,c,r,m,a),a&&j&2048&&ys(c.alternate,c);break;default:Xn(i,c,r,m,a)}t=t.sibling}}function La(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:La(l,n),a&2048&&hs(n.alternate,n);break;case 24:La(l,n),a&2048&&ys(n.alternate,n);break;default:La(l,n)}t=t.sibling}}var qa=8192;function Qn(e,t,l){if(e.subtreeFlags&qa)for(e=e.child;e!==null;)id(e,t,l),e=e.sibling}function id(e,t,l){switch(e.tag){case 26:Qn(e,t,l),e.flags&qa&&e.memoizedState!==null&&_0(l,Qt,e.memoizedState,e.memoizedProps);break;case 5:Qn(e,t,l);break;case 3:case 4:var n=Qt;Qt=ru(e.stateNode.containerInfo),Qn(e,t,l),Qt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=qa,qa=16777216,Qn(e,t,l),qa=n):Qn(e,t,l));break;default:Qn(e,t,l)}}function ud(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ba(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];tt=n,sd(n,e)}ud(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(e),e=e.sibling}function cd(e){switch(e.tag){case 0:case 11:case 15:Ba(e),e.flags&2048&&Ml(9,e,e.return);break;case 3:Ba(e);break;case 12:Ba(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ii(e)):Ba(e);break;default:Ba(e)}}function Ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];tt=n,sd(n,e)}ud(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ml(8,t,t.return),Ii(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Ii(t));break;default:Ii(t)}e=e.sibling}}function sd(e,t){for(;tt!==null;){var l=tt;switch(l.tag){case 0:case 11:case 15:Ml(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ja(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,tt=n;else e:for(l=e;tt!==null;){n=tt;var a=n.sibling,i=n.return;if(Ir(n),n===l){tt=null;break e}if(a!==null){a.return=i,tt=a;break e}tt=i}}}var Qy={getCacheForType:function(e){var t=ct(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ct(Ze).controller.signal}},Vy=typeof WeakMap=="function"?WeakMap:Map,Ne=0,De=null,oe=null,me=0,ze=0,Mt=null,Cl=!1,Vn=!1,vs=!1,hl=0,Ge=0,Ol=0,on=0,ps=0,Ct=0,Zn=0,Ga=null,xt=null,gs=!1,Pi=0,fd=0,eu=1/0,tu=null,Dl=null,We=0,wl=null,kn=null,yl=0,Ss=0,bs=null,od=null,Ya=0,xs=null;function Ot(){return(Ne&2)!==0&&me!==0?me&-me:E.T!==null?As():Tf()}function rd(){if(Ct===0)if((me&536870912)===0||pe){var e=yn;yn<<=1,(yn&3932160)===0&&(yn=262144),Ct=e}else Ct=536870912;return e=At.current,e!==null&&(e.flags|=32),Ct}function jt(e,t,l){(e===De&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Kn(e,0),Rl(e,me,Ct,!1)),sa(e,l),((Ne&2)===0||e!==De)&&(e===De&&((Ne&2)===0&&(on|=l),Ge===4&&Rl(e,me,Ct,!1)),Ft(e))}function dd(e,t,l){if((Ne&6)!==0)throw Error(o(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||yt(e,t),a=n?Ky(e,t):Es(e,t,!0),i=n;do{if(a===0){Vn&&!n&&Rl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Zy(l)){a=Es(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;a=Ga;var m=r.current.memoizedState.isDehydrated;if(m&&(Kn(r,c).flags|=256),c=Es(r,c,!1),c!==2){if(vs&&!m){r.errorRecoveryDisabledLanes|=i,on|=i,a=4;break e}i=xt,xt=a,i!==null&&(xt===null?xt=i:xt.push.apply(xt,i))}a=c}if(i=!1,a!==2)continue}}if(a===1){Kn(e,0),Rl(e,t,0,!0);break}e:{switch(n=e,i=a,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Rl(n,t,Ct,!Cl);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(a=Pi+300-at(),10<a)){if(Rl(n,t,Ct,!Cl),Fe(n,0,!0)!==0)break e;yl=t,n.timeoutHandle=Qd(md.bind(null,n,l,xt,tu,gs,t,Ct,on,Zn,Cl,i,"Throttled",-0,0),a);break e}md(n,l,xt,tu,gs,t,Ct,on,Zn,Cl,i,null,-0,0)}}break}while(!0);Ft(e)}function md(e,t,l,n,a,i,c,r,m,j,A,O,N,T){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},id(t,i,O);var Z=(i&62914560)===i?Pi-at():(i&4194048)===i?fd-at():0;if(Z=M0(O,Z),Z!==null){yl=i,e.cancelPendingCommit=Z(xd.bind(null,e,t,i,l,n,a,c,r,m,A,O,null,N,T)),Rl(e,i,c,!j);return}}xd(e,t,i,l,n,a,c,r,m)}function Zy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!Tt(i(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rl(e,t,l,n){t&=~ps,t&=~on,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var i=31-mt(a),c=1<<i;n[i]=-1,a&=~c}l!==0&&jf(e,l,t)}function lu(){return(Ne&6)===0?(Xa(0),!1):!0}function js(){if(oe!==null){if(ze===0)var e=oe.return;else e=oe,al=en=null,qc(e),Ln=null,Na=0,e=oe;for(;e!==null;)Vr(e.alternate,e),e=e.return;oe=null}}function Kn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,r0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),yl=0,js(),De=e,oe=l=ll(e.current,null),me=t,ze=0,Mt=null,Cl=!1,Vn=yt(e,t),vs=!1,Zn=Ct=ps=on=Ol=Ge=0,xt=Ga=null,gs=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-mt(n),i=1<<a;t|=e[a],n&=~i}return hl=t,Ei(),l}function hd(e,t){ae=null,E.H=Da,t===Hn||t===Oi?(t=Co(),ze=3):t===zc?(t=Co(),ze=4):ze=t===es?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,oe===null&&(Ge=1,Zi(e,Ut(t,e.current)))}function yd(){var e=At.current;return e===null?!0:(me&4194048)===me?Bt===null:(me&62914560)===me||(me&536870912)!==0?e===Bt:!1}function vd(){var e=E.H;return E.H=Da,e===null?Da:e}function pd(){var e=E.A;return E.A=Qy,e}function nu(){Ge=4,Cl||(me&4194048)!==me&&At.current!==null||(Vn=!0),(Ol&134217727)===0&&(on&134217727)===0||De===null||Rl(De,me,Ct,!1)}function Es(e,t,l){var n=Ne;Ne|=2;var a=vd(),i=pd();(De!==e||me!==t)&&(tu=null,Kn(e,t)),t=!1;var c=Ge;e:do try{if(ze!==0&&oe!==null){var r=oe,m=Mt;switch(ze){case 8:js(),c=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var j=ze;if(ze=0,Mt=null,Jn(e,r,m,j),l&&Vn){c=0;break e}break;default:j=ze,ze=0,Mt=null,Jn(e,r,m,j)}}ky(),c=Ge;break}catch(A){hd(e,A)}while(!0);return t&&e.shellSuspendCounter++,al=en=null,Ne=n,E.H=a,E.A=i,oe===null&&(De=null,me=0,Ei()),c}function ky(){for(;oe!==null;)gd(oe)}function Ky(e,t){var l=Ne;Ne|=2;var n=vd(),a=pd();De!==e||me!==t?(tu=null,eu=at()+500,Kn(e,t)):Vn=yt(e,t);e:do try{if(ze!==0&&oe!==null){t=oe;var i=Mt;t:switch(ze){case 1:ze=0,Mt=null,Jn(e,t,i,1);break;case 2:case 9:if(_o(i)){ze=0,Mt=null,Sd(t);break}t=function(){ze!==2&&ze!==9||De!==e||(ze=7),Ft(e)},i.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:_o(i)?(ze=0,Mt=null,Sd(t)):(ze=0,Mt=null,Jn(e,t,i,7));break;case 5:var c=null;switch(oe.tag){case 26:c=oe.memoizedState;case 5:case 27:var r=oe;if(c?am(c):r.stateNode.complete){ze=0,Mt=null;var m=r.sibling;if(m!==null)oe=m;else{var j=r.return;j!==null?(oe=j,au(j)):oe=null}break t}}ze=0,Mt=null,Jn(e,t,i,5);break;case 6:ze=0,Mt=null,Jn(e,t,i,6);break;case 8:js(),Ge=6;break e;default:throw Error(o(462))}}Jy();break}catch(A){hd(e,A)}while(!0);return al=en=null,E.H=n,E.A=a,Ne=l,oe!==null?0:(De=null,me=0,Ei(),Ge)}function Jy(){for(;oe!==null&&!Du();)gd(oe)}function gd(e){var t=Xr(e.alternate,e,hl);e.memoizedProps=e.pendingProps,t===null?au(e):oe=t}function Sd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Hr(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Hr(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:qc(t);default:Vr(l,t),t=oe=po(t,hl),t=Xr(l,t,hl)}e.memoizedProps=e.pendingProps,t===null?au(e):oe=t}function Jn(e,t,l,n){al=en=null,qc(t),Ln=null,Na=0;var a=t.return;try{if(Hy(e,a,t,l,me)){Ge=1,Zi(e,Ut(l,e.current)),oe=null;return}}catch(i){if(a!==null)throw oe=a,i;Ge=1,Zi(e,Ut(l,e.current)),oe=null;return}t.flags&32768?(pe||n===1?e=!0:Vn||(me&536870912)!==0?e=!1:(Cl=e=!0,(n===2||n===9||n===3||n===6)&&(n=At.current,n!==null&&n.tag===13&&(n.flags|=16384))),bd(t,e)):au(t)}function au(e){var t=e;do{if((t.flags&32768)!==0){bd(t,Cl);return}e=t.return;var l=By(t.alternate,t,hl);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Ge===0&&(Ge=5)}function bd(e,t){do{var l=Gy(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);Ge=6,oe=null}function xd(e,t,l,n,a,i,c,r,m){e.cancelPendingCommit=null;do iu();while(We!==0);if((Ne&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=rc,Ah(e,l,i,c,r,m),e===De&&(oe=De=null,me=0),kn=t,wl=e,yl=l,Ss=i,bs=a,od=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Iy(Zl,function(){return zd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=E.T,E.T=null,a=q.p,q.p=2,c=Ne,Ne|=4;try{Yy(e,t,l)}finally{Ne=c,q.p=a,E.T=n}}We=1,jd(),Ed(),Nd()}}function jd(){if(We===1){We=0;var e=wl,t=kn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=E.T,E.T=null;var n=q.p;q.p=2;var a=Ne;Ne|=4;try{ld(t,e);var i=Us,c=co(e.containerInfo),r=i.focusedElem,m=i.selectionRange;if(c!==r&&r&&r.ownerDocument&&uo(r.ownerDocument.documentElement,r)){if(m!==null&&uc(r)){var j=m.start,A=m.end;if(A===void 0&&(A=j),"selectionStart"in r)r.selectionStart=j,r.selectionEnd=Math.min(A,r.value.length);else{var O=r.ownerDocument||document,N=O&&O.defaultView||window;if(N.getSelection){var T=N.getSelection(),Z=r.textContent.length,P=Math.min(m.start,Z),Oe=m.end===void 0?P:Math.min(m.end,Z);!T.extend&&P>Oe&&(c=Oe,Oe=P,P=c);var g=io(r,P),y=io(r,Oe);if(g&&y&&(T.rangeCount!==1||T.anchorNode!==g.node||T.anchorOffset!==g.offset||T.focusNode!==y.node||T.focusOffset!==y.offset)){var b=O.createRange();b.setStart(g.node,g.offset),T.removeAllRanges(),P>Oe?(T.addRange(b),T.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),T.addRange(b))}}}}for(O=[],T=r;T=T.parentNode;)T.nodeType===1&&O.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<O.length;r++){var M=O[r];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}pu=!!Rs,Us=Rs=null}finally{Ne=a,q.p=n,E.T=l}}e.current=t,We=2}}function Ed(){if(We===2){We=0;var e=wl,t=kn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=E.T,E.T=null;var n=q.p;q.p=2;var a=Ne;Ne|=4;try{Wr(e,t.alternate,t)}finally{Ne=a,q.p=n,E.T=l}}We=3}}function Nd(){if(We===4||We===3){We=0,wu();var e=wl,t=kn,l=yl,n=od;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,kn=wl=null,Td(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Dl=null),Yu(l),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(kl,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=E.T,a=q.p,q.p=2,E.T=null;try{for(var i=e.onRecoverableError,c=0;c<n.length;c++){var r=n[c];i(r.value,{componentStack:r.stack})}}finally{E.T=t,q.p=a}}(yl&3)!==0&&iu(),Ft(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===xs?Ya++:(Ya=0,xs=e):Ya=0,Xa(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function iu(){return jd(),Ed(),Nd(),zd()}function zd(){if(We!==5)return!1;var e=wl,t=Ss;Ss=0;var l=Yu(yl),n=E.T,a=q.p;try{q.p=32>l?32:l,E.T=null,l=bs,bs=null;var i=wl,c=yl;if(We=0,kn=wl=null,yl=0,(Ne&6)!==0)throw Error(o(331));var r=Ne;if(Ne|=4,cd(i.current),ad(i,i.current,c,l),Ne=r,Xa(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(kl,i)}catch{}return!0}finally{q.p=a,E.T=n,Td(e,t)}}function Ad(e,t,l){t=Ut(l,t),t=Pc(e.stateNode,t,2),e=zl(e,t,2),e!==null&&(sa(e,2),Ft(e))}function Ae(e,t,l){if(e.tag===3)Ad(e,e,l);else for(;t!==null;){if(t.tag===3){Ad(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Dl===null||!Dl.has(n))){e=Ut(l,e),l=_r(2),n=zl(t,l,2),n!==null&&(Mr(l,n,t,e),sa(n,2),Ft(n));break}}t=t.return}}function Ns(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new Vy;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(vs=!0,a.add(l),e=$y.bind(null,e,t,l),t.then(e,e))}function $y(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,De===e&&(me&l)===l&&(Ge===4||Ge===3&&(me&62914560)===me&&300>at()-Pi?(Ne&2)===0&&Kn(e,0):ps|=l,Zn===me&&(Zn=0)),Ft(e)}function _d(e,t){t===0&&(t=ri()),e=Wl(e,t),e!==null&&(sa(e,t),Ft(e))}function Fy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),_d(e,l)}function Wy(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),_d(e,l)}function Iy(e,t){return ia(e,t)}var uu=null,$n=null,Ts=!1,cu=!1,zs=!1,Ul=0;function Ft(e){e!==$n&&e.next===null&&($n===null?uu=$n=e:$n=$n.next=e),cu=!0,Ts||(Ts=!0,e0())}function Xa(e,t){if(!zs&&cu){zs=!0;do for(var l=!1,n=uu;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var c=n.suspendedLanes,r=n.pingedLanes;i=(1<<31-mt(42|e)+1)-1,i&=a&~(c&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Dd(n,i))}else i=me,i=Fe(n,n===De?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||yt(n,i)||(l=!0,Dd(n,i));n=n.next}while(l);zs=!1}}function Py(){Md()}function Md(){cu=Ts=!1;var e=0;Ul!==0&&o0()&&(e=Ul);for(var t=at(),l=null,n=uu;n!==null;){var a=n.next,i=Cd(n,t);i===0?(n.next=null,l===null?uu=a:l.next=a,a===null&&($n=l)):(l=n,(e!==0||(i&3)!==0)&&(cu=!0)),n=a}We!==0&&We!==5||Xa(e),Ul!==0&&(Ul=0)}function Cd(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-mt(i),r=1<<c,m=a[c];m===-1?((r&l)===0||(r&n)!==0)&&(a[c]=It(r,t)):m<=t&&(e.expiredLanes|=r),i&=~r}if(t=De,l=me,l=Fe(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Vl(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||yt(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Vl(n),Yu(l)){case 2:case 8:l=si;break;case 32:l=Zl;break;case 268435456:l=fi;break;default:l=Zl}return n=Od.bind(null,e),l=ia(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Vl(n),e.callbackPriority=2,e.callbackNode=null,2}function Od(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(iu()&&e.callbackNode!==l)return null;var n=me;return n=Fe(e,e===De?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(dd(e,n,t),Cd(e,at()),e.callbackNode!=null&&e.callbackNode===l?Od.bind(null,e):null)}function Dd(e,t){if(iu())return null;dd(e,t,!0)}function e0(){d0(function(){(Ne&6)!==0?ia(ua,Py):Md()})}function As(){if(Ul===0){var e=Rn;e===0&&(e=hn,hn<<=1,(hn&261888)===0&&(hn=256)),Ul=e}return Ul}function wd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yi(""+e)}function Rd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function t0(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var i=wd((a[vt]||null).action),c=n.submitter;c&&(t=(t=c[vt]||null)?wd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var r=new Si("action","action",null,n,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ul!==0){var m=c?Rd(a,c):new FormData(a);Kc(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(r.preventDefault(),m=c?Rd(a,c):new FormData(a),Kc(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var _s=0;_s<oc.length;_s++){var Ms=oc[_s],l0=Ms.toLowerCase(),n0=Ms[0].toUpperCase()+Ms.slice(1);Xt(l0,"on"+n0)}Xt(oo,"onAnimationEnd"),Xt(ro,"onAnimationIteration"),Xt(mo,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Sy,"onTransitionRun"),Xt(by,"onTransitionStart"),Xt(xy,"onTransitionCancel"),Xt(ho,"onTransitionEnd"),bn("onMouseEnter",["mouseout","mouseover"]),bn("onMouseLeave",["mouseout","mouseover"]),bn("onPointerEnter",["pointerout","pointerover"]),bn("onPointerLeave",["pointerout","pointerover"]),Kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),a0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qa));function Ud(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var c=n.length-1;0<=c;c--){var r=n[c],m=r.instance,j=r.currentTarget;if(r=r.listener,m!==i&&a.isPropagationStopped())break e;i=r,a.currentTarget=j;try{i(a)}catch(A){ji(A)}a.currentTarget=null,i=m}else for(c=0;c<n.length;c++){if(r=n[c],m=r.instance,j=r.currentTarget,r=r.listener,m!==i&&a.isPropagationStopped())break e;i=r,a.currentTarget=j;try{i(a)}catch(A){ji(A)}a.currentTarget=null,i=m}}}}function re(e,t){var l=t[Xu];l===void 0&&(l=t[Xu]=new Set);var n=e+"__bubble";l.has(n)||(Hd(t,e,2,!1),l.add(n))}function Cs(e,t,l){var n=0;t&&(n|=4),Hd(l,e,n,t)}var su="_reactListening"+Math.random().toString(36).slice(2);function Os(e){if(!e[su]){e[su]=!0,_f.forEach(function(l){l!=="selectionchange"&&(a0.has(l)||Cs(l,!1,e),Cs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[su]||(t[su]=!0,Cs("selectionchange",!1,t))}}function Hd(e,t,l,n){switch(rm(t)){case 2:var a=D0;break;case 8:a=w0;break;default:a=ks}l=a.bind(null,t,l,e),a=void 0,!Wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Ds(e,t,l,n,a){var i=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var r=n.stateNode.containerInfo;if(r===a)break;if(c===4)for(c=n.return;c!==null;){var m=c.tag;if((m===3||m===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;r!==null;){if(c=pn(r),c===null)return;if(m=c.tag,m===5||m===6||m===26||m===27){n=i=c;continue e}r=r.parentNode}}n=n.return}Gf(function(){var j=i,A=$u(l),O=[];e:{var N=yo.get(e);if(N!==void 0){var T=Si,Z=e;switch(e){case"keypress":if(pi(l)===0)break e;case"keydown":case"keyup":T=Wh;break;case"focusin":Z="focus",T=tc;break;case"focusout":Z="blur",T=tc;break;case"beforeblur":case"afterblur":T=tc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=Bh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=ey;break;case oo:case ro:case mo:T=Xh;break;case ho:T=ly;break;case"scroll":case"scrollend":T=Lh;break;case"wheel":T=ay;break;case"copy":case"cut":case"paste":T=Vh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Zf;break;case"toggle":case"beforetoggle":T=uy}var P=(t&4)!==0,Oe=!P&&(e==="scroll"||e==="scrollend"),g=P?N!==null?N+"Capture":null:N;P=[];for(var y=j,b;y!==null;){var M=y;if(b=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||b===null||g===null||(M=ra(y,g),M!=null&&P.push(Va(y,M,b))),Oe)break;y=y.return}0<P.length&&(N=new T(N,Z,null,l,A),O.push({event:N,listeners:P}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",N&&l!==Ju&&(Z=l.relatedTarget||l.fromElement)&&(pn(Z)||Z[vn]))break e;if((T||N)&&(N=A.window===A?A:(N=A.ownerDocument)?N.defaultView||N.parentWindow:window,T?(Z=l.relatedTarget||l.toElement,T=j,Z=Z?pn(Z):null,Z!==null&&(Oe=S(Z),P=Z.tag,Z!==Oe||P!==5&&P!==27&&P!==6)&&(Z=null)):(T=null,Z=j),T!==Z)){if(P=Qf,M="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(P=Zf,M="onPointerLeave",g="onPointerEnter",y="pointer"),Oe=T==null?N:oa(T),b=Z==null?N:oa(Z),N=new P(M,y+"leave",T,l,A),N.target=Oe,N.relatedTarget=b,M=null,pn(A)===j&&(P=new P(g,y+"enter",Z,l,A),P.target=b,P.relatedTarget=Oe,M=P),Oe=M,T&&Z)t:{for(P=i0,g=T,y=Z,b=0,M=g;M;M=P(M))b++;M=0;for(var W=y;W;W=P(W))M++;for(;0<b-M;)g=P(g),b--;for(;0<M-b;)y=P(y),M--;for(;b--;){if(g===y||y!==null&&g===y.alternate){P=g;break t}g=P(g),y=P(y)}P=null}else P=null;T!==null&&Ld(O,N,T,P,!1),Z!==null&&Oe!==null&&Ld(O,Oe,Z,P,!0)}}e:{if(N=j?oa(j):window,T=N.nodeName&&N.nodeName.toLowerCase(),T==="select"||T==="input"&&N.type==="file")var je=Pf;else if(Wf(N))if(eo)je=vy;else{je=hy;var J=my}else T=N.nodeName,!T||T.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Ku(j.elementType)&&(je=Pf):je=yy;if(je&&(je=je(e,j))){If(O,je,l,A);break e}J&&J(e,N,j),e==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&ku(N,"number",N.value)}switch(J=j?oa(j):window,e){case"focusin":(Wf(J)||J.contentEditable==="true")&&(zn=J,cc=j,Sa=null);break;case"focusout":Sa=cc=zn=null;break;case"mousedown":sc=!0;break;case"contextmenu":case"mouseup":case"dragend":sc=!1,so(O,l,A);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":so(O,l,A)}var ie;if(nc)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else Tn?$f(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(kf&&l.locale!=="ko"&&(Tn||he!=="onCompositionStart"?he==="onCompositionEnd"&&Tn&&(ie=Yf()):(Sl=A,Iu="value"in Sl?Sl.value:Sl.textContent,Tn=!0)),J=fu(j,he),0<J.length&&(he=new Vf(he,e,null,l,A),O.push({event:he,listeners:J}),ie?he.data=ie:(ie=Ff(l),ie!==null&&(he.data=ie)))),(ie=sy?fy(e,l):oy(e,l))&&(he=fu(j,"onBeforeInput"),0<he.length&&(J=new Vf("onBeforeInput","beforeinput",null,l,A),O.push({event:J,listeners:he}),J.data=ie)),t0(O,e,j,l,A)}Ud(O,t)})}function Va(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fu(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=ra(e,l),a!=null&&n.unshift(Va(e,a,i)),a=ra(e,t),a!=null&&n.push(Va(e,a,i))),e.tag===3)return n;e=e.return}return[]}function i0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ld(e,t,l,n,a){for(var i=t._reactName,c=[];l!==null&&l!==n;){var r=l,m=r.alternate,j=r.stateNode;if(r=r.tag,m!==null&&m===n)break;r!==5&&r!==26&&r!==27||j===null||(m=j,a?(j=ra(l,i),j!=null&&c.unshift(Va(l,j,m))):a||(j=ra(l,i),j!=null&&c.push(Va(l,j,m)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var u0=/\r\n?/g,c0=/\u0000|\uFFFD/g;function qd(e){return(typeof e=="string"?e:""+e).replace(u0,`
49
+ `).replace(c0,"")}function Bd(e,t){return t=qd(t),qd(e)===t}function Ce(e,t,l,n,a,i){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||jn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&jn(e,""+n);break;case"className":mi(e,"class",n);break;case"tabIndex":mi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,n);break;case"style":qf(e,n,i);break;case"data":if(t!=="object"){mi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=yi(""+n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",a.name,a,null),Ce(e,t,"formEncType",a.formEncType,a,null),Ce(e,t,"formMethod",a.formMethod,a,null),Ce(e,t,"formTarget",a.formTarget,a,null)):(Ce(e,t,"encType",a.encType,a,null),Ce(e,t,"method",a.method,a,null),Ce(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=yi(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=el);break;case"onScroll":n!=null&&re("scroll",e);break;case"onScrollEnd":n!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=yi(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""+n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":re("beforetoggle",e),re("toggle",e),di(e,"popover",n);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":di(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Uh.get(l)||l,di(e,l,n))}}function ws(e,t,l,n,a,i){switch(l){case"style":qf(e,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof n=="string"?jn(e,n):(typeof n=="number"||typeof n=="bigint")&&jn(e,""+n);break;case"onScroll":n!=null&&re("scroll",e);break;case"onScrollEnd":n!=null&&re("scrollend",e);break;case"onClick":n!=null&&(e.onclick=el);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),i=e[vt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,n,a);break e}l in e?e[l]=n:n===!0?e.setAttribute(l,""):di(e,l,n)}}}function ft(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ce(e,t,i,c,l,null)}}a&&Ce(e,t,"srcSet",l.srcSet,l,null),n&&Ce(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var r=i=c=a=null,m=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var A=l[n];if(A!=null)switch(n){case"name":a=A;break;case"type":c=A;break;case"checked":m=A;break;case"defaultChecked":j=A;break;case"value":i=A;break;case"defaultValue":r=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:Ce(e,t,n,A,l,null)}}Rf(e,i,r,m,j,c,a,!1);return;case"select":re("invalid",e),n=c=i=null;for(a in l)if(l.hasOwnProperty(a)&&(r=l[a],r!=null))switch(a){case"value":i=r;break;case"defaultValue":c=r;break;case"multiple":n=r;default:Ce(e,t,a,r,l,null)}t=i,l=c,e.multiple=!!n,t!=null?xn(e,!!n,t,!1):l!=null&&xn(e,!!n,l,!0);return;case"textarea":re("invalid",e),i=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":n=r;break;case"defaultValue":a=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(o(91));break;default:Ce(e,t,c,r,l,null)}Hf(e,n,a,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ce(e,t,m,n,l,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(n=0;n<Qa.length;n++)re(Qa[n],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("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(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ce(e,t,j,n,l,null)}return;default:if(Ku(t)){for(A in l)l.hasOwnProperty(A)&&(n=l[A],n!==void 0&&ws(e,t,A,n,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(n=l[r],n!=null&&Ce(e,t,r,n,l,null))}function s0(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,c=null,r=null,m=null,j=null,A=null;for(T in l){var O=l[T];if(l.hasOwnProperty(T)&&O!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":m=O;default:n.hasOwnProperty(T)||Ce(e,t,T,null,n,O)}}for(var N in n){var T=n[N];if(O=l[N],n.hasOwnProperty(N)&&(T!=null||O!=null))switch(N){case"type":i=T;break;case"name":a=T;break;case"checked":j=T;break;case"defaultChecked":A=T;break;case"value":c=T;break;case"defaultValue":r=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==O&&Ce(e,t,N,T,n,O)}}Zu(e,c,r,m,j,A,i,a);return;case"select":T=c=r=N=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":T=m;default:n.hasOwnProperty(i)||Ce(e,t,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":N=i;break;case"defaultValue":r=i;break;case"multiple":c=i;default:i!==m&&Ce(e,t,a,i,n,m)}t=r,l=c,n=T,N!=null?xn(e,!!l,N,!1):!!n!=!!l&&(t!=null?xn(e,!!l,t,!0):xn(e,!!l,l?[]:"",!1));return;case"textarea":T=N=null;for(r in l)if(a=l[r],l.hasOwnProperty(r)&&a!=null&&!n.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Ce(e,t,r,null,n,a)}for(c in n)if(a=n[c],i=l[c],n.hasOwnProperty(c)&&(a!=null||i!=null))switch(c){case"value":N=a;break;case"defaultValue":T=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==i&&Ce(e,t,c,a,n,i)}Uf(e,N,T);return;case"option":for(var Z in l)if(N=l[Z],l.hasOwnProperty(Z)&&N!=null&&!n.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:Ce(e,t,Z,null,n,N)}for(m in n)if(N=n[m],T=l[m],n.hasOwnProperty(m)&&N!==T&&(N!=null||T!=null))switch(m){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Ce(e,t,m,N,n,T)}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 P in l)N=l[P],l.hasOwnProperty(P)&&N!=null&&!n.hasOwnProperty(P)&&Ce(e,t,P,null,n,N);for(j in n)if(N=n[j],T=l[j],n.hasOwnProperty(j)&&N!==T&&(N!=null||T!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,t));break;default:Ce(e,t,j,N,n,T)}return;default:if(Ku(t)){for(var Oe in l)N=l[Oe],l.hasOwnProperty(Oe)&&N!==void 0&&!n.hasOwnProperty(Oe)&&ws(e,t,Oe,void 0,n,N);for(A in n)N=n[A],T=l[A],!n.hasOwnProperty(A)||N===T||N===void 0&&T===void 0||ws(e,t,A,N,n,T);return}}for(var g in l)N=l[g],l.hasOwnProperty(g)&&N!=null&&!n.hasOwnProperty(g)&&Ce(e,t,g,null,n,N);for(O in n)N=n[O],T=l[O],!n.hasOwnProperty(O)||N===T||N==null&&T==null||Ce(e,t,O,N,n,T)}function Gd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,c=a.initiatorType,r=a.duration;if(i&&r&&Gd(c)){for(c=0,r=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],j=m.startTime;if(j>r)break;var A=m.transferSize,O=m.initiatorType;A&&Gd(O)&&(m=m.responseEnd,c+=A*(m<r?1:(r-j)/(m-j)))}if(--n,t+=8*(i+c)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rs=null,Us=null;function ou(e){return e.nodeType===9?e:e.ownerDocument}function Yd(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 Xd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Hs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ls=null;function o0(){var e=window.event;return e&&e.type==="popstate"?e===Ls?!1:(Ls=e,!0):(Ls=null,!1)}var Qd=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,Vd=typeof Promise=="function"?Promise:void 0,d0=typeof queueMicrotask=="function"?queueMicrotask:typeof Vd<"u"?function(e){return Vd.resolve(null).then(e).catch(m0)}:Qd;function m0(e){setTimeout(function(){throw e})}function Hl(e){return e==="head"}function Zd(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),Pn(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Za(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Za(l);for(var i=l.firstChild;i;){var c=i.nextSibling,r=i.nodeName;i[fa]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Za(e.ownerDocument.body);l=a}while(l);Pn(t)}function kd(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function qs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":qs(l),Qu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function h0(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[fa])switch(t){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!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function y0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Gt(e.nextSibling),e===null))return null;return e}function Kd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Bs(e){return e.data==="$?"||e.data==="$~"}function Gs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function v0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Ys=null;function Jd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Gt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function $d(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Fd(e,t,l){switch(t=ou(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Za(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qu(e)}var Yt=new Map,Wd=new Set;function ru(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vl=q.d;q.d={f:p0,r:g0,D:S0,C:b0,L:x0,m:j0,X:N0,S:E0,M:T0};function p0(){var e=vl.f(),t=lu();return e||t}function g0(e){var t=gn(e);t!==null&&t.tag===5&&t.type==="form"?hr(t):vl.r(e)}var Fn=typeof document>"u"?null:document;function Id(e,t,l){var n=Fn;if(n&&typeof t=="string"&&t){var a=wt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Wd.has(a)||(Wd.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),ft(t,"link",e),et(t),n.head.appendChild(t)))}}function S0(e){vl.D(e),Id("dns-prefetch",e,null)}function b0(e,t){vl.C(e,t),Id("preconnect",e,t)}function x0(e,t,l){vl.L(e,t,l);var n=Fn;if(n&&e&&t){var a='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+wt(l.imageSizes)+'"]')):a+='[href="'+wt(e)+'"]';var i=a;switch(t){case"style":i=Wn(e);break;case"script":i=In(e)}Yt.has(i)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Yt.set(i,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(ka(i))||t==="script"&&n.querySelector(Ka(i))||(t=n.createElement("link"),ft(t,"link",e),et(t),n.head.appendChild(t)))}}function j0(e,t){vl.m(e,t);var l=Fn;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+wt(n)+'"][href="'+wt(e)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=In(e)}if(!Yt.has(i)&&(e=R({rel:"modulepreload",href:e},t),Yt.set(i,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ka(i)))return}n=l.createElement("link"),ft(n,"link",e),et(n),l.head.appendChild(n)}}}function E0(e,t,l){vl.S(e,t,l);var n=Fn;if(n&&e){var a=Sn(n).hoistableStyles,i=Wn(e);t=t||"default";var c=a.get(i);if(!c){var r={loading:0,preload:null};if(c=n.querySelector(ka(i)))r.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Yt.get(i))&&Xs(e,l);var m=c=n.createElement("link");et(m),ft(m,"link",e),m._p=new Promise(function(j,A){m.onload=j,m.onerror=A}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,du(c,t,n)}c={type:"stylesheet",instance:c,count:1,state:r},a.set(i,c)}}}function N0(e,t){vl.X(e,t);var l=Fn;if(l&&e){var n=Sn(l).hoistableScripts,a=In(e),i=n.get(a);i||(i=l.querySelector(Ka(a)),i||(e=R({src:e,async:!0},t),(t=Yt.get(a))&&Qs(e,t),i=l.createElement("script"),et(i),ft(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function T0(e,t){vl.M(e,t);var l=Fn;if(l&&e){var n=Sn(l).hoistableScripts,a=In(e),i=n.get(a);i||(i=l.querySelector(Ka(a)),i||(e=R({src:e,async:!0,type:"module"},t),(t=Yt.get(a))&&Qs(e,t),i=l.createElement("script"),et(i),ft(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function Pd(e,t,l,n){var a=(a=Q.current)?ru(a):null;if(!a)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Wn(l.href),l=Sn(a).hoistableStyles,n=l.get(t),n||(n={type:"style",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Wn(l.href);var i=Sn(a).hoistableStyles,c=i.get(e);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=a.querySelector(ka(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Yt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Yt.set(e,l),i||z0(a,e,l,c.state))),t&&n===null)throw Error(o(528,""));return c}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=In(l),l=Sn(a).hoistableScripts,n=l.get(t),n||(n={type:"script",instance:null,count:0,state:null},l.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Wn(e){return'href="'+wt(e)+'"'}function ka(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function z0(e,t,l,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ft(t,"link",l),et(t),e.head.appendChild(t))}function In(e){return'[src="'+wt(e)+'"]'}function Ka(e){return"script[async]"+e}function tm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+wt(l.href)+'"]');if(n)return t.instance=n,et(n),n;var a=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),et(n),ft(n,"style",a),du(n,l.precedence,e),t.instance=n;case"stylesheet":a=Wn(l.href);var i=e.querySelector(ka(a));if(i)return t.state.loading|=4,t.instance=i,et(i),i;n=em(l),(a=Yt.get(a))&&Xs(n,a),i=(e.ownerDocument||e).createElement("link"),et(i);var c=i;return c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),ft(i,"link",n),t.state.loading|=4,du(i,l.precedence,e),t.instance=i;case"script":return i=In(l.src),(a=e.querySelector(Ka(i)))?(t.instance=a,et(a),a):(n=l,(a=Yt.get(i))&&(n=R({},l),Qs(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),et(a),ft(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,du(n,l.precedence,e));return t.instance}function du(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,c=0;c<n.length;c++){var r=n[c];if(r.dataset.precedence===t)i=r;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Xs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Qs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mu=null;function lm(e,t,l){if(mu===null){var n=new Map,a=mu=new Map;a.set(l,n)}else a=mu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var i=l[a];if(!(i[fa]||i[it]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var r=n.get(c);r?r.push(i):n.set(c,[i])}}return n}function nm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function A0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function _0(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Wn(n.href),i=t.querySelector(ka(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,et(i);return}i=t.ownerDocument||t,n=em(n),(a=Yt.get(a))&&Xs(n,a),i=i.createElement("link"),et(i);var c=i;c._p=new Promise(function(r,m){c.onload=r,c.onerror=m}),ft(i,"link",n),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=hu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Vs=0;function M0(e,t){return e.stylesheets&&e.count===0&&vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&vu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Vs===0&&(Vs=62500*f0());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Vs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yu=null;function vu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yu=new Map,t.forEach(C0,e),yu=null,hu.call(e))}function C0(e,t){if(!(t.state.loading&4)){var l=yu.get(e);if(l)var n=l.get(null);else{l=new Map,yu.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var c=a[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=t.instance,c=a.getAttribute("data-precedence"),i=l.get(c)||n,i===n&&l.set(null,a),l.set(c,a),this.count++,n=hu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ja={$$typeof:de,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function O0(e,t,l,n,a,i,c,r,m){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=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function im(e,t,l,n,a,i,c,r,m,j,A,O){return e=new O0(e,t,l,c,m,j,A,O,r),t=1,i===!0&&(t|=24),i=zt(3,null,null,t),e.current=i,i.stateNode=e,t=Ec(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:t},Ac(i),e}function um(e){return e?(e=Mn,e):Mn}function cm(e,t,l,n,a,i){a=um(a),n.context===null?n.context=a:n.pendingContext=a,n=Tl(t),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=zl(e,n,t),l!==null&&(jt(l,e,t),za(l,e,t))}function sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Zs(e,t){sm(e,t),(e=e.alternate)&&sm(e,t)}function fm(e){if(e.tag===13||e.tag===31){var t=Wl(e,67108864);t!==null&&jt(t,e,67108864),Zs(e,67108864)}}function om(e){if(e.tag===13||e.tag===31){var t=Ot();t=Gu(t);var l=Wl(e,t);l!==null&&jt(l,e,t),Zs(e,t)}}var pu=!0;function D0(e,t,l,n){var a=E.T;E.T=null;var i=q.p;try{q.p=2,ks(e,t,l,n)}finally{q.p=i,E.T=a}}function w0(e,t,l,n){var a=E.T;E.T=null;var i=q.p;try{q.p=8,ks(e,t,l,n)}finally{q.p=i,E.T=a}}function ks(e,t,l,n){if(pu){var a=Ks(n);if(a===null)Ds(e,t,n,gu,l),dm(e,n);else if(U0(a,e,t,l,n))n.stopPropagation();else if(dm(e,n),t&4&&-1<R0.indexOf(e)){for(;a!==null;){var i=gn(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=ce(i.pendingLanes);if(c!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var m=1<<31-mt(c);r.entanglements[1]|=m,c&=~m}Ft(i),(Ne&6)===0&&(eu=at()+500,Xa(0))}}break;case 31:case 13:r=Wl(i,2),r!==null&&jt(r,i,2),lu(),Zs(i,2)}if(i=Ks(n),i===null&&Ds(e,t,n,gu,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else Ds(e,t,n,null,l)}}function Ks(e){return e=$u(e),Js(e)}var gu=null;function Js(e){if(gu=null,e=pn(e),e!==null){var t=S(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=_(t),e!==null)return e;e=null}else if(l===31){if(e=D(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gu=e,null}function rm(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(Ru()){case ua:return 2;case si:return 8;case Zl:case Uu:return 32;case fi:return 268435456;default:return 32}default:return 32}}var $s=!1,Ll=null,ql=null,Bl=null,$a=new Map,Fa=new Map,Gl=[],R0="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 dm(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":ql=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":$a.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fa.delete(t.pointerId)}}function Wa(e,t,l,n,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},t!==null&&(t=gn(t),t!==null&&fm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function U0(e,t,l,n,a){switch(t){case"focusin":return Ll=Wa(Ll,e,t,l,n,a),!0;case"dragenter":return ql=Wa(ql,e,t,l,n,a),!0;case"mouseover":return Bl=Wa(Bl,e,t,l,n,a),!0;case"pointerover":var i=a.pointerId;return $a.set(i,Wa($a.get(i)||null,e,t,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Fa.set(i,Wa(Fa.get(i)||null,e,t,l,n,a)),!0}return!1}function mm(e){var t=pn(e.target);if(t!==null){var l=S(t);if(l!==null){if(t=l.tag,t===13){if(t=_(l),t!==null){e.blockedOn=t,zf(e.priority,function(){om(l)});return}}else if(t===31){if(t=D(l),t!==null){e.blockedOn=t,zf(e.priority,function(){om(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ks(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Ju=n,l.target.dispatchEvent(n),Ju=null}else return t=gn(l),t!==null&&fm(t),e.blockedOn=l,!1;t.shift()}return!0}function hm(e,t,l){Su(e)&&l.delete(t)}function H0(){$s=!1,Ll!==null&&Su(Ll)&&(Ll=null),ql!==null&&Su(ql)&&(ql=null),Bl!==null&&Su(Bl)&&(Bl=null),$a.forEach(hm),Fa.forEach(hm)}function bu(e,t){e.blockedOn===t&&(e.blockedOn=null,$s||($s=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,H0)))}var xu=null;function ym(e){xu!==e&&(xu=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){xu===e&&(xu=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Js(n||l)===null)continue;break}var i=gn(l);i!==null&&(e.splice(t,3),t-=3,Kc(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Pn(e){function t(m){return bu(m,e)}Ll!==null&&bu(Ll,e),ql!==null&&bu(ql,e),Bl!==null&&bu(Bl,e),$a.forEach(t),Fa.forEach(t);for(var l=0;l<Gl.length;l++){var n=Gl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)mm(l),l.blockedOn===null&&Gl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],c=a[vt]||null;if(typeof i=="function")c||ym(l);else if(c){var r=null;if(i&&i.hasAttribute("formAction")){if(a=i,c=i[vt]||null)r=c.formAction;else if(Js(a)!==null)continue}else r=c.action;typeof r=="function"?l[n+1]=r:(l.splice(n,3),n-=3),ym(l)}}}function vm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!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 n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Fs(e){this._internalRoot=e}ju.prototype.render=Fs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,n=Ot();cm(l,n,e,t,null,null)},ju.prototype.unmount=Fs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cm(e.current,2,null,e,null,null),lu(),t[vn]=null}};function ju(e){this._internalRoot=e}ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Gl.length&&t!==0&&t<Gl[l].priority;l++);Gl.splice(l,0,e),l===0&&mm(e)}};var pm=f.version;if(pm!=="19.2.6")throw Error(o(527,pm,"19.2.6"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var L0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eu.isDisabled&&Eu.supportsFiber)try{kl=Eu.inject(L0),dt=Eu}catch{}}return Pa.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,n="",a=Nr,i=Tr,c=zr;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=im(e,1,!1,null,null,l,n,null,a,i,c,vm),e[vn]=t.current,Os(e),new Fs(t)},Pa.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var n=!1,a="",i=Nr,c=Tr,r=zr,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=im(e,1,!0,t,l??null,n,a,m,i,c,r,vm),t.context=um(null),l=t.current,n=Ot(),n=Gu(n),a=Tl(n),a.callback=null,zl(l,a,n),l=n,t.current.lanes=l,sa(t,l),Ft(t),e[vn]=t.current,Os(e),new ju(t)},Pa.version="19.2.6",Pa}var Am;function K0(){if(Am)return Ps.exports;Am=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(f){console.error(f)}}return u(),Ps.exports=k0(),Ps.exports}var J0=K0();/**
50
+ * @license lucide-react v1.16.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Zm=(...u)=>u.filter((f,d,o)=>!!f&&f.trim()!==""&&o.indexOf(f)===d).join(" ").trim();/**
55
+ * @license lucide-react v1.16.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const $0=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v1.16.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const F0=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,d,o)=>o?o.toUpperCase():d.toLowerCase());/**
65
+ * @license lucide-react v1.16.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const _m=u=>{const f=F0(u);return f.charAt(0).toUpperCase()+f.slice(1)};/**
70
+ * @license lucide-react v1.16.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */var nf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
75
+ * @license lucide-react v1.16.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const W0=u=>{for(const f in u)if(f.startsWith("aria-")||f==="role"||f==="title")return!0;return!1},I0=H.createContext({}),P0=()=>H.useContext(I0),e1=H.forwardRef(({color:u,size:f,strokeWidth:d,absoluteStrokeWidth:o,className:h="",children:S,iconNode:_,...D},z)=>{const{size:v=24,strokeWidth:w=2,absoluteStrokeWidth:R=!1,color:B="currentColor",className:$=""}=P0()??{},I=o??R?Number(d??w)*24/Number(f??v):d??w;return H.createElement("svg",{ref:z,...nf,width:f??v??nf.width,height:f??v??nf.height,stroke:u??B,strokeWidth:I,className:Zm("lucide",$,h),...!S&&!W0(D)&&{"aria-hidden":"true"},...D},[..._.map(([se,Se])=>H.createElement(se,Se)),...Array.isArray(S)?S:[S]])});/**
80
+ * @license lucide-react v1.16.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const ge=(u,f)=>{const d=H.forwardRef(({className:o,...h},S)=>H.createElement(e1,{ref:S,iconNode:f,className:Zm(`lucide-${$0(_m(u))}`,`lucide-${u}`,o),...h}));return d.displayName=_m(u),d};/**
85
+ * @license lucide-react v1.16.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const t1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],km=ge("arrow-right",t1);/**
90
+ * @license lucide-react v1.16.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const l1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],dn=ge("check",l1);/**
95
+ * @license lucide-react v1.16.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const n1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],la=ge("chevron-down",n1);/**
100
+ * @license lucide-react v1.16.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const a1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Km=ge("chevron-right",a1);/**
105
+ * @license lucide-react v1.16.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const i1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],u1=ge("chevron-up",i1);/**
110
+ * @license lucide-react v1.16.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const c1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],s1=ge("chevrons-up-down",c1);/**
115
+ * @license lucide-react v1.16.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const f1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jm=ge("circle-check",f1);/**
120
+ * @license lucide-react v1.16.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const o1=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],r1=ge("clipboard",o1);/**
125
+ * @license lucide-react v1.16.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const d1=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],m1=ge("code-xml",d1);/**
130
+ * @license lucide-react v1.16.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const h1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],y1=ge("ellipsis",h1);/**
135
+ * @license lucide-react v1.16.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const v1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],p1=ge("external-link",v1);/**
140
+ * @license lucide-react v1.16.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const g1=[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]],S1=ge("file-braces-corner",g1);/**
145
+ * @license lucide-react v1.16.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const b1=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],hf=ge("file-code-corner",b1);/**
150
+ * @license lucide-react v1.16.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const x1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],j1=ge("folder-open",x1);/**
155
+ * @license lucide-react v1.16.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const E1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],N1=ge("folder",E1);/**
160
+ * @license lucide-react v1.16.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const T1=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],zu=ge("git-branch",T1);/**
165
+ * @license lucide-react v1.16.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const z1=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],A1=ge("git-commit-horizontal",z1);/**
170
+ * @license lucide-react v1.16.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const _1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$m=ge("loader-circle",_1);/**
175
+ * @license lucide-react v1.16.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const M1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],C1=ge("message-square-plus",M1);/**
180
+ * @license lucide-react v1.16.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const O1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Fm=ge("message-square",O1);/**
185
+ * @license lucide-react v1.16.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const D1=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],w1=ge("monitor",D1);/**
190
+ * @license lucide-react v1.16.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const R1=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],U1=ge("moon",R1);/**
195
+ * @license lucide-react v1.16.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const H1=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],L1=ge("move-horizontal",H1);/**
200
+ * @license lucide-react v1.16.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const q1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],B1=ge("panel-left-close",q1);/**
205
+ * @license lucide-react v1.16.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const G1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],Y1=ge("panel-left-open",G1);/**
210
+ * @license lucide-react v1.16.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const X1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Q1=ge("play",X1);/**
215
+ * @license lucide-react v1.16.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const V1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Z1=ge("plus",V1);/**
220
+ * @license lucide-react v1.16.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const k1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],K1=ge("search",k1);/**
225
+ * @license lucide-react v1.16.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const J1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$1=ge("send",J1);/**
230
+ * @license lucide-react v1.16.0 - ISC
231
+ *
232
+ * This source code is licensed under the ISC license.
233
+ * See the LICENSE file in the root directory of this source tree.
234
+ */const F1=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],W1=ge("sliders-horizontal",F1);/**
235
+ * @license lucide-react v1.16.0 - ISC
236
+ *
237
+ * This source code is licensed under the ISC license.
238
+ * See the LICENSE file in the root directory of this source tree.
239
+ */const I1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],P1=ge("sun",I1);/**
240
+ * @license lucide-react v1.16.0 - ISC
241
+ *
242
+ * This source code is licensed under the ISC license.
243
+ * See the LICENSE file in the root directory of this source tree.
244
+ */const ev=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ff=ge("terminal",ev);/**
245
+ * @license lucide-react v1.16.0 - ISC
246
+ *
247
+ * This source code is licensed under the ISC license.
248
+ * See the LICENSE file in the root directory of this source tree.
249
+ */const tv=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],lv=ge("text-wrap",tv);/**
250
+ * @license lucide-react v1.16.0 - ISC
251
+ *
252
+ * This source code is licensed under the ISC license.
253
+ * See the LICENSE file in the root directory of this source tree.
254
+ */const nv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wm=ge("trash-2",nv);/**
255
+ * @license lucide-react v1.16.0 - ISC
256
+ *
257
+ * This source code is licensed under the ISC license.
258
+ * See the LICENSE file in the root directory of this source tree.
259
+ */const av=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yf=ge("x",av);function ai(u,f={}){const d=Math.min(u.startLine,u.endLine),o=Math.max(u.startLine,u.endLine);if(d===o)return`${u.side}${d}`;const h=f.repeatSideOnEnd===!1?"":u.side;return`${u.side}${d}-${h}${o}`}function iv(u,f=[]){const d=(u==null?void 0:u.comments)??[],o=new Set(f.map(S=>S.commentId)),h=d.filter(S=>o.has(S.id)).length;return{total:d.length,resolved:h,open:d.length-h}}function Im(u){var f;return iv(u.feedback,((f=u.resolution)==null?void 0:f.comments)??[])}const uv="brew install iamrajjoshi/tap/gloss",cv="npm install -g getgloss",sv="gloss open --json",af="npx getgloss open --json",Mm="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",fv={side:"R",startLine:45,endLine:45},ov=[{id:"seed-human-review",side:"R",startLine:45,endLine:45,body:"Apply the review feedback before resolving the thread so the agent cannot skip the human pass.",createdAt:"2026-05-23T00:00:00.000Z"}],Cm=[{key:"open-review",oldLine:38,newLine:38,side:"R",tone:"neutral",code:"const review = await gloss.open({ base: 'HEAD' });"},{key:"add-reviewer",oldLine:39,newLine:39,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.addReviewer('human');"},{key:"blocking-mode",oldLine:40,newLine:40,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.setMode('blocking');"},{key:"wait-feedback",oldLine:41,newLine:41,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"const feedback = await review.waitForFeedback();"},{key:"filter-comments",oldLine:42,newLine:42,side:"R",tone:"neutral",code:"const comments = feedback.comments.filter((comment) => comment.actionable);"},{key:"skip-review",oldLine:43,side:"L",tone:"remove",code:"agent.resumeWithoutReview();"},{key:"skip-status",oldLine:44,side:"L",tone:"remove",code:"agent.postStatus('review skipped');"},{key:"guard-comments",newLine:45,side:"R",tone:"add",code:"if (comments.length > 0) {"},{key:"apply-feedback",newLine:46,side:"R",tone:"add",code:" await agent.applyFeedback(comments);"},{key:"resolve-threads",newLine:47,side:"R",tone:"add",code:" await review.resolveThreads(comments);"},{key:"run-checks",newLine:48,side:"R",tone:"add",code:" await agent.runChecks(['pnpm check', 'pnpm test']);"},{key:"close-guard",newLine:49,side:"R",tone:"add",code:"}"},{key:"write-markdown",newLine:50,side:"R",tone:"add",code:"await review.writeFeedbackMarkdown();"},{key:"attach-validation",newLine:51,side:"R",tone:"add",code:"await review.attachValidation('pnpm test');"},{key:"resume-reviewed",newLine:52,side:"R",tone:"add",code:"await agent.resume({ reviewed: true });"},{key:"summary",oldLine:45,newLine:53,side:"R",tone:"neutral",code:"return review.summary();"}];function rv(u){return u.startLine===u.endLine?`Comment on line ${ai(u)}`:`Comment on range ${ai(u)}`}function dv(u,f){const d=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...f,id:d,body:u,createdAt:new Date().toISOString()}}function of({value:u,label:f}){const[d,o]=H.useState(!1);return s.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(u),o(!0),window.setTimeout(()=>o(!1),1400)},children:[d?s.jsx(dn,{size:15}):s.jsx(r1,{size:15}),s.jsx("span",{children:d?"Copied":f})]})}function Nu({command:u}){return s.jsxs("div",{className:"command-line",children:[s.jsx("span",{children:"$"}),s.jsx("code",{children:u}),s.jsx(of,{value:u,label:"Copy"})]})}function mv(){const[u,f]=H.useState(!0),[d,o]=H.useState(fv),[h,S]=H.useState(!1),[_,D]=H.useState(null),[z,v]=H.useState(""),[w,R]=H.useState(ov),[B,$]=H.useState("idle"),I=B==="submitted",se=w.find(Y=>Y.id===_),Se=rv(d),k=z.trim(),_e=`${w.length} review comment${w.length===1?"":"s"}`,de=I?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${_e}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],G=u?Cm:Cm.filter(Y=>!Y.hiddenUntilExpanded),ye=H.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:w.map(Y=>({filePath:"src/web/routes/Home.tsx",side:Y.side,startLine:Y.startLine,endLine:Y.endLine,body:Y.body}))},null,2),[w]),te=(Y,xe)=>d.side===Y&&d.startLine===xe&&d.endLine===xe,K=Y=>{o(Y),D(null),v(""),S(!0),$("idle")},be=Y=>{o({side:Y.side,startLine:Y.startLine,endLine:Y.endLine}),D(Y.id),v(Y.body),S(!0),$("idle")},Le=()=>{k&&(R(Y=>_?Y.map(xe=>xe.id===_?{...xe,body:k}:xe):[...Y,dv(k,d)]),v(""),D(null),S(!1),$("idle"))},Nt=Y=>{R(xe=>xe.filter(Te=>Te.id!==Y)),_===Y&&(D(null),v(""),S(!1)),$("idle")},lt=(Y,xe)=>w.filter(Te=>Te.side===Y&&Math.max(Te.startLine,Te.endLine)===xe&&Math.min(Te.startLine,Te.endLine)===xe);return s.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[s.jsxs("div",{className:"scene-topbar",children:[s.jsxs("div",{className:"scene-brand",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),s.jsx("span",{children:"Gloss review"})]}),s.jsxs("div",{className:"scene-meta",children:[s.jsx(zu,{size:14}),s.jsx("span",{children:"raj--gloss--static-site"})]})]}),s.jsxs("div",{className:"scene-shell",children:[s.jsxs("div",{className:"scene-terminal",children:[s.jsxs("div",{className:"terminal-header",children:[s.jsx(ff,{size:14}),s.jsx("span",{children:"agent terminal"})]}),s.jsx("div",{className:"terminal-lines",children:de.map(Y=>s.jsxs("p",{children:[s.jsx("span",{children:Y.marker})," ",Y.text]},Y.text))})]}),s.jsxs("div",{className:"scene-review",children:[s.jsxs("button",{className:"scene-file-header",type:"button",children:[s.jsx(la,{size:16}),s.jsx(m1,{size:15}),s.jsx("span",{children:"src/web/routes/Home.tsx"}),s.jsx("b",{className:"scene-add",children:"+74"}),s.jsx("b",{className:"scene-del",children:"-6"})]}),s.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>f(Y=>!Y),children:u?"Hide unchanged context":"194 unmodified lines"}),s.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),G.map(Y=>{const xe=Y.side==="L"?Y.oldLine:Y.newLine;if(xe==null)return null;const Te=te(Y.side,xe),Xe=I&&(Y.key==="skip-review"||Y.key==="skip-status"),E=I&&["apply-feedback","resolve-threads","run-checks"].includes(Y.key);return s.jsxs("div",{children:[s.jsxs("button",{className:`scene-row ${Y.tone} ${Y.hiddenUntilExpanded?"dimmed":""} ${Te?"selected":""} ${Xe?"agent-dimmed":""} ${E?"agent-applied":""}`,type:"button","aria-pressed":Te,onClick:()=>K({side:Y.side,startLine:xe,endLine:xe}),children:[s.jsx("span",{children:Y.oldLine??""}),s.jsx("span",{children:Y.newLine??""}),s.jsx("code",{children:Y.code||" "})]}),I&&Y.key==="apply-feedback"?s.jsxs("div",{className:"scene-applied-status",children:[s.jsx(dn,{size:13}),s.jsx("span",{children:"applied by agent"})]}):null,s.jsx(hv,{comments:lt(Y.side,xe),onOpen:be,onRemove:Nt}),h&&d.side===Y.side&&d.endLine===xe?s.jsxs("div",{className:"scene-composer",children:[s.jsxs("div",{className:"scene-composer-title",children:[s.jsx("strong",{children:se?"Review comment":"New local comment"}),s.jsx("span",{children:Se})]}),s.jsx("textarea",{"aria-label":Se,placeholder:"Request change",value:z,onChange:q=>v(q.target.value)}),s.jsxs("div",{className:"scene-composer-actions",children:[s.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{v(""),D(null),S(!1)},children:"Cancel"}),s.jsx("button",{type:"button",disabled:!k,onClick:Le,children:se?"Update":"Comment"})]})]}):null]},Y.key)})]}),s.jsx("div",{className:"scene-feedback",children:I?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"feedback-title",children:[s.jsx(ff,{size:15}),s.jsx("span",{children:"agent is updating"})]}),s.jsxs("div",{className:"agent-update-card",children:[s.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),s.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(Y=>s.jsxs("li",{children:[s.jsx(dn,{size:13}),s.jsx("span",{children:Y})]},Y))})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"feedback-title",children:[s.jsx(S1,{size:15}),s.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),s.jsx("pre",{children:ye})]})})]}),s.jsxs("div",{className:"scene-submit",children:[s.jsx("span",{children:w.length===0?"No local comments yet":I?"Sent to agent":`${w.length} local comment${w.length===1?"":"s"} ready`}),s.jsxs("button",{type:"button",disabled:w.length===0,onClick:()=>$("submitted"),children:[I?s.jsx(dn,{size:14}):s.jsx(Q1,{size:14}),I?"Sent to agent":"Submit review"]})]})]})}function hv({comments:u,onOpen:f,onRemove:d}){return u.map(o=>s.jsxs("div",{className:"scene-inline-comment",children:[s.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>f(o),children:[s.jsx(Fm,{size:14}),s.jsx("span",{children:o.body})]}),s.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${o.side}${o.startLine}`,onClick:()=>d(o.id),children:s.jsx(Wm,{size:13})})]},o.id))}function ei({step:u,title:f,body:d}){return s.jsxs("div",{className:"workflow-step",children:[s.jsx("span",{children:u}),s.jsxs("div",{children:[s.jsx("h3",{children:f}),s.jsx("p",{children:d})]})]})}function yv(){return s.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[s.jsxs("div",{className:"demo-video-header",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Demo"}),s.jsx("h2",{children:"Watch the local review loop run for real."})]}),s.jsx("p",{className:"demo-video-caption",children:"A real pass through the loop: open a local diff, leave review comments, hand them back to the agent."})]}),s.jsx("div",{className:"demo-video-frame",children:s.jsxs("video",{"aria-label":"Gloss product walkthrough showing local diff review comments sent back to an agent",controls:!0,poster:"/gloss-demo-poster.jpg",preload:"metadata",children:[s.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),s.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function vv(){return s.jsxs("main",{className:"marketing-page",children:[s.jsxs("section",{className:"marketing-hero",children:[s.jsxs("div",{className:"hero-copy",children:[s.jsxs("div",{className:"hero-copy-main",children:[s.jsx("div",{className:"hero-logo",children:s.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),s.jsx("h1",{children:"Gloss"}),s.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),s.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",s.jsx("code",{children:"feedback.json"})," for your agent and ",s.jsx("code",{children:"feedback.md"})," for humans."]}),s.jsxs("div",{className:"hero-actions",children:[s.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",s.jsx(km,{size:17})]}),s.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),s.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[s.jsx("span",{children:"Run without setup"}),s.jsx("code",{children:af}),s.jsx(of,{value:af,label:"Copy command"})]})]}),s.jsx(mv,{})]}),s.jsx(yv,{}),s.jsxs("section",{className:"marketing-band install-band",id:"install",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Install"}),s.jsx("h2",{children:"Start the review loop in one command."})]}),s.jsxs("div",{className:"install-grid",children:[s.jsx(Nu,{command:uv}),s.jsx(Nu,{command:cv}),s.jsx(Nu,{command:sv}),s.jsx(Nu,{command:af})]}),s.jsxs("div",{className:"agent-prompt",children:[s.jsxs("div",{className:"agent-prompt-label",children:[s.jsx(ff,{size:18}),s.jsx("span",{children:"Packaged skill"})]}),s.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),s.jsx("div",{className:"agent-prompt-links",children:s.jsx("a",{href:"/setup/",children:"Agent setup"})}),s.jsxs("div",{className:"agent-skill-command",children:[s.jsx("code",{children:Mm}),s.jsx(of,{value:Mm,label:"Copy install"})]})]})]}),s.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[s.jsx("div",{className:"section-heading",children:s.jsx("p",{children:"How it works"})}),s.jsxs("div",{className:"workflow-story",children:[s.jsx(ei,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),s.jsx(ei,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),s.jsx(ei,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),s.jsx(ei,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),s.jsx(ei,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),s.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Output"}),s.jsx("h2",{children:"What the agent reads."})]}),s.jsxs("div",{className:"contract-layout",children:[s.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
260
+ ~/.gloss/reviews/<reviewId>/feedback.md
261
+ ~/.gloss/reviews/<reviewId>/resolved.json`}),s.jsx("div",{className:"contract-copy",children:s.jsxs("p",{children:[s.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",s.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",s.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),s.jsx("footer",{className:"marketing-footer",children:s.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[s.jsx(zu,{size:16}),s.jsx("span",{children:"GitHub"})]})})]})}var pv=Vm();const gv={mode:"all"};function Sv(u=gv,f=[]){if(u.mode==="all")return"All commits";if(u.mode==="single"){const h=f.find(S=>S.commit.sha===u.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${uf(u.sha)}`}const d=f.findIndex(h=>h.commit.sha===u.fromSha),o=f.findIndex(h=>h.commit.sha===u.toSha);return d>=0&&o>=d?`${o-d+1} commits · ${f[d].commit.shortSha} to ${f[o].commit.shortSha}`:`Commit range ${uf(u.fromSha)} to ${uf(u.toSha)}`}function uf(u){return u.slice(0,7)}function Om(u){var d;const f=(d=u.meta.branch??u.diff.branch)==null?void 0:d.trim();return f||bv(u.diff)}function bv(u){switch(u.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${u.scope.requestedBase??u.base.ref}`;case"working":return"Working changes"}}function xv(u){return u==="submitted"||u==="resolved"}const jv=["L","R"],Ev=["pending","submitted","cancelled","resolved"],Nv=["context","add","delete"],Tv=["working","branch","explicit"],zv=["working-tree-clean","missing-branch-base"],Av=500,_v=["all","single","range"],Mv=["partial","resolved"],Cv=["review-resolved","comment-resolved","comment-reopened","turn-created"];function Ov(u,f,d){const o=JSON.parse(u);return Pm(o,f,d)}function Pm(u,f,d){if(!f(u))throw new Error(`Invalid ${d}`);return u}function Dv(u){return we(u)&&ee(u.reviewId)&&$e(u.turnId)&&ta(u.turnIndex)&&ee(u.url)&&Ye(u.files)&&ta(u.comments)&&$e(u.feedbackPath)&&$e(u.markdownPath)&&$e(u.artifactDir)}function wv(u){return we(u)&&u.ok===!0&&ee(u.path)}function Rv(u){return we(u)&&ee(u.fromSha)&&ee(u.toSha)&&Cu(u.stats)&&ee(u.rawDiff)&&Zt(u.files,vf)}function Uv(u){return we(u)&&ee(u.filePath)&&Dm(u.oldStart)&&Dm(u.newStart)&&Zt(u.lines,ah)}function Hv(u){return we(u)&&qv(u.meta)&&Zt(u.turns,Yv)&&eh(u.diff)&&mn(u.feedback,th)&&mn(u.resolution,lh)}function Lv(u){return we(u)&&ee(u.id)&&ee(u.cwd)&&Mu(u.base)&&pl(u.branch)&&pf(u.status)&&ee(u.createdAt)&&$e(u.submittedAt)&&$e(u.resolvedAt)&&$e(u.artifactDir)&&$e(u.activeTurnId)&&mn(u.turns,f=>Zt(f,Gv))&&$e(u.feedbackPath)&&$e(u.markdownPath)}function qv(u){return Lv(u)&&ee(u.artifactDir)}function eh(u){return we(u)&&Mu(u.base)&&pl(u.branch)&&ee(u.cwd)&&Xv(u.scope)&&Cu(u.stats)&&ee(u.rawDiff)&&Zt(u.files,vf)&&mn(u.commitDiffs,f=>Zt(f,Zv))&&ee(u.capturedAt)}function th(u){return we(u)&&u.version===1&&ee(u.reviewId)&&$e(u.turnId)&&ta(u.turnIndex)&&ee(u.timestamp)&&Mu(u.base)&&pl(u.branch)&&mn(u.reviewScope,kv)&&Zt(u.comments,Jv)}function lh(u){return we(u)&&ee(u.reviewId)&&$e(u.turnId)&&ta(u.turnIndex)&&uh(u.status)&&pl(u.summary)&&pl(u.resolvedAt)&&Zt(u.comments,$v)}function Bv(u){if(!we(u)||!ee(u.reviewId)||!ee(u.type))return!1;switch(u.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return ee(u.turnId)&&Ye(u.turnIndex)&&li(u.reused);case"review.submitted":return $e(u.turnId)&&ta(u.turnIndex)&&we(u.counts)&&Ye(u.counts.files)&&Ye(u.counts.comments);case"review.updated":return $e(u.turnId)&&ta(u.turnIndex)&&Fv(u.reason)&&pf(u.status)&&uh(u.resolutionStatus)&&ih(u.counts);default:return!1}}function nh(u){return we(u)&&ee(u.id)&&Ye(u.index)&&pf(u.status)&&ee(u.createdAt)&&$e(u.submittedAt)&&$e(u.resolvedAt)&&ee(u.artifactDir)&&ee(u.diffPath)&&$e(u.feedbackPath)&&$e(u.markdownPath)&&$e(u.resolvedPath)}function Gv(u){return!we(u)||!nh(u)?!1:ee(u.capturedAt)&&Cu(u.stats)&&ih(u.comments)}function Yv(u){return!we(u)||!nh(u)?!1:eh(u.diff)&&mn(u.feedback,th)&&mn(u.resolution,lh)}function Xv(u){return we(u)&&Xl(u.mode,Tv)&&pl(u.requestedBase)&&Mu(u.base)&&Qv(u.comparison)&&(u.fallbackReason===null||Xl(u.fallbackReason,zv))}function Qv(u){return we(u)&&ee(u.ref)&&pl(u.sha)}function Mu(u){return we(u)&&ee(u.ref)&&ee(u.sha)}function Cu(u){return we(u)&&Ye(u.files)&&Ye(u.additions)&&Ye(u.deletions)}function Vv(u){return we(u)&&ee(u.sha)&&ee(u.shortSha)&&ee(u.subject)&&ee(u.authorName)&&ee(u.authorEmail)&&ee(u.authoredAt)&&ee(u.committedAt)}function Zv(u){return we(u)&&Vv(u.commit)&&Cu(u.stats)&&ee(u.rawDiff)&&Zt(u.files,vf)}function kv(u){if(!we(u)||!Xl(u.mode,_v))return!1;switch(u.mode){case"all":return!0;case"single":return ee(u.sha);case"range":return ee(u.fromSha)&&ee(u.toSha)}}function vf(u){return we(u)&&ee(u.path)&&pl(u.oldPath)&&Ye(u.additions)&&Ye(u.deletions)&&li(u.isBinary)&&li(u.isDeleted)&&li(u.isNew)&&li(u.isRenamed)&&pl(u.language)&&Zt(u.hunks,Kv)}function Kv(u){return we(u)&&Ye(u.oldStart)&&Ye(u.oldLines)&&Ye(u.newStart)&&Ye(u.newLines)&&ee(u.header)&&Zt(u.lines,ah)}function ah(u){return we(u)&&Xl(u.type,Nv)&&wm(u.oldLine)&&wm(u.newLine)&&ee(u.content)}function Jv(u){return we(u)&&ee(u.id)&&ee(u.filePath)&&Ye(u.startLine)&&Ye(u.endLine)&&Xl(u.side,jv)&&ee(u.body)&&ee(u.originalSnippet)&&ee(u.createdAt)}function $v(u){return we(u)&&ee(u.commentId)&&u.status==="resolved"&&$e(u.summary)&&ee(u.resolvedAt)}function ih(u){return we(u)&&Ye(u.total)&&Ye(u.resolved)&&Ye(u.open)}function pf(u){return Xl(u,Ev)}function uh(u){return Xl(u,Mv)}function Fv(u){return Xl(u,Cv)}function we(u){return typeof u=="object"&&u!==null&&!Array.isArray(u)}function Zt(u,f){return Array.isArray(u)&&u.every(f)}function mn(u,f){return u===void 0||f(u)}function ee(u){return typeof u=="string"}function $e(u){return u===void 0||ee(u)}function pl(u){return u===null||ee(u)}function Ye(u){return typeof u=="number"&&Number.isFinite(u)}function Dm(u){return Ye(u)&&Number.isInteger(u)&&u>0}function ta(u){return u===void 0||Ye(u)}function wm(u){return u===null||Ye(u)}function li(u){return typeof u=="boolean"}function Xl(u,f){return typeof u=="string"&&f.includes(u)}async function ui(u,f,d){if(!u.ok)throw new Error(`${u.status}: ${await u.text()}`);const o=await u.json();return Pm(o,f,d)}async function Rm(u){return ui(await fetch(`/api/reviews/${u}`),Hv,"review response")}async function Wv(u,f,d){const o={comments:f,reviewScope:d};return ui(await fetch(`/api/reviews/${u}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(o)}),Dv,"submit review response")}async function Iv(u,f,d){const o={filePath:f,turnId:d};return ui(await fetch(`/api/reviews/${u}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(o)}),wv,"open file response")}async function Pv(u,f,d,o){const h={fromSha:f,toSha:d,turnId:o};return ui(await fetch(`/api/reviews/${u}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),Rv,"commit range diff response")}async function ep({filePath:u,lineCount:f,newStart:d,oldPath:o,oldStart:h,reviewId:S,source:_,turnId:D}){const z={filePath:u,oldPath:o,turnId:D,source:_,oldStart:h,newStart:d,lineCount:f};return ui(await fetch(`/api/reviews/${S}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(z)}),Uv,"diff context response")}const tp="modulepreload",lp=function(u){return"/"+u},Um={},np=function(f,d,o){let h=Promise.resolve();if(d&&d.length>0){let _=function(v){return Promise.all(v.map(w=>Promise.resolve(w).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};document.getElementsByTagName("link");const D=document.querySelector("meta[property=csp-nonce]"),z=(D==null?void 0:D.nonce)||(D==null?void 0:D.getAttribute("nonce"));h=_(d.map(v=>{if(v=lp(v),v in Um)return;Um[v]=!0;const w=v.endsWith(".css"),R=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${R}`))return;const B=document.createElement("link");if(B.rel=w?"stylesheet":tp,w||(B.as="script"),B.crossOrigin="",B.href=v,z&&B.setAttribute("nonce",z),document.head.appendChild(B),w)return new Promise(($,I)=>{B.addEventListener("load",$),B.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${v}`)))})}))}function S(_){const D=new Event("vite:preloadError",{cancelable:!0});if(D.payload=_,window.dispatchEvent(D),!D.defaultPrevented)throw _}return h.then(_=>{for(const D of _||[])D.status==="rejected"&&S(D.reason);return f().catch(S)})};function gf(u){return u.type==="delete"?"L":"R"}function Sf(u){return gf(u)==="L"?u.oldLine:u.newLine}function ii(u,f){return`${u}:${f}`}const ch="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Au=32,ap=16,sh=10,Hm=0xffffffffffff;var rn;(function(u){u.Base32IncorrectEncoding="B32_ENC_INVALID",u.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",u.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",u.EncodeTimeNegative="ENC_TIME_NEG",u.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",u.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",u.PRNGDetectFailure="PRNG_DETECT",u.ULIDInvalid="ULID_INVALID",u.Unexpected="UNEXPECTED",u.UUIDInvalid="UUID_INVALID"})(rn||(rn={}));class ni extends Error{constructor(f,d){super(`${d} (${f})`),this.name="ULIDError",this.code=f}}function ip(u){const f=Math.floor(u()*Au)%Au;return ch.charAt(f)}function up(u){const f=cp(),d=f&&(f.crypto||f.msCrypto)||null;if(typeof(d==null?void 0:d.getRandomValues)=="function")return()=>{const o=new Uint8Array(1);return d.getRandomValues(o),o[0]/256};if(typeof(d==null?void 0:d.randomBytes)=="function")return()=>d.randomBytes(1).readUInt8()/256;throw new ni(rn.PRNGDetectFailure,"Failed to find a reliable PRNG")}function cp(){return op()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function sp(u,f){let d="";for(;u>0;u--)d=ip(f)+d;return d}function fp(u,f=sh){if(isNaN(u))throw new ni(rn.EncodeTimeValueMalformed,`Time must be a number: ${u}`);if(u>Hm)throw new ni(rn.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Hm}: ${u}`);if(u<0)throw new ni(rn.EncodeTimeNegative,`Time must be positive: ${u}`);if(Number.isInteger(u)===!1)throw new ni(rn.EncodeTimeValueMalformed,`Time must be an integer: ${u}`);let d,o="";for(let h=f;h>0;h--)d=u%Au,o=ch.charAt(d)+o,u=(u-d)/Au;return o}function op(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function rp(u,f){const d=up(),o=Date.now();return fp(o,sh)+sp(ap,d)}const Lm=u=>{let f;const d=new Set,o=(v,w)=>{const R=typeof v=="function"?v(f):v;if(!Object.is(R,f)){const B=f;f=w??(typeof R!="object"||R===null)?R:Object.assign({},f,R),d.forEach($=>$(f,B))}},h=()=>f,D={setState:o,getState:h,getInitialState:()=>z,subscribe:v=>(d.add(v),()=>d.delete(v))},z=f=u(o,h,D);return D},dp=(u=>u?Lm(u):Lm),mp=u=>u;function hp(u,f=mp){const d=ti.useSyncExternalStore(u.subscribe,ti.useCallback(()=>f(u.getState()),[u,f]),ti.useCallback(()=>f(u.getInitialState()),[u,f]));return ti.useDebugValue(d),d}const qm=u=>{const f=dp(u),d=o=>hp(f,o);return Object.assign(d,f),d},yp=(u=>u?qm(u):qm),Et=yp((u,f)=>({comments:[],resolution:null,draft:null,setDraft:d=>u({draft:d}),hydrateComments:d=>u({comments:d,resolution:null,draft:null}),hydrateReview:(d,o=null)=>u({comments:d,resolution:o,draft:null}),addComment:d=>{const o=f().draft;!o||d.trim().length===0||u(h=>({comments:[...h.comments,{id:rp(),filePath:o.filePath,side:o.side,startLine:Math.min(o.startLine,o.endLine),endLine:Math.max(o.startLine,o.endLine),body:d.trim(),originalSnippet:o.originalSnippet,createdAt:new Date().toISOString()}],draft:null}))},removeComment:d=>u(o=>({comments:o.comments.filter(h=>h.id!==d)})),reset:()=>u({comments:[],resolution:null,draft:null})})),fh="gloss:theme-preference",vp="(prefers-color-scheme: dark)",pp=new Set(["system","light","dark"]),oh=H.createContext(null);function gp(u){return!!(u&&pp.has(u))}function Sp(u=dh()){if(!u)return"system";try{const f=u.getItem(fh);return gp(f)?f:"system"}catch{return"system"}}function bp(u,f=dh()){if(f)try{f.setItem(fh,u)}catch{}}function rf(u){return u?"dark":"light"}function xp(u,f){return u==="system"?f:u}function jp(u,f=Tp()){f&&(f.dataset.theme=u)}function Ep({children:u}){const[f,d]=H.useState(()=>Sp()),[o,h]=H.useState(()=>Np()),S=xp(f,o);H.useEffect(()=>{const z=mh();if(!z)return;const v=w=>{h(rf(w.matches))};return h(rf(z.matches)),typeof z.addEventListener=="function"?(z.addEventListener("change",v),()=>z.removeEventListener("change",v)):(z.addListener(v),()=>z.removeListener(v))},[]),H.useEffect(()=>{jp(S)},[S]);const _=H.useCallback(z=>{bp(z),d(z)},[]),D=H.useMemo(()=>({preference:f,resolvedTheme:S,setPreference:_}),[f,S,_]);return s.jsx(oh.Provider,{value:D,children:u})}function rh(){const u=H.useContext(oh);if(!u)throw new Error("useTheme must be used within ThemeProvider");return u}function Np(u=mh()){return rf(!!(u!=null&&u.matches))}function dh(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function mh(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(vp)}catch{return null}}function Tp(){return typeof document>"u"?null:document.documentElement}function zp(u){return hh(u)&&!u.shiftKey}function Ap(u){return hh(u)&&u.shiftKey===!0}function hh(u){var f;return u.key==="Enter"&&u.metaKey===!0&&u.ctrlKey!==!0&&u.altKey!==!0&&u.repeat!==!0&&u.defaultPrevented!==!0&&u.isComposing!==!0&&((f=u.nativeEvent)==null?void 0:f.isComposing)!==!0}function _p({tone:u}){const f=Et(w=>w.draft),d=Et(w=>w.setDraft),o=Et(w=>w.addComment),[h,S]=H.useState(""),_=H.useRef(null);if(H.useEffect(()=>{var w;f&&((w=_.current)==null||w.focus({preventScroll:!0}))},[f]),!f)return null;const D=f.startLine===f.endLine?`Comment on line ${ai(f)}`:`Comment on range ${ai(f)}`,z=()=>{S(""),d(null)},v=()=>{o(h),S("")};return s.jsx("div",{className:`draft-comment-shell tone-${u}`,children:s.jsxs("div",{className:"draft-comment-card",children:[s.jsxs("div",{className:"draft-comment-title",children:[s.jsxs("span",{className:"draft-comment-heading",children:[s.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:s.jsx(C1,{size:15})}),s.jsx("span",{children:"Local comment"})]}),s.jsx("span",{className:"draft-comment-label",children:D})]}),s.jsx("textarea",{"aria-label":D,placeholder:"Request change",ref:_,value:h,onChange:w=>S(w.target.value),onKeyDown:w=>{zp(w)&&(w.preventDefault(),v())}}),s.jsxs("div",{className:"draft-comment-actions",children:[s.jsx("button",{className:"secondary-button",type:"button",onClick:z,children:"Cancel"}),s.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:v,children:"Comment"})]})]})})}const Mp=20;function Cp(u,f){const d=f.oldStart-u.oldStart,o=d+f.lineCount-1,h=d>0,S=o<u.lineCount-1;return h&&S?"all":h?"down":S||u.beforeHunkIndex===0?"up":"all"}function bf(u){const f=[];let d=0,o=0;return u.hunks.forEach((h,S)=>{const _=h.oldStart>d+1?h.oldStart-d-1:0,D=h.newStart>o+1?h.newStart-o-1:0,z=Math.min(_,D);if(z>0){const v=d+1,w=o+1;f.push({id:`${u.path}:${v}:${w}:${z}`,beforeHunkIndex:S,filePath:u.path,oldPath:u.oldPath,oldStart:v,newStart:w,lineCount:z})}d=h.oldStart+h.oldLines-1,o=h.newStart+h.newLines-1}),f}function Op(u,f){const d=Ou(u,f),o=yh(u,d),h=xf(u,f);if(o.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const S=o[0]??0,_=o.at(-1)??u.lineCount-1,D=h.filter(v=>{const w=_u(u,v);return w!=null&&w<S}),z=h.filter(v=>{const w=_u(u,v);return w!=null&&w>_});return[...D.length>0?[{type:"lines",lines:D}]:[],{type:"hidden",oldStart:u.oldStart+S,newStart:u.newStart+S,lineCount:_-S+1},...z.length>0?[{type:"lines",lines:z}]:[]]}function Dp(u,f,d,o=Mp){const h=Ou(u,f),S=yh(u,h);if(S.length===0)return null;let _,D;if(d==="all")_=S[0]??0,D=S.at(-1)??u.lineCount-1,D=Math.min(D,_+Av-1);else if(d==="down"){for(_=S[0]??0,D=_;D+1<u.lineCount&&!h.has(D+1);)D+=1;D=Math.min(D,_+o-1)}else{for(D=S.at(-1)??u.lineCount-1,_=D;_-1>=0&&!h.has(_-1);)_-=1;_=Math.max(_,D-o+1)}return{oldStart:u.oldStart+_,newStart:u.newStart+_,lineCount:D-_+1}}function wp(u,f,d){const o=Ou(u,f);for(const h of d){const S=_u(u,h);S!=null&&o.set(S,h)}return{lines:Array.from(o.entries()).toSorted(([h],[S])=>h-S).map(([,h])=>h),loading:!1,error:null}}function xf(u,f){return Array.from(Ou(u,f).entries()).toSorted(([d],[o])=>d-o).map(([,d])=>d)}function Rp(u,f){const d=new Map(bf(u).map(o=>[o.beforeHunkIndex,o]));return u.hunks.flatMap((o,h)=>{const S=d.get(h);return[...S?xf(S,f[S.id]):[],...o.lines]})}function Up(u,f){const d=new Map(bf(u).map(h=>[h.beforeHunkIndex,h])),o=u.hunks.map((h,S)=>{const _=d.get(S),D=_?xf(_,f[_.id]):[];return D.length>0?{...h,lines:[...D,...h.lines]}:h});return{...u,hunks:o}}function yh(u,f){const d=[];for(let o=0;o<u.lineCount;o+=1)f.has(o)||d.push(o);return d}function Ou(u,f){const d=new Map;if(!u||!f)return d;for(const o of f.lines){const h=_u(u,o);h!=null&&d.set(h,o)}return d}function _u(u,f){const d=f.oldLine==null?null:f.oldLine-u.oldStart;if(d!=null&&d>=0&&d<u.lineCount)return d;const o=f.newLine==null?null:f.newLine-u.newStart;return o!=null&&o>=0&&o<u.lineCount?o:null}function vh(u){return`gloss-file-${encodeURIComponent(u)}`}function Hp({file:u,collapsed:f,viewed:d,onToggle:o,onViewedChange:h,onOpenFile:S}){const[_,D]=H.useState(!1),z=H.useRef(null);return H.useEffect(()=>{if(!_)return;const v=R=>{var B;(B=z.current)!=null&&B.contains(R.target)||D(!1)},w=R=>{R.key==="Escape"&&D(!1)};return window.addEventListener("pointerdown",v),window.addEventListener("keydown",w),()=>{window.removeEventListener("pointerdown",v),window.removeEventListener("keydown",w)}},[_]),s.jsxs("div",{className:"file-header",children:[s.jsxs("button",{className:"file-header-toggle",type:"button",onClick:o,children:[f?s.jsx(Km,{size:18}):s.jsx(la,{size:18}),s.jsx(hf,{size:17}),s.jsx("span",{className:"file-path",children:u.path}),u.oldPath&&u.oldPath!==u.path?s.jsxs("span",{className:"rename-path",children:["from ",u.oldPath]}):null]}),s.jsxs("span",{className:"stat add",children:["+",u.additions]}),s.jsxs("span",{className:"stat del",children:["-",u.deletions]}),s.jsxs("label",{className:"viewed-toggle",children:[s.jsx("input",{type:"checkbox",checked:d,onChange:v=>h(v.currentTarget.checked)}),s.jsx("span",{children:"Viewed"})]}),s.jsxs("div",{className:"file-menu",ref:z,children:[s.jsx("button",{"aria-expanded":_,"aria-haspopup":"menu","aria-label":`Open actions for ${u.path}`,className:"icon-button file-menu-button",title:"File actions",type:"button",onClick:()=>D(v=>!v),children:s.jsx(y1,{size:17})}),_?s.jsx("div",{className:"file-menu-popover",role:"menu",children:s.jsxs("button",{role:"menuitem",type:"button",onClick:()=>{D(!1),S()},children:[s.jsx(p1,{size:16}),s.jsx("span",{children:"Open locally"})]})}):null]})]})}function Lp({activeFilePath:u=null,contextSource:f,emptyState:d=null,files:o,record:h,diff:S=h.diff,readOnly:_=!1,reviewId:D,turnId:z,wrapLines:v=!1,viewedFiles:w=new Set,onViewedChange:R=()=>{},onOpenFile:B=()=>{}}){const[$,I]=H.useState(new Set),se=H.useRef(u),Se=Et(G=>G.draft),k=Et(G=>G.setDraft),_e=o??S.files;if(u!==se.current&&(se.current=u,u&&$.has(u))){const G=new Set($);G.delete(u),I(G)}const de=(G,ye)=>{ye&&((Se==null?void 0:Se.filePath)===G&&k(null),I(te=>{const K=new Set(te);return K.add(G),K})),R(G,ye)};return s.jsx("section",{className:"diff-stack",children:_e.length===0?d??s.jsx(qp,{record:h}):_e.map(G=>{const ye=$.has(G.path);return s.jsxs("article",{className:`file-card ${u===G.path?"active":""}`,id:vh(G.path),children:[s.jsx(Hp,{file:G,collapsed:ye,viewed:w.has(G.path),onToggle:()=>{!ye&&(Se==null?void 0:Se.filePath)===G.path&&k(null),I(te=>{const K=new Set(te);return K.has(G.path)?K.delete(G.path):K.add(G.path),K})},onViewedChange:te=>de(G.path,te),onOpenFile:()=>B(G.path)}),ye?null:s.jsx(Bp,{contextSource:f,file:G,readOnly:_,reviewId:D,turnId:z,wrapLines:v},`${G.oldPath??""}:${G.path}:${kp(D,z,f)}`)]},`${G.oldPath??G.path}:${G.path}`)})})}function qp({record:u}){const f=u.diff.scope;return f.mode==="branch"?s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No branch changes"}),s.jsxs("p",{children:["Working tree is clean, and ",f.comparison.ref," matches ",f.base.ref,"."]})]}):f.fallbackReason==="missing-branch-base"?s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No changes to review"}),s.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):f.mode==="explicit"?s.jsxs("div",{className:"empty-diff",children:[s.jsxs("h2",{children:["No changes against ",f.base.ref]}),s.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No working changes"}),s.jsx("p",{children:"Working tree is clean."})]})}function Bp({contextSource:u,file:f,readOnly:d,reviewId:o,turnId:h,wrapLines:S}){const _=Et(x=>x.comments),D=Et(x=>x.resolution),z=Et(x=>x.draft),v=Et(x=>x.setDraft),{resolvedTheme:w}=rh(),[R,B]=H.useState(null),[$,I]=H.useState(null),[se,Se]=H.useState(null),[k,_e]=H.useState({}),de=H.useRef(null),G=H.useRef(null),ye=H.useMemo(()=>bf(f),[f]),te=H.useMemo(()=>new Map(ye.map(x=>[x.beforeHunkIndex,x])),[ye]),K=H.useMemo(()=>Up(f,k),[k,f]),be=H.useMemo(()=>Rp(f,k),[k,f]),Le=H.useMemo(()=>Kp(be),[be]),Nt=H.useMemo(()=>new Map(((D==null?void 0:D.comments)??[]).map(x=>[x.commentId,x])),[D]),lt=_.filter(x=>x.filePath===f.path),Y=R&&$&&R.filePath===f.path&&R.side===$.side?df(Le,R.side,R.line,$.line):null,xe=z&&z.filePath===f.path?df(Le,z.side,z.startLine,z.endLine):null,Te=x=>{const{start:U,end:Q}=x,V=Math.min(U.line,Q.line),fe=Math.max(U.line,Q.line),ue=Jp(be,Le,U.side,V,fe)||U.snippet;v({filePath:f.path,side:U.side,startLine:V,endLine:fe,originalSnippet:ue})};H.useEffect(()=>()=>{var x;return(x=G.current)==null?void 0:x.call(G)},[]);const Xe=x=>{var V;if(x.dataset.filePath!==f.path)return null;const U=x.dataset.side,Q=Number(x.dataset.line);return U!=="L"&&U!=="R"||!Number.isFinite(Q)?null:{filePath:f.path,side:U,line:Q,snippet:((V=x.querySelector("code"))==null?void 0:V.textContent)??""}},E=x=>{const U=Xe(x);U&&ve(U)},q=(x,U)=>{var ue;if(U.button!==0)return;U.preventDefault(),(ue=G.current)==null||ue.call(G),de.current={start:x,end:x},B(x),I(x);const Q=Ie=>{var nt;const Pe=(nt=document.elementFromPoint(Ie.clientX,Ie.clientY))==null?void 0:nt.closest(".diff-row");Pe&&E(Pe)},V=Ie=>{Q(Ie);const Pe=de.current;Pe&&Te(Pe),ne()},fe=()=>ne();window.addEventListener("mousemove",Q),window.addEventListener("mouseup",V),window.addEventListener("blur",fe),G.current=()=>{window.removeEventListener("mousemove",Q),window.removeEventListener("mouseup",V),window.removeEventListener("blur",fe),G.current=null}},F=(x,U)=>{var Q;U.key!=="Enter"&&U.key!==" "||U.repeat||U.defaultPrevented||U.nativeEvent.isComposing||(U.preventDefault(),(Q=G.current)==null||Q.call(G),de.current=null,B(null),I(null),Te({start:x,end:x}))},ve=x=>{const U=de.current;(U==null?void 0:U.start.filePath)===f.path&&U.start.side===x.side&&(de.current={...U,end:x},I(x))},ne=()=>{var x;(x=G.current)==null||x.call(G),de.current=null,B(null),I(null)},p=async(x,U)=>{if(!o||!u)return;const Q=Dp(x,k[x.id],U);if(Q){_e(V=>{var fe;return{...V,[x.id]:{lines:((fe=V[x.id])==null?void 0:fe.lines)??[],loading:!0,error:null}}});try{const V=await ep({reviewId:o,filePath:x.filePath,oldPath:x.oldPath,turnId:h,source:u,...Q});_e(fe=>({...fe,[x.id]:wp(x,fe[x.id],V.lines)}))}catch(V){_e(fe=>{var ue;return{...fe,[x.id]:{lines:((ue=fe[x.id])==null?void 0:ue.lines)??[],loading:!1,error:V instanceof Error?V.message:String(V)}}})}}};H.useEffect(()=>{let x=!1;return np(async()=>{const{highlightDiffFile:U}=await import("./syntax-CRTtR0tw.js");return{highlightDiffFile:U}},[]).then(({highlightDiffFile:U})=>U(K,w)).then(U=>{x||Se(U)}).catch(()=>{x||Se(null)}),()=>{x=!0}},[K,w]);const C=(x,U)=>{const Q=gf(x),V=Sf(x);if(V==null)return null;const fe={filePath:f.path,side:Q,line:V,snippet:x.content},ue=Le.get(ii(Q,V)),Ie=ue!=null&&Bm(ue,Y)?Y:ue!=null&&Bm(ue,xe)?xe:null,Pe=ue!=null&&Ie?Zp(ue,Ie.start,Ie.end):"",nt=z&&z.filePath===f.path&&z.side===Q&&V===z.endLine,Wt=lt.filter(qe=>qe.side===Q&&V===Math.max(qe.startLine,qe.endLine));return s.jsxs("div",{children:[s.jsxs("div",{className:`diff-row ${x.type} ${d?"read-only":""} ${Pe} ${nt?"range-continues":""}`,"data-file-path":f.path,"data-line":V,"data-side":Q,children:[Pe?s.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,s.jsxs("div",{className:"diff-gutter",children:[s.jsx("span",{className:"line-number old",children:x.oldLine??""}),s.jsx("span",{className:"line-number new",children:x.newLine??""}),s.jsx("span",{className:"marker",children:ph(x)}),d?null:s.jsx("button",{"aria-label":`Comment on ${f.path} line ${V}`,className:"comment-handle",type:"button",onMouseDown:qe=>q(fe,qe),onKeyDown:qe=>F(fe,qe),children:s.jsx(Z1,{size:16,strokeWidth:2.4})})]}),s.jsx(Qp,{content:x.content,tokens:(se==null?void 0:se.get(ii(Q,V)))??null})]}),Wt.map(qe=>{const ot=Nt.get(qe.id);return s.jsxs("div",{className:`inline-comment ${ot?"resolved":"open"}`,children:[ot?s.jsx(Jm,{size:14}):s.jsx(Fm,{size:14}),s.jsxs("span",{className:"inline-comment-content",children:[d?s.jsx("span",{className:"inline-comment-status",children:ot?"Resolved":"Open · Needs fix"}):null,s.jsx("span",{className:"inline-comment-body",children:qe.body}),ot!=null&&ot.summary?s.jsx("span",{className:"inline-comment-summary",children:ot.summary}):null]})]},qe.id)}),nt&&!d?s.jsx(_p,{tone:x.type}):null]},`${U}:${x.type}:${x.oldLine??"x"}:${x.newLine??"x"}:${x.content}`)},L=x=>Op(x,k[x.id]).map(U=>{var Q,V;return U.type==="lines"?U.lines.map(fe=>C(fe,`context:${x.id}`)):s.jsx(Gp,{canExpand:!!(o&&u),direction:Cp(x,U),error:((Q=k[x.id])==null?void 0:Q.error)??null,loading:((V=k[x.id])==null?void 0:V.loading)??!1,segment:U,onExpand:fe=>{p(x,fe)}},`hidden:${x.id}:${U.oldStart}:${U.newStart}:${U.lineCount}`)});return s.jsx("section",{"aria-label":`${f.path} diff`,className:`diff-scroller ${S?"wrap-lines":""}`,children:s.jsxs("div",{className:`diff-table ${R?"selecting":""}`,children:[f.isBinary?s.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,f.hunks.map((x,U)=>{const Q=te.get(U);return s.jsxs("div",{className:"hunk",children:[Q?L(Q):null,s.jsx("div",{className:"hunk-header",children:x.header||`@@ -${x.oldStart},${x.oldLines} +${x.newStart},${x.newLines} @@`}),x.lines.map(V=>C(V,"hunk"))]},`${x.oldStart}:${x.newStart}`)})]})},S?"wrapped":"unwrapped")}function Gp({canExpand:u,direction:f,error:d,loading:o,segment:h,onExpand:S}){const _=!u||!!o,D=Yp(f);return s.jsxs("div",{className:"hidden-lines",children:[s.jsxs("div",{className:"hidden-lines-main",children:[s.jsx("span",{className:"hidden-lines-count",children:o?s.jsxs(s.Fragment,{children:[s.jsx($m,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),s.jsx("div",{className:"hidden-lines-actions",children:s.jsx("button",{"aria-label":D,className:"hidden-lines-action",disabled:_,title:D,type:"button",onClick:()=>S(f),children:s.jsx(Xp,{direction:f})})})]}),d?s.jsx("div",{className:"hidden-lines-error",children:d}):null]})}function Yp(u){return u==="up"?"Expand hidden context upward":u==="down"?"Expand hidden context downward":"Expand hidden context"}function Xp({direction:u}){return u==="up"?s.jsx(u1,{size:15}):u==="down"?s.jsx(la,{size:15}):s.jsx(s1,{size:15})}function Qp({content:u,tokens:f}){return!f||f.length===0?s.jsx("code",{children:u||" "}):s.jsx("code",{children:f.map(d=>s.jsx("span",{style:Vp(d),children:d.content},`${d.offset}:${d.content}`))})}function Vp(u){const f={};u.color&&(f.color=u.color),u.fontStyle&&(u.fontStyle&1)!==0&&(f.fontStyle="italic"),u.fontStyle&&(u.fontStyle&2)!==0&&(f.fontWeight=700);const d=[];return u.fontStyle&&(u.fontStyle&4)!==0&&d.push("underline"),u.fontStyle&&(u.fontStyle&8)!==0&&d.push("line-through"),d.length>0&&(f.textDecorationLine=d.join(" ")),f}function ph(u){return u.type==="add"?"+":u.type==="delete"?"-":" "}function Zp(u,f,d){return f===d?"range-selected range-single":u===f?"range-selected range-start":u===d?"range-selected range-end":"range-selected range-middle"}function kp(u,f,d){return!u||!d?"":d.mode==="turn"?`${u}:${f??""}:turn`:d.mode==="commit"?`${u}:${f??""}:commit:${d.sha}`:`${u}:${f??""}:range:${d.fromSha}:${d.toSha}`}function Kp(u){const f=new Map;let d=0;for(const o of u){const h=gf(o),S=Sf(o);S!=null&&(f.set(ii(h,S),d),d+=1)}return f}function df(u,f,d,o){const h=u.get(ii(f,d)),S=u.get(ii(f,o));return h==null||S==null?null:{start:Math.min(h,S),end:Math.max(h,S)}}function Bm(u,f){return!!(f&&u>=f.start&&u<=f.end)}function Jp(u,f,d,o,h){const S=[],_=df(f,d,o,h);if(!_)return"";u.forEach((z,v)=>{Sf(z)!=null&&v>=_.start&&v<=_.end&&S.push(z)});const D=new Set(S.map(z=>z.type)).size>1;return S.map(z=>D?`${ph(z)}${z.content}`:z.content).join(`
262
+ `)}const Tu="__gloss_no_extension__";function $p(u){const f=[u.name];let d=u;for(;d.children.length===1&&d.children[0].type==="directory";)d=d.children[0],f.push(d.name);return{name:f.join("/"),node:d}}function Fp(u){const f=new Map;for(const d of u){const o=gh(d.path),h=f.get(o);h?h.count+=1:f.set(o,{id:o,label:o===Tu?"No extension":o,count:1})}return Array.from(f.values()).sort((d,o)=>d.id===Tu?1:o.id===Tu?-1:d.label.localeCompare(o.label,void 0,{sensitivity:"base"}))}function Wp(u,f,d){const o=f.trim().toLowerCase();return d.size===0?[]:u.filter(h=>{const S=d.has(gh(h.path)),_=o.length===0||h.path.toLowerCase().includes(o);return S&&_})}function Ip(u){const f={type:"directory",id:"root",name:"",path:"",children:[]},d=new Map;for(const o of u){const h=o.path.split("/").filter(Boolean);let S=f;for(const[_,D]of h.entries()){const z=_===h.length-1,v=h.slice(0,_+1).join("/");z?S.children.push({type:"file",id:`file:${o.path}`,name:D,path:o.path,file:o}):S=Pp(S,D,v,d)}}return Sh(f),f}function Pp(u,f,d,o){let h=o.get(u);h||(h=new Map,o.set(u,h));const S=h.get(f);if(S)return S;const _={type:"directory",id:`dir:${d}`,name:f,path:d,children:[]};return u.children.push(_),h.set(f,_),_}function gh(u){const f=u.split("/").pop()??u,d=f.lastIndexOf(".");return d<=0||d===f.length-1?Tu:f.slice(d).toLowerCase()}function Sh(u){u.children.sort((f,d)=>f.type!==d.type?f.type==="directory"?-1:1:f.name.localeCompare(d.name,void 0,{sensitivity:"base"}));for(const f of u.children)f.type==="directory"&&Sh(f)}function Gm({activeFilePath:u,extensionBuckets:f,files:d,filteredFiles:o,onCollapse:h,onClearExtensions:S,onFileSelect:_,onSearchChange:D,onSelectAllExtensions:z,onToggleExtension:v,searchQuery:w,selectedExtensionIds:R}){const[B,$]=H.useState(!1),[I,se]=H.useState(new Set),Se=H.useRef(null),k=H.useMemo(()=>Ip(o),[o]),_e=H.useMemo(()=>{const te=tg(k);for(const K of I)te.delete(K);return te},[I,k]),G=R.size!==f.length;H.useEffect(()=>{if(!B)return;const te=be=>{var Le;(Le=Se.current)!=null&&Le.contains(be.target)||$(!1)},K=be=>{be.key==="Escape"&&$(!1)};return window.addEventListener("pointerdown",te),window.addEventListener("keydown",K),()=>{window.removeEventListener("pointerdown",te),window.removeEventListener("keydown",K)}},[B]);const ye=te=>{se(K=>{const be=new Set(K);return _e.has(te)?be.add(te):be.delete(te),be})};return s.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[s.jsxs("div",{className:"file-tree-header",children:[s.jsx("span",{children:"Changed files"}),h?s.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:h,children:s.jsx(B1,{size:15})}):null]}),s.jsxs("div",{className:"file-tree-controls",children:[s.jsxs("label",{className:"file-tree-search",children:[s.jsx(K1,{size:18}),s.jsx("span",{className:"sr-only",children:"Filter files"}),s.jsx("input",{type:"search",value:w,placeholder:"Filter files...",onChange:te=>D(te.target.value)}),w?s.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>D(""),children:s.jsx(yf,{size:14})}):null]}),s.jsxs("div",{className:"file-tree-filter-shell",ref:Se,children:[s.jsx("button",{"aria-label":"Filter by file extension","aria-expanded":B,className:`file-tree-filter-button ${G?"active":""}`,title:"Filter by file extension",type:"button",onClick:()=>$(te=>!te),children:s.jsx(W1,{size:17})}),B?s.jsx(eg,{buckets:f,selectedExtensionIds:R,onClear:S,onSelectAll:z,onToggle:v}):null]})]}),s.jsx("div",{className:"file-tree-summary",children:s.jsxs("span",{children:[o.length," of ",d.length," ",d.length===1?"file":"files"]})}),o.length===0?s.jsx("div",{className:"file-tree-empty",children:d.length===0?"No files changed":"No files match"}):s.jsx("div",{className:"file-tree-list",children:k.children.map(te=>s.jsx(bh,{activeFilePath:u,expandedDirectoryIds:_e,node:te,depth:0,onFileSelect:_,onToggleDirectory:ye},te.id))})]})}function eg({buckets:u,onClear:f,onSelectAll:d,onToggle:o,selectedExtensionIds:h}){return s.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[s.jsxs("div",{className:"extension-popover-header",children:[s.jsx("span",{children:"File extensions"}),s.jsxs("div",{className:"extension-popover-actions",children:[s.jsx("button",{type:"button",onClick:d,children:"All"}),s.jsx("button",{type:"button",onClick:f,children:"None"})]})]}),s.jsx("div",{className:"extension-options",children:u.map(S=>{const _=h.has(S.id);return s.jsxs("button",{"aria-checked":_,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>o(S.id),children:[s.jsx("span",{className:"extension-check",children:_?s.jsx(dn,{size:16}):null}),s.jsx("span",{className:"extension-label",children:S.label}),s.jsx("span",{className:"extension-count",children:S.count})]},S.id)})})]})}function bh({activeFilePath:u,depth:f,expandedDirectoryIds:d,node:o,onFileSelect:h,onToggleDirectory:S}){const _={paddingLeft:8+f*14};if(o.type==="directory"){const D=$p(o),z=d.has(D.node.id);return s.jsxs("div",{children:[s.jsxs("button",{"aria-expanded":z,className:"file-tree-row directory",style:_,title:D.node.path,type:"button",onClick:()=>S(D.node.id),children:[z?s.jsx(la,{size:16}):s.jsx(Km,{size:16}),z?s.jsx(j1,{size:17}):s.jsx(N1,{size:17}),s.jsx("span",{className:"file-tree-name",children:D.name})]}),z?s.jsx("div",{children:D.node.children.map(v=>s.jsx(bh,{activeFilePath:u,expandedDirectoryIds:d,node:v,depth:f+1,onFileSelect:h,onToggleDirectory:S},v.id))}):null]})}return s.jsx("div",{children:s.jsxs("button",{className:`file-tree-row file ${u===o.path?"active":""}`,style:_,title:o.path,type:"button",onClick:()=>h(o.path),children:[s.jsx("span",{className:"file-tree-spacer"}),s.jsx(hf,{size:16}),s.jsx("span",{className:"file-tree-name",children:o.name}),s.jsxs("span",{className:"file-tree-stats",children:[s.jsxs("span",{className:"stat add",children:["+",o.file.additions]}),s.jsxs("span",{className:"stat del",children:["-",o.file.deletions]})]})]})})}function tg(u){const f=new Set,d=o=>{for(const h of o.children)h.type==="directory"&&(f.add(h.id),d(h))};return d(u),f}function Ym(u){return u instanceof Error?u.message:String(u)}function lg({reviewId:u,reviewScope:f,onSubmitted:d}){const o=Et(B=>B.comments),h=Et(B=>B.removeComment),[S,_]=H.useState("idle"),[D,z]=H.useState(null),v=H.useRef(!1),w=S!=="submitting"&&S!=="done",R=H.useCallback(async()=>{if(!(!w||v.current)){v.current=!0,_("submitting"),z(null);try{await Wv(u,o,f),_("done"),z("Submitted");try{await(d==null?void 0:d())}catch(B){z(`Submitted, but refresh failed: ${Ym(B)}`)}}catch(B){v.current=!1,_("error"),z(Ym(B))}}},[w,o,d,u,f]);return H.useEffect(()=>{const B=$=>{Ap($)&&($.preventDefault(),R())};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[R]),s.jsxs("aside",{className:"submit-bar",children:[s.jsx("div",{className:"comment-list",children:o.length===0?s.jsx("span",{className:"muted",children:"No comments yet"}):o.map(B=>s.jsxs("div",{className:"comment-chip",children:[s.jsxs("span",{children:[B.filePath,":",ai(B,{repeatSideOnEnd:!1})]}),s.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>h(B.id),children:s.jsx(Wm,{size:14})})]},B.id))}),s.jsxs("div",{className:"submit-actions",children:[D?s.jsx("span",{className:`submit-message ${S}`,children:D}):null,s.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!w,title:"Submit review (Command+Shift+Enter)",onClick:R,children:[S==="done"?s.jsx(dn,{size:16}):s.jsx($1,{size:16}),"Submit ",o.length]})]})]})}const ng="gloss:viewed-files:";function xh(u){return`${ng}${u}`}function cf(u,f=jh()){if(!f)return new Set;const d=f.getItem(xh(u));if(!d)return new Set;try{const o=JSON.parse(d);return new Set(Array.isArray(o)?o.filter(h=>typeof h=="string"):[])}catch{return new Set}}function ag(u,f,d=jh()){if(!d)return;const o=xh(u);if(f.size===0){d.removeItem(o);return}d.setItem(o,JSON.stringify(Array.from(f).toSorted()))}function jh(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function ig(u){return u.type==="review.turn.created"||u.type==="review.submitted"||u.type==="review.updated"}function ug(u,f,d){return u.reviewId!==f||!u.selectedExtensionIds?new Set(d):new Set(d.filter(o=>{var h;return(h=u.selectedExtensionIds)==null?void 0:h.has(o)}))}function cg(u,f){return{icon:(u==null?void 0:u.trim())===f.trim()?"branch":null}}function sg(u,f){const d=(u==null?void 0:u.trim())??"",o=d||"detached";return o===f.trim()?null:{label:o,title:d||"Detached HEAD"}}function Eh(u){return u.length>1}const fg=300,og=560,rg=360,dg={files:[],stats:{files:0,additions:0,deletions:0}},mg=[],hg=[],Nh={diff:null,error:null,loading:!1},yg=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),vg=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),sf=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]];function pg({reviewId:u}){return s.jsx(bg,{reviewId:u},u)}function gg(){const{preference:u,setPreference:f}=rh(),d=[{icon:w1,label:"Match system theme",value:"system"},{icon:P1,label:"Use light theme",value:"light"},{icon:U1,label:"Use dark theme",value:"dark"}];return s.jsxs("fieldset",{className:"theme-toggle",children:[s.jsx("legend",{className:"sr-only",children:"Theme"}),d.map(o=>{const h=o.icon;return s.jsx("button",{"aria-label":o.label,"aria-pressed":u===o.value,className:"theme-toggle-option",title:o.label,type:"button",onClick:()=>f(o.value),children:s.jsx(h,{size:15})},o.value)})]})}function Sg(u){const f=document.getElementById(vh(u));if(!f)return;const o=f.getBoundingClientRect().top+window.scrollY-156;window.scrollTo({behavior:"smooth",top:Math.max(o,0)})}function bg({reviewId:u}){const[f,d]=H.useState(null),[o,h]=H.useState(null),[S,_]=H.useState(!1),[D,z]=H.useState(null),[v,w]=H.useState(!0),[R,B]=H.useState(!1),[$,I]=H.useState(rg),[se,Se]=H.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[k,_e]=H.useState(null),[de,G]=H.useState({mode:"all"}),[ye,te]=H.useReducer(zg,Nh),[K,be]=H.useState(()=>({storageKey:u,files:cf(u)})),[Le,Nt]=H.useState(null),lt=Et(X=>X.reset),Y=Et(X=>X.hydrateReview),xe=Et(X=>X.setDraft),Te=(f==null?void 0:f.turns[f.turns.length-1])??null,Xe=(Te==null?void 0:Te.id)??null,E=f&&Te?f.turns.find(X=>X.id===k)??Te:null,q=f&&E?xg(f,E):null,F=q?Om(q):null,ve=(E==null?void 0:E.diff.commitDiffs)??hg,ne=H.useMemo(()=>Tg(de,ve),[ve,de]),p=E&&ne.mode==="single"?ve.find(X=>X.commit.sha===ne.sha)??null:null,C=E&&ne.mode==="range"?ye.diff??dg:null,L=E?C??p??E.diff:null,x=(L==null?void 0:L.files)??mg,U=H.useMemo(()=>Fp(x),[x]),Q=H.useMemo(()=>U.map(X=>X.id),[U]),V=(f==null?void 0:f.meta.id)??null,fe=!!(V&&se.reviewId===V),ue=H.useMemo(()=>V?ug(se,V,Q):new Set(Q),[Q,se,V]),Ie=fe?se.searchQuery:"",Pe=H.useMemo(()=>Wp(x,Ie,ue),[x,Ie,ue]),nt=E?`${u}:${E.id}`:u;let Wt=K.files;K.storageKey!==nt&&(Wt=cf(nt),be({storageKey:nt,files:Wt}));const qe=D&&Pe.some(X=>X.path===D)?D:null,ot=H.useCallback(X=>{d(X),document.title=Om(X)},[]),Ql=H.useCallback(()=>{G({mode:"all"}),te({type:"idle"}),xe(null)},[xe]),na=H.useCallback(async()=>{var Fe;const X=await Rm(u),ce=((Fe=X.turns[X.turns.length-1])==null?void 0:Fe.id)??null;k===null&&Xe&&ce!==Xe&&Ql(),ot(X)},[u,k,Xe,Ql,ot]);if(H.useEffect(()=>{let X=!1;return lt(),Rm(u).then(ce=>{X||ot(ce)}).catch(ce=>{X||h(ce instanceof Error?ce.message:String(ce))}),()=>{X=!0}},[u,lt,ot]),H.useEffect(()=>{var X;E&&Y(((X=E.feedback)==null?void 0:X.comments)??[],E.resolution??null)},[Y,E]),H.useEffect(()=>{if(!E||ne.mode!=="range")return;let X=!1;return te({type:"loading"}),Pv(u,ne.fromSha,ne.toSha,E.id).then(ce=>{X||te({type:"loaded",diff:ce})}).catch(ce=>{X||te({error:ce instanceof Error?ce.message:String(ce),type:"failed"})}),()=>{X=!0}},[ne,E,u]),H.useEffect(()=>{const X=new EventSource(`/api/reviews/${u}/events`);return X.onmessage=ce=>{const Fe=Ov(ce.data,Bv,"review event");ig(Fe)&&na().catch(yt=>{h(yt instanceof Error?yt.message:String(yt))})},()=>{X.close()}},[u,na]),o)return s.jsx("main",{className:"empty-shell",children:s.jsxs("section",{className:"empty-panel",children:[s.jsx("h1",{children:"Review unavailable"}),s.jsx("p",{children:o})]})});if(!f||!E||!q||!L||!F)return s.jsx("main",{className:"empty-shell",children:s.jsxs("section",{className:"empty-panel",children:[s.jsx($m,{className:"spin",size:24}),s.jsx("p",{children:"Loading review"})]})});const ci=E.diff.scope,aa=L.stats,ia=cg(q.meta.branch,F),Vl=sg(q.meta.branch,F),Du=Og(ne),wu=Dg(ne),at=E.id!==Xe||xv(E.status),Ru=Eh(f.turns),ua=ne.mode==="range"?ye.error:null,si=ne.mode==="range"&&ye.loading,Zl=L.files.filter(X=>Wt.has(X.path)).length,Uu=L.files.length===0?0:Math.round(Zl/L.files.length*100),fi=X=>{Se(ce=>({reviewId:f.meta.id,searchQuery:X,selectedExtensionIds:ce.reviewId===f.meta.id?ce.selectedExtensionIds:null}))},Hu=X=>{Se(ce=>{const Fe=ce.reviewId===f.meta.id&&ce.selectedExtensionIds?new Set(ce.selectedExtensionIds):new Set(Q);return Fe.has(X)?Fe.delete(X):Fe.add(X),{reviewId:f.meta.id,searchQuery:ce.reviewId===f.meta.id?ce.searchQuery:"",selectedExtensionIds:Fe}})},Lu=()=>{Se(X=>({reviewId:f.meta.id,searchQuery:X.reviewId===f.meta.id?X.searchQuery:"",selectedExtensionIds:null}))},kl=()=>{Se(X=>({reviewId:f.meta.id,searchQuery:X.reviewId===f.meta.id?X.searchQuery:"",selectedExtensionIds:new Set}))},dt=X=>{z(X),B(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>Sg(X),0)})},kt=X=>{X.preventDefault();const ce=X.clientX,Fe=$,yt=ri=>{const ca=Fe+ri.clientX-ce;I(Math.min(og,Math.max(fg,ca)))},It=()=>{window.removeEventListener("pointermove",yt),window.removeEventListener("pointerup",It)};window.addEventListener("pointermove",yt),window.addEventListener("pointerup",It,{once:!0})},mt=(X,ce)=>{be(Fe=>{const yt=Fe.storageKey===nt?Fe.files:cf(nt),It=new Set(yt);return ce?It.add(X):It.delete(X),ag(nt,It),{storageKey:nt,files:It}})},qu=async X=>{Nt(null);try{await Iv(u,X,E.id)}catch(ce){Nt(ce instanceof Error?ce.message:String(ce))}},oi={activeFilePath:qe,extensionBuckets:U,files:L.files,filteredFiles:Pe,searchQuery:Ie,selectedExtensionIds:ue,onClearExtensions:kl,onFileSelect:dt,onSearchChange:fi,onSelectAllExtensions:Lu,onToggleExtension:Hu},Bu=s.jsx(Gm,{...oi,onCollapse:()=>w(!0)}),hn=s.jsx(Gm,{...oi}),yn=L.files.length===0?null:s.jsxs("div",{className:"empty-diff filtered-empty",children:[s.jsx("h2",{children:"No matching files"}),s.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return s.jsxs("main",{className:"review-shell",children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("div",{className:"topbar-header",children:[s.jsxs("div",{className:"topbar-title",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),s.jsxs("div",{className:"review-heading",children:[s.jsx("p",{className:"product-name",children:"Gloss"}),s.jsxs("h1",{children:[ia.icon==="branch"?s.jsx(zu,{className:"review-title-icon",size:18}):null,s.jsx("span",{className:"review-title-text",children:F})]})]})]}),s.jsxs("div",{className:"topbar-actions",children:[s.jsx(Ag,{commitDiffs:ve,value:ne,onChange:X=>{G(X),X.mode!=="range"&&te({type:"idle"}),xe(null)}}),s.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[s.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${Uu}%`}}),Zl," / ",L.files.length," viewed"]}),s.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>B(!0),children:s.jsx(hf,{size:16})}),s.jsx("button",{"aria-label":S?"Unwrap lines":"Wrap lines","aria-pressed":S,className:"icon-button wrap-toggle",title:S?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>_(X=>!X),children:S?s.jsx(L1,{size:16}):s.jsx(lv,{size:16})}),s.jsx(gg,{}),Vl?s.jsxs("div",{className:"branch-pill",title:Vl.title,children:[s.jsx(zu,{size:16}),s.jsx("span",{children:Vl.label})]}):null]})]}),s.jsx(jg,{scope:ci,selectedTurn:E,stats:aa,turns:f.turns,onSelectTurn:X=>{X!==E.id&&Ql(),_e(X===Xe?null:X)}})]}),Le?s.jsx("div",{className:"open-file-message error",children:Le}):null,ua?s.jsx("div",{className:"open-file-message error",children:ua}):null,si?s.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,s.jsxs("div",{className:`review-body ${v?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${$}px`},children:[s.jsx("aside",{className:`review-sidebar ${v?"collapsed":""}`,children:v?s.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>w(!1),children:[s.jsx(Y1,{size:17}),s.jsx("span",{children:"Files"}),s.jsx("span",{children:Pe.length})]}):s.jsxs(s.Fragment,{children:[Bu,s.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:kt})]})}),s.jsxs("section",{className:"review-diff-column",children:[at&&!Ru?s.jsx(Ug,{record:q}):null,s.jsx(Lp,{activeFilePath:qe,contextSource:wu,diff:L,emptyState:yn,files:Pe,record:q,readOnly:at,reviewId:u,turnId:E.id,viewedFiles:Wt,wrapLines:S,onOpenFile:qu,onViewedChange:mt})]})]}),R?s.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:s.jsxs("aside",{className:"file-tree-drawer",children:[s.jsxs("div",{className:"file-tree-drawer-header",children:[s.jsx("span",{children:"Changed files"}),s.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>B(!1),children:s.jsx(yf,{size:16})})]}),hn]})}):null,at?null:s.jsx(lg,{reviewId:u,reviewScope:Du,onSubmitted:na})]})}function xg(u,f){return{...u,meta:{...u.meta,activeTurnId:f.id,status:f.status,submittedAt:f.submittedAt,resolvedAt:f.resolvedAt,feedbackPath:f.feedbackPath,markdownPath:f.markdownPath},diff:f.diff,...f.feedback?{feedback:f.feedback}:{feedback:void 0},...f.resolution?{resolution:f.resolution}:{resolution:void 0}}}function jg({scope:u,selectedTurn:f,stats:d,turns:o,onSelectTurn:h}){return s.jsxs("div",{className:"review-context-bar",children:[s.jsxs("div",{className:"review-context-range",title:`${Qm("Base",u.base.ref,u.base.sha)} to ${Qm("Compare",u.comparison.ref,u.comparison.sha)}`,children:[s.jsx("span",{className:"review-context-ref",children:Xm(u.base.ref,u.base.sha)}),s.jsx(km,{className:"review-context-arrow",size:14}),s.jsx("span",{className:"review-context-ref",children:Xm(u.comparison.ref,u.comparison.sha)})]}),s.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),s.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[s.jsxs("span",{children:[d.files," ",d.files===1?"file":"files"]}),s.jsxs("span",{className:"summary-add",children:["+",d.additions]}),s.jsxs("span",{className:"summary-del",children:["-",d.deletions]})]}),s.jsx(Eg,{selectedTurn:f,turns:o,onSelect:h})]})}function Eg({selectedTurn:u,turns:f,onSelect:d}){var z;const[o,h]=H.useState(!1),S=H.useRef(null);if(H.useEffect(()=>{if(!o)return;const v=R=>{var B;(B=S.current)!=null&&B.contains(R.target)||h(!1)},w=R=>{R.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",v),window.addEventListener("keydown",w),()=>{window.removeEventListener("pointerdown",v),window.removeEventListener("keydown",w)}},[o]),!Eh(f))return null;const _=(z=f[f.length-1])==null?void 0:z.id,D=[...f].reverse();return s.jsxs("div",{className:"turn-selector",ref:S,children:[s.jsxs("button",{"aria-expanded":o,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(v=>!v),children:[s.jsxs("span",{children:["Turn ",u.index," of ",f.length]}),s.jsx("span",{className:`turn-selector-status ${u.status}`,children:u.status}),s.jsx(la,{size:14})]}),o?s.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:D.map(v=>{var se;const w=Im(v),R=v.id===u.id,B=v.id===_,$=(se=v.feedback)!=null&&se.reviewScope?Sv(v.feedback.reviewScope,v.diff.commitDiffs??[]):null,I=Ng(v);return s.jsxs("button",{"aria-checked":R,className:`turn-menu-item ${R?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{d(v.id),h(!1)},children:[s.jsxs("span",{className:"turn-menu-title",children:["Turn ",v.index,B?s.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),s.jsxs("span",{className:`turn-menu-meta ${v.status}`,children:[v.status,w.total>0?` · ${w.open} open / ${w.total}`:" · no comments"]}),I?s.jsx("time",{className:"turn-menu-time",dateTime:I,children:zh(I)}):null,$?s.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",$]}):null]},v.id)})}):null]})}function Xm(u,f){return f?`${u} ${f.slice(0,7)}`:u}function Qm(u,f,d){return`${u} ${f}${d?` (${d})`:""}`}function Ng(u){var f;return u.status==="resolved"?u.resolvedAt??((f=u.resolution)==null?void 0:f.resolvedAt)??null:u.status==="submitted"?u.submittedAt??null:null}function Tg(u,f){if(u.mode==="all")return u;if(u.mode==="single")return f.some(h=>h.commit.sha===u.sha)?u:{mode:"all"};const d=f.findIndex(h=>h.commit.sha===u.fromSha),o=f.findIndex(h=>h.commit.sha===u.toSha);return d>=0&&o>=d?u:{mode:"all"}}function zg(u,f){switch(f.type){case"idle":return Nh;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:f.diff,error:null,loading:!1};case"failed":return{diff:null,error:f.error,loading:!1}}}function Ag({commitDiffs:u,value:f,onChange:d}){const[o,h]=H.useState(!1),[S,_]=H.useState("all"),[D,z]=H.useState(new Set),v=H.useRef(null),w=H.useRef(null),R=H.useMemo(()=>u.map(k=>({sha:k.commit.sha,shortSha:k.commit.shortSha,subject:k.commit.subject,authorName:k.commit.authorName,committedAt:k.commit.committedAt,fileCount:k.files.length})),[u]);if(H.useEffect(()=>{if(!o)return;w.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const k=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),_e=()=>{var G;return Array.from(((G=v.current)==null?void 0:G.querySelectorAll(k))??[]).filter(ye=>ye.offsetParent!==null)};window.requestAnimationFrame(()=>{var G;(G=_e()[0]??v.current)==null||G.focus()});const de=G=>{var be;if(G.key==="Escape"&&h(!1),G.key!=="Tab")return;const ye=_e();if(ye.length===0){G.preventDefault(),(be=v.current)==null||be.focus();return}const te=ye[0],K=ye[ye.length-1];G.shiftKey&&document.activeElement===te?(G.preventDefault(),K.focus()):!G.shiftKey&&document.activeElement===K&&(G.preventDefault(),te.focus())};return window.addEventListener("keydown",de),()=>{var G;window.removeEventListener("keydown",de),(G=w.current)==null||G.focus(),w.current=null}},[o]),R.length===0)return null;const B=()=>{const k=_g(f,R);_(f.mode==="all"||k.size===0?"all":"selected"),z(k),h(!0)},$=Th(D,R),I=$.length>0?{from:R[$[0]],to:R[$[$.length-1]],count:$[$.length-1]-$[0]+1}:null,se=S==="all"?`${R.length} ${R.length===1?"commit":"commits"}`:I?I.from.sha===I.to.sha?I.from.shortSha:`${I.count} commits · ${I.from.shortSha} to ${I.to.shortSha}`:"No commits selected",Se=S==="all"||$.length>0;return s.jsxs("div",{className:"commit-selector",children:[s.jsxs("button",{"aria-expanded":o,className:"commit-picker-trigger",type:"button",onClick:B,children:[s.jsx(A1,{size:16}),s.jsx("span",{className:"commit-picker-trigger-text",children:wg(f,R)}),s.jsx(la,{size:16})]}),o?pv.createPortal(s.jsx("div",{className:"commit-picker-backdrop",children:s.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:v,open:!0,tabIndex:-1,children:[s.jsxs("header",{className:"commit-picker-header",children:[s.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),s.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:s.jsx(yf,{size:20})})]}),s.jsxs("div",{className:"commit-picker-body",children:[s.jsxs("label",{className:`commit-picker-all ${S==="all"?"selected":""}`,children:[s.jsx("input",{checked:S==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{_("all"),z(new Set)}}),s.jsxs("span",{className:"commit-picker-all-copy",children:[s.jsx("span",{children:"All commits"}),s.jsxs("span",{children:[R.length," ",R.length===1?"commit":"commits"]})]})]}),s.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),s.jsx("div",{className:"commit-picker-list",children:R.map(k=>{const _e=S==="selected"&&D.has(k.sha);return s.jsxs("label",{className:`commit-picker-row ${_e?"selected":""}`,children:[s.jsx("input",{checked:_e,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{_("selected"),z(de=>Mg(de,k.sha,R))}}),s.jsxs("span",{className:"commit-picker-row-copy",children:[s.jsx("span",{className:"commit-picker-subject",children:k.subject}),s.jsxs("span",{className:"commit-picker-meta",children:[k.authorName," committed ",Rg(k.committedAt)," ","· ",k.fileCount," ",k.fileCount===1?"file":"files"]})]}),s.jsx("span",{className:"commit-picker-sha",children:k.shortSha})]},k.sha)})})]}),s.jsxs("footer",{className:"commit-picker-footer",children:[s.jsx("span",{className:"commit-picker-summary",children:se}),s.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),s.jsxs("button",{className:"primary-button",disabled:!Se,type:"button",onClick:()=>{if(S==="all"){d({mode:"all"}),h(!1);return}const k=Cg($,R);k&&(d(k),h(!1))},children:[s.jsx(dn,{size:16}),"Save"]})]})]})}),document.body):null]})}function _g(u,f){if(u.mode==="all")return new Set;if(u.mode==="single")return f.some(h=>h.sha===u.sha)?new Set([u.sha]):new Set;const d=f.findIndex(h=>h.sha===u.fromSha),o=f.findIndex(h=>h.sha===u.toSha);return d<0||o<d?new Set:ea(d,o,f)}function Th(u,f){const d=[];for(const[o,h]of f.entries())u.has(h.sha)&&d.push(o);return d}function Mg(u,f,d){const o=d.findIndex(v=>v.sha===f);if(o<0)return u;const h=Th(u,d);if(!u.has(f)){const v=h.length>0?Math.min(h[0],o):o,w=h.length>0?Math.max(h[h.length-1],o):o;return ea(v,w,d)}if(h.length<=1)return new Set;const S=h[0],_=h[h.length-1];if(o<=S)return ea(S+1,_,d);if(o>=_)return ea(S,_-1,d);const D=o-S,z=_-o;return D>=z?ea(S,o-1,d):ea(o+1,_,d)}function ea(u,f,d){return u<0||f<u?new Set:new Set(d.slice(u,f+1).map(o=>o.sha))}function Cg(u,f){if(u.length===0)return null;const d=u[0],o=u[u.length-1];return d===o?{mode:"single",sha:f[d].sha}:{mode:"range",fromSha:f[d].sha,toSha:f[o].sha}}function Og(u){return u.mode==="all"?{mode:"all"}:u.mode==="single"?{mode:"single",sha:u.sha}:{mode:"range",fromSha:u.fromSha,toSha:u.toSha}}function Dg(u){return u.mode==="all"?{mode:"turn"}:u.mode==="single"?{mode:"commit",sha:u.sha}:{mode:"range",fromSha:u.fromSha,toSha:u.toSha}}function wg(u,f){if(u.mode==="all")return"All commits";if(u.mode==="single"){const S=f.find(_=>_.sha===u.sha);return S?`${S.shortSha} ${S.subject}`:"One commit"}const d=f.findIndex(S=>S.sha===u.fromSha),o=f.findIndex(S=>S.sha===u.toSha);return d<0||o<d?"Commit range":`${o-d+1} commits · ${f[d].shortSha} to ${f[o].shortSha}`}function Rg(u){const f=new Date(u);if(Number.isNaN(f.getTime()))return"recently";const d=Math.round((f.getTime()-Date.now())/1e3),[o,h]=sf.find(([,S])=>Math.abs(d)>=S)??sf[sf.length-1];return yg.format(Math.round(d/h),o)}function Ug({record:u}){var o;const f=Hg(u);if(!f)return null;const d=u.meta.status==="resolved"?u.meta.resolvedAt??((o=u.resolution)==null?void 0:o.resolvedAt):u.meta.submittedAt;return s.jsxs("section",{className:`review-state-banner ${u.meta.status}`,children:[s.jsxs("div",{className:"review-state-title",children:[s.jsx(Jm,{size:16}),s.jsx("span",{children:f.title})]}),s.jsx("p",{children:f.body}),d?s.jsx("time",{dateTime:d,children:zh(d)}):null]})}function Hg(u){const f=u.meta.status,d=Im(u),o=d.total>0?`${d.resolved} of ${d.total} comments resolved`:null;return f==="submitted"?{title:d.resolved>0&&o?`Submitted · ${o}`:"Submitted",body:d.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:f==="resolved"?{title:o?`Resolved · ${o}`:"Resolved",body:"This feedback turn is resolved."}:null}function zh(u){return vg.format(new Date(u))}const Lg="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",qg=`1. Run gloss open --json from the repo root unless the user names a base ref.
263
+ 2. Wait for the browser review to be submitted.
264
+ 3. Read feedbackPath from the JSON output.
265
+ 4. Address each comment in file and line order.
266
+ 5. Validate the fix with the narrowest relevant checks.
267
+ 6. Optionally mark individual comments handled:
268
+ gloss resolve <reviewId> --comment <commentId> --summary "<what changed>"
269
+ 7. Run gloss resolve <reviewId> --summary "<what changed>", then summarize what changed.`;function Bg(){return s.jsxs("main",{className:"setup-page",children:[s.jsxs("nav",{className:"setup-nav","aria-label":"Gloss setup",children:[s.jsxs("a",{className:"marketing-wordmark",href:"/",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),"Gloss"]}),s.jsx("a",{href:"/setup.md",children:"Raw setup.md"})]}),s.jsxs("header",{className:"setup-header",children:[s.jsx("h1",{children:"Set up Gloss for agent reviews."}),s.jsx("p",{children:"Install the CLI, then add the Gloss instruction block to the file your coding agent already reads."})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Install"}),s.jsx("pre",{children:"brew install iamrajjoshi/tap/gloss"}),s.jsx("pre",{children:"npm install -g getgloss"}),s.jsx("pre",{children:"gloss help"})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Agent Instruction"}),s.jsx("p",{children:"Give a new agent chat this instruction:"}),s.jsx("pre",{children:"Install Gloss with Homebrew or npm. Then read https://getgloss.dev/setup.md."})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Claude Code Skill"}),s.jsxs("p",{children:["Gloss ships a packaged skill at ",s.jsx("code",{children:"skill/SKILL.md"}),". Install it when you want Claude Code to know when and how to use Gloss."]}),s.jsx("pre",{children:Lg}),s.jsx("p",{children:"The skill pairs the CLI with the browser app:"}),s.jsx("pre",{children:qg})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Persistent Instructions"}),s.jsx("p",{children:"Add the canonical Gloss block to the instruction file your agent actually loads."}),s.jsx("pre",{children:"curl -fsSL https://getgloss.dev/prompt.md >> /absolute/path/to/AGENTS.md"}),s.jsxs("ul",{children:[s.jsxs("li",{children:["Codex usually reads ",s.jsx("code",{children:"${CODEX_HOME:-$HOME/.codex}/AGENTS.md"}),"."]}),s.jsxs("li",{children:["Claude Code usually reads ",s.jsx("code",{children:"$HOME/.claude/CLAUDE.md"}),"."]}),s.jsxs("li",{children:["Project-local agents often read ",s.jsx("code",{children:"AGENTS.md"})," from the repo root."]})]})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Use"}),s.jsx("pre",{children:"gloss open --json"}),s.jsxs("p",{children:["Leave the command running. Gloss exits after the browser review is submitted and writes feedback under ",s.jsx("code",{children:"~/.gloss/reviews/<reviewId>/"}),"."]}),s.jsxs("p",{children:["In the browser review, ",s.jsx("code",{children:"Command+Enter"})," saves the active draft comment and"," ",s.jsx("code",{children:"Command+Shift+Enter"})," submits already-saved comments."]}),s.jsx("p",{children:"Start a fresh session with the same command for follow-up diffs."})]}),s.jsx("section",{className:"setup-note",children:s.jsxs("p",{children:["Agents should read ",s.jsx("a",{href:"/setup.md",children:"/setup.md"}),". This page is the browser-friendly version."]})})]})}function Gg(){if(window.location.pathname==="/setup"||window.location.pathname==="/setup/")return s.jsx(Bg,{});const u=/^\/review\/([^/]+)/.exec(window.location.pathname);return u?s.jsx(pg,{reviewId:u[1]}):s.jsx(vv,{})}J0.createRoot(document.getElementById("root")).render(s.jsx(ti.StrictMode,{children:s.jsx(Ep,{children:s.jsx(Gg,{})})}));export{Sf as a,gf as b,ii as d};