convex-devtools 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,56 +0,0 @@
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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gu={exports:{}},ml={},yu={exports:{}},I={};/**
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 ar=Symbol.for("react.element"),Fc=Symbol.for("react.portal"),Ac=Symbol.for("react.fragment"),Uc=Symbol.for("react.strict_mode"),Wc=Symbol.for("react.profiler"),$c=Symbol.for("react.provider"),Bc=Symbol.for("react.context"),Vc=Symbol.for("react.forward_ref"),Hc=Symbol.for("react.suspense"),Qc=Symbol.for("react.memo"),Jc=Symbol.for("react.lazy"),ni=Symbol.iterator;function Kc(e){return e===null||typeof e!="object"?null:(e=ni&&e[ni]||e["@@iterator"],typeof e=="function"?e:null)}var xu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wu=Object.assign,ku={};function yn(e,t,n){this.props=e,this.context=t,this.refs=ku,this.updater=n||xu}yn.prototype.isReactComponent={};yn.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")};yn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Su(){}Su.prototype=yn.prototype;function rs(e,t,n){this.props=e,this.context=t,this.refs=ku,this.updater=n||xu}var ls=rs.prototype=new Su;ls.constructor=rs;wu(ls,yn.prototype);ls.isPureReactComponent=!0;var ri=Array.isArray,ju=Object.prototype.hasOwnProperty,os={current:null},Nu={key:!0,ref:!0,__self:!0,__source:!0};function Cu(e,t,n){var r,l={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)ju.call(t,r)&&!Nu.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),d=0;d<u;d++)a[d]=arguments[d+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:ar,type:e,key:o,ref:s,props:l,_owner:os.current}}function Yc(e,t){return{$$typeof:ar,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ss(e){return typeof e=="object"&&e!==null&&e.$$typeof===ar}function Gc(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var li=/\/+/g;function Il(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gc(""+e.key):t.toString(36)}function Rr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case ar:case Fc:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+Il(s,0):r,ri(l)?(n="",e!=null&&(n=e.replace(li,"$&/")+"/"),Rr(l,t,n,"",function(d){return d})):l!=null&&(ss(l)&&(l=Yc(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(li,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",ri(e))for(var u=0;u<e.length;u++){o=e[u];var a=r+Il(o,u);s+=Rr(o,t,n,a,l)}else if(a=Kc(e),typeof a=="function")for(e=a.call(e),u=0;!(o=e.next()).done;)o=o.value,a=r+Il(o,u++),s+=Rr(o,t,n,a,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 s}function mr(e,t,n){if(e==null)return e;var r=[],l=0;return Rr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Xc(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 me={current:null},Or={transition:null},Zc={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:Or,ReactCurrentOwner:os};function Eu(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:mr,forEach:function(e,t,n){mr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mr(e,function(){t++}),t},toArray:function(e){return mr(e,function(t){return t})||[]},only:function(e){if(!ss(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=yn;I.Fragment=Ac;I.Profiler=Wc;I.PureComponent=rs;I.StrictMode=Uc;I.Suspense=Hc;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zc;I.act=Eu;I.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=wu({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=os.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)ju.call(t,a)&&!Nu.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var d=0;d<a;d++)u[d]=arguments[d+2];r.children=u}return{$$typeof:ar,type:e.type,key:l,ref:o,props:r,_owner:s}};I.createContext=function(e){return e={$$typeof:Bc,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$c,_context:e},e.Consumer=e};I.createElement=Cu;I.createFactory=function(e){var t=Cu.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:Vc,render:e}};I.isValidElement=ss;I.lazy=function(e){return{$$typeof:Jc,_payload:{_status:-1,_result:e},_init:Xc}};I.memo=function(e,t){return{$$typeof:Qc,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Or.transition;Or.transition={};try{e()}finally{Or.transition=t}};I.unstable_act=Eu;I.useCallback=function(e,t){return me.current.useCallback(e,t)};I.useContext=function(e){return me.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return me.current.useDeferredValue(e)};I.useEffect=function(e,t){return me.current.useEffect(e,t)};I.useId=function(){return me.current.useId()};I.useImperativeHandle=function(e,t,n){return me.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return me.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return me.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return me.current.useMemo(e,t)};I.useReducer=function(e,t,n){return me.current.useReducer(e,t,n)};I.useRef=function(e){return me.current.useRef(e)};I.useState=function(e){return me.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return me.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return me.current.useTransition()};I.version="18.3.1";yu.exports=I;var O=yu.exports;const Lu=vu(O);/**
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 qc=O,bc=Symbol.for("react.element"),ed=Symbol.for("react.fragment"),td=Object.prototype.hasOwnProperty,nd=qc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,rd={key:!0,ref:!0,__self:!0,__source:!0};function _u(e,t,n){var r,l={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)td.call(t,r)&&!rd.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:bc,type:e,key:o,ref:s,props:l,_owner:nd.current}}ml.Fragment=ed;ml.jsx=_u;ml.jsxs=_u;gu.exports=ml;var i=gu.exports,ao={},Tu={exports:{}},Le={},Pu={exports:{}},zu={};/**
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(C,M){var R=C.length;C.push(M);e:for(;0<R;){var Q=R-1>>>1,Z=C[Q];if(0<l(Z,M))C[Q]=M,C[R]=Z,R=Q;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var M=C[0],R=C.pop();if(R!==M){C[0]=R;e:for(var Q=0,Z=C.length,$t=Z>>>1;Q<$t;){var Ye=2*(Q+1)-1,jn=C[Ye],Ge=Ye+1,Bt=C[Ge];if(0>l(jn,R))Ge<Z&&0>l(Bt,jn)?(C[Q]=Bt,C[Ge]=R,Q=Ge):(C[Q]=jn,C[Ye]=R,Q=Ye);else if(Ge<Z&&0>l(Bt,R))C[Q]=Bt,C[Ge]=R,Q=Ge;else break e}}return M}function l(C,M){var R=C.sortIndex-M.sortIndex;return R!==0?R:C.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var a=[],d=[],v=1,g=null,h=3,m=!1,y=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(C){for(var M=n(d);M!==null;){if(M.callback===null)r(d);else if(M.startTime<=C)r(d),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(d)}}function k(C){if(x=!1,p(C),!y)if(n(a)!==null)y=!0,Ke(N);else{var M=n(d);M!==null&&Sn(k,M.startTime-C)}}function N(C,M){y=!1,x&&(x=!1,f(w),w=-1),m=!0;var R=h;try{for(p(M),g=n(a);g!==null&&(!(g.expirationTime>M)||C&&!ee());){var Q=g.callback;if(typeof Q=="function"){g.callback=null,h=g.priorityLevel;var Z=Q(g.expirationTime<=M);M=e.unstable_now(),typeof Z=="function"?g.callback=Z:g===n(a)&&r(a),p(M)}else r(a);g=n(a)}if(g!==null)var $t=!0;else{var Ye=n(d);Ye!==null&&Sn(k,Ye.startTime-M),$t=!1}return $t}finally{g=null,h=R,m=!1}}var _=!1,E=null,w=-1,F=5,P=-1;function ee(){return!(e.unstable_now()-P<F)}function z(){if(E!==null){var C=e.unstable_now();P=C;var M=!0;try{M=E(!0,C)}finally{M?A():(_=!1,E=null)}}else _=!1}var A;if(typeof c=="function")A=function(){c(z)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,kn=Se.port2;Se.port1.onmessage=z,A=function(){kn.postMessage(null)}}else A=function(){T(z,0)};function Ke(C){E=C,_||(_=!0,A())}function Sn(C,M){w=T(function(){C(e.unstable_now())},M)}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(C){C.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,Ke(N))},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var R=h;h=M;try{return C()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(C,M){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var R=h;h=C;try{return M()}finally{h=R}},e.unstable_scheduleCallback=function(C,M,R){var Q=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?Q+R:Q):R=Q,C){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=R+Z,C={id:v++,callback:M,priorityLevel:C,startTime:R,expirationTime:Z,sortIndex:-1},R>Q?(C.sortIndex=R,t(d,C),n(a)===null&&C===n(d)&&(x?(f(w),w=-1):x=!0,Sn(k,R-Q))):(C.sortIndex=Z,t(a,C),y||m||(y=!0,Ke(N))),C},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(C){var M=h;return function(){var R=h;h=M;try{return C.apply(this,arguments)}finally{h=R}}}})(zu);Pu.exports=zu;var ld=Pu.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 od=O,Ee=ld;function S(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 Mu=new Set,Jn={};function Ut(e,t){cn(e,t),cn(e+"Capture",t)}function cn(e,t){for(Jn[e]=t,e=0;e<t.length;e++)Mu.add(t[e])}var tt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),co=Object.prototype.hasOwnProperty,sd=/^[: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]*$/,oi={},si={};function id(e){return co.call(si,e)?!0:co.call(oi,e)?!1:sd.test(e)?si[e]=!0:(oi[e]=!0,!1)}function ud(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 ad(e,t,n,r){if(t===null||typeof t>"u"||ud(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 ve(e,t,n,r,l,o,s){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=s}var ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ie[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ie[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ie[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ie[e]=new ve(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){ie[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ie[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ie[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ie[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ie[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var is=/[\-:]([a-z])/g;function us(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(is,us);ie[t]=new ve(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(is,us);ie[t]=new ve(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(is,us);ie[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ie[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ie.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ie[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function as(e,t,n,r){var l=ie.hasOwnProperty(t)?ie[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ad(t,n,l,r)&&(n=null),r||l===null?id(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 ot=od.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vr=Symbol.for("react.element"),Qt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),cs=Symbol.for("react.strict_mode"),fo=Symbol.for("react.profiler"),Ru=Symbol.for("react.provider"),Ou=Symbol.for("react.context"),ds=Symbol.for("react.forward_ref"),po=Symbol.for("react.suspense"),ho=Symbol.for("react.suspense_list"),fs=Symbol.for("react.memo"),it=Symbol.for("react.lazy"),Iu=Symbol.for("react.offscreen"),ii=Symbol.iterator;function Cn(e){return e===null||typeof e!="object"?null:(e=ii&&e[ii]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Dl;function Rn(e){if(Dl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dl=t&&t[1]||""}return`
34
- `+Dl+e}var Fl=!1;function Al(e,t){if(!e||Fl)return"";Fl=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
35
- `),o=r.stack.split(`
36
- `),s=l.length-1,u=o.length-1;1<=s&&0<=u&&l[s]!==o[u];)u--;for(;1<=s&&0<=u;s--,u--)if(l[s]!==o[u]){if(s!==1||u!==1)do if(s--,u--,0>u||l[s]!==o[u]){var a=`
37
- `+l[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=u);break}}}finally{Fl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rn(e):""}function cd(e){switch(e.tag){case 5:return Rn(e.type);case 16:return Rn("Lazy");case 13:return Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 2:case 15:return e=Al(e.type,!1),e;case 11:return e=Al(e.type.render,!1),e;case 1:return e=Al(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 Qt:return"Portal";case fo:return"Profiler";case cs:return"StrictMode";case po:return"Suspense";case ho:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ou:return(e.displayName||"Context")+".Consumer";case Ru:return(e._context.displayName||"Context")+".Provider";case ds:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fs:return t=e.displayName||null,t!==null?t:mo(e.type)||"Memo";case it:t=e._payload,e=e._init;try{return mo(e(t))}catch{}}return null}function dd(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===cs?"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 kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Du(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fd(e){var t=Du(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gr(e){e._valueTracker||(e._valueTracker=fd(e))}function Fu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Du(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 vo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ui(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kt(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 Au(e,t){t=t.checked,t!=null&&as(e,"checked",t,!1)}function go(e,t){Au(e,t);var n=kt(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")?yo(e,t.type,n):t.hasOwnProperty("defaultValue")&&yo(e,t.type,kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ai(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 yo(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var On=Array.isArray;function rn(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=""+kt(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 xo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ci(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(On(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kt(n)}}function Uu(e,t){var n=kt(t.value),r=kt(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 di(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Wu(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 wo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Wu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yr,$u=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(yr=yr||document.createElement("div"),yr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fn={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},pd=["Webkit","ms","Moz","O"];Object.keys(Fn).forEach(function(e){pd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fn[t]=Fn[e]})});function Bu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fn.hasOwnProperty(e)&&Fn[e]?(""+t).trim():t+"px"}function Vu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Bu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var hd=G({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 ko(e,t){if(t){if(hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function So(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 jo=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var No=null,ln=null,on=null;function fi(e){if(e=fr(e)){if(typeof No!="function")throw Error(S(280));var t=e.stateNode;t&&(t=wl(t),No(e.stateNode,e.type,t))}}function Hu(e){ln?on?on.push(e):on=[e]:ln=e}function Qu(){if(ln){var e=ln,t=on;if(on=ln=null,fi(e),t)for(e=0;e<t.length;e++)fi(t[e])}}function Ju(e,t){return e(t)}function Ku(){}var Ul=!1;function Yu(e,t,n){if(Ul)return e(t,n);Ul=!0;try{return Ju(e,t,n)}finally{Ul=!1,(ln!==null||on!==null)&&(Ku(),Qu())}}function Yn(e,t){var n=e.stateNode;if(n===null)return null;var r=wl(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(S(231,t,typeof n));return n}var Co=!1;if(tt)try{var En={};Object.defineProperty(En,"passive",{get:function(){Co=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{Co=!1}function md(e,t,n,r,l,o,s,u,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(v){this.onError(v)}}var An=!1,Jr=null,Kr=!1,Eo=null,vd={onError:function(e){An=!0,Jr=e}};function gd(e,t,n,r,l,o,s,u,a){An=!1,Jr=null,md.apply(vd,arguments)}function yd(e,t,n,r,l,o,s,u,a){if(gd.apply(this,arguments),An){if(An){var d=Jr;An=!1,Jr=null}else throw Error(S(198));Kr||(Kr=!0,Eo=d)}}function Wt(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 Gu(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 pi(e){if(Wt(e)!==e)throw Error(S(188))}function xd(e){var t=e.alternate;if(!t){if(t=Wt(e),t===null)throw Error(S(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 pi(l),e;if(o===r)return pi(l),t;o=o.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,u=l.child;u;){if(u===n){s=!0,n=l,r=o;break}if(u===r){s=!0,r=l,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=l;break}if(u===r){s=!0,r=o,n=l;break}u=u.sibling}if(!s)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Xu(e){return e=xd(e),e!==null?Zu(e):null}function Zu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zu(e);if(t!==null)return t;e=e.sibling}return null}var qu=Ee.unstable_scheduleCallback,hi=Ee.unstable_cancelCallback,wd=Ee.unstable_shouldYield,kd=Ee.unstable_requestPaint,q=Ee.unstable_now,Sd=Ee.unstable_getCurrentPriorityLevel,hs=Ee.unstable_ImmediatePriority,bu=Ee.unstable_UserBlockingPriority,Yr=Ee.unstable_NormalPriority,jd=Ee.unstable_LowPriority,ea=Ee.unstable_IdlePriority,vl=null,Qe=null;function Nd(e){if(Qe&&typeof Qe.onCommitFiberRoot=="function")try{Qe.onCommitFiberRoot(vl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Ld,Cd=Math.log,Ed=Math.LN2;function Ld(e){return e>>>=0,e===0?32:31-(Cd(e)/Ed|0)|0}var xr=64,wr=4194304;function In(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 Gr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~l;u!==0?r=In(u):(o&=s,o!==0&&(r=In(o)))}else s=n&~l,s!==0?r=In(s):o!==0&&(r=In(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-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function _d(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 Td(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Ue(o),u=1<<s,a=l[s];a===-1?(!(u&n)||u&r)&&(l[s]=_d(u,t)):a<=t&&(e.expiredLanes|=u),o&=~u}}function Lo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ta(){var e=xr;return xr<<=1,!(xr&4194240)&&(xr=64),e}function Wl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function Pd(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-Ue(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function ms(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var W=0;function na(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ra,vs,la,oa,sa,_o=!1,kr=[],pt=null,ht=null,mt=null,Gn=new Map,Xn=new Map,at=[],zd="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 mi(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":ht=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xn.delete(t.pointerId)}}function Ln(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=fr(t),t!==null&&vs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Md(e,t,n,r,l){switch(t){case"focusin":return pt=Ln(pt,e,t,n,r,l),!0;case"dragenter":return ht=Ln(ht,e,t,n,r,l),!0;case"mouseover":return mt=Ln(mt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Gn.set(o,Ln(Gn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Xn.set(o,Ln(Xn.get(o)||null,e,t,n,r,l)),!0}return!1}function ia(e){var t=_t(e.target);if(t!==null){var n=Wt(t);if(n!==null){if(t=n.tag,t===13){if(t=Gu(n),t!==null){e.blockedOn=t,sa(e.priority,function(){la(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 Ir(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=To(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jo=r,n.target.dispatchEvent(r),jo=null}else return t=fr(n),t!==null&&vs(t),e.blockedOn=n,!1;t.shift()}return!0}function vi(e,t,n){Ir(e)&&n.delete(t)}function Rd(){_o=!1,pt!==null&&Ir(pt)&&(pt=null),ht!==null&&Ir(ht)&&(ht=null),mt!==null&&Ir(mt)&&(mt=null),Gn.forEach(vi),Xn.forEach(vi)}function _n(e,t){e.blockedOn===t&&(e.blockedOn=null,_o||(_o=!0,Ee.unstable_scheduleCallback(Ee.unstable_NormalPriority,Rd)))}function Zn(e){function t(l){return _n(l,e)}if(0<kr.length){_n(kr[0],e);for(var n=1;n<kr.length;n++){var r=kr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&_n(pt,e),ht!==null&&_n(ht,e),mt!==null&&_n(mt,e),Gn.forEach(t),Xn.forEach(t),n=0;n<at.length;n++)r=at[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<at.length&&(n=at[0],n.blockedOn===null);)ia(n),n.blockedOn===null&&at.shift()}var sn=ot.ReactCurrentBatchConfig,Xr=!0;function Od(e,t,n,r){var l=W,o=sn.transition;sn.transition=null;try{W=1,gs(e,t,n,r)}finally{W=l,sn.transition=o}}function Id(e,t,n,r){var l=W,o=sn.transition;sn.transition=null;try{W=4,gs(e,t,n,r)}finally{W=l,sn.transition=o}}function gs(e,t,n,r){if(Xr){var l=To(e,t,n,r);if(l===null)Xl(e,t,r,Zr,n),mi(e,r);else if(Md(l,e,t,n,r))r.stopPropagation();else if(mi(e,r),t&4&&-1<zd.indexOf(e)){for(;l!==null;){var o=fr(l);if(o!==null&&ra(o),o=To(e,t,n,r),o===null&&Xl(e,t,r,Zr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Xl(e,t,r,null,n)}}var Zr=null;function To(e,t,n,r){if(Zr=null,e=ps(r),e=_t(e),e!==null)if(t=Wt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Gu(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 ua(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 hs:return 1;case bu:return 4;case Yr:case jd:return 16;case ea:return 536870912;default:return 16}default:return 16}}var dt=null,ys=null,Dr=null;function aa(){if(Dr)return Dr;var e,t=ys,n=t.length,r,l="value"in dt?dt.value:dt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Dr=l.slice(e,1<r?1-r:void 0)}function Fr(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 Sr(){return!0}function gi(){return!1}function _e(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,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)?Sr:gi,this.isPropagationStopped=gi,this}return G(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=Sr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sr)},persist:function(){},isPersistent:Sr}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=_e(xn),dr=G({},xn,{view:0,detail:0}),Dd=_e(dr),$l,Bl,Tn,gl=G({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ws,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!==Tn&&(Tn&&e.type==="mousemove"?($l=e.screenX-Tn.screenX,Bl=e.screenY-Tn.screenY):Bl=$l=0,Tn=e),$l)},movementY:function(e){return"movementY"in e?e.movementY:Bl}}),yi=_e(gl),Fd=G({},gl,{dataTransfer:0}),Ad=_e(Fd),Ud=G({},dr,{relatedTarget:0}),Vl=_e(Ud),Wd=G({},xn,{animationName:0,elapsedTime:0,pseudoElement:0}),$d=_e(Wd),Bd=G({},xn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vd=_e(Bd),Hd=G({},xn,{data:0}),xi=_e(Hd),Qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jd={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"},Kd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kd[e])?!!t[e]:!1}function ws(){return Yd}var Gd=G({},dr,{key:function(e){if(e.key){var t=Qd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ws,charCode:function(e){return e.type==="keypress"?Fr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Xd=_e(Gd),Zd=G({},gl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wi=_e(Zd),qd=G({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ws}),bd=_e(qd),ef=G({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0}),tf=_e(ef),nf=G({},gl,{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}),rf=_e(nf),lf=[9,13,27,32],ks=tt&&"CompositionEvent"in window,Un=null;tt&&"documentMode"in document&&(Un=document.documentMode);var of=tt&&"TextEvent"in window&&!Un,ca=tt&&(!ks||Un&&8<Un&&11>=Un),ki=" ",Si=!1;function da(e,t){switch(e){case"keyup":return lf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kt=!1;function sf(e,t){switch(e){case"compositionend":return fa(t);case"keypress":return t.which!==32?null:(Si=!0,ki);case"textInput":return e=t.data,e===ki&&Si?null:e;default:return null}}function uf(e,t){if(Kt)return e==="compositionend"||!ks&&da(e,t)?(e=aa(),Dr=ys=dt=null,Kt=!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 ca&&t.locale!=="ko"?null:t.data;default:return null}}var af={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 ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!af[e.type]:t==="textarea"}function pa(e,t,n,r){Hu(r),t=qr(t,"onChange"),0<t.length&&(n=new xs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function cf(e){Na(e,0)}function yl(e){var t=Xt(e);if(Fu(t))return e}function df(e,t){if(e==="change")return t}var ha=!1;if(tt){var Hl;if(tt){var Ql="oninput"in document;if(!Ql){var Ni=document.createElement("div");Ni.setAttribute("oninput","return;"),Ql=typeof Ni.oninput=="function"}Hl=Ql}else Hl=!1;ha=Hl&&(!document.documentMode||9<document.documentMode)}function Ci(){Wn&&(Wn.detachEvent("onpropertychange",ma),qn=Wn=null)}function ma(e){if(e.propertyName==="value"&&yl(qn)){var t=[];pa(t,qn,e,ps(e)),Yu(cf,t)}}function ff(e,t,n){e==="focusin"?(Ci(),Wn=t,qn=n,Wn.attachEvent("onpropertychange",ma)):e==="focusout"&&Ci()}function pf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yl(qn)}function hf(e,t){if(e==="click")return yl(t)}function mf(e,t){if(e==="input"||e==="change")return yl(t)}function vf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $e=typeof Object.is=="function"?Object.is:vf;function bn(e,t){if($e(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(!co.call(t,l)||!$e(e[l],t[l]))return!1}return!0}function Ei(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Li(e,t){var n=Ei(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=Ei(n)}}function va(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?va(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ga(){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 Ss(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 gf(e){var t=ga(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&va(n.ownerDocument.documentElement,n)){if(r!==null&&Ss(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=Li(n,o);var s=Li(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 yf=tt&&"documentMode"in document&&11>=document.documentMode,Yt=null,Po=null,$n=null,zo=!1;function _i(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zo||Yt==null||Yt!==Qr(r)||(r=Yt,"selectionStart"in r&&Ss(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}),$n&&bn($n,r)||($n=r,r=qr(Po,"onSelect"),0<r.length&&(t=new xs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yt)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Gt={animationend:jr("Animation","AnimationEnd"),animationiteration:jr("Animation","AnimationIteration"),animationstart:jr("Animation","AnimationStart"),transitionend:jr("Transition","TransitionEnd")},Jl={},ya={};tt&&(ya=document.createElement("div").style,"AnimationEvent"in window||(delete Gt.animationend.animation,delete Gt.animationiteration.animation,delete Gt.animationstart.animation),"TransitionEvent"in window||delete Gt.transitionend.transition);function xl(e){if(Jl[e])return Jl[e];if(!Gt[e])return e;var t=Gt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ya)return Jl[e]=t[n];return e}var xa=xl("animationend"),wa=xl("animationiteration"),ka=xl("animationstart"),Sa=xl("transitionend"),ja=new Map,Ti="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 jt(e,t){ja.set(e,t),Ut(t,[e])}for(var Kl=0;Kl<Ti.length;Kl++){var Yl=Ti[Kl],xf=Yl.toLowerCase(),wf=Yl[0].toUpperCase()+Yl.slice(1);jt(xf,"on"+wf)}jt(xa,"onAnimationEnd");jt(wa,"onAnimationIteration");jt(ka,"onAnimationStart");jt("dblclick","onDoubleClick");jt("focusin","onFocus");jt("focusout","onBlur");jt(Sa,"onTransitionEnd");cn("onMouseEnter",["mouseout","mouseover"]);cn("onMouseLeave",["mouseout","mouseover"]);cn("onPointerEnter",["pointerout","pointerover"]);cn("onPointerLeave",["pointerout","pointerover"]);Ut("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ut("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ut("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ut("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ut("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),kf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dn));function Pi(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yd(r,t,void 0,e),e.currentTarget=null}function Na(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 s=r.length-1;0<=s;s--){var u=r[s],a=u.instance,d=u.currentTarget;if(u=u.listener,a!==o&&l.isPropagationStopped())break e;Pi(l,u,d),o=a}else for(s=0;s<r.length;s++){if(u=r[s],a=u.instance,d=u.currentTarget,u=u.listener,a!==o&&l.isPropagationStopped())break e;Pi(l,u,d),o=a}}}if(Kr)throw e=Eo,Kr=!1,Eo=null,e}function V(e,t){var n=t[Do];n===void 0&&(n=t[Do]=new Set);var r=e+"__bubble";n.has(r)||(Ca(t,e,2,!1),n.add(r))}function Gl(e,t,n){var r=0;t&&(r|=4),Ca(n,e,r,t)}var Nr="_reactListening"+Math.random().toString(36).slice(2);function er(e){if(!e[Nr]){e[Nr]=!0,Mu.forEach(function(n){n!=="selectionchange"&&(kf.has(n)||Gl(n,!1,e),Gl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nr]||(t[Nr]=!0,Gl("selectionchange",!1,t))}}function Ca(e,t,n,r){switch(ua(t)){case 1:var l=Od;break;case 4:l=Id;break;default:l=gs}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 Xl(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;s=s.return}for(;u!==null;){if(s=_t(u),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}u=u.parentNode}}r=r.return}Yu(function(){var d=o,v=ps(n),g=[];e:{var h=ja.get(e);if(h!==void 0){var m=xs,y=e;switch(e){case"keypress":if(Fr(n)===0)break e;case"keydown":case"keyup":m=Xd;break;case"focusin":y="focus",m=Vl;break;case"focusout":y="blur",m=Vl;break;case"beforeblur":case"afterblur":m=Vl;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":m=yi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Ad;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=bd;break;case xa:case wa:case ka:m=$d;break;case Sa:m=tf;break;case"scroll":m=Dd;break;case"wheel":m=rf;break;case"copy":case"cut":case"paste":m=Vd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=wi}var x=(t&4)!==0,T=!x&&e==="scroll",f=x?h!==null?h+"Capture":null:h;x=[];for(var c=d,p;c!==null;){p=c;var k=p.stateNode;if(p.tag===5&&k!==null&&(p=k,f!==null&&(k=Yn(c,f),k!=null&&x.push(tr(c,k,p)))),T)break;c=c.return}0<x.length&&(h=new m(h,y,null,n,v),g.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==jo&&(y=n.relatedTarget||n.fromElement)&&(_t(y)||y[nt]))break e;if((m||h)&&(h=v.window===v?v:(h=v.ownerDocument)?h.defaultView||h.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=d,y=y?_t(y):null,y!==null&&(T=Wt(y),y!==T||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=d),m!==y)){if(x=yi,k="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(x=wi,k="onPointerLeave",f="onPointerEnter",c="pointer"),T=m==null?h:Xt(m),p=y==null?h:Xt(y),h=new x(k,c+"leave",m,n,v),h.target=T,h.relatedTarget=p,k=null,_t(v)===d&&(x=new x(f,c+"enter",y,n,v),x.target=p,x.relatedTarget=T,k=x),T=k,m&&y)t:{for(x=m,f=y,c=0,p=x;p;p=Vt(p))c++;for(p=0,k=f;k;k=Vt(k))p++;for(;0<c-p;)x=Vt(x),c--;for(;0<p-c;)f=Vt(f),p--;for(;c--;){if(x===f||f!==null&&x===f.alternate)break t;x=Vt(x),f=Vt(f)}x=null}else x=null;m!==null&&zi(g,h,m,x,!1),y!==null&&T!==null&&zi(g,T,y,x,!0)}}e:{if(h=d?Xt(d):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var N=df;else if(ji(h))if(ha)N=mf;else{N=pf;var _=ff}else(m=h.nodeName)&&m.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(N=hf);if(N&&(N=N(e,d))){pa(g,N,n,v);break e}_&&_(e,h,d),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&yo(h,"number",h.value)}switch(_=d?Xt(d):window,e){case"focusin":(ji(_)||_.contentEditable==="true")&&(Yt=_,Po=d,$n=null);break;case"focusout":$n=Po=Yt=null;break;case"mousedown":zo=!0;break;case"contextmenu":case"mouseup":case"dragend":zo=!1,_i(g,n,v);break;case"selectionchange":if(yf)break;case"keydown":case"keyup":_i(g,n,v)}var E;if(ks)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Kt?da(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(ca&&n.locale!=="ko"&&(Kt||w!=="onCompositionStart"?w==="onCompositionEnd"&&Kt&&(E=aa()):(dt=v,ys="value"in dt?dt.value:dt.textContent,Kt=!0)),_=qr(d,w),0<_.length&&(w=new xi(w,e,null,n,v),g.push({event:w,listeners:_}),E?w.data=E:(E=fa(n),E!==null&&(w.data=E)))),(E=of?sf(e,n):uf(e,n))&&(d=qr(d,"onBeforeInput"),0<d.length&&(v=new xi("onBeforeInput","beforeinput",null,n,v),g.push({event:v,listeners:d}),v.data=E))}Na(g,t)})}function tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Yn(e,n),o!=null&&r.unshift(tr(e,o,l)),o=Yn(e,t),o!=null&&r.push(tr(e,o,l))),e=e.return}return r}function Vt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zi(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var u=n,a=u.alternate,d=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&d!==null&&(u=d,l?(a=Yn(n,o),a!=null&&s.unshift(tr(n,a,u))):l||(a=Yn(n,o),a!=null&&s.push(tr(n,a,u)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Sf=/\r\n?/g,jf=/\u0000|\uFFFD/g;function Mi(e){return(typeof e=="string"?e:""+e).replace(Sf,`
38
- `).replace(jf,"")}function Cr(e,t,n){if(t=Mi(t),Mi(e)!==t&&n)throw Error(S(425))}function br(){}var Mo=null,Ro=null;function Oo(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 Io=typeof setTimeout=="function"?setTimeout:void 0,Nf=typeof clearTimeout=="function"?clearTimeout:void 0,Ri=typeof Promise=="function"?Promise:void 0,Cf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ri<"u"?function(e){return Ri.resolve(null).then(e).catch(Ef)}:Io;function Ef(e){setTimeout(function(){throw e})}function Zl(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 vt(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 Oi(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 wn=Math.random().toString(36).slice(2),He="__reactFiber$"+wn,nr="__reactProps$"+wn,nt="__reactContainer$"+wn,Do="__reactEvents$"+wn,Lf="__reactListeners$"+wn,_f="__reactHandles$"+wn;function _t(e){var t=e[He];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nt]||n[He]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oi(e);e!==null;){if(n=e[He])return n;e=Oi(e)}return t}e=n,n=e.parentNode}return null}function fr(e){return e=e[He]||e[nt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function wl(e){return e[nr]||null}var Fo=[],Zt=-1;function Nt(e){return{current:e}}function H(e){0>Zt||(e.current=Fo[Zt],Fo[Zt]=null,Zt--)}function B(e,t){Zt++,Fo[Zt]=e.current,e.current=t}var St={},fe=Nt(St),xe=Nt(!1),Rt=St;function dn(e,t){var n=e.type.contextTypes;if(!n)return St;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 we(e){return e=e.childContextTypes,e!=null}function el(){H(xe),H(fe)}function Ii(e,t,n){if(fe.current!==St)throw Error(S(168));B(fe,t),B(xe,n)}function Ea(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(S(108,dd(e)||"Unknown",l));return G({},n,r)}function tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||St,Rt=fe.current,B(fe,e),B(xe,xe.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ea(e,t,Rt),r.__reactInternalMemoizedMergedChildContext=e,H(xe),H(fe),B(fe,e)):H(xe),B(xe,n)}var Ze=null,kl=!1,ql=!1;function La(e){Ze===null?Ze=[e]:Ze.push(e)}function Tf(e){kl=!0,La(e)}function Ct(){if(!ql&&Ze!==null){ql=!0;var e=0,t=W;try{var n=Ze;for(W=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ze=null,kl=!1}catch(l){throw Ze!==null&&(Ze=Ze.slice(e+1)),qu(hs,Ct),l}finally{W=t,ql=!1}}return null}var qt=[],bt=0,nl=null,rl=0,Te=[],Pe=0,Ot=null,qe=1,be="";function Et(e,t){qt[bt++]=rl,qt[bt++]=nl,nl=e,rl=t}function _a(e,t,n){Te[Pe++]=qe,Te[Pe++]=be,Te[Pe++]=Ot,Ot=e;var r=qe;e=be;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var o=32-Ue(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,qe=1<<32-Ue(t)+l|n<<l|r,be=o+e}else qe=1<<o|n<<l|r,be=e}function js(e){e.return!==null&&(Et(e,1),_a(e,1,0))}function Ns(e){for(;e===nl;)nl=qt[--bt],qt[bt]=null,rl=qt[--bt],qt[bt]=null;for(;e===Ot;)Ot=Te[--Pe],Te[Pe]=null,be=Te[--Pe],Te[Pe]=null,qe=Te[--Pe],Te[Pe]=null}var Ce=null,Ne=null,J=!1,Ae=null;function Ta(e,t){var n=ze(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 Fi(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,Ce=e,Ne=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ce=e,Ne=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ot!==null?{id:qe,overflow:be}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ze(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ce=e,Ne=null,!0):!1;default:return!1}}function Ao(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Uo(e){if(J){var t=Ne;if(t){var n=t;if(!Fi(e,t)){if(Ao(e))throw Error(S(418));t=vt(n.nextSibling);var r=Ce;t&&Fi(e,t)?Ta(r,n):(e.flags=e.flags&-4097|2,J=!1,Ce=e)}}else{if(Ao(e))throw Error(S(418));e.flags=e.flags&-4097|2,J=!1,Ce=e}}}function Ai(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ce=e}function Er(e){if(e!==Ce)return!1;if(!J)return Ai(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Oo(e.type,e.memoizedProps)),t&&(t=Ne)){if(Ao(e))throw Pa(),Error(S(418));for(;t;)Ta(e,t),t=vt(t.nextSibling)}if(Ai(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ne=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ne=null}}else Ne=Ce?vt(e.stateNode.nextSibling):null;return!0}function Pa(){for(var e=Ne;e;)e=vt(e.nextSibling)}function fn(){Ne=Ce=null,J=!1}function Cs(e){Ae===null?Ae=[e]:Ae.push(e)}var Pf=ot.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(S(309));var r=n.stateNode}if(!r)throw Error(S(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(s){var u=l.refs;s===null?delete u[o]:u[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Lr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ui(e){var t=e._init;return t(e._payload)}function za(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function l(f,c){return f=wt(f,c),f.index=0,f.sibling=null,f}function o(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,c,p,k){return c===null||c.tag!==6?(c=oo(p,f.mode,k),c.return=f,c):(c=l(c,p),c.return=f,c)}function a(f,c,p,k){var N=p.type;return N===Jt?v(f,c,p.props.children,k,p.key):c!==null&&(c.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===it&&Ui(N)===c.type)?(k=l(c,p.props),k.ref=Pn(f,c,p),k.return=f,k):(k=Hr(p.type,p.key,p.props,null,f.mode,k),k.ref=Pn(f,c,p),k.return=f,k)}function d(f,c,p,k){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=so(p,f.mode,k),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function v(f,c,p,k,N){return c===null||c.tag!==7?(c=Mt(p,f.mode,k,N),c.return=f,c):(c=l(c,p),c.return=f,c)}function g(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=oo(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case vr:return p=Hr(c.type,c.key,c.props,null,f.mode,p),p.ref=Pn(f,null,c),p.return=f,p;case Qt:return c=so(c,f.mode,p),c.return=f,c;case it:var k=c._init;return g(f,k(c._payload),p)}if(On(c)||Cn(c))return c=Mt(c,f.mode,p,null),c.return=f,c;Lr(f,c)}return null}function h(f,c,p,k){var N=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return N!==null?null:u(f,c,""+p,k);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:return p.key===N?a(f,c,p,k):null;case Qt:return p.key===N?d(f,c,p,k):null;case it:return N=p._init,h(f,c,N(p._payload),k)}if(On(p)||Cn(p))return N!==null?null:v(f,c,p,k,null);Lr(f,p)}return null}function m(f,c,p,k,N){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(p)||null,u(c,f,""+k,N);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case vr:return f=f.get(k.key===null?p:k.key)||null,a(c,f,k,N);case Qt:return f=f.get(k.key===null?p:k.key)||null,d(c,f,k,N);case it:var _=k._init;return m(f,c,p,_(k._payload),N)}if(On(k)||Cn(k))return f=f.get(p)||null,v(c,f,k,N,null);Lr(c,k)}return null}function y(f,c,p,k){for(var N=null,_=null,E=c,w=c=0,F=null;E!==null&&w<p.length;w++){E.index>w?(F=E,E=null):F=E.sibling;var P=h(f,E,p[w],k);if(P===null){E===null&&(E=F);break}e&&E&&P.alternate===null&&t(f,E),c=o(P,c,w),_===null?N=P:_.sibling=P,_=P,E=F}if(w===p.length)return n(f,E),J&&Et(f,w),N;if(E===null){for(;w<p.length;w++)E=g(f,p[w],k),E!==null&&(c=o(E,c,w),_===null?N=E:_.sibling=E,_=E);return J&&Et(f,w),N}for(E=r(f,E);w<p.length;w++)F=m(E,f,w,p[w],k),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?w:F.key),c=o(F,c,w),_===null?N=F:_.sibling=F,_=F);return e&&E.forEach(function(ee){return t(f,ee)}),J&&Et(f,w),N}function x(f,c,p,k){var N=Cn(p);if(typeof N!="function")throw Error(S(150));if(p=N.call(p),p==null)throw Error(S(151));for(var _=N=null,E=c,w=c=0,F=null,P=p.next();E!==null&&!P.done;w++,P=p.next()){E.index>w?(F=E,E=null):F=E.sibling;var ee=h(f,E,P.value,k);if(ee===null){E===null&&(E=F);break}e&&E&&ee.alternate===null&&t(f,E),c=o(ee,c,w),_===null?N=ee:_.sibling=ee,_=ee,E=F}if(P.done)return n(f,E),J&&Et(f,w),N;if(E===null){for(;!P.done;w++,P=p.next())P=g(f,P.value,k),P!==null&&(c=o(P,c,w),_===null?N=P:_.sibling=P,_=P);return J&&Et(f,w),N}for(E=r(f,E);!P.done;w++,P=p.next())P=m(E,f,w,P.value,k),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?w:P.key),c=o(P,c,w),_===null?N=P:_.sibling=P,_=P);return e&&E.forEach(function(z){return t(f,z)}),J&&Et(f,w),N}function T(f,c,p,k){if(typeof p=="object"&&p!==null&&p.type===Jt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case vr:e:{for(var N=p.key,_=c;_!==null;){if(_.key===N){if(N=p.type,N===Jt){if(_.tag===7){n(f,_.sibling),c=l(_,p.props.children),c.return=f,f=c;break e}}else if(_.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===it&&Ui(N)===_.type){n(f,_.sibling),c=l(_,p.props),c.ref=Pn(f,_,p),c.return=f,f=c;break e}n(f,_);break}else t(f,_);_=_.sibling}p.type===Jt?(c=Mt(p.props.children,f.mode,k,p.key),c.return=f,f=c):(k=Hr(p.type,p.key,p.props,null,f.mode,k),k.ref=Pn(f,c,p),k.return=f,f=k)}return s(f);case Qt:e:{for(_=p.key;c!==null;){if(c.key===_)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=so(p,f.mode,k),c.return=f,f=c}return s(f);case it:return _=p._init,T(f,c,_(p._payload),k)}if(On(p))return y(f,c,p,k);if(Cn(p))return x(f,c,p,k);Lr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=oo(p,f.mode,k),c.return=f,f=c),s(f)):n(f,c)}return T}var pn=za(!0),Ma=za(!1),ll=Nt(null),ol=null,en=null,Es=null;function Ls(){Es=en=ol=null}function _s(e){var t=ll.current;H(ll),e._currentValue=t}function Wo(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 un(e,t){ol=e,Es=en=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Re(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},en===null){if(ol===null)throw Error(S(308));en=e,ol.dependencies={lanes:0,firstContext:e}}else en=en.next=e;return t}var Tt=null;function Ts(e){Tt===null?Tt=[e]:Tt.push(e)}function Ra(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ts(t)):(n.next=l.next,l.next=n),t.interleaved=n,rt(e,r)}function rt(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 ut=!1;function Ps(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oa(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 et(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,rt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ts(r)):(t.next=l.next,l.next=t),r.interleaved=t,rt(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,ms(e,n)}}function Wi(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,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 sl(e,t,n,r){var l=e.updateQueue;ut=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,d=a.next;a.next=null,s===null?o=d:s.next=d,s=a;var v=e.alternate;v!==null&&(v=v.updateQueue,u=v.lastBaseUpdate,u!==s&&(u===null?v.firstBaseUpdate=d:u.next=d,v.lastBaseUpdate=a))}if(o!==null){var g=l.baseState;s=0,v=d=a=null,u=o;do{var h=u.lane,m=u.eventTime;if((r&h)===h){v!==null&&(v=v.next={eventTime:m,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var y=e,x=u;switch(h=t,m=n,x.tag){case 1:if(y=x.payload,typeof y=="function"){g=y.call(m,g,h);break e}g=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=x.payload,h=typeof y=="function"?y.call(m,g,h):y,h==null)break e;g=G({},g,h);break e;case 2:ut=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else m={eventTime:m,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},v===null?(d=v=m,a=g):v=v.next=m,s|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(v===null&&(a=g),l.baseState=a,l.firstBaseUpdate=d,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Dt|=s,e.lanes=s,e.memoizedState=g}}function $i(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(S(191,l));l.call(r)}}}var pr={},Je=Nt(pr),rr=Nt(pr),lr=Nt(pr);function Pt(e){if(e===pr)throw Error(S(174));return e}function zs(e,t){switch(B(lr,t),B(rr,e),B(Je,pr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wo(t,e)}H(Je),B(Je,t)}function hn(){H(Je),H(rr),H(lr)}function Ia(e){Pt(lr.current);var t=Pt(Je.current),n=wo(t,e.type);t!==n&&(B(rr,e),B(Je,n))}function Ms(e){rr.current===e&&(H(Je),H(rr))}var K=Nt(0);function il(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 bl=[];function Rs(){for(var e=0;e<bl.length;e++)bl[e]._workInProgressVersionPrimary=null;bl.length=0}var Ur=ot.ReactCurrentDispatcher,eo=ot.ReactCurrentBatchConfig,It=0,Y=null,te=null,re=null,ul=!1,Bn=!1,or=0,zf=0;function ae(){throw Error(S(321))}function Os(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$e(e[n],t[n]))return!1;return!0}function Is(e,t,n,r,l,o){if(It=o,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ur.current=e===null||e.memoizedState===null?If:Df,e=n(r,l),Bn){o=0;do{if(Bn=!1,or=0,25<=o)throw Error(S(301));o+=1,re=te=null,t.updateQueue=null,Ur.current=Ff,e=n(r,l)}while(Bn)}if(Ur.current=al,t=te!==null&&te.next!==null,It=0,re=te=Y=null,ul=!1,t)throw Error(S(300));return e}function Ds(){var e=or!==0;return or=0,e}function Ve(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?Y.memoizedState=re=e:re=re.next=e,re}function Oe(){if(te===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=re===null?Y.memoizedState:re.next;if(t!==null)re=t,te=e;else{if(e===null)throw Error(S(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},re===null?Y.memoizedState=re=e:re=re.next=e}return re}function sr(e,t){return typeof t=="function"?t(e):t}function to(e){var t=Oe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=te,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=s=null,a=null,d=o;do{var v=d.lane;if((It&v)===v)a!==null&&(a=a.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var g={lane:v,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(u=a=g,s=r):a=a.next=g,Y.lanes|=v,Dt|=v}d=d.next}while(d!==null&&d!==o);a===null?s=r:a.next=u,$e(r,t.memoizedState)||(ye=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Y.lanes|=o,Dt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function no(e){var t=Oe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);$e(o,t.memoizedState)||(ye=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Da(){}function Fa(e,t){var n=Y,r=Oe(),l=t(),o=!$e(r.memoizedState,l);if(o&&(r.memoizedState=l,ye=!0),r=r.queue,Fs(Wa.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,ir(9,Ua.bind(null,n,r,l,t),void 0,null),le===null)throw Error(S(349));It&30||Aa(n,t,l)}return l}function Aa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ua(e,t,n,r){t.value=n,t.getSnapshot=r,$a(t)&&Ba(e)}function Wa(e,t,n){return n(function(){$a(t)&&Ba(e)})}function $a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$e(e,n)}catch{return!0}}function Ba(e){var t=rt(e,1);t!==null&&We(t,e,1,-1)}function Bi(e){var t=Ve();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:e},t.queue=e,e=e.dispatch=Of.bind(null,Y,e),[t.memoizedState,e]}function ir(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.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 Va(){return Oe().memoizedState}function Wr(e,t,n,r){var l=Ve();Y.flags|=e,l.memoizedState=ir(1|t,n,void 0,r===void 0?null:r)}function Sl(e,t,n,r){var l=Oe();r=r===void 0?null:r;var o=void 0;if(te!==null){var s=te.memoizedState;if(o=s.destroy,r!==null&&Os(r,s.deps)){l.memoizedState=ir(t,n,o,r);return}}Y.flags|=e,l.memoizedState=ir(1|t,n,o,r)}function Vi(e,t){return Wr(8390656,8,e,t)}function Fs(e,t){return Sl(2048,8,e,t)}function Ha(e,t){return Sl(4,2,e,t)}function Qa(e,t){return Sl(4,4,e,t)}function Ja(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 Ka(e,t,n){return n=n!=null?n.concat([e]):null,Sl(4,4,Ja.bind(null,t,e),n)}function As(){}function Ya(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Os(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ga(e,t){var n=Oe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Os(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return It&21?($e(n,t)||(n=ta(),Y.lanes|=n,Dt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ye=!0),e.memoizedState=n)}function Mf(e,t){var n=W;W=n!==0&&4>n?n:4,e(!0);var r=eo.transition;eo.transition={};try{e(!1),t()}finally{W=n,eo.transition=r}}function Za(){return Oe().memoizedState}function Rf(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qa(e))ba(t,n);else if(n=Ra(e,t,n,r),n!==null){var l=he();We(n,e,r,l),ec(n,t,r)}}function Of(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qa(e))ba(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,u=o(s,n);if(l.hasEagerState=!0,l.eagerState=u,$e(u,s)){var a=t.interleaved;a===null?(l.next=l,Ts(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Ra(e,t,l,r),n!==null&&(l=he(),We(n,e,r,l),ec(n,t,r))}}function qa(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function ba(e,t){Bn=ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ec(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ms(e,n)}}var al={readContext:Re,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},If={readContext:Re,useCallback:function(e,t){return Ve().memoizedState=[e,t===void 0?null:t],e},useContext:Re,useEffect:Vi,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wr(4194308,4,Ja.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wr(4,2,e,t)},useMemo:function(e,t){var n=Ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ve();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=Rf.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Ve();return e={current:e},t.memoizedState=e},useState:Bi,useDebugValue:As,useDeferredValue:function(e){return Ve().memoizedState=e},useTransition:function(){var e=Bi(!1),t=e[0];return e=Mf.bind(null,e[1]),Ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,l=Ve();if(J){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),le===null)throw Error(S(349));It&30||Aa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Vi(Wa.bind(null,r,o,e),[e]),r.flags|=2048,ir(9,Ua.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ve(),t=le.identifierPrefix;if(J){var n=be,r=qe;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=or++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Df={readContext:Re,useCallback:Ya,useContext:Re,useEffect:Fs,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:Qa,useMemo:Ga,useReducer:to,useRef:Va,useState:function(){return to(sr)},useDebugValue:As,useDeferredValue:function(e){var t=Oe();return Xa(t,te.memoizedState,e)},useTransition:function(){var e=to(sr)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:Da,useSyncExternalStore:Fa,useId:Za,unstable_isNewReconciler:!1},Ff={readContext:Re,useCallback:Ya,useContext:Re,useEffect:Fs,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:Qa,useMemo:Ga,useReducer:no,useRef:Va,useState:function(){return no(sr)},useDebugValue:As,useDeferredValue:function(e){var t=Oe();return te===null?t.memoizedState=e:Xa(t,te.memoizedState,e)},useTransition:function(){var e=no(sr)[0],t=Oe().memoizedState;return[e,t]},useMutableSource:Da,useSyncExternalStore:Fa,useId:Za,unstable_isNewReconciler:!1};function De(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function $o(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var jl={isMounted:function(e){return(e=e._reactInternals)?Wt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=he(),l=xt(e),o=et(r,l);o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,l),t!==null&&(We(t,e,l,r),Ar(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=he(),l=xt(e),o=et(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=gt(e,o,l),t!==null&&(We(t,e,l,r),Ar(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=he(),r=xt(e),l=et(n,r);l.tag=2,t!=null&&(l.callback=t),t=gt(e,l,r),t!==null&&(We(t,e,r,n),Ar(t,e,r))}};function Hi(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!bn(n,r)||!bn(l,o):!0}function tc(e,t,n){var r=!1,l=St,o=t.contextType;return typeof o=="object"&&o!==null?o=Re(o):(l=we(t)?Rt:fe.current,r=t.contextTypes,o=(r=r!=null)?dn(e,l):St),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=jl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qi(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&&jl.enqueueReplaceState(t,t.state,null)}function Bo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Ps(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Re(o):(o=we(t)?Rt:fe.current,l.context=dn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&($o(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&&jl.enqueueReplaceState(l,l.state,null),sl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function mn(e,t){try{var n="",r=t;do n+=cd(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 ro(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Vo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Af=typeof WeakMap=="function"?WeakMap:Map;function nc(e,t,n){n=et(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dl||(dl=!0,bo=r),Vo(e,t)},n}function rc(e,t,n){n=et(-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(){Vo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Vo(e,t),typeof r!="function"&&(yt===null?yt=new Set([this]):yt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ji(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Af;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=qf.bind(null,e,t,n),t.then(e,e))}function Ki(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 Yi(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=et(-1,1),t.tag=2,gt(n,t,1))),n.lanes|=1),e)}var Uf=ot.ReactCurrentOwner,ye=!1;function pe(e,t,n,r){t.child=e===null?Ma(t,null,n,r):pn(t,e.child,n,r)}function Gi(e,t,n,r,l){n=n.render;var o=t.ref;return un(t,l),r=Is(e,t,n,r,o,l),n=Ds(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(J&&n&&js(t),t.flags|=1,pe(e,t,r,l),t.child)}function Xi(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Js(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,lc(e,t,o,r,l)):(e=Hr(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:bn,n(s,r)&&e.ref===t.ref)return lt(e,t,l)}return t.flags|=1,e=wt(o,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(bn(o,r)&&e.ref===t.ref)if(ye=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ye=!0);else return t.lanes=e.lanes,lt(e,t,l)}return Ho(e,t,n,r,l)}function oc(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},B(nn,je),je|=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,B(nn,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(nn,je),je|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(nn,je),je|=r;return pe(e,t,l,n),t.child}function sc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ho(e,t,n,r,l){var o=we(n)?Rt:fe.current;return o=dn(t,o),un(t,l),n=Is(e,t,n,r,o,l),r=Ds(),e!==null&&!ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,lt(e,t,l)):(J&&r&&js(t),t.flags|=1,pe(e,t,n,l),t.child)}function Zi(e,t,n,r,l){if(we(n)){var o=!0;tl(t)}else o=!1;if(un(t,l),t.stateNode===null)$r(e,t),tc(t,n,r),Bo(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,u=t.memoizedProps;s.props=u;var a=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Re(d):(d=we(n)?Rt:fe.current,d=dn(t,d));var v=n.getDerivedStateFromProps,g=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function";g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==r||a!==d)&&Qi(t,s,r,d),ut=!1;var h=t.memoizedState;s.state=h,sl(t,r,s,l),a=t.memoizedState,u!==r||h!==a||xe.current||ut?(typeof v=="function"&&($o(t,n,v,r),a=t.memoizedState),(u=ut||Hi(t,n,u,r,h,a,d))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=d,r=u):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Oa(e,t),u=t.memoizedProps,d=t.type===t.elementType?u:De(t.type,u),s.props=d,g=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Re(a):(a=we(n)?Rt:fe.current,a=dn(t,a));var m=n.getDerivedStateFromProps;(v=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==g||h!==a)&&Qi(t,s,r,a),ut=!1,h=t.memoizedState,s.state=h,sl(t,r,s,l);var y=t.memoizedState;u!==g||h!==y||xe.current||ut?(typeof m=="function"&&($o(t,n,m,r),y=t.memoizedState),(d=ut||Hi(t,n,d,r,h,y,a)||!1)?(v||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=d):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Qo(e,t,n,r,o,l)}function Qo(e,t,n,r,l,o){sc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&Di(t,n,!1),lt(e,t,o);r=t.stateNode,Uf.current=t;var u=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=pn(t,e.child,null,o),t.child=pn(t,null,u,o)):pe(e,t,u,o),t.memoizedState=r.state,l&&Di(t,n,!0),t.child}function ic(e){var t=e.stateNode;t.pendingContext?Ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(e,t.context,!1),zs(e,t.containerInfo)}function qi(e,t,n,r,l){return fn(),Cs(l),t.flags|=256,pe(e,t,n,r),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0};function Ko(e){return{baseLanes:e,cachePool:null,transitions:null}}function uc(e,t,n){var r=t.pendingProps,l=K.current,o=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(K,l&1),e===null)return Uo(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=El(s,r,0,null),e=Mt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ko(n),t.memoizedState=Jo,e):Us(t,s));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return Wf(e,t,s,r,u,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=wt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=wt(u,o):(o=Mt(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Ko(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Jo,r}return o=e.child,e=o.sibling,r=wt(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 Us(e,t){return t=El({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _r(e,t,n,r){return r!==null&&Cs(r),pn(t,e.child,null,n),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wf(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=ro(Error(S(422))),_r(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=El({mode:"visible",children:r.children},l,0,null),o=Mt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&pn(t,e.child,null,s),t.child.memoizedState=Ko(s),t.memoizedState=Jo,o);if(!(t.mode&1))return _r(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(S(419)),r=ro(o,r,void 0),_r(e,t,s,r)}if(u=(s&e.childLanes)!==0,ye||u){if(r=le,r!==null){switch(s&-s){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|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,rt(e,l),We(r,e,l,-1))}return Qs(),r=ro(Error(S(421))),_r(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=bf.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ne=vt(l.nextSibling),Ce=t,J=!0,Ae=null,e!==null&&(Te[Pe++]=qe,Te[Pe++]=be,Te[Pe++]=Ot,qe=e.id,be=e.overflow,Ot=t),t=Us(t,r.children),t.flags|=4096,t)}function bi(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wo(e.return,t,n)}function lo(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(pe(e,t,r.children,n),r=K.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&&bi(e,n,t);else if(e.tag===19)bi(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(B(K,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&&il(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lo(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&&il(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lo(t,!0,n,null,o);break;case"together":lo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function $r(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $f(e,t,n){switch(t.tag){case 3:ic(t),fn();break;case 5:Ia(t);break;case 1:we(t.type)&&tl(t);break;case 4:zs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(ll,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(K,K.current&1),t.flags|=128,null):n&t.child.childLanes?uc(e,t,n):(B(K,K.current&1),e=lt(e,t,n),e!==null?e.sibling:null);B(K,K.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),B(K,K.current),r)break;return null;case 22:case 23:return t.lanes=0,oc(e,t,n)}return lt(e,t,n)}var cc,Yo,dc,fc;cc=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}};Yo=function(){};dc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Pt(Je.current);var o=null;switch(n){case"input":l=vo(e,l),r=vo(e,r),o=[];break;case"select":l=G({},l,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":l=xo(e,l),r=xo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=br)}ko(n,r);var s;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var u=l[d];for(s in u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Jn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var a=r[d];if(u=l!=null?l[d]:void 0,r.hasOwnProperty(d)&&a!==u&&(a!=null||u!=null))if(d==="style")if(u){for(s in u)!u.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&u[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(o=o||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Jn.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&V("scroll",e),o||u===a||(o=[])):(o=o||[]).push(d,a))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};fc=function(e,t,n,r){n!==r&&(t.flags|=4)};function zn(e,t){if(!J)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 ce(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 Bf(e,t,n){var r=t.pendingProps;switch(Ns(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return we(t.type)&&el(),ce(t),null;case 3:return r=t.stateNode,hn(),H(xe),H(fe),Rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Er(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ae!==null&&(ns(Ae),Ae=null))),Yo(e,t),ce(t),null;case 5:Ms(t);var l=Pt(lr.current);if(n=t.type,e!==null&&t.stateNode!=null)dc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return ce(t),null}if(e=Pt(Je.current),Er(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[He]=t,r[nr]=o,e=(t.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(l=0;l<Dn.length;l++)V(Dn[l],r);break;case"source":V("error",r);break;case"img":case"image":case"link":V("error",r),V("load",r);break;case"details":V("toggle",r);break;case"input":ui(r,o),V("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},V("invalid",r);break;case"textarea":ci(r,o),V("invalid",r)}ko(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var u=o[s];s==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&Cr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&Cr(r.textContent,u,e),l=["children",""+u]):Jn.hasOwnProperty(s)&&u!=null&&s==="onScroll"&&V("scroll",r)}switch(n){case"input":gr(r),ai(r,o,!0);break;case"textarea":gr(r),di(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=br)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Wu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[He]=t,e[nr]=r,cc(e,t,!1,!1),t.stateNode=e;e:{switch(s=So(n,r),n){case"dialog":V("cancel",e),V("close",e),l=r;break;case"iframe":case"object":case"embed":V("load",e),l=r;break;case"video":case"audio":for(l=0;l<Dn.length;l++)V(Dn[l],e);l=r;break;case"source":V("error",e),l=r;break;case"img":case"image":case"link":V("error",e),V("load",e),l=r;break;case"details":V("toggle",e),l=r;break;case"input":ui(e,r),l=vo(e,r),V("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=G({},r,{value:void 0}),V("invalid",e);break;case"textarea":ci(e,r),l=xo(e,r),V("invalid",e);break;default:l=r}ko(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var a=u[o];o==="style"?Vu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&$u(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Kn(e,a):typeof a=="number"&&Kn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Jn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&V("scroll",e):a!=null&&as(e,o,a,s))}switch(n){case"input":gr(e),ai(e,r,!1);break;case"textarea":gr(e),di(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?rn(e,!!r.multiple,o,!1):r.defaultValue!=null&&rn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=br)}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 ce(t),null;case 6:if(e&&t.stateNode!=null)fc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Pt(lr.current),Pt(Je.current),Er(t)){if(r=t.stateNode,n=t.memoizedProps,r[He]=t,(o=r.nodeValue!==n)&&(e=Ce,e!==null))switch(e.tag){case 3:Cr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Cr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[He]=t,t.stateNode=r}return ce(t),null;case 13:if(H(K),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Ne!==null&&t.mode&1&&!(t.flags&128))Pa(),fn(),t.flags|=98560,o=!1;else if(o=Er(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(S(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(S(317));o[He]=t}else fn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),o=!1}else Ae!==null&&(ns(Ae),Ae=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||K.current&1?ne===0&&(ne=3):Qs())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return hn(),Yo(e,t),e===null&&er(t.stateNode.containerInfo),ce(t),null;case 10:return _s(t.type._context),ce(t),null;case 17:return we(t.type)&&el(),ce(t),null;case 19:if(H(K),o=t.memoizedState,o===null)return ce(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)zn(o,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=il(e),s!==null){for(t.flags|=128,zn(o,!1),r=s.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,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(K,K.current&1|2),t.child}e=e.sibling}o.tail!==null&&q()>vn&&(t.flags|=128,r=!0,zn(o,!1),t.lanes=4194304)}else{if(!r)if(e=il(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!J)return ce(t),null}else 2*q()-o.renderingStartTime>vn&&n!==1073741824&&(t.flags|=128,r=!0,zn(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=q(),t.sibling=null,n=K.current,B(K,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return Hs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Vf(e,t){switch(Ns(t),t.tag){case 1:return we(t.type)&&el(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hn(),H(xe),H(fe),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ms(t),null;case 13:if(H(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(K),null;case 4:return hn(),null;case 10:return _s(t.type._context),null;case 22:case 23:return Hs(),null;case 24:return null;default:return null}}var Tr=!1,de=!1,Hf=typeof WeakSet=="function"?WeakSet:Set,L=null;function tn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Go(e,t,n){try{n()}catch(r){X(e,t,r)}}var eu=!1;function Qf(e,t){if(Mo=Xr,e=ga(),Ss(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 s=0,u=-1,a=-1,d=0,v=0,g=e,h=null;t:for(;;){for(var m;g!==n||l!==0&&g.nodeType!==3||(u=s+l),g!==o||r!==0&&g.nodeType!==3||(a=s+r),g.nodeType===3&&(s+=g.nodeValue.length),(m=g.firstChild)!==null;)h=g,g=m;for(;;){if(g===e)break t;if(h===n&&++d===l&&(u=s),h===o&&++v===r&&(a=s),(m=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=m}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ro={focusedElem:e,selectionRange:n},Xr=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var x=y.memoizedProps,T=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:De(t.type,x),T);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(k){X(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=eu,eu=!1,y}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&&Go(t,n,o)}l=l.next}while(l!==r)}}function Nl(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 Xo(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 pc(e){var t=e.alternate;t!==null&&(e.alternate=null,pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[He],delete t[nr],delete t[Do],delete t[Lf],delete t[_f])),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 hc(e){return e.tag===5||e.tag===3||e.tag===4}function tu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hc(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 Zo(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=br));else if(r!==4&&(e=e.child,e!==null))for(Zo(e,t,n),e=e.sibling;e!==null;)Zo(e,t,n),e=e.sibling}function qo(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(qo(e,t,n),e=e.sibling;e!==null;)qo(e,t,n),e=e.sibling}var oe=null,Fe=!1;function st(e,t,n){for(n=n.child;n!==null;)mc(e,t,n),n=n.sibling}function mc(e,t,n){if(Qe&&typeof Qe.onCommitFiberUnmount=="function")try{Qe.onCommitFiberUnmount(vl,n)}catch{}switch(n.tag){case 5:de||tn(n,t);case 6:var r=oe,l=Fe;oe=null,st(e,t,n),oe=r,Fe=l,oe!==null&&(Fe?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Fe?(e=oe,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),Zn(e)):Zl(oe,n.stateNode));break;case 4:r=oe,l=Fe,oe=n.stateNode.containerInfo,Fe=!0,st(e,t,n),oe=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Go(n,t,s),l=l.next}while(l!==r)}st(e,t,n);break;case 1:if(!de&&(tn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){X(n,t,u)}st(e,t,n);break;case 21:st(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,st(e,t,n),de=r):st(e,t,n);break;default:st(e,t,n)}}function nu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hf),t.forEach(function(r){var l=ep.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ie(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,s=t,u=s;e:for(;u!==null;){switch(u.tag){case 5:oe=u.stateNode,Fe=!1;break e;case 3:oe=u.stateNode.containerInfo,Fe=!0;break e;case 4:oe=u.stateNode.containerInfo,Fe=!0;break e}u=u.return}if(oe===null)throw Error(S(160));mc(o,s,l),oe=null,Fe=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(d){X(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vc(t,e),t=t.sibling}function vc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ie(t,e),Be(e),r&4){try{Vn(3,e,e.return),Nl(3,e)}catch(x){X(e,e.return,x)}try{Vn(5,e,e.return)}catch(x){X(e,e.return,x)}}break;case 1:Ie(t,e),Be(e),r&512&&n!==null&&tn(n,n.return);break;case 5:if(Ie(t,e),Be(e),r&512&&n!==null&&tn(n,n.return),e.flags&32){var l=e.stateNode;try{Kn(l,"")}catch(x){X(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Au(l,o),So(u,s);var d=So(u,o);for(s=0;s<a.length;s+=2){var v=a[s],g=a[s+1];v==="style"?Vu(l,g):v==="dangerouslySetInnerHTML"?$u(l,g):v==="children"?Kn(l,g):as(l,v,g,d)}switch(u){case"input":go(l,o);break;case"textarea":Uu(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?rn(l,!!o.multiple,m,!1):h!==!!o.multiple&&(o.defaultValue!=null?rn(l,!!o.multiple,o.defaultValue,!0):rn(l,!!o.multiple,o.multiple?[]:"",!1))}l[nr]=o}catch(x){X(e,e.return,x)}}break;case 6:if(Ie(t,e),Be(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){X(e,e.return,x)}}break;case 3:if(Ie(t,e),Be(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zn(t.containerInfo)}catch(x){X(e,e.return,x)}break;case 4:Ie(t,e),Be(e);break;case 13:Ie(t,e),Be(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Bs=q())),r&4&&nu(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(de=(d=de)||v,Ie(t,e),de=d):Ie(t,e),Be(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!v&&e.mode&1)for(L=e,v=e.child;v!==null;){for(g=L=v;L!==null;){switch(h=L,m=h.child,h.tag){case 0:case 11:case 14:case 15:Vn(4,h,h.return);break;case 1:tn(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(x){X(r,n,x)}}break;case 5:tn(h,h.return);break;case 22:if(h.memoizedState!==null){lu(g);continue}}m!==null?(m.return=h,L=m):lu(g)}v=v.sibling}e:for(v=null,g=e;;){if(g.tag===5){if(v===null){v=g;try{l=g.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=g.stateNode,a=g.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Bu("display",s))}catch(x){X(e,e.return,x)}}}else if(g.tag===6){if(v===null)try{g.stateNode.nodeValue=d?"":g.memoizedProps}catch(x){X(e,e.return,x)}}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;v===g&&(v=null),g=g.return}v===g&&(v=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Ie(t,e),Be(e),r&4&&nu(e);break;case 21:break;default:Ie(t,e),Be(e)}}function Be(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(hc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Kn(l,""),r.flags&=-33);var o=tu(e);qo(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,u=tu(e);Zo(e,u,s);break;default:throw Error(S(161))}}catch(a){X(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jf(e,t,n){L=e,gc(e)}function gc(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var l=L,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Tr;if(!s){var u=l.alternate,a=u!==null&&u.memoizedState!==null||de;u=Tr;var d=de;if(Tr=s,(de=a)&&!d)for(L=l;L!==null;)s=L,a=s.child,s.tag===22&&s.memoizedState!==null?ou(l):a!==null?(a.return=s,L=a):ou(l);for(;o!==null;)L=o,gc(o),o=o.sibling;L=l,Tr=u,de=d}ru(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,L=o):ru(e)}}function ru(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||Nl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:De(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&$i(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}$i(t,s,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var v=d.memoizedState;if(v!==null){var g=v.dehydrated;g!==null&&Zn(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}de||t.flags&512&&Xo(t)}catch(h){X(t,t.return,h)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function lu(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function ou(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Nl(4,t)}catch(a){X(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){X(t,l,a)}}var o=t.return;try{Xo(t)}catch(a){X(t,o,a)}break;case 5:var s=t.return;try{Xo(t)}catch(a){X(t,s,a)}}}catch(a){X(t,t.return,a)}if(t===e){L=null;break}var u=t.sibling;if(u!==null){u.return=t.return,L=u;break}L=t.return}}var Kf=Math.ceil,cl=ot.ReactCurrentDispatcher,Ws=ot.ReactCurrentOwner,Me=ot.ReactCurrentBatchConfig,U=0,le=null,b=null,se=0,je=0,nn=Nt(0),ne=0,ur=null,Dt=0,Cl=0,$s=0,Hn=null,ge=null,Bs=0,vn=1/0,Xe=null,dl=!1,bo=null,yt=null,Pr=!1,ft=null,fl=0,Qn=0,es=null,Br=-1,Vr=0;function he(){return U&6?q():Br!==-1?Br:Br=q()}function xt(e){return e.mode&1?U&2&&se!==0?se&-se:Pf.transition!==null?(Vr===0&&(Vr=ta()),Vr):(e=W,e!==0||(e=window.event,e=e===void 0?16:ua(e.type)),e):1}function We(e,t,n,r){if(50<Qn)throw Qn=0,es=null,Error(S(185));cr(e,n,r),(!(U&2)||e!==le)&&(e===le&&(!(U&2)&&(Cl|=n),ne===4&&ct(e,se)),ke(e,r),n===1&&U===0&&!(t.mode&1)&&(vn=q()+500,kl&&Ct()))}function ke(e,t){var n=e.callbackNode;Td(e,t);var r=Gr(e,e===le?se:0);if(r===0)n!==null&&hi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&hi(n),t===1)e.tag===0?Tf(su.bind(null,e)):La(su.bind(null,e)),Cf(function(){!(U&6)&&Ct()}),n=null;else{switch(na(r)){case 1:n=hs;break;case 4:n=bu;break;case 16:n=Yr;break;case 536870912:n=ea;break;default:n=Yr}n=Cc(n,yc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yc(e,t){if(Br=-1,Vr=0,U&6)throw Error(S(327));var n=e.callbackNode;if(an()&&e.callbackNode!==n)return null;var r=Gr(e,e===le?se:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=pl(e,r);else{t=r;var l=U;U|=2;var o=wc();(le!==e||se!==t)&&(Xe=null,vn=q()+500,zt(e,t));do try{Xf();break}catch(u){xc(e,u)}while(!0);Ls(),cl.current=o,U=l,b!==null?t=0:(le=null,se=0,t=ne)}if(t!==0){if(t===2&&(l=Lo(e),l!==0&&(r=l,t=ts(e,l))),t===1)throw n=ur,zt(e,0),ct(e,r),ke(e,q()),n;if(t===6)ct(e,r);else{if(l=e.current.alternate,!(r&30)&&!Yf(l)&&(t=pl(e,r),t===2&&(o=Lo(e),o!==0&&(r=o,t=ts(e,o))),t===1))throw n=ur,zt(e,0),ct(e,r),ke(e,q()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Lt(e,ge,Xe);break;case 3:if(ct(e,r),(r&130023424)===r&&(t=Bs+500-q(),10<t)){if(Gr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){he(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Io(Lt.bind(null,e,ge,Xe),t);break}Lt(e,ge,Xe);break;case 4:if(ct(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Ue(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kf(r/1960))-r,10<r){e.timeoutHandle=Io(Lt.bind(null,e,ge,Xe),r);break}Lt(e,ge,Xe);break;case 5:Lt(e,ge,Xe);break;default:throw Error(S(329))}}}return ke(e,q()),e.callbackNode===n?yc.bind(null,e):null}function ts(e,t){var n=Hn;return e.current.memoizedState.isDehydrated&&(zt(e,t).flags|=256),e=pl(e,t),e!==2&&(t=ge,ge=n,t!==null&&ns(t)),e}function ns(e){ge===null?ge=e:ge.push.apply(ge,e)}function Yf(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(!$e(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 ct(e,t){for(t&=~$s,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(U&6)throw Error(S(327));an();var t=Gr(e,0);if(!(t&1))return ke(e,q()),null;var n=pl(e,t);if(e.tag!==0&&n===2){var r=Lo(e);r!==0&&(t=r,n=ts(e,r))}if(n===1)throw n=ur,zt(e,0),ct(e,t),ke(e,q()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lt(e,ge,Xe),ke(e,q()),null}function Vs(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(vn=q()+500,kl&&Ct())}}function Ft(e){ft!==null&&ft.tag===0&&!(U&6)&&an();var t=U;U|=1;var n=Me.transition,r=W;try{if(Me.transition=null,W=1,e)return e()}finally{W=r,Me.transition=n,U=t,!(U&6)&&Ct()}}function Hs(){je=nn.current,H(nn)}function zt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Nf(n)),b!==null)for(n=b.return;n!==null;){var r=n;switch(Ns(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&el();break;case 3:hn(),H(xe),H(fe),Rs();break;case 5:Ms(r);break;case 4:hn();break;case 13:H(K);break;case 19:H(K);break;case 10:_s(r.type._context);break;case 22:case 23:Hs()}n=n.return}if(le=e,b=e=wt(e.current,null),se=je=t,ne=0,ur=null,$s=Cl=Dt=0,ge=Hn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Tt=null}return e}function xc(e,t){do{var n=b;try{if(Ls(),Ur.current=al,ul){for(var r=Y.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ul=!1}if(It=0,re=te=Y=null,Bn=!1,or=0,Ws.current=null,n===null||n.return===null){ne=1,ur=t,b=null;break}e:{var o=e,s=n.return,u=n,a=t;if(t=se,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,v=u,g=v.tag;if(!(v.mode&1)&&(g===0||g===11||g===15)){var h=v.alternate;h?(v.updateQueue=h.updateQueue,v.memoizedState=h.memoizedState,v.lanes=h.lanes):(v.updateQueue=null,v.memoizedState=null)}var m=Ki(s);if(m!==null){m.flags&=-257,Yi(m,s,u,o,t),m.mode&1&&Ji(o,d,t),t=m,a=d;var y=t.updateQueue;if(y===null){var x=new Set;x.add(a),t.updateQueue=x}else y.add(a);break e}else{if(!(t&1)){Ji(o,d,t),Qs();break e}a=Error(S(426))}}else if(J&&u.mode&1){var T=Ki(s);if(T!==null){!(T.flags&65536)&&(T.flags|=256),Yi(T,s,u,o,t),Cs(mn(a,u));break e}}o=a=mn(a,u),ne!==4&&(ne=2),Hn===null?Hn=[o]:Hn.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=nc(o,a,t);Wi(o,f);break e;case 1:u=a;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(yt===null||!yt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=rc(o,u,t);Wi(o,k);break e}}o=o.return}while(o!==null)}Sc(n)}catch(N){t=N,b===n&&n!==null&&(b=n=n.return);continue}break}while(!0)}function wc(){var e=cl.current;return cl.current=al,e===null?al:e}function Qs(){(ne===0||ne===3||ne===2)&&(ne=4),le===null||!(Dt&268435455)&&!(Cl&268435455)||ct(le,se)}function pl(e,t){var n=U;U|=2;var r=wc();(le!==e||se!==t)&&(Xe=null,zt(e,t));do try{Gf();break}catch(l){xc(e,l)}while(!0);if(Ls(),U=n,cl.current=r,b!==null)throw Error(S(261));return le=null,se=0,ne}function Gf(){for(;b!==null;)kc(b)}function Xf(){for(;b!==null&&!wd();)kc(b)}function kc(e){var t=Nc(e.alternate,e,je);e.memoizedProps=e.pendingProps,t===null?Sc(e):b=t,Ws.current=null}function Sc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Vf(n,t),n!==null){n.flags&=32767,b=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,b=null;return}}else if(n=Bf(n,t,je),n!==null){b=n;return}if(t=t.sibling,t!==null){b=t;return}b=t=e}while(t!==null);ne===0&&(ne=5)}function Lt(e,t,n){var r=W,l=Me.transition;try{Me.transition=null,W=1,Zf(e,t,n,r)}finally{Me.transition=l,W=r}return null}function Zf(e,t,n,r){do an();while(ft!==null);if(U&6)throw Error(S(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(S(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Pd(e,o),e===le&&(b=le=null,se=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Pr||(Pr=!0,Cc(Yr,function(){return an(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Me.transition,Me.transition=null;var s=W;W=1;var u=U;U|=4,Ws.current=null,Qf(e,n),vc(n,e),gf(Ro),Xr=!!Mo,Ro=Mo=null,e.current=n,Jf(n),kd(),U=u,W=s,Me.transition=o}else e.current=n;if(Pr&&(Pr=!1,ft=e,fl=l),o=e.pendingLanes,o===0&&(yt=null),Nd(n.stateNode),ke(e,q()),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(dl)throw dl=!1,e=bo,bo=null,e;return fl&1&&e.tag!==0&&an(),o=e.pendingLanes,o&1?e===es?Qn++:(Qn=0,es=e):Qn=0,Ct(),null}function an(){if(ft!==null){var e=na(fl),t=Me.transition,n=W;try{if(Me.transition=null,W=16>e?16:e,ft===null)var r=!1;else{if(e=ft,ft=null,fl=0,U&6)throw Error(S(331));var l=U;for(U|=4,L=e.current;L!==null;){var o=L,s=o.child;if(L.flags&16){var u=o.deletions;if(u!==null){for(var a=0;a<u.length;a++){var d=u[a];for(L=d;L!==null;){var v=L;switch(v.tag){case 0:case 11:case 15:Vn(8,v,o)}var g=v.child;if(g!==null)g.return=v,L=g;else for(;L!==null;){v=L;var h=v.sibling,m=v.return;if(pc(v),v===d){L=null;break}if(h!==null){h.return=m,L=h;break}L=m}}}var y=o.alternate;if(y!==null){var x=y.child;if(x!==null){y.child=null;do{var T=x.sibling;x.sibling=null,x=T}while(x!==null)}}L=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,L=s;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Vn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,L=f;break e}L=o.return}}var c=e.current;for(L=c;L!==null;){s=L;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,L=p;else e:for(s=c;L!==null;){if(u=L,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:Nl(9,u)}}catch(N){X(u,u.return,N)}if(u===s){L=null;break e}var k=u.sibling;if(k!==null){k.return=u.return,L=k;break e}L=u.return}}if(U=l,Ct(),Qe&&typeof Qe.onPostCommitFiberRoot=="function")try{Qe.onPostCommitFiberRoot(vl,e)}catch{}r=!0}return r}finally{W=n,Me.transition=t}}return!1}function iu(e,t,n){t=mn(n,t),t=nc(e,t,1),e=gt(e,t,1),t=he(),e!==null&&(cr(e,1,t),ke(e,t))}function X(e,t,n){if(e.tag===3)iu(e,e,n);else for(;t!==null;){if(t.tag===3){iu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yt===null||!yt.has(r))){e=mn(n,e),e=rc(t,e,1),t=gt(t,e,1),e=he(),t!==null&&(cr(t,1,e),ke(t,e));break}}t=t.return}}function qf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=he(),e.pingedLanes|=e.suspendedLanes&n,le===e&&(se&n)===n&&(ne===4||ne===3&&(se&130023424)===se&&500>q()-Bs?zt(e,0):$s|=n),ke(e,t)}function jc(e,t){t===0&&(e.mode&1?(t=wr,wr<<=1,!(wr&130023424)&&(wr=4194304)):t=1);var n=he();e=rt(e,t),e!==null&&(cr(e,t,n),ke(e,n))}function bf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jc(e,n)}function ep(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(S(314))}r!==null&&r.delete(t),jc(e,n)}var Nc;Nc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xe.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,$f(e,t,n);ye=!!(e.flags&131072)}else ye=!1,J&&t.flags&1048576&&_a(t,rl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;$r(e,t),e=t.pendingProps;var l=dn(t,fe.current);un(t,n),l=Is(null,t,r,e,l,n);var o=Ds();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,we(r)?(o=!0,tl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Ps(t),l.updater=jl,t.stateNode=l,l._reactInternals=t,Bo(t,r,e,n),t=Qo(null,t,r,!0,o,n)):(t.tag=0,J&&o&&js(t),pe(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch($r(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=np(r),e=De(r,e),l){case 0:t=Ho(null,t,r,e,n);break e;case 1:t=Zi(null,t,r,e,n);break e;case 11:t=Gi(null,t,r,e,n);break e;case 14:t=Xi(null,t,r,De(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Ho(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Zi(e,t,r,l,n);case 3:e:{if(ic(t),e===null)throw Error(S(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Oa(e,t),sl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=mn(Error(S(423)),t),t=qi(e,t,r,n,l);break e}else if(r!==l){l=mn(Error(S(424)),t),t=qi(e,t,r,n,l);break e}else for(Ne=vt(t.stateNode.containerInfo.firstChild),Ce=t,J=!0,Ae=null,n=Ma(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fn(),r===l){t=lt(e,t,n);break e}pe(e,t,r,n)}t=t.child}return t;case 5:return Ia(t),e===null&&Uo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Oo(r,l)?s=null:o!==null&&Oo(r,o)&&(t.flags|=32),sc(e,t),pe(e,t,s,n),t.child;case 6:return e===null&&Uo(t),null;case 13:return uc(e,t,n);case 4:return zs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=pn(t,null,r,n):pe(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),Gi(e,t,r,l,n);case 7:return pe(e,t,t.pendingProps,n),t.child;case 8:return pe(e,t,t.pendingProps.children,n),t.child;case 12:return pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,B(ll,r._currentValue),r._currentValue=s,o!==null)if($e(o.value,s)){if(o.children===l.children&&!xe.current){t=lt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){s=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=et(-1,n&-n),a.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wo(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(S(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),Wo(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}pe(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,un(t,n),l=Re(l),r=r(l),t.flags|=1,pe(e,t,r,n),t.child;case 14:return r=t.type,l=De(r,t.pendingProps),l=De(r.type,l),Xi(e,t,r,l,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:De(r,l),$r(e,t),t.tag=1,we(r)?(e=!0,tl(t)):e=!1,un(t,n),tc(t,r,l),Bo(t,r,l,n),Qo(null,t,r,!0,e,n);case 19:return ac(e,t,n);case 22:return oc(e,t,n)}throw Error(S(156,t.tag))};function Cc(e,t){return qu(e,t)}function tp(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 ze(e,t,n,r){return new tp(e,t,n,r)}function Js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function np(e){if(typeof e=="function")return Js(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ds)return 11;if(e===fs)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=ze(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 Hr(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Js(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jt:return Mt(n.children,l,o,t);case cs:s=8,l|=8;break;case fo:return e=ze(12,n,t,l|2),e.elementType=fo,e.lanes=o,e;case po:return e=ze(13,n,t,l),e.elementType=po,e.lanes=o,e;case ho:return e=ze(19,n,t,l),e.elementType=ho,e.lanes=o,e;case Iu:return El(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ru:s=10;break e;case Ou:s=9;break e;case ds:s=11;break e;case fs:s=14;break e;case it:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=ze(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=ze(7,e,r,t),e.lanes=n,e}function El(e,t,n,r){return e=ze(22,e,r,t),e.elementType=Iu,e.lanes=n,e.stateNode={isHidden:!1},e}function oo(e,t,n){return e=ze(6,e,null,t),e.lanes=n,e}function so(e,t,n){return t=ze(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rp(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=Wl(0),this.expirationTimes=Wl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ks(e,t,n,r,l,o,s,u,a){return e=new rp(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ze(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ps(o),e}function lp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ec(e){if(!e)return St;e=e._reactInternals;e:{if(Wt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(we(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(we(n))return Ea(e,n,t)}return t}function Lc(e,t,n,r,l,o,s,u,a){return e=Ks(n,r,!0,e,l,o,s,u,a),e.context=Ec(null),n=e.current,r=he(),l=xt(n),o=et(r,l),o.callback=t??null,gt(n,o,l),e.current.lanes=l,cr(e,l,r),ke(e,r),e}function Ll(e,t,n,r){var l=t.current,o=he(),s=xt(l);return n=Ec(n),t.context===null?t.context=n:t.pendingContext=n,t=et(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gt(l,t,s),e!==null&&(We(e,l,s,o),Ar(e,l,s)),s}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 uu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ys(e,t){uu(e,t),(e=e.alternate)&&uu(e,t)}function op(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}_l.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Ll(e,t,null,null)};_l.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ft(function(){Ll(null,e,null,null)}),t[nt]=null}};function _l(e){this._internalRoot=e}_l.prototype.unstable_scheduleHydration=function(e){if(e){var t=oa();e={blockedOn:null,target:e,priority:t};for(var n=0;n<at.length&&t!==0&&t<at[n].priority;n++);at.splice(n,0,e),n===0&&ia(e)}};function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function au(){}function sp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=hl(s);o.call(d)}}var s=Lc(t,r,e,0,null,!1,!1,"",au);return e._reactRootContainer=s,e[nt]=s.current,er(e.nodeType===8?e.parentNode:e),Ft(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var d=hl(a);u.call(d)}}var a=Ks(e,0,!1,null,null,!1,!1,"",au);return e._reactRootContainer=a,e[nt]=a.current,er(e.nodeType===8?e.parentNode:e),Ft(function(){Ll(t,a,n,r)}),a}function Pl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var u=l;l=function(){var a=hl(s);u.call(a)}}Ll(t,s,e,l)}else s=sp(n,t,e,l,r);return hl(s)}ra=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=In(t.pendingLanes);n!==0&&(ms(t,n|1),ke(t,q()),!(U&6)&&(vn=q()+500,Ct()))}break;case 13:Ft(function(){var r=rt(e,1);if(r!==null){var l=he();We(r,e,1,l)}}),Ys(e,1)}};vs=function(e){if(e.tag===13){var t=rt(e,134217728);if(t!==null){var n=he();We(t,e,134217728,n)}Ys(e,134217728)}};la=function(e){if(e.tag===13){var t=xt(e),n=rt(e,t);if(n!==null){var r=he();We(n,e,t,r)}Ys(e,t)}};oa=function(){return W};sa=function(e,t){var n=W;try{return W=e,t()}finally{W=n}};No=function(e,t,n){switch(t){case"input":if(go(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=wl(r);if(!l)throw Error(S(90));Fu(r),go(r,l)}}}break;case"textarea":Uu(e,n);break;case"select":t=n.value,t!=null&&rn(e,!!n.multiple,t,!1)}};Ju=Vs;Ku=Ft;var ip={usingClientEntryPoint:!1,Events:[fr,Xt,wl,Hu,Qu,Vs]},Mn={findFiberByHostInstance:_t,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},up={bundleType:Mn.bundleType,version:Mn.version,rendererPackageName:Mn.rendererPackageName,rendererConfig:Mn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xu(e),e===null?null:e.stateNode},findFiberByHostInstance:Mn.findFiberByHostInstance||op,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 zr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zr.isDisabled&&zr.supportsFiber)try{vl=zr.inject(up),Qe=zr}catch{}}Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ip;Le.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xs(t))throw Error(S(200));return lp(e,t,null,n)};Le.createRoot=function(e,t){if(!Xs(e))throw Error(S(299));var n=!1,r="",l=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Ks(e,1,!1,null,null,n,!1,r,l),e[nt]=t.current,er(e.nodeType===8?e.parentNode:e),new Gs(t)};Le.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Xu(t),e=e===null?null:e.stateNode,e};Le.flushSync=function(e){return Ft(e)};Le.hydrate=function(e,t,n){if(!Tl(t))throw Error(S(200));return Pl(null,e,t,!0,n)};Le.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=_c;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=Lc(t,null,e,1,n??null,l,!1,o,s),e[nt]=t.current,er(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 _l(t)};Le.render=function(e,t,n){if(!Tl(t))throw Error(S(200));return Pl(null,e,t,!1,n)};Le.unmountComponentAtNode=function(e){if(!Tl(e))throw Error(S(40));return e._reactRootContainer?(Ft(function(){Pl(null,null,e,!1,function(){e._reactRootContainer=null,e[nt]=null})}),!0):!1};Le.unstable_batchedUpdates=Vs;Le.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Tl(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Pl(e,t,n,!1,r)};Le.version="18.3.1-next-f1338f8080-20240426";function Tc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tc)}catch(e){console.error(e)}}Tc(),Tu.exports=Le;var ap=Tu.exports,cu=ap;ao.createRoot=cu.createRoot,ao.hydrateRoot=cu.hydrateRoot;function cp({schema:e,selectedFunction:t,onSelectFunction:n}){const[r,l]=O.useState(new Set),[o,s]=O.useState(""),u=O.useRef(null);O.useEffect(()=>{if(t){const m=t.path.lastIndexOf(":"),x=(m>-1?t.path.substring(0,m):t.path).split("/"),T=[];for(let f=0;f<x.length;f++)T.push(x.slice(0,f+1).join("/"));T.length>0&&l(f=>{const c=new Set(f);return T.forEach(p=>c.add(p)),c}),setTimeout(()=>{var c;const f=(c=u.current)==null?void 0:c.querySelector(`[data-function-path="${t.path}"]`);f&&f.scrollIntoView({behavior:"smooth",block:"nearest"})},100)}},[t]);const a=m=>{l(y=>{const x=new Set(y);return x.has(m)?x.delete(m):x.add(m),x})},d=m=>{if(!o)return m;const y=o.toLowerCase();return m.map(x=>{const T=x.functions.filter(c=>c.name.toLowerCase().includes(y)||c.path.toLowerCase().includes(y)),f=d(x.children);return T.length>0||f.length>0?{...x,functions:T,children:f}:null}).filter(x=>x!==null)},v=(m,y=0)=>{const x=r.has(m.path)||o.length>0,T=m.functions.length>0||m.children.length>0;return i.jsxs("div",{children:[i.jsxs("button",{onClick:()=>a(m.path),className:"w-full flex items-center gap-2 px-3 py-1.5 hover:bg-convex-border text-left text-sm transition-colors",style:{paddingLeft:`${y*12+12}px`},children:[T&&i.jsx("svg",{className:`w-4 h-4 text-gray-500 transition-transform ${x?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),i.jsx("svg",{className:"w-4 h-4 text-yellow-500",fill:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})}),i.jsx("span",{className:"text-gray-300",children:m.name})]}),x&&i.jsxs(i.Fragment,{children:[m.functions.map(f=>g(f,y+1)),m.children.map(f=>v(f,y+1))]})]},m.path)},g=(m,y)=>{const x=(t==null?void 0:t.path)===m.path,T={query:"text-blue-400",mutation:"text-orange-400",action:"text-purple-400"},f={query:"bg-blue-900/30",mutation:"bg-orange-900/30",action:"bg-purple-900/30"};return i.jsxs("button",{"data-function-path":m.path,"data-selected":x,onClick:()=>n(m),className:`w-full flex items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors ${x?"bg-convex-accent/20 text-white":"hover:bg-convex-border text-gray-400"}`,style:{paddingLeft:`${y*12+12}px`},children:[i.jsx("span",{className:`text-[10px] font-mono font-semibold px-1.5 py-0.5 rounded ${T[m.type]} ${f[m.type]}`,children:m.type.charAt(0).toUpperCase()}),i.jsx("span",{className:x?"text-white":"text-gray-300",children:m.name})]},m.path)},h=e?d(e.modules):[];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"px-3 h-14 border-b border-convex-border flex items-center",children:i.jsxs("div",{className:"relative w-full",children:[i.jsx("svg",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),i.jsx("input",{type:"text",placeholder:"Search functions...",value:o,onChange:m=>s(m.target.value),className:"w-full bg-convex-darker border border-convex-border rounded-lg pl-10 pr-3 py-1.5 text-sm focus:outline-none focus:border-convex-accent"})]})}),i.jsx("div",{ref:u,className:"flex-1 overflow-auto py-2",children:e?h.length===0?i.jsx("div",{className:"flex items-center justify-center h-32 text-gray-500 text-sm",children:"No functions found"}):h.map(m=>v(m)):i.jsx("div",{className:"flex items-center justify-center h-32 text-gray-500 text-sm",children:"Loading schema..."})}),i.jsx("div",{className:"p-3 border-t border-convex-border",children:i.jsxs("div",{className:"flex items-center gap-4 text-xs text-gray-500",children:[i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx("span",{className:"text-blue-400 bg-blue-900/30 px-1 rounded",children:"Q"}),"Query"]}),i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx("span",{className:"text-orange-400 bg-orange-900/30 px-1 rounded",children:"M"}),"Mutation"]}),i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx("span",{className:"text-purple-400 bg-purple-900/30 px-1 rounded",children:"A"}),"Action"]})]})})]})}const dp={},du=e=>{let t;const n=new Set,r=(v,g)=>{const h=typeof v=="function"?v(t):v;if(!Object.is(h,t)){const m=t;t=g??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(y=>y(t,m))}},l=()=>t,a={setState:r,getState:l,getInitialState:()=>d,subscribe:v=>(n.add(v),()=>n.delete(v)),destroy:()=>{(dp?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(r,l,a);return a},fp=e=>e?du(e):du;var Pc={exports:{}},zc={},Mc={exports:{}},Rc={};/**
41
- * @license React
42
- * use-sync-external-store-shim.production.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var gn=O;function pp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hp=typeof Object.is=="function"?Object.is:pp,mp=gn.useState,vp=gn.useEffect,gp=gn.useLayoutEffect,yp=gn.useDebugValue;function xp(e,t){var n=t(),r=mp({inst:{value:n,getSnapshot:t}}),l=r[0].inst,o=r[1];return gp(function(){l.value=n,l.getSnapshot=t,io(l)&&o({inst:l})},[e,n,t]),vp(function(){return io(l)&&o({inst:l}),e(function(){io(l)&&o({inst:l})})},[e]),yp(n),n}function io(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hp(e,n)}catch{return!0}}function wp(e,t){return t()}var kp=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wp:xp;Rc.useSyncExternalStore=gn.useSyncExternalStore!==void 0?gn.useSyncExternalStore:kp;Mc.exports=Rc;var Sp=Mc.exports;/**
49
- * @license React
50
- * use-sync-external-store-shim/with-selector.production.js
51
- *
52
- * Copyright (c) Meta Platforms, Inc. and affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var zl=O,jp=Sp;function Np(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cp=typeof Object.is=="function"?Object.is:Np,Ep=jp.useSyncExternalStore,Lp=zl.useRef,_p=zl.useEffect,Tp=zl.useMemo,Pp=zl.useDebugValue;zc.useSyncExternalStoreWithSelector=function(e,t,n,r,l){var o=Lp(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Tp(function(){function a(m){if(!d){if(d=!0,v=m,m=r(m),l!==void 0&&s.hasValue){var y=s.value;if(l(y,m))return g=y}return g=m}if(y=g,Cp(v,m))return y;var x=r(m);return l!==void 0&&l(y,x)?(v=m,y):(v=m,g=x)}var d=!1,v,g,h=n===void 0?null:n;return[function(){return a(t())},h===null?void 0:function(){return a(h())}]},[t,n,r,l]);var u=Ep(e,o[0],o[1]);return _p(function(){s.hasValue=!0,s.value=u},[u]),Pp(u),u};Pc.exports=zc;var zp=Pc.exports;const Mp=vu(zp),Oc={},{useDebugValue:Rp}=Lu,{useSyncExternalStoreWithSelector:Op}=Mp;let fu=!1;const Ip=e=>e;function Dp(e,t=Ip,n){(Oc?"production":void 0)!=="production"&&n&&!fu&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),fu=!0);const r=Op(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Rp(r),r}const pu=e=>{(Oc?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?fp(e):e,n=(r,l)=>Dp(t,r,l);return Object.assign(n,t),n},Zs=e=>e?pu(e):pu,Ic="convex-devtools-drafts",Dc="convex-devtools-recent-tabs",Fp=()=>{try{const e=localStorage.getItem(Ic);if(e)return JSON.parse(e)}catch{}return{}},Ht=e=>{try{localStorage.setItem(Ic,JSON.stringify(e))}catch{}},Ap=()=>{try{const e=localStorage.getItem(Dc);if(e)return JSON.parse(e)}catch{}return[]},hu=e=>{try{localStorage.setItem(Dc,JSON.stringify(e))}catch{}},At=Zs((e,t)=>({selectedFunction:null,args:"{}",jwtToken:"",projectName:"",response:null,isLoading:!1,isArgsValid:!0,argsError:null,drafts:Fp(),recentTabs:Ap(),setSelectedFunction:n=>{const{selectedFunction:r,args:l,response:o}=t();if(r){const a={...t().drafts};a[r.path]={args:l,response:o},Ht(a),e({drafts:a})}const s=t().drafts,u=n?s[n.path]:null;if(u){e({selectedFunction:n,args:u.args,response:u.response,isArgsValid:!0,argsError:null});return}if(n&&Array.isArray(n.args)&&n.args.length>0){const a={};n.args.forEach(d=>{if(d.name==="paginationOpts"){a[d.name]={cursor:null,numItems:10};return}d.optional||(d.type.includes("[]")||d.type.toLowerCase().includes("array")?a[d.name]=[]:a[d.name]="")}),e({selectedFunction:n,args:JSON.stringify(a,null,2),response:null,isArgsValid:!0,argsError:null})}else e({selectedFunction:n,args:"{}",response:null,isArgsValid:!0,argsError:null})},setArgs:n=>{try{JSON.parse(n),e({args:n,isArgsValid:!0,argsError:null});const{selectedFunction:r,response:l,drafts:o}=t();if(r){const s={...o,[r.path]:{args:n,response:l}};Ht(s),e({drafts:s})}}catch(r){e({args:n,isArgsValid:!1,argsError:(r==null?void 0:r.message)||"Invalid JSON"})}},setJwtToken:n=>e({jwtToken:n}),setProjectName:n=>e({projectName:n}),invoke:async()=>{const{selectedFunction:n,args:r,jwtToken:l,addToRecentTabs:o}=t();if(n){o(n),e({isLoading:!0,response:null});try{let s={};try{s=JSON.parse(r)}catch{e({isLoading:!1,response:{success:!1,error:{message:"Invalid JSON in arguments"},timestamp:new Date().toISOString()}});return}const a=await(await fetch("/api/invoke",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({functionPath:n.path,functionType:n.type,args:s,jwtToken:l||void 0})})).json();e({response:a,isLoading:!1})}catch(s){e({isLoading:!1,response:{success:!1,error:{message:s.message||"Request failed"},timestamp:new Date().toISOString()}})}}},setResponse:n=>{e({response:n,isLoading:!1});const{selectedFunction:r,args:l,drafts:o}=t();if(r){const s={...o,[r.path]:{args:l,response:n}};Ht(s),e({drafts:s})}},clearResponse:()=>{e({response:null});const{selectedFunction:n,args:r,drafts:l}=t();if(n){const o={...l,[n.path]:{args:r,response:null}};Ht(o),e({drafts:o})}},saveDraft:()=>{const{selectedFunction:n,args:r,response:l,drafts:o}=t();if(n){const s={...o,[n.path]:{args:r,response:l}};Ht(s),e({drafts:s})}},loadFromSaved:(n,r,l)=>{const{selectedFunction:o,args:s,response:u}=t();if(o){const a={...t().drafts};a[o.path]={args:s,response:u},Ht(a),e({drafts:a})}e({selectedFunction:n,args:r,response:l,isArgsValid:!0,argsError:null})},addToRecentTabs:n=>{const{recentTabs:r}=t();if(r.some(o=>o.path===n.path))return;const l=[n,...r].slice(0,10);e({recentTabs:l}),hu(l)},removeFromRecentTabs:n=>{const{recentTabs:r}=t(),l=r.filter(o=>o.path!==n);e({recentTabs:l}),hu(l)}})),Up="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Mr=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Up[n[e]&63];return t};const mu="convex-devtools-data",uo="convex-devtools-jwt-token",Ml=Zs((e,t)=>({collections:[],subfolders:[],history:[],savedToken:"",createCollection:(n,r)=>{const l=Mr(),o={id:l,name:n,folder:r??null,requests:[],createdAt:new Date().toISOString()};return e(s=>({collections:[...s.collections,o]})),t().saveToStorage(),l},deleteCollection:n=>{e(r=>({collections:r.collections.filter(l=>l.id!==n)})),t().saveToStorage()},renameCollection:(n,r)=>{e(l=>({collections:l.collections.map(o=>o.id===n?{...o,name:r}:o)})),t().saveToStorage()},moveCollection:(n,r)=>{e(l=>({collections:l.collections.map(o=>o.id===n?{...o,folder:r}:o)})),t().saveToStorage()},createSubfolder:(n,r)=>{const l=Mr(),o={id:l,name:n,parentId:r??null,createdAt:new Date().toISOString()};return e(s=>({subfolders:[...s.subfolders,o]})),t().saveToStorage(),l},deleteSubfolder:n=>{e(r=>{const l=r.collections.map(o=>o.folder===n?{...o,folder:null}:o);return{subfolders:r.subfolders.filter(o=>o.id!==n),collections:l}}),t().saveToStorage()},renameSubfolder:(n,r)=>{e(l=>({subfolders:l.subfolders.map(o=>o.id===n?{...o,name:r}:o)})),t().saveToStorage()},saveRequest:(n,r,l,o)=>{const s={id:Mr(),name:r,...l,lastResponse:o,savedAt:new Date().toISOString()};e(u=>({collections:u.collections.map(a=>a.id===n?{...a,requests:[...a.requests,s]}:a)})),t().saveToStorage()},deleteRequest:(n,r)=>{e(l=>({collections:l.collections.map(o=>o.id===n?{...o,requests:o.requests.filter(s=>s.id!==r)}:o)})),t().saveToStorage()},updateRequest:(n,r,l)=>{e(o=>({collections:o.collections.map(s=>s.id===n?{...s,requests:s.requests.map(u=>u.id===r?{...u,...l}:u)}:s)})),t().saveToStorage()},renameRequest:(n,r,l)=>{e(o=>({collections:o.collections.map(s=>s.id===n?{...s,requests:s.requests.map(u=>u.id===r?{...u,name:l}:u)}:s)})),t().saveToStorage()},setSavedToken:n=>{e({savedToken:n});try{n?localStorage.setItem(uo,n):localStorage.removeItem(uo)}catch(r){console.error("Failed to save token to localStorage:",r)}},loadSavedToken:()=>{try{const n=localStorage.getItem(uo)||"";return e({savedToken:n}),n}catch(n){return console.error("Failed to load token from localStorage:",n),""}},addToHistory:n=>{const r={id:Mr(),...n};e(l=>({history:[r,...l.history].slice(0,100)})),t().saveToStorage()},deleteHistoryEntry:n=>{e(r=>({history:r.history.filter(l=>l.id!==n)})),t().saveToStorage()},clearHistory:()=>{e({history:[]}),t().saveToStorage()},loadFromStorage:async()=>{try{const n=await fetch("/api/persistence");if(n.ok){const r=await n.json();e({collections:Array.isArray(r.collections)?r.collections:[],subfolders:Array.isArray(r.subfolders)?r.subfolders:[],history:Array.isArray(r.history)?r.history:[]});return}}catch(n){console.error("Failed to load from server storage:",n)}try{const n=localStorage.getItem(mu);if(n){const r=JSON.parse(n);e({collections:r.collections||[],subfolders:r.subfolders||[],history:r.history||[]})}}catch(n){console.error("Failed to load from local storage:",n)}},saveToStorage:async()=>{try{const{collections:n,subfolders:r,history:l}=t();if((await fetch("/api/persistence",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({collections:n,subfolders:r,history:l})})).ok)return}catch(n){console.error("Failed to save to server storage:",n)}try{const{collections:n,subfolders:r,history:l}=t();localStorage.setItem(mu,JSON.stringify({collections:n,subfolders:r,history:l}))}catch(n){console.error("Failed to save to local storage:",n)}},exportData:()=>{const{collections:n}=t();return{version:"1.0",exportedAt:new Date().toISOString(),collections:n}},importData:n=>{if(n.version!=="1.0")throw new Error(`Unsupported export version: ${n.version}`);e(r=>{const l=new Set(r.collections.map(s=>s.id)),o=n.collections.filter(s=>!l.has(s.id));return{collections:[...r.collections,...o]}}),t().saveToStorage()}}));function Wp(){const{selectedFunction:e,args:t,jwtToken:n,isLoading:r,projectName:l,setArgs:o,invoke:s,isArgsValid:u,argsError:a}=At(),{collections:d,saveRequest:v,addToHistory:g}=Ml(),[h,m]=O.useState(!1),[y,x]=O.useState(""),[T,f]=O.useState(""),c=O.useRef(null),p=async()=>{try{const F=JSON.parse(t);o(JSON.stringify(F,null,2))}catch{}await s();const{response:w}=At.getState();e&&w&&g({projectName:l||void 0,functionPath:e.path,functionType:e.type,args:t,response:w,timestamp:new Date().toISOString()})},k=()=>{e&&x(e.path),m(!0)},N=()=>{!e||!y||!T||(v(T,y,{functionPath:e.path,functionType:e.type,args:t}),m(!1),x(""),f(""))},_=()=>{try{const w=JSON.parse(t);o(JSON.stringify(w,null,2))}catch{}};if(!e)return i.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:i.jsxs("div",{className:"text-center",children:[i.jsx("svg",{className:"w-16 h-16 mx-auto mb-4 text-gray-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),i.jsx("p",{children:"Select a function from the tree to get started"})]})});const E={query:"text-blue-400 border-blue-400",mutation:"text-orange-400 border-orange-400",action:"text-purple-400 border-purple-400"};return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-convex-border",children:[i.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i.jsx("span",{className:`text-[10px] font-mono font-semibold px-1.5 py-0.5 border rounded flex-shrink-0 ${E[e.type]}`,children:e.type.charAt(0).toUpperCase()}),i.jsx("span",{className:"font-mono text-sm truncate",children:e.path}),n?i.jsx("span",{className:"flex-shrink-0 text-green-400 cursor-help",title:"Authenticated with JWT token",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})})}):i.jsx("span",{className:"flex-shrink-0 text-gray-500 cursor-help",title:"No authentication - Click key icon in header to add JWT",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})})]}),i.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[i.jsx("button",{onClick:k,className:"p-1.5 text-gray-400 hover:text-white hover:bg-convex-border rounded transition-colors",title:"Save to Collection",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 4H6a2 2 0 00-2 2v12a2 2 0 002 2h12a2 2 0 002-2V7.828a2 2 0 00-.586-1.414l-1.828-1.828A2 2 0 0016.172 4H16M8 4v4m0-4h4m0 0v4m0-4h4v4M8 8h8M8 12h8m-8 4h6"})})}),i.jsx("button",{onClick:p,disabled:r||!u,className:`px-3 py-1 rounded font-medium text-sm transition-colors flex items-center gap-1.5 min-w-[70px] justify-center ${r?"bg-gray-600 cursor-not-allowed":"bg-convex-accent hover:bg-convex-accent-hover"}`,children:r?i.jsxs("svg",{className:"animate-spin w-3.5 h-3.5",viewBox:"0 0 24 24",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),i.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):i.jsxs(i.Fragment,{children:[i.jsx("svg",{className:"w-3.5 h-3.5",fill:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{d:"M8 5v14l11-7z"})}),"Run"]})})]})]}),i.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[i.jsxs("div",{className:"flex-1 flex flex-col p-4",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("label",{className:"text-sm text-gray-400",children:"Arguments (JSON)"}),i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("button",{onClick:_,className:"text-xs text-gray-500 hover:text-white transition-colors",children:"Format"}),i.jsx("div",{className:"text-xs",children:u?i.jsx("span",{className:"text-green-600 dark:text-green-400",children:"✓ Valid JSON"}):i.jsx("span",{className:"text-red-600 dark:text-red-400",title:a||"",children:"✗ Invalid JSON"})})]})]}),i.jsx("textarea",{ref:c,value:t,onChange:w=>o(w.target.value),onKeyDown:w=>{w.key==="Enter"&&(w.metaKey||w.ctrlKey)&&p()},className:"flex-1 w-full bg-convex-darker border border-convex-border rounded-lg p-4 font-mono text-sm resize-none focus:outline-none focus:border-convex-accent",placeholder:"{}",spellCheck:!1}),i.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"Press ⌘+Enter to run"})]}),e&&e.args.length>0&&i.jsxs("div",{className:"w-64 border-l border-convex-border flex flex-col overflow-hidden",children:[i.jsx("div",{className:"p-3 border-b border-convex-border",children:i.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Arguments"})}),i.jsx("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:e.args.map(w=>{const F=(()=>{try{return JSON.parse(t)}catch{return{}}})(),P=w.name in F,ee=()=>{try{const z=JSON.parse(t);P?delete z[w.name]:w.name==="paginationOpts"?z[w.name]={cursor:null,numItems:10}:w.type.includes("[]")||w.type.toLowerCase().includes("array")?z[w.name]=[]:w.type.toLowerCase().includes("number")?z[w.name]=0:w.type.toLowerCase().includes("boolean")?z[w.name]=!1:z[w.name]="",o(JSON.stringify(z,null,2))}catch{}};return i.jsx("div",{className:`p-2 rounded border ${P?"bg-convex-accent/10 border-convex-accent/50":"bg-convex-darker border-convex-border"} transition-colors`,children:i.jsxs("div",{className:"flex items-start justify-between gap-2",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-sm font-mono text-gray-300 truncate",children:w.name}),!w.optional&&i.jsx("span",{className:"text-xs text-red-400",children:"*"})]}),i.jsx("div",{className:"text-xs text-gray-500 mt-0.5 truncate",children:w.type}),w.description&&i.jsx("div",{className:"text-xs text-gray-400 mt-1",title:w.description,children:w.description.length>60?w.description.substring(0,60)+"...":w.description}),w.enumValues&&w.enumValues.length>0&&i.jsx("div",{className:"flex flex-wrap gap-1 mt-1.5",children:w.enumValues.map(z=>i.jsx("span",{onClick:()=>{try{const A=JSON.parse(t);A[w.name]=z,o(JSON.stringify(A,null,2))}catch{}},className:"text-[10px] px-1.5 py-0.5 rounded bg-convex-border text-gray-300 hover:bg-convex-accent/30 cursor-pointer transition-colors",title:`Click to set ${w.name} to '${z}'`,children:z},z))})]}),i.jsx("button",{onClick:ee,disabled:!w.optional&&P,className:`flex-shrink-0 p-1 rounded transition-colors ${!w.optional&&P?"text-gray-600 cursor-not-allowed":P?"text-red-400 hover:text-red-300 hover:bg-red-400/10":"text-green-400 hover:text-green-300 hover:bg-green-400/10"}`,title:!w.optional&&P?"Required argument":P?"Remove from request":"Add to request",children:P?i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})}):i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})})]})},w.name)})})]})]}),h&&i.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:i.jsxs("div",{className:"bg-convex-dark border border-convex-border rounded-lg p-6 w-96",children:[i.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Save to Collection"}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Name"}),i.jsx("input",{type:"text",value:y,onChange:w=>x(w.target.value),placeholder:"e.g., Get all products",className:"w-full bg-convex-darker border border-convex-border rounded px-3 py-2 text-sm focus:outline-none focus:border-convex-accent"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"block text-sm text-gray-400 mb-1",children:"Collection"}),d.length===0?i.jsx("p",{className:"text-sm text-gray-500",children:"No collections yet. Create one in the Collections sidebar."}):i.jsxs("select",{value:T,onChange:w=>f(w.target.value),className:"w-full bg-convex-darker border border-convex-border rounded px-3 py-2 text-sm focus:outline-none focus:border-convex-accent",children:[i.jsx("option",{value:"",children:"Select a collection"}),d.map(w=>i.jsx("option",{value:w.id,children:w.name},w.id))]})]})]}),i.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[i.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 text-sm text-gray-400 hover:text-white transition-colors",children:"Cancel"}),i.jsx("button",{onClick:N,disabled:!y||!T,className:"px-4 py-2 text-sm bg-convex-accent hover:bg-convex-accent-hover rounded disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:"Save"})]})]})})]})}function $p(){var v,g,h,m;const{response:e,isLoading:t,selectedFunction:n}=At(),[r,l]=O.useState("");if(!n)return null;if(t)return i.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",children:[i.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),i.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Executing..."]})});if(!e)return i.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:i.jsx("div",{className:"text-center",children:i.jsx("p",{children:"Response will appear here after running the function"})})});const o=y=>{try{return JSON.stringify(y,null,2)}catch{return String(y)}},s=y=>y.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g,x=>{let T="json-number";return/^"/.test(x)?/:$/.test(x)?T="json-key":T="json-string":/true|false/.test(x)?T="json-boolean":/null/.test(x)&&(T="json-null"),`<span class="${T}">${x}</span>`}),u=(y,x)=>{if(!x.trim())return y;try{const T=x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),f=new RegExp(`(${T})(?![^<]*>)`,"gi");return y.replace(f,'<mark class="bg-yellow-300 text-black rounded px-0.5">$1</mark>')}catch{return y}},a=async()=>{try{await navigator.clipboard.writeText(o(e.success?e.result:e.error))}catch(y){console.error("Failed to copy:",y)}},d=!e.success||e.success&&e.result&&typeof e.result=="object"&&((v=e.result)==null?void 0:v.status)==="error";return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 border-b border-convex-border",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[d?i.jsxs("span",{className:"flex items-center gap-1.5 text-red-400 text-sm",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Error"]}):i.jsxs("span",{className:"flex items-center gap-1.5 text-green-400 text-sm",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Success"]}),e.duration!==void 0&&i.jsxs("span",{className:"text-sm text-gray-500",children:[e.duration,"ms"]}),i.jsx("span",{className:"text-sm text-gray-600",children:new Date(e.timestamp).toLocaleTimeString()})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"relative",children:[i.jsx("svg",{className:"absolute left-2 top-1/2 transform -translate-y-1/2 w-3.5 h-3.5 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),i.jsx("input",{type:"text",placeholder:"Search...",value:r,onChange:y=>l(y.target.value),className:"w-40 bg-convex-darker border border-convex-border rounded-md pl-8 pr-2 py-1 text-xs focus:outline-none focus:border-convex-accent"})]}),i.jsx("button",{onClick:a,className:"p-2 text-gray-400 hover:text-white hover:bg-convex-border rounded transition-colors",title:"Copy to clipboard",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]}),i.jsx("div",{className:"flex-1 overflow-auto p-4",children:e.success?i.jsx("pre",{className:"font-mono text-sm whitespace-pre-wrap break-words",dangerouslySetInnerHTML:{__html:u(s(o(e.result)),r)}}):i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{className:"bg-red-900/20 border border-red-800 rounded-lg p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("svg",{className:"w-5 h-5 text-red-400 flex-shrink-0 mt-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),i.jsxs("div",{children:[i.jsx("p",{className:"text-red-700 dark:text-red-300 font-medium",children:(g=e.error)==null?void 0:g.message}),((h=e.error)==null?void 0:h.code)&&i.jsxs("p",{className:"text-red-600 dark:text-red-400 text-sm mt-1",children:["Code: ",e.error.code]})]})]})}),((m=e.error)==null?void 0:m.data)!==void 0&&e.error.data!==null&&i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-400 mb-2",children:"Error Details:"}),i.jsx("pre",{className:"font-mono text-sm whitespace-pre-wrap break-words bg-convex-darker border border-convex-border rounded-lg p-4",dangerouslySetInnerHTML:{__html:s(o(e.error.data))}})]})]})})]})}function Bp({onClose:e}){const{collections:t,history:n,createCollection:r,deleteCollection:l,renameCollection:o,deleteRequest:s,renameRequest:u,deleteHistoryEntry:a,saveRequest:d,clearHistory:v,exportData:g,importData:h}=Ml(),{setSelectedFunction:m,setArgs:y,setResponse:x}=At(),[T,f]=O.useState("collections"),[c,p]=O.useState(new Set),[k,N]=O.useState(""),[_,E]=O.useState(!1),[w,F]=O.useState(null),[P,ee]=O.useState(null),[z,A]=O.useState(""),[Se,kn]=O.useState(""),[Ke,Sn]=O.useState(""),C=O.useRef(null),M=j=>{p(D=>{const $=new Set(D);return $.has(j)?$.delete(j):$.add(j),$})},R=()=>{if(!k.trim())return;const j=r(k.trim());p(D=>new Set(D).add(j)),N(""),E(!1)},Q=j=>{z.trim()&&(o(j,z.trim()),F(null),A(""))},Z=()=>{!P||!z.trim()||(u(P.collectionId,P.requestId,z.trim()),ee(null),A(""))},$t=j=>{const D={name:j.functionPath.split(":").pop()||j.functionPath,path:j.functionPath,type:j.functionType,args:[]};At.getState().loadFromSaved(D,j.args,j.lastResponse||null)},Ye=j=>{const D={name:j.functionPath.split(":").pop()||j.functionPath,path:j.functionPath,type:j.functionType,args:[]};m(D),x(j.response||null);try{const $=JSON.parse(j.args);y(JSON.stringify($,null,2))}catch{y(j.args)}},jn=j=>{var ue;let D=(ue=t[0])==null?void 0:ue.id;D||(D=r("Saved from History"));const $=`${j.functionPath.split(":").pop()} - ${new Date(j.timestamp).toLocaleString()}`;d(D,$,{functionPath:j.functionPath,functionType:j.functionType,args:j.args},j.response)},Ge=()=>{const j=g(),D=new Blob([JSON.stringify(j,null,2)],{type:"application/json"}),$=URL.createObjectURL(D),ue=document.createElement("a");ue.href=$,ue.download=`convex-devtools-export-${new Date().toISOString().split("T")[0]}.json`,ue.click(),URL.revokeObjectURL($)},Bt=j=>{var ue;const D=(ue=j.target.files)==null?void 0:ue[0];if(!D)return;const $=new FileReader;$.onload=hr=>{var Nn;try{const Ol=JSON.parse((Nn=hr.target)==null?void 0:Nn.result);h(Ol)}catch(Ol){console.error("Failed to import:",Ol),alert("Invalid export file")}},$.readAsText(D),C.current&&(C.current.value="")},qs=O.useMemo(()=>{if(!Se.trim())return{collections:t};const j=Se.toLowerCase();return{collections:t.map($=>{const ue=$.requests.filter(Nn=>Nn.name.toLowerCase().includes(j)||Nn.functionPath.toLowerCase().includes(j)),hr=$.name.toLowerCase().includes(j);return ue.length>0||hr?{...$,requests:hr?$.requests:ue}:null}).filter(Boolean)}},[t,Se]),Rl=O.useMemo(()=>{if(!Ke.trim())return n;const j=Ke.toLowerCase();return n.filter(D=>D.functionPath.toLowerCase().includes(j))},[n,Ke]),bs={query:"text-blue-400",mutation:"text-orange-400",action:"text-purple-400"},ei=({className:j="w-3 h-3"})=>i.jsx("svg",{className:j,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),ti=({className:j="w-3 h-3"})=>i.jsx("svg",{className:j,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"})});return i.jsxs("div",{className:"w-72 border-r border-convex-border flex flex-col bg-convex-darker overflow-hidden",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 h-14 border-b border-convex-border flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("button",{onClick:()=>f("collections"),className:`px-3 py-1 text-sm font-medium rounded transition-colors ${T==="collections"?"bg-gray-300 dark:bg-convex-border text-gray-900 dark:text-white":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-convex-border/50"}`,children:"Collections"}),i.jsx("button",{onClick:()=>f("history"),className:`px-3 py-1 text-sm font-medium rounded transition-colors ${T==="history"?"bg-gray-300 dark:bg-convex-border text-gray-900 dark:text-white":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-convex-border/50"}`,children:"History"})]}),i.jsxs("div",{className:"flex items-center",children:[i.jsx("button",{onClick:Ge,className:"p-1.5 text-gray-400 hover:text-white hover:bg-convex-border rounded transition-colors",title:"Export Collections",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})})}),i.jsx("button",{onClick:()=>{var j;return(j=C.current)==null?void 0:j.click()},className:"p-1.5 text-gray-400 hover:text-white hover:bg-convex-border rounded transition-colors",title:"Import Collections",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})})}),i.jsx("input",{ref:C,type:"file",accept:".json",onChange:Bt,className:"hidden"}),i.jsx("button",{onClick:e,className:"p-1.5 text-gray-400 hover:text-white hover:bg-convex-border rounded transition-colors",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})]}),i.jsx("div",{className:"px-3 h-14 border-b border-convex-border flex-shrink-0 flex items-center",children:i.jsxs("div",{className:"relative w-full",children:[i.jsx("svg",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),i.jsx("input",{type:"text",value:T==="collections"?Se:Ke,onChange:j=>T==="collections"?kn(j.target.value):Sn(j.target.value),placeholder:T==="collections"?"Search collections...":"Search history...",className:"w-full bg-convex-darker border border-convex-border rounded-lg pl-10 pr-3 py-1.5 text-sm focus:outline-none focus:border-convex-accent"})]})}),i.jsx("div",{className:"flex-1 overflow-auto",children:T==="collections"?i.jsxs("div",{className:"py-1",children:[_?i.jsxs("div",{className:"px-2 py-1.5 flex items-center gap-2",children:[i.jsx("input",{type:"text",value:k,onChange:j=>N(j.target.value),onKeyDown:j=>{j.key==="Enter"&&R(),j.key==="Escape"&&(E(!1),N(""))},placeholder:"Collection name",autoFocus:!0,className:"flex-1 bg-convex-dark border border-convex-border rounded px-2 py-1 text-sm focus:outline-none focus:border-convex-accent"}),i.jsx("button",{onClick:R,className:"p-1 text-green-400 hover:text-green-300",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),i.jsx("button",{onClick:()=>{E(!1),N("")},className:"p-1 text-gray-400 hover:text-white",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):i.jsxs("button",{onClick:()=>E(!0),className:"w-full px-3 py-1.5 flex items-center gap-2 text-sm text-gray-400 hover:text-white hover:bg-convex-border transition-colors",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"New Collection"]}),qs.collections.map(j=>i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center group",children:w===j.id?i.jsxs("div",{className:"flex-1 px-2 py-1 flex items-center gap-2",children:[i.jsx("input",{type:"text",value:z,onChange:D=>A(D.target.value),onKeyDown:D=>{D.key==="Enter"&&Q(j.id),D.key==="Escape"&&(F(null),A(""))},autoFocus:!0,className:"flex-1 bg-convex-dark border border-convex-border rounded px-2 py-1 text-sm focus:outline-none focus:border-convex-accent"}),i.jsx("button",{onClick:()=>Q(j.id),className:"p-1 text-green-400 hover:text-green-300",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>M(j.id),className:"flex-1 px-2 py-1.5 flex items-center gap-2 text-sm text-left hover:bg-convex-border rounded mx-1 transition-colors overflow-hidden",children:[i.jsx("svg",{className:`w-3.5 h-3.5 text-gray-500 transition-transform flex-shrink-0 ${c.has(j.id)?"rotate-90":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),i.jsx("svg",{className:"w-4 h-4 text-convex-accent flex-shrink-0",fill:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"})}),i.jsx("span",{className:"text-gray-300 truncate",children:j.name}),i.jsxs("span",{className:"text-xs text-gray-600 flex-shrink-0",children:["(",j.requests.length,")"]})]}),i.jsxs("div",{className:"pr-1 opacity-0 group-hover:opacity-100 flex items-center flex-shrink-0",children:[i.jsx("button",{onClick:()=>{F(j.id),A(j.name)},className:"p-1 text-gray-500 hover:text-white",title:"Rename",children:i.jsx(ti,{})}),i.jsx("button",{onClick:()=>l(j.id),className:"p-1 text-gray-500 hover:text-red-400",title:"Delete",children:i.jsx(ei,{})})]})]})}),c.has(j.id)&&i.jsx("div",{className:"ml-5",children:j.requests.length===0?i.jsx("p",{className:"px-2 py-1 text-xs text-gray-600",children:"No saved requests"}):j.requests.map(D=>i.jsx("div",{className:"flex items-center group hover:bg-convex-border rounded mx-1 transition-colors",children:(P==null?void 0:P.collectionId)===j.id&&(P==null?void 0:P.requestId)===D.id?i.jsxs("div",{className:"flex-1 px-2 py-1 flex items-center gap-2",children:[i.jsx("input",{type:"text",value:z,onChange:$=>A($.target.value),onKeyDown:$=>{$.key==="Enter"&&Z(),$.key==="Escape"&&(ee(null),A(""))},autoFocus:!0,className:"flex-1 bg-convex-dark border border-convex-border rounded px-2 py-1 text-sm focus:outline-none focus:border-convex-accent"}),i.jsx("button",{onClick:()=>Z(),className:"p-1 text-green-400 hover:text-green-300",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})})]}):i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>$t(D),className:"flex-1 px-2 py-1 flex items-center gap-2 text-sm text-left overflow-hidden",children:[i.jsx("span",{className:`text-xs font-mono flex-shrink-0 ${bs[D.functionType]}`,children:D.functionType.charAt(0).toUpperCase()}),i.jsx("span",{className:"text-gray-400 truncate",children:D.name})]}),i.jsxs("div",{className:"pr-1 opacity-0 group-hover:opacity-100 flex items-center flex-shrink-0",children:[i.jsx("button",{onClick:()=>{ee({collectionId:j.id,requestId:D.id}),A(D.name)},className:"p-1 text-gray-500 hover:text-white",title:"Rename",children:i.jsx(ti,{})}),i.jsx("button",{onClick:()=>s(j.id,D.id),className:"p-1 text-gray-500 hover:text-red-400",title:"Delete",children:i.jsx(ei,{})})]})]})},D.id))})]},j.id)),qs.collections.length===0&&!_&&i.jsx("p",{className:"px-4 py-8 text-center text-sm text-gray-600",children:Se?i.jsxs(i.Fragment,{children:['No results found for "',Se,'"']}):i.jsxs(i.Fragment,{children:["No collections yet.",i.jsx("br",{}),"Create one to save your requests."]})})]}):i.jsxs("div",{className:"py-2",children:[Rl.length>0&&i.jsxs("button",{onClick:v,className:"w-full px-3 py-1.5 flex items-center gap-2 text-sm text-gray-400 hover:text-red-400 hover:bg-convex-border transition-colors",children:[i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})}),"Clear History"]}),Rl.map(j=>{var $;const D=!j.response.success||j.response.success&&j.response.result&&typeof j.response.result=="object"&&(($=j.response.result)==null?void 0:$.status)==="error";return i.jsxs("button",{onClick:()=>Ye(j),className:"w-full px-3 py-2 hover:bg-convex-border transition-colors text-left",children:[i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx("span",{className:`text-xs font-mono font-semibold px-1.5 py-0.5 rounded flex-shrink-0 ${bs[j.functionType]} ${j.functionType==="query"?"bg-blue-900/30":j.functionType==="mutation"?"bg-orange-900/30":"bg-purple-900/30"}`,children:j.functionType.charAt(0).toUpperCase()}),i.jsx("span",{className:"text-gray-300 font-mono text-sm break-all",children:j.functionPath})]}),i.jsxs("div",{className:"flex items-center justify-between mt-1.5 pl-6",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[i.jsx("span",{children:new Date(j.timestamp).toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}),D?i.jsx("svg",{className:"w-4 h-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})}):i.jsx("svg",{className:"w-4 h-4 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})})]}),i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("span",{onClick:ue=>{ue.stopPropagation(),jn(j)},className:"p-1 text-gray-500 hover:text-blue-500 dark:hover:text-convex-accent rounded hover:bg-gray-200 dark:hover:bg-convex-border cursor-pointer",title:"Save to collection",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7H5a2 2 0 00-2 2v9a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-3m-1 4l-3 3m0 0l-3-3m3 3V4"})})}),i.jsx("span",{onClick:ue=>{ue.stopPropagation(),a(j.id)},className:"p-1 text-gray-500 hover:text-red-500 dark:hover:text-red-400 rounded hover:bg-gray-200 dark:hover:bg-convex-border cursor-pointer",title:"Delete",children:i.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})})})]})]})]},j.id)}),Rl.length===0&&n.length>0&&i.jsxs("p",{className:"px-4 py-8 text-center text-sm text-gray-600",children:['No results found for "',Ke,'"']}),n.length===0&&i.jsxs("p",{className:"px-4 py-8 text-center text-sm text-gray-600",children:["No history yet.",i.jsx("br",{}),"Run some functions to see them here."]})]})})]})}function Vp({onClose:e}){const{jwtToken:t,setJwtToken:n}=At(),{setSavedToken:r}=Ml(),[l,o]=O.useState(t),[s,u]=O.useState(null),[a,d]=O.useState(null),v=x=>{if(!x){u(null),d(null);return}try{const T=x.split(".");if(T.length!==3){d("Invalid JWT format (should have 3 parts separated by dots)"),u(null);return}const f=JSON.parse(atob(T[1]));u(f),d(null)}catch{d("Failed to decode JWT"),u(null)}},g=x=>{o(x),v(x)},h=()=>{const x=l.trim();n(x),r(x)},m=()=>{o(""),n(""),r(""),u(null),d(null)},y=s!=null&&s.exp?s.exp*1e3<Date.now():!1;return i.jsxs("div",{className:"w-96 border-l border-convex-border flex flex-col bg-convex-darker",children:[i.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-convex-border",children:[i.jsxs("h2",{className:"font-semibold flex items-center gap-2",children:[i.jsx("svg",{className:"w-5 h-5 text-green-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})}),"Authentication"]}),i.jsx("button",{onClick:e,className:"p-1 text-gray-400 hover:text-white transition-colors",children:i.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),i.jsxs("div",{className:"p-4 bg-blue-900/20 border-b border-convex-border",children:[i.jsx("p",{className:"text-xs text-blue-300",children:"Paste a JWT token from your auth provider (Clerk, Auth0, etc.) to authenticate requests as that user."}),i.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:[i.jsx("strong",{children:"How to get your token (Clerk):"}),i.jsx("br",{}),"• Open your app in the browser console",i.jsx("br",{}),"• Run:"," ",i.jsxs("code",{className:"bg-convex-dark px-1 rounded",children:["await window.Clerk?.session?.getToken(",'{ template: "convex" }',")"]}),i.jsx("br",{}),"• Paste the returned JWT here"]}),i.jsxs("p",{className:"text-xs text-gray-400 mt-2",children:["For Convex Auth: use the"," ",i.jsx("code",{className:"bg-convex-dark px-1 rounded",children:"__convexAuthJWT_*"})," ","value from cookies/localStorage."]})]}),i.jsxs("div",{className:"flex-1 p-4 space-y-4 overflow-auto",children:[i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs text-gray-400 mb-2",children:"JWT Token"}),i.jsx("textarea",{value:l,onChange:x=>g(x.target.value),placeholder:"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",rows:6,className:"w-full bg-convex-dark border border-convex-border rounded px-3 py-2 text-sm font-mono focus:outline-none focus:border-convex-accent resize-none",spellCheck:!1})]}),l&&i.jsx("div",{className:`p-3 rounded border ${a?"bg-red-900/20 border-red-800":y?"bg-yellow-900/20 border-yellow-800":"bg-green-900/20 border-green-800"}`,children:a?i.jsx("p",{className:"text-xs text-red-400",children:a}):y?i.jsx("p",{className:"text-xs text-yellow-400",children:"⚠️ Token is expired! Get a fresh one from your app."}):i.jsx("p",{className:"text-xs text-green-400",children:"✓ Valid JWT token"})}),s&&i.jsxs("div",{children:[i.jsx("label",{className:"block text-xs text-gray-400 mb-2",children:"Decoded Payload"}),i.jsx("div",{className:"bg-convex-dark border border-convex-border rounded p-3 max-h-48 overflow-auto",children:i.jsx("pre",{className:"text-xs text-gray-300 font-mono whitespace-pre-wrap",children:JSON.stringify(s,null,2)})}),s.sub?i.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["Subject:"," ",i.jsx("span",{className:"text-gray-300",children:String(s.sub)})]}):null,s.exp?i.jsxs("p",{className:"text-xs text-gray-500",children:["Expires:"," ",i.jsx("span",{className:y?"text-red-400":"text-gray-300",children:new Date(s.exp*1e3).toLocaleString()})]}):null]}),i.jsxs("div",{className:"pt-4 border-t border-convex-border",children:[i.jsx("label",{className:"block text-xs text-gray-400 mb-2",children:"Current Auth Status"}),i.jsx("div",{className:`p-3 rounded ${t?"bg-green-900/20":"bg-gray-800"}`,children:t?i.jsxs("div",{className:"flex items-center gap-2 text-sm text-green-400",children:[i.jsx("span",{className:"w-2 h-2 bg-green-400 rounded-full"}),"Authenticated"]}):i.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-400",children:[i.jsx("span",{className:"w-2 h-2 bg-gray-500 rounded-full"}),"No authentication"]})})]})]}),i.jsxs("div",{className:"p-4 border-t border-convex-border space-y-2",children:[i.jsx("button",{onClick:h,disabled:!l||!!a,className:`w-full py-2 rounded text-sm font-medium transition-colors ${!l||a?"bg-gray-700 text-gray-500 cursor-not-allowed":"bg-green-600 hover:bg-green-700 text-white"}`,children:"Apply Token"}),i.jsx("button",{onClick:m,className:"w-full py-2 bg-convex-border hover:bg-gray-600 rounded text-sm transition-colors",children:"Clear (No Auth)"})]})]})}const Hp=Zs((e,t)=>({schema:null,isConnected:!1,error:null,ws:null,connect:()=>{const{ws:n}=t();if(n)return;const l=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`,o=new WebSocket(l);o.onopen=()=>{e({isConnected:!0,error:null})},o.onmessage=s=>{try{const u=JSON.parse(s.data);u.type==="schema"&&e({schema:u.data})}catch(u){console.error("Failed to parse WebSocket message:",u)}},o.onerror=()=>{e({error:"Connection error"})},o.onclose=()=>{e({isConnected:!1,ws:null}),setTimeout(()=>{t().connect()},2e3)},e({ws:o})},disconnect:()=>{const{ws:n}=t();n&&(n.close(),e({ws:null,isConnected:!1}))}}));function Qp(){const[e,t]=O.useState(!1),[n,r]=O.useState(!0),[l,o]=O.useState(""),[s,u]=O.useState(""),[a,d]=O.useState(()=>typeof window<"u"&&localStorage.getItem("theme")||"system"),{connect:v,isConnected:g,schema:h,error:m}=Hp(),{selectedFunction:y,setSelectedFunction:x,jwtToken:T,setJwtToken:f,setProjectName:c,recentTabs:p,removeFromRecentTabs:k}=At(),{loadFromStorage:N,loadSavedToken:_}=Ml(),[E,w]=O.useState(()=>typeof window<"u"?window.matchMedia("(prefers-color-scheme: dark)").matches:!0);O.useEffect(()=>{const z=window.matchMedia("(prefers-color-scheme: dark)"),A=Se=>{w(Se.matches)};return z.addEventListener("change",A),()=>z.removeEventListener("change",A)},[]);const F=a==="system"?E?"dark":"light":a;O.useEffect(()=>{v(),N();const z=_();z&&!T&&f(z),fetch("/api/health").then(A=>A.json()).then(A=>{A.convexUrl&&o(A.convexUrl),A.projectName&&(u(A.projectName),c(A.projectName))}).catch(()=>{})},[v,N,_,f,T]),O.useEffect(()=>{const z=()=>{document.visibilityState==="visible"&&(console.log("[DevTools] Tab visible, reloading persistence..."),N())},A=()=>{console.log("[DevTools] Window focused, reloading persistence..."),N()};return document.addEventListener("visibilitychange",z),window.addEventListener("focus",A),()=>{document.removeEventListener("visibilitychange",z),window.removeEventListener("focus",A)}},[N]),O.useEffect(()=>{F==="light"?document.documentElement.classList.add("light"):document.documentElement.classList.remove("light");try{localStorage.setItem("theme",a)}catch{}},[F,a]);const P=l?new URL(l).hostname.replace(".convex.cloud",""):"",ee=l!=null&&l.includes("convex.cloud")?"Development (Cloud)":"Development (Local)";return i.jsxs("div",{className:"h-screen flex flex-col bg-convex-dark text-white",children:[i.jsxs("header",{className:"h-14 border-b border-convex-border flex items-center justify-between px-4 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 bg-convex-accent rounded-lg flex items-center justify-center",children:i.jsx("span",{className:"text-white font-bold text-sm",children:"C"})}),i.jsx("h1",{className:"text-lg font-semibold",children:"Convex DevTools"}),i.jsx("span",{className:"text-xs px-2 py-0.5 bg-convex-border rounded text-gray-400",children:"v0.1.0"}),i.jsxs("span",{className:"ml-2 text-xs px-3 py-1 rounded-full border border-convex-border text-gray-300 bg-convex-darker flex items-center gap-2",children:[i.jsx("svg",{className:"w-4 h-4 text-green-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:i.jsx("circle",{cx:"12",cy:"12",r:"10",strokeWidth:"2"})}),s?`${s} • `:"",ee," • ",P||"loading..."]})]}),i.jsxs("div",{className:"flex items-center gap-4",children:[g?i.jsxs("span",{className:"flex items-center gap-2 text-sm text-green-400",children:[i.jsx("span",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),"Connected"]}):m?i.jsxs("span",{className:"flex items-center gap-2 text-sm text-red-400",children:[i.jsx("span",{className:"w-2 h-2 bg-red-400 rounded-full"}),m]}):i.jsxs("span",{className:"flex items-center gap-2 text-sm text-yellow-400",children:[i.jsx("span",{className:"w-2 h-2 bg-yellow-400 rounded-full animate-pulse"}),"Connecting..."]}),i.jsx("button",{onClick:()=>{d(a==="system"?"light":a==="light"?"dark":"system")},className:"p-2 rounded hover:bg-convex-border transition-colors text-gray-400",title:`Theme: ${a} (click to change)`,children:a==="system"?i.jsxs("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[i.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",strokeWidth:2}),i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 21h8M12 17v4"})]}):F==="light"?i.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})}):i.jsxs("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[i.jsx("circle",{cx:"12",cy:"12",r:"5",strokeWidth:2}),i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]})}),i.jsx("button",{onClick:()=>r(!n),className:`p-2 rounded hover:bg-convex-border transition-colors ${n?"text-convex-accent":"text-gray-400"}`,title:"Toggle Collections",children:i.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"})})}),i.jsx("button",{onClick:()=>t(!e),className:`p-2 rounded hover:bg-convex-border transition-colors ${e?"text-convex-accent":T?"text-green-400":"text-gray-400"}`,title:T?"Authenticated (click to manage)":"Authentication",children:i.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})})})]})]}),i.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[n&&i.jsx(Bp,{onClose:()=>r(!1)}),i.jsx("div",{className:"w-72 border-r border-convex-border flex-shrink-0 overflow-auto",children:i.jsx(cp,{schema:h,selectedFunction:y,onSelectFunction:x})}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[p.length>0&&i.jsx("div",{className:"flex items-center gap-1 px-2 py-1 bg-convex-darker border-b border-convex-border overflow-x-auto flex-shrink-0",children:p.map(z=>{const A=(y==null?void 0:y.path)===z.path,Se=z.type==="query"?"text-blue-400":z.type==="mutation"?"text-orange-400":"text-purple-400";return i.jsxs("div",{className:`flex items-center gap-1 pl-2 pr-1 py-0.5 rounded text-xs font-mono transition-colors ${A?"bg-gray-300 dark:bg-convex-border text-gray-900 dark:text-white":"hover:bg-gray-200 dark:hover:bg-convex-border/50 text-gray-600 dark:text-gray-400"}`,title:z.path,children:[i.jsxs("button",{onClick:()=>x(z),className:"flex items-center gap-1 truncate max-w-[150px]",children:[i.jsx("span",{className:`font-semibold flex-shrink-0 ${Se}`,children:z.type.charAt(0).toUpperCase()}),i.jsx("span",{className:"truncate",children:z.name})]}),i.jsx("button",{onClick:kn=>{kn.stopPropagation(),k(z.path)},className:"p-0.5 rounded hover:bg-convex-dark text-gray-500 hover:text-white transition-colors flex-shrink-0",title:"Close tab",children:i.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]},z.path)})}),i.jsx("div",{className:"h-1/2 border-b border-convex-border overflow-auto",children:i.jsx(Wp,{})}),i.jsx("div",{className:"h-1/2 overflow-auto",children:i.jsx($p,{})})]}),e&&i.jsx(Vp,{onClose:()=>t(!1)})]})]})}ao.createRoot(document.getElementById("root")).render(i.jsx(Lu.StrictMode,{children:i.jsx(Qp,{})}));