From b5b1736b889eb2089fd04f859c5478cb0122a7b8 Mon Sep 17 00:00:00 2001 From: patdelphi Date: Sun, 24 Aug 2025 13:57:07 +0800 Subject: [PATCH] fix: resolve TypeScript and React Hooks issues - Fixed React Hooks rules violation in CompleteBaziAnalysis component - Moved useEffect after input validation to prevent conditional Hook calls - Added useCallback to fetchAnalysisData function for proper dependency management - Resolved ESLint warnings about missing dependencies - Ensured all Hooks are called in the same order on every render - Improved component structure for better error handling --- .../{index-CipkF_Jj.js => index-DLB9yhkX.js} | 315 +++++++++--------- ...ex.es-DENWjgEg.js => index.es-DolsardD.js} | 2 +- dist/index.html | 2 +- src/components/CompleteBaziAnalysis.tsx | 22 +- 4 files changed, 177 insertions(+), 164 deletions(-) rename dist/assets/{index-CipkF_Jj.js => index-DLB9yhkX.js} (66%) rename dist/assets/{index.es-DENWjgEg.js => index.es-DolsardD.js} (99%) diff --git a/dist/assets/index-CipkF_Jj.js b/dist/assets/index-DLB9yhkX.js similarity index 66% rename from dist/assets/index-CipkF_Jj.js rename to dist/assets/index-DLB9yhkX.js index 896f2b7..80d69e0 100644 --- a/dist/assets/index-CipkF_Jj.js +++ b/dist/assets/index-DLB9yhkX.js @@ -1,4 +1,4 @@ -var $k=Object.defineProperty;var Wk=(e,t,n)=>t in e?$k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kc=(e,t,n)=>Wk(e,typeof t!="symbol"?t+"":t,n);function Vk(e,t){for(var n=0;na[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();var Mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O0={exports:{}},ip={},T0={exports:{}},dn={};/** +var Wk=Object.defineProperty;var Vk=(e,t,n)=>t in e?Wk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kc=(e,t,n)=>Vk(e,typeof t!="symbol"?t+"":t,n);function Xk(e,t){for(var n=0;na[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();var Mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O0={exports:{}},ip={},T0={exports:{}},dn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var $k=Object.defineProperty;var Wk=(e,t,n)=>t in e?$k(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $5;function Xk(){if($5)return dn;$5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),A=Symbol.iterator;function g(ne){return ne===null||typeof ne!="object"?null:(ne=A&&ne[A]||ne["@@iterator"],typeof ne=="function"?ne:null)}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(ne,F,P){this.props=ne,this.context=F,this.refs=b,this.updater=P||f}v.prototype.isReactComponent={},v.prototype.setState=function(ne,F){if(typeof ne!="object"&&typeof ne!="function"&&ne!=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,ne,F,"setState")},v.prototype.forceUpdate=function(ne){this.updater.enqueueForceUpdate(this,ne,"forceUpdate")};function B(){}B.prototype=v.prototype;function D(ne,F,P){this.props=ne,this.context=F,this.refs=b,this.updater=P||f}var j=D.prototype=new B;j.constructor=D,y(j,v.prototype),j.isPureReactComponent=!0;var Q=Array.isArray,E=Object.prototype.hasOwnProperty,G={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function T(ne,F,P){var V,se={},ce=null,pe=null;if(F!=null)for(V in F.ref!==void 0&&(pe=F.ref),F.key!==void 0&&(ce=""+F.key),F)E.call(F,V)&&!k.hasOwnProperty(V)&&(se[V]=F[V]);var ge=arguments.length-2;if(ge===1)se.children=P;else if(1t in e?$k(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var V5;function Jk(){if(V5)return ip;V5=1;var e=lB(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function s(i,c,m){var p,A={},g=null,f=null;m!==void 0&&(g=""+m),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(f=c.ref);for(p in c)a.call(c,p)&&!r.hasOwnProperty(p)&&(A[p]=c[p]);if(i&&i.defaultProps)for(p in c=i.defaultProps,c)A[p]===void 0&&(A[p]=c[p]);return{$$typeof:t,type:i,key:g,ref:f,props:A,_owner:o.current}}return ip.Fragment=n,ip.jsx=s,ip.jsxs=s,ip}var X5;function eL(){return X5||(X5=1,O0.exports=Jk()),O0.exports}var d=eL(),zf={},R0={exports:{}},Er={},M0={exports:{}},z0={};/** + */var V5;function eL(){if(V5)return ip;V5=1;var e=lB(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0};function s(i,c,m){var p,A={},g=null,f=null;m!==void 0&&(g=""+m),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(f=c.ref);for(p in c)a.call(c,p)&&!r.hasOwnProperty(p)&&(A[p]=c[p]);if(i&&i.defaultProps)for(p in c=i.defaultProps,c)A[p]===void 0&&(A[p]=c[p]);return{$$typeof:t,type:i,key:g,ref:f,props:A,_owner:o.current}}return ip.Fragment=n,ip.jsx=s,ip.jsxs=s,ip}var X5;function tL(){return X5||(X5=1,O0.exports=eL()),O0.exports}var d=tL(),zf={},R0={exports:{}},Er={},M0={exports:{}},z0={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var $k=Object.defineProperty;var Wk=(e,t,n)=>t in e?$k(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var J5;function tL(){return J5||(J5=1,(function(e){function t(ee,oe){var R=ee.length;ee.push(oe);e:for(;0>>1,F=ee[ne];if(0>>1;neo(se,R))ceo(pe,se)?(ee[ne]=pe,ee[ce]=R,ne=ce):(ee[ne]=se,ee[V]=R,ne=V);else if(ceo(pe,R))ee[ne]=pe,ee[ce]=R,ne=ce;else break e}}return oe}function o(ee,oe){var R=ee.sortIndex-oe.sortIndex;return R!==0?R:ee.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var c=[],m=[],p=1,A=null,g=3,f=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(ee){for(var oe=n(m);oe!==null;){if(oe.callback===null)a(m);else if(oe.startTime<=ee)a(m),oe.sortIndex=oe.expirationTime,t(c,oe);else break;oe=n(m)}}function Q(ee){if(b=!1,j(ee),!y)if(n(c)!==null)y=!0,ae(E);else{var oe=n(m);oe!==null&&re(Q,oe.startTime-ee)}}function E(ee,oe){y=!1,b&&(b=!1,B(T),T=-1),f=!0;var R=g;try{for(j(oe),A=n(c);A!==null&&(!(A.expirationTime>oe)||ee&&!_());){var ne=A.callback;if(typeof ne=="function"){A.callback=null,g=A.priorityLevel;var F=ne(A.expirationTime<=oe);oe=e.unstable_now(),typeof F=="function"?A.callback=F:A===n(c)&&a(c),j(oe)}else a(c);A=n(c)}if(A!==null)var P=!0;else{var V=n(m);V!==null&&re(Q,V.startTime-oe),P=!1}return P}finally{A=null,g=R,f=!1}}var G=!1,k=null,T=-1,M=5,Z=-1;function _(){return!(e.unstable_now()-Zee||125ne?(ee.sortIndex=R,t(m,ee),n(c)===null&&ee===n(m)&&(b?(B(T),T=-1):b=!0,re(Q,R-ne))):(ee.sortIndex=F,t(c,ee),y||f||(y=!0,ae(E))),ee},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(ee){var oe=g;return function(){var R=g;g=oe;try{return ee.apply(this,arguments)}finally{g=R}}}})(z0)),z0}var e4;function nL(){return e4||(e4=1,M0.exports=tL()),M0.exports}/** + */var J5;function nL(){return J5||(J5=1,(function(e){function t(ee,oe){var R=ee.length;ee.push(oe);e:for(;0>>1,F=ee[ne];if(0>>1;neo(se,R))ceo(pe,se)?(ee[ne]=pe,ee[ce]=R,ne=ce):(ee[ne]=se,ee[V]=R,ne=V);else if(ceo(pe,R))ee[ne]=pe,ee[ce]=R,ne=ce;else break e}}return oe}function o(ee,oe){var R=ee.sortIndex-oe.sortIndex;return R!==0?R:ee.id-oe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var c=[],m=[],p=1,A=null,g=3,f=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(ee){for(var oe=n(m);oe!==null;){if(oe.callback===null)a(m);else if(oe.startTime<=ee)a(m),oe.sortIndex=oe.expirationTime,t(c,oe);else break;oe=n(m)}}function Q(ee){if(b=!1,j(ee),!y)if(n(c)!==null)y=!0,ae(E);else{var oe=n(m);oe!==null&&re(Q,oe.startTime-ee)}}function E(ee,oe){y=!1,b&&(b=!1,B(T),T=-1),f=!0;var R=g;try{for(j(oe),A=n(c);A!==null&&(!(A.expirationTime>oe)||ee&&!_());){var ne=A.callback;if(typeof ne=="function"){A.callback=null,g=A.priorityLevel;var F=ne(A.expirationTime<=oe);oe=e.unstable_now(),typeof F=="function"?A.callback=F:A===n(c)&&a(c),j(oe)}else a(c);A=n(c)}if(A!==null)var P=!0;else{var V=n(m);V!==null&&re(Q,V.startTime-oe),P=!1}return P}finally{A=null,g=R,f=!1}}var G=!1,k=null,T=-1,M=5,Z=-1;function _(){return!(e.unstable_now()-Zee||125ne?(ee.sortIndex=R,t(m,ee),n(c)===null&&ee===n(m)&&(b?(B(T),T=-1):b=!0,re(Q,R-ne))):(ee.sortIndex=F,t(c,ee),y||f||(y=!0,ae(E))),ee},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(ee){var oe=g;return function(){var R=g;g=oe;try{return ee.apply(this,arguments)}finally{g=R}}}})(z0)),z0}var e4;function aL(){return e4||(e4=1,M0.exports=nL()),M0.exports}/** * @license React * react-dom.production.min.js * @@ -30,15 +30,15 @@ var $k=Object.defineProperty;var Wk=(e,t,n)=>t in e?$k(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var t4;function aL(){if(t4)return Er;t4=1;var e=lB(),t=nL();function n(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,h=1;h"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,m=/^[: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]*$/,p={},A={};function g(l){return c.call(A,l)?!0:c.call(p,l)?!1:m.test(l)?A[l]=!0:(p[l]=!0,!1)}function f(l,u,h,C){if(h!==null&&h.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return C?!1:h!==null?!h.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function y(l,u,h,C){if(u===null||typeof u>"u"||f(l,u,h,C))return!0;if(C)return!1;if(h!==null)switch(h.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function b(l,u,h,C,H,S,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=C,this.attributeNamespace=H,this.mustUseProperty=h,this.propertyName=l,this.type=u,this.sanitizeURL=S,this.removeEmptyString=$}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){v[l]=new b(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];v[u]=new b(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){v[l]=new b(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){v[l]=new b(l,2,!1,l,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(l){v[l]=new b(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){v[l]=new b(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){v[l]=new b(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){v[l]=new b(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){v[l]=new b(l,5,!1,l.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function D(l){return l[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(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){v[l]=new b(l,1,!1,l.toLowerCase(),null,!1,!1)}),v.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){v[l]=new b(l,1,!1,l.toLowerCase(),null,!0,!0)});function j(l,u,h,C){var H=v.hasOwnProperty(u)?v[u]:null;(H!==null?H.type!==0:C||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,m=/^[: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]*$/,p={},A={};function g(l){return c.call(A,l)?!0:c.call(p,l)?!1:m.test(l)?A[l]=!0:(p[l]=!0,!1)}function f(l,u,h,C){if(h!==null&&h.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return C?!1:h!==null?!h.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function y(l,u,h,C){if(u===null||typeof u>"u"||f(l,u,h,C))return!0;if(C)return!1;if(h!==null)switch(h.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function b(l,u,h,C,H,S,$){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=C,this.attributeNamespace=H,this.mustUseProperty=h,this.propertyName=l,this.type=u,this.sanitizeURL=S,this.removeEmptyString=$}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){v[l]=new b(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];v[u]=new b(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){v[l]=new b(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){v[l]=new b(l,2,!1,l,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(l){v[l]=new b(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){v[l]=new b(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){v[l]=new b(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){v[l]=new b(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){v[l]=new b(l,5,!1,l.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function D(l){return l[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(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(B,D);v[u]=new b(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){v[l]=new b(l,1,!1,l.toLowerCase(),null,!1,!1)}),v.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){v[l]=new b(l,1,!1,l.toLowerCase(),null,!0,!0)});function j(l,u,h,C){var H=v.hasOwnProperty(u)?v[u]:null;(H!==null?H.type!==0:C||!(2ue||H[$]!==S[ue]){var ye=` -`+H[$].replace(" at new "," at ");return l.displayName&&ye.includes("")&&(ye=ye.replace("",l.displayName)),ye}while(1<=$&&0<=ue);break}}}finally{P=!1,Error.prepareStackTrace=h}return(l=l?l.displayName||l.name:"")?F(l):""}function se(l){switch(l.tag){case 5:return F(l.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return l=V(l.type,!1),l;case 11:return l=V(l.type.render,!1),l;case 1:return l=V(l.type,!0),l;default:return""}}function ce(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case k:return"Fragment";case G:return"Portal";case M:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case z:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case _:return(l.displayName||"Context")+".Consumer";case Z:return(l._context.displayName||"Context")+".Provider";case I:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case X:return u=l.displayName||null,u!==null?u:ce(l.type)||"Memo";case ae:u=l._payload,l=l._init;try{return ce(l(u))}catch{}}return null}function pe(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(u);case 8:return u===T?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ge(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function de(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Ge(l){var u=de(l)?"checked":"value",h=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),C=""+l[u];if(!l.hasOwnProperty(u)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var H=h.get,S=h.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return H.call(this)},set:function($){C=""+$,S.call(this,$)}}),Object.defineProperty(l,u,{enumerable:h.enumerable}),{getValue:function(){return C},setValue:function($){C=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function Se(l){l._valueTracker||(l._valueTracker=Ge(l))}function Be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var h=u.getValue(),C="";return l&&(C=de(l)?l.checked?"true":"false":l.value),l=C,l!==h?(u.setValue(l),!0):!1}function Re(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function nt(l,u){var h=u.checked;return R({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??l._wrapperState.initialChecked})}function _e(l,u){var h=u.defaultValue==null?"":u.defaultValue,C=u.checked!=null?u.checked:u.defaultChecked;h=ge(u.value!=null?u.value:h),l._wrapperState={initialChecked:C,initialValue:h,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function le(l,u){u=u.checked,u!=null&&j(l,"checked",u,!1)}function At(l,u){le(l,u);var h=ge(u.value),C=u.type;if(h!=null)C==="number"?(h===0&&l.value===""||l.value!=h)&&(l.value=""+h):l.value!==""+h&&(l.value=""+h);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?Me(l,u.type,h):u.hasOwnProperty("defaultValue")&&Me(l,u.type,ge(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function st(l,u,h){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var C=u.type;if(!(C!=="submit"&&C!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,h||u===l.value||(l.value=u),l.defaultValue=u}h=l.name,h!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,h!==""&&(l.name=h)}function Me(l,u,h){(u!=="number"||Re(l.ownerDocument)!==l)&&(h==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+h&&(l.defaultValue=""+h))}var Ke=Array.isArray;function We(l,u,h,C){if(l=l.options,u){u={};for(var H=0;H"+u.valueOf().toString()+"",u=Je.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function $e(l,u){if(u){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=u;return}}l.textContent=u}var Ze={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},xt=["Webkit","ms","Moz","O"];Object.keys(Ze).forEach(function(l){xt.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Ze[u]=Ze[l]})});function gt(l,u,h){return u==null||typeof u=="boolean"||u===""?"":h||typeof u!="number"||u===0||Ze.hasOwnProperty(l)&&Ze[l]?(""+u).trim():u+"px"}function $t(l,u){l=l.style;for(var h in u)if(u.hasOwnProperty(h)){var C=h.indexOf("--")===0,H=gt(h,u[h],C);h==="float"&&(h="cssFloat"),C?l.setProperty(h,H):l[h]=H}}var Vt=R({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 It(l,u){if(u){if(Vt[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Jn(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 zt=null;function xo(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Nn=null,ba=null,Ca=null;function un(l){if(l=Ol(l)){if(typeof Nn!="function")throw Error(n(280));var u=l.stateNode;u&&(u=Xm(u),Nn(l.stateNode,l.type,u))}}function kt(l){ba?Ca?Ca.push(l):Ca=[l]:ba=l}function dt(){if(ba){var l=ba,u=Ca;if(Ca=ba=null,un(l),u)for(l=0;l>>=0,l===0?32:31-(va(l)/zd|0)|0}var cc=64,yi=4194304;function lc(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function _o(l,u){var h=l.pendingLanes;if(h===0)return 0;var C=0,H=l.suspendedLanes,S=l.pingedLanes,$=h&268435455;if($!==0){var ue=$&~H;ue!==0?C=lc(ue):(S&=$,S!==0&&(C=lc(S)))}else $=h&~H,$!==0?C=lc($):S!==0&&(C=lc(S));if(C===0)return 0;if(u!==0&&u!==C&&(u&H)===0&&(H=C&-C,S=u&-u,H>=S||H===16&&(S&4194240)!==0))return u;if((C&4)!==0&&(C|=h&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=C;0h;h++)u.push(l);return u}function bi(l,u,h){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-nr(u),l[u]=h}function TA(l,u){var h=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0=Ni),xc=" ",Ul=!1;function Hl(l,u){switch(l){case"keyup":return or.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yc(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ga=!1;function Nl(l,u){switch(l){case"compositionend":return yc(u);case"keypress":return u.which!==32?null:(Ul=!0,xc);case"textInput":return l=u.data,l===xc&&Ul?null:l;default:return null}}function jl(l,u){if(ga)return l==="compositionend"||!Cr&&Hl(l,u)?(l=$d(),br=yr=zr=null,ga=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:h,offset:u-l};l=C}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=io(h)}}function Cc(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?Cc(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function zm(){for(var l=window,u=Re();u instanceof l.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)l=u.contentWindow;else break;u=Re(l.document)}return u}function vc(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function wc(l){var u=zm(),h=l.focusedElem,C=l.selectionRange;if(u!==h&&h&&h.ownerDocument&&Cc(h.ownerDocument.documentElement,h)){if(C!==null&&vc(h)){if(u=C.start,l=C.end,l===void 0&&(l=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(l,h.value.length);else if(l=(u=h.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var H=h.textContent.length,S=Math.min(C.start,H);C=C.end===void 0?S:Math.min(C.end,H),!l.extend&&S>C&&(H=C,C=S,S=H),H=rr(h,S);var $=rr(h,C);H&&$&&(l.rangeCount!==1||l.anchorNode!==H.node||l.anchorOffset!==H.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(H.node,H.offset),l.removeAllRanges(),S>C?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=h;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h=document.documentMode,sr=null,Ts=null,ds=null,Rs=!1;function Ms(l,u,h){var C=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Rs||sr==null||sr!==Re(C)||(C=sr,"selectionStart"in C&&vc(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),ds&&Os(ds,C)||(ds=C,C=eu(Ts,"onSelect"),0zs||(l.current=qA[zs],qA[zs]=null,zs--)}function kn(l,u){zs++,qA[zs]=l.current,l.current=u}var Pi={},Wa=qr(Pi),Lo=qr(!1),Gc=Pi;function Tl(l,u){var h=l.type.contextTypes;if(!h)return Pi;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===u)return C.__reactInternalMemoizedMaskedChildContext;var H={},S;for(S in h)H[S]=u[S];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=H),H}function Qo(l){return l=l.childContextTypes,l!=null}function nu(){Pn(Lo),Pn(Wa)}function pf(l,u,h){if(Wa.current!==Pi)throw Error(n(168));kn(Wa,u),kn(Lo,h)}function KA(l,u,h){var C=l.stateNode;if(u=u.childContextTypes,typeof C.getChildContext!="function")return h;C=C.getChildContext();for(var H in C)if(!(H in u))throw Error(n(108,pe(l)||"Unknown",H));return R({},h,C)}function Ec(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Pi,Gc=Wa.current,kn(Wa,l),kn(Lo,Lo.current),!0}function ff(l,u,h){var C=l.stateNode;if(!C)throw Error(n(169));h?(l=KA(l,u,Gc),C.__reactInternalMemoizedMergedChildContext=l,Pn(Lo),Pn(Wa),kn(Wa,l)):Pn(Lo),kn(Lo,h)}var Zs=null,Jm=!1,x=!1;function w(l){Zs===null?Zs=[l]:Zs.push(l)}function N(l){Jm=!0,w(l)}function L(){if(!x&&Zs!==null){x=!0;var l=0,u=Bn;try{var h=Zs;for(Bn=1;l>=$,H-=$,Ne=1<<32-nr(u)+H|h<Kt?(Ao=Qt,Qt=null):Ao=Qt.sibling;var En=Xe(Ee,Qt,Pe[Kt],rt);if(En===null){Qt===null&&(Qt=Ao);break}l&&Qt&&En.alternate===null&&u(Ee,Qt),ve=S(En,ve,Kt),Lt===null?jt=En:Lt.sibling=En,Lt=En,Qt=Ao}if(Kt===Pe.length)return h(Ee,Qt),Le&&we(Ee,Kt),jt;if(Qt===null){for(;KtKt?(Ao=Qt,Qt=null):Ao=Qt.sibling;var em=Xe(Ee,Qt,En.value,rt);if(em===null){Qt===null&&(Qt=Ao);break}l&&Qt&&em.alternate===null&&u(Ee,Qt),ve=S(em,ve,Kt),Lt===null?jt=em:Lt.sibling=em,Lt=em,Qt=Ao}if(En.done)return h(Ee,Qt),Le&&we(Ee,Kt),jt;if(Qt===null){for(;!En.done;Kt++,En=Pe.next())En=at(Ee,En.value,rt),En!==null&&(ve=S(En,ve,Kt),Lt===null?jt=En:Lt.sibling=En,Lt=En);return Le&&we(Ee,Kt),jt}for(Qt=C(Ee,Qt);!En.done;Kt++,En=Pe.next())En=yt(Qt,Ee,Kt,En.value,rt),En!==null&&(l&&En.alternate!==null&&Qt.delete(En.key===null?Kt:En.key),ve=S(En,ve,Kt),Lt===null?jt=En:Lt.sibling=En,Lt=En);return l&&Qt.forEach(function(Kk){return u(Ee,Kk)}),Le&&we(Ee,Kt),jt}function Fa(Ee,ve,Pe,rt){if(typeof Pe=="object"&&Pe!==null&&Pe.type===k&&Pe.key===null&&(Pe=Pe.props.children),typeof Pe=="object"&&Pe!==null){switch(Pe.$$typeof){case E:e:{for(var jt=Pe.key,Lt=ve;Lt!==null;){if(Lt.key===jt){if(jt=Pe.type,jt===k){if(Lt.tag===7){h(Ee,Lt.sibling),ve=H(Lt,Pe.props.children),ve.return=Ee,Ee=ve;break e}}else if(Lt.elementType===jt||typeof jt=="object"&&jt!==null&&jt.$$typeof===ae&&Bo(jt)===Lt.type){h(Ee,Lt.sibling),ve=H(Lt,Pe.props),ve.ref=qt(Ee,Lt,Pe),ve.return=Ee,Ee=ve;break e}h(Ee,Lt);break}else u(Ee,Lt);Lt=Lt.sibling}Pe.type===k?(ve=id(Pe.props.children,Ee.mode,rt,Pe.key),ve.return=Ee,Ee=ve):(rt=If(Pe.type,Pe.key,Pe.props,null,Ee.mode,rt),rt.ref=qt(Ee,ve,Pe),rt.return=Ee,Ee=rt)}return $(Ee);case G:e:{for(Lt=Pe.key;ve!==null;){if(ve.key===Lt)if(ve.tag===4&&ve.stateNode.containerInfo===Pe.containerInfo&&ve.stateNode.implementation===Pe.implementation){h(Ee,ve.sibling),ve=H(ve,Pe.children||[]),ve.return=Ee,Ee=ve;break e}else{h(Ee,ve);break}else u(Ee,ve);ve=ve.sibling}ve=I0(Pe,Ee.mode,rt),ve.return=Ee,Ee=ve}return $(Ee);case ae:return Lt=Pe._init,Fa(Ee,ve,Lt(Pe._payload),rt)}if(Ke(Pe))return wt(Ee,ve,Pe,rt);if(oe(Pe))return Ht(Ee,ve,Pe,rt);ca(Ee,Pe)}return typeof Pe=="string"&&Pe!==""||typeof Pe=="number"?(Pe=""+Pe,ve!==null&&ve.tag===6?(h(Ee,ve.sibling),ve=H(ve,Pe),ve.return=Ee,Ee=ve):(h(Ee,ve),ve=P0(Pe,Ee.mode,rt),ve.return=Ee,Ee=ve),$(Ee)):h(Ee,ve)}return Fa}var Sa=wa(!0),jn=wa(!1),lo=qr(null),mo=null,la=null,Pa=null;function Va(){Pa=la=mo=null}function Oo(l){var u=lo.current;Pn(lo),l._currentValue=u}function Br(l,u,h){for(;l!==null;){var C=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,C!==null&&(C.childLanes|=u)):C!==null&&(C.childLanes&u)!==u&&(C.childLanes|=u),l===h)break;l=l.return}}function ma(l,u){mo=l,Pa=la=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Nr=!0),l.firstContext=null)}function Ha(l){var u=l._currentValue;if(Pa!==l)if(l={context:l,memoizedValue:u,next:null},la===null){if(mo===null)throw Error(n(308));la=l,mo.dependencies={lanes:0,firstContext:l}}else la=la.next=l;return u}var ir=null;function Ii(l){ir===null?ir=[l]:ir.push(l)}function Ys(l,u,h,C){var H=u.interleaved;return H===null?(h.next=h,Ii(u)):(h.next=H.next,H.next=h),u.interleaved=h,Gn(l,C)}function Gn(l,u){l.lanes|=u;var h=l.alternate;for(h!==null&&(h.lanes|=u),h=l,l=l.return;l!==null;)l.childLanes|=u,h=l.alternate,h!==null&&(h.childLanes|=u),h=l,l=l.return;return h.tag===3?h.stateNode:null}var fs=!1;function au(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $A(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Dr(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function Ur(l,u,h){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,(Un&2)!==0){var H=C.pending;return H===null?u.next=u:(u.next=H.next,H.next=u),C.pending=u,Gn(l,h)}return H=C.interleaved,H===null?(u.next=u,Ii(C)):(u.next=H.next,H.next=u),C.interleaved=u,Gn(l,h)}function _c(l,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194240)!==0)){var C=u.lanes;C&=l.pendingLanes,h|=C,u.lanes=h,pl(l,h)}}function Hr(l,u){var h=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,h===C)){var H=null,S=null;if(h=h.firstBaseUpdate,h!==null){do{var $={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};S===null?H=S=$:S=S.next=$,h=h.next}while(h!==null);S===null?H=S=u:S=S.next=u}else H=S=u;h={baseState:C.baseState,firstBaseUpdate:H,lastBaseUpdate:S,shared:C.shared,effects:C.effects},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=u}function qs(l,u,h,C){var H=l.updateQueue;fs=!1;var S=H.firstBaseUpdate,$=H.lastBaseUpdate,ue=H.shared.pending;if(ue!==null){H.shared.pending=null;var ye=ue,Ie=ye.next;ye.next=null,$===null?S=Ie:$.next=Ie,$=ye;var tt=l.alternate;tt!==null&&(tt=tt.updateQueue,ue=tt.lastBaseUpdate,ue!==$&&(ue===null?tt.firstBaseUpdate=Ie:ue.next=Ie,tt.lastBaseUpdate=ye))}if(S!==null){var at=H.baseState;$=0,tt=Ie=ye=null,ue=S;do{var Xe=ue.lane,yt=ue.eventTime;if((C&Xe)===Xe){tt!==null&&(tt=tt.next={eventTime:yt,lane:0,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null});e:{var wt=l,Ht=ue;switch(Xe=u,yt=h,Ht.tag){case 1:if(wt=Ht.payload,typeof wt=="function"){at=wt.call(yt,at,Xe);break e}at=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=Ht.payload,Xe=typeof wt=="function"?wt.call(yt,at,Xe):wt,Xe==null)break e;at=R({},at,Xe);break e;case 2:fs=!0}}ue.callback!==null&&ue.lane!==0&&(l.flags|=64,Xe=H.effects,Xe===null?H.effects=[ue]:Xe.push(ue))}else yt={eventTime:yt,lane:Xe,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null},tt===null?(Ie=tt=yt,ye=at):tt=tt.next=yt,$|=Xe;if(ue=ue.next,ue===null){if(ue=H.shared.pending,ue===null)break;Xe=ue,ue=Xe.next,Xe.next=null,H.lastBaseUpdate=Xe,H.shared.pending=null}}while(!0);if(tt===null&&(ye=at),H.baseState=ye,H.firstBaseUpdate=Ie,H.lastBaseUpdate=tt,u=H.shared.interleaved,u!==null){H=u;do $|=H.lane,H=H.next;while(H!==u)}else S===null&&(H.shared.lanes=0);ad|=$,l.lanes=$,l.memoizedState=at}}function Sc(l,u,h){if(l=u.effects,u.effects=null,l!==null)for(u=0;uh?h:4,l(!0);var C=ru.transition;ru.transition={};try{l(!1),u()}finally{Bn=h,ru.transition=C}}function VD(){return lr().memoizedState}function xk(l,u,h){var C=Vl(l);if(h={lane:C,action:h,hasEagerState:!1,eagerState:null,next:null},XD(l))JD(u,h);else if(h=Ys(l,u,h,C),h!==null){var H=ur();ei(h,l,C,H),e5(h,u,C)}}function yk(l,u,h){var C=Vl(l),H={lane:C,action:h,hasEagerState:!1,eagerState:null,next:null};if(XD(l))JD(u,H);else{var S=l.alternate;if(l.lanes===0&&(S===null||S.lanes===0)&&(S=u.lastRenderedReducer,S!==null))try{var $=u.lastRenderedState,ue=S($,h);if(H.hasEagerState=!0,H.eagerState=ue,Dn(ue,$)){var ye=u.interleaved;ye===null?(H.next=H,Ii(u)):(H.next=ye.next,ye.next=H),u.interleaved=H;return}}catch{}finally{}h=Ys(l,u,H,C),h!==null&&(H=ur(),ei(h,l,C,H),e5(h,u,C))}}function XD(l){var u=l.alternate;return l===ea||u!==null&&u===ea}function JD(l,u){$s=Zl=!0;var h=l.pending;h===null?u.next=u:(u.next=h.next,h.next=u),l.pending=u}function e5(l,u,h){if((h&4194240)!==0){var C=u.lanes;C&=l.pendingLanes,h|=C,u.lanes=h,pl(l,h)}}var Cf={readContext:Ha,useCallback:Ia,useContext:Ia,useEffect:Ia,useImperativeHandle:Ia,useInsertionEffect:Ia,useLayoutEffect:Ia,useMemo:Ia,useReducer:Ia,useRef:Ia,useState:Ia,useDebugValue:Ia,useDeferredValue:Ia,useTransition:Ia,useMutableSource:Ia,useSyncExternalStore:Ia,useId:Ia,unstable_isNewReconciler:!1},bk={readContext:Ha,useCallback:function(l,u){return $r().memoizedState=[l,u===void 0?null:u],l},useContext:Ha,useEffect:lu,useImperativeHandle:function(l,u,h){return h=h!=null?h.concat([l]):null,Wr(4194308,4,uu.bind(null,u,l),h)},useLayoutEffect:function(l,u){return Wr(4194308,4,l,u)},useInsertionEffect:function(l,u){return Wr(4,2,l,u)},useMemo:function(l,u){var h=$r();return u=u===void 0?null:u,l=l(),h.memoizedState=[l,u],l},useReducer:function(l,u,h){var C=$r();return u=h!==void 0?h(u):u,C.memoizedState=C.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},C.queue=l,l=l.dispatch=xk.bind(null,ea,l),[C.memoizedState,l]},useRef:function(l){var u=$r();return l={current:l},u.memoizedState=l},useState:nd,useDebugValue:i0,useDeferredValue:function(l){return $r().memoizedState=l},useTransition:function(){var l=nd(!1),u=l[0];return l=hk.bind(null,l[1]),$r().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,h){var C=ea,H=$r();if(Le){if(h===void 0)throw Error(n(407));h=h()}else{if(h=u(),uo===null)throw Error(n(349));(hs&30)!==0||xf(C,u,h)}H.memoizedState=h;var S={value:h,getSnapshot:u};return H.queue=S,lu(yf.bind(null,C,S,l),[l]),C.flags|=2048,mr(9,ep.bind(null,C,S,h,u),void 0,null),h},useId:function(){var l=$r(),u=uo.identifierPrefix;if(Le){var h=je,C=Ne;h=(C&~(1<<32-nr(C)-1)).toString(32)+h,u=":"+u+"R"+h,h=Yl++,0")&&(ye=ye.replace("",l.displayName)),ye}while(1<=$&&0<=ue);break}}}finally{P=!1,Error.prepareStackTrace=h}return(l=l?l.displayName||l.name:"")?F(l):""}function se(l){switch(l.tag){case 5:return F(l.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return l=V(l.type,!1),l;case 11:return l=V(l.type.render,!1),l;case 1:return l=V(l.type,!0),l;default:return""}}function ce(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case k:return"Fragment";case G:return"Portal";case M:return"Profiler";case T:return"StrictMode";case O:return"Suspense";case z:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case _:return(l.displayName||"Context")+".Consumer";case Z:return(l._context.displayName||"Context")+".Provider";case I:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case X:return u=l.displayName||null,u!==null?u:ce(l.type)||"Memo";case ae:u=l._payload,l=l._init;try{return ce(l(u))}catch{}}return null}function pe(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ce(u);case 8:return u===T?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ge(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function de(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function je(l){var u=de(l)?"checked":"value",h=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),C=""+l[u];if(!l.hasOwnProperty(u)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var H=h.get,S=h.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return H.call(this)},set:function($){C=""+$,S.call(this,$)}}),Object.defineProperty(l,u,{enumerable:h.enumerable}),{getValue:function(){return C},setValue:function($){C=""+$},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function _e(l){l._valueTracker||(l._valueTracker=je(l))}function Be(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var h=u.getValue(),C="";return l&&(C=de(l)?l.checked?"true":"false":l.value),l=C,l!==h?(u.setValue(l),!0):!1}function Me(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function tt(l,u){var h=u.checked;return R({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??l._wrapperState.initialChecked})}function Ee(l,u){var h=u.defaultValue==null?"":u.defaultValue,C=u.checked!=null?u.checked:u.defaultChecked;h=ge(u.value!=null?u.value:h),l._wrapperState={initialChecked:C,initialValue:h,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function le(l,u){u=u.checked,u!=null&&j(l,"checked",u,!1)}function ft(l,u){le(l,u);var h=ge(u.value),C=u.type;if(h!=null)C==="number"?(h===0&&l.value===""||l.value!=h)&&(l.value=""+h):l.value!==""+h&&(l.value=""+h);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?ze(l,u.type,h):u.hasOwnProperty("defaultValue")&&ze(l,u.type,ge(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function st(l,u,h){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var C=u.type;if(!(C!=="submit"&&C!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,h||u===l.value||(l.value=u),l.defaultValue=u}h=l.name,h!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,h!==""&&(l.name=h)}function ze(l,u,h){(u!=="number"||Me(l.ownerDocument)!==l)&&(h==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+h&&(l.defaultValue=""+h))}var Ke=Array.isArray;function $e(l,u,h,C){if(l=l.options,u){u={};for(var H=0;H"+u.valueOf().toString()+"",u=rt.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function Xe(l,u){if(u){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=u;return}}l.textContent=u}var Ze={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},pt=["Webkit","ms","Moz","O"];Object.keys(Ze).forEach(function(l){pt.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Ze[u]=Ze[l]})});function lt(l,u,h){return u==null||typeof u=="boolean"||u===""?"":h||typeof u!="number"||u===0||Ze.hasOwnProperty(l)&&Ze[l]?(""+u).trim():u+"px"}function kt(l,u){l=l.style;for(var h in u)if(u.hasOwnProperty(h)){var C=h.indexOf("--")===0,H=lt(h,u[h],C);h==="float"&&(h="cssFloat"),C?l.setProperty(h,H):l[h]=H}}var Mt=R({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 Nt(l,u){if(u){if(Mt[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Jn(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 Yt=null;function xo(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Nn=null,ba=null,Ca=null;function un(l){if(l=Ol(l)){if(typeof Nn!="function")throw Error(n(280));var u=l.stateNode;u&&(u=Xm(u),Nn(l.stateNode,l.type,u))}}function Lt(l){ba?Ca?Ca.push(l):Ca=[l]:ba=l}function ut(){if(ba){var l=ba,u=Ca;if(Ca=ba=null,un(l),u)for(l=0;l>>=0,l===0?32:31-(va(l)/zd|0)|0}var cc=64,yi=4194304;function lc(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function _o(l,u){var h=l.pendingLanes;if(h===0)return 0;var C=0,H=l.suspendedLanes,S=l.pingedLanes,$=h&268435455;if($!==0){var ue=$&~H;ue!==0?C=lc(ue):(S&=$,S!==0&&(C=lc(S)))}else $=h&~H,$!==0?C=lc($):S!==0&&(C=lc(S));if(C===0)return 0;if(u!==0&&u!==C&&(u&H)===0&&(H=C&-C,S=u&-u,H>=S||H===16&&(S&4194240)!==0))return u;if((C&4)!==0&&(C|=h&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=C;0h;h++)u.push(l);return u}function bi(l,u,h){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-nr(u),l[u]=h}function TA(l,u){var h=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0=Ni),xc=" ",Ul=!1;function Hl(l,u){switch(l){case"keyup":return or.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yc(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ga=!1;function Nl(l,u){switch(l){case"compositionend":return yc(u);case"keypress":return u.which!==32?null:(Ul=!0,xc);case"textInput":return l=u.data,l===xc&&Ul?null:l;default:return null}}function jl(l,u){if(ga)return l==="compositionend"||!Cr&&Hl(l,u)?(l=$d(),br=yr=zr=null,ga=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:h,offset:u-l};l=C}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=io(h)}}function Cc(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?Cc(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function zm(){for(var l=window,u=Me();u instanceof l.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)l=u.contentWindow;else break;u=Me(l.document)}return u}function vc(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function wc(l){var u=zm(),h=l.focusedElem,C=l.selectionRange;if(u!==h&&h&&h.ownerDocument&&Cc(h.ownerDocument.documentElement,h)){if(C!==null&&vc(h)){if(u=C.start,l=C.end,l===void 0&&(l=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(l,h.value.length);else if(l=(u=h.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var H=h.textContent.length,S=Math.min(C.start,H);C=C.end===void 0?S:Math.min(C.end,H),!l.extend&&S>C&&(H=C,C=S,S=H),H=rr(h,S);var $=rr(h,C);H&&$&&(l.rangeCount!==1||l.anchorNode!==H.node||l.anchorOffset!==H.offset||l.focusNode!==$.node||l.focusOffset!==$.offset)&&(u=u.createRange(),u.setStart(H.node,H.offset),l.removeAllRanges(),S>C?(l.addRange(u),l.extend($.node,$.offset)):(u.setEnd($.node,$.offset),l.addRange(u)))}}for(u=[],l=h;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h=document.documentMode,sr=null,Ts=null,ds=null,Rs=!1;function Ms(l,u,h){var C=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Rs||sr==null||sr!==Me(C)||(C=sr,"selectionStart"in C&&vc(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),ds&&Os(ds,C)||(ds=C,C=eu(Ts,"onSelect"),0zs||(l.current=qA[zs],qA[zs]=null,zs--)}function kn(l,u){zs++,qA[zs]=l.current,l.current=u}var Pi={},Wa=qr(Pi),Lo=qr(!1),Gc=Pi;function Tl(l,u){var h=l.type.contextTypes;if(!h)return Pi;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===u)return C.__reactInternalMemoizedMaskedChildContext;var H={},S;for(S in h)H[S]=u[S];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=H),H}function Qo(l){return l=l.childContextTypes,l!=null}function nu(){Pn(Lo),Pn(Wa)}function pf(l,u,h){if(Wa.current!==Pi)throw Error(n(168));kn(Wa,u),kn(Lo,h)}function KA(l,u,h){var C=l.stateNode;if(u=u.childContextTypes,typeof C.getChildContext!="function")return h;C=C.getChildContext();for(var H in C)if(!(H in u))throw Error(n(108,pe(l)||"Unknown",H));return R({},h,C)}function Ec(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Pi,Gc=Wa.current,kn(Wa,l),kn(Lo,Lo.current),!0}function ff(l,u,h){var C=l.stateNode;if(!C)throw Error(n(169));h?(l=KA(l,u,Gc),C.__reactInternalMemoizedMergedChildContext=l,Pn(Lo),Pn(Wa),kn(Wa,l)):Pn(Lo),kn(Lo,h)}var Zs=null,Jm=!1,x=!1;function w(l){Zs===null?Zs=[l]:Zs.push(l)}function N(l){Jm=!0,w(l)}function L(){if(!x&&Zs!==null){x=!0;var l=0,u=Bn;try{var h=Zs;for(Bn=1;l>=$,H-=$,He=1<<32-nr(u)+H|h<Wt?(Ao=Ot,Ot=null):Ao=Ot.sibling;var En=Ve(Ge,Ot,Se[Wt],ot);if(En===null){Ot===null&&(Ot=Ao);break}l&&Ot&&En.alternate===null&&u(Ge,Ot),ve=S(En,ve,Wt),Qt===null?Et=En:Qt.sibling=En,Qt=En,Ot=Ao}if(Wt===Se.length)return h(Ge,Ot),Qe&&we(Ge,Wt),Et;if(Ot===null){for(;WtWt?(Ao=Ot,Ot=null):Ao=Ot.sibling;var em=Ve(Ge,Ot,En.value,ot);if(em===null){Ot===null&&(Ot=Ao);break}l&&Ot&&em.alternate===null&&u(Ge,Ot),ve=S(em,ve,Wt),Qt===null?Et=em:Qt.sibling=em,Qt=em,Ot=Ao}if(En.done)return h(Ge,Ot),Qe&&we(Ge,Wt),Et;if(Ot===null){for(;!En.done;Wt++,En=Se.next())En=nt(Ge,En.value,ot),En!==null&&(ve=S(En,ve,Wt),Qt===null?Et=En:Qt.sibling=En,Qt=En);return Qe&&we(Ge,Wt),Et}for(Ot=C(Ge,Ot);!En.done;Wt++,En=Se.next())En=yt(Ot,Ge,Wt,En.value,ot),En!==null&&(l&&En.alternate!==null&&Ot.delete(En.key===null?Wt:En.key),ve=S(En,ve,Wt),Qt===null?Et=En:Qt.sibling=En,Qt=En);return l&&Ot.forEach(function($k){return u(Ge,$k)}),Qe&&we(Ge,Wt),Et}function Fa(Ge,ve,Se,ot){if(typeof Se=="object"&&Se!==null&&Se.type===k&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case E:e:{for(var Et=Se.key,Qt=ve;Qt!==null;){if(Qt.key===Et){if(Et=Se.type,Et===k){if(Qt.tag===7){h(Ge,Qt.sibling),ve=H(Qt,Se.props.children),ve.return=Ge,Ge=ve;break e}}else if(Qt.elementType===Et||typeof Et=="object"&&Et!==null&&Et.$$typeof===ae&&Bo(Et)===Qt.type){h(Ge,Qt.sibling),ve=H(Qt,Se.props),ve.ref=$t(Ge,Qt,Se),ve.return=Ge,Ge=ve;break e}h(Ge,Qt);break}else u(Ge,Qt);Qt=Qt.sibling}Se.type===k?(ve=id(Se.props.children,Ge.mode,ot,Se.key),ve.return=Ge,Ge=ve):(ot=If(Se.type,Se.key,Se.props,null,Ge.mode,ot),ot.ref=$t(Ge,ve,Se),ot.return=Ge,Ge=ot)}return $(Ge);case G:e:{for(Qt=Se.key;ve!==null;){if(ve.key===Qt)if(ve.tag===4&&ve.stateNode.containerInfo===Se.containerInfo&&ve.stateNode.implementation===Se.implementation){h(Ge,ve.sibling),ve=H(ve,Se.children||[]),ve.return=Ge,Ge=ve;break e}else{h(Ge,ve);break}else u(Ge,ve);ve=ve.sibling}ve=I0(Se,Ge.mode,ot),ve.return=Ge,Ge=ve}return $(Ge);case ae:return Qt=Se._init,Fa(Ge,ve,Qt(Se._payload),ot)}if(Ke(Se))return wt(Ge,ve,Se,ot);if(oe(Se))return Ht(Ge,ve,Se,ot);ca(Ge,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"?(Se=""+Se,ve!==null&&ve.tag===6?(h(Ge,ve.sibling),ve=H(ve,Se),ve.return=Ge,Ge=ve):(h(Ge,ve),ve=P0(Se,Ge.mode,ot),ve.return=Ge,Ge=ve),$(Ge)):h(Ge,ve)}return Fa}var Sa=wa(!0),jn=wa(!1),lo=qr(null),mo=null,la=null,Pa=null;function Va(){Pa=la=mo=null}function Oo(l){var u=lo.current;Pn(lo),l._currentValue=u}function Br(l,u,h){for(;l!==null;){var C=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,C!==null&&(C.childLanes|=u)):C!==null&&(C.childLanes&u)!==u&&(C.childLanes|=u),l===h)break;l=l.return}}function ma(l,u){mo=l,Pa=la=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&u)!==0&&(Nr=!0),l.firstContext=null)}function Ha(l){var u=l._currentValue;if(Pa!==l)if(l={context:l,memoizedValue:u,next:null},la===null){if(mo===null)throw Error(n(308));la=l,mo.dependencies={lanes:0,firstContext:l}}else la=la.next=l;return u}var ir=null;function Ii(l){ir===null?ir=[l]:ir.push(l)}function Ys(l,u,h,C){var H=u.interleaved;return H===null?(h.next=h,Ii(u)):(h.next=H.next,H.next=h),u.interleaved=h,Gn(l,C)}function Gn(l,u){l.lanes|=u;var h=l.alternate;for(h!==null&&(h.lanes|=u),h=l,l=l.return;l!==null;)l.childLanes|=u,h=l.alternate,h!==null&&(h.childLanes|=u),h=l,l=l.return;return h.tag===3?h.stateNode:null}var fs=!1;function au(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function $A(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Dr(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function Ur(l,u,h){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,(Un&2)!==0){var H=C.pending;return H===null?u.next=u:(u.next=H.next,H.next=u),C.pending=u,Gn(l,h)}return H=C.interleaved,H===null?(u.next=u,Ii(C)):(u.next=H.next,H.next=u),C.interleaved=u,Gn(l,h)}function _c(l,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194240)!==0)){var C=u.lanes;C&=l.pendingLanes,h|=C,u.lanes=h,pl(l,h)}}function Hr(l,u){var h=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,h===C)){var H=null,S=null;if(h=h.firstBaseUpdate,h!==null){do{var $={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};S===null?H=S=$:S=S.next=$,h=h.next}while(h!==null);S===null?H=S=u:S=S.next=u}else H=S=u;h={baseState:C.baseState,firstBaseUpdate:H,lastBaseUpdate:S,shared:C.shared,effects:C.effects},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=u}function qs(l,u,h,C){var H=l.updateQueue;fs=!1;var S=H.firstBaseUpdate,$=H.lastBaseUpdate,ue=H.shared.pending;if(ue!==null){H.shared.pending=null;var ye=ue,Pe=ye.next;ye.next=null,$===null?S=Pe:$.next=Pe,$=ye;var et=l.alternate;et!==null&&(et=et.updateQueue,ue=et.lastBaseUpdate,ue!==$&&(ue===null?et.firstBaseUpdate=Pe:ue.next=Pe,et.lastBaseUpdate=ye))}if(S!==null){var nt=H.baseState;$=0,et=Pe=ye=null,ue=S;do{var Ve=ue.lane,yt=ue.eventTime;if((C&Ve)===Ve){et!==null&&(et=et.next={eventTime:yt,lane:0,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null});e:{var wt=l,Ht=ue;switch(Ve=u,yt=h,Ht.tag){case 1:if(wt=Ht.payload,typeof wt=="function"){nt=wt.call(yt,nt,Ve);break e}nt=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=Ht.payload,Ve=typeof wt=="function"?wt.call(yt,nt,Ve):wt,Ve==null)break e;nt=R({},nt,Ve);break e;case 2:fs=!0}}ue.callback!==null&&ue.lane!==0&&(l.flags|=64,Ve=H.effects,Ve===null?H.effects=[ue]:Ve.push(ue))}else yt={eventTime:yt,lane:Ve,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null},et===null?(Pe=et=yt,ye=nt):et=et.next=yt,$|=Ve;if(ue=ue.next,ue===null){if(ue=H.shared.pending,ue===null)break;Ve=ue,ue=Ve.next,Ve.next=null,H.lastBaseUpdate=Ve,H.shared.pending=null}}while(!0);if(et===null&&(ye=nt),H.baseState=ye,H.firstBaseUpdate=Pe,H.lastBaseUpdate=et,u=H.shared.interleaved,u!==null){H=u;do $|=H.lane,H=H.next;while(H!==u)}else S===null&&(H.shared.lanes=0);ad|=$,l.lanes=$,l.memoizedState=nt}}function Sc(l,u,h){if(l=u.effects,u.effects=null,l!==null)for(u=0;uh?h:4,l(!0);var C=ru.transition;ru.transition={};try{l(!1),u()}finally{Bn=h,ru.transition=C}}function VD(){return lr().memoizedState}function yk(l,u,h){var C=Vl(l);if(h={lane:C,action:h,hasEagerState:!1,eagerState:null,next:null},XD(l))JD(u,h);else if(h=Ys(l,u,h,C),h!==null){var H=ur();ei(h,l,C,H),e5(h,u,C)}}function bk(l,u,h){var C=Vl(l),H={lane:C,action:h,hasEagerState:!1,eagerState:null,next:null};if(XD(l))JD(u,H);else{var S=l.alternate;if(l.lanes===0&&(S===null||S.lanes===0)&&(S=u.lastRenderedReducer,S!==null))try{var $=u.lastRenderedState,ue=S($,h);if(H.hasEagerState=!0,H.eagerState=ue,Dn(ue,$)){var ye=u.interleaved;ye===null?(H.next=H,Ii(u)):(H.next=ye.next,ye.next=H),u.interleaved=H;return}}catch{}finally{}h=Ys(l,u,H,C),h!==null&&(H=ur(),ei(h,l,C,H),e5(h,u,C))}}function XD(l){var u=l.alternate;return l===ea||u!==null&&u===ea}function JD(l,u){$s=Zl=!0;var h=l.pending;h===null?u.next=u:(u.next=h.next,h.next=u),l.pending=u}function e5(l,u,h){if((h&4194240)!==0){var C=u.lanes;C&=l.pendingLanes,h|=C,u.lanes=h,pl(l,h)}}var Cf={readContext:Ha,useCallback:Ia,useContext:Ia,useEffect:Ia,useImperativeHandle:Ia,useInsertionEffect:Ia,useLayoutEffect:Ia,useMemo:Ia,useReducer:Ia,useRef:Ia,useState:Ia,useDebugValue:Ia,useDeferredValue:Ia,useTransition:Ia,useMutableSource:Ia,useSyncExternalStore:Ia,useId:Ia,unstable_isNewReconciler:!1},Ck={readContext:Ha,useCallback:function(l,u){return $r().memoizedState=[l,u===void 0?null:u],l},useContext:Ha,useEffect:lu,useImperativeHandle:function(l,u,h){return h=h!=null?h.concat([l]):null,Wr(4194308,4,uu.bind(null,u,l),h)},useLayoutEffect:function(l,u){return Wr(4194308,4,l,u)},useInsertionEffect:function(l,u){return Wr(4,2,l,u)},useMemo:function(l,u){var h=$r();return u=u===void 0?null:u,l=l(),h.memoizedState=[l,u],l},useReducer:function(l,u,h){var C=$r();return u=h!==void 0?h(u):u,C.memoizedState=C.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},C.queue=l,l=l.dispatch=yk.bind(null,ea,l),[C.memoizedState,l]},useRef:function(l){var u=$r();return l={current:l},u.memoizedState=l},useState:nd,useDebugValue:i0,useDeferredValue:function(l){return $r().memoizedState=l},useTransition:function(){var l=nd(!1),u=l[0];return l=xk.bind(null,l[1]),$r().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,h){var C=ea,H=$r();if(Qe){if(h===void 0)throw Error(n(407));h=h()}else{if(h=u(),uo===null)throw Error(n(349));(hs&30)!==0||xf(C,u,h)}H.memoizedState=h;var S={value:h,getSnapshot:u};return H.queue=S,lu(yf.bind(null,C,S,l),[l]),C.flags|=2048,mr(9,ep.bind(null,C,S,h,u),void 0,null),h},useId:function(){var l=$r(),u=uo.identifierPrefix;if(Qe){var h=Ne,C=He;h=(C&~(1<<32-nr(C)-1)).toString(32)+h,u=":"+u+"R"+h,h=Yl++,0<\/script>",l=l.removeChild(l.firstChild)):typeof C.is=="string"?l=$.createElement(h,{is:C.is}):(l=$.createElement(h),h==="select"&&($=l,C.multiple?$.multiple=!0:C.size&&($.size=C.size))):l=$.createElementNS(l,h),l[ps]=u,l[Ql]=C,b5(l,u,!1,!1),u.stateNode=l;e:{switch($=Jn(h,C),h){case"dialog":zn("cancel",l),zn("close",l),H=C;break;case"iframe":case"object":case"embed":zn("load",l),H=C;break;case"video":case"audio":for(H=0;H<_i.length;H++)zn(_i[H],l);H=C;break;case"source":zn("error",l),H=C;break;case"img":case"image":case"link":zn("error",l),zn("load",l),H=C;break;case"details":zn("toggle",l),H=C;break;case"input":_e(l,C),H=nt(l,C),zn("invalid",l);break;case"option":H=C;break;case"select":l._wrapperState={wasMultiple:!!C.multiple},H=R({},C,{value:void 0}),zn("invalid",l);break;case"textarea":mt(l,C),H=et(l,C),zn("invalid",l);break;default:H=C}It(h,H),ue=H;for(S in ue)if(ue.hasOwnProperty(S)){var ye=ue[S];S==="style"?$t(l,ye):S==="dangerouslySetInnerHTML"?(ye=ye?ye.__html:void 0,ye!=null&&qe(l,ye)):S==="children"?typeof ye=="string"?(h!=="textarea"||ye!=="")&&$e(l,ye):typeof ye=="number"&&$e(l,""+ye):S!=="suppressContentEditableWarning"&&S!=="suppressHydrationWarning"&&S!=="autoFocus"&&(o.hasOwnProperty(S)?ye!=null&&S==="onScroll"&&zn("scroll",l):ye!=null&&j(l,S,ye,$))}switch(h){case"input":Se(l),st(l,C,!1);break;case"textarea":Se(l),Nt(l);break;case"option":C.value!=null&&l.setAttribute("value",""+ge(C.value));break;case"select":l.multiple=!!C.multiple,S=C.value,S!=null?We(l,!!C.multiple,S,!1):C.defaultValue!=null&&We(l,!!C.multiple,C.defaultValue,!0);break;default:typeof H.onClick=="function"&&(l.onclick=Ll)}switch(h){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return To(u),null;case 6:if(l&&u.stateNode!=null)v5(l,u,l.memoizedProps,C);else{if(typeof C!="string"&&u.stateNode===null)throw Error(n(166));if(h=Ks(Fi.current),Ks(cr.current),vn(u)){if(C=u.stateNode,h=u.memoizedProps,C[ps]=u,(S=C.nodeValue!==h)&&(l=Ce,l!==null))switch(l.tag){case 3:tu(C.nodeValue,h,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&tu(C.nodeValue,h,(l.mode&1)!==0)}S&&(u.flags|=4)}else C=(h.nodeType===9?h:h.ownerDocument).createTextNode(C),C[ps]=u,u.stateNode=C}return To(u),null;case 13:if(Pn($n),C=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Le&&Qe!==null&&(u.mode&1)!==0&&(u.flags&128)===0)gn(),an(),u.flags|=98560,S=!1;else if(S=vn(u),C!==null&&C.dehydrated!==null){if(l===null){if(!S)throw Error(n(318));if(S=u.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(n(317));S[ps]=u}else an(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;To(u),S=!1}else Oe!==null&&(j0(Oe),Oe=null),S=!0;if(!S)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=h,u):(C=C!==null,C!==(l!==null&&l.memoizedState!==null)&&C&&(u.child.flags|=8192,(u.mode&1)!==0&&(l===null||($n.current&1)!==0?Xa===0&&(Xa=3):_0())),u.updateQueue!==null&&(u.flags|=4),To(u),null);case 4:return gs(),x0(l,u),l===null&&Uc(u.stateNode.containerInfo),To(u),null;case 10:return Oo(u.type._context),To(u),null;case 17:return Qo(u.type)&&nu(),To(u),null;case 19:if(Pn($n),S=u.memoizedState,S===null)return To(u),null;if(C=(u.flags&128)!==0,$=S.rendering,$===null)if(C)tp(S,!1);else{if(Xa!==0||l!==null&&(l.flags&128)!==0)for(l=u.child;l!==null;){if($=Kr(l),$!==null){for(u.flags|=128,tp(S,!1),C=$.updateQueue,C!==null&&(u.updateQueue=C,u.flags|=4),u.subtreeFlags=0,C=h,h=u.child;h!==null;)S=h,l=C,S.flags&=14680066,$=S.alternate,$===null?(S.childLanes=0,S.lanes=l,S.child=null,S.subtreeFlags=0,S.memoizedProps=null,S.memoizedState=null,S.updateQueue=null,S.dependencies=null,S.stateNode=null):(S.childLanes=$.childLanes,S.lanes=$.lanes,S.child=$.child,S.subtreeFlags=0,S.deletions=null,S.memoizedProps=$.memoizedProps,S.memoizedState=$.memoizedState,S.updateQueue=$.updateQueue,S.type=$.type,l=$.dependencies,S.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),h=h.sibling;return kn($n,$n.current&1|2),u.child}l=l.sibling}S.tail!==null&&ra()>gu&&(u.flags|=128,C=!0,tp(S,!1),u.lanes=4194304)}else{if(!C)if(l=Kr($),l!==null){if(u.flags|=128,C=!0,h=l.updateQueue,h!==null&&(u.updateQueue=h,u.flags|=4),tp(S,!0),S.tail===null&&S.tailMode==="hidden"&&!$.alternate&&!Le)return To(u),null}else 2*ra()-S.renderingStartTime>gu&&h!==1073741824&&(u.flags|=128,C=!0,tp(S,!1),u.lanes=4194304);S.isBackwards?($.sibling=u.child,u.child=$):(h=S.last,h!==null?h.sibling=$:u.child=$,S.last=$)}return S.tail!==null?(u=S.tail,S.rendering=u,S.tail=u.sibling,S.renderingStartTime=ra(),u.sibling=null,h=$n.current,kn($n,C?h&1|2:h&1),u):(To(u),null);case 22:case 23:return E0(),C=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==C&&(u.flags|=8192),C&&(u.mode&1)!==0?(Vr&1073741824)!==0&&(To(u),u.subtreeFlags&6&&(u.flags|=8192)):To(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function Nk(l,u){switch(be(u),u.tag){case 1:return Qo(u.type)&&nu(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return gs(),Pn(Lo),Pn(Wa),XA(),l=u.flags,(l&65536)!==0&&(l&128)===0?(u.flags=l&-65537|128,u):null;case 5:return WA(u),null;case 13:if(Pn($n),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(n(340));an()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Pn($n),null;case 4:return gs(),null;case 10:return Oo(u.type._context),null;case 22:case 23:return E0(),null;case 24:return null;default:return null}}var Df=!1,Ro=!1,jk=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function pu(l,u){var h=l.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(C){ja(l,u,C)}else h.current=null}function y0(l,u,h){try{h()}catch(C){ja(l,u,C)}}var w5=!1;function Gk(l,u){if(Vm=yl,l=zm(),vc(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else e:{h=(h=l.ownerDocument)&&h.defaultView||window;var C=h.getSelection&&h.getSelection();if(C&&C.rangeCount!==0){h=C.anchorNode;var H=C.anchorOffset,S=C.focusNode;C=C.focusOffset;try{h.nodeType,S.nodeType}catch{h=null;break e}var $=0,ue=-1,ye=-1,Ie=0,tt=0,at=l,Xe=null;t:for(;;){for(var yt;at!==h||H!==0&&at.nodeType!==3||(ue=$+H),at!==S||C!==0&&at.nodeType!==3||(ye=$+C),at.nodeType===3&&($+=at.nodeValue.length),(yt=at.firstChild)!==null;)Xe=at,at=yt;for(;;){if(at===l)break t;if(Xe===h&&++Ie===H&&(ue=$),Xe===S&&++tt===C&&(ye=$),(yt=at.nextSibling)!==null)break;at=Xe,Xe=at.parentNode}at=yt}h=ue===-1||ye===-1?null:{start:ue,end:ye}}else h=null}h=h||{start:0,end:0}}else h=null;for(Nc={focusedElem:l,selectionRange:h},yl=!1,Ct=u;Ct!==null;)if(u=Ct,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,Ct=l;else for(;Ct!==null;){u=Ct;try{var wt=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(wt!==null){var Ht=wt.memoizedProps,Fa=wt.memoizedState,Ee=u.stateNode,ve=Ee.getSnapshotBeforeUpdate(u.elementType===u.type?Ht:Vs(u.type,Ht),Fa);Ee.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Pe=u.stateNode.containerInfo;Pe.nodeType===1?Pe.textContent="":Pe.nodeType===9&&Pe.documentElement&&Pe.removeChild(Pe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(rt){ja(u,u.return,rt)}if(l=u.sibling,l!==null){l.return=u.return,Ct=l;break}Ct=u.return}return wt=w5,w5=!1,wt}function np(l,u,h){var C=u.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var H=C=C.next;do{if((H.tag&l)===l){var S=H.destroy;H.destroy=void 0,S!==void 0&&y0(u,h,S)}H=H.next}while(H!==C)}}function Uf(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&l)===l){var C=h.create;h.destroy=C()}h=h.next}while(h!==u)}}function b0(l){var u=l.ref;if(u!==null){var h=l.stateNode;switch(l.tag){case 5:l=h;break;default:l=h}typeof u=="function"?u(l):u.current=l}}function B5(l){var u=l.alternate;u!==null&&(l.alternate=null,B5(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[ps],delete u[Ql],delete u[ko],delete u[o0],delete u[r0])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function D5(l){return l.tag===5||l.tag===3||l.tag===4}function U5(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||D5(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function C0(l,u,h){var C=l.tag;if(C===5||C===6)l=l.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(l,u):h.insertBefore(l,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(l,h)):(u=h,u.appendChild(l)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=Ll));else if(C!==4&&(l=l.child,l!==null))for(C0(l,u,h),l=l.sibling;l!==null;)C0(l,u,h),l=l.sibling}function v0(l,u,h){var C=l.tag;if(C===5||C===6)l=l.stateNode,u?h.insertBefore(l,u):h.appendChild(l);else if(C!==4&&(l=l.child,l!==null))for(v0(l,u,h),l=l.sibling;l!==null;)v0(l,u,h),l=l.sibling}var Do=null,Xs=!1;function Kl(l,u,h){for(h=h.child;h!==null;)H5(l,u,h),h=h.sibling}function H5(l,u,h){if(xr&&typeof xr.onCommitFiberUnmount=="function")try{xr.onCommitFiberUnmount(ic,h)}catch{}switch(h.tag){case 5:Ro||pu(h,u);case 6:var C=Do,H=Xs;Do=null,Kl(l,u,h),Do=C,Xs=H,Do!==null&&(Xs?(l=Do,h=h.stateNode,l.nodeType===8?l.parentNode.removeChild(h):l.removeChild(h)):Do.removeChild(h.stateNode));break;case 18:Do!==null&&(Xs?(l=Do,h=h.stateNode,l.nodeType===8?YA(l.parentNode,h):l.nodeType===1&&YA(l,h),Mr(l)):YA(Do,h.stateNode));break;case 4:C=Do,H=Xs,Do=h.stateNode.containerInfo,Xs=!0,Kl(l,u,h),Do=C,Xs=H;break;case 0:case 11:case 14:case 15:if(!Ro&&(C=h.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){H=C=C.next;do{var S=H,$=S.destroy;S=S.tag,$!==void 0&&((S&2)!==0||(S&4)!==0)&&y0(h,u,$),H=H.next}while(H!==C)}Kl(l,u,h);break;case 1:if(!Ro&&(pu(h,u),C=h.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=h.memoizedProps,C.state=h.memoizedState,C.componentWillUnmount()}catch(ue){ja(h,u,ue)}Kl(l,u,h);break;case 21:Kl(l,u,h);break;case 22:h.mode&1?(Ro=(C=Ro)||h.memoizedState!==null,Kl(l,u,h),Ro=C):Kl(l,u,h);break;default:Kl(l,u,h)}}function N5(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var h=l.stateNode;h===null&&(h=l.stateNode=new jk),u.forEach(function(C){var H=Qk.bind(null,l,C);h.has(C)||(h.add(C),C.then(H,H))})}}function Js(l,u){var h=u.deletions;if(h!==null)for(var C=0;CH&&(H=$),C&=~S}if(C=H,C=ra()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*_k(C/1960))-C,10l?16:l,Wl===null)var C=!1;else{if(l=Wl,Wl=null,Ef=0,(Un&6)!==0)throw Error(n(331));var H=Un;for(Un|=4,Ct=l.current;Ct!==null;){var S=Ct,$=S.child;if((Ct.flags&16)!==0){var ue=S.deletions;if(ue!==null){for(var ye=0;yera()-D0?rd(l,0):B0|=h),Gr(l,u)}function T5(l,u){u===0&&((l.mode&1)===0?u=1:(u=yi,yi<<=1,(yi&130023424)===0&&(yi=4194304)));var h=ur();l=Gn(l,u),l!==null&&(bi(l,u,h),Gr(l,h))}function Lk(l){var u=l.memoizedState,h=0;u!==null&&(h=u.retryLane),T5(l,h)}function Qk(l,u){var h=0;switch(l.tag){case 13:var C=l.stateNode,H=l.memoizedState;H!==null&&(h=H.retryLane);break;case 19:C=l.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(u),T5(l,h)}var R5;R5=function(l,u,h){if(l!==null)if(l.memoizedProps!==u.pendingProps||Lo.current)Nr=!0;else{if((l.lanes&h)===0&&(u.flags&128)===0)return Nr=!1,Uk(l,u,h);Nr=(l.flags&131072)!==0}else Nr=!1,Le&&(u.flags&1048576)!==0&&Ye(u,J,u.index);switch(u.lanes=0,u.tag){case 2:var C=u.type;Bf(l,u),l=u.pendingProps;var H=Tl(u,Wa.current);ma(u,h),H=ed(null,u,C,l,H,h);var S=xs();return u.flags|=1,typeof H=="object"&&H!==null&&typeof H.render=="function"&&H.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Qo(C)?(S=!0,Ec(u)):S=!1,u.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,au(u),H.updater=vf,u.stateNode=H,H._reactInternals=u,l0(u,C,l,h),u=A0(null,u,C,!0,S,h)):(u.tag=0,Le&&S&&Fe(u),dr(null,u,H,h),u=u.child),u;case 16:C=u.elementType;e:{switch(Bf(l,u),l=u.pendingProps,H=C._init,C=H(C._payload),u.type=C,H=u.tag=Tk(C),l=Vs(C,l),H){case 0:u=u0(null,u,C,l,h);break e;case 1:u=p5(null,u,C,l,h);break e;case 11:u=l5(null,u,C,l,h);break e;case 14:u=m5(null,u,C,Vs(C.type,l),h);break e}throw Error(n(306,C,""))}return u;case 0:return C=u.type,H=u.pendingProps,H=u.elementType===C?H:Vs(C,H),u0(l,u,C,H,h);case 1:return C=u.type,H=u.pendingProps,H=u.elementType===C?H:Vs(C,H),p5(l,u,C,H,h);case 3:e:{if(f5(u),l===null)throw Error(n(387));C=u.pendingProps,S=u.memoizedState,H=S.element,$A(l,u),qs(u,C,null,h);var $=u.memoizedState;if(C=$.element,S.isDehydrated)if(S={element:C,isDehydrated:!1,cache:$.cache,pendingSuspenseBoundaries:$.pendingSuspenseBoundaries,transitions:$.transitions},u.updateQueue.baseState=S,u.memoizedState=S,u.flags&256){H=Au(Error(n(423)),u),u=g5(l,u,C,h,H);break e}else if(C!==H){H=Au(Error(n(424)),u),u=g5(l,u,C,h,H);break e}else for(Qe=wo(u.stateNode.containerInfo.firstChild),Ce=u,Le=!0,Oe=null,h=jn(u,null,C,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(an(),C===H){u=Ic(l,u,h);break e}dr(l,u,C,h)}u=u.child}return u;case 5:return gf(u),l===null&&ut(u),C=u.type,H=u.pendingProps,S=l!==null?l.memoizedProps:null,$=H.children,zA(C,H)?$=null:S!==null&&zA(C,S)&&(u.flags|=32),A5(l,u),dr(l,u,$,h),u.child;case 6:return l===null&&ut(u),null;case 13:return h5(l,u,h);case 4:return zl(u,u.stateNode.containerInfo),C=u.pendingProps,l===null?u.child=Sa(u,null,C,h):dr(l,u,C,h),u.child;case 11:return C=u.type,H=u.pendingProps,H=u.elementType===C?H:Vs(C,H),l5(l,u,C,H,h);case 7:return dr(l,u,u.pendingProps,h),u.child;case 8:return dr(l,u,u.pendingProps.children,h),u.child;case 12:return dr(l,u,u.pendingProps.children,h),u.child;case 10:e:{if(C=u.type._context,H=u.pendingProps,S=u.memoizedProps,$=H.value,kn(lo,C._currentValue),C._currentValue=$,S!==null)if(Dn(S.value,$)){if(S.children===H.children&&!Lo.current){u=Ic(l,u,h);break e}}else for(S=u.child,S!==null&&(S.return=u);S!==null;){var ue=S.dependencies;if(ue!==null){$=S.child;for(var ye=ue.firstContext;ye!==null;){if(ye.context===C){if(S.tag===1){ye=Dr(-1,h&-h),ye.tag=2;var Ie=S.updateQueue;if(Ie!==null){Ie=Ie.shared;var tt=Ie.pending;tt===null?ye.next=ye:(ye.next=tt.next,tt.next=ye),Ie.pending=ye}}S.lanes|=h,ye=S.alternate,ye!==null&&(ye.lanes|=h),Br(S.return,h,u),ue.lanes|=h;break}ye=ye.next}}else if(S.tag===10)$=S.type===u.type?null:S.child;else if(S.tag===18){if($=S.return,$===null)throw Error(n(341));$.lanes|=h,ue=$.alternate,ue!==null&&(ue.lanes|=h),Br($,h,u),$=S.sibling}else $=S.child;if($!==null)$.return=S;else for($=S;$!==null;){if($===u){$=null;break}if(S=$.sibling,S!==null){S.return=$.return,$=S;break}$=$.return}S=$}dr(l,u,H.children,h),u=u.child}return u;case 9:return H=u.type,C=u.pendingProps.children,ma(u,h),H=Ha(H),C=C(H),u.flags|=1,dr(l,u,C,h),u.child;case 14:return C=u.type,H=Vs(C,u.pendingProps),H=Vs(C.type,H),m5(l,u,C,H,h);case 15:return d5(l,u,u.type,u.pendingProps,h);case 17:return C=u.type,H=u.pendingProps,H=u.elementType===C?H:Vs(C,H),Bf(l,u),u.tag=1,Qo(C)?(l=!0,Ec(u)):l=!1,ma(u,h),n5(u,C,H),l0(u,C,H,h),A0(null,u,C,!0,l,h);case 19:return y5(l,u,h);case 22:return u5(l,u,h)}throw Error(n(156,u.tag))};function M5(l,u){return rc(l,u)}function Ok(l,u,h,C){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bs(l,u,h,C){return new Ok(l,u,h,C)}function S0(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Tk(l){if(typeof l=="function")return S0(l)?1:0;if(l!=null){if(l=l.$$typeof,l===I)return 11;if(l===X)return 14}return 2}function Jl(l,u){var h=l.alternate;return h===null?(h=bs(l.tag,u,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=u,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&14680064,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,u=l.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h}function If(l,u,h,C,H,S){var $=2;if(C=l,typeof l=="function")S0(l)&&($=1);else if(typeof l=="string")$=5;else e:switch(l){case k:return id(h.children,H,S,u);case T:$=8,H|=8;break;case M:return l=bs(12,h,u,H|2),l.elementType=M,l.lanes=S,l;case O:return l=bs(13,h,u,H),l.elementType=O,l.lanes=S,l;case z:return l=bs(19,h,u,H),l.elementType=z,l.lanes=S,l;case re:return Ff(h,H,S,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Z:$=10;break e;case _:$=9;break e;case I:$=11;break e;case X:$=14;break e;case ae:$=16,C=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return u=bs($,h,u,H),u.elementType=l,u.type=C,u.lanes=S,u}function id(l,u,h,C){return l=bs(7,l,C,u),l.lanes=h,l}function Ff(l,u,h,C){return l=bs(22,l,C,u),l.elementType=re,l.lanes=h,l.stateNode={isHidden:!1},l}function P0(l,u,h){return l=bs(6,l,null,u),l.lanes=h,l}function I0(l,u,h){return u=bs(4,l.children!==null?l.children:[],l.key,u),u.lanes=h,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function Rk(l,u,h,C,H){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pm(0),this.expirationTimes=Pm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pm(0),this.identifierPrefix=C,this.onRecoverableError=H,this.mutableSourceEagerHydrationData=null}function F0(l,u,h,C,H,S,$,ue,ye){return l=new Rk(l,u,h,ue,ye),u===1?(u=1,S===!0&&(u|=8)):u=0,S=bs(3,null,null,u),l.current=S,S.stateNode=l,S.memoizedState={element:C,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},au(S),l}function Mk(l,u,h){var C=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),R0.exports=aL(),R0.exports}var a4;function oL(){if(a4)return zf;a4=1;var e=fE();return zf.createRoot=e.createRoot,zf.hydrateRoot=e.hydrateRoot,zf}var rL=oL(),fe=lB();const Ae=Rn(fe),sL=Vk({__proto__:null,default:Ae},[fe]),iL=e=>e instanceof Error?e.message+` -`+e.stack:JSON.stringify(e,null,2);class gE extends Ae.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?d.jsxs("div",{className:"p-4 border border-red-500 rounded","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:26:8","data-matrix-name":"div","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"26","data-component-file":"ErrorBoundary.tsx","data-component-name":"div","data-component-content":"%7B%22className%22%3A%22p-4%20border%20border-red-500%20rounded%22%7D",children:[d.jsx("h2",{className:"text-red-500","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:27:10","data-matrix-name":"h2","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"27","data-component-file":"ErrorBoundary.tsx","data-component-name":"h2","data-component-content":"%7B%22className%22%3A%22text-red-500%22%7D",children:"Something went wrong."}),d.jsx("pre",{className:"mt-2 text-sm","data-matrix-id":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx:28:10","data-matrix-name":"pre","data-component-path":"C:/Users/patde/Documents/GitHub/3suanming/ai-numerology-refactored/src/components/ErrorBoundary.tsx","data-component-line":"28","data-component-file":"ErrorBoundary.tsx","data-component-name":"pre","data-component-content":"%7B%22className%22%3A%22mt-2%20text-sm%22%7D",children:iL(this.state.error)})]}):this.props.children}}var hE=fE();const cL=Rn(hE);/** +`+S.stack}return{value:l,source:u,stack:H,digest:null}}function m0(l,u,h){return{value:l,source:null,stack:h??null,digest:u??null}}function d0(l,u){try{console.error(u.value)}catch(h){setTimeout(function(){throw h})}}var Bk=typeof WeakMap=="function"?WeakMap:Map;function o5(l,u,h){h=Dr(-1,h),h.tag=3,h.payload={element:null};var C=u.value;return h.callback=function(){jf||(jf=!0,U0=C),d0(l,u)},h}function r5(l,u,h){h=Dr(-1,h),h.tag=3;var C=l.type.getDerivedStateFromError;if(typeof C=="function"){var H=u.value;h.payload=function(){return C(H)},h.callback=function(){d0(l,u)}}var S=l.stateNode;return S!==null&&typeof S.componentDidCatch=="function"&&(h.callback=function(){d0(l,u),typeof C!="function"&&($l===null?$l=new Set([this]):$l.add(this));var $=u.stack;this.componentDidCatch(u.value,{componentStack:$!==null?$:""})}),h}function s5(l,u,h){var C=l.pingCache;if(C===null){C=l.pingCache=new Bk;var H=new Set;C.set(u,H)}else H=C.get(u),H===void 0&&(H=new Set,C.set(u,H));H.has(h)||(H.add(h),l=Lk.bind(null,l,u,h),u.then(l,l))}function i5(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function c5(l,u,h,C,H){return(l.mode&1)===0?(l===u?l.flags|=65536:(l.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(u=Dr(-1,1),u.tag=2,Ur(h,u,1))),h.lanes|=1),l):(l.flags|=65536,l.lanes=H,l)}var Dk=Q.ReactCurrentOwner,Nr=!1;function dr(l,u,h,C){u.child=l===null?jn(u,null,h,C):Sa(u,l.child,h,C)}function l5(l,u,h,C,H){h=h.render;var S=u.ref;return ma(u,H),C=ed(l,u,h,C,S,H),h=xs(),l!==null&&!Nr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~H,Ic(l,u,H)):(Qe&&h&&Fe(u),u.flags|=1,dr(l,u,C,H),u.child)}function m5(l,u,h,C,H){if(l===null){var S=h.type;return typeof S=="function"&&!S0(S)&&S.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(u.tag=15,u.type=S,d5(l,u,S,C,H)):(l=If(h.type,null,C,u,u.mode,H),l.ref=u.ref,l.return=u,u.child=l)}if(S=l.child,(l.lanes&H)===0){var $=S.memoizedProps;if(h=h.compare,h=h!==null?h:Os,h($,C)&&l.ref===u.ref)return Ic(l,u,H)}return u.flags|=1,l=Jl(S,C),l.ref=u.ref,l.return=u,u.child=l}function d5(l,u,h,C,H){if(l!==null){var S=l.memoizedProps;if(Os(S,C)&&l.ref===u.ref)if(Nr=!1,u.pendingProps=C=S,(l.lanes&H)!==0)(l.flags&131072)!==0&&(Nr=!0);else return u.lanes=l.lanes,Ic(l,u,H)}return u0(l,u,h,C,H)}function u5(l,u,h){var C=u.pendingProps,H=C.children,S=l!==null?l.memoizedState:null;if(C.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},kn(fu,Vr),Vr|=h;else{if((h&1073741824)===0)return l=S!==null?S.baseLanes|h:h,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,kn(fu,Vr),Vr|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=S!==null?S.baseLanes:h,kn(fu,Vr),Vr|=C}else S!==null?(C=S.baseLanes|h,u.memoizedState=null):C=h,kn(fu,Vr),Vr|=C;return dr(l,u,H,h),u.child}function A5(l,u){var h=u.ref;(l===null&&h!==null||l!==null&&l.ref!==h)&&(u.flags|=512,u.flags|=2097152)}function u0(l,u,h,C,H){var S=Qo(h)?Gc:Wa.current;return S=Tl(u,S),ma(u,H),h=ed(l,u,h,C,S,H),C=xs(),l!==null&&!Nr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~H,Ic(l,u,H)):(Qe&&C&&Fe(u),u.flags|=1,dr(l,u,h,H),u.child)}function p5(l,u,h,C,H){if(Qo(h)){var S=!0;Ec(u)}else S=!1;if(ma(u,H),u.stateNode===null)Bf(l,u),n5(u,h,C),l0(u,h,C,H),C=!0;else if(l===null){var $=u.stateNode,ue=u.memoizedProps;$.props=ue;var ye=$.context,Pe=h.contextType;typeof Pe=="object"&&Pe!==null?Pe=Ha(Pe):(Pe=Qo(h)?Gc:Wa.current,Pe=Tl(u,Pe));var et=h.getDerivedStateFromProps,nt=typeof et=="function"||typeof $.getSnapshotBeforeUpdate=="function";nt||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ue!==C||ye!==Pe)&&a5(u,$,C,Pe),fs=!1;var Ve=u.memoizedState;$.state=Ve,qs(u,C,$,H),ye=u.memoizedState,ue!==C||Ve!==ye||Lo.current||fs?(typeof et=="function"&&(c0(u,h,et,C),ye=u.memoizedState),(ue=fs||t5(u,h,ue,C,Ve,ye,Pe))?(nt||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount()),typeof $.componentDidMount=="function"&&(u.flags|=4194308)):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=C,u.memoizedState=ye),$.props=C,$.state=ye,$.context=Pe,C=ue):(typeof $.componentDidMount=="function"&&(u.flags|=4194308),C=!1)}else{$=u.stateNode,$A(l,u),ue=u.memoizedProps,Pe=u.type===u.elementType?ue:Vs(u.type,ue),$.props=Pe,nt=u.pendingProps,Ve=$.context,ye=h.contextType,typeof ye=="object"&&ye!==null?ye=Ha(ye):(ye=Qo(h)?Gc:Wa.current,ye=Tl(u,ye));var yt=h.getDerivedStateFromProps;(et=typeof yt=="function"||typeof $.getSnapshotBeforeUpdate=="function")||typeof $.UNSAFE_componentWillReceiveProps!="function"&&typeof $.componentWillReceiveProps!="function"||(ue!==nt||Ve!==ye)&&a5(u,$,C,ye),fs=!1,Ve=u.memoizedState,$.state=Ve,qs(u,C,$,H);var wt=u.memoizedState;ue!==nt||Ve!==wt||Lo.current||fs?(typeof yt=="function"&&(c0(u,h,yt,C),wt=u.memoizedState),(Pe=fs||t5(u,h,Pe,C,Ve,wt,ye)||!1)?(et||typeof $.UNSAFE_componentWillUpdate!="function"&&typeof $.componentWillUpdate!="function"||(typeof $.componentWillUpdate=="function"&&$.componentWillUpdate(C,wt,ye),typeof $.UNSAFE_componentWillUpdate=="function"&&$.UNSAFE_componentWillUpdate(C,wt,ye)),typeof $.componentDidUpdate=="function"&&(u.flags|=4),typeof $.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof $.componentDidUpdate!="function"||ue===l.memoizedProps&&Ve===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||ue===l.memoizedProps&&Ve===l.memoizedState||(u.flags|=1024),u.memoizedProps=C,u.memoizedState=wt),$.props=C,$.state=wt,$.context=ye,C=Pe):(typeof $.componentDidUpdate!="function"||ue===l.memoizedProps&&Ve===l.memoizedState||(u.flags|=4),typeof $.getSnapshotBeforeUpdate!="function"||ue===l.memoizedProps&&Ve===l.memoizedState||(u.flags|=1024),C=!1)}return A0(l,u,h,C,S,H)}function A0(l,u,h,C,H,S){A5(l,u);var $=(u.flags&128)!==0;if(!C&&!$)return H&&ff(u,h,!1),Ic(l,u,S);C=u.stateNode,Dk.current=u;var ue=$&&typeof h.getDerivedStateFromError!="function"?null:C.render();return u.flags|=1,l!==null&&$?(u.child=Sa(u,l.child,null,S),u.child=Sa(u,null,ue,S)):dr(l,u,ue,S),u.memoizedState=C.state,H&&ff(u,h,!0),u.child}function f5(l){var u=l.stateNode;u.pendingContext?pf(l,u.pendingContext,u.pendingContext!==u.context):u.context&&pf(l,u.context,!1),zl(l,u.containerInfo)}function g5(l,u,h,C,H){return an(),In(H),u.flags|=256,dr(l,u,h,C),u.child}var p0={dehydrated:null,treeContext:null,retryLane:0};function f0(l){return{baseLanes:l,cachePool:null,transitions:null}}function h5(l,u,h){var C=u.pendingProps,H=$n.current,S=!1,$=(u.flags&128)!==0,ue;if((ue=$)||(ue=l!==null&&l.memoizedState===null?!1:(H&2)!==0),ue?(S=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(H|=1),kn($n,H&1),l===null)return At(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((u.mode&1)===0?u.lanes=1:l.data==="$!"?u.lanes=8:u.lanes=1073741824,null):($=C.children,l=C.fallback,S?(C=u.mode,S=u.child,$={mode:"hidden",children:$},(C&1)===0&&S!==null?(S.childLanes=0,S.pendingProps=$):S=Ff($,C,0,null),l=id(l,C,h,null),S.return=u,l.return=u,S.sibling=l,u.child=S,u.child.memoizedState=f0(h),u.memoizedState=p0,l):g0(u,$));if(H=l.memoizedState,H!==null&&(ue=H.dehydrated,ue!==null))return Uk(l,u,$,C,ue,H,h);if(S){S=C.fallback,$=u.mode,H=l.child,ue=H.sibling;var ye={mode:"hidden",children:C.children};return($&1)===0&&u.child!==H?(C=u.child,C.childLanes=0,C.pendingProps=ye,u.deletions=null):(C=Jl(H,ye),C.subtreeFlags=H.subtreeFlags&14680064),ue!==null?S=Jl(ue,S):(S=id(S,$,h,null),S.flags|=2),S.return=u,C.return=u,C.sibling=S,u.child=C,C=S,S=u.child,$=l.child.memoizedState,$=$===null?f0(h):{baseLanes:$.baseLanes|h,cachePool:null,transitions:$.transitions},S.memoizedState=$,S.childLanes=l.childLanes&~h,u.memoizedState=p0,C}return S=l.child,l=S.sibling,C=Jl(S,{mode:"visible",children:C.children}),(u.mode&1)===0&&(C.lanes=h),C.return=u,C.sibling=null,l!==null&&(h=u.deletions,h===null?(u.deletions=[l],u.flags|=16):h.push(l)),u.child=C,u.memoizedState=null,C}function g0(l,u){return u=Ff({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function wf(l,u,h,C){return C!==null&&In(C),Sa(u,l.child,null,h),l=g0(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function Uk(l,u,h,C,H,S,$){if(h)return u.flags&256?(u.flags&=-257,C=m0(Error(n(422))),wf(l,u,$,C)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(S=C.fallback,H=u.mode,C=Ff({mode:"visible",children:C.children},H,0,null),S=id(S,H,$,null),S.flags|=2,C.return=u,S.return=u,C.sibling=S,u.child=C,(u.mode&1)!==0&&Sa(u,l.child,null,$),u.child.memoizedState=f0($),u.memoizedState=p0,S);if((u.mode&1)===0)return wf(l,u,$,null);if(H.data==="$!"){if(C=H.nextSibling&&H.nextSibling.dataset,C)var ue=C.dgst;return C=ue,S=Error(n(419)),C=m0(S,C,void 0),wf(l,u,$,C)}if(ue=($&l.childLanes)!==0,Nr||ue){if(C=uo,C!==null){switch($&-$){case 4:H=2;break;case 16:H=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:H=32;break;case 536870912:H=268435456;break;default:H=0}H=(H&(C.suspendedLanes|$))!==0?0:H,H!==0&&H!==S.retryLane&&(S.retryLane=H,Gn(l,H),ei(C,l,H,-1))}return _0(),C=m0(Error(n(421))),wf(l,u,$,C)}return H.data==="$?"?(u.flags|=128,u.child=l.child,u=Qk.bind(null,l),H._reactRetry=u,null):(l=S.treeContext,Oe=wo(H.nextSibling),Ce=u,Qe=!0,Te=null,l!==null&&(te[ie++]=He,te[ie++]=Ne,te[ie++]=xe,He=l.id,Ne=l.overflow,xe=u),u=g0(u,C.children),u.flags|=4096,u)}function x5(l,u,h){l.lanes|=u;var C=l.alternate;C!==null&&(C.lanes|=u),Br(l.return,u,h)}function h0(l,u,h,C,H){var S=l.memoizedState;S===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:C,tail:h,tailMode:H}:(S.isBackwards=u,S.rendering=null,S.renderingStartTime=0,S.last=C,S.tail=h,S.tailMode=H)}function y5(l,u,h){var C=u.pendingProps,H=C.revealOrder,S=C.tail;if(dr(l,u,C.children,h),C=$n.current,(C&2)!==0)C=C&1|2,u.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x5(l,h,u);else if(l.tag===19)x5(l,h,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}C&=1}if(kn($n,C),(u.mode&1)===0)u.memoizedState=null;else switch(H){case"forwards":for(h=u.child,H=null;h!==null;)l=h.alternate,l!==null&&Kr(l)===null&&(H=h),h=h.sibling;h=H,h===null?(H=u.child,u.child=null):(H=h.sibling,h.sibling=null),h0(u,!1,H,h,S);break;case"backwards":for(h=null,H=u.child,u.child=null;H!==null;){if(l=H.alternate,l!==null&&Kr(l)===null){u.child=H;break}l=H.sibling,H.sibling=h,h=H,H=l}h0(u,!0,h,null,S);break;case"together":h0(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Bf(l,u){(u.mode&1)===0&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Ic(l,u,h){if(l!==null&&(u.dependencies=l.dependencies),ad|=u.lanes,(h&u.childLanes)===0)return null;if(l!==null&&u.child!==l.child)throw Error(n(153));if(u.child!==null){for(l=u.child,h=Jl(l,l.pendingProps),u.child=h,h.return=u;l.sibling!==null;)l=l.sibling,h=h.sibling=Jl(l,l.pendingProps),h.return=u;h.sibling=null}return u.child}function Hk(l,u,h){switch(u.tag){case 3:f5(u),an();break;case 5:gf(u);break;case 1:Qo(u.type)&&Ec(u);break;case 4:zl(u,u.stateNode.containerInfo);break;case 10:var C=u.type._context,H=u.memoizedProps.value;kn(lo,C._currentValue),C._currentValue=H;break;case 13:if(C=u.memoizedState,C!==null)return C.dehydrated!==null?(kn($n,$n.current&1),u.flags|=128,null):(h&u.child.childLanes)!==0?h5(l,u,h):(kn($n,$n.current&1),l=Ic(l,u,h),l!==null?l.sibling:null);kn($n,$n.current&1);break;case 19:if(C=(h&u.childLanes)!==0,(l.flags&128)!==0){if(C)return y5(l,u,h);u.flags|=128}if(H=u.memoizedState,H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),kn($n,$n.current),C)break;return null;case 22:case 23:return u.lanes=0,u5(l,u,h)}return Ic(l,u,h)}var b5,x0,C5,v5;b5=function(l,u){for(var h=u.child;h!==null;){if(h.tag===5||h.tag===6)l.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},x0=function(){},C5=function(l,u,h,C){var H=l.memoizedProps;if(H!==C){l=u.stateNode,Ks(cr.current);var S=null;switch(h){case"input":H=tt(l,H),C=tt(l,C),S=[];break;case"select":H=R({},H,{value:void 0}),C=R({},C,{value:void 0}),S=[];break;case"textarea":H=Je(l,H),C=Je(l,C),S=[];break;default:typeof H.onClick!="function"&&typeof C.onClick=="function"&&(l.onclick=Ll)}Nt(h,C);var $;h=null;for(Pe in H)if(!C.hasOwnProperty(Pe)&&H.hasOwnProperty(Pe)&&H[Pe]!=null)if(Pe==="style"){var ue=H[Pe];for($ in ue)ue.hasOwnProperty($)&&(h||(h={}),h[$]="")}else Pe!=="dangerouslySetInnerHTML"&&Pe!=="children"&&Pe!=="suppressContentEditableWarning"&&Pe!=="suppressHydrationWarning"&&Pe!=="autoFocus"&&(o.hasOwnProperty(Pe)?S||(S=[]):(S=S||[]).push(Pe,null));for(Pe in C){var ye=C[Pe];if(ue=H!=null?H[Pe]:void 0,C.hasOwnProperty(Pe)&&ye!==ue&&(ye!=null||ue!=null))if(Pe==="style")if(ue){for($ in ue)!ue.hasOwnProperty($)||ye&&ye.hasOwnProperty($)||(h||(h={}),h[$]="");for($ in ye)ye.hasOwnProperty($)&&ue[$]!==ye[$]&&(h||(h={}),h[$]=ye[$])}else h||(S||(S=[]),S.push(Pe,h)),h=ye;else Pe==="dangerouslySetInnerHTML"?(ye=ye?ye.__html:void 0,ue=ue?ue.__html:void 0,ye!=null&&ue!==ye&&(S=S||[]).push(Pe,ye)):Pe==="children"?typeof ye!="string"&&typeof ye!="number"||(S=S||[]).push(Pe,""+ye):Pe!=="suppressContentEditableWarning"&&Pe!=="suppressHydrationWarning"&&(o.hasOwnProperty(Pe)?(ye!=null&&Pe==="onScroll"&&zn("scroll",l),S||ue===ye||(S=[])):(S=S||[]).push(Pe,ye))}h&&(S=S||[]).push("style",h);var Pe=S;(u.updateQueue=Pe)&&(u.flags|=4)}},v5=function(l,u,h,C){h!==C&&(u.flags|=4)};function tp(l,u){if(!Qe)switch(l.tailMode){case"hidden":u=l.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var C=null;h!==null;)h.alternate!==null&&(C=h),h=h.sibling;C===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:C.sibling=null}}function To(l){var u=l.alternate!==null&&l.alternate.child===l.child,h=0,C=0;if(u)for(var H=l.child;H!==null;)h|=H.lanes|H.childLanes,C|=H.subtreeFlags&14680064,C|=H.flags&14680064,H.return=l,H=H.sibling;else for(H=l.child;H!==null;)h|=H.lanes|H.childLanes,C|=H.subtreeFlags,C|=H.flags,H.return=l,H=H.sibling;return l.subtreeFlags|=C,l.childLanes=h,u}function Nk(l,u,h){var C=u.pendingProps;switch(be(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return To(u),null;case 1:return Qo(u.type)&&nu(),To(u),null;case 3:return C=u.stateNode,gs(),Pn(Lo),Pn(Wa),XA(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(l===null||l.child===null)&&(vn(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Te!==null&&(j0(Te),Te=null))),x0(l,u),To(u),null;case 5:WA(u);var H=Ks(Fi.current);if(h=u.type,l!==null&&u.stateNode!=null)C5(l,u,h,C,H),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!C){if(u.stateNode===null)throw Error(n(166));return To(u),null}if(l=Ks(cr.current),vn(u)){C=u.stateNode,h=u.type;var S=u.memoizedProps;switch(C[ps]=u,C[Ql]=S,l=(u.mode&1)!==0,h){case"dialog":zn("cancel",C),zn("close",C);break;case"iframe":case"object":case"embed":zn("load",C);break;case"video":case"audio":for(H=0;H<_i.length;H++)zn(_i[H],C);break;case"source":zn("error",C);break;case"img":case"image":case"link":zn("error",C),zn("load",C);break;case"details":zn("toggle",C);break;case"input":Ee(C,S),zn("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!S.multiple},zn("invalid",C);break;case"textarea":dt(C,S),zn("invalid",C)}Nt(h,S),H=null;for(var $ in S)if(S.hasOwnProperty($)){var ue=S[$];$==="children"?typeof ue=="string"?C.textContent!==ue&&(S.suppressHydrationWarning!==!0&&tu(C.textContent,ue,l),H=["children",ue]):typeof ue=="number"&&C.textContent!==""+ue&&(S.suppressHydrationWarning!==!0&&tu(C.textContent,ue,l),H=["children",""+ue]):o.hasOwnProperty($)&&ue!=null&&$==="onScroll"&&zn("scroll",C)}switch(h){case"input":_e(C),st(C,S,!0);break;case"textarea":_e(C),Gt(C);break;case"select":case"option":break;default:typeof S.onClick=="function"&&(C.onclick=Ll)}C=H,u.updateQueue=C,C!==null&&(u.flags|=4)}else{$=H.nodeType===9?H:H.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=De(h)),l==="http://www.w3.org/1999/xhtml"?h==="script"?(l=$.createElement("div"),l.innerHTML=" + diff --git a/src/components/CompleteBaziAnalysis.tsx b/src/components/CompleteBaziAnalysis.tsx index 8b2983b..ec58f36 100644 --- a/src/components/CompleteBaziAnalysis.tsx +++ b/src/components/CompleteBaziAnalysis.tsx @@ -1,4 +1,4 @@ -import React, { useState, useEffect, ErrorInfo } from 'react'; +import React, { useState, useEffect, useCallback, ErrorInfo } from 'react'; import { Radar, RadarChart, PolarGrid, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from 'recharts'; import { Calendar, Star, BookOpen, Sparkles, User, BarChart3, Zap, TrendingUp, Loader2, Clock, Target, Heart, DollarSign, Activity, AlertTriangle } from 'lucide-react'; import { Card, CardContent, CardHeader, CardTitle } from './ui/Card'; @@ -120,9 +120,7 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate, // 输入验证 const validation = validateBirthDate(birthDate); - if (!validation.isValid) { - return ; - } + const isValidInput = validation.isValid; // 五行颜色配置 const elementColors: { [key: string]: string } = { @@ -158,7 +156,7 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate, }; // 分析数据获取函数 - const fetchAnalysisData = async () => { + const fetchAnalysisData = useCallback(async () => { try { setIsLoading(true); setError(null); @@ -189,9 +187,14 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate, } finally { setIsLoading(false); } - }; + }, [birthDate.name, birthDate.date, birthDate.time, birthDate.gender]); useEffect(() => { + // 如果输入无效,不执行分析 + if (!isValidInput) { + return; + } + // 如果已经有分析数据,直接使用 if (propAnalysisData) { setAnalysisData(propAnalysisData); @@ -202,7 +205,12 @@ const CompleteBaziAnalysis: React.FC = ({ birthDate, if (birthDate?.date && !propAnalysisData) { fetchAnalysisData(); } - }, [birthDate?.date, birthDate?.time, birthDate?.name, birthDate?.gender, propAnalysisData]); + }, [birthDate?.date, birthDate?.time, birthDate?.name, birthDate?.gender, propAnalysisData, isValidInput, fetchAnalysisData]); + + // 输入验证失败时的早期返回 + if (!isValidInput) { + return ; + } // 渲染加载状态 if (isLoading) {