projax 3.3.37 → 3.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/__tests__/database.test.js +14 -22
- package/dist/core/__tests__/detector.test.js +6 -1
- package/dist/core/__tests__/index.test.d.ts +1 -0
- package/dist/core/__tests__/index.test.js +468 -0
- package/dist/core/__tests__/scanner.test.d.ts +1 -0
- package/dist/core/__tests__/scanner.test.js +405 -0
- package/dist/electron/core/__tests__/database.test.js +14 -22
- package/dist/electron/core/__tests__/detector.test.js +6 -1
- package/dist/electron/core/__tests__/index.test.d.ts +1 -0
- package/dist/electron/core/__tests__/index.test.js +468 -0
- package/dist/electron/core/__tests__/scanner.test.d.ts +1 -0
- package/dist/electron/core/__tests__/scanner.test.js +405 -0
- package/dist/electron/renderer/assets/index-Dk0EQt0u.css +1 -0
- package/dist/electron/renderer/assets/index-JXrtTB1F.js +63 -0
- package/dist/electron/renderer/index.html +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)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(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ja(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var qa={exports:{}},Ai={},eu={exports:{}},U={};/**
|
|
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 Pr=Symbol.for("react.element"),Td=Symbol.for("react.portal"),Ld=Symbol.for("react.fragment"),Md=Symbol.for("react.strict_mode"),Od=Symbol.for("react.profiler"),Id=Symbol.for("react.provider"),Ad=Symbol.for("react.context"),Fd=Symbol.for("react.forward_ref"),Wd=Symbol.for("react.suspense"),Ud=Symbol.for("react.memo"),Hd=Symbol.for("react.lazy"),Il=Symbol.iterator;function Bd(e){return e===null||typeof e!="object"?null:(e=Il&&e[Il]||e["@@iterator"],typeof e=="function"?e:null)}var tu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nu=Object.assign,ru={};function An(e,t,n){this.props=e,this.context=t,this.refs=ru,this.updater=n||tu}An.prototype.isReactComponent={};An.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")};An.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function iu(){}iu.prototype=An.prototype;function js(e,t,n){this.props=e,this.context=t,this.refs=ru,this.updater=n||tu}var Ds=js.prototype=new iu;Ds.constructor=js;nu(Ds,An.prototype);Ds.isPureReactComponent=!0;var Al=Array.isArray,ou=Object.prototype.hasOwnProperty,Rs={current:null},su={key:!0,ref:!0,__self:!0,__source:!0};function lu(e,t,n){var r,i={},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)ou.call(t,r)&&!su.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Pr,type:e,key:o,ref:s,props:i,_owner:Rs.current}}function $d(e,t){return{$$typeof:Pr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ts(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pr}function Vd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Fl=/\/+/g;function io(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Vd(""+e.key):t.toString(36)}function ti(e,t,n,r,i){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 Pr:case Td:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+io(s,0):r,Al(i)?(n="",e!=null&&(n=e.replace(Fl,"$&/")+"/"),ti(i,t,n,"",function(u){return u})):i!=null&&(Ts(i)&&(i=$d(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Fl,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Al(e))for(var l=0;l<e.length;l++){o=e[l];var a=r+io(o,l);s+=ti(o,t,n,a,i)}else if(a=Bd(e),typeof a=="function")for(e=a.call(e),l=0;!(o=e.next()).done;)o=o.value,a=r+io(o,l++),s+=ti(o,t,n,a,i);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 Lr(e,t,n){if(e==null)return e;var r=[],i=0;return ti(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Xd(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 je={current:null},ni={transition:null},Qd={ReactCurrentDispatcher:je,ReactCurrentBatchConfig:ni,ReactCurrentOwner:Rs};function au(){throw Error("act(...) is not supported in production builds of React.")}U.Children={map:Lr,forEach:function(e,t,n){Lr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lr(e,function(){t++}),t},toArray:function(e){return Lr(e,function(t){return t})||[]},only:function(e){if(!Ts(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=An;U.Fragment=Ld;U.Profiler=Od;U.PureComponent=js;U.StrictMode=Md;U.Suspense=Wd;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qd;U.act=au;U.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=nu({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Rs.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)ou.call(t,a)&&!su.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Pr,type:e.type,key:i,ref:o,props:r,_owner:s}};U.createContext=function(e){return e={$$typeof:Ad,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Id,_context:e},e.Consumer=e};U.createElement=lu;U.createFactory=function(e){var t=lu.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Fd,render:e}};U.isValidElement=Ts;U.lazy=function(e){return{$$typeof:Hd,_payload:{_status:-1,_result:e},_init:Xd}};U.memo=function(e,t){return{$$typeof:Ud,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=ni.transition;ni.transition={};try{e()}finally{ni.transition=t}};U.unstable_act=au;U.useCallback=function(e,t){return je.current.useCallback(e,t)};U.useContext=function(e){return je.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return je.current.useDeferredValue(e)};U.useEffect=function(e,t){return je.current.useEffect(e,t)};U.useId=function(){return je.current.useId()};U.useImperativeHandle=function(e,t,n){return je.current.useImperativeHandle(e,t,n)};U.useInsertionEffect=function(e,t){return je.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return je.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return je.current.useMemo(e,t)};U.useReducer=function(e,t,n){return je.current.useReducer(e,t,n)};U.useRef=function(e){return je.current.useRef(e)};U.useState=function(e){return je.current.useState(e)};U.useSyncExternalStore=function(e,t,n){return je.current.useSyncExternalStore(e,t,n)};U.useTransition=function(){return je.current.useTransition()};U.version="18.3.1";eu.exports=U;var z=eu.exports;const Ls=Ja(z);/**
|
|
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 Yd=z,Kd=Symbol.for("react.element"),Gd=Symbol.for("react.fragment"),bd=Object.prototype.hasOwnProperty,Zd=Yd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Jd={key:!0,ref:!0,__self:!0,__source:!0};function uu(e,t,n){var r,i={},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)bd.call(t,r)&&!Jd.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Kd,type:e,key:o,ref:s,props:i,_owner:Zd.current}}Ai.Fragment=Gd;Ai.jsx=uu;Ai.jsxs=uu;qa.exports=Ai;var f=qa.exports,Oo={},cu={exports:{}},$e={},du={exports:{}},fu={};/**
|
|
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(_,I){var j=_.length;_.push(I);e:for(;0<j;){var L=j-1>>>1,M=_[L];if(0<i(M,I))_[L]=I,_[j]=M,j=L;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var I=_[0],j=_.pop();if(j!==I){_[0]=j;e:for(var L=0,M=_.length,B=M>>>1;L<B;){var W=2*(L+1)-1,te=_[W],ie=W+1,Pe=_[ie];if(0>i(te,j))ie<M&&0>i(Pe,te)?(_[L]=Pe,_[ie]=j,L=ie):(_[L]=te,_[W]=j,L=W);else if(ie<M&&0>i(Pe,j))_[L]=Pe,_[ie]=j,L=ie;else break e}}return I}function i(_,I){var j=_.sortIndex-I.sortIndex;return j!==0?j:_.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],g=1,h=null,m=3,S=!1,x=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,p=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 d(_){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=_)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function v(_){if(y=!1,d(_),!x)if(n(a)!==null)x=!0,Z(w);else{var I=n(u);I!==null&&he(v,I.startTime-_)}}function w(_,I){x=!1,y&&(y=!1,p(C),C=-1),S=!0;var j=m;try{for(d(I),h=n(a);h!==null&&(!(h.expirationTime>I)||_&&!A());){var L=h.callback;if(typeof L=="function"){h.callback=null,m=h.priorityLevel;var M=L(h.expirationTime<=I);I=e.unstable_now(),typeof M=="function"?h.callback=M:h===n(a)&&r(a),d(I)}else r(a);h=n(a)}if(h!==null)var B=!0;else{var W=n(u);W!==null&&he(v,W.startTime-I),B=!1}return B}finally{h=null,m=j,S=!1}}var N=!1,k=null,C=-1,O=5,R=-1;function A(){return!(e.unstable_now()-R<O)}function H(){if(k!==null){var _=e.unstable_now();R=_;var I=!0;try{I=k(!0,_)}finally{I?V():(N=!1,k=null)}}else N=!1}var V;if(typeof c=="function")V=function(){c(H)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,ye=pe.port2;pe.port1.onmessage=H,V=function(){ye.postMessage(null)}}else V=function(){T(H,0)};function Z(_){k=_,N||(N=!0,V())}function he(_,I){C=T(function(){_(e.unstable_now())},I)}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(_){_.callback=null},e.unstable_continueExecution=function(){x||S||(x=!0,Z(w))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var I=3;break;default:I=m}var j=m;m=I;try{return _()}finally{m=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,I){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var j=m;m=_;try{return I()}finally{m=j}},e.unstable_scheduleCallback=function(_,I,j){var L=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?L+j:L):j=L,_){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=j+M,_={id:g++,callback:I,priorityLevel:_,startTime:j,expirationTime:M,sortIndex:-1},j>L?(_.sortIndex=j,t(u,_),n(a)===null&&_===n(u)&&(y?(p(C),C=-1):y=!0,he(v,j-L))):(_.sortIndex=M,t(a,_),x||S||(x=!0,Z(w))),_},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(_){var I=m;return function(){var j=m;m=I;try{return _.apply(this,arguments)}finally{m=j}}}})(fu);du.exports=fu;var qd=du.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 ef=z,Be=qd;function P(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 pu=new Set,ar={};function sn(e,t){Dn(e,t),Dn(e+"Capture",t)}function Dn(e,t){for(ar[e]=t,e=0;e<t.length;e++)pu.add(t[e])}var wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Io=Object.prototype.hasOwnProperty,tf=/^[: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]*$/,Wl={},Ul={};function nf(e){return Io.call(Ul,e)?!0:Io.call(Wl,e)?!1:tf.test(e)?Ul[e]=!0:(Wl[e]=!0,!1)}function rf(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 of(e,t,n,r){if(t===null||typeof t>"u"||rf(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 De(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new De(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){ve[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ms=/[\-:]([a-z])/g;function Os(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(Ms,Os);ve[t]=new De(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(Ms,Os);ve[t]=new De(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(Ms,Os);ve[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function Is(e,t,n,r){var i=ve.hasOwnProperty(t)?ve[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(of(t,n,i,r)&&(n=null),r||i===null?nf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nt=ef.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Mr=Symbol.for("react.element"),dn=Symbol.for("react.portal"),fn=Symbol.for("react.fragment"),As=Symbol.for("react.strict_mode"),Ao=Symbol.for("react.profiler"),hu=Symbol.for("react.provider"),mu=Symbol.for("react.context"),Fs=Symbol.for("react.forward_ref"),Fo=Symbol.for("react.suspense"),Wo=Symbol.for("react.suspense_list"),Ws=Symbol.for("react.memo"),_t=Symbol.for("react.lazy"),gu=Symbol.for("react.offscreen"),Hl=Symbol.iterator;function Un(e){return e===null||typeof e!="object"?null:(e=Hl&&e[Hl]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,oo;function Gn(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||""}return`
|
|
34
|
+
`+oo+e}var so=!1;function lo(e,t){if(!e||so)return"";so=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var a=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{so=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gn(e):""}function sf(e){switch(e.tag){case 5:return Gn(e.type);case 16:return Gn("Lazy");case 13:return Gn("Suspense");case 19:return Gn("SuspenseList");case 0:case 2:case 15:return e=lo(e.type,!1),e;case 11:return e=lo(e.type.render,!1),e;case 1:return e=lo(e.type,!0),e;default:return""}}function Uo(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 fn:return"Fragment";case dn:return"Portal";case Ao:return"Profiler";case As:return"StrictMode";case Fo:return"Suspense";case Wo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case mu:return(e.displayName||"Context")+".Consumer";case hu:return(e._context.displayName||"Context")+".Provider";case Fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ws:return t=e.displayName||null,t!==null?t:Uo(e.type)||"Memo";case _t:t=e._payload,e=e._init;try{return Uo(e(t))}catch{}}return null}function lf(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 Uo(t);case 8:return t===As?"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 Bt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function af(e){var t=vu(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.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 Or(e){e._valueTracker||(e._valueTracker=af(e))}function yu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pi(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 Ho(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bl(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bt(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 wu(e,t){t=t.checked,t!=null&&Is(e,"checked",t,!1)}function Bo(e,t){wu(e,t);var n=Bt(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")?$o(e,t.type,n):t.hasOwnProperty("defaultValue")&&$o(e,t.type,Bt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $l(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 $o(e,t,n){(t!=="number"||pi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function En(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Vo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vl(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(bn(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Bt(n)}}function Su(e,t){var n=Bt(t.value),r=Bt(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 Xl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ir,ku=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ir=Ir||document.createElement("div"),Ir.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ur(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qn={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},uf=["Webkit","ms","Moz","O"];Object.keys(qn).forEach(function(e){uf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qn[t]=qn[e]})});function Nu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qn.hasOwnProperty(e)&&qn[e]?(""+t).trim():t+"px"}function Eu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Nu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cf=ee({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 Qo(e,t){if(t){if(cf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Yo(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 Ko=null;function Us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Go=null,Pn=null,Cn=null;function Ql(e){if(e=_r(e)){if(typeof Go!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Bi(t),Go(e.stateNode,e.type,t))}}function Pu(e){Pn?Cn?Cn.push(e):Cn=[e]:Pn=e}function Cu(){if(Pn){var e=Pn,t=Cn;if(Cn=Pn=null,Ql(e),t)for(e=0;e<t.length;e++)Ql(t[e])}}function zu(e,t){return e(t)}function _u(){}var ao=!1;function ju(e,t,n){if(ao)return e(t,n);ao=!0;try{return zu(e,t,n)}finally{ao=!1,(Pn!==null||Cn!==null)&&(_u(),Cu())}}function cr(e,t){var n=e.stateNode;if(n===null)return null;var r=Bi(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(P(231,t,typeof n));return n}var bo=!1;if(wt)try{var Hn={};Object.defineProperty(Hn,"passive",{get:function(){bo=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{bo=!1}function df(e,t,n,r,i,o,s,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(g){this.onError(g)}}var er=!1,hi=null,mi=!1,Zo=null,ff={onError:function(e){er=!0,hi=e}};function pf(e,t,n,r,i,o,s,l,a){er=!1,hi=null,df.apply(ff,arguments)}function hf(e,t,n,r,i,o,s,l,a){if(pf.apply(this,arguments),er){if(er){var u=hi;er=!1,hi=null}else throw Error(P(198));mi||(mi=!0,Zo=u)}}function ln(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 Du(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 Yl(e){if(ln(e)!==e)throw Error(P(188))}function mf(e){var t=e.alternate;if(!t){if(t=ln(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Yl(i),e;if(o===r)return Yl(i),t;o=o.sibling}throw Error(P(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Ru(e){return e=mf(e),e!==null?Tu(e):null}function Tu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Tu(e);if(t!==null)return t;e=e.sibling}return null}var Lu=Be.unstable_scheduleCallback,Kl=Be.unstable_cancelCallback,gf=Be.unstable_shouldYield,vf=Be.unstable_requestPaint,oe=Be.unstable_now,yf=Be.unstable_getCurrentPriorityLevel,Hs=Be.unstable_ImmediatePriority,Mu=Be.unstable_UserBlockingPriority,gi=Be.unstable_NormalPriority,wf=Be.unstable_LowPriority,Ou=Be.unstable_IdlePriority,Fi=null,ct=null;function Sf(e){if(ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Fi,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:Nf,xf=Math.log,kf=Math.LN2;function Nf(e){return e>>>=0,e===0?32:31-(xf(e)/kf|0)|0}var Ar=64,Fr=4194304;function Zn(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 vi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Zn(l):(o&=s,o!==0&&(r=Zn(o)))}else s=n&~i,s!==0?r=Zn(s):o!==0&&(r=Zn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===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-rt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ef(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 Pf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-rt(o),l=1<<s,a=i[s];a===-1?(!(l&n)||l&r)&&(i[s]=Ef(l,t)):a<=t&&(e.expiredLanes|=l),o&=~l}}function Jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Iu(){var e=Ar;return Ar<<=1,!(Ar&4194240)&&(Ar=64),e}function uo(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-rt(t),e[t]=n}function Cf(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 i=31-rt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Bs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var X=0;function Au(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fu,$s,Wu,Uu,Hu,qo=!1,Wr=[],Mt=null,Ot=null,It=null,dr=new Map,fr=new Map,Dt=[],zf="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 Gl(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fr.delete(t.pointerId)}}function Bn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=_r(t),t!==null&&$s(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _f(e,t,n,r,i){switch(t){case"focusin":return Mt=Bn(Mt,e,t,n,r,i),!0;case"dragenter":return Ot=Bn(Ot,e,t,n,r,i),!0;case"mouseover":return It=Bn(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return dr.set(o,Bn(dr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,fr.set(o,Bn(fr.get(o)||null,e,t,n,r,i)),!0}return!1}function Bu(e){var t=Gt(e.target);if(t!==null){var n=ln(t);if(n!==null){if(t=n.tag,t===13){if(t=Du(n),t!==null){e.blockedOn=t,Hu(e.priority,function(){Wu(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 ri(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=es(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ko=r,n.target.dispatchEvent(r),Ko=null}else return t=_r(n),t!==null&&$s(t),e.blockedOn=n,!1;t.shift()}return!0}function bl(e,t,n){ri(e)&&n.delete(t)}function jf(){qo=!1,Mt!==null&&ri(Mt)&&(Mt=null),Ot!==null&&ri(Ot)&&(Ot=null),It!==null&&ri(It)&&(It=null),dr.forEach(bl),fr.forEach(bl)}function $n(e,t){e.blockedOn===t&&(e.blockedOn=null,qo||(qo=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,jf)))}function pr(e){function t(i){return $n(i,e)}if(0<Wr.length){$n(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&$n(Mt,e),Ot!==null&&$n(Ot,e),It!==null&&$n(It,e),dr.forEach(t),fr.forEach(t),n=0;n<Dt.length;n++)r=Dt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&(n=Dt[0],n.blockedOn===null);)Bu(n),n.blockedOn===null&&Dt.shift()}var zn=Nt.ReactCurrentBatchConfig,yi=!0;function Df(e,t,n,r){var i=X,o=zn.transition;zn.transition=null;try{X=1,Vs(e,t,n,r)}finally{X=i,zn.transition=o}}function Rf(e,t,n,r){var i=X,o=zn.transition;zn.transition=null;try{X=4,Vs(e,t,n,r)}finally{X=i,zn.transition=o}}function Vs(e,t,n,r){if(yi){var i=es(e,t,n,r);if(i===null)So(e,t,r,wi,n),Gl(e,r);else if(_f(i,e,t,n,r))r.stopPropagation();else if(Gl(e,r),t&4&&-1<zf.indexOf(e)){for(;i!==null;){var o=_r(i);if(o!==null&&Fu(o),o=es(e,t,n,r),o===null&&So(e,t,r,wi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else So(e,t,r,null,n)}}var wi=null;function es(e,t,n,r){if(wi=null,e=Us(r),e=Gt(e),e!==null)if(t=ln(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Du(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 wi=e,null}function $u(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(yf()){case Hs:return 1;case Mu:return 4;case gi:case wf:return 16;case Ou:return 536870912;default:return 16}default:return 16}}var Tt=null,Xs=null,ii=null;function Vu(){if(ii)return ii;var e,t=Xs,n=t.length,r,i="value"in Tt?Tt.value:Tt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return ii=i.slice(e,1<r?1-r:void 0)}function oi(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 Ur(){return!0}function Zl(){return!1}function Ve(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ur:Zl,this.isPropagationStopped=Zl,this}return ee(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=Ur)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ur)},persist:function(){},isPersistent:Ur}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Ve(Fn),zr=ee({},Fn,{view:0,detail:0}),Tf=Ve(zr),co,fo,Vn,Wi=ee({},zr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ys,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!==Vn&&(Vn&&e.type==="mousemove"?(co=e.screenX-Vn.screenX,fo=e.screenY-Vn.screenY):fo=co=0,Vn=e),co)},movementY:function(e){return"movementY"in e?e.movementY:fo}}),Jl=Ve(Wi),Lf=ee({},Wi,{dataTransfer:0}),Mf=Ve(Lf),Of=ee({},zr,{relatedTarget:0}),po=Ve(Of),If=ee({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Af=Ve(If),Ff=ee({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wf=Ve(Ff),Uf=ee({},Fn,{data:0}),ql=Ve(Uf),Hf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bf={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"},$f={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$f[e])?!!t[e]:!1}function Ys(){return Vf}var Xf=ee({},zr,{key:function(e){if(e.key){var t=Hf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Bf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ys,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qf=Ve(Xf),Yf=ee({},Wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ea=Ve(Yf),Kf=ee({},zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ys}),Gf=Ve(Kf),bf=ee({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zf=Ve(bf),Jf=ee({},Wi,{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}),qf=Ve(Jf),ep=[9,13,27,32],Ks=wt&&"CompositionEvent"in window,tr=null;wt&&"documentMode"in document&&(tr=document.documentMode);var tp=wt&&"TextEvent"in window&&!tr,Xu=wt&&(!Ks||tr&&8<tr&&11>=tr),ta=" ",na=!1;function Qu(e,t){switch(e){case"keyup":return ep.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pn=!1;function np(e,t){switch(e){case"compositionend":return Yu(t);case"keypress":return t.which!==32?null:(na=!0,ta);case"textInput":return e=t.data,e===ta&&na?null:e;default:return null}}function rp(e,t){if(pn)return e==="compositionend"||!Ks&&Qu(e,t)?(e=Vu(),ii=Xs=Tt=null,pn=!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 Xu&&t.locale!=="ko"?null:t.data;default:return null}}var ip={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 ra(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ip[e.type]:t==="textarea"}function Ku(e,t,n,r){Pu(r),t=Si(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nr=null,hr=null;function op(e){oc(e,0)}function Ui(e){var t=gn(e);if(yu(t))return e}function sp(e,t){if(e==="change")return t}var Gu=!1;if(wt){var ho;if(wt){var mo="oninput"in document;if(!mo){var ia=document.createElement("div");ia.setAttribute("oninput","return;"),mo=typeof ia.oninput=="function"}ho=mo}else ho=!1;Gu=ho&&(!document.documentMode||9<document.documentMode)}function oa(){nr&&(nr.detachEvent("onpropertychange",bu),hr=nr=null)}function bu(e){if(e.propertyName==="value"&&Ui(hr)){var t=[];Ku(t,hr,e,Us(e)),ju(op,t)}}function lp(e,t,n){e==="focusin"?(oa(),nr=t,hr=n,nr.attachEvent("onpropertychange",bu)):e==="focusout"&&oa()}function ap(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ui(hr)}function up(e,t){if(e==="click")return Ui(t)}function cp(e,t){if(e==="input"||e==="change")return Ui(t)}function dp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:dp;function mr(e,t){if(ot(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 i=n[r];if(!Io.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function sa(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function la(e,t){var n=sa(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=sa(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ju(){for(var e=window,t=pi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=pi(e.document)}return t}function Gs(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 fp(e){var t=Ju(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zu(n.ownerDocument.documentElement,n)){if(r!==null&&Gs(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=la(n,o);var s=la(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.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 pp=wt&&"documentMode"in document&&11>=document.documentMode,hn=null,ts=null,rr=null,ns=!1;function aa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ns||hn==null||hn!==pi(r)||(r=hn,"selectionStart"in r&&Gs(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}),rr&&mr(rr,r)||(rr=r,r=Si(ts,"onSelect"),0<r.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hn)))}function Hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mn={animationend:Hr("Animation","AnimationEnd"),animationiteration:Hr("Animation","AnimationIteration"),animationstart:Hr("Animation","AnimationStart"),transitionend:Hr("Transition","TransitionEnd")},go={},qu={};wt&&(qu=document.createElement("div").style,"AnimationEvent"in window||(delete mn.animationend.animation,delete mn.animationiteration.animation,delete mn.animationstart.animation),"TransitionEvent"in window||delete mn.transitionend.transition);function Hi(e){if(go[e])return go[e];if(!mn[e])return e;var t=mn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qu)return go[e]=t[n];return e}var ec=Hi("animationend"),tc=Hi("animationiteration"),nc=Hi("animationstart"),rc=Hi("transitionend"),ic=new Map,ua="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 Vt(e,t){ic.set(e,t),sn(t,[e])}for(var vo=0;vo<ua.length;vo++){var yo=ua[vo],hp=yo.toLowerCase(),mp=yo[0].toUpperCase()+yo.slice(1);Vt(hp,"on"+mp)}Vt(ec,"onAnimationEnd");Vt(tc,"onAnimationIteration");Vt(nc,"onAnimationStart");Vt("dblclick","onDoubleClick");Vt("focusin","onFocus");Vt("focusout","onBlur");Vt(rc,"onTransitionEnd");Dn("onMouseEnter",["mouseout","mouseover"]);Dn("onMouseLeave",["mouseout","mouseover"]);Dn("onPointerEnter",["pointerout","pointerover"]);Dn("onPointerLeave",["pointerout","pointerover"]);sn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));sn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));sn("onBeforeInput",["compositionend","keypress","textInput","paste"]);sn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));sn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));sn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jn="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(" "),gp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jn));function ca(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hf(r,t,void 0,e),e.currentTarget=null}function oc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==o&&i.isPropagationStopped())break e;ca(i,l,u),o=a}else for(s=0;s<r.length;s++){if(l=r[s],a=l.instance,u=l.currentTarget,l=l.listener,a!==o&&i.isPropagationStopped())break e;ca(i,l,u),o=a}}}if(mi)throw e=Zo,mi=!1,Zo=null,e}function K(e,t){var n=t[ls];n===void 0&&(n=t[ls]=new Set);var r=e+"__bubble";n.has(r)||(sc(t,e,2,!1),n.add(r))}function wo(e,t,n){var r=0;t&&(r|=4),sc(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function gr(e){if(!e[Br]){e[Br]=!0,pu.forEach(function(n){n!=="selectionchange"&&(gp.has(n)||wo(n,!1,e),wo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,wo("selectionchange",!1,t))}}function sc(e,t,n,r){switch($u(t)){case 1:var i=Df;break;case 4:i=Rf;break;default:i=Vs}n=i.bind(null,t,n,e),i=void 0,!bo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function So(e,t,n,r,i){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 l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Gt(l),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}l=l.parentNode}}r=r.return}ju(function(){var u=o,g=Us(n),h=[];e:{var m=ic.get(e);if(m!==void 0){var S=Qs,x=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":S=Qf;break;case"focusin":x="focus",S=po;break;case"focusout":x="blur",S=po;break;case"beforeblur":case"afterblur":S=po;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=Jl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=Mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Gf;break;case ec:case tc:case nc:S=Af;break;case rc:S=Zf;break;case"scroll":S=Tf;break;case"wheel":S=qf;break;case"copy":case"cut":case"paste":S=Wf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=ea}var y=(t&4)!==0,T=!y&&e==="scroll",p=y?m!==null?m+"Capture":null:m;y=[];for(var c=u,d;c!==null;){d=c;var v=d.stateNode;if(d.tag===5&&v!==null&&(d=v,p!==null&&(v=cr(c,p),v!=null&&y.push(vr(c,v,d)))),T)break;c=c.return}0<y.length&&(m=new S(m,x,null,n,g),h.push({event:m,listeners:y}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",m&&n!==Ko&&(x=n.relatedTarget||n.fromElement)&&(Gt(x)||x[St]))break e;if((S||m)&&(m=g.window===g?g:(m=g.ownerDocument)?m.defaultView||m.parentWindow:window,S?(x=n.relatedTarget||n.toElement,S=u,x=x?Gt(x):null,x!==null&&(T=ln(x),x!==T||x.tag!==5&&x.tag!==6)&&(x=null)):(S=null,x=u),S!==x)){if(y=Jl,v="onMouseLeave",p="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(y=ea,v="onPointerLeave",p="onPointerEnter",c="pointer"),T=S==null?m:gn(S),d=x==null?m:gn(x),m=new y(v,c+"leave",S,n,g),m.target=T,m.relatedTarget=d,v=null,Gt(g)===u&&(y=new y(p,c+"enter",x,n,g),y.target=d,y.relatedTarget=T,v=y),T=v,S&&x)t:{for(y=S,p=x,c=0,d=y;d;d=un(d))c++;for(d=0,v=p;v;v=un(v))d++;for(;0<c-d;)y=un(y),c--;for(;0<d-c;)p=un(p),d--;for(;c--;){if(y===p||p!==null&&y===p.alternate)break t;y=un(y),p=un(p)}y=null}else y=null;S!==null&&da(h,m,S,y,!1),x!==null&&T!==null&&da(h,T,x,y,!0)}}e:{if(m=u?gn(u):window,S=m.nodeName&&m.nodeName.toLowerCase(),S==="select"||S==="input"&&m.type==="file")var w=sp;else if(ra(m))if(Gu)w=cp;else{w=ap;var N=lp}else(S=m.nodeName)&&S.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(w=up);if(w&&(w=w(e,u))){Ku(h,w,n,g);break e}N&&N(e,m,u),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&$o(m,"number",m.value)}switch(N=u?gn(u):window,e){case"focusin":(ra(N)||N.contentEditable==="true")&&(hn=N,ts=u,rr=null);break;case"focusout":rr=ts=hn=null;break;case"mousedown":ns=!0;break;case"contextmenu":case"mouseup":case"dragend":ns=!1,aa(h,n,g);break;case"selectionchange":if(pp)break;case"keydown":case"keyup":aa(h,n,g)}var k;if(Ks)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else pn?Qu(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(Xu&&n.locale!=="ko"&&(pn||C!=="onCompositionStart"?C==="onCompositionEnd"&&pn&&(k=Vu()):(Tt=g,Xs="value"in Tt?Tt.value:Tt.textContent,pn=!0)),N=Si(u,C),0<N.length&&(C=new ql(C,e,null,n,g),h.push({event:C,listeners:N}),k?C.data=k:(k=Yu(n),k!==null&&(C.data=k)))),(k=tp?np(e,n):rp(e,n))&&(u=Si(u,"onBeforeInput"),0<u.length&&(g=new ql("onBeforeInput","beforeinput",null,n,g),h.push({event:g,listeners:u}),g.data=k))}oc(h,t)})}function vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Si(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=cr(e,n),o!=null&&r.unshift(vr(e,o,i)),o=cr(e,t),o!=null&&r.push(vr(e,o,i))),e=e.return}return r}function un(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function da(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=cr(n,o),a!=null&&s.unshift(vr(n,a,l))):i||(a=cr(n,o),a!=null&&s.push(vr(n,a,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var vp=/\r\n?/g,yp=/\u0000|\uFFFD/g;function fa(e){return(typeof e=="string"?e:""+e).replace(vp,`
|
|
38
|
+
`).replace(yp,"")}function $r(e,t,n){if(t=fa(t),fa(e)!==t&&n)throw Error(P(425))}function xi(){}var rs=null,is=null;function os(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 ss=typeof setTimeout=="function"?setTimeout:void 0,wp=typeof clearTimeout=="function"?clearTimeout:void 0,pa=typeof Promise=="function"?Promise:void 0,Sp=typeof queueMicrotask=="function"?queueMicrotask:typeof pa<"u"?function(e){return pa.resolve(null).then(e).catch(xp)}:ss;function xp(e){setTimeout(function(){throw e})}function xo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);pr(t)}function At(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 ha(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),ut="__reactFiber$"+Wn,yr="__reactProps$"+Wn,St="__reactContainer$"+Wn,ls="__reactEvents$"+Wn,kp="__reactListeners$"+Wn,Np="__reactHandles$"+Wn;function Gt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[St]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ha(e);e!==null;){if(n=e[ut])return n;e=ha(e)}return t}e=n,n=e.parentNode}return null}function _r(e){return e=e[ut]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Bi(e){return e[yr]||null}var as=[],vn=-1;function Xt(e){return{current:e}}function G(e){0>vn||(e.current=as[vn],as[vn]=null,vn--)}function Y(e,t){vn++,as[vn]=e.current,e.current=t}var $t={},Ee=Xt($t),Me=Xt(!1),en=$t;function Rn(e,t){var n=e.type.contextTypes;if(!n)return $t;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function ki(){G(Me),G(Ee)}function ma(e,t,n){if(Ee.current!==$t)throw Error(P(168));Y(Ee,t),Y(Me,n)}function lc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,lf(e)||"Unknown",i));return ee({},n,r)}function Ni(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$t,en=Ee.current,Y(Ee,e),Y(Me,Me.current),!0}function ga(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=lc(e,t,en),r.__reactInternalMemoizedMergedChildContext=e,G(Me),G(Ee),Y(Ee,e)):G(Me),Y(Me,n)}var mt=null,$i=!1,ko=!1;function ac(e){mt===null?mt=[e]:mt.push(e)}function Ep(e){$i=!0,ac(e)}function Qt(){if(!ko&&mt!==null){ko=!0;var e=0,t=X;try{var n=mt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,$i=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),Lu(Hs,Qt),i}finally{X=t,ko=!1}}return null}var yn=[],wn=0,Ei=null,Pi=0,Qe=[],Ye=0,tn=null,gt=1,vt="";function Yt(e,t){yn[wn++]=Pi,yn[wn++]=Ei,Ei=e,Pi=t}function uc(e,t,n){Qe[Ye++]=gt,Qe[Ye++]=vt,Qe[Ye++]=tn,tn=e;var r=gt;e=vt;var i=32-rt(r)-1;r&=~(1<<i),n+=1;var o=32-rt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,gt=1<<32-rt(t)+i|n<<i|r,vt=o+e}else gt=1<<o|n<<i|r,vt=e}function bs(e){e.return!==null&&(Yt(e,1),uc(e,1,0))}function Zs(e){for(;e===Ei;)Ei=yn[--wn],yn[wn]=null,Pi=yn[--wn],yn[wn]=null;for(;e===tn;)tn=Qe[--Ye],Qe[Ye]=null,vt=Qe[--Ye],Qe[Ye]=null,gt=Qe[--Ye],Qe[Ye]=null}var Ue=null,We=null,b=!1,nt=null;function cc(e,t){var n=Ke(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 va(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,Ue=e,We=At(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ue=e,We=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=tn!==null?{id:gt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ke(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ue=e,We=null,!0):!1;default:return!1}}function us(e){return(e.mode&1)!==0&&(e.flags&128)===0}function cs(e){if(b){var t=We;if(t){var n=t;if(!va(e,t)){if(us(e))throw Error(P(418));t=At(n.nextSibling);var r=Ue;t&&va(e,t)?cc(r,n):(e.flags=e.flags&-4097|2,b=!1,Ue=e)}}else{if(us(e))throw Error(P(418));e.flags=e.flags&-4097|2,b=!1,Ue=e}}}function ya(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ue=e}function Vr(e){if(e!==Ue)return!1;if(!b)return ya(e),b=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!os(e.type,e.memoizedProps)),t&&(t=We)){if(us(e))throw dc(),Error(P(418));for(;t;)cc(e,t),t=At(t.nextSibling)}if(ya(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){We=At(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}We=null}}else We=Ue?At(e.stateNode.nextSibling):null;return!0}function dc(){for(var e=We;e;)e=At(e.nextSibling)}function Tn(){We=Ue=null,b=!1}function Js(e){nt===null?nt=[e]:nt.push(e)}var Pp=Nt.ReactCurrentBatchConfig;function Xn(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(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Xr(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wa(e){var t=e._init;return t(e._payload)}function fc(e){function t(p,c){if(e){var d=p.deletions;d===null?(p.deletions=[c],p.flags|=16):d.push(c)}}function n(p,c){if(!e)return null;for(;c!==null;)t(p,c),c=c.sibling;return null}function r(p,c){for(p=new Map;c!==null;)c.key!==null?p.set(c.key,c):p.set(c.index,c),c=c.sibling;return p}function i(p,c){return p=Ht(p,c),p.index=0,p.sibling=null,p}function o(p,c,d){return p.index=d,e?(d=p.alternate,d!==null?(d=d.index,d<c?(p.flags|=2,c):d):(p.flags|=2,c)):(p.flags|=1048576,c)}function s(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,c,d,v){return c===null||c.tag!==6?(c=jo(d,p.mode,v),c.return=p,c):(c=i(c,d),c.return=p,c)}function a(p,c,d,v){var w=d.type;return w===fn?g(p,c,d.props.children,v,d.key):c!==null&&(c.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===_t&&wa(w)===c.type)?(v=i(c,d.props),v.ref=Xn(p,c,d),v.return=p,v):(v=fi(d.type,d.key,d.props,null,p.mode,v),v.ref=Xn(p,c,d),v.return=p,v)}function u(p,c,d,v){return c===null||c.tag!==4||c.stateNode.containerInfo!==d.containerInfo||c.stateNode.implementation!==d.implementation?(c=Do(d,p.mode,v),c.return=p,c):(c=i(c,d.children||[]),c.return=p,c)}function g(p,c,d,v,w){return c===null||c.tag!==7?(c=qt(d,p.mode,v,w),c.return=p,c):(c=i(c,d),c.return=p,c)}function h(p,c,d){if(typeof c=="string"&&c!==""||typeof c=="number")return c=jo(""+c,p.mode,d),c.return=p,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Mr:return d=fi(c.type,c.key,c.props,null,p.mode,d),d.ref=Xn(p,null,c),d.return=p,d;case dn:return c=Do(c,p.mode,d),c.return=p,c;case _t:var v=c._init;return h(p,v(c._payload),d)}if(bn(c)||Un(c))return c=qt(c,p.mode,d,null),c.return=p,c;Xr(p,c)}return null}function m(p,c,d,v){var w=c!==null?c.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return w!==null?null:l(p,c,""+d,v);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Mr:return d.key===w?a(p,c,d,v):null;case dn:return d.key===w?u(p,c,d,v):null;case _t:return w=d._init,m(p,c,w(d._payload),v)}if(bn(d)||Un(d))return w!==null?null:g(p,c,d,v,null);Xr(p,d)}return null}function S(p,c,d,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(d)||null,l(c,p,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Mr:return p=p.get(v.key===null?d:v.key)||null,a(c,p,v,w);case dn:return p=p.get(v.key===null?d:v.key)||null,u(c,p,v,w);case _t:var N=v._init;return S(p,c,d,N(v._payload),w)}if(bn(v)||Un(v))return p=p.get(d)||null,g(c,p,v,w,null);Xr(c,v)}return null}function x(p,c,d,v){for(var w=null,N=null,k=c,C=c=0,O=null;k!==null&&C<d.length;C++){k.index>C?(O=k,k=null):O=k.sibling;var R=m(p,k,d[C],v);if(R===null){k===null&&(k=O);break}e&&k&&R.alternate===null&&t(p,k),c=o(R,c,C),N===null?w=R:N.sibling=R,N=R,k=O}if(C===d.length)return n(p,k),b&&Yt(p,C),w;if(k===null){for(;C<d.length;C++)k=h(p,d[C],v),k!==null&&(c=o(k,c,C),N===null?w=k:N.sibling=k,N=k);return b&&Yt(p,C),w}for(k=r(p,k);C<d.length;C++)O=S(k,p,C,d[C],v),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?C:O.key),c=o(O,c,C),N===null?w=O:N.sibling=O,N=O);return e&&k.forEach(function(A){return t(p,A)}),b&&Yt(p,C),w}function y(p,c,d,v){var w=Un(d);if(typeof w!="function")throw Error(P(150));if(d=w.call(d),d==null)throw Error(P(151));for(var N=w=null,k=c,C=c=0,O=null,R=d.next();k!==null&&!R.done;C++,R=d.next()){k.index>C?(O=k,k=null):O=k.sibling;var A=m(p,k,R.value,v);if(A===null){k===null&&(k=O);break}e&&k&&A.alternate===null&&t(p,k),c=o(A,c,C),N===null?w=A:N.sibling=A,N=A,k=O}if(R.done)return n(p,k),b&&Yt(p,C),w;if(k===null){for(;!R.done;C++,R=d.next())R=h(p,R.value,v),R!==null&&(c=o(R,c,C),N===null?w=R:N.sibling=R,N=R);return b&&Yt(p,C),w}for(k=r(p,k);!R.done;C++,R=d.next())R=S(k,p,C,R.value,v),R!==null&&(e&&R.alternate!==null&&k.delete(R.key===null?C:R.key),c=o(R,c,C),N===null?w=R:N.sibling=R,N=R);return e&&k.forEach(function(H){return t(p,H)}),b&&Yt(p,C),w}function T(p,c,d,v){if(typeof d=="object"&&d!==null&&d.type===fn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case Mr:e:{for(var w=d.key,N=c;N!==null;){if(N.key===w){if(w=d.type,w===fn){if(N.tag===7){n(p,N.sibling),c=i(N,d.props.children),c.return=p,p=c;break e}}else if(N.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===_t&&wa(w)===N.type){n(p,N.sibling),c=i(N,d.props),c.ref=Xn(p,N,d),c.return=p,p=c;break e}n(p,N);break}else t(p,N);N=N.sibling}d.type===fn?(c=qt(d.props.children,p.mode,v,d.key),c.return=p,p=c):(v=fi(d.type,d.key,d.props,null,p.mode,v),v.ref=Xn(p,c,d),v.return=p,p=v)}return s(p);case dn:e:{for(N=d.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(p,c.sibling),c=i(c,d.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=Do(d,p.mode,v),c.return=p,p=c}return s(p);case _t:return N=d._init,T(p,c,N(d._payload),v)}if(bn(d))return x(p,c,d,v);if(Un(d))return y(p,c,d,v);Xr(p,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,c!==null&&c.tag===6?(n(p,c.sibling),c=i(c,d),c.return=p,p=c):(n(p,c),c=jo(d,p.mode,v),c.return=p,p=c),s(p)):n(p,c)}return T}var Ln=fc(!0),pc=fc(!1),Ci=Xt(null),zi=null,Sn=null,qs=null;function el(){qs=Sn=zi=null}function tl(e){var t=Ci.current;G(Ci),e._currentValue=t}function ds(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 _n(e,t){zi=e,qs=Sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function be(e){var t=e._currentValue;if(qs!==e)if(e={context:e,memoizedValue:t,next:null},Sn===null){if(zi===null)throw Error(P(308));Sn=e,zi.dependencies={lanes:0,firstContext:e}}else Sn=Sn.next=e;return t}var bt=null;function nl(e){bt===null?bt=[e]:bt.push(e)}function hc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,nl(t)):(n.next=i.next,i.next=n),t.interleaved=n,xt(e,r)}function xt(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 jt=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mc(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 yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,xt(e,n)}return i=r.interleaved,i===null?(t.next=t,nl(r)):(t.next=i.next,i.next=t),r.interleaved=t,xt(e,n)}function si(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,Bs(e,n)}}function Sa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=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?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,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 _i(e,t,n,r){var i=e.updateQueue;jt=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?o=u:s.next=u,s=a;var g=e.alternate;g!==null&&(g=g.updateQueue,l=g.lastBaseUpdate,l!==s&&(l===null?g.firstBaseUpdate=u:l.next=u,g.lastBaseUpdate=a))}if(o!==null){var h=i.baseState;s=0,g=u=a=null,l=o;do{var m=l.lane,S=l.eventTime;if((r&m)===m){g!==null&&(g=g.next={eventTime:S,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,y=l;switch(m=t,S=n,y.tag){case 1:if(x=y.payload,typeof x=="function"){h=x.call(S,h,m);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=y.payload,m=typeof x=="function"?x.call(S,h,m):x,m==null)break e;h=ee({},h,m);break e;case 2:jt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else S={eventTime:S,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},g===null?(u=g=S,a=h):g=g.next=S,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(g===null&&(a=h),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=g,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);rn|=s,e.lanes=s,e.memoizedState=h}}function xa(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(P(191,i));i.call(r)}}}var jr={},dt=Xt(jr),wr=Xt(jr),Sr=Xt(jr);function Zt(e){if(e===jr)throw Error(P(174));return e}function il(e,t){switch(Y(Sr,t),Y(wr,e),Y(dt,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xo(t,e)}G(dt),Y(dt,t)}function Mn(){G(dt),G(wr),G(Sr)}function gc(e){Zt(Sr.current);var t=Zt(dt.current),n=Xo(t,e.type);t!==n&&(Y(wr,e),Y(dt,n))}function ol(e){wr.current===e&&(G(dt),G(wr))}var J=Xt(0);function ji(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 No=[];function sl(){for(var e=0;e<No.length;e++)No[e]._workInProgressVersionPrimary=null;No.length=0}var li=Nt.ReactCurrentDispatcher,Eo=Nt.ReactCurrentBatchConfig,nn=0,q=null,ue=null,de=null,Di=!1,ir=!1,xr=0,Cp=0;function Se(){throw Error(P(321))}function ll(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function al(e,t,n,r,i,o){if(nn=o,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,li.current=e===null||e.memoizedState===null?Dp:Rp,e=n(r,i),ir){o=0;do{if(ir=!1,xr=0,25<=o)throw Error(P(301));o+=1,de=ue=null,t.updateQueue=null,li.current=Tp,e=n(r,i)}while(ir)}if(li.current=Ri,t=ue!==null&&ue.next!==null,nn=0,de=ue=q=null,Di=!1,t)throw Error(P(300));return e}function ul(){var e=xr!==0;return xr=0,e}function lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?q.memoizedState=de=e:de=de.next=e,de}function Ze(){if(ue===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=de===null?q.memoizedState:de.next;if(t!==null)de=t,ue=e;else{if(e===null)throw Error(P(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},de===null?q.memoizedState=de=e:de=de.next=e}return de}function kr(e,t){return typeof t=="function"?t(e):t}function Po(e){var t=Ze(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ue,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,a=null,u=o;do{var g=u.lane;if((nn&g)===g)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:g,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=h,s=r):a=a.next=h,q.lanes|=g,rn|=g}u=u.next}while(u!==null&&u!==o);a===null?s=r:a.next=l,ot(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,q.lanes|=o,rn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Co(e){var t=Ze(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);ot(o,t.memoizedState)||(Le=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vc(){}function yc(e,t){var n=q,r=Ze(),i=t(),o=!ot(r.memoizedState,i);if(o&&(r.memoizedState=i,Le=!0),r=r.queue,cl(xc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||de!==null&&de.memoizedState.tag&1){if(n.flags|=2048,Nr(9,Sc.bind(null,n,r,i,t),void 0,null),fe===null)throw Error(P(349));nn&30||wc(n,t,i)}return i}function wc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sc(e,t,n,r){t.value=n,t.getSnapshot=r,kc(t)&&Nc(e)}function xc(e,t,n){return n(function(){kc(t)&&Nc(e)})}function kc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function Nc(e){var t=xt(e,1);t!==null&&it(t,e,1,-1)}function ka(e){var t=lt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kr,lastRenderedState:e},t.queue=e,e=e.dispatch=jp.bind(null,q,e),[t.memoizedState,e]}function Nr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.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 Ec(){return Ze().memoizedState}function ai(e,t,n,r){var i=lt();q.flags|=e,i.memoizedState=Nr(1|t,n,void 0,r===void 0?null:r)}function Vi(e,t,n,r){var i=Ze();r=r===void 0?null:r;var o=void 0;if(ue!==null){var s=ue.memoizedState;if(o=s.destroy,r!==null&&ll(r,s.deps)){i.memoizedState=Nr(t,n,o,r);return}}q.flags|=e,i.memoizedState=Nr(1|t,n,o,r)}function Na(e,t){return ai(8390656,8,e,t)}function cl(e,t){return Vi(2048,8,e,t)}function Pc(e,t){return Vi(4,2,e,t)}function Cc(e,t){return Vi(4,4,e,t)}function zc(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 _c(e,t,n){return n=n!=null?n.concat([e]):null,Vi(4,4,zc.bind(null,t,e),n)}function dl(){}function jc(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Dc(e,t){var n=Ze();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ll(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rc(e,t,n){return nn&21?(ot(n,t)||(n=Iu(),q.lanes|=n,rn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function zp(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Eo.transition;Eo.transition={};try{e(!1),t()}finally{X=n,Eo.transition=r}}function Tc(){return Ze().memoizedState}function _p(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lc(e))Mc(t,n);else if(n=hc(e,t,n,r),n!==null){var i=_e();it(n,e,r,i),Oc(n,t,r)}}function jp(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lc(e))Mc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ot(l,s)){var a=t.interleaved;a===null?(i.next=i,nl(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=hc(e,t,i,r),n!==null&&(i=_e(),it(n,e,r,i),Oc(n,t,r))}}function Lc(e){var t=e.alternate;return e===q||t!==null&&t===q}function Mc(e,t){ir=Di=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Bs(e,n)}}var Ri={readContext:be,useCallback:Se,useContext:Se,useEffect:Se,useImperativeHandle:Se,useInsertionEffect:Se,useLayoutEffect:Se,useMemo:Se,useReducer:Se,useRef:Se,useState:Se,useDebugValue:Se,useDeferredValue:Se,useTransition:Se,useMutableSource:Se,useSyncExternalStore:Se,useId:Se,unstable_isNewReconciler:!1},Dp={readContext:be,useCallback:function(e,t){return lt().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:Na,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ai(4194308,4,zc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ai(4194308,4,e,t)},useInsertionEffect:function(e,t){return ai(4,2,e,t)},useMemo:function(e,t){var n=lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lt();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=_p.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=lt();return e={current:e},t.memoizedState=e},useState:ka,useDebugValue:dl,useDeferredValue:function(e){return lt().memoizedState=e},useTransition:function(){var e=ka(!1),t=e[0];return e=zp.bind(null,e[1]),lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,i=lt();if(b){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),fe===null)throw Error(P(349));nn&30||wc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Na(xc.bind(null,r,o,e),[e]),r.flags|=2048,Nr(9,Sc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=lt(),t=fe.identifierPrefix;if(b){var n=vt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Cp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rp={readContext:be,useCallback:jc,useContext:be,useEffect:cl,useImperativeHandle:_c,useInsertionEffect:Pc,useLayoutEffect:Cc,useMemo:Dc,useReducer:Po,useRef:Ec,useState:function(){return Po(kr)},useDebugValue:dl,useDeferredValue:function(e){var t=Ze();return Rc(t,ue.memoizedState,e)},useTransition:function(){var e=Po(kr)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:yc,useId:Tc,unstable_isNewReconciler:!1},Tp={readContext:be,useCallback:jc,useContext:be,useEffect:cl,useImperativeHandle:_c,useInsertionEffect:Pc,useLayoutEffect:Cc,useMemo:Dc,useReducer:Co,useRef:Ec,useState:function(){return Co(kr)},useDebugValue:dl,useDeferredValue:function(e){var t=Ze();return ue===null?t.memoizedState=e:Rc(t,ue.memoizedState,e)},useTransition:function(){var e=Co(kr)[0],t=Ze().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:yc,useId:Tc,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function fs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xi={isMounted:function(e){return(e=e._reactInternals)?ln(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),i=Ut(e),o=yt(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ft(e,o,i),t!==null&&(it(t,e,i,r),si(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),i=Ut(e),o=yt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ft(e,o,i),t!==null&&(it(t,e,i,r),si(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Ut(e),i=yt(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ft(e,i,r),t!==null&&(it(t,e,r,n),si(t,e,r))}};function Ea(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!mr(n,r)||!mr(i,o):!0}function Ic(e,t,n){var r=!1,i=$t,o=t.contextType;return typeof o=="object"&&o!==null?o=be(o):(i=Oe(t)?en:Ee.current,r=t.contextTypes,o=(r=r!=null)?Rn(e,i):$t),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Pa(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&&Xi.enqueueReplaceState(t,t.state,null)}function ps(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},rl(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=be(o):(o=Oe(t)?en:Ee.current,i.context=Rn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fs(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xi.enqueueReplaceState(i,i.state,null),_i(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function On(e,t){try{var n="",r=t;do n+=sf(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Lp=typeof WeakMap=="function"?WeakMap:Map;function Ac(e,t,n){n=yt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Li||(Li=!0,Es=r),hs(e,t)},n}function Fc(e,t,n){n=yt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){hs(e,t),typeof r!="function"&&(Wt===null?Wt=new Set([this]):Wt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ca(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Lp;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Yp.bind(null,e,t,n),t.then(e,e))}function za(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 _a(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=yt(-1,1),t.tag=2,Ft(n,t,1))),n.lanes|=1),e)}var Mp=Nt.ReactCurrentOwner,Le=!1;function ze(e,t,n,r){t.child=e===null?pc(t,null,n,r):Ln(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return _n(t,i),r=al(e,t,n,r,o,i),n=ul(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(b&&n&&bs(t),t.flags|=1,ze(e,t,r,i),t.child)}function Da(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!wl(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Wc(e,t,o,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:mr,n(s,r)&&e.ref===t.ref)return kt(e,t,i)}return t.flags|=1,e=Ht(o,r),e.ref=t.ref,e.return=t,t.child=e}function Wc(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(mr(o,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,kt(e,t,i)}return ms(e,t,n,r,i)}function Uc(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(kn,Fe),Fe|=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,Y(kn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Y(kn,Fe),Fe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Y(kn,Fe),Fe|=r;return ze(e,t,i,n),t.child}function Hc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ms(e,t,n,r,i){var o=Oe(n)?en:Ee.current;return o=Rn(t,o),_n(t,i),n=al(e,t,n,r,o,i),r=ul(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(b&&r&&bs(t),t.flags|=1,ze(e,t,n,i),t.child)}function Ra(e,t,n,r,i){if(Oe(n)){var o=!0;Ni(t)}else o=!1;if(_n(t,i),t.stateNode===null)ui(e,t),Ic(t,n,r),ps(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=be(u):(u=Oe(n)?en:Ee.current,u=Rn(t,u));var g=n.getDerivedStateFromProps,h=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&Pa(t,s,r,u),jt=!1;var m=t.memoizedState;s.state=m,_i(t,r,s,i),a=t.memoizedState,l!==r||m!==a||Me.current||jt?(typeof g=="function"&&(fs(t,n,g,r),a=t.memoizedState),(l=jt||Ea(t,n,l,r,m,a,u))?(h||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=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,mc(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:et(t.type,l),s.props=u,h=t.pendingProps,m=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=be(a):(a=Oe(n)?en:Ee.current,a=Rn(t,a));var S=n.getDerivedStateFromProps;(g=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||m!==a)&&Pa(t,s,r,a),jt=!1,m=t.memoizedState,s.state=m,_i(t,r,s,i);var x=t.memoizedState;l!==h||m!==x||Me.current||jt?(typeof S=="function"&&(fs(t,n,S,r),x=t.memoizedState),(u=jt||Ea(t,n,u,r,m,x,a)||!1)?(g||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return gs(e,t,n,r,o,i)}function gs(e,t,n,r,i,o){Hc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&ga(t,n,!1),kt(e,t,o);r=t.stateNode,Mp.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ln(t,e.child,null,o),t.child=Ln(t,null,l,o)):ze(e,t,l,o),t.memoizedState=r.state,i&&ga(t,n,!0),t.child}function Bc(e){var t=e.stateNode;t.pendingContext?ma(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ma(e,t.context,!1),il(e,t.containerInfo)}function Ta(e,t,n,r,i){return Tn(),Js(i),t.flags|=256,ze(e,t,n,r),t.child}var vs={dehydrated:null,treeContext:null,retryLane:0};function ys(e){return{baseLanes:e,cachePool:null,transitions:null}}function $c(e,t,n){var r=t.pendingProps,i=J.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Y(J,i&1),e===null)return cs(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=Ki(s,r,0,null),e=qt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ys(n),t.memoizedState=vs,e):fl(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Op(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ht(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Ht(l,o):(o=qt(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?ys(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=vs,r}return o=e.child,e=o.sibling,r=Ht(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 fl(e,t){return t=Ki({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qr(e,t,n,r){return r!==null&&Js(r),Ln(t,e.child,null,n),e=fl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Op(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=zo(Error(P(422))),Qr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ki({mode:"visible",children:r.children},i,0,null),o=qt(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ln(t,e.child,null,s),t.child.memoizedState=ys(s),t.memoizedState=vs,o);if(!(t.mode&1))return Qr(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(P(419)),r=zo(o,r,void 0),Qr(e,t,s,r)}if(l=(s&e.childLanes)!==0,Le||l){if(r=fe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,xt(e,i),it(r,e,i,-1))}return yl(),r=zo(Error(P(421))),Qr(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Kp.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,We=At(i.nextSibling),Ue=t,b=!0,nt=null,e!==null&&(Qe[Ye++]=gt,Qe[Ye++]=vt,Qe[Ye++]=tn,gt=e.id,vt=e.overflow,tn=t),t=fl(t,r.children),t.flags|=4096,t)}function La(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ds(e.return,t,n)}function _o(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ze(e,t,r.children,n),r=J.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&&La(e,n,t);else if(e.tag===19)La(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(Y(J,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ji(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_o(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ji(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_o(t,!0,n,null,o);break;case"together":_o(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ui(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=Ht(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ht(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ip(e,t,n){switch(t.tag){case 3:Bc(t),Tn();break;case 5:gc(t);break;case 1:Oe(t.type)&&Ni(t);break;case 4:il(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Y(Ci,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Y(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?$c(e,t,n):(Y(J,J.current&1),e=kt(e,t,n),e!==null?e.sibling:null);Y(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Vc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,Uc(e,t,n)}return kt(e,t,n)}var Xc,ws,Qc,Yc;Xc=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}};ws=function(){};Qc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Zt(dt.current);var o=null;switch(n){case"input":i=Ho(e,i),r=Ho(e,r),o=[];break;case"select":i=ee({},i,{value:void 0}),r=ee({},r,{value:void 0}),o=[];break;case"textarea":i=Vo(e,i),r=Vo(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xi)}Qo(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ar.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ar.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&K("scroll",e),o||l===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qn(e,t){if(!b)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 xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ap(e,t,n){var r=t.pendingProps;switch(Zs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Oe(t.type)&&ki(),xe(t),null;case 3:return r=t.stateNode,Mn(),G(Me),G(Ee),sl(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Vr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(zs(nt),nt=null))),ws(e,t),xe(t),null;case 5:ol(t);var i=Zt(Sr.current);if(n=t.type,e!==null&&t.stateNode!=null)Qc(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return xe(t),null}if(e=Zt(dt.current),Vr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ut]=t,r[yr]=o,e=(t.mode&1)!==0,n){case"dialog":K("cancel",r),K("close",r);break;case"iframe":case"object":case"embed":K("load",r);break;case"video":case"audio":for(i=0;i<Jn.length;i++)K(Jn[i],r);break;case"source":K("error",r);break;case"img":case"image":case"link":K("error",r),K("load",r);break;case"details":K("toggle",r);break;case"input":Bl(r,o),K("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},K("invalid",r);break;case"textarea":Vl(r,o),K("invalid",r)}Qo(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&$r(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&$r(r.textContent,l,e),i=["children",""+l]):ar.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&K("scroll",r)}switch(n){case"input":Or(r),$l(r,o,!0);break;case"textarea":Or(r),Xl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=xi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xu(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[ut]=t,e[yr]=r,Xc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yo(n,r),n){case"dialog":K("cancel",e),K("close",e),i=r;break;case"iframe":case"object":case"embed":K("load",e),i=r;break;case"video":case"audio":for(i=0;i<Jn.length;i++)K(Jn[i],e);i=r;break;case"source":K("error",e),i=r;break;case"img":case"image":case"link":K("error",e),K("load",e),i=r;break;case"details":K("toggle",e),i=r;break;case"input":Bl(e,r),i=Ho(e,r),K("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ee({},r,{value:void 0}),K("invalid",e);break;case"textarea":Vl(e,r),i=Vo(e,r),K("invalid",e);break;default:i=r}Qo(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var a=l[o];o==="style"?Eu(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&ku(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ur(e,a):typeof a=="number"&&ur(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ar.hasOwnProperty(o)?a!=null&&o==="onScroll"&&K("scroll",e):a!=null&&Is(e,o,a,s))}switch(n){case"input":Or(e),$l(e,r,!1);break;case"textarea":Or(e),Xl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Bt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?En(e,!!r.multiple,o,!1):r.defaultValue!=null&&En(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xi)}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 xe(t),null;case 6:if(e&&t.stateNode!=null)Yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=Zt(Sr.current),Zt(dt.current),Vr(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(o=r.nodeValue!==n)&&(e=Ue,e!==null))switch(e.tag){case 3:$r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$r(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return xe(t),null;case 13:if(G(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(b&&We!==null&&t.mode&1&&!(t.flags&128))dc(),Tn(),t.flags|=98560,o=!1;else if(o=Vr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[ut]=t}else Tn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),o=!1}else nt!==null&&(zs(nt),nt=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||J.current&1?ce===0&&(ce=3):yl())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Mn(),ws(e,t),e===null&&gr(t.stateNode.containerInfo),xe(t),null;case 10:return tl(t.type._context),xe(t),null;case 17:return Oe(t.type)&&ki(),xe(t),null;case 19:if(G(J),o=t.memoizedState,o===null)return xe(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Qn(o,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ji(e),s!==null){for(t.flags|=128,Qn(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 Y(J,J.current&1|2),t.child}e=e.sibling}o.tail!==null&&oe()>In&&(t.flags|=128,r=!0,Qn(o,!1),t.lanes=4194304)}else{if(!r)if(e=ji(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!b)return xe(t),null}else 2*oe()-o.renderingStartTime>In&&n!==1073741824&&(t.flags|=128,r=!0,Qn(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=oe(),t.sibling=null,n=J.current,Y(J,r?n&1|2:n&1),t):(xe(t),null);case 22:case 23:return vl(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Fp(e,t){switch(Zs(t),t.tag){case 1:return Oe(t.type)&&ki(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mn(),G(Me),G(Ee),sl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ol(t),null;case 13:if(G(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Tn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(J),null;case 4:return Mn(),null;case 10:return tl(t.type._context),null;case 22:case 23:return vl(),null;case 24:return null;default:return null}}var Yr=!1,Ne=!1,Wp=typeof WeakSet=="function"?WeakSet:Set,D=null;function xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function Ss(e,t,n){try{n()}catch(r){ne(e,t,r)}}var Ma=!1;function Up(e,t){if(rs=yi,e=Ju(),Gs(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,g=0,h=e,m=null;t:for(;;){for(var S;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(a=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(S=h.firstChild)!==null;)m=h,h=S;for(;;){if(h===e)break t;if(m===n&&++u===i&&(l=s),m===o&&++g===r&&(a=s),(S=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=S}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(is={focusedElem:e,selectionRange:n},yi=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,T=x.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:et(t.type,y),T);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var d=t.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(v){ne(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return x=Ma,Ma=!1,x}function or(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ss(t,n,o)}i=i.next}while(i!==r)}}function Qi(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 xs(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 Kc(e){var t=e.alternate;t!==null&&(e.alternate=null,Kc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[yr],delete t[ls],delete t[kp],delete t[Np])),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 Gc(e){return e.tag===5||e.tag===3||e.tag===4}function Oa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(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 ks(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=xi));else if(r!==4&&(e=e.child,e!==null))for(ks(e,t,n),e=e.sibling;e!==null;)ks(e,t,n),e=e.sibling}function Ns(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(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}var me=null,tt=!1;function Pt(e,t,n){for(n=n.child;n!==null;)bc(e,t,n),n=n.sibling}function bc(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Fi,n)}catch{}switch(n.tag){case 5:Ne||xn(n,t);case 6:var r=me,i=tt;me=null,Pt(e,t,n),me=r,tt=i,me!==null&&(tt?(e=me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):me.removeChild(n.stateNode));break;case 18:me!==null&&(tt?(e=me,n=n.stateNode,e.nodeType===8?xo(e.parentNode,n):e.nodeType===1&&xo(e,n),pr(e)):xo(me,n.stateNode));break;case 4:r=me,i=tt,me=n.stateNode.containerInfo,tt=!0,Pt(e,t,n),me=r,tt=i;break;case 0:case 11:case 14:case 15:if(!Ne&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ss(n,t,s),i=i.next}while(i!==r)}Pt(e,t,n);break;case 1:if(!Ne&&(xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ne(n,t,l)}Pt(e,t,n);break;case 21:Pt(e,t,n);break;case 22:n.mode&1?(Ne=(r=Ne)||n.memoizedState!==null,Pt(e,t,n),Ne=r):Pt(e,t,n);break;default:Pt(e,t,n)}}function Ia(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Wp),t.forEach(function(r){var i=Gp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:me=l.stateNode,tt=!1;break e;case 3:me=l.stateNode.containerInfo,tt=!0;break e;case 4:me=l.stateNode.containerInfo,tt=!0;break e}l=l.return}if(me===null)throw Error(P(160));bc(o,s,i),me=null,tt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ne(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zc(t,e),t=t.sibling}function Zc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),st(e),r&4){try{or(3,e,e.return),Qi(3,e)}catch(y){ne(e,e.return,y)}try{or(5,e,e.return)}catch(y){ne(e,e.return,y)}}break;case 1:Je(t,e),st(e),r&512&&n!==null&&xn(n,n.return);break;case 5:if(Je(t,e),st(e),r&512&&n!==null&&xn(n,n.return),e.flags&32){var i=e.stateNode;try{ur(i,"")}catch(y){ne(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&wu(i,o),Yo(l,s);var u=Yo(l,o);for(s=0;s<a.length;s+=2){var g=a[s],h=a[s+1];g==="style"?Eu(i,h):g==="dangerouslySetInnerHTML"?ku(i,h):g==="children"?ur(i,h):Is(i,g,h,u)}switch(l){case"input":Bo(i,o);break;case"textarea":Su(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var S=o.value;S!=null?En(i,!!o.multiple,S,!1):m!==!!o.multiple&&(o.defaultValue!=null?En(i,!!o.multiple,o.defaultValue,!0):En(i,!!o.multiple,o.multiple?[]:"",!1))}i[yr]=o}catch(y){ne(e,e.return,y)}}break;case 6:if(Je(t,e),st(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){ne(e,e.return,y)}}break;case 3:if(Je(t,e),st(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(y){ne(e,e.return,y)}break;case 4:Je(t,e),st(e);break;case 13:Je(t,e),st(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ml=oe())),r&4&&Ia(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(Ne=(u=Ne)||g,Je(t,e),Ne=u):Je(t,e),st(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!g&&e.mode&1)for(D=e,g=e.child;g!==null;){for(h=D=g;D!==null;){switch(m=D,S=m.child,m.tag){case 0:case 11:case 14:case 15:or(4,m,m.return);break;case 1:xn(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(y){ne(r,n,y)}}break;case 5:xn(m,m.return);break;case 22:if(m.memoizedState!==null){Fa(h);continue}}S!==null?(S.return=m,D=S):Fa(h)}g=g.sibling}e:for(g=null,h=e;;){if(h.tag===5){if(g===null){g=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,a=h.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Nu("display",s))}catch(y){ne(e,e.return,y)}}}else if(h.tag===6){if(g===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(y){ne(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;g===h&&(g=null),h=h.return}g===h&&(g=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Je(t,e),st(e),r&4&&Ia(e);break;case 21:break;default:Je(t,e),st(e)}}function st(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gc(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ur(i,""),r.flags&=-33);var o=Oa(e);Ns(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Oa(e);ks(e,l,s);break;default:throw Error(P(161))}}catch(a){ne(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hp(e,t,n){D=e,Jc(e)}function Jc(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Yr;if(!s){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ne;l=Yr;var u=Ne;if(Yr=s,(Ne=a)&&!u)for(D=i;D!==null;)s=D,a=s.child,s.tag===22&&s.memoizedState!==null?Wa(i):a!==null?(a.return=s,D=a):Wa(i);for(;o!==null;)D=o,Jc(o),o=o.sibling;D=i,Yr=l,Ne=u}Aa(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,D=o):Aa(e)}}function Aa(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ne||Qi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ne)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&xa(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}xa(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;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 u=t.alternate;if(u!==null){var g=u.memoizedState;if(g!==null){var h=g.dehydrated;h!==null&&pr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}Ne||t.flags&512&&xs(t)}catch(m){ne(t,t.return,m)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Fa(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Wa(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qi(4,t)}catch(a){ne(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ne(t,i,a)}}var o=t.return;try{xs(t)}catch(a){ne(t,o,a)}break;case 5:var s=t.return;try{xs(t)}catch(a){ne(t,s,a)}}}catch(a){ne(t,t.return,a)}if(t===e){D=null;break}var l=t.sibling;if(l!==null){l.return=t.return,D=l;break}D=t.return}}var Bp=Math.ceil,Ti=Nt.ReactCurrentDispatcher,pl=Nt.ReactCurrentOwner,Ge=Nt.ReactCurrentBatchConfig,$=0,fe=null,le=null,ge=0,Fe=0,kn=Xt(0),ce=0,Er=null,rn=0,Yi=0,hl=0,sr=null,Te=null,ml=0,In=1/0,ht=null,Li=!1,Es=null,Wt=null,Kr=!1,Lt=null,Mi=0,lr=0,Ps=null,ci=-1,di=0;function _e(){return $&6?oe():ci!==-1?ci:ci=oe()}function Ut(e){return e.mode&1?$&2&&ge!==0?ge&-ge:Pp.transition!==null?(di===0&&(di=Iu()),di):(e=X,e!==0||(e=window.event,e=e===void 0?16:$u(e.type)),e):1}function it(e,t,n,r){if(50<lr)throw lr=0,Ps=null,Error(P(185));Cr(e,n,r),(!($&2)||e!==fe)&&(e===fe&&(!($&2)&&(Yi|=n),ce===4&&Rt(e,ge)),Ie(e,r),n===1&&$===0&&!(t.mode&1)&&(In=oe()+500,$i&&Qt()))}function Ie(e,t){var n=e.callbackNode;Pf(e,t);var r=vi(e,e===fe?ge:0);if(r===0)n!==null&&Kl(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Kl(n),t===1)e.tag===0?Ep(Ua.bind(null,e)):ac(Ua.bind(null,e)),Sp(function(){!($&6)&&Qt()}),n=null;else{switch(Au(r)){case 1:n=Hs;break;case 4:n=Mu;break;case 16:n=gi;break;case 536870912:n=Ou;break;default:n=gi}n=sd(n,qc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function qc(e,t){if(ci=-1,di=0,$&6)throw Error(P(327));var n=e.callbackNode;if(jn()&&e.callbackNode!==n)return null;var r=vi(e,e===fe?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Oi(e,r);else{t=r;var i=$;$|=2;var o=td();(fe!==e||ge!==t)&&(ht=null,In=oe()+500,Jt(e,t));do try{Xp();break}catch(l){ed(e,l)}while(!0);el(),Ti.current=o,$=i,le!==null?t=0:(fe=null,ge=0,t=ce)}if(t!==0){if(t===2&&(i=Jo(e),i!==0&&(r=i,t=Cs(e,i))),t===1)throw n=Er,Jt(e,0),Rt(e,r),Ie(e,oe()),n;if(t===6)Rt(e,r);else{if(i=e.current.alternate,!(r&30)&&!$p(i)&&(t=Oi(e,r),t===2&&(o=Jo(e),o!==0&&(r=o,t=Cs(e,o))),t===1))throw n=Er,Jt(e,0),Rt(e,r),Ie(e,oe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:Kt(e,Te,ht);break;case 3:if(Rt(e,r),(r&130023424)===r&&(t=ml+500-oe(),10<t)){if(vi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ss(Kt.bind(null,e,Te,ht),t);break}Kt(e,Te,ht);break;case 4:if(Rt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-rt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Bp(r/1960))-r,10<r){e.timeoutHandle=ss(Kt.bind(null,e,Te,ht),r);break}Kt(e,Te,ht);break;case 5:Kt(e,Te,ht);break;default:throw Error(P(329))}}}return Ie(e,oe()),e.callbackNode===n?qc.bind(null,e):null}function Cs(e,t){var n=sr;return e.current.memoizedState.isDehydrated&&(Jt(e,t).flags|=256),e=Oi(e,t),e!==2&&(t=Te,Te=n,t!==null&&zs(t)),e}function zs(e){Te===null?Te=e:Te.push.apply(Te,e)}function $p(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 i=n[r],o=i.getSnapshot;i=i.value;try{if(!ot(o(),i))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 Rt(e,t){for(t&=~hl,t&=~Yi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function Ua(e){if($&6)throw Error(P(327));jn();var t=vi(e,0);if(!(t&1))return Ie(e,oe()),null;var n=Oi(e,t);if(e.tag!==0&&n===2){var r=Jo(e);r!==0&&(t=r,n=Cs(e,r))}if(n===1)throw n=Er,Jt(e,0),Rt(e,t),Ie(e,oe()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kt(e,Te,ht),Ie(e,oe()),null}function gl(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(In=oe()+500,$i&&Qt())}}function on(e){Lt!==null&&Lt.tag===0&&!($&6)&&jn();var t=$;$|=1;var n=Ge.transition,r=X;try{if(Ge.transition=null,X=1,e)return e()}finally{X=r,Ge.transition=n,$=t,!($&6)&&Qt()}}function vl(){Fe=kn.current,G(kn)}function Jt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,wp(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(Zs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ki();break;case 3:Mn(),G(Me),G(Ee),sl();break;case 5:ol(r);break;case 4:Mn();break;case 13:G(J);break;case 19:G(J);break;case 10:tl(r.type._context);break;case 22:case 23:vl()}n=n.return}if(fe=e,le=e=Ht(e.current,null),ge=Fe=t,ce=0,Er=null,hl=Yi=rn=0,Te=sr=null,bt!==null){for(t=0;t<bt.length;t++)if(n=bt[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}bt=null}return e}function ed(e,t){do{var n=le;try{if(el(),li.current=Ri,Di){for(var r=q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Di=!1}if(nn=0,de=ue=q=null,ir=!1,xr=0,pl.current=null,n===null||n.return===null){ce=1,Er=t,le=null;break}e:{var o=e,s=n.return,l=n,a=t;if(t=ge,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,g=l,h=g.tag;if(!(g.mode&1)&&(h===0||h===11||h===15)){var m=g.alternate;m?(g.updateQueue=m.updateQueue,g.memoizedState=m.memoizedState,g.lanes=m.lanes):(g.updateQueue=null,g.memoizedState=null)}var S=za(s);if(S!==null){S.flags&=-257,_a(S,s,l,o,t),S.mode&1&&Ca(o,u,t),t=S,a=u;var x=t.updateQueue;if(x===null){var y=new Set;y.add(a),t.updateQueue=y}else x.add(a);break e}else{if(!(t&1)){Ca(o,u,t),yl();break e}a=Error(P(426))}}else if(b&&l.mode&1){var T=za(s);if(T!==null){!(T.flags&65536)&&(T.flags|=256),_a(T,s,l,o,t),Js(On(a,l));break e}}o=a=On(a,l),ce!==4&&(ce=2),sr===null?sr=[o]:sr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Ac(o,a,t);Sa(o,p);break e;case 1:l=a;var c=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Wt===null||!Wt.has(d)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=Fc(o,l,t);Sa(o,v);break e}}o=o.return}while(o!==null)}rd(n)}catch(w){t=w,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function td(){var e=Ti.current;return Ti.current=Ri,e===null?Ri:e}function yl(){(ce===0||ce===3||ce===2)&&(ce=4),fe===null||!(rn&268435455)&&!(Yi&268435455)||Rt(fe,ge)}function Oi(e,t){var n=$;$|=2;var r=td();(fe!==e||ge!==t)&&(ht=null,Jt(e,t));do try{Vp();break}catch(i){ed(e,i)}while(!0);if(el(),$=n,Ti.current=r,le!==null)throw Error(P(261));return fe=null,ge=0,ce}function Vp(){for(;le!==null;)nd(le)}function Xp(){for(;le!==null&&!gf();)nd(le)}function nd(e){var t=od(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?rd(e):le=t,pl.current=null}function rd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Fp(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ce=6,le=null;return}}else if(n=Ap(n,t,Fe),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ce===0&&(ce=5)}function Kt(e,t,n){var r=X,i=Ge.transition;try{Ge.transition=null,X=1,Qp(e,t,n,r)}finally{Ge.transition=i,X=r}return null}function Qp(e,t,n,r){do jn();while(Lt!==null);if($&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Cf(e,o),e===fe&&(le=fe=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Kr||(Kr=!0,sd(gi,function(){return jn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ge.transition,Ge.transition=null;var s=X;X=1;var l=$;$|=4,pl.current=null,Up(e,n),Zc(n,e),fp(is),yi=!!rs,is=rs=null,e.current=n,Hp(n),vf(),$=l,X=s,Ge.transition=o}else e.current=n;if(Kr&&(Kr=!1,Lt=e,Mi=i),o=e.pendingLanes,o===0&&(Wt=null),Sf(n.stateNode),Ie(e,oe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Li)throw Li=!1,e=Es,Es=null,e;return Mi&1&&e.tag!==0&&jn(),o=e.pendingLanes,o&1?e===Ps?lr++:(lr=0,Ps=e):lr=0,Qt(),null}function jn(){if(Lt!==null){var e=Au(Mi),t=Ge.transition,n=X;try{if(Ge.transition=null,X=16>e?16:e,Lt===null)var r=!1;else{if(e=Lt,Lt=null,Mi=0,$&6)throw Error(P(331));var i=$;for($|=4,D=e.current;D!==null;){var o=D,s=o.child;if(D.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(D=u;D!==null;){var g=D;switch(g.tag){case 0:case 11:case 15:or(8,g,o)}var h=g.child;if(h!==null)h.return=g,D=h;else for(;D!==null;){g=D;var m=g.sibling,S=g.return;if(Kc(g),g===u){D=null;break}if(m!==null){m.return=S,D=m;break}D=S}}}var x=o.alternate;if(x!==null){var y=x.child;if(y!==null){x.child=null;do{var T=y.sibling;y.sibling=null,y=T}while(y!==null)}}D=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,D=s;else e:for(;D!==null;){if(o=D,o.flags&2048)switch(o.tag){case 0:case 11:case 15:or(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,D=p;break e}D=o.return}}var c=e.current;for(D=c;D!==null;){s=D;var d=s.child;if(s.subtreeFlags&2064&&d!==null)d.return=s,D=d;else e:for(s=c;D!==null;){if(l=D,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Qi(9,l)}}catch(w){ne(l,l.return,w)}if(l===s){D=null;break e}var v=l.sibling;if(v!==null){v.return=l.return,D=v;break e}D=l.return}}if($=i,Qt(),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Fi,e)}catch{}r=!0}return r}finally{X=n,Ge.transition=t}}return!1}function Ha(e,t,n){t=On(n,t),t=Ac(e,t,1),e=Ft(e,t,1),t=_e(),e!==null&&(Cr(e,1,t),Ie(e,t))}function ne(e,t,n){if(e.tag===3)Ha(e,e,n);else for(;t!==null;){if(t.tag===3){Ha(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wt===null||!Wt.has(r))){e=On(n,e),e=Fc(t,e,1),t=Ft(t,e,1),e=_e(),t!==null&&(Cr(t,1,e),Ie(t,e));break}}t=t.return}}function Yp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(ge&n)===n&&(ce===4||ce===3&&(ge&130023424)===ge&&500>oe()-ml?Jt(e,0):hl|=n),Ie(e,t)}function id(e,t){t===0&&(e.mode&1?(t=Fr,Fr<<=1,!(Fr&130023424)&&(Fr=4194304)):t=1);var n=_e();e=xt(e,t),e!==null&&(Cr(e,t,n),Ie(e,n))}function Kp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),id(e,n)}function Gp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),id(e,n)}var od;od=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Me.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Ip(e,t,n);Le=!!(e.flags&131072)}else Le=!1,b&&t.flags&1048576&&uc(t,Pi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ui(e,t),e=t.pendingProps;var i=Rn(t,Ee.current);_n(t,n),i=al(null,t,r,e,i,n);var o=ul();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(o=!0,Ni(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rl(t),i.updater=Xi,t.stateNode=i,i._reactInternals=t,ps(t,r,e,n),t=gs(null,t,r,!0,o,n)):(t.tag=0,b&&o&&bs(t),ze(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ui(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Zp(r),e=et(r,e),i){case 0:t=ms(null,t,r,e,n);break e;case 1:t=Ra(null,t,r,e,n);break e;case 11:t=ja(null,t,r,e,n);break e;case 14:t=Da(null,t,r,et(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),ms(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ra(e,t,r,i,n);case 3:e:{if(Bc(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,i=o.element,mc(e,t),_i(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){i=On(Error(P(423)),t),t=Ta(e,t,r,n,i);break e}else if(r!==i){i=On(Error(P(424)),t),t=Ta(e,t,r,n,i);break e}else for(We=At(t.stateNode.containerInfo.firstChild),Ue=t,b=!0,nt=null,n=pc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Tn(),r===i){t=kt(e,t,n);break e}ze(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&cs(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,os(r,i)?s=null:o!==null&&os(r,o)&&(t.flags|=32),Hc(e,t),ze(e,t,s,n),t.child;case 6:return e===null&&cs(t),null;case 13:return $c(e,t,n);case 4:return il(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ln(t,null,r,n):ze(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),ja(e,t,r,i,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Y(Ci,r._currentValue),r._currentValue=s,o!==null)if(ot(o.value,s)){if(o.children===i.children&&!Me.current){t=kt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=yt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var g=u.pending;g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ds(o.return,n,t),l.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(P(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ds(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}ze(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_n(t,n),i=be(i),r=r(i),t.flags|=1,ze(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Da(e,t,r,i,n);case 15:return Wc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),ui(e,t),t.tag=1,Oe(r)?(e=!0,Ni(t)):e=!1,_n(t,n),Ic(t,r,i),ps(t,r,i,n),gs(null,t,r,!0,e,n);case 19:return Vc(e,t,n);case 22:return Uc(e,t,n)}throw Error(P(156,t.tag))};function sd(e,t){return Lu(e,t)}function bp(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 Ke(e,t,n,r){return new bp(e,t,n,r)}function wl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zp(e){if(typeof e=="function")return wl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fs)return 11;if(e===Ws)return 14}return 2}function Ht(e,t){var n=e.alternate;return n===null?(n=Ke(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 fi(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")wl(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fn:return qt(n.children,i,o,t);case As:s=8,i|=8;break;case Ao:return e=Ke(12,n,t,i|2),e.elementType=Ao,e.lanes=o,e;case Fo:return e=Ke(13,n,t,i),e.elementType=Fo,e.lanes=o,e;case Wo:return e=Ke(19,n,t,i),e.elementType=Wo,e.lanes=o,e;case gu:return Ki(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hu:s=10;break e;case mu:s=9;break e;case Fs:s=11;break e;case Ws:s=14;break e;case _t:s=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ke(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function qt(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Ki(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=gu,e.lanes=n,e.stateNode={isHidden:!1},e}function jo(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function Do(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Jp(e,t,n,r,i){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=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sl(e,t,n,r,i,o,s,l,a){return e=new Jp(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ke(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rl(o),e}function qp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ld(e){if(!e)return $t;e=e._reactInternals;e:{if(ln(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Oe(n))return lc(e,n,t)}return t}function ad(e,t,n,r,i,o,s,l,a){return e=Sl(n,r,!0,e,i,o,s,l,a),e.context=ld(null),n=e.current,r=_e(),i=Ut(n),o=yt(r,i),o.callback=t??null,Ft(n,o,i),e.current.lanes=i,Cr(e,i,r),Ie(e,r),e}function Gi(e,t,n,r){var i=t.current,o=_e(),s=Ut(i);return n=ld(n),t.context===null?t.context=n:t.pendingContext=n,t=yt(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ft(i,t,s),e!==null&&(it(e,i,s,o),si(e,i,s)),s}function Ii(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 Ba(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xl(e,t){Ba(e,t),(e=e.alternate)&&Ba(e,t)}function eh(){return null}var ud=typeof reportError=="function"?reportError:function(e){console.error(e)};function kl(e){this._internalRoot=e}bi.prototype.render=kl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Gi(e,t,null,null)};bi.prototype.unmount=kl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;on(function(){Gi(null,e,null,null)}),t[St]=null}};function bi(e){this._internalRoot=e}bi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&t!==0&&t<Dt[n].priority;n++);Dt.splice(n,0,e),n===0&&Bu(e)}};function Nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $a(){}function th(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Ii(s);o.call(u)}}var s=ad(t,r,e,0,null,!1,!1,"",$a);return e._reactRootContainer=s,e[St]=s.current,gr(e.nodeType===8?e.parentNode:e),on(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Ii(a);l.call(u)}}var a=Sl(e,0,!1,null,null,!1,!1,"",$a);return e._reactRootContainer=a,e[St]=a.current,gr(e.nodeType===8?e.parentNode:e),on(function(){Gi(t,a,n,r)}),a}function Ji(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var a=Ii(s);l.call(a)}}Gi(t,s,e,i)}else s=th(n,t,e,i,r);return Ii(s)}Fu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Zn(t.pendingLanes);n!==0&&(Bs(t,n|1),Ie(t,oe()),!($&6)&&(In=oe()+500,Qt()))}break;case 13:on(function(){var r=xt(e,1);if(r!==null){var i=_e();it(r,e,1,i)}}),xl(e,1)}};$s=function(e){if(e.tag===13){var t=xt(e,134217728);if(t!==null){var n=_e();it(t,e,134217728,n)}xl(e,134217728)}};Wu=function(e){if(e.tag===13){var t=Ut(e),n=xt(e,t);if(n!==null){var r=_e();it(n,e,t,r)}xl(e,t)}};Uu=function(){return X};Hu=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};Go=function(e,t,n){switch(t){case"input":if(Bo(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 i=Bi(r);if(!i)throw Error(P(90));yu(r),Bo(r,i)}}}break;case"textarea":Su(e,n);break;case"select":t=n.value,t!=null&&En(e,!!n.multiple,t,!1)}};zu=gl;_u=on;var nh={usingClientEntryPoint:!1,Events:[_r,gn,Bi,Pu,Cu,gl]},Yn={findFiberByHostInstance:Gt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rh={bundleType:Yn.bundleType,version:Yn.version,rendererPackageName:Yn.rendererPackageName,rendererConfig:Yn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ru(e),e===null?null:e.stateNode},findFiberByHostInstance:Yn.findFiberByHostInstance||eh,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 Gr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gr.isDisabled&&Gr.supportsFiber)try{Fi=Gr.inject(rh),ct=Gr}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nh;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nl(t))throw Error(P(200));return qp(e,t,null,n)};$e.createRoot=function(e,t){if(!Nl(e))throw Error(P(299));var n=!1,r="",i=ud;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Sl(e,1,!1,null,null,n,!1,r,i),e[St]=t.current,gr(e.nodeType===8?e.parentNode:e),new kl(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Ru(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return on(e)};$e.hydrate=function(e,t,n){if(!Zi(t))throw Error(P(200));return Ji(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!Nl(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=ud;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ad(t,null,e,1,n??null,i,!1,o,s),e[St]=t.current,gr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new bi(t)};$e.render=function(e,t,n){if(!Zi(t))throw Error(P(200));return Ji(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!Zi(e))throw Error(P(40));return e._reactRootContainer?(on(function(){Ji(null,null,e,!1,function(){e._reactRootContainer=null,e[St]=null})}),!0):!1};$e.unstable_batchedUpdates=gl;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zi(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Ji(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function cd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cd)}catch(e){console.error(e)}}cd(),cu.exports=$e;var Dr=cu.exports,Va=Dr;Oo.createRoot=Va.createRoot,Oo.hydrateRoot=Va.hydrateRoot;var qi={exports:{}},dd={},fd={exports:{}},ih="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oh=ih,sh=oh;function pd(){}function hd(){}hd.resetWarningCache=pd;var lh=function(){function e(r,i,o,s,l,a){if(a!==sh){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hd,resetWarningCache:pd};return n.PropTypes=n,n};fd.exports=lh();var md=fd.exports;function gd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=gd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xa(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gd(e))&&(r&&(r+=" "),r+=t);return r}const ah=Object.freeze(Object.defineProperty({__proto__:null,clsx:Xa,default:Xa},Symbol.toStringTag,{value:"Module"})),uh=Rd(ah);var re={},ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.dontSetMe=hh;ft.findInArray=ch;ft.int=ph;ft.isFunction=dh;ft.isNum=fh;function ch(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function dh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function fh(e){return typeof e=="number"&&!isNaN(e)}function ph(e){return parseInt(e,10)}function hh(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var an={};Object.defineProperty(an,"__esModule",{value:!0});an.browserPrefixToKey=yd;an.browserPrefixToStyle=mh;an.default=void 0;an.getPrefix=vd;const Ro=["Moz","Webkit","O","ms"];function vd(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<Ro.length;r++)if(yd(t,Ro[r])in n)return Ro[r];return""}function yd(e,t){return t?"".concat(t).concat(gh(e)):e}function mh(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function gh(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}an.default=vd();Object.defineProperty(re,"__esModule",{value:!0});re.addClassName=xd;re.addEvent=wh;re.addUserSelectStyles=Dh;re.createCSSTransform=Ch;re.createSVGTransform=zh;re.getTouch=_h;re.getTouchIdentifier=jh;re.getTranslation=El;re.innerHeight=Nh;re.innerWidth=Eh;re.matchesSelector=Sd;re.matchesSelectorAndParentsTo=yh;re.offsetXYFromParent=Ph;re.outerHeight=xh;re.outerWidth=kh;re.removeClassName=kd;re.removeEvent=Sh;re.removeUserSelectStyles=Rh;var He=ft,Qa=vh(an);function wd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(wd=function(r){return r?n:t})(e)}function vh(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=wd(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}let br="";function Sd(e,t){return br||(br=(0,He.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,He.isFunction)(e[n])})),(0,He.isFunction)(e[br])?e[br](t):!1}function yh(e,t,n){let r=e;do{if(Sd(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function wh(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function Sh(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function xh(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,He.int)(n.borderTopWidth),t+=(0,He.int)(n.borderBottomWidth),t}function kh(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,He.int)(n.borderLeftWidth),t+=(0,He.int)(n.borderRightWidth),t}function Nh(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,He.int)(n.paddingTop),t-=(0,He.int)(n.paddingBottom),t}function Eh(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,He.int)(n.paddingLeft),t-=(0,He.int)(n.paddingRight),t}function Ph(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-i.left)/n,s=(e.clientY+t.scrollTop-i.top)/n;return{x:o,y:s}}function Ch(e,t){const n=El(e,t,"px");return{[(0,Qa.browserPrefixToKey)("transform",Qa.default)]:n}}function zh(e,t){return El(e,t,"")}function El(e,t,n){let{x:r,y:i}=e,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const s="".concat(typeof t.x=="string"?t.x:t.x+n),l="".concat(typeof t.y=="string"?t.y:t.y+n);o="translate(".concat(s,", ").concat(l,")")+o}return o}function _h(e,t){return e.targetTouches&&(0,He.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,He.findInArray)(e.changedTouches,n=>t===n.identifier)}function jh(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Dh(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
41
|
+
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
42
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&xd(e.body,"react-draggable-transparent-selection")}function Rh(e){if(e)try{if(e.body&&kd(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function xd(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function kd(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.canDragX=Mh;pt.canDragY=Oh;pt.createCoreData=Ah;pt.createDraggableData=Fh;pt.getBoundPosition=Th;pt.getControlPosition=Ih;pt.snapToGrid=Lh;var Ae=ft,Nn=re;function Th(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:Wh(r);const i=Pl(e);if(typeof r=="string"){const{ownerDocument:o}=i,s=o.defaultView;let l;if(r==="parent"?l=i.parentNode:l=o.querySelector(r),!(l instanceof s.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const a=l,u=s.getComputedStyle(i),g=s.getComputedStyle(a);r={left:-i.offsetLeft+(0,Ae.int)(g.paddingLeft)+(0,Ae.int)(u.marginLeft),top:-i.offsetTop+(0,Ae.int)(g.paddingTop)+(0,Ae.int)(u.marginTop),right:(0,Nn.innerWidth)(a)-(0,Nn.outerWidth)(i)-i.offsetLeft+(0,Ae.int)(g.paddingRight)-(0,Ae.int)(u.marginRight),bottom:(0,Nn.innerHeight)(a)-(0,Nn.outerHeight)(i)-i.offsetTop+(0,Ae.int)(g.paddingBottom)-(0,Ae.int)(u.marginBottom)}}return(0,Ae.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Ae.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Ae.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Ae.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function Lh(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function Mh(e){return e.props.axis==="both"||e.props.axis==="x"}function Oh(e){return e.props.axis==="both"||e.props.axis==="y"}function Ih(e,t,n){const r=typeof t=="number"?(0,Nn.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=Pl(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Nn.offsetXYFromParent)(r||e,o,n.props.scale)}function Ah(e,t,n){const r=!(0,Ae.isNum)(e.lastX),i=Pl(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function Fh(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function Wh(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Pl(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var eo={},to={};Object.defineProperty(to,"__esModule",{value:!0});to.default=Uh;function Uh(){}Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var To=Bh(z),Re=Cl(md),Hh=Cl(Dr),ke=re,Ct=pt,Lo=ft,Kn=Cl(to);function Cl(e){return e&&e.__esModule?e:{default:e}}function Nd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nd=function(r){return r?n:t})(e)}function Bh(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nd(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function Ce(e,t,n){return t=$h(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $h(e){var t=Vh(e,"string");return typeof t=="symbol"?t:String(t)}function Vh(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const qe={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let zt=qe.mouse,no=class extends To.Component{constructor(){super(...arguments),Ce(this,"dragging",!1),Ce(this,"lastX",NaN),Ce(this,"lastY",NaN),Ce(this,"touchIdentifier",null),Ce(this,"mounted",!1),Ce(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ke.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,ke.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,ke.getTouchIdentifier)(t);this.touchIdentifier=i;const o=(0,Ct.getControlPosition)(t,i,this);if(o==null)return;const{x:s,y:l}=o,a=(0,Ct.createCoreData)(this,s,l);(0,Kn.default)("DraggableCore: handleDragStart: %j",a),(0,Kn.default)("calling",this.props.onStart),!(this.props.onStart(t,a)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ke.addUserSelectStyles)(r),this.dragging=!0,this.lastX=s,this.lastY=l,(0,ke.addEvent)(r,zt.move,this.handleDrag),(0,ke.addEvent)(r,zt.stop,this.handleDragStop))}),Ce(this,"handleDrag",t=>{const n=(0,Ct.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let l=r-this.lastX,a=i-this.lastY;if([l,a]=(0,Ct.snapToGrid)(this.props.grid,l,a),!l&&!a)return;r=this.lastX+l,i=this.lastY+a}const o=(0,Ct.createCoreData)(this,r,i);if((0,Kn.default)("DraggableCore: handleDrag: %j",o),this.props.onDrag(t,o)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=r,this.lastY=i}),Ce(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,Ct.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let a=r-this.lastX||0,u=i-this.lastY||0;[a,u]=(0,Ct.snapToGrid)(this.props.grid,a,u),r=this.lastX+a,i=this.lastY+u}const o=(0,Ct.createCoreData)(this,r,i);if(this.props.onStop(t,o)===!1||this.mounted===!1)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,ke.removeUserSelectStyles)(l.ownerDocument),(0,Kn.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,Kn.default)("DraggableCore: Removing handlers"),(0,ke.removeEvent)(l.ownerDocument,zt.move,this.handleDrag),(0,ke.removeEvent)(l.ownerDocument,zt.stop,this.handleDragStop))}),Ce(this,"onMouseDown",t=>(zt=qe.mouse,this.handleDragStart(t))),Ce(this,"onMouseUp",t=>(zt=qe.mouse,this.handleDragStop(t))),Ce(this,"onTouchStart",t=>(zt=qe.touch,this.handleDragStart(t))),Ce(this,"onTouchEnd",t=>(zt=qe.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,ke.addEvent)(t,qe.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,ke.removeEvent)(n,qe.mouse.move,this.handleDrag),(0,ke.removeEvent)(n,qe.touch.move,this.handleDrag),(0,ke.removeEvent)(n,qe.mouse.stop,this.handleDragStop),(0,ke.removeEvent)(n,qe.touch.stop,this.handleDragStop),(0,ke.removeEvent)(t,qe.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ke.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:Hh.default.findDOMNode(this)}render(){return To.cloneElement(To.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};eo.default=no;Ce(no,"displayName","DraggableCore");Ce(no,"propTypes",{allowAnyClick:Re.default.bool,children:Re.default.node.isRequired,disabled:Re.default.bool,enableUserSelectHack:Re.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Re.default.arrayOf(Re.default.number),handle:Re.default.string,cancel:Re.default.string,nodeRef:Re.default.object,onStart:Re.default.func,onDrag:Re.default.func,onStop:Re.default.func,onMouseDown:Re.default.func,scale:Re.default.number,className:Lo.dontSetMe,style:Lo.dontSetMe,transform:Lo.dontSetMe});Ce(no,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return a.default}}),e.default=void 0;var t=m(z),n=g(md),r=g(Dr),i=g(uh),o=re,s=pt,l=ft,a=g(eo),u=g(to);function g(c){return c&&c.__esModule?c:{default:c}}function h(c){if(typeof WeakMap!="function")return null;var d=new WeakMap,v=new WeakMap;return(h=function(w){return w?v:d})(c)}function m(c,d){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var v=h(d);if(v&&v.has(c))return v.get(c);var w={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in c)if(k!=="default"&&Object.prototype.hasOwnProperty.call(c,k)){var C=N?Object.getOwnPropertyDescriptor(c,k):null;C&&(C.get||C.set)?Object.defineProperty(w,k,C):w[k]=c[k]}return w.default=c,v&&v.set(c,w),w}function S(){return S=Object.assign?Object.assign.bind():function(c){for(var d=1;d<arguments.length;d++){var v=arguments[d];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(c[w]=v[w])}return c},S.apply(this,arguments)}function x(c,d,v){return d=y(d),d in c?Object.defineProperty(c,d,{value:v,enumerable:!0,configurable:!0,writable:!0}):c[d]=v,c}function y(c){var d=T(c,"string");return typeof d=="symbol"?d:String(d)}function T(c,d){if(typeof c!="object"||c===null)return c;var v=c[Symbol.toPrimitive];if(v!==void 0){var w=v.call(c,d);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(c)}class p extends t.Component{static getDerivedStateFromProps(d,v){let{position:w}=d,{prevPropsPosition:N}=v;return w&&(!N||w.x!==N.x||w.y!==N.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:N}),{x:w.x,y:w.y,prevPropsPosition:{...w}}):null}constructor(d){super(d),x(this,"onDragStart",(v,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(v,(0,s.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(v,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const N=(0,s.createDraggableData)(this,w),k={x:N.x,y:N.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:R}=k;k.x+=this.state.slackX,k.y+=this.state.slackY;const[A,H]=(0,s.getBoundPosition)(this,k.x,k.y);k.x=A,k.y=H,k.slackX=this.state.slackX+(O-k.x),k.slackY=this.state.slackY+(R-k.y),N.x=k.x,N.y=k.y,N.deltaX=k.x-this.state.x,N.deltaY=k.y-this.state.y}if(this.props.onDrag(v,N)===!1)return!1;this.setState(k)}),x(this,"onDragStop",(v,w)=>{if(!this.state.dragging||this.props.onStop(v,(0,s.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const k={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:R}=this.props.position;k.x=O,k.y=R}this.setState(k)}),this.state={dragging:!1,dragged:!1,x:d.position?d.position.x:d.defaultPosition.x,y:d.position?d.position.y:d.defaultPosition.y,prevPropsPosition:{...d.position},slackX:0,slackY:0,isElementSVG:!1},d.position&&!(d.onDrag||d.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var d,v;return(d=(v=this.props)===null||v===void 0||(v=v.nodeRef)===null||v===void 0?void 0:v.current)!==null&&d!==void 0?d:r.default.findDOMNode(this)}render(){const{axis:d,bounds:v,children:w,defaultPosition:N,defaultClassName:k,defaultClassNameDragging:C,defaultClassNameDragged:O,position:R,positionOffset:A,scale:H,...V}=this.props;let pe={},ye=null;const he=!!!R||this.state.dragging,_=R||N,I={x:(0,s.canDragX)(this)&&he?this.state.x:_.x,y:(0,s.canDragY)(this)&&he?this.state.y:_.y};this.state.isElementSVG?ye=(0,o.createSVGTransform)(I,A):pe=(0,o.createCSSTransform)(I,A);const j=(0,i.default)(w.props.className||"",k,{[C]:this.state.dragging,[O]:this.state.dragged});return t.createElement(a.default,S({},V,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:j,style:{...w.props.style,...pe},transform:ye}))}}e.default=p,x(p,"displayName","Draggable"),x(p,"propTypes",{...a.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),x(p,"defaultProps",{...a.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(dd);const{default:Ed,DraggableCore:Xh}=dd;qi.exports=Ed;qi.exports.default=Ed;qi.exports.DraggableCore=Xh;var Qh=qi.exports;const Yh=Ja(Qh);var se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},se.apply(this,arguments)},Ya={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Ka={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Zr={width:"20px",height:"20px",position:"absolute",zIndex:1},Kh={top:se(se({},Ya),{top:"-5px"}),right:se(se({},Ka),{left:void 0,right:"-5px"}),bottom:se(se({},Ya),{top:void 0,bottom:"-5px"}),left:se(se({},Ka),{left:"-5px"}),topRight:se(se({},Zr),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:se(se({},Zr),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:se(se({},Zr),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:se(se({},Zr),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Gh=z.memo(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,o=e.className,s=z.useCallback(function(u){t(u,n)},[t,n]),l=z.useCallback(function(u){t(u,n)},[t,n]),a=z.useMemo(function(){return se(se({position:"absolute",userSelect:"none"},Kh[n]),i??{})},[i,n]);return f.jsx("div",{className:o||void 0,style:a,onMouseDown:s,onTouchStart:l,children:r})}),bh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),at=function(){return at=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},at.apply(this,arguments)},Zh={width:"auto",height:"auto"},Jr=function(e,t,n){return Math.max(Math.min(e,n),t)},Ga=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},cn=function(e,t){return new RegExp(e,"i").test(t)},qr=function(e){return!!(e.touches&&e.touches.length)},Jh=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},ba=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(o,s,l){return Math.abs(s-e)<Math.abs(t[o]-e)?l:o},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},Mo=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},ei=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},qh=function(e,t,n,r,i,o,s){return r=ei(r,e.width,t,n),i=ei(i,e.height,t,n),o=ei(o,e.width,t,n),s=ei(s,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof o>"u"?void 0:Number(o),minHeight:typeof s>"u"?void 0:Number(s)}},em=function(e){return Array.isArray(e)?e:[e,e]},tm=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Za="__resizable_base__",nm=function(e){bh(t,e);function t(n){var r,i,o,s,l=e.call(this,n)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var a=l.parentNode;if(!a)return null;var u=l.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(Za):u.className+=Za,a.appendChild(u),u},l.removeBase=function(a){var u=l.parentNode;u&&u.removeChild(a)},l.state={isResizing:!1,width:(i=(r=l.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(s=(o=l.propsSize)===null||o===void 0?void 0:o.height)!==null&&s!==void 0?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Zh},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,o=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:o,this.resizable.style.position=s}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(l){var a;if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&(!((a=n.propsSize[l])===null||a===void 0)&&a.toString().endsWith("%"))){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var u=n.getParentSize(),g=Number(n.state[l].toString().replace("px","")),h=g/u[l]*100;return"".concat(h,"%")}return Mo(n.state[l])},o=r&&typeof r.width<"u"&&!this.state.isResizing?Mo(r.width):i("width"),s=r&&typeof r.height<"u"&&!this.state.isResizing?Mo(r.height):i("height");return{width:o,height:s}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var o={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),o},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,o=this.state.direction,s=i&&cn("left",o),l=i&&cn("top",o),a,u;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(a=s?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),u=l?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(a=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(a=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return a&&Number.isFinite(a)&&(n=n&&n<a?n:a),u&&Number.isFinite(u)&&(r=r&&r<u?r:u),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,o=em(this.props.resizeRatio||1),s=o[0],l=o[1],a=this.state,u=a.direction,g=a.original,h=this.props,m=h.lockAspectRatio,S=h.lockAspectRatioExtraHeight,x=h.lockAspectRatioExtraWidth,y=g.width,T=g.height,p=S||0,c=x||0;return cn("right",u)&&(y=g.width+(n-g.x)*s/i,m&&(T=(y-c)/this.ratio+p)),cn("left",u)&&(y=g.width-(n-g.x)*s/i,m&&(T=(y-c)/this.ratio+p)),cn("bottom",u)&&(T=g.height+(r-g.y)*l/i,m&&(y=(T-p)*this.ratio+c)),cn("top",u)&&(T=g.height-(r-g.y)*l/i,m&&(y=(T-p)*this.ratio+c)),{newWidth:y,newHeight:T}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,o){var s=this.props,l=s.lockAspectRatio,a=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,g=typeof o.width>"u"?10:o.width,h=typeof i.width>"u"||i.width<0?n:i.width,m=typeof o.height>"u"?10:o.height,S=typeof i.height>"u"||i.height<0?r:i.height,x=a||0,y=u||0;if(l){var T=(m-x)*this.ratio+y,p=(S-x)*this.ratio+y,c=(g-y)/this.ratio+x,d=(h-y)/this.ratio+x,v=Math.max(g,T),w=Math.min(h,p),N=Math.max(m,c),k=Math.min(S,d);n=Jr(n,v,w),r=Jr(r,N,k)}else n=Jr(n,g,h),r=Jr(r,m,S);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var o=this.props.bounds.getBoundingClientRect();this.targetLeft=o.left*n,this.targetTop=o.top*n}if(this.resizable){var s=this.resizable.getBoundingClientRect(),l=s.left,a=s.top,u=s.right,g=s.bottom;this.resizableLeft=l*n,this.resizableRight=u*n,this.resizableTop=a*n,this.resizableBottom=g*n}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,o=0;if(n.nativeEvent&&Jh(n.nativeEvent)?(i=n.nativeEvent.clientX,o=n.nativeEvent.clientY):n.nativeEvent&&qr(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,o=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(n,r,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,a=this.window.getComputedStyle(this.resizable);if(a.flexBasis!=="auto"){var u=this.parentNode;if(u){var g=this.window.getComputedStyle(u).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",l=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var h={original:{x:i,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:at(at({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:l};this.setState(h)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&qr(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,o=i.maxWidth,s=i.maxHeight,l=i.minWidth,a=i.minHeight,u=qr(n)?n.touches[0].clientX:n.clientX,g=qr(n)?n.touches[0].clientY:n.clientY,h=this.state,m=h.direction,S=h.original,x=h.width,y=h.height,T=this.getParentSize(),p=qh(T,this.window.innerWidth,this.window.innerHeight,o,s,l,a);o=p.maxWidth,s=p.maxHeight,l=p.minWidth,a=p.minHeight;var c=this.calculateNewSizeFromDirection(u,g),d=c.newHeight,v=c.newWidth,w=this.calculateNewMaxFromBoundary(o,s);this.props.snap&&this.props.snap.x&&(v=ba(v,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(d=ba(d,this.props.snap.y,this.props.snapGap));var N=this.calculateNewSizeFromAspectRatio(v,d,{width:w.maxWidth,height:w.maxHeight},{width:l,height:a});if(v=N.newWidth,d=N.newHeight,this.props.grid){var k=Ga(v,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),C=Ga(d,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),O=this.props.snapGap||0,R=O===0||Math.abs(k-v)<=O?k:v,A=O===0||Math.abs(C-d)<=O?C:d;v=R,d=A}var H={width:v-S.width,height:d-S.height};if(this.delta=H,x&&typeof x=="string"){if(x.endsWith("%")){var V=v/T.width*100;v="".concat(V,"%")}else if(x.endsWith("vw")){var pe=v/this.window.innerWidth*100;v="".concat(pe,"vw")}else if(x.endsWith("vh")){var ye=v/this.window.innerHeight*100;v="".concat(ye,"vh")}}if(y&&typeof y=="string"){if(y.endsWith("%")){var V=d/T.height*100;d="".concat(V,"%")}else if(y.endsWith("vw")){var pe=d/this.window.innerWidth*100;d="".concat(pe,"vw")}else if(y.endsWith("vh")){var ye=d/this.window.innerHeight*100;d="".concat(ye,"vh")}}var Z={width:this.createSizeForCssProperty(v,"width"),height:this.createSizeForCssProperty(d,"height")};this.flexDir==="row"?Z.flexBasis=Z.width:this.flexDir==="column"&&(Z.flexBasis=Z.height);var he=this.state.width!==Z.width,_=this.state.height!==Z.height,I=this.state.flexBasis!==Z.flexBasis,j=he||_||I;j&&Dr.flushSync(function(){r.setState(Z)}),this.props.onResize&&j&&this.props.onResize(n,m,this.resizable,H)}},t.prototype.onMouseUp=function(n){var r,i,o=this.state,s=o.isResizing,l=o.direction;o.original,!(!s||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,l,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:at(at({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,o=r.handleStyles,s=r.handleClasses,l=r.handleWrapperStyle,a=r.handleWrapperClass,u=r.handleComponent;if(!i)return null;var g=Object.keys(i).map(function(h){return i[h]!==!1?f.jsx(Gh,{direction:h,onResizeStart:n.onResizeStart,replaceStyles:o&&o[h],className:s&&s[h],children:u&&u[h]?u[h]:null},h):null});return f.jsx("div",{className:a,style:l,children:g})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(s,l){return tm.indexOf(l)!==-1||(s[l]=n.props[l]),s},{}),i=at(at(at({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return f.jsxs(o,at({style:i,className:this.props.className},r,{ref:function(s){s&&(n.resizable=s)},children:[this.state.isResizing&&f.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(z.PureComponent);/*! *****************************************************************************
|
|
43
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
45
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
46
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
+
|
|
48
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
49
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
50
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
51
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
52
|
+
|
|
53
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
54
|
+
and limitations under the License.
|
|
55
|
+
***************************************************************************** */var _s=function(e,t){return _s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},_s(e,t)};function rm(e,t){_s(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ae=function(){return ae=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ae.apply(this,arguments)};function im(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var om={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},sm=function(e){return{bottom:e,bottomLeft:e,bottomRight:e,left:e,right:e,top:e,topLeft:e,topRight:e}},lm=function(e){rm(t,e);function t(n){var r=e.call(this,n)||this;return r.resizingPosition={x:0,y:0},r.offsetFromParent={left:0,top:0},r.resizableElement={current:null},r.originalPosition={x:0,y:0},r.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:n.maxWidth,maxHeight:n.maxHeight},r.onResizeStart=r.onResizeStart.bind(r),r.onResize=r.onResize.bind(r),r.onResizeStop=r.onResizeStop.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrag=r.onDrag.bind(r),r.onDragStop=r.onDragStop.bind(r),r.getMaxSizesFromProps=r.getMaxSizesFromProps.bind(r),r}return t.prototype.componentDidMount=function(){this.updateOffsetFromParent();var n=this.offsetFromParent,r=n.left,i=n.top,o=this.getDraggablePosition(),s=o.x,l=o.y;this.draggable.setState({x:s-r,y:l-i}),this.forceUpdate()},t.prototype.getDraggablePosition=function(){var n=this.draggable.state,r=n.x,i=n.y;return{x:r,y:i}},t.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},t.prototype.getParentSize=function(){return this.resizable.getParentSize()},t.prototype.getMaxSizesFromProps=function(){var n=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,r=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:n,maxHeight:r}},t.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},t.prototype.getOffsetHeight=function(n){var r=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/r;case"body":return document.body.offsetHeight/r;default:return n.offsetHeight}},t.prototype.getOffsetWidth=function(n){var r=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/r;case"body":return document.body.offsetWidth/r;default:return n.offsetWidth}},t.prototype.onDragStart=function(n,r){this.props.onDragStart&&this.props.onDragStart(n,r);var i=this.getDraggablePosition();if(this.originalPosition=i,!!this.props.bounds){var o=this.getParent(),s=this.props.scale,l;if(this.props.bounds==="parent")l=o;else if(this.props.bounds==="body"){var a=o.getBoundingClientRect(),u=a.left,g=a.top,h=document.body.getBoundingClientRect(),m=-(u-o.offsetLeft*s-h.left)/s,S=-(g-o.offsetTop*s-h.top)/s,x=(document.body.offsetWidth-this.resizable.size.width*s)/s+m,y=(document.body.offsetHeight-this.resizable.size.height*s)/s+S;return this.setState({bounds:{top:S,right:x,bottom:y,left:m}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var T=o.getBoundingClientRect(),p=T.left,c=T.top,d=-(p-o.offsetLeft*s)/s,v=-(c-o.offsetTop*s)/s,x=(window.innerWidth-this.resizable.size.width*s)/s+d,y=(window.innerHeight-this.resizable.size.height*s)/s+v;return this.setState({bounds:{top:v,right:x,bottom:y,left:d}})}else typeof this.props.bounds=="string"?l=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(l=this.props.bounds);if(!(!(l instanceof HTMLElement)||!(o instanceof HTMLElement))){var w=l.getBoundingClientRect(),N=w.left,k=w.top,C=o.getBoundingClientRect(),O=C.left,R=C.top,A=(N-O)/s,H=k-R;if(this.resizable){this.updateOffsetFromParent();var V=this.offsetFromParent;this.setState({bounds:{top:H-V.top,right:A+(l.offsetWidth-this.resizable.size.width)-V.left/s,bottom:H+(l.offsetHeight-this.resizable.size.height)-V.top,left:A-V.left/s}})}}}},t.prototype.onDrag=function(n,r){if(this.props.onDrag){var i=this.offsetFromParent,o=i.left,s=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(n,ae(ae({},r),{x:r.x+o,y:r.y+s}));if(this.props.dragAxis==="x")return this.props.onDrag(n,ae(ae({},r),{x:r.x+o,y:this.originalPosition.y+s,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(n,ae(ae({},r),{x:this.originalPosition.x+o,y:r.y+s,deltaX:0}))}},t.prototype.onDragStop=function(n,r){if(this.props.onDragStop){var i=this.offsetFromParent,o=i.left,s=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(n,ae(ae({},r),{x:r.x+o,y:r.y+s}));if(this.props.dragAxis==="x")return this.props.onDragStop(n,ae(ae({},r),{x:r.x+o,y:this.originalPosition.y+s,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(n,ae(ae({},r),{x:this.originalPosition.x+o,y:r.y+s,deltaX:0}))}},t.prototype.onResizeStart=function(n,r,i){n.stopPropagation(),this.setState({resizing:!0});var o=this.props.scale,s=this.offsetFromParent,l=this.getDraggablePosition();if(this.resizingPosition={x:l.x+s.left,y:l.y+s.top},this.originalPosition=l,this.props.bounds){var a=this.getParent(),u=void 0;this.props.bounds==="parent"?u=a:this.props.bounds==="body"?u=document.body:this.props.bounds==="window"?u=window:typeof this.props.bounds=="string"?u=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(u=this.props.bounds);var g=this.getSelfElement();if(g instanceof Element&&(u instanceof HTMLElement||u===window)&&a instanceof HTMLElement){var h=this.getMaxSizesFromProps(),m=h.maxWidth,S=h.maxHeight,x=this.getParentSize();if(m&&typeof m=="string")if(m.endsWith("%")){var y=Number(m.replace("%",""))/100;m=x.width*y}else m.endsWith("px")&&(m=Number(m.replace("px","")));if(S&&typeof S=="string")if(S.endsWith("%")){var y=Number(S.replace("%",""))/100;S=x.height*y}else S.endsWith("px")&&(S=Number(S.replace("px","")));var T=g.getBoundingClientRect(),p=T.left,c=T.top,d=this.props.bounds==="window"?{left:0,top:0}:u.getBoundingClientRect(),v=d.left,w=d.top,N=this.getOffsetWidth(u),k=this.getOffsetHeight(u),C=r.toLowerCase().endsWith("left"),O=r.toLowerCase().endsWith("right"),R=r.startsWith("top"),A=r.startsWith("bottom");if((C||R)&&this.resizable){var H=(p-v)/o+this.resizable.size.width;this.setState({maxWidth:H>Number(m)?m:H})}if(O||this.props.lockAspectRatio&&!C&&!R){var H=N+(v-p)/o;this.setState({maxWidth:H>Number(m)?m:H})}if((R||C)&&this.resizable){var H=(c-w)/o+this.resizable.size.height;this.setState({maxHeight:H>Number(S)?S:H})}if(A||this.props.lockAspectRatio&&!R&&!C){var H=k+(w-c)/o;this.setState({maxHeight:H>Number(S)?S:H})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(n,r,i)},t.prototype.onResize=function(n,r,i,o){var s=this,l={x:this.originalPosition.x,y:this.originalPosition.y},a=-o.width,u=-o.height,g=["top","left","topLeft","bottomLeft","topRight"];g.includes(r)&&(r==="bottomLeft"?l.x+=a:(r==="topRight"||(l.x+=a),l.y+=u));var h=this.draggable.state;(l.x!==h.x||l.y!==h.y)&&Dr.flushSync(function(){s.draggable.setState(l)}),this.updateOffsetFromParent();var m=this.offsetFromParent,S=this.getDraggablePosition().x+m.left,x=this.getDraggablePosition().y+m.top;this.resizingPosition={x:S,y:x},this.props.onResize&&this.props.onResize(n,r,i,o,{x:S,y:x})},t.prototype.onResizeStop=function(n,r,i,o){this.setState({resizing:!1});var s=this.getMaxSizesFromProps(),l=s.maxWidth,a=s.maxHeight;this.setState({maxWidth:l,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(n,r,i,o,this.resizingPosition)},t.prototype.updateSize=function(n){this.resizable&&this.resizable.updateSize({width:n.width,height:n.height})},t.prototype.updatePosition=function(n){this.draggable.setState(n)},t.prototype.updateOffsetFromParent=function(){var n=this.props.scale,r=this.getParent(),i=this.getSelfElement();if(!r||i===null)return{top:0,left:0};var o=r.getBoundingClientRect(),s=o.left,l=o.top,a=i.getBoundingClientRect(),u=this.getDraggablePosition(),g=r.scrollLeft,h=r.scrollTop;this.offsetFromParent={left:a.left-s+g-u.x*n,top:a.top-l+h-u.y*n}},t.prototype.render=function(){var n=this,r=this.props,i=r.disableDragging,o=r.style,s=r.dragHandleClassName,l=r.position,a=r.onMouseDown,u=r.onMouseUp,g=r.dragAxis,h=r.dragGrid,m=r.bounds,S=r.enableUserSelectHack,x=r.cancel,y=r.children;r.onResizeStart,r.onResize,r.onResizeStop,r.onDragStart,r.onDrag,r.onDragStop;var T=r.resizeHandleStyles,p=r.resizeHandleClasses,c=r.resizeHandleComponent,d=r.enableResizing,v=r.resizeGrid,w=r.resizeHandleWrapperClass,N=r.resizeHandleWrapperStyle,k=r.scale,C=r.allowAnyClick,O=r.dragPositionOffset,R=im(r,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),A=this.props.default?ae({},this.props.default):void 0;delete R.default;var H=i||s?{cursor:"auto"}:{cursor:"move"},V=ae(ae(ae({},om),H),o),pe=this.offsetFromParent,ye=pe.left,Z=pe.top,he;l&&(he={x:l.x-ye,y:l.y-Z});var _=this.state.resizing?void 0:he,I=this.state.resizing?"both":g;return z.createElement(Yh,{ref:function(j){j&&(n.draggable=j)},handle:s?".".concat(s):void 0,defaultPosition:A,onMouseDown:a,onMouseUp:u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:I,disabled:i,grid:h,bounds:m?this.state.bounds:void 0,position:_,enableUserSelectHack:S,cancel:x,scale:k,allowAnyClick:C,nodeRef:this.resizableElement,positionOffset:O},z.createElement(nm,ae({},R,{ref:function(j){j&&(n.resizable=j,n.resizableElement.current=j.resizable)},defaultSize:A,size:this.props.size,enable:typeof d=="boolean"?sm(d):d,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:V,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:v,handleWrapperClass:w,handleWrapperStyle:N,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:T,handleClasses:p,handleComponent:c,scale:this.props.scale}),y))},t.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},t}(z.PureComponent);function am(e){const t=e.split("/").filter(Boolean);if(t.length===0)return e;const n=t[t.length-1];return n==="src"&&t.length>1?t[t.length-2]:n}const um=({projects:e,selectedProject:t,onSelectProject:n,loading:r,runningProcesses:i=[],keyboardFocusedIndex:o=-1,onKeyboardFocusChange:s})=>{if(r)return f.jsx("div",{className:"project-list-loading",children:f.jsx("p",{children:"Loading projects..."})});if(e.length===0)return f.jsxs("div",{className:"project-list-empty",children:[f.jsx("p",{children:"No projects yet"}),f.jsx("p",{className:"hint",children:"Add a project to get started"})]});const l=Ls.useRef(null);return f.jsx("div",{ref:l,className:"project-list",role:"listbox","aria-label":"Projects",tabIndex:0,onFocus:a=>{o<0&&e.length>0&&s&&s(0)},onBlur:a=>{var u;s&&!((u=l.current)!=null&&u.contains(a.relatedTarget))&&s(-1)},children:e.map((a,u)=>{const g=(t==null?void 0:t.id)===a.id,h=o===u,m=i.filter(y=>y.projectPath===a.path),S=m.length>0,x=Array.from(new Set(m.map(y=>y.port).filter(y=>y!=null))).sort((y,T)=>y-T);return f.jsxs("div",{className:`project-item ${g?"selected":""} ${S?"running":""} ${h?"keyboard-focused":""}`,onClick:()=>n(a),role:"option","aria-selected":g,tabIndex:u===0?0:-1,onFocus:y=>{y.currentTarget.scrollIntoView({block:"nearest",behavior:"smooth"}),s&&s(u)},ref:y=>{h&&y&&s&&y.scrollIntoView({block:"nearest",behavior:"smooth"})},children:[f.jsx("div",{className:"project-item-header",children:f.jsxs("h3",{className:"project-name",children:[S&&f.jsx("span",{className:"running-indicator-dot",children:"●"}),a.name]})}),f.jsx("p",{className:"project-path",children:a.description||am(a.path)}),a.tags&&a.tags.length>0&&f.jsx("div",{className:"project-tags",children:a.tags.map(y=>f.jsx("span",{className:"project-tag",children:y},y))}),S&&f.jsxs("div",{className:"project-meta",children:[f.jsxs("span",{className:"running-count",children:[m.length," running"]}),x.length>0&&f.jsx("div",{className:"running-ports",children:x.map(y=>f.jsxs("span",{className:"port-badge",children:[":",y]},y))})]})]},a.id)})})},cm=({urls:e,onOpenUrl:t})=>e.length===0?null:f.jsxs("div",{className:"project-urls-section",children:[f.jsx("div",{className:"section-header",children:f.jsxs("h3",{children:["Detected URLs (",e.length,")"]})}),f.jsx("div",{className:"urls-list",children:e.map((n,r)=>f.jsxs("div",{className:"url-item",children:[f.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"url-text",onClick:i=>{i.preventDefault(),window.electronAPI.openExternal(n)},children:n}),f.jsx("button",{onClick:()=>t(n),className:"btn btn-secondary btn-small",title:"Open in configured browser",children:"Open"})]},r))})]}),dm=({project:e,onProjectUpdate:t,onRemoveProject:n,onOpenTerminal:r})=>{var Tl;const[i,o]=z.useState(!1),[s,l]=z.useState(e.name),[a,u]=z.useState(!1),[g,h]=z.useState(e.description||""),[m,S]=z.useState(null),[x,y]=z.useState(!1),[T,p]=z.useState([]),[c,d]=z.useState(!1),[v,w]=z.useState(new Set),[N,k]=z.useState([]),[C,O]=z.useState(!1),[R,A]=z.useState(!1),[H,V]=z.useState(""),[pe,ye]=z.useState([]),[Z,he]=z.useState(e.tags||[]),[_,I]=z.useState(null),[j,L]=z.useState(null),[M,B]=z.useState(!1);z.useEffect(()=>{l(e.name),h(e.description||""),he(e.tags||[]),ie(),Pe(),Rr(),W(),te(),Xe();const E=setInterval(()=>{Rr(),Xe()},5e3);return()=>clearInterval(E)},[e]);const W=async()=>{try{const E=await fetch("http://localhost:3001/api/projects/tags");if(!E.ok){console.error("Failed to load tags:",E.status),ye([]);return}const F=await E.json();ye(Array.isArray(F)?F:[])}catch(E){console.error("Error loading tags:",E),ye([])}},te=async()=>{try{const E=await window.electronAPI.getSettings();I(E.editor)}catch(E){console.error("Error loading editor settings:",E)}},ie=async()=>{try{y(!0);const E=await window.electronAPI.getProjectScripts(e.path);S(E)}catch(E){console.error("Error loading scripts:",E),S(null)}finally{y(!1)}},Pe=async()=>{try{d(!0);const E=await window.electronAPI.getProjectPorts(e.id);p(E)}catch(E){console.error("Error loading ports:",E),p([])}finally{d(!1)}},Xe=async()=>{try{B(!0);const E=await window.electronAPI.getLatestTestResult(e.id);L(E)}catch{L(null)}finally{B(!1)}},zl=async()=>{if(!s.trim()||s===e.name){o(!1),l(e.name);return}try{const E=await window.electronAPI.renameProject(e.id,s.trim());o(!1),t&&t(E)}catch(E){console.error("Error renaming project:",E),alert("Failed to rename project"),l(e.name)}},_l=async()=>{const E=g.trim()||null;if(E===(e.description||"")){u(!1),h(e.description||"");return}try{const F=await window.electronAPI.updateProject(e.id,{description:E});u(!1),t&&t(F)}catch(F){console.error("Error updating description:",F),alert("Failed to update description"),h(e.description||"")}},jl=async()=>{const E=H.trim();if(!E||Z.includes(E)){V("");return}const F=[...Z,E];try{const Q=await window.electronAPI.updateProject(e.id,{tags:F});he(F),V(""),t&&t(Q),await W(),te()}catch(Q){console.error("Error adding tag:",Q),alert("Failed to add tag")}},Pd=async E=>{const F=Z.filter(Q=>Q!==E);try{const Q=await window.electronAPI.updateProject(e.id,{tags:F});he(F),t&&t(Q),await W(),te()}catch(Q){console.error("Error removing tag:",Q),alert("Failed to remove tag")}},Dl=pe.filter(E=>!Z.includes(E)&&E.toLowerCase().includes(H.toLowerCase())),Rr=async()=>{try{O(!0);const F=(await window.electronAPI.getRunningProcesses()).filter(Et=>Et.projectPath===e.path);k(F);const Q=new Set(F.map(Et=>Et.scriptName));w(Q)}catch(E){console.error("Error loading running processes:",E)}finally{O(!1)}},Cd=async(E,F=!0)=>{try{w(Q=>new Set(Q).add(E)),await window.electronAPI.runScript(e.path,E,[],F),F&&setTimeout(()=>{Rr()},1e3)}catch(Q){console.error("Error running script:",Q),alert(`Failed to run script: ${Q instanceof Error?Q.message:String(Q)}`)}finally{w(Q=>{const Et=new Set(Q);return Et.delete(E),Et})}},zd=async E=>{try{await window.electronAPI.stopScript(E)?await Rr():alert("Failed to stop script")}catch(F){console.error("Error stopping script:",F),alert(`Failed to stop script: ${F instanceof Error?F.message:String(F)}`)}},_d=async E=>{try{await window.electronAPI.openUrl(E)}catch(F){console.error("Error opening URL:",F),alert(`Failed to open URL: ${F instanceof Error?F.message:String(F)}`)}},Rl=z.useMemo(()=>{const E=new Set;for(const F of N)if(F.detectedUrls&&Array.isArray(F.detectedUrls))for(const Q of F.detectedUrls)E.add(Q);for(const F of T){const Q=`http://localhost:${F.port}`;E.add(Q)}return Array.from(E).sort()},[N,T]);return e.last_scanned&&new Date(e.last_scanned*1e3).toLocaleString(),f.jsxs("div",{className:"project-details",children:[f.jsxs("div",{className:"project-details-header",children:[f.jsxs("div",{children:[i?f.jsx("div",{className:"project-name-edit",children:f.jsx("input",{type:"text",value:s,onChange:E=>l(E.target.value),onBlur:zl,onKeyDown:E=>{E.key==="Enter"?zl():E.key==="Escape"&&(o(!1),l(e.name))},className:"project-name-input",autoFocus:!0})}):f.jsx("h2",{onClick:()=>o(!0),className:"project-name-editable",title:"Click to rename",children:e.name}),a?f.jsx("div",{className:"project-description-edit",children:f.jsx("textarea",{value:g,onChange:E=>h(E.target.value),onBlur:_l,onKeyDown:E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?_l():E.key==="Escape"&&(u(!1),h(e.description||""))},className:"project-description-input",placeholder:"Add a description...",autoFocus:!0,rows:2})}):f.jsxs("div",{children:[f.jsx("p",{className:"project-description",onClick:()=>u(!0),title:"Click to edit description",children:e.description||"Click to add a description..."}),f.jsx("p",{className:"project-path",children:e.path})]})]}),f.jsxs("div",{className:"header-actions-group",children:[f.jsx("button",{onClick:async()=>{try{await window.electronAPI.openInEditor(e.path)}catch(E){console.error("Error opening in editor:",E),alert(`Failed to open in editor: ${E instanceof Error?E.message:String(E)}`)}},className:"btn btn-secondary",title:"Open in editor",children:"Editor"}),f.jsx("button",{onClick:async()=>{try{await window.electronAPI.openInFiles(e.path)}catch(E){console.error("Error opening directory:",E),alert(`Failed to open directory: ${E instanceof Error?E.message:String(E)}`)}},className:"btn btn-secondary",title:"Open in file manager",children:"Files"})]})]}),f.jsxs("div",{className:"project-stats",children:[f.jsxs("div",{className:"stat-card",children:[f.jsx("div",{className:"stat-value",children:T.length}),f.jsx("div",{className:"stat-label",children:"Ports"})]}),f.jsxs("div",{className:"stat-card",children:[f.jsx("div",{className:"stat-value",children:((Tl=m==null?void 0:m.scripts)==null?void 0:Tl.length)||0}),f.jsx("div",{className:"stat-label",children:"Scripts"})]})]}),j&&f.jsxs("div",{className:"test-results-section",children:[f.jsxs("div",{className:"section-header",children:[f.jsx("h3",{children:"Latest Test Results"}),f.jsx("span",{className:"test-timestamp",children:new Date(j.timestamp*1e3).toLocaleString()})]}),f.jsxs("div",{className:"test-results-content",children:[f.jsxs("div",{className:"test-stats-grid",children:[f.jsxs("div",{className:"test-stat passed",children:[f.jsx("div",{className:"test-stat-icon",children:"✓"}),f.jsxs("div",{className:"test-stat-info",children:[f.jsx("div",{className:"test-stat-value",children:j.passed}),f.jsx("div",{className:"test-stat-label",children:"Passed"})]})]}),f.jsxs("div",{className:"test-stat failed",children:[f.jsx("div",{className:"test-stat-icon",children:"✗"}),f.jsxs("div",{className:"test-stat-info",children:[f.jsx("div",{className:"test-stat-value",children:j.failed}),f.jsx("div",{className:"test-stat-label",children:"Failed"})]})]}),j.skipped>0&&f.jsxs("div",{className:"test-stat skipped",children:[f.jsx("div",{className:"test-stat-icon",children:"⊘"}),f.jsxs("div",{className:"test-stat-info",children:[f.jsx("div",{className:"test-stat-value",children:j.skipped}),f.jsx("div",{className:"test-stat-label",children:"Skipped"})]})]}),f.jsxs("div",{className:"test-stat total",children:[f.jsx("div",{className:"test-stat-icon",children:"∑"}),f.jsxs("div",{className:"test-stat-info",children:[f.jsx("div",{className:"test-stat-value",children:j.total}),f.jsx("div",{className:"test-stat-label",children:"Total"})]})]})]}),f.jsxs("div",{className:"test-meta",children:[j.framework&&f.jsx("span",{className:"test-framework-badge",children:j.framework}),j.duration&&f.jsxs("span",{className:"test-duration",children:["⏱ ",(j.duration/1e3).toFixed(2),"s"]}),j.coverage&&f.jsxs("span",{className:"test-coverage",children:["📊 ",j.coverage.toFixed(1),"% coverage"]}),f.jsxs("span",{className:"test-script-name",children:["Script: ",j.script_name]})]})]})]}),f.jsxs("div",{className:"tags-section",children:[f.jsx("div",{className:"section-header",children:f.jsx("h3",{children:"Tags"})}),f.jsx("div",{className:"tags-content",children:f.jsxs("div",{className:"tags-list",children:[Z.map(E=>f.jsxs("span",{className:"tag-item",children:[E,f.jsx("button",{onClick:()=>Pd(E),className:"tag-remove",title:"Remove tag",children:"×"})]},E)),R?f.jsxs("div",{className:"tag-input-wrapper",children:[f.jsx("input",{type:"text",value:H,onChange:E=>V(E.target.value),onKeyDown:E=>{E.key==="Enter"?jl():E.key==="Escape"&&(A(!1),V(""))},onBlur:()=>{jl(),A(!1)},className:"tag-input",placeholder:"Add tag...",autoFocus:!0}),Dl.length>0&&H&&f.jsx("div",{className:"tag-suggestions",children:Dl.slice(0,5).map(E=>f.jsx("div",{className:"tag-suggestion",onMouseDown:F=>{F.preventDefault(),V(E)},children:E},E))})]}):f.jsx("button",{onClick:()=>A(!0),className:"tag-add-btn",title:"Add tag",children:"+ Add Tag"})]})})]}),Rl.length>0&&f.jsx(cm,{urls:Rl,onOpenUrl:_d}),m&&f.jsxs("div",{className:"scripts-section",children:[f.jsxs("div",{className:"section-header",children:[f.jsxs("h3",{children:["Available Scripts (",m.scripts.length,")"]}),f.jsx("span",{className:"project-type-badge",children:m.type})]}),x?f.jsx("div",{className:"loading-state",children:"Loading scripts..."}):m.scripts.length===0?f.jsx("div",{className:"no-scripts",children:"No scripts found in this project."}):f.jsx("div",{className:"scripts-list",children:m.scripts.map(E=>{const F=N.filter(we=>we.scriptName===E.name),Q=F.length>0,Et=T.filter(we=>we.script_name===E.name).map(we=>we.port),jd=Array.from(new Set(Et)).sort((we,Tr)=>we-Tr);return f.jsxs("div",{className:`script-item ${Q?"running":""}`,children:[f.jsxs("div",{className:"script-info",children:[f.jsxs("div",{className:"script-header",children:[f.jsx("span",{className:"script-name",children:E.name}),f.jsx("span",{className:"script-command",children:E.command}),f.jsx("span",{className:"script-runner",children:E.runner})]}),Q&&f.jsx("div",{className:"script-process-info",children:F.map(we=>{const Tr=Math.floor((Date.now()-we.startedAt)/1e3),Ll=Math.floor(Tr/60),Ml=Tr%60,Dd=Ll>0?`${Ll}m ${Ml}s`:`${Ml}s`,Ol=we.detectedPorts&&we.detectedPorts.length>0?we.detectedPorts:jd;return f.jsxs("div",{className:"process-badge",children:[f.jsx("span",{className:"process-indicator",children:"●"}),f.jsxs("span",{className:"process-pid",children:["PID: ",we.pid]}),f.jsx("span",{className:"process-uptime",children:Dd}),Ol.length>0&&f.jsxs("span",{className:"process-port",children:[":",Ol.join(", ")]}),f.jsx("button",{onClick:ro=>{ro.stopPropagation(),r&&r(we.pid,E.name,e.name)},className:"btn btn-secondary btn-tiny",title:"View terminal output",children:f.jsx("span",{className:"terminal-icon",children:"⌘"})}),f.jsx("button",{onClick:ro=>{ro.stopPropagation(),zd(we.pid)},className:"btn btn-danger btn-tiny",title:"Stop process",children:"Stop"})]},we.pid)})})]}),f.jsx("div",{className:"script-actions",children:!Q&&f.jsx("button",{onClick:()=>Cd(E.name,!0),className:"btn btn-secondary btn-small",title:"Run in background",children:"Run"})})]},E.name)})})]}),f.jsxs("div",{className:"jenkins-placeholder",children:[f.jsx("h3",{children:"Jenkins Integration"}),f.jsx("p",{className:"placeholder-text",children:"Jenkins integration will be available in a future update. This section will display Jenkins job statuses and build information for your projects."})]}),n&&f.jsxs("div",{className:"danger-zone",children:[f.jsx("h3",{children:"Danger Zone"}),f.jsx("p",{className:"danger-zone-text",children:"Once you delete a project, there is no going back. Please be certain."}),f.jsx("button",{onClick:async()=>{confirm(`Are you sure you want to remove "${e.name}"?
|
|
56
|
+
|
|
57
|
+
This will delete the project from PROJAX (not from your filesystem).
|
|
58
|
+
|
|
59
|
+
This action cannot be undone.`)&&await n(e.id)},className:"btn btn-danger",title:"Remove project",children:"Delete Project"})]})]})},fm=({onAdd:e,onClose:t})=>{const[n,r]=z.useState(""),[i,o]=z.useState(!1),s=async()=>{try{const a=await window.electronAPI.selectDirectory();a&&r(a)}catch(a){console.error("Error selecting directory:",a)}},l=async a=>{if(a.preventDefault(),!n.trim()){alert("Please select a project directory");return}try{o(!0),await e(n)}catch{}finally{o(!1)}};return f.jsx("div",{className:"modal-overlay",onClick:t,children:f.jsxs("div",{className:"modal-content",onClick:a=>a.stopPropagation(),children:[f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{children:"Add Project"}),f.jsx("button",{className:"modal-close",onClick:t,children:"×"})]}),f.jsxs("form",{onSubmit:l,children:[f.jsxs("div",{className:"form-group",children:[f.jsx("label",{htmlFor:"project-path",children:"Project Directory"}),f.jsxs("div",{className:"path-input-group",children:[f.jsx("input",{id:"project-path",type:"text",value:n,onChange:a=>r(a.target.value),placeholder:"Select or enter project directory path",disabled:i}),f.jsx("button",{type:"button",onClick:s,disabled:i,className:"btn btn-secondary",children:"Browse"})]})]}),f.jsxs("div",{className:"modal-actions",children:[f.jsx("button",{type:"button",onClick:t,disabled:i,className:"btn btn-secondary",children:"Cancel"}),f.jsx("button",{type:"submit",disabled:i||!n.trim(),className:"btn btn-primary",children:i?"Adding...":"Add Project"})]})]})]})})},pm=({onSearchChange:e,onSortChange:t,searchInputRef:n})=>{const[r,i]=z.useState(""),[o,s]=z.useState("all"),[l,a]=z.useState("name-asc"),[u,g]=z.useState(!1),h=z.useRef(null),m=z.useRef(null),S=n||m,x=p=>{const c=p.target.value;i(c),e(c,"all")},y=p=>{a(p),g(!1),t&&t(p)};z.useEffect(()=>{const p=c=>{h.current&&!h.current.contains(c.target)&&g(!1)};if(u)return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]);const T=[{value:"name-asc",label:"Name (A-Z)"},{value:"name-desc",label:"Name (Z-A)"},{value:"recent",label:"Recently Scanned"},{value:"oldest",label:"Oldest First"},{value:"running",label:"Running First"}];return f.jsx("div",{className:"project-search",children:f.jsxs("div",{className:"search-input-group",ref:h,children:[f.jsxs("div",{className:"search-input-wrapper",children:[f.jsx("input",{ref:S,type:"text",placeholder:"Search projects... (⌘/)",value:r,onChange:x,className:"search-input"}),f.jsx("button",{className:"sort-icon-btn",onClick:()=>g(!u),title:"Sort options",tabIndex:0,children:f.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:f.jsx("path",{d:"M3 4h10M3 8h7M3 12h4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),u&&f.jsx("div",{className:"sort-menu",children:T.map(p=>f.jsxs("div",{className:`sort-menu-item ${l===p.value?"active":""}`,onClick:()=>y(p.value),children:[p.label,l===p.value&&f.jsx("span",{className:"checkmark",children:"✓"})]},p.value))})]})})},hm=({onClose:e})=>{const[t,n]=z.useState({editor:{type:"vscode"},browser:{type:"chrome"}}),[r,i]=z.useState(!0),[o,s]=z.useState(!1);z.useEffect(()=>{const h=m=>{m.key==="Escape"&&e()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e]),z.useEffect(()=>{l()},[]);const l=async()=>{try{i(!0);const h=await window.electronAPI.getSettings();n(h)}catch(h){console.error("Error loading settings:",h)}finally{i(!1)}},a=async()=>{try{s(!0),await window.electronAPI.saveSettings(t),e()}catch(h){console.error("Error saving settings:",h),alert(`Failed to save settings: ${h instanceof Error?h.message:String(h)}`)}finally{s(!1)}},u=h=>{n({...t,editor:{type:h,customPath:h==="custom"?t.editor.customPath:void 0}})},g=h=>{n({...t,browser:{type:h,customPath:h==="custom"?t.browser.customPath:void 0}})};return r?f.jsx("div",{className:"settings-overlay",children:f.jsx("div",{className:"settings-modal",children:f.jsx("div",{className:"loading-state",children:"Loading settings..."})})}):f.jsx("div",{className:"settings-overlay",onClick:e,children:f.jsxs("div",{className:"settings-modal",onClick:h=>h.stopPropagation(),children:[f.jsxs("div",{className:"settings-header",children:[f.jsx("h2",{children:"Settings"}),f.jsx("button",{onClick:e,className:"settings-close-btn",title:"Close",children:"×"})]}),f.jsxs("div",{className:"settings-content",children:[f.jsxs("div",{className:"settings-section",children:[f.jsx("h3",{children:"Editor"}),f.jsxs("div",{className:"settings-field",children:[f.jsx("label",{children:"Editor Type"}),f.jsxs("select",{value:t.editor.type,onChange:h=>u(h.target.value),className:"settings-select",children:[f.jsx("option",{value:"vscode",children:"VS Code"}),f.jsx("option",{value:"cursor",children:"Cursor"}),f.jsx("option",{value:"windsurf",children:"Windsurf"}),f.jsx("option",{value:"zed",children:"Zed"}),f.jsx("option",{value:"custom",children:"Custom"})]})]}),t.editor.type==="custom"&&f.jsxs("div",{className:"settings-field",children:[f.jsx("label",{children:"Custom Editor Path"}),f.jsx("input",{type:"text",value:t.editor.customPath||"",onChange:h=>n({...t,editor:{...t.editor,customPath:h.target.value}}),placeholder:"/path/to/editor",className:"settings-input"})]})]}),f.jsxs("div",{className:"settings-section",children:[f.jsx("h3",{children:"Browser"}),f.jsxs("div",{className:"settings-field",children:[f.jsx("label",{children:"Browser Type"}),f.jsxs("select",{value:t.browser.type,onChange:h=>g(h.target.value),className:"settings-select",children:[f.jsx("option",{value:"chrome",children:"Chrome"}),f.jsx("option",{value:"firefox",children:"Firefox"}),f.jsx("option",{value:"safari",children:"Safari"}),f.jsx("option",{value:"edge",children:"Edge"}),f.jsx("option",{value:"custom",children:"Custom"})]})]}),t.browser.type==="custom"&&f.jsxs("div",{className:"settings-field",children:[f.jsx("label",{children:"Custom Browser Path"}),f.jsx("input",{type:"text",value:t.browser.customPath||"",onChange:h=>n({...t,browser:{...t.browser,customPath:h.target.value}}),placeholder:"/path/to/browser",className:"settings-input"})]})]})]}),f.jsxs("div",{className:"settings-footer",children:[f.jsx("button",{onClick:e,className:"btn btn-secondary",children:"Cancel"}),f.jsx("button",{onClick:a,disabled:o,className:"btn btn-primary",children:o?"Saving...":"Save"})]})]})})},mm=({children:e})=>f.jsxs("div",{className:"app-header",children:[f.jsx("h1",{className:"app-logo",children:"PROJAX"}),e]}),gm=({apiPort:e})=>{const[t,n]=z.useState(!1),[r,i]=z.useState(e||null),[o,s]=z.useState("...");return z.useEffect(()=>{(async()=>{try{const h=await window.electronAPI.getAppVersion();s(h)}catch(h){console.error("Failed to get app version:",h),s("3.3.24")}})();const a=async()=>{if(r)u(r);else try{const h=[38124,38125,38126,38127,38128];for(const m of h)try{if((await fetch(`http://localhost:${m}/health`)).ok){i(m),u(m);return}}catch{}}catch(h){console.error("Failed to detect API port:",h)}},u=async h=>{try{const m=await fetch(`http://localhost:${h}/health`);n(m.ok)}catch{n(!1)}};a();const g=setInterval(()=>{r&&u(r)},5e3);return()=>clearInterval(g)},[r]),f.jsx("div",{className:"status-bar",children:f.jsxs("div",{className:"status-bar-content",children:[f.jsxs("div",{className:"status-version",children:["v",o]}),f.jsxs("div",{className:"status-right",children:[f.jsxs("div",{className:"status-indicator",children:[f.jsx("span",{className:`status-dot ${t?"connected":"disconnected"}`}),f.jsx("span",{className:"status-text",children:t?"API Connected":"API Disconnected"})]}),r&&f.jsxs("div",{className:"api-port",children:["Port: ",r]})]})]})})},vm=({pid:e,scriptName:t,projectName:n,onClose:r})=>{const[i,o]=z.useState([]),[s,l]=z.useState(!1),a=z.useRef(null),[u,g]=z.useState(!0),[h,m]=z.useState([]),S=z.useCallback(d=>{const v=[],w=new Set,N=[/https?:\/\/(localhost|127\.0\.0\.1|0\.0\.0\.0):(\d+)/gi,/(?:port|PORT)\s+(\d+)/gi,/(?:localhost|127\.0\.0\.1):(\d+)/gi];for(const k of N){const C=d.matchAll(k);for(const O of C){let R,A;O[0].includes("http")?(R=O[0],A=Number.parseInt(O[2],10)):O[0].toLowerCase().includes("port")?(A=Number.parseInt(O[1],10),R=`http://localhost:${A}`):(A=Number.parseInt(O[1],10),R=O[0].includes("://")?O[0]:`http://${O[0]}`),A>=1e3&&A<=65535&&!w.has(R)&&(w.add(R),v.push({url:R,port:A}))}}return v},[]);z.useEffect(()=>{const d=i.join(`
|
|
60
|
+
`),v=S(d);v.length>0&&m(v)},[i,S]),z.useEffect(()=>{const d=v=>{v.key==="Escape"&&r()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[r]),z.useEffect(()=>{(async()=>{try{await window.electronAPI.watchProcessOutput(e),l(!0)}catch(N){console.error("Failed to start watching process:",N),o(k=>[...k,`Error: Failed to connect to process ${e}`])}})();const v=(N,k)=>{k.pid===e&&o(C=>[...C,k.data])},w=(N,k)=>{k.pid===e&&(o(C=>[...C,`
|
|
61
|
+
[Process exited with code ${k.code}]`]),l(!1))};return window.electronAPI.onProcessOutput(v),window.electronAPI.onProcessExit(w),()=>{window.electronAPI.unwatchProcessOutput(e),window.electronAPI.removeProcessOutputListener(v),window.electronAPI.removeProcessExitListener(w)}},[e]),z.useEffect(()=>{u&&a.current&&(a.current.scrollTop=a.current.scrollHeight)},[u]);const x=()=>{if(a.current){const{scrollTop:d,scrollHeight:v,clientHeight:w}=a.current,N=v-d-w<50;g(N)}},y=()=>{o([])},T=()=>{a.current&&(a.current.scrollTop=a.current.scrollHeight,g(!0))},p=d=>{window.open(d,"_blank")},c=d=>{navigator.clipboard.writeText(d)};return f.jsxs("div",{className:"terminal-sidebar",children:[f.jsxs("div",{className:"terminal-header",children:[f.jsxs("div",{className:"terminal-title-row",children:[f.jsxs("div",{className:"terminal-title-content",children:[f.jsx("span",{className:`terminal-status-indicator ${s?"running":"stopped"}`,children:s?"●":"○"}),f.jsxs("div",{className:"terminal-info",children:[f.jsx("span",{className:"terminal-script",children:t}),f.jsx("span",{className:"terminal-project",children:n})]})]}),f.jsxs("div",{className:"terminal-meta",children:[f.jsx("span",{className:`terminal-status-badge ${s?"running":"stopped"}`,children:s?"Running":"Stopped"}),f.jsxs("span",{className:"terminal-pid",children:["PID: ",e]})]})]}),f.jsxs("div",{className:"terminal-toolbar",children:[f.jsx("button",{type:"button",onClick:y,className:"btn btn-secondary btn-tiny",title:"Clear output",children:"Clear"}),!u&&f.jsx("button",{type:"button",onClick:T,className:"btn btn-secondary btn-tiny",title:"Scroll to bottom",children:"↓ Bottom"}),f.jsx("button",{type:"button",onClick:r,className:"btn btn-danger btn-tiny",title:"Close terminal",children:"Close"})]})]}),f.jsx("div",{ref:a,className:"terminal-output",onScroll:x,children:i.length===0?f.jsxs("div",{className:"terminal-empty",children:[f.jsx("div",{className:"terminal-empty-icon",children:"⌘"}),f.jsx("div",{className:"terminal-empty-text",children:"Waiting for output..."}),f.jsxs("div",{className:"terminal-empty-hint",children:["Process PID ",e]})]}):i.map((d,v)=>f.jsx("div",{className:"terminal-line",children:d},`${v}-${d.slice(0,20)}`))}),h.length>0&&f.jsxs("div",{className:"terminal-loupe",children:[f.jsxs("div",{className:"terminal-loupe-header",children:[f.jsx("span",{className:"terminal-loupe-icon",children:"🔍"}),f.jsx("span",{className:"terminal-loupe-title",children:"Detected Servers"})]}),f.jsx("div",{className:"terminal-loupe-servers",children:h.map(d=>f.jsxs("div",{className:"terminal-loupe-server",children:[f.jsxs("div",{className:"terminal-loupe-server-info",children:[f.jsxs("span",{className:"terminal-loupe-port",children:[":",d.port]}),f.jsx("span",{className:"terminal-loupe-url",children:d.url})]}),f.jsxs("div",{className:"terminal-loupe-actions",children:[f.jsx("button",{type:"button",onClick:()=>p(d.url),className:"btn btn-primary btn-tiny",title:"Open in browser",children:"Open"}),f.jsx("button",{type:"button",onClick:()=>c(d.url),className:"btn btn-secondary btn-tiny",title:"Copy URL",children:"Copy"})]})]},d.url))})]})]})};function ym(){const[e,t]=z.useState([]),[n,r]=z.useState(null),[i,o]=z.useState(!0),[s,l]=z.useState(!1),[a,u]=z.useState(""),[g,h]=z.useState("all"),[m,S]=z.useState("name-asc"),[x,y]=z.useState(!1),[T,p]=z.useState([]),[c,d]=z.useState(-1),[v,w]=z.useState("sidebar"),N=Ls.useRef(null),[k,C]=z.useState(280),[O,R]=z.useState(550),[A,H]=z.useState(null);z.useEffect(()=>{V(),pe();const L=setInterval(()=>{pe()},5e3);return()=>clearInterval(L)},[]);const V=async()=>{try{o(!0);const L=await window.electronAPI.getProjects();t(L),L.length===0&&console.log('No projects found. Use "Add Project" to add one.')}catch(L){console.error("Error loading projects:",L),alert(`Error loading projects: ${L instanceof Error?L.message:String(L)}
|
|
62
|
+
|
|
63
|
+
Check the console for more details.`)}finally{o(!1)}},pe=async()=>{try{const L=await window.electronAPI.getRunningProcesses();p(L)}catch(L){console.error("Error loading running processes:",L)}},ye=async L=>{try{const M=await window.electronAPI.addProject(L);await V(),l(!1),await window.electronAPI.scanProject(M.id),await V()}catch(M){console.error("Error adding project:",M),alert(M instanceof Error?M.message:"Failed to add project")}},Z=async L=>{if(confirm("Are you sure you want to remove this project?"))try{await window.electronAPI.removeProject(L),(n==null?void 0:n.id)===L&&r(null),await V()}catch(M){console.error("Error removing project:",M),alert("Failed to remove project")}},he=(L,M)=>{u(L),h(M)},_=z.useMemo(()=>{let L=e;if(a.trim()){const B=a.toLowerCase().trim();L=e.filter(W=>{switch(g){case"name":return W.name.toLowerCase().includes(B);case"path":return W.path.toLowerCase().includes(B);case"ports":return!1;case"running":return B==="running"||B==="not running";case"all":default:return W.name.toLowerCase().includes(B)||W.path.toLowerCase().includes(B)||W.tags&&W.tags.some(te=>te.toLowerCase().includes(B))}})}const M=[...L];switch(m){case"name-asc":M.sort((B,W)=>B.name.localeCompare(W.name));break;case"name-desc":M.sort((B,W)=>W.name.localeCompare(B.name));break;case"recent":M.sort((B,W)=>(W.last_scanned||0)-(B.last_scanned||0));break;case"oldest":M.sort((B,W)=>B.created_at-W.created_at);break;case"running":M.sort((B,W)=>{const te=T.filter(Pe=>Pe.projectPath===B.path).length;return T.filter(Pe=>Pe.projectPath===W.path).length-te});break}return M},[e,a,g,m,T]);z.useEffect(()=>{const L=M=>{var Pe;if((M.metaKey||M.ctrlKey)&&M.key===","){M.preventDefault(),y(!0);return}if((M.metaKey||M.ctrlKey)&&M.key==="/"){M.preventDefault(),(Pe=N.current)==null||Pe.focus();return}const B=M.target;if(B.tagName==="INPUT"||B.tagName==="TEXTAREA")return;const W=document.querySelector(".project-list"),te=W&&(W===B||W.contains(B)||B.closest(".project-item")!==null);if(!te&&(M.key==="ArrowDown"||M.key==="ArrowUp"))return;const ie=_;if(M.key==="ArrowDown"&&te){M.preventDefault();const Xe=c<ie.length-1?c+1:ie.length>0?0:-1;Xe>=0&&(d(Xe),r(ie[Xe]))}else if(M.key==="ArrowUp"&&te){M.preventDefault();const Xe=c>0?c-1:ie.length>0?ie.length-1:-1;Xe>=0&&(d(Xe),r(ie[Xe]))}else M.key==="Enter"&&c>=0&&c<ie.length&&te?(M.preventDefault(),r(ie[c])):M.key==="Escape"&&te&&d(-1)};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[c,_,v,n,A]),z.useEffect(()=>{d(-1)},[_.length,a]);const I=(L,M,B)=>{H({pid:L,scriptName:M,projectName:B})},j=()=>{H(null)};return f.jsxs("div",{className:"app",children:[f.jsx(mm,{children:f.jsxs("div",{className:"header-actions",children:[f.jsx("button",{type:"button",onClick:()=>y(!0),className:"btn-link",title:"Settings",children:"Settings"}),f.jsx("button",{type:"button",onClick:()=>l(!0),className:"btn-link btn-link-primary",children:"+ Add Project"})]})}),f.jsxs("div",{className:"app-content",children:[f.jsx(lm,{size:{width:k,height:"100%"},minWidth:200,maxWidth:600,disableDragging:!0,enableResizing:{right:!0},onResizeStop:(L,M,B,W)=>{const te=k+W.width;C(Math.max(200,Math.min(600,te)))},style:{position:"relative",display:"flex",flexDirection:"column"},resizeHandleStyles:{right:{width:"4px",right:"-2px",cursor:"col-resize",backgroundColor:"transparent"}},children:f.jsxs("aside",{className:"sidebar",style:{width:"100%",height:"100%"},children:[f.jsx(pm,{onSearchChange:he,onSortChange:S,searchInputRef:N}),f.jsx(um,{projects:_,selectedProject:n,onSelectProject:L=>{r(L),d(-1)},loading:i,runningProcesses:T,keyboardFocusedIndex:c,onKeyboardFocusChange:d})]})}),f.jsx("main",{className:"main-content",children:n?f.jsx(dm,{project:n,onProjectUpdate:L=>{r(L),V()},onRemoveProject:Z,onOpenTerminal:I}):f.jsxs("div",{className:"empty-state",children:[f.jsx("h2",{children:"Select a project to view details"}),f.jsx("p",{children:"Choose a project from the sidebar to see its test files and information."})]})}),A&&f.jsxs("div",{style:{width:`${O}px`,minWidth:"350px",maxWidth:"800px",height:"100%",position:"relative",flexShrink:0,display:"flex",flexDirection:"column"},children:[f.jsx("div",{style:{position:"absolute",left:"-2px",top:0,bottom:0,width:"4px",cursor:"col-resize",zIndex:10},onMouseDown:L=>{L.preventDefault();const M=L.clientX,B=O,W=ie=>{const Pe=M-ie.clientX,Xe=Math.max(350,Math.min(800,B+Pe));R(Xe)},te=()=>{document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",te)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",te)}}),f.jsx(vm,{pid:A.pid,scriptName:A.scriptName,projectName:A.projectName,onClose:j})]})]}),s&&f.jsx(fm,{onAdd:ye,onClose:()=>l(!1)}),x&&f.jsx(hm,{onClose:()=>y(!1)}),f.jsx(gm,{})]})}Oo.createRoot(document.getElementById("root")).render(f.jsx(Ls.StrictMode,{children:f.jsx(ym,{})}));
|