getgloss 0.12.3 → 0.13.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.
@@ -1,307 +0,0 @@
1
- (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const N of v.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&r(N)}).observe(document,{childList:!0,subtree:!0});function f(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(h){if(h.ep)return;h.ep=!0;const v=f(h);fetch(h.href,v)}})();function v3(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var p1={exports:{}},vi={};/**
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 kf;function g3(){if(kf)return vi;kf=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(r,h,v){var N=null;if(v!==void 0&&(N=""+v),h.key!==void 0&&(N=""+h.key),"key"in h){v={};for(var C in h)C!=="key"&&(v[C]=h[C])}else v=h;return h=v.ref,{$$typeof:i,type:r,key:N,ref:h!==void 0?h:null,props:v}}return vi.Fragment=s,vi.jsx=f,vi.jsxs=f,vi}var Vf;function b3(){return Vf||(Vf=1,p1.exports=g3()),p1.exports}var u=b3(),v1={exports:{}},fe={};/**
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 Gf;function S3(){if(Gf)return fe;Gf=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),N=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),B=Symbol.iterator;function Z(p){return p===null||typeof p!="object"?null:(p=B&&p[B]||p["@@iterator"],typeof p=="function"?p:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},re=Object.assign,K={};function X(p,O,U){this.props=p,this.context=O,this.refs=K,this.updater=U||ee}X.prototype.isReactComponent={},X.prototype.setState=function(p,O){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,O,"setState")},X.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function be(){}be.prototype=X.prototype;function oe(p,O,U){this.props=p,this.context=O,this.refs=K,this.updater=U||ee}var J=oe.prototype=new be;J.constructor=oe,re(J,X.prototype),J.isPureReactComponent=!0;var me=Array.isArray;function I(){}var $={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function Ne(p,O,U){var R=U.ref;return{$$typeof:i,type:p,key:O,ref:R!==void 0?R:null,props:U}}function qe(p,O){return Ne(p.type,O,p.props)}function Oe(p){return typeof p=="object"&&p!==null&&p.$$typeof===i}function Y(p){var O={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(U){return O[U]})}var xe=/\/+/g;function se(p,O){return typeof p=="object"&&p!==null&&p.key!=null?Y(""+p.key):O.toString(36)}function Te(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(I,I):(p.status="pending",p.then(function(O){p.status==="pending"&&(p.status="fulfilled",p.value=O)},function(O){p.status==="pending"&&(p.status="rejected",p.reason=O)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function w(p,O,U,R,V){var S=typeof p;(S==="undefined"||S==="boolean")&&(p=null);var q=!1;if(p===null)q=!0;else switch(S){case"bigint":case"string":case"number":q=!0;break;case"object":switch(p.$$typeof){case i:case s:q=!0;break;case M:return q=p._init,w(q(p._payload),O,U,R,V)}}if(q)return V=V(p),q=R===""?"."+se(p,0):R,me(V)?(U="",q!=null&&(U=q.replace(xe,"$&/")+"/"),w(V,O,U,"",function(ce){return ce})):V!=null&&(Oe(V)&&(V=qe(V,U+(V.key==null||p&&p.key===V.key?"":(""+V.key).replace(xe,"$&/")+"/")+q)),O.push(V)),1;q=0;var ne=R===""?".":R+":";if(me(p))for(var F=0;F<p.length;F++)R=p[F],S=ne+se(R,F),q+=w(R,O,U,S,V);else if(F=Z(p),typeof F=="function")for(p=F.call(p),F=0;!(R=p.next()).done;)R=R.value,S=ne+se(R,F++),q+=w(R,O,U,S,V);else if(S==="object"){if(typeof p.then=="function")return w(Te(p),O,U,R,V);throw O=String(p),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return q}function k(p,O,U){if(p==null)return p;var R=[],V=0;return w(p,R,"","",function(S){return O.call(U,S,V++)}),R}function P(p){if(p._status===-1){var O=p._result;O=O(),O.then(function(U){(p._status===0||p._status===-1)&&(p._status=1,p._result=U)},function(U){(p._status===0||p._status===-1)&&(p._status=2,p._result=U)}),p._status===-1&&(p._status=0,p._result=O)}if(p._status===1)return p._result.default;throw p._result}var pe=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=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(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Se={map:k,forEach:function(p,O,U){k(p,function(){O.apply(this,arguments)},U)},count:function(p){var O=0;return k(p,function(){O++}),O},toArray:function(p){return k(p,function(O){return O})||[]},only:function(p){if(!Oe(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return fe.Activity=L,fe.Children=Se,fe.Component=X,fe.Fragment=f,fe.Profiler=h,fe.PureComponent=oe,fe.StrictMode=r,fe.Suspense=x,fe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,fe.__COMPILER_RUNTIME={__proto__:null,c:function(p){return $.H.useMemoCache(p)}},fe.cache=function(p){return function(){return p.apply(null,arguments)}},fe.cacheSignal=function(){return null},fe.cloneElement=function(p,O,U){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var R=re({},p.props),V=p.key;if(O!=null)for(S in O.key!==void 0&&(V=""+O.key),O)!Q.call(O,S)||S==="key"||S==="__self"||S==="__source"||S==="ref"&&O.ref===void 0||(R[S]=O[S]);var S=arguments.length-2;if(S===1)R.children=U;else if(1<S){for(var q=Array(S),ne=0;ne<S;ne++)q[ne]=arguments[ne+2];R.children=q}return Ne(p.type,V,R)},fe.createContext=function(p){return p={$$typeof:N,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:v,_context:p},p},fe.createElement=function(p,O,U){var R,V={},S=null;if(O!=null)for(R in O.key!==void 0&&(S=""+O.key),O)Q.call(O,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(V[R]=O[R]);var q=arguments.length-2;if(q===1)V.children=U;else if(1<q){for(var ne=Array(q),F=0;F<q;F++)ne[F]=arguments[F+2];V.children=ne}if(p&&p.defaultProps)for(R in q=p.defaultProps,q)V[R]===void 0&&(V[R]=q[R]);return Ne(p,S,V)},fe.createRef=function(){return{current:null}},fe.forwardRef=function(p){return{$$typeof:C,render:p}},fe.isValidElement=Oe,fe.lazy=function(p){return{$$typeof:M,_payload:{_status:-1,_result:p},_init:P}},fe.memo=function(p,O){return{$$typeof:y,type:p,compare:O===void 0?null:O}},fe.startTransition=function(p){var O=$.T,U={};$.T=U;try{var R=p(),V=$.S;V!==null&&V(U,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(I,pe)}catch(S){pe(S)}finally{O!==null&&U.types!==null&&(O.types=U.types),$.T=O}},fe.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},fe.use=function(p){return $.H.use(p)},fe.useActionState=function(p,O,U){return $.H.useActionState(p,O,U)},fe.useCallback=function(p,O){return $.H.useCallback(p,O)},fe.useContext=function(p){return $.H.useContext(p)},fe.useDebugValue=function(){},fe.useDeferredValue=function(p,O){return $.H.useDeferredValue(p,O)},fe.useEffect=function(p,O){return $.H.useEffect(p,O)},fe.useEffectEvent=function(p){return $.H.useEffectEvent(p)},fe.useId=function(){return $.H.useId()},fe.useImperativeHandle=function(p,O,U){return $.H.useImperativeHandle(p,O,U)},fe.useInsertionEffect=function(p,O){return $.H.useInsertionEffect(p,O)},fe.useLayoutEffect=function(p,O){return $.H.useLayoutEffect(p,O)},fe.useMemo=function(p,O){return $.H.useMemo(p,O)},fe.useOptimistic=function(p,O){return $.H.useOptimistic(p,O)},fe.useReducer=function(p,O,U){return $.H.useReducer(p,O,U)},fe.useRef=function(p){return $.H.useRef(p)},fe.useState=function(p){return $.H.useState(p)},fe.useSyncExternalStore=function(p,O,U){return $.H.useSyncExternalStore(p,O,U)},fe.useTransition=function(){return $.H.useTransition()},fe.version="19.2.6",fe}var Yf;function H1(){return Yf||(Yf=1,v1.exports=S3()),v1.exports}var A=H1();const Si=v3(A);var g1={exports:{}},gi={},b1={exports:{}},S1={};/**
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 Xf;function x3(){return Xf||(Xf=1,(function(i){function s(w,k){var P=w.length;w.push(k);e:for(;0<P;){var pe=P-1>>>1,Se=w[pe];if(0<h(Se,k))w[pe]=k,w[P]=Se,P=pe;else break e}}function f(w){return w.length===0?null:w[0]}function r(w){if(w.length===0)return null;var k=w[0],P=w.pop();if(P!==k){w[0]=P;e:for(var pe=0,Se=w.length,p=Se>>>1;pe<p;){var O=2*(pe+1)-1,U=w[O],R=O+1,V=w[R];if(0>h(U,P))R<Se&&0>h(V,U)?(w[pe]=V,w[R]=P,pe=R):(w[pe]=U,w[O]=P,pe=O);else if(R<Se&&0>h(V,P))w[pe]=V,w[R]=P,pe=R;else break e}}return k}function h(w,k){var P=w.sortIndex-k.sortIndex;return P!==0?P:w.id-k.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var N=Date,C=N.now();i.unstable_now=function(){return N.now()-C}}var x=[],y=[],M=1,L=null,B=3,Z=!1,ee=!1,re=!1,K=!1,X=typeof setTimeout=="function"?setTimeout:null,be=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function J(w){for(var k=f(y);k!==null;){if(k.callback===null)r(y);else if(k.startTime<=w)r(y),k.sortIndex=k.expirationTime,s(x,k);else break;k=f(y)}}function me(w){if(re=!1,J(w),!ee)if(f(x)!==null)ee=!0,I||(I=!0,Y());else{var k=f(y);k!==null&&Te(me,k.startTime-w)}}var I=!1,$=-1,Q=5,Ne=-1;function qe(){return K?!0:!(i.unstable_now()-Ne<Q)}function Oe(){if(K=!1,I){var w=i.unstable_now();Ne=w;var k=!0;try{e:{ee=!1,re&&(re=!1,be($),$=-1),Z=!0;var P=B;try{t:{for(J(w),L=f(x);L!==null&&!(L.expirationTime>w&&qe());){var pe=L.callback;if(typeof pe=="function"){L.callback=null,B=L.priorityLevel;var Se=pe(L.expirationTime<=w);if(w=i.unstable_now(),typeof Se=="function"){L.callback=Se,J(w),k=!0;break t}L===f(x)&&r(x),J(w)}else r(x);L=f(x)}if(L!==null)k=!0;else{var p=f(y);p!==null&&Te(me,p.startTime-w),k=!1}}break e}finally{L=null,B=P,Z=!1}k=void 0}}finally{k?Y():I=!1}}}var Y;if(typeof oe=="function")Y=function(){oe(Oe)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,se=xe.port2;xe.port1.onmessage=Oe,Y=function(){se.postMessage(null)}}else Y=function(){X(Oe,0)};function Te(w,k){$=X(function(){w(i.unstable_now())},k)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(w){w.callback=null},i.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<w?Math.floor(1e3/w):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(w){switch(B){case 1:case 2:case 3:var k=3;break;default:k=B}var P=B;B=k;try{return w()}finally{B=P}},i.unstable_requestPaint=function(){K=!0},i.unstable_runWithPriority=function(w,k){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var P=B;B=w;try{return k()}finally{B=P}},i.unstable_scheduleCallback=function(w,k,P){var pe=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?pe+P:pe):P=pe,w){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=P+Se,w={id:M++,callback:k,priorityLevel:w,startTime:P,expirationTime:Se,sortIndex:-1},P>pe?(w.sortIndex=P,s(y,w),f(x)===null&&w===f(y)&&(re?(be($),$=-1):re=!0,Te(me,P-pe))):(w.sortIndex=Se,s(x,w),ee||Z||(ee=!0,I||(I=!0,Y()))),w},i.unstable_shouldYield=qe,i.unstable_wrapCallback=function(w){var k=B;return function(){var P=B;B=k;try{return w.apply(this,arguments)}finally{B=P}}}})(S1)),S1}var Qf;function j3(){return Qf||(Qf=1,b1.exports=x3()),b1.exports}var x1={exports:{}},St={};/**
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 Zf;function E3(){if(Zf)return St;Zf=1;var i=H1();function s(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)y+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(s(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(x,y,M){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:L==null?null:""+L,children:x,containerInfo:y,implementation:M}}var N=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function C(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,St.createPortal=function(x,y){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(s(299));return v(x,y,null,M)},St.flushSync=function(x){var y=N.T,M=r.p;try{if(N.T=null,r.p=2,x)return x()}finally{N.T=y,r.p=M,r.d.f()}},St.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(x,y))},St.prefetchDNS=function(x){typeof x=="string"&&r.d.D(x)},St.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var M=y.as,L=C(M,y.crossOrigin),B=typeof y.integrity=="string"?y.integrity:void 0,Z=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;M==="style"?r.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:L,integrity:B,fetchPriority:Z}):M==="script"&&r.d.X(x,{crossOrigin:L,integrity:B,fetchPriority:Z,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},St.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var M=C(y.as,y.crossOrigin);r.d.M(x,{crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(x)},St.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var M=y.as,L=C(M,y.crossOrigin);r.d.L(x,M,{crossOrigin:L,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},St.preloadModule=function(x,y){if(typeof x=="string")if(y){var M=C(y.as,y.crossOrigin);r.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:M,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(x)},St.requestFormReset=function(x){r.d.r(x)},St.unstable_batchedUpdates=function(x,y){return x(y)},St.useFormState=function(x,y,M){return N.H.useFormState(x,y,M)},St.useFormStatus=function(){return N.H.useHostTransitionStatus()},St.version="19.2.6",St}var Kf;function b2(){if(Kf)return x1.exports;Kf=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),x1.exports=E3(),x1.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 Jf;function z3(){if(Jf)return gi;Jf=1;var i=j3(),s=H1(),f=b2();function r(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 v(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 N(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 C(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 x(e){if(v(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var c=a.alternate;if(c===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===l)return x(a),e;if(c===n)return x(a),t;c=c.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=c;else{for(var o=!1,d=a.child;d;){if(d===l){o=!0,l=a,n=c;break}if(d===n){o=!0,n=a,l=c;break}d=d.sibling}if(!o){for(d=c.child;d;){if(d===l){o=!0,l=c,n=a;break}if(d===n){o=!0,n=c,l=a;break}d=d.sibling}if(!o)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,B=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),ee=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),be=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),qe=Symbol.for("react.memo_cache_sentinel"),Oe=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=Oe&&e[Oe]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function se(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 re:return"Fragment";case X:return"Profiler";case K:return"StrictMode";case me:return"Suspense";case I:return"SuspenseList";case Ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case ee:return"Portal";case oe:return e.displayName||"Context";case be:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var Te=Array.isArray,w=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},pe=[],Se=-1;function p(e){return{current:e}}function O(e){0>Se||(e.current=pe[Se],pe[Se]=null,Se--)}function U(e,t){Se++,pe[Se]=e.current,e.current=t}var R=p(null),V=p(null),S=p(null),q=p(null);function ne(e,t){switch(U(S,t),U(V,e),U(R,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?of(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=of(t),e=rf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}O(R),U(R,e)}function F(){O(R),O(V),O(S)}function ce(e){e.memoizedState!==null&&U(q,e);var t=R.current,l=rf(t,e.type);t!==l&&(U(V,e),U(R,l))}function ve(e){V.current===e&&(O(R),O(V)),q.current===e&&(O(q),hi._currentValue=P)}var Ke,Ie;function Pe(e){if(Ke===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||"",Ie=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ke+e+Ie}var cl=!1;function $e(e,t){if(!e||cl)return"";cl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(T){var z=T}Reflect.construct(e,[],H)}else{try{H.call()}catch(T){z=T}e.call(H.prototype)}}else{try{throw Error()}catch(T){z=T}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(T){if(T&&z&&typeof T.stack=="string")return[T.stack,z.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 c=n.DetermineComponentFrameRoot(),o=c[0],d=c[1];if(o&&d){var m=o.split(`
44
- `),E=d.split(`
45
- `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===E.length)for(n=m.length-1,a=E.length-1;1<=n&&0<=a&&m[n]!==E[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==E[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==E[a]){var _=`
46
- `+m[n].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=n&&0<=a);break}}}finally{cl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pe(l):""}function xt(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return $e(e.type,!1);case 11:return $e(e.type.render,!1);case 1:return $e(e.type,!0);case 31:return Pe("Activity");default:return""}}function Pl(e){try{var t="",l=null;do t+=xt(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
47
- Error generating stack: `+n.message+`
48
- `+n.stack}}var Jt=Object.prototype.hasOwnProperty,Tl=i.unstable_scheduleCallback,Mn=i.unstable_cancelCallback,An=i.unstable_shouldYield,Cn=i.unstable_requestPaint,dt=i.unstable_now,xa=i.unstable_getCurrentPriorityLevel,zi=i.unstable_ImmediatePriority,wi=i.unstable_UserBlockingPriority,_n=i.unstable_NormalPriority,ja=i.unstable_LowPriority,Ni=i.unstable_IdlePriority,Ea=i.log,za=i.unstable_setDisableYieldValue,en=null,vt=null;function Pt(e){if(typeof Ea=="function"&&za(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(en,e)}catch{}}var gt=Math.clz32?Math.clz32:au,lu=Math.log,nu=Math.LN2;function au(e){return e>>>=0,e===0?32:31-(lu(e)/nu|0)|0}var On=256,Rn=262144,Dn=4194304;function ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ln(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,c=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=n&134217727;return d!==0?(n=d&~c,n!==0?a=ul(n):(o&=d,o!==0?a=ul(o):l||(l=d&~e,l!==0&&(a=ul(l))))):(d=n&~c,d!==0?a=ul(d):o!==0?a=ul(o):l||(l=n&~e,l!==0&&(a=ul(l)))),a===0?0:t!==0&&t!==a&&(t&c)===0&&(c=a&-a,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:a}function tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iu(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 Ti(){var e=Dn;return Dn<<=1,(Dn&62914560)===0&&(Dn=4194304),e}function wa(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cu(e,t,l,n,a,c){var o=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 d=e.entanglements,m=e.expirationTimes,E=e.hiddenUpdates;for(l=o&~l;0<l;){var _=31-gt(l),H=1<<_;d[_]=0,m[_]=-1;var z=E[_];if(z!==null)for(E[_]=null,_=0;_<z.length;_++){var T=z[_];T!==null&&(T.lane&=-536870913)}l&=~H}n!==0&&Na(e,n,0),c!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=c&~(o&~t))}function Na(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-gt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function Mi(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-gt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function Ai(e,t){var l=t&-t;return l=(l&42)!==0?1:Ta(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ta(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 G(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ie(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:Rf(e.type))}function ge(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var Fe=Math.random().toString(36).slice(2),Xe="__reactFiber$"+Fe,bt="__reactProps$"+Fe,Ml="__reactContainer$"+Fe,uu="__reactEvents$"+Fe,cd="__reactListeners$"+Fe,ud="__reactHandles$"+Fe,J1="__reactResources$"+Fe,Ma="__reactMarker$"+Fe;function su(e){delete e[Xe],delete e[bt],delete e[uu],delete e[cd],delete e[ud]}function Hn(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ml]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=vf(e);e!==null;){if(l=e[Xe])return l;e=vf(e)}return t}e=l,l=e.parentNode}return null}function Un(e){if(e=e[Xe]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Aa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Bn(e){var t=e[J1];return t||(t=e[J1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Ma]=!0}var $1=new Set,F1={};function nn(e,t){qn(e,t),qn(e+"Capture",t)}function qn(e,t){for(F1[e]=t,e=0;e<t.length;e++)$1.add(t[e])}var sd=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]*$"),W1={},I1={};function od(e){return Jt.call(I1,e)?!0:Jt.call(W1,e)?!1:sd.test(e)?I1[e]=!0:(W1[e]=!0,!1)}function Ci(e,t,l){if(od(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 _i(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 sl(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 Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function P1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rd(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,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){l=""+o,c.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ou(e){if(!e._valueTracker){var t=P1(e)?"checked":"value";e._valueTracker=rd(e,t,""+e[t])}}function eo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=P1(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}function Oi(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 fd=/[\n"\\]/g;function Bt(e){return e.replace(fd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ru(e,t,l,n,a,c,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?fu(e,o,Ut(t)):l!=null?fu(e,o,Ut(l)):n!=null&&e.removeAttribute("value"),a==null&&c!=null&&(e.defaultChecked=!!c),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ut(d):e.removeAttribute("name")}function to(e,t,l,n,a,c,o,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ou(e);return}l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=d?e.checked:!!n,e.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),ou(e)}function fu(e,t,l){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function kn(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=""+Ut(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 lo(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function no(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(r(92));if(Te(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),ou(e)}function Vn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var dd=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 ao(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||dd.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function io(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(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&&ao(e,a,n)}else for(var c in t)t.hasOwnProperty(c)&&ao(e,c,t[c])}function du(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 hd=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"]]),md=/^[\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 Ri(e){return md.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ol(){}var hu=null;function mu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gn=null,Yn=null;function co(e){var t=Un(e);if(t&&(e=t.stateNode)){var l=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ru(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[bt]||null;if(!a)throw Error(r(90));ru(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&&eo(n)}break e;case"textarea":lo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&kn(e,!!l.multiple,t,!1)}}}var yu=!1;function uo(e,t,l){if(yu)return e(t,l);yu=!0;try{var n=e(t);return n}finally{if(yu=!1,(Gn!==null||Yn!==null)&&(Sc(),Gn&&(t=Gn,e=Yn,Yn=Gn=null,co(t),e)))for(t=0;t<e.length;t++)co(e[t])}}function Ca(e,t){var l=e.stateNode;if(l===null)return null;var n=l[bt]||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(r(231,t,typeof l));return l}var rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(rl)try{var _a={};Object.defineProperty(_a,"passive",{get:function(){pu=!0}}),window.addEventListener("test",_a,_a),window.removeEventListener("test",_a,_a)}catch{pu=!1}var Al=null,vu=null,Di=null;function so(){if(Di)return Di;var e,t=vu,l=t.length,n,a="value"in Al?Al.value:Al.textContent,c=a.length;for(e=0;e<l&&t[e]===a[e];e++);var o=l-e;for(n=1;n<=o&&t[l-n]===a[c-n];n++);return Di=a.slice(e,1<n?1-n:void 0)}function Li(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 Hi(){return!0}function oo(){return!1}function Et(e){function t(l,n,a,c,o){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=c,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hi:oo,this.isPropagationStopped=oo,this}return L(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=Hi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),t}var an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ui=Et(an),Oa=L({},an,{view:0,detail:0}),yd=Et(Oa),gu,bu,Ra,Bi=L({},Oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xu,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!==Ra&&(Ra&&e.type==="mousemove"?(gu=e.screenX-Ra.screenX,bu=e.screenY-Ra.screenY):bu=gu=0,Ra=e),gu)},movementY:function(e){return"movementY"in e?e.movementY:bu}}),ro=Et(Bi),pd=L({},Bi,{dataTransfer:0}),vd=Et(pd),gd=L({},Oa,{relatedTarget:0}),Su=Et(gd),bd=L({},an,{animationName:0,elapsedTime:0,pseudoElement:0}),Sd=Et(bd),xd=L({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jd=Et(xd),Ed=L({},an,{data:0}),fo=Et(Ed),zd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wd={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"},Nd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Td(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nd[e])?!!t[e]:!1}function xu(){return Td}var Md=L({},Oa,{key:function(e){if(e.key){var t=zd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?wd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xu,charCode:function(e){return e.type==="keypress"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ad=Et(Md),Cd=L({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ho=Et(Cd),_d=L({},Oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xu}),Od=Et(_d),Rd=L({},an,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dd=Et(Rd),Ld=L({},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}),Hd=Et(Ld),Ud=L({},an,{newState:0,oldState:0}),Bd=Et(Ud),qd=[9,13,27,32],ju=rl&&"CompositionEvent"in window,Da=null;rl&&"documentMode"in document&&(Da=document.documentMode);var kd=rl&&"TextEvent"in window&&!Da,mo=rl&&(!ju||Da&&8<Da&&11>=Da),yo=" ",po=!1;function vo(e,t){switch(e){case"keyup":return qd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Vd(e,t){switch(e){case"compositionend":return go(t);case"keypress":return t.which!==32?null:(po=!0,yo);case"textInput":return e=t.data,e===yo&&po?null:e;default:return null}}function Gd(e,t){if(Xn)return e==="compositionend"||!ju&&vo(e,t)?(e=so(),Di=vu=Al=null,Xn=!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 mo&&t.locale!=="ko"?null:t.data;default:return null}}var Yd={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 bo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Yd[e.type]:t==="textarea"}function So(e,t,l,n){Gn?Yn?Yn.push(n):Yn=[n]:Gn=n,t=Tc(t,"onChange"),0<t.length&&(l=new Ui("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var La=null,Ha=null;function Xd(e){lf(e,0)}function qi(e){var t=Aa(e);if(eo(t))return e}function xo(e,t){if(e==="change")return t}var jo=!1;if(rl){var Eu;if(rl){var zu="oninput"in document;if(!zu){var Eo=document.createElement("div");Eo.setAttribute("oninput","return;"),zu=typeof Eo.oninput=="function"}Eu=zu}else Eu=!1;jo=Eu&&(!document.documentMode||9<document.documentMode)}function zo(){La&&(La.detachEvent("onpropertychange",wo),Ha=La=null)}function wo(e){if(e.propertyName==="value"&&qi(Ha)){var t=[];So(t,Ha,e,mu(e)),uo(Xd,t)}}function Qd(e,t,l){e==="focusin"?(zo(),La=t,Ha=l,La.attachEvent("onpropertychange",wo)):e==="focusout"&&zo()}function Zd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qi(Ha)}function Kd(e,t){if(e==="click")return qi(t)}function Jd(e,t){if(e==="input"||e==="change")return qi(t)}function $d(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:$d;function Ua(e,t){if(Ct(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(!Jt.call(t,a)||!Ct(e[a],t[a]))return!1}return!0}function No(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function To(e,t){var l=No(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=No(l)}}function Mo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ao(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(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=Oi(e.document)}return t}function wu(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 Fd=rl&&"documentMode"in document&&11>=document.documentMode,Qn=null,Nu=null,Ba=null,Tu=!1;function Co(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Tu||Qn==null||Qn!==Oi(n)||(n=Qn,"selectionStart"in n&&wu(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}),Ba&&Ua(Ba,n)||(Ba=n,n=Tc(Nu,"onSelect"),0<n.length&&(t=new Ui("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Qn)))}function cn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Zn={animationend:cn("Animation","AnimationEnd"),animationiteration:cn("Animation","AnimationIteration"),animationstart:cn("Animation","AnimationStart"),transitionrun:cn("Transition","TransitionRun"),transitionstart:cn("Transition","TransitionStart"),transitioncancel:cn("Transition","TransitionCancel"),transitionend:cn("Transition","TransitionEnd")},Mu={},_o={};rl&&(_o=document.createElement("div").style,"AnimationEvent"in window||(delete Zn.animationend.animation,delete Zn.animationiteration.animation,delete Zn.animationstart.animation),"TransitionEvent"in window||delete Zn.transitionend.transition);function un(e){if(Mu[e])return Mu[e];if(!Zn[e])return e;var t=Zn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _o)return Mu[e]=t[l];return e}var Oo=un("animationend"),Ro=un("animationiteration"),Do=un("animationstart"),Wd=un("transitionrun"),Id=un("transitionstart"),Pd=un("transitioncancel"),Lo=un("transitionend"),Ho=new Map,Au="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(" ");Au.push("scrollEnd");function $t(e,t){Ho.set(e,t),nn(t,[e])}var ki=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)},qt=[],Kn=0,Cu=0;function Vi(){for(var e=Kn,t=Cu=Kn=0;t<e;){var l=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var c=qt[t];if(qt[t++]=null,n!==null&&a!==null){var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}c!==0&&Uo(l,a,c)}}function Gi(e,t,l,n){qt[Kn++]=e,qt[Kn++]=t,qt[Kn++]=l,qt[Kn++]=n,Cu|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function _u(e,t,l,n){return Gi(e,t,l,n),Yi(e)}function sn(e,t){return Gi(e,null,null,t),Yi(e)}function Uo(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,c=e.return;c!==null;)c.childLanes|=l,n=c.alternate,n!==null&&(n.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(a=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,a&&t!==null&&(a=31-gt(l),e=c.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),c):null}function Yi(e){if(50<ci)throw ci=0,ks=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jn={};function e4(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 _t(e,t,l,n){return new e4(e,t,l,n)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fl(e,t){var l=e.alternate;return l===null?(l=_t(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 Bo(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 Xi(e,t,l,n,a,c){var o=0;if(n=e,typeof e=="function")Ou(e)&&(o=1);else if(typeof e=="string")o=i3(e,l,R.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=_t(31,l,t,a),e.elementType=Ne,e.lanes=c,e;case re:return on(l.children,a,c,t);case K:o=8,a|=24;break;case X:return e=_t(12,l,t,a|2),e.elementType=X,e.lanes=c,e;case me:return e=_t(13,l,t,a),e.elementType=me,e.lanes=c,e;case I:return e=_t(19,l,t,a),e.elementType=I,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oe:o=10;break e;case be:o=9;break e;case J:o=11;break e;case $:o=14;break e;case Q:o=16,n=null;break e}o=29,l=Error(r(130,e===null?"null":typeof e,"")),n=null}return t=_t(o,l,t,a),t.elementType=e,t.type=n,t.lanes=c,t}function on(e,t,l,n){return e=_t(7,e,n,t),e.lanes=l,e}function Ru(e,t,l){return e=_t(6,e,null,t),e.lanes=l,e}function qo(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Du(e,t,l){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ko=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var l=ko.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Pl(t)},ko.set(e,t),t)}return{value:e,source:t,stack:Pl(t)}}var $n=[],Fn=0,Qi=null,qa=0,Vt=[],Gt=0,Cl=null,el=1,tl="";function dl(e,t){$n[Fn++]=qa,$n[Fn++]=Qi,Qi=e,qa=t}function Vo(e,t,l){Vt[Gt++]=el,Vt[Gt++]=tl,Vt[Gt++]=Cl,Cl=e;var n=el;e=tl;var a=32-gt(n)-1;n&=~(1<<a),l+=1;var c=32-gt(t)+a;if(30<c){var o=a-a%5;c=(n&(1<<o)-1).toString(32),n>>=o,a-=o,el=1<<32-gt(t)+a|l<<a|n,tl=c+e}else el=1<<c|l<<a|n,tl=e}function Lu(e){e.return!==null&&(dl(e,1),Vo(e,1,0))}function Hu(e){for(;e===Qi;)Qi=$n[--Fn],$n[Fn]=null,qa=$n[--Fn],$n[Fn]=null;for(;e===Cl;)Cl=Vt[--Gt],Vt[Gt]=null,tl=Vt[--Gt],Vt[Gt]=null,el=Vt[--Gt],Vt[Gt]=null}function Go(e,t){Vt[Gt++]=el,Vt[Gt++]=tl,Vt[Gt++]=Cl,el=t.id,tl=t.overflow,Cl=e}var ht=null,Qe=null,Me=!1,_l=null,Yt=!1,Uu=Error(r(519));function Ol(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ka(kt(t,e)),Uu}function Yo(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[Xe]=e,t[bt]=n,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<si.length;l++)Ee(si[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),to(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),no(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||uf(t.textContent,l)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=ol),t=!0):t=!1,t||Ol(e,!0)}function Xo(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:ht=ht.return}}function Wn(e){if(e!==ht)return!1;if(!Me)return Xo(e),Me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||t1(e.type,e.memoizedProps)),l=!l),l&&Qe&&Ol(e),Xo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=pf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Qe=pf(e)}else t===27?(t=Qe,Zl(e.type)?(e=c1,c1=null,Qe=e):Qe=t):Qe=ht?Qt(e.stateNode.nextSibling):null;return!0}function rn(){Qe=ht=null,Me=!1}function Bu(){var e=_l;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),_l=null),e}function ka(e){_l===null?_l=[e]:_l.push(e)}var qu=p(null),fn=null,hl=null;function Rl(e,t,l){U(qu,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=qu.current,O(qu)}function ku(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 Vu(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var c=a.dependencies;if(c!==null){var o=a.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=a;for(var m=0;m<t.length;m++)if(d.context===t[m]){c.lanes|=l,d=c.alternate,d!==null&&(d.lanes|=l),ku(c.return,l,e),n||(o=null);break e}c=d.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(r(341));o.lanes|=l,c=o.alternate,c!==null&&(c.lanes|=l),ku(o,l,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function In(e,t,l,n){e=null;for(var a=t,c=!1;a!==null;){if(!c){if((a.flags&524288)!==0)c=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=a.type;Ct(a.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(a===q.current){if(o=a.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(hi):e=[hi])}a=a.return}e!==null&&Vu(t,e,l,n),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dn(e){fn=e,hl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Qo(fn,e)}function Ki(e,t){return fn===null&&dn(e),Qo(e,t)}function Qo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},hl===null){if(e===null)throw Error(r(308));hl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hl=hl.next=t;return l}var t4=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()})}},l4=i.unstable_scheduleCallback,n4=i.unstable_NormalPriority,at={$$typeof:oe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gu(){return{controller:new t4,data:new Map,refCount:0}}function Va(e){e.refCount--,e.refCount===0&&l4(n4,function(){e.controller.abort()})}var Ga=null,Yu=0,Pn=0,ea=null;function a4(e,t){if(Ga===null){var l=Ga=[];Yu=0,Pn=Zs(),ea={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Yu++,t.then(Zo,Zo),t}function Zo(){if(--Yu===0&&Ga!==null){ea!==null&&(ea.status="fulfilled");var e=Ga;Ga=null,Pn=0,ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function i4(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 Ko=w.S;w.S=function(e,t){Cr=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&a4(e,t),Ko!==null&&Ko(e,t)};var hn=p(null);function Xu(){var e=hn.current;return e!==null?e:Ye.pooledCache}function Ji(e,t){t===null?U(hn,hn.current):U(hn,t.pool)}function Jo(){var e=Xu();return e===null?null:{parent:at._currentValue,pool:e}}var ta=Error(r(460)),Qu=Error(r(474)),$i=Error(r(542)),Fi={then:function(){}};function $o(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ol,ol),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Io(e),e;default:if(typeof t.status=="string")t.then(ol,ol);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,Io(e),e}throw yn=t,ta}}function mn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(yn=l,ta):l}}var yn=null;function Wo(){if(yn===null)throw Error(r(459));var e=yn;return yn=null,e}function Io(e){if(e===ta||e===$i)throw Error(r(483))}var la=null,Ya=0;function Wi(e){var t=Ya;return Ya+=1,la===null&&(la=[]),Fo(la,e,t)}function Xa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ii(e,t){throw t.$$typeof===B?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Po(e){function t(b,g){if(e){var j=b.deletions;j===null?(b.deletions=[g],b.flags|=16):j.push(g)}}function l(b,g){if(!e)return null;for(;g!==null;)t(b,g),g=g.sibling;return null}function n(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function a(b,g){return b=fl(b,g),b.index=0,b.sibling=null,b}function c(b,g,j){return b.index=j,e?(j=b.alternate,j!==null?(j=j.index,j<g?(b.flags|=67108866,g):j):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function o(b){return e&&b.alternate===null&&(b.flags|=67108866),b}function d(b,g,j,D){return g===null||g.tag!==6?(g=Ru(j,b.mode,D),g.return=b,g):(g=a(g,j),g.return=b,g)}function m(b,g,j,D){var ae=j.type;return ae===re?_(b,g,j.props.children,D,j.key):g!==null&&(g.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Q&&mn(ae)===g.type)?(g=a(g,j.props),Xa(g,j),g.return=b,g):(g=Xi(j.type,j.key,j.props,null,b.mode,D),Xa(g,j),g.return=b,g)}function E(b,g,j,D){return g===null||g.tag!==4||g.stateNode.containerInfo!==j.containerInfo||g.stateNode.implementation!==j.implementation?(g=Du(j,b.mode,D),g.return=b,g):(g=a(g,j.children||[]),g.return=b,g)}function _(b,g,j,D,ae){return g===null||g.tag!==7?(g=on(j,b.mode,D,ae),g.return=b,g):(g=a(g,j),g.return=b,g)}function H(b,g,j){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ru(""+g,b.mode,j),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Z:return j=Xi(g.type,g.key,g.props,null,b.mode,j),Xa(j,g),j.return=b,j;case ee:return g=Du(g,b.mode,j),g.return=b,g;case Q:return g=mn(g),H(b,g,j)}if(Te(g)||Y(g))return g=on(g,b.mode,j,null),g.return=b,g;if(typeof g.then=="function")return H(b,Wi(g),j);if(g.$$typeof===oe)return H(b,Ki(b,g),j);Ii(b,g)}return null}function z(b,g,j,D){var ae=g!==null?g.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ae!==null?null:d(b,g,""+j,D);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Z:return j.key===ae?m(b,g,j,D):null;case ee:return j.key===ae?E(b,g,j,D):null;case Q:return j=mn(j),z(b,g,j,D)}if(Te(j)||Y(j))return ae!==null?null:_(b,g,j,D,null);if(typeof j.then=="function")return z(b,g,Wi(j),D);if(j.$$typeof===oe)return z(b,g,Ki(b,j),D);Ii(b,j)}return null}function T(b,g,j,D,ae){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return b=b.get(j)||null,d(g,b,""+D,ae);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Z:return b=b.get(D.key===null?j:D.key)||null,m(g,b,D,ae);case ee:return b=b.get(D.key===null?j:D.key)||null,E(g,b,D,ae);case Q:return D=mn(D),T(b,g,j,D,ae)}if(Te(D)||Y(D))return b=b.get(j)||null,_(g,b,D,ae,null);if(typeof D.then=="function")return T(b,g,j,Wi(D),ae);if(D.$$typeof===oe)return T(b,g,j,Ki(g,D),ae);Ii(g,D)}return null}function W(b,g,j,D){for(var ae=null,Re=null,te=g,ye=g=0,we=null;te!==null&&ye<j.length;ye++){te.index>ye?(we=te,te=null):we=te.sibling;var De=z(b,te,j[ye],D);if(De===null){te===null&&(te=we);break}e&&te&&De.alternate===null&&t(b,te),g=c(De,g,ye),Re===null?ae=De:Re.sibling=De,Re=De,te=we}if(ye===j.length)return l(b,te),Me&&dl(b,ye),ae;if(te===null){for(;ye<j.length;ye++)te=H(b,j[ye],D),te!==null&&(g=c(te,g,ye),Re===null?ae=te:Re.sibling=te,Re=te);return Me&&dl(b,ye),ae}for(te=n(te);ye<j.length;ye++)we=T(te,b,ye,j[ye],D),we!==null&&(e&&we.alternate!==null&&te.delete(we.key===null?ye:we.key),g=c(we,g,ye),Re===null?ae=we:Re.sibling=we,Re=we);return e&&te.forEach(function(Wl){return t(b,Wl)}),Me&&dl(b,ye),ae}function ue(b,g,j,D){if(j==null)throw Error(r(151));for(var ae=null,Re=null,te=g,ye=g=0,we=null,De=j.next();te!==null&&!De.done;ye++,De=j.next()){te.index>ye?(we=te,te=null):we=te.sibling;var Wl=z(b,te,De.value,D);if(Wl===null){te===null&&(te=we);break}e&&te&&Wl.alternate===null&&t(b,te),g=c(Wl,g,ye),Re===null?ae=Wl:Re.sibling=Wl,Re=Wl,te=we}if(De.done)return l(b,te),Me&&dl(b,ye),ae;if(te===null){for(;!De.done;ye++,De=j.next())De=H(b,De.value,D),De!==null&&(g=c(De,g,ye),Re===null?ae=De:Re.sibling=De,Re=De);return Me&&dl(b,ye),ae}for(te=n(te);!De.done;ye++,De=j.next())De=T(te,b,ye,De.value,D),De!==null&&(e&&De.alternate!==null&&te.delete(De.key===null?ye:De.key),g=c(De,g,ye),Re===null?ae=De:Re.sibling=De,Re=De);return e&&te.forEach(function(p3){return t(b,p3)}),Me&&dl(b,ye),ae}function Ge(b,g,j,D){if(typeof j=="object"&&j!==null&&j.type===re&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Z:e:{for(var ae=j.key;g!==null;){if(g.key===ae){if(ae=j.type,ae===re){if(g.tag===7){l(b,g.sibling),D=a(g,j.props.children),D.return=b,b=D;break e}}else if(g.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Q&&mn(ae)===g.type){l(b,g.sibling),D=a(g,j.props),Xa(D,j),D.return=b,b=D;break e}l(b,g);break}else t(b,g);g=g.sibling}j.type===re?(D=on(j.props.children,b.mode,D,j.key),D.return=b,b=D):(D=Xi(j.type,j.key,j.props,null,b.mode,D),Xa(D,j),D.return=b,b=D)}return o(b);case ee:e:{for(ae=j.key;g!==null;){if(g.key===ae)if(g.tag===4&&g.stateNode.containerInfo===j.containerInfo&&g.stateNode.implementation===j.implementation){l(b,g.sibling),D=a(g,j.children||[]),D.return=b,b=D;break e}else{l(b,g);break}else t(b,g);g=g.sibling}D=Du(j,b.mode,D),D.return=b,b=D}return o(b);case Q:return j=mn(j),Ge(b,g,j,D)}if(Te(j))return W(b,g,j,D);if(Y(j)){if(ae=Y(j),typeof ae!="function")throw Error(r(150));return j=ae.call(j),ue(b,g,j,D)}if(typeof j.then=="function")return Ge(b,g,Wi(j),D);if(j.$$typeof===oe)return Ge(b,g,Ki(b,j),D);Ii(b,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,g!==null&&g.tag===6?(l(b,g.sibling),D=a(g,j),D.return=b,b=D):(l(b,g),D=Ru(j,b.mode,D),D.return=b,b=D),o(b)):l(b,g)}return function(b,g,j,D){try{Ya=0;var ae=Ge(b,g,j,D);return la=null,ae}catch(te){if(te===ta||te===$i)throw te;var Re=_t(29,te,null,b.mode);return Re.lanes=D,Re.return=b,Re}finally{}}}var pn=Po(!0),e0=Po(!1),Dl=!1;function Zu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ku(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 Ll(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Hl(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(He&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=Yi(e),Uo(e,null,l),t}return Gi(e,n,t,l),Yi(e)}function Qa(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,Mi(e,l)}}function Ju(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?a=c=o:c=c.next=o,l=l.next}while(l!==null);c===null?a=c=t:c=c.next=t}else a=c=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:c,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 $u=!1;function Za(){if($u){var e=ea;if(e!==null)throw e}}function Ka(e,t,l,n){$u=!1;var a=e.updateQueue;Dl=!1;var c=a.firstBaseUpdate,o=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,E=m.next;m.next=null,o===null?c=E:o.next=E,o=m;var _=e.alternate;_!==null&&(_=_.updateQueue,d=_.lastBaseUpdate,d!==o&&(d===null?_.firstBaseUpdate=E:d.next=E,_.lastBaseUpdate=m))}if(c!==null){var H=a.baseState;o=0,_=E=m=null,d=c;do{var z=d.lane&-536870913,T=z!==d.lane;if(T?(ze&z)===z:(n&z)===z){z!==0&&z===Pn&&($u=!0),_!==null&&(_=_.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var W=e,ue=d;z=t;var Ge=l;switch(ue.tag){case 1:if(W=ue.payload,typeof W=="function"){H=W.call(Ge,H,z);break e}H=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ue.payload,z=typeof W=="function"?W.call(Ge,H,z):W,z==null)break e;H=L({},H,z);break e;case 2:Dl=!0}}z=d.callback,z!==null&&(e.flags|=64,T&&(e.flags|=8192),T=a.callbacks,T===null?a.callbacks=[z]:T.push(z))}else T={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},_===null?(E=_=T,m=H):_=_.next=T,o|=z;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;T=d,d=T.next,T.next=null,a.lastBaseUpdate=T,a.shared.pending=null}}while(!0);_===null&&(m=H),a.baseState=m,a.firstBaseUpdate=E,a.lastBaseUpdate=_,c===null&&(a.shared.lanes=0),Vl|=o,e.lanes=o,e.memoizedState=H}}function t0(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function l0(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)t0(l[e],t)}var na=p(null),Pi=p(0);function n0(e,t){e=El,U(Pi,e),U(na,t),El=e|t.baseLanes}function Fu(){U(Pi,El),U(na,na.current)}function Wu(){El=Pi.current,O(na),O(Pi)}var Ot=p(null),Xt=null;function Ul(e){var t=e.alternate;U(lt,lt.current&1),U(Ot,e),Xt===null&&(t===null||na.current!==null||t.memoizedState!==null)&&(Xt=e)}function Iu(e){U(lt,lt.current),U(Ot,e),Xt===null&&(Xt=e)}function a0(e){e.tag===22?(U(lt,lt.current),U(Ot,e),Xt===null&&(Xt=e)):Bl()}function Bl(){U(lt,lt.current),U(Ot,Ot.current)}function Rt(e){O(Ot),Xt===e&&(Xt=null),O(lt)}var lt=p(0);function ec(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||a1(l)||i1(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 yl=0,de=null,ke=null,it=null,tc=!1,aa=!1,vn=!1,lc=0,Ja=0,ia=null,c4=0;function et(){throw Error(r(321))}function Pu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function es(e,t,l,n,a,c){return yl=c,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?V0:ys,vn=!1,c=l(n,a),vn=!1,aa&&(c=c0(t,l,n,a)),i0(e),c}function i0(e){w.H=Wa;var t=ke!==null&&ke.next!==null;if(yl=0,it=ke=de=null,tc=!1,Ja=0,ia=null,t)throw Error(r(300));e===null||ct||(e=e.dependencies,e!==null&&Zi(e)&&(ct=!0))}function c0(e,t,l,n){de=e;var a=0;do{if(aa&&(ia=null),Ja=0,aa=!1,25<=a)throw Error(r(301));if(a+=1,it=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}w.H=G0,c=t(l,n)}while(aa);return c}function u4(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?$a(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(de.flags|=1024),t}function ts(){var e=lc!==0;return lc=0,e}function ls(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ns(e){if(tc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}tc=!1}yl=0,it=ke=de=null,aa=!1,Ja=lc=0,ia=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?de.memoizedState=it=e:it=it.next=e,it}function nt(){if(ke===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=it===null?de.memoizedState:it.next;if(t!==null)it=t,ke=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},it===null?de.memoizedState=it=e:it=it.next=e}return it}function nc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $a(e){var t=Ja;return Ja+=1,ia===null&&(ia=[]),e=Fo(ia,e,t),t=de,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?V0:ys),e}function ac(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $a(e);if(e.$$typeof===oe)return mt(e)}throw Error(r(438,String(e)))}function as(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=de.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=nc(),de.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]=qe;return t.index++,l}function pl(e,t){return typeof t=="function"?t(e):t}function ic(e){var t=nt();return is(t,ke,e)}function is(e,t,l){var n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=e.baseQueue,c=n.pending;if(c!==null){if(a!==null){var o=a.next;a.next=c.next,c.next=o}t.baseQueue=a=c,n.pending=null}if(c=e.baseState,a===null)e.memoizedState=c;else{t=a.next;var d=o=null,m=null,E=t,_=!1;do{var H=E.lane&-536870913;if(H!==E.lane?(ze&H)===H:(yl&H)===H){var z=E.revertLane;if(z===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),H===Pn&&(_=!0);else if((yl&z)===z){E=E.next,z===Pn&&(_=!0);continue}else H={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},m===null?(d=m=H,o=c):m=m.next=H,de.lanes|=z,Vl|=z;H=E.action,vn&&l(c,H),c=E.hasEagerState?E.eagerState:l(c,H)}else z={lane:H,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},m===null?(d=m=z,o=c):m=m.next=z,de.lanes|=H,Vl|=H;E=E.next}while(E!==null&&E!==t);if(m===null?o=c:m.next=d,!Ct(c,e.memoizedState)&&(ct=!0,_&&(l=ea,l!==null)))throw l;e.memoizedState=c,e.baseState=o,e.baseQueue=m,n.lastRenderedState=c}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function cs(e){var t=nt(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,c=t.memoizedState;if(a!==null){l.pending=null;var o=a=a.next;do c=e(c,o.action),o=o.next;while(o!==a);Ct(c,t.memoizedState)||(ct=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,n]}function u0(e,t,l){var n=de,a=nt(),c=Me;if(c){if(l===void 0)throw Error(r(407));l=l()}else l=t();var o=!Ct((ke||a).memoizedState,l);if(o&&(a.memoizedState=l,ct=!0),a=a.queue,os(r0.bind(null,n,a,e),[e]),a.getSnapshot!==t||o||it!==null&&it.memoizedState.tag&1){if(n.flags|=2048,ca(9,{destroy:void 0},o0.bind(null,n,a,l,t),null),Ye===null)throw Error(r(349));c||(yl&127)!==0||s0(n,t,l)}return l}function s0(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=nc(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function o0(e,t,l,n){t.value=l,t.getSnapshot=n,f0(t)&&d0(e)}function r0(e,t,l){return l(function(){f0(t)&&d0(e)})}function f0(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function d0(e){var t=sn(e,2);t!==null&&Mt(t,e,2)}function us(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),vn){Pt(!0);try{l()}finally{Pt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:e},t}function h0(e,t,l,n){return e.baseState=l,is(e,ke,typeof n=="function"?n:pl)}function s4(e,t,l,n,a){if(sc(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){c.listeners.push(o)}};w.T!==null?l(!0):c.isTransition=!1,n(c),l=t.pending,l===null?(c.next=t.pending=c,m0(t,c)):(c.next=l.next,t.pending=l.next=c)}}function m0(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var c=w.T,o={};w.T=o;try{var d=l(a,n),m=w.S;m!==null&&m(o,d),y0(e,t,d)}catch(E){ss(e,t,E)}finally{c!==null&&o.types!==null&&(c.types=o.types),w.T=c}}else try{c=l(a,n),y0(e,t,c)}catch(E){ss(e,t,E)}}function y0(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){p0(e,t,n)},function(n){return ss(e,t,n)}):p0(e,t,l)}function p0(e,t,l){t.status="fulfilled",t.value=l,v0(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,m0(e,l)))}function ss(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,v0(t),t=t.next;while(t!==n)}e.action=null}function v0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function g0(e,t){return t}function b0(e,t){if(Me){var l=Ye.formState;if(l!==null){e:{var n=de;if(Me){if(Qe){t:{for(var a=Qe,c=Yt;a.nodeType!==8;){if(!c){a=null;break t}if(a=Qt(a.nextSibling),a===null){a=null;break t}}c=a.data,a=c==="F!"||c==="F"?a:null}if(a){Qe=Qt(a.nextSibling),n=a.data==="F!";break e}}Ol(n)}n=!1}n&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:g0,lastRenderedState:t},l.queue=n,l=B0.bind(null,de,n),n.dispatch=l,n=us(!1),c=ms.bind(null,de,!1,n.queue),n=jt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=s4.bind(null,de,a,c,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function S0(e){var t=nt();return x0(t,ke,e)}function x0(e,t,l){if(t=is(e,t,g0)[0],e=ic(pl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=$a(t)}catch(o){throw o===ta?$i:o}else n=t;t=nt();var a=t.queue,c=a.dispatch;return l!==t.memoizedState&&(de.flags|=2048,ca(9,{destroy:void 0},o4.bind(null,a,l),null)),[n,c,e]}function o4(e,t){e.action=t}function j0(e){var t=nt(),l=ke;if(l!==null)return x0(t,l,e);nt(),t=t.memoizedState,l=nt();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function ca(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=de.updateQueue,t===null&&(t=nc(),de.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 E0(){return nt().memoizedState}function cc(e,t,l,n){var a=jt();de.flags|=e,a.memoizedState=ca(1|t,{destroy:void 0},l,n===void 0?null:n)}function uc(e,t,l,n){var a=nt();n=n===void 0?null:n;var c=a.memoizedState.inst;ke!==null&&n!==null&&Pu(n,ke.memoizedState.deps)?a.memoizedState=ca(t,c,l,n):(de.flags|=e,a.memoizedState=ca(1|t,c,l,n))}function z0(e,t){cc(8390656,8,e,t)}function os(e,t){uc(2048,8,e,t)}function r4(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=nc(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function w0(e){var t=nt().memoizedState;return r4({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function N0(e,t){return uc(4,2,e,t)}function T0(e,t){return uc(4,4,e,t)}function M0(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 A0(e,t,l){l=l!=null?l.concat([e]):null,uc(4,4,M0.bind(null,t,e),l)}function rs(){}function C0(e,t){var l=nt();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&Pu(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function _0(e,t){var l=nt();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&Pu(t,n[1]))return n[0];if(n=e(),vn){Pt(!0);try{e()}finally{Pt(!1)}}return l.memoizedState=[n,t],n}function fs(e,t,l){return l===void 0||(yl&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Or(),de.lanes|=e,Vl|=e,l)}function O0(e,t,l,n){return Ct(l,t)?l:na.current!==null?(e=fs(e,l,n),Ct(e,t)||(ct=!0),e):(yl&42)===0||(yl&1073741824)!==0&&(ze&261930)===0?(ct=!0,e.memoizedState=l):(e=Or(),de.lanes|=e,Vl|=e,t)}function R0(e,t,l,n,a){var c=k.p;k.p=c!==0&&8>c?c:8;var o=w.T,d={};w.T=d,ms(e,!1,t,l);try{var m=a(),E=w.S;if(E!==null&&E(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var _=i4(m,n);Fa(e,t,_,Ht(e))}else Fa(e,t,n,Ht(e))}catch(H){Fa(e,t,{then:function(){},status:"rejected",reason:H},Ht())}finally{k.p=c,o!==null&&d.types!==null&&(o.types=d.types),w.T=o}}function f4(){}function ds(e,t,l,n){if(e.tag!==5)throw Error(r(476));var a=D0(e).queue;R0(e,a,t,P,l===null?f4:function(){return L0(e),l(n)})}function D0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function L0(e){var t=D0(e);t.next===null&&(t=e.alternate.memoizedState),Fa(e,t.next.queue,{},Ht())}function hs(){return mt(hi)}function H0(){return nt().memoizedState}function U0(){return nt().memoizedState}function d4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ht();e=Ll(l);var n=Hl(t,e,l);n!==null&&(Mt(n,t,l),Qa(n,t,l)),t={cache:Gu()},e.payload=t;return}t=t.return}}function h4(e,t,l){var n=Ht();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},sc(e)?q0(t,l):(l=_u(e,t,l,n),l!==null&&(Mt(l,e,n),k0(l,t,n)))}function B0(e,t,l){var n=Ht();Fa(e,t,l,n)}function Fa(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(sc(e))q0(t,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var o=t.lastRenderedState,d=c(o,l);if(a.hasEagerState=!0,a.eagerState=d,Ct(d,o))return Gi(e,t,a,0),Ye===null&&Vi(),!1}catch{}finally{}if(l=_u(e,t,a,n),l!==null)return Mt(l,e,n),k0(l,t,n),!0}return!1}function ms(e,t,l,n){if(n={lane:2,revertLane:Zs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(r(479))}else t=_u(e,l,n,2),t!==null&&Mt(t,e,2)}function sc(e){var t=e.alternate;return e===de||t!==null&&t===de}function q0(e,t){aa=tc=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function k0(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,Mi(e,l)}}var Wa={readContext:mt,use:ac,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};Wa.useEffectEvent=et;var V0={readContext:mt,use:ac,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:z0,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,cc(4194308,4,M0.bind(null,t,e),l)},useLayoutEffect:function(e,t){return cc(4194308,4,e,t)},useInsertionEffect:function(e,t){cc(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var n=e();if(vn){Pt(!0);try{e()}finally{Pt(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=jt();if(l!==void 0){var a=l(t);if(vn){Pt(!0);try{l(t)}finally{Pt(!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=h4.bind(null,de,e),[n.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=us(e);var t=e.queue,l=B0.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:rs,useDeferredValue:function(e,t){var l=jt();return fs(l,e,t)},useTransition:function(){var e=us(!1);return e=R0.bind(null,de,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=de,a=jt();if(Me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ye===null)throw Error(r(349));(ze&127)!==0||s0(n,t,l)}a.memoizedState=l;var c={value:l,getSnapshot:t};return a.queue=c,z0(r0.bind(null,n,c,e),[e]),n.flags|=2048,ca(9,{destroy:void 0},o0.bind(null,n,c,l,t),null),l},useId:function(){var e=jt(),t=Ye.identifierPrefix;if(Me){var l=tl,n=el;l=(n&~(1<<32-gt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=lc++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=c4++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hs,useFormState:b0,useActionState:b0,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ms.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:as,useCacheRefresh:function(){return jt().memoizedState=d4.bind(null,de)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((He&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ys={readContext:mt,use:ac,useCallback:C0,useContext:mt,useEffect:os,useImperativeHandle:A0,useInsertionEffect:N0,useLayoutEffect:T0,useMemo:_0,useReducer:ic,useRef:E0,useState:function(){return ic(pl)},useDebugValue:rs,useDeferredValue:function(e,t){var l=nt();return O0(l,ke.memoizedState,e,t)},useTransition:function(){var e=ic(pl)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:$a(e),t]},useSyncExternalStore:u0,useId:H0,useHostTransitionStatus:hs,useFormState:S0,useActionState:S0,useOptimistic:function(e,t){var l=nt();return h0(l,ke,e,t)},useMemoCache:as,useCacheRefresh:U0};ys.useEffectEvent=w0;var G0={readContext:mt,use:ac,useCallback:C0,useContext:mt,useEffect:os,useImperativeHandle:A0,useInsertionEffect:N0,useLayoutEffect:T0,useMemo:_0,useReducer:cs,useRef:E0,useState:function(){return cs(pl)},useDebugValue:rs,useDeferredValue:function(e,t){var l=nt();return ke===null?fs(l,e,t):O0(l,ke.memoizedState,e,t)},useTransition:function(){var e=cs(pl)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:$a(e),t]},useSyncExternalStore:u0,useId:H0,useHostTransitionStatus:hs,useFormState:j0,useActionState:j0,useOptimistic:function(e,t){var l=nt();return ke!==null?h0(l,ke,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:as,useCacheRefresh:U0};G0.useEffectEvent=w0;function ps(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:L({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vs={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Ll(n);a.payload=t,l!=null&&(a.callback=l),t=Hl(e,a,n),t!==null&&(Mt(t,e,n),Qa(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=Ht(),a=Ll(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Hl(e,a,n),t!==null&&(Mt(t,e,n),Qa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ht(),n=Ll(l);n.tag=2,t!=null&&(n.callback=t),t=Hl(e,n,l),t!==null&&(Mt(t,e,l),Qa(t,e,l))}};function Y0(e,t,l,n,a,c,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,o):t.prototype&&t.prototype.isPureReactComponent?!Ua(l,n)||!Ua(a,c):!0}function X0(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&&vs.enqueueReplaceState(t,t.state,null)}function gn(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=L({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function Q0(e){ki(e)}function Z0(e){console.error(e)}function K0(e){ki(e)}function oc(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function J0(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 gs(e,t,l){return l=Ll(l),l.tag=3,l.payload={element:null},l.callback=function(){oc(e,t)},l}function $0(e){return e=Ll(e),e.tag=3,e}function F0(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var c=n.value;e.payload=function(){return a(c)},e.callback=function(){J0(t,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){J0(t,l,n),typeof a!="function"&&(Gl===null?Gl=new Set([this]):Gl.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function m4(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&In(t,l,a,!0),l=Ot.current,l!==null){switch(l.tag){case 31:case 13:return Xt===null?xc():l.alternate===null&&tt===0&&(tt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Fi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),Ys(e,n,a)),!1;case 22:return l.flags|=65536,n===Fi?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)),Ys(e,n,a)),!1}throw Error(r(435,l.tag))}return Ys(e,n,a),xc(),!1}if(Me)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Uu&&(e=Error(r(422),{cause:n}),ka(kt(e,l)))):(n!==Uu&&(t=Error(r(423),{cause:n}),ka(kt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=kt(n,l),a=gs(e.stateNode,n,a),Ju(e,a),tt!==4&&(tt=2)),!1;var c=Error(r(520),{cause:n});if(c=kt(c,l),ii===null?ii=[c]:ii.push(c),tt!==4&&(tt=2),t===null)return!0;n=kt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=gs(l.stateNode,n,e),Ju(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Gl===null||!Gl.has(c))))return l.flags|=65536,a&=-a,l.lanes|=a,a=$0(a),F0(a,e,l,n),Ju(l,a),!1}l=l.return}while(l!==null);return!1}var bs=Error(r(461)),ct=!1;function yt(e,t,l,n){t.child=e===null?e0(t,null,l,n):pn(t,e.child,l,n)}function W0(e,t,l,n,a){l=l.render;var c=t.ref;if("ref"in n){var o={};for(var d in n)d!=="ref"&&(o[d]=n[d])}else o=n;return dn(t),n=es(e,t,l,o,c,a),d=ts(),e!==null&&!ct?(ls(e,t,a),vl(e,t,a)):(Me&&d&&Lu(t),t.flags|=1,yt(e,t,n,a),t.child)}function I0(e,t,l,n,a){if(e===null){var c=l.type;return typeof c=="function"&&!Ou(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,P0(e,t,c,n,a)):(e=Xi(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ts(e,a)){var o=c.memoizedProps;if(l=l.compare,l=l!==null?l:Ua,l(o,n)&&e.ref===t.ref)return vl(e,t,a)}return t.flags|=1,e=fl(c,n),e.ref=t.ref,e.return=t,t.child=e}function P0(e,t,l,n,a){if(e!==null){var c=e.memoizedProps;if(Ua(c,n)&&e.ref===t.ref)if(ct=!1,t.pendingProps=n=c,Ts(e,a))(e.flags&131072)!==0&&(ct=!0);else return t.lanes=e.lanes,vl(e,t,a)}return Ss(e,t,l,n,a)}function er(e,t,l,n){var a=n.children,c=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(c=c!==null?c.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&~c}else n=0,t.child=null;return tr(e,t,c,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ji(t,c!==null?c.cachePool:null),c!==null?n0(t,c):Fu(),a0(t);else return n=t.lanes=536870912,tr(e,t,c!==null?c.baseLanes|l:l,l,n)}else c!==null?(Ji(t,c.cachePool),n0(t,c),Bl(),t.memoizedState=null):(e!==null&&Ji(t,null),Fu(),Bl());return yt(e,t,a,l),t.child}function Ia(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tr(e,t,l,n,a){var c=Xu();return c=c===null?null:{parent:at._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Ji(t,null),Fu(),a0(t),e!==null&&In(e,t,n,!0),t.childLanes=a,null}function rc(e,t){return t=dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lr(e,t,l){return pn(t,e.child,null,l),e=rc(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function y4(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(n.mode==="hidden")return e=rc(t,n),t.lanes=536870912,Ia(null,e);if(Iu(t),(e=Qe)?(e=yf(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cl!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=qo(e),l.return=t,t.child=l,ht=t,Qe=null)):e=null,e===null)throw Ol(t);return t.lanes=536870912,null}return rc(t,n)}var c=e.memoizedState;if(c!==null){var o=c.dehydrated;if(Iu(t),a)if(t.flags&256)t.flags&=-257,t=lr(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ct||In(e,t,l,!1),a=(l&e.childLanes)!==0,ct||a){if(n=Ye,n!==null&&(o=Ai(n,l),o!==0&&o!==c.retryLane))throw c.retryLane=o,sn(e,o),Mt(n,e,o),bs;xc(),t=lr(e,t,l)}else e=c.treeContext,Qe=Qt(o.nextSibling),ht=t,Me=!0,_l=null,Yt=!1,e!==null&&Go(t,e),t=rc(t,n),t.flags|=4096;return t}return e=fl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(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(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ss(e,t,l,n,a){return dn(t),l=es(e,t,l,n,void 0,a),n=ts(),e!==null&&!ct?(ls(e,t,a),vl(e,t,a)):(Me&&n&&Lu(t),t.flags|=1,yt(e,t,l,a),t.child)}function nr(e,t,l,n,a,c){return dn(t),t.updateQueue=null,l=c0(t,n,l,a),i0(e),n=ts(),e!==null&&!ct?(ls(e,t,c),vl(e,t,c)):(Me&&n&&Lu(t),t.flags|=1,yt(e,t,l,c),t.child)}function ar(e,t,l,n,a){if(dn(t),t.stateNode===null){var c=Jn,o=l.contextType;typeof o=="object"&&o!==null&&(c=mt(o)),c=new l(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=vs,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},Zu(t),o=l.contextType,c.context=typeof o=="object"&&o!==null?mt(o):Jn,c.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(ps(t,l,o,n),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(o=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),o!==c.state&&vs.enqueueReplaceState(c,c.state,null),Ka(t,n,c,a),Za(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,m=gn(l,d);c.props=m;var E=c.context,_=l.contextType;o=Jn,typeof _=="object"&&_!==null&&(o=mt(_));var H=l.getDerivedStateFromProps;_=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,_||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||E!==o)&&X0(t,c,n,o),Dl=!1;var z=t.memoizedState;c.state=z,Ka(t,n,c,a),Za(),E=t.memoizedState,d||z!==E||Dl?(typeof H=="function"&&(ps(t,l,H,n),E=t.memoizedState),(m=Dl||Y0(t,l,m,n,z,E,o))?(_||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=E),c.props=n,c.state=E,c.context=o,n=m):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Ku(e,t),o=t.memoizedProps,_=gn(l,o),c.props=_,H=t.pendingProps,z=c.context,E=l.contextType,m=Jn,typeof E=="object"&&E!==null&&(m=mt(E)),d=l.getDerivedStateFromProps,(E=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(o!==H||z!==m)&&X0(t,c,n,m),Dl=!1,z=t.memoizedState,c.state=z,Ka(t,n,c,a),Za();var T=t.memoizedState;o!==H||z!==T||Dl||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof d=="function"&&(ps(t,l,d,n),T=t.memoizedState),(_=Dl||Y0(t,l,_,n,z,T,m)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(E||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,T,m),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,T,m)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=T),c.props=n,c.state=T,c.context=m,n=_):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,fc(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=pn(t,e.child,null,a),t.child=pn(t,null,l,a)):yt(e,t,l,a),t.memoizedState=c.state,e=t.child):e=vl(e,t,a),e}function ir(e,t,l,n){return rn(),t.flags|=256,yt(e,t,l,n),t.child}var xs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function js(e){return{baseLanes:e,cachePool:Jo()}}function Es(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Lt),e}function cr(e,t,l){var n=t.pendingProps,a=!1,c=(t.flags&128)!==0,o;if((o=c)||(o=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Me){if(a?Ul(t):Bl(),(e=Qe)?(e=yf(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cl!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=qo(e),l.return=t,t.child=l,ht=t,Qe=null)):e=null,e===null)throw Ol(t);return i1(e)?t.lanes=32:t.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(Bl(),a=t.mode,d=dc({mode:"hidden",children:d},a),n=on(n,a,l,null),d.return=t,n.return=t,d.sibling=n,t.child=d,n=t.child,n.memoizedState=js(l),n.childLanes=Es(e,o,l),t.memoizedState=xs,Ia(null,n)):(Ul(t),zs(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(c)t.flags&256?(Ul(t),t.flags&=-257,t=ws(e,t,l)):t.memoizedState!==null?(Bl(),t.child=e.child,t.flags|=128,t=null):(Bl(),d=n.fallback,a=t.mode,n=dc({mode:"visible",children:n.children},a),d=on(d,a,l,null),d.flags|=2,n.return=t,d.return=t,n.sibling=d,t.child=n,pn(t,e.child,null,l),n=t.child,n.memoizedState=js(l),n.childLanes=Es(e,o,l),t.memoizedState=xs,t=Ia(null,n));else if(Ul(t),i1(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var E=o.dgst;o=E,n=Error(r(419)),n.stack="",n.digest=o,ka({value:n,source:null,stack:null}),t=ws(e,t,l)}else if(ct||In(e,t,l,!1),o=(l&e.childLanes)!==0,ct||o){if(o=Ye,o!==null&&(n=Ai(o,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,sn(e,n),Mt(o,e,n),bs;a1(d)||xc(),t=ws(e,t,l)}else a1(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Qe=Qt(d.nextSibling),ht=t,Me=!0,_l=null,Yt=!1,e!==null&&Go(t,e),t=zs(t,n.children),t.flags|=4096);return t}return a?(Bl(),d=n.fallback,a=t.mode,m=e.child,E=m.sibling,n=fl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,E!==null?d=fl(E,d):(d=on(d,a,l,null),d.flags|=2),d.return=t,n.return=t,n.sibling=d,t.child=n,Ia(null,n),n=t.child,d=e.child.memoizedState,d===null?d=js(l):(a=d.cachePool,a!==null?(m=at._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Jo(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=Es(e,o,l),t.memoizedState=xs,Ia(e.child,n)):(Ul(t),l=e.child,e=l.sibling,l=fl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function zs(e,t){return t=dc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function dc(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function ws(e,t,l){return pn(t,e.child,null,l),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ur(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ku(e.return,t,l)}function Ns(e,t,l,n,a,c){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:c}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=a,o.treeForkCount=c)}function sr(e,t,l){var n=t.pendingProps,a=n.revealOrder,c=n.tail;n=n.children;var o=lt.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,U(lt,o),yt(e,t,n,l),n=Me?qa:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ur(e,l,t);else if(e.tag===19)ur(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&&ec(e)===null&&(a=l),l=l.sibling;l=a,l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Ns(t,!1,a,l,c,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&&ec(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Ns(t,!0,l,null,c,n);break;case"together":Ns(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Vl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(In(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=fl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=fl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ts(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zi(e)))}function p4(e,t,l){switch(t.tag){case 3:ne(t,t.stateNode.containerInfo),Rl(t,at,e.memoizedState.cache),rn();break;case 27:case 5:ce(t);break;case 4:ne(t,t.stateNode.containerInfo);break;case 10:Rl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Iu(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ul(t),t.flags|=128,null):(l&t.child.childLanes)!==0?cr(e,t,l):(Ul(t),e=vl(e,t,l),e!==null?e.sibling:null);Ul(t);break;case 19:var a=(e.flags&128)!==0;if(n=(l&t.childLanes)!==0,n||(In(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return sr(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(lt,lt.current),n)break;return null;case 22:return t.lanes=0,er(e,t,l,t.pendingProps);case 24:Rl(t,at,e.memoizedState.cache)}return vl(e,t,l)}function or(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)ct=!0;else{if(!Ts(e,l)&&(t.flags&128)===0)return ct=!1,p4(e,t,l);ct=(e.flags&131072)!==0}else ct=!1,Me&&(t.flags&1048576)!==0&&Vo(t,qa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=mn(t.elementType),t.type=e,typeof e=="function")Ou(e)?(n=gn(e,n),t.tag=1,t=ar(null,t,e,n,l)):(t.tag=0,t=Ss(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===J){t.tag=11,t=W0(null,t,e,n,l);break e}else if(a===$){t.tag=14,t=I0(null,t,e,n,l);break e}}throw t=se(e)||e,Error(r(306,t,""))}}return t;case 0:return Ss(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=gn(n,t.pendingProps),ar(e,t,n,a,l);case 3:e:{if(ne(t,t.stateNode.containerInfo),e===null)throw Error(r(387));n=t.pendingProps;var c=t.memoizedState;a=c.element,Ku(e,t),Ka(t,n,null,l);var o=t.memoizedState;if(n=o.cache,Rl(t,at,n),n!==c.cache&&Vu(t,[at],l,!0),Za(),n=o.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ir(e,t,n,l);break e}else if(n!==a){a=kt(Error(r(424)),t),ka(a),t=ir(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(Qe=Qt(e.firstChild),ht=t,Me=!0,_l=null,Yt=!0,l=e0(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(rn(),n===a){t=vl(e,t,l);break e}yt(e,t,n,l)}t=t.child}return t;case 26:return fc(e,t),e===null?(l=xf(t.type,null,t.pendingProps,null))?t.memoizedState=l:Me||(l=t.type,e=t.pendingProps,n=Mc(S.current).createElement(l),n[Xe]=t,n[bt]=e,pt(n,l,e),rt(n),t.stateNode=n):t.memoizedState=xf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&Me&&(n=t.stateNode=gf(t.type,t.pendingProps,S.current),ht=t,Yt=!0,a=Qe,Zl(t.type)?(c1=a,Qe=Qt(n.firstChild)):Qe=a),yt(e,t,t.pendingProps.children,l),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((a=n=Qe)&&(n=Z4(n,t.type,t.pendingProps,Yt),n!==null?(t.stateNode=n,ht=t,Qe=Qt(n.firstChild),Yt=!1,a=!0):a=!1),a||Ol(t)),ce(t),a=t.type,c=t.pendingProps,o=e!==null?e.memoizedProps:null,n=c.children,t1(a,c)?n=null:o!==null&&t1(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=es(e,t,u4,null,null,l),hi._currentValue=a),fc(e,t),yt(e,t,n,l),t.child;case 6:return e===null&&Me&&((e=l=Qe)&&(l=K4(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,ht=t,Qe=null,e=!0):e=!1),e||Ol(t)),null;case 13:return cr(e,t,l);case 4:return ne(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=pn(t,null,n,l):yt(e,t,n,l),t.child;case 11:return W0(e,t,t.type,t.pendingProps,l);case 7:return yt(e,t,t.pendingProps,l),t.child;case 8:return yt(e,t,t.pendingProps.children,l),t.child;case 12:return yt(e,t,t.pendingProps.children,l),t.child;case 10:return n=t.pendingProps,Rl(t,t.type,n.value),yt(e,t,n.children,l),t.child;case 9:return a=t.type._context,n=t.pendingProps.children,dn(t),a=mt(a),n=n(a),t.flags|=1,yt(e,t,n,l),t.child;case 14:return I0(e,t,t.type,t.pendingProps,l);case 15:return P0(e,t,t.type,t.pendingProps,l);case 19:return sr(e,t,l);case 31:return y4(e,t,l);case 22:return er(e,t,l,t.pendingProps);case 24:return dn(t),n=mt(at),e===null?(a=Xu(),a===null&&(a=Ye,c=Gu(),a.pooledCache=c,c.refCount++,c!==null&&(a.pooledCacheLanes|=l),a=c),t.memoizedState={parent:n,cache:a},Zu(t),Rl(t,at,a)):((e.lanes&l)!==0&&(Ku(e,t),Ka(t,null,null,l),Za()),a=e.memoizedState,c=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Rl(t,at,n)):(n=c.cache,Rl(t,at,n),n!==a.cache&&Vu(t,[at],l,!0))),yt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function gl(e){e.flags|=4}function Ms(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(Hr())e.flags|=8192;else throw yn=Fi,Qu}else e.flags&=-16777217}function rr(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nf(t))if(Hr())e.flags|=8192;else throw yn=Fi,Qu}function hc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ti():536870912,e.lanes|=t,ra|=t)}function Pa(e,t){if(!Me)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 Ze(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 v4(e,t,l){var n=t.pendingProps;switch(Hu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ml(at),F(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Wn(t)?gl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bu())),Ze(t),null;case 26:var a=t.type,c=t.memoizedState;return e===null?(gl(t),c!==null?(Ze(t),rr(t,c)):(Ze(t),Ms(t,a,null,n,l))):c?c!==e.memoizedState?(gl(t),Ze(t),rr(t,c)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&gl(t),Ze(t),Ms(t,a,e,n,l)),null;case 27:if(ve(t),l=S.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}e=R.current,Wn(t)?Yo(t):(e=gf(a,n,l),t.stateNode=e,gl(t))}return Ze(t),null;case 5:if(ve(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(!n){if(t.stateNode===null)throw Error(r(166));return Ze(t),null}if(c=R.current,Wn(t))Yo(t);else{var o=Mc(S.current);switch(c){case 1:c=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:c=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":c=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":c=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":c=o.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?o.createElement(a,{is:n.is}):o.createElement(a)}}c[Xe]=t,c[bt]=n;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)c.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=c;e:switch(pt(c,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&&gl(t)}}return Ze(t),Ms(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&gl(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(r(166));if(e=S.current,Wn(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=ht,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||uf(e.nodeValue,l)),e||Ol(t,!0)}else e=Mc(e).createTextNode(n),e[Xe]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=Wn(t),l!==null){if(e===null){if(!n)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Xe]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ze(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Wn(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[Xe]=t}else rn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),a=!1}else a=Bu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(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),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),hc(t,t.updateQueue),Ze(t),null);case 4:return F(),e===null&&Fs(t.stateNode.containerInfo),Ze(t),null;case 10:return ml(t.type),Ze(t),null;case 19:if(O(lt),n=t.memoizedState,n===null)return Ze(t),null;if(a=(t.flags&128)!==0,c=n.rendering,c===null)if(a)Pa(n,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=ec(e),c!==null){for(t.flags|=128,Pa(n,!1),e=c.updateQueue,t.updateQueue=e,hc(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Bo(l,e),l=l.sibling;return U(lt,lt.current&1|2),Me&&dl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&dt()>gc&&(t.flags|=128,a=!0,Pa(n,!1),t.lanes=4194304)}else{if(!a)if(e=ec(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hc(t,e),Pa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!Me)return Ze(t),null}else 2*dt()-n.renderingStartTime>gc&&l!==536870912&&(t.flags|=128,a=!0,Pa(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=dt(),e.sibling=null,l=lt.current,U(lt,a?l&1|2:l&1),Me&&dl(t,n.treeForkCount),e):(Ze(t),null);case 22:case 23:return Rt(t),Wu(),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&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&hc(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&&O(hn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(at),Ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function g4(e,t){switch(Hu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(at),F(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(r(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return O(lt),null;case 4:return F(),null;case 10:return ml(t.type),null;case 22:case 23:return Rt(t),Wu(),e!==null&&O(hn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(at),null;case 25:return null;default:return null}}function fr(e,t){switch(Hu(t),t.tag){case 3:ml(at),F();break;case 26:case 27:case 5:ve(t);break;case 4:F();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:O(lt);break;case 10:ml(t.type);break;case 22:case 23:Rt(t),Wu(),e!==null&&O(hn);break;case 24:ml(at)}}function ei(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 c=l.create,o=l.inst;n=c(),o.destroy=n}l=l.next}while(l!==a)}}catch(d){Be(t,t.return,d)}}function ql(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var c=a.next;n=c;do{if((n.tag&e)===e){var o=n.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,a=t;var m=l,E=d;try{E()}catch(_){Be(a,m,_)}}}n=n.next}while(n!==c)}}catch(_){Be(t,t.return,_)}}function dr(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{l0(t,l)}catch(n){Be(e,e.return,n)}}}function hr(e,t,l){l.props=gn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){Be(e,t,n)}}function ti(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){Be(e,t,a)}}function ll(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Be(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){Be(e,t,a)}else l.current=null}function mr(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){Be(e,e.return,a)}}function As(e,t,l){try{var n=e.stateNode;k4(n,e.type,l,t),n[bt]=t}catch(a){Be(e,e.return,a)}}function yr(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zl(e.type)||e.tag===4}function Cs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yr(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&&Zl(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 _s(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=ol));else if(n!==4&&(n===27&&Zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(_s(e,t,l),e=e.sibling;e!==null;)_s(e,t,l),e=e.sibling}function mc(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&&Zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(mc(e,t,l),e=e.sibling;e!==null;)mc(e,t,l),e=e.sibling}function pr(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);pt(t,n,l),t[Xe]=e,t[bt]=l}catch(c){Be(e,e.return,c)}}var bl=!1,ut=!1,Os=!1,vr=typeof WeakSet=="function"?WeakSet:Set,ft=null;function b4(e,t){if(e=e.containerInfo,Ps=Lc,e=Ao(e),wu(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,c=n.focusNode;n=n.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var o=0,d=-1,m=-1,E=0,_=0,H=e,z=null;t:for(;;){for(var T;H!==l||a!==0&&H.nodeType!==3||(d=o+a),H!==c||n!==0&&H.nodeType!==3||(m=o+n),H.nodeType===3&&(o+=H.nodeValue.length),(T=H.firstChild)!==null;)z=H,H=T;for(;;){if(H===e)break t;if(z===l&&++E===a&&(d=o),z===c&&++_===n&&(m=o),(T=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=T}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(e1={focusedElem:e,selectionRange:l},Lc=!1,ft=t;ft!==null;)if(t=ft,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ft=e;else for(;ft!==null;){switch(t=ft,c=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&&c!==null){e=void 0,l=t,a=c.memoizedProps,c=c.memoizedState,n=l.stateNode;try{var W=gn(l.type,a);e=n.getSnapshotBeforeUpdate(W,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Be(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)n1(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":n1(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ft=e;break}ft=t.return}}function gr(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:xl(e,l),n&4&&ei(5,l);break;case 1:if(xl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Be(l,l.return,o)}else{var a=gn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Be(l,l.return,o)}}n&64&&dr(l),n&512&&ti(l,l.return);break;case 3:if(xl(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{l0(e,t)}catch(o){Be(l,l.return,o)}}break;case 27:t===null&&n&4&&pr(l);case 26:case 5:xl(e,l),t===null&&n&4&&mr(l),n&512&&ti(l,l.return);break;case 12:xl(e,l);break;case 31:xl(e,l),n&4&&xr(e,l);break;case 13:xl(e,l),n&4&&jr(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=M4.bind(null,l),J4(e,l))));break;case 22:if(n=l.memoizedState!==null||bl,!n){t=t!==null&&t.memoizedState!==null||ut,a=bl;var c=ut;bl=n,(ut=t)&&!c?jl(e,l,(l.subtreeFlags&8772)!==0):xl(e,l),bl=a,ut=c}break;case 30:break;default:xl(e,l)}}function br(e){var t=e.alternate;t!==null&&(e.alternate=null,br(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&su(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Je=null,zt=!1;function Sl(e,t,l){for(l=l.child;l!==null;)Sr(e,t,l),l=l.sibling}function Sr(e,t,l){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(en,l)}catch{}switch(l.tag){case 26:ut||ll(l,t),Sl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ut||ll(l,t);var n=Je,a=zt;Zl(l.type)&&(Je=l.stateNode,zt=!1),Sl(e,t,l),ri(l.stateNode),Je=n,zt=a;break;case 5:ut||ll(l,t);case 6:if(n=Je,a=zt,Je=null,Sl(e,t,l),Je=n,zt=a,Je!==null)if(zt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(c){Be(l,t,c)}else try{Je.removeChild(l.stateNode)}catch(c){Be(l,t,c)}break;case 18:Je!==null&&(zt?(e=Je,hf(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ga(e)):hf(Je,l.stateNode));break;case 4:n=Je,a=zt,Je=l.stateNode.containerInfo,zt=!0,Sl(e,t,l),Je=n,zt=a;break;case 0:case 11:case 14:case 15:ql(2,l,t),ut||ql(4,l,t),Sl(e,t,l);break;case 1:ut||(ll(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&hr(l,t,n)),Sl(e,t,l);break;case 21:Sl(e,t,l);break;case 22:ut=(n=ut)||l.memoizedState!==null,Sl(e,t,l),ut=n;break;default:Sl(e,t,l)}}function xr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ga(e)}catch(l){Be(t,t.return,l)}}}function jr(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ga(e)}catch(l){Be(t,t.return,l)}}function S4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vr),t;default:throw Error(r(435,e.tag))}}function yc(e,t){var l=S4(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=A4.bind(null,e,n);n.then(a,a)}})}function wt(e,t){var l=t.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],c=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Zl(d.type)){Je=d.stateNode,zt=!1;break e}break;case 5:Je=d.stateNode,zt=!1;break e;case 3:case 4:Je=d.stateNode.containerInfo,zt=!0;break e}d=d.return}if(Je===null)throw Error(r(160));Sr(c,o,a),Je=null,zt=!1,c=a.alternate,c!==null&&(c.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Er(t,e),t=t.sibling}var Ft=null;function Er(e,t){var l=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Nt(e),n&4&&(ql(3,e,e.return),ei(3,e),ql(5,e,e.return));break;case 1:wt(t,e),Nt(e),n&512&&(ut||l===null||ll(l,l.return)),n&64&&bl&&(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=Ft;if(wt(t,e),Nt(e),n&512&&(ut||l===null||ll(l,l.return)),n&4){var c=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":c=a.getElementsByTagName("title")[0],(!c||c[Ma]||c[Xe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=a.createElement(n),a.head.insertBefore(c,a.querySelector("head > title"))),pt(c,n,l),c[Xe]=e,rt(c),n=c;break e;case"link":var o=zf("link","href",a).get(n+(l.href||""));if(o){for(var d=0;d<o.length;d++)if(c=o[d],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(d,1);break t}}c=a.createElement(n),pt(c,n,l),a.head.appendChild(c);break;case"meta":if(o=zf("meta","content",a).get(n+(l.content||""))){for(d=0;d<o.length;d++)if(c=o[d],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(d,1);break t}}c=a.createElement(n),pt(c,n,l),a.head.appendChild(c);break;default:throw Error(r(468,n))}c[Xe]=e,rt(c),n=c}e.stateNode=n}else wf(a,e.type,e.stateNode);else e.stateNode=Ef(a,n,e.memoizedProps);else c!==n?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,n===null?wf(a,e.type,e.stateNode):Ef(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&As(e,e.memoizedProps,l.memoizedProps)}break;case 27:wt(t,e),Nt(e),n&512&&(ut||l===null||ll(l,l.return)),l!==null&&n&4&&As(e,e.memoizedProps,l.memoizedProps);break;case 5:if(wt(t,e),Nt(e),n&512&&(ut||l===null||ll(l,l.return)),e.flags&32){a=e.stateNode;try{Vn(a,"")}catch(W){Be(e,e.return,W)}}n&4&&e.stateNode!=null&&(a=e.memoizedProps,As(e,a,l!==null?l.memoizedProps:a)),n&1024&&(Os=!0);break;case 6:if(wt(t,e),Nt(e),n&4){if(e.stateNode===null)throw Error(r(162));n=e.memoizedProps,l=e.stateNode;try{l.nodeValue=n}catch(W){Be(e,e.return,W)}}break;case 3:if(_c=null,a=Ft,Ft=Ac(t.containerInfo),wt(t,e),Ft=a,Nt(e),n&4&&l!==null&&l.memoizedState.isDehydrated)try{ga(t.containerInfo)}catch(W){Be(e,e.return,W)}Os&&(Os=!1,zr(e));break;case 4:n=Ft,Ft=Ac(e.stateNode.containerInfo),wt(t,e),Nt(e),Ft=n;break;case 12:wt(t,e),Nt(e);break;case 31:wt(t,e),Nt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,yc(e,n)));break;case 13:wt(t,e),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(vc=dt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,yc(e,n)));break;case 22:a=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,E=bl,_=ut;if(bl=E||a,ut=_||m,wt(t,e),ut=_,bl=E,Nt(e),n&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(l===null||m||bl||ut||bn(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(c=m.stateNode,a)o=c.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=m.stateNode;var H=m.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Be(m,m.return,W)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(W){Be(m,m.return,W)}}}else if(t.tag===18){if(l===null){m=t;try{var T=m.stateNode;a?mf(T,!0):mf(m.stateNode,!1)}catch(W){Be(m,m.return,W)}}}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,yc(e,l))));break;case 19:wt(t,e),Nt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,yc(e,n)));break;case 30:break;case 21:break;default:wt(t,e),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(yr(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,c=Cs(e);mc(e,c,a);break;case 5:var o=l.stateNode;l.flags&32&&(Vn(o,""),l.flags&=-33);var d=Cs(e);mc(e,d,o);break;case 3:case 4:var m=l.stateNode.containerInfo,E=Cs(e);_s(e,E,m);break;default:throw Error(r(161))}}catch(_){Be(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gr(e,t.alternate,t),t=t.sibling}function bn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ql(4,t,t.return),bn(t);break;case 1:ll(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&hr(t,t.return,l),bn(t);break;case 27:ri(t.stateNode);case 26:case 5:ll(t,t.return),bn(t);break;case 22:t.memoizedState===null&&bn(t);break;case 30:bn(t);break;default:bn(t)}e=e.sibling}}function jl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,a=e,c=t,o=c.flags;switch(c.tag){case 0:case 11:case 15:jl(a,c,l),ei(4,c);break;case 1:if(jl(a,c,l),n=c,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(E){Be(n,n.return,E)}if(n=c,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)t0(m[a],d)}catch(E){Be(n,n.return,E)}}l&&o&64&&dr(c),ti(c,c.return);break;case 27:pr(c);case 26:case 5:jl(a,c,l),l&&n===null&&o&4&&mr(c),ti(c,c.return);break;case 12:jl(a,c,l);break;case 31:jl(a,c,l),l&&o&4&&xr(a,c);break;case 13:jl(a,c,l),l&&o&4&&jr(a,c);break;case 22:c.memoizedState===null&&jl(a,c,l),ti(c,c.return);break;case 30:break;default:jl(a,c,l)}t=t.sibling}}function Rs(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&&Va(l))}function Ds(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Va(e))}function Wt(e,t,l,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wr(e,t,l,n),t=t.sibling}function wr(e,t,l,n){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,l,n),a&2048&&ei(9,t);break;case 1:Wt(e,t,l,n);break;case 3:Wt(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&&Va(e)));break;case 12:if(a&2048){Wt(e,t,l,n),e=t.stateNode;try{var c=t.memoizedProps,o=c.id,d=c.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Be(t,t.return,m)}}else Wt(e,t,l,n);break;case 31:Wt(e,t,l,n);break;case 13:Wt(e,t,l,n);break;case 23:break;case 22:c=t.stateNode,o=t.alternate,t.memoizedState!==null?c._visibility&2?Wt(e,t,l,n):li(e,t):c._visibility&2?Wt(e,t,l,n):(c._visibility|=2,ua(e,t,l,n,(t.subtreeFlags&10256)!==0||!1)),a&2048&&Rs(o,t);break;case 24:Wt(e,t,l,n),a&2048&&Ds(t.alternate,t);break;default:Wt(e,t,l,n)}}function ua(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,o=t,d=l,m=n,E=o.flags;switch(o.tag){case 0:case 11:case 15:ua(c,o,d,m,a),ei(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?ua(c,o,d,m,a):li(c,o):(_._visibility|=2,ua(c,o,d,m,a)),a&&E&2048&&Rs(o.alternate,o);break;case 24:ua(c,o,d,m,a),a&&E&2048&&Ds(o.alternate,o);break;default:ua(c,o,d,m,a)}t=t.sibling}}function li(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:li(l,n),a&2048&&Rs(n.alternate,n);break;case 24:li(l,n),a&2048&&Ds(n.alternate,n);break;default:li(l,n)}t=t.sibling}}var ni=8192;function sa(e,t,l){if(e.subtreeFlags&ni)for(e=e.child;e!==null;)Nr(e,t,l),e=e.sibling}function Nr(e,t,l){switch(e.tag){case 26:sa(e,t,l),e.flags&ni&&e.memoizedState!==null&&c3(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:sa(e,t,l);break;case 3:case 4:var n=Ft;Ft=Ac(e.stateNode.containerInfo),sa(e,t,l),Ft=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ni,ni=16777216,sa(e,t,l),ni=n):sa(e,t,l));break;default:sa(e,t,l)}}function Tr(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 ai(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];ft=n,Ar(n,e)}Tr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mr(e),e=e.sibling}function Mr(e){switch(e.tag){case 0:case 11:case 15:ai(e),e.flags&2048&&ql(9,e,e.return);break;case 3:ai(e);break;case 12:ai(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pc(e)):ai(e);break;default:ai(e)}}function pc(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];ft=n,Ar(n,e)}Tr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ql(8,t,t.return),pc(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,pc(t));break;default:pc(t)}e=e.sibling}}function Ar(e,t){for(;ft!==null;){var l=ft;switch(l.tag){case 0:case 11:case 15:ql(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:Va(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,ft=n;else e:for(l=e;ft!==null;){n=ft;var a=n.sibling,c=n.return;if(br(n),n===l){ft=null;break e}if(a!==null){a.return=c,ft=a;break e}ft=c}}}var x4={getCacheForType:function(e){var t=mt(at),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return mt(at).controller.signal}},j4=typeof WeakMap=="function"?WeakMap:Map,He=0,Ye=null,je=null,ze=0,Ue=0,Dt=null,kl=!1,oa=!1,Ls=!1,El=0,tt=0,Vl=0,Sn=0,Hs=0,Lt=0,ra=0,ii=null,Tt=null,Us=!1,vc=0,Cr=0,gc=1/0,bc=null,Gl=null,ot=0,Yl=null,fa=null,zl=0,Bs=0,qs=null,_r=null,ci=0,ks=null;function Ht(){return(He&2)!==0&&ze!==0?ze&-ze:w.T!==null?Zs():ie()}function Or(){if(Lt===0)if((ze&536870912)===0||Me){var e=Rn;Rn<<=1,(Rn&3932160)===0&&(Rn=262144),Lt=e}else Lt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Lt}function Mt(e,t,l){(e===Ye&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(da(e,0),Xl(e,ze,Lt,!1)),ln(e,l),((He&2)===0||e!==Ye)&&(e===Ye&&((He&2)===0&&(Sn|=l),tt===4&&Xl(e,ze,Lt,!1)),nl(e))}function Rr(e,t,l){if((He&6)!==0)throw Error(r(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||tn(e,t),a=n?w4(e,t):Gs(e,t,!0),c=n;do{if(a===0){oa&&!n&&Xl(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!E4(l)){a=Gs(e,t,!1),c=!1;continue}if(a===2){if(c=t,e.errorRecoveryDisabledLanes&c)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;a=ii;var m=d.current.memoizedState.isDehydrated;if(m&&(da(d,o).flags|=256),o=Gs(d,o,!1),o!==2){if(Ls&&!m){d.errorRecoveryDisabledLanes|=c,Sn|=c,a=4;break e}c=Tt,Tt=a,c!==null&&(Tt===null?Tt=c:Tt.push.apply(Tt,c))}a=o}if(c=!1,a!==2)continue}}if(a===1){da(e,0),Xl(e,t,0,!0);break}e:{switch(n=e,c=a,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Xl(n,t,Lt,!kl);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=vc+300-dt(),10<a)){if(Xl(n,t,Lt,!kl),Ln(n,0,!0)!==0)break e;zl=t,n.timeoutHandle=ff(Dr.bind(null,n,l,Tt,bc,Us,t,Lt,Sn,ra,kl,c,"Throttled",-0,0),a);break e}Dr(n,l,Tt,bc,Us,t,Lt,Sn,ra,kl,c,null,-0,0)}}break}while(!0);nl(e)}function Dr(e,t,l,n,a,c,o,d,m,E,_,H,z,T){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ol},Nr(t,c,H);var W=(c&62914560)===c?vc-dt():(c&4194048)===c?Cr-dt():0;if(W=u3(H,W),W!==null){zl=c,e.cancelPendingCommit=W(Gr.bind(null,e,t,c,l,n,a,o,d,m,_,H,null,z,T)),Xl(e,c,o,!E);return}}Gr(e,t,c,l,n,a,o,d,m)}function E4(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],c=a.getSnapshot;a=a.value;try{if(!Ct(c(),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 Xl(e,t,l,n){t&=~Hs,t&=~Sn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var c=31-gt(a),o=1<<c;n[c]=-1,a&=~o}l!==0&&Na(e,l,t)}function Sc(){return(He&6)===0?(ui(0),!1):!0}function Vs(){if(je!==null){if(Ue===0)var e=je.return;else e=je,hl=fn=null,ns(e),la=null,Ya=0,e=je;for(;e!==null;)fr(e.alternate,e),e=e.return;je=null}}function da(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Y4(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),zl=0,Vs(),Ye=e,je=l=fl(e.current,null),ze=t,Ue=0,Dt=null,kl=!1,oa=tn(e,t),Ls=!1,ra=Lt=Hs=Sn=Vl=tt=0,Tt=ii=null,Us=!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-gt(n),c=1<<a;t|=e[a],n&=~c}return El=t,Vi(),l}function Lr(e,t){de=null,w.H=Wa,t===ta||t===$i?(t=Wo(),Ue=3):t===Qu?(t=Wo(),Ue=4):Ue=t===bs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,je===null&&(tt=1,oc(e,kt(t,e.current)))}function Hr(){var e=Ot.current;return e===null?!0:(ze&4194048)===ze?Xt===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Xt:!1}function Ur(){var e=w.H;return w.H=Wa,e===null?Wa:e}function Br(){var e=w.A;return w.A=x4,e}function xc(){tt=4,kl||(ze&4194048)!==ze&&Ot.current!==null||(oa=!0),(Vl&134217727)===0&&(Sn&134217727)===0||Ye===null||Xl(Ye,ze,Lt,!1)}function Gs(e,t,l){var n=He;He|=2;var a=Ur(),c=Br();(Ye!==e||ze!==t)&&(bc=null,da(e,t)),t=!1;var o=tt;e:do try{if(Ue!==0&&je!==null){var d=je,m=Dt;switch(Ue){case 8:Vs(),o=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var E=Ue;if(Ue=0,Dt=null,ha(e,d,m,E),l&&oa){o=0;break e}break;default:E=Ue,Ue=0,Dt=null,ha(e,d,m,E)}}z4(),o=tt;break}catch(_){Lr(e,_)}while(!0);return t&&e.shellSuspendCounter++,hl=fn=null,He=n,w.H=a,w.A=c,je===null&&(Ye=null,ze=0,Vi()),o}function z4(){for(;je!==null;)qr(je)}function w4(e,t){var l=He;He|=2;var n=Ur(),a=Br();Ye!==e||ze!==t?(bc=null,gc=dt()+500,da(e,t)):oa=tn(e,t);e:do try{if(Ue!==0&&je!==null){t=je;var c=Dt;t:switch(Ue){case 1:Ue=0,Dt=null,ha(e,t,c,1);break;case 2:case 9:if($o(c)){Ue=0,Dt=null,kr(t);break}t=function(){Ue!==2&&Ue!==9||Ye!==e||(Ue=7),nl(e)},c.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:$o(c)?(Ue=0,Dt=null,kr(t)):(Ue=0,Dt=null,ha(e,t,c,7));break;case 5:var o=null;switch(je.tag){case 26:o=je.memoizedState;case 5:case 27:var d=je;if(o?Nf(o):d.stateNode.complete){Ue=0,Dt=null;var m=d.sibling;if(m!==null)je=m;else{var E=d.return;E!==null?(je=E,jc(E)):je=null}break t}}Ue=0,Dt=null,ha(e,t,c,5);break;case 6:Ue=0,Dt=null,ha(e,t,c,6);break;case 8:Vs(),tt=6;break e;default:throw Error(r(462))}}N4();break}catch(_){Lr(e,_)}while(!0);return hl=fn=null,w.H=n,w.A=a,He=l,je!==null?0:(Ye=null,ze=0,Vi(),tt)}function N4(){for(;je!==null&&!An();)qr(je)}function qr(e){var t=or(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?jc(e):je=t}function kr(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=nr(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=nr(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:ns(t);default:fr(l,t),t=je=Bo(t,El),t=or(l,t,El)}e.memoizedProps=e.pendingProps,t===null?jc(e):je=t}function ha(e,t,l,n){hl=fn=null,ns(t),la=null,Ya=0;var a=t.return;try{if(m4(e,a,t,l,ze)){tt=1,oc(e,kt(l,e.current)),je=null;return}}catch(c){if(a!==null)throw je=a,c;tt=1,oc(e,kt(l,e.current)),je=null;return}t.flags&32768?(Me||n===1?e=!0:oa||(ze&536870912)!==0?e=!1:(kl=e=!0,(n===2||n===9||n===3||n===6)&&(n=Ot.current,n!==null&&n.tag===13&&(n.flags|=16384))),Vr(t,e)):jc(t)}function jc(e){var t=e;do{if((t.flags&32768)!==0){Vr(t,kl);return}e=t.return;var l=v4(t.alternate,t,El);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);tt===0&&(tt=5)}function Vr(e,t){do{var l=g4(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);tt=6,je=null}function Gr(e,t,l,n,a,c,o,d,m){e.cancelPendingCommit=null;do Ec();while(ot!==0);if((He&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Cu,cu(e,l,c,o,d,m),e===Ye&&(je=Ye=null,ze=0),fa=t,Yl=e,zl=l,Bs=c,qs=a,_r=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,C4(_n,function(){return Kr(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=w.T,w.T=null,a=k.p,k.p=2,o=He,He|=4;try{b4(e,t,l)}finally{He=o,k.p=a,w.T=n}}ot=1,Yr(),Xr(),Qr()}}function Yr(){if(ot===1){ot=0;var e=Yl,t=fa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var n=k.p;k.p=2;var a=He;He|=4;try{Er(t,e);var c=e1,o=Ao(e.containerInfo),d=c.focusedElem,m=c.selectionRange;if(o!==d&&d&&d.ownerDocument&&Mo(d.ownerDocument.documentElement,d)){if(m!==null&&wu(d)){var E=m.start,_=m.end;if(_===void 0&&(_=E),"selectionStart"in d)d.selectionStart=E,d.selectionEnd=Math.min(_,d.value.length);else{var H=d.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var T=z.getSelection(),W=d.textContent.length,ue=Math.min(m.start,W),Ge=m.end===void 0?ue:Math.min(m.end,W);!T.extend&&ue>Ge&&(o=Ge,Ge=ue,ue=o);var b=To(d,ue),g=To(d,Ge);if(b&&g&&(T.rangeCount!==1||T.anchorNode!==b.node||T.anchorOffset!==b.offset||T.focusNode!==g.node||T.focusOffset!==g.offset)){var j=H.createRange();j.setStart(b.node,b.offset),T.removeAllRanges(),ue>Ge?(T.addRange(j),T.extend(g.node,g.offset)):(j.setEnd(g.node,g.offset),T.addRange(j))}}}}for(H=[],T=d;T=T.parentNode;)T.nodeType===1&&H.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var D=H[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Lc=!!Ps,e1=Ps=null}finally{He=a,k.p=n,w.T=l}}e.current=t,ot=2}}function Xr(){if(ot===2){ot=0;var e=Yl,t=fa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var n=k.p;k.p=2;var a=He;He|=4;try{gr(e,t.alternate,t)}finally{He=a,k.p=n,w.T=l}}ot=3}}function Qr(){if(ot===4||ot===3){ot=0,Cn();var e=Yl,t=fa,l=zl,n=_r;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ot=5:(ot=0,fa=Yl=null,Zr(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Gl=null),G(l),t=t.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(en,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=w.T,a=k.p,k.p=2,w.T=null;try{for(var c=e.onRecoverableError,o=0;o<n.length;o++){var d=n[o];c(d.value,{componentStack:d.stack})}}finally{w.T=t,k.p=a}}(zl&3)!==0&&Ec(),nl(e),a=e.pendingLanes,(l&261930)!==0&&(a&42)!==0?e===ks?ci++:(ci=0,ks=e):ci=0,ui(0)}}function Zr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Va(t)))}function Ec(){return Yr(),Xr(),Qr(),Kr()}function Kr(){if(ot!==5)return!1;var e=Yl,t=Bs;Bs=0;var l=G(zl),n=w.T,a=k.p;try{k.p=32>l?32:l,w.T=null,l=qs,qs=null;var c=Yl,o=zl;if(ot=0,fa=Yl=null,zl=0,(He&6)!==0)throw Error(r(331));var d=He;if(He|=4,Mr(c.current),wr(c,c.current,o,l),He=d,ui(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(en,c)}catch{}return!0}finally{k.p=a,w.T=n,Zr(e,t)}}function Jr(e,t,l){t=kt(l,t),t=gs(e.stateNode,t,2),e=Hl(e,t,2),e!==null&&(ln(e,2),nl(e))}function Be(e,t,l){if(e.tag===3)Jr(e,e,l);else for(;t!==null;){if(t.tag===3){Jr(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Gl===null||!Gl.has(n))){e=kt(l,e),l=$0(2),n=Hl(t,l,2),n!==null&&(F0(l,n,t,e),ln(n,2),nl(n));break}}t=t.return}}function Ys(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new j4;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)||(Ls=!0,a.add(l),e=T4.bind(null,e,t,l),t.then(e,e))}function T4(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(ze&l)===l&&(tt===4||tt===3&&(ze&62914560)===ze&&300>dt()-vc?(He&2)===0&&da(e,0):Hs|=l,ra===ze&&(ra=0)),nl(e)}function $r(e,t){t===0&&(t=Ti()),e=sn(e,t),e!==null&&(ln(e,t),nl(e))}function M4(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),$r(e,l)}function A4(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(r(314))}n!==null&&n.delete(t),$r(e,l)}function C4(e,t){return Tl(e,t)}var zc=null,ma=null,Xs=!1,wc=!1,Qs=!1,Ql=0;function nl(e){e!==ma&&e.next===null&&(ma===null?zc=ma=e:ma=ma.next=e),wc=!0,Xs||(Xs=!0,O4())}function ui(e,t){if(!Qs&&wc){Qs=!0;do for(var l=!1,n=zc;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var c=0;else{var o=n.suspendedLanes,d=n.pingedLanes;c=(1<<31-gt(42|e)+1)-1,c&=a&~(o&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,Pr(n,c))}else c=ze,c=Ln(n,n===Ye?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||tn(n,c)||(l=!0,Pr(n,c));n=n.next}while(l);Qs=!1}}function _4(){Fr()}function Fr(){wc=Xs=!1;var e=0;Ql!==0&&G4()&&(e=Ql);for(var t=dt(),l=null,n=zc;n!==null;){var a=n.next,c=Wr(n,t);c===0?(n.next=null,l===null?zc=a:l.next=a,a===null&&(ma=l)):(l=n,(e!==0||(c&3)!==0)&&(wc=!0)),n=a}ot!==0&&ot!==5||ui(e),Ql!==0&&(Ql=0)}function Wr(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var o=31-gt(c),d=1<<o,m=a[o];m===-1?((d&l)===0||(d&n)!==0)&&(a[o]=iu(d,t)):m<=t&&(e.expiredLanes|=d),c&=~d}if(t=Ye,l=ze,l=Ln(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Mn(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||tn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Mn(n),G(l)){case 2:case 8:l=wi;break;case 32:l=_n;break;case 268435456:l=Ni;break;default:l=_n}return n=Ir.bind(null,e),l=Tl(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Mn(n),e.callbackPriority=2,e.callbackNode=null,2}function Ir(e,t){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ec()&&e.callbackNode!==l)return null;var n=ze;return n=Ln(e,e===Ye?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Rr(e,n,t),Wr(e,dt()),e.callbackNode!=null&&e.callbackNode===l?Ir.bind(null,e):null)}function Pr(e,t){if(Ec())return null;Rr(e,t,!0)}function O4(){X4(function(){(He&6)!==0?Tl(zi,_4):Fr()})}function Zs(){if(Ql===0){var e=Pn;e===0&&(e=On,On<<=1,(On&261888)===0&&(On=256)),Ql=e}return Ql}function ef(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ri(""+e)}function tf(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 R4(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var c=ef((a[bt]||null).action),o=n.submitter;o&&(t=(t=o[bt]||null)?ef(t.formAction):o.getAttribute("formAction"),t!==null&&(c=t,o=null));var d=new Ui("action","action",null,n,a);e.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ql!==0){var m=o?tf(a,o):new FormData(a);ds(l,{pending:!0,data:m,method:a.method,action:c},null,m)}}else typeof c=="function"&&(d.preventDefault(),m=o?tf(a,o):new FormData(a),ds(l,{pending:!0,data:m,method:a.method,action:c},c,m))},currentTarget:a}]})}}for(var Ks=0;Ks<Au.length;Ks++){var Js=Au[Ks],D4=Js.toLowerCase(),L4=Js[0].toUpperCase()+Js.slice(1);$t(D4,"on"+L4)}$t(Oo,"onAnimationEnd"),$t(Ro,"onAnimationIteration"),$t(Do,"onAnimationStart"),$t("dblclick","onDoubleClick"),$t("focusin","onFocus"),$t("focusout","onBlur"),$t(Wd,"onTransitionRun"),$t(Id,"onTransitionStart"),$t(Pd,"onTransitionCancel"),$t(Lo,"onTransitionEnd"),qn("onMouseEnter",["mouseout","mouseover"]),qn("onMouseLeave",["mouseout","mouseover"]),qn("onPointerEnter",["pointerout","pointerover"]),qn("onPointerLeave",["pointerout","pointerover"]),nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var si="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(" "),H4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(si));function lf(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 c=void 0;if(t)for(var o=n.length-1;0<=o;o--){var d=n[o],m=d.instance,E=d.currentTarget;if(d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=E;try{c(a)}catch(_){ki(_)}a.currentTarget=null,c=m}else for(o=0;o<n.length;o++){if(d=n[o],m=d.instance,E=d.currentTarget,d=d.listener,m!==c&&a.isPropagationStopped())break e;c=d,a.currentTarget=E;try{c(a)}catch(_){ki(_)}a.currentTarget=null,c=m}}}}function Ee(e,t){var l=t[uu];l===void 0&&(l=t[uu]=new Set);var n=e+"__bubble";l.has(n)||(nf(t,e,2,!1),l.add(n))}function $s(e,t,l){var n=0;t&&(n|=4),nf(l,e,n,t)}var Nc="_reactListening"+Math.random().toString(36).slice(2);function Fs(e){if(!e[Nc]){e[Nc]=!0,$1.forEach(function(l){l!=="selectionchange"&&(H4.has(l)||$s(l,!1,e),$s(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nc]||(t[Nc]=!0,$s("selectionchange",!1,t))}}function nf(e,t,l,n){switch(Rf(t)){case 2:var a=r3;break;case 8:a=f3;break;default:a=f1}l=a.bind(null,t,l,e),a=void 0,!pu||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 Ws(e,t,l,n,a){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var d=n.stateNode.containerInfo;if(d===a)break;if(o===4)for(o=n.return;o!==null;){var m=o.tag;if((m===3||m===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;d!==null;){if(o=Hn(d),o===null)return;if(m=o.tag,m===5||m===6||m===26||m===27){n=c=o;continue e}d=d.parentNode}}n=n.return}uo(function(){var E=c,_=mu(l),H=[];e:{var z=Ho.get(e);if(z!==void 0){var T=Ui,W=e;switch(e){case"keypress":if(Li(l)===0)break e;case"keydown":case"keyup":T=Ad;break;case"focusin":W="focus",T=Su;break;case"focusout":W="blur",T=Su;break;case"beforeblur":case"afterblur":T=Su;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=ro;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=vd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Od;break;case Oo:case Ro:case Do:T=Sd;break;case Lo:T=Dd;break;case"scroll":case"scrollend":T=yd;break;case"wheel":T=Hd;break;case"copy":case"cut":case"paste":T=jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=ho;break;case"toggle":case"beforetoggle":T=Bd}var ue=(t&4)!==0,Ge=!ue&&(e==="scroll"||e==="scrollend"),b=ue?z!==null?z+"Capture":null:z;ue=[];for(var g=E,j;g!==null;){var D=g;if(j=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||j===null||b===null||(D=Ca(g,b),D!=null&&ue.push(oi(g,D,j))),Ge)break;g=g.return}0<ue.length&&(z=new T(z,W,null,l,_),H.push({event:z,listeners:ue}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",z&&l!==hu&&(W=l.relatedTarget||l.fromElement)&&(Hn(W)||W[Ml]))break e;if((T||z)&&(z=_.window===_?_:(z=_.ownerDocument)?z.defaultView||z.parentWindow:window,T?(W=l.relatedTarget||l.toElement,T=E,W=W?Hn(W):null,W!==null&&(Ge=v(W),ue=W.tag,W!==Ge||ue!==5&&ue!==27&&ue!==6)&&(W=null)):(T=null,W=E),T!==W)){if(ue=ro,D="onMouseLeave",b="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ue=ho,D="onPointerLeave",b="onPointerEnter",g="pointer"),Ge=T==null?z:Aa(T),j=W==null?z:Aa(W),z=new ue(D,g+"leave",T,l,_),z.target=Ge,z.relatedTarget=j,D=null,Hn(_)===E&&(ue=new ue(b,g+"enter",W,l,_),ue.target=j,ue.relatedTarget=Ge,D=ue),Ge=D,T&&W)t:{for(ue=U4,b=T,g=W,j=0,D=b;D;D=ue(D))j++;D=0;for(var ae=g;ae;ae=ue(ae))D++;for(;0<j-D;)b=ue(b),j--;for(;0<D-j;)g=ue(g),D--;for(;j--;){if(b===g||g!==null&&b===g.alternate){ue=b;break t}b=ue(b),g=ue(g)}ue=null}else ue=null;T!==null&&af(H,z,T,ue,!1),W!==null&&Ge!==null&&af(H,Ge,W,ue,!0)}}e:{if(z=E?Aa(E):window,T=z.nodeName&&z.nodeName.toLowerCase(),T==="select"||T==="input"&&z.type==="file")var Re=xo;else if(bo(z))if(jo)Re=Jd;else{Re=Zd;var te=Qd}else T=z.nodeName,!T||T.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?E&&du(E.elementType)&&(Re=xo):Re=Kd;if(Re&&(Re=Re(e,E))){So(H,Re,l,_);break e}te&&te(e,z,E),e==="focusout"&&E&&z.type==="number"&&E.memoizedProps.value!=null&&fu(z,"number",z.value)}switch(te=E?Aa(E):window,e){case"focusin":(bo(te)||te.contentEditable==="true")&&(Qn=te,Nu=E,Ba=null);break;case"focusout":Ba=Nu=Qn=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,Co(H,l,_);break;case"selectionchange":if(Fd)break;case"keydown":case"keyup":Co(H,l,_)}var ye;if(ju)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Xn?vo(e,l)&&(we="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(we="onCompositionStart");we&&(mo&&l.locale!=="ko"&&(Xn||we!=="onCompositionStart"?we==="onCompositionEnd"&&Xn&&(ye=so()):(Al=_,vu="value"in Al?Al.value:Al.textContent,Xn=!0)),te=Tc(E,we),0<te.length&&(we=new fo(we,e,null,l,_),H.push({event:we,listeners:te}),ye?we.data=ye:(ye=go(l),ye!==null&&(we.data=ye)))),(ye=kd?Vd(e,l):Gd(e,l))&&(we=Tc(E,"onBeforeInput"),0<we.length&&(te=new fo("onBeforeInput","beforeinput",null,l,_),H.push({event:te,listeners:we}),te.data=ye)),R4(H,e,E,l,_)}lf(H,t)})}function oi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Tc(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,c=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||c===null||(a=Ca(e,l),a!=null&&n.unshift(oi(e,a,c)),a=Ca(e,t),a!=null&&n.push(oi(e,a,c))),e.tag===3)return n;e=e.return}return[]}function U4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function af(e,t,l,n,a){for(var c=t._reactName,o=[];l!==null&&l!==n;){var d=l,m=d.alternate,E=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||E===null||(m=E,a?(E=Ca(l,c),E!=null&&o.unshift(oi(l,E,m))):a||(E=Ca(l,c),E!=null&&o.push(oi(l,E,m)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var B4=/\r\n?/g,q4=/\u0000|\uFFFD/g;function cf(e){return(typeof e=="string"?e:""+e).replace(B4,`
49
- `).replace(q4,"")}function uf(e,t){return t=cf(t),cf(e)===t}function Ve(e,t,l,n,a,c){switch(l){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Vn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Vn(e,""+n);break;case"className":_i(e,"class",n);break;case"tabIndex":_i(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_i(e,l,n);break;case"style":io(e,n,c);break;case"data":if(t!=="object"){_i(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=Ri(""+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 c=="function"&&(l==="formAction"?(t!=="input"&&Ve(e,t,"name",a.name,a,null),Ve(e,t,"formEncType",a.formEncType,a,null),Ve(e,t,"formMethod",a.formMethod,a,null),Ve(e,t,"formTarget",a.formTarget,a,null)):(Ve(e,t,"encType",a.encType,a,null),Ve(e,t,"method",a.method,a,null),Ve(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Ri(""+n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=ol);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(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=Ri(""+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":Ee("beforetoggle",e),Ee("toggle",e),Ci(e,"popover",n);break;case"xlinkActuate":sl(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":sl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":sl(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":sl(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":sl(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":sl(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":sl(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":sl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":sl(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ci(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=hd.get(l)||l,Ci(e,l,n))}}function Is(e,t,l,n,a,c){switch(l){case"style":io(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof n=="string"?Vn(e,n):(typeof n=="number"||typeof n=="bigint")&&Vn(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ol);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!F1.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),t=l.slice(2,a?l.length-7:void 0),c=e[bt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,a),typeof n=="function")){typeof c!="function"&&c!==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,""):Ci(e,l,n)}}}function pt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,a=!1,c;for(c in l)if(l.hasOwnProperty(c)){var o=l[c];if(o!=null)switch(c){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ve(e,t,c,o,l,null)}}a&&Ve(e,t,"srcSet",l.srcSet,l,null),n&&Ve(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=c=o=a=null,m=null,E=null;for(n in l)if(l.hasOwnProperty(n)){var _=l[n];if(_!=null)switch(n){case"name":a=_;break;case"type":o=_;break;case"checked":m=_;break;case"defaultChecked":E=_;break;case"value":c=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Ve(e,t,n,_,l,null)}}to(e,c,d,m,E,o,a,!1);return;case"select":Ee("invalid",e),n=o=c=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":c=d;break;case"defaultValue":o=d;break;case"multiple":n=d;default:Ve(e,t,a,d,l,null)}t=c,l=o,e.multiple=!!n,t!=null?kn(e,!!n,t,!1):l!=null&&kn(e,!!n,l,!0);return;case"textarea":Ee("invalid",e),c=a=n=null;for(o in l)if(l.hasOwnProperty(o)&&(d=l[o],d!=null))switch(o){case"value":n=d;break;case"defaultValue":a=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Ve(e,t,o,d,l,null)}no(e,n,a,c);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:Ve(e,t,m,n,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<si.length;n++)Ee(si[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(E in l)if(l.hasOwnProperty(E)&&(n=l[E],n!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ve(e,t,E,n,l,null)}return;default:if(du(t)){for(_ in l)l.hasOwnProperty(_)&&(n=l[_],n!==void 0&&Is(e,t,_,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&Ve(e,t,d,n,l,null))}function k4(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,c=null,o=null,d=null,m=null,E=null,_=null;for(T in l){var H=l[T];if(l.hasOwnProperty(T)&&H!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":m=H;default:n.hasOwnProperty(T)||Ve(e,t,T,null,n,H)}}for(var z in n){var T=n[z];if(H=l[z],n.hasOwnProperty(z)&&(T!=null||H!=null))switch(z){case"type":c=T;break;case"name":a=T;break;case"checked":E=T;break;case"defaultChecked":_=T;break;case"value":o=T;break;case"defaultValue":d=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:T!==H&&Ve(e,t,z,T,n,H)}}ru(e,o,d,m,E,_,c,a);return;case"select":T=o=d=z=null;for(c in l)if(m=l[c],l.hasOwnProperty(c)&&m!=null)switch(c){case"value":break;case"multiple":T=m;default:n.hasOwnProperty(c)||Ve(e,t,c,null,n,m)}for(a in n)if(c=n[a],m=l[a],n.hasOwnProperty(a)&&(c!=null||m!=null))switch(a){case"value":z=c;break;case"defaultValue":d=c;break;case"multiple":o=c;default:c!==m&&Ve(e,t,a,c,n,m)}t=d,l=o,n=T,z!=null?kn(e,!!l,z,!1):!!n!=!!l&&(t!=null?kn(e,!!l,t,!0):kn(e,!!l,l?[]:"",!1));return;case"textarea":T=z=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ve(e,t,d,null,n,a)}for(o in n)if(a=n[o],c=l[o],n.hasOwnProperty(o)&&(a!=null||c!=null))switch(o){case"value":z=a;break;case"defaultValue":T=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==c&&Ve(e,t,o,a,n,c)}lo(e,z,T);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!n.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Ve(e,t,W,null,n,z)}for(m in n)if(z=n[m],T=l[m],n.hasOwnProperty(m)&&z!==T&&(z!=null||T!=null))switch(m){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ve(e,t,m,z,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 ue in l)z=l[ue],l.hasOwnProperty(ue)&&z!=null&&!n.hasOwnProperty(ue)&&Ve(e,t,ue,null,n,z);for(E in n)if(z=n[E],T=l[E],n.hasOwnProperty(E)&&z!==T&&(z!=null||T!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Ve(e,t,E,z,n,T)}return;default:if(du(t)){for(var Ge in l)z=l[Ge],l.hasOwnProperty(Ge)&&z!==void 0&&!n.hasOwnProperty(Ge)&&Is(e,t,Ge,void 0,n,z);for(_ in n)z=n[_],T=l[_],!n.hasOwnProperty(_)||z===T||z===void 0&&T===void 0||Is(e,t,_,z,n,T);return}}for(var b in l)z=l[b],l.hasOwnProperty(b)&&z!=null&&!n.hasOwnProperty(b)&&Ve(e,t,b,null,n,z);for(H in n)z=n[H],T=l[H],!n.hasOwnProperty(H)||z===T||z==null&&T==null||Ve(e,t,H,z,n,T)}function sf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function V4(){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],c=a.transferSize,o=a.initiatorType,d=a.duration;if(c&&d&&sf(o)){for(o=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],E=m.startTime;if(E>d)break;var _=m.transferSize,H=m.initiatorType;_&&sf(H)&&(m=m.responseEnd,o+=_*(m<d?1:(d-E)/(m-E)))}if(--n,t+=8*(c+o)/(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 Ps=null,e1=null;function Mc(e){return e.nodeType===9?e:e.ownerDocument}function of(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 rf(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 t1(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 l1=null;function G4(){var e=window.event;return e&&e.type==="popstate"?e===l1?!1:(l1=e,!0):(l1=null,!1)}var ff=typeof setTimeout=="function"?setTimeout:void 0,Y4=typeof clearTimeout=="function"?clearTimeout:void 0,df=typeof Promise=="function"?Promise:void 0,X4=typeof queueMicrotask=="function"?queueMicrotask:typeof df<"u"?function(e){return df.resolve(null).then(e).catch(Q4)}:ff;function Q4(e){setTimeout(function(){throw e})}function Zl(e){return e==="head"}function hf(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),ga(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")ri(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ri(l);for(var c=l.firstChild;c;){var o=c.nextSibling,d=c.nodeName;c[Ma]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=o}}else l==="body"&&ri(e.ownerDocument.body);l=a}while(l);ga(t)}function mf(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 n1(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":n1(l),su(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Z4(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[Ma])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function K4(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Qt(e.nextSibling),e===null))return null;return e}function yf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function a1(e){return e.data==="$?"||e.data==="$~"}function i1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function J4(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 Qt(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 c1=null;function pf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function vf(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 gf(e,t,l){switch(t=Mc(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ri(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);su(e)}var Zt=new Map,bf=new Set;function Ac(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wl=k.d;k.d={f:$4,r:F4,D:W4,C:I4,L:P4,m:e3,X:l3,S:t3,M:n3};function $4(){var e=wl.f(),t=Sc();return e||t}function F4(e){var t=Un(e);t!==null&&t.tag===5&&t.type==="form"?L0(t):wl.r(e)}var ya=typeof document>"u"?null:document;function Sf(e,t,l){var n=ya;if(n&&typeof t=="string"&&t){var a=Bt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),bf.has(a)||(bf.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),pt(t,"link",e),rt(t),n.head.appendChild(t)))}}function W4(e){wl.D(e),Sf("dns-prefetch",e,null)}function I4(e,t){wl.C(e,t),Sf("preconnect",e,t)}function P4(e,t,l){wl.L(e,t,l);var n=ya;if(n&&e&&t){var a='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Bt(l.imageSizes)+'"]')):a+='[href="'+Bt(e)+'"]';var c=a;switch(t){case"style":c=pa(e);break;case"script":c=va(e)}Zt.has(c)||(e=L({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(c,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(fi(c))||t==="script"&&n.querySelector(di(c))||(t=n.createElement("link"),pt(t,"link",e),rt(t),n.head.appendChild(t)))}}function e3(e,t){wl.m(e,t);var l=ya;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Bt(n)+'"][href="'+Bt(e)+'"]',c=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=va(e)}if(!Zt.has(c)&&(e=L({rel:"modulepreload",href:e},t),Zt.set(c,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(di(c)))return}n=l.createElement("link"),pt(n,"link",e),rt(n),l.head.appendChild(n)}}}function t3(e,t,l){wl.S(e,t,l);var n=ya;if(n&&e){var a=Bn(n).hoistableStyles,c=pa(e);t=t||"default";var o=a.get(c);if(!o){var d={loading:0,preload:null};if(o=n.querySelector(fi(c)))d.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(c))&&u1(e,l);var m=o=n.createElement("link");rt(m),pt(m,"link",e),m._p=new Promise(function(E,_){m.onload=E,m.onerror=_}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Cc(o,t,n)}o={type:"stylesheet",instance:o,count:1,state:d},a.set(c,o)}}}function l3(e,t){wl.X(e,t);var l=ya;if(l&&e){var n=Bn(l).hoistableScripts,a=va(e),c=n.get(a);c||(c=l.querySelector(di(a)),c||(e=L({src:e,async:!0},t),(t=Zt.get(a))&&s1(e,t),c=l.createElement("script"),rt(c),pt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function n3(e,t){wl.M(e,t);var l=ya;if(l&&e){var n=Bn(l).hoistableScripts,a=va(e),c=n.get(a);c||(c=l.querySelector(di(a)),c||(e=L({src:e,async:!0,type:"module"},t),(t=Zt.get(a))&&s1(e,t),c=l.createElement("script"),rt(c),pt(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(a,c))}}function xf(e,t,l,n){var a=(a=S.current)?Ac(a):null;if(!a)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=pa(l.href),l=Bn(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=pa(l.href);var c=Bn(a).hoistableStyles,o=c.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,o),(c=a.querySelector(fi(e)))&&!c._p&&(o.instance=c,o.state.loading=5),Zt.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},Zt.set(e,l),c||a3(a,e,l,o.state))),t&&n===null)throw Error(r(528,""));return o}if(t&&n!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=va(l),l=Bn(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(r(444,e))}}function pa(e){return'href="'+Bt(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function jf(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function a3(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}),pt(t,"link",l),rt(t),e.head.appendChild(t))}function va(e){return'[src="'+Bt(e)+'"]'}function di(e){return"script[async]"+e}function Ef(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Bt(l.href)+'"]');if(n)return t.instance=n,rt(n),n;var a=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),rt(n),pt(n,"style",a),Cc(n,l.precedence,e),t.instance=n;case"stylesheet":a=pa(l.href);var c=e.querySelector(fi(a));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;n=jf(l),(a=Zt.get(a))&&u1(n,a),c=(e.ownerDocument||e).createElement("link"),rt(c);var o=c;return o._p=new Promise(function(d,m){o.onload=d,o.onerror=m}),pt(c,"link",n),t.state.loading|=4,Cc(c,l.precedence,e),t.instance=c;case"script":return c=va(l.src),(a=e.querySelector(di(c)))?(t.instance=a,rt(a),a):(n=l,(a=Zt.get(c))&&(n=L({},l),s1(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),rt(a),pt(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Cc(n,l.precedence,e));return t.instance}function Cc(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,c=a,o=0;o<n.length;o++){var d=n[o];if(d.dataset.precedence===t)c=d;else if(c!==a)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function u1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function s1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var _c=null;function zf(e,t,l){if(_c===null){var n=new Map,a=_c=new Map;a.set(l,n)}else a=_c,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 c=l[a];if(!(c[Ma]||c[Xe]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var o=c.getAttribute(t)||"";o=e+o;var d=n.get(o);d?d.push(c):n.set(o,[c])}}return n}function wf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function i3(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 Nf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function c3(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=pa(n.href),c=t.querySelector(fi(a));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Oc.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,rt(c);return}c=t.ownerDocument||t,n=jf(n),(a=Zt.get(a))&&u1(n,a),c=c.createElement("link"),rt(c);var o=c;o._p=new Promise(function(d,m){o.onload=d,o.onerror=m}),pt(c,"link",n),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Oc.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var o1=0;function u3(e,t){return e.stylesheets&&e.count===0&&Dc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&Dc(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&o1===0&&(o1=62500*V4());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Dc(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>o1?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Oc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Dc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rc=null;function Dc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rc=new Map,t.forEach(s3,e),Rc=null,Oc.call(e))}function s3(e,t){if(!(t.state.loading&4)){var l=Rc.get(e);if(l)var n=l.get(null);else{l=new Map,Rc.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<a.length;c++){var o=a[c];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}a=t.instance,o=a.getAttribute("data-precedence"),c=l.get(o)||n,c===n&&l.set(null,a),l.set(o,a),this.count++,n=Oc.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),c?c.parentNode.insertBefore(a,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var hi={$$typeof:oe,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function o3(e,t,l,n,a,c,o,d,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=wa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wa(0),this.hiddenUpdates=wa(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=c,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Tf(e,t,l,n,a,c,o,d,m,E,_,H){return e=new o3(e,t,l,o,m,E,_,H,d),t=1,c===!0&&(t|=24),c=_t(3,null,null,t),e.current=c,c.stateNode=e,t=Gu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:l,cache:t},Zu(c),e}function Mf(e){return e?(e=Jn,e):Jn}function Af(e,t,l,n,a,c){a=Mf(a),n.context===null?n.context=a:n.pendingContext=a,n=Ll(t),n.payload={element:l},c=c===void 0?null:c,c!==null&&(n.callback=c),l=Hl(e,n,t),l!==null&&(Mt(l,e,t),Qa(l,e,t))}function Cf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function r1(e,t){Cf(e,t),(e=e.alternate)&&Cf(e,t)}function _f(e){if(e.tag===13||e.tag===31){var t=sn(e,67108864);t!==null&&Mt(t,e,67108864),r1(e,67108864)}}function Of(e){if(e.tag===13||e.tag===31){var t=Ht();t=Ta(t);var l=sn(e,t);l!==null&&Mt(l,e,t),r1(e,t)}}var Lc=!0;function r3(e,t,l,n){var a=w.T;w.T=null;var c=k.p;try{k.p=2,f1(e,t,l,n)}finally{k.p=c,w.T=a}}function f3(e,t,l,n){var a=w.T;w.T=null;var c=k.p;try{k.p=8,f1(e,t,l,n)}finally{k.p=c,w.T=a}}function f1(e,t,l,n){if(Lc){var a=d1(n);if(a===null)Ws(e,t,n,Hc,l),Df(e,n);else if(h3(a,e,t,l,n))n.stopPropagation();else if(Df(e,n),t&4&&-1<d3.indexOf(e)){for(;a!==null;){var c=Un(a);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var o=ul(c.pendingLanes);if(o!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var m=1<<31-gt(o);d.entanglements[1]|=m,o&=~m}nl(c),(He&6)===0&&(gc=dt()+500,ui(0))}}break;case 31:case 13:d=sn(c,2),d!==null&&Mt(d,c,2),Sc(),r1(c,2)}if(c=d1(n),c===null&&Ws(e,t,n,Hc,l),c===a)break;a=c}a!==null&&n.stopPropagation()}else Ws(e,t,n,null,l)}}function d1(e){return e=mu(e),h1(e)}var Hc=null;function h1(e){if(Hc=null,e=Hn(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=N(t),e!==null)return e;e=null}else if(l===31){if(e=C(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 Hc=e,null}function Rf(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(xa()){case zi:return 2;case wi:return 8;case _n:case ja:return 32;case Ni:return 268435456;default:return 32}default:return 32}}var m1=!1,Kl=null,Jl=null,$l=null,mi=new Map,yi=new Map,Fl=[],d3="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 Df(e,t){switch(e){case"focusin":case"focusout":Kl=null;break;case"dragenter":case"dragleave":Jl=null;break;case"mouseover":case"mouseout":$l=null;break;case"pointerover":case"pointerout":mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(t.pointerId)}}function pi(e,t,l,n,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:c,targetContainers:[a]},t!==null&&(t=Un(t),t!==null&&_f(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function h3(e,t,l,n,a){switch(t){case"focusin":return Kl=pi(Kl,e,t,l,n,a),!0;case"dragenter":return Jl=pi(Jl,e,t,l,n,a),!0;case"mouseover":return $l=pi($l,e,t,l,n,a),!0;case"pointerover":var c=a.pointerId;return mi.set(c,pi(mi.get(c)||null,e,t,l,n,a)),!0;case"gotpointercapture":return c=a.pointerId,yi.set(c,pi(yi.get(c)||null,e,t,l,n,a)),!0}return!1}function Lf(e){var t=Hn(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=N(l),t!==null){e.blockedOn=t,ge(e.priority,function(){Of(l)});return}}else if(t===31){if(t=C(l),t!==null){e.blockedOn=t,ge(e.priority,function(){Of(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 Uc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=d1(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);hu=n,l.target.dispatchEvent(n),hu=null}else return t=Un(l),t!==null&&_f(t),e.blockedOn=l,!1;t.shift()}return!0}function Hf(e,t,l){Uc(e)&&l.delete(t)}function m3(){m1=!1,Kl!==null&&Uc(Kl)&&(Kl=null),Jl!==null&&Uc(Jl)&&(Jl=null),$l!==null&&Uc($l)&&($l=null),mi.forEach(Hf),yi.forEach(Hf)}function Bc(e,t){e.blockedOn===t&&(e.blockedOn=null,m1||(m1=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,m3)))}var qc=null;function Uf(e){qc!==e&&(qc=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){qc===e&&(qc=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(h1(n||l)===null)continue;break}var c=Un(l);c!==null&&(e.splice(t,3),t-=3,ds(c,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function ga(e){function t(m){return Bc(m,e)}Kl!==null&&Bc(Kl,e),Jl!==null&&Bc(Jl,e),$l!==null&&Bc($l,e),mi.forEach(t),yi.forEach(t);for(var l=0;l<Fl.length;l++){var n=Fl[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Fl.length&&(l=Fl[0],l.blockedOn===null);)Lf(l),l.blockedOn===null&&Fl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],c=l[n+1],o=a[bt]||null;if(typeof c=="function")o||Uf(l);else if(o){var d=null;if(c&&c.hasAttribute("formAction")){if(a=c,o=c[bt]||null)d=o.formAction;else if(h1(a)!==null)continue}else d=o.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Uf(l)}}}function Bf(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var 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 y1(e){this._internalRoot=e}kc.prototype.render=y1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,n=Ht();Af(l,n,e,t,null,null)},kc.prototype.unmount=y1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Af(e.current,2,null,e,null,null),Sc(),t[Ml]=null}};function kc(e){this._internalRoot=e}kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=ie();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Fl.length&&t!==0&&t<Fl[l].priority;l++);Fl.splice(l,0,e),l===0&&Lf(e)}};var qf=s.version;if(qf!=="19.2.6")throw Error(r(527,qf,"19.2.6"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var y3={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vc.isDisabled&&Vc.supportsFiber)try{en=Vc.inject(y3),vt=Vc}catch{}}return gi.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,n="",a=Q0,c=Z0,o=K0;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&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Tf(e,1,!1,null,null,l,n,null,a,c,o,Bf),e[Ml]=t.current,Fs(e),new y1(t)},gi.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var n=!1,a="",c=Q0,o=Z0,d=K0,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=Tf(e,1,!0,t,l??null,n,a,m,c,o,d,Bf),t.context=Mf(null),l=t.current,n=Ht(),n=Ta(n),a=Ll(n),a.callback=null,Hl(l,a,n),l=n,t.current.lanes=l,ln(t,l),nl(t),e[Ml]=t.current,Fs(e),new kc(t)},gi.version="19.2.6",gi}var $f;function w3(){if($f)return g1.exports;$f=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),g1.exports=z3(),g1.exports}var N3=w3();/**
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 S2=(...i)=>i.filter((s,f,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===f).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 T3=i=>i.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 M3=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,f,r)=>r?r.toUpperCase():f.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 Ff=i=>{const s=M3(i);return s.charAt(0).toUpperCase()+s.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 j1={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 A3=i=>{for(const s in i)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},C3=A.createContext({}),_3=()=>A.useContext(C3),O3=A.forwardRef(({color:i,size:s,strokeWidth:f,absoluteStrokeWidth:r,className:h="",children:v,iconNode:N,...C},x)=>{const{size:y=24,strokeWidth:M=2,absoluteStrokeWidth:L=!1,color:B="currentColor",className:Z=""}=_3()??{},ee=r??L?Number(f??M)*24/Number(s??y):f??M;return A.createElement("svg",{ref:x,...j1,width:s??y??j1.width,height:s??y??j1.height,stroke:i??B,strokeWidth:ee,className:S2("lucide",Z,h),...!v&&!A3(C)&&{"aria-hidden":"true"},...C},[...N.map(([re,K])=>A.createElement(re,K)),...Array.isArray(v)?v:[v]])});/**
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 he=(i,s)=>{const f=A.forwardRef(({className:r,...h},v)=>A.createElement(O3,{ref:v,iconNode:s,className:S2(`lucide-${T3(Ff(i))}`,`lucide-${i}`,r),...h}));return f.displayName=Ff(i),f};/**
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 R3=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],D3=he("app-window",R3);/**
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 L3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],x2=he("arrow-right",L3);/**
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 H3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],zn=he("check",H3);/**
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 U3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Tn=he("chevron-down",U3);/**
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 B3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],j2=he("chevron-right",B3);/**
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 q3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],k3=he("chevron-up",q3);/**
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 V3=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G3=he("chevrons-up-down",V3);/**
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 Y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],X3=he("circle-alert",Y3);/**
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 Q3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],E2=he("circle-check",Q3);/**
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 Z3=[["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"}]],K3=he("clipboard",Z3);/**
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 J3=[["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"}]],Il=he("code-xml",J3);/**
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 $3=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],F3=he("copy",$3);/**
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 W3=[["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"}]],I3=he("ellipsis",W3);/**
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 P3=[["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"}]],eh=he("external-link",P3);/**
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 th=[["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"}]],lh=he("file-braces-corner",th);/**
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 nh=[["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"}]],U1=he("file-code-corner",nh);/**
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 ah=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],ih=he("file-search",ah);/**
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 ch=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],z2=he("file-text",ch);/**
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 uh=[["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"}]],w2=he("folder-open",uh);/**
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 sh=[["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"}]],oh=he("folder",sh);/**
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 rh=[["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"}]],Zc=he("git-branch",rh);/**
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 fh=[["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"}]],dh=he("git-commit-horizontal",fh);/**
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 hh=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],mh=he("grip-horizontal",hh);/**
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 yh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],B1=he("loader-circle",yh);/**
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 ph=[["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"}]],vh=he("message-square-plus",ph);/**
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 gh=[["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"}]],N2=he("message-square",gh);/**
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 bh=[["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"}]],Sh=he("monitor",bh);/**
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 xh=[["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"}]],jh=he("moon",xh);/**
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 Eh=[["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"}]],zh=he("move-horizontal",Eh);/**
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 wh=[["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"}]],Nh=he("panel-left-close",wh);/**
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 Th=[["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"}]],Mh=he("panel-left-open",Th);/**
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 Ah=[["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"}]],Ch=he("play",Ah);/**
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 _h=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Oh=he("plus",_h);/**
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 Rh=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Dh=he("search",Rh);/**
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 Lh=[["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"}]],Hh=he("send",Lh);/**
260
- * @license lucide-react v1.16.0 - ISC
261
- *
262
- * This source code is licensed under the ISC license.
263
- * See the LICENSE file in the root directory of this source tree.
264
- */const Uh=[["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"}]],Bh=he("sliders-horizontal",Uh);/**
265
- * @license lucide-react v1.16.0 - ISC
266
- *
267
- * This source code is licensed under the ISC license.
268
- * See the LICENSE file in the root directory of this source tree.
269
- */const qh=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],kh=he("square-terminal",qh);/**
270
- * @license lucide-react v1.16.0 - ISC
271
- *
272
- * This source code is licensed under the ISC license.
273
- * See the LICENSE file in the root directory of this source tree.
274
- */const Vh=[["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"}]],Gh=he("sun",Vh);/**
275
- * @license lucide-react v1.16.0 - ISC
276
- *
277
- * This source code is licensed under the ISC license.
278
- * See the LICENSE file in the root directory of this source tree.
279
- */const Yh=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],_1=he("terminal",Yh);/**
280
- * @license lucide-react v1.16.0 - ISC
281
- *
282
- * This source code is licensed under the ISC license.
283
- * See the LICENSE file in the root directory of this source tree.
284
- */const Xh=[["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"}]],T2=he("text-wrap",Xh);/**
285
- * @license lucide-react v1.16.0 - ISC
286
- *
287
- * This source code is licensed under the ISC license.
288
- * See the LICENSE file in the root directory of this source tree.
289
- */const Qh=[["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"}]],M2=he("trash-2",Qh);/**
290
- * @license lucide-react v1.16.0 - ISC
291
- *
292
- * This source code is licensed under the ISC license.
293
- * See the LICENSE file in the root directory of this source tree.
294
- */const Zh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ic=he("x",Zh);function ji(i,s={}){const f=Math.min(i.startLine,i.endLine),r=Math.max(i.startLine,i.endLine);if(f===r)return`${i.side}${f}`;const h=s.repeatSideOnEnd===!1?"":i.side;return`${i.side}${f}-${h}${r}`}function Kh(i,s=[]){const f=(i==null?void 0:i.comments)??[],r=new Set(s.map(v=>v.commentId)),h=f.filter(v=>r.has(v.id)).length;return{total:f.length,resolved:h,open:f.length-h}}function A2(i){var s;return Kh(i.feedback,((s=i.resolution)==null?void 0:s.comments)??[])}const Jh="brew install iamrajjoshi/tap/gloss",$h="npm install -g getgloss",Fh="gloss open --json",E1="npx getgloss open --json",Wf="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",Wh={side:"R",startLine:45,endLine:45},Ih=[{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"}],If=[{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 Ph(i){return i.startLine===i.endLine?`Comment on line ${ji(i)}`:`Comment on range ${ji(i)}`}function e5(i,s){const f=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...s,id:f,body:i,createdAt:new Date().toISOString()}}function O1({value:i,label:s}){const[f,r]=A.useState(!1);return u.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(i),r(!0),window.setTimeout(()=>r(!1),1400)},children:[f?u.jsx(zn,{size:15}):u.jsx(K3,{size:15}),u.jsx("span",{children:f?"Copied":s})]})}function Gc({command:i}){return u.jsxs("div",{className:"command-line",children:[u.jsx("span",{children:"$"}),u.jsx("code",{children:i}),u.jsx(O1,{value:i,label:"Copy"})]})}function t5(){const[i,s]=A.useState(!0),[f,r]=A.useState(Wh),[h,v]=A.useState(!1),[N,C]=A.useState(null),[x,y]=A.useState(""),[M,L]=A.useState(Ih),[B,Z]=A.useState("idle"),ee=B==="submitted",re=M.find(Y=>Y.id===N),K=Ph(f),X=x.trim(),be=`${M.length} review comment${M.length===1?"":"s"}`,oe=ee?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${be}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],J=i?If:If.filter(Y=>!Y.hiddenUntilExpanded),me=A.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:M.map(Y=>({filePath:"src/web/routes/Home.tsx",side:Y.side,startLine:Y.startLine,endLine:Y.endLine,body:Y.body}))},null,2),[M]),I=(Y,xe)=>f.side===Y&&f.startLine===xe&&f.endLine===xe,$=Y=>{r(Y),C(null),y(""),v(!0),Z("idle")},Q=Y=>{r({side:Y.side,startLine:Y.startLine,endLine:Y.endLine}),C(Y.id),y(Y.body),v(!0),Z("idle")},Ne=()=>{X&&(L(Y=>N?Y.map(xe=>xe.id===N?{...xe,body:X}:xe):[...Y,e5(X,f)]),y(""),C(null),v(!1),Z("idle"))},qe=Y=>{L(xe=>xe.filter(se=>se.id!==Y)),N===Y&&(C(null),y(""),v(!1)),Z("idle")},Oe=(Y,xe)=>M.filter(se=>se.side===Y&&Math.max(se.startLine,se.endLine)===xe&&Math.min(se.startLine,se.endLine)===xe);return u.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[u.jsxs("div",{className:"scene-topbar",children:[u.jsxs("div",{className:"scene-brand",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),u.jsx("span",{children:"Gloss review"})]}),u.jsxs("div",{className:"scene-meta",children:[u.jsx(Zc,{size:14}),u.jsx("span",{children:"raj--gloss--static-site"})]})]}),u.jsxs("div",{className:"scene-shell",children:[u.jsxs("div",{className:"scene-terminal",children:[u.jsxs("div",{className:"terminal-header",children:[u.jsx(_1,{size:14}),u.jsx("span",{children:"agent terminal"})]}),u.jsx("div",{className:"terminal-lines",children:oe.map(Y=>u.jsxs("p",{children:[u.jsx("span",{children:Y.marker})," ",Y.text]},Y.text))})]}),u.jsxs("div",{className:"scene-review",children:[u.jsxs("button",{className:"scene-file-header",type:"button",children:[u.jsx(Tn,{size:16}),u.jsx(Il,{size:15}),u.jsx("span",{children:"src/web/routes/Home.tsx"}),u.jsx("b",{className:"scene-add",children:"+74"}),u.jsx("b",{className:"scene-del",children:"-6"})]}),u.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>s(Y=>!Y),children:i?"Hide unchanged context":"194 unmodified lines"}),u.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),J.map(Y=>{const xe=Y.side==="L"?Y.oldLine:Y.newLine;if(xe==null)return null;const se=I(Y.side,xe),Te=ee&&(Y.key==="skip-review"||Y.key==="skip-status"),w=ee&&["apply-feedback","resolve-threads","run-checks"].includes(Y.key);return u.jsxs("div",{children:[u.jsxs("button",{className:`scene-row ${Y.tone} ${Y.hiddenUntilExpanded?"dimmed":""} ${se?"selected":""} ${Te?"agent-dimmed":""} ${w?"agent-applied":""}`,type:"button","aria-pressed":se,onClick:()=>$({side:Y.side,startLine:xe,endLine:xe}),children:[u.jsx("span",{children:Y.oldLine??""}),u.jsx("span",{children:Y.newLine??""}),u.jsx("code",{children:Y.code||" "})]}),ee&&Y.key==="apply-feedback"?u.jsxs("div",{className:"scene-applied-status",children:[u.jsx(zn,{size:13}),u.jsx("span",{children:"applied by agent"})]}):null,u.jsx(l5,{comments:Oe(Y.side,xe),onOpen:Q,onRemove:qe}),h&&f.side===Y.side&&f.endLine===xe?u.jsxs("div",{className:"scene-composer",children:[u.jsxs("div",{className:"scene-composer-title",children:[u.jsx("strong",{children:re?"Review comment":"New local comment"}),u.jsx("span",{children:K})]}),u.jsx("textarea",{"aria-label":K,placeholder:"Request change",value:x,onChange:k=>y(k.target.value)}),u.jsxs("div",{className:"scene-composer-actions",children:[u.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{y(""),C(null),v(!1)},children:"Cancel"}),u.jsx("button",{type:"button",disabled:!X,onClick:Ne,children:re?"Update":"Comment"})]})]}):null]},Y.key)})]}),u.jsx("div",{className:"scene-feedback",children:ee?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(_1,{size:15}),u.jsx("span",{children:"agent is updating"})]}),u.jsxs("div",{className:"agent-update-card",children:[u.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),u.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(Y=>u.jsxs("li",{children:[u.jsx(zn,{size:13}),u.jsx("span",{children:Y})]},Y))})]})]}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"feedback-title",children:[u.jsx(lh,{size:15}),u.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),u.jsx("pre",{children:me})]})})]}),u.jsxs("div",{className:"scene-submit",children:[u.jsx("span",{children:M.length===0?"No local comments yet":ee?"Sent to agent":`${M.length} local comment${M.length===1?"":"s"} ready`}),u.jsxs("button",{type:"button",disabled:M.length===0,onClick:()=>Z("submitted"),children:[ee?u.jsx(zn,{size:14}):u.jsx(Ch,{size:14}),ee?"Sent to agent":"Submit review"]})]})]})}function l5({comments:i,onOpen:s,onRemove:f}){return i.map(r=>u.jsxs("div",{className:"scene-inline-comment",children:[u.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>s(r),children:[u.jsx(N2,{size:14}),u.jsx("span",{children:r.body})]}),u.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${r.side}${r.startLine}`,onClick:()=>f(r.id),children:u.jsx(M2,{size:13})})]},r.id))}function bi({step:i,title:s,body:f}){return u.jsxs("div",{className:"workflow-step",children:[u.jsx("span",{children:i}),u.jsxs("div",{children:[u.jsx("h3",{children:s}),u.jsx("p",{children:f})]})]})}function n5(){return u.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[u.jsxs("div",{className:"demo-video-header",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Demo"}),u.jsx("h2",{children:"Watch the local review loop run for real."})]}),u.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."})]}),u.jsx("div",{className:"demo-video-frame",children:u.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:[u.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),u.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function a5(){return u.jsxs("main",{className:"marketing-page",children:[u.jsxs("section",{className:"marketing-hero",children:[u.jsxs("div",{className:"hero-copy",children:[u.jsxs("div",{className:"hero-copy-main",children:[u.jsx("div",{className:"hero-logo",children:u.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),u.jsx("h1",{children:"Gloss"}),u.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),u.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",u.jsx("code",{children:"feedback.json"})," for your agent and ",u.jsx("code",{children:"feedback.md"})," for humans."]}),u.jsxs("div",{className:"hero-actions",children:[u.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",u.jsx(x2,{size:17})]}),u.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),u.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[u.jsx("span",{children:"Run without setup"}),u.jsx("code",{children:E1}),u.jsx(O1,{value:E1,label:"Copy command"})]})]}),u.jsx(t5,{})]}),u.jsx(n5,{}),u.jsxs("section",{className:"marketing-band install-band",id:"install",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Install"}),u.jsx("h2",{children:"Start the review loop in one command."})]}),u.jsxs("div",{className:"install-grid",children:[u.jsx(Gc,{command:Jh}),u.jsx(Gc,{command:$h}),u.jsx(Gc,{command:Fh}),u.jsx(Gc,{command:E1})]}),u.jsxs("div",{className:"agent-prompt",children:[u.jsxs("div",{className:"agent-prompt-label",children:[u.jsx(_1,{size:18}),u.jsx("span",{children:"Packaged skill"})]}),u.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),u.jsx("div",{className:"agent-prompt-links",children:u.jsx("a",{href:"/setup/",children:"Agent setup"})}),u.jsxs("div",{className:"agent-skill-command",children:[u.jsx("code",{children:Wf}),u.jsx(O1,{value:Wf,label:"Copy install"})]})]})]}),u.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[u.jsx("div",{className:"section-heading",children:u.jsx("p",{children:"How it works"})}),u.jsxs("div",{className:"workflow-story",children:[u.jsx(bi,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),u.jsx(bi,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),u.jsx(bi,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),u.jsx(bi,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),u.jsx(bi,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),u.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[u.jsxs("div",{className:"section-heading",children:[u.jsx("p",{children:"Output"}),u.jsx("h2",{children:"What the agent reads."})]}),u.jsxs("div",{className:"contract-layout",children:[u.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
295
- ~/.gloss/reviews/<reviewId>/feedback.md
296
- ~/.gloss/reviews/<reviewId>/resolved.json`}),u.jsx("div",{className:"contract-copy",children:u.jsxs("p",{children:[u.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",u.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",u.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),u.jsx("footer",{className:"marketing-footer",children:u.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[u.jsx(Zc,{size:16}),u.jsx("span",{children:"GitHub"})]})})]})}var Kc=b2();const i5={mode:"all"};function c5(i=i5,s=[]){if(i.mode==="all")return"All commits";if(i.mode==="single"){const h=s.find(v=>v.commit.sha===i.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${z1(i.sha)}`}const f=s.findIndex(h=>h.commit.sha===i.fromSha),r=s.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?`${r-f+1} commits · ${s[f].commit.shortSha} to ${s[r].commit.shortSha}`:`Commit range ${z1(i.fromSha)} to ${z1(i.toSha)}`}function z1(i){return i.slice(0,7)}function Pf(i){var f;const s=(f=i.meta.branch??i.diff.branch)==null?void 0:f.trim();return s||u5(i.diff)}function u5(i){switch(i.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${i.scope.requestedBase??i.base.ref}`;case"working":return"Working changes"}}function s5(i){return i==="submitted"||i==="resolved"}const o5=["L","R"],r5=["pending","submitted","cancelled","resolved"],f5=["context","add","delete"],d5=["working","branch","explicit"],h5=["working-tree-clean","missing-branch-base"],m5=500,y5=240,p5=["import","same-file","repo-search","module"],v5=["all","single","range"],g5=["partial","resolved"],b5=["review-resolved","comment-resolved","comment-reopened","turn-created"],S5=["default","vscode","vscode-insiders","vscodium","cursor","sublime","zed","windsurf","webstorm","intellij","pycharm","goland","phpstorm","rubymine","clion","datagrip","android-studio","fleet","neovide","macvim","emacs","lapce","textmate","bbedit","coteditor","nova","textedit","xcode","terminal","iterm2","ghostty","folder"];function x5(i,s,f){const r=JSON.parse(i);return C2(r,s,f)}function C2(i,s,f){if(!s(i))throw new Error(`Invalid ${f}`);return i}function j5(i){return Le(i)&&le(i.reviewId)&&st(i.turnId)&&Sa(i.turnIndex)&&le(i.url)&&We(i.files)&&Sa(i.comments)&&st(i.feedbackPath)&&st(i.markdownPath)&&st(i.artifactDir)}function E5(i){return Le(i)&&i.ok===!0&&le(i.path)}function z5(i){return Le(i)&&Kt(i.targets,Z5)}function w5(i){return Le(i)&&le(i.filePath)&&le(i.content)}function N5(i){return Le(i)&&le(i.fromSha)&&le(i.toSha)&&eu(i.stats)&&le(i.rawDiff)&&Kt(i.files,q1)}function T5(i){return Le(i)&&le(i.filePath)&&wn(i.oldStart)&&wn(i.newStart)&&Kt(i.lines,L2)}function M5(i){return Le(i)&&le(i.symbol)&&le(i.targetSymbol)&&le(i.filePath)&&wn(i.startLine)&&wn(i.line)&&J5(i.column)&&al(i.language)&&le(i.content)&&It(i.truncated)&&wn(i.totalLines)&&It(i.hasMoreAbove)&&It(i.hasMoreBelow)&&X5(i.matchReason)}function A5(i){return Le(i)&&le(i.filePath)&&wn(i.startLine)&&wn(i.totalLines)&&le(i.content)&&It(i.truncated)&&It(i.hasMoreAbove)&&It(i.hasMoreBelow)}function C5(i){return Le(i)&&O5(i.meta)&&Kt(i.turns,L5)&&_2(i.diff)&&Nn(i.feedback,O2)&&Nn(i.resolution,R2)}function _5(i){return Le(i)&&le(i.id)&&le(i.cwd)&&Pc(i.base)&&al(i.branch)&&k1(i.status)&&le(i.createdAt)&&st(i.submittedAt)&&st(i.resolvedAt)&&st(i.artifactDir)&&st(i.activeTurnId)&&Nn(i.turns,s=>Kt(s,D5))&&st(i.feedbackPath)&&st(i.markdownPath)}function O5(i){return _5(i)&&le(i.artifactDir)}function _2(i){return Le(i)&&Pc(i.base)&&al(i.branch)&&le(i.cwd)&&H5(i.scope)&&eu(i.stats)&&le(i.rawDiff)&&Kt(i.files,q1)&&Nn(i.commitDiffs,s=>Kt(s,q5))&&le(i.capturedAt)}function O2(i){return Le(i)&&i.version===1&&le(i.reviewId)&&st(i.turnId)&&Sa(i.turnIndex)&&le(i.timestamp)&&Pc(i.base)&&al(i.branch)&&Nn(i.reviewScope,k5)&&Kt(i.comments,G5)}function R2(i){return Le(i)&&le(i.reviewId)&&st(i.turnId)&&Sa(i.turnIndex)&&U2(i.status)&&al(i.summary)&&al(i.resolvedAt)&&Kt(i.comments,Y5)}function R5(i){if(!Le(i)||!le(i.reviewId)||!le(i.type))return!1;switch(i.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return le(i.turnId)&&We(i.turnIndex)&&It(i.reused);case"review.submitted":return st(i.turnId)&&Sa(i.turnIndex)&&Le(i.counts)&&We(i.counts.files)&&We(i.counts.comments);case"review.updated":return st(i.turnId)&&Sa(i.turnIndex)&&K5(i.reason)&&k1(i.status)&&U2(i.resolutionStatus)&&H2(i.counts);default:return!1}}function D2(i){return Le(i)&&le(i.id)&&We(i.index)&&k1(i.status)&&le(i.createdAt)&&st(i.submittedAt)&&st(i.resolvedAt)&&le(i.artifactDir)&&le(i.diffPath)&&st(i.feedbackPath)&&st(i.markdownPath)&&st(i.resolvedPath)}function D5(i){return!Le(i)||!D2(i)?!1:le(i.capturedAt)&&eu(i.stats)&&H2(i.comments)}function L5(i){return!Le(i)||!D2(i)?!1:_2(i.diff)&&Nn(i.feedback,O2)&&Nn(i.resolution,R2)}function H5(i){return Le(i)&&il(i.mode,d5)&&al(i.requestedBase)&&Pc(i.base)&&U5(i.comparison)&&(i.fallbackReason===null||il(i.fallbackReason,h5))}function U5(i){return Le(i)&&le(i.ref)&&al(i.sha)}function Pc(i){return Le(i)&&le(i.ref)&&le(i.sha)}function eu(i){return Le(i)&&We(i.files)&&We(i.additions)&&We(i.deletions)}function B5(i){return Le(i)&&le(i.sha)&&le(i.shortSha)&&le(i.subject)&&le(i.authorName)&&le(i.authorEmail)&&le(i.authoredAt)&&le(i.committedAt)}function q5(i){return Le(i)&&B5(i.commit)&&eu(i.stats)&&le(i.rawDiff)&&Kt(i.files,q1)}function k5(i){if(!Le(i)||!il(i.mode,v5))return!1;switch(i.mode){case"all":return!0;case"single":return le(i.sha);case"range":return le(i.fromSha)&&le(i.toSha)}}function q1(i){return Le(i)&&le(i.path)&&al(i.oldPath)&&We(i.additions)&&We(i.deletions)&&It(i.isBinary)&&It(i.isDeleted)&&It(i.isNew)&&It(i.isRenamed)&&al(i.language)&&Kt(i.hunks,V5)}function V5(i){return Le(i)&&We(i.oldStart)&&We(i.oldLines)&&We(i.newStart)&&We(i.newLines)&&le(i.header)&&Kt(i.lines,L2)}function L2(i){return Le(i)&&il(i.type,f5)&&e2(i.oldLine)&&e2(i.newLine)&&le(i.content)}function G5(i){return Le(i)&&le(i.id)&&le(i.filePath)&&We(i.startLine)&&We(i.endLine)&&il(i.side,o5)&&le(i.body)&&le(i.originalSnippet)&&le(i.createdAt)}function Y5(i){return Le(i)&&le(i.commentId)&&i.status==="resolved"&&st(i.summary)&&le(i.resolvedAt)}function H2(i){return Le(i)&&We(i.total)&&We(i.resolved)&&We(i.open)}function k1(i){return il(i,r5)}function U2(i){return il(i,g5)}function X5(i){return il(i,p5)}function Q5(i){return il(i,S5)}function Z5(i){return Le(i)&&Q5(i.target)&&le(i.label)}function K5(i){return il(i,b5)}function Le(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Kt(i,s){return Array.isArray(i)&&i.every(s)}function Nn(i,s){return i===void 0||s(i)}function le(i){return typeof i=="string"}function st(i){return i===void 0||le(i)}function al(i){return i===null||le(i)}function We(i){return typeof i=="number"&&Number.isFinite(i)}function wn(i){return We(i)&&Number.isInteger(i)&&i>0}function J5(i){return We(i)&&Number.isInteger(i)&&i>=0}function Sa(i){return i===void 0||We(i)}function e2(i){return i===null||We(i)}function It(i){return typeof i=="boolean"}function il(i,s){return typeof i=="string"&&s.includes(i)}async function Nl(i,s,f){if(!i.ok)throw new Error(await $5(i));const r=await i.json();return C2(r,s,f)}async function $5(i){const s=await i.text();return F5(s)??`${i.status}: ${s||i.statusText}`}function F5(i){try{const s=JSON.parse(i);if(typeof s=="object"&&s!==null&&!Array.isArray(s)&&typeof s.error=="string")return s.error}catch{}return null}async function t2(i){return Nl(await fetch(`/api/reviews/${i}`),C5,"review response")}async function W5(i,s,f){const r={comments:s,reviewScope:f};return Nl(await fetch(`/api/reviews/${i}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}),j5,"submit review response")}async function l2(i,s,f,r={}){const h={filePath:s,turnId:f,...r};return Nl(await fetch(`/api/reviews/${i}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),E5,"open file response")}async function I5(){return Nl(await fetch("/api/open-targets"),z5,"open targets response")}async function n2(i,s,f,r={}){const h={filePath:s,turnId:f,...r};return Nl(await fetch(`/api/reviews/${i}/files/content`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),w5,"file content response")}async function P5(i,s,f,r){const h={fromSha:s,toSha:f,turnId:r};return Nl(await fetch(`/api/reviews/${i}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),N5,"commit range diff response")}async function em({filePath:i,lineCount:s,newStart:f,oldPath:r,oldStart:h,reviewId:v,source:N,turnId:C}){const x={filePath:i,oldPath:r,turnId:C,source:N,oldStart:h,newStart:f,lineCount:s};return Nl(await fetch(`/api/reviews/${v}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(x)}),T5,"diff context response")}async function tm({column:i,filePath:s,line:f,oldPath:r,reviewId:h,side:v,source:N,symbol:C,turnId:x}){const y={filePath:s,oldPath:r,turnId:x,source:N,side:v,line:f,column:i,symbol:C};return Nl(await fetch(`/api/reviews/${h}/source-peek`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}),M5,"source peek response")}async function lm({filePath:i,lineCount:s,reviewId:f,side:r,source:h,startLine:v,turnId:N}){const C={filePath:i,turnId:N,source:h,side:r,startLine:v,lineCount:s};return Nl(await fetch(`/api/reviews/${f}/source-peek/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(C)}),A5,"source peek range response")}const nm="modulepreload",am=function(i){return"/"+i},a2={},B2=function(s,f,r){let h=Promise.resolve();if(f&&f.length>0){let N=function(y){return Promise.all(y.map(M=>Promise.resolve(M).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const C=document.querySelector("meta[property=csp-nonce]"),x=(C==null?void 0:C.nonce)||(C==null?void 0:C.getAttribute("nonce"));h=N(f.map(y=>{if(y=am(y),y in a2)return;a2[y]=!0;const M=y.endsWith(".css"),L=M?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${L}`))return;const B=document.createElement("link");if(B.rel=M?"stylesheet":nm,M||(B.as="script"),B.crossOrigin="",B.href=y,x&&B.setAttribute("nonce",x),document.head.appendChild(B),M)return new Promise((Z,ee)=>{B.addEventListener("load",Z),B.addEventListener("error",()=>ee(new Error(`Unable to preload CSS for ${y}`)))})}))}function v(N){const C=new Event("vite:preloadError",{cancelable:!0});if(C.payload=N,window.dispatchEvent(C),!C.defaultPrevented)throw N}return h.then(N=>{for(const C of N||[])C.status==="rejected"&&v(C.reason);return s().catch(v)})};function V1(i){return i.type==="delete"?"L":"R"}function G1(i){return V1(i)==="L"?i.oldLine:i.newLine}function Ei(i,s){return`${i}:${s}`}const q2="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Jc=32,im=16,k2=10,i2=0xffffffffffff;var xn;(function(i){i.Base32IncorrectEncoding="B32_ENC_INVALID",i.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",i.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",i.EncodeTimeNegative="ENC_TIME_NEG",i.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",i.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",i.PRNGDetectFailure="PRNG_DETECT",i.ULIDInvalid="ULID_INVALID",i.Unexpected="UNEXPECTED",i.UUIDInvalid="UUID_INVALID"})(xn||(xn={}));class xi extends Error{constructor(s,f){super(`${f} (${s})`),this.name="ULIDError",this.code=s}}function cm(i){const s=Math.floor(i()*Jc)%Jc;return q2.charAt(s)}function um(i){const s=sm(),f=s&&(s.crypto||s.msCrypto)||null;if(typeof(f==null?void 0:f.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return f.getRandomValues(r),r[0]/256};if(typeof(f==null?void 0:f.randomBytes)=="function")return()=>f.randomBytes(1).readUInt8()/256;throw new xi(xn.PRNGDetectFailure,"Failed to find a reliable PRNG")}function sm(){return fm()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function om(i,s){let f="";for(;i>0;i--)f=cm(s)+f;return f}function rm(i,s=k2){if(isNaN(i))throw new xi(xn.EncodeTimeValueMalformed,`Time must be a number: ${i}`);if(i>i2)throw new xi(xn.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${i2}: ${i}`);if(i<0)throw new xi(xn.EncodeTimeNegative,`Time must be positive: ${i}`);if(Number.isInteger(i)===!1)throw new xi(xn.EncodeTimeValueMalformed,`Time must be an integer: ${i}`);let f,r="";for(let h=s;h>0;h--)f=i%Jc,r=q2.charAt(f)+r,i=(i-f)/Jc;return r}function fm(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function dm(i,s){const f=um(),r=Date.now();return rm(r,k2)+om(im,f)}const c2=i=>{let s;const f=new Set,r=(y,M)=>{const L=typeof y=="function"?y(s):y;if(!Object.is(L,s)){const B=s;s=M??(typeof L!="object"||L===null)?L:Object.assign({},s,L),f.forEach(Z=>Z(s,B))}},h=()=>s,C={setState:r,getState:h,getInitialState:()=>x,subscribe:y=>(f.add(y),()=>f.delete(y))},x=s=i(r,h,C);return C},hm=(i=>i?c2(i):c2),mm=i=>i;function ym(i,s=mm){const f=Si.useSyncExternalStore(i.subscribe,Si.useCallback(()=>s(i.getState()),[i,s]),Si.useCallback(()=>s(i.getInitialState()),[i,s]));return Si.useDebugValue(f),f}const u2=i=>{const s=hm(i),f=r=>ym(s,r);return Object.assign(f,s),f},pm=(i=>i?u2(i):u2),At=pm((i,s)=>({comments:[],resolution:null,draft:null,setDraft:f=>i({draft:f}),hydrateComments:f=>i({comments:f,resolution:null,draft:null}),hydrateReview:(f,r=null)=>i({comments:f,resolution:r,draft:null}),addComment:f=>{const r=s().draft;!r||f.trim().length===0||i(h=>({comments:[...h.comments,{id:dm(),filePath:r.filePath,side:r.side,startLine:Math.min(r.startLine,r.endLine),endLine:Math.max(r.startLine,r.endLine),body:f.trim(),originalSnippet:r.originalSnippet,createdAt:new Date().toISOString()}],draft:null}))},removeComment:f=>i(r=>({comments:r.comments.filter(h=>h.id!==f)})),reset:()=>i({comments:[],resolution:null,draft:null})})),V2="gloss:theme-preference",vm="(prefers-color-scheme: dark)",gm=new Set(["system","light","dark"]),G2=A.createContext(null);function bm(i){return!!(i&&gm.has(i))}function Sm(i=Y2()){if(!i)return"system";try{const s=i.getItem(V2);return bm(s)?s:"system"}catch{return"system"}}function xm(i,s=Y2()){if(s)try{s.setItem(V2,i)}catch{}}function R1(i){return i?"dark":"light"}function jm(i,s){return i==="system"?s:i}function Em(i,s=Nm()){s&&(s.dataset.theme=i)}function zm({children:i}){const[s,f]=A.useState(()=>Sm()),[r,h]=A.useState(()=>wm()),v=jm(s,r);A.useEffect(()=>{const x=X2();if(!x)return;const y=M=>{h(R1(M.matches))};return h(R1(x.matches)),typeof x.addEventListener=="function"?(x.addEventListener("change",y),()=>x.removeEventListener("change",y)):(x.addListener(y),()=>x.removeListener(y))},[]),A.useEffect(()=>{Em(v)},[v]);const N=A.useCallback(x=>{xm(x),f(x)},[]),C=A.useMemo(()=>({preference:s,resolvedTheme:v,setPreference:N}),[s,v,N]);return u.jsx(G2.Provider,{value:C,children:i})}function Y1(){const i=A.useContext(G2);if(!i)throw new Error("useTheme must be used within ThemeProvider");return i}function wm(i=X2()){return R1(!!(i!=null&&i.matches))}function Y2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function X2(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(vm)}catch{return null}}function Nm(){return typeof document>"u"?null:document.documentElement}function Tm(i){return Q2(i)&&!i.shiftKey}function Mm(i){return Q2(i)&&i.shiftKey===!0}function Q2(i){var s;return i.key==="Enter"&&i.metaKey===!0&&i.ctrlKey!==!0&&i.altKey!==!0&&i.repeat!==!0&&i.defaultPrevented!==!0&&i.isComposing!==!0&&((s=i.nativeEvent)==null?void 0:s.isComposing)!==!0}function Am({tone:i}){const s=At(M=>M.draft),f=At(M=>M.setDraft),r=At(M=>M.addComment),[h,v]=A.useState(""),N=A.useRef(null);if(A.useEffect(()=>{var M;s&&((M=N.current)==null||M.focus({preventScroll:!0}))},[s]),!s)return null;const C=s.startLine===s.endLine?`Comment on line ${ji(s)}`:`Comment on range ${ji(s)}`,x=()=>{v(""),f(null)},y=()=>{r(h),v("")};return u.jsx("div",{className:`draft-comment-shell tone-${i}`,children:u.jsxs("div",{className:"draft-comment-card",children:[u.jsxs("div",{className:"draft-comment-title",children:[u.jsxs("span",{className:"draft-comment-heading",children:[u.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:u.jsx(vh,{size:15})}),u.jsx("span",{children:"Local comment"})]}),u.jsx("span",{className:"draft-comment-label",children:C})]}),u.jsx("textarea",{"aria-label":C,placeholder:"Request change",ref:N,value:h,onChange:M=>v(M.target.value),onKeyDown:M=>{Tm(M)&&(M.preventDefault(),y())}}),u.jsxs("div",{className:"draft-comment-actions",children:[u.jsx("button",{className:"secondary-button",type:"button",onClick:x,children:"Cancel"}),u.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:y,children:"Comment"})]})]})})}const Cm=20;function _m(i,s){const f=s.oldStart-i.oldStart,r=f+s.lineCount-1,h=f>0,v=r<i.lineCount-1;return h&&v?"all":h?"down":v||i.beforeHunkIndex===0?"up":"all"}function X1(i){const s=[];let f=0,r=0;return i.hunks.forEach((h,v)=>{const N=h.oldStart>f+1?h.oldStart-f-1:0,C=h.newStart>r+1?h.newStart-r-1:0,x=Math.min(N,C);if(x>0){const y=f+1,M=r+1;s.push({id:`${i.path}:${y}:${M}:${x}`,beforeHunkIndex:v,filePath:i.path,oldPath:i.oldPath,oldStart:y,newStart:M,lineCount:x})}f=h.oldStart+h.oldLines-1,r=h.newStart+h.newLines-1}),s}function Om(i,s){const f=tu(i,s),r=Z2(i,f),h=Q1(i,s);if(r.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const v=r[0]??0,N=r.at(-1)??i.lineCount-1,C=h.filter(y=>{const M=$c(i,y);return M!=null&&M<v}),x=h.filter(y=>{const M=$c(i,y);return M!=null&&M>N});return[...C.length>0?[{type:"lines",lines:C}]:[],{type:"hidden",oldStart:i.oldStart+v,newStart:i.newStart+v,lineCount:N-v+1},...x.length>0?[{type:"lines",lines:x}]:[]]}function Rm(i,s,f,r=Cm){const h=tu(i,s),v=Z2(i,h);if(v.length===0)return null;let N,C;if(f==="all")N=v[0]??0,C=v.at(-1)??i.lineCount-1,C=Math.min(C,N+m5-1);else if(f==="down"){for(N=v[0]??0,C=N;C+1<i.lineCount&&!h.has(C+1);)C+=1;C=Math.min(C,N+r-1)}else{for(C=v.at(-1)??i.lineCount-1,N=C;N-1>=0&&!h.has(N-1);)N-=1;N=Math.max(N,C-r+1)}return{oldStart:i.oldStart+N,newStart:i.newStart+N,lineCount:C-N+1}}function Dm(i,s,f){const r=tu(i,s);for(const h of f){const v=$c(i,h);v!=null&&r.set(v,h)}return{lines:Array.from(r.entries()).toSorted(([h],[v])=>h-v).map(([,h])=>h),loading:!1,error:null}}function Q1(i,s){return Array.from(tu(i,s).entries()).toSorted(([f],[r])=>f-r).map(([,f])=>f)}function Lm(i,s){const f=new Map(X1(i).map(r=>[r.beforeHunkIndex,r]));return i.hunks.flatMap((r,h)=>{const v=f.get(h);return[...v?Q1(v,s[v.id]):[],...r.lines]})}function Hm(i,s){const f=new Map(X1(i).map(h=>[h.beforeHunkIndex,h])),r=i.hunks.map((h,v)=>{const N=f.get(v),C=N?Q1(N,s[N.id]):[];return C.length>0?{...h,lines:[...C,...h.lines]}:h});return{...i,hunks:r}}function Z2(i,s){const f=[];for(let r=0;r<i.lineCount;r+=1)s.has(r)||f.push(r);return f}function tu(i,s){const f=new Map;if(!i||!s)return f;for(const r of s.lines){const h=$c(i,r);h!=null&&f.set(h,r)}return f}function $c(i,s){const f=s.oldLine==null?null:s.oldLine-i.oldStart;if(f!=null&&f>=0&&f<i.lineCount)return f;const r=s.newLine==null?null:s.newLine-i.newStart;return r!=null&&r>=0&&r<i.lineCount?r:null}function K2(i){return`gloss-file-${encodeURIComponent(i)}`}const Ae='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ce='</title><path d="',_e='"/></svg>',Um={title:"Android Studio",slug:"androidstudio",get svg(){return Ae+"Android Studio"+Ce+this.path+_e},path:"M19.2693 10.3368c-.3321 0-.6026.2705-.6026.6031v9.8324h-1.7379l-3.3355-6.9396c.476-.5387.6797-1.286.5243-2.0009a2.2862 2.2862 0 0 0-1.2893-1.6248v-.8124c.0121-.2871-.1426-.5787-.4043-.7407-.1391-.0825-.2884-.1234-.4402-.1234a.8478.8478 0 0 0-.4318.1182c-.2701.1671-.4248.4587-.4123.7662l-.0003.721c-1.0149.3668-1.6619 1.4153-1.4867 2.5197a2.282 2.282 0 0 0 .5916 1.2103l-3.2096 6.9064H4.0928c-1.0949-.007-1.9797-.8948-1.9832-1.9896V5.016c-.0055 1.1024.8836 2.0006 1.9859 2.0062a2.024 2.024 0 0 0 .1326-.0037h14.7453s2.5343-.2189 2.8619 1.5392c-.2491.0287-.4449.2321-.4449.4889 0 .7115-.5791 1.2901-1.3028 1.2901h-.8183zM17.222 22.5366c.2347.4837.0329 1.066-.4507 1.3007-.1296.0629-.2666.0895-.4018.0927a.9738.9738 0 0 1-.3194-.0455c-.024-.0078-.046-.0209-.0694-.0305a.9701.9701 0 0 1-.2277-.1321c-.0247-.0192-.0495-.038-.0724-.0598-.0825-.0783-.1574-.1672-.21-.2757l-1.2554-2.6143-1.5585-3.2452a.7725.7725 0 0 0-.6995-.4443h-.0024a.792.792 0 0 0-.7083.4443l-1.5109 3.2452-1.2321 2.6464a.9722.9722 0 0 1-.7985.5795c-.0626.0053-.1238-.0024-.185-.0087-.0344-.0036-.069-.0053-.1025-.0124-.0489-.0103-.0954-.0278-.142-.0452-.0301-.0113-.0613-.0197-.0901-.0339-.0496-.0244-.0948-.0565-.1397-.0889-.0217-.0156-.0457-.0275-.0662-.045a.9862.9862 0 0 1-.1695-.1844.9788.9788 0 0 1-.0708-.9852l.8469-1.8223 3.2676-7.0314a1.7964 1.7964 0 0 1-.7072-1.1637c-.1555-.9799.5129-1.9003 1.4928-2.0559V9.3946a.3542.3542 0 0 1 .1674-.3155.3468.3468 0 0 1 .3541 0 .354.354 0 0 1 .1674.3155v1.159l.0129.0064a1.8028 1.8028 0 0 1 1.2878 1.378 1.7835 1.7835 0 0 1-.6439 1.7836l3.3889 7.0507.8481 1.7643zM12.9841 12.306c.0042-.6081-.4854-1.1044-1.0935-1.1085a1.1204 1.1204 0 0 0-.7856.3219 1.101 1.101 0 0 0-.323.7716c-.0042.6081.4854 1.1044 1.0935 1.1085h.0077c.6046 0 1.0967-.488 1.1009-1.0935zm-1.027 5.2768c-.1119.0005-.2121.0632-.2571.1553l-1.4127 3.0342h3.3733l-1.4564-3.0328a.274.274 0 0 0-.2471-.1567zm8.1432-6.7459l-.0129-.0001h-.8177a.103.103 0 0 0-.103.103v12.9103a.103.103 0 0 0 .0966.103h.8435c.9861-.0035 1.7836-.804 1.7836-1.79V9.0468c0 .9887-.8014 1.7901-1.7901 1.7901zM2.6098 5.0161v.019c.0039.816.6719 1.483 1.4874 1.4869a12.061 12.061 0 0 1 .1309-.0034h1.1286c.1972-1.315.7607-2.525 1.638-3.4859H4.0993c-.9266.0031-1.6971.6401-1.9191 1.4975.2417.0355.4296.235.4296.4859zm6.3381-2.8977L7.9112.3284a.219.219 0 0 1 0-.2189A.2384.2384 0 0 1 8.098 0a.219.219 0 0 1 .1867.1094l1.0496 1.8158a6.4907 6.4907 0 0 1 5.3186 0L15.696.1094a.2189.2189 0 0 1 .3734.2189l-1.0302 1.79c1.6671.9125 2.7974 2.5439 3.0975 4.4018l-12.286-.0014c.3004-1.8572 1.4305-3.488 3.0972-4.4003zm5.3774 2.6202a.515.515 0 0 0 .5271.5028.515.515 0 0 0 .5151-.5151.5213.5213 0 0 0-.8885-.367.5151.5151 0 0 0-.1537.3793zm-5.7178-.0067a.5151.5151 0 0 0 .5207.5095.5086.5086 0 0 0 .367-.1481.5215.5215 0 1 0-.734-.7341.515.515 0 0 0-.1537.3727z",source:"https://developer.android.com/studio",hex:"3DDC84"},Bm={title:"CLion",slug:"clion",get svg(){return Ae+"CLion"+Ce+this.path+_e},path:"M0 0v24h24V0H0zm7.041 3a5.049 5.049 0 0 1 .219 0c1.86 0 3 .6 3.9 1.56L9.78 6.18C9 5.46 8.22 5.04 7.26 5.04c-1.68 0-2.88 1.38-2.88 3.12 0 1.68 1.2 3.12 2.88 3.12 1.14 0 1.86-.48 2.64-1.14l1.38 1.38c-1.02 1.08-2.16 1.8-4.08 1.8a5.1 5.1 0 0 1-5.1-5.16A5.049 5.049 0 0 1 7.04 3zm5.738.12H15v8.1h4.32v1.86h-6.54V3.12zM2.28 19.5h9V21h-9v-1.5Z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},qm={title:"CSS",slug:"css",get svg(){return Ae+"CSS"+Ce+this.path+_e},path:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63",source:"https://github.com/CSS-Next/logo.css/blob/bacc20878227204b283c68a6b935f8279e06b0cd/css.svg",hex:"663399",guidelines:"https://github.com/CSS-Next/logo.css"},km={title:"Cursor",slug:"cursor",get svg(){return Ae+"Cursor"+Ce+this.path+_e},path:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23",source:"https://cursor.com/brand",hex:"000000"},Vm={title:"DataGrip",slug:"datagrip",get svg(){return Ae+"DataGrip"+Ce+this.path+_e},path:"M0 0v24h24V0Zm17.1797 2.9477a5.452 5.452 0 0 1 3.9047 1.364L19.7078 5.972a3.672 3.672 0 0 0-2.596-1.0086c-1.6 0-2.8555 1.408-2.8555 3.096v.0282c0 1.816 1.2517 3.1523 3.0117 3.1523a3.492 3.492 0 0 0 2.064-.5921V9.2234h-2.2V7.336h4.3157v4.3157a6.436 6.436 0 0 1-4.2438 1.5757c-3.096 0-5.2242-2.1797-5.2242-5.1117v-.0281a5.1 5.1 0 0 1 5.2-5.1398zm-14.7438.1718h3.8758c3.12 0 5.2805 2.1439 5.2805 4.9399v.028c0 2.8-2.1605 4.968-5.2805 4.968H2.436Zm4.075 1.9688a2.852 2.852 0 0 0-.1992.003H4.6203v6h1.6914A2.832 2.832 0 0 0 9.304 8.1235v-.036a2.852 2.852 0 0 0-2.793-2.9991Zm-4.303 14.407h9v1.5h-9z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},Gm={title:"Ghostty",slug:"ghostty",get svg(){return Ae+"Ghostty"+Ce+this.path+_e},path:"M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95",source:"https://github.com/ghostty-org/website/blob/7093f052a2f35e0247fcb828ede644ed74a749a0/public/ghostty-logo.svg",hex:"3551F3"},Ym={title:"GNU Bash",slug:"gnubash",get svg(){return Ae+"GNU Bash"+Ce+this.path+_e},path:"M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z",source:"https://github.com/odb/official-bash-logo/tree/61eff022f2dad3c7468f5deb4f06652d15f2c143",hex:"4EAA25",guidelines:"https://github.com/odb/official-bash-logo",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},Xm={title:"GNU Emacs",slug:"gnuemacs",get svg(){return Ae+"GNU Emacs"+Ce+this.path+_e},path:"M12,24C5.448,24,0.118,18.617,0.118,12S5.448,0,12,0c6.552,0,11.882,5.383,11.882,12S18.552,24,12,24z M12,0.661 C5.813,0.661,0.779,5.748,0.779,12S5.813,23.339,12,23.339c6.187,0,11.221-5.086,11.221-11.339S18.187,0.661,12,0.661z M8.03,20.197 c0,0,0.978,0.069,2.236-0.042c0.51-0.045,2.444-0.235,3.891-0.552c0,0,1.764-0.377,2.707-0.725c0.987-0.364,1.524-0.673,1.766-1.11 c-0.011-0.09,0.074-0.408-0.381-0.599c-1.164-0.488-2.514-0.4-5.185-0.457c-2.962-0.102-3.948-0.598-4.472-0.997 c-0.503-0.405-0.25-1.526,1.907-2.513c1.086-0.526,5.345-1.496,5.345-1.496c-1.434-0.709-4.109-1.955-4.659-2.224 c-0.482-0.236-1.254-0.591-1.421-1.021c-0.19-0.413,0.448-0.768,0.804-0.87c1.147-0.331,2.766-0.536,4.24-0.56 c0.741-0.012,0.861-0.059,0.861-0.059c1.022-0.17,1.695-0.869,1.414-1.976c-0.252-1.13-1.579-1.795-2.84-1.565 c-1.188,0.217-4.05,1.048-4.05,1.048c3.539-0.031,4.131,0.028,4.395,0.398c0.156,0.218-0.071,0.518-1.015,0.672 c-1.027,0.168-3.163,0.37-3.163,0.37c-2.049,0.122-3.492,0.13-3.925,1.046C6.202,7.564,6.787,8.094,7.043,8.425 c1.082,1.204,2.646,1.853,3.652,2.331c0.379,0.18,1.49,0.52,1.49,0.52c-3.265-0.18-5.619,0.823-7.001,1.977 c-1.562,1.445-0.871,3.168,2.33,4.228c1.891,0.626,2.828,0.921,5.648,0.667c1.661-0.09,1.923-0.036,1.939,0.1 c0.023,0.192-1.845,0.669-2.355,0.816C11.448,19.438,8.047,20.193,8.03,20.197z",source:"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/images/icons/hicolor/scalable/apps/emacs.svg",hex:"7F5AB6",license:{type:"GPL-2.0-or-later",url:"https://spdx.org/licenses/GPL-2.0-or-later"}},Qm={title:"Go",slug:"go",get svg(){return Ae+"Go"+Ce+this.path+_e},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},Zm={title:"GoLand",slug:"goland",get svg(){return Ae+"GoLand"+Ce+this.path+_e},path:"M0 0v24h24V0Zm6.764 3a5.448 5.448 0 0 1 3.892 1.356L9.284 6.012A3.652 3.652 0 0 0 6.696 5c-1.6 0-2.844 1.4-2.844 3.08v.028c0 1.812 1.244 3.14 3 3.14a3.468 3.468 0 0 0 2.048-.596V9.228H6.708v-1.88H11v4.296a6.428 6.428 0 0 1-4.228 1.572c-3.076 0-5.196-2.164-5.196-5.092v-.028A5.08 5.08 0 0 1 6.764 3Zm10.432 0c3.052 0 5.244 2.276 5.244 5.088v.028a5.116 5.116 0 0 1-5.272 5.12c-3.056-.02-5.248-2.296-5.248-5.112v-.028A5.116 5.116 0 0 1 17.196 3Zm-.028 2A2.96 2.96 0 0 0 14.2 8.068v.028a3.008 3.008 0 0 0 3 3.112 2.96 2.96 0 0 0 2.964-3.084v-.028A3.004 3.004 0 0 0 17.168 5ZM2.252 19.5h9V21h-9z",source:"https://www.jetbrains.com/company/brand/#logos-and-icons-jetbrains-logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/#brand-guidelines"},Km={title:"HTML5",slug:"html5",get svg(){return Ae+"HTML5"+Ce+this.path+_e},path:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z",source:"https://www.w3.org/html/logo/",hex:"E34F26"},Jm={title:"IntelliJ IDEA",slug:"intellijidea",get svg(){return Ae+"IntelliJ IDEA"+Ce+this.path+_e},path:"M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z",source:"https://www.jetbrains.com/idea/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},$m={title:"iTerm2",slug:"iterm2",get svg(){return Ae+"iTerm2"+Ce+this.path+_e},path:"M24 5.359v13.282A5.36 5.36 0 0 1 18.641 24H5.359A5.36 5.36 0 0 1 0 18.641V5.359A5.36 5.36 0 0 1 5.359 0h13.282A5.36 5.36 0 0 1 24 5.359m-.932-.233A4.196 4.196 0 0 0 18.874.932H5.126A4.196 4.196 0 0 0 .932 5.126v13.748a4.196 4.196 0 0 0 4.194 4.194h13.748a4.196 4.196 0 0 0 4.194-4.194zm-.816.233v13.282a3.613 3.613 0 0 1-3.611 3.611H5.359a3.613 3.613 0 0 1-3.611-3.611V5.359a3.613 3.613 0 0 1 3.611-3.611h13.282a3.613 3.613 0 0 1 3.611 3.611M8.854 4.194v6.495h.962V4.194zM5.483 9.493v1.085h.597V9.48q.283-.037.508-.133.373-.165.575-.448.208-.284.208-.649a.9.9 0 0 0-.171-.568 1.4 1.4 0 0 0-.426-.388 3 3 0 0 0-.544-.261 32 32 0 0 0-.545-.209 1.8 1.8 0 0 1-.426-.216q-.164-.12-.164-.284 0-.223.179-.351.18-.126.485-.127.344 0 .575.105.239.105.5.298l.433-.5a2.3 2.3 0 0 0-.605-.433 1.6 1.6 0 0 0-.582-.159v-.968h-.597v.978a2 2 0 0 0-.477.127 1.2 1.2 0 0 0-.545.411q-.194.268-.194.634 0 .335.164.56.164.224.418.38a4 4 0 0 0 .552.262q.291.104.545.209.261.104.425.238a.39.39 0 0 1 .165.321q0 .225-.187.359-.18.134-.537.134-.381 0-.717-.134a4.4 4.4 0 0 1-.649-.351l-.388.589q.209.173.477.306.276.135.575.217.191.046.373.064",source:"https://github.com/gnachman/iTerm2/blob/6a857f3f5872eb1465ddc0dd83412015991e79ae/images/AppIcon/iTermIcon.sketch",hex:"000000"},Fm={title:"JavaScript",slug:"javascript",get svg(){return Ae+"JavaScript"+Ce+this.path+_e},path:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z",source:"https://github.com/voodootikigod/logo.js/blob/1544bdeed6d618a6cfe4f0650d04ab8d9cfa76d9/js.svg",hex:"F7DF1E",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},Wm={title:"JSON",slug:"json",get svg(){return Ae+"JSON"+Ce+this.path+_e},path:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z",source:"https://commons.wikimedia.org/wiki/File:JSON_vector_logo.svg",hex:"000000"},Im={title:"Lapce",slug:"lapce",get svg(){return Ae+"Lapce"+Ce+this.path+_e},path:"M3.802 1.267 1.608 0v24L8 20.31v-2.535L3.802 20.2Zm4.208 13.9V6.231L18.003 12l-7.798 4.503v2.533L22.392 12 5.806 2.424V16.44Zm5.598-3.231L10.205 9.97v3.93Z",source:"https://github.com/lapce/lapce/blob/95c4cf2d87083e348c0b621d0be0ea17f79ed703/extra/images/logo.svg",hex:"3B82F6"},Pm={title:"Markdown",slug:"markdown",get svg(){return Ae+"Markdown"+Ce+this.path+_e},path:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z",source:"https://github.com/dcurtis/markdown-mark/tree/360a3657fef7f6ad0b303296a95ad52985caa0d3",hex:"000000",guidelines:"https://github.com/dcurtis/markdown-mark",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},e6={title:"Neovim",slug:"neovim",get svg(){return Ae+"Neovim"+Ce+this.path+_e},path:"M2.214 4.954v13.615L7.655 24V10.314L3.312 3.845 2.214 4.954zm4.999 17.98l-4.557-4.548V5.136l.59-.596 3.967 5.908v12.485zm14.573-4.457l-.862.937-4.24-6.376V0l5.068 5.092.034 13.385zM7.431.001l12.998 19.835-3.637 3.637L3.787 3.683 7.43 0z",source:"https://neovim.io",hex:"57A143",license:{type:"CC-BY-SA-3.0",url:"https://spdx.org/licenses/CC-BY-SA-3.0"}},t6={title:"PhpStorm",slug:"phpstorm",get svg(){return Ae+"PhpStorm"+Ce+this.path+_e},path:"M7.833 6.611v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.056h1.722c1.111-.001 1.722-.668 1.722-1.501zM0 0v24h24V0H0zm2.167 3.111h4.056c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.333-1.778 3.5-4.056 3.5H4.333v3H2.167v-10zM11.278 21h-9v-1.5h9V21zM18.5 10.222c0 2-1.5 3.111-3.667 3.111-1.5-.056-3-.611-4.222-1.667l1.278-1.556c.89.722 1.833 1.222 3 1.222.889 0 1.444-.333 1.444-.944v-.056c0-.555-.333-.833-2-1.277C12.333 8.555 11 8 11 6v-.056c0-1.833 1.444-3 3.5-3 1.444 0 2.723.444 3.723 1.278l-1.167 1.667c-.889-.611-1.777-1-2.611-1-.833 0-1.278.389-1.278.889v.056c0 .667.445.889 2.167 1.333 2 .556 3.167 1.278 3.167 3v.055z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},l6={title:"PyCharm",slug:"pycharm",get svg(){return Ae+"PyCharm"+Ce+this.path+_e},path:"M7.833 6.666v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.055h1.723c1.111 0 1.721-.666 1.721-1.5zM0 0v24h24V0H0zm2.223 3.167h4c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.278-1.778 3.5-4.001 3.5H4.389v2.945H2.223V3.167zM11.277 21h-9v-1.5h9V21zm4.779-7.777c-2.944.055-5.111-2.223-5.111-5.057C10.944 5.333 13.056 3 16.111 3c1.889 0 3 .611 3.944 1.556l-1.389 1.61c-.778-.722-1.556-1.111-2.556-1.111-1.658 0-2.873 1.375-2.887 3.084.014 1.709 1.174 3.083 2.887 3.083 1.111 0 1.833-.445 2.61-1.167l1.39 1.389c-.999 1.112-2.166 1.779-4.054 1.779z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},n6={title:"Python",slug:"python",get svg(){return Ae+"Python"+Ce+this.path+_e},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},s2={title:"React",slug:"react",get svg(){return Ae+"React"+Ce+this.path+_e},path:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",source:"https://github.com/facebook/create-react-app/blob/282c03f9525fdf8061ffa1ec50dce89296d916bd/test/fixtures/relative-paths/src/logo.svg",hex:"61DAFB"},a6={title:"Ruby",slug:"ruby",get svg(){return Ae+"Ruby"+Ce+this.path+_e},path:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z",source:"https://www.ruby-lang.org/en/about/logo/",hex:"CC342D",license:{type:"CC-BY-SA-2.5",url:"https://spdx.org/licenses/CC-BY-SA-2.5"}},i6={title:"RubyMine",slug:"rubymine",get svg(){return Ae+"RubyMine"+Ce+this.path+_e},path:"M0 0v24h24V0Zm3.056 3H6.92q.945 0 1.665.347t1.106.977c.262.42.392.902.392 1.46q0 .835-.399 1.478a2.6 2.6 0 0 1-1.125.99 2 2 0 0 1-.297.103q-.066.02-.13.04L10.276 12H8.264l-1.94-3.4H4.811V12H3.056Zm8.51 0h2.444l1.851 5.907.154.773.136-.773L17.937 3h2.482v9h-1.736V5.578l.026-.47L16.613 12H15.34l-2.07-6.846.026.424V12h-1.73ZM4.812 4.459V7.14h1.993q.444-.001.771-.161.335-.167.515-.47c.12-.205.18-.439.18-.713q0-.411-.18-.707a1.17 1.17 0 0 0-.515-.462 1.7 1.7 0 0 0-.77-.168ZM2.996 19.2h9.6V21h-9.6z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},c6={title:"Rust",slug:"rust",get svg(){return Ae+"Rust"+Ce+this.path+_e},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},u6={title:"Sublime Text",slug:"sublimetext",get svg(){return Ae+"Sublime Text"+Ce+this.path+_e},path:"M20.953.004a.397.397 0 0 0-.18.017L3.225 5.585c-.175.055-.323.214-.402.398a.42.42 0 0 0-.06.22v5.726a.42.42 0 0 0 .06.22c.079.183.227.341.402.397l7.454 2.364-7.454 2.363c-.255.08-.463.374-.463.655v5.688c0 .282.208.444.463.363l17.55-5.565c.237-.075.426-.336.452-.6.003-.022.013-.04.013-.065V12.06c0-.281-.208-.575-.463-.656L13.4 9.065l7.375-2.339c.255-.08.462-.375.462-.656V.384c0-.211-.117-.355-.283-.38z",source:"https://www.sublimetext.com",hex:"FF9800"},s6={title:"Swift",slug:"swift",get svg(){return Ae+"Swift"+Ce+this.path+_e},path:"M7.508 0c-.287 0-.573 0-.86.002-.241.002-.483.003-.724.01-.132.003-.263.009-.395.015A9.154 9.154 0 0 0 4.348.15 5.492 5.492 0 0 0 2.85.645 5.04 5.04 0 0 0 .645 2.848c-.245.48-.4.972-.495 1.5-.093.52-.122 1.05-.136 1.576a35.2 35.2 0 0 0-.012.724C0 6.935 0 7.221 0 7.508v8.984c0 .287 0 .575.002.862.002.24.005.481.012.722.014.526.043 1.057.136 1.576.095.528.25 1.02.495 1.5a5.03 5.03 0 0 0 2.205 2.203c.48.244.97.4 1.498.495.52.093 1.05.124 1.576.138.241.007.483.009.724.01.287.002.573.002.86.002h8.984c.287 0 .573 0 .86-.002.241-.001.483-.003.724-.01a10.523 10.523 0 0 0 1.578-.138 5.322 5.322 0 0 0 1.498-.495 5.035 5.035 0 0 0 2.203-2.203c.245-.48.4-.972.495-1.5.093-.52.124-1.05.138-1.576.007-.241.009-.481.01-.722.002-.287.002-.575.002-.862V7.508c0-.287 0-.573-.002-.86a33.662 33.662 0 0 0-.01-.724 10.5 10.5 0 0 0-.138-1.576 5.328 5.328 0 0 0-.495-1.5A5.039 5.039 0 0 0 21.152.645 5.32 5.32 0 0 0 19.654.15a10.493 10.493 0 0 0-1.578-.138 34.98 34.98 0 0 0-.722-.01C17.067 0 16.779 0 16.492 0H7.508zm6.035 3.41c4.114 2.47 6.545 7.162 5.549 11.131-.024.093-.05.181-.076.272l.002.001c2.062 2.538 1.5 5.258 1.236 4.745-1.072-2.086-3.066-1.568-4.088-1.043a6.803 6.803 0 0 1-.281.158l-.02.012-.002.002c-2.115 1.123-4.957 1.205-7.812-.022a12.568 12.568 0 0 1-5.64-4.838c.649.48 1.35.902 2.097 1.252 3.019 1.414 6.051 1.311 8.197-.002C9.651 12.73 7.101 9.67 5.146 7.191a10.628 10.628 0 0 1-1.005-1.384c2.34 2.142 6.038 4.83 7.365 5.576C8.69 8.408 6.208 4.743 6.324 4.86c4.436 4.47 8.528 6.996 8.528 6.996.154.085.27.154.36.213.085-.215.16-.437.224-.668.708-2.588-.09-5.548-1.893-7.992z",source:"https://developer.apple.com/swift/resources/",hex:"F05138",guidelines:"https://developer.apple.com/swift/resources/"},o6={title:"TypeScript",slug:"typescript",get svg(){return Ae+"TypeScript"+Ce+this.path+_e},path:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",source:"https://www.typescriptlang.org/branding",hex:"3178C6",guidelines:"https://www.typescriptlang.org/branding"},r6={title:"Vim",slug:"vim",get svg(){return Ae+"Vim"+Ce+this.path+_e},path:"M24 11.986h-.027l-4.318-4.318 4.303-4.414V1.461l-.649-.648h-8.198l-.66.605v1.045L12.015.027V0L12 .014 11.986 0v.027l-1.29 1.291-.538-.539H2.035l-.638.692v1.885l.616.616h.72v5.31L.027 11.987H0L.014 12 0 12.014h.027l2.706 2.706v6.467l.907.523h2.322l1.857-1.904 4.166 4.166V24l.015-.014.014.014v-.028l2.51-2.509h.485c.111 0 .211-.07.25-.179l.146-.426c.028-.084.012-.172-.037-.239l1.462-1.462-.612 1.962c-.043.141.036.289.177.332.025.008.052.012.078.012h1.824c.106-.001.201-.064.243-.163l.165-.394c.025-.065.024-.138-.004-.203-.027-.065-.08-.116-.146-.142-.029-.012-.062-.019-.097-.02h-.075l.84-2.644h1.232l-1.016 3.221c-.043.141.036.289.176.332.025.008.052.012.079.012h2.002c.11 0 .207-.066.248-.17l.164-.428c.051-.138-.021-.29-.158-.341-.029-.011-.06-.017-.091-.017h-.145l1.131-3.673c.027-.082.012-.173-.039-.24l-.375-.504-.003-.005c-.051-.064-.127-.102-.209-.102h-1.436c-.071 0-.141.03-.19.081l-.4.439h-.624l-.042-.046 4.445-4.445H24L23.986 12l.014-.014zM9.838 21.139l1.579-4.509h-.501l.297-.304h1.659l-1.563 4.555h.623l-.079.258H9.838zm3.695-7.516l.15.151-.269.922-.225.226h-.969l-.181-.181.311-.871.288-.247h.895zM5.59 20.829H3.877l-.262-.15V3.091H2.379l-.1-.1V1.815l.143-.154h7.371l.213.214v1.108l-.142.173H8.785v8.688l8.807-8.688h-2.086l-.175-.188V1.805l.121-.111h7.49l.132.133v1.07L12.979 13.25h-.373c-.015-.001-.028 0-.042.001l-.02.003c-.045.01-.086.03-.119.06l-.343.295-.004.003c-.033.031-.059.069-.073.111l-.296.83-6.119 6.276zm14.768-3.952l.474-.519h1.334l.309.415-1.265 4.107h.493l-.08.209H19.84l1.124-3.564h-2.015l-1.077 3.391h.424l-.073.174h-1.605l1.107-3.548h-2.096l-1.062 3.339h.436l-.072.209H13.27l1.514-4.46H14.198l.091-.271h1.65l.519.537h.906l.491-.554h1.061l.489.535h.953z",source:"https://commons.wikimedia.org/wiki/File:Vimlogo.svg",hex:"019733"},f6={title:"VSCodium",slug:"vscodium",get svg(){return Ae+"VSCodium"+Ce+this.path+_e},path:"M11.583.54a1.467 1.467 0 0 0-.441 2.032c2.426 3.758 2.999 6.592 2.75 9.075-1.004 4.756-3.187 5.721-5.094 5.721-1.863 0-1.364-3.065.036-3.962.836-.522 1.906-.861 2.728-.861.814 0 1.474-.658 1.474-1.47 0-.812-.66-1.47-1.474-1.47-.96 0-1.901.202-2.78.545.18-.847.246-1.762.014-2.735-.352-1.477-1.367-2.889-3.128-4.257a1.476 1.476 0 0 0-2.069.256c-.5.64-.384 1.564.259 2.063 1.435 1.114 1.908 1.939 2.07 2.618.162.679.032 1.407-.293 2.408-.416 1.349-.9 2.553-1.11 3.708-.105.568-.114 1.187-.14 1.68-1.034-1.006-1.438-2.336-1.438-4.279 0-.811-.66-1.47-1.474-1.47-.814.001-1.473.659-1.473 1.47 0 2.654.776 5.179 2.855 6.863 1.883 1.793 6.67 1.13 6.67 4.01 0 .812 1.19 1.208 2.004 1.208.834 0 1.885-.558 1.885-1.208 0-3.267 3.443-5.253 9.11-5.244A1.472 1.472 0 0 0 24 15.773 1.472 1.472 0 0 0 22.53 14.3c-.388 0-.765.013-1.138.035.634-1.49.915-3.13.857-4.903a1.473 1.473 0 0 0-1.522-1.42 1.472 1.472 0 0 0-1.425 1.517c.076 2.32-.01 4.393-1.74 5.485-.49.31-1.062.58-1.604.58.42-1.145.738-2.353.869-3.655.083-.83.091-1.818-.003-2.585-.148-1.188-.325-2.535.126-3.55.405-.874 1.313-1.24 2.645-1.24.814 0 1.473-.659 1.473-1.47 0-.811-.659-1.47-1.473-1.47-1.98 0-3.481 1.042-4.332 2.3-.445-.95-.987-1.929-1.642-2.943a1.474 1.474 0 0 0-2.037-.44z",source:"https://github.com/VSCodium/vscodium.github.io/blob/ed028c57f10e6432ec55dfc34d4db1a83fba941d/img/codium_cnl.svg",hex:"2F80ED"},d6={title:"WebStorm",slug:"webstorm",get svg(){return Ae+"WebStorm"+Ce+this.path+_e},path:"M0 0v24h24V0H0zm17.889 2.889c1.444 0 2.667.444 3.667 1.278l-1.111 1.667c-.889-.611-1.722-1-2.556-1s-1.278.389-1.278.889v.056c0 .667.444.889 2.111 1.333 2 .556 3.111 1.278 3.111 3v.056c0 2-1.5 3.111-3.611 3.111-1.5-.056-3-.611-4.167-1.667l1.278-1.556c.889.722 1.833 1.222 2.944 1.222.889 0 1.389-.333 1.389-.944v-.056c0-.556-.333-.833-2-1.278-2-.5-3.222-1.056-3.222-3.056v-.056c0-1.833 1.444-3 3.444-3zm-16.111.222h2.278l1.5 5.778 1.722-5.778h1.667l1.667 5.778 1.5-5.778h2.333l-2.833 9.944H9.723L8.112 7.277l-1.667 5.778H4.612L1.779 3.111zm.5 16.389h9V21h-9v-1.5z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},h6={title:"Windsurf",slug:"windsurf",get svg(){return Ae+"Windsurf"+Ce+this.path+_e},path:"M23.55 5.067c-1.2038-.002-2.1806.973-2.1806 2.1765v4.8676c0 .972-.8035 1.7594-1.7597 1.7594-.568 0-1.1352-.286-1.4718-.7659l-4.9713-7.1003c-.4125-.5896-1.0837-.941-1.8103-.941-1.1334 0-2.1533.9635-2.1533 2.153v4.8957c0 .972-.7969 1.7594-1.7596 1.7594-.57 0-1.1363-.286-1.4728-.7658L.4076 5.1598C.2822 4.9798 0 5.0688 0 5.2882v4.2452c0 .2147.0656.4228.1884.599l5.4748 7.8183c.3234.462.8006.8052 1.3509.9298 1.3771.313 2.6446-.747 2.6446-2.0977v-4.893c0-.972.7875-1.7593 1.7596-1.7593h.003a1.798 1.798 0 0 1 1.4718.7658l4.9723 7.0994c.4135.5905 1.05.941 1.8093.941 1.1587 0 2.1515-.9645 2.1515-2.153v-4.8948c0-.972.7875-1.7594 1.7596-1.7594h.194a.22.22 0 0 0 .2204-.2202v-4.622a.22.22 0 0 0-.2203-.2203Z",source:"https://windsurf.com/brand",hex:"0B100F",guidelines:"https://windsurf.com/brand"},m6={title:"Xcode",slug:"xcode",get svg(){return Ae+"Xcode"+Ce+this.path+_e},path:"M19.06 5.3327c.4517-.1936.7744-.2581 1.097-.1936.5163.1291.7744.5163.968.7098.1936.3872.9034.7744 1.2261.8389.2581.0645.7098-.6453 1.0325-1.2906.3227-.5808.5163-1.3552.4517-1.5488-.0645-.1936-.968-.5808-1.1616-.5808-.1291 0-.3872.1291-.8389.0645-.4517-.0645-.9034-.5808-1.1616-.968-.4517-.6453-1.097-1.0325-1.6778-1.3552-.6453-.3227-1.3552-.5163-2.065-.6453-1.0325-.2581-2.065-.4517-3.0975-.3227-.5808.0645-1.2906.1291-1.8069.3227-.0645 0-.1936.1936-.0645.1936s.5808.0645.5808.0645-.5807.1292-.5807.2583c0 .1291.0645.1291.1291.1291.0645 0 1.4842-.0645 2.065 0 .6453.1291 1.3552.4517 1.8069 1.2261.7744 1.4197.4517 2.7749.2581 3.2266-.968 2.1295-8.6472 15.2294-9.0344 16.1328-.3873.9034-.5163 1.4842.5807 2.065s1.6778.3227 2.0005-.0645c.3872-.5163 7.0339-17.1654 9.2925-18.2624zm-3.6138 8.7117h1.5488c1.0325 0 1.2261.5163 1.2261.7098.0645.5163-.1936 1.1616-1.2261 1.1616h-.968l.7744 1.2906c.4517.7744.2581 1.1616 0 1.4197-.3872.3872-1.2261.3872-1.6778-.4517l-.9034-1.5488c-.6453 1.4197-1.2906 2.9684-2.065 4.7753h4.0009c1.9359 0 3.5492-1.6133 3.5492-3.5492V6.5588c-.0645-.1291-.1936-.0645-.2581 0-.3872.4517-1.4842 2.0004-4.001 7.4856zm-9.8087 8.0019h-.3227c-2.3231 0-4.1945-1.8714-4.1945-4.1945V7.0105c0-2.3231 1.8714-4.1945 4.1945-4.1945h9.3571c-.1936-.1936-.968-.5163-1.7423-.4517-.3227 0-.968.1291-1.3552-.1291-.3872-.3227-.3227-.5163-.9034-.5163H4.9277c-2.6458 0-4.7753 2.1295-4.7753 4.7753v11.7447c0 2.6458 2.1295 4.7753 4.4527 4.7108.6452 0 .8388-.5162 1.0324-.9034zM20.4152 6.9459v10.9058c0 2.3231-1.8714 4.1945-4.1945 4.1945H11.897s-.3872 1.0325.8389 1.0325h3.8719c2.6458 0 4.7753-2.1295 4.7753-4.7753V8.8173c.0646-.9034-.7098-1.4842-.9679-1.8714zm-18.5851.0646v10.8413c0 1.9359 1.6133 3.5492 3.5492 3.5492h.5808c0-.0645.7744-1.4197 2.4522-4.2591.1936-.3872.4517-.7744.7098-1.2261H4.4114c-.5808 0-.9034-.3872-.968-.7098-.1291-.5163.1936-1.1616.9034-1.1616h2.3877l3.033-5.2916s-.7098-1.2906-.9034-1.6133c-.2582-.4517-.1291-.9034.129-1.1615.3872-.3872 1.0325-.5808 1.6778.4517l.2581.3872.2581-.3872c.5808-.8389.968-.7744 1.2906-.7098.5163.1291.8389.7098.3872 1.6133L8.864 14.0444h1.3552c.4517-.7744.9034-1.5488 1.3552-2.3877-.0645-.3227-.1291-.7098-.0645-1.0325.0645-.5163.3227-.968.6453-1.3552l.3872.6453c1.2261-2.1295 2.1295-3.9364 2.3877-4.6463.1291-.3872.3227-1.1616.1291-1.8069H5.3794c-2.0005.0001-3.5493 1.6134-3.5493 3.5494zM4.605 17.7872c0-.0645.7744-1.4197.7744-1.4197 1.2261-.3227 1.8069.4517 1.8714.5163 0 0-.8389 1.4842-1.097 1.7423s-.5808.3227-.9034.2581c-.5164-.129-.839-.6453-.6454-1.097z",source:"https://developer.apple.com/develop",hex:"147EFB"},y6={title:"YAML",slug:"yaml",get svg(){return Ae+"YAML"+Ce+this.path+_e},path:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z",source:"https://commons.wikimedia.org/wiki/File:Official_YAML_Logo.svg",hex:"CB171E"},p6={title:"Zed Industries",slug:"zedindustries",get svg(){return Ae+"Zed Industries"+Ce+this.path+_e},path:"M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z",source:"https://github.com/zed-industries/zed/blob/ccc939124fa2f366b3029926447fd0a0c46a85c7/assets/icons/logo_96.svg",hex:"084CCF"},v6=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],o2=190,r2=172,Yc=8,g6={"android-studio":{icon:Um,kind:"simple"},bbedit:{Icon:Il,kind:"lucide"},clion:{icon:Bm,kind:"simple"},coteditor:{Icon:Il,kind:"lucide"},cursor:{icon:km,kind:"simple"},datagrip:{icon:Vm,kind:"simple"},default:{Icon:D3,kind:"lucide"},emacs:{icon:Xm,kind:"simple"},fleet:{Icon:Il,kind:"lucide"},folder:{Icon:w2,kind:"lucide"},ghostty:{icon:Gm,kind:"simple"},goland:{icon:Zm,kind:"simple"},intellij:{icon:Jm,kind:"simple"},iterm2:{icon:$m,kind:"simple"},lapce:{icon:Im,kind:"simple"},macvim:{icon:r6,kind:"simple"},neovide:{icon:e6,kind:"simple"},nova:{Icon:Il,kind:"lucide"},phpstorm:{icon:t6,kind:"simple"},pycharm:{icon:l6,kind:"simple"},rubymine:{icon:i6,kind:"simple"},sublime:{icon:u6,kind:"simple"},terminal:{Icon:kh,kind:"lucide"},textedit:{Icon:z2,kind:"lucide"},textmate:{Icon:Il,kind:"lucide"},vscodium:{icon:f6,kind:"simple"},vscode:{Icon:Il,kind:"lucide"},"vscode-insiders":{Icon:Il,kind:"lucide"},webstorm:{icon:d6,kind:"simple"},windsurf:{icon:h6,kind:"simple"},xcode:{icon:m6,kind:"simple"},zed:{icon:p6,kind:"simple"}};function J2({fileContent:i,filePath:s,openTargets:f,wordWrap:r,onActionMessage:h,onCopyFileContents:v,onOpenFile:N,onWordWrapChange:C}){const[x,y]=A.useState(!1),[M,L]=A.useState(!1),[B,Z]=A.useState(null),[ee,re]=A.useState(null),K=A.useRef(null),X=A.useRef(null),be=A.useRef(null),oe=A.useRef(null),J=A.useRef(null),me=A.useMemo(()=>f.length>0?f:v6,[f]),I=i!==void 0||v!==void 0,$=A.useCallback(()=>{y(!1),L(!1)},[]),Q=A.useCallback(()=>{x&&Z(Xc(K.current,o2)),M&&re(Xc(oe.current,r2))},[x,M]);A.useEffect(()=>{if(!(!x&&!M))return Q(),window.addEventListener("resize",Q),window.addEventListener("scroll",Q,!0),()=>{window.removeEventListener("resize",Q),window.removeEventListener("scroll",Q,!0)}},[x,M,Q]),A.useEffect(()=>{if(!x&&!M)return;const se=w=>{var P,pe,Se;const k=w.target;!((P=be.current)!=null&&P.contains(k))&&!((pe=X.current)!=null&&pe.contains(k))&&!((Se=J.current)!=null&&Se.contains(k))&&$()},Te=w=>{w.key==="Escape"&&$()};return window.addEventListener("pointerdown",se),window.addEventListener("keydown",Te),()=>{window.removeEventListener("pointerdown",se),window.removeEventListener("keydown",Te)}},[x,$,M]);const Ne=async(se,Te)=>{$();try{await navigator.clipboard.writeText(se),h==null||h(`${Te} copied`)}catch(w){h==null||h(`Could not copy ${Te.toLowerCase()}: ${w1(w)}`)}},qe=async()=>{$();try{const se=i??await(v==null?void 0:v());if(se===void 0)return;await navigator.clipboard.writeText(se),h==null||h("File contents copied")}catch(se){h==null||h(`Could not copy file contents: ${w1(se)}`)}},Oe=async(se,Te)=>{$(),h==null||h(`Opening in ${Te}`);try{await N(se),h==null||h(`Opened in ${Te}`)}catch(w){h==null||h(`Could not open in ${Te}: ${w1(w)}`)}},Y=x&&B?Kc.createPortal(u.jsxs("div",{className:"file-actions-popover actions",ref:X,role:"menu",style:B,children:[u.jsxs("button",{role:"menuitem",type:"button",onClick:()=>Ne(s,"Path"),children:[u.jsx(F3,{size:16}),u.jsx("span",{children:"Copy path"})]}),I?u.jsxs("button",{role:"menuitem",type:"button",onClick:qe,children:[u.jsx(z2,{size:16}),u.jsx("span",{children:"Copy file contents"})]}):null,C?u.jsxs("button",{"aria-checked":!!r,role:"menuitemcheckbox",type:"button",onClick:()=>{C(!r),$()},children:[u.jsx(T2,{size:16}),u.jsxs("span",{children:[r?"Disable":"Enable"," word wrap"]})]}):null]}),document.body):null,xe=M&&ee?Kc.createPortal(u.jsx("div",{className:"file-actions-popover open",ref:J,role:"menu",style:ee,children:me.map((se,Te)=>u.jsxs("button",{className:Te===me.length-1?"separated":"",role:"menuitem",type:"button",onClick:()=>Oe(se.target,se.label),children:[u.jsx(b6,{option:se}),u.jsx("span",{children:se.label})]},se.target))}),document.body):null;return u.jsxs("div",{className:"file-actions-menu",ref:be,children:[u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsx("button",{"aria-expanded":x,"aria-haspopup":"menu","aria-label":"File actions",className:"icon-button file-actions-menu-trigger",ref:K,type:"button",onClick:()=>{Z(Xc(K.current,o2)),y(se=>!se),L(!1)},children:u.jsx(I3,{size:17})}),Y]}),u.jsxs("div",{className:"file-actions-menu-group",children:[u.jsxs("button",{"aria-expanded":M,"aria-haspopup":"menu",className:"file-actions-open-button",ref:oe,type:"button",onClick:()=>{re(Xc(oe.current,r2)),L(se=>!se),y(!1)},children:[u.jsx(eh,{size:16}),u.jsx("span",{children:"Open"}),u.jsx(Tn,{size:15})]}),xe]})]})}function Xc(i,s){if(!i)return null;const f=i.getBoundingClientRect(),r=Math.max(Yc,window.innerWidth-f.right),h=Math.max(Yc,window.innerWidth-s-Yc);return{right:Math.min(r,h),top:f.bottom+Yc}}function b6({option:i}){const s=g6[i.target];return s.kind==="simple"?u.jsx("svg",{"aria-hidden":"true",className:"file-actions-brand-icon",focusable:"false",role:"img",style:{color:S6(s.icon)},viewBox:"0 0 24 24",children:u.jsx("path",{d:s.icon.path})}):u.jsx(s.Icon,{"aria-hidden":"true",className:"file-actions-target-icon",size:16})}function S6(i){return i.hex==="000000"?"var(--ide-fg-muted)":`#${i.hex}`}function w1(i){return i instanceof Error?i.message:String(i)}const x6={bash:Ym,css:qm,go:Qm,html:Km,js:Fm,json:Wm,jsx:s2,markdown:Pm,python:n6,ruby:a6,rust:c6,swift:s6,ts:o6,tsx:s2,yaml:y6};function j6(i,s=!1){if(!i||s)return null;const f=x6[i];return f?{icon:f,color:z6(f.hex)}:null}function E6({isBinary:i=!1,language:s}){const f=j6(s,i);return f?u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",style:{color:f.color},title:`${f.icon.title} file`,children:u.jsx("svg",{"aria-hidden":"true",className:"file-language-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",children:u.jsx("path",{d:f.icon.path})})}):u.jsx("span",{"aria-hidden":"true",className:"file-language-icon",title:"File",children:u.jsx(U1,{size:17})})}function z6(i){const s=i.trim().replace(/^#/,"");if(!/^[\dA-Fa-f]{6}$/.test(s))return"currentColor";const f=Number.parseInt(s.slice(0,2),16),r=Number.parseInt(s.slice(2,4),16),h=Number.parseInt(s.slice(4,6),16),v=(.2126*f+.7152*r+.0722*h)/255;return v<.15||v>.9?"currentColor":`#${s}`}function w6({file:i,collapsed:s,viewed:f,onToggle:r,onCopyFileContents:h,onViewedChange:v,onOpenFile:N,openTargets:C}){return u.jsxs("div",{className:"file-header",children:[u.jsxs("button",{className:"file-header-toggle",type:"button",onClick:r,children:[s?u.jsx(j2,{size:18}):u.jsx(Tn,{size:18}),u.jsx(E6,{isBinary:i.isBinary,language:i.language}),u.jsx("span",{className:"file-path",children:i.path}),i.oldPath&&i.oldPath!==i.path?u.jsxs("span",{className:"rename-path",children:["from ",i.oldPath]}):null]}),u.jsxs("span",{className:"stat add",children:["+",i.additions]}),u.jsxs("span",{className:"stat del",children:["-",i.deletions]}),u.jsxs("label",{className:"viewed-toggle",children:[u.jsx("input",{type:"checkbox",checked:f,onChange:x=>v(x.currentTarget.checked)}),u.jsx("span",{children:"Viewed"})]}),u.jsx(J2,{filePath:i.path,openTargets:C,onCopyFileContents:h,onOpenFile:async x=>N(x)})]})}const N6=[];function T6({activeFilePath:i=null,contextSource:s,emptyState:f=null,files:r,record:h,diff:v=h.diff,readOnly:N=!1,reviewId:C,turnId:x,wrapLines:y=!1,viewedFiles:M=new Set,onViewedChange:L=()=>{},openTargets:B=N6,selectedSourcePeek:Z=null,onCopyFileContents:ee,onOpenFile:re=()=>{},onSourcePeek:K=()=>{}}){const[X,be]=A.useState(new Set),oe=A.useRef(i),J=At(Q=>Q.draft),me=At(Q=>Q.setDraft),I=r??v.files;if(i!==oe.current&&(oe.current=i,i&&X.has(i))){const Q=new Set(X);Q.delete(i),be(Q)}const $=(Q,Ne)=>{Ne&&((J==null?void 0:J.filePath)===Q&&me(null),be(qe=>{const Oe=new Set(qe);return Oe.add(Q),Oe})),L(Q,Ne)};return u.jsx("section",{className:"diff-stack",children:I.length===0?f??u.jsx(M6,{record:h}):I.map(Q=>{const Ne=X.has(Q.path);return u.jsxs("article",{className:`file-card ${i===Q.path?"active":""}`,id:K2(Q.path),children:[u.jsx(w6,{file:Q,openTargets:B,collapsed:Ne,viewed:M.has(Q.path),onToggle:()=>{!Ne&&(J==null?void 0:J.filePath)===Q.path&&me(null),be(qe=>{const Oe=new Set(qe);return Oe.has(Q.path)?Oe.delete(Q.path):Oe.add(Q.path),Oe})},onCopyFileContents:ee?()=>ee(Q.path):void 0,onViewedChange:qe=>$(Q.path,qe),onOpenFile:qe=>re(Q.path,qe)}),Ne?null:u.jsx(A6,{contextSource:s,file:Q,readOnly:N,reviewId:C,selectedSourcePeek:Z,turnId:x,wrapLines:y,onSourcePeek:K},`${Q.oldPath??""}:${Q.path}:${U6(C,x,s)}`)]},`${Q.oldPath??Q.path}:${Q.path}`)})})}function M6({record:i}){const s=i.diff.scope;return s.mode==="branch"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No branch changes"}),u.jsxs("p",{children:["Working tree is clean, and ",s.comparison.ref," matches ",s.base.ref,"."]})]}):s.fallbackReason==="missing-branch-base"?u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No changes to review"}),u.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):s.mode==="explicit"?u.jsxs("div",{className:"empty-diff",children:[u.jsxs("h2",{children:["No changes against ",s.base.ref]}),u.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):u.jsxs("div",{className:"empty-diff",children:[u.jsx("h2",{children:"No working changes"}),u.jsx("p",{children:"Working tree is clean."})]})}function A6({contextSource:i,file:s,readOnly:f,reviewId:r,selectedSourcePeek:h,turnId:v,wrapLines:N,onSourcePeek:C}){const x=At(S=>S.comments),y=At(S=>S.resolution),M=At(S=>S.draft),L=At(S=>S.setDraft),{resolvedTheme:B}=Y1(),[Z,ee]=A.useState(null),[re,K]=A.useState(null),[X,be]=A.useState(null),[oe,J]=A.useState({}),me=A.useRef(null),I=A.useRef(null),$=A.useMemo(()=>X1(s),[s]),Q=A.useMemo(()=>new Map($.map(S=>[S.beforeHunkIndex,S])),[$]),Ne=A.useMemo(()=>Hm(s,oe),[oe,s]),qe=A.useMemo(()=>Lm(s,oe),[oe,s]),Oe=A.useMemo(()=>B6(qe),[qe]),Y=A.useMemo(()=>new Map(((y==null?void 0:y.comments)??[]).map(S=>[S.commentId,S])),[y]),xe=x.filter(S=>S.filePath===s.path),se=Z&&re&&Z.filePath===s.path&&Z.side===re.side?D1(Oe,Z.side,Z.line,re.line):null,Te=M&&M.filePath===s.path?D1(Oe,M.side,M.startLine,M.endLine):null,w=S=>{const{start:q,end:ne}=S,F=Math.min(q.line,ne.line),ce=Math.max(q.line,ne.line),ve=q6(qe,Oe,q.side,F,ce)||q.snippet;L({filePath:s.path,side:q.side,startLine:F,endLine:ce,originalSnippet:ve})};A.useEffect(()=>()=>{var S;return(S=I.current)==null?void 0:S.call(I)},[]);const k=S=>{var F;if(S.dataset.filePath!==s.path)return null;const q=S.dataset.side,ne=Number(S.dataset.line);return q!=="L"&&q!=="R"||!Number.isFinite(ne)?null:{filePath:s.path,side:q,line:ne,snippet:((F=S.querySelector("code"))==null?void 0:F.textContent)??""}},P=S=>{const q=k(S);q&&p(q)},pe=(S,q)=>{var ve;if(q.button!==0)return;q.preventDefault(),(ve=I.current)==null||ve.call(I),me.current={start:S,end:S},ee(S),K(S);const ne=Ke=>{var Pe;const Ie=(Pe=document.elementFromPoint(Ke.clientX,Ke.clientY))==null?void 0:Pe.closest(".diff-row");Ie&&P(Ie)},F=Ke=>{ne(Ke);const Ie=me.current;Ie&&w(Ie),O()},ce=()=>O();window.addEventListener("mousemove",ne),window.addEventListener("mouseup",F),window.addEventListener("blur",ce),I.current=()=>{window.removeEventListener("mousemove",ne),window.removeEventListener("mouseup",F),window.removeEventListener("blur",ce),I.current=null}},Se=(S,q)=>{var ne;q.key!=="Enter"&&q.key!==" "||q.repeat||q.defaultPrevented||q.nativeEvent.isComposing||(q.preventDefault(),(ne=I.current)==null||ne.call(I),me.current=null,ee(null),K(null),w({start:S,end:S}))},p=S=>{const q=me.current;(q==null?void 0:q.start.filePath)===s.path&&q.start.side===S.side&&(me.current={...q,end:S},K(S))},O=()=>{var S;(S=I.current)==null||S.call(I),me.current=null,ee(null),K(null)},U=async(S,q)=>{if(!r||!i)return;const ne=Rm(S,oe[S.id],q);if(ne){J(F=>{var ce;return{...F,[S.id]:{lines:((ce=F[S.id])==null?void 0:ce.lines)??[],loading:!0,error:null}}});try{const F=await em({reviewId:r,filePath:S.filePath,oldPath:S.oldPath,turnId:v,source:i,...ne});J(ce=>({...ce,[S.id]:Dm(S,ce[S.id],F.lines)}))}catch(F){J(ce=>{var ve;return{...ce,[S.id]:{lines:((ve=ce[S.id])==null?void 0:ve.lines)??[],loading:!1,error:F instanceof Error?F.message:String(F)}}})}}};A.useEffect(()=>{let S=!1;return B2(async()=>{const{highlightDiffFile:q}=await import("./syntax-CqkLY5rX.js");return{highlightDiffFile:q}},[]).then(({highlightDiffFile:q})=>q(Ne,B)).then(q=>{S||be(q)}).catch(()=>{S||be(null)}),()=>{S=!0}},[Ne,B]);const R=(S,q)=>{const ne=V1(S),F=G1(S);if(F==null)return null;const ce={filePath:s.path,side:ne,line:F,snippet:S.content},ve=Oe.get(Ei(ne,F)),Ke=ve!=null&&d2(ve,se)?se:ve!=null&&d2(ve,Te)?Te:null,Ie=ve!=null&&Ke?H6(ve,Ke.start,Ke.end):"",Pe=M&&M.filePath===s.path&&M.side===ne&&F===M.endLine,cl=xe.filter($e=>$e.side===ne&&F===Math.max($e.startLine,$e.endLine));return u.jsxs("div",{children:[u.jsxs("div",{className:`diff-row ${S.type} ${f?"read-only":""} ${Ie} ${Pe?"range-continues":""}`,"data-file-path":s.path,"data-line":F,"data-side":ne,children:[Ie?u.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,u.jsxs("div",{className:"diff-gutter",children:[u.jsx("span",{className:"line-number old",children:S.oldLine??""}),u.jsx("span",{className:"line-number new",children:S.newLine??""}),u.jsx("span",{className:"marker",children:$2(S)}),f?null:u.jsx("button",{"aria-label":`Comment on ${s.path} line ${F}`,className:"comment-handle",type:"button",onMouseDown:$e=>pe(ce,$e),onKeyDown:$e=>Se(ce,$e),children:u.jsx(Oh,{size:16,strokeWidth:2.4})})]}),u.jsx(R6,{content:S.content,selectedSourcePeek:h&&h.filePath===s.path&&h.oldPath===s.oldPath&&h.side===ne&&h.line===F?h:null,tokens:(X==null?void 0:X.get(Ei(ne,F)))??null,onSourcePeek:($e,xt)=>C({column:xt,filePath:s.path,line:F,oldPath:s.oldPath,side:ne,symbol:$e})})]}),cl.map($e=>{const xt=Y.get($e.id);return u.jsxs("div",{className:`inline-comment ${xt?"resolved":"open"}`,children:[xt?u.jsx(E2,{size:14}):u.jsx(N2,{size:14}),u.jsxs("span",{className:"inline-comment-content",children:[f?u.jsx("span",{className:"inline-comment-status",children:xt?"Resolved":"Open · Needs fix"}):null,u.jsx("span",{className:"inline-comment-body",children:$e.body}),xt!=null&&xt.summary?u.jsx("span",{className:"inline-comment-summary",children:xt.summary}):null]})]},$e.id)}),Pe&&!f?u.jsx(Am,{tone:S.type}):null]},`${q}:${S.type}:${S.oldLine??"x"}:${S.newLine??"x"}:${S.content}`)},V=S=>Om(S,oe[S.id]).map(q=>{var ne,F;return q.type==="lines"?q.lines.map(ce=>R(ce,`context:${S.id}`)):u.jsx(C6,{canExpand:!!(r&&i),direction:_m(S,q),error:((ne=oe[S.id])==null?void 0:ne.error)??null,loading:((F=oe[S.id])==null?void 0:F.loading)??!1,segment:q,onExpand:ce=>{U(S,ce)}},`hidden:${S.id}:${q.oldStart}:${q.newStart}:${q.lineCount}`)});return u.jsx("section",{"aria-label":`${s.path} diff`,className:`diff-scroller ${N?"wrap-lines":""}`,children:u.jsxs("div",{className:`diff-table ${Z?"selecting":""}`,children:[s.isBinary?u.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,s.hunks.map((S,q)=>{const ne=Q.get(q);return u.jsxs("div",{className:"hunk",children:[ne?V(ne):null,u.jsx("div",{className:"hunk-header",children:S.header||`@@ -${S.oldStart},${S.oldLines} +${S.newStart},${S.newLines} @@`}),S.lines.map(F=>R(F,"hunk"))]},`${S.oldStart}:${S.newStart}`)})]})},N?"wrapped":"unwrapped")}function C6({canExpand:i,direction:s,error:f,loading:r,segment:h,onExpand:v}){const N=!i||!!r,C=_6(s);return u.jsxs("div",{className:"hidden-lines",children:[u.jsxs("div",{className:"hidden-lines-main",children:[u.jsx("span",{className:"hidden-lines-count",children:r?u.jsxs(u.Fragment,{children:[u.jsx(B1,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),u.jsx("div",{className:"hidden-lines-actions",children:u.jsx("button",{"aria-label":C,className:"hidden-lines-action",disabled:N,title:C,type:"button",onClick:()=>v(s),children:u.jsx(O6,{direction:s})})})]}),f?u.jsx("div",{className:"hidden-lines-error",children:f}):null]})}function _6(i){return i==="up"?"Expand hidden context upward":i==="down"?"Expand hidden context downward":"Expand hidden context"}function O6({direction:i}){return i==="up"?u.jsx(k3,{size:15}):i==="down"?u.jsx(Tn,{size:15}):u.jsx(G3,{size:15})}function R6({content:i,selectedSourcePeek:s,tokens:f,onSourcePeek:r}){return!f||f.length===0?u.jsx("code",{children:u.jsx(f2,{offsetBase:0,selectedSourcePeek:s,text:i||" ",onSourcePeek:r})}):u.jsx("code",{children:f.map(h=>{const v=L6(h);return u.jsx("span",{style:v,children:u.jsx(f2,{offsetBase:h.offset,selectedSourcePeek:s,style:v,text:h.content,onSourcePeek:r})},`${h.offset}:${h.content}`)})})}const N1=/[A-Za-z_$][\w$]*/g,D6=new Set(["as","async","await","break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","instanceof","interface","let","new","null","of","return","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","with","yield"]);function f2({offsetBase:i,selectedSourcePeek:s,style:f,text:r,onSourcePeek:h}){const v=[];let N=0;N1.lastIndex=0;let C=N1.exec(r);for(;C!==null;){const x=C[0],y=C.index;if(y>N&&v.push(r.slice(N,y)),D6.has(x))v.push(x);else{const M=i+y,L=(s==null?void 0:s.column)===M&&s.symbol===x;v.push(u.jsx("button",{"aria-current":L?"location":void 0,className:`source-symbol ${L?"selected":""}`,"data-source-symbol":x,style:f,tabIndex:-1,type:"button",onClick:B=>{B.preventDefault(),B.stopPropagation(),h(x,M)},onMouseDown:B=>{B.preventDefault()},onKeyDown:B=>{B.key!=="Enter"&&B.key!==" "||(B.preventDefault(),B.stopPropagation(),h(x,M))},children:x},`${i}:${y}:${x}`))}N=y+x.length,C=N1.exec(r)}return N<r.length&&v.push(r.slice(N)),u.jsx(u.Fragment,{children:v.length>0?v:r})}function L6(i){const s={};i.color&&(s.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(s.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(s.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(s.textDecorationLine=f.join(" ")),s}function $2(i){return i.type==="add"?"+":i.type==="delete"?"-":" "}function H6(i,s,f){return s===f?"range-selected range-single":i===s?"range-selected range-start":i===f?"range-selected range-end":"range-selected range-middle"}function U6(i,s,f){return!i||!f?"":f.mode==="turn"?`${i}:${s??""}:turn`:f.mode==="commit"?`${i}:${s??""}:commit:${f.sha}`:`${i}:${s??""}:range:${f.fromSha}:${f.toSha}`}function B6(i){const s=new Map;let f=0;for(const r of i){const h=V1(r),v=G1(r);v!=null&&(s.set(Ei(h,v),f),f+=1)}return s}function D1(i,s,f,r){const h=i.get(Ei(s,f)),v=i.get(Ei(s,r));return h==null||v==null?null:{start:Math.min(h,v),end:Math.max(h,v)}}function d2(i,s){return!!(s&&i>=s.start&&i<=s.end)}function q6(i,s,f,r,h){const v=[],N=D1(s,f,r,h);if(!N)return"";i.forEach((x,y)=>{G1(x)!=null&&y>=N.start&&y<=N.end&&v.push(x)});const C=new Set(v.map(x=>x.type)).size>1;return v.map(x=>C?`${$2(x)}${x.content}`:x.content).join(`
297
- `)}const Qc="__gloss_no_extension__";function k6(i){const s=[i.name];let f=i;for(;f.children.length===1&&f.children[0].type==="directory";)f=f.children[0],s.push(f.name);return{name:s.join("/"),node:f}}function V6(i){const s=new Map;for(const f of i){const r=F2(f.path),h=s.get(r);h?h.count+=1:s.set(r,{id:r,label:r===Qc?"No extension":r,count:1})}return Array.from(s.values()).sort((f,r)=>f.id===Qc?1:r.id===Qc?-1:f.label.localeCompare(r.label,void 0,{sensitivity:"base"}))}function G6(i,s,f){const r=s.trim().toLowerCase();return f.size===0?[]:i.filter(h=>{const v=f.has(F2(h.path)),N=r.length===0||h.path.toLowerCase().includes(r);return v&&N})}function Y6(i){const s={type:"directory",id:"root",name:"",path:"",children:[]},f=new Map;for(const r of i){const h=r.path.split("/").filter(Boolean);let v=s;for(const[N,C]of h.entries()){const x=N===h.length-1,y=h.slice(0,N+1).join("/");x?v.children.push({type:"file",id:`file:${r.path}`,name:C,path:r.path,file:r}):v=X6(v,C,y,f)}}return W2(s),s}function X6(i,s,f,r){let h=r.get(i);h||(h=new Map,r.set(i,h));const v=h.get(s);if(v)return v;const N={type:"directory",id:`dir:${f}`,name:s,path:f,children:[]};return i.children.push(N),h.set(s,N),N}function F2(i){const s=i.split("/").pop()??i,f=s.lastIndexOf(".");return f<=0||f===s.length-1?Qc:s.slice(f).toLowerCase()}function W2(i){i.children.sort((s,f)=>s.type!==f.type?s.type==="directory"?-1:1:s.name.localeCompare(f.name,void 0,{sensitivity:"base"}));for(const s of i.children)s.type==="directory"&&W2(s)}function h2({activeFilePath:i,extensionBuckets:s,files:f,filteredFiles:r,onCollapse:h,onClearExtensions:v,onFileSelect:N,onSearchChange:C,onSelectAllExtensions:x,onToggleExtension:y,searchQuery:M,selectedExtensionIds:L}){const[B,Z]=A.useState(!1),[ee,re]=A.useState(new Set),K=A.useRef(null),X=A.useMemo(()=>Y6(r),[r]),be=A.useMemo(()=>{const I=Z6(X);for(const $ of ee)I.delete($);return I},[ee,X]),J=L.size!==s.length;A.useEffect(()=>{if(!B)return;const I=Q=>{var Ne;(Ne=K.current)!=null&&Ne.contains(Q.target)||Z(!1)},$=Q=>{Q.key==="Escape"&&Z(!1)};return window.addEventListener("pointerdown",I),window.addEventListener("keydown",$),()=>{window.removeEventListener("pointerdown",I),window.removeEventListener("keydown",$)}},[B]);const me=I=>{re($=>{const Q=new Set($);return be.has(I)?Q.add(I):Q.delete(I),Q})};return u.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[u.jsxs("div",{className:"file-tree-header",children:[u.jsx("span",{children:"Changed files"}),h?u.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:h,children:u.jsx(Nh,{size:15})}):null]}),u.jsxs("div",{className:"file-tree-controls",children:[u.jsxs("label",{className:"file-tree-search",children:[u.jsx(Dh,{size:18}),u.jsx("span",{className:"sr-only",children:"Filter files"}),u.jsx("input",{type:"search",value:M,placeholder:"Filter files...",onChange:I=>C(I.target.value)}),M?u.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>C(""),children:u.jsx(Ic,{size:14})}):null]}),u.jsxs("div",{className:"file-tree-filter-shell",ref:K,children:[u.jsx("button",{"aria-label":"Filter by file extension","aria-expanded":B,className:`file-tree-filter-button ${J?"active":""}`,title:"Filter by file extension",type:"button",onClick:()=>Z(I=>!I),children:u.jsx(Bh,{size:17})}),B?u.jsx(Q6,{buckets:s,selectedExtensionIds:L,onClear:v,onSelectAll:x,onToggle:y}):null]})]}),u.jsx("div",{className:"file-tree-summary",children:u.jsxs("span",{children:[r.length," of ",f.length," ",f.length===1?"file":"files"]})}),r.length===0?u.jsx("div",{className:"file-tree-empty",children:f.length===0?"No files changed":"No files match"}):u.jsx("div",{className:"file-tree-list",children:X.children.map(I=>u.jsx(I2,{activeFilePath:i,expandedDirectoryIds:be,node:I,depth:0,onFileSelect:N,onToggleDirectory:me},I.id))})]})}function Q6({buckets:i,onClear:s,onSelectAll:f,onToggle:r,selectedExtensionIds:h}){return u.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[u.jsxs("div",{className:"extension-popover-header",children:[u.jsx("span",{children:"File extensions"}),u.jsxs("div",{className:"extension-popover-actions",children:[u.jsx("button",{type:"button",onClick:f,children:"All"}),u.jsx("button",{type:"button",onClick:s,children:"None"})]})]}),u.jsx("div",{className:"extension-options",children:i.map(v=>{const N=h.has(v.id);return u.jsxs("button",{"aria-checked":N,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>r(v.id),children:[u.jsx("span",{className:"extension-check",children:N?u.jsx(zn,{size:16}):null}),u.jsx("span",{className:"extension-label",children:v.label}),u.jsx("span",{className:"extension-count",children:v.count})]},v.id)})})]})}function I2({activeFilePath:i,depth:s,expandedDirectoryIds:f,node:r,onFileSelect:h,onToggleDirectory:v}){const N={paddingLeft:8+s*14};if(r.type==="directory"){const C=k6(r),x=f.has(C.node.id);return u.jsxs("div",{children:[u.jsxs("button",{"aria-expanded":x,className:"file-tree-row directory",style:N,title:C.node.path,type:"button",onClick:()=>v(C.node.id),children:[x?u.jsx(Tn,{size:16}):u.jsx(j2,{size:16}),x?u.jsx(w2,{size:17}):u.jsx(oh,{size:17}),u.jsx("span",{className:"file-tree-name",children:C.name})]}),x?u.jsx("div",{children:C.node.children.map(y=>u.jsx(I2,{activeFilePath:i,expandedDirectoryIds:f,node:y,depth:s+1,onFileSelect:h,onToggleDirectory:v},y.id))}):null]})}return u.jsx("div",{children:u.jsxs("button",{className:`file-tree-row file ${i===r.path?"active":""}`,style:N,title:r.path,type:"button",onClick:()=>h(r.path),children:[u.jsx("span",{className:"file-tree-spacer"}),u.jsx(U1,{size:16}),u.jsx("span",{className:"file-tree-name",children:r.name}),u.jsxs("span",{className:"file-tree-stats",children:[u.jsxs("span",{className:"stat add",children:["+",r.file.additions]}),u.jsxs("span",{className:"stat del",children:["-",r.file.deletions]})]})]})})}function Z6(i){const s=new Set,f=r=>{for(const h of r.children)h.type==="directory"&&(s.add(h.id),f(h))};return f(i),s}function m2(i){return{response:i,content:i.content,startLine:i.startLine,totalLines:i.totalLines,truncated:i.truncated,hasMoreAbove:i.hasMoreAbove,hasMoreBelow:i.hasMoreBelow}}function K6(i,s,f=y5){if(s==="above"){if(!i.hasMoreAbove)return null;const v=Math.max(1,i.startLine-f),N=i.startLine-v;return N>0?{startLine:v,lineCount:N}:null}if(!i.hasMoreBelow)return null;const r=P2(i)+1,h=Math.min(f,i.totalLines-r+1);return h>0?{startLine:r,lineCount:h}:null}function J6(i,s){var M,L;const f=new Map;for(const[B,Z]of Fc(i.content).entries())f.set(i.startLine+B,Z);for(const[B,Z]of Fc(s.content).entries())f.set(s.startLine+B,Z);const r=Array.from(f.entries()).toSorted(([B],[Z])=>B-Z);if(r.length===0)return i;const h=((M=r[0])==null?void 0:M[0])??i.startLine,v=((L=r.at(-1))==null?void 0:L[0])??P2(i),N=Math.max(i.totalLines,s.totalLines),C=h>1&&(i.hasMoreAbove||s.hasMoreAbove),x=v<N&&(i.hasMoreBelow||s.hasMoreBelow),y=i.truncated&&!i.hasMoreAbove&&!i.hasMoreBelow||s.truncated&&!s.hasMoreAbove&&!s.hasMoreBelow;return{response:i.response,content:r.map(([,B])=>B).join(`
298
- `),startLine:h,totalLines:N,truncated:y||C||x,hasMoreAbove:C,hasMoreBelow:x}}function P2(i){return i.startLine+Fc(i.content).length-1}function Fc(i){const s=i.replace(/\r\n/g,`
299
- `).split(`
300
- `);return s.at(-1)===""&&s.pop(),s.length>0?s:[""]}const $6=16,Wc=360,L1=280,y2=360;function F6({openTargets:i,onCopyFileContents:s,onLoadRange:f,onOpenFile:r,state:h,onClose:v}){const{resolvedTheme:N}=Y1(),C=A.useRef(null),x=A.useRef(null),y=A.useRef(null),M=A.useRef(null),L=A.useRef(null),B=A.useRef(null),Z=A.useRef({above:!1,below:!1}),ee=A.useRef({above:0,below:0}),re=A.useRef(null),K=h.status==="ready"?h.response:null,X=h.status==="error"?t8(h.message,h.symbol):null,[be,oe]=A.useState(null),[J,me]=A.useState(()=>K?m2(K):null),[I,$]=A.useState({above:!1,below:!1}),[Q,Ne]=A.useState(null),[qe,Oe]=A.useState(!1),[Y,xe]=A.useState(null),se=A.useMemo(()=>J?Fc(J.content):[],[J]),Te=J&&K&&(be==null?void 0:be.content)===J.content&&be.language===K.language&&be.theme===N?be.lines:null,w=J?e8(J,I,Q):null,k=A.useCallback(R=>{L.current=R,M.current===null&&(M.current=window.requestAnimationFrame(()=>{M.current=null;const V=L.current,S=C.current;!V||!S||(S.style.top=`${Math.round(V.top)}px`,S.style.left=`${Math.round(V.left)}px`,S.style.right="auto",S.style.bottom="auto",S.style.width=`${Math.round(V.width)}px`,S.style.height=`${Math.round(V.height)}px`,S.style.transform="")}))},[]),P=A.useCallback(()=>{var R;(R=B.current)==null||R.call(B),B.current=null,document.body.classList.remove("source-peek-interacting"),document.body.style.cursor="",document.body.style.userSelect=""},[]),pe=A.useCallback((R,V)=>{const S={...Z.current,[R]:V};Z.current=S,$(S)},[]);A.useEffect(()=>{const R=V=>{V.key==="Escape"&&v()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[v]),A.useEffect(()=>{if(!Y)return;const R=window.setTimeout(()=>xe(null),2200);return()=>window.clearTimeout(R)},[Y]),A.useEffect(()=>{re.current=K,ee.current={above:ee.current.above+1,below:ee.current.below+1},me(K?m2(K):null),Ne(null),Z.current={above:!1,below:!1},$({above:!1,below:!1}),xe(null)},[K]),A.useEffect(()=>{if(!K||!J)return;let R=!1;return B2(async()=>{const{highlightSourceContent:V}=await import("./syntax-CqkLY5rX.js");return{highlightSourceContent:V}},[]).then(({highlightSourceContent:V})=>V(J.content,K.language,N)).then(V=>{R||oe({lines:V,content:J.content,language:K.language,theme:N})}).catch(()=>{R||oe({lines:null,content:J.content,language:K.language,theme:N})}),()=>{R=!0}},[J,K,N]),A.useEffect(()=>{K&&window.requestAnimationFrame(()=>{var R;(R=y.current)==null||R.scrollIntoView({block:"center"})})},[K]),A.useEffect(()=>{const R=()=>{const V=C.current;V&&k(jn(T1(V)))};return window.requestAnimationFrame(()=>k(W6())),window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R)}},[k]),A.useEffect(()=>()=>{P(),M.current!==null&&window.cancelAnimationFrame(M.current)},[P]);const Se=R=>{if(R.button!==0||R.target.closest("button"))return;R.preventDefault(),P();const V=C.current;if(!V)return;const S=jn(T1(V)),q=R.clientX,ne=R.clientY;L.current=S,document.body.classList.add("source-peek-interacting"),document.body.style.cursor="grabbing",document.body.style.userSelect="none",V.classList.add("dragging");const F=Ke=>{const Ie=jn({...S,left:S.left+Ke.clientX-q,top:S.top+Ke.clientY-ne});V.style.transform=`translate3d(${Math.round(Ie.left-S.left)}px, ${Math.round(Ie.top-S.top)}px, 0)`,L.current=Ie},ce=()=>{const Ke=L.current??S;V.classList.remove("dragging"),k(Ke),P()},ve=()=>{window.removeEventListener("pointermove",F),window.removeEventListener("pointerup",ce),V.classList.remove("dragging")};B.current=ve,window.addEventListener("pointermove",F),window.addEventListener("pointerup",ce,{once:!0})},p=R=>V=>{if(V.button!==0)return;V.preventDefault(),V.stopPropagation(),P();const S=C.current;if(!S)return;const q=jn(T1(S)),ne=V.clientX,F=V.clientY,ce=P6(R);L.current=q,document.body.classList.add("source-peek-interacting"),document.body.style.cursor=ce,document.body.style.userSelect="none";const ve=Pe=>{const cl=Pe.clientX-ne,$e=Pe.clientY-F;k(I6(q,R,cl,$e))},Ke=()=>P(),Ie=()=>{window.removeEventListener("pointermove",ve),window.removeEventListener("pointerup",Ke)};B.current=Ie,window.addEventListener("pointermove",ve),window.addEventListener("pointerup",Ke,{once:!0})},O=A.useCallback(async R=>{var F;if(!K||!J||Z.current[R])return;const V=K6(J,R);if(!V)return;const S=ee.current[R]+1;ee.current={...ee.current,[R]:S};const q=()=>re.current===K&&ee.current[R]===S,ne=R==="above"?((F=x.current)==null?void 0:F.scrollHeight)??null:null;pe(R,!0),Ne(null);try{const ce=await f(K.filePath,V.startLine,V.lineCount);if(!q())return;me(ve=>(ve==null?void 0:ve.response)===K?J6(ve,ce):ve),R==="above"&&ne!==null&&window.requestAnimationFrame(()=>{const ve=x.current;ve&&(ve.scrollTop+=ve.scrollHeight-ne)})}catch(ce){q()&&Ne(ce instanceof Error?ce.message:String(ce))}finally{q()&&pe(R,!1)}},[J,f,K,pe]),U=A.useCallback(R=>{const V=R.currentTarget,S=V.scrollHeight-V.scrollTop-V.clientHeight;V.scrollTop<=y2&&O("above"),S<=y2&&O("below")},[O]);return u.jsxs("aside",{"aria-label":"Source peek",className:"source-peek-panel",ref:C,children:[u.jsx("button",{"aria-label":"Resize source peek horizontally",className:"source-peek-resize-handle left",type:"button",onPointerDown:p({left:!0})}),u.jsx("button",{"aria-label":"Resize source peek vertically",className:"source-peek-resize-handle bottom",type:"button",onPointerDown:p({bottom:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-left",type:"button",onPointerDown:p({bottom:!0,left:!0})}),u.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-right",type:"button",onPointerDown:p({bottom:!0,right:!0})}),u.jsxs("header",{className:"source-peek-header",onPointerDown:Se,children:[u.jsxs("div",{className:"source-peek-title",children:[u.jsx(ih,{size:17}),u.jsx("span",{children:"Source peek"})]}),u.jsx(mh,{className:"source-peek-drag-indicator",size:16,"aria-hidden":"true"}),u.jsxs("div",{className:"source-peek-toolbar",children:[K?u.jsx(J2,{filePath:K.filePath,openTargets:i,wordWrap:qe,onActionMessage:xe,onCopyFileContents:()=>s(K.filePath),onOpenFile:R=>r(K.filePath,R),onWordWrapChange:Oe}):null,u.jsx("button",{"aria-label":"Close source peek",className:"icon-button source-peek-close",type:"button",onClick:v,children:u.jsx(Ic,{size:17})})]})]}),h.status==="loading"?u.jsxs("div",{className:"source-peek-status",children:[u.jsx(B1,{className:"spin",size:18}),u.jsxs("span",{children:["Resolving ",h.symbol]})]}):null,h.status==="error"?u.jsx("div",{className:"source-peek-status error",children:u.jsxs("div",{className:"source-peek-error-card",children:[u.jsx(X3,{size:18}),u.jsxs("div",{className:"source-peek-error-copy",children:[u.jsx("strong",{children:X==null?void 0:X.title}),u.jsx("p",{children:X==null?void 0:X.message}),X!=null&&X.hint?u.jsx("span",{children:X.hint}):null]})]})}):null,K?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"source-peek-meta",children:[u.jsx("span",{className:"source-peek-symbol",children:K.targetSymbol}),u.jsxs("span",{className:"source-peek-path",title:`${K.filePath}:${K.line}`,children:[K.filePath,":",K.line]}),Y?u.jsx("span",{className:"source-peek-action-message",children:Y}):null]}),w?u.jsx("div",{className:"source-peek-truncated",children:w}):null,u.jsx("section",{className:`source-peek-code ${qe?"wrap-lines":""}`,"aria-label":K.filePath,ref:x,onScroll:U,children:se.map((R,V)=>{const S=((J==null?void 0:J.startLine)??K.startLine)+V,q=S===K.line;return u.jsxs("div",{className:`source-peek-row ${q?"target":""}`,ref:q?y:null,children:[u.jsx("span",{className:"source-peek-line-number",children:S}),u.jsx("code",{children:l8(R||" ",(Te==null?void 0:Te[V])??null)})]},S)})})]}):null]})}function T1(i){const s=i.getBoundingClientRect();return{height:s.height,left:s.left,top:s.top,width:s.width}}function jn(i){const s=K1();if(window.innerWidth<=980)return{height:window.innerHeight-s*2,left:s,top:s,width:window.innerWidth-s*2};const f=Math.max(Wc,window.innerWidth-s*2),r=Math.max(L1,window.innerHeight-s*2),h=En(i.width,Wc,f),v=En(i.height,L1,r);return{height:v,left:En(i.left,s,window.innerWidth-h-s),top:En(i.top,s,window.innerHeight-v-s),width:h}}function W6(){const i=K1();if(window.innerWidth<=980)return jn({height:window.innerHeight-i*2,left:i,top:i,width:window.innerWidth-i*2});const s=Math.max(i,Math.round(window.innerWidth/3)),f=window.innerWidth-s-i,r=window.innerHeight-i*2;return jn({height:r,left:s,top:i,width:f})}function I6(i,s,f,r){const h=K1();let v=i.left,N=i.width,C=i.height;if(s.left){const x=i.left+i.width,y=h,M=x-Wc;v=En(i.left+f,y,M),N=x-v}return s.right&&(N=En(i.width+f,Wc,window.innerWidth-i.left-h)),s.bottom&&(C=En(i.height+r,L1,window.innerHeight-i.top-h)),jn({height:C,left:v,top:i.top,width:N})}function P6(i){return i.bottom&&i.left?"nesw-resize":i.bottom&&i.right?"nwse-resize":i.bottom?"row-resize":"col-resize"}function e8(i,s,f){return f?`Could not load more source: ${Z1(f)}`:s.above&&s.below?"Loading more source lines above and below.":s.above?"Loading more source lines above.":s.below?"Loading more source lines below.":i.hasMoreAbove||i.hasMoreBelow?"Large source file - more lines load as you scroll.":i.truncated?"Source preview was shortened for a very long line.":null}function t8(i,s){const f=Z1(i);return/no definition found/i.test(f)?{hint:"This can happen for Node built-ins, package exports, or symbols outside the repo.",message:`Gloss could not find a project definition for ${s}.`,title:"No definition found"}:{hint:null,message:f,title:"Source peek unavailable"}}function Z1(i){const s=i.replace(/^\d+:\s*/,"").trim();try{const f=JSON.parse(s);if(typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof f.error=="string")return Z1(f.error)}catch{}return s.replace(/^source peek unavailable:\s*/i,"").trim()}function K1(){return window.innerWidth<=720?8:$6}function En(i,s,f){return Math.min(f,Math.max(s,i))}function l8(i,s){return!s||s.length===0?i:s.map(f=>u.jsx("span",{style:n8(f),children:f.content},`${f.offset}:${f.content}`))}function n8(i){const s={};i.color&&(s.color=i.color),i.fontStyle&&(i.fontStyle&1)!==0&&(s.fontStyle="italic"),i.fontStyle&&(i.fontStyle&2)!==0&&(s.fontWeight=700);const f=[];return i.fontStyle&&(i.fontStyle&4)!==0&&f.push("underline"),i.fontStyle&&(i.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(s.textDecorationLine=f.join(" ")),s}function p2(i){return i instanceof Error?i.message:String(i)}function a8({reviewId:i,reviewScope:s,onSubmitted:f}){const r=At(B=>B.comments),h=At(B=>B.removeComment),[v,N]=A.useState("idle"),[C,x]=A.useState(null),y=A.useRef(!1),M=v!=="submitting"&&v!=="done",L=A.useCallback(async()=>{if(!(!M||y.current)){y.current=!0,N("submitting"),x(null);try{await W5(i,r,s),N("done"),x("Submitted");try{await(f==null?void 0:f())}catch(B){x(`Submitted, but refresh failed: ${p2(B)}`)}}catch(B){y.current=!1,N("error"),x(p2(B))}}},[M,r,f,i,s]);return A.useEffect(()=>{const B=Z=>{Mm(Z)&&(Z.preventDefault(),L())};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[L]),u.jsxs("aside",{className:"submit-bar",children:[u.jsx("div",{className:"comment-list",children:r.length===0?u.jsx("span",{className:"muted",children:"No comments yet"}):r.map(B=>u.jsxs("div",{className:"comment-chip",children:[u.jsxs("span",{children:[B.filePath,":",ji(B,{repeatSideOnEnd:!1})]}),u.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>h(B.id),children:u.jsx(M2,{size:14})})]},B.id))}),u.jsxs("div",{className:"submit-actions",children:[C?u.jsx("span",{className:`submit-message ${v}`,children:C}):null,u.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!M,title:"Submit review (Command+Shift+Enter)",onClick:L,children:[v==="done"?u.jsx(zn,{size:16}):u.jsx(Hh,{size:16}),"Submit ",r.length]})]})]})}const i8="gloss:viewed-files:";function ed(i){return`${i8}${i}`}function M1(i,s=td()){if(!s)return new Set;const f=s.getItem(ed(i));if(!f)return new Set;try{const r=JSON.parse(f);return new Set(Array.isArray(r)?r.filter(h=>typeof h=="string"):[])}catch{return new Set}}function c8(i,s,f=td()){if(!f)return;const r=ed(i);if(s.size===0){f.removeItem(r);return}f.setItem(r,JSON.stringify(Array.from(s).toSorted()))}function td(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function u8(i){return i.type==="review.turn.created"||i.type==="review.submitted"||i.type==="review.updated"}function s8(i,s,f){return i.reviewId!==s||!i.selectedExtensionIds?new Set(f):new Set(f.filter(r=>{var h;return(h=i.selectedExtensionIds)==null?void 0:h.has(r)}))}function o8(i,s){return{icon:(i==null?void 0:i.trim())===s.trim()?"branch":null}}function r8(i,s){const f=(i==null?void 0:i.trim())??"",r=f||"detached";return r===s.trim()?null:{label:r,title:f||"Detached HEAD"}}function ld(i){return i.length>1}const f8=300,d8=560,h8=360,m8={files:[],stats:{files:0,additions:0,deletions:0}},y8=[],p8=[],A1=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],nd={diff:null,error:null,loading:!1},v8=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),g8=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),C1=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]],b8=[{icon:Sh,label:"Match system theme",value:"system"},{icon:Gh,label:"Use light theme",value:"light"},{icon:jh,label:"Use dark theme",value:"dark"}];function S8({reviewId:i}){return u.jsx(E8,{reviewId:i},i)}function x8(){const{preference:i,setPreference:s}=Y1();return u.jsxs("fieldset",{className:"theme-toggle",children:[u.jsx("legend",{className:"sr-only",children:"Theme"}),b8.map(f=>{const r=f.icon;return u.jsx("button",{"aria-label":f.label,"aria-pressed":i===f.value,className:"theme-toggle-option",title:f.label,type:"button",onClick:()=>s(f.value),children:u.jsx(r,{size:15})},f.value)})]})}function j8(i){const s=document.getElementById(K2(i));if(!s)return;const r=s.getBoundingClientRect().top+window.scrollY-156;window.scrollTo({behavior:"smooth",top:Math.max(r,0)})}function E8({reviewId:i}){const[s,f]=A.useState(null),[r,h]=A.useState(null),[v,N]=A.useState(!1),[C,x]=A.useState(null),[y,M]=A.useState(!0),[L,B]=A.useState(!1),[Z,ee]=A.useState(h8),[re,K]=A.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[X,be]=A.useState(null),[oe,J]=A.useState({mode:"all"}),[me,I]=A.useReducer(A8,nd),[$,Q]=A.useState(null),[Ne,qe]=A.useState(null),[Oe,Y]=A.useState(A1),[xe,se]=A.useState(()=>({storageKey:i,files:M1(i)})),[Te,w]=A.useState(null),k=A.useRef(0),P=At(G=>G.reset),pe=At(G=>G.hydrateReview),Se=At(G=>G.setDraft),p=(s==null?void 0:s.turns[s.turns.length-1])??null,O=(p==null?void 0:p.id)??null,U=s&&p?s.turns.find(G=>G.id===X)??p:null,R=s&&U?z8(s,U):null,V=R?Pf(R):null,S=(U==null?void 0:U.diff.commitDiffs)??p8,q=A.useMemo(()=>M8(oe,S),[S,oe]),ne=U&&q.mode==="single"?S.find(G=>G.commit.sha===q.sha)??null:null,F=U&&q.mode==="range"?me.diff??m8:null,ce=U?F??ne??U.diff:null,ve=(ce==null?void 0:ce.files)??y8,Ke=A.useMemo(()=>V6(ve),[ve]),Ie=A.useMemo(()=>Ke.map(G=>G.id),[Ke]),Pe=(s==null?void 0:s.meta.id)??null,cl=!!(Pe&&re.reviewId===Pe),$e=A.useMemo(()=>Pe?s8(re,Pe,Ie):new Set(Ie),[Ie,re,Pe]),xt=cl?re.searchQuery:"",Pl=A.useMemo(()=>G6(ve,xt,$e),[ve,xt,$e]),Jt=U?`${i}:${U.id}`:i;let Tl=xe.files;xe.storageKey!==Jt&&(Tl=M1(Jt),se({storageKey:Jt,files:Tl}));const Mn=C&&Pl.some(G=>G.path===C)?C:null,An=A.useCallback(G=>{f(G),document.title=Pf(G)},[]),Cn=A.useCallback(()=>{k.current+=1,qe(null),Q(null)},[]),dt=A.useCallback(()=>{J({mode:"all"}),I({type:"idle"}),Cn(),Se(null)},[Cn,Se]),xa=A.useCallback(async()=>{var ge;const G=await t2(i),ie=((ge=G.turns[G.turns.length-1])==null?void 0:ge.id)??null;X===null&&O&&ie!==O&&dt(),An(G)},[i,X,O,dt,An]);if(A.useEffect(()=>{let G=!1;return P(),t2(i).then(ie=>{G||An(ie)}).catch(ie=>{G||h(ie instanceof Error?ie.message:String(ie))}),()=>{G=!0}},[i,P,An]),A.useEffect(()=>{let G=!1;return I5().then(({targets:ie})=>{G||Y(ie.length>0?ie:A1)}).catch(()=>{G||Y(A1)}),()=>{G=!0}},[]),A.useEffect(()=>{var G;U&&pe(((G=U.feedback)==null?void 0:G.comments)??[],U.resolution??null)},[pe,U]),A.useEffect(()=>{if(!U||q.mode!=="range")return;let G=!1;return I({type:"loading"}),P5(i,q.fromSha,q.toSha,U.id).then(ie=>{G||I({type:"loaded",diff:ie})}).catch(ie=>{G||I({error:ie instanceof Error?ie.message:String(ie),type:"failed"})}),()=>{G=!0}},[q,U,i]),A.useEffect(()=>{const G=new EventSource(`/api/reviews/${i}/events`);return G.onmessage=ie=>{const ge=x5(ie.data,R5,"review event");u8(ge)&&xa().catch(Fe=>{h(Fe instanceof Error?Fe.message:String(Fe))})},()=>{G.close()}},[i,xa]),r)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx("h1",{children:"Review unavailable"}),u.jsx("p",{children:r})]})});if(!s||!U||!R||!ce||!V)return u.jsx("main",{className:"empty-shell",children:u.jsxs("section",{className:"empty-panel",children:[u.jsx(B1,{className:"spin",size:24}),u.jsx("p",{children:"Loading review"})]})});const zi=U.diff.scope,wi=ce.stats,_n=o8(R.meta.branch,V),ja=r8(R.meta.branch,V),Ni=D8(q),Ea=L8(q),za=U.id!==O||s5(U.status),en=ld(s.turns),vt=q.mode==="range"?me.error:null,Pt=q.mode==="range"&&me.loading,gt=ce.files.filter(G=>Tl.has(G.path)).length,lu=ce.files.length===0?0:Math.round(gt/ce.files.length*100),nu=G=>{K(ie=>({reviewId:s.meta.id,searchQuery:G,selectedExtensionIds:ie.reviewId===s.meta.id?ie.selectedExtensionIds:null}))},au=G=>{K(ie=>{const ge=ie.reviewId===s.meta.id&&ie.selectedExtensionIds?new Set(ie.selectedExtensionIds):new Set(Ie);return ge.has(G)?ge.delete(G):ge.add(G),{reviewId:s.meta.id,searchQuery:ie.reviewId===s.meta.id?ie.searchQuery:"",selectedExtensionIds:ge}})},On=()=>{K(G=>({reviewId:s.meta.id,searchQuery:G.reviewId===s.meta.id?G.searchQuery:"",selectedExtensionIds:null}))},Rn=()=>{K(G=>({reviewId:s.meta.id,searchQuery:G.reviewId===s.meta.id?G.searchQuery:"",selectedExtensionIds:new Set}))},Dn=G=>{x(G),B(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>j8(G),0)})},ul=G=>{G.preventDefault();const ie=G.clientX,ge=Z,Fe=bt=>{const Ml=ge+bt.clientX-ie;ee(Math.min(d8,Math.max(f8,Ml)))},Xe=()=>{window.removeEventListener("pointermove",Fe),window.removeEventListener("pointerup",Xe)};window.addEventListener("pointermove",Fe),window.addEventListener("pointerup",Xe,{once:!0})},Ln=(G,ie)=>{se(ge=>{const Fe=ge.storageKey===Jt?ge.files:M1(Jt),Xe=new Set(Fe);return ie?Xe.add(G):Xe.delete(G),c8(Jt,Xe),{storageKey:Jt,files:Xe}})},tn=async(G,ie)=>{w(null);try{await l2(i,G,U.id,{target:ie})}catch(ge){const Fe=ge instanceof Error?ge.message:String(ge);throw w(Fe),new Error(Fe)}},iu=async(G,ie)=>{w(null);try{await l2(i,G,U.id,{scope:"repo",target:ie})}catch(ge){const Fe=ge instanceof Error?ge.message:String(ge);throw w(Fe),new Error(Fe)}},Ti=async G=>{w(null);try{return(await n2(i,G,U.id)).content}catch(ie){const ge=ie instanceof Error?ie.message:String(ie);throw w(ge),new Error(ge)}},wa=async G=>{w(null);try{return(await n2(i,G,U.id,{scope:"repo"})).content}catch(ie){const ge=ie instanceof Error?ie.message:String(ie);throw w(ge),new Error(ge)}},ln=async G=>{const ie=k.current+1;k.current=ie,qe(G),Q({status:"loading",symbol:G.symbol});try{const ge=await tm({reviewId:i,turnId:U.id,source:Ea,...G});k.current===ie&&Q({status:"ready",response:ge})}catch(ge){k.current===ie&&Q({message:ge instanceof Error?ge.message:String(ge),status:"error",symbol:G.symbol})}},cu=async(G,ie,ge)=>{if(!Ne)throw new Error("source peek selection is no longer available");return lm({reviewId:i,turnId:U.id,source:Ea,side:Ne.side,filePath:G,startLine:ie,lineCount:ge})},Na={activeFilePath:Mn,extensionBuckets:Ke,files:ce.files,filteredFiles:Pl,searchQuery:xt,selectedExtensionIds:$e,onClearExtensions:Rn,onFileSelect:Dn,onSearchChange:nu,onSelectAllExtensions:On,onToggleExtension:au},Mi=u.jsx(h2,{...Na,onCollapse:()=>M(!0)}),Ai=u.jsx(h2,{...Na}),Ta=ce.files.length===0?null:u.jsxs("div",{className:"empty-diff filtered-empty",children:[u.jsx("h2",{children:"No matching files"}),u.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return u.jsx("main",{className:"review-shell",children:u.jsxs("div",{className:"review-split",children:[u.jsxs("div",{className:"review-main-pane",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-header",children:[u.jsxs("div",{className:"topbar-title",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),u.jsxs("div",{className:"review-heading",children:[u.jsx("p",{className:"product-name",children:"Gloss"}),u.jsxs("h1",{children:[_n.icon==="branch"?u.jsx(Zc,{className:"review-title-icon",size:18}):null,u.jsx("span",{className:"review-title-text",children:V})]})]})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(C8,{commitDiffs:S,value:q,onChange:G=>{J(G),G.mode!=="range"&&I({type:"idle"}),Cn(),Se(null)}}),u.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[u.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${lu}%`}}),gt," / ",ce.files.length," viewed"]}),u.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>B(!0),children:u.jsx(U1,{size:16})}),u.jsx("button",{"aria-label":v?"Unwrap lines":"Wrap lines","aria-pressed":v,className:"icon-button wrap-toggle",title:v?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>N(G=>!G),children:v?u.jsx(zh,{size:16}):u.jsx(T2,{size:16})}),u.jsx(x8,{}),ja?u.jsxs("div",{className:"branch-pill",title:ja.title,children:[u.jsx(Zc,{size:16}),u.jsx("span",{children:ja.label})]}):null]})]}),u.jsx(w8,{scope:zi,selectedTurn:U,stats:wi,turns:s.turns,onSelectTurn:G=>{G!==U.id&&dt(),be(G===O?null:G)}})]}),Te?u.jsx("div",{className:"open-file-message error",children:Te}):null,vt?u.jsx("div",{className:"open-file-message error",children:vt}):null,Pt?u.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,u.jsxs("div",{className:`review-body ${y?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${Z}px`},children:[u.jsx("aside",{className:`review-sidebar ${y?"collapsed":""}`,children:y?u.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>M(!1),children:[u.jsx(Mh,{size:17}),u.jsx("span",{children:"Files"}),u.jsx("span",{children:Pl.length})]}):u.jsxs(u.Fragment,{children:[Mi,u.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:ul})]})}),u.jsxs("section",{className:"review-diff-column",children:[za&&!en?u.jsx(B8,{record:R}):null,u.jsx(T6,{activeFilePath:Mn,contextSource:Ea,diff:ce,emptyState:Ta,files:Pl,record:R,readOnly:za,reviewId:i,selectedSourcePeek:Ne,turnId:U.id,viewedFiles:Tl,wrapLines:v,openTargets:Oe,onCopyFileContents:Ti,onOpenFile:tn,onSourcePeek:ln,onViewedChange:Ln})]})]}),L?u.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:u.jsxs("aside",{className:"file-tree-drawer",children:[u.jsxs("div",{className:"file-tree-drawer-header",children:[u.jsx("span",{children:"Changed files"}),u.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>B(!1),children:u.jsx(Ic,{size:16})})]}),Ai]})}):null,za?null:u.jsx(a8,{reviewId:i,reviewScope:Ni,onSubmitted:xa})]}),$?Kc.createPortal(u.jsx(F6,{openTargets:Oe,state:$,onCopyFileContents:wa,onLoadRange:cu,onOpenFile:iu,onClose:Cn}),document.body):null]})})}function z8(i,s){return{...i,meta:{...i.meta,activeTurnId:s.id,status:s.status,submittedAt:s.submittedAt,resolvedAt:s.resolvedAt,feedbackPath:s.feedbackPath,markdownPath:s.markdownPath},diff:s.diff,...s.feedback?{feedback:s.feedback}:{feedback:void 0},...s.resolution?{resolution:s.resolution}:{resolution:void 0}}}function w8({scope:i,selectedTurn:s,stats:f,turns:r,onSelectTurn:h}){return u.jsxs("div",{className:"review-context-bar",children:[u.jsxs("div",{className:"review-context-range",title:`${g2("Base",i.base.ref,i.base.sha)} to ${g2("Compare",i.comparison.ref,i.comparison.sha)}`,children:[u.jsx("span",{className:"review-context-ref",children:v2(i.base.ref,i.base.sha)}),u.jsx(x2,{className:"review-context-arrow",size:14}),u.jsx("span",{className:"review-context-ref",children:v2(i.comparison.ref,i.comparison.sha)})]}),u.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),u.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[u.jsxs("span",{children:[f.files," ",f.files===1?"file":"files"]}),u.jsxs("span",{className:"summary-add",children:["+",f.additions]}),u.jsxs("span",{className:"summary-del",children:["-",f.deletions]})]}),u.jsx(N8,{selectedTurn:s,turns:r,onSelect:h})]})}function N8({selectedTurn:i,turns:s,onSelect:f}){var x;const[r,h]=A.useState(!1),v=A.useRef(null);if(A.useEffect(()=>{if(!r)return;const y=L=>{var B;(B=v.current)!=null&&B.contains(L.target)||h(!1)},M=L=>{L.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",y),window.addEventListener("keydown",M),()=>{window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",M)}},[r]),!ld(s))return null;const N=(x=s[s.length-1])==null?void 0:x.id,C=[...s].reverse();return u.jsxs("div",{className:"turn-selector",ref:v,children:[u.jsxs("button",{"aria-expanded":r,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(y=>!y),children:[u.jsxs("span",{children:["Turn ",i.index," of ",s.length]}),u.jsx("span",{className:`turn-selector-status ${i.status}`,children:i.status}),u.jsx(Tn,{size:14})]}),r?u.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:C.map(y=>{var re;const M=A2(y),L=y.id===i.id,B=y.id===N,Z=(re=y.feedback)!=null&&re.reviewScope?c5(y.feedback.reviewScope,y.diff.commitDiffs??[]):null,ee=T8(y);return u.jsxs("button",{"aria-checked":L,className:`turn-menu-item ${L?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{f(y.id),h(!1)},children:[u.jsxs("span",{className:"turn-menu-title",children:["Turn ",y.index,B?u.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),u.jsxs("span",{className:`turn-menu-meta ${y.status}`,children:[y.status,M.total>0?` · ${M.open} open / ${M.total}`:" · no comments"]}),ee?u.jsx("time",{className:"turn-menu-time",dateTime:ee,children:id(ee)}):null,Z?u.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",Z]}):null]},y.id)})}):null]})}function v2(i,s){return s?`${i} ${s.slice(0,7)}`:i}function g2(i,s,f){return`${i} ${s}${f?` (${f})`:""}`}function T8(i){var s;return i.status==="resolved"?i.resolvedAt??((s=i.resolution)==null?void 0:s.resolvedAt)??null:i.status==="submitted"?i.submittedAt??null:null}function M8(i,s){if(i.mode==="all")return i;if(i.mode==="single")return s.some(h=>h.commit.sha===i.sha)?i:{mode:"all"};const f=s.findIndex(h=>h.commit.sha===i.fromSha),r=s.findIndex(h=>h.commit.sha===i.toSha);return f>=0&&r>=f?i:{mode:"all"}}function A8(i,s){switch(s.type){case"idle":return nd;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:s.diff,error:null,loading:!1};case"failed":return{diff:null,error:s.error,loading:!1}}}function C8({commitDiffs:i,value:s,onChange:f}){const[r,h]=A.useState(!1),[v,N]=A.useState("all"),[C,x]=A.useState(new Set),y=A.useRef(null),M=A.useRef(null),L=A.useMemo(()=>i.map(X=>({sha:X.commit.sha,shortSha:X.commit.shortSha,subject:X.commit.subject,authorName:X.commit.authorName,committedAt:X.commit.committedAt,fileCount:X.files.length})),[i]);if(A.useEffect(()=>{if(!r)return;M.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const X=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),be=()=>{var J;return Array.from(((J=y.current)==null?void 0:J.querySelectorAll(X))??[]).filter(me=>me.offsetParent!==null)};window.requestAnimationFrame(()=>{var J;(J=be()[0]??y.current)==null||J.focus()});const oe=J=>{var Q;if(J.key==="Escape"&&h(!1),J.key!=="Tab")return;const me=be();if(me.length===0){J.preventDefault(),(Q=y.current)==null||Q.focus();return}const I=me[0],$=me[me.length-1];J.shiftKey&&document.activeElement===I?(J.preventDefault(),$.focus()):!J.shiftKey&&document.activeElement===$&&(J.preventDefault(),I.focus())};return window.addEventListener("keydown",oe),()=>{var J;window.removeEventListener("keydown",oe),(J=M.current)==null||J.focus(),M.current=null}},[r]),L.length===0)return null;const B=()=>{const X=_8(s,L);N(s.mode==="all"||X.size===0?"all":"selected"),x(X),h(!0)},Z=ad(C,L),ee=Z.length>0?{from:L[Z[0]],to:L[Z[Z.length-1]],count:Z[Z.length-1]-Z[0]+1}:null,re=v==="all"?`${L.length} ${L.length===1?"commit":"commits"}`:ee?ee.from.sha===ee.to.sha?ee.from.shortSha:`${ee.count} commits · ${ee.from.shortSha} to ${ee.to.shortSha}`:"No commits selected",K=v==="all"||Z.length>0;return u.jsxs("div",{className:"commit-selector",children:[u.jsxs("button",{"aria-expanded":r,className:"commit-picker-trigger",type:"button",onClick:B,children:[u.jsx(dh,{size:16}),u.jsx("span",{className:"commit-picker-trigger-text",children:H8(s,L)}),u.jsx(Tn,{size:16})]}),r?Kc.createPortal(u.jsx("div",{className:"commit-picker-backdrop",children:u.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:y,open:!0,tabIndex:-1,children:[u.jsxs("header",{className:"commit-picker-header",children:[u.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),u.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:u.jsx(Ic,{size:20})})]}),u.jsxs("div",{className:"commit-picker-body",children:[u.jsxs("label",{className:`commit-picker-all ${v==="all"?"selected":""}`,children:[u.jsx("input",{checked:v==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{N("all"),x(new Set)}}),u.jsxs("span",{className:"commit-picker-all-copy",children:[u.jsx("span",{children:"All commits"}),u.jsxs("span",{children:[L.length," ",L.length===1?"commit":"commits"]})]})]}),u.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),u.jsx("div",{className:"commit-picker-list",children:L.map(X=>{const be=v==="selected"&&C.has(X.sha);return u.jsxs("label",{className:`commit-picker-row ${be?"selected":""}`,children:[u.jsx("input",{checked:be,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{N("selected"),x(oe=>O8(oe,X.sha,L))}}),u.jsxs("span",{className:"commit-picker-row-copy",children:[u.jsx("span",{className:"commit-picker-subject",children:X.subject}),u.jsxs("span",{className:"commit-picker-meta",children:[X.authorName," committed ",U8(X.committedAt)," ","· ",X.fileCount," ",X.fileCount===1?"file":"files"]})]}),u.jsx("span",{className:"commit-picker-sha",children:X.shortSha})]},X.sha)})})]}),u.jsxs("footer",{className:"commit-picker-footer",children:[u.jsx("span",{className:"commit-picker-summary",children:re}),u.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),u.jsxs("button",{className:"primary-button",disabled:!K,type:"button",onClick:()=>{if(v==="all"){f({mode:"all"}),h(!1);return}const X=R8(Z,L);X&&(f(X),h(!1))},children:[u.jsx(zn,{size:16}),"Save"]})]})]})}),document.body):null]})}function _8(i,s){if(i.mode==="all")return new Set;if(i.mode==="single")return s.some(h=>h.sha===i.sha)?new Set([i.sha]):new Set;const f=s.findIndex(h=>h.sha===i.fromSha),r=s.findIndex(h=>h.sha===i.toSha);return f<0||r<f?new Set:ba(f,r,s)}function ad(i,s){const f=[];for(const[r,h]of s.entries())i.has(h.sha)&&f.push(r);return f}function O8(i,s,f){const r=f.findIndex(y=>y.sha===s);if(r<0)return i;const h=ad(i,f);if(!i.has(s)){const y=h.length>0?Math.min(h[0],r):r,M=h.length>0?Math.max(h[h.length-1],r):r;return ba(y,M,f)}if(h.length<=1)return new Set;const v=h[0],N=h[h.length-1];if(r<=v)return ba(v+1,N,f);if(r>=N)return ba(v,N-1,f);const C=r-v,x=N-r;return C>=x?ba(v,r-1,f):ba(r+1,N,f)}function ba(i,s,f){return i<0||s<i?new Set:new Set(f.slice(i,s+1).map(r=>r.sha))}function R8(i,s){if(i.length===0)return null;const f=i[0],r=i[i.length-1];return f===r?{mode:"single",sha:s[f].sha}:{mode:"range",fromSha:s[f].sha,toSha:s[r].sha}}function D8(i){return i.mode==="all"?{mode:"all"}:i.mode==="single"?{mode:"single",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function L8(i){return i.mode==="all"?{mode:"turn"}:i.mode==="single"?{mode:"commit",sha:i.sha}:{mode:"range",fromSha:i.fromSha,toSha:i.toSha}}function H8(i,s){if(i.mode==="all")return"All commits";if(i.mode==="single"){const v=s.find(N=>N.sha===i.sha);return v?`${v.shortSha} ${v.subject}`:"One commit"}const f=s.findIndex(v=>v.sha===i.fromSha),r=s.findIndex(v=>v.sha===i.toSha);return f<0||r<f?"Commit range":`${r-f+1} commits · ${s[f].shortSha} to ${s[r].shortSha}`}function U8(i){const s=new Date(i);if(Number.isNaN(s.getTime()))return"recently";const f=Math.round((s.getTime()-Date.now())/1e3),[r,h]=C1.find(([,v])=>Math.abs(f)>=v)??C1[C1.length-1];return v8.format(Math.round(f/h),r)}function B8({record:i}){var r;const s=q8(i);if(!s)return null;const f=i.meta.status==="resolved"?i.meta.resolvedAt??((r=i.resolution)==null?void 0:r.resolvedAt):i.meta.submittedAt;return u.jsxs("section",{className:`review-state-banner ${i.meta.status}`,children:[u.jsxs("div",{className:"review-state-title",children:[u.jsx(E2,{size:16}),u.jsx("span",{children:s.title})]}),u.jsx("p",{children:s.body}),f?u.jsx("time",{dateTime:f,children:id(f)}):null]})}function q8(i){const s=i.meta.status,f=A2(i),r=f.total>0?`${f.resolved} of ${f.total} comments resolved`:null;return s==="submitted"?{title:f.resolved>0&&r?`Submitted · ${r}`:"Submitted",body:f.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:s==="resolved"?{title:r?`Resolved · ${r}`:"Resolved",body:"This feedback turn is resolved."}:null}function id(i){return g8.format(new Date(i))}const k8="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",V8=`1. Run gloss open --json from the repo root unless the user names a base ref.
301
- 2. Wait for the browser review to be submitted.
302
- 3. Read feedbackPath from the JSON output.
303
- 4. Address each comment in file and line order.
304
- 5. Validate the fix with the narrowest relevant checks.
305
- 6. Optionally mark individual comments handled:
306
- gloss resolve <reviewId> --comment <commentId> --summary "<what changed>"
307
- 7. Run gloss resolve <reviewId> --summary "<what changed>", then summarize what changed.`;function G8(){return u.jsxs("main",{className:"setup-page",children:[u.jsxs("nav",{className:"setup-nav","aria-label":"Gloss setup",children:[u.jsxs("a",{className:"marketing-wordmark",href:"/",children:[u.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),"Gloss"]}),u.jsx("a",{href:"/setup.md",children:"Raw setup.md"})]}),u.jsxs("header",{className:"setup-header",children:[u.jsx("h1",{children:"Set up Gloss for agent reviews."}),u.jsx("p",{children:"Install the CLI, then add the Gloss instruction block to the file your coding agent already reads."})]}),u.jsxs("section",{className:"setup-section",children:[u.jsx("h2",{children:"Install"}),u.jsx("pre",{children:"brew install iamrajjoshi/tap/gloss"}),u.jsx("pre",{children:"npm install -g getgloss"}),u.jsx("pre",{children:"gloss help"})]}),u.jsxs("section",{className:"setup-section",children:[u.jsx("h2",{children:"Agent Instruction"}),u.jsx("p",{children:"Give a new agent chat this instruction:"}),u.jsx("pre",{children:"Install Gloss with Homebrew or npm. Then read https://getgloss.dev/setup.md."})]}),u.jsxs("section",{className:"setup-section",children:[u.jsx("h2",{children:"Claude Code Skill"}),u.jsxs("p",{children:["Gloss ships a packaged skill at ",u.jsx("code",{children:"skill/SKILL.md"}),". Install it when you want Claude Code to know when and how to use Gloss."]}),u.jsx("pre",{children:k8}),u.jsx("p",{children:"The skill pairs the CLI with the browser app:"}),u.jsx("pre",{children:V8})]}),u.jsxs("section",{className:"setup-section",children:[u.jsx("h2",{children:"Persistent Instructions"}),u.jsx("p",{children:"Add the canonical Gloss block to the instruction file your agent actually loads."}),u.jsx("pre",{children:"curl -fsSL https://getgloss.dev/prompt.md >> /absolute/path/to/AGENTS.md"}),u.jsxs("ul",{children:[u.jsxs("li",{children:["Codex usually reads ",u.jsx("code",{children:"${CODEX_HOME:-$HOME/.codex}/AGENTS.md"}),"."]}),u.jsxs("li",{children:["Claude Code usually reads ",u.jsx("code",{children:"$HOME/.claude/CLAUDE.md"}),"."]}),u.jsxs("li",{children:["Project-local agents often read ",u.jsx("code",{children:"AGENTS.md"})," from the repo root."]})]})]}),u.jsxs("section",{className:"setup-section",children:[u.jsx("h2",{children:"Use"}),u.jsx("pre",{children:"gloss open --json"}),u.jsxs("p",{children:["Leave the command running. Gloss exits after the browser review is submitted and writes feedback under ",u.jsx("code",{children:"~/.gloss/reviews/<reviewId>/"}),"."]}),u.jsxs("p",{children:["In the browser review, ",u.jsx("code",{children:"Command+Enter"})," saves the active draft comment and"," ",u.jsx("code",{children:"Command+Shift+Enter"})," submits already-saved comments."]}),u.jsx("p",{children:"Start a fresh session with the same command for follow-up diffs."})]}),u.jsx("section",{className:"setup-note",children:u.jsxs("p",{children:["Agents should read ",u.jsx("a",{href:"/setup.md",children:"/setup.md"}),". This page is the browser-friendly version."]})})]})}function Y8(){if(window.location.pathname==="/setup"||window.location.pathname==="/setup/")return u.jsx(G8,{});const i=/^\/review\/([^/]+)/.exec(window.location.pathname);return i?u.jsx(S8,{reviewId:i[1]}):u.jsx(a5,{})}N3.createRoot(document.getElementById("root")).render(u.jsx(Si.StrictMode,{children:u.jsx(zm,{children:u.jsx(Y8,{})})}));export{G1 as a,V1 as b,Ei as d};