@clef-sh/cli 0.1.6-beta.32 → 0.1.7-beta.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,58 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ha={exports:{}},vl={},ga={exports:{}},B={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 dr=Symbol.for("react.element"),Mc=Symbol.for("react.portal"),Ic=Symbol.for("react.fragment"),Lc=Symbol.for("react.strict_mode"),Oc=Symbol.for("react.profiler"),Bc=Symbol.for("react.provider"),Ac=Symbol.for("react.context"),Wc=Symbol.for("react.forward_ref"),Uc=Symbol.for("react.suspense"),bc=Symbol.for("react.memo"),Hc=Symbol.for("react.lazy"),Ji=Symbol.iterator;function Vc(e){return e===null||typeof e!="object"?null:(e=Ji&&e[Ji]||e["@@iterator"],typeof e=="function"?e:null)}var va={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xa=Object.assign,Sa={};function jn(e,t,n){this.props=e,this.context=t,this.refs=Sa,this.updater=n||va}jn.prototype.isReactComponent={};jn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ka(){}ka.prototype=jn.prototype;function ni(e,t,n){this.props=e,this.context=t,this.refs=Sa,this.updater=n||va}var ri=ni.prototype=new ka;ri.constructor=ni;xa(ri,jn.prototype);ri.isPureReactComponent=!0;var Zi=Array.isArray,wa=Object.prototype.hasOwnProperty,li={current:null},ja={key:!0,ref:!0,__self:!0,__source:!0};function Ca(e,t,n){var r,l={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)wa.call(t,r)&&!ja.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var c=Array(u),p=0;p<u;p++)c[p]=arguments[p+2];l.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:dr,type:e,key:o,ref:a,props:l,_owner:li.current}}function Kc(e,t){return{$$typeof:dr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function oi(e){return typeof e=="object"&&e!==null&&e.$$typeof===dr}function Qc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var es=/\/+/g;function Nl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qc(""+e.key):t.toString(36)}function Mr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case dr:case Mc:a=!0}}if(a)return a=e,l=l(a),e=r===""?"."+Nl(a,0):r,Zi(l)?(n="",e!=null&&(n=e.replace(es,"$&/")+"/"),Mr(l,t,n,"",function(p){return p})):l!=null&&(oi(l)&&(l=Kc(l,n+(!l.key||a&&a.key===l.key?"":(""+l.key).replace(es,"$&/")+"/")+e)),t.push(l)),1;if(a=0,r=r===""?".":r+":",Zi(e))for(var u=0;u<e.length;u++){o=e[u];var c=r+Nl(o,u);a+=Mr(o,t,n,c,l)}else if(c=Vc(e),typeof c=="function")for(e=c.call(e),u=0;!(o=e.next()).done;)o=o.value,c=r+Nl(o,u++),a+=Mr(o,t,n,c,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function gr(e,t,n){if(e==null)return e;var r=[],l=0;return Mr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function qc(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var we={current:null},Ir={transition:null},Yc={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:Ir,ReactCurrentOwner:li};function Ea(){throw Error("act(...) is not supported in production builds of React.")}B.Children={map:gr,forEach:function(e,t,n){gr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gr(e,function(){t++}),t},toArray:function(e){return gr(e,function(t){return t})||[]},only:function(e){if(!oi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};B.Component=jn;B.Fragment=Ic;B.Profiler=Oc;B.PureComponent=ni;B.StrictMode=Lc;B.Suspense=Uc;B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yc;B.act=Ea;B.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=xa({},e.props),l=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=li.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)wa.call(t,c)&&!ja.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&u!==void 0?u[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){u=Array(c);for(var p=0;p<c;p++)u[p]=arguments[p+2];r.children=u}return{$$typeof:dr,type:e.type,key:l,ref:o,props:r,_owner:a}};B.createContext=function(e){return e={$$typeof:Ac,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bc,_context:e},e.Consumer=e};B.createElement=Ca;B.createFactory=function(e){var t=Ca.bind(null,e);return t.type=e,t};B.createRef=function(){return{current:null}};B.forwardRef=function(e){return{$$typeof:Wc,render:e}};B.isValidElement=oi;B.lazy=function(e){return{$$typeof:Hc,_payload:{_status:-1,_result:e},_init:qc}};B.memo=function(e,t){return{$$typeof:bc,type:e,compare:t===void 0?null:t}};B.startTransition=function(e){var t=Ir.transition;Ir.transition={};try{e()}finally{Ir.transition=t}};B.unstable_act=Ea;B.useCallback=function(e,t){return we.current.useCallback(e,t)};B.useContext=function(e){return we.current.useContext(e)};B.useDebugValue=function(){};B.useDeferredValue=function(e){return we.current.useDeferredValue(e)};B.useEffect=function(e,t){return we.current.useEffect(e,t)};B.useId=function(){return we.current.useId()};B.useImperativeHandle=function(e,t,n){return we.current.useImperativeHandle(e,t,n)};B.useInsertionEffect=function(e,t){return we.current.useInsertionEffect(e,t)};B.useLayoutEffect=function(e,t){return we.current.useLayoutEffect(e,t)};B.useMemo=function(e,t){return we.current.useMemo(e,t)};B.useReducer=function(e,t,n){return we.current.useReducer(e,t,n)};B.useRef=function(e){return we.current.useRef(e)};B.useState=function(e){return we.current.useState(e)};B.useSyncExternalStore=function(e,t,n){return we.current.useSyncExternalStore(e,t,n)};B.useTransition=function(){return we.current.useTransition()};B.version="18.3.1";ga.exports=B;var C=ga.exports;const za=Nc(C);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 Gc=C,Xc=Symbol.for("react.element"),Jc=Symbol.for("react.fragment"),Zc=Object.prototype.hasOwnProperty,ed=Gc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,td={key:!0,ref:!0,__self:!0,__source:!0};function Fa(e,t,n){var r,l={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Zc.call(t,r)&&!td.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:Xc,type:e,key:o,ref:a,props:l,_owner:ed.current}}vl.Fragment=Jc;vl.jsx=Fa;vl.jsxs=Fa;ha.exports=vl;var s=ha.exports,ao={},_a={exports:{}},$e={},Ra={exports:{}},Ta={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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
+ */(function(e){function t(D,N){var L=D.length;D.push(N);e:for(;0<L;){var J=L-1>>>1,le=D[J];if(0<l(le,N))D[J]=N,D[L]=le,L=J;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var N=D[0],L=D.pop();if(L!==N){D[0]=L;e:for(var J=0,le=D.length,Yt=le>>>1;J<Yt;){var tt=2*(J+1)-1,zn=D[tt],Ye=tt+1,F=D[Ye];if(0>l(zn,L))Ye<le&&0>l(F,zn)?(D[J]=F,D[Ye]=L,J=Ye):(D[J]=zn,D[tt]=L,J=tt);else if(Ye<le&&0>l(F,L))D[J]=F,D[Ye]=L,J=Ye;else break e}}return N}function l(D,N){var L=D.sortIndex-N.sortIndex;return L!==0?L:D.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();e.unstable_now=function(){return a.now()-u}}var c=[],p=[],h=1,g=null,m=3,S=!1,k=!1,z=!1,_=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(D){for(var N=n(p);N!==null;){if(N.callback===null)r(p);else if(N.startTime<=D)r(p),N.sortIndex=N.expirationTime,t(c,N);else break;N=n(p)}}function v(D){if(z=!1,d(D),!k)if(n(c)!==null)k=!0,M(j);else{var N=n(p);N!==null&&ue(v,N.startTime-D)}}function j(D,N){k=!1,z&&(z=!1,y(T),T=-1),S=!0;var L=m;try{for(d(N),g=n(c);g!==null&&(!(g.expirationTime>N)||D&&!Y());){var J=g.callback;if(typeof J=="function"){g.callback=null,m=g.priorityLevel;var le=J(g.expirationTime<=N);N=e.unstable_now(),typeof le=="function"?g.callback=le:g===n(c)&&r(c),d(N)}else r(c);g=n(c)}if(g!==null)var Yt=!0;else{var tt=n(p);tt!==null&&ue(v,tt.startTime-N),Yt=!1}return Yt}finally{g=null,m=L,S=!1}}var w=!1,R=null,T=-1,O=5,$=-1;function Y(){return!(e.unstable_now()-$<O)}function ie(){if(R!==null){var D=e.unstable_now();$=D;var N=!0;try{N=R(!0,D)}finally{N?x():(w=!1,R=null)}}else w=!1}var x;if(typeof f=="function")x=function(){f(ie)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,V=I.port2;I.port1.onmessage=ie,x=function(){V.postMessage(null)}}else x=function(){_(ie,0)};function M(D){R=D,w||(w=!0,x())}function ue(D,N){T=_(function(){D(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){k||S||(k=!0,M(j))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var N=3;break;default:N=m}var L=m;m=N;try{return D()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,N){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var L=m;m=D;try{return N()}finally{m=L}},e.unstable_scheduleCallback=function(D,N,L){var J=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?J+L:J):L=J,D){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=L+le,D={id:h++,callback:N,priorityLevel:D,startTime:L,expirationTime:le,sortIndex:-1},L>J?(D.sortIndex=L,t(p,D),n(c)===null&&D===n(p)&&(z?(y(T),T=-1):z=!0,ue(v,L-J))):(D.sortIndex=le,t(c,D),k||S||(k=!0,M(j))),D},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(D){var N=m;return function(){var L=m;m=N;try{return D.apply(this,arguments)}finally{m=L}}}})(Ta);Ra.exports=Ta;var nd=Ra.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 rd=C,Pe=nd;function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var Da=new Set,qn={};function Qt(e,t){hn(e,t),hn(e+"Capture",t)}function hn(e,t){for(qn[e]=t,e=0;e<t.length;e++)Da.add(t[e])}var at=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uo=Object.prototype.hasOwnProperty,ld=/^[: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]*$/,ts={},ns={};function od(e){return uo.call(ns,e)?!0:uo.call(ts,e)?!1:ld.test(e)?ns[e]=!0:(ts[e]=!0,!1)}function id(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sd(e,t,n,r){if(t===null||typeof t>"u"||id(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,l,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var ii=/[\-:]([a-z])/g;function si(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ii,si);me[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ii,si);me[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ii,si);me[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function ai(e,t,n,r){var l=me.hasOwnProperty(t)?me[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sd(t,n,l,r)&&(n=null),r||l===null?od(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ft=rd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=Symbol.for("react.element"),Xt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),ui=Symbol.for("react.strict_mode"),co=Symbol.for("react.profiler"),Pa=Symbol.for("react.provider"),$a=Symbol.for("react.context"),ci=Symbol.for("react.forward_ref"),fo=Symbol.for("react.suspense"),po=Symbol.for("react.suspense_list"),di=Symbol.for("react.memo"),yt=Symbol.for("react.lazy"),Na=Symbol.for("react.offscreen"),rs=Symbol.iterator;function Fn(e){return e===null||typeof e!="object"?null:(e=rs&&e[rs]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,Ml;function Mn(e){if(Ml===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ml=t&&t[1]||""}return`
34
+ `+Ml+e}var Il=!1;function Ll(e,t){if(!e||Il)return"";Il=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(p){var r=p}Reflect.construct(e,[],t)}else{try{t.call()}catch(p){r=p}e.call(t.prototype)}else{try{throw Error()}catch(p){r=p}e()}}catch(p){if(p&&r&&typeof p.stack=="string"){for(var l=p.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),a=l.length-1,u=o.length-1;1<=a&&0<=u&&l[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(l[a]!==o[u]){if(a!==1||u!==1)do if(a--,u--,0>u||l[a]!==o[u]){var c=`
37
+ `+l[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=u);break}}}finally{Il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function ad(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=Ll(e.type,!1),e;case 11:return e=Ll(e.type.render,!1),e;case 1:return e=Ll(e.type,!0),e;default:return""}}function mo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jt:return"Fragment";case Xt:return"Portal";case co:return"Profiler";case ui:return"StrictMode";case fo:return"Suspense";case po:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $a:return(e.displayName||"Context")+".Consumer";case Pa:return(e._context.displayName||"Context")+".Provider";case ci:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case di:return t=e.displayName||null,t!==null?t:mo(e.type)||"Memo";case yt:t=e._payload,e=e._init;try{return mo(e(t))}catch{}}return null}function ud(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mo(t);case 8:return t===ui?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Tt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ma(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cd(e){var t=Ma(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){e._valueTracker||(e._valueTracker=cd(e))}function Ia(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ma(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(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}}function yo(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ls(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function La(e,t){t=t.checked,t!=null&&ai(e,"checked",t,!1)}function ho(e,t){La(e,t);var n=Tt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?go(e,t.type,n):t.hasOwnProperty("defaultValue")&&go(e,t.type,Tt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function os(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function go(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var In=Array.isArray;function cn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Tt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function vo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(E(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function is(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(E(92));if(In(n)){if(1<n.length)throw Error(E(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Tt(n)}}function Oa(e,t){var n=Tt(t.value),r=Tt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ss(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ba(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ba(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Sr,Aa=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Sr=Sr||document.createElement("div"),Sr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Sr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dd=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){dd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function Wa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function Ua(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Wa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var fd=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function So(e,t){if(t){if(fd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function ko(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 wo=null;function fi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jo=null,dn=null,fn=null;function as(e){if(e=mr(e)){if(typeof jo!="function")throw Error(E(280));var t=e.stateNode;t&&(t=jl(t),jo(e.stateNode,e.type,t))}}function ba(e){dn?fn?fn.push(e):fn=[e]:dn=e}function Ha(){if(dn){var e=dn,t=fn;if(fn=dn=null,as(e),t)for(e=0;e<t.length;e++)as(t[e])}}function Va(e,t){return e(t)}function Ka(){}var Ol=!1;function Qa(e,t,n){if(Ol)return e(t,n);Ol=!0;try{return Va(e,t,n)}finally{Ol=!1,(dn!==null||fn!==null)&&(Ka(),Ha())}}function Gn(e,t){var n=e.stateNode;if(n===null)return null;var r=jl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Co=!1;if(at)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){Co=!0}}),window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{Co=!1}function pd(e,t,n,r,l,o,a,u,c){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(h){this.onError(h)}}var An=!1,qr=null,Yr=!1,Eo=null,md={onError:function(e){An=!0,qr=e}};function yd(e,t,n,r,l,o,a,u,c){An=!1,qr=null,pd.apply(md,arguments)}function hd(e,t,n,r,l,o,a,u,c){if(yd.apply(this,arguments),An){if(An){var p=qr;An=!1,qr=null}else throw Error(E(198));Yr||(Yr=!0,Eo=p)}}function qt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function qa(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 us(e){if(qt(e)!==e)throw Error(E(188))}function gd(e){var t=e.alternate;if(!t){if(t=qt(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return us(l),e;if(o===r)return us(l),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=l,r=o;else{for(var a=!1,u=l.child;u;){if(u===n){a=!0,n=l,r=o;break}if(u===r){a=!0,r=l,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=l;break}if(u===r){a=!0,r=o,n=l;break}u=u.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function Ya(e){return e=gd(e),e!==null?Ga(e):null}function Ga(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ga(e);if(t!==null)return t;e=e.sibling}return null}var Xa=Pe.unstable_scheduleCallback,cs=Pe.unstable_cancelCallback,vd=Pe.unstable_shouldYield,xd=Pe.unstable_requestPaint,re=Pe.unstable_now,Sd=Pe.unstable_getCurrentPriorityLevel,pi=Pe.unstable_ImmediatePriority,Ja=Pe.unstable_UserBlockingPriority,Gr=Pe.unstable_NormalPriority,kd=Pe.unstable_LowPriority,Za=Pe.unstable_IdlePriority,xl=null,Ze=null;function wd(e){if(Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ve=Math.clz32?Math.clz32:Ed,jd=Math.log,Cd=Math.LN2;function Ed(e){return e>>>=0,e===0?32:31-(jd(e)/Cd|0)|0}var kr=64,wr=4194304;function Ln(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var u=a&~l;u!==0?r=Ln(u):(o&=a,o!==0&&(r=Ln(o)))}else a=n&~l,a!==0?r=Ln(a):o!==0&&(r=Ln(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ve(t),l=1<<n,r|=e[n],t&=~l;return r}function zd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ve(o),u=1<<a,c=l[a];c===-1?(!(u&n)||u&r)&&(l[a]=zd(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function zo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function eu(){var e=kr;return kr<<=1,!(kr&4194240)&&(kr=64),e}function Bl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function _d(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ve(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function mi(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var H=0;function tu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nu,yi,ru,lu,ou,Fo=!1,jr=[],kt=null,wt=null,jt=null,Xn=new Map,Jn=new Map,gt=[],Rd="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 submit".split(" ");function ds(e,t){switch(e){case"focusin":case"focusout":kt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jn.delete(t.pointerId)}}function Rn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=mr(t),t!==null&&yi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Td(e,t,n,r,l){switch(t){case"focusin":return kt=Rn(kt,e,t,n,r,l),!0;case"dragenter":return wt=Rn(wt,e,t,n,r,l),!0;case"mouseover":return jt=Rn(jt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Xn.set(o,Rn(Xn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Jn.set(o,Rn(Jn.get(o)||null,e,t,n,r,l)),!0}return!1}function iu(e){var t=Lt(e.target);if(t!==null){var n=qt(t);if(n!==null){if(t=n.tag,t===13){if(t=qa(n),t!==null){e.blockedOn=t,ou(e.priority,function(){ru(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Lr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_o(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);wo=r,n.target.dispatchEvent(r),wo=null}else return t=mr(n),t!==null&&yi(t),e.blockedOn=n,!1;t.shift()}return!0}function fs(e,t,n){Lr(e)&&n.delete(t)}function Dd(){Fo=!1,kt!==null&&Lr(kt)&&(kt=null),wt!==null&&Lr(wt)&&(wt=null),jt!==null&&Lr(jt)&&(jt=null),Xn.forEach(fs),Jn.forEach(fs)}function Tn(e,t){e.blockedOn===t&&(e.blockedOn=null,Fo||(Fo=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,Dd)))}function Zn(e){function t(l){return Tn(l,e)}if(0<jr.length){Tn(jr[0],e);for(var n=1;n<jr.length;n++){var r=jr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kt!==null&&Tn(kt,e),wt!==null&&Tn(wt,e),jt!==null&&Tn(jt,e),Xn.forEach(t),Jn.forEach(t),n=0;n<gt.length;n++)r=gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<gt.length&&(n=gt[0],n.blockedOn===null);)iu(n),n.blockedOn===null&&gt.shift()}var pn=ft.ReactCurrentBatchConfig,Jr=!0;function Pd(e,t,n,r){var l=H,o=pn.transition;pn.transition=null;try{H=1,hi(e,t,n,r)}finally{H=l,pn.transition=o}}function $d(e,t,n,r){var l=H,o=pn.transition;pn.transition=null;try{H=4,hi(e,t,n,r)}finally{H=l,pn.transition=o}}function hi(e,t,n,r){if(Jr){var l=_o(e,t,n,r);if(l===null)Yl(e,t,r,Zr,n),ds(e,r);else if(Td(l,e,t,n,r))r.stopPropagation();else if(ds(e,r),t&4&&-1<Rd.indexOf(e)){for(;l!==null;){var o=mr(l);if(o!==null&&nu(o),o=_o(e,t,n,r),o===null&&Yl(e,t,r,Zr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Yl(e,t,r,null,n)}}var Zr=null;function _o(e,t,n,r){if(Zr=null,e=fi(r),e=Lt(e),e!==null)if(t=qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=qa(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zr=e,null}function su(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Sd()){case pi:return 1;case Ja:return 4;case Gr:case kd:return 16;case Za:return 536870912;default:return 16}default:return 16}}var xt=null,gi=null,Or=null;function au(){if(Or)return Or;var e,t=gi,n=t.length,r,l="value"in xt?xt.value:xt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[o-r];r++);return Or=l.slice(e,1<r?1-r:void 0)}function Br(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 Cr(){return!0}function ps(){return!1}function Ne(e){function t(n,r,l,o,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Cr:ps,this.isPropagationStopped=ps,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Cr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Cr)},persist:function(){},isPersistent:Cr}),t}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vi=Ne(Cn),pr=te({},Cn,{view:0,detail:0}),Nd=Ne(pr),Al,Wl,Dn,Sl=te({},pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xi,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!==Dn&&(Dn&&e.type==="mousemove"?(Al=e.screenX-Dn.screenX,Wl=e.screenY-Dn.screenY):Wl=Al=0,Dn=e),Al)},movementY:function(e){return"movementY"in e?e.movementY:Wl}}),ms=Ne(Sl),Md=te({},Sl,{dataTransfer:0}),Id=Ne(Md),Ld=te({},pr,{relatedTarget:0}),Ul=Ne(Ld),Od=te({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bd=Ne(Od),Ad=te({},Cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wd=Ne(Ad),Ud=te({},Cn,{data:0}),ys=Ne(Ud),bd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={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"},Vd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vd[e])?!!t[e]:!1}function xi(){return Kd}var Qd=te({},pr,{key:function(e){if(e.key){var t=bd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xi,charCode:function(e){return e.type==="keypress"?Br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),qd=Ne(Qd),Yd=te({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hs=Ne(Yd),Gd=te({},pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xi}),Xd=Ne(Gd),Jd=te({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=Ne(Jd),ef=te({},Sl,{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}),tf=Ne(ef),nf=[9,13,27,32],Si=at&&"CompositionEvent"in window,Wn=null;at&&"documentMode"in document&&(Wn=document.documentMode);var rf=at&&"TextEvent"in window&&!Wn,uu=at&&(!Si||Wn&&8<Wn&&11>=Wn),gs=" ",vs=!1;function cu(e,t){switch(e){case"keyup":return nf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function du(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zt=!1;function lf(e,t){switch(e){case"compositionend":return du(t);case"keypress":return t.which!==32?null:(vs=!0,gs);case"textInput":return e=t.data,e===gs&&vs?null:e;default:return null}}function of(e,t){if(Zt)return e==="compositionend"||!Si&&cu(e,t)?(e=au(),Or=gi=xt=null,Zt=!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 uu&&t.locale!=="ko"?null:t.data;default:return null}}var sf={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 xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sf[e.type]:t==="textarea"}function fu(e,t,n,r){ba(r),t=el(t,"onChange"),0<t.length&&(n=new vi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,er=null;function af(e){ju(e,0)}function kl(e){var t=nn(e);if(Ia(t))return e}function uf(e,t){if(e==="change")return t}var pu=!1;if(at){var bl;if(at){var Hl="oninput"in document;if(!Hl){var Ss=document.createElement("div");Ss.setAttribute("oninput","return;"),Hl=typeof Ss.oninput=="function"}bl=Hl}else bl=!1;pu=bl&&(!document.documentMode||9<document.documentMode)}function ks(){Un&&(Un.detachEvent("onpropertychange",mu),er=Un=null)}function mu(e){if(e.propertyName==="value"&&kl(er)){var t=[];fu(t,er,e,fi(e)),Qa(af,t)}}function cf(e,t,n){e==="focusin"?(ks(),Un=t,er=n,Un.attachEvent("onpropertychange",mu)):e==="focusout"&&ks()}function df(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return kl(er)}function ff(e,t){if(e==="click")return kl(t)}function pf(e,t){if(e==="input"||e==="change")return kl(t)}function mf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:mf;function tr(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!uo.call(t,l)||!Qe(e[l],t[l]))return!1}return!0}function ws(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function js(e,t){var n=ws(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ws(n)}}function yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hu(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function ki(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")}function yf(e){var t=hu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yu(n.ownerDocument.documentElement,n)){if(r!==null&&ki(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=js(n,o);var a=js(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hf=at&&"documentMode"in document&&11>=document.documentMode,en=null,Ro=null,bn=null,To=!1;function Cs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;To||en==null||en!==Qr(r)||(r=en,"selectionStart"in r&&ki(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bn&&tr(bn,r)||(bn=r,r=el(Ro,"onSelect"),0<r.length&&(t=new vi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=en)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tn={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Vl={},gu={};at&&(gu=document.createElement("div").style,"AnimationEvent"in window||(delete tn.animationend.animation,delete tn.animationiteration.animation,delete tn.animationstart.animation),"TransitionEvent"in window||delete tn.transitionend.transition);function wl(e){if(Vl[e])return Vl[e];if(!tn[e])return e;var t=tn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gu)return Vl[e]=t[n];return e}var vu=wl("animationend"),xu=wl("animationiteration"),Su=wl("animationstart"),ku=wl("transitionend"),wu=new Map,Es="abort auxClick 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(" ");function Pt(e,t){wu.set(e,t),Qt(t,[e])}for(var Kl=0;Kl<Es.length;Kl++){var Ql=Es[Kl],gf=Ql.toLowerCase(),vf=Ql[0].toUpperCase()+Ql.slice(1);Pt(gf,"on"+vf)}Pt(vu,"onAnimationEnd");Pt(xu,"onAnimationIteration");Pt(Su,"onAnimationStart");Pt("dblclick","onDoubleClick");Pt("focusin","onFocus");Pt("focusout","onBlur");Pt(ku,"onTransitionEnd");hn("onMouseEnter",["mouseout","mouseover"]);hn("onMouseLeave",["mouseout","mouseover"]);hn("onPointerEnter",["pointerout","pointerover"]);hn("onPointerLeave",["pointerout","pointerover"]);Qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var On="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(" "),xf=new Set("cancel close invalid load scroll toggle".split(" ").concat(On));function zs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hd(r,t,void 0,e),e.currentTarget=null}function ju(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],c=u.instance,p=u.currentTarget;if(u=u.listener,c!==o&&l.isPropagationStopped())break e;zs(l,u,p),o=c}else for(a=0;a<r.length;a++){if(u=r[a],c=u.instance,p=u.currentTarget,u=u.listener,c!==o&&l.isPropagationStopped())break e;zs(l,u,p),o=c}}}if(Yr)throw e=Eo,Yr=!1,Eo=null,e}function Q(e,t){var n=t[Mo];n===void 0&&(n=t[Mo]=new Set);var r=e+"__bubble";n.has(r)||(Cu(t,e,2,!1),n.add(r))}function ql(e,t,n){var r=0;t&&(r|=4),Cu(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function nr(e){if(!e[zr]){e[zr]=!0,Da.forEach(function(n){n!=="selectionchange"&&(xf.has(n)||ql(n,!1,e),ql(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zr]||(t[zr]=!0,ql("selectionchange",!1,t))}}function Cu(e,t,n,r){switch(su(t)){case 1:var l=Pd;break;case 4:l=$d;break;default:l=hi}n=l.bind(null,t,n,e),l=void 0,!Co||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Yl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===l||c.nodeType===8&&c.parentNode===l))return;a=a.return}for(;u!==null;){if(a=Lt(u),a===null)return;if(c=a.tag,c===5||c===6){r=o=a;continue e}u=u.parentNode}}r=r.return}Qa(function(){var p=o,h=fi(n),g=[];e:{var m=wu.get(e);if(m!==void 0){var S=vi,k=e;switch(e){case"keypress":if(Br(n)===0)break e;case"keydown":case"keyup":S=qd;break;case"focusin":k="focus",S=Ul;break;case"focusout":k="blur",S=Ul;break;case"beforeblur":case"afterblur":S=Ul;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=ms;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Id;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Xd;break;case vu:case xu:case Su:S=Bd;break;case ku:S=Zd;break;case"scroll":S=Nd;break;case"wheel":S=tf;break;case"copy":case"cut":case"paste":S=Wd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=hs}var z=(t&4)!==0,_=!z&&e==="scroll",y=z?m!==null?m+"Capture":null:m;z=[];for(var f=p,d;f!==null;){d=f;var v=d.stateNode;if(d.tag===5&&v!==null&&(d=v,y!==null&&(v=Gn(f,y),v!=null&&z.push(rr(f,v,d)))),_)break;f=f.return}0<z.length&&(m=new S(m,k,null,n,h),g.push({event:m,listeners:z}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",m&&n!==wo&&(k=n.relatedTarget||n.fromElement)&&(Lt(k)||k[ut]))break e;if((S||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,S?(k=n.relatedTarget||n.toElement,S=p,k=k?Lt(k):null,k!==null&&(_=qt(k),k!==_||k.tag!==5&&k.tag!==6)&&(k=null)):(S=null,k=p),S!==k)){if(z=ms,v="onMouseLeave",y="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(z=hs,v="onPointerLeave",y="onPointerEnter",f="pointer"),_=S==null?m:nn(S),d=k==null?m:nn(k),m=new z(v,f+"leave",S,n,h),m.target=_,m.relatedTarget=d,v=null,Lt(h)===p&&(z=new z(y,f+"enter",k,n,h),z.target=d,z.relatedTarget=_,v=z),_=v,S&&k)t:{for(z=S,y=k,f=0,d=z;d;d=Gt(d))f++;for(d=0,v=y;v;v=Gt(v))d++;for(;0<f-d;)z=Gt(z),f--;for(;0<d-f;)y=Gt(y),d--;for(;f--;){if(z===y||y!==null&&z===y.alternate)break t;z=Gt(z),y=Gt(y)}z=null}else z=null;S!==null&&Fs(g,m,S,z,!1),k!==null&&_!==null&&Fs(g,_,k,z,!0)}}e:{if(m=p?nn(p):window,S=m.nodeName&&m.nodeName.toLowerCase(),S==="select"||S==="input"&&m.type==="file")var j=uf;else if(xs(m))if(pu)j=pf;else{j=df;var w=cf}else(S=m.nodeName)&&S.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(j=ff);if(j&&(j=j(e,p))){fu(g,j,n,h);break e}w&&w(e,m,p),e==="focusout"&&(w=m._wrapperState)&&w.controlled&&m.type==="number"&&go(m,"number",m.value)}switch(w=p?nn(p):window,e){case"focusin":(xs(w)||w.contentEditable==="true")&&(en=w,Ro=p,bn=null);break;case"focusout":bn=Ro=en=null;break;case"mousedown":To=!0;break;case"contextmenu":case"mouseup":case"dragend":To=!1,Cs(g,n,h);break;case"selectionchange":if(hf)break;case"keydown":case"keyup":Cs(g,n,h)}var R;if(Si)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Zt?cu(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(uu&&n.locale!=="ko"&&(Zt||T!=="onCompositionStart"?T==="onCompositionEnd"&&Zt&&(R=au()):(xt=h,gi="value"in xt?xt.value:xt.textContent,Zt=!0)),w=el(p,T),0<w.length&&(T=new ys(T,e,null,n,h),g.push({event:T,listeners:w}),R?T.data=R:(R=du(n),R!==null&&(T.data=R)))),(R=rf?lf(e,n):of(e,n))&&(p=el(p,"onBeforeInput"),0<p.length&&(h=new ys("onBeforeInput","beforeinput",null,n,h),g.push({event:h,listeners:p}),h.data=R))}ju(g,t)})}function rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function el(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Gn(e,n),o!=null&&r.unshift(rr(e,o,l)),o=Gn(e,t),o!=null&&r.push(rr(e,o,l))),e=e.return}return r}function Gt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fs(e,t,n,r,l){for(var o=t._reactName,a=[];n!==null&&n!==r;){var u=n,c=u.alternate,p=u.stateNode;if(c!==null&&c===r)break;u.tag===5&&p!==null&&(u=p,l?(c=Gn(n,o),c!=null&&a.unshift(rr(n,c,u))):l||(c=Gn(n,o),c!=null&&a.push(rr(n,c,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Sf=/\r\n?/g,kf=/\u0000|\uFFFD/g;function _s(e){return(typeof e=="string"?e:""+e).replace(Sf,`
38
+ `).replace(kf,"")}function Fr(e,t,n){if(t=_s(t),_s(e)!==t&&n)throw Error(E(425))}function tl(){}var Do=null,Po=null;function $o(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var No=typeof setTimeout=="function"?setTimeout:void 0,wf=typeof clearTimeout=="function"?clearTimeout:void 0,Rs=typeof Promise=="function"?Promise:void 0,jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Rs<"u"?function(e){return Rs.resolve(null).then(e).catch(Cf)}:No;function Cf(e){setTimeout(function(){throw e})}function Gl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Zn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Zn(t)}function Ct(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==="$?")break;if(t==="/$")return null}}return e}function Ts(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var En=Math.random().toString(36).slice(2),Je="__reactFiber$"+En,lr="__reactProps$"+En,ut="__reactContainer$"+En,Mo="__reactEvents$"+En,Ef="__reactListeners$"+En,zf="__reactHandles$"+En;function Lt(e){var t=e[Je];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ts(e);e!==null;){if(n=e[Je])return n;e=Ts(e)}return t}e=n,n=e.parentNode}return null}function mr(e){return e=e[Je]||e[ut],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(E(33))}function jl(e){return e[lr]||null}var Io=[],rn=-1;function $t(e){return{current:e}}function q(e){0>rn||(e.current=Io[rn],Io[rn]=null,rn--)}function K(e,t){rn++,Io[rn]=e.current,e.current=t}var Dt={},xe=$t(Dt),ze=$t(!1),Ut=Dt;function gn(e,t){var n=e.type.contextTypes;if(!n)return Dt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Fe(e){return e=e.childContextTypes,e!=null}function nl(){q(ze),q(xe)}function Ds(e,t,n){if(xe.current!==Dt)throw Error(E(168));K(xe,t),K(ze,n)}function Eu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(E(108,ud(e)||"Unknown",l));return te({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dt,Ut=xe.current,K(xe,e),K(ze,ze.current),!0}function Ps(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Eu(e,t,Ut),r.__reactInternalMemoizedMergedChildContext=e,q(ze),q(xe),K(xe,e)):q(ze),K(ze,n)}var lt=null,Cl=!1,Xl=!1;function zu(e){lt===null?lt=[e]:lt.push(e)}function Ff(e){Cl=!0,zu(e)}function Nt(){if(!Xl&&lt!==null){Xl=!0;var e=0,t=H;try{var n=lt;for(H=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lt=null,Cl=!1}catch(l){throw lt!==null&&(lt=lt.slice(e+1)),Xa(pi,Nt),l}finally{H=t,Xl=!1}}return null}var ln=[],on=0,ll=null,ol=0,Me=[],Ie=0,bt=null,ot=1,it="";function Mt(e,t){ln[on++]=ol,ln[on++]=ll,ll=e,ol=t}function Fu(e,t,n){Me[Ie++]=ot,Me[Ie++]=it,Me[Ie++]=bt,bt=e;var r=ot;e=it;var l=32-Ve(r)-1;r&=~(1<<l),n+=1;var o=32-Ve(t)+l;if(30<o){var a=l-l%5;o=(r&(1<<a)-1).toString(32),r>>=a,l-=a,ot=1<<32-Ve(t)+l|n<<l|r,it=o+e}else ot=1<<o|n<<l|r,it=e}function wi(e){e.return!==null&&(Mt(e,1),Fu(e,1,0))}function ji(e){for(;e===ll;)ll=ln[--on],ln[on]=null,ol=ln[--on],ln[on]=null;for(;e===bt;)bt=Me[--Ie],Me[Ie]=null,it=Me[--Ie],Me[Ie]=null,ot=Me[--Ie],Me[Ie]=null}var De=null,Te=null,G=!1,He=null;function _u(e,t){var n=Le(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $s(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,De=e,Te=Ct(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,De=e,Te=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bt!==null?{id:ot,overflow:it}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Le(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,De=e,Te=null,!0):!1;default:return!1}}function Lo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Oo(e){if(G){var t=Te;if(t){var n=t;if(!$s(e,t)){if(Lo(e))throw Error(E(418));t=Ct(n.nextSibling);var r=De;t&&$s(e,t)?_u(r,n):(e.flags=e.flags&-4097|2,G=!1,De=e)}}else{if(Lo(e))throw Error(E(418));e.flags=e.flags&-4097|2,G=!1,De=e}}}function Ns(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;De=e}function _r(e){if(e!==De)return!1;if(!G)return Ns(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$o(e.type,e.memoizedProps)),t&&(t=Te)){if(Lo(e))throw Ru(),Error(E(418));for(;t;)_u(e,t),t=Ct(t.nextSibling)}if(Ns(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Te=Ct(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Te=null}}else Te=De?Ct(e.stateNode.nextSibling):null;return!0}function Ru(){for(var e=Te;e;)e=Ct(e.nextSibling)}function vn(){Te=De=null,G=!1}function Ci(e){He===null?He=[e]:He.push(e)}var _f=ft.ReactCurrentBatchConfig;function Pn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(E(309));var r=n.stateNode}if(!r)throw Error(E(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var u=l.refs;a===null?delete u[o]:u[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(E(284));if(!n._owner)throw Error(E(290,e))}return e}function Rr(e,t){throw e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ms(e){var t=e._init;return t(e._payload)}function Tu(e){function t(y,f){if(e){var d=y.deletions;d===null?(y.deletions=[f],y.flags|=16):d.push(f)}}function n(y,f){if(!e)return null;for(;f!==null;)t(y,f),f=f.sibling;return null}function r(y,f){for(y=new Map;f!==null;)f.key!==null?y.set(f.key,f):y.set(f.index,f),f=f.sibling;return y}function l(y,f){return y=_t(y,f),y.index=0,y.sibling=null,y}function o(y,f,d){return y.index=d,e?(d=y.alternate,d!==null?(d=d.index,d<f?(y.flags|=2,f):d):(y.flags|=2,f)):(y.flags|=1048576,f)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function u(y,f,d,v){return f===null||f.tag!==6?(f=lo(d,y.mode,v),f.return=y,f):(f=l(f,d),f.return=y,f)}function c(y,f,d,v){var j=d.type;return j===Jt?h(y,f,d.props.children,v,d.key):f!==null&&(f.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===yt&&Ms(j)===f.type)?(v=l(f,d.props),v.ref=Pn(y,f,d),v.return=y,v):(v=Kr(d.type,d.key,d.props,null,y.mode,v),v.ref=Pn(y,f,d),v.return=y,v)}function p(y,f,d,v){return f===null||f.tag!==4||f.stateNode.containerInfo!==d.containerInfo||f.stateNode.implementation!==d.implementation?(f=oo(d,y.mode,v),f.return=y,f):(f=l(f,d.children||[]),f.return=y,f)}function h(y,f,d,v,j){return f===null||f.tag!==7?(f=Wt(d,y.mode,v,j),f.return=y,f):(f=l(f,d),f.return=y,f)}function g(y,f,d){if(typeof f=="string"&&f!==""||typeof f=="number")return f=lo(""+f,y.mode,d),f.return=y,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case vr:return d=Kr(f.type,f.key,f.props,null,y.mode,d),d.ref=Pn(y,null,f),d.return=y,d;case Xt:return f=oo(f,y.mode,d),f.return=y,f;case yt:var v=f._init;return g(y,v(f._payload),d)}if(In(f)||Fn(f))return f=Wt(f,y.mode,d,null),f.return=y,f;Rr(y,f)}return null}function m(y,f,d,v){var j=f!==null?f.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return j!==null?null:u(y,f,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case vr:return d.key===j?c(y,f,d,v):null;case Xt:return d.key===j?p(y,f,d,v):null;case yt:return j=d._init,m(y,f,j(d._payload),v)}if(In(d)||Fn(d))return j!==null?null:h(y,f,d,v,null);Rr(y,d)}return null}function S(y,f,d,v,j){if(typeof v=="string"&&v!==""||typeof v=="number")return y=y.get(d)||null,u(f,y,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case vr:return y=y.get(v.key===null?d:v.key)||null,c(f,y,v,j);case Xt:return y=y.get(v.key===null?d:v.key)||null,p(f,y,v,j);case yt:var w=v._init;return S(y,f,d,w(v._payload),j)}if(In(v)||Fn(v))return y=y.get(d)||null,h(f,y,v,j,null);Rr(f,v)}return null}function k(y,f,d,v){for(var j=null,w=null,R=f,T=f=0,O=null;R!==null&&T<d.length;T++){R.index>T?(O=R,R=null):O=R.sibling;var $=m(y,R,d[T],v);if($===null){R===null&&(R=O);break}e&&R&&$.alternate===null&&t(y,R),f=o($,f,T),w===null?j=$:w.sibling=$,w=$,R=O}if(T===d.length)return n(y,R),G&&Mt(y,T),j;if(R===null){for(;T<d.length;T++)R=g(y,d[T],v),R!==null&&(f=o(R,f,T),w===null?j=R:w.sibling=R,w=R);return G&&Mt(y,T),j}for(R=r(y,R);T<d.length;T++)O=S(R,y,T,d[T],v),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?T:O.key),f=o(O,f,T),w===null?j=O:w.sibling=O,w=O);return e&&R.forEach(function(Y){return t(y,Y)}),G&&Mt(y,T),j}function z(y,f,d,v){var j=Fn(d);if(typeof j!="function")throw Error(E(150));if(d=j.call(d),d==null)throw Error(E(151));for(var w=j=null,R=f,T=f=0,O=null,$=d.next();R!==null&&!$.done;T++,$=d.next()){R.index>T?(O=R,R=null):O=R.sibling;var Y=m(y,R,$.value,v);if(Y===null){R===null&&(R=O);break}e&&R&&Y.alternate===null&&t(y,R),f=o(Y,f,T),w===null?j=Y:w.sibling=Y,w=Y,R=O}if($.done)return n(y,R),G&&Mt(y,T),j;if(R===null){for(;!$.done;T++,$=d.next())$=g(y,$.value,v),$!==null&&(f=o($,f,T),w===null?j=$:w.sibling=$,w=$);return G&&Mt(y,T),j}for(R=r(y,R);!$.done;T++,$=d.next())$=S(R,y,T,$.value,v),$!==null&&(e&&$.alternate!==null&&R.delete($.key===null?T:$.key),f=o($,f,T),w===null?j=$:w.sibling=$,w=$);return e&&R.forEach(function(ie){return t(y,ie)}),G&&Mt(y,T),j}function _(y,f,d,v){if(typeof d=="object"&&d!==null&&d.type===Jt&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case vr:e:{for(var j=d.key,w=f;w!==null;){if(w.key===j){if(j=d.type,j===Jt){if(w.tag===7){n(y,w.sibling),f=l(w,d.props.children),f.return=y,y=f;break e}}else if(w.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===yt&&Ms(j)===w.type){n(y,w.sibling),f=l(w,d.props),f.ref=Pn(y,w,d),f.return=y,y=f;break e}n(y,w);break}else t(y,w);w=w.sibling}d.type===Jt?(f=Wt(d.props.children,y.mode,v,d.key),f.return=y,y=f):(v=Kr(d.type,d.key,d.props,null,y.mode,v),v.ref=Pn(y,f,d),v.return=y,y=v)}return a(y);case Xt:e:{for(w=d.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===d.containerInfo&&f.stateNode.implementation===d.implementation){n(y,f.sibling),f=l(f,d.children||[]),f.return=y,y=f;break e}else{n(y,f);break}else t(y,f);f=f.sibling}f=oo(d,y.mode,v),f.return=y,y=f}return a(y);case yt:return w=d._init,_(y,f,w(d._payload),v)}if(In(d))return k(y,f,d,v);if(Fn(d))return z(y,f,d,v);Rr(y,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,f!==null&&f.tag===6?(n(y,f.sibling),f=l(f,d),f.return=y,y=f):(n(y,f),f=lo(d,y.mode,v),f.return=y,y=f),a(y)):n(y,f)}return _}var xn=Tu(!0),Du=Tu(!1),il=$t(null),sl=null,sn=null,Ei=null;function zi(){Ei=sn=sl=null}function Fi(e){var t=il.current;q(il),e._currentValue=t}function Bo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function mn(e,t){sl=e,Ei=sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ee=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},sn===null){if(sl===null)throw Error(E(308));sn=e,sl.dependencies={lanes:0,firstContext:e}}else sn=sn.next=e;return t}var Ot=null;function _i(e){Ot===null?Ot=[e]:Ot.push(e)}function Pu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,_i(t)):(n.next=l.next,l.next=n),t.interleaved=n,ct(e,r)}function ct(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ht=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $u(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function st(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Et(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,ct(e,n)}return l=r.interleaved,l===null?(t.next=t,_i(r)):(t.next=l.next,l.next=t),r.interleaved=t,ct(e,n)}function Ar(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}function Is(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function al(e,t,n,r){var l=e.updateQueue;ht=!1;var o=l.firstBaseUpdate,a=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var c=u,p=c.next;c.next=null,a===null?o=p:a.next=p,a=c;var h=e.alternate;h!==null&&(h=h.updateQueue,u=h.lastBaseUpdate,u!==a&&(u===null?h.firstBaseUpdate=p:u.next=p,h.lastBaseUpdate=c))}if(o!==null){var g=l.baseState;a=0,h=p=c=null,u=o;do{var m=u.lane,S=u.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:S,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var k=e,z=u;switch(m=t,S=n,z.tag){case 1:if(k=z.payload,typeof k=="function"){g=k.call(S,g,m);break e}g=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=z.payload,m=typeof k=="function"?k.call(S,g,m):k,m==null)break e;g=te({},g,m);break e;case 2:ht=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[u]:m.push(u))}else S={eventTime:S,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},h===null?(p=h=S,c=g):h=h.next=S,a|=m;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;m=u,u=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(h===null&&(c=g),l.baseState=c,l.firstBaseUpdate=p,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Vt|=a,e.lanes=a,e.memoizedState=g}}function Ls(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(E(191,l));l.call(r)}}}var yr={},et=$t(yr),or=$t(yr),ir=$t(yr);function Bt(e){if(e===yr)throw Error(E(174));return e}function Ti(e,t){switch(K(ir,t),K(or,e),K(et,yr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xo(t,e)}q(et),K(et,t)}function Sn(){q(et),q(or),q(ir)}function Nu(e){Bt(ir.current);var t=Bt(et.current),n=xo(t,e.type);t!==n&&(K(or,e),K(et,n))}function Di(e){or.current===e&&(q(et),q(or))}var Z=$t(0);function ul(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Jl=[];function Pi(){for(var e=0;e<Jl.length;e++)Jl[e]._workInProgressVersionPrimary=null;Jl.length=0}var Wr=ft.ReactCurrentDispatcher,Zl=ft.ReactCurrentBatchConfig,Ht=0,ee=null,se=null,ce=null,cl=!1,Hn=!1,sr=0,Rf=0;function he(){throw Error(E(321))}function $i(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}function Ni(e,t,n,r,l,o){if(Ht=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wr.current=e===null||e.memoizedState===null?$f:Nf,e=n(r,l),Hn){o=0;do{if(Hn=!1,sr=0,25<=o)throw Error(E(301));o+=1,ce=se=null,t.updateQueue=null,Wr.current=Mf,e=n(r,l)}while(Hn)}if(Wr.current=dl,t=se!==null&&se.next!==null,Ht=0,ce=se=ee=null,cl=!1,t)throw Error(E(300));return e}function Mi(){var e=sr!==0;return sr=0,e}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?ee.memoizedState=ce=e:ce=ce.next=e,ce}function Ae(){if(se===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ce===null?ee.memoizedState:ce.next;if(t!==null)ce=t,se=e;else{if(e===null)throw Error(E(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ce===null?ee.memoizedState=ce=e:ce=ce.next=e}return ce}function ar(e,t){return typeof t=="function"?t(e):t}function eo(e){var t=Ae(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=se,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var a=l.next;l.next=o.next,o.next=a}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=a=null,c=null,p=o;do{var h=p.lane;if((Ht&h)===h)c!==null&&(c=c.next={lane:0,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),r=p.hasEagerState?p.eagerState:e(r,p.action);else{var g={lane:h,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null};c===null?(u=c=g,a=r):c=c.next=g,ee.lanes|=h,Vt|=h}p=p.next}while(p!==null&&p!==o);c===null?a=r:c.next=u,Qe(r,t.memoizedState)||(Ee=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,ee.lanes|=o,Vt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function to(e){var t=Ae(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do o=e(o,a.action),a=a.next;while(a!==l);Qe(o,t.memoizedState)||(Ee=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Mu(){}function Iu(e,t){var n=ee,r=Ae(),l=t(),o=!Qe(r.memoizedState,l);if(o&&(r.memoizedState=l,Ee=!0),r=r.queue,Ii(Bu.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,ur(9,Ou.bind(null,n,r,l,t),void 0,null),de===null)throw Error(E(349));Ht&30||Lu(n,t,l)}return l}function Lu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ou(e,t,n,r){t.value=n,t.getSnapshot=r,Au(t)&&Wu(e)}function Bu(e,t,n){return n(function(){Au(t)&&Wu(e)})}function Au(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qe(e,n)}catch{return!0}}function Wu(e){var t=ct(e,1);t!==null&&Ke(t,e,1,-1)}function Os(e){var t=Xe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ar,lastRenderedState:e},t.queue=e,e=e.dispatch=Pf.bind(null,ee,e),[t.memoizedState,e]}function ur(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Uu(){return Ae().memoizedState}function Ur(e,t,n,r){var l=Xe();ee.flags|=e,l.memoizedState=ur(1|t,n,void 0,r===void 0?null:r)}function El(e,t,n,r){var l=Ae();r=r===void 0?null:r;var o=void 0;if(se!==null){var a=se.memoizedState;if(o=a.destroy,r!==null&&$i(r,a.deps)){l.memoizedState=ur(t,n,o,r);return}}ee.flags|=e,l.memoizedState=ur(1|t,n,o,r)}function Bs(e,t){return Ur(8390656,8,e,t)}function Ii(e,t){return El(2048,8,e,t)}function bu(e,t){return El(4,2,e,t)}function Hu(e,t){return El(4,4,e,t)}function Vu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ku(e,t,n){return n=n!=null?n.concat([e]):null,El(4,4,Vu.bind(null,t,e),n)}function Li(){}function Qu(e,t){var n=Ae();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qu(e,t){var n=Ae();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Yu(e,t,n){return Ht&21?(Qe(n,t)||(n=eu(),ee.lanes|=n,Vt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ee=!0),e.memoizedState=n)}function Tf(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var r=Zl.transition;Zl.transition={};try{e(!1),t()}finally{H=n,Zl.transition=r}}function Gu(){return Ae().memoizedState}function Df(e,t,n){var r=Ft(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xu(e))Ju(t,n);else if(n=Pu(e,t,n,r),n!==null){var l=ke();Ke(n,e,r,l),Zu(n,t,r)}}function Pf(e,t,n){var r=Ft(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xu(e))Ju(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,u=o(a,n);if(l.hasEagerState=!0,l.eagerState=u,Qe(u,a)){var c=t.interleaved;c===null?(l.next=l,_i(t)):(l.next=c.next,c.next=l),t.interleaved=l;return}}catch{}finally{}n=Pu(e,t,l,r),n!==null&&(l=ke(),Ke(n,e,r,l),Zu(n,t,r))}}function Xu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Ju(e,t){Hn=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zu(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mi(e,n)}}var dl={readContext:Be,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},$f={readContext:Be,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Bs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ur(4194308,4,Vu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ur(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ur(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Df.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:Os,useDebugValue:Li,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=Os(!1),t=e[0];return e=Tf.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,l=Xe();if(G){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),de===null)throw Error(E(349));Ht&30||Lu(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Bs(Bu.bind(null,r,o,e),[e]),r.flags|=2048,ur(9,Ou.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xe(),t=de.identifierPrefix;if(G){var n=it,r=ot;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=sr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Rf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Nf={readContext:Be,useCallback:Qu,useContext:Be,useEffect:Ii,useImperativeHandle:Ku,useInsertionEffect:bu,useLayoutEffect:Hu,useMemo:qu,useReducer:eo,useRef:Uu,useState:function(){return eo(ar)},useDebugValue:Li,useDeferredValue:function(e){var t=Ae();return Yu(t,se.memoizedState,e)},useTransition:function(){var e=eo(ar)[0],t=Ae().memoizedState;return[e,t]},useMutableSource:Mu,useSyncExternalStore:Iu,useId:Gu,unstable_isNewReconciler:!1},Mf={readContext:Be,useCallback:Qu,useContext:Be,useEffect:Ii,useImperativeHandle:Ku,useInsertionEffect:bu,useLayoutEffect:Hu,useMemo:qu,useReducer:to,useRef:Uu,useState:function(){return to(ar)},useDebugValue:Li,useDeferredValue:function(e){var t=Ae();return se===null?t.memoizedState=e:Yu(t,se.memoizedState,e)},useTransition:function(){var e=to(ar)[0],t=Ae().memoizedState;return[e,t]},useMutableSource:Mu,useSyncExternalStore:Iu,useId:Gu,unstable_isNewReconciler:!1};function Ue(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ao(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zl={isMounted:function(e){return(e=e._reactInternals)?qt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),l=Ft(e),o=st(r,l);o.payload=t,n!=null&&(o.callback=n),t=Et(e,o,l),t!==null&&(Ke(t,e,l,r),Ar(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),l=Ft(e),o=st(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Et(e,o,l),t!==null&&(Ke(t,e,l,r),Ar(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=Ft(e),l=st(n,r);l.tag=2,t!=null&&(l.callback=t),t=Et(e,l,r),t!==null&&(Ke(t,e,r,n),Ar(t,e,r))}};function As(e,t,n,r,l,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!tr(n,r)||!tr(l,o):!0}function ec(e,t,n){var r=!1,l=Dt,o=t.contextType;return typeof o=="object"&&o!==null?o=Be(o):(l=Fe(t)?Ut:xe.current,r=t.contextTypes,o=(r=r!=null)?gn(e,l):Dt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ws(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zl.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Ri(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Be(o):(o=Fe(t)?Ut:xe.current,l.context=gn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ao(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&zl.enqueueReplaceState(l,l.state,null),al(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function kn(e,t){try{var n="",r=t;do n+=ad(r),r=r.return;while(r);var l=n}catch(o){l=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:l,digest:null}}function no(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Uo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var If=typeof WeakMap=="function"?WeakMap:Map;function tc(e,t,n){n=st(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,Jo=r),Uo(e,t)},n}function nc(e,t,n){n=st(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Uo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Uo(e,t),typeof r!="function"&&(zt===null?zt=new Set([this]):zt.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Us(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new If;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Gf.bind(null,e,t,n),t.then(e,e))}function bs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Hs(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=st(-1,1),t.tag=2,Et(n,t,1))),n.lanes|=1),e)}var Lf=ft.ReactCurrentOwner,Ee=!1;function Se(e,t,n,r){t.child=e===null?Du(t,null,n,r):xn(t,e.child,n,r)}function Vs(e,t,n,r,l){n=n.render;var o=t.ref;return mn(t,l),r=Ni(e,t,n,r,o,l),n=Mi(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(G&&n&&wi(t),t.flags|=1,Se(e,t,r,l),t.child)}function Ks(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Vi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,rc(e,t,o,r,l)):(e=Kr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:tr,n(a,r)&&e.ref===t.ref)return dt(e,t,l)}return t.flags|=1,e=_t(o,r),e.ref=t.ref,e.return=t,t.child=e}function rc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(tr(o,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,dt(e,t,l)}return bo(e,t,n,r,l)}function lc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(un,Re),Re|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(un,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,K(un,Re),Re|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,K(un,Re),Re|=r;return Se(e,t,l,n),t.child}function oc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bo(e,t,n,r,l){var o=Fe(n)?Ut:xe.current;return o=gn(t,o),mn(t,l),n=Ni(e,t,n,r,o,l),r=Mi(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,dt(e,t,l)):(G&&r&&wi(t),t.flags|=1,Se(e,t,n,l),t.child)}function Qs(e,t,n,r,l){if(Fe(n)){var o=!0;rl(t)}else o=!1;if(mn(t,l),t.stateNode===null)br(e,t),ec(t,n,r),Wo(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,u=t.memoizedProps;a.props=u;var c=a.context,p=n.contextType;typeof p=="object"&&p!==null?p=Be(p):(p=Fe(n)?Ut:xe.current,p=gn(t,p));var h=n.getDerivedStateFromProps,g=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==r||c!==p)&&Ws(t,a,r,p),ht=!1;var m=t.memoizedState;a.state=m,al(t,r,a,l),c=t.memoizedState,u!==r||m!==c||ze.current||ht?(typeof h=="function"&&(Ao(t,n,h,r),c=t.memoizedState),(u=ht||As(t,n,u,r,m,c,p))?(g||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=p,r=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,$u(e,t),u=t.memoizedProps,p=t.type===t.elementType?u:Ue(t.type,u),a.props=p,g=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=Be(c):(c=Fe(n)?Ut:xe.current,c=gn(t,c));var S=n.getDerivedStateFromProps;(h=typeof S=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(u!==g||m!==c)&&Ws(t,a,r,c),ht=!1,m=t.memoizedState,a.state=m,al(t,r,a,l);var k=t.memoizedState;u!==g||m!==k||ze.current||ht?(typeof S=="function"&&(Ao(t,n,S,r),k=t.memoizedState),(p=ht||As(t,n,p,r,m,k,c)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,k,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,k,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=k),a.props=r,a.state=k,a.context=c,r=p):(typeof a.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Ho(e,t,n,r,o,l)}function Ho(e,t,n,r,l,o){oc(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&Ps(t,n,!1),dt(e,t,o);r=t.stateNode,Lf.current=t;var u=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=xn(t,e.child,null,o),t.child=xn(t,null,u,o)):Se(e,t,u,o),t.memoizedState=r.state,l&&Ps(t,n,!0),t.child}function ic(e){var t=e.stateNode;t.pendingContext?Ds(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ds(e,t.context,!1),Ti(e,t.containerInfo)}function qs(e,t,n,r,l){return vn(),Ci(l),t.flags|=256,Se(e,t,n,r),t.child}var Vo={dehydrated:null,treeContext:null,retryLane:0};function Ko(e){return{baseLanes:e,cachePool:null,transitions:null}}function sc(e,t,n){var r=t.pendingProps,l=Z.current,o=!1,a=(t.flags&128)!==0,u;if((u=a)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),K(Z,l&1),e===null)return Oo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Rl(a,r,0,null),e=Wt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ko(n),t.memoizedState=Vo,e):Oi(t,a));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Of(e,t,a,r,u,l,n);if(o){o=r.fallback,a=t.mode,l=e.child,u=l.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=_t(l,c),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=_t(u,o):(o=Wt(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Ko(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Vo,r}return o=e.child,e=o.sibling,r=_t(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Oi(e,t){return t=Rl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tr(e,t,n,r){return r!==null&&Ci(r),xn(t,e.child,null,n),e=Oi(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Of(e,t,n,r,l,o,a){if(n)return t.flags&256?(t.flags&=-257,r=no(Error(E(422))),Tr(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Rl({mode:"visible",children:r.children},l,0,null),o=Wt(o,l,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xn(t,e.child,null,a),t.child.memoizedState=Ko(a),t.memoizedState=Vo,o);if(!(t.mode&1))return Tr(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(E(419)),r=no(o,r,void 0),Tr(e,t,a,r)}if(u=(a&e.childLanes)!==0,Ee||u){if(r=de,r!==null){switch(a&-a){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|a)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,ct(e,l),Ke(r,e,l,-1))}return Hi(),r=no(Error(E(421))),Tr(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Xf.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Te=Ct(l.nextSibling),De=t,G=!0,He=null,e!==null&&(Me[Ie++]=ot,Me[Ie++]=it,Me[Ie++]=bt,ot=e.id,it=e.overflow,bt=t),t=Oi(t,r.children),t.flags|=4096,t)}function Ys(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Bo(e.return,t,n)}function ro(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function ac(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=Z.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ys(e,n,t);else if(e.tag===19)Ys(e,n,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}r&=1}if(K(Z,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ul(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ro(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ul(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ro(t,!0,n,null,o);break;case"together":ro(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function br(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=_t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bf(e,t,n){switch(t.tag){case 3:ic(t),vn();break;case 5:Nu(t);break;case 1:Fe(t.type)&&rl(t);break;case 4:Ti(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;K(il,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(Z,Z.current&1),t.flags|=128,null):n&t.child.childLanes?sc(e,t,n):(K(Z,Z.current&1),e=dt(e,t,n),e!==null?e.sibling:null);K(Z,Z.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return ac(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),K(Z,Z.current),r)break;return null;case 22:case 23:return t.lanes=0,lc(e,t,n)}return dt(e,t,n)}var uc,Qo,cc,dc;uc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qo=function(){};cc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Bt(et.current);var o=null;switch(n){case"input":l=yo(e,l),r=yo(e,r),o=[];break;case"select":l=te({},l,{value:void 0}),r=te({},r,{value:void 0}),o=[];break;case"textarea":l=vo(e,l),r=vo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tl)}So(n,r);var a;n=null;for(p in l)if(!r.hasOwnProperty(p)&&l.hasOwnProperty(p)&&l[p]!=null)if(p==="style"){var u=l[p];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else p!=="dangerouslySetInnerHTML"&&p!=="children"&&p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(qn.hasOwnProperty(p)?o||(o=[]):(o=o||[]).push(p,null));for(p in r){var c=r[p];if(u=l!=null?l[p]:void 0,r.hasOwnProperty(p)&&c!==u&&(c!=null||u!=null))if(p==="style")if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(p,n)),n=c;else p==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,u=u?u.__html:void 0,c!=null&&u!==c&&(o=o||[]).push(p,c)):p==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(p,""+c):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&(qn.hasOwnProperty(p)?(c!=null&&p==="onScroll"&&Q("scroll",e),o||u===c||(o=[])):(o=o||[]).push(p,c))}n&&(o=o||[]).push("style",n);var p=o;(t.updateQueue=p)&&(t.flags|=4)}};dc=function(e,t,n,r){n!==r&&(t.flags|=4)};function $n(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Af(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return Fe(t.type)&&nl(),ge(t),null;case 3:return r=t.stateNode,Sn(),q(ze),q(xe),Pi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(_r(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,He!==null&&(ti(He),He=null))),Qo(e,t),ge(t),null;case 5:Di(t);var l=Bt(ir.current);if(n=t.type,e!==null&&t.stateNode!=null)cc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return ge(t),null}if(e=Bt(et.current),_r(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Je]=t,r[lr]=o,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(l=0;l<On.length;l++)Q(On[l],r);break;case"source":Q("error",r);break;case"img":case"image":case"link":Q("error",r),Q("load",r);break;case"details":Q("toggle",r);break;case"input":ls(r,o),Q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Q("invalid",r);break;case"textarea":is(r,o),Q("invalid",r)}So(n,o),l=null;for(var a in o)if(o.hasOwnProperty(a)){var u=o[a];a==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Fr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Fr(r.textContent,u,e),l=["children",""+u]):qn.hasOwnProperty(a)&&u!=null&&a==="onScroll"&&Q("scroll",r)}switch(n){case"input":xr(r),os(r,o,!0);break;case"textarea":xr(r),ss(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=tl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ba(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Je]=t,e[lr]=r,uc(e,t,!1,!1),t.stateNode=e;e:{switch(a=ko(n,r),n){case"dialog":Q("cancel",e),Q("close",e),l=r;break;case"iframe":case"object":case"embed":Q("load",e),l=r;break;case"video":case"audio":for(l=0;l<On.length;l++)Q(On[l],e);l=r;break;case"source":Q("error",e),l=r;break;case"img":case"image":case"link":Q("error",e),Q("load",e),l=r;break;case"details":Q("toggle",e),l=r;break;case"input":ls(e,r),l=yo(e,r),Q("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=te({},r,{value:void 0}),Q("invalid",e);break;case"textarea":is(e,r),l=vo(e,r),Q("invalid",e);break;default:l=r}So(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var c=u[o];o==="style"?Ua(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Aa(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Yn(e,c):typeof c=="number"&&Yn(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(qn.hasOwnProperty(o)?c!=null&&o==="onScroll"&&Q("scroll",e):c!=null&&ai(e,o,c,a))}switch(n){case"input":xr(e),os(e,r,!1);break;case"textarea":xr(e),ss(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Tt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?cn(e,!!r.multiple,o,!1):r.defaultValue!=null&&cn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=tl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ge(t),null;case 6:if(e&&t.stateNode!=null)dc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(n=Bt(ir.current),Bt(et.current),_r(t)){if(r=t.stateNode,n=t.memoizedProps,r[Je]=t,(o=r.nodeValue!==n)&&(e=De,e!==null))switch(e.tag){case 3:Fr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Fr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Je]=t,t.stateNode=r}return ge(t),null;case 13:if(q(Z),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Te!==null&&t.mode&1&&!(t.flags&128))Ru(),vn(),t.flags|=98560,o=!1;else if(o=_r(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(E(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(E(317));o[Je]=t}else vn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ge(t),o=!1}else He!==null&&(ti(He),He=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Z.current&1?ae===0&&(ae=3):Hi())),t.updateQueue!==null&&(t.flags|=4),ge(t),null);case 4:return Sn(),Qo(e,t),e===null&&nr(t.stateNode.containerInfo),ge(t),null;case 10:return Fi(t.type._context),ge(t),null;case 17:return Fe(t.type)&&nl(),ge(t),null;case 19:if(q(Z),o=t.memoizedState,o===null)return ge(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)$n(o,!1);else{if(ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ul(e),a!==null){for(t.flags|=128,$n(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(Z,Z.current&1|2),t.child}e=e.sibling}o.tail!==null&&re()>wn&&(t.flags|=128,r=!0,$n(o,!1),t.lanes=4194304)}else{if(!r)if(e=ul(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$n(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!G)return ge(t),null}else 2*re()-o.renderingStartTime>wn&&n!==1073741824&&(t.flags|=128,r=!0,$n(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=re(),t.sibling=null,n=Z.current,K(Z,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return bi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Wf(e,t){switch(ji(t),t.tag){case 1:return Fe(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(),q(ze),q(xe),Pi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Di(t),null;case 13:if(q(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Z),null;case 4:return Sn(),null;case 10:return Fi(t.type._context),null;case 22:case 23:return bi(),null;case 24:return null;default:return null}}var Dr=!1,ve=!1,Uf=typeof WeakSet=="function"?WeakSet:Set,P=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function qo(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Gs=!1;function bf(e,t){if(Do=Jr,e=hu(),ki(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,u=-1,c=-1,p=0,h=0,g=e,m=null;t:for(;;){for(var S;g!==n||l!==0&&g.nodeType!==3||(u=a+l),g!==o||r!==0&&g.nodeType!==3||(c=a+r),g.nodeType===3&&(a+=g.nodeValue.length),(S=g.firstChild)!==null;)m=g,g=S;for(;;){if(g===e)break t;if(m===n&&++p===l&&(u=a),m===o&&++h===r&&(c=a),(S=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=S}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Po={focusedElem:e,selectionRange:n},Jr=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var z=k.memoizedProps,_=k.memoizedState,y=t.stateNode,f=y.getSnapshotBeforeUpdate(t.elementType===t.type?z:Ue(t.type,z),_);y.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(v){ne(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return k=Gs,Gs=!1,k}function Vn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&qo(t,n,o)}l=l.next}while(l!==r)}}function Fl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yo(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fc(e){var t=e.alternate;t!==null&&(e.alternate=null,fc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Je],delete t[lr],delete t[Mo],delete t[Ef],delete t[zf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pc(e){return e.tag===5||e.tag===3||e.tag===4}function Xs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pc(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.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 Go(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(Go(e,t,n),e=e.sibling;e!==null;)Go(e,t,n),e=e.sibling}function Xo(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var fe=null,be=!1;function mt(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:ve||an(n,t);case 6:var r=fe,l=be;fe=null,mt(e,t,n),fe=r,be=l,fe!==null&&(be?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(be?(e=fe,n=n.stateNode,e.nodeType===8?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),Zn(e)):Gl(fe,n.stateNode));break;case 4:r=fe,l=be,fe=n.stateNode.containerInfo,be=!0,mt(e,t,n),fe=r,be=l;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&qo(n,t,a),l=l.next}while(l!==r)}mt(e,t,n);break;case 1:if(!ve&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){ne(n,t,u)}mt(e,t,n);break;case 21:mt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,mt(e,t,n),ve=r):mt(e,t,n);break;default:mt(e,t,n)}}function Js(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uf),t.forEach(function(r){var l=Jf.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function We(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,a=t,u=a;e:for(;u!==null;){switch(u.tag){case 5:fe=u.stateNode,be=!1;break e;case 3:fe=u.stateNode.containerInfo,be=!0;break e;case 4:fe=u.stateNode.containerInfo,be=!0;break e}u=u.return}if(fe===null)throw Error(E(160));mc(o,a,l),fe=null,be=!1;var c=l.alternate;c!==null&&(c.return=null),l.return=null}catch(p){ne(l,t,p)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(We(t,e),Ge(e),r&4){try{Vn(3,e,e.return),Fl(3,e)}catch(z){ne(e,e.return,z)}try{Vn(5,e,e.return)}catch(z){ne(e,e.return,z)}}break;case 1:We(t,e),Ge(e),r&512&&n!==null&&an(n,n.return);break;case 5:if(We(t,e),Ge(e),r&512&&n!==null&&an(n,n.return),e.flags&32){var l=e.stateNode;try{Yn(l,"")}catch(z){ne(e,e.return,z)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,u=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&La(l,o),ko(u,a);var p=ko(u,o);for(a=0;a<c.length;a+=2){var h=c[a],g=c[a+1];h==="style"?Ua(l,g):h==="dangerouslySetInnerHTML"?Aa(l,g):h==="children"?Yn(l,g):ai(l,h,g,p)}switch(u){case"input":ho(l,o);break;case"textarea":Oa(l,o);break;case"select":var m=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var S=o.value;S!=null?cn(l,!!o.multiple,S,!1):m!==!!o.multiple&&(o.defaultValue!=null?cn(l,!!o.multiple,o.defaultValue,!0):cn(l,!!o.multiple,o.multiple?[]:"",!1))}l[lr]=o}catch(z){ne(e,e.return,z)}}break;case 6:if(We(t,e),Ge(e),r&4){if(e.stateNode===null)throw Error(E(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(z){ne(e,e.return,z)}}break;case 3:if(We(t,e),Ge(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zn(t.containerInfo)}catch(z){ne(e,e.return,z)}break;case 4:We(t,e),Ge(e);break;case 13:We(t,e),Ge(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Wi=re())),r&4&&Js(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(ve=(p=ve)||h,We(t,e),ve=p):We(t,e),Ge(e),r&8192){if(p=e.memoizedState!==null,(e.stateNode.isHidden=p)&&!h&&e.mode&1)for(P=e,h=e.child;h!==null;){for(g=P=h;P!==null;){switch(m=P,S=m.child,m.tag){case 0:case 11:case 14:case 15:Vn(4,m,m.return);break;case 1:an(m,m.return);var k=m.stateNode;if(typeof k.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(z){ne(r,n,z)}}break;case 5:an(m,m.return);break;case 22:if(m.memoizedState!==null){ea(g);continue}}S!==null?(S.return=m,P=S):ea(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{l=g.stateNode,p?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=g.stateNode,c=g.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,u.style.display=Wa("display",a))}catch(z){ne(e,e.return,z)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=p?"":g.memoizedProps}catch(z){ne(e,e.return,z)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:We(t,e),Ge(e),r&4&&Js(e);break;case 21:break;default:We(t,e),Ge(e)}}function Ge(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(pc(n)){var r=n;break e}n=n.return}throw Error(E(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Yn(l,""),r.flags&=-33);var o=Xs(e);Xo(e,o,l);break;case 3:case 4:var a=r.stateNode.containerInfo,u=Xs(e);Go(e,u,a);break;default:throw Error(E(161))}}catch(c){ne(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hf(e,t,n){P=e,hc(e)}function hc(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var l=P,o=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||Dr;if(!a){var u=l.alternate,c=u!==null&&u.memoizedState!==null||ve;u=Dr;var p=ve;if(Dr=a,(ve=c)&&!p)for(P=l;P!==null;)a=P,c=a.child,a.tag===22&&a.memoizedState!==null?ta(l):c!==null?(c.return=a,P=c):ta(l);for(;o!==null;)P=o,hc(o),o=o.sibling;P=l,Dr=u,ve=p}Zs(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,P=o):Zs(e)}}function Zs(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||Fl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ve)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ue(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ls(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ls(t,a,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var p=t.alternate;if(p!==null){var h=p.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&Zn(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(E(163))}ve||t.flags&512&&Yo(t)}catch(m){ne(t,t.return,m)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function ea(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function ta(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Fl(4,t)}catch(c){ne(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(c){ne(t,l,c)}}var o=t.return;try{Yo(t)}catch(c){ne(t,o,c)}break;case 5:var a=t.return;try{Yo(t)}catch(c){ne(t,a,c)}}}catch(c){ne(t,t.return,c)}if(t===e){P=null;break}var u=t.sibling;if(u!==null){u.return=t.return,P=u;break}P=t.return}}var Vf=Math.ceil,fl=ft.ReactCurrentDispatcher,Bi=ft.ReactCurrentOwner,Oe=ft.ReactCurrentBatchConfig,A=0,de=null,oe=null,pe=0,Re=0,un=$t(0),ae=0,cr=null,Vt=0,_l=0,Ai=0,Kn=null,Ce=null,Wi=0,wn=1/0,rt=null,pl=!1,Jo=null,zt=null,Pr=!1,St=null,ml=0,Qn=0,Zo=null,Hr=-1,Vr=0;function ke(){return A&6?re():Hr!==-1?Hr:Hr=re()}function Ft(e){return e.mode&1?A&2&&pe!==0?pe&-pe:_f.transition!==null?(Vr===0&&(Vr=eu()),Vr):(e=H,e!==0||(e=window.event,e=e===void 0?16:su(e.type)),e):1}function Ke(e,t,n,r){if(50<Qn)throw Qn=0,Zo=null,Error(E(185));fr(e,n,r),(!(A&2)||e!==de)&&(e===de&&(!(A&2)&&(_l|=n),ae===4&&vt(e,pe)),_e(e,r),n===1&&A===0&&!(t.mode&1)&&(wn=re()+500,Cl&&Nt()))}function _e(e,t){var n=e.callbackNode;Fd(e,t);var r=Xr(e,e===de?pe:0);if(r===0)n!==null&&cs(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&cs(n),t===1)e.tag===0?Ff(na.bind(null,e)):zu(na.bind(null,e)),jf(function(){!(A&6)&&Nt()}),n=null;else{switch(tu(r)){case 1:n=pi;break;case 4:n=Ja;break;case 16:n=Gr;break;case 536870912:n=Za;break;default:n=Gr}n=Cc(n,gc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function gc(e,t){if(Hr=-1,Vr=0,A&6)throw Error(E(327));var n=e.callbackNode;if(yn()&&e.callbackNode!==n)return null;var r=Xr(e,e===de?pe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var l=A;A|=2;var o=xc();(de!==e||pe!==t)&&(rt=null,wn=re()+500,At(e,t));do try{qf();break}catch(u){vc(e,u)}while(!0);zi(),fl.current=o,A=l,oe!==null?t=0:(de=null,pe=0,t=ae)}if(t!==0){if(t===2&&(l=zo(e),l!==0&&(r=l,t=ei(e,l))),t===1)throw n=cr,At(e,0),vt(e,r),_e(e,re()),n;if(t===6)vt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Kf(l)&&(t=yl(e,r),t===2&&(o=zo(e),o!==0&&(r=o,t=ei(e,o))),t===1))throw n=cr,At(e,0),vt(e,r),_e(e,re()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(E(345));case 2:It(e,Ce,rt);break;case 3:if(vt(e,r),(r&130023424)===r&&(t=Wi+500-re(),10<t)){if(Xr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=No(It.bind(null,e,Ce,rt),t);break}It(e,Ce,rt);break;case 4:if(vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-Ve(r);o=1<<a,a=t[a],a>l&&(l=a),r&=~o}if(r=l,r=re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Vf(r/1960))-r,10<r){e.timeoutHandle=No(It.bind(null,e,Ce,rt),r);break}It(e,Ce,rt);break;case 5:It(e,Ce,rt);break;default:throw Error(E(329))}}}return _e(e,re()),e.callbackNode===n?gc.bind(null,e):null}function ei(e,t){var n=Kn;return e.current.memoizedState.isDehydrated&&(At(e,t).flags|=256),e=yl(e,t),e!==2&&(t=Ce,Ce=n,t!==null&&ti(t)),e}function ti(e){Ce===null?Ce=e:Ce.push.apply(Ce,e)}function Kf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Qe(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 vt(e,t){for(t&=~Ai,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ve(t),r=1<<n;e[n]=-1,t&=~r}}function na(e){if(A&6)throw Error(E(327));yn();var t=Xr(e,0);if(!(t&1))return _e(e,re()),null;var n=yl(e,t);if(e.tag!==0&&n===2){var r=zo(e);r!==0&&(t=r,n=ei(e,r))}if(n===1)throw n=cr,At(e,0),vt(e,t),_e(e,re()),n;if(n===6)throw Error(E(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,It(e,Ce,rt),_e(e,re()),null}function Ui(e,t){var n=A;A|=1;try{return e(t)}finally{A=n,A===0&&(wn=re()+500,Cl&&Nt())}}function Kt(e){St!==null&&St.tag===0&&!(A&6)&&yn();var t=A;A|=1;var n=Oe.transition,r=H;try{if(Oe.transition=null,H=1,e)return e()}finally{H=r,Oe.transition=n,A=t,!(A&6)&&Nt()}}function bi(){Re=un.current,q(un)}function At(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,wf(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(ji(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nl();break;case 3:Sn(),q(ze),q(xe),Pi();break;case 5:Di(r);break;case 4:Sn();break;case 13:q(Z);break;case 19:q(Z);break;case 10:Fi(r.type._context);break;case 22:case 23:bi()}n=n.return}if(de=e,oe=e=_t(e.current,null),pe=Re=t,ae=0,cr=null,Ai=_l=Vt=0,Ce=Kn=null,Ot!==null){for(t=0;t<Ot.length;t++)if(n=Ot[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=l,r.next=a}n.pending=r}Ot=null}return e}function vc(e,t){do{var n=oe;try{if(zi(),Wr.current=dl,cl){for(var r=ee.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}cl=!1}if(Ht=0,ce=se=ee=null,Hn=!1,sr=0,Bi.current=null,n===null||n.return===null){ae=1,cr=t,oe=null;break}e:{var o=e,a=n.return,u=n,c=t;if(t=pe,u.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var p=c,h=u,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var S=bs(a);if(S!==null){S.flags&=-257,Hs(S,a,u,o,t),S.mode&1&&Us(o,p,t),t=S,c=p;var k=t.updateQueue;if(k===null){var z=new Set;z.add(c),t.updateQueue=z}else k.add(c);break e}else{if(!(t&1)){Us(o,p,t),Hi();break e}c=Error(E(426))}}else if(G&&u.mode&1){var _=bs(a);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Hs(_,a,u,o,t),Ci(kn(c,u));break e}}o=c=kn(c,u),ae!==4&&(ae=2),Kn===null?Kn=[o]:Kn.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=tc(o,c,t);Is(o,y);break e;case 1:u=c;var f=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof f.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(zt===null||!zt.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=nc(o,u,t);Is(o,v);break e}}o=o.return}while(o!==null)}kc(n)}catch(j){t=j,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function xc(){var e=fl.current;return fl.current=dl,e===null?dl:e}function Hi(){(ae===0||ae===3||ae===2)&&(ae=4),de===null||!(Vt&268435455)&&!(_l&268435455)||vt(de,pe)}function yl(e,t){var n=A;A|=2;var r=xc();(de!==e||pe!==t)&&(rt=null,At(e,t));do try{Qf();break}catch(l){vc(e,l)}while(!0);if(zi(),A=n,fl.current=r,oe!==null)throw Error(E(261));return de=null,pe=0,ae}function Qf(){for(;oe!==null;)Sc(oe)}function qf(){for(;oe!==null&&!vd();)Sc(oe)}function Sc(e){var t=jc(e.alternate,e,Re);e.memoizedProps=e.pendingProps,t===null?kc(e):oe=t,Bi.current=null}function kc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Wf(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ae=6,oe=null;return}}else if(n=Af(n,t,Re),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);ae===0&&(ae=5)}function It(e,t,n){var r=H,l=Oe.transition;try{Oe.transition=null,H=1,Yf(e,t,n,r)}finally{Oe.transition=l,H=r}return null}function Yf(e,t,n,r){do yn();while(St!==null);if(A&6)throw Error(E(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(E(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(_d(e,o),e===de&&(oe=de=null,pe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pr||(Pr=!0,Cc(Gr,function(){return yn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Oe.transition,Oe.transition=null;var a=H;H=1;var u=A;A|=4,Bi.current=null,bf(e,n),yc(n,e),yf(Po),Jr=!!Do,Po=Do=null,e.current=n,Hf(n),xd(),A=u,H=a,Oe.transition=o}else e.current=n;if(Pr&&(Pr=!1,St=e,ml=l),o=e.pendingLanes,o===0&&(zt=null),wd(n.stateNode),_e(e,re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(pl)throw pl=!1,e=Jo,Jo=null,e;return ml&1&&e.tag!==0&&yn(),o=e.pendingLanes,o&1?e===Zo?Qn++:(Qn=0,Zo=e):Qn=0,Nt(),null}function yn(){if(St!==null){var e=tu(ml),t=Oe.transition,n=H;try{if(Oe.transition=null,H=16>e?16:e,St===null)var r=!1;else{if(e=St,St=null,ml=0,A&6)throw Error(E(331));var l=A;for(A|=4,P=e.current;P!==null;){var o=P,a=o.child;if(P.flags&16){var u=o.deletions;if(u!==null){for(var c=0;c<u.length;c++){var p=u[c];for(P=p;P!==null;){var h=P;switch(h.tag){case 0:case 11:case 15:Vn(8,h,o)}var g=h.child;if(g!==null)g.return=h,P=g;else for(;P!==null;){h=P;var m=h.sibling,S=h.return;if(fc(h),h===p){P=null;break}if(m!==null){m.return=S,P=m;break}P=S}}}var k=o.alternate;if(k!==null){var z=k.child;if(z!==null){k.child=null;do{var _=z.sibling;z.sibling=null,z=_}while(z!==null)}}P=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,P=a;else e:for(;P!==null;){if(o=P,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Vn(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,P=y;break e}P=o.return}}var f=e.current;for(P=f;P!==null;){a=P;var d=a.child;if(a.subtreeFlags&2064&&d!==null)d.return=a,P=d;else e:for(a=f;P!==null;){if(u=P,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Fl(9,u)}}catch(j){ne(u,u.return,j)}if(u===a){P=null;break e}var v=u.sibling;if(v!==null){v.return=u.return,P=v;break e}P=u.return}}if(A=l,Nt(),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(xl,e)}catch{}r=!0}return r}finally{H=n,Oe.transition=t}}return!1}function ra(e,t,n){t=kn(n,t),t=tc(e,t,1),e=Et(e,t,1),t=ke(),e!==null&&(fr(e,1,t),_e(e,t))}function ne(e,t,n){if(e.tag===3)ra(e,e,n);else for(;t!==null;){if(t.tag===3){ra(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zt===null||!zt.has(r))){e=kn(n,e),e=nc(t,e,1),t=Et(t,e,1),e=ke(),t!==null&&(fr(t,1,e),_e(t,e));break}}t=t.return}}function Gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(pe&n)===n&&(ae===4||ae===3&&(pe&130023424)===pe&&500>re()-Wi?At(e,0):Ai|=n),_e(e,t)}function wc(e,t){t===0&&(e.mode&1?(t=wr,wr<<=1,!(wr&130023424)&&(wr=4194304)):t=1);var n=ke();e=ct(e,t),e!==null&&(fr(e,t,n),_e(e,n))}function Xf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wc(e,n)}function Jf(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),wc(e,n)}var jc;jc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ze.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,Bf(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,G&&t.flags&1048576&&Fu(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;br(e,t),e=t.pendingProps;var l=gn(t,xe.current);mn(t,n),l=Ni(null,t,r,e,l,n);var o=Mi();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(o=!0,rl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ri(t),l.updater=zl,t.stateNode=l,l._reactInternals=t,Wo(t,r,e,n),t=Ho(null,t,r,!0,o,n)):(t.tag=0,G&&o&&wi(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(br(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ep(r),e=Ue(r,e),l){case 0:t=bo(null,t,r,e,n);break e;case 1:t=Qs(null,t,r,e,n);break e;case 11:t=Vs(null,t,r,e,n);break e;case 14:t=Ks(null,t,r,Ue(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),bo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),Qs(e,t,r,l,n);case 3:e:{if(ic(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,l=o.element,$u(e,t),al(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=kn(Error(E(423)),t),t=qs(e,t,r,n,l);break e}else if(r!==l){l=kn(Error(E(424)),t),t=qs(e,t,r,n,l);break e}else for(Te=Ct(t.stateNode.containerInfo.firstChild),De=t,G=!0,He=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vn(),r===l){t=dt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return Nu(t),e===null&&Oo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,a=l.children,$o(r,l)?a=null:o!==null&&$o(r,o)&&(t.flags|=32),oc(e,t),Se(e,t,a,n),t.child;case 6:return e===null&&Oo(t),null;case 13:return sc(e,t,n);case 4:return Ti(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),Vs(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,a=l.value,K(il,r._currentValue),r._currentValue=a,o!==null)if(Qe(o.value,a)){if(o.children===l.children&&!ze.current){t=dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){a=o.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=st(-1,n&-n),c.tag=2;var p=o.updateQueue;if(p!==null){p=p.shared;var h=p.pending;h===null?c.next=c:(c.next=h.next,h.next=c),p.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Bo(o.return,n,t),u.lanes|=n;break}c=c.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(E(341));a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),Bo(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mn(t,n),l=Be(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ue(r,t.pendingProps),l=Ue(r.type,l),Ks(e,t,r,l,n);case 15:return rc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),br(e,t),t.tag=1,Fe(r)?(e=!0,rl(t)):e=!1,mn(t,n),ec(t,r,l),Wo(t,r,l,n),Ho(null,t,r,!0,e,n);case 19:return ac(e,t,n);case 22:return lc(e,t,n)}throw Error(E(156,t.tag))};function Cc(e,t){return Xa(e,t)}function Zf(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Le(e,t,n,r){return new Zf(e,t,n,r)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ep(e){if(typeof e=="function")return Vi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ci)return 11;if(e===di)return 14}return 2}function _t(e,t){var n=e.alternate;return n===null?(n=Le(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kr(e,t,n,r,l,o){var a=2;if(r=e,typeof e=="function")Vi(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jt:return Wt(n.children,l,o,t);case ui:a=8,l|=8;break;case co:return e=Le(12,n,t,l|2),e.elementType=co,e.lanes=o,e;case fo:return e=Le(13,n,t,l),e.elementType=fo,e.lanes=o,e;case po:return e=Le(19,n,t,l),e.elementType=po,e.lanes=o,e;case Na:return Rl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pa:a=10;break e;case $a:a=9;break e;case ci:a=11;break e;case di:a=14;break e;case yt:a=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Le(a,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Wt(e,t,n,r){return e=Le(7,e,r,t),e.lanes=n,e}function Rl(e,t,n,r){return e=Le(22,e,r,t),e.elementType=Na,e.lanes=n,e.stateNode={isHidden:!1},e}function lo(e,t,n){return e=Le(6,e,null,t),e.lanes=n,e}function oo(e,t,n){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bl(0),this.expirationTimes=Bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ki(e,t,n,r,l,o,a,u,c){return e=new tp(e,t,n,u,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Le(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(o),e}function np(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ec(e){if(!e)return Dt;e=e._reactInternals;e:{if(qt(e)!==e||e.tag!==1)throw Error(E(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(E(171))}if(e.tag===1){var n=e.type;if(Fe(n))return Eu(e,n,t)}return t}function zc(e,t,n,r,l,o,a,u,c){return e=Ki(n,r,!0,e,l,o,a,u,c),e.context=Ec(null),n=e.current,r=ke(),l=Ft(n),o=st(r,l),o.callback=t??null,Et(n,o,l),e.current.lanes=l,fr(e,l,r),_e(e,r),e}function Tl(e,t,n,r){var l=t.current,o=ke(),a=Ft(l);return n=Ec(n),t.context===null?t.context=n:t.pendingContext=n,t=st(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Et(l,t,a),e!==null&&(Ke(e,l,a,o),Ar(e,l,a)),a}function hl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function la(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qi(e,t){la(e,t),(e=e.alternate)&&la(e,t)}function rp(){return null}var Fc=typeof reportError=="function"?reportError:function(e){console.error(e)};function qi(e){this._internalRoot=e}Dl.prototype.render=qi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));Tl(e,t,null,null)};Dl.prototype.unmount=qi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kt(function(){Tl(null,e,null,null)}),t[ut]=null}};function Dl(e){this._internalRoot=e}Dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=lu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<gt.length&&t!==0&&t<gt[n].priority;n++);gt.splice(n,0,e),n===0&&iu(e)}};function Yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function oa(){}function lp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var p=hl(a);o.call(p)}}var a=zc(t,r,e,0,null,!1,!1,"",oa);return e._reactRootContainer=a,e[ut]=a.current,nr(e.nodeType===8?e.parentNode:e),Kt(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var p=hl(c);u.call(p)}}var c=Ki(e,0,!1,null,null,!1,!1,"",oa);return e._reactRootContainer=c,e[ut]=c.current,nr(e.nodeType===8?e.parentNode:e),Kt(function(){Tl(t,c,n,r)}),c}function $l(e,t,n,r,l){var o=n._reactRootContainer;if(o){var a=o;if(typeof l=="function"){var u=l;l=function(){var c=hl(a);u.call(c)}}Tl(t,a,e,l)}else a=lp(n,t,e,l,r);return hl(a)}nu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ln(t.pendingLanes);n!==0&&(mi(t,n|1),_e(t,re()),!(A&6)&&(wn=re()+500,Nt()))}break;case 13:Kt(function(){var r=ct(e,1);if(r!==null){var l=ke();Ke(r,e,1,l)}}),Qi(e,1)}};yi=function(e){if(e.tag===13){var t=ct(e,134217728);if(t!==null){var n=ke();Ke(t,e,134217728,n)}Qi(e,134217728)}};ru=function(e){if(e.tag===13){var t=Ft(e),n=ct(e,t);if(n!==null){var r=ke();Ke(n,e,t,r)}Qi(e,t)}};lu=function(){return H};ou=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};jo=function(e,t,n){switch(t){case"input":if(ho(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=jl(r);if(!l)throw Error(E(90));Ia(r),ho(r,l)}}}break;case"textarea":Oa(e,n);break;case"select":t=n.value,t!=null&&cn(e,!!n.multiple,t,!1)}};Va=Ui;Ka=Kt;var op={usingClientEntryPoint:!1,Events:[mr,nn,jl,ba,Ha,Ui]},Nn={findFiberByHostInstance:Lt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ip={bundleType:Nn.bundleType,version:Nn.version,rendererPackageName:Nn.rendererPackageName,rendererConfig:Nn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ft.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ya(e),e===null?null:e.stateNode},findFiberByHostInstance:Nn.findFiberByHostInstance||rp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$r.isDisabled&&$r.supportsFiber)try{xl=$r.inject(ip),Ze=$r}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=op;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yi(t))throw Error(E(200));return np(e,t,null,n)};$e.createRoot=function(e,t){if(!Yi(e))throw Error(E(299));var n=!1,r="",l=Fc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ki(e,1,!1,null,null,n,!1,r,l),e[ut]=t.current,nr(e.nodeType===8?e.parentNode:e),new qi(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=Ya(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return Kt(e)};$e.hydrate=function(e,t,n){if(!Pl(t))throw Error(E(200));return $l(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!Yi(e))throw Error(E(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",a=Fc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=zc(t,null,e,1,n??null,l,!1,o,a),e[ut]=t.current,nr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Dl(t)};$e.render=function(e,t,n){if(!Pl(t))throw Error(E(200));return $l(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!Pl(e))throw Error(E(40));return e._reactRootContainer?(Kt(function(){$l(null,null,e,!1,function(){e._reactRootContainer=null,e[ut]=null})}),!0):!1};$e.unstable_batchedUpdates=Ui;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Pl(n))throw Error(E(200));if(e==null||e._reactInternals===void 0)throw Error(E(38));return $l(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function _c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_c)}catch(e){console.error(e)}}_c(),_a.exports=$e;var sp=_a.exports,ia=sp;ao.createRoot=ia.createRoot,ao.hydrateRoot=ia.hydrateRoot;const i={bg:"#0A0B0D",surface:"#111318",surfaceHover:"#161A22",border:"#1E2330",borderLight:"#252D3D",accent:"#F0A500",accentDim:"#F0A50022",green:"#22C55E",greenDim:"#22C55E18",red:"#EF4444",redDim:"#EF444418",yellow:"#FBBF24",yellowDim:"#FBBF2418",blue:"#60A5FA",blueDim:"#60A5FA18",purple:"#A78BFA",purpleDim:"#A78BFA18",text:"#E8EAF0",textMuted:"#6B7280",textDim:"#3D4455",mono:"'JetBrains Mono', 'Fira Code', monospace",sans:"'DM Sans', system-ui, sans-serif"},Rc={dev:{color:i.green,bg:i.greenDim,label:"DEV"},staging:{color:i.yellow,bg:i.yellowDim,label:"STG"},production:{color:i.red,bg:i.redDim,label:"PRD"}},ap={error:{color:i.red,bg:i.redDim,icon:"✕",label:"Error"},warning:{color:i.yellow,bg:i.yellowDim,icon:"⚠",label:"Warning"},info:{color:i.blue,bg:i.blueDim,icon:"i",label:"Info"}},sa={matrix:{label:"Matrix",color:i.accent},schema:{label:"Schema",color:i.blue},sops:{label:"SOPS",color:i.purple}},aa="clef_ui_token";let gl=null;function up(){const t=new URLSearchParams(window.location.search).get("token");if(t){gl=t,sessionStorage.setItem(aa,t);const n=new URL(window.location.href);n.searchParams.delete("token"),window.history.replaceState({},"",n.pathname+n.hash)}else gl=sessionStorage.getItem(aa)}function X(e,t){const n=new Headers(t==null?void 0:t.headers);return gl&&n.set("Authorization",`Bearer ${gl}`),fetch(e,{...t,headers:n})}function cp({activeView:e,setView:t,activeNs:n,setNs:r,manifest:l,matrixStatuses:o,gitStatus:a,lintErrorCount:u,scanIssueCount:c}){var g;const p=a?a.staged.length+a.unstaged.length+a.untracked.length:0,h=(l==null?void 0:l.namespaces)??[];return s.jsxs("div",{style:{width:220,minHeight:"100vh",background:i.surface,borderRight:`1px solid ${i.border}`,display:"flex",flexDirection:"column",flexShrink:0},children:[s.jsxs("div",{style:{padding:"20px 20px 16px",borderBottom:`1px solid ${i.border}`,display:"flex",alignItems:"center",gap:10},children:[s.jsx("div",{style:{width:30,height:30,background:i.accentDim,border:`1px solid ${i.accent}44`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",color:i.accent,fontSize:15},children:"♪"}),s.jsxs("div",{children:[s.jsx("div",{style:{fontFamily:i.sans,fontWeight:700,fontSize:16,color:i.text,letterSpacing:"-0.02em"},children:"clef"}),s.jsx("div",{style:{fontFamily:i.mono,fontSize:9,color:i.textMuted,marginTop:-1},children:"local / main"})]})]}),s.jsxs("div",{style:{padding:"12px 10px",flex:1},children:[s.jsx(nt,{icon:"⊞",label:"Matrix",active:e==="matrix",onClick:()=>t("matrix")}),s.jsx(nt,{icon:"⇄",label:"Diff",active:e==="diff",onClick:()=>t("diff")}),s.jsx(nt,{icon:"✔",label:"Lint",active:e==="lint",onClick:()=>t("lint"),badge:u>0?String(u):void 0,badgeColor:i.red}),s.jsx(nt,{icon:"⌕",label:"Scan",active:e==="scan",onClick:()=>t("scan"),badge:c>0?String(c):void 0,badgeColor:i.yellow}),s.jsx(nt,{icon:"⬆",label:"Import",active:e==="import",onClick:()=>t("import")}),s.jsx(nt,{icon:"♢",label:"Recipients",active:e==="recipients",onClick:()=>t("recipients")}),s.jsx(nt,{icon:"⚙",label:"Service IDs",active:e==="identities",onClick:()=>t("identities"),badge:(g=l==null?void 0:l.service_identities)!=null&&g.length?String(l.service_identities.length):void 0,badgeColor:i.purple}),s.jsx(nt,{icon:"⏱",label:"History",active:e==="history",onClick:()=>t("history")}),s.jsx("div",{style:{marginTop:20,marginBottom:6,padding:"0 8px"},children:s.jsx("span",{style:{fontFamily:i.sans,fontSize:10,fontWeight:600,color:i.textDim,letterSpacing:"0.1em",textTransform:"uppercase"},children:"Namespaces"})}),h.map(m=>{const S=o.some(k=>k.cell.namespace===m.name&&k.issues.length>0);return s.jsx(nt,{icon:s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,color:i.textMuted},children:"//"}),label:m.name,active:e==="editor"&&n===m.name,onClick:()=>{t("editor"),r(m.name)},badge:S?"!":void 0,badgeColor:i.yellow},m.name)})]}),s.jsxs("div",{style:{padding:"12px 16px",borderTop:`1px solid ${i.border}`},children:[s.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,color:i.textMuted},children:s.jsxs("span",{style:{fontFamily:i.mono,fontSize:10},children:[p," uncommitted"]})}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,color:i.green,marginTop:5},children:[s.jsx("span",{style:{display:"inline-block",width:6,height:6,borderRadius:"50%",background:i.green,boxShadow:`0 0 5px ${i.green}`}}),s.jsxs("span",{style:{fontFamily:i.mono,fontSize:10},children:[(l==null?void 0:l.sops.default_backend)??"age"," key loaded"]})]})]})]})}function nt({icon:e,label:t,active:n,onClick:r,badge:l,badgeColor:o}){return s.jsxs("div",{role:"button",tabIndex:0,"data-testid":`nav-${t.toLowerCase()}`,onClick:r,onKeyDown:a=>{a.key==="Enter"&&r()},style:{display:"flex",alignItems:"center",gap:9,padding:"7px 10px",borderRadius:6,cursor:"pointer",background:n?i.accentDim:"transparent",border:n?`1px solid ${i.accent}22`:"1px solid transparent",marginBottom:2,transition:"all 0.12s",position:"relative"},children:[s.jsx("span",{style:{color:n?i.accent:i.textMuted,display:"flex",alignItems:"center",width:14},children:e}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:13,fontWeight:n?600:400,color:n?i.accent:i.text,flex:1},children:t}),l&&o&&s.jsx("span",{style:{fontFamily:i.mono,fontSize:9,fontWeight:700,color:o,background:`${o}20`,border:`1px solid ${o}44`,borderRadius:3,padding:"1px 5px"},children:l})]})}function qe({title:e,subtitle:t,actions:n}){return s.jsxs("div",{style:{height:54,borderBottom:`1px solid ${i.border}`,display:"flex",alignItems:"center",padding:"0 24px",gap:16,flexShrink:0},children:[s.jsxs("div",{style:{flex:1},children:[s.jsx("div",{style:{fontFamily:i.sans,fontWeight:600,fontSize:14,color:i.text},children:e}),t&&s.jsx("div",{style:{fontFamily:i.mono,fontSize:10,color:i.textMuted,marginTop:1},children:t})]}),s.jsx("div",{style:{display:"flex",gap:8},children:n})]})}const dp={primary:{bg:i.accent,color:"#000",border:"none"},ghost:{bg:"transparent",color:i.textMuted,border:`1px solid ${i.border}`},danger:{bg:i.redDim,color:i.red,border:`1px solid ${i.red}44`}};function U({children:e,variant:t="ghost",onClick:n,icon:r,type:l="button",style:o,...a}){const u=dp[t];return s.jsxs("button",{type:l,onClick:n,...a,style:{display:"flex",alignItems:"center",gap:6,padding:"5px 12px",borderRadius:6,cursor:"pointer",fontFamily:i.sans,fontSize:12,fontWeight:600,background:u.bg,color:u.color,border:u.border,transition:"all 0.12s"},children:[r&&s.jsx("span",{style:{display:"flex"},children:r}),e]})}function Rt({env:e,small:t}){const n=Rc[e]??{color:i.textMuted,bg:"transparent",label:e.toUpperCase().slice(0,3)};return s.jsx("span",{style:{fontFamily:i.mono,fontSize:t?"9px":"10px",fontWeight:700,color:n.color,background:n.bg,border:`1px solid ${n.color}33`,borderRadius:"3px",padding:t?"1px 5px":"2px 7px",letterSpacing:"0.08em"},children:n.label})}const fp={ok:i.green,missing_keys:i.red,schema_warn:i.yellow,sops_error:i.red};function pp({status:e}){const t=fp[e]??i.textMuted;return s.jsx("span",{"data-testid":"status-dot",style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:t,boxShadow:`0 0 6px ${t}88`}})}function mp(e){if(!e.cell.exists)return"missing_keys";const t=e.issues.some(r=>r.type==="missing_keys"||r.type==="sops_error"),n=e.issues.some(r=>r.type==="schema_warning");return t?"missing_keys":n?"schema_warn":"ok"}function yp(e){if(!e)return"never";const n=new Date().getTime()-e.getTime(),r=Math.floor(n/(1e3*60*60));if(r<1)return"just now";if(r<24)return`${r}h ago`;const l=Math.floor(r/24);return l<7?`${l}d ago`:`${Math.floor(l/7)}w ago`}function hp({namespaces:e,environments:t,matrixStatuses:n,onNamespaceClick:r}){return s.jsxs("div",{"data-testid":"matrix-table",style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:12,overflow:"hidden"},children:[s.jsxs("div",{style:{display:"grid",gridTemplateColumns:`180px ${t.map(()=>"1fr").join(" ")}`,borderBottom:`1px solid ${i.border}`,background:"#0D0F14"},children:[s.jsx("div",{style:{padding:"12px 20px",fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase",letterSpacing:"0.08em"},children:"Namespace"}),t.map(l=>s.jsxs("div",{style:{padding:"12px 20px",display:"flex",alignItems:"center",gap:8,borderLeft:`1px solid ${i.border}`},children:[s.jsx(Rt,{env:l.name}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:12,fontWeight:500,color:i.text},children:l.name})]},l.name))]}),e.map((l,o)=>s.jsxs("div",{"data-testid":`matrix-row-${l.name}`,role:"button",tabIndex:0,onClick:()=>r==null?void 0:r(l.name),onKeyDown:a=>{a.key==="Enter"&&(r==null||r(l.name))},style:{display:"grid",gridTemplateColumns:`180px ${t.map(()=>"1fr").join(" ")}`,borderBottom:o<e.length-1?`1px solid ${i.border}`:"none",cursor:r?"pointer":"default",transition:"background 0.1s"},onMouseEnter:a=>{a.currentTarget.style.background=i.surfaceHover},onMouseLeave:a=>{a.currentTarget.style.background="transparent"},children:[s.jsxs("div",{style:{padding:"16px 20px",display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim},children:"//"}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:13,fontWeight:600,color:i.text},children:l.name})]}),t.map(a=>{const u=n.find(k=>k.cell.namespace===l.name&&k.cell.environment===a.name),c=u?mp(u):"ok",p=(u==null?void 0:u.keyCount)??0,h=u!=null&&u.lastModified?yp(u.lastModified instanceof Date?u.lastModified:new Date(u.lastModified)):"never",g=u?u.issues.filter(k=>k.type==="missing_keys").length:0,m=u?u.issues.filter(k=>k.type==="schema_warning").length:0,S=(u==null?void 0:u.pendingCount)??0;return s.jsxs("div",{style:{padding:"14px 20px",borderLeft:`1px solid ${i.border}`,display:"flex",flexDirection:"column",gap:5},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:7},children:[s.jsx(pp,{status:c}),s.jsxs("span",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted},children:[p," keys"]}),g>0&&s.jsxs("span",{style:{fontFamily:i.mono,fontSize:10,color:i.red,background:i.redDim,border:`1px solid ${i.red}33`,borderRadius:3,padding:"1px 5px"},children:["-",g," missing"]}),m>0&&s.jsxs("span",{style:{fontFamily:i.mono,fontSize:10,color:i.yellow,background:i.yellowDim,border:`1px solid ${i.yellow}33`,borderRadius:3,padding:"1px 5px"},children:[m," warn"]}),S>0&&s.jsxs("span",{style:{fontFamily:i.mono,fontSize:10,color:i.accent,background:`${i.accent}18`,border:`1px solid ${i.accent}33`,borderRadius:3,padding:"1px 5px"},children:[S," pending"]})]}),s.jsx("div",{style:{fontFamily:i.mono,fontSize:10,color:i.textDim},children:h})]},a.name)})]},l.name))]})}function gp({setView:e,setNs:t,manifest:n,matrixStatuses:r}){if(!n)return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[s.jsx(qe,{title:"Secret Matrix",subtitle:"Loading..."}),s.jsx("div",{style:{flex:1,padding:28},children:s.jsx("p",{style:{color:i.textMuted,fontFamily:i.sans,fontSize:13},children:"Loading manifest..."})})]});const l=n.environments,o=n.namespaces,a=r.length===0&&o.length>0,u=r.filter(m=>m.cell.exists&&m.issues.length===0).length,c=r.filter(m=>!m.cell.exists||m.issues.some(S=>S.type==="missing_keys")).length,p=r.filter(m=>m.issues.some(S=>S.type==="schema_warning")).length,h=r.reduce((m,S)=>m+(S.pendingCount??0),0),g=o.length*l.length;return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Secret Matrix",subtitle:`${o.length} namespaces · ${l.length} environments · ${g} files`,actions:s.jsxs(s.Fragment,{children:[s.jsx(U,{onClick:()=>e("lint"),children:"Lint All"}),s.jsx(U,{variant:"primary",children:"+ Namespace"})]})}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:28,position:"relative"},children:[a&&s.jsx("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:`${i.bg}dd`,zIndex:10,borderRadius:8},children:s.jsxs("div",{style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,padding:"24px 36px",textAlign:"center"},children:[s.jsx("div",{style:{fontSize:20,color:i.accent,marginBottom:8},children:"♪"}),s.jsx("div",{style:{fontFamily:i.sans,fontSize:13,color:i.textMuted},children:"Loading..."})]})}),s.jsx("div",{style:{display:"flex",gap:10,marginBottom:28},children:[{label:`${u} healthy`,color:i.green},{label:`${c} missing keys`,color:i.red},{label:`${p} schema warning${p!==1?"s":""}`,color:i.yellow},...h>0?[{label:`${h} pending value${h!==1?"s":""}`,color:i.accent}]:[]].map(m=>s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:500,color:m.color,background:`${m.color}14`,border:`1px solid ${m.color}33`,borderRadius:20,padding:"4px 14px"},children:m.label},m.label))}),s.jsx(hp,{namespaces:o,environments:l,matrixStatuses:r,onNamespaceClick:m=>{t(m),e("editor")}}),s.jsx("div",{style:{marginTop:20,display:"flex",gap:10},children:s.jsx(U,{"data-testid":"diff-environments-btn",onClick:()=>e("diff"),children:"Diff environments"})})]})]})}function vp({ns:e,manifest:t,onCommit:n}){var Ye;const[r,l]=C.useState(""),[o,a]=C.useState([]),[u,c]=C.useState(!1),[p,h]=C.useState("value"),[g,m]=C.useState(""),[S,k]=C.useState(""),[z,_]=C.useState(null),[y,f]=C.useState(null),[d,v]=C.useState(!1),[j,w]=C.useState(null),[R,T]=C.useState(""),[O,$]=C.useState(!1),[Y,ie]=C.useState(""),[x,I]=C.useState([]),V=C.useRef(),M=5*60*1e3;C.useEffect(()=>()=>clearTimeout(V.current),[]);const ue=(t==null?void 0:t.environments)??[];C.useEffect(()=>{ue.length>0&&!r&&l(ue[0].name)},[ue,r]);const D=C.useCallback(async()=>{var F,b,W;if(!(!r||!e)){v(!0),w(null);try{const ye=await X(`/api/namespace/${e}/${r}`);if(!ye.ok){const hr=await ye.json();w(hr.error||"Failed to load"),a([]);return}const pt=await ye.json(),Tc=new Set(pt.pending??[]),Dc=Object.entries(pt.values).map(([hr,$c])=>({key:hr,value:String($c),type:"string",required:!1,visible:!1,edited:!1,isNew:!1,pending:Tc.has(hr)}));a(Dc);const Pc=((F=pt.metadata)==null?void 0:F.backend)??"age",Xi=((W=(b=pt.metadata)==null?void 0:b.recipients)==null?void 0:W.length)??0;ie(`encrypted with ${Pc} · ${Xi} recipient${Xi!==1?"s":""}`)}catch{w("Failed to load namespace data"),a([])}finally{v(!1)}}},[e,r]);C.useEffect(()=>{D()},[D]),C.useEffect(()=>{e&&X(`/api/lint/${e}`).then(F=>F.ok?F.json():{issues:[]}).then(F=>I(F.issues??[])).catch(()=>I([]))},[e]);const N=F=>{a(b=>b.map(W=>W.key===F?{...W,visible:!W.visible}:W)),clearTimeout(V.current),V.current=setTimeout(()=>{a(b=>b.map(W=>({...W,value:"",visible:!1})))},M)},L=(F,b)=>{a(W=>W.map(ye=>ye.key===F?{...ye,value:b,edited:!0}:ye))},J=async()=>{const F=o.filter(b=>b.edited);for(const b of F)await X(`/api/namespace/${e}/${r}/${b.key}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({value:b.value})});R&&n(R),$(!1),T(""),await D()},le=async()=>{if(!g.trim())return;const F=g.trim(),b=p==="random"?{random:!0}:{value:S};try{const W=await X(`/api/namespace/${e}/${r}/${F}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)});if(!W.ok){const pt=await W.json();w(pt.error||"Failed to add key");return}const ye=await W.json();ye.warning&&w(ye.warning),a(pt=>[...pt,{key:F,value:p==="random"?"":S,type:"string",required:!1,visible:!1,edited:!1,isNew:!0,pending:p==="random"}])}catch{w("Failed to add key")}finally{c(!1),h("value"),m(""),k("")}},Yt=async F=>{try{const b=await X(`/api/namespace/${e}/${r}/${F}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({random:!0})});if(!b.ok){const W=await b.json();w(W.error||"Failed to reset key");return}a(W=>W.map(ye=>ye.key===F?{...ye,pending:!0,value:"",edited:!1}:ye))}catch{w("Failed to reset key")}finally{f(null),_(null)}},tt=o.some(F=>F.edited),zn=((Ye=t==null?void 0:t.environments.find(F=>F.name===r))==null?void 0:Ye.protected)===!0;return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:`/${e}`,subtitle:`Namespace · ${o.length} keys`,actions:s.jsxs(s.Fragment,{children:[tt&&!O&&s.jsx(U,{variant:"primary",onClick:()=>$(!0),children:"Commit changes"}),O&&s.jsxs("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[s.jsx("input",{"data-testid":"commit-message-input",value:R,onChange:F=>T(F.target.value),placeholder:"Commit message...",style:{background:"#0D0F14",border:`1px solid ${i.borderLight}`,borderRadius:5,padding:"5px 10px",fontFamily:i.mono,fontSize:12,color:i.text,outline:"none",width:220}}),s.jsx(U,{variant:"primary",onClick:J,children:"Save & Commit"}),s.jsx(U,{onClick:()=>$(!1),children:"Cancel"})]}),s.jsx(U,{"data-testid":"add-key-btn",onClick:()=>c(!0),children:"+ Add key"})]})}),s.jsxs("div",{style:{display:"flex",gap:0,borderBottom:`1px solid ${i.border}`,padding:"0 24px",background:"#0D0F14"},children:[ue.map(F=>{const b=r===F.name,W=Rc[F.name]??{color:i.textMuted};return s.jsxs("div",{role:"tab",tabIndex:0,onClick:()=>l(F.name),onKeyDown:ye=>{ye.key==="Enter"&&l(F.name)},style:{padding:"10px 18px",cursor:"pointer",borderBottom:b?`2px solid ${W.color}`:"2px solid transparent",display:"flex",alignItems:"center",gap:7,marginBottom:-1},children:[s.jsx(Rt,{env:F.name,small:!0}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:13,fontWeight:b?600:400,color:b?i.text:i.textMuted},children:F.name})]},F.name)}),s.jsx("div",{style:{flex:1}}),s.jsx("div",{style:{padding:"10px 0",display:"flex",alignItems:"center"},children:s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,color:i.textMuted},children:Y})})]}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:24},children:[zn&&s.jsxs("div",{"data-testid":"production-warning",style:{marginBottom:20,padding:"10px 16px",background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:8,display:"flex",alignItems:"center",gap:10},children:[s.jsx("span",{style:{fontSize:14},children:"🔒"}),s.jsxs("span",{style:{fontFamily:i.sans,fontSize:12,color:i.red},children:[s.jsx("strong",{children:"Production environment."})," Changes will require confirmation before committing."]})]}),d&&s.jsx("p",{style:{color:i.textMuted,fontFamily:i.sans},children:"Loading..."}),j&&s.jsx("div",{style:{padding:"12px 16px",background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:8,fontFamily:i.sans,fontSize:12,color:i.red,marginBottom:20},children:j}),!d&&!j&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,overflow:"hidden"},children:[s.jsx("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr 90px 36px",background:"#0D0F14",padding:"10px 20px",borderBottom:`1px solid ${i.border}`},children:["Key","Value","Type",""].map(F=>s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase",letterSpacing:"0.07em"},children:F},F||"actions"))}),o.map((F,b)=>s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr 90px 36px",padding:"0 20px",borderBottom:b<o.length-1?`1px solid ${i.border}`:"none",background:F.pending?"#F0A50012":F.edited?`${i.accent}08`:"transparent",borderLeft:F.pending?"3px solid #F0A50088":F.edited?`2px solid ${i.accent}`:"2px solid transparent",alignItems:"center",minHeight:48},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,paddingRight:16},children:[F.required&&s.jsx("span",{style:{color:i.accent,fontSize:14,lineHeight:1},children:"*"}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:12,color:i.text},children:F.key}),F.edited&&s.jsx("span",{"data-testid":"dirty-dot",style:{width:6,height:6,borderRadius:"50%",background:i.accent,flexShrink:0,display:"inline-block"}})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,paddingRight:16},children:[F.pending&&!F.visible?s.jsxs("span",{style:{fontFamily:i.mono,fontSize:11,fontStyle:"italic",color:i.accent},children:["PENDING ","—"," not yet set"]}):F.visible?s.jsx("input",{type:"text","data-testid":`value-input-${F.key}`,value:F.value,onChange:W=>L(F.key,W.target.value),autoComplete:"off",placeholder:F.pending?"Enter real value...":void 0,style:{flex:1,background:"#0D0F14",border:`1px solid ${i.borderLight}`,borderRadius:5,padding:"5px 10px",fontFamily:i.mono,fontSize:12,color:i.text,outline:"none"}}):s.jsx("span",{style:{fontFamily:i.mono,fontSize:13,color:i.textMuted,letterSpacing:"0.15em"},children:"•".repeat(Math.min(F.value.length,20))}),F.pending&&!F.visible?s.jsx("button",{"data-testid":`set-value-${F.key}`,onClick:()=>N(F.key),style:{background:`${i.accent}18`,border:`1px solid ${i.accent}55`,borderRadius:5,cursor:"pointer",color:i.accent,padding:"3px 10px",fontFamily:i.sans,fontSize:11,fontWeight:600},children:"Set value"}):s.jsx("button",{"data-testid":`eye-${F.key}`,onClick:()=>N(F.key),"aria-label":F.visible?"Hide value":"Reveal value",style:{background:"none",border:"none",cursor:"pointer",color:F.visible?i.accent:i.textDim,padding:4,display:"flex",alignItems:"center",fontSize:13},children:"👁"})]}),s.jsx("div",{children:F.pending?s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,fontWeight:700,color:i.accent,background:`${i.accent}18`,border:`1px solid ${i.accent}33`,borderRadius:3,padding:"2px 7px"},children:"PENDING"}):s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,color:i.blue,background:i.blueDim,border:`1px solid ${i.blue}33`,borderRadius:3,padding:"2px 7px"},children:F.type})}),s.jsxs("div",{style:{display:"flex",justifyContent:"center",position:"relative"},children:[s.jsx("button",{"data-testid":`overflow-${F.key}`,onClick:()=>_(z===F.key?null:F.key),style:{background:"none",border:"none",cursor:"pointer",color:i.textDim,fontSize:16,padding:4},children:"⋯"}),z===F.key&&s.jsx("div",{"data-testid":`overflow-menu-${F.key}`,style:{position:"absolute",top:"100%",right:0,zIndex:10,background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,padding:4,minWidth:200,boxShadow:"0 4px 12px rgba(0,0,0,0.3)"},children:s.jsx("button",{"data-testid":`reset-random-${F.key}`,onClick:()=>{_(null),f(F.key)},title:"Use this to immediately invalidate a compromised secret while you arrange a replacement.",style:{display:"block",width:"100%",textAlign:"left",background:"none",border:"none",cursor:"pointer",fontFamily:i.sans,fontSize:12,color:i.accent,padding:"6px 10px",borderRadius:4},onMouseEnter:W=>{W.currentTarget.style.background=i.surfaceHover},onMouseLeave:W=>{W.currentTarget.style.background="none"},children:"Reset to random (pending)"})})]})]},F.key)),u&&s.jsxs("div",{style:{padding:"12px 20px",borderTop:`1px solid ${i.border}`,display:"flex",flexDirection:"column",gap:10},children:[s.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[s.jsx("input",{"data-testid":"new-key-input",placeholder:"KEY_NAME",value:g,onChange:F=>m(F.target.value),style:{flex:"0 0 240px",background:"#0D0F14",border:`1px solid ${i.accent}66`,borderRadius:5,padding:"6px 10px",fontFamily:i.mono,fontSize:12,color:i.text,outline:"none"}}),s.jsxs("div",{style:{display:"flex",gap:4},children:[s.jsx("button",{"data-testid":"mode-set-value",onClick:()=>{h("value"),k("")},style:{fontFamily:i.sans,fontSize:11,fontWeight:600,padding:"4px 12px",borderRadius:12,border:`1px solid ${p==="value"?i.accent:i.border}`,background:p==="value"?`${i.accent}22`:"transparent",color:p==="value"?i.accent:i.textMuted,cursor:"pointer"},children:"Set value"}),s.jsx("button",{"data-testid":"mode-random",onClick:()=>{h("random"),k("")},style:{fontFamily:i.sans,fontSize:11,fontWeight:600,padding:"4px 12px",borderRadius:12,border:`1px solid ${p==="random"?i.accent:i.border}`,background:p==="random"?`${i.accent}22`:"transparent",color:p==="random"?i.accent:i.textMuted,cursor:"pointer"},children:"Random (pending)"})]})]}),s.jsxs("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[p==="value"?s.jsx("input",{"data-testid":"new-value-input",type:"password",placeholder:"value",value:S,onChange:F=>k(F.target.value),autoComplete:"off",style:{flex:1,background:"#0D0F14",border:`1px solid ${i.border}`,borderRadius:5,padding:"6px 10px",fontFamily:i.mono,fontSize:12,color:i.text,outline:"none"}}):s.jsx("div",{style:{flex:1,fontFamily:i.mono,fontSize:11,fontStyle:"italic",color:i.accent,padding:"6px 10px"},children:"A cryptographically random placeholder will be generated server-side."}),s.jsx(U,{variant:"primary","data-testid":"add-key-submit",onClick:le,children:p==="random"?"Generate random value":"Add"}),s.jsx(U,{onClick:()=>{c(!1),h("value"),m(""),k("")},children:"Cancel"})]})]})]}),y&&s.jsxs("div",{"data-testid":"confirm-reset-dialog",style:{marginTop:16,padding:"14px 18px",background:`${i.accent}0A`,border:`1px solid ${i.accent}33`,borderRadius:8,fontFamily:i.sans,fontSize:12},children:[s.jsxs("p",{style:{color:i.text,margin:"0 0 10px 0"},children:["Reset ",s.jsx("strong",{style:{fontFamily:i.mono},children:y})," to a random placeholder? The current value will be overwritten."]}),s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx(U,{variant:"primary","data-testid":"confirm-reset-yes",onClick:()=>Yt(y),children:"Reset to random"}),s.jsx(U,{"data-testid":"confirm-reset-no",onClick:()=>f(null),children:"Cancel"})]})]}),s.jsxs("div",{style:{marginTop:24},children:[s.jsxs("div",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase",letterSpacing:"0.08em",marginBottom:10},children:["Schema ","·"," schemas/",e,".yaml"]}),s.jsx("div",{"data-testid":"schema-summary",style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,padding:"12px 16px",fontFamily:i.mono,fontSize:11,color:i.textMuted,lineHeight:1.7},children:(()=>{const F=x.filter(W=>W.severity==="error"),b=x.filter(W=>W.severity==="warning");return F.length===0&&b.length===0?s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{color:i.green},children:"✓"})," All required keys present  ","·"," ",s.jsx("span",{style:{color:i.green},children:"✓"})," All types valid  ","·"," ",s.jsx("span",{style:{color:i.textDim},children:"0 warnings"})]}):s.jsxs(s.Fragment,{children:[F.length>0&&s.jsxs("span",{style:{color:i.red},children:[F.length," error",F.length!==1?"s":""]}),F.length>0&&b.length>0&&s.jsxs("span",{children:["  ","·","  "]}),b.length>0&&s.jsxs("span",{style:{color:i.yellow},children:[b.length," warning",b.length!==1?"s":""]})]})})()})]})]})]})]})}function Gi({text:e}){const[t,n]=C.useState(!1),r=C.useCallback(()=>{var l;(l=navigator.clipboard)==null||l.writeText(e),n(!0),setTimeout(()=>n(!1),1800)},[e]);return s.jsx("button",{"data-testid":"copy-button",onClick:r,style:{background:t?i.greenDim:"none",border:`1px solid ${t?i.green+"55":i.borderLight}`,borderRadius:4,cursor:"pointer",color:t?i.green:i.textDim,fontFamily:i.mono,fontSize:10,padding:"2px 8px",transition:"all 0.15s"},children:t?"copied!":"copy"})}function ua(e,t){return e.length>t?e.slice(0,t)+"…":e}function xp({manifest:e}){var $,Y,ie;const t=(e==null?void 0:e.environments)??[],n=(e==null?void 0:e.namespaces)??[],[r,l]=C.useState((($=n[0])==null?void 0:$.name)??""),[o,a]=C.useState(((Y=t[0])==null?void 0:Y.name)??""),[u,c]=C.useState(((ie=t[t.length-1])==null?void 0:ie.name)??""),[p,h]=C.useState(!1),[g,m]=C.useState(null),[S,k]=C.useState(!1),[z,_]=C.useState(!1);C.useEffect(()=>{n.length>0&&!r&&l(n[0].name),t.length>0&&!o&&a(t[0].name),t.length>1&&!u&&c(t[t.length-1].name)},[n,t,r,o,u]);const y=C.useCallback(async()=>{if(!(!r||!o||!u||o===u)){k(!0);try{const x=await X(`/api/diff/${r}/${o}/${u}`);x.ok?m(await x.json()):m(null)}catch{m(null)}finally{k(!1)}}},[r,o,u]);C.useEffect(()=>{y()},[y]);const f=(g==null?void 0:g.rows)??[],d=f.filter(x=>p||x.status!=="identical"),v=f.filter(x=>x.status==="changed").length,j=f.filter(x=>x.status==="missing_a").length,w=f.filter(x=>x.status==="missing_b").length,R=f.filter(x=>x.status==="identical").length,T=f.filter(x=>x.status==="missing_a"||x.status==="missing_b"),O={changed:{label:"Changed",color:i.yellow},identical:{label:"Identical",color:i.textMuted},missing_a:{label:`Missing in ${o}`,color:i.red},missing_b:{label:`Missing in ${u}`,color:i.red}};return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Environment Diff",subtitle:"Compare secrets across environments",actions:s.jsxs(U,{variant:"primary","data-testid":"sync-missing-btn",onClick:()=>{_(!0),setTimeout(()=>_(!1),2e3)},children:["Sync missing keys ","→"]})}),z&&s.jsx("div",{"data-testid":"coming-soon-toast",style:{position:"fixed",top:20,right:20,padding:"10px 18px",background:i.surface,border:`1px solid ${i.accent}44`,borderRadius:8,fontFamily:i.sans,fontSize:12,color:i.accent,zIndex:1e3},children:"Coming soon"}),s.jsxs("div",{style:{padding:"14px 24px",background:"#0D0F14",borderBottom:`1px solid ${i.border}`,display:"flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx("span",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted},children:"Namespace"}),s.jsx("select",{value:r,onChange:x=>l(x.target.value),style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,padding:"5px 10px",fontFamily:i.mono,fontSize:12,color:i.text,cursor:"pointer"},children:n.map(x=>s.jsx("option",{value:x.name,children:x.name},x.name))})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx("span",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted},children:"Compare"}),s.jsx("select",{value:o,onChange:x=>a(x.target.value),style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,padding:"5px 10px",fontFamily:i.mono,fontSize:12,color:i.text,cursor:"pointer"},children:t.map(x=>s.jsx("option",{value:x.name,children:x.name},x.name))}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:12,color:i.textDim},children:"→"}),s.jsx("select",{value:u,onChange:x=>c(x.target.value),style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,padding:"5px 10px",fontFamily:i.mono,fontSize:12,color:i.text,cursor:"pointer"},children:t.map(x=>s.jsx("option",{value:x.name,children:x.name},x.name))})]}),s.jsx("div",{style:{flex:1}}),s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[s.jsx("input",{type:"checkbox",checked:p,onChange:x=>h(x.target.checked),style:{accentColor:i.accent}}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted},children:"Show identical"})]})]}),s.jsx("div",{style:{padding:"10px 24px",display:"flex",gap:10,borderBottom:`1px solid ${i.border}`},children:[{label:`${v} changed`,color:i.yellow},...j>0?[{label:`${j} missing in ${o}`,color:i.red}]:[],...w>0?[{label:`${w} missing in ${u}`,color:i.red}]:[],{label:`${R} identical`,color:i.textMuted}].map(x=>s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:x.color,background:`${x.color}14`,border:`1px solid ${x.color}33`,borderRadius:20,padding:"2px 10px"},children:x.label},x.label))}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:24},children:[S&&s.jsx("p",{style:{color:i.textMuted,fontFamily:i.sans},children:"Loading..."}),!S&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{"data-testid":"diff-table",style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,overflow:"hidden"},children:[s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"220px 1fr 1fr 100px",background:"#0D0F14",padding:"10px 20px",borderBottom:`1px solid ${i.border}`},children:[s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase",letterSpacing:"0.07em"},children:"Key"}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx(Rt,{env:o,small:!0}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase"},children:o})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx(Rt,{env:u,small:!0}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase"},children:u})]}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:i.textMuted,textTransform:"uppercase"},children:"Status"})]}),d.map((x,I)=>{const V=O[x.status];return s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"220px 1fr 1fr 100px",padding:"0 20px",minHeight:48,alignItems:"center",borderBottom:I<d.length-1?`1px solid ${i.border}`:"none",background:x.status==="changed"?`${i.yellow}06`:x.status.startsWith("missing")?`${i.red}06`:"transparent"},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:12,color:i.text,paddingRight:16},children:x.key}),s.jsx("div",{style:{paddingRight:16},children:x.valueA!==null?s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:x.status==="changed"?i.yellow:i.textMuted,background:x.status==="changed"?i.yellowDim:"transparent",padding:x.status==="changed"?"2px 6px":"0",borderRadius:3},children:ua(x.valueA,36)}):s.jsxs("span",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim,fontStyle:"italic"},children:["—"," not set ","—"]})}),s.jsx("div",{style:{paddingRight:16},children:x.valueB!==null?s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:x.status==="changed"?i.blue:i.textMuted,background:x.status==="changed"?i.blueDim:"transparent",padding:x.status==="changed"?"2px 6px":"0",borderRadius:3},children:ua(x.valueB,36)}):s.jsxs("span",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim,fontStyle:"italic"},children:["—"," not set ","—"]})}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,fontWeight:600,color:V.color,background:`${V.color}18`,border:`1px solid ${V.color}33`,borderRadius:3,padding:"2px 8px",display:"inline-block"},children:V.label})]},x.key)})]}),T.length>0&&s.jsx("div",{"data-testid":"fix-hint",style:{marginTop:20,padding:"14px 18px",background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,display:"flex",flexDirection:"column",gap:10},children:T.map(x=>{const I=x.status==="missing_a"?o:u,V=`clef set ${r}/${I} ${x.key}`;return s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12},children:[s.jsx("span",{style:{fontSize:16},children:"💡"}),s.jsxs("span",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted,flex:1},children:[s.jsx("strong",{style:{color:i.text},children:x.key})," is missing in"," ",s.jsx(Rt,{env:I,small:!0}),". Run"," ",s.jsx("code",{style:{fontFamily:i.mono,fontSize:11,color:i.accent,background:i.accentDim,padding:"1px 6px",borderRadius:3},children:V})," ","to add it."]}),s.jsx(Gi,{text:V})]},x.key)})})]})]})]})}function Sp({setView:e,setNs:t}){const[n,r]=C.useState("all"),[l,o]=C.useState([]),[a,u]=C.useState(null),[c,p]=C.useState(!1),h=C.useCallback(async()=>{p(!0);try{const d=await X("/api/lint");d.ok&&u(await d.json())}catch{}finally{p(!1)}},[]);C.useEffect(()=>{h()},[h]);const g=(a==null?void 0:a.issues)??[],m=(a==null?void 0:a.fileCount)??0,S=g.filter(d=>d.severity==="error"),k=g.filter(d=>d.severity==="warning"),z=g.filter(d=>d.severity==="info"),_=g.map((d,v)=>({...d,_idx:v})).filter(d=>!l.includes(d._idx)).filter(d=>n==="all"||d.severity===n||d.category===n),y=d=>{if(d.file){const v=d.file.split("/"),j=v[v.length-2]??v[0];t(j),e("editor")}},f=_.length===0;return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Lint",subtitle:"clef lint \\u2014 full repo health check",actions:s.jsxs(s.Fragment,{children:[s.jsxs(U,{onClick:h,children:["↻"," Re-run"]}),S.length===0&&s.jsxs(U,{variant:"primary",children:["All clear ","—"," commit"]})]})}),!c&&!f&&s.jsxs("div",{style:{padding:"14px 24px",background:"#0D0F14",borderBottom:`1px solid ${i.border}`,display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[[{key:"all",label:"All issues",count:g.length,color:i.textMuted},{key:"error",label:"Errors",count:S.length,color:i.red},{key:"warning",label:"Warnings",count:k.length,color:i.yellow},{key:"info",label:"Info",count:z.length,color:i.blue}].map(d=>s.jsxs("button",{"data-testid":`filter-${d.key}`,onClick:()=>r(d.key),style:{display:"flex",alignItems:"center",gap:6,padding:"5px 12px",borderRadius:20,cursor:"pointer",fontFamily:i.sans,fontSize:12,fontWeight:n===d.key?600:400,color:n===d.key?d.color:i.textMuted,background:n===d.key?`${d.color}18`:"transparent",border:`1px solid ${n===d.key?`${d.color}55`:i.border}`,transition:"all 0.12s"},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,fontWeight:700,color:d.color},children:d.count}),d.label]},d.key)),s.jsx("div",{style:{flex:1}}),["matrix","schema","sops"].map(d=>{const v=sa[d];return s.jsx("button",{onClick:()=>r(n===d?"all":d),style:{padding:"4px 10px",borderRadius:4,cursor:"pointer",fontFamily:i.mono,fontSize:10,fontWeight:600,color:n===d?v.color:i.textDim,background:n===d?`${v.color}18`:"transparent",border:`1px solid ${n===d?`${v.color}55`:i.borderLight}`,letterSpacing:"0.06em"},children:v.label},d)})]}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:24},children:[c&&s.jsxs(s.Fragment,{children:[s.jsx("style",{children:`
41
+ @keyframes clef-scan-line {
42
+ 0% { transform: scaleX(0); opacity: 0; }
43
+ 10% { opacity: 1; }
44
+ 50% { transform: scaleX(1); opacity: 1; }
45
+ 80% { transform: scaleX(1); opacity: 0.3; }
46
+ 100% { transform: scaleX(0); opacity: 0; }
47
+ }
48
+ @keyframes clef-scan-glow {
49
+ 0%, 100% { opacity: 0.4; }
50
+ 50% { opacity: 1; }
51
+ }
52
+ `}),s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"48px 24px"},children:s.jsxs("div",{style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,padding:"28px 40px",textAlign:"center",minWidth:200},children:[s.jsx("div",{style:{marginBottom:16,display:"flex",flexDirection:"column",gap:6},children:[0,.3,.6].map((d,v)=>s.jsx("div",{style:{height:3,borderRadius:2,background:i.accent,transformOrigin:"left",animation:`clef-scan-line 1.8s ease-in-out ${d}s infinite`,opacity:0,width:[120,90,105][v]}},v))}),s.jsx("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted,animation:"clef-scan-glow 1.8s ease-in-out infinite"},children:"Linting..."})]})})]}),!c&&f&&s.jsxs("div",{"data-testid":"all-clear",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:14,padding:"60px 0"},children:[s.jsx("div",{style:{width:56,height:56,borderRadius:"50%",background:i.greenDim,border:`1px solid ${i.green}44`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24},children:"✓"}),s.jsx("div",{style:{fontFamily:i.sans,fontWeight:600,fontSize:16,color:i.green},children:"All clear"}),s.jsxs("div",{style:{fontFamily:i.mono,fontSize:12,color:i.textMuted},children:["No issues found across ",m," files"]})]}),!c&&!f&&["error","warning","info"].map(d=>{const v=_.filter(w=>w.severity===d);if(!v.length)return null;const j=ap[d];return s.jsxs("div",{style:{marginBottom:24},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:10},children:[s.jsx("div",{style:{width:22,height:22,borderRadius:"50%",background:j.bg,border:`1px solid ${j.color}44`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:i.mono,fontSize:11,fontWeight:700,color:j.color},children:j.icon}),s.jsxs("span",{style:{fontFamily:i.sans,fontWeight:600,fontSize:13,color:j.color},children:[j.label,"s"]}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,color:j.color,background:j.bg,border:`1px solid ${j.color}33`,borderRadius:10,padding:"1px 8px"},children:v.length})]}),s.jsx("div",{style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,overflow:"hidden"},children:v.map((w,R)=>{var Y,ie;const T=sa[w.category]??{label:w.category,color:i.textMuted},O=((Y=w.file)==null?void 0:Y.split("/"))??[],$=O.length>=2?(ie=O[O.length-1])==null?void 0:ie.replace(".enc.yaml",""):void 0;return s.jsxs("div",{style:{display:"flex",alignItems:"flex-start",borderBottom:R<v.length-1?`1px solid ${i.border}`:"none",borderLeft:`3px solid ${j.color}66`,transition:"background 0.1s",padding:"14px 18px",gap:14},children:[s.jsx("div",{style:{flexShrink:0,paddingTop:2},children:s.jsx("span",{style:{fontFamily:i.mono,fontSize:9,fontWeight:700,color:T.color,background:`${T.color}18`,border:`1px solid ${T.color}33`,borderRadius:3,padding:"2px 6px",letterSpacing:"0.07em",textTransform:"uppercase"},children:T.label})}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4,flexWrap:"wrap"},children:[s.jsx("span",{"data-testid":`file-ref-${w.file}`,role:"link",tabIndex:0,onClick:()=>y(w),onKeyDown:x=>{x.key==="Enter"&&y(w)},style:{fontFamily:i.mono,fontSize:12,fontWeight:600,color:i.accent,cursor:w.file?"pointer":"default",textDecoration:w.file?"underline":"none",textDecorationColor:`${i.accent}55`,textDecorationStyle:"dotted"},children:w.file}),w.key&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim},children:"→"}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.text,background:"#1A1F2B",border:`1px solid ${i.borderLight}`,borderRadius:3,padding:"1px 7px"},children:w.key})]}),$&&s.jsx(Rt,{env:$,small:!0})]}),s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted,marginBottom:w.fixCommand?10:0},children:w.message}),w.fixCommand&&s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:"#0D0F14",border:`1px solid ${i.borderLight}`,borderRadius:6,padding:"6px 10px",width:"fit-content"},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.green},children:"$"}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.text},children:w.fixCommand}),s.jsx(Gi,{text:w.fixCommand})]})]}),s.jsx("button",{onClick:()=>o(x=>[...x,w._idx]),title:"Dismiss","aria-label":"Dismiss issue",style:{background:"none",border:"none",cursor:"pointer",color:i.textDim,fontSize:16,flexShrink:0,padding:"0 4px",lineHeight:1,transition:"color 0.1s"},children:"×"})]},w._idx)})})]},d)}),!c&&!f&&s.jsxs("div",{style:{marginTop:8,padding:"12px 16px",background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,display:"flex",alignItems:"center",gap:12},children:[s.jsx("span",{style:{fontSize:14},children:"💡"}),s.jsxs("span",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted},children:["Fix all errors before committing. Warnings and info items won't block commits but should be reviewed. Run"," ",s.jsx("code",{style:{fontFamily:i.mono,fontSize:11,color:i.accent,background:i.accentDim,padding:"1px 6px",borderRadius:3},children:"clef lint --fix"})," ","to auto-resolve safe issues."]})]})]})]})}function kp(){const[e,t]=C.useState("idle"),[n,r]=C.useState("all"),[l,o]=C.useState(null),[a,u]=C.useState(null),[c,p]=C.useState([]),[h,g]=C.useState("all");C.useEffect(()=>{X("/api/scan/status").then(d=>d.ok?d.json():null).then(d=>{if(d!=null&&d.lastRun){o(d.lastRun),u(d.lastRunAt);const v=d.lastRun.matches.length>0||d.lastRun.unencryptedMatrixFiles.length>0;t(v?"issues":"clean")}}).catch(()=>{})},[]);const m=C.useCallback(async()=>{t("scanning"),p([]);try{const d=await X("/api/scan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({severity:n})});if(!d.ok)throw new Error("Scan failed");const v=await d.json();o(v),u(new Date().toISOString());const j=v.matches.length>0||v.unencryptedMatrixFiles.length>0;t(j?"issues":"clean")}catch{t("idle")}},[n]),S=async d=>{try{await X("/api/editor/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:d})})}catch{}},k=d=>{if(!d)return"";const v=Date.now()-new Date(d).getTime();return v<6e4?"just now":`${Math.floor(v/6e4)}m ago`},z=((l==null?void 0:l.matches)??[]).map((d,v)=>({...d,_idx:v})).filter(d=>!c.includes(d._idx)).filter(d=>h==="pattern"?d.matchType==="pattern":h==="entropy"?d.matchType==="entropy":!0),_=c.length,y=((l==null?void 0:l.matches.length)??0)+((l==null?void 0:l.unencryptedMatrixFiles.length)??0),f=l?(l.durationMs/1e3).toFixed(1):"0.0";return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Scan",subtitle:"clef scan — detect plaintext secrets",actions:e==="issues"||e==="clean"?s.jsx(U,{onClick:m,children:"↺ Scan again"}):void 0}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:24},children:[e==="idle"&&s.jsxs("div",{"data-testid":"scan-idle",style:{maxWidth:520,margin:"0 auto",paddingTop:40},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:14,color:i.textMuted,marginBottom:24,lineHeight:1.6},children:"Scans your repository for secrets that have escaped the Clef matrix — plaintext values in files that should be encrypted."}),s.jsxs("div",{style:{marginBottom:24},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:600,color:i.textMuted,marginBottom:10,letterSpacing:"0.05em",textTransform:"uppercase"},children:"Severity"}),["all","high"].map(d=>s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8,cursor:"pointer",fontFamily:i.sans,fontSize:13,color:n===d?i.text:i.textMuted},children:[s.jsx("input",{type:"radio",name:"severity",value:d,checked:n===d,onChange:()=>r(d),style:{accentColor:i.accent},"data-testid":`severity-${d}`}),d==="all"?"All (patterns + entropy)":"High (patterns only)"]},d))]}),s.jsx(U,{variant:"primary",onClick:m,"data-testid":"scan-button",children:"Scan repository"}),s.jsxs("div",{style:{marginTop:24,padding:"12px 16px",background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,fontFamily:i.sans,fontSize:12,color:i.textMuted},children:["ℹ️ ",s.jsx("code",{style:{fontFamily:i.mono},children:"clef scan"})," runs automatically on every commit via the pre-commit hook."]})]}),e==="scanning"&&s.jsxs("div",{"data-testid":"scan-scanning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:16,paddingTop:80},children:[s.jsx("div",{style:{width:40,height:40,borderRadius:"50%",border:`3px solid ${i.accent}44`,borderTopColor:i.accent,animation:"spin 0.8s linear infinite"}}),s.jsx("div",{style:{fontFamily:i.sans,fontSize:14,color:i.textMuted},children:"Scanning..."})]}),e==="clean"&&l&&s.jsxs("div",{"data-testid":"scan-clean",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:14,paddingTop:60},children:[s.jsx("div",{style:{width:56,height:56,borderRadius:"50%",background:i.greenDim,border:`1px solid ${i.green}44`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,color:i.green},children:"✓"}),s.jsx("div",{style:{fontFamily:i.sans,fontWeight:600,fontSize:16,color:i.green},children:"No issues found"}),s.jsxs("div",{style:{fontFamily:i.mono,fontSize:12,color:i.textMuted},children:[l.filesScanned," files scanned in ",f,"s"]}),s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim},children:["Last run: ",k(a)]})]}),e==="issues"&&l&&s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:20,flexWrap:"wrap"},children:[s.jsxs("span",{style:{fontFamily:i.sans,fontSize:14,color:i.text,fontWeight:600},children:[y," issue",y!==1?"s":""," found in ",l.filesScanned," ","files (",f,"s)"]}),s.jsx("div",{style:{flex:1}}),[{key:"all",label:"All"},{key:"unencrypted",label:"Unencrypted"},{key:"pattern",label:"Pattern"},{key:"entropy",label:"Entropy"}].map(({key:d,label:v})=>s.jsx("button",{"data-testid":`filter-${d}`,onClick:()=>g(d),style:{padding:"4px 10px",borderRadius:4,cursor:"pointer",fontFamily:i.mono,fontSize:11,fontWeight:h===d?600:400,color:h===d?i.accent:i.textMuted,background:h===d?i.accentDim:"transparent",border:`1px solid ${h===d?i.accent+"55":i.borderLight}`},children:v},d))]}),(h==="all"||h==="unencrypted")&&l.unencryptedMatrixFiles.map(d=>s.jsx(ca,{type:"error",typeLabel:"UNENCRYPTED FILE",file:d,message:"Missing SOPS metadata — file is in plaintext.",fixCommand:`clef encrypt ${d.replace(/\.enc\.(yaml|json)$/,"")}`,onViewFile:()=>S(d)},`unenc-${d}`)),z.map(d=>{var v;return s.jsx(ca,{type:"warning",typeLabel:d.matchType==="pattern"?(d.patternName??"Pattern match").toUpperCase():`HIGH ENTROPY (${(v=d.entropy)==null?void 0:v.toFixed(1)})`,file:`${d.file}:${d.line}`,message:d.preview,fixCommand:d.matchType==="pattern"?"clef set <namespace>/<env> <KEY>":`clef set <namespace>/<env> ${d.preview.split("=")[0]}`,onViewFile:()=>S(d.file),onDismiss:()=>p(j=>[...j,d._idx])},`match-${d._idx}`)}),_>0&&s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim,marginTop:12},children:[_," dismissed"]})]})]})]})}function ca({type:e,typeLabel:t,file:n,message:r,fixCommand:l,onViewFile:o,onDismiss:a}){const u=e==="error"?i.red:i.yellow;return s.jsxs("div",{style:{background:i.surface,border:`1px solid ${i.border}`,borderLeft:`3px solid ${u}66`,borderRadius:8,padding:"14px 18px",marginBottom:12,display:"flex",alignItems:"flex-start",gap:14},children:[s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6,flexWrap:"wrap"},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:9,fontWeight:700,color:u,background:`${u}18`,border:`1px solid ${u}33`,borderRadius:3,padding:"2px 6px",letterSpacing:"0.07em"},children:t}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:12,color:i.accent,cursor:o?"pointer":"default"},onClick:o,role:o?"button":void 0,tabIndex:o?0:void 0,onKeyDown:o?c=>{c.key==="Enter"&&o()}:void 0,children:n})]}),s.jsx("div",{style:{fontFamily:i.mono,fontSize:12,color:i.text,marginBottom:10},"data-testid":"match-preview",children:r}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:"#0D0F14",border:`1px solid ${i.borderLight}`,borderRadius:6,padding:"6px 10px",width:"fit-content"},children:[s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.green},children:"$"}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.text},children:l}),s.jsx(Gi,{text:l})]}),o&&s.jsx("button",{"data-testid":"view-file-button",onClick:o,style:{marginTop:8,background:"none",border:`1px solid ${i.borderLight}`,borderRadius:4,cursor:"pointer",color:i.textMuted,fontFamily:i.sans,fontSize:11,padding:"3px 8px"},children:"View file"})]}),a&&s.jsx("button",{"data-testid":"dismiss-button",onClick:a,title:"Dismiss","aria-label":"Dismiss issue",style:{background:"none",border:"none",cursor:"pointer",color:i.textDim,fontSize:16,flexShrink:0,padding:"0 4px",lineHeight:1},children:"×"})]})}function wp({manifest:e,setView:t}){const[n,r]=C.useState(1),[l,o]=C.useState(""),[a,u]=C.useState(""),[c,p]=C.useState(""),[h,g]=C.useState("auto"),[m,S]=C.useState(null),[k,z]=C.useState([]),[_,y]=C.useState(null),[f,d]=C.useState(!1),[v,j]=C.useState(null);C.useEffect(()=>{e&&(!l&&e.namespaces.length>0&&o(e.namespaces[0].name),!a&&e.environments.length>0&&u(e.environments[0].name))},[e,l,a]);const w=(e==null?void 0:e.namespaces)??[],R=(e==null?void 0:e.environments)??[],T=async()=>{if(!l||!a||!c.trim()){j("Please select a namespace, environment, and paste content.");return}d(!0),j(null);try{const x=await X("/api/import/preview",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:`${l}/${a}`,content:c,format:h==="auto"?void 0:h,overwriteKeys:k})});if(!x.ok){const V=await x.json();j(V.error??"Preview failed");return}const I=await x.json();S(I),z([]),r(2)}catch(x){j(x instanceof Error?x.message:"Preview failed")}finally{d(!1)}},O=async()=>{if(!m)return;d(!0),j(null);const x=[...m.wouldImport,...m.wouldSkip.filter(I=>k.includes(I.key)).map(I=>I.key)];try{const I=await X("/api/import/apply",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:`${l}/${a}`,content:c,format:h==="auto"?void 0:h,keys:x,overwriteKeys:k})});if(!I.ok){const M=await I.json();j(M.error??"Import failed");return}const V=await I.json();y(V),p(""),r(3)}catch(I){j(I instanceof Error?I.message:"Import failed")}finally{d(!1)}},$=()=>{r(1),p(""),S(null),y(null),z([]),j(null)},Y=x=>{z(I=>I.includes(x)?I.filter(V=>V!==x):[...I,x])},ie=((m==null?void 0:m.wouldImport.length)??0)+k.filter(x=>m==null?void 0:m.wouldSkip.some(I=>I.key===x)).length;return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Import",subtitle:"clef import — bulk migrate secrets"}),s.jsx("div",{style:{flex:1,overflow:"auto",padding:24},children:s.jsxs("div",{style:{maxWidth:620,margin:"0 auto"},children:[s.jsx("div",{style:{display:"flex",alignItems:"center",gap:0,marginBottom:32},children:[1,2,3].map((x,I)=>s.jsxs(za.Fragment,{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[s.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:n>=x?i.accent:i.surface,border:`1px solid ${n>=x?i.accent:i.border}`,display:"flex",alignItems:"center",justifyContent:"center",fontFamily:i.mono,fontSize:11,fontWeight:700,color:n>=x?"#000":i.textDim},children:x}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:12,color:n>=x?i.text:i.textDim,fontWeight:n===x?600:400},children:x===1?"Source":x===2?"Preview":"Done"})]}),I<2&&s.jsx("div",{style:{flex:1,height:1,background:n>x?i.accent:i.border,margin:"0 12px",minWidth:40}})]},x))}),v&&s.jsx("div",{style:{background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:8,padding:"12px 16px",marginBottom:16,fontFamily:i.sans,fontSize:13,color:i.red},children:v}),n===1&&s.jsxs("div",{children:[s.jsxs("div",{style:{marginBottom:20},children:[s.jsx(io,{children:"Target"}),s.jsxs("div",{style:{display:"flex",gap:12},children:[s.jsxs("div",{style:{flex:1},children:[s.jsx(da,{children:"Namespace"}),s.jsx(fa,{value:l,onChange:x=>o(x.target.value),children:w.map(x=>s.jsx("option",{value:x.name,children:x.name},x.name))})]}),s.jsxs("div",{style:{flex:1},children:[s.jsx(da,{children:"Environment"}),s.jsx(fa,{value:a,onChange:x=>u(x.target.value),children:R.map(x=>s.jsx("option",{value:x.name,children:x.name},x.name))})]})]})]}),s.jsxs("div",{style:{marginBottom:20},children:[s.jsx(io,{children:"Format"}),s.jsx("div",{style:{display:"flex",gap:16},children:["auto","dotenv","json","yaml"].map(x=>s.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer",fontFamily:i.sans,fontSize:13,color:h===x?i.text:i.textMuted},children:[s.jsx("input",{type:"radio",name:"format",value:x,checked:h===x,onChange:()=>g(x),style:{accentColor:i.accent}}),x==="auto"?"Auto":x]},x))})]}),s.jsxs("div",{style:{marginBottom:8},children:[s.jsx(io,{children:"Paste secrets"}),s.jsx("textarea",{value:c,onChange:x=>p(x.target.value),placeholder:h==="json"?`{
53
+ "DB_HOST": "localhost",
54
+ "DB_PORT": "5432"
55
+ }`:h==="yaml"?`DB_HOST: localhost
56
+ DB_PORT: '5432'`:`DB_HOST=localhost
57
+ DB_PORT=5432
58
+ # Comments are ignored`,rows:12,style:{width:"100%",background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,padding:14,fontFamily:i.mono,fontSize:12,color:i.text,resize:"vertical",outline:"none",boxSizing:"border-box"}})]}),s.jsx("div",{style:{marginBottom:24,padding:"10px 14px",background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,fontFamily:i.sans,fontSize:11,color:i.textMuted,lineHeight:1.5},children:"Values are sent directly to the local Clef server (127.0.0.1) and encrypted immediately. They are never stored in browser memory beyond this session."}),s.jsx(U,{variant:"primary",onClick:T,disabled:f||!c.trim(),children:f?"Previewing...":"Next: Preview"})]}),n===2&&m&&s.jsxs("div",{children:[s.jsxs("div",{style:{fontFamily:i.sans,fontSize:13,color:i.textMuted,marginBottom:20},children:["Importing to"," ",s.jsxs("span",{style:{color:i.accent,fontWeight:600},children:[l,"/",a]}),". ",m.totalKeys," key",m.totalKeys!==1?"s":""," parsed."]}),m.warnings.length>0&&s.jsx("div",{style:{marginBottom:16},children:m.warnings.map((x,I)=>s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.yellow,marginBottom:4},children:["⚠ ",x]},I))}),m.wouldImport.length>0&&s.jsxs("div",{style:{marginBottom:16},children:[s.jsxs(Nr,{color:i.green,children:["New keys (",m.wouldImport.length,")"]}),m.wouldImport.map(x=>s.jsx(so,{icon:"\\u2192",iconColor:i.green,label:x},x))]}),m.wouldSkip.length>0&&s.jsxs("div",{style:{marginBottom:16},children:[s.jsxs(Nr,{color:i.yellow,children:["Already exists (",m.wouldSkip.length,") — toggle to overwrite"]}),m.wouldSkip.map(({key:x,reason:I})=>{const V=k.includes(x);return s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"6px 10px",borderRadius:6,marginBottom:4,background:V?i.yellowDim:"transparent",border:`1px solid ${V?i.yellow+"44":i.border}`},children:[s.jsx("input",{type:"checkbox",checked:V,onChange:()=>Y(x),style:{accentColor:i.yellow},id:`overwrite-${x}`}),s.jsx("label",{htmlFor:`overwrite-${x}`,style:{fontFamily:i.mono,fontSize:12,color:V?i.yellow:i.textMuted,flex:1,cursor:"pointer"},children:x}),s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,color:i.textDim},children:I})]},x)})]}),m.wouldImport.length===0&&m.wouldSkip.length===0&&s.jsx("div",{style:{fontFamily:i.sans,fontSize:13,color:i.textMuted,padding:"24px 0",textAlign:"center"},children:"No importable keys found."}),s.jsxs("div",{style:{display:"flex",gap:10,marginTop:24},children:[s.jsx(U,{variant:"ghost",onClick:()=>r(1),children:"Back"}),s.jsx(U,{variant:"primary",onClick:O,disabled:f||ie===0,children:f?"Importing...":`Import ${ie} key${ie!==1?"s":""}`})]})]}),n===3&&_&&s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",paddingTop:20,paddingBottom:32},children:[s.jsx("div",{style:{width:56,height:56,borderRadius:"50%",background:_.failed.length>0?i.redDim:i.greenDim,border:`1px solid ${_.failed.length>0?i.red+"44":i.green+"44"}`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,color:_.failed.length>0?i.red:i.green,marginBottom:16},children:_.failed.length>0?"⚠":"✓"}),s.jsx("div",{style:{fontFamily:i.sans,fontWeight:600,fontSize:16,color:_.failed.length>0?i.yellow:i.green,marginBottom:8},children:_.failed.length>0?"Import completed with errors":"Import complete"}),s.jsxs("div",{style:{fontFamily:i.mono,fontSize:12,color:i.textMuted},children:[_.imported.length," imported, ",_.skipped.length," skipped,"," ",_.failed.length," failed"]})]}),_.imported.length>0&&s.jsxs("div",{style:{marginBottom:16},children:[s.jsxs(Nr,{color:i.green,children:["Imported (",_.imported.length,")"]}),_.imported.map(x=>s.jsx(so,{icon:"\\u2713",iconColor:i.green,label:x},x))]}),_.failed.length>0&&s.jsxs("div",{style:{marginBottom:16},children:[s.jsxs(Nr,{color:i.red,children:["Failed (",_.failed.length,")"]}),_.failed.map(({key:x,error:I})=>s.jsx(so,{icon:"\\u2717",iconColor:i.red,label:x,note:I},x))]}),s.jsxs("div",{style:{display:"flex",gap:10,marginTop:24},children:[s.jsx(U,{variant:"primary",onClick:()=>t("matrix"),children:"View in Matrix"}),s.jsx(U,{variant:"ghost",onClick:$,children:"Import more"})]})]})]})})]})}function io({children:e}){return s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:600,color:i.textMuted,marginBottom:8,letterSpacing:"0.05em",textTransform:"uppercase"},children:e})}function da({children:e}){return s.jsx("div",{style:{fontFamily:i.sans,fontSize:11,color:i.textDim,marginBottom:4},children:e})}function fa({value:e,onChange:t,children:n}){return s.jsx("select",{value:e,onChange:t,style:{width:"100%",background:i.surface,border:`1px solid ${i.border}`,borderRadius:6,padding:"7px 10px",fontFamily:i.sans,fontSize:13,color:i.text,outline:"none",cursor:"pointer"},children:n})}function Nr({children:e,color:t}){return s.jsx("div",{style:{fontFamily:i.sans,fontSize:11,fontWeight:600,color:t,letterSpacing:"0.06em",textTransform:"uppercase",marginBottom:8},children:e})}function so({icon:e,iconColor:t,label:n,note:r}){return s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"5px 10px",borderRadius:6,marginBottom:3},children:[s.jsx("span",{style:{color:t,fontFamily:i.mono,fontSize:13},children:e}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:12,color:i.text,flex:1},children:n}),r&&s.jsx("span",{style:{fontFamily:i.sans,fontSize:11,color:i.textDim},children:r})]})}function jp({manifest:e,setView:t}){const[n,r]=C.useState([]),[l,o]=C.useState(0),[a,u]=C.useState(!1),[c,p]=C.useState(""),[h,g]=C.useState(""),[m,S]=C.useState(null),[k,z]=C.useState(!1),[_,y]=C.useState(null),[f,d]=C.useState(null),[v,j]=C.useState(0),[w,R]=C.useState(!1),[T,O]=C.useState(null),$=C.useRef(null),Y=C.useCallback(async()=>{try{const M=await X("/api/recipients");if(M.ok){const ue=await M.json();r(ue.recipients),o(ue.totalFiles)}}catch{}},[]);C.useEffect(()=>{Y()},[Y]),C.useEffect(()=>{if(!c.trim()){S(null);return}return $.current&&clearTimeout($.current),$.current=setTimeout(async()=>{try{const M=await X(`/api/recipients/validate?key=${encodeURIComponent(c.trim())}`);if(M.ok){const ue=await M.json();S(ue)}}catch{}},300),()=>{$.current&&clearTimeout($.current)}},[c]);const ie=async()=>{if(m!=null&&m.valid){z(!0),y(null);try{const M=await X("/api/recipients/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c.trim(),label:h.trim()||void 0})});if(!M.ok){const D=await M.json();y(D.error??"Failed to add recipient");return}const ue=await M.json();r(ue.recipients),u(!1),p(""),g(""),S(null)}catch(M){y(M instanceof Error?M.message:"Failed to add recipient")}finally{z(!1)}}},x=M=>{d(M),j(1),R(!1)},I=()=>{d(null),j(0),R(!1)},V=async()=>{if(f){z(!0),y(null);try{const M=await X("/api/recipients/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:f.key})});if(!M.ok){const N=await M.json();y(N.error??"Failed to remove recipient");return}const ue=await M.json();r(ue.recipients);const D=f.label??f.preview;O({name:D,targets:ue.rotationReminder??[]}),I()}catch(M){y(M instanceof Error?M.message:"Failed to remove recipient")}finally{z(!1)}}};return s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Recipients",subtitle:"clef recipients -- manage age encryption keys",actions:!a&&v===0?s.jsx(U,{variant:"primary",onClick:()=>u(!0),children:"+ Add recipient"}):void 0}),s.jsx("div",{style:{flex:1,overflow:"auto",padding:24},children:s.jsxs("div",{style:{maxWidth:620,margin:"0 auto"},children:[_&&s.jsx("div",{style:{background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:8,padding:"12px 16px",marginBottom:16,fontFamily:i.sans,fontSize:13,color:i.red},children:_}),T&&s.jsxs("div",{"data-testid":"rotation-banner",style:{background:i.yellowDim,border:`1px solid ${i.yellow}44`,borderRadius:8,padding:"14px 18px",marginBottom:20},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:13,fontWeight:600,color:i.yellow,marginBottom:8},children:"Rotation reminder"}),s.jsxs("div",{style:{fontFamily:i.sans,fontSize:13,color:i.text,marginBottom:10,lineHeight:1.5},children:[s.jsx("strong",{children:T.name})," has been removed and files re-encrypted. However, the removed key may still decrypt old versions of these files from git history. Rotate secret values in the following targets to complete revocation:"]}),T.targets.length>0&&s.jsx("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted,marginBottom:12,paddingLeft:12},children:T.targets.map(M=>s.jsx("div",{style:{marginBottom:2},children:M},M))}),s.jsxs("div",{style:{display:"flex",gap:10},children:[s.jsx(U,{variant:"primary",onClick:()=>t("matrix"),children:"Go to Matrix to rotate"}),s.jsx(U,{variant:"ghost",onClick:()=>O(null),children:"Dismiss"})]})]}),a&&s.jsxs("div",{"data-testid":"add-form",style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:10,padding:20,marginBottom:24},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:14,fontWeight:600,color:i.text,marginBottom:16},children:"Add recipient"}),s.jsxs("div",{style:{marginBottom:14},children:[s.jsx(pa,{children:"Age public key"}),s.jsx("input",{type:"text",value:c,onChange:M=>p(M.target.value),placeholder:"age1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq","data-testid":"add-key-input",style:{width:"100%",background:i.bg,border:`1px solid ${m?m.valid?i.green+"66":i.red+"66":i.border}`,borderRadius:6,padding:"8px 12px",fontFamily:i.mono,fontSize:12,color:i.text,outline:"none",boxSizing:"border-box"}}),m&&!m.valid&&s.jsx("div",{style:{fontFamily:i.sans,fontSize:11,color:i.red,marginTop:4},children:m.error}),(m==null?void 0:m.valid)&&s.jsx("div",{style:{fontFamily:i.sans,fontSize:11,color:i.green,marginTop:4},children:"Valid age public key"})]}),s.jsxs("div",{style:{marginBottom:14},children:[s.jsx(pa,{children:"Label (optional)"}),s.jsx("input",{type:"text",value:h,onChange:M=>g(M.target.value),placeholder:"e.g. alice@example.com","data-testid":"add-label-input",style:{width:"100%",background:i.bg,border:`1px solid ${i.border}`,borderRadius:6,padding:"8px 12px",fontFamily:i.sans,fontSize:13,color:i.text,outline:"none",boxSizing:"border-box"}})]}),s.jsxs("div",{style:{marginBottom:16,padding:"10px 14px",background:i.yellowDim,border:`1px solid ${i.yellow}44`,borderRadius:6,fontFamily:i.sans,fontSize:12,color:i.yellow,lineHeight:1.5},children:["Adding a recipient will re-encrypt ",l," file",l!==1?"s":"",". This may take a moment."]}),s.jsxs("div",{style:{display:"flex",gap:10},children:[s.jsx(U,{variant:"ghost",onClick:()=>{u(!1),p(""),g(""),S(null),y(null)},children:"Cancel"}),s.jsx(U,{variant:"primary",onClick:ie,disabled:k||!(m!=null&&m.valid),children:k?"Re-encrypting...":"Add and re-encrypt"})]})]}),v===1&&f&&s.jsxs("div",{"data-testid":"remove-dialog",style:{background:i.surface,border:`1px solid ${i.red}44`,borderRadius:10,padding:20,marginBottom:24},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:14,fontWeight:600,color:i.red,marginBottom:12},children:"Remove recipient"}),s.jsxs("div",{style:{fontFamily:i.sans,fontSize:13,color:i.text,lineHeight:1.6,marginBottom:16},children:["You are about to remove"," ",s.jsx("strong",{style:{color:i.accent},children:f.label??f.preview})," ","(",f.preview,"). All ",l," encrypted file",l!==1?"s":""," will be re-encrypted without this key."]}),s.jsxs("div",{style:{background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:6,padding:"12px 14px",marginBottom:16,fontFamily:i.sans,fontSize:12,color:i.red,lineHeight:1.5},children:["Re-encryption only removes ",s.jsx("em",{children:"future"})," access. The removed key can still decrypt old versions from git history. You must rotate all secret values after removal."]}),s.jsxs("label",{style:{display:"flex",alignItems:"flex-start",gap:10,cursor:"pointer",fontFamily:i.sans,fontSize:13,color:i.text,marginBottom:16},children:[s.jsx("input",{type:"checkbox",checked:w,onChange:M=>R(M.target.checked),"data-testid":"acknowledge-checkbox",style:{accentColor:i.red,marginTop:2}}),"I understand — I will rotate secrets after removal"]}),s.jsxs("div",{style:{display:"flex",gap:10},children:[s.jsx(U,{variant:"ghost",onClick:I,children:"Cancel"}),s.jsx(U,{variant:"danger",onClick:()=>j(2),disabled:!w,children:"Continue"})]})]}),v===2&&f&&s.jsxs("div",{"data-testid":"remove-confirm-dialog",style:{background:i.surface,border:`1px solid ${i.red}44`,borderRadius:10,padding:20,marginBottom:24},children:[s.jsx("div",{style:{fontFamily:i.sans,fontSize:14,fontWeight:600,color:i.red,marginBottom:12},children:"Confirm removal"}),s.jsxs("div",{style:{fontFamily:i.sans,fontSize:13,color:i.text,lineHeight:1.6,marginBottom:16},children:["This will remove"," ",s.jsx("strong",{style:{color:i.accent},children:f.label??f.preview})," ","and re-encrypt all ",l," file",l!==1?"s":"",". This cannot be undone."]}),s.jsxs("div",{style:{display:"flex",gap:10},children:[s.jsx(U,{variant:"ghost",onClick:I,children:"Cancel"}),s.jsx(U,{variant:"danger",onClick:V,disabled:k,children:k?"Re-encrypting...":"Remove and re-encrypt"})]})]}),n.length===0&&!a&&s.jsx("div",{style:{textAlign:"center",paddingTop:40,fontFamily:i.sans,fontSize:14,color:i.textMuted},children:"No recipients configured. Add an age public key to get started."}),n.length>0&&s.jsxs("div",{children:[s.jsxs("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:600,color:i.textMuted,letterSpacing:"0.05em",textTransform:"uppercase",marginBottom:10},children:["Recipients (",n.length,")"]}),n.map(M=>s.jsxs("div",{"data-testid":"recipient-row",style:{display:"flex",alignItems:"center",gap:14,padding:"12px 16px",background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,marginBottom:8},children:[s.jsx("div",{style:{width:32,height:32,borderRadius:6,background:i.accentDim,border:`1px solid ${i.accent}44`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:14,flexShrink:0},children:"🔑"}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[M.label&&s.jsx("div",{style:{fontFamily:i.sans,fontSize:13,fontWeight:600,color:i.text,marginBottom:2},children:M.label}),s.jsx("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:M.preview})]}),s.jsx(U,{variant:"ghost",onClick:()=>x(M),disabled:v!==0||k,children:"Remove"})]},M.key)),s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim,marginTop:12},children:[l," encrypted file",l!==1?"s":""," in the matrix"]})]})]})})]})}function pa({children:e}){return s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:600,color:i.textMuted,marginBottom:6,letterSpacing:"0.05em",textTransform:"uppercase"},children:e})}function Cp({manifest:e}){const[t,n]=C.useState([]),[r,l]=C.useState(null),[o,a]=C.useState(""),u=C.useCallback(async()=>{try{const p=await X("/api/service-identities");if(p.ok){const h=await p.json();n(h.identities)}}catch{}},[]);C.useEffect(()=>{u()},[u]);const c=t.find(p=>p.name===r);return r?s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:(c==null?void 0:c.name)??r,subtitle:c==null?void 0:c.description,actions:s.jsxs("button",{"data-testid":"back-button",onClick:()=>{l(null),a("")},style:{background:"none",border:`1px solid ${i.borderLight}`,borderRadius:6,padding:"4px 12px",cursor:"pointer",fontFamily:i.sans,fontSize:12,color:i.textMuted,transition:"all 0.12s"},children:["←"," Back"]})}),s.jsx("div",{style:{flex:1,overflow:"auto",padding:24},children:s.jsx("div",{style:{maxWidth:620,margin:"0 auto"},children:c&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{marginBottom:20},children:[s.jsx(ma,{children:"Scoped namespaces"}),s.jsx("div",{style:{display:"flex",gap:6},children:c.namespaces.map(p=>s.jsx("span",{style:{fontFamily:i.mono,fontSize:11,color:i.accent,background:i.accentDim,border:`1px solid ${i.accent}33`,borderRadius:4,padding:"2px 8px"},children:p},p))})]}),s.jsx(ma,{children:"Environment keys"}),e==null?void 0:e.environments.map(p=>{const h=c.environments[p.name];if(!h)return null;const g=h.protected??!1;return s.jsxs("div",{"data-testid":`env-${p.name}`,style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,padding:"16px 20px",marginBottom:10},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[s.jsx(Rt,{env:p.name}),g&&s.jsx("span",{style:{fontSize:12,color:i.red},children:"🔒"}),h.type==="kms"&&s.jsx("span",{style:{fontFamily:i.mono,fontSize:10,color:i.purple,background:i.purpleDim,border:`1px solid ${i.purple}33`,borderRadius:3,padding:"1px 6px"},children:"KMS"})]}),h.type==="kms"&&h.kms&&s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted},children:[s.jsxs("div",{style:{marginBottom:8},children:["Authentication: ",s.jsx("span",{style:{color:i.purple},children:"IAM + KMS"})]}),s.jsxs("div",{children:["Provider:"," ",s.jsx("span",{style:{color:i.text},children:h.kms.provider})]}),s.jsxs("div",{style:{marginTop:4},children:["Key ID:"," ",s.jsx("span",{style:{color:i.text,wordBreak:"break-all"},children:h.kms.keyId})]}),s.jsx("div",{style:{marginTop:10,padding:"8px 12px",background:i.purpleDim,border:`1px solid ${i.purple}33`,borderRadius:4,fontSize:11,color:i.purple,fontFamily:i.sans},children:"No keys to provision. CI and runtime authenticate via IAM role with kms:Decrypt permission."})]}),h.type==="age"&&s.jsxs("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textMuted},children:[s.jsxs("div",{style:{marginBottom:8},children:["Authentication: ",s.jsx("span",{style:{color:i.green},children:"age key"})]}),s.jsxs("div",{children:["Public key:"," ",s.jsx("span",{style:{color:i.text},children:h.publicKey?`${h.publicKey.slice(0,12)}...${h.publicKey.slice(-6)}`:"unknown"})]})]})]},p.name)})]})})})]}):s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"Service Identities",subtitle:"clef service -- manage service identity keys"}),s.jsx("div",{style:{flex:1,overflow:"auto",padding:24},children:s.jsxs("div",{style:{maxWidth:620,margin:"0 auto"},children:[o&&s.jsx("div",{style:{background:i.redDim,border:`1px solid ${i.red}44`,borderRadius:8,padding:"12px 16px",marginBottom:16,fontFamily:i.sans,fontSize:13,color:i.red},children:o}),t.length===0&&s.jsxs("div",{style:{textAlign:"center",padding:"48px 24px",color:i.textMuted,fontFamily:i.sans,fontSize:13},children:[s.jsx("div",{style:{fontSize:28,marginBottom:12,opacity:.4},children:"🔑"}),"No service identities configured.",s.jsx("div",{style:{fontFamily:i.mono,fontSize:11,color:i.textDim,marginTop:8},children:"clef service create <name> --namespaces <ns>"})]}),t.map(p=>s.jsxs("div",{role:"button",tabIndex:0,"data-testid":`si-${p.name}`,onClick:()=>{l(p.name),a("")},onKeyDown:h=>{h.key==="Enter"&&l(p.name)},style:{background:i.surface,border:`1px solid ${i.border}`,borderRadius:8,padding:"16px 20px",marginBottom:8,cursor:"pointer",transition:"all 0.12s"},onMouseEnter:h=>{h.currentTarget.style.borderColor=i.borderLight},onMouseLeave:h=>{h.currentTarget.style.borderColor=i.border},children:[s.jsx("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:8},children:s.jsx("span",{style:{fontFamily:i.sans,fontWeight:600,fontSize:14,color:i.text},children:p.name})}),s.jsxs("div",{style:{fontFamily:i.sans,fontSize:12,color:i.textMuted,marginBottom:10},children:["Scoped to: ",s.jsx("span",{style:{color:i.text},children:p.namespaces.join(", ")})]}),s.jsx("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:Object.entries(p.environments).map(([h,g])=>s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[s.jsx(Rt,{env:h,small:!0}),s.jsx("span",{style:{fontFamily:i.mono,fontSize:9,color:g.type==="kms"?i.purple:i.textDim},children:g.type==="kms"?"KMS":"age"})]},h))})]},p.name))]})})]})}function ma({children:e}){return s.jsx("div",{style:{fontFamily:i.sans,fontSize:12,fontWeight:600,color:i.textMuted,marginBottom:6,letterSpacing:"0.05em",textTransform:"uppercase"},children:e})}function Ep({manifest:e}){var k,z;const t=(e==null?void 0:e.namespaces)??[],n=(e==null?void 0:e.environments)??[],[r,l]=C.useState(((k=t[0])==null?void 0:k.name)??""),[o,a]=C.useState(((z=n[0])==null?void 0:z.name)??""),[u,c]=C.useState([]),[p,h]=C.useState(!1),[g,m]=C.useState(null);C.useEffect(()=>{t.length>0&&!r&&l(t[0].name),n.length>0&&!o&&a(n[0].name)},[t,n,r,o]);const S=C.useCallback(async()=>{if(!(!r||!o)){h(!0),m(null);try{const _=await X(`/api/git/log/${r}/${o}`);if(_.ok){const y=await _.json();c(y.log)}else{const y=await _.json().catch(()=>({}));m(y.error??"Failed to load history"),c([])}}catch{m("Network error — could not load history"),c([])}finally{h(!1)}}},[r,o]);return C.useEffect(()=>{S()},[S]),s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qe,{title:"History",subtitle:"Commit log per encrypted file"}),s.jsxs("div",{style:{display:"flex",gap:12,padding:"16px 24px",borderBottom:`1px solid ${i.border}`},children:[s.jsxs("label",{style:{display:"flex",gap:8,alignItems:"center",fontFamily:i.mono,fontSize:12,color:i.textMuted},children:["Namespace",s.jsx("select",{value:r,onChange:_=>l(_.target.value),style:{fontFamily:i.mono,fontSize:12,background:i.surface,color:i.text,border:`1px solid ${i.border}`,borderRadius:4,padding:"3px 8px"},children:t.map(_=>s.jsx("option",{value:_.name,children:_.name},_.name))})]}),s.jsxs("label",{style:{display:"flex",gap:8,alignItems:"center",fontFamily:i.mono,fontSize:12,color:i.textMuted},children:["Environment",s.jsx("select",{value:o,onChange:_=>a(_.target.value),style:{fontFamily:i.mono,fontSize:12,background:i.surface,color:i.text,border:`1px solid ${i.border}`,borderRadius:4,padding:"3px 8px"},children:n.map(_=>s.jsx("option",{value:_.name,children:_.name},_.name))})]})]}),s.jsxs("div",{style:{flex:1,overflow:"auto",padding:"0 24px 24px"},children:[p&&s.jsx("div",{style:{padding:24,color:i.textMuted,fontFamily:i.mono,fontSize:12},children:"Loading…"}),!p&&g&&s.jsx("div",{style:{padding:24,color:i.red,fontFamily:i.mono,fontSize:12},children:g}),!p&&!g&&u.length===0&&s.jsxs("div",{style:{padding:24,color:i.textMuted,fontFamily:i.mono,fontSize:12},children:["No commits found for ",r,"/",o,"."]}),!p&&!g&&u.length>0&&s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontFamily:i.mono,fontSize:12,marginTop:16},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{borderBottom:`1px solid ${i.border}`,color:i.textDim},children:[s.jsx("th",{style:{textAlign:"left",padding:"6px 12px 6px 0",fontWeight:600},children:"Hash"}),s.jsx("th",{style:{textAlign:"left",padding:"6px 12px",fontWeight:600},children:"Date"}),s.jsx("th",{style:{textAlign:"left",padding:"6px 12px",fontWeight:600},children:"Author"}),s.jsx("th",{style:{textAlign:"left",padding:"6px 0",fontWeight:600},children:"Message"})]})}),s.jsx("tbody",{children:u.map(_=>s.jsxs("tr",{style:{borderBottom:`1px solid ${i.border}22`},children:[s.jsx("td",{style:{padding:"8px 12px 8px 0",color:i.accent},children:_.hash.slice(0,7)}),s.jsx("td",{style:{padding:"8px 12px",color:i.textMuted,whiteSpace:"nowrap"},children:new Date(_.date).toLocaleDateString()}),s.jsx("td",{style:{padding:"8px 12px",color:i.textMuted},children:_.author}),s.jsx("td",{style:{padding:"8px 0",color:i.text},children:_.message})]},_.hash))})]})]})]})}function zp(){const[e,t]=C.useState("matrix"),[n,r]=C.useState(""),[l,o]=C.useState(!0),[a,u]=C.useState(null),[c,p]=C.useState([]),[h,g]=C.useState(null),[m,S]=C.useState(0),[k,z]=C.useState(0),_=C.useCallback(async()=>{try{const w=await X("/api/manifest");if(w.ok){const R=await w.json();u(R),!n&&R.namespaces.length>0&&r(R.namespaces[0].name)}}catch{}finally{o(!1)}},[n]),y=C.useCallback(async()=>{try{const w=await X("/api/matrix");w.ok&&p(await w.json())}catch{}},[]),f=C.useCallback(async()=>{try{const w=await X("/api/git/status");w.ok&&g(await w.json())}catch{}},[]),d=C.useCallback(async()=>{try{const w=await X("/api/lint");if(w.ok){const R=await w.json();S(R.issues.filter(T=>T.severity==="error").length)}}catch{}},[]),v=C.useCallback(async()=>{var w,R;try{const T=await X("/api/scan/status");if(T.ok){const O=await T.json();if(O.lastRun){const $=(((w=O.lastRun.matches)==null?void 0:w.length)??0)+(((R=O.lastRun.unencryptedMatrixFiles)==null?void 0:R.length)??0);z($)}}}catch{}},[]);C.useEffect(()=>{_(),y(),f(),d(),v()},[_,y,f,d,v]);const j=async w=>{try{await X("/api/git/commit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:w})}),await f(),await y()}catch{}};return l?s.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",background:i.bg,color:i.textMuted,fontFamily:i.sans},children:s.jsxs("div",{style:{textAlign:"center"},children:[s.jsx("div",{style:{fontSize:24,color:i.accent,marginBottom:12},children:"♪"}),s.jsx("div",{style:{fontSize:13},children:"Loading..."})]})}):s.jsxs("div",{style:{display:"flex",height:"100vh",background:i.bg,color:i.text,fontFamily:i.sans,overflow:"hidden"},children:[s.jsx(cp,{activeView:e,setView:t,activeNs:n,setNs:r,manifest:a,matrixStatuses:c,gitStatus:h,lintErrorCount:m,scanIssueCount:k}),s.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[e==="matrix"&&s.jsx(gp,{setView:t,setNs:r,manifest:a,matrixStatuses:c}),e==="editor"&&s.jsx(vp,{ns:n,manifest:a,onCommit:j}),e==="diff"&&s.jsx(xp,{manifest:a}),e==="lint"&&s.jsx(Sp,{setView:t,setNs:r}),e==="scan"&&s.jsx(kp,{}),e==="import"&&s.jsx(wp,{manifest:a,setView:t}),e==="recipients"&&s.jsx(jp,{manifest:a,setView:t}),e==="identities"&&s.jsx(Cp,{manifest:a}),e==="history"&&s.jsx(Ep,{manifest:a})]})]})}up();const ya=document.getElementById("root");ya&&ao.createRoot(ya).render(s.jsx(za.StrictMode,{children:s.jsx(zp,{})}));