diff --git a/frontend-tools/video-js/src/components/video-player/VideoJSPlayer.jsx b/frontend-tools/video-js/src/components/video-player/VideoJSPlayer.jsx index 0498fbee..8df67452 100644 --- a/frontend-tools/video-js/src/components/video-player/VideoJSPlayer.jsx +++ b/frontend-tools/video-js/src/components/video-player/VideoJSPlayer.jsx @@ -1590,7 +1590,8 @@ function VideoJSPlayer({ videoId = 'default-video' }) { // Player dimensions - removed for responsive design // Autoplay behavior: Try unmuted first, fallback to muted if needed - autoplay: true, // Try unmuted autoplay first (true/false, play, muted, any) + // For embed players, disable autoplay to show poster + autoplay: isEmbedPlayer ? false : true, // Try unmuted autoplay first (true/false, play, muted, any) // Start video over when it ends loop: false, @@ -1658,7 +1659,8 @@ function VideoJSPlayer({ videoId = 'default-video' }) { id: mediaData.id, // Milliseconds of inactivity before user considered inactive (0 = never) - inactivityTimeout: 2000, + // For embed players, use longer timeout to keep controls visible + inactivityTimeout: isEmbedPlayer ? 5000 : 2000, // Language code for player (e.g., 'en', 'es', 'fr') language: 'en', @@ -1976,12 +1978,107 @@ function VideoJSPlayer({ videoId = 'default-video' }) { } }; - if (mediaData?.urlAutoplay) { - // Explicit autoplay requested via URL parameter - handleAutoplay(); + // Skip autoplay for embed players to show poster + if (!isEmbedPlayer) { + if (mediaData?.urlAutoplay) { + // Explicit autoplay requested via URL parameter + handleAutoplay(); + } else { + // Auto-start video on page load/reload with fallback strategy + handleAutoplay(); + } } else { - // Auto-start video on page load/reload with fallback strategy - handleAutoplay(); + // For embed players, setup clean appearance with hidden controls + setTimeout(() => { + const bigPlayButton = playerRef.current.getChild('bigPlayButton'); + const controlBar = playerRef.current.getChild('controlBar'); + + if (bigPlayButton) { + bigPlayButton.show(); + // Ensure big play button is prominently displayed in center + const bigPlayEl = bigPlayButton.el(); + if (bigPlayEl) { + bigPlayEl.style.display = 'block'; + bigPlayEl.style.visibility = 'visible'; + bigPlayEl.style.opacity = '1'; + // Make it more prominent for embed + bigPlayEl.style.zIndex = '10'; + } + } + + if (controlBar) { + // Hide controls by default for embed players + controlBar.hide(); + const controlBarEl = controlBar.el(); + if (controlBarEl) { + controlBarEl.style.opacity = '0'; + controlBarEl.style.visibility = 'hidden'; + controlBarEl.style.transition = 'opacity 0.3s ease'; + } + } + + // Fix potential duplicate image issue by ensuring proper poster/video layering + const embedPlayerEl = playerRef.current.el(); + const videoEl = embedPlayerEl.querySelector('video'); + const posterEl = embedPlayerEl.querySelector('.vjs-poster'); + + if (videoEl && posterEl) { + // Ensure video is behind poster when paused + videoEl.style.opacity = '0'; + posterEl.style.zIndex = '1'; + posterEl.style.position = 'absolute'; + posterEl.style.top = '0'; + posterEl.style.left = '0'; + posterEl.style.width = '100%'; + posterEl.style.height = '100%'; + } + + // Set player to inactive state to hide controls initially + playerRef.current.userActive(false); + + // Setup hover behavior to show/hide controls for embed + if (embedPlayerEl) { + const showControls = () => { + if (controlBar) { + controlBar.show(); + const controlBarEl = controlBar.el(); + if (controlBarEl) { + controlBarEl.style.opacity = '1'; + controlBarEl.style.visibility = 'visible'; + } + } + playerRef.current.userActive(true); + }; + + const hideControls = () => { + // Only hide if video is paused (embed behavior) + if (playerRef.current.paused()) { + if (controlBar) { + const controlBarEl = controlBar.el(); + if (controlBarEl) { + controlBarEl.style.opacity = '0'; + controlBarEl.style.visibility = 'hidden'; + } + setTimeout(() => { + if (playerRef.current.paused()) { + controlBar.hide(); + } + }, 300); + } + playerRef.current.userActive(false); + } + }; + + embedPlayerEl.addEventListener('mouseenter', showControls); + embedPlayerEl.addEventListener('mouseleave', hideControls); + + // Store cleanup function + customComponents.current.embedControlsCleanup = () => { + embedPlayerEl.removeEventListener('mouseenter', showControls); + embedPlayerEl.removeEventListener('mouseleave', hideControls); + }; + } + }, 100); } /* const setupMobilePlayPause = () => { @@ -2063,29 +2160,34 @@ function VideoJSPlayer({ videoId = 'default-video' }) { const seekBar = progressControl.getChild('seekBar'); const chaptersButton = controlBar.getChild('chaptersButton'); - // Auto-play video when navigating from next button - const urlParams = new URLSearchParams(window.location.search); - const hasVideoParam = urlParams.get('m'); - if (hasVideoParam) { - // Small delay to ensure everything is loaded - setTimeout(async () => { - if (playerRef.current && !playerRef.current.isDisposed()) { - try { - await playerRef.current.play(); - } catch (error) { - console.error('ℹ️ Browser prevented play:', error.message); - // Try muted playback as fallback - if (!playerRef.current.muted()) { - try { - playerRef.current.muted(true); - await playerRef.current.play(); - } catch (mutedError) { - console.error('ℹ️ Even muted play was blocked:', mutedError.message); + // Auto-play video when navigating from next button (skip for embed players) + if (!isEmbedPlayer) { + const urlParams = new URLSearchParams(window.location.search); + const hasVideoParam = urlParams.get('m'); + if (hasVideoParam) { + // Small delay to ensure everything is loaded + setTimeout(async () => { + if (playerRef.current && !playerRef.current.isDisposed()) { + try { + await playerRef.current.play(); + } catch (error) { + console.error('ℹ️ Browser prevented play:', error.message); + // Try muted playback as fallback + if (!playerRef.current.muted()) { + try { + playerRef.current.muted(true); + await playerRef.current.play(); + } catch (mutedError) { + console.error( + 'ℹ️ Even muted play was blocked:', + mutedError.message + ); + } } } } - } - }, 100); + }, 100); + } } // BEGIN: Add subtitle tracks @@ -2695,6 +2797,25 @@ function VideoJSPlayer({ videoId = 'default-video' }) { if (!playerRef.current.isChangingQuality && customComponents.current.seekIndicator) { customComponents.current.seekIndicator.show('play'); } + + // For embed players, ensure video becomes visible when playing + if (isEmbedPlayer) { + const playerEl = playerRef.current.el(); + const videoEl = playerEl.querySelector('video'); + const posterEl = playerEl.querySelector('.vjs-poster'); + const bigPlayButton = playerRef.current.getChild('bigPlayButton'); + + if (videoEl) { + videoEl.style.opacity = '1'; + } + if (posterEl) { + posterEl.style.opacity = '0'; + } + // Hide big play button when video starts playing + if (bigPlayButton) { + bigPlayButton.hide(); + } + } }); playerRef.current.on('pause', () => { @@ -2702,6 +2823,25 @@ function VideoJSPlayer({ videoId = 'default-video' }) { if (!playerRef.current.isChangingQuality && customComponents.current.seekIndicator) { customComponents.current.seekIndicator.show('pause'); } + + // For embed players, show poster when paused at beginning + if (isEmbedPlayer && playerRef.current.currentTime() === 0) { + const playerEl = playerRef.current.el(); + const videoEl = playerEl.querySelector('video'); + const posterEl = playerEl.querySelector('.vjs-poster'); + const bigPlayButton = playerRef.current.getChild('bigPlayButton'); + + if (videoEl) { + videoEl.style.opacity = '0'; + } + if (posterEl) { + posterEl.style.opacity = '1'; + } + // Show big play button when paused at beginning + if (bigPlayButton) { + bigPlayButton.show(); + } + } }); // Store reference to end screen and autoplay countdown for cleanup @@ -2709,6 +2849,14 @@ function VideoJSPlayer({ videoId = 'default-video' }) { let autoplayCountdown = null; playerRef.current.on('ended', () => { + // For embed players, show big play button when video ends + if (isEmbedPlayer) { + const bigPlayButton = playerRef.current.getChild('bigPlayButton'); + if (bigPlayButton) { + bigPlayButton.show(); + } + } + // Keep controls active after video ends setTimeout(() => { if (playerRef.current && !playerRef.current.isDisposed()) { @@ -2931,6 +3079,11 @@ function VideoJSPlayer({ videoId = 'default-video' }) { customComponents.current.cleanupSeekbarTouch(); } + // Clean up embed controls event listeners if they exist + if (customComponents.current && customComponents.current.embedControlsCleanup) { + customComponents.current.embedControlsCleanup(); + } + if (playerRef.current && !playerRef.current.isDisposed()) { playerRef.current.dispose(); playerRef.current = null; diff --git a/static/video_js/video-js.js b/static/video_js/video-js.js index 015216b9..67c613e3 100644 --- a/static/video_js/video-js.js +++ b/static/video_js/video-js.js @@ -6,7 +6,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */Wc.exports;var wb;function IA(){return wb||(wb=1,function(s,e){(function(){function i(A,Q){Object.defineProperty(u.prototype,A,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Q[0],Q[1])}})}function r(A){return A===null||typeof A!="object"?null:(A=lt&&A[lt]||A["@@iterator"],typeof A=="function"?A:null)}function o(A,Q){A=(A=A.constructor)&&(A.displayName||A.name)||"ReactClass";var ve=A+"."+Q;At[ve]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",Q,A),At[ve]=!0)}function u(A,Q,ve){this.props=A,this.context=Q,this.refs=ci,this.updater=ve||it}function c(){}function f(A,Q,ve){this.props=A,this.context=Q,this.refs=ci,this.updater=ve||it}function m(A){return""+A}function v(A){try{m(A);var Q=!1}catch{Q=!0}if(Q){Q=console;var ve=Q.error,Me=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return ve.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Me),m(A)}}function S(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===ni?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case se:return"Fragment";case Ce:return"Profiler";case Ne:return"StrictMode";case Pe:return"Suspense";case je:return"SuspenseList";case ze:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case Ve:return"Portal";case Ye:return(A.displayName||"Context")+".Provider";case Be:return(A._context.displayName||"Context")+".Consumer";case Ge:var Q=A.render;return A=A.displayName,A||(A=Q.displayName||Q.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case ot:return Q=A.displayName||null,Q!==null?Q:S(A.type)||"Memo";case De:Q=A._payload,A=A._init;try{return S(A(Q))}catch{}}return null}function x(A){if(A===se)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===De)return"<...>";try{var Q=S(A);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function D(){var A=be.A;return A===null?null:A.getOwner()}function k(){return Error("react-stack-top-frame")}function I(A){if(Zi.call(A,"key")){var Q=Object.getOwnPropertyDescriptor(A,"key").get;if(Q&&Q.isReactWarning)return!1}return A.key!==void 0}function C(A,Q){function ve(){yi||(yi=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}ve.isReactWarning=!0,Object.defineProperty(A,"key",{get:ve,configurable:!0})}function P(){var A=S(this.type);return Qt[A]||(Qt[A]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),A=this.props.ref,A!==void 0?A:null}function U(A,Q,ve,Me,Le,tt,Xe,pt){return ve=tt.ref,A={$$typeof:Ee,type:A,key:Q,props:tt,_owner:Le},(ve!==void 0?ve:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:P}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:pt}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function Y(A,Q){return Q=U(A.type,Q,void 0,void 0,A._owner,A.props,A._debugStack,A._debugTask),A._store&&(Q._store.validated=A._store.validated),Q}function $(A){return typeof A=="object"&&A!==null&&A.$$typeof===Ee}function G(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ve){return Q[ve]})}function W(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?(v(A.key),G(""+A.key)):Q.toString(36)}function oe(){}function K(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(oe,oe):(A.status="pending",A.then(function(Q){A.status==="pending"&&(A.status="fulfilled",A.value=Q)},function(Q){A.status==="pending"&&(A.status="rejected",A.reason=Q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function de(A,Q,ve,Me,Le){var tt=typeof A;(tt==="undefined"||tt==="boolean")&&(A=null);var Xe=!1;if(A===null)Xe=!0;else switch(tt){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(A.$$typeof){case Ee:case Ve:Xe=!0;break;case De:return Xe=A._init,de(Xe(A._payload),Q,ve,Me,Le)}}if(Xe){Xe=A,Le=Le(Xe);var pt=Me===""?"."+W(Xe,0):Me;return di(Le)?(ve="",pt!=null&&(ve=pt.replace(ja,"$&/")+"/"),de(Le,Q,ve,"",function(si){return si})):Le!=null&&($(Le)&&(Le.key!=null&&(Xe&&Xe.key===Le.key||v(Le.key)),ve=Y(Le,ve+(Le.key==null||Xe&&Xe.key===Le.key?"":(""+Le.key).replace(ja,"$&/")+"/")+pt),Me!==""&&Xe!=null&&$(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ve._store.validated=2),Le=ve),Q.push(Le)),1}if(Xe=0,pt=Me===""?".":Me+":",di(A))for(var We=0;We";if(typeof A=="object"&&A!==null&&A.$$typeof===Qe)return"<...>";try{var Q=S(A);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function D(){var A=xe.A;return A===null?null:A.getOwner()}function k(){return Error("react-stack-top-frame")}function I(A){if(Mi.call(A,"key")){var Q=Object.getOwnPropertyDescriptor(A,"key").get;if(Q&&Q.isReactWarning)return!1}return A.key!==void 0}function C(A,Q){function _e(){$t||($t=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}_e.isReactWarning=!0,Object.defineProperty(A,"key",{get:_e,configurable:!0})}function P(){var A=S(this.type);return qr[A]||(qr[A]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),A=this.props.ref,A!==void 0?A:null}function U(A,Q,_e,Ce,ze,nt,Ke,ft){return _e=nt.ref,A={$$typeof:De,type:A,key:Q,props:nt,_owner:ze},(_e!==void 0?_e:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:P}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ft}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function Y(A,Q){return Q=U(A.type,Q,void 0,void 0,A._owner,A.props,A._debugStack,A._debugTask),A._store&&(Q._store.validated=A._store.validated),Q}function $(A){return typeof A=="object"&&A!==null&&A.$$typeof===De}function G(A){var Q={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(_e){return Q[_e]})}function W(A,Q){return typeof A=="object"&&A!==null&&A.key!=null?(v(A.key),G(""+A.key)):Q.toString(36)}function oe(){}function K(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(oe,oe):(A.status="pending",A.then(function(Q){A.status==="pending"&&(A.status="fulfilled",A.value=Q)},function(Q){A.status==="pending"&&(A.status="rejected",A.reason=Q)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function de(A,Q,_e,Ce,ze){var nt=typeof A;(nt==="undefined"||nt==="boolean")&&(A=null);var Ke=!1;if(A===null)Ke=!0;else switch(nt){case"bigint":case"string":case"number":Ke=!0;break;case"object":switch(A.$$typeof){case De:case $e:Ke=!0;break;case Qe:return Ke=A._init,de(Ke(A._payload),Q,_e,Ce,ze)}}if(Ke){Ke=A,ze=ze(Ke);var ft=Ce===""?"."+W(Ke,0):Ce;return pt(ze)?(_e="",ft!=null&&(_e=ft.replace(ja,"$&/")+"/"),de(ze,Q,_e,"",function(si){return si})):ze!=null&&($(ze)&&(ze.key!=null&&(Ke&&Ke.key===ze.key||v(ze.key)),_e=Y(ze,_e+(ze.key==null||Ke&&Ke.key===ze.key?"":(""+ze.key).replace(ja,"$&/")+"/")+ft),Ce!==""&&Ke!=null&&$(Ke)&&Ke.key==null&&Ke._store&&!Ke._store.validated&&(_e._store.validated=2),ze=_e),Q.push(ze)),1}if(Ke=0,ft=Ce===""?".":Ce+":",pt(A))for(var Ze=0;Ze import('./MyComponent')) @@ -14,11 +14,11 @@ Your code should look like: Did you accidentally put curly braces around the import?`,Q),"default"in Q||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`,Q),Q.default;throw A._result}function le(){var A=be.H;return A===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: + const MyComponent = lazy(() => import('./MyComponent'))`,Q),Q.default;throw A._result}function le(){var A=xe.H;return A===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app -See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),A}function pe(){}function he(A){if(gt===null)try{var Q=("require"+Math.random()).slice(0,7);gt=(s&&s[Q]).call(s,"timers").setImmediate}catch{gt=function(Me){Ua===!1&&(Ua=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Le=new MessageChannel;Le.port1.onmessage=Me,Le.port2.postMessage(void 0)}}return gt(A)}function me(A){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(We,si){Le=!0,Xe.then(function(As){if(Ue(Q,ve),ve===0){try{Se(Me),he(function(){return J(As,We,si)})}catch(Ud){be.thrownErrors.push(Ud)}if(0 ...)"))}),be.actQueue=null),0be.recentlyCreatedOwnerStacks++;return U(A,Le,void 0,void 0,D(),Me,We?Error("react-stack-top-frame"):Ai,We?qt(x(A)):ir)},e.createRef=function(){var A={current:null};return Object.seal(A),A},e.forwardRef=function(A){A!=null&&A.$$typeof===ot?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof A!="function"?console.error("forwardRef requires a render function but was given %s.",A===null?"null":typeof A):A.length!==0&&A.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",A.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),A!=null&&A.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Q={$$typeof:Ge,render:A},ve;return Object.defineProperty(Q,"displayName",{enumerable:!1,configurable:!0,get:function(){return ve},set:function(Me){ve=Me,A.name||A.displayName||(Object.defineProperty(A,"name",{value:Me}),A.displayName=Me)}}),Q},e.isValidElement=$,e.lazy=function(A){return{$$typeof:De,_payload:{_status:-1,_result:A},_init:ge}},e.memo=function(A,Q){A==null&&console.error("memo: The first argument must be a component. Instead received: %s",A===null?"null":typeof A),Q={$$typeof:ot,type:A,compare:Q===void 0?null:Q};var ve;return Object.defineProperty(Q,"displayName",{enumerable:!1,configurable:!0,get:function(){return ve},set:function(Me){ve=Me,A.name||A.displayName||(Object.defineProperty(A,"name",{value:Me}),A.displayName=Me)}}),Q},e.startTransition=function(A){var Q=be.T,ve={};be.T=ve,ve._updatedFibers=new Set;try{var Me=A(),Le=be.S;Le!==null&&Le(ve,Me),typeof Me=="object"&&Me!==null&&typeof Me.then=="function"&&Me.then(pe,Vr)}catch(tt){Vr(tt)}finally{Q===null&&ve._updatedFibers&&(A=ve._updatedFibers.size,ve._updatedFibers.clear(),10"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var ze=new MessageChannel;ze.port1.onmessage=Ce,ze.port2.postMessage(void 0)}}return gt(A)}function me(A){return 1 ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ze,si){ze=!0,Ke.then(function(Ds){if(je(Q,_e),_e===0){try{be(Ce),he(function(){return Z(Ds,Ze,si)})}catch(Ud){xe.thrownErrors.push(Ud)}if(0 ...)"))}),xe.actQueue=null),0xe.recentlyCreatedOwnerStacks++;return U(A,ze,void 0,void 0,D(),Ce,Ze?Error("react-stack-top-frame"):za,Ze?ci(x(A)):er)},e.createRef=function(){var A={current:null};return Object.seal(A),A},e.forwardRef=function(A){A!=null&&A.$$typeof===Se?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof A!="function"?console.error("forwardRef requires a render function but was given %s.",A===null?"null":typeof A):A.length!==0&&A.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",A.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),A!=null&&A.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Q={$$typeof:We,render:A},_e;return Object.defineProperty(Q,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Ce){_e=Ce,A.name||A.displayName||(Object.defineProperty(A,"name",{value:Ce}),A.displayName=Ce)}}),Q},e.isValidElement=$,e.lazy=function(A){return{$$typeof:Qe,_payload:{_status:-1,_result:A},_init:ye}},e.memo=function(A,Q){A==null&&console.error("memo: The first argument must be a component. Instead received: %s",A===null?"null":typeof A),Q={$$typeof:Se,type:A,compare:Q===void 0?null:Q};var _e;return Object.defineProperty(Q,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Ce){_e=Ce,A.name||A.displayName||(Object.defineProperty(A,"name",{value:Ce}),A.displayName=Ce)}}),Q},e.startTransition=function(A){var Q=xe.T,_e={};xe.T=_e,_e._updatedFibers=new Set;try{var Ce=A(),ze=xe.S;ze!==null&&ze(_e,Ce),typeof Ce=="object"&&Ce!==null&&typeof Ce.then=="function"&&Ce.then(ge,Hr)}catch(nt){Hr(nt)}finally{Q===null&&_e._updatedFibers&&(A=_e._updatedFibers.size,_e._updatedFibers.clear(),10";if(typeof se=="object"&&se!==null&&se.$$typeof===de)return"<...>";try{var Ne=s(se);return Ne?"<"+Ne+">":"<...>"}catch{return"<...>"}}function o(){var se=le.A;return se===null?null:se.getOwner()}function u(){return Error("react-stack-top-frame")}function c(se){if(pe.call(se,"key")){var Ne=Object.getOwnPropertyDescriptor(se,"key").get;if(Ne&&Ne.isReactWarning)return!1}return se.key!==void 0}function f(se,Ne){function Ce(){Ue||(Ue=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Ne))}Ce.isReactWarning=!0,Object.defineProperty(se,"key",{get:Ce,configurable:!0})}function m(){var se=s(this.type);return J[se]||(J[se]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),se=this.props.ref,se!==void 0?se:null}function v(se,Ne,Ce,Be,Ye,Ge,Pe,je){return Ce=Ge.ref,se={$$typeof:k,type:se,key:Ne,props:Ge,_owner:Ye},(Ce!==void 0?Ce:null)!==null?Object.defineProperty(se,"ref",{enumerable:!1,get:m}):Object.defineProperty(se,"ref",{enumerable:!1,value:null}),se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(se,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(se,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.defineProperty(se,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se}function S(se,Ne,Ce,Be,Ye,Ge,Pe,je){var ot=Ne.children;if(ot!==void 0)if(Be)if(he(ot)){for(Be=0;Be";if(typeof se=="object"&&se!==null&&se.$$typeof===de)return"<...>";try{var ke=s(se);return ke?"<"+ke+">":"<...>"}catch{return"<...>"}}function o(){var se=le.A;return se===null?null:se.getOwner()}function l(){return Error("react-stack-top-frame")}function c(se){if(ge.call(se,"key")){var ke=Object.getOwnPropertyDescriptor(se,"key").get;if(ke&&ke.isReactWarning)return!1}return se.key!==void 0}function f(se,ke){function Ae(){je||(je=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ke))}Ae.isReactWarning=!0,Object.defineProperty(se,"key",{get:Ae,configurable:!0})}function m(){var se=s(this.type);return Z[se]||(Z[se]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),se=this.props.ref,se!==void 0?se:null}function v(se,ke,Ae,Pe,Ge,We,Be,fe){return Ae=We.ref,se={$$typeof:k,type:se,key:ke,props:We,_owner:Ge},(Ae!==void 0?Ae:null)!==null?Object.defineProperty(se,"ref",{enumerable:!1,get:m}):Object.defineProperty(se,"ref",{enumerable:!1,value:null}),se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(se,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(se,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.defineProperty(se,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fe}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se}function S(se,ke,Ae,Pe,Ge,We,Be,fe){var Se=ke.children;if(Se!==void 0)if(Pe)if(he(Se)){for(Pe=0;Pe React keys must be passed directly to JSX without using spread: let props = %s; - <%s key={someKey} {...props} />`,Be,ot,De,ot),Ve[ot+Be]=!0)}if(ot=null,Ce!==void 0&&(i(Ce),ot=""+Ce),c(Ne)&&(i(Ne.key),ot=""+Ne.key),"key"in Ne){Ce={};for(var ze in Ne)ze!=="key"&&(Ce[ze]=Ne[ze])}else Ce=Ne;return ot&&f(Ce,typeof se=="function"?se.displayName||se.name||"Unknown":se),v(se,ot,Ge,Ye,o(),Ce,Pe,je)}function x(se){typeof se=="object"&&se!==null&&se.$$typeof===k&&se._store&&(se._store.validated=1)}var D=gi,k=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),$=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),le=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=Object.prototype.hasOwnProperty,he=Array.isArray,me=console.createTask?console.createTask:function(){return null};D={"react-stack-bottom-frame":function(se){return se()}};var Ue,J={},Se=D["react-stack-bottom-frame"].bind(D,u)(),Ee=me(r(u)),Ve={};Xc.Fragment=C,Xc.jsx=function(se,Ne,Ce,Be,Ye){var Ge=1e4>le.recentlyCreatedOwnerStacks++;return S(se,Ne,Ce,!1,Be,Ye,Ge?Error("react-stack-top-frame"):Se,Ge?me(r(se)):Ee)},Xc.jsxs=function(se,Ne,Ce,Be,Ye){var Ge=1e4>le.recentlyCreatedOwnerStacks++;return S(se,Ne,Ce,!0,Be,Ye,Ge?Error("react-stack-top-frame"):Se,Ge?me(r(se)):Ee)}}()),Xc}Cb.exports=LA();var Bl=Cb.exports,kb={exports:{}},Rg={exports:{}},zg={};/** + <%s key={someKey} {...props} />`,Pe,Se,Qe,Se),$e[Se+Pe]=!0)}if(Se=null,Ae!==void 0&&(i(Ae),Se=""+Ae),c(ke)&&(i(ke.key),Se=""+ke.key),"key"in ke){Ae={};for(var ct in ke)ct!=="key"&&(Ae[ct]=ke[ct])}else Ae=ke;return Se&&f(Ae,typeof se=="function"?se.displayName||se.name||"Unknown":se),v(se,Se,We,Ge,o(),Ae,Be,fe)}function x(se){typeof se=="object"&&se!==null&&se.$$typeof===k&&se._store&&(se._store.validated=1)}var D=mi,k=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),$=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ye=Symbol.for("react.client.reference"),le=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=Object.prototype.hasOwnProperty,he=Array.isArray,me=console.createTask?console.createTask:function(){return null};D={"react-stack-bottom-frame":function(se){return se()}};var je,Z={},be=D["react-stack-bottom-frame"].bind(D,l)(),De=me(r(l)),$e={};Xc.Fragment=C,Xc.jsx=function(se,ke,Ae,Pe,Ge){var We=1e4>le.recentlyCreatedOwnerStacks++;return S(se,ke,Ae,!1,Pe,Ge,We?Error("react-stack-top-frame"):be,We?me(r(se)):De)},Xc.jsxs=function(se,ke,Ae,Pe,Ge){var We=1e4>le.recentlyCreatedOwnerStacks++;return S(se,ke,Ae,!0,Pe,Ge,We?Error("react-stack-top-frame"):be,We?me(r(se)):De)}}()),Xc}Cb.exports=LA();var Bl=Cb.exports,kb={exports:{}},Rg={exports:{}},zg={};/** * @license React * scheduler.development.js * @@ -39,7 +39,7 @@ React keys must be passed directly to JSX without using spread: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ob;function RA(){return Ob||(Ob=1,function(s){(function(){function e(){if(W=!1,fe){var J=s.unstable_now();pe=J;var Se=!0;try{e:{$=!1,G&&(G=!1,K(ge),ge=-1),Y=!0;var Ee=U;try{t:{for(c(J),P=r(k);P!==null&&!(P.expirationTime>J&&m());){var Ve=P.callback;if(typeof Ve=="function"){P.callback=null,U=P.priorityLevel;var se=Ve(P.expirationTime<=J);if(J=s.unstable_now(),typeof se=="function"){P.callback=se,c(J),Se=!0;break t}P===r(k)&&o(k),c(J)}else o(k);P=r(k)}if(P!==null)Se=!0;else{var Ne=r(I);Ne!==null&&v(f,Ne.startTime-J),Se=!1}}break e}finally{P=null,U=Ee,Y=!1}Se=void 0}}finally{Se?he():fe=!1}}}function i(J,Se){var Ee=J.length;J.push(Se);e:for(;0>>1,se=J[Ve];if(0>>1;Veu(Be,Ee))Yeu(Ge,Be)?(J[Ve]=Ge,J[Ye]=Ee,Ve=Ye):(J[Ve]=Be,J[Ce]=Ee,Ve=Ce);else if(Yeu(Ge,Ee))J[Ve]=Ge,J[Ye]=Ee,Ve=Ye;else break e}}return Se}function u(J,Se){var Ee=J.sortIndex-Se.sortIndex;return Ee!==0?Ee:J.id-Se.id}function c(J){for(var Se=r(I);Se!==null;){if(Se.callback===null)o(I);else if(Se.startTime<=J)o(I),Se.sortIndex=Se.expirationTime,i(k,Se);else break;Se=r(I)}}function f(J){if(G=!1,c(J),!$)if(r(k)!==null)$=!0,fe||(fe=!0,he());else{var Se=r(I);Se!==null&&v(f,Se.startTime-J)}}function m(){return W?!0:!(s.unstable_now()-peJ||125Ve?(J.sortIndex=Ee,i(I,J),r(k)===null&&J===r(I)&&(G?(K(ge),ge=-1):G=!0,v(f,Ee-Ve))):(J.sortIndex=se,i(k,J),$||Y||($=!0,fe||(fe=!0,he()))),J},s.unstable_shouldYield=m,s.unstable_wrapCallback=function(J){var Se=U;return function(){var Ee=U;U=Se;try{return J.apply(this,arguments)}finally{U=Ee}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(zg)),zg}var Ib;function zA(){return Ib||(Ib=1,Rg.exports=RA()),Rg.exports}var jg={exports:{}},Qi={};/** + */var Ob;function RA(){return Ob||(Ob=1,function(s){(function(){function e(){if(W=!1,pe){var Z=s.unstable_now();ge=Z;var be=!0;try{e:{$=!1,G&&(G=!1,K(ye),ye=-1),Y=!0;var De=U;try{t:{for(c(Z),P=r(k);P!==null&&!(P.expirationTime>Z&&m());){var $e=P.callback;if(typeof $e=="function"){P.callback=null,U=P.priorityLevel;var se=$e(P.expirationTime<=Z);if(Z=s.unstable_now(),typeof se=="function"){P.callback=se,c(Z),be=!0;break t}P===r(k)&&o(k),c(Z)}else o(k);P=r(k)}if(P!==null)be=!0;else{var ke=r(I);ke!==null&&v(f,ke.startTime-Z),be=!1}}break e}finally{P=null,U=De,Y=!1}be=void 0}}finally{be?he():pe=!1}}}function i(Z,be){var De=Z.length;Z.push(be);e:for(;0>>1,se=Z[$e];if(0>>1;$el(Pe,De))Gel(We,Pe)?(Z[$e]=We,Z[Ge]=De,$e=Ge):(Z[$e]=Pe,Z[Ae]=De,$e=Ae);else if(Gel(We,De))Z[$e]=We,Z[Ge]=De,$e=Ge;else break e}}return be}function l(Z,be){var De=Z.sortIndex-be.sortIndex;return De!==0?De:Z.id-be.id}function c(Z){for(var be=r(I);be!==null;){if(be.callback===null)o(I);else if(be.startTime<=Z)o(I),be.sortIndex=be.expirationTime,i(k,be);else break;be=r(I)}}function f(Z){if(G=!1,c(Z),!$)if(r(k)!==null)$=!0,pe||(pe=!0,he());else{var be=r(I);be!==null&&v(f,be.startTime-Z)}}function m(){return W?!0:!(s.unstable_now()-geZ||125$e?(Z.sortIndex=De,i(I,Z),r(k)===null&&Z===r(I)&&(G?(K(ye),ye=-1):G=!0,v(f,De-$e))):(Z.sortIndex=se,i(k,Z),$||Y||($=!0,pe||(pe=!0,he()))),Z},s.unstable_shouldYield=m,s.unstable_wrapCallback=function(Z){var be=U;return function(){var De=U;U=be;try{return Z.apply(this,arguments)}finally{U=De}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()}(zg)),zg}var Ib;function zA(){return Ib||(Ib=1,Rg.exports=RA()),Rg.exports}var jg={exports:{}},Vi={};/** * @license React * react-dom.development.js * @@ -47,11 +47,11 @@ React keys must be passed directly to JSX without using spread: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Lb;function jA(){return Lb||(Lb=1,function(){function s(){}function e(x){return""+x}function i(x,D,k){var I=3` tag.%s',k),typeof x=="string"&&typeof D=="object"&&D!==null&&typeof D.as=="string"){k=D.as;var I=r(k,D.crossOrigin);m.d.L(x,k,{crossOrigin:I,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0,type:typeof D.type=="string"?D.type:void 0,fetchPriority:typeof D.fetchPriority=="string"?D.fetchPriority:void 0,referrerPolicy:typeof D.referrerPolicy=="string"?D.referrerPolicy:void 0,imageSrcSet:typeof D.imageSrcSet=="string"?D.imageSrcSet:void 0,imageSizes:typeof D.imageSizes=="string"?D.imageSizes:void 0,media:typeof D.media=="string"?D.media:void 0})}},Qi.preloadModule=function(x,D){var k="";typeof x=="string"&&x||(k+=" The `href` argument encountered was "+o(x)+"."),D!==void 0&&typeof D!="object"?k+=" The `options` argument encountered was "+o(D)+".":D&&"as"in D&&typeof D.as!="string"&&(k+=" The `as` option encountered was "+o(D.as)+"."),k&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',k),typeof x=="string"&&(D?(k=r(D.as,D.crossOrigin),m.d.m(x,{as:typeof D.as=="string"&&D.as!=="script"?D.as:void 0,crossOrigin:k,integrity:typeof D.integrity=="string"?D.integrity:void 0})):m.d.m(x))},Qi.requestFormReset=function(x){m.d.r(x)},Qi.unstable_batchedUpdates=function(x,D){return x(D)},Qi.useFormState=function(x,D,k){return c().useFormState(x,D,k)},Qi.useFormStatus=function(){return c().useHostTransitionStatus()},Qi.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Qi}var Rb;function UA(){return Rb||(Rb=1,jg.exports=jA()),jg.exports}var Kc={};/** +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),x}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var f=mi,m={d:{f:s,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},v=Symbol.for("react.portal"),S=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Vi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,Vi.createPortal=function(x,D){var k=2` tag.%s',k),typeof x=="string"&&typeof D=="object"&&D!==null&&typeof D.as=="string"){k=D.as;var I=r(k,D.crossOrigin);m.d.L(x,k,{crossOrigin:I,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0,type:typeof D.type=="string"?D.type:void 0,fetchPriority:typeof D.fetchPriority=="string"?D.fetchPriority:void 0,referrerPolicy:typeof D.referrerPolicy=="string"?D.referrerPolicy:void 0,imageSrcSet:typeof D.imageSrcSet=="string"?D.imageSrcSet:void 0,imageSizes:typeof D.imageSizes=="string"?D.imageSizes:void 0,media:typeof D.media=="string"?D.media:void 0})}},Vi.preloadModule=function(x,D){var k="";typeof x=="string"&&x||(k+=" The `href` argument encountered was "+o(x)+"."),D!==void 0&&typeof D!="object"?k+=" The `options` argument encountered was "+o(D)+".":D&&"as"in D&&typeof D.as!="string"&&(k+=" The `as` option encountered was "+o(D.as)+"."),k&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',k),typeof x=="string"&&(D?(k=r(D.as,D.crossOrigin),m.d.m(x,{as:typeof D.as=="string"&&D.as!=="script"?D.as:void 0,crossOrigin:k,integrity:typeof D.integrity=="string"?D.integrity:void 0})):m.d.m(x))},Vi.requestFormReset=function(x){m.d.r(x)},Vi.unstable_batchedUpdates=function(x,D){return x(D)},Vi.useFormState=function(x,D,k){return c().useFormState(x,D,k)},Vi.useFormStatus=function(){return c().useHostTransitionStatus()},Vi.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vi}var Rb;function UA(){return Rb||(Rb=1,jg.exports=jA()),jg.exports}var Kc={};/** * @license React * react-dom-client.development.js * @@ -59,61 +59,61 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zb;function PA(){return zb||(zb=1,function(){function s(t,n){for(t=t.memoizedState;t!==null&&0=n.length)return l;var d=n[a],p=Hi(t)?t.slice():rt({},t);return p[d]=e(t[d],n,a+1,l),p}function i(t,n,a){if(n.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var l=0;lda?console.error("Unexpected pop."):(n!==dv[da]&&console.error("Unexpected Fiber popped."),t.current=cv[da],cv[da]=null,dv[da]=null,da--)}function pe(t,n,a){da++,cv[da]=t.current,dv[da]=a,t.current=n}function he(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function me(t,n){pe(oo,n,t),pe(Vh,t,t),pe(ao,null,t);var a=n.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?wM(n):xa;break;default:if(a=n.tagName,n=n.namespaceURI)n=wM(n),n=NM(n,a);else switch(a){case"svg":n=Yc;break;case"math":n=Ag;break;default:n=xa}}a=a.toLowerCase(),a=Cn(null,a),a={context:n,ancestorInfo:a},le(ao,t),pe(ao,a,t)}function Ue(t){le(ao,t),le(Vh,t),le(oo,t)}function J(){return he(ao.current)}function Se(t){t.memoizedState!==null&&pe(Hm,t,t);var n=he(ao.current),a=t.type,l=NM(n.context,a);a=Cn(n.ancestorInfo,a),l={context:l,ancestorInfo:a},n!==l&&(pe(Vh,t,t),pe(ao,l,t))}function Ee(t){Vh.current===t&&(le(ao,t),le(Vh,t)),Hm.current===t&&(le(Hm,t),wf._currentValue=Pl)}function Ve(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function se(t){try{return Ne(t),!1}catch{return!0}}function Ne(t){return""+t}function Ce(t,n){if(se(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ve(t)),Ne(t)}function Be(t,n){if(se(t))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,Ve(t)),Ne(t)}function Ye(t){if(se(t))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ve(t)),Ne(t)}function Ge(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{fc=n.inject(t),tn=n}catch(a){console.error("React instrumentation encountered an error: %s.",a)}return!!n.checkDCE}function Pe(t){if(typeof m5=="function"&&g5(t),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(fc,t)}catch(n){Dr||(Dr=!0,console.error("React instrumentation encountered an error: %s",n))}}function je(t){Ae=t}function ot(){Ae!==null&&typeof Ae.markCommitStopped=="function"&&Ae.markCommitStopped()}function De(t){Ae!==null&&typeof Ae.markComponentRenderStarted=="function"&&Ae.markComponentRenderStarted(t)}function ze(){Ae!==null&&typeof Ae.markComponentRenderStopped=="function"&&Ae.markComponentRenderStopped()}function lt(t){Ae!==null&&typeof Ae.markRenderStarted=="function"&&Ae.markRenderStarted(t)}function At(){Ae!==null&&typeof Ae.markRenderStopped=="function"&&Ae.markRenderStopped()}function it(t,n){Ae!==null&&typeof Ae.markStateUpdateScheduled=="function"&&Ae.markStateUpdateScheduled(t,n)}function Et(t){return t>>>=0,t===0?32:31-(y5(t)/T5|0)|0}function ci(t){if(t&1)return"SyncHydrationLane";if(t&2)return"Sync";if(t&4)return"InputContinuousHydration";if(t&8)return"InputContinuous";if(t&16)return"DefaultHydration";if(t&32)return"Default";if(t&128)return"TransitionHydration";if(t&4194048)return"Transition";if(t&62914560)return"Retry";if(t&67108864)return"SelectiveHydration";if(t&134217728)return"IdleHydration";if(t&268435456)return"Idle";if(t&536870912)return"Offscreen";if(t&1073741824)return"Deferred"}function ft(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function Ri(t,n,a){var l=t.pendingLanes;if(l===0)return 0;var d=0,p=t.suspendedLanes,_=t.pingedLanes;t=t.warmLanes;var M=l&134217727;return M!==0?(l=M&~p,l!==0?d=ft(l):(_&=M,_!==0?d=ft(_):a||(a=M&~t,a!==0&&(d=ft(a))))):(M=l&~p,M!==0?d=ft(M):_!==0?d=ft(_):a||(a=l&~t,a!==0&&(d=ft(a)))),d===0?0:n!==0&&n!==d&&!(n&p)&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function di(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function ni(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function be(){var t=Vm;return Vm<<=1,!(Vm&4194048)&&(Vm=256),t}function Zi(){var t=$m;return $m<<=1,!($m&62914560)&&($m=4194304),t}function qt(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function yi(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ci(t,n,a,l,d,p){var _=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var M=t.entanglements,N=t.expirationTimes,L=t.hiddenUpdates;for(a=_&~a;0Yh&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Dn(t){if(Tv===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Tv=n&&n[1]||"",fD=-1=n.length)return u;var d=n[a],p=Bi(t)?t.slice():at({},t);return p[d]=e(t[d],n,a+1,u),p}function i(t,n,a){if(n.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;uca?console.error("Unexpected pop."):(n!==dv[ca]&&console.error("Unexpected Fiber popped."),t.current=cv[ca],cv[ca]=null,dv[ca]=null,ca--)}function ge(t,n,a){ca++,cv[ca]=t.current,dv[ca]=a,t.current=n}function he(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function me(t,n){ge(oo,n,t),ge(Vh,t,t),ge(ao,null,t);var a=n.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?wM(n):Sa;break;default:if(a=n.tagName,n=n.namespaceURI)n=wM(n),n=NM(n,a);else switch(a){case"svg":n=Yc;break;case"math":n=Ag;break;default:n=Sa}}a=a.toLowerCase(),a=En(null,a),a={context:n,ancestorInfo:a},le(ao,t),ge(ao,a,t)}function je(t){le(ao,t),le(Vh,t),le(oo,t)}function Z(){return he(ao.current)}function be(t){t.memoizedState!==null&&ge(Hm,t,t);var n=he(ao.current),a=t.type,u=NM(n.context,a);a=En(n.ancestorInfo,a),u={context:u,ancestorInfo:a},n!==u&&(ge(Vh,t,t),ge(ao,u,t))}function De(t){Vh.current===t&&(le(ao,t),le(Vh,t)),Hm.current===t&&(le(Hm,t),wf._currentValue=Pl)}function $e(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function se(t){try{return ke(t),!1}catch{return!0}}function ke(t){return""+t}function Ae(t,n){if(se(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,$e(t)),ke(t)}function Pe(t,n){if(se(t))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,$e(t)),ke(t)}function Ge(t){if(se(t))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",$e(t)),ke(t)}function We(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{fc=n.inject(t),Ki=n}catch(a){console.error("React instrumentation encountered an error: %s.",a)}return!!n.checkDCE}function Be(t){if(typeof m5=="function"&&g5(t),Ki&&typeof Ki.setStrictMode=="function")try{Ki.setStrictMode(fc,t)}catch(n){Er||(Er=!0,console.error("React instrumentation encountered an error: %s",n))}}function fe(t){we=t}function Se(){we!==null&&typeof we.markCommitStopped=="function"&&we.markCommitStopped()}function Qe(t){we!==null&&typeof we.markComponentRenderStarted=="function"&&we.markComponentRenderStarted(t)}function ct(){we!==null&&typeof we.markComponentRenderStopped=="function"&&we.markComponentRenderStopped()}function Re(t){we!==null&&typeof we.markRenderStarted=="function"&&we.markRenderStarted(t)}function Fe(){we!==null&&typeof we.markRenderStopped=="function"&&we.markRenderStopped()}function jt(t,n){we!==null&&typeof we.markStateUpdateScheduled=="function"&&we.markStateUpdateScheduled(t,n)}function At(t){return t>>>=0,t===0?32:31-(y5(t)/T5|0)|0}function Un(t){if(t&1)return"SyncHydrationLane";if(t&2)return"Sync";if(t&4)return"InputContinuousHydration";if(t&8)return"InputContinuous";if(t&16)return"DefaultHydration";if(t&32)return"Default";if(t&128)return"TransitionHydration";if(t&4194048)return"Transition";if(t&62914560)return"Retry";if(t&67108864)return"SelectiveHydration";if(t&134217728)return"IdleHydration";if(t&268435456)return"Idle";if(t&536870912)return"Offscreen";if(t&1073741824)return"Deferred"}function qt(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function Ft(t,n,a){var u=t.pendingLanes;if(u===0)return 0;var d=0,p=t.suspendedLanes,_=t.pingedLanes;t=t.warmLanes;var M=u&134217727;return M!==0?(u=M&~p,u!==0?d=qt(u):(_&=M,_!==0?d=qt(_):a||(a=M&~t,a!==0&&(d=qt(a))))):(M=u&~p,M!==0?d=qt(M):_!==0?d=qt(_):a||(a=u&~t,a!==0&&(d=qt(a)))),d===0?0:n!==0&&n!==d&&!(n&p)&&(p=d&-d,a=n&-n,p>=a||p===32&&(a&4194048)!==0)?n:d}function pt(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function Sn(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function xe(){var t=Vm;return Vm<<=1,!(Vm&4194048)&&(Vm=256),t}function Mi(){var t=$m;return $m<<=1,!($m&62914560)&&($m=4194304),t}function ci(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function $t(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Di(t,n,a,u,d,p){var _=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var M=t.entanglements,N=t.expirationTimes,L=t.hiddenUpdates;for(a=_&~a;0Yh&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function xn(t){if(Tv===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Tv=n&&n[1]||"",fD=-1)":-1_||L[p]!==Z[_]){var ne=` -`+L[p].replace(" at new "," at ");return t.displayName&&ne.includes("")&&(ne=ne.replace("",t.displayName)),typeof t=="function"&&bv.set(t,ne),ne}while(1<=p&&0<=_);break}}}finally{vv=!1,ie.H=l,Ud(),Error.prepareStackTrace=a}return L=(L=t?t.displayName||t.name:"")?Dn(L):"",typeof t=="function"&&bv.set(t,L),L}function Bd(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame +`+Tv+t+fD}function Pd(t,n){if(!t||vv)return"";var a=bv.get(t);if(a!==void 0)return a;vv=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=ie.H,ie.H=null,jd();try{var d={DetermineComponentFrameRoot:function(){try{if(n){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Oe){var re=Oe}Reflect.construct(t,[],X)}else{try{X.call()}catch(Oe){re=Oe}t.call(X.prototype)}}else{try{throw Error()}catch(Oe){re=Oe}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(Oe){if(Oe&&re&&typeof Oe.stack=="string")return[Oe.stack,re.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=d.DetermineComponentFrameRoot(),M=_[0],N=_[1];if(M&&N){var L=M.split(` +`),J=N.split(` +`);for(_=p=0;p_||L[p]!==J[_]){var ne=` +`+L[p].replace(" at new "," at ");return t.displayName&&ne.includes("")&&(ne=ne.replace("",t.displayName)),typeof t=="function"&&bv.set(t,ne),ne}while(1<=p&&0<=_);break}}}finally{vv=!1,ie.H=u,Ud(),Error.prepareStackTrace=a}return L=(L=t?t.displayName||t.name:"")?xn(L):"",typeof t=="function"&&bv.set(t,L),L}function Bd(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame `)&&(t=t.slice(29)),n=t.indexOf(` `),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react-stack-bottom-frame"),n!==-1&&(n=t.lastIndexOf(` -`,n)),n!==-1)t=t.slice(0,n);else return"";return t}function qd(t){switch(t.tag){case 26:case 27:case 5:return Dn(t.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 15:return Pd(t.type,!1);case 11:return Pd(t.type.render,!1);case 1:return Pd(t.type,!0);case 31:return Dn("Activity");default:return""}}function Bo(t){try{var n="";do{n+=qd(t);var a=t._debugInfo;if(a)for(var l=a.length-1;0<=l;l--){var d=a[l];if(typeof d.name=="string"){var p=n,_=d.env,M=Dn(d.name+(_?" ["+_+"]":""));n=p+M}}t=t.return}while(t);return n}catch(N){return` +`,n)),n!==-1)t=t.slice(0,n);else return"";return t}function qd(t){switch(t.tag){case 26:case 27:case 5:return xn(t.type);case 16:return xn("Lazy");case 13:return xn("Suspense");case 19:return xn("SuspenseList");case 0:case 15:return Pd(t.type,!1);case 11:return Pd(t.type.render,!1);case 1:return Pd(t.type,!0);case 31:return xn("Activity");default:return""}}function Bo(t){try{var n="";do{n+=qd(t);var a=t._debugInfo;if(a)for(var u=a.length-1;0<=u;u--){var d=a[u];if(typeof d.name=="string"){var p=n,_=d.env,M=xn(d.name+(_?" ["+_+"]":""));n=p+M}}t=t.return}while(t);return n}catch(N){return` Error generating stack: `+N.message+` -`+N.stack}}function zi(t){return(t=t?t.displayName||t.name:"")?Dn(t):""}function Cu(){if(Kn===null)return null;var t=Kn._debugOwner;return t!=null?de(t):null}function qy(){if(Kn===null)return"";var t=Kn;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=Dn(t.type);break;case 13:n+=Dn("Suspense");break;case 19:n+=Dn("SuspenseList");break;case 31:n+=Dn("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=zi(t.type));break;case 11:t._debugOwner||n!==""||(n+=zi(t.type.render))}for(;t;)if(typeof t.tag=="number"){var a=t;t=a._debugOwner;var l=a._debugStack;t&&l&&(typeof l!="string"&&(a._debugStack=l=Bd(l)),l!==""&&(n+=` -`+l))}else if(t.debugStack!=null){var d=t.debugStack;(t=t.owner)&&d&&(n+=` +`+N.stack}}function Ii(t){return(t=t?t.displayName||t.name:"")?xn(t):""}function Cu(){if(Xn===null)return null;var t=Xn._debugOwner;return t!=null?de(t):null}function qy(){if(Xn===null)return"";var t=Xn;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=xn(t.type);break;case 13:n+=xn("Suspense");break;case 19:n+=xn("SuspenseList");break;case 31:n+=xn("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=Ii(t.type));break;case 11:t._debugOwner||n!==""||(n+=Ii(t.type.render))}for(;t;)if(typeof t.tag=="number"){var a=t;t=a._debugOwner;var u=a._debugStack;t&&u&&(typeof u!="string"&&(a._debugStack=u=Bd(u)),u!==""&&(n+=` +`+u))}else if(t.debugStack!=null){var d=t.debugStack;(t=t.owner)&&d&&(n+=` `+Bd(d))}else break;var p=n}catch(_){p=` Error generating stack: `+_.message+` -`+_.stack}return p}function Ie(t,n,a,l,d,p,_){var M=Kn;Fn(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,a,l,d,p,_)):n(a,l,d,p,_)}finally{Fn(M)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Fn(t){ie.getCurrentStack=t===null?null:qy,Ar=!1,Kn=t}function ji(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return Ye(t),t;default:return""}}function Mt(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Fy(t){var n=Mt(t)?"checked":"value",a=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);Ye(t[n]);var l=""+t[n];if(!t.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var d=a.get,p=a.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return d.call(this)},set:function(_){Ye(_),l=""+_,p.call(this,_)}}),Object.defineProperty(t,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(_){Ye(_),l=""+_},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function $r(t){t._valueTracker||(t._valueTracker=Fy(t))}function qo(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return t&&(l=Mt(t)?t.checked?"true":"false":t.value),t=l,t!==a?(n.setValue(t),!0):!1}function Au(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function hi(t){return t.replace(x5,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Lt(t,n){n.checked===void 0||n.defaultChecked===void 0||mD||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Cu()||"A component",n.type),mD=!0),n.value===void 0||n.defaultValue===void 0||pD||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Cu()||"A component",n.type),pD=!0)}function wu(t,n,a,l,d,p,_,M){t.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(Ce(_,"type"),t.type=_):t.removeAttribute("type"),n!=null?_==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+ji(n)):t.value!==""+ji(n)&&(t.value=""+ji(n)):_!=="submit"&&_!=="reset"||t.removeAttribute("value"),n!=null?Fd(t,_,ji(n)):a!=null?Fd(t,_,ji(a)):l!=null&&t.removeAttribute("value"),d==null&&p!=null&&(t.defaultChecked=!!p),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?(Ce(M,"name"),t.name=""+ji(M)):t.removeAttribute("name")}function Fo(t,n,a,l,d,p,_,M){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(Ce(p,"type"),t.type=p),n!=null||a!=null){if(!(p!=="submit"&&p!=="reset"||n!=null))return;a=a!=null?""+ji(a):"",n=n!=null?""+ji(n):a,M||n===t.value||(t.value=n),t.defaultValue=n}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=M?t.checked:!!l,t.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(Ce(_,"name"),t.name=_)}function Fd(t,n,a){n==="number"&&Au(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Bp(t,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?sv.Children.forEach(n.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||yD||(yD=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to