mediacms/static/video_editor/video-editor.js
Markos Gogoulos ef264bbece text
2025-05-23 16:52:21 +03:00

204 lines
397 KiB
JavaScript

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},rl={exports:{}};rl.exports;var vm;function zS(){return vm||(vm=1,function(w,_){/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var ve="18.3.1",be=Symbol.for("react.element"),pe=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),ne=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Vt=Symbol.for("react.offscreen"),xt=Symbol.iterator,Rt="@@iterator";function Ge(s){if(s===null||typeof s!="object")return null;var h=xt&&s[xt]||s[Rt];return typeof h=="function"?h:null}var Ce={current:null},mt={transition:null},xe={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},et={current:null},B={},kt=null;function tt(s){kt=s}B.setExtraStackFrame=function(s){kt=s},B.getCurrentStack=null,B.getStackAddendum=function(){var s="";kt&&(s+=kt);var h=B.getCurrentStack;return h&&(s+=h()||""),s};var He=!1,J=!1,Ze=!1,X=!1,Ot=!1,Xe={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:mt,ReactCurrentOwner:et};Xe.ReactDebugCurrentFrame=B,Xe.ReactCurrentActQueue=xe;function $(s){{for(var h=arguments.length,M=new Array(h>1?h-1:0),O=1;O<h;O++)M[O-1]=arguments[O];ze("warn",s,M)}}function I(s){{for(var h=arguments.length,M=new Array(h>1?h-1:0),O=1;O<h;O++)M[O-1]=arguments[O];ze("error",s,M)}}function ze(s,h,M){{var O=Xe.ReactDebugCurrentFrame,K=O.getStackAddendum();K!==""&&(h+="%s",M=M.concat([K]));var ke=M.map(function(ge){return String(ge)});ke.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,ke)}}var Fe={};function at(s,h){{var M=s.constructor,O=M&&(M.displayName||M.name)||"ReactClass",K=O+"."+h;if(Fe[K])return;I("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.",h,O),Fe[K]=!0}}var ht={isMounted:function(s){return!1},enqueueForceUpdate:function(s,h,M){at(s,"forceUpdate")},enqueueReplaceState:function(s,h,M,O){at(s,"replaceState")},enqueueSetState:function(s,h,M,O){at(s,"setState")}},Ke=Object.assign,Ve={};Object.freeze(Ve);function Ae(s,h,M){this.props=s,this.context=h,this.refs=Ve,this.updater=M||ht}Ae.prototype.isReactComponent={},Ae.prototype.setState=function(s,h){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,h,"setState")},Ae.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var st={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},$t=function(s,h){Object.defineProperty(Ae.prototype,s,{get:function(){$("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var Ye in st)st.hasOwnProperty(Ye)&&$t(Ye,st[Ye])}function At(){}At.prototype=Ae.prototype;function rt(s,h,M){this.props=s,this.context=h,this.refs=Ve,this.updater=M||ht}var Ie=rt.prototype=new At;Ie.constructor=rt,Ke(Ie,Ae.prototype),Ie.isPureReactComponent=!0;function Jt(){var s={current:null};return Object.seal(s),s}var xn=Array.isArray;function Xt(s){return xn(s)}function cn(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,M=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return M}}function Yt(s){try{return an(s),!1}catch{return!0}}function an(s){return""+s}function Rn(s){if(Yt(s))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cn(s)),an(s)}function U(s,h,M){var O=s.displayName;if(O)return O;var K=h.displayName||h.name||"";return K!==""?M+"("+K+")":M}function W(s){return s.displayName||"Context"}function me(s){if(s==null)return null;if(typeof s.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case Oe:return"Fragment";case pe:return"Portal";case Z:return"Profiler";case d:return"StrictMode";case G:return"Suspense";case N:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ne:var h=s;return W(h)+".Consumer";case Se:var M=s;return W(M._context)+".Provider";case nt:return U(s,s.render,"ForwardRef");case ae:var O=s.displayName||null;return O!==null?O:me(s.type)||"Memo";case Ue:{var K=s,ke=K._payload,ge=K._init;try{return me(ge(ke))}catch{return null}}}return null}var le=Object.prototype.hasOwnProperty,Ee={key:!0,ref:!0,__self:!0,__source:!0},we,yt,_e;_e={};function ct(s){if(le.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function wt(s){if(le.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function un(s,h){var M=function(){we||(we=!0,I("%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://reactjs.org/link/special-props)",h))};M.isReactWarning=!0,Object.defineProperty(s,"key",{get:M,configurable:!0})}function wn(s,h){var M=function(){yt||(yt=!0,I("%s: `ref` 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://reactjs.org/link/special-props)",h))};M.isReactWarning=!0,Object.defineProperty(s,"ref",{get:M,configurable:!0})}function Q(s){if(typeof s.ref=="string"&&et.current&&s.__self&&et.current.stateNode!==s.__self){var h=me(et.current.type);_e[h]||(I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',h,s.ref),_e[h]=!0)}}var ye=function(s,h,M,O,K,ke,ge){var We={$$typeof:be,type:s,key:h,ref:M,props:ge,_owner:ke};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function Pe(s,h,M){var O,K={},ke=null,ge=null,We=null,ft=null;if(h!=null){ct(h)&&(ge=h.ref,Q(h)),wt(h)&&(Rn(h.key),ke=""+h.key),We=h.__self===void 0?null:h.__self,ft=h.__source===void 0?null:h.__source;for(O in h)le.call(h,O)&&!Ee.hasOwnProperty(O)&&(K[O]=h[O])}var jt=arguments.length-2;if(jt===1)K.children=M;else if(jt>1){for(var Wt=Array(jt),qt=0;qt<jt;qt++)Wt[qt]=arguments[qt+2];Object.freeze&&Object.freeze(Wt),K.children=Wt}if(s&&s.defaultProps){var ot=s.defaultProps;for(O in ot)K[O]===void 0&&(K[O]=ot[O])}if(ke||ge){var nn=typeof s=="function"?s.displayName||s.name||"Unknown":s;ke&&un(K,nn),ge&&wn(K,nn)}return ye(s,ke,ge,We,ft,et.current,K)}function gt(s,h){var M=ye(s.type,h,s.ref,s._self,s._source,s._owner,s.props);return M}function Pt(s,h,M){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var O,K=Ke({},s.props),ke=s.key,ge=s.ref,We=s._self,ft=s._source,jt=s._owner;if(h!=null){ct(h)&&(ge=h.ref,jt=et.current),wt(h)&&(Rn(h.key),ke=""+h.key);var Wt;s.type&&s.type.defaultProps&&(Wt=s.type.defaultProps);for(O in h)le.call(h,O)&&!Ee.hasOwnProperty(O)&&(h[O]===void 0&&Wt!==void 0?K[O]=Wt[O]:K[O]=h[O])}var qt=arguments.length-2;if(qt===1)K.children=M;else if(qt>1){for(var ot=Array(qt),nn=0;nn<qt;nn++)ot[nn]=arguments[nn+2];K.children=ot}return ye(s.type,ke,ge,We,ft,jt,K)}function Qt(s){return typeof s=="object"&&s!==null&&s.$$typeof===be}var Kt=".",Dn=":";function It(s){var h=/[=:]/g,M={"=":"=0",":":"=2"},O=s.replace(h,function(K){return M[K]});return"$"+O}var Ft=!1,bt=/\/+/g;function ua(s){return s.replace(bt,"$&/")}function ha(s,h){return typeof s=="object"&&s!==null&&s.key!=null?(Rn(s.key),It(""+s.key)):h.toString(36)}function Yn(s,h,M,O,K){var ke=typeof s;(ke==="undefined"||ke==="boolean")&&(s=null);var ge=!1;if(s===null)ge=!0;else switch(ke){case"string":case"number":ge=!0;break;case"object":switch(s.$$typeof){case be:case pe:ge=!0}}if(ge){var We=s,ft=K(We),jt=O===""?Kt+ha(We,0):O;if(Xt(ft)){var Wt="";jt!=null&&(Wt=ua(jt)+"/"),Yn(ft,h,Wt,"",function(cf){return cf})}else ft!=null&&(Qt(ft)&&(ft.key&&(!We||We.key!==ft.key)&&Rn(ft.key),ft=gt(ft,M+(ft.key&&(!We||We.key!==ft.key)?ua(""+ft.key)+"/":"")+jt)),h.push(ft));return 1}var qt,ot,nn=0,vn=O===""?Kt:O+Dn;if(Xt(s))for(var xi=0;xi<s.length;xi++)qt=s[xi],ot=vn+ha(qt,xi),nn+=Yn(qt,h,M,ot,K);else{var pl=Ge(s);if(typeof pl=="function"){var Sr=s;pl===Sr.entries&&(Ft||$("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ft=!0);for(var ml=pl.call(Sr),hl,sf=0;!(hl=ml.next()).done;)qt=hl.value,ot=vn+ha(qt,sf++),nn+=Yn(qt,h,M,ot,K)}else if(ke==="object"){var Ku=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ku==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ku)+"). If you meant to render a collection of children, use an array instead.")}}return nn}function nr(s,h,M){if(s==null)return s;var O=[],K=0;return Yn(s,O,"","",function(ke){return h.call(M,ke,K++)}),O}function Vr(s){var h=0;return nr(s,function(){h++}),h}function Pr(s,h,M){nr(s,function(){h.apply(this,arguments)},M)}function hr(s){return nr(s,function(h){return h})||[]}function za(s){if(!Qt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Fa(s){var h={$$typeof:ne,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};h.Provider={$$typeof:Se,_context:h};var M=!1,O=!1,K=!1;{var ke={$$typeof:ne,_context:h};Object.defineProperties(ke,{Provider:{get:function(){return O||(O=!0,I("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),h.Provider},set:function(ge){h.Provider=ge}},_currentValue:{get:function(){return h._currentValue},set:function(ge){h._currentValue=ge}},_currentValue2:{get:function(){return h._currentValue2},set:function(ge){h._currentValue2=ge}},_threadCount:{get:function(){return h._threadCount},set:function(ge){h._threadCount=ge}},Consumer:{get:function(){return M||(M=!0,I("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),h.Consumer}},displayName:{get:function(){return h.displayName},set:function(ge){K||($("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ge),K=!0)}}}),h.Consumer=ke}return h._currentRenderer=null,h._currentRenderer2=null,h}var ya=-1,Kn=0,g=1,V=2;function k(s){if(s._status===ya){var h=s._result,M=h();if(M.then(function(ke){if(s._status===Kn||s._status===ya){var ge=s;ge._status=g,ge._result=ke}},function(ke){if(s._status===Kn||s._status===ya){var ge=s;ge._status=V,ge._result=ke}}),s._status===ya){var O=s;O._status=Kn,O._result=M}}if(s._status===g){var K=s._result;return K===void 0&&I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,K),"default"in K||I(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,K),K.default}else throw s._result}function S(s){var h={_status:ya,_result:s},M={$$typeof:Ue,_payload:h,_init:k};{var O,K;Object.defineProperties(M,{defaultProps:{configurable:!0,get:function(){return O},set:function(ke){I("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),O=ke,Object.defineProperty(M,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return K},set:function(ke){I("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),K=ke,Object.defineProperty(M,"propTypes",{enumerable:!0})}}})}return M}function x(s){s!=null&&s.$$typeof===ae?I("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?I("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&I("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&I("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var h={$$typeof:nt,render:s};{var M;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return M},set:function(O){M=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return h}var c;c=Symbol.for("react.module.reference");function p(s){return!!(typeof s=="string"||typeof s=="function"||s===Oe||s===Z||Ot||s===d||s===G||s===N||X||s===Vt||He||J||Ze||typeof s=="object"&&s!==null&&(s.$$typeof===Ue||s.$$typeof===ae||s.$$typeof===Se||s.$$typeof===ne||s.$$typeof===nt||s.$$typeof===c||s.getModuleId!==void 0))}function T(s,h){p(s)||I("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var M={$$typeof:ae,type:s,compare:h===void 0?null:h};{var O;Object.defineProperty(M,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(K){O=K,!s.name&&!s.displayName&&(s.displayName=K)}})}return M}function R(){var s=Ce.current;return s===null&&I(`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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function P(s){var h=R();if(s._context!==void 0){var M=s._context;M.Consumer===s?I("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):M.Provider===s&&I("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return h.useContext(s)}function re(s){var h=R();return h.useState(s)}function z(s,h,M){var O=R();return O.useReducer(s,h,M)}function ce(s){var h=R();return h.useRef(s)}function ut(s,h){var M=R();return M.useEffect(s,h)}function Le(s,h){var M=R();return M.useInsertionEffect(s,h)}function it(s,h){var M=R();return M.useLayoutEffect(s,h)}function fn(s,h){var M=R();return M.useCallback(s,h)}function _n(s,h){var M=R();return M.useMemo(s,h)}function en(s,h,M){var O=R();return O.useImperativeHandle(s,h,M)}function zt(s,h){{var M=R();return M.useDebugValue(s,h)}}function De(){var s=R();return s.useTransition()}function Dt(s){var h=R();return h.useDeferredValue(s)}function Zn(){var s=R();return s.useId()}function yr(s,h,M){var O=R();return O.useSyncExternalStore(s,h,M)}var Va=0,Br,ga,ba,$r,gi,dn,_t;function Sa(){}Sa.__reactDisabledLog=!0;function Ta(){{if(Va===0){Br=console.log,ga=console.info,ba=console.warn,$r=console.error,gi=console.group,dn=console.groupCollapsed,_t=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Sa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Va++}}function sa(){{if(Va--,Va===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},s,{value:Br}),info:Ke({},s,{value:ga}),warn:Ke({},s,{value:ba}),error:Ke({},s,{value:$r}),group:Ke({},s,{value:gi}),groupCollapsed:Ke({},s,{value:dn}),groupEnd:Ke({},s,{value:_t})})}Va<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var bi=Xe.ReactCurrentDispatcher,Yr;function ao(s,h,M){{if(Yr===void 0)try{throw Error()}catch(K){var O=K.stack.trim().match(/\n( *(at )?)/);Yr=O&&O[1]||""}return`
`+Yr+s}}var Si=!1,ro;{var ol=typeof WeakMap=="function"?WeakMap:Map;ro=new ol}function Yu(s,h){if(!s||Si)return"";{var M=ro.get(s);if(M!==void 0)return M}var O;Si=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ke;ke=bi.current,bi.current=null,Ta();try{if(h){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(vn){O=vn}Reflect.construct(s,[],ge)}else{try{ge.call()}catch(vn){O=vn}s.call(ge.prototype)}}else{try{throw Error()}catch(vn){O=vn}s()}}catch(vn){if(vn&&O&&typeof vn.stack=="string"){for(var We=vn.stack.split(`
`),ft=O.stack.split(`
`),jt=We.length-1,Wt=ft.length-1;jt>=1&&Wt>=0&&We[jt]!==ft[Wt];)Wt--;for(;jt>=1&&Wt>=0;jt--,Wt--)if(We[jt]!==ft[Wt]){if(jt!==1||Wt!==1)do if(jt--,Wt--,Wt<0||We[jt]!==ft[Wt]){var qt=`
`+We[jt].replace(" at new "," at ");return s.displayName&&qt.includes("<anonymous>")&&(qt=qt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ro.set(s,qt),qt}while(jt>=1&&Wt>=0);break}}}finally{Si=!1,bi.current=ke,sa(),Error.prepareStackTrace=K}var ot=s?s.displayName||s.name:"",nn=ot?ao(ot):"";return typeof s=="function"&&ro.set(s,nn),nn}function ll(s,h,M){return Yu(s,!1)}function af(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ti(s,h,M){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return ao(s);switch(s){case G:return ao("Suspense");case N:return ao("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case nt:return ll(s.render);case ae:return Ti(s.type,h,M);case Ue:{var O=s,K=O._payload,ke=O._init;try{return Ti(ke(K),h,M)}catch{}}}return""}var Iu={},ul=Xe.ReactDebugCurrentFrame;function Et(s){if(s){var h=s._owner,M=Ti(s.type,s._source,h?h.type:null);ul.setExtraStackFrame(M)}else ul.setExtraStackFrame(null)}function rf(s,h,M,O,K){{var ke=Function.call.bind(le);for(var ge in s)if(ke(s,ge)){var We=void 0;try{if(typeof s[ge]!="function"){var ft=Error((O||"React class")+": "+M+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}We=s[ge](h,ge,O,M,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jt){We=jt}We&&!(We instanceof Error)&&(Et(K),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",M,ge,typeof We),Et(null)),We instanceof Error&&!(We.message in Iu)&&(Iu[We.message]=!0,Et(K),I("Failed %s type: %s",M,We.message),Et(null))}}}function gr(s){if(s){var h=s._owner,M=Ti(s.type,s._source,h?h.type:null);tt(M)}else tt(null)}var Qe;Qe=!1;function sl(){if(et.current){var s=me(et.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function Jn(s){if(s!==void 0){var h=s.fileName.replace(/^.*[\\\/]/,""),M=s.lineNumber;return`
Check your code at `+h+":"+M+"."}return""}function Ei(s){return s!=null?Jn(s.__source):""}var Ir={};function of(s){var h=sl();if(!h){var M=typeof s=="string"?s:s.displayName||s.name;M&&(h=`
Check the top-level render call using <`+M+">.")}return h}function Mn(s,h){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var M=of(h);if(!Ir[M]){Ir[M]=!0;var O="";s&&s._owner&&s._owner!==et.current&&(O=" It was passed a child from "+me(s._owner.type)+"."),gr(s),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',M,O),gr(null)}}}function tn(s,h){if(typeof s=="object"){if(Xt(s))for(var M=0;M<s.length;M++){var O=s[M];Qt(O)&&Mn(O,h)}else if(Qt(s))s._store&&(s._store.validated=!0);else if(s){var K=Ge(s);if(typeof K=="function"&&K!==s.entries)for(var ke=K.call(s),ge;!(ge=ke.next()).done;)Qt(ge.value)&&Mn(ge.value,h)}}}function Wu(s){{var h=s.type;if(h==null||typeof h=="string")return;var M;if(typeof h=="function")M=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===nt||h.$$typeof===ae))M=h.propTypes;else return;if(M){var O=me(h);rf(M,s.props,"prop",O,s)}else if(h.PropTypes!==void 0&&!Qe){Qe=!0;var K=me(h);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ma(s){{for(var h=Object.keys(s.props),M=0;M<h.length;M++){var O=h[M];if(O!=="children"&&O!=="key"){gr(s),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),gr(null);break}}s.ref!==null&&(gr(s),I("Invalid attribute `ref` supplied to `React.Fragment`."),gr(null))}}function ea(s,h,M){var O=p(s);if(!O){var K="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(K+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ke=Ei(h);ke?K+=ke:K+=sl();var ge;s===null?ge="null":Xt(s)?ge="array":s!==void 0&&s.$$typeof===be?(ge="<"+(me(s.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof s,I("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,K)}var We=Pe.apply(this,arguments);if(We==null)return We;if(O)for(var ft=2;ft<arguments.length;ft++)tn(arguments[ft],s);return s===Oe?Ma(We):Wu(We),We}var Pa=!1;function lf(s){var h=ea.bind(null,s);return h.type=s,Pa||(Pa=!0,$("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return $("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),h}function cl(s,h,M){for(var O=Pt.apply(this,arguments),K=2;K<arguments.length;K++)tn(arguments[K],O.type);return Wu(O),O}function qu(s,h){var M=mt.transition;mt.transition={};var O=mt.transition;mt.transition._updatedFibers=new Set;try{s()}finally{if(mt.transition=M,M===null&&O._updatedFibers){var K=O._updatedFibers.size;K>10&&$("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var fl=!1,io=null;function uf(s){if(io===null)try{var h=("require"+Math.random()).slice(0,7),M=w&&w[h];io=M.call(w,"timers").setImmediate}catch{io=function(K){fl===!1&&(fl=!0,typeof MessageChannel>"u"&&I("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 ke=new MessageChannel;ke.port1.onmessage=K,ke.port2.postMessage(void 0)}}return io(s)}var Wr=0,Ci=!1;function dl(s){{var h=Wr;Wr++,xe.current===null&&(xe.current=[]);var M=xe.isBatchingLegacy,O;try{if(xe.isBatchingLegacy=!0,O=s(),!M&&xe.didScheduleLegacyUpdate){var K=xe.current;K!==null&&(xe.didScheduleLegacyUpdate=!1,uo(K))}}catch(ot){throw br(h),ot}finally{xe.isBatchingLegacy=M}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var ke=O,ge=!1,We={then:function(ot,nn){ge=!0,ke.then(function(vn){br(h),Wr===0?oo(vn,ot,nn):ot(vn)},function(vn){br(h),nn(vn)})}};return!Ci&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ge||(Ci=!0,I("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),We}else{var ft=O;if(br(h),Wr===0){var jt=xe.current;jt!==null&&(uo(jt),xe.current=null);var Wt={then:function(ot,nn){xe.current===null?(xe.current=[],oo(ft,ot,nn)):ot(ft)}};return Wt}else{var qt={then:function(ot,nn){ot(ft)}};return qt}}}}function br(s){s!==Wr-1&&I("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Wr=s}function oo(s,h,M){{var O=xe.current;if(O!==null)try{uo(O),uf(function(){O.length===0?(xe.current=null,h(s)):oo(s,h,M)})}catch(K){M(K)}else h(s)}}var lo=!1;function uo(s){if(!lo){lo=!0;var h=0;try{for(;h<s.length;h++){var M=s[h];do M=M(!0);while(M!==null)}s.length=0}catch(O){throw s=s.slice(h+1),O}finally{lo=!1}}}var Gu=ea,Xu=cl,vl=lf,Qu={map:nr,forEach:Pr,count:Vr,toArray:hr,only:za};_.Children=Qu,_.Component=Ae,_.Fragment=Oe,_.Profiler=Z,_.PureComponent=rt,_.StrictMode=d,_.Suspense=G,_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xe,_.act=dl,_.cloneElement=Xu,_.createContext=Fa,_.createElement=Gu,_.createFactory=vl,_.createRef=Jt,_.forwardRef=x,_.isValidElement=Qt,_.lazy=S,_.memo=T,_.startTransition=qu,_.unstable_act=dl,_.useCallback=fn,_.useContext=P,_.useDebugValue=zt,_.useDeferredValue=Dt,_.useEffect=ut,_.useId=Zn,_.useImperativeHandle=en,_.useInsertionEffect=Le,_.useLayoutEffect=it,_.useMemo=_n,_.useReducer=z,_.useRef=ce,_.useState=re,_.useSyncExternalStore=yr,_.useTransition=De,_.version=ve,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(rl,rl.exports)),rl.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=zS()),Kc.exports}var il={},mm;function FS(){if(mm)return il;mm=1;/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){var w=Zc(),_=Symbol.for("react.element"),ve=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),Oe=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),Z=Symbol.for("react.context"),Se=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),Ue=Symbol.iterator,Vt="@@iterator";function xt(c){if(c===null||typeof c!="object")return null;var p=Ue&&c[Ue]||c[Vt];return typeof p=="function"?p:null}var Rt=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Ge(c){{for(var p=arguments.length,T=new Array(p>1?p-1:0),R=1;R<p;R++)T[R-1]=arguments[R];Ce("error",c,T)}}function Ce(c,p,T){{var R=Rt.ReactDebugCurrentFrame,P=R.getStackAddendum();P!==""&&(p+="%s",T=T.concat([P]));var re=T.map(function(z){return String(z)});re.unshift("Warning: "+p),Function.prototype.apply.call(console[c],console,re)}}var mt=!1,xe=!1,et=!1,B=!1,kt=!1,tt;tt=Symbol.for("react.module.reference");function He(c){return!!(typeof c=="string"||typeof c=="function"||c===be||c===Oe||kt||c===pe||c===ne||c===nt||B||c===ae||mt||xe||et||typeof c=="object"&&c!==null&&(c.$$typeof===N||c.$$typeof===G||c.$$typeof===d||c.$$typeof===Z||c.$$typeof===Se||c.$$typeof===tt||c.getModuleId!==void 0))}function J(c,p,T){var R=c.displayName;if(R)return R;var P=p.displayName||p.name||"";return P!==""?T+"("+P+")":T}function Ze(c){return c.displayName||"Context"}function X(c){if(c==null)return null;if(typeof c.tag=="number"&&Ge("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case be:return"Fragment";case ve:return"Portal";case Oe:return"Profiler";case pe:return"StrictMode";case ne:return"Suspense";case nt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Z:var p=c;return Ze(p)+".Consumer";case d:var T=c;return Ze(T._context)+".Provider";case Se:return J(c,c.render,"ForwardRef");case G:var R=c.displayName||null;return R!==null?R:X(c.type)||"Memo";case N:{var P=c,re=P._payload,z=P._init;try{return X(z(re))}catch{return null}}}return null}var Ot=Object.assign,Xe=0,$,I,ze,Fe,at,ht,Ke;function Ve(){}Ve.__reactDisabledLog=!0;function Ae(){{if(Xe===0){$=console.log,I=console.info,ze=console.warn,Fe=console.error,at=console.group,ht=console.groupCollapsed,Ke=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}Xe++}}function st(){{if(Xe--,Xe===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ot({},c,{value:$}),info:Ot({},c,{value:I}),warn:Ot({},c,{value:ze}),error:Ot({},c,{value:Fe}),group:Ot({},c,{value:at}),groupCollapsed:Ot({},c,{value:ht}),groupEnd:Ot({},c,{value:Ke})})}Xe<0&&Ge("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var $t=Rt.ReactCurrentDispatcher,Ye;function At(c,p,T){{if(Ye===void 0)try{throw Error()}catch(P){var R=P.stack.trim().match(/\n( *(at )?)/);Ye=R&&R[1]||""}return`
`+Ye+c}}var rt=!1,Ie;{var Jt=typeof WeakMap=="function"?WeakMap:Map;Ie=new Jt}function xn(c,p){if(!c||rt)return"";{var T=Ie.get(c);if(T!==void 0)return T}var R;rt=!0;var P=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=$t.current,$t.current=null,Ae();try{if(p){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(zt){R=zt}Reflect.construct(c,[],z)}else{try{z.call()}catch(zt){R=zt}c.call(z.prototype)}}else{try{throw Error()}catch(zt){R=zt}c()}}catch(zt){if(zt&&R&&typeof zt.stack=="string"){for(var ce=zt.stack.split(`
`),ut=R.stack.split(`
`),Le=ce.length-1,it=ut.length-1;Le>=1&&it>=0&&ce[Le]!==ut[it];)it--;for(;Le>=1&&it>=0;Le--,it--)if(ce[Le]!==ut[it]){if(Le!==1||it!==1)do if(Le--,it--,it<0||ce[Le]!==ut[it]){var fn=`
`+ce[Le].replace(" at new "," at ");return c.displayName&&fn.includes("<anonymous>")&&(fn=fn.replace("<anonymous>",c.displayName)),typeof c=="function"&&Ie.set(c,fn),fn}while(Le>=1&&it>=0);break}}}finally{rt=!1,$t.current=re,st(),Error.prepareStackTrace=P}var _n=c?c.displayName||c.name:"",en=_n?At(_n):"";return typeof c=="function"&&Ie.set(c,en),en}function Xt(c,p,T){return xn(c,!1)}function cn(c){var p=c.prototype;return!!(p&&p.isReactComponent)}function Yt(c,p,T){if(c==null)return"";if(typeof c=="function")return xn(c,cn(c));if(typeof c=="string")return At(c);switch(c){case ne:return At("Suspense");case nt:return At("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case Se:return Xt(c.render);case G:return Yt(c.type,p,T);case N:{var R=c,P=R._payload,re=R._init;try{return Yt(re(P),p,T)}catch{}}}return""}var an=Object.prototype.hasOwnProperty,Rn={},U=Rt.ReactDebugCurrentFrame;function W(c){if(c){var p=c._owner,T=Yt(c.type,c._source,p?p.type:null);U.setExtraStackFrame(T)}else U.setExtraStackFrame(null)}function me(c,p,T,R,P){{var re=Function.call.bind(an);for(var z in c)if(re(c,z)){var ce=void 0;try{if(typeof c[z]!="function"){var ut=Error((R||"React class")+": "+T+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ut.name="Invariant Violation",ut}ce=c[z](p,z,R,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){ce=Le}ce&&!(ce instanceof Error)&&(W(P),Ge("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",R||"React class",T,z,typeof ce),W(null)),ce instanceof Error&&!(ce.message in Rn)&&(Rn[ce.message]=!0,W(P),Ge("Failed %s type: %s",T,ce.message),W(null))}}}var le=Array.isArray;function Ee(c){return le(c)}function we(c){{var p=typeof Symbol=="function"&&Symbol.toStringTag,T=p&&c[Symbol.toStringTag]||c.constructor.name||"Object";return T}}function yt(c){try{return _e(c),!1}catch{return!0}}function _e(c){return""+c}function ct(c){if(yt(c))return Ge("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",we(c)),_e(c)}var wt=Rt.ReactCurrentOwner,un={key:!0,ref:!0,__self:!0,__source:!0},wn,Q;function ye(c){if(an.call(c,"ref")){var p=Object.getOwnPropertyDescriptor(c,"ref").get;if(p&&p.isReactWarning)return!1}return c.ref!==void 0}function Pe(c){if(an.call(c,"key")){var p=Object.getOwnPropertyDescriptor(c,"key").get;if(p&&p.isReactWarning)return!1}return c.key!==void 0}function gt(c,p){typeof c.ref=="string"&&wt.current}function Pt(c,p){{var T=function(){wn||(wn=!0,Ge("%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://reactjs.org/link/special-props)",p))};T.isReactWarning=!0,Object.defineProperty(c,"key",{get:T,configurable:!0})}}function Qt(c,p){{var T=function(){Q||(Q=!0,Ge("%s: `ref` 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://reactjs.org/link/special-props)",p))};T.isReactWarning=!0,Object.defineProperty(c,"ref",{get:T,configurable:!0})}}var Kt=function(c,p,T,R,P,re,z){var ce={$$typeof:_,type:c,key:p,ref:T,props:z,_owner:re};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function Dn(c,p,T,R,P){{var re,z={},ce=null,ut=null;T!==void 0&&(ct(T),ce=""+T),Pe(p)&&(ct(p.key),ce=""+p.key),ye(p)&&(ut=p.ref,gt(p,P));for(re in p)an.call(p,re)&&!un.hasOwnProperty(re)&&(z[re]=p[re]);if(c&&c.defaultProps){var Le=c.defaultProps;for(re in Le)z[re]===void 0&&(z[re]=Le[re])}if(ce||ut){var it=typeof c=="function"?c.displayName||c.name||"Unknown":c;ce&&Pt(z,it),ut&&Qt(z,it)}return Kt(c,ce,ut,P,R,wt.current,z)}}var It=Rt.ReactCurrentOwner,Ft=Rt.ReactDebugCurrentFrame;function bt(c){if(c){var p=c._owner,T=Yt(c.type,c._source,p?p.type:null);Ft.setExtraStackFrame(T)}else Ft.setExtraStackFrame(null)}var ua;ua=!1;function ha(c){return typeof c=="object"&&c!==null&&c.$$typeof===_}function Yn(){{if(It.current){var c=X(It.current.type);if(c)return`
Check the render method of \``+c+"`."}return""}}function nr(c){return""}var Vr={};function Pr(c){{var p=Yn();if(!p){var T=typeof c=="string"?c:c.displayName||c.name;T&&(p=`
Check the top-level render call using <`+T+">.")}return p}}function hr(c,p){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var T=Pr(p);if(Vr[T])return;Vr[T]=!0;var R="";c&&c._owner&&c._owner!==It.current&&(R=" It was passed a child from "+X(c._owner.type)+"."),bt(c),Ge('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,R),bt(null)}}function za(c,p){{if(typeof c!="object")return;if(Ee(c))for(var T=0;T<c.length;T++){var R=c[T];ha(R)&&hr(R,p)}else if(ha(c))c._store&&(c._store.validated=!0);else if(c){var P=xt(c);if(typeof P=="function"&&P!==c.entries)for(var re=P.call(c),z;!(z=re.next()).done;)ha(z.value)&&hr(z.value,p)}}}function Fa(c){{var p=c.type;if(p==null||typeof p=="string")return;var T;if(typeof p=="function")T=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===Se||p.$$typeof===G))T=p.propTypes;else return;if(T){var R=X(p);me(T,c.props,"prop",R,c)}else if(p.PropTypes!==void 0&&!ua){ua=!0;var P=X(p);Ge("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",P||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&Ge("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ya(c){{for(var p=Object.keys(c.props),T=0;T<p.length;T++){var R=p[T];if(R!=="children"&&R!=="key"){bt(c),Ge("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),bt(null);break}}c.ref!==null&&(bt(c),Ge("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}var Kn={};function g(c,p,T,R,P,re){{var z=He(c);if(!z){var ce="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ut=nr();ut?ce+=ut:ce+=Yn();var Le;c===null?Le="null":Ee(c)?Le="array":c!==void 0&&c.$$typeof===_?(Le="<"+(X(c.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):Le=typeof c,Ge("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Le,ce)}var it=Dn(c,p,T,P,re);if(it==null)return it;if(z){var fn=p.children;if(fn!==void 0)if(R)if(Ee(fn)){for(var _n=0;_n<fn.length;_n++)za(fn[_n],c);Object.freeze&&Object.freeze(fn)}else Ge("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else za(fn,c)}if(an.call(p,"key")){var en=X(c),zt=Object.keys(p).filter(function(Zn){return Zn!=="key"}),De=zt.length>0?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[en+De]){var Dt=zt.length>0?"{"+zt.join(": ..., ")+": ...}":"{}";Ge(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,De,en,Dt,en),Kn[en+De]=!0}}return c===be?ya(it):Fa(it),it}}function V(c,p,T){return g(c,p,T,!0)}function k(c,p,T){return g(c,p,T,!1)}var S=k,x=V;il.Fragment=be,il.jsx=S,il.jsxs=x}(),il}dm.exports=FS();var m=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function VS(){return ym||(ym=1,function(w){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var _=!1,ve=5;function be(Q,ye){var Pe=Q.length;Q.push(ye),d(Q,ye,Pe)}function pe(Q){return Q.length===0?null:Q[0]}function Oe(Q){if(Q.length===0)return null;var ye=Q[0],Pe=Q.pop();return Pe!==ye&&(Q[0]=Pe,Z(Q,Pe,0)),ye}function d(Q,ye,Pe){for(var gt=Pe;gt>0;){var Pt=gt-1>>>1,Qt=Q[Pt];if(Se(Qt,ye)>0)Q[Pt]=ye,Q[gt]=Qt,gt=Pt;else return}}function Z(Q,ye,Pe){for(var gt=Pe,Pt=Q.length,Qt=Pt>>>1;gt<Qt;){var Kt=(gt+1)*2-1,Dn=Q[Kt],It=Kt+1,Ft=Q[It];if(Se(Dn,ye)<0)It<Pt&&Se(Ft,Dn)<0?(Q[gt]=Ft,Q[It]=ye,gt=It):(Q[gt]=Dn,Q[Kt]=ye,gt=Kt);else if(It<Pt&&Se(Ft,ye)<0)Q[gt]=Ft,Q[It]=ye,gt=It;else return}}function Se(Q,ye){var Pe=Q.sortIndex-ye.sortIndex;return Pe!==0?Pe:Q.id-ye.id}var ne=1,nt=2,G=3,N=4,ae=5;function Ue(Q,ye){}var Vt=typeof performance=="object"&&typeof performance.now=="function";if(Vt){var xt=performance;w.unstable_now=function(){return xt.now()}}else{var Rt=Date,Ge=Rt.now();w.unstable_now=function(){return Rt.now()-Ge}}var Ce=1073741823,mt=-1,xe=250,et=5e3,B=1e4,kt=Ce,tt=[],He=[],J=1,Ze=null,X=G,Ot=!1,Xe=!1,$=!1,I=typeof setTimeout=="function"?setTimeout:null,ze=typeof clearTimeout=="function"?clearTimeout:null,Fe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function at(Q){for(var ye=pe(He);ye!==null;){if(ye.callback===null)Oe(He);else if(ye.startTime<=Q)Oe(He),ye.sortIndex=ye.expirationTime,be(tt,ye);else return;ye=pe(He)}}function ht(Q){if($=!1,at(Q),!Xe)if(pe(tt)!==null)Xe=!0,_e(Ke);else{var ye=pe(He);ye!==null&&ct(ht,ye.startTime-Q)}}function Ke(Q,ye){Xe=!1,$&&($=!1,wt()),Ot=!0;var Pe=X;try{var gt;if(!_)return Ve(Q,ye)}finally{Ze=null,X=Pe,Ot=!1}}function Ve(Q,ye){var Pe=ye;for(at(Pe),Ze=pe(tt);Ze!==null&&!(Ze.expirationTime>Pe&&(!Q||U()));){var gt=Ze.callback;if(typeof gt=="function"){Ze.callback=null,X=Ze.priorityLevel;var Pt=Ze.expirationTime<=Pe,Qt=gt(Pt);Pe=w.unstable_now(),typeof Qt=="function"?Ze.callback=Qt:Ze===pe(tt)&&Oe(tt),at(Pe)}else Oe(tt);Ze=pe(tt)}if(Ze!==null)return!0;var Kt=pe(He);return Kt!==null&&ct(ht,Kt.startTime-Pe),!1}function Ae(Q,ye){switch(Q){case ne:case nt:case G:case N:case ae:break;default:Q=G}var Pe=X;X=Q;try{return ye()}finally{X=Pe}}function st(Q){var ye;switch(X){case ne:case nt:case G:ye=G;break;default:ye=X;break}var Pe=X;X=ye;try{return Q()}finally{X=Pe}}function $t(Q){var ye=X;return function(){var Pe=X;X=ye;try{return Q.apply(this,arguments)}finally{X=Pe}}}function Ye(Q,ye,Pe){var gt=w.unstable_now(),Pt;if(typeof Pe=="object"&&Pe!==null){var Qt=Pe.delay;typeof Qt=="number"&&Qt>0?Pt=gt+Qt:Pt=gt}else Pt=gt;var Kt;switch(Q){case ne:Kt=mt;break;case nt:Kt=xe;break;case ae:Kt=kt;break;case N:Kt=B;break;case G:default:Kt=et;break}var Dn=Pt+Kt,It={id:J++,callback:ye,priorityLevel:Q,startTime:Pt,expirationTime:Dn,sortIndex:-1};return Pt>gt?(It.sortIndex=Pt,be(He,It),pe(tt)===null&&It===pe(He)&&($?wt():$=!0,ct(ht,Pt-gt))):(It.sortIndex=Dn,be(tt,It),!Xe&&!Ot&&(Xe=!0,_e(Ke))),It}function At(){}function rt(){!Xe&&!Ot&&(Xe=!0,_e(Ke))}function Ie(){return pe(tt)}function Jt(Q){Q.callback=null}function xn(){return X}var Xt=!1,cn=null,Yt=-1,an=ve,Rn=-1;function U(){var Q=w.unstable_now()-Rn;return!(Q<an)}function W(){}function me(Q){if(Q<0||Q>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Q>0?an=Math.floor(1e3/Q):an=ve}var le=function(){if(cn!==null){var Q=w.unstable_now();Rn=Q;var ye=!0,Pe=!0;try{Pe=cn(ye,Q)}finally{Pe?Ee():(Xt=!1,cn=null)}}else Xt=!1},Ee;if(typeof Fe=="function")Ee=function(){Fe(le)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,yt=we.port2;we.port1.onmessage=le,Ee=function(){yt.postMessage(null)}}else Ee=function(){I(le,0)};function _e(Q){cn=Q,Xt||(Xt=!0,Ee())}function ct(Q,ye){Yt=I(function(){Q(w.unstable_now())},ye)}function wt(){ze(Yt),Yt=-1}var un=W,wn=null;w.unstable_IdlePriority=ae,w.unstable_ImmediatePriority=ne,w.unstable_LowPriority=N,w.unstable_NormalPriority=G,w.unstable_Profiling=wn,w.unstable_UserBlockingPriority=nt,w.unstable_cancelCallback=Jt,w.unstable_continueExecution=rt,w.unstable_forceFrameRate=me,w.unstable_getCurrentPriorityLevel=xn,w.unstable_getFirstCallbackNode=Ie,w.unstable_next=st,w.unstable_pauseExecution=At,w.unstable_requestPaint=un,w.unstable_runWithPriority=Ae,w.unstable_scheduleCallback=Ye,w.unstable_shouldYield=U,w.unstable_wrapCallback=$t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ef)),ef}var gm;function PS(){return gm||(gm=1,Jc.exports=VS()),Jc.exports}var la={},bm;function BS(){if(bm)return la;bm=1;/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var w=Zc(),_=PS(),ve=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,be=!1;function pe(e){be=e}function Oe(e){if(!be){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("warn",e,n)}}function d(e){if(!be){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Z("error",e,n)}}function Z(e,t,n){{var a=ve.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var Se=0,ne=1,nt=2,G=3,N=4,ae=5,Ue=6,Vt=7,xt=8,Rt=9,Ge=10,Ce=11,mt=12,xe=13,et=14,B=15,kt=16,tt=17,He=18,J=19,Ze=21,X=22,Ot=23,Xe=24,$=25,I=!0,ze=!1,Fe=!1,at=!1,ht=!1,Ke=!0,Ve=!0,Ae=!0,st=!0,$t=new Set,Ye={},At={};function rt(e,t){Ie(e,t),Ie(e+"Capture",t)}function Ie(e,t){Ye[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ye[e]=t;{var n=e.toLowerCase();At[n]=e,e==="onDoubleClick"&&(At.ondblclick=e)}for(var a=0;a<t.length;a++)$t.add(t[a])}var Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xn=Object.prototype.hasOwnProperty;function Xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function cn(e){try{return Yt(e),!1}catch{return!0}}function Yt(e){return""+e}function an(e,t){if(cn(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function Rn(e){if(cn(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xt(e)),Yt(e)}function U(e,t){if(cn(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function W(e,t){if(cn(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,Xt(e)),Yt(e)}function me(e){if(cn(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",Xt(e)),Yt(e)}function le(e){if(cn(e))return d("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",Xt(e)),Yt(e)}var Ee=0,we=1,yt=2,_e=3,ct=4,wt=5,un=6,wn=":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",Q=wn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("^["+wn+"]["+Q+"]*$"),Pe={},gt={};function Pt(e){return xn.call(gt,e)?!0:xn.call(Pe,e)?!1:ye.test(e)?(gt[e]=!0,!0):(Pe[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function Qt(e,t,n){return t!==null?t.type===Ee:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Kt(e,t,n,a){if(n!==null&&n.type===Ee)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function Dn(e,t,n,a){if(t===null||typeof t>"u"||Kt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case _e:return!t;case ct:return t===!1;case wt:return isNaN(t);case un:return isNaN(t)||t<1}return!1}function It(e){return bt.hasOwnProperty(e)?bt[e]:null}function Ft(e,t,n,a,r,i,o){this.acceptsBooleans=t===yt||t===_e||t===ct,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var bt={},ua=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ua.forEach(function(e){bt[e]=new Ft(e,Ee,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];bt[t]=new Ft(t,we,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){bt[e]=new Ft(e,yt,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bt[e]=new Ft(e,yt,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){bt[e]=new Ft(e,_e,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){bt[e]=new Ft(e,_e,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){bt[e]=new Ft(e,ct,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){bt[e]=new Ft(e,un,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){bt[e]=new Ft(e,wt,!1,e.toLowerCase(),null,!1,!1)});var ha=/[\-\:]([a-z])/g,Yn=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(ha,Yn);bt[t]=new Ft(t,we,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ha,Yn);bt[t]=new Ft(t,we,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ha,Yn);bt[t]=new Ft(t,we,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){bt[e]=new Ft(e,we,!1,e.toLowerCase(),null,!1,!1)});var nr="xlinkHref";bt[nr]=new Ft("xlinkHref",we,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){bt[e]=new Ft(e,we,!1,e.toLowerCase(),null,!0,!0)});var Vr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Pr=!1;function hr(e){!Pr&&Vr.test(e)&&(Pr=!0,d("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function za(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{an(n,t),a.sanitizeURL&&hr(""+n);var i=a.attributeName,o=null;if(a.type===ct){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Dn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Dn(t,n,a,!1))return e.getAttribute(i);if(a.type===_e)return n;o=e.getAttribute(i)}return Dn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Fa(e,t,n,a){{if(!Pt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return an(n,t),r===""+n?n:r}}function ya(e,t,n,a){var r=It(t);if(!Qt(t,r,a)){if(Dn(t,n,r,a)&&(n=null),a||r===null){if(Pt(t)){var i=t;n===null?e.removeAttribute(i):(an(n,t),e.setAttribute(i,""+n))}return}var o=r.mustUseProperty;if(o){var l=r.propertyName;if(n===null){var u=r.type;e[l]=u===_e?!1:""}else e[l]=n;return}var f=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var b=r.type,y;b===_e||b===ct&&n===!0?y="":(an(n,f),y=""+n,r.sanitizeURL&&hr(y.toString())),v?e.setAttributeNS(v,f,y):e.setAttribute(f,y)}}}var Kn=Symbol.for("react.element"),g=Symbol.for("react.portal"),V=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),z=Symbol.for("react.scope"),ce=Symbol.for("react.debug_trace_mode"),ut=Symbol.for("react.offscreen"),Le=Symbol.for("react.legacy_hidden"),it=Symbol.for("react.cache"),fn=Symbol.for("react.tracing_marker"),_n=Symbol.iterator,en="@@iterator";function zt(e){if(e===null||typeof e!="object")return null;var t=_n&&e[_n]||e[en];return typeof t=="function"?t:null}var De=Object.assign,Dt=0,Zn,yr,Va,Br,ga,ba,$r;function gi(){}gi.__reactDisabledLog=!0;function dn(){{if(Dt===0){Zn=console.log,yr=console.info,Va=console.warn,Br=console.error,ga=console.group,ba=console.groupCollapsed,$r=console.groupEnd;var e={configurable:!0,enumerable:!0,value:gi,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Dt++}}function _t(){{if(Dt--,Dt===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:De({},e,{value:Zn}),info:De({},e,{value:yr}),warn:De({},e,{value:Va}),error:De({},e,{value:Br}),group:De({},e,{value:ga}),groupCollapsed:De({},e,{value:ba}),groupEnd:De({},e,{value:$r})})}Dt<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Sa=ve.ReactCurrentDispatcher,Ta;function sa(e,t,n){{if(Ta===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);Ta=a&&a[1]||""}return`
`+Ta+e}}var bi=!1,Yr;{var ao=typeof WeakMap=="function"?WeakMap:Map;Yr=new ao}function Si(e,t){if(!e||bi)return"";{var n=Yr.get(e);if(n!==void 0)return n}var a;bi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Sa.current,Sa.current=null,dn();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(L){a=L}Reflect.construct(e,[],o)}else{try{o.call()}catch(L){a=L}e.call(o.prototype)}}else{try{throw Error()}catch(L){a=L}e()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var l=L.stack.split(`
`),u=a.stack.split(`
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var b=`
`+l[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Yr.set(e,b),b}while(f>=1&&v>=0);break}}}finally{bi=!1,Sa.current=i,_t(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",D=y?sa(y):"";return typeof e=="function"&&Yr.set(e,D),D}function ro(e,t,n){return Si(e,!0)}function ol(e,t,n){return Si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ll(e,t,n){if(e==null)return"";if(typeof e=="function")return Si(e,Yu(e));if(typeof e=="string")return sa(e);switch(e){case T:return sa("Suspense");case R:return sa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ol(e.render);case P:return ll(e.type,t,n);case re:{var a=e,r=a._payload,i=a._init;try{return ll(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ae:return sa(e.type);case kt:return sa("Lazy");case xe:return sa("Suspense");case J:return sa("SuspenseList");case Se:case nt:case B:return ol(e.type);case Ce:return ol(e.type.render);case ne:return ro(e.type);default:return""}}function Ti(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Iu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ul(e){return e.displayName||"Context"}function Et(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case V:return"Fragment";case g:return"Portal";case S:return"Profiler";case k:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ul(t)+".Consumer";case x:var n=e;return ul(n._context)+".Provider";case p:return Iu(e,e.render,"ForwardRef");case P:var a=e.displayName||null;return a!==null?a:Et(e.type)||"Memo";case re:{var r=e,i=r._payload,o=r._init;try{return Et(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function gr(e){return e.displayName||"Context"}function Qe(e){var t=e.tag,n=e.type;switch(t){case Xe:return"Cache";case Rt:var a=n;return gr(a)+".Consumer";case Ge:var r=n;return gr(r._context)+".Provider";case He:return"DehydratedFragment";case Ce:return rf(n,n.render,"ForwardRef");case Vt:return"Fragment";case ae:return n;case N:return"Portal";case G:return"Root";case Ue:return"Text";case kt:return Et(n);case xt:return n===k?"StrictMode":"Mode";case X:return"Offscreen";case mt:return"Profiler";case Ze:return"Scope";case xe:return"Suspense";case J:return"SuspenseList";case $:return"TracingMarker";case ne:case Se:case tt:case nt:case et:case B:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var sl=ve.ReactDebugCurrentFrame,Jn=null,Ei=!1;function Ir(){{if(Jn===null)return null;var e=Jn._debugOwner;if(e!==null&&typeof e<"u")return Qe(e)}return null}function of(){return Jn===null?"":Ti(Jn)}function Mn(){sl.getCurrentStack=null,Jn=null,Ei=!1}function tn(e){sl.getCurrentStack=e===null?null:of,Jn=e,Ei=!1}function Wu(){return Jn}function Ma(e){Ei=e}function ea(e){return""+e}function Pa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return le(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||d("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fl(e){return e._valueTracker}function io(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Wr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);le(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var r=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){le(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){le(l),a=""+l},stopTracking:function(){io(e),delete e[t]}};return o}}function Ci(e){fl(e)||(e._valueTracker=Wr(e))}function dl(e){if(!e)return!1;var t=fl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function br(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oo=!1,lo=!1,uo=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function vl(e,t){var n=e,a=t.checked,r=De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){cl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!lo&&(d("%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://reactjs.org/link/controlled-components",Ir()||"A component",t.type),lo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!oo&&(d("%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://reactjs.org/link/controlled-components",Ir()||"A component",t.type),oo=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Pa(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ya(n,"checked",a,!1)}function h(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(d("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Gu=!0),n._wrapperState.controlled&&!a&&!uo&&(d("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),uo=!0)}s(e,t);var r=Pa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ea(r)):n.value!==ea(r)&&(n.value=ea(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?ke(n,t.type,r):t.hasOwnProperty("defaultValue")&&ke(n,t.type,Pa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function M(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type,i=r==="submit"||r==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=ea(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function O(e,t){var n=e;h(n,t),K(n,t)}function K(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;an(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(!(o===e||o.form!==e.form)){var l=Hs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");dl(o),h(o,l)}}}}function ke(e,t,n){(t!=="number"||br(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ea(e._wrapperState.initialValue):e.defaultValue!==ea(n)&&(e.defaultValue=ea(n)))}var ge=!1,We=!1,ft=!1;function jt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?w.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||We||(We=!0,d("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(ft||(ft=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!ge&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ge=!0)}function Wt(e,t){t.value!=null&&e.setAttribute("value",ea(Pa(t.value)))}var qt=Array.isArray;function ot(e){return qt(e)}var nn;nn=!1;function vn(){var e=Ir();return e?`
Check the render method of \``+e+"`.":""}var xi=["value","defaultValue"];function pl(e){{cl("select",e);for(var t=0;t<xi.length;t++){var n=xi[t];if(e[n]!=null){var a=ot(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,vn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,vn())}}}}function Sr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var v=ea(Pa(n)),b=null,y=0;y<r.length;y++){if(r[y].value===v){r[y].selected=!0,a&&(r[y].defaultSelected=!0);return}b===null&&!r[y].disabled&&(b=r[y])}b!==null&&(b.selected=!0)}}function ml(e,t){return De({},t,{value:void 0})}function hl(e,t){var n=e;pl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!nn&&(d("Select 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 select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),nn=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Sr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Sr(n,!!t.multiple,t.defaultValue,!0)}function Ku(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Sr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Sr(n,!!t.multiple,t.defaultValue,!0):Sr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Sr(n,!!t.multiple,a,!1)}var Lm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=De({},t,{value:void 0,defaultValue:void 0,children:ea(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Lm&&(d("%s contains a textarea with both value and defaultValue props. Textarea 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 textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ir()||"A component"),Lm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ot(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Pa(a)}}function Om(e,t){var n=e,a=Pa(t.value),r=Pa(t.defaultValue);if(a!=null){var i=ea(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ea(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function a0(e,t){Om(e,t)}var Tr="http://www.w3.org/1999/xhtml",r0="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return r0;default:return Tr}}function pf(e,t){return e==null||e===Tr?vf(t):e===df&&t==="foreignObject"?Tr:e}var i0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,jm=i0(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ca=1,Er=3,pn=8,Cr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Er){n.nodeValue=t;return}}e.textContent=t},o0={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},yl={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};function l0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var u0=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){u0.forEach(function(t){yl[l0(t,e)]=yl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(W(t,e),(""+t).trim())}var s0=/([A-Z])/g,c0=/^ms-/;function f0(e){return e.replace(s0,"-$1").toLowerCase().replace(c0,"-ms-")}var Nm=function(){};{var d0=/^(?:webkit|moz|o)[A-Z]/,v0=/^-ms-/,p0=/-(.)/g,Um=/;\s*$/,so={},yf={},Hm=!1,zm=!1,m0=function(e){return e.replace(p0,function(t,n){return n.toUpperCase()})},h0=function(e){so.hasOwnProperty(e)&&so[e]||(so[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,m0(e.replace(v0,"ms-"))))},y0=function(e){so.hasOwnProperty(e)&&so[e]||(so[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},g0=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,d(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Um,"")))},b0=function(e,t){Hm||(Hm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},S0=function(e,t){zm||(zm=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};Nm=function(e,t){e.indexOf("-")>-1?h0(e):d0.test(e)?y0(e):Um.test(t)&&g0(e,t),typeof t=="number"&&(isNaN(t)?b0(e,t):isFinite(t)||S0(e,t))}}var T0=Nm;function E0(e){{var t="",n="";for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];if(r!=null){var i=a.indexOf("--")===0;t+=n+(i?a:f0(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Fm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||T0(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function C0(e){return e==null||typeof e=="boolean"||e===""}function Vm(e){var t={};for(var n in e)for(var a=o0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function x0(e,t){{if(!t)return;var n=Vm(e),a=Vm(t),r={};for(var i in n){var o=n[i],l=a[i];if(l&&o!==l){var u=o+","+l;if(r[u])continue;r[u]=!0,d("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",C0(e[o])?"Removing":"Updating",o,l)}}}}var R0={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},w0=De({menuitem:!0},R0),D0="__html";function gf(e,t){if(t){if(w0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(D0 in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&d("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ri(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var es={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Pm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},co={},_0=new RegExp("^(aria)-["+Q+"]*$"),M0=new RegExp("^(aria)[A-Z]["+Q+"]*$");function L0(e,t){{if(xn.call(co,t)&&co[t])return!0;if(M0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Pm.hasOwnProperty(n)?n:null;if(a==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),co[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),co[t]=!0,!0}if(_0.test(t)){var r=t.toLowerCase(),i=Pm.hasOwnProperty(r)?r:null;if(i==null)return co[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),co[t]=!0,!0}}return!0}function k0(e,t){{var n=[];for(var a in t){var r=L0(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?d("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&d("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function O0(e,t){Ri(e,t)||k0(e,t)}var Bm=!1;function A0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Bm&&(Bm=!0,e==="select"&&t.multiple?d("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):d("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var $m=function(){};{var ta={},Ym=/^on./,j0=/^on[^A-Z]/,N0=new RegExp("^(aria)-["+Q+"]*$"),U0=new RegExp("^(aria)[A-Z]["+Q+"]*$");$m=function(e,t,n,a){if(xn.call(ta,t)&&ta[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return d("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ta[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return d("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ta[t]=!0,!0;if(Ym.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),ta[t]=!0,!0}else if(Ym.test(t))return j0.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ta[t]=!0,!0;if(N0.test(t)||U0.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ta[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ta[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ta[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ta[t]=!0,!0;var u=It(t),f=u!==null&&u.type===Ee;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),ta[t]=!0,!0}else if(!f&&t!==r)return d("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),ta[t]=!0,!0;return typeof n=="boolean"&&Kt(t,n,u,!1)?(n?d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),ta[t]=!0,!0):f?!0:Kt(t,n,u,!1)?(ta[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===_e&&(d("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),ta[t]=!0),!0)}}var H0=function(e,t,n){{var a=[];for(var r in t){var i=$m(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?d("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):a.length>1&&d("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}};function z0(e,t,n){Ri(e,t)||H0(e,t,n)}var Im=1,bf=2,gl=4,F0=Im|bf|gl,bl=null;function V0(e){bl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bl=e}function P0(){bl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),bl=null}function B0(e){return e===bl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Er?t.parentNode:t}var Tf=null,fo=null,vo=null;function Wm(e){var t=ti(e);if(t){if(typeof Tf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var a=Hs(n);Tf(t.stateNode,t.type,a)}}}function $0(e){Tf=e}function qm(e){fo?vo?vo.push(e):vo=[e]:fo=e}function Y0(){return fo!==null||vo!==null}function Gm(){if(fo){var e=fo,t=vo;if(fo=null,vo=null,Wm(e),t)for(var n=0;n<t.length;n++)Wm(t[n])}}var Xm=function(e,t){return e(t)},Qm=function(){},Ef=!1;function I0(){var e=Y0();e&&(Qm(),Gm())}function Km(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return Xm(e,t,n)}finally{Ef=!1,I0()}}function W0(e,t,n){Xm=e,Qm=n}function q0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function G0(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(n.disabled&&q0(t));default:return!1}}function Sl(e,t){var n=e.stateNode;if(n===null)return null;var a=Hs(n);if(a===null)return null;var r=a[t];if(G0(t,e.type,a))return null;if(r&&typeof r!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}var Cf=!1;if(Jt)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{Cf=!1}function Zm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var Jm=Zm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Jm=function(t,n,a,r,i,o,l,u,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var v=document.createEvent("Event"),b=!1,y=!0,D=window.event,L=Object.getOwnPropertyDescriptor(window,"event");function A(){xf.removeEventListener(j,Re,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=D)}var ie=Array.prototype.slice.call(arguments,3);function Re(){b=!0,A(),n.apply(a,ie),y=!1}var Te,pt=!1,lt=!1;function E(C){if(Te=C.error,pt=!0,Te===null&&C.colno===0&&C.lineno===0&&(lt=!0),C.defaultPrevented&&Te!=null&&typeof Te=="object")try{Te._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",E),xf.addEventListener(j,Re,!1),v.initEvent(j,!1,!1),xf.dispatchEvent(v),L&&Object.defineProperty(window,"event",L),b&&y&&(pt?lt&&(Te=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Te=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Te)),window.removeEventListener("error",E),!b)return A(),Zm.apply(this,arguments)}}var X0=Jm,po=!1,ts=null,ns=!1,Rf=null,Q0={onError:function(e){po=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){po=!1,ts=null,X0.apply(Q0,arguments)}function K0(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),po){var f=Df();ns||(ns=!0,Rf=f)}}function Z0(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function J0(){return po}function Df(){if(po){var e=ts;return po=!1,ts=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function mo(e){return e._reactInternals}function eT(e){return e._reactInternals!==void 0}function tT(e,t){e._reactInternals=t}var je=0,ho=1,Ln=2,Ct=4,wi=16,as=32,eh=64,Mt=128,Di=256,_i=512,yo=1024,qr=2048,Mi=4096,Li=8192,_f=16384,nT=32767,rs=32768,Ba=65536,Mf=131072,th=1048576,Lf=2097152,ki=4194304,kf=8388608,Gr=16777216,Of=33554432,Af=Ct|yo|0,jf=Ln|Ct|wi|as|_i|Mi|Li,El=Ct|eh|_i|Li,go=qr|wi,xr=ki|kf|Lf,aT=ve.ReactCurrentOwner;function Oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(Ln|Mi))!==je&&(n=t.return),a=t.return;while(a)}return t.tag===G?n:null}function nh(e){if(e.tag===xe){var t=e.memoizedState;if(t===null){var n=e.alternate;n!==null&&(t=n.memoizedState)}if(t!==null)return t.dehydrated}return null}function ah(e){return e.tag===G?e.stateNode.containerInfo:null}function rT(e){return Oi(e)===e}function iT(e){{var t=aT.current;if(t!==null&&t.tag===ne){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||d("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Qe(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=mo(e);return r?Oi(r)===r:!1}function rh(e){if(Oi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ih(e){var t=e.alternate;if(!t){var n=Oi(e);if(n===null)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var a=e,r=t;;){var i=a.return;if(i===null)break;var o=i.alternate;if(o===null){var l=i.return;if(l!==null){a=r=l;continue}break}if(i.child===o.child){for(var u=i.child;u;){if(u===a)return rh(i),e;if(u===r)return rh(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var f=!1,v=i.child;v;){if(v===a){f=!0,a=i,r=o;break}if(v===r){f=!0,r=i,a=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===a){f=!0,a=o,r=i;break}if(v===r){f=!0,r=o,a=i;break}v=v.sibling}if(!f)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==G)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function oh(e){var t=ih(e);return t!==null?lh(t):null}function lh(e){if(e.tag===ae||e.tag===Ue)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function oT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===ae||e.tag===Ue)return e;for(var t=e.child;t!==null;){if(t.tag!==N){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=_.unstable_scheduleCallback,lT=_.unstable_cancelCallback,uT=_.unstable_shouldYield,sT=_.unstable_requestPaint,kn=_.unstable_now,cT=_.unstable_getCurrentPriorityLevel,is=_.unstable_ImmediatePriority,Nf=_.unstable_UserBlockingPriority,Ai=_.unstable_NormalPriority,fT=_.unstable_LowPriority,Uf=_.unstable_IdlePriority,dT=_.unstable_yieldValue,vT=_.unstable_setDisableYieldValue,bo=null,In=null,se=null,ar=!1,$a=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function pT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return d("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Ve&&(e=De({},e,{getLaneLabelMap:ST,injectProfilingHooks:bT})),bo=t.inject(e),In=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function mT(e,t){if(In&&typeof In.onScheduleFiberRoot=="function")try{In.onScheduleFiberRoot(bo,e,t)}catch(n){ar||(ar=!0,d("React instrumentation encountered an error: %s",n))}}function hT(e,t){if(In&&typeof In.onCommitFiberRoot=="function")try{var n=(e.current.flags&Mt)===Mt;if(Ae){var a;switch(t){case Ca:a=is;break;case wr:a=Nf;break;case Dr:a=Ai;break;case ds:a=Uf;break;default:a=Ai;break}In.onCommitFiberRoot(bo,e,a,n)}}catch(r){ar||(ar=!0,d("React instrumentation encountered an error: %s",r))}}function yT(e){if(In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function gT(e){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function On(e){if(typeof dT=="function"&&(vT(e),pe(e)),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(bo,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function bT(e){se=e}function ST(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=VT(t);e.set(t,a),t*=2}return e}}function TT(e){se!==null&&typeof se.markCommitStarted=="function"&&se.markCommitStarted(e)}function ch(){se!==null&&typeof se.markCommitStopped=="function"&&se.markCommitStopped()}function Cl(e){se!==null&&typeof se.markComponentRenderStarted=="function"&&se.markComponentRenderStarted(e)}function So(){se!==null&&typeof se.markComponentRenderStopped=="function"&&se.markComponentRenderStopped()}function ET(e){se!==null&&typeof se.markComponentPassiveEffectMountStarted=="function"&&se.markComponentPassiveEffectMountStarted(e)}function CT(){se!==null&&typeof se.markComponentPassiveEffectMountStopped=="function"&&se.markComponentPassiveEffectMountStopped()}function xT(e){se!==null&&typeof se.markComponentPassiveEffectUnmountStarted=="function"&&se.markComponentPassiveEffectUnmountStarted(e)}function RT(){se!==null&&typeof se.markComponentPassiveEffectUnmountStopped=="function"&&se.markComponentPassiveEffectUnmountStopped()}function wT(e){se!==null&&typeof se.markComponentLayoutEffectMountStarted=="function"&&se.markComponentLayoutEffectMountStarted(e)}function DT(){se!==null&&typeof se.markComponentLayoutEffectMountStopped=="function"&&se.markComponentLayoutEffectMountStopped()}function fh(e){se!==null&&typeof se.markComponentLayoutEffectUnmountStarted=="function"&&se.markComponentLayoutEffectUnmountStarted(e)}function dh(){se!==null&&typeof se.markComponentLayoutEffectUnmountStopped=="function"&&se.markComponentLayoutEffectUnmountStopped()}function _T(e,t,n){se!==null&&typeof se.markComponentErrored=="function"&&se.markComponentErrored(e,t,n)}function MT(e,t,n){se!==null&&typeof se.markComponentSuspended=="function"&&se.markComponentSuspended(e,t,n)}function LT(e){se!==null&&typeof se.markLayoutEffectsStarted=="function"&&se.markLayoutEffectsStarted(e)}function kT(){se!==null&&typeof se.markLayoutEffectsStopped=="function"&&se.markLayoutEffectsStopped()}function OT(e){se!==null&&typeof se.markPassiveEffectsStarted=="function"&&se.markPassiveEffectsStarted(e)}function AT(){se!==null&&typeof se.markPassiveEffectsStopped=="function"&&se.markPassiveEffectsStopped()}function vh(e){se!==null&&typeof se.markRenderStarted=="function"&&se.markRenderStarted(e)}function jT(){se!==null&&typeof se.markRenderYielded=="function"&&se.markRenderYielded()}function ph(){se!==null&&typeof se.markRenderStopped=="function"&&se.markRenderStopped()}function NT(e){se!==null&&typeof se.markRenderScheduled=="function"&&se.markRenderScheduled(e)}function UT(e,t){se!==null&&typeof se.markForceUpdateScheduled=="function"&&se.markForceUpdateScheduled(e,t)}function Hf(e,t){se!==null&&typeof se.markStateUpdateScheduled=="function"&&se.markStateUpdateScheduled(e,t)}var Me=0,dt=1,Nt=2,on=8,rr=16,mh=Math.clz32?Math.clz32:FT,HT=Math.log,zT=Math.LN2;function FT(e){var t=e>>>0;return t===0?32:31-(HT(t)/zT|0)|0}var zf=31,Y=0,An=0,Be=1,To=2,Rr=4,ji=8,ir=16,xl=32,Eo=4194240,Rl=64,Ff=128,Vf=256,Pf=512,Bf=1024,$f=2048,Yf=4096,If=8192,Wf=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Zf=1048576,Jf=2097152,os=130023424,Co=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=Co,wl=134217728,yh=268435455,Dl=268435456,Ni=536870912,La=1073741824;function VT(e){{if(e&Be)return"Sync";if(e&To)return"InputContinuousHydration";if(e&Rr)return"InputContinuous";if(e&ji)return"DefaultHydration";if(e&ir)return"Default";if(e&xl)return"TransitionHydration";if(e&Eo)return"Transition";if(e&os)return"Retry";if(e&wl)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&Ni)return"Idle";if(e&La)return"Offscreen"}}var Gt=-1,ls=Rl,us=Co;function _l(e){switch(Ui(e)){case Be:return Be;case To:return To;case Rr:return Rr;case ji:return ji;case ir:return ir;case xl:return xl;case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return e&Eo;case Co:case ed:case td:case nd:case ad:return e&os;case wl:return wl;case Dl:return Dl;case Ni:return Ni;case La:return La;default:return d("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===Y)return Y;var a=Y,r=e.suspendedLanes,i=e.pingedLanes,o=n&yh;if(o!==Y){var l=o&~r;if(l!==Y)a=_l(l);else{var u=o&i;u!==Y&&(a=_l(u))}}else{var f=n&~r;f!==Y?a=_l(f):i!==Y&&(a=_l(i))}if(a===Y)return Y;if(t!==Y&&t!==a&&(t&r)===Y){var v=Ui(a),b=Ui(t);if(v>=b||v===ir&&(b&Eo)!==Y)return t}(a&Rr)!==Y&&(a|=n&ir);var y=e.entangledLanes;if(y!==Y)for(var D=e.entanglements,L=a&y;L>0;){var A=Hi(L),ie=1<<A;a|=D[A],L&=~ie}return a}function PT(e,t){for(var n=e.eventTimes,a=Gt;t>0;){var r=Hi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function BT(e,t){switch(e){case Be:case To:case Rr:return t+250;case ji:case ir:case xl:case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return t+5e3;case Co:case ed:case td:case nd:case ad:return Gt;case wl:case Dl:case Ni:case La:return Gt;default:return d("Should have found matching lanes. This is a bug in React."),Gt}}function $T(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Hi(o),u=1<<l,f=i[l];f===Gt?((u&a)===Y||(u&r)!==Y)&&(i[l]=BT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function YT(e){return _l(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==Y?t:t&La?La:Y}function IT(e){return(e&Be)!==Y}function id(e){return(e&yh)!==Y}function gh(e){return(e&os)===e}function WT(e){var t=Be|Rr|ir;return(e&t)===Y}function qT(e){return(e&Eo)===e}function cs(e,t){var n=To|Rr|ji|ir;return(t&n)!==Y}function GT(e,t){return(t&e.expiredLanes)!==Y}function bh(e){return(e&Eo)!==Y}function Sh(){var e=ls;return ls<<=1,(ls&Eo)===Y&&(ls=Rl),e}function XT(){var e=us;return us<<=1,(us&os)===Y&&(us=Co),e}function Ui(e){return e&-e}function Ml(e){return Ui(e)}function Hi(e){return 31-mh(e)}function od(e){return Hi(e)}function Ea(e,t){return(e&t)!==Y}function xo(e,t){return(e&t)===t}function Je(e,t){return e|t}function fs(e,t){return e&~t}function Th(e,t){return e&t}function h_(e){return e}function QT(e,t){return e!==An&&e<t?e:t}function ld(e){for(var t=[],n=0;n<zf;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==Ni&&(e.suspendedLanes=Y,e.pingedLanes=Y);var a=e.eventTimes,r=od(t);a[r]=n}function KT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Hi(a),i=1<<r;n[r]=Gt,a&=~i}}function Eh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function ZT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Y,e.pingedLanes=Y,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var a=e.entanglements,r=e.eventTimes,i=e.expirationTimes,o=n;o>0;){var l=Hi(o),u=1<<l;a[l]=Y,r[l]=Gt,i[l]=Gt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Hi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function JT(e,t){var n=Ui(t),a;switch(n){case Rr:a=To;break;case ir:a=ji;break;case Rl:case Ff:case Vf:case Pf:case Bf:case $f:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:case Co:case ed:case td:case nd:case ad:a=xl;break;case Ni:a=Dl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function Ch(e,t,n){if($a)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function xh(e,t){if($a)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function Rh(e,t){return null}var Ca=Be,wr=Rr,Dr=ir,ds=Ni,kl=An;function Ya(){return kl}function jn(e){kl=e}function eE(e,t){var n=kl;try{return kl=e,t()}finally{kl=n}}function tE(e,t){return e!==0&&e<t?e:t}function nE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function wh(e){var t=Ui(e);return sd(Ca,t)?sd(wr,t)?id(t)?Dr:ds:wr:Ca}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function aE(e){Dh=e}function rE(e){Dh(e)}var cd;function iE(e){cd=e}var _h;function oE(e){_h=e}var Mh;function lE(e){Mh=e}var Lh;function uE(e){Lh=e}var fd=!1,ps=[],Xr=null,Qr=null,Kr=null,Ol=new Map,Al=new Map,Zr=[],sE=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function cE(e){return sE.indexOf(e)>-1}function fE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function kh(e,t){switch(e){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Qr=null;break;case"mouseover":case"mouseout":Kr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ol.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Al.delete(a);break}}}function jl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=fE(t,n,a,r,i);if(t!==null){var l=ti(t);l!==null&&cd(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function dE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return Xr=jl(Xr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Qr=jl(Qr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Kr=jl(Kr,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Ol.set(f,jl(Ol.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,b=v.pointerId;return Al.set(b,jl(Al.get(b)||null,e,t,n,a,v)),!0}}return!1}function Oh(e){var t=Vi(e.target);if(t!==null){var n=Oi(t);if(n!==null){var a=n.tag;if(a===xe){var r=nh(n);if(r!==null){e.blockedOn=r,Lh(e.priority,function(){_h(n)});return}}else if(a===G){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function vE(e){for(var t=Mh(),n={blockedOn:null,target:e,priority:t},a=0;a<Zr.length&&sd(t,Zr[a].priority);a++);Zr.splice(a,0,n),a===0&&Oh(n)}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=pd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);V0(i),r.target.dispatchEvent(i),P0()}else{var o=ti(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Ah(e,t,n){ms(e)&&n.delete(t)}function pE(){fd=!1,Xr!==null&&ms(Xr)&&(Xr=null),Qr!==null&&ms(Qr)&&(Qr=null),Kr!==null&&ms(Kr)&&(Kr=null),Ol.forEach(Ah),Al.forEach(Ah)}function Nl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,_.unstable_scheduleCallback(_.unstable_NormalPriority,pE)))}function Ul(e){if(ps.length>0){Nl(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Xr!==null&&Nl(Xr,e),Qr!==null&&Nl(Qr,e),Kr!==null&&Nl(Kr,e);var a=function(l){return Nl(l,e)};Ol.forEach(a),Al.forEach(a);for(var r=0;r<Zr.length;r++){var i=Zr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Zr.length>0;){var o=Zr[0];if(o.blockedOn!==null)break;Oh(o),o.blockedOn===null&&Zr.shift()}}var Ro=ve.ReactCurrentBatchConfig,dd=!0;function jh(e){dd=!!e}function mE(){return dd}function hE(e,t,n){var a=Nh(t),r;switch(a){case Ca:r=yE;break;case wr:r=gE;break;case Dr:default:r=vd;break}return r.bind(null,t,n,e)}function yE(e,t,n,a){var r=Ya(),i=Ro.transition;Ro.transition=null;try{jn(Ca),vd(e,t,n,a)}finally{jn(r),Ro.transition=i}}function gE(e,t,n,a){var r=Ya(),i=Ro.transition;Ro.transition=null;try{jn(wr),vd(e,t,n,a)}finally{jn(r),Ro.transition=i}}function vd(e,t,n,a){dd&&bE(e,t,n,a)}function bE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),kh(e,a);return}if(dE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&gl&&cE(e)){for(;r!==null;){var i=ti(r);i!==null&&rE(i);var o=pd(e,t,n,a);if(o===null&&_d(e,t,a,hs,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}_d(e,t,a,null,n)}var hs=null;function pd(e,t,n,a){hs=null;var r=Sf(a),i=Vi(r);if(i!==null){var o=Oi(i);if(o===null)i=null;else{var l=o.tag;if(l===xe){var u=nh(o);if(u!==null)return u;i=null}else if(l===G){var f=o.stateNode;if(vs(f))return ah(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function Nh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ca;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return wr;case"message":{var t=cT();switch(t){case is:return Ca;case Nf:return wr;case Ai:case fT:return Dr;case Uf:return ds;default:return Dr}}default:return Dr}}function SE(e,t,n){return e.addEventListener(t,n,!1),n}function TE(e,t,n){return e.addEventListener(t,n,!0),n}function EE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function CE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Hl=null,md=null,zl=null;function xE(e){return Hl=e,md=Hh(),!0}function RE(){Hl=null,md=null,zl=null}function Uh(){if(zl)return zl;var e,t=md,n=t.length,a,r=Hh(),i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===r[i-a];a++);var l=a>1?1-a:void 0;return zl=r.slice(e,l),zl}function Hh(){return"value"in Hl?Hl.value:Hl.textContent}function ys(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),t>=32||t===13?t:0}function gs(){return!0}function zh(){return!1}function xa(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var f=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return f?this.isDefaultPrevented=gs:this.isDefaultPrevented=zh,this.isPropagationStopped=zh,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=xa(wo),Fl=De({},wo,{view:0,detail:0}),wE=xa(Fl),yd,gd,Vl;function DE(e){e!==Vl&&(Vl&&e.type==="mousemove"?(yd=e.screenX-Vl.screenX,gd=e.screenY-Vl.screenY):(yd=0,gd=0),Vl=e)}var bs=De({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(DE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Fh=xa(bs),_E=De({},bs,{dataTransfer:0}),ME=xa(_E),LE=De({},Fl,{relatedTarget:0}),bd=xa(LE),kE=De({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=xa(kE),AE=De({},wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jE=xa(AE),NE=De({},wo,{data:0}),Vh=xa(NE),UE=Vh,HE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function FE(e){if(e.key){var t=HE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=ys(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?zE[e.keyCode]||"Unidentified":""}var VE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=VE[e];return a?!!n[a]:!1}function Sd(e){return PE}var BE=De({},Fl,{key:FE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$E=xa(BE),YE=De({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=xa(YE),IE=De({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),WE=xa(IE),qE=De({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GE=xa(qE),XE=De({},bs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QE=xa(XE),KE=[9,13,27,32],Bh=229,Td=Jt&&"CompositionEvent"in window,Pl=null;Jt&&"documentMode"in document&&(Pl=document.documentMode);var ZE=Jt&&"TextEvent"in window&&!Pl,$h=Jt&&(!Td||Pl&&Pl>8&&Pl<=11),Yh=32,Ih=String.fromCharCode(Yh);function JE(){rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),rt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),rt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Wh=!1;function eC(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function tC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function nC(e,t){return e==="keydown"&&t.keyCode===Bh}function qh(e,t){switch(e){case"keyup":return KE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Bh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Xh(e){return e.locale==="ko"}var Do=!1;function aC(e,t,n,a,r){var i,o;if(Td?i=tC(t):Do?qh(t,a)&&(i="onCompositionEnd"):nC(t,a)&&(i="onCompositionStart"),!i)return null;$h&&!Xh(a)&&(!Do&&i==="onCompositionStart"?Do=xE(r):i==="onCompositionEnd"&&Do&&(o=Uh()));var l=xs(n,i);if(l.length>0){var u=new Vh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Gh(a);f!==null&&(u.data=f)}}}function rC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":var n=t.which;return n!==Yh?null:(Wh=!0,Ih);case"textInput":var a=t.data;return a===Ih&&Wh?null:a;default:return null}}function iC(e,t){if(Do){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return RE(),Do=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!eC(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $h&&!Xh(t)?null:t.data;default:return null}}function oC(e,t,n,a,r){var i;if(ZE?i=rC(t,a):i=iC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new UE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function lC(e,t,n,a,r,i,o){aC(e,t,n,a,r),oC(e,t,n,a,r)}var uC={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uC[e.type]:t==="textarea"}/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function sC(e){if(!Jt)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function cC(){rt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Kh(e,t,n,a){qm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Bl=null,$l=null;function fC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function dC(e){var t=[];Kh(t,$l,e,Sf(e)),Km(vC,t)}function vC(e){my(e,0)}function Ss(e){var t=Ao(e);if(dl(t))return e}function pC(e,t){if(e==="change")return t}var Zh=!1;Jt&&(Zh=sC("input")&&(!document.documentMode||document.documentMode>9));function mC(e,t){Bl=e,$l=t,Bl.attachEvent("onpropertychange",ey)}function Jh(){Bl&&(Bl.detachEvent("onpropertychange",ey),Bl=null,$l=null)}function ey(e){e.propertyName==="value"&&Ss($l)&&dC(e)}function hC(e,t,n){e==="focusin"?(Jh(),mC(t,n)):e==="focusout"&&Jh()}function yC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}function gC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function bC(e,t){if(e==="click")return Ss(t)}function SC(e,t){if(e==="input"||e==="change")return Ss(t)}function TC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||ke(e,"number",e.value)}function EC(e,t,n,a,r,i,o){var l=n?Ao(n):window,u,f;if(fC(l)?u=pC:Qh(l)?Zh?u=SC:(u=yC,f=hC):gC(l)&&(u=bC),u){var v=u(t,n);if(v){Kh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&TC(l)}function CC(){Ie("onMouseEnter",["mouseout","mouseover"]),Ie("onMouseLeave",["mouseout","mouseover"]),Ie("onPointerEnter",["pointerout","pointerover"]),Ie("onPointerLeave",["pointerout","pointerover"])}function xC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!B0(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Vi(f)||ru(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var b=r.ownerDocument;b?v=b.defaultView||b.parentWindow:v=window}var y,D;if(u){var L=a.relatedTarget||a.toElement;if(y=n,D=L?Vi(L):null,D!==null){var A=Oi(D);(D!==A||D.tag!==ae&&D.tag!==Ue)&&(D=null)}}else y=null,D=n;if(y!==D){var ie=Fh,Re="onMouseLeave",Te="onMouseEnter",pt="mouse";(t==="pointerout"||t==="pointerover")&&(ie=Ph,Re="onPointerLeave",Te="onPointerEnter",pt="pointer");var lt=y==null?v:Ao(y),E=D==null?v:Ao(D),j=new ie(Re,pt+"leave",y,a,r);j.target=lt,j.relatedTarget=E;var C=null,q=Vi(r);if(q===n){var de=new ie(Te,pt+"enter",D,a,r);de.target=E,de.relatedTarget=lt,C=de}GC(e,j,C,y,D)}}}function RC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ra=typeof Object.is=="function"?Object.is:RC;function Yl(e,t){if(Ra(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!xn.call(t,i)||!Ra(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ny(e,t){for(var n=ty(e),a=0,r=0;n;){if(n.nodeType===Er){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(wC(n))}}function DC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return _C(e,r,i,o,l)}function _C(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,b=null;e:for(;;){for(var y=null;v===t&&(n===0||v.nodeType===Er)&&(o=i+n),v===a&&(r===0||v.nodeType===Er)&&(l=i+r),v.nodeType===Er&&(i+=v.nodeValue.length),(y=v.firstChild)!==null;)b=v,v=y;for(;;){if(v===e)break e;if(b===t&&++u===n&&(o=i),b===a&&++f===r&&(l=i),(y=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=y}return o===-1||l===-1?null:{start:o,end:l}}function MC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var f=ny(e,o),v=ny(e,l);if(f&&v){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var b=n.createRange();b.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(b),r.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),r.addRange(b))}}}function ay(e){return e&&e.nodeType===Er}function ry(e,t){return!e||!t?!1:e===t?!0:ay(e)?!1:ay(t)?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function LC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=br();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=br(e.document)}return t}function Ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OC(){var e=iy();return{focusedElem:e,selectionRange:Ed(e)?jC(e):null}}function AC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&LC(n)){a!==null&&Ed(n)&&NC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ca&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function jC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=DC(e),t||{start:0,end:0}}function NC(e,t){var n=t.start,a=t.end;a===void 0&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):MC(e,t)}var UC=Jt&&"documentMode"in document&&document.documentMode<=11;function HC(){rt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var _o=null,Cd=null,Il=null,xd=!1;function zC(e){if("selectionStart"in e&&Ed(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function FC(e){return e.window===e?e.document:e.nodeType===Cr?e:e.ownerDocument}function oy(e,t,n){var a=FC(n);if(!(xd||_o==null||_o!==br(a))){var r=zC(_o);if(!Il||!Yl(Il,r)){Il=r;var i=xs(Cd,"onSelect");if(i.length>0){var o=new hd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=_o}}}}function VC(e,t,n,a,r,i,o){var l=n?Ao(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(_o=l,Cd=n,Il=null);break;case"focusout":_o=null,Cd=null,Il=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,oy(e,a,r);break;case"selectionchange":if(UC)break;case"keydown":case"keyup":oy(e,a,r)}}function Ts(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Mo={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Rd={},ly={};Jt&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Es(e){if(Rd[e])return Rd[e];if(!Mo[e])return e;var t=Mo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ly)return Rd[e]=t[n];return e}var uy=Es("animationend"),sy=Es("animationiteration"),cy=Es("animationstart"),fy=Es("transitionend"),dy=new Map,vy=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Jr(e,t){dy.set(e,t),rt(t,[e])}function PC(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);Jr(n,"on"+a)}Jr(uy,"onAnimationEnd"),Jr(sy,"onAnimationIteration"),Jr(cy,"onAnimationStart"),Jr("dblclick","onDoubleClick"),Jr("focusin","onFocus"),Jr("focusout","onBlur"),Jr(fy,"onTransitionEnd")}function BC(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,f=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=$E;break;case"focusin":f="focus",u=bd;break;case"focusout":f="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ME;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=WE;break;case uy:case sy:case cy:u=OE;break;case fy:u=GE;break;case"scroll":u=wE;break;case"wheel":u=QE;break;case"copy":case"cut":case"paste":u=jE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ph;break}var v=(i&gl)!==0;{var b=!v&&t==="scroll",y=WC(n,l,a.type,v,b);if(y.length>0){var D=new u(l,f,null,a,r);e.push({event:D,listeners:y})}}}}PC(),CC(),cC(),HC(),JE();function $C(e,t,n,a,r,i,o){BC(e,t,n,a,r,i);var l=(i&F0)===0;l&&(xC(e,t,n,a,r),EC(e,t,n,a,r),VC(e,t,n,a,r),lC(e,t,n,a,r))}var Wl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],wd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Wl));function py(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,K0(a,t,void 0,e),e.currentTarget=null}function YC(e,t,n){var a;if(n)for(var r=t.length-1;r>=0;r--){var i=t[r],o=i.instance,l=i.currentTarget,u=i.listener;if(o!==a&&e.isPropagationStopped())return;py(e,u,l),a=o}else for(var f=0;f<t.length;f++){var v=t[f],b=v.instance,y=v.currentTarget,D=v.listener;if(b!==a&&e.isPropagationStopped())return;py(e,D,y),a=b}}function my(e,t){for(var n=(t&gl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;YC(i,o,n)}Z0()}function IC(e,t,n,a,r){var i=Sf(n),o=[];$C(o,e,a,n,i,t),my(o,t)}function Zt(e,t){wd.has(e)||d('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=T1(t),r=XC(e);a.has(r)||(hy(t,e,bf,n),a.add(r))}function Dd(e,t,n){wd.has(e)&&!t&&d('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=gl),hy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function ql(e){if(!e[Cs]){e[Cs]=!0,$t.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===Cr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=hE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?EE(e,t,i,o):TE(e,t,i):o!==void 0?CE(e,t,i,o):SE(e,t,i)}function yy(e,t){return e===t||e.nodeType===pn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Im)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===G||u===N){var f=l.stateNode.containerInfo;if(yy(f,o))break;if(u===N)for(var v=l.return;v!==null;){var b=v.tag;if(b===G||b===N){var y=v.stateNode.containerInfo;if(yy(y,o))return}v=v.return}for(;f!==null;){var D=Vi(f);if(D===null)return;var L=D.tag;if(L===ae||L===Ue){l=i=D;continue e}f=f.parentNode}}l=l.return}}}Km(function(){return IC(e,t,n,i)})}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function WC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,v=null;f!==null;){var b=f,y=b.stateNode,D=b.tag;if(D===ae&&y!==null&&(v=y,l!==null)){var L=Sl(f,l);L!=null&&u.push(Gl(f,L,v))}if(r)break;f=f.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ae&&o!==null){var u=o,f=Sl(r,n);f!=null&&a.unshift(Gl(r,f,u));var v=Sl(r,t);v!=null&&a.push(Gl(r,v,u))}r=r.return}return a}function Lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ae);return e||null}function qC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Lo(i))r++;for(var o=0,l=a;l;l=Lo(l))o++;for(;r-o>0;)n=Lo(n),r--;for(;o-r>0;)a=Lo(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Lo(n),a=Lo(a)}return null}function gy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,v=u.stateNode,b=u.tag;if(f!==null&&f===a)break;if(b===ae&&v!==null){var y=v;if(r){var D=Sl(l,i);D!=null&&o.unshift(Gl(l,D,y))}else if(!r){var L=Sl(l,i);L!=null&&o.push(Gl(l,L,y))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function GC(e,t,n,a,r){var i=a&&r?qC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function XC(e,t){return e+"__bubble"}var fa=!1,Xl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",ei="suppressHydrationWarning",by="autoFocus",zi="children",Fi="style",ws="__html",Md,Ds,Ql,Sy,_s,Ty,Ey;Md={dialog:!0,webview:!0},Ds=function(e,t){O0(e,t),A0(e,t),z0(e,t,{registrationNameDependencies:Ye,possibleRegistrationNames:At})},Ty=Jt&&!document.documentMode,Ql=function(e,t,n){if(!fa){var a=Ms(n),r=Ms(t);r!==a&&(fa=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!fa){fa=!0;var t=[];e.forEach(function(n){t.push(n)}),d("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?d("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Ey=function(e,t){var n=e.namespaceURI===Tr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var QC=/\r\n?/g,KC=/\u0000|\uFFFD/g;function Ms(e){me(e);var t=typeof e=="string"?e:""+e;return t.replace(QC,`
`).replace(KC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(fa||(fa=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&I))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===Cr?e:e.ownerDocument}function ZC(){}function ks(e){e.onclick=ZC}function JC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Fi)o&&Object.freeze(o),Fm(t,o);else if(i===Xl){var l=o?o[ws]:void 0;l!=null&&jm(t,l)}else if(i===zi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===Rs||i===ei||i===by||(Ye.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Zt("scroll",t)):o!=null&&ya(t,i,o,r))}}function ex(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Fi?Fm(e,o):i===Xl?jm(e,o):i===zi?Ju(e,o):ya(e,i,o,a)}}function tx(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===Tr&&(l=vf(e)),l===Tr){if(r=Ri(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Tr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!xn.call(Md,e)&&(Md[e]=!0,d("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function nx(e,t){return Cy(t).createTextNode(e)}function ax(e,t,n,a){var r=Ri(t,n);Ds(t,n);var i;switch(t){case"dialog":Zt("cancel",e),Zt("close",e),i=n;break;case"iframe":case"object":case"embed":Zt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Wl.length;o++)Zt(Wl[o],e);i=n;break;case"source":Zt("error",e),i=n;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),i=n;break;case"details":Zt("toggle",e),i=n;break;case"input":Qu(e,n),i=vl(e,n),Zt("invalid",e);break;case"option":jt(e,n),i=n;break;case"select":hl(e,n),i=ml(e,n),Zt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Zt("invalid",e);break;default:i=n}switch(gf(t,i),JC(t,e,a,i,r),t){case"input":Ci(e),M(e,n,!1);break;case"textarea":Ci(e),Am(e);break;case"option":Wt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&ks(e);break}}function rx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=vl(e,n),l=vl(e,a),i=[];break;case"select":o=ml(e,n),l=ml(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&ks(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Fi){var b=o[u];for(f in b)b.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Xl||u===zi||u===Rs||u===ei||u===by||(Ye.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],D=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===D||y==null&&D==null))if(u===Fi)if(y&&Object.freeze(y),D){for(f in D)D.hasOwnProperty(f)&&(!y||!y.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in y)y.hasOwnProperty(f)&&D[f]!==y[f]&&(v||(v={}),v[f]=y[f])}else v||(i||(i=[]),i.push(u,v)),v=y;else if(u===Xl){var L=y?y[ws]:void 0,A=D?D[ws]:void 0;L!=null&&A!==L&&(i=i||[]).push(u,L)}else u===zi?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===Rs||u===ei||(Ye.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&_s(u,y),u==="onScroll"&&Zt("scroll",e)),!i&&D!==y&&(i=[])):(i=i||[]).push(u,y))}return v&&(x0(v,l[Fi]),(i=i||[]).push(Fi,v)),i}function ix(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ri(n,a),o=Ri(n,r);switch(ex(e,t,i,o),n){case"input":h(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function ox(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function lx(e,t,n,a,r,i,o){var l,u;switch(l=Ri(t,n),Ds(t,n),t){case"dialog":Zt("cancel",e),Zt("close",e);break;case"iframe":case"object":case"embed":Zt("load",e);break;case"video":case"audio":for(var f=0;f<Wl.length;f++)Zt(Wl[f],e);break;case"source":Zt("error",e);break;case"img":case"image":case"link":Zt("error",e),Zt("load",e);break;case"details":Zt("toggle",e);break;case"input":Qu(e,n),Zt("invalid",e);break;case"option":jt(e,n);break;case"select":hl(e,n),Zt("invalid",e);break;case"textarea":km(e,n),Zt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,b=0;b<v.length;b++){var y=v[b].name.toLowerCase();switch(y){case"value":break;case"checked":break;case"selected":break;default:u.add(v[b].name)}}}var D=null;for(var L in n)if(n.hasOwnProperty(L)){var A=n[L];if(L===zi)typeof A=="string"?e.textContent!==A&&(n[ei]!==!0&&Ls(e.textContent,A,i,o),D=[zi,A]):typeof A=="number"&&e.textContent!==""+A&&(n[ei]!==!0&&Ls(e.textContent,A,i,o),D=[zi,""+A]);else if(Ye.hasOwnProperty(L))A!=null&&(typeof A!="function"&&_s(L,A),L==="onScroll"&&Zt("scroll",e));else if(o&&typeof l=="boolean"){var ie=void 0,Re=It(L);if(n[ei]!==!0){if(!(L===Rs||L===ei||L==="value"||L==="checked"||L==="selected")){if(L===Xl){var Te=e.innerHTML,pt=A?A[ws]:void 0;if(pt!=null){var lt=Ey(e,pt);lt!==Te&&Ql(L,Te,lt)}}else if(L===Fi){if(u.delete(L),Ty){var E=E0(A);ie=e.getAttribute("style"),E!==ie&&Ql(L,ie,E)}}else if(l)u.delete(L.toLowerCase()),ie=Fa(e,L,A),A!==ie&&Ql(L,ie,A);else if(!Qt(L,Re,l)&&!Dn(L,A,Re,l)){var j=!1;if(Re!==null)u.delete(Re.attributeName),ie=za(e,L,A,Re);else{var C=a;if(C===Tr&&(C=vf(t)),C===Tr)u.delete(L.toLowerCase());else{var q=ox(L);q!==null&&q!==L&&(j=!0,u.delete(q)),u.delete(L)}ie=Fa(e,L,A)}var de=ht;!de&&A!==ie&&!j&&Ql(L,ie,A)}}}}}switch(o&&u.size>0&&n[ei]!==!0&&Sy(u),t){case"input":Ci(e),M(e,n,!0);break;case"textarea":Ci(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&ks(e);break}return D}function ux(e,t,n){var a=e.nodeValue!==t;return a}function Ld(e,t){{if(fa)return;fa=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(fa)return;fa=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(fa)return;fa=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||fa)return;fa=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function sx(e,t,n){switch(t){case"input":O(e,n);return;case"textarea":a0(e,n);return;case"select":cf(e,n);return}}var Kl=function(){},Zl=function(){};{var cx=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],xy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],fx=xy.concat(["button"]),dx=["dd","dt","li","option","optgroup","p","rp","rt"],Ry={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Zl=function(e,t){var n=De({},e||Ry),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),fx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),cx.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),n};var vx=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return dx.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},px=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},wy={};Kl=function(e,t,n){n=n||Ry;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&d("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=vx(e,r)?null:a,o=i?null:px(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!wy[f]){wy[f]=!0;var v=e,b="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",b=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var y="";u==="table"&&e==="tr"&&(y+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",v,u,b,y)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var Os="suppressHydrationWarning",As="$",js="/$",Jl="$?",eu="$!",mx="style",jd=null,Nd=null;function hx(e){var t,n,a=e.nodeType;switch(a){case Cr:case mf:{t=a===Cr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===pn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Zl(null,l);return{namespace:n,ancestorInfo:u}}}function yx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Zl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function y_(e){return e}function gx(e){jd=mE(),Nd=OC();var t=null;return jh(!1),t}function bx(e){AC(Nd),jh(jd),jd=null,Nd=null}function Sx(e,t,n,a,r){var i;{var o=a;if(Kl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Zl(o.ancestorInfo,e);Kl(null,l,u)}i=o.namespace}var f=tx(e,t,n,i);return au(r,f),$d(f,t),f}function Tx(e,t){e.appendChild(t)}function Ex(e,t,n,a,r){switch(ax(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Cx(e,t,n,a,r,i){{var o=i;if(typeof a.children!=typeof n.children&&(typeof a.children=="string"||typeof a.children=="number")){var l=""+a.children,u=Zl(o.ancestorInfo,t);Kl(null,l,u)}}return rx(e,t,n,a)}function Ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function xx(e,t,n,a){{var r=n;Kl(null,e,r.ancestorInfo)}var i=nx(e,t);return au(a,i),i}function Rx(){var e=window.event;return e===void 0?Dr:Nh(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,wx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Dy=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(_x)}:Hd;function _x(e){setTimeout(function(){throw e})}function Mx(e,t,n,a){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function Lx(e,t,n,a,r,i){ix(e,t,n,a,r),$d(e,r)}function _y(e){Ju(e,"")}function kx(e,t,n){e.nodeValue=n}function Ox(e,t){e.appendChild(t)}function Ax(e,t){var n;e.nodeType===pn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&ks(n)}function jx(e,t,n){e.insertBefore(t,n)}function Nx(e,t,n){e.nodeType===pn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Ux(e,t){e.removeChild(t)}function Hx(e,t){e.nodeType===pn?e.parentNode.removeChild(t):e.removeChild(t)}function Fd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===pn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),Ul(t);return}else a--;else(i===As||i===Jl||i===eu)&&a++}n=r}while(n);Ul(t)}function zx(e,t){e.nodeType===pn?Fd(e.parentNode,t):e.nodeType===ca&&Fd(e,t),Ul(e)}function Fx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Vx(e){e.nodeValue=""}function Px(e,t){e=e;var n=t[mx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Bx(e,t){e.nodeValue=t}function $x(e){e.nodeType===ca?e.textContent="":e.nodeType===Cr&&e.documentElement&&e.removeChild(e.documentElement)}function Yx(e,t,n){return e.nodeType!==ca||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Ix(e,t){return t===""||e.nodeType!==Er?null:e}function Wx(e){return e.nodeType!==pn?null:e}function My(e){return e.data===Jl}function Vd(e){return e.data===eu}function qx(e){var t=e.nextSibling&&e.nextSibling.dataset,n,a,r;return t&&(n=t.dgst,a=t.msg,r=t.stck),{message:a,digest:n,stack:r}}function Gx(e,t){e._reactRetry=t}function Ns(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ca||t===Er)break;if(t===pn){var n=e.data;if(n===As||n===eu||n===Jl)break;if(n===js)return null}}return e}function tu(e){return Ns(e.nextSibling)}function Xx(e){return Ns(e.firstChild)}function Qx(e){return Ns(e.firstChild)}function Kx(e){return Ns(e.nextSibling)}function Zx(e,t,n,a,r,i,o){au(i,e),$d(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&dt)!==Me;return lx(e,t,n,l,a,f,o)}function Jx(e,t,n,a){return au(n,e),n.mode&dt,ux(e,t)}function e1(e,t){au(t,e)}function t1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===js){if(n===0)return tu(t);n--}else(a===As||a===eu||a===Jl)&&n++}t=t.nextSibling}return null}function Ly(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===As||a===eu||a===Jl){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function n1(e){Ul(e)}function a1(e){Ul(e)}function r1(e){return e!=="head"&&e!=="body"}function i1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function o1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function l1(e,t){t.nodeType===ca?Ld(e,t):t.nodeType===pn||kd(e,t)}function u1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ca?Ld(n,t):t.nodeType===pn||kd(n,t))}}function s1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===ca?Ld(n,a):a.nodeType===pn||kd(n,a))}function c1(e,t,n){Od(e,t)}function f1(e,t){Ad(e,t)}function d1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function v1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function p1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function m1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function h1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function y1(e){ql(e)}var ko=Math.random().toString(36).slice(2),Oo="__reactFiber$"+ko,Pd="__reactProps$"+ko,nu="__reactContainer$"+ko,Bd="__reactEvents$"+ko,g1="__reactListeners$"+ko,b1="__reactHandles$"+ko;function S1(e){delete e[Oo],delete e[Pd],delete e[Bd],delete e[g1],delete e[b1]}function au(e,t){t[Oo]=e}function Us(e,t){t[nu]=e}function ky(e){e[nu]=null}function ru(e){return!!e[nu]}function Vi(e){var t=e[Oo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nu]||n[Oo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=Ly(e);r!==null;){var i=r[Oo];if(i)return i;r=Ly(r)}return t}e=n,n=e.parentNode}return null}function ti(e){var t=e[Oo]||e[nu];return t&&(t.tag===ae||t.tag===Ue||t.tag===xe||t.tag===G)?t:null}function Ao(e){if(e.tag===ae||e.tag===Ue)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Pd]||null}function $d(e,t){e[Pd]=t}function T1(e){var t=e[Bd];return t===void 0&&(t=e[Bd]=new Set),t}var Oy={},Ay=ve.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=ll(e.type,e._source,t?t.type:null);Ay.setExtraStackFrame(n)}else Ay.setExtraStackFrame(null)}function Ia(e,t,n,a,r){{var i=Function.call.bind(xn);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){l=f}l&&!(l instanceof Error)&&(zs(r),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,o,typeof l),zs(null)),l instanceof Error&&!(l.message in Oy)&&(Oy[l.message]=!0,zs(r),d("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Fs;Fs=[];var _r=-1;function ni(e){return{current:e}}function Wn(e,t){if(_r<0){d("Unexpected pop.");return}t!==Fs[_r]&&d("Unexpected Fiber popped."),e.current=Yd[_r],Yd[_r]=null,Fs[_r]=null,_r--}function qn(e,t,n){_r++,Yd[_r]=e.current,Fs[_r]=n,e.current=t}var Id;Id={};var wa={};Object.freeze(wa);var Mr=ni(wa),or=ni(!1),Wd=wa;function jo(e,t,n){return n&&lr(t)?Wd:Mr.current}function jy(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function No(e,t){{var n=e.type,a=n.contextTypes;if(!a)return wa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in a)i[o]=t[o];{var l=Qe(e)||"Unknown";Ia(a,i,"context",l)}return r&&jy(e,t,i),i}}function Vs(){return or.current}function lr(e){{var t=e.childContextTypes;return t!=null}}function Ps(e){Wn(or,e),Wn(Mr,e)}function qd(e){Wn(or,e),Wn(Mr,e)}function Ny(e,t,n){{if(Mr.current!==wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");qn(Mr,t,e),qn(or,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Qe(e)||"Unknown";Id[i]||(Id[i]=!0,d("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i))}return n}var o=a.getChildContext();for(var l in o)if(!(l in r))throw new Error((Qe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Qe(e)||"Unknown";Ia(r,o,"child context",u)}return De({},n,o)}}function Bs(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||wa;return Wd=Mr.current,qn(Mr,n,e),qn(or,or.current,e),!0}}function Hy(e,t,n){{var a=e.stateNode;if(!a)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var r=Uy(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,Wn(or,e),Wn(Mr,e),qn(Mr,r,e),qn(or,n,e)}else Wn(or,e),qn(or,n,e)}}function E1(e){{if(!rT(e)||e.tag!==ne)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case G:return t.stateNode.context;case ne:{var n=t.type;if(lr(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var ai=0,$s=1,Lr=null,Gd=!1,Xd=!1;function zy(e){Lr===null?Lr=[e]:Lr.push(e)}function C1(e){Gd=!0,zy(e)}function Fy(){Gd&&ri()}function ri(){if(!Xd&&Lr!==null){Xd=!0;var e=0,t=Ya();try{var n=!0,a=Lr;for(jn(Ca);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Lr=null,Gd=!1}catch(i){throw Lr!==null&&(Lr=Lr.slice(e+1)),sh(is,ri),i}finally{jn(t),Xd=!1}}return null}var Uo=[],Ho=0,Ys=null,Is=0,ka=[],Oa=0,Pi=null,kr=1,Or="";function x1(e){return $i(),(e.flags&th)!==je}function R1(e){return $i(),Is}function w1(){var e=Or,t=kr,n=t&~D1(t);return n.toString(32)+e}function Bi(e,t){$i(),Uo[Ho++]=Is,Uo[Ho++]=Ys,Ys=e,Is=t}function Vy(e,t,n){$i(),ka[Oa++]=kr,ka[Oa++]=Or,ka[Oa++]=Pi,Pi=e;var a=kr,r=Or,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var f=i-i%5,v=(1<<f)-1,b=(o&v).toString(32),y=o>>f,D=i-f,L=Ws(t)+D,A=l<<D,ie=A|y,Re=b+r;kr=1<<L|ie,Or=Re}else{var Te=l<<i,pt=Te|o,lt=r;kr=1<<u|pt,Or=lt}}function Qd(e){$i();var t=e.return;if(t!==null){var n=1,a=0;Bi(e,n),Vy(e,n,a)}}function Ws(e){return 32-mh(e)}function D1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=Uo[--Ho],Uo[Ho]=null,Is=Uo[--Ho],Uo[Ho]=null;for(;e===Pi;)Pi=ka[--Oa],ka[Oa]=null,Or=ka[--Oa],ka[Oa]=null,kr=ka[--Oa],ka[Oa]=null}function _1(){return $i(),Pi!==null?{id:kr,overflow:Or}:null}function M1(e,t){$i(),ka[Oa++]=kr,ka[Oa++]=Or,ka[Oa++]=Pi,kr=t.id,Or=t.overflow,Pi=e}function $i(){Un()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Nn=null,Aa=null,Wa=!1,Yi=!1,ii=null;function L1(){Wa&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Py(){Yi=!0}function k1(){return Yi}function O1(e){var t=e.stateNode.containerInfo;return Aa=Qx(t),Nn=e,Wa=!0,ii=null,Yi=!1,!0}function A1(e,t,n){return Aa=Kx(t),Nn=e,Wa=!0,ii=null,Yi=!1,n!==null&&M1(e,n),!0}function By(e,t){switch(e.tag){case G:{l1(e.stateNode.containerInfo,t);break}case ae:{var n=(e.mode&dt)!==Me;s1(e.type,e.memoizedProps,e.stateNode,t,n);break}case xe:{var a=e.memoizedState;a.dehydrated!==null&&u1(a.dehydrated,t);break}}}function $y(e,t){By(e,t);var n=HD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=wi):a.push(n)}function Zd(e,t){{if(Yi)return;switch(e.tag){case G:{var n=e.stateNode.containerInfo;switch(t.tag){case ae:var a=t.type;t.pendingProps,c1(n,a);break;case Ue:var r=t.pendingProps;f1(n,r);break}break}case ae:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ae:{var u=t.type,f=t.pendingProps,v=(e.mode&dt)!==Me;p1(i,o,l,u,f,v);break}case Ue:{var b=t.pendingProps,y=(e.mode&dt)!==Me;m1(i,o,l,b,y);break}}break}case xe:{var D=e.memoizedState,L=D.dehydrated;if(L!==null)switch(t.tag){case ae:var A=t.type;t.pendingProps,d1(L,A);break;case Ue:var ie=t.pendingProps;v1(L,ie);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|Ln,Zd(e,t)}function Iy(e,t){switch(e.tag){case ae:{var n=e.type;e.pendingProps;var a=Yx(t,n);return a!==null?(e.stateNode=a,Nn=e,Aa=Xx(a),!0):!1}case Ue:{var r=e.pendingProps,i=Ix(t,r);return i!==null?(e.stateNode=i,Nn=e,Aa=null,!0):!1}case xe:{var o=Wx(t);if(o!==null){var l={dehydrated:o,treeContext:_1(),retryLane:La};e.memoizedState=l;var u=zD(o);return u.return=e,e.child=u,Nn=e,Aa=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&dt)!==Me&&(e.flags&Mt)===je}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Wa){var t=Aa;if(!t){Jd(e)&&(Zd(Nn,e),ev()),Yy(Nn,e),Wa=!1,Nn=e;return}var n=t;if(!Iy(e,t)){Jd(e)&&(Zd(Nn,e),ev()),t=tu(n);var a=Nn;if(!t||!Iy(e,t)){Yy(Nn,e),Wa=!1,Nn=e;return}$y(a,n)}}}function j1(e,t,n){var a=e.stateNode,r=!Yi,i=Zx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function N1(e){var t=e.stateNode,n=e.memoizedProps,a=Jx(t,n,e);if(a){var r=Nn;if(r!==null)switch(r.tag){case G:{var i=r.stateNode.containerInfo,o=(r.mode&dt)!==Me;i1(i,t,n,o);break}case ae:{var l=r.type,u=r.memoizedProps,f=r.stateNode,v=(r.mode&dt)!==Me;o1(l,u,f,t,n,v);break}}}return a}function U1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");e1(n,e)}function H1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return t1(n)}function Wy(e){for(var t=e.return;t!==null&&t.tag!==ae&&t.tag!==G&&t.tag!==xe;)t=t.return;Nn=t}function qs(e){if(e!==Nn)return!1;if(!Wa)return Wy(e),Wa=!0,!1;if(e.tag!==G&&(e.tag!==ae||r1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Aa;if(t)if(Jd(e))qy(e),ev();else for(;t;)$y(e,t),t=tu(t)}return Wy(e),e.tag===xe?Aa=H1(e):Aa=Nn?tu(e.stateNode):null,!0}function z1(){return Wa&&Aa!==null}function qy(e){for(var t=Aa;t;)By(e,t),t=tu(t)}function zo(){Nn=null,Aa=null,Wa=!1,Yi=!1}function Gy(){ii!==null&&(Pb(ii),ii=null)}function Un(){return Wa}function nv(e){ii===null?ii=[e]:ii.push(e)}var F1=ve.ReactCurrentBatchConfig,V1=null;function P1(){return F1.transition}var qa={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var B1=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},Ii=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Wi=new Set;qa.recordUnsafeLifecycleWarnings=function(e,t){Wi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&iu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&ou.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&uu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&cu.push(e))},qa.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;iu.length>0&&(iu.forEach(function(y){e.add(Qe(y)||"Component"),Wi.add(y.type)}),iu=[]);var t=new Set;ou.length>0&&(ou.forEach(function(y){t.add(Qe(y)||"Component"),Wi.add(y.type)}),ou=[]);var n=new Set;lu.length>0&&(lu.forEach(function(y){n.add(Qe(y)||"Component"),Wi.add(y.type)}),lu=[]);var a=new Set;uu.length>0&&(uu.forEach(function(y){a.add(Qe(y)||"Component"),Wi.add(y.type)}),uu=[]);var r=new Set;su.length>0&&(su.forEach(function(y){r.add(Qe(y)||"Component"),Wi.add(y.type)}),su=[]);var i=new Set;if(cu.length>0&&(cu.forEach(function(y){i.add(Qe(y)||"Component"),Wi.add(y.type)}),cu=[]),t.size>0){var o=Ii(t);d(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,o)}if(a.size>0){var l=Ii(a);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,l)}if(i.size>0){var u=Ii(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,u)}if(e.size>0){var f=Ii(e);Oe(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,f)}if(n.size>0){var v=Ii(n);Oe(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,v)}if(r.size>0){var b=Ii(r);Oe(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,b)}};var Gs=new Map,Xy=new Set;qa.recordLegacyContextWarning=function(e,t){var n=B1(e);if(n===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Xy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},qa.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Qe(i)||"Component"),Xy.add(i.type)});var r=Ii(a);try{tn(n),d(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Mn()}}})},qa.discardPendingWarnings=function(){iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Gs=new Map}}var av,rv,iv,ov,lv,Qy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Qy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Qe(t)||"Component";ov[n]||(ov[n]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function $1(e){return e.prototype&&e.prototype.isReactComponent}function fu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||Ke)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ne)&&!(typeof n.type=="function"&&!$1(n.type))&&n._owner){var r=Qe(e)||"Component";iv[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==ne)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;U(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(b){var y=u.refs;b===null?delete y[f]:y[f]=b};return v._stringRef=f,v}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Qe(e)||"Component";if(lv[t])return;lv[t]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Ky(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(E,j){if(e){var C=E.deletions;C===null?(E.deletions=[j],E.flags|=wi):C.push(j)}}function n(E,j){if(!e)return null;for(var C=j;C!==null;)t(E,C),C=C.sibling;return null}function a(E,j){for(var C=new Map,q=j;q!==null;)q.key!==null?C.set(q.key,q):C.set(q.index,q),q=q.sibling;return C}function r(E,j){var C=to(E,j);return C.index=0,C.sibling=null,C}function i(E,j,C){if(E.index=C,!e)return E.flags|=th,j;var q=E.alternate;if(q!==null){var de=q.index;return de<j?(E.flags|=Ln,j):de}else return E.flags|=Ln,j}function o(E){return e&&E.alternate===null&&(E.flags|=Ln),E}function l(E,j,C,q){if(j===null||j.tag!==Ue){var de=nm(C,E.mode,q);return de.return=E,de}else{var ue=r(j,C);return ue.return=E,ue}}function u(E,j,C,q){var de=C.type;if(de===V)return v(E,j,C.props.children,q,C.key);if(j!==null&&(j.elementType===de||aS(j,C)||typeof de=="object"&&de!==null&&de.$$typeof===re&&Ky(de)===j.type)){var ue=r(j,C.props);return ue.ref=fu(E,j,C),ue.return=E,ue._debugSource=C._source,ue._debugOwner=C._owner,ue}var Ne=tm(C,E.mode,q);return Ne.ref=fu(E,j,C),Ne.return=E,Ne}function f(E,j,C,q){if(j===null||j.tag!==N||j.stateNode.containerInfo!==C.containerInfo||j.stateNode.implementation!==C.implementation){var de=am(C,E.mode,q);return de.return=E,de}else{var ue=r(j,C.children||[]);return ue.return=E,ue}}function v(E,j,C,q,de){if(j===null||j.tag!==Vt){var ue=hi(C,E.mode,q,de);return ue.return=E,ue}else{var Ne=r(j,C);return Ne.return=E,Ne}}function b(E,j,C){if(typeof j=="string"&&j!==""||typeof j=="number"){var q=nm(""+j,E.mode,C);return q.return=E,q}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Kn:{var de=tm(j,E.mode,C);return de.ref=fu(E,null,j),de.return=E,de}case g:{var ue=am(j,E.mode,C);return ue.return=E,ue}case re:{var Ne=j._payload,qe=j._init;return b(E,qe(Ne),C)}}if(ot(j)||zt(j)){var Ht=hi(j,E.mode,C,null);return Ht.return=E,Ht}Xs(E,j)}return typeof j=="function"&&Qs(E),null}function y(E,j,C,q){var de=j!==null?j.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return de!==null?null:l(E,j,""+C,q);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Kn:return C.key===de?u(E,j,C,q):null;case g:return C.key===de?f(E,j,C,q):null;case re:{var ue=C._payload,Ne=C._init;return y(E,j,Ne(ue),q)}}if(ot(C)||zt(C))return de!==null?null:v(E,j,C,q,null);Xs(E,C)}return typeof C=="function"&&Qs(E),null}function D(E,j,C,q,de){if(typeof q=="string"&&q!==""||typeof q=="number"){var ue=E.get(C)||null;return l(j,ue,""+q,de)}if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Kn:{var Ne=E.get(q.key===null?C:q.key)||null;return u(j,Ne,q,de)}case g:{var qe=E.get(q.key===null?C:q.key)||null;return f(j,qe,q,de)}case re:var Ht=q._payload,St=q._init;return D(E,j,C,St(Ht),de)}if(ot(q)||zt(q)){var sn=E.get(C)||null;return v(j,sn,q,de,null)}Xs(j,q)}return typeof q=="function"&&Qs(j),null}function L(E,j,C){{if(typeof E!="object"||E===null)return j;switch(E.$$typeof){case Kn:case g:Qy(E,C);var q=E.key;if(typeof q!="string")break;if(j===null){j=new Set,j.add(q);break}if(!j.has(q)){j.add(q);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",q);break;case re:var de=E._payload,ue=E._init;L(ue(de),j,C);break}}return j}function A(E,j,C,q){for(var de=null,ue=0;ue<C.length;ue++){var Ne=C[ue];de=L(Ne,de,E)}for(var qe=null,Ht=null,St=j,sn=0,Tt=0,ln=null;St!==null&&Tt<C.length;Tt++){St.index>Tt?(ln=St,St=null):ln=St.sibling;var Xn=y(E,St,C[Tt],q);if(Xn===null){St===null&&(St=ln);break}e&&St&&Xn.alternate===null&&t(E,St),sn=i(Xn,sn,Tt),Ht===null?qe=Xn:Ht.sibling=Xn,Ht=Xn,St=ln}if(Tt===C.length){if(n(E,St),Un()){var $n=Tt;Bi(E,$n)}return qe}if(St===null){for(;Tt<C.length;Tt++){var _a=b(E,C[Tt],q);_a!==null&&(sn=i(_a,sn,Tt),Ht===null?qe=_a:Ht.sibling=_a,Ht=_a)}if(Un()){var ia=Tt;Bi(E,ia)}return qe}for(var oa=a(E,St);Tt<C.length;Tt++){var Qn=D(oa,E,Tt,C[Tt],q);Qn!==null&&(e&&Qn.alternate!==null&&oa.delete(Qn.key===null?Tt:Qn.key),sn=i(Qn,sn,Tt),Ht===null?qe=Qn:Ht.sibling=Qn,Ht=Qn)}if(e&&oa.forEach(function(al){return t(E,al)}),Un()){var Fr=Tt;Bi(E,Fr)}return qe}function ie(E,j,C,q){var de=zt(C);if(typeof de!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&C[Symbol.toStringTag]==="Generator"&&(rv||d("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),rv=!0),C.entries===de&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var ue=de.call(C);if(ue)for(var Ne=null,qe=ue.next();!qe.done;qe=ue.next()){var Ht=qe.value;Ne=L(Ht,Ne,E)}}var St=de.call(C);if(St==null)throw new Error("An iterable object provided no iterator.");for(var sn=null,Tt=null,ln=j,Xn=0,$n=0,_a=null,ia=St.next();ln!==null&&!ia.done;$n++,ia=St.next()){ln.index>$n?(_a=ln,ln=null):_a=ln.sibling;var oa=y(E,ln,ia.value,q);if(oa===null){ln===null&&(ln=_a);break}e&&ln&&oa.alternate===null&&t(E,ln),Xn=i(oa,Xn,$n),Tt===null?sn=oa:Tt.sibling=oa,Tt=oa,ln=_a}if(ia.done){if(n(E,ln),Un()){var Qn=$n;Bi(E,Qn)}return sn}if(ln===null){for(;!ia.done;$n++,ia=St.next()){var Fr=b(E,ia.value,q);Fr!==null&&(Xn=i(Fr,Xn,$n),Tt===null?sn=Fr:Tt.sibling=Fr,Tt=Fr)}if(Un()){var al=$n;Bi(E,al)}return sn}for(var $u=a(E,ln);!ia.done;$n++,ia=St.next()){var mr=D($u,E,$n,ia.value,q);mr!==null&&(e&&mr.alternate!==null&&$u.delete(mr.key===null?$n:mr.key),Xn=i(mr,Xn,$n),Tt===null?sn=mr:Tt.sibling=mr,Tt=mr)}if(e&&$u.forEach(function(m_){return t(E,m_)}),Un()){var p_=$n;Bi(E,p_)}return sn}function Re(E,j,C,q){if(j!==null&&j.tag===Ue){n(E,j.sibling);var de=r(j,C);return de.return=E,de}n(E,j);var ue=nm(C,E.mode,q);return ue.return=E,ue}function Te(E,j,C,q){for(var de=C.key,ue=j;ue!==null;){if(ue.key===de){var Ne=C.type;if(Ne===V){if(ue.tag===Vt){n(E,ue.sibling);var qe=r(ue,C.props.children);return qe.return=E,qe._debugSource=C._source,qe._debugOwner=C._owner,qe}}else if(ue.elementType===Ne||aS(ue,C)||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===re&&Ky(Ne)===ue.type){n(E,ue.sibling);var Ht=r(ue,C.props);return Ht.ref=fu(E,ue,C),Ht.return=E,Ht._debugSource=C._source,Ht._debugOwner=C._owner,Ht}n(E,ue);break}else t(E,ue);ue=ue.sibling}if(C.type===V){var St=hi(C.props.children,E.mode,q,C.key);return St.return=E,St}else{var sn=tm(C,E.mode,q);return sn.ref=fu(E,j,C),sn.return=E,sn}}function pt(E,j,C,q){for(var de=C.key,ue=j;ue!==null;){if(ue.key===de)if(ue.tag===N&&ue.stateNode.containerInfo===C.containerInfo&&ue.stateNode.implementation===C.implementation){n(E,ue.sibling);var Ne=r(ue,C.children||[]);return Ne.return=E,Ne}else{n(E,ue);break}else t(E,ue);ue=ue.sibling}var qe=am(C,E.mode,q);return qe.return=E,qe}function lt(E,j,C,q){var de=typeof C=="object"&&C!==null&&C.type===V&&C.key===null;if(de&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Kn:return o(Te(E,j,C,q));case g:return o(pt(E,j,C,q));case re:var ue=C._payload,Ne=C._init;return lt(E,j,Ne(ue),q)}if(ot(C))return A(E,j,C,q);if(zt(C))return ie(E,j,C,q);Xs(E,C)}return typeof C=="string"&&C!==""||typeof C=="number"?o(Re(E,j,""+C,q)):(typeof C=="function"&&Qs(E),n(E,j))}return lt}var Fo=Zy(!0),Jy=Zy(!1);function Y1(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,a=to(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=to(n,n.pendingProps),a.return=t;a.sibling=null}}function I1(e,t){for(var n=e.child;n!==null;)OD(n,t),n=n.sibling}var uv=ni(null),sv;sv={};var Ks=null,Vo=null,cv=null,Zs=!1;function Js(){Ks=null,Vo=null,cv=null,Zs=!1}function eg(){Zs=!0}function tg(){Zs=!1}function ng(e,t,n){qn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Wn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(xo(a.childLanes,t)?r!==null&&!xo(r.childLanes,t)&&(r.childLanes=Je(r.childLanes,t)):(a.childLanes=Je(a.childLanes,t),r!==null&&(r.childLanes=Je(r.childLanes,t))),a===n)break;a=a.return}a!==n&&d("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function W1(e,t,n){q1(e,t,n)}function q1(e,t,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=void 0,i=a.dependencies;if(i!==null){r=a.child;for(var o=i.firstContext;o!==null;){if(o.context===t){if(a.tag===ne){var l=Ml(n),u=Ar(Gt,l);u.tag=tc;var f=a.updateQueue;if(f!==null){var v=f.shared,b=v.pending;b===null?u.next=u:(u.next=b.next,b.next=u),v.pending=u}}a.lanes=Je(a.lanes,n);var y=a.alternate;y!==null&&(y.lanes=Je(y.lanes,n)),dv(a.return,n,e),i.lanes=Je(i.lanes,n);break}o=o.next}}else if(a.tag===Ge)r=a.type===e.type?null:a.child;else if(a.tag===He){var D=a.return;if(D===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes=Je(D.lanes,n);var L=D.alternate;L!==null&&(L.lanes=Je(L.lanes,n)),dv(D,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var A=r.sibling;if(A!==null){A.return=r.return,r=A;break}r=r.return}a=r}}function Po(e,t){Ks=e,Vo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Ea(n.lanes,t)&&wu(),n.firstContext=null)}}function mn(e){Zs&&d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(cv!==e){var n={context:e,memoizedValue:t,next:null};if(Vo===null){if(Ks===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Vo=n,Ks.dependencies={lanes:Y,firstContext:n}}else Vo=Vo.next=n}return t}var qi=null;function vv(e){qi===null?qi=[e]:qi.push(e)}function G1(){if(qi!==null){for(var e=0;e<qi.length;e++){var t=qi[e],n=t.interleaved;if(n!==null){t.interleaved=null;var a=n.next,r=t.pending;if(r!==null){var i=r.next;r.next=a,n.next=i}t.pending=n}}qi=null}}function ag(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function X1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function Q1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function da(e,t){return ec(e,t)}var K1=ec;function ec(e,t){e.lanes=Je(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Je(n.lanes,t)),n===null&&(e.flags&(Ln|Mi))!==je&&Jb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=Je(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=Je(n.childLanes,t):(r.flags&(Ln|Mi))!==je&&Jb(e),a=r,r=r.return;if(a.tag===G){var i=a.stateNode;return i}else return null}var rg=0,ig=1,tc=2,pv=3,nc=!1,mv,ac;mv=!1,ac=null;function hv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Y},effects:null};e.updateQueue=t}function og(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function Ar(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function oi(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(d("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),mv=!0),Xw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,K1(e,n)}else return Q1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(bh(n)){var i=r.lanes;i=Th(i,e.pendingLanes);var o=Je(i,n);r.lanes=o,ud(e,o)}}}function yv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var f={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=f:(o.next=f,o=f),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function Z1(e,t,n,a,r,i){switch(n.tag){case ig:{var o=n.payload;if(typeof o=="function"){eg();var l=o.call(i,a,r);{if(e.mode&on){On(!0);try{o.call(i,a,r)}finally{On(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|Mt;case rg:{var u=n.payload,f;if(typeof u=="function"){eg(),f=u.call(i,a,r);{if(e.mode&on){On(!0);try{u.call(i,a,r)}finally{On(!1)}}tg()}}else f=u;return f==null?a:De({},a,f)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,f=u.next;u.next=null,o===null?i=f:o.next=f,o=u;var v=e.alternate;if(v!==null){var b=v.updateQueue,y=b.lastBaseUpdate;y!==o&&(y===null?b.firstBaseUpdate=f:y.next=f,b.lastBaseUpdate=u)}}if(i!==null){var D=r.baseState,L=Y,A=null,ie=null,Re=null,Te=i;do{var pt=Te.lane,lt=Te.eventTime;if(xo(a,pt)){if(Re!==null){var j={eventTime:lt,lane:An,tag:Te.tag,payload:Te.payload,callback:Te.callback,next:null};Re=Re.next=j}D=Z1(e,r,Te,D,t,n);var C=Te.callback;if(C!==null&&Te.lane!==An){e.flags|=eh;var q=r.effects;q===null?r.effects=[Te]:q.push(Te)}}else{var E={eventTime:lt,lane:pt,tag:Te.tag,payload:Te.payload,callback:Te.callback,next:null};Re===null?(ie=Re=E,A=D):Re=Re.next=E,L=Je(L,pt)}if(Te=Te.next,Te===null){if(l=r.shared.pending,l===null)break;var de=l,ue=de.next;de.next=null,Te=ue,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);Re===null&&(A=D),r.baseState=A,r.firstBaseUpdate=ie,r.lastBaseUpdate=Re;var Ne=r.shared.interleaved;if(Ne!==null){var qe=Ne;do L=Je(L,qe.lane),qe=qe.next;while(qe!==Ne)}else i===null&&(r.shared.lanes=Y);zu(L),e.lanes=L,e.memoizedState=D}ac=null}function J1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function lg(){nc=!1}function oc(){return nc}function ug(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,J1(o,n))}}var du={},li=ni(du),vu=ni(du),lc=ni(du);function uc(e){if(e===du)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function sg(){var e=uc(lc.current);return e}function gv(e,t){qn(lc,t,e),qn(vu,e,e),qn(li,du,e);var n=hx(t);Wn(li,e),qn(li,n,e)}function Bo(e){Wn(li,e),Wn(vu,e),Wn(lc,e)}function bv(){var e=uc(li.current);return e}function cg(e){uc(lc.current);var t=uc(li.current),n=yx(t,e.type);t!==n&&(qn(vu,e,e),qn(li,n,e))}function Sv(e){vu.current===e&&(Wn(li,e),Wn(vu,e))}var eR=0,fg=1,dg=1,pu=2,Ga=ni(eR);function Tv(e,t){return(e&t)!==0}function $o(e){return e&fg}function Ev(e,t){return e&fg|t}function tR(e,t){return e|t}function ui(e,t){qn(Ga,t,e)}function Yo(e){Wn(Ga,e)}function nR(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function sc(e){for(var t=e;t!==null;){if(t.tag===xe){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||My(a)||Vd(a))return t}}else if(t.tag===J&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Mt)!==je;if(r)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var va=0,hn=1,ur=2,yn=4,Hn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function aR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var fe=ve.ReactCurrentDispatcher,mu=ve.ReactCurrentBatchConfig,Rv,Io;Rv=new Set;var Gi=Y,Ut=null,gn=null,bn=null,cc=!1,hu=!1,yu=0,rR=0,iR=25,H=null,ja=null,si=-1,wv=!1;function Lt(){{var e=H;ja===null?ja=[e]:ja.push(e)}}function ee(){{var e=H;ja!==null&&(si++,ja[si]!==e&&oR(e))}}function Wo(e){e!=null&&!ot(e)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function oR(e){{var t=Qe(Ut);if(!Rv.has(t)&&(Rv.add(t),ja!==null)){for(var n="",a=30,r=0;r<=si;r++){for(var i=ja[r],o=r===si?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}d(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,n)}}}function Gn(){throw new 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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Dv(e,t){if(wv)return!1;if(t===null)return d("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ra(e[n],t[n]))return!1;return!0}function qo(e,t,n,a,r,i){Gi=i,Ut=t,ja=e!==null?e._debugHookTypes:null,si=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Y,e!==null&&e.memoizedState!==null?fe.current=jg:ja!==null?fe.current=Ag:fe.current=Og;var o=n(a,r);if(hu){var l=0;do{if(hu=!1,yu=0,l>=iR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,gn=null,bn=null,t.updateQueue=null,si=-1,fe.current=Ng,o=n(a,r)}while(hu)}fe.current=Cc,t._debugHookTypes=ja;var u=gn!==null&&gn.next!==null;if(Gi=Y,Ut=null,gn=null,bn=null,H=null,ja=null,si=-1,e!==null&&(e.flags&xr)!==(t.flags&xr)&&(e.mode&dt)!==Me&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Go(){var e=yu!==0;return yu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&rr)!==Me?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(fe.current=Cc,cc){for(var e=Ut.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Gi=Y,Ut=null,gn=null,bn=null,ja=null,si=-1,H=null,Dg=!1,hu=!1,yu=0}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?Ut.memoizedState=bn=e:bn=bn.next=e,bn}function Na(){var e;if(gn===null){var t=Ut.alternate;t!==null?e=t.memoizedState:e=null}else e=gn.next;var n;if(bn===null?n=Ut.memoizedState:n=bn.next,n!==null)bn=n,n=bn.next,gn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");gn=e;var a={memoizedState:gn.memoizedState,baseState:gn.baseState,baseQueue:gn.baseQueue,queue:gn.queue,next:null};bn===null?Ut.memoizedState=bn=a:bn=bn.next=a}return bn}function mg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function Mv(e,t,n){var a=sr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:Y,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=cR.bind(null,Ut,i);return[a.memoizedState,o]}function Lv(e,t,n){var a=Na(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=gn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var v=o.next,b=i.baseState,y=null,D=null,L=null,A=v;do{var ie=A.lane;if(xo(Gi,ie)){if(L!==null){var Te={lane:An,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};L=L.next=Te}if(A.hasEagerState)b=A.eagerState;else{var pt=A.action;b=e(b,pt)}}else{var Re={lane:ie,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};L===null?(D=L=Re,y=b):L=L.next=Re,Ut.lanes=Je(Ut.lanes,ie),zu(ie)}A=A.next}while(A!==null&&A!==v);L===null?y=b:L.next=D,Ra(b,a.memoizedState)||wu(),a.memoizedState=b,a.baseState=y,a.baseQueue=L,r.lastRenderedState=b}var lt=r.interleaved;if(lt!==null){var E=lt;do{var j=E.lane;Ut.lanes=Je(Ut.lanes,j),zu(j),E=E.next}while(E!==lt)}else o===null&&(r.lanes=Y);var C=r.dispatch;return[a.memoizedState,C]}function kv(e,t,n){var a=Na(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var v=f.action;l=e(l,v),f=f.next}while(f!==u);Ra(l,a.memoizedState)||wu(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function g_(e,t,n){}function b_(e,t,n){}function Ov(e,t,n){var a=Ut,r=sr(),i,o=Un();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=n(),Io||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Io=!0)}else{if(i=t(),!Io){var l=t();Ra(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)}var u=Bc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,Gi)||hg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,mc(gg.bind(null,a,f,e),[e]),a.flags|=qr,gu(hn|Hn,yg.bind(null,a,f,i,t),void 0,null),i}function fc(e,t,n){var a=Ut,r=Na(),i=t();if(!Io){var o=t();Ra(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)}var l=r.memoizedState,u=!Ra(l,i);u&&(r.memoizedState=i,wu());var f=r.queue;if(Su(gg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||bn!==null&&bn.memoizedState.tag&hn){a.flags|=qr,gu(hn|Hn,yg.bind(null,a,f,i,t),void 0,null);var v=Bc();if(v===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(v,Gi)||hg(a,t,i)}return i}function hg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=Ut.updateQueue;if(r===null)r=mg(),Ut.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function yg(e,t,n,a){t.value=n,t.getSnapshot=a,bg(t)&&Sg(e)}function gg(e,t,n){var a=function(){bg(t)&&Sg(e)};return n(a)}function bg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ra(n,a)}catch{return!0}}function Sg(e){var t=da(e,Be);t!==null&&Cn(t,e,Be,Gt)}function dc(e){var t=sr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:Y,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=fR.bind(null,Ut,n);return[t.memoizedState,a]}function Av(e){return Lv(_v)}function jv(e){return kv(_v)}function gu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Ut.updateQueue;if(i===null)i=mg(),Ut.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function Nv(e){var t=sr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=Na();return t.memoizedState}function bu(e,t,n,a){var r=sr(),i=a===void 0?null:a;Ut.flags|=e,r.memoizedState=gu(hn|t,n,void 0,i)}function pc(e,t,n,a){var r=Na(),i=a===void 0?null:a,o=void 0;if(gn!==null){var l=gn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=gu(t,n,o,i);return}}}Ut.flags|=e,r.memoizedState=gu(hn|t,n,o,i)}function mc(e,t){return(Ut.mode&rr)!==Me?bu(Of|qr|kf,Hn,e,t):bu(qr|kf,Hn,e,t)}function Su(e,t){return pc(qr,Hn,e,t)}function Uv(e,t){return bu(Ct,ur,e,t)}function hc(e,t){return pc(Ct,ur,e,t)}function Hv(e,t){var n=Ct;return n|=ki,(Ut.mode&rr)!==Me&&(n|=Gr),bu(n,yn,e,t)}function yc(e,t){return pc(Ct,yn,e,t)}function Tg(e,t){if(typeof t=="function"){var n=t,a=e();return n(a),function(){n(null)}}else if(t!=null){var r=t;r.hasOwnProperty("current")||d("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function zv(e,t,n){typeof t!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=Ct;return r|=ki,(Ut.mode&rr)!==Me&&(r|=Gr),bu(r,yn,Tg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null;return pc(Ct,yn,Tg.bind(null,t,e),a)}function lR(e,t){}var bc=lR;function Fv(e,t){var n=sr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=Na(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=sr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=Na(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Pv(e){var t=sr();return t.memoizedState=e,e}function Eg(e){var t=Na(),n=gn,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=Na();if(gn===null)return t.memoizedState=e,e;var n=gn.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!WT(Gi);if(a){if(!Ra(n,t)){var r=Sh();Ut.lanes=Je(Ut.lanes,r),zu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,wu()),e.memoizedState=n,n}function uR(e,t,n){var a=Ya();jn(tE(a,wr)),e(!0);var r=mu.transition;mu.transition={};var i=mu.transition;mu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(jn(a),mu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Oe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),i._updatedFibers.clear()}}}function Bv(){var e=dc(!1),t=e[0],n=e[1],a=uR.bind(null,n),r=sr();return r.memoizedState=a,[t,a]}function Rg(){var e=Av(),t=e[0],n=Na(),a=n.memoizedState;return[t,a]}function wg(){var e=jv(),t=e[0],n=Na(),a=n.memoizedState;return[t,a]}var Dg=!1;function sR(){return Dg}function $v(){var e=sr(),t=Bc(),n=t.identifierPrefix,a;if(Un()){var r=w1();a=":"+n+"R"+r;var i=yu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=rR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=Na(),t=e.memoizedState;return t}function cR(e,t,n){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=pi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=ag(e,t,r,a);if(i!==null){var o=ra();Cn(i,e,a,o),Lg(i,t,a)}}kg(e,a)}function fR(e,t,n){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=pi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))Mg(t,r);else{var i=e.alternate;if(e.lanes===Y&&(i===null||i.lanes===Y)){var o=t.lastRenderedReducer;if(o!==null){var l;l=fe.current,fe.current=Xa;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Ra(f,u)){X1(e,t,r,a);return}}catch{}finally{fe.current=l}}}var v=ag(e,t,r,a);if(v!==null){var b=ra();Cn(v,e,a,b),Lg(v,t,a)}}kg(e,a)}function _g(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function Mg(e,t){hu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lg(e,t,n){if(bh(n)){var a=t.lanes;a=Th(a,e.pendingLanes);var r=Je(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){Hf(e,t)}var Cc={readContext:mn,useCallback:Gn,useContext:Gn,useEffect:Gn,useImperativeHandle:Gn,useInsertionEffect:Gn,useLayoutEffect:Gn,useMemo:Gn,useReducer:Gn,useRef:Gn,useState:Gn,useDebugValue:Gn,useDeferredValue:Gn,useTransition:Gn,useMutableSource:Gn,useSyncExternalStore:Gn,useId:Gn,unstable_isNewReconciler:ze},Og=null,Ag=null,jg=null,Ng=null,cr=null,Xa=null,xc=null;{var Yv=function(){d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},$e=function(){d("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Og={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",Lt(),Wo(t),Fv(e,t)},useContext:function(e){return H="useContext",Lt(),mn(e)},useEffect:function(e,t){return H="useEffect",Lt(),Wo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Lt(),Wo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Lt(),Wo(t),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Lt(),Wo(t),Hv(e,t)},useMemo:function(e,t){H="useMemo",Lt(),Wo(t);var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",Lt();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",Lt(),Nv(e)},useState:function(e){H="useState",Lt();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Lt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Lt(),Pv(e)},useTransition:function(){return H="useTransition",Lt(),Bv()},useMutableSource:function(e,t,n){return H="useMutableSource",Lt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Lt(),Ov(e,t,n)},useId:function(){return H="useId",Lt(),$v()},unstable_isNewReconciler:ze},Ag={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Fv(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),Hv(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),Nv(e)},useState:function(e){H="useState",ee();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),void 0},useDeferredValue:function(e){return H="useDeferredValue",ee(),Pv(e)},useTransition:function(){return H="useTransition",ee(),Bv()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),Ov(e,t,n)},useId:function(){return H="useId",ee(),$v()},unstable_isNewReconciler:ze},jg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),Su(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=Xa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),vc()},useState:function(e){H="useState",ee();var t=fe.current;fe.current=Xa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),Eg(e)},useTransition:function(){return H="useTransition",ee(),Rg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),fc(e,t)},useId:function(){return H="useId",ee(),Ec()},unstable_isNewReconciler:ze},Ng={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",ee(),Sc(e,t)},useContext:function(e){return H="useContext",ee(),mn(e)},useEffect:function(e,t){return H="useEffect",ee(),Su(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",ee();var n=fe.current;fe.current=xc;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",ee();var a=fe.current;fe.current=xc;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",ee(),vc()},useState:function(e){H="useState",ee();var t=fe.current;fe.current=xc;try{return jv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",ee(),Cg(e)},useTransition:function(){return H="useTransition",ee(),wg()},useMutableSource:function(e,t,n){return H="useMutableSource",ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ee(),fc(e,t)},useId:function(){return H="useId",ee(),Ec()},unstable_isNewReconciler:ze},cr={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",$e(),Lt(),Fv(e,t)},useContext:function(e){return H="useContext",$e(),Lt(),mn(e)},useEffect:function(e,t){return H="useEffect",$e(),Lt(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",$e(),Lt(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",$e(),Lt(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",$e(),Lt(),Hv(e,t)},useMemo:function(e,t){H="useMemo",$e(),Lt();var n=fe.current;fe.current=cr;try{return Vv(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",$e(),Lt();var a=fe.current;fe.current=cr;try{return Mv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",$e(),Lt(),Nv(e)},useState:function(e){H="useState",$e(),Lt();var t=fe.current;fe.current=cr;try{return dc(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",$e(),Lt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",$e(),Lt(),Pv(e)},useTransition:function(){return H="useTransition",$e(),Lt(),Bv()},useMutableSource:function(e,t,n){return H="useMutableSource",$e(),Lt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",$e(),Lt(),Ov(e,t,n)},useId:function(){return H="useId",$e(),Lt(),$v()},unstable_isNewReconciler:ze},Xa={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",$e(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",$e(),ee(),mn(e)},useEffect:function(e,t){return H="useEffect",$e(),ee(),Su(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",$e(),ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",$e(),ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",$e(),ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",$e(),ee();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",$e(),ee();var a=fe.current;fe.current=Xa;try{return Lv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",$e(),ee(),vc()},useState:function(e){H="useState",$e(),ee();var t=fe.current;fe.current=Xa;try{return Av(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",$e(),ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",$e(),ee(),Eg(e)},useTransition:function(){return H="useTransition",$e(),ee(),Rg()},useMutableSource:function(e,t,n){return H="useMutableSource",$e(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",$e(),ee(),fc(e,t)},useId:function(){return H="useId",$e(),ee(),Ec()},unstable_isNewReconciler:ze},xc={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",$e(),ee(),Sc(e,t)},useContext:function(e){return H="useContext",$e(),ee(),mn(e)},useEffect:function(e,t){return H="useEffect",$e(),ee(),Su(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",$e(),ee(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",$e(),ee(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",$e(),ee(),yc(e,t)},useMemo:function(e,t){H="useMemo",$e(),ee();var n=fe.current;fe.current=Xa;try{return Tc(e,t)}finally{fe.current=n}},useReducer:function(e,t,n){H="useReducer",$e(),ee();var a=fe.current;fe.current=Xa;try{return kv(e,t,n)}finally{fe.current=a}},useRef:function(e){return H="useRef",$e(),ee(),vc()},useState:function(e){H="useState",$e(),ee();var t=fe.current;fe.current=Xa;try{return jv(e)}finally{fe.current=t}},useDebugValue:function(e,t){return H="useDebugValue",$e(),ee(),bc()},useDeferredValue:function(e){return H="useDeferredValue",$e(),ee(),Cg(e)},useTransition:function(){return H="useTransition",$e(),ee(),wg()},useMutableSource:function(e,t,n){return H="useMutableSource",$e(),ee(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",$e(),ee(),fc(e,t)},useId:function(){return H="useId",$e(),ee(),Ec()},unstable_isNewReconciler:ze}}var ci=_.unstable_now,Ug=0,Rc=-1,Tu=-1,wc=-1,Iv=!1,Dc=!1;function Hg(){return Iv}function dR(){Dc=!0}function vR(){Iv=!1,Dc=!1}function pR(){Iv=Dc,Dc=!1}function zg(){return Ug}function Fg(){Ug=ci()}function Wv(e){Tu=ci(),e.actualStartTime<0&&(e.actualStartTime=ci())}function Vg(e){Tu=-1}function _c(e,t){if(Tu>=0){var n=ci()-Tu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Tu=-1}}function fr(e){if(Rc>=0){var t=ci()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case G:var a=n.stateNode;a.effectDuration+=t;return;case mt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=ci()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case G:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case mt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function dr(){Rc=ci()}function Gv(){wc=ci()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Qa(e,t){if(e&&e.defaultProps){var n=De({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Zv,Jv,ep,tp,Pg,Mc,np,ap,rp,Eu;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Eu=new Set;var Bg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Bg.has(n)||(Bg.add(n),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Pg=function(e,t){if(t===void 0){var n=Et(e)||"Component";tp.has(n)||(tp.add(n),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&on){On(!0);try{i=n(a,r)}finally{On(!1)}}Pg(t,i)}var o=i==null?r:De({},r,i);if(e.memoizedState=o,e.lanes===Y){var l=e.updateQueue;l.baseState=o}}var op={isMounted:iT,enqueueSetState:function(e,t,n){var a=mo(e),r=ra(),i=pi(a),o=Ar(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=oi(a,o,i);l!==null&&(Cn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=mo(e),r=ra(),i=pi(a),o=Ar(r,i);o.tag=ig,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=oi(a,o,i);l!==null&&(Cn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=mo(e),a=ra(),r=pi(n),i=Ar(a,r);i.tag=tc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=oi(n,i,r);o!==null&&(Cn(o,n,r,a),rc(o,n,r)),UT(n,r)}};function $g(e,t,n,a,r,i,o){var l=e.stateNode;if(typeof l.shouldComponentUpdate=="function"){var u=l.shouldComponentUpdate(a,i,o);{if(e.mode&on){On(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{On(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Et(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Yl(n,a)||!Yl(r,i):!0}function mR(e,t,n){var a=e.stateNode;{var r=Et(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):d("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&d("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",r),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&d("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",r),a.propTypes&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Eu.has(t)&&(e.mode&on)===Me&&(Eu.add(t),d(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Eu.has(t)&&(e.mode&on)===Me&&(Eu.add(t),d(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Et(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Et(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||ot(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,tT(t,e),t._reactInternalInstance=Qv}function Ig(e,t,n){var a=!1,r=wa,i=wa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===x?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Et(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=jo(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?No(e,r):wa}var v=new t(n,i);if(e.mode&on){On(!0);try{v=new t(n,i)}finally{On(!1)}}var b=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;Yg(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&b===null){var y=Et(t)||"Component";Zv.has(y)||(Zv.add(y),d("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",y,v.state===null?"null":"undefined",y))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var D=null,L=null,A=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(D="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?A="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(A="UNSAFE_componentWillUpdate"),D!==null||L!==null||A!==null){var ie=Et(t)||"Component",Re=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(ie)||(ep.add(ie),d(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,ie,Re,D!==null?`
`+D:"",L!==null?`
`+L:"",A!==null?`
`+A:""))}}}return a&&jy(e,r,i),v}function hR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Qe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Wg(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Qe(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){mR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=mn(i);else{var o=jo(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=Et(t)||"Component";np.has(l)||(np.add(l),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&on&&qa.recordLegacyContextWarning(e,r),qa.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(hR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=Ct;f|=ki,(e.mode&rr)!==Me&&(f|=Gr),e.flags|=f}}function yR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=wa;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=jo(e,t,!0);u=No(e,f)}var v=t.getDerivedStateFromProps,b=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!b&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Wg(e,r,n,u),lg();var y=e.memoizedState,D=r.state=y;if(ic(e,n,r,a),D=e.memoizedState,i===n&&y===D&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var L=Ct;L|=ki,(e.mode&rr)!==Me&&(L|=Gr),e.flags|=L}return!1}typeof v=="function"&&(ip(e,t,v,n),D=e.memoizedState);var A=oc()||$g(e,t,i,n,y,D,u);if(A){if(!b&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var ie=Ct;ie|=ki,(e.mode&rr)!==Me&&(ie|=Gr),e.flags|=ie}}else{if(typeof r.componentDidMount=="function"){var Re=Ct;Re|=ki,(e.mode&rr)!==Me&&(Re|=Gr),e.flags|=Re}e.memoizedProps=n,e.memoizedState=D}return r.props=n,r.state=D,r.context=u,A}function gR(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Qa(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,b=wa;if(typeof v=="object"&&v!==null)b=mn(v);else{var y=jo(t,n,!0);b=No(t,y)}var D=n.getDerivedStateFromProps,L=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function";!L&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==b)&&Wg(t,i,a,b),lg();var A=t.memoizedState,ie=i.state=A;if(ic(t,a,i,r),ie=t.memoizedState,o===u&&A===ie&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=yo),!1;typeof D=="function"&&(ip(t,n,D,a),ie=t.memoizedState);var Re=oc()||$g(t,n,l,a,A,ie,b)||Fe;return Re?(!L&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ie,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ie,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=yo)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Ct),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=yo),t.memoizedProps=a,t.memoizedState=ie),i.props=a,i.state=ie,i.context=b,Re}function Xi(e,t){return{value:e,source:t,stack:Ti(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bR(e,t){return!0}function sp(e,t){try{var n=bR(e,t);if(n===!1)return;var a=t.value,r=t.source,i=t.stack,o=i!==null?i:"";if(a!=null&&a._suppressLogging){if(e.tag===ne)return;console.error(a)}var l=r?Qe(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",f;if(e.tag===G)f=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=Qe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var b=u+`
`+o+`
`+(""+f);console.error(b)}catch(y){setTimeout(function(){throw y})}}var SR=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Ar(Gt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){dD(r),sp(e,t)},a}function cp(e,t,n){var a=Ar(Gt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){rS(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){rS(e),sp(e,t),typeof r!="function"&&cD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(Ea(e.lanes,Be)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Qe(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new SR,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=vD.bind(null,e,t,n);$a&&Fu(e,n),t.then(i,i)}}function TR(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function ER(e,t){var n=e.tag;if((e.mode&dt)===Me&&(n===Se||n===Ce||n===B)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Xg(e){var t=e;do{if(t.tag===xe&&nR(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&dt)===Me){if(e===t)e.flags|=Ba;else{if(e.flags|=Mt,n.flags|=Mf,n.flags&=-52805,n.tag===ne){var i=n.alternate;if(i===null)n.tag=tt;else{var o=Ar(Gt,Be);o.tag=tc,oi(n,o,Be)}}n.lanes=Je(n.lanes,Be)}return e}return e.flags|=Ba,e.lanes=r,e}function CR(e,t,n,a,r){if(n.flags|=rs,$a&&Fu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;ER(n),Un()&&n.mode&dt&&Py();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&dt&&Gg(e,i,r),TR(o,e,i);return}else{if(!IT(r)){Gg(e,i,r),$p();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(Un()&&n.mode&dt){Py();var u=Xg(t);if(u!==null){(u.flags&Ba)===je&&(u.flags|=Di),Qg(u,t,n,e,r),nv(Xi(a,n));return}}a=Xi(a,n),nD(a);var f=t;do{switch(f.tag){case G:{var v=a;f.flags|=Ba;var b=Ml(r);f.lanes=Je(f.lanes,b);var y=qg(f,v,b);yv(f,y);return}case ne:var D=a,L=f.type,A=f.stateNode;if((f.flags&Mt)===je&&(typeof L.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&!Xb(A))){f.flags|=Ba;var ie=Ml(r);f.lanes=Je(f.lanes,ie);var Re=cp(f,D,ie);yv(f,Re);return}break}f=f.return}while(f!==null)}function xR(){return null}var Cu=ve.ReactCurrentOwner,Ka=!1,fp,xu,dp,vp,pp,Qi,mp,Lc,Ru;fp={},xu={},dp={},vp={},pp={},Qi=!1,mp={},Lc={},Ru={};function na(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=Fo(t,e.child,n,a)}function RR(e,t,n,a){t.child=Fo(t,e.child,null,a),t.child=Fo(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ia(i,a,"prop",Et(n))}var o=n.render,l=t.ref,u,f;Po(t,r),Cl(t);{if(Cu.current=t,Ma(!0),u=qo(e,t,o,a,l,r),f=Go(),t.mode&on){On(!0);try{u=qo(e,t,o,a,l,r),f=Go()}finally{On(!1)}}Ma(!1)}return So(),e!==null&&!Ka?(vg(e,t,r),jr(e,t,r)):(Un()&&f&&Qd(t),t.flags|=ho,na(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(LD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=nl(i),t.tag=B,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ia(l,a,"prop",Et(i)),n.defaultProps!==void 0){var u=Et(i)||"Unknown";Ru[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Ru[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,b=v.propTypes;b&&Ia(b,a,"prop",Et(v))}var y=e.child,D=xp(e,r);if(!D){var L=y.memoizedProps,A=n.compare;if(A=A!==null?A:Yl,A(L,a)&&e.ref===t.ref)return jr(e,t,r)}t.flags|=ho;var ie=to(y,a);return ie.ref=t.ref,ie.return=t,t.child=ie,ie}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===re){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Ia(f,a,"prop",Et(i))}}if(e!==null){var v=e.memoizedProps;if(Yl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Ka=!1,t.pendingProps=a=v,xp(e,r))(e.flags&Mf)!==je&&(Ka=!0);else return t.lanes=e.lanes,jr(e,t,r)}return hp(e,t,n,a,r)}function eb(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||at)if((t.mode&dt)===Me){var o={baseLanes:Y,cachePool:null,transitions:null};t.memoizedState=o,$c(t,n)}else if(Ea(n,La)){var b={baseLanes:Y,cachePool:null,transitions:null};t.memoizedState=b;var y=i!==null?i.baseLanes:n;$c(t,y)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=Je(f,n)}else u=n;t.lanes=t.childLanes=La;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,$c(t,u),null}else{var D;i!==null?(D=Je(i.baseLanes,n),t.memoizedState=null):D=n,$c(t,D)}return na(e,t,r,n),t.child}function wR(e,t,n){var a=t.pendingProps;return na(e,t,a,n),t.child}function DR(e,t,n){var a=t.pendingProps.children;return na(e,t,a,n),t.child}function _R(e,t,n){{t.flags|=Ct;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return na(e,t,i,n),t.child}function tb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=_i,t.flags|=Lf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ia(i,a,"prop",Et(n))}var o;{var l=jo(t,n,!0);o=No(t,l)}var u,f;Po(t,r),Cl(t);{if(Cu.current=t,Ma(!0),u=qo(e,t,n,a,o,r),f=Go(),t.mode&on){On(!0);try{u=qo(e,t,n,a,o,r),f=Go()}finally{On(!1)}}Ma(!1)}return So(),e!==null&&!Ka?(vg(e,t,r),jr(e,t,r)):(Un()&&f&&Qd(t),t.flags|=ho,na(e,t,u,r),t.child)}function nb(e,t,n,a,r){{switch(ID(t)){case!1:{var i=t.stateNode,o=t.type,l=new o(t.memoizedProps,i.context),u=l.state;i.updater.enqueueSetState(i,u,null);break}case!0:{t.flags|=Mt,t.flags|=Ba;var f=new Error("Simulated error coming from DevTools"),v=Ml(r);t.lanes=Je(t.lanes,v);var b=cp(t,Xi(f,t),v);yv(t,b);break}}if(t.type!==t.elementType){var y=n.propTypes;y&&Ia(y,a,"prop",Et(n))}}var D;lr(n)?(D=!0,Bs(t)):D=!1,Po(t,r);var L=t.stateNode,A;L===null?(Oc(e,t),Ig(t,n,a),lp(t,n,a,r),A=!0):e===null?A=yR(t,n,a,r):A=gR(e,t,n,a,r);var ie=yp(e,t,n,A,D,r);{var Re=t.stateNode;A&&Re.props!==a&&(Qi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Qe(t)||"a component"),Qi=!0)}return ie}function yp(e,t,n,a,r,i){tb(e,t);var o=(t.flags&Mt)!==je;if(!a&&!o)return r&&Hy(t,n,!1),jr(e,t,i);var l=t.stateNode;Cu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Vg();else{Cl(t);{if(Ma(!0),u=l.render(),t.mode&on){On(!0);try{l.render()}finally{On(!1)}}Ma(!1)}So()}return t.flags|=ho,e!==null&&o?RR(e,t,u,i):na(e,t,u,i),t.memoizedState=l.state,r&&Hy(t,n,!0),t.child}function ab(e){var t=e.stateNode;t.pendingContext?Ny(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ny(e,t.context,!1),gv(e,t.containerInfo)}function MR(e,t,n){if(ab(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var a=t.pendingProps,r=t.memoizedState,i=r.element;og(e,t),ic(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},f=t.updateQueue;if(f.baseState=u,t.memoizedState=u,t.flags&Di){var v=Xi(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return rb(e,t,l,n,v)}else if(l!==i){var b=Xi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return rb(e,t,l,n,b)}else{O1(t);var y=Jy(t,null,l,n);t.child=y;for(var D=y;D;)D.flags=D.flags&-3|Mi,D=D.sibling}}else{if(zo(),l===i)return jr(e,t,n);na(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return zo(),nv(r),t.flags|=Di,na(e,t,n,a),t.child}function LR(e,t,n){cg(t),e===null&&tv(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Ud(a,r);return l?o=null:i!==null&&Ud(a,i)&&(t.flags|=as),tb(e,t),na(e,t,o,n),t.child}function kR(e,t){return e===null&&tv(t),null}function OR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var f=t.tag=kD(u),v=Qa(u,r),b;switch(f){case Se:return gp(t,u),t.type=u=nl(u),b=hp(null,t,u,v,a),b;case ne:return t.type=u=Gp(u),b=nb(null,t,u,v,a),b;case Ce:return t.type=u=Xp(u),b=Kg(null,t,u,v,a),b;case et:{if(t.type!==t.elementType){var y=u.propTypes;y&&Ia(y,v,"prop",Et(u))}return b=Zg(null,t,u,Qa(u.type,v),a),b}}var D="";throw u!==null&&typeof u=="object"&&u.$$typeof===re&&(D=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+D))}function AR(e,t,n,a,r){Oc(e,t),t.tag=ne;var i;return lr(n)?(i=!0,Bs(t)):i=!1,Po(t,r),Ig(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function jR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=jo(t,n,!1);i=No(t,o)}Po(t,a);var l,u;Cl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=Et(n)||"Unknown";fp[f]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),fp[f]=!0)}t.mode&on&&qa.recordLegacyContextWarning(t,null),Ma(!0),Cu.current=t,l=qo(null,t,n,r,i,a),u=Go(),Ma(!1)}if(So(),t.flags|=ho,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=Et(n)||"Unknown";xu[v]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",v,v,v),xu[v]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var b=Et(n)||"Unknown";xu[b]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",b,b,b),xu[b]=!0)}t.tag=ne,t.memoizedState=null,t.updateQueue=null;var y=!1;return lr(n)?(y=!0,Bs(t)):y=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),Yg(t,l),lp(t,n,r,a),yp(null,t,n,!0,y,a)}else{if(t.tag=Se,t.mode&on){On(!0);try{l=qo(null,t,n,r,i,a),u=Go()}finally{On(!1)}}return Un()&&u&&Qd(t),na(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Ir();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=Et(t)||"Unknown";Ru[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Ru[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Et(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Et(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:An};function Sp(e){return{baseLanes:e,cachePool:xR(),transitions:null}}function NR(e,t){var n=null;return{baseLanes:Je(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function UR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,pu)}function HR(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;WD(t)&&(t.flags|=Mt);var r=Ga.current,i=!1,o=(t.flags&Mt)!==je;if(o||UR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=tR(r,dg)),r=$o(r),ui(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return BR(t,u)}var f=a.children,v=a.fallback;if(i){var b=zR(t,f,v,n),y=t.child;return y.memoizedState=Sp(n),t.memoizedState=bp,b}else return Tp(t,f)}else{var D=e.memoizedState;if(D!==null){var L=D.dehydrated;if(L!==null)return $R(e,t,o,a,L,D,n)}if(i){var A=a.fallback,ie=a.children,Re=VR(e,t,ie,A,n),Te=t.child,pt=e.child.memoizedState;return Te.memoizedState=pt===null?Sp(n):NR(pt,n),Te.childLanes=HR(e,n),t.memoizedState=bp,Re}else{var lt=a.children,E=FR(e,t,lt,n);return t.memoizedState=null,E}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function zR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&dt)===Me&&i!==null?(l=i,l.childLanes=Y,l.pendingProps=o,e.mode&Nt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=hi(n,r,a,null)):(l=Ep(o,r),u=hi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return oS(e,t,Y,null)}function ob(e,t){return to(e,t)}function FR(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&dt)===Me&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function VR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&dt)===Me&&t.child!==o){var v=t.child;f=v,f.childLanes=Y,f.pendingProps=u,t.mode&Nt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=ob(o,u),f.subtreeFlags=o.subtreeFlags&xr;var b;return l!==null?b=to(l,a):(b=hi(a,i,r,null),b.flags|=Ln),b.return=t,f.return=t,f.sibling=b,t.child=f,b}function kc(e,t,n,a){a!==null&&nv(a),Fo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=Ln,t.memoizedState=null,o}function PR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=hi(a,i,r,null);return u.flags|=Ln,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&dt)!==Me&&Fo(t,e.child,null,r),u}function BR(e,t,n){return(e.mode&dt)===Me?(d("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Be):Vd(t)?e.lanes=ji:e.lanes=La,null}function $R(e,t,n,a,r,i,o){if(n)if(t.flags&Di){t.flags&=-257;var E=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return kc(e,t,o,E)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Mt,null;var j=a.children,C=a.fallback,q=PR(e,t,j,C,o),de=t.child;return de.memoizedState=Sp(o),t.memoizedState=bp,q}else{if(L1(),(t.mode&dt)===Me)return kc(e,t,o,null);if(Vd(r)){var l,u,f;{var v=qx(r);l=v.digest,u=v.message,f=v.stack}var b;u?b=new Error(u):b=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var y=up(b,l,f);return kc(e,t,o,y)}var D=Ea(o,e.childLanes);if(Ka||D){var L=Bc();if(L!==null){var A=JT(L,o);if(A!==An&&A!==i.retryLane){i.retryLane=A;var ie=Gt;da(e,A),Cn(L,e,A,ie)}}$p();var Re=up(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return kc(e,t,o,Re)}else if(My(r)){t.flags|=Mt,t.child=e.child;var Te=pD.bind(null,e);return Gx(r,Te),null}else{A1(t,r,i.treeContext);var pt=a.children,lt=Tp(t,pt);return lt.flags|=Mi,lt}}}function lb(e,t,n){e.lanes=Je(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=Je(a.lanes,t)),dv(e.return,t,n)}function YR(e,t,n){for(var a=t;a!==null;){if(a.tag===xe){var r=a.memoizedState;r!==null&&lb(a,n,e)}else if(a.tag===J)lb(a,n,e);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function IR(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&sc(a)===null&&(n=t),t=t.sibling}return n}function WR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function qR(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ub(e,t){{var n=ot(e),a=!n&&typeof zt(e)=="function";if(n||a){var r=n?"array":"iterable";return d("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1}}return!0}function GR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(ot(e)){for(var n=0;n<e.length;n++)if(!ub(e[n],n))return}else{var a=zt(e);if(typeof a=="function"){var r=a.call(e);if(r)for(var i=r.next(),o=0;!i.done;i=r.next()){if(!ub(i.value,o))return;o++}}else d('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Cp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function sb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;WR(r),qR(i,r),GR(o,r),na(e,t,o,n);var l=Ga.current,u=Tv(l,pu);if(u)l=Ev(l,pu),t.flags|=Mt;else{var f=e!==null&&(e.flags&Mt)!==je;f&&YR(t,t.child,n),l=$o(l)}if(ui(t,l),(t.mode&dt)===Me)t.memoizedState=null;else switch(r){case"forwards":{var v=IR(t.child),b;v===null?(b=t.child,t.child=null):(b=v.sibling,v.sibling=null),Cp(t,!1,b,v,i);break}case"backwards":{var y=null,D=t.child;for(t.child=null;D!==null;){var L=D.alternate;if(L!==null&&sc(L)===null){t.child=D;break}var A=D.sibling;D.sibling=y,y=D,D=A}Cp(t,!0,y,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function XR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Fo(t,null,a,n):na(e,t,a,n),t.child}var cb=!1;function QR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||cb||(cb=!0,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Ia(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var f=o.value;if(Ra(f,l)){if(o.children===i.children&&!Vs())return jr(e,t,n)}else W1(t,r,n)}var v=i.children;return na(e,t,v,n),t.child}var fb=!1;function KR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(fb||(fb=!0,d("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):a=a._context;var r=t.pendingProps,i=r.children;typeof i!="function"&&d("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Po(t,n);var o=mn(a);Cl(t);var l;return Cu.current=t,Ma(!0),l=i(o),Ma(!1),So(),t.flags|=ho,na(e,t,l,n),t.child}function wu(){Ka=!0}function Oc(e,t){(t.mode&dt)===Me&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Ln)}function jr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Vg(),zu(t.lanes),Ea(n,t.childLanes)?(Y1(e,t),t.child):null}function ZR(e,t,n){{var a=t.return;if(a===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===a.child)a.child=n;else{var r=a.child;if(r===null)throw new Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw new Error("Expected to find the previous sibling.");r.sibling=n}var i=a.deletions;return i===null?(a.deletions=[e],a.flags|=wi):i.push(e),n.flags|=Ln,n}}function xp(e,t){var n=e.lanes;return!!Ea(n,t)}function JR(e,t,n){switch(t.tag){case G:ab(t),t.stateNode,zo();break;case ae:cg(t);break;case ne:{var a=t.type;lr(a)&&Bs(t);break}case N:gv(t,t.stateNode.containerInfo);break;case Ge:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case mt:{var o=Ea(n,t.childLanes);o&&(t.flags|=Ct);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case xe:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return ui(t,$o(Ga.current)),t.flags|=Mt,null;var f=t.child,v=f.childLanes;if(Ea(n,v))return ib(e,t,n);ui(t,$o(Ga.current));var b=jr(e,t,n);return b!==null?b.sibling:null}else ui(t,$o(Ga.current));break}case J:{var y=(e.flags&Mt)!==je,D=Ea(n,t.childLanes);if(y){if(D)return sb(e,t,n);t.flags|=Mt}var L=t.memoizedState;if(L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),ui(t,Ga.current),D)break;return null}case X:case Ot:return t.lanes=Y,eb(e,t,n)}return jr(e,t,n)}function db(e,t,n){if(t._debugNeedsRemount&&e!==null)return ZR(e,t,em(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Vs()||t.type!==e.type)Ka=!0;else{var i=xp(e,n);if(!i&&(t.flags&Mt)===je)return Ka=!1,JR(e,t,n);(e.flags&Mf)!==je?Ka=!0:Ka=!1}}else if(Ka=!1,Un()&&x1(t)){var o=t.index,l=R1();Vy(t,l,o)}switch(t.lanes=Y,t.tag){case nt:return jR(e,t,t.type,n);case kt:{var u=t.elementType;return OR(e,t,u,n)}case Se:{var f=t.type,v=t.pendingProps,b=t.elementType===f?v:Qa(f,v);return hp(e,t,f,b,n)}case ne:{var y=t.type,D=t.pendingProps,L=t.elementType===y?D:Qa(y,D);return nb(e,t,y,L,n)}case G:return MR(e,t,n);case ae:return LR(e,t,n);case Ue:return kR(e,t);case xe:return ib(e,t,n);case N:return XR(e,t,n);case Ce:{var A=t.type,ie=t.pendingProps,Re=t.elementType===A?ie:Qa(A,ie);return Kg(e,t,A,Re,n)}case Vt:return wR(e,t,n);case xt:return DR(e,t,n);case mt:return _R(e,t,n);case Ge:return QR(e,t,n);case Rt:return KR(e,t,n);case et:{var Te=t.type,pt=t.pendingProps,lt=Qa(Te,pt);if(t.type!==t.elementType){var E=Te.propTypes;E&&Ia(E,lt,"prop",Et(Te))}return lt=Qa(Te.type,lt),Zg(e,t,Te,lt,n)}case B:return Jg(e,t,t.type,t.pendingProps,n);case tt:{var j=t.type,C=t.pendingProps,q=t.elementType===j?C:Qa(j,C);return AR(e,t,j,q,n)}case J:return sb(e,t,n);case Ze:break;case X:return eb(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Xo(e){e.flags|=Ct}function vb(e){e.flags|=_i,e.flags|=Lf}var pb,Rp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ae||r.tag===Ue)Tx(e,r.stateNode);else if(r.tag!==N){if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===t)return;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rp=function(e,t){},mb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Cx(o,n,i,a,r,l);t.updateQueue=u,u&&Xo(t)}},hb=function(e,t,n,a){n!==a&&Xo(t)};function Du(e,t){if(!Un())switch(e.tailMode){case"hidden":{for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break}case"collapsed":{for(var r=e.tail,i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function zn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=Y,a=je;if(t){if((e.mode&Nt)!==Me){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=Je(n,Je(f.lanes,f.childLanes)),a|=f.subtreeFlags&xr,a|=f.flags&xr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=Je(n,Je(v.lanes,v.childLanes)),a|=v.subtreeFlags&xr,a|=v.flags&xr,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&Nt)!==Me){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=Je(n,Je(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=Je(n,Je(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function ew(e,t,n){if(z1()&&(t.mode&dt)!==Me&&(t.flags&Mt)===je)return qy(t),zo(),t.flags|=Di|rs|Ba,!1;var a=qs(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!a)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(U1(t),zn(t),(t.mode&Nt)!==Me){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(zo(),(t.flags&Mt)===je&&(t.memoizedState=null),t.flags|=Ct,zn(t),(t.mode&Nt)!==Me){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Gy(),!0}function yb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case nt:case kt:case B:case Se:case Ce:case Vt:case xt:case mt:case Rt:case et:return zn(t),null;case ne:{var r=t.type;return lr(r)&&Ps(t),zn(t),null}case G:{var i=t.stateNode;if(Bo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Xo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Di)!==je)&&(t.flags|=yo,Gy())}}return Rp(e,t),zn(t),null}case ae:{Sv(t);var u=sg(),f=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,f,a,u),e.ref!==t.ref&&vb(t);else{if(!a){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return zn(t),null}var v=bv(),b=qs(t);if(b)j1(t,u,v)&&Xo(t);else{var y=Sx(f,a,u,v,t);pb(y,t,!1,!1),t.stateNode=y,Ex(y,f,a,u)&&Xo(t)}t.ref!==null&&vb(t)}return zn(t),null}case Ue:{var D=a;if(e&&t.stateNode!=null){var L=e.memoizedProps;hb(e,t,L,D)}else{if(typeof D!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var A=sg(),ie=bv(),Re=qs(t);Re?N1(t)&&Xo(t):t.stateNode=xx(D,A,ie,t)}return zn(t),null}case xe:{Yo(t);var Te=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var pt=ew(e,t,Te);if(!pt)return t.flags&Ba?t:null}if((t.flags&Mt)!==je)return t.lanes=n,(t.mode&Nt)!==Me&&Xv(t),t;var lt=Te!==null,E=e!==null&&e.memoizedState!==null;if(lt!==E&&lt){var j=t.child;if(j.flags|=Li,(t.mode&dt)!==Me){var C=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);C||Tv(Ga.current,dg)?tD():$p()}}var q=t.updateQueue;if(q!==null&&(t.flags|=Ct),zn(t),(t.mode&Nt)!==Me&&lt){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case N:return Bo(t),Rp(e,t),e===null&&y1(t.stateNode.containerInfo),zn(t),null;case Ge:var ue=t.type._context;return fv(ue,t),zn(t),null;case tt:{var Ne=t.type;return lr(Ne)&&Ps(t),zn(t),null}case J:{Yo(t);var qe=t.memoizedState;if(qe===null)return zn(t),null;var Ht=(t.flags&Mt)!==je,St=qe.rendering;if(St===null)if(Ht)Du(qe,!1);else{var sn=aD()&&(e===null||(e.flags&Mt)===je);if(!sn)for(var Tt=t.child;Tt!==null;){var ln=sc(Tt);if(ln!==null){Ht=!0,t.flags|=Mt,Du(qe,!1);var Xn=ln.updateQueue;return Xn!==null&&(t.updateQueue=Xn,t.flags|=Ct),t.subtreeFlags=je,I1(t,n),ui(t,Ev(Ga.current,pu)),t.child}Tt=Tt.sibling}qe.tail!==null&&kn()>zb()&&(t.flags|=Mt,Ht=!0,Du(qe,!1),t.lanes=hh)}else{if(!Ht){var $n=sc(St);if($n!==null){t.flags|=Mt,Ht=!0;var _a=$n.updateQueue;if(_a!==null&&(t.updateQueue=_a,t.flags|=Ct),Du(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!St.alternate&&!Un())return zn(t),null}else kn()*2-qe.renderingStartTime>zb()&&n!==La&&(t.flags|=Mt,Ht=!0,Du(qe,!1),t.lanes=hh)}if(qe.isBackwards)St.sibling=t.child,t.child=St;else{var ia=qe.last;ia!==null?ia.sibling=St:t.child=St,qe.last=St}}if(qe.tail!==null){var oa=qe.tail;qe.rendering=oa,qe.tail=oa.sibling,qe.renderingStartTime=kn(),oa.sibling=null;var Qn=Ga.current;return Ht?Qn=Ev(Qn,pu):Qn=$o(Qn),ui(t,Qn),oa}return zn(t),null}case Ze:break;case X:case Ot:{Bp(t);var Fr=t.memoizedState,al=Fr!==null;if(e!==null){var $u=e.memoizedState,mr=$u!==null;mr!==al&&(t.flags|=Li)}return!al||(t.mode&dt)===Me?zn(t):Ea(pr,La)&&(zn(t),t.subtreeFlags&(Ln|Ct)&&(t.flags|=Li)),null}case Xe:return null;case $:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function tw(e,t,n){switch(Kd(t),t.tag){case ne:{var a=t.type;lr(a)&&Ps(t);var r=t.flags;return r&Ba?(t.flags=r&-65537|Mt,(t.mode&Nt)!==Me&&Xv(t),t):null}case G:{t.stateNode,Bo(t),qd(t),xv();var i=t.flags;return(i&Ba)!==je&&(i&Mt)===je?(t.flags=i&-65537|Mt,t):null}case ae:return Sv(t),null;case xe:{Yo(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zo()}var l=t.flags;return l&Ba?(t.flags=l&-65537|Mt,(t.mode&Nt)!==Me&&Xv(t),t):null}case J:return Yo(t),null;case N:return Bo(t),null;case Ge:var u=t.type._context;return fv(u,t),null;case X:case Ot:return Bp(t),null;case Xe:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case ne:{var a=t.type.childContextTypes;a!=null&&Ps(t);break}case G:{t.stateNode,Bo(t),qd(t),xv();break}case ae:{Sv(t);break}case N:Bo(t);break;case xe:Yo(t);break;case J:Yo(t);break;case Ge:var r=t.type._context;fv(r,t);break;case X:case Ot:Bp(t);break}}var bb=null;bb=new Set;var Ac=!1,Fn=!1,nw=typeof WeakSet=="function"?WeakSet:Set,he=null,Qo=null,Ko=null;function aw(e){wf(null,function(){throw e}),Df()}var rw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Nt)try{dr(),t.componentWillUnmount()}finally{fr(e)}else t.componentWillUnmount()};function Sb(e,t){try{fi(yn,e)}catch(n){Bt(e,t,n)}}function wp(e,t,n){try{rw(e,n)}catch(a){Bt(e,t,a)}}function iw(e,t,n){try{n.componentDidMount()}catch(a){Bt(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){Bt(e,t,n)}}function Zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ae&&st&&e.mode&Nt)try{dr(),a=n(null)}finally{fr(e)}else a=n(null)}catch(r){Bt(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Qe(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){Bt(e,t,a)}}var Eb=!1;function ow(e,t){gx(e.containerInfo),he=t,lw();var n=Eb;return Eb=!1,n}function lw(){for(;he!==null;){var e=he,t=e.child;(e.subtreeFlags&Af)!==je&&t!==null?(t.return=e,he=t):uw()}}function uw(){for(;he!==null;){var e=he;tn(e);try{sw(e)}catch(n){Bt(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function sw(e){var t=e.alternate,n=e.flags;if((n&yo)!==je){switch(tn(e),e.tag){case Se:case Ce:case B:break;case ne:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Qi&&(i.props!==e.memoizedProps&&d("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Qe(e)||"instance"),i.state!==e.memoizedState&&d("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Qe(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Qa(e.type,a),r);{var l=bb;o===void 0&&!l.has(e.type)&&(l.add(e.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Qe(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case G:{{var u=e.stateNode;$x(u.containerInfo)}break}case ae:case Ue:case N:case tt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Mn()}}function Za(e,t,n){var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next,o=i;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&((e&Hn)!==va?xT(t):(e&yn)!==va&&fh(t),(e&ur)!==va&&Vu(!0),jc(t,n,l),(e&ur)!==va&&Vu(!1),(e&Hn)!==va?RT():(e&yn)!==va&&dh())}o=o.next}while(o!==i)}}function fi(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&Hn)!==va?ET(t):(e&yn)!==va&&wT(t);var o=i.create;(e&ur)!==va&&Vu(!0),i.destroy=o(),(e&ur)!==va&&Vu(!1),(e&Hn)!==va?CT():(e&yn)!==va&&DT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&yn)!==je?u="useLayoutEffect":(i.tag&ur)!==je?u="useInsertionEffect":u="useEffect";var f=void 0;l===null?f=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?f=`
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function cw(e,t){if((t.flags&Ct)!==je)switch(t.tag){case mt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=zg(),l=t.alternate===null?"mount":"update";Hg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case G:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case mt:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function fw(e,t,n,a){if((n.flags&El)!==je)switch(n.tag){case Se:case Ce:case B:{if(!Fn)if(n.mode&Nt)try{dr(),fi(yn|hn,n)}finally{fr(n)}else fi(yn|hn,n);break}case ne:{var r=n.stateNode;if(n.flags&Ct&&!Fn)if(t===null)if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Qe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Qe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidMount()}finally{fr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Qe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Qe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{fr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Qe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Qe(n)||"instance")),ug(n,l,r));break}case G:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ae:f=n.child.stateNode;break;case ne:f=n.child.stateNode;break}ug(n,u,f)}break}case ae:{var v=n.stateNode;if(t===null&&n.flags&Ct){var b=n.type,y=n.memoizedProps;Mx(v,b,y)}break}case Ue:break;case N:break;case mt:{{var D=n.memoizedProps,L=D.onCommit,A=D.onRender,ie=n.stateNode.effectDuration,Re=zg(),Te=t===null?"mount":"update";Hg()&&(Te="nested-update"),typeof A=="function"&&A(n.memoizedProps.id,Te,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Re);{typeof L=="function"&&L(n.memoizedProps.id,Te,ie,Re),uD(n);var pt=n.return;e:for(;pt!==null;){switch(pt.tag){case G:var lt=pt.stateNode;lt.effectDuration+=ie;break e;case mt:var E=pt.stateNode;E.effectDuration+=ie;break e}pt=pt.return}}}break}case xe:{bw(e,n);break}case J:case tt:case Ze:case X:case Ot:case $:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Fn||n.flags&_i&&Cb(n)}function dw(e){switch(e.tag){case Se:case Ce:case B:{if(e.mode&Nt)try{dr(),Sb(e,e.return)}finally{fr(e)}else Sb(e,e.return);break}case ne:{var t=e.stateNode;typeof t.componentDidMount=="function"&&iw(e,e.return,t),Tb(e,e.return);break}case ae:{Tb(e,e.return);break}}}function vw(e,t){for(var n=null,a=e;;){if(a.tag===ae){if(n===null){n=a;try{var r=a.stateNode;t?Fx(r):Px(a.stateNode,a.memoizedProps)}catch(o){Bt(e,e.return,o)}}}else if(a.tag===Ue){if(n===null)try{var i=a.stateNode;t?Vx(i):Bx(i,a.memoizedProps)}catch(o){Bt(e,e.return,o)}}else if(!((a.tag===X||a.tag===Ot)&&a.memoizedState!==null&&a!==e)){if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;n===a&&(n=null),a=a.return}n===a&&(n=null),a.sibling.return=a.return,a=a.sibling}}function Cb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ae:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Nt)try{dr(),r=t(a)}finally{fr(e)}else r=t(a);typeof r=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Qe(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Qe(e)),t.current=a}}function pw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function xb(e){var t=e.alternate;t!==null&&(e.alternate=null,xb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ae){var n=e.stateNode;n!==null&&S1(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function mw(e){for(var t=e.return;t!==null;){if(Rb(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Rb(e){return e.tag===ae||e.tag===G||e.tag===N}function wb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Rb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ae&&t.tag!==Ue&&t.tag!==He;){if(t.flags&Ln||t.child===null||t.tag===N)continue e;t.child.return=t,t=t.child}if(!(t.flags&Ln))return t.stateNode}}function hw(e){var t=mw(e);switch(t.tag){case ae:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=wb(e);_p(e,a,n);break}case G:case N:{var r=t.stateNode.containerInfo,i=wb(e);Dp(e,i,r);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Dp(e,t,n){var a=e.tag,r=a===ae||a===Ue;if(r){var i=e.stateNode;t?Nx(n,i,t):Ax(n,i)}else if(a!==N){var o=e.child;if(o!==null){Dp(o,t,n);for(var l=o.sibling;l!==null;)Dp(l,t,n),l=l.sibling}}}function _p(e,t,n){var a=e.tag,r=a===ae||a===Ue;if(r){var i=e.stateNode;t?jx(n,i,t):Ox(n,i)}else if(a!==N){var o=e.child;if(o!==null){_p(o,t,n);for(var l=o.sibling;l!==null;)_p(l,t,n),l=l.sibling}}}var Vn=null,Ja=!1;function yw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ae:{Vn=a.stateNode,Ja=!1;break e}case G:{Vn=a.stateNode.containerInfo,Ja=!0;break e}case N:{Vn=a.stateNode.containerInfo,Ja=!0;break e}}a=a.return}if(Vn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Db(e,t,n),Vn=null,Ja=!1}pw(n)}function di(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(gT(n),n.tag){case ae:Fn||Zo(n,t);case Ue:{{var a=Vn,r=Ja;Vn=null,di(e,t,n),Vn=a,Ja=r,Vn!==null&&(Ja?Hx(Vn,n.stateNode):Ux(Vn,n.stateNode))}return}case He:{Vn!==null&&(Ja?zx(Vn,n.stateNode):Fd(Vn,n.stateNode));return}case N:{{var i=Vn,o=Ja;Vn=n.stateNode.containerInfo,Ja=!0,di(e,t,n),Vn=i,Ja=o}return}case Se:case Ce:case et:case B:{if(!Fn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,v=f;do{var b=v,y=b.destroy,D=b.tag;y!==void 0&&((D&ur)!==va?jc(n,t,y):(D&yn)!==va&&(fh(n),n.mode&Nt?(dr(),jc(n,t,y),fr(n)):jc(n,t,y),dh())),v=v.next}while(v!==f)}}}di(e,t,n);return}case ne:{if(!Fn){Zo(n,t);var L=n.stateNode;typeof L.componentWillUnmount=="function"&&wp(n,t,L)}di(e,t,n);return}case Ze:{di(e,t,n);return}case X:{if(n.mode&dt){var A=Fn;Fn=A||n.memoizedState!==null,di(e,t,n),Fn=A}else di(e,t,n);break}default:{di(e,t,n);return}}}function gw(e){e.memoizedState}function bw(e,t){var n=t.memoizedState;if(n===null){var a=t.alternate;if(a!==null){var r=a.memoizedState;if(r!==null){var i=r.dehydrated;i!==null&&a1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nw),t.forEach(function(a){var r=mD.bind(null,e,a);if(!n.has(a)){if(n.add(a),$a)if(Qo!==null&&Ko!==null)Fu(Ko,Qo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function Sw(e,t,n){Qo=n,Ko=e,tn(t),Mb(t,e),tn(t),Qo=null,Ko=null}function er(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{yw(e,t,i)}catch(u){Bt(i,t,u)}}var o=Wu();if(t.subtreeFlags&jf)for(var l=t.child;l!==null;)tn(l),Mb(l,e),l=l.sibling;tn(o)}function Mb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case Se:case Ce:case et:case B:{if(er(t,e),vr(e),r&Ct){try{Za(ur|hn,e,e.return),fi(ur|hn,e)}catch(Ne){Bt(e,e.return,Ne)}if(e.mode&Nt){try{dr(),Za(yn|hn,e,e.return)}catch(Ne){Bt(e,e.return,Ne)}fr(e)}else try{Za(yn|hn,e,e.return)}catch(Ne){Bt(e,e.return,Ne)}}return}case ne:{er(t,e),vr(e),r&_i&&a!==null&&Zo(a,a.return);return}case ae:{er(t,e),vr(e),r&_i&&a!==null&&Zo(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(Ne){Bt(e,e.return,Ne)}}if(r&Ct){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{Lx(o,v,f,u,l,e)}catch(Ne){Bt(e,e.return,Ne)}}}}return}case Ue:{if(er(t,e),vr(e),r&Ct){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var b=e.stateNode,y=e.memoizedProps,D=a!==null?a.memoizedProps:y;try{kx(b,D,y)}catch(Ne){Bt(e,e.return,Ne)}}return}case G:{if(er(t,e),vr(e),r&Ct&&a!==null){var L=a.memoizedState;if(L.isDehydrated)try{n1(t.containerInfo)}catch(Ne){Bt(e,e.return,Ne)}}return}case N:{er(t,e),vr(e);return}case xe:{er(t,e),vr(e);var A=e.child;if(A.flags&Li){var ie=A.stateNode,Re=A.memoizedState,Te=Re!==null;if(ie.isHidden=Te,Te){var pt=A.alternate!==null&&A.alternate.memoizedState!==null;pt||eD()}}if(r&Ct){try{gw(e)}catch(Ne){Bt(e,e.return,Ne)}_b(e)}return}case X:{var lt=a!==null&&a.memoizedState!==null;if(e.mode&dt){var E=Fn;Fn=E||lt,er(t,e),Fn=E}else er(t,e);if(vr(e),r&Li){var j=e.stateNode,C=e.memoizedState,q=C!==null,de=e;if(j.isHidden=q,q&&!lt&&(de.mode&dt)!==Me){he=de;for(var ue=de.child;ue!==null;)he=ue,Ew(ue),ue=ue.sibling}vw(de,q)}return}case J:{er(t,e),vr(e),r&Ct&&_b(e);return}case Ze:return;default:{er(t,e),vr(e);return}}}function vr(e){var t=e.flags;if(t&Ln){try{hw(e)}catch(n){Bt(e,e.return,n)}e.flags&=-3}t&Mi&&(e.flags&=-4097)}function Tw(e,t,n){Qo=n,Ko=t,he=e,Lb(e,t,n),Qo=null,Ko=null}function Lb(e,t,n){for(var a=(e.mode&dt)!==Me;he!==null;){var r=he,i=r.child;if(r.tag===X&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){Mp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,v=f||Fn,b=Ac,y=Fn;Ac=l,Fn=v,Fn&&!y&&(he=r,Cw(r));for(var D=i;D!==null;)he=D,Lb(D,t,n),D=D.sibling;he=r,Ac=b,Fn=y,Mp(e,t,n);continue}}(r.subtreeFlags&El)!==je&&i!==null?(i.return=r,he=i):Mp(e,t,n)}}function Mp(e,t,n){for(;he!==null;){var a=he;if((a.flags&El)!==je){var r=a.alternate;tn(a);try{fw(t,r,a,n)}catch(o){Bt(a,a.return,o)}Mn()}if(a===e){he=null;return}var i=a.sibling;if(i!==null){i.return=a.return,he=i;return}he=a.return}}function Ew(e){for(;he!==null;){var t=he,n=t.child;switch(t.tag){case Se:case Ce:case et:case B:{if(t.mode&Nt)try{dr(),Za(yn,t,t.return)}finally{fr(t)}else Za(yn,t,t.return);break}case ne:{Zo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case ae:{Zo(t,t.return);break}case X:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,he=n):kb(e)}}function kb(e){for(;he!==null;){var t=he;if(t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Cw(e){for(;he!==null;){var t=he,n=t.child;if(t.tag===X){var a=t.memoizedState!==null;if(a){Ob(e);continue}}n!==null?(n.return=t,he=n):Ob(e)}}function Ob(e){for(;he!==null;){var t=he;tn(t);try{dw(t)}catch(a){Bt(t,t.return,a)}if(Mn(),t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function xw(e,t,n,a){he=t,Rw(t,e,n,a)}function Rw(e,t,n,a){for(;he!==null;){var r=he,i=r.child;(r.subtreeFlags&go)!==je&&i!==null?(i.return=r,he=i):ww(e,t,n,a)}}function ww(e,t,n,a){for(;he!==null;){var r=he;if((r.flags&qr)!==je){tn(r);try{Dw(t,r,n,a)}catch(o){Bt(r,r.return,o)}Mn()}if(r===e){he=null;return}var i=r.sibling;if(i!==null){i.return=r.return,he=i;return}he=r.return}}function Dw(e,t,n,a){switch(t.tag){case Se:case Ce:case B:{if(t.mode&Nt){Gv();try{fi(Hn|hn,t)}finally{qv(t)}}else fi(Hn|hn,t);break}}}function _w(e){he=e,Mw()}function Mw(){for(;he!==null;){var e=he,t=e.child;if((he.flags&wi)!==je){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];he=r,Ow(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}he=e}}(e.subtreeFlags&go)!==je&&t!==null?(t.return=e,he=t):Lw()}}function Lw(){for(;he!==null;){var e=he;(e.flags&qr)!==je&&(tn(e),kw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function kw(e){switch(e.tag){case Se:case Ce:case B:{e.mode&Nt?(Gv(),Za(Hn|hn,e,e.return),qv(e)):Za(Hn|hn,e,e.return);break}}}function Ow(e,t){for(;he!==null;){var n=he;tn(n),jw(n,t),Mn();var a=n.child;a!==null?(a.return=n,he=a):Aw(e)}}function Aw(e){for(;he!==null;){var t=he,n=t.sibling,a=t.return;if(xb(t),t===e){he=null;return}if(n!==null){n.return=a,he=n;return}he=a}}function jw(e,t){switch(e.tag){case Se:case Ce:case B:{e.mode&Nt?(Gv(),Za(Hn,e,t),qv(e)):Za(Hn,e,t);break}}}function Nw(e){switch(e.tag){case Se:case Ce:case B:{try{fi(yn|hn,e)}catch(n){Bt(e,e.return,n)}break}case ne:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Bt(e,e.return,n)}break}}}function Uw(e){switch(e.tag){case Se:case Ce:case B:{try{fi(Hn|hn,e)}catch(t){Bt(e,e.return,t)}break}}}function Hw(e){switch(e.tag){case Se:case Ce:case B:{try{Za(yn|hn,e,e.return)}catch(n){Bt(e,e.return,n)}break}case ne:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function zw(e){switch(e.tag){case Se:case Ce:case B:try{Za(Hn|hn,e,e.return)}catch(t){Bt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var _u=Symbol.for;_u("selector.component"),_u("selector.has_pseudo_class"),_u("selector.role"),_u("selector.test_id"),_u("selector.text")}var Fw=[];function Vw(){Fw.forEach(function(e){return e()})}var Pw=ve.ReactCurrentActQueue;function Bw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Ab(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Pw.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var $w=Math.ceil,Lp=ve.ReactCurrentDispatcher,kp=ve.ReactCurrentOwner,Pn=ve.ReactCurrentBatchConfig,tr=ve.ReactCurrentActQueue,Sn=0,jb=1,Bn=2,Ua=4,Nr=0,Mu=1,Ki=2,Nc=3,Lu=4,Nb=5,Op=6,vt=Sn,aa=null,rn=null,Tn=Y,pr=Y,Ap=ni(Y),En=Nr,ku=null,Uc=Y,Ou=Y,Hc=Y,Au=null,pa=null,jp=0,Ub=500,Hb=1/0,Yw=500,Ur=null;function ju(){Hb=kn()+Yw}function zb(){return Hb}var zc=!1,Np=null,Jo=null,Zi=!1,vi=null,Nu=Y,Up=[],Hp=null,Iw=50,Uu=0,zp=null,Fp=!1,Fc=!1,Ww=50,el=0,Vc=null,Hu=Gt,Pc=Y,Fb=!1;function Bc(){return aa}function ra(){return(vt&(Bn|Ua))!==Sn?kn():(Hu!==Gt||(Hu=kn()),Hu)}function pi(e){var t=e.mode;if((t&dt)===Me)return Be;if((vt&Bn)!==Sn&&Tn!==Y)return Ml(Tn);var n=P1()!==V1;if(n){if(Pn.transition!==null){var a=Pn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Pc===An&&(Pc=Sh()),Pc}var r=Ya();if(r!==An)return r;var i=Rx();return i}function qw(e){var t=e.mode;return(t&dt)===Me?Be:XT()}function Cn(e,t,n,a){yD(),Fb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),Ll(e,n,a),(vt&Bn)!==Y&&e===aa?SD(t):($a&&Ch(e,t,n),TD(t),e===aa&&((vt&Bn)===Sn&&(Ou=Je(Ou,n)),En===Lu&&mi(e,Tn)),ma(e,a),n===Be&&vt===Sn&&(t.mode&dt)===Me&&!tr.isBatchingLegacy&&(ju(),Fy()))}function Gw(e,t,n){var a=e.current;a.lanes=t,Ll(e,t,n),ma(e,n)}function Xw(e){return(vt&Bn)!==Sn}function ma(e,t){var n=e.callbackNode;$T(e,t);var a=ss(e,e===aa?Tn:Y);if(a===Y){n!==null&&tS(n),e.callbackNode=null,e.callbackPriority=An;return}var r=Ui(a),i=e.callbackPriority;if(i===r&&!(tr.current!==null&&n!==Wp)){n==null&&i!==Be&&d("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&tS(n);var o;if(r===Be)e.tag===ai?(tr.isBatchingLegacy!==null&&(tr.didScheduleLegacyUpdate=!0),C1(Bb.bind(null,e))):zy(Bb.bind(null,e)),tr.current!==null?tr.current.push(ri):Dx(function(){(vt&(Bn|Ua))===Sn&&ri()}),o=null;else{var l;switch(wh(a)){case Ca:l=is;break;case wr:l=Nf;break;case Dr:l=Ai;break;case ds:l=Uf;break;default:l=Ai;break}o=qp(l,Vb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Vb(e,t){if(vR(),Hu=Gt,Pc=Y,(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");var n=e.callbackNode,a=zr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===aa?Tn:Y);if(r===Y)return null;var i=!cs(e,r)&&!GT(e,r)&&!t,o=i?iD(e,r):Yc(e,r);if(o!==Nr){if(o===Ki){var l=rd(e);l!==Y&&(r=l,o=Vp(e,l))}if(o===Mu){var u=ku;throw Ji(e,Y),mi(e,r),ma(e,kn()),u}if(o===Op)mi(e,r);else{var f=!cs(e,r),v=e.current.alternate;if(f&&!Kw(v)){if(o=Yc(e,r),o===Ki){var b=rd(e);b!==Y&&(r=b,o=Vp(e,b))}if(o===Mu){var y=ku;throw Ji(e,Y),mi(e,r),ma(e,kn()),y}}e.finishedWork=v,e.finishedLanes=r,Qw(e,o,r)}}return ma(e,kn()),e.callbackNode===n?Vb.bind(null,e):null}function Vp(e,t){var n=Au;if(vs(e)){var a=Ji(e,t);a.flags|=Di,h1(e.containerInfo)}var r=Yc(e,t);if(r!==Ki){var i=pa;pa=n,i!==null&&Pb(i)}return r}function Pb(e){pa===null?pa=e:pa.push.apply(pa,e)}function Qw(e,t,n){switch(t){case Nr:case Mu:throw new Error("Root did not complete. This is a bug in React.");case Ki:{eo(e,pa,Ur);break}case Nc:{if(mi(e,n),gh(n)&&!nS()){var a=jp+Ub-kn();if(a>10){var r=ss(e,Y);if(r!==Y)break;var i=e.suspendedLanes;if(!xo(i,n)){ra(),Eh(e,i);break}e.timeoutHandle=Hd(eo.bind(null,e,pa,Ur),a);break}}eo(e,pa,Ur);break}case Lu:{if(mi(e,n),qT(n))break;if(!nS()){var o=PT(e,n),l=o,u=kn()-l,f=hD(u)-u;if(f>10){e.timeoutHandle=Hd(eo.bind(null,e,pa,Ur),f);break}}eo(e,pa,Ur);break}case Nb:{eo(e,pa,Ur);break}default:throw new Error("Unknown root exit status.")}}function Kw(e){for(var t=e;;){if(t.flags&_f){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!Ra(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&_f&&u!==null){u.return=t,t=u;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function mi(e,t){t=fs(t,Hc),t=fs(t,Ou),KT(e,t)}function Bb(e){if(pR(),(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");zr();var t=ss(e,Y);if(!Ea(t,Be))return ma(e,kn()),null;var n=Yc(e,t);if(e.tag!==ai&&n===Ki){var a=rd(e);a!==Y&&(t=a,n=Vp(e,a))}if(n===Mu){var r=ku;throw Ji(e,Y),mi(e,t),ma(e,kn()),r}if(n===Op)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,eo(e,pa,Ur),ma(e,kn()),null}function Zw(e,t){t!==Y&&(ud(e,Je(t,Be)),ma(e,kn()),(vt&(Bn|Ua))===Sn&&(ju(),ri()))}function Pp(e,t){var n=vt;vt|=jb;try{return e(t)}finally{vt=n,vt===Sn&&!tr.isBatchingLegacy&&(ju(),Fy())}}function Jw(e,t,n,a,r){var i=Ya(),o=Pn.transition;try{return Pn.transition=null,jn(Ca),e(t,n,a,r)}finally{jn(i),Pn.transition=o,vt===Sn&&ju()}}function Hr(e){vi!==null&&vi.tag===ai&&(vt&(Bn|Ua))===Sn&&zr();var t=vt;vt|=jb;var n=Pn.transition,a=Ya();try{return Pn.transition=null,jn(Ca),e?e():void 0}finally{jn(a),Pn.transition=n,vt=t,(vt&(Bn|Ua))===Sn&&ri()}}function $b(){return(vt&(Bn|Ua))!==Sn}function $c(e,t){qn(Ap,pr,e),pr=Je(pr,t)}function Bp(e){pr=Ap.current,Wn(Ap,e)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=Y;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,wx(n)),rn!==null)for(var a=rn.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}aa=e;var i=to(e.current,null);return rn=i,Tn=pr=t,En=Nr,ku=null,Uc=Y,Ou=Y,Hc=Y,Au=null,pa=null,G1(),qa.discardPendingWarnings(),i}function Yb(e,t){do{var n=rn;try{if(Js(),pg(),Mn(),kp.current=null,n===null||n.return===null){En=Mu,ku=t,rn=null;return}if(Ae&&n.mode&Nt&&_c(n,!0),Ve)if(So(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;MT(n,a,Tn)}else _T(n,t,Tn);CR(e,n.return,n,t,Tn),Gb(n)}catch(r){t=r,rn===n&&n!==null?(n=n.return,rn=n):n=rn;continue}return}while(!0)}function Ib(){var e=Lp.current;return Lp.current=Cc,e===null?Cc:e}function Wb(e){Lp.current=e}function eD(){jp=kn()}function zu(e){Uc=Je(e,Uc)}function tD(){En===Nr&&(En=Nc)}function $p(){(En===Nr||En===Nc||En===Ki)&&(En=Lu),aa!==null&&(id(Uc)||id(Ou))&&mi(aa,Tn)}function nD(e){En!==Lu&&(En=Ki),Au===null?Au=[e]:Au.push(e)}function aD(){return En===Nr}function Yc(e,t){var n=vt;vt|=Bn;var a=Ib();if(aa!==e||Tn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,Tn),r.clear()),xh(e,t)}Ur=Rh(),Ji(e,t)}vh(t);do try{rD();break}catch(i){Yb(e,i)}while(!0);if(Js(),vt=n,Wb(a),rn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ph(),aa=null,Tn=Y,En}function rD(){for(;rn!==null;)qb(rn)}function iD(e,t){var n=vt;vt|=Bn;var a=Ib();if(aa!==e||Tn!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,Tn),r.clear()),xh(e,t)}Ur=Rh(),ju(),Ji(e,t)}vh(t);do try{oD();break}catch(i){Yb(e,i)}while(!0);return Js(),Wb(a),vt=n,rn!==null?(jT(),Nr):(ph(),aa=null,Tn=Y,En)}function oD(){for(;rn!==null&&!uT();)qb(rn)}function qb(e){var t=e.alternate;tn(e);var n;(e.mode&Nt)!==Me?(Wv(e),n=Yp(t,e,pr),_c(e,!0)):n=Yp(t,e,pr),Mn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):rn=n,kp.current=null}function Gb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===je){tn(t);var r=void 0;if((t.mode&Nt)===Me?r=yb(n,t,pr):(Wv(t),r=yb(n,t,pr),_c(t,!1)),Mn(),r!==null){rn=r;return}}else{var i=tw(n,t);if(i!==null){i.flags&=nT,rn=i;return}if((t.mode&Nt)!==Me){_c(t,!1);for(var o=t.actualDuration,l=t.child;l!==null;)o+=l.actualDuration,l=l.sibling;t.actualDuration=o}if(a!==null)a.flags|=rs,a.subtreeFlags=je,a.deletions=null;else{En=Op,rn=null;return}}var u=t.sibling;if(u!==null){rn=u;return}t=a,rn=t}while(t!==null);En===Nr&&(En=Nb)}function eo(e,t,n){var a=Ya(),r=Pn.transition;try{Pn.transition=null,jn(Ca),lD(e,t,n,a)}finally{Pn.transition=r,jn(a)}return null}function lD(e,t,n,a){do zr();while(vi!==null);if(gD(),(vt&(Bn|Ua))!==Sn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(TT(i),r===null)return ch(),null;if(i===Y&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Y,r===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=An;var o=Je(r.lanes,r.childLanes);ZT(e,o),e===aa&&(aa=null,rn=null,Tn=Y),((r.subtreeFlags&go)!==je||(r.flags&go)!==je)&&(Zi||(Zi=!0,Hp=n,qp(Ai,function(){return zr(),null})));var l=(r.subtreeFlags&(Af|jf|El|go))!==je,u=(r.flags&(Af|jf|El|go))!==je;if(l||u){var f=Pn.transition;Pn.transition=null;var v=Ya();jn(Ca);var b=vt;vt|=Ua,kp.current=null,ow(e,r),Fg(),Sw(e,r,i),bx(e.containerInfo),e.current=r,LT(i),Tw(r,e,i),kT(),sT(),vt=b,jn(v),Pn.transition=f}else e.current=r,Fg();var y=Zi;if(Zi?(Zi=!1,vi=e,Nu=i):(el=0,Vc=null),o=e.pendingLanes,o===Y&&(Jo=null),y||Zb(e.current,!1),hT(r.stateNode,a),$a&&e.memoizedUpdaters.clear(),Vw(),ma(e,kn()),t!==null)for(var D=e.onRecoverableError,L=0;L<t.length;L++){var A=t[L],ie=A.stack,Re=A.digest;D(A.value,{componentStack:ie,digest:Re})}if(zc){zc=!1;var Te=Np;throw Np=null,Te}return Ea(Nu,Be)&&e.tag!==ai&&zr(),o=e.pendingLanes,Ea(o,Be)?(dR(),e===zp?Uu++:(Uu=0,zp=e)):Uu=0,ri(),ch(),null}function zr(){if(vi!==null){var e=wh(Nu),t=nE(Dr,e),n=Pn.transition,a=Ya();try{return Pn.transition=null,jn(t),sD()}finally{jn(a),Pn.transition=n}}return!1}function uD(e){Up.push(e),Zi||(Zi=!0,qp(Ai,function(){return zr(),null}))}function sD(){if(vi===null)return!1;var e=Hp;Hp=null;var t=vi,n=Nu;if(vi=null,Nu=Y,(vt&(Bn|Ua))!==Sn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,OT(n);var a=vt;vt|=Ua,_w(t.current),xw(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];cw(t,o)}}AT(),Zb(t.current,!0),vt=a,ri(),Fc?t===Vc?el++:(el=0,Vc=t):el=0,Fp=!1,Fc=!1,yT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return Jo!==null&&Jo.has(e)}function cD(e){Jo===null?Jo=new Set([e]):Jo.add(e)}function fD(e){zc||(zc=!0,Np=e)}var dD=fD;function Qb(e,t,n){var a=Xi(n,t),r=qg(e,a,Be),i=oi(e,r,Be),o=ra();i!==null&&(Ll(i,Be,o),ma(i,o))}function Bt(e,t,n){if(aw(n),Vu(!1),e.tag===G){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===G){Qb(a,e,n);return}else if(a.tag===ne){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Xi(n,e),l=cp(a,o,Be),u=oi(a,l,Be),f=ra();u!==null&&(Ll(u,Be,f),ma(u,f));return}}a=a.return}d(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,n)}function vD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ra();Eh(e,n),ED(e),aa===e&&xo(Tn,n)&&(En===Lu||En===Nc&&gh(Tn)&&kn()-jp<Ub?Ji(e,Y):Hc=Je(Hc,n)),ma(e,r)}function Kb(e,t){t===An&&(t=qw(e));var n=ra(),a=da(e,t);a!==null&&(Ll(a,t,n),ma(a,n))}function pD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),Kb(e,n)}function mD(e,t){var n=An,a;switch(e.tag){case xe:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case J:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),Kb(e,n)}function hD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:$w(e/1960)*1960}function yD(){if(Uu>Iw)throw Uu=0,zp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");el>Ww&&(el=0,Vc=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function gD(){qa.flushLegacyContextWarning(),qa.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){tn(e),Ic(e,Gr,Hw),t&&Ic(e,Of,zw),Ic(e,Gr,Nw),t&&Ic(e,Of,Uw),Mn()}function Ic(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==je?a=a.child:((a.flags&t)!==je&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Wc=null;function Jb(e){{if((vt&Bn)!==Sn||!(e.mode&dt))return;var t=e.tag;if(t!==nt&&t!==G&&t!==ne&&t!==Se&&t!==Ce&&t!==et&&t!==B)return;var n=Qe(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=Jn;try{tn(e),d("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?tn(e):Mn()}}}var Yp;{var bD=null;Yp=function(e,t,n){var a=lS(bD,t);try{return db(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),pg(),gb(e,t),lS(t,a),t.mode&Nt&&Wv(t),wf(null,db,null,e,t,n),J0()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var eS=!1,Ip;Ip=new Set;function SD(e){if(Ei&&!sR())switch(e.tag){case Se:case Ce:case B:{var t=rn&&Qe(rn)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Qe(e)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case ne:{eS||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),eS=!0);break}}}function Fu(e,t){if($a){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Wp={};function qp(e,t){{var n=tr.current;return n!==null?(n.push(t),Wp):sh(e,t)}}function tS(e){if(e!==Wp)return lT(e)}function nS(){return tr.current!==null}function TD(e){{if(e.mode&dt){if(!Ab())return}else if(!Bw()||vt!==Sn||e.tag!==Se&&e.tag!==Ce&&e.tag!==B)return;if(tr.current===null){var t=Jn;try{tn(e),d(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Qe(e))}finally{t?tn(e):Mn()}}}}function ED(e){e.tag!==ai&&Ab()&&tr.current===null&&d(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Vu(e){Fb=e}var Ha=null,tl=null,CD=function(e){Ha=e};function nl(e){{if(Ha===null)return e;var t=Ha(e);return t===void 0?e:t.current}}function Gp(e){return nl(e)}function Xp(e){{if(Ha===null)return e;var t=Ha(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=nl(e.render);if(e.render!==n){var a={$$typeof:p,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function aS(e,t){{if(Ha===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case ne:{typeof a=="function"&&(r=!0);break}case Se:{(typeof a=="function"||i===re)&&(r=!0);break}case Ce:{(i===p||i===re)&&(r=!0);break}case et:case B:{(i===P||i===re)&&(r=!0);break}default:return!1}if(r){var o=Ha(n);if(o!==void 0&&o===Ha(a))return!0}return!1}}function rS(e){{if(Ha===null||typeof WeakSet!="function")return;tl===null&&(tl=new WeakSet),tl.add(e)}}var xD=function(e,t){{if(Ha===null)return;var n=t.staleFamilies,a=t.updatedFamilies;zr(),Hr(function(){Qp(e.current,a,n)})}},RD=function(e,t){{if(e.context!==wa)return;zr(),Hr(function(){Pu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case Se:case B:case ne:u=l;break;case Ce:u=l.render;break}if(Ha===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var b=Ha(u);b!==void 0&&(n.has(b)?v=!0:t.has(b)&&(o===ne?v=!0:f=!0))}if(tl!==null&&(tl.has(e)||a!==null&&tl.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var y=da(e,Be);y!==null&&Cn(y,e,Be,Gt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var wD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case Se:case B:case ne:l=o;break;case Ce:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?DD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function DD(e,t){{var n=_D(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ae:t.add(a.stateNode);return;case N:t.add(a.stateNode.containerInfo);return;case G:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function _D(e,t){for(var n=e,a=!1;;){if(n.tag===ae)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Zp;{Zp=!1;try{var iS=Object.preventExtensions({})}catch{Zp=!0}}function MD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=je,this.subtreeFlags=je,this.deletions=null,this.lanes=Y,this.childLanes=Y,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Da=function(e,t,n,a){return new MD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function LD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Jp(e)?ne:Se;if(e!=null){var t=e.$$typeof;if(t===p)return Ce;if(t===P)return et}return nt}function to(e,t){var n=e.alternate;n===null?(n=Da(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=je,n.subtreeFlags=je,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&xr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var a=e.dependencies;switch(n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case nt:case Se:case B:n.type=nl(e.type);break;case ne:n.type=Gp(e.type);break;case Ce:n.type=Xp(e.type);break}return n}function OD(e,t){e.flags&=xr|Ln;var n=e.alternate;if(n===null)e.childLanes=Y,e.lanes=t,e.child=null,e.subtreeFlags=je,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=je,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function AD(e,t,n){var a;return e===$s?(a=dt,t===!0&&(a|=on,a|=rr)):a=Me,$a&&(a|=Nt),Da(G,null,null,a)}function em(e,t,n,a,r,i){var o=nt,l=e;if(typeof e=="function")Jp(e)?(o=ne,l=Gp(l)):l=nl(l);else if(typeof e=="string")o=ae;else e:switch(e){case V:return hi(n.children,r,i,t);case k:o=xt,r|=on,(r&dt)!==Me&&(r|=rr);break;case S:return jD(n,r,i,t);case T:return ND(n,r,i,t);case R:return UD(n,r,i,t);case ut:return oS(n,r,i,t);case Le:case z:case it:case fn:case ce:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case x:o=Ge;break e;case c:o=Rt;break e;case p:o=Ce,l=Xp(l);break e;case P:o=et;break e;case re:o=kt,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var f=a?Qe(a):null;f&&(u+=`
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var v=Da(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function hi(e,t,n,a){var r=Da(Vt,e,a,t);return r.lanes=n,r}function jD(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Da(mt,e,a,t|Nt);return r.elementType=S,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function ND(e,t,n,a){var r=Da(xe,e,a,t);return r.elementType=T,r.lanes=n,r}function UD(e,t,n,a){var r=Da(J,e,a,t);return r.elementType=R,r.lanes=n,r}function oS(e,t,n,a){var r=Da(X,e,a,t);r.elementType=ut,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Da(Ue,e,null,t);return a.lanes=n,a}function HD(){var e=Da(ae,null,null,Me);return e.elementType="DELETED",e}function zD(e){var t=Da(He,null,null,Me);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Da(N,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function lS(e,t){return e===null&&(e=Da(nt,null,null,Me)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function FD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=ld(Y),this.expirationTimes=ld(Gt),this.pendingLanes=Y,this.suspendedLanes=Y,this.pingedLanes=Y,this.expiredLanes=Y,this.mutableReadLanes=Y,this.finishedLanes=Y,this.entangledLanes=Y,this.entanglements=ld(Y),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<zf;o++)i.push(new Set)}switch(t){case $s:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ai:this._debugRootType=n?"hydrate()":"render()";break}}function uS(e,t,n,a,r,i,o,l,u,f){var v=new FD(e,t,n,l,u),b=AD(t,i);v.current=b,b.stateNode=v;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};b.memoizedState=y}return hv(b),v}var rm="18.3.1";function VD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Rn(a),{$$typeof:g,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function sS(e){if(!e)return wa;var t=mo(e),n=E1(t);if(t.tag===ne){var a=t.type;if(lr(a))return Uy(t,a,n)}return n}function PD(e,t){{var n=mo(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=oh(n);if(r===null)return null;if(r.mode&on){var i=Qe(n)||"Component";if(!om[i]){om[i]=!0;var o=Jn;try{tn(r),n.mode&on?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):d("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?tn(o):Mn()}}}return r.stateNode}}function cS(e,t,n,a,r,i,o,l){var u=!1,f=null;return uS(e,t,u,f,n,a,r,i,o)}function fS(e,t,n,a,r,i,o,l,u,f){var v=!0,b=uS(n,a,v,e,r,i,o,l,u);b.context=sS(null);var y=b.current,D=ra(),L=pi(y),A=Ar(D,L);return A.callback=t??null,oi(y,A,L),Gw(b,L,D),b}function Pu(e,t,n,a){mT(t,e);var r=t.current,i=ra(),o=pi(r);NT(o);var l=sS(n);t.context===null?t.context=l:t.pendingContext=l,Ei&&Jn!==null&&!im&&(im=!0,d(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,Qe(Jn)||"Unknown"));var u=Ar(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=oi(r,u,o);return f!==null&&(Cn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ae:return t.child.stateNode;default:return t.child.stateNode}}function BD(e){switch(e.tag){case G:{var t=e.stateNode;if(vs(t)){var n=YT(t);Zw(t,n)}break}case xe:{Hr(function(){var r=da(e,Be);if(r!==null){var i=ra();Cn(r,e,Be,i)}});var a=Be;lm(e,a);break}}}function dS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=QT(n.retryLane,t))}function lm(e,t){dS(e,t);var n=e.alternate;n&&dS(n,t)}function $D(e){if(e.tag===xe){var t=wl,n=da(e,t);if(n!==null){var a=ra();Cn(n,e,t,a)}lm(e,t)}}function YD(e){if(e.tag===xe){var t=pi(e),n=da(e,t);if(n!==null){var a=ra();Cn(n,e,t,a)}lm(e,t)}}function vS(e){var t=oT(e);return t===null?null:t.stateNode}var pS=function(e){return null};function ID(e){return pS(e)}var mS=function(e){return!1};function WD(e){return mS(e)}var hS=null,yS=null,gS=null,bS=null,SS=null,TS=null,ES=null,CS=null,xS=null;{var RS=function(e,t,n){var a=t[n],r=ot(e)?e.slice():De({},e);return n+1===t.length?(ot(r)?r.splice(a,1):delete r[a],r):(r[a]=RS(e[a],t,n+1),r)},wS=function(e,t){return RS(e,t,0)},DS=function(e,t,n,a){var r=t[a],i=ot(e)?e.slice():De({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],ot(i)?i.splice(r,1):delete i[r]}else i[r]=DS(e[r],t,n,a+1);return i},_S=function(e,t,n){if(t.length!==n.length){Oe("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Oe("copyWithRename() expects paths to be the same except for the deepest key");return}return DS(e,t,n,0)},MS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=ot(e)?e.slice():De({},e);return i[r]=MS(e[r],t,n+1,a),i},LS=function(e,t,n){return MS(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};hS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=LS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=De({},e.memoizedProps);var o=da(e,Be);o!==null&&Cn(o,e,Be,Gt)}},yS=function(e,t,n){var a=um(e,t);if(a!==null){var r=wS(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=De({},e.memoizedProps);var i=da(e,Be);i!==null&&Cn(i,e,Be,Gt)}},gS=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_S(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=De({},e.memoizedProps);var o=da(e,Be);o!==null&&Cn(o,e,Be,Gt)}},bS=function(e,t,n){e.pendingProps=LS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Be);a!==null&&Cn(a,e,Be,Gt)},SS=function(e,t){e.pendingProps=wS(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=da(e,Be);n!==null&&Cn(n,e,Be,Gt)},TS=function(e,t,n){e.pendingProps=_S(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Be);a!==null&&Cn(a,e,Be,Gt)},ES=function(e){var t=da(e,Be);t!==null&&Cn(t,e,Be,Gt)},CS=function(e){pS=e},xS=function(e){mS=e}}function qD(e){var t=oh(e);return t===null?null:t.stateNode}function GD(e){return null}function XD(){return Jn}function QD(e){var t=e.findFiberByHostInstance,n=ve.ReactCurrentDispatcher;return pT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:hS,overrideHookStateDeletePath:yS,overrideHookStateRenamePath:gS,overrideProps:bS,overridePropsDeletePath:SS,overridePropsRenamePath:TS,setErrorHandler:CS,setSuspenseHandler:xS,scheduleUpdate:ES,currentDispatcherRef:n,findHostInstanceByFiber:qD,findFiberByHostInstance:t||GD,findHostInstancesForRefresh:wD,scheduleRefresh:xD,scheduleRoot:RD,setRefreshHandler:CD,getCurrentFiber:XD,reconcilerVersion:rm})}var kS=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?d("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xc(arguments[1])?d("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&d("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==pn){var a=vS(t.current);a&&a.parentNode!==n&&d("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Pu(e,t,null,null)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&d("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$b()&&d("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Hr(function(){Pu(null,e,null,null)}),ky(t)}};function KD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");OS(e);var n=!1,a=!1,r="",i=kS;t!=null&&(t.hydrate?Oe("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Kn&&d(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=cS(e,$s,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return ql(l),new sm(o)}function Gc(e){this._internalRoot=e}function ZD(e){e&&vE(e)}Gc.prototype.unstable_scheduleHydration=ZD;function JD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");OS(e),t===void 0&&d("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=kS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=fS(t,null,e,$s,a,i,o,l,u);if(Us(f.current,e),ql(e),r)for(var v=0;v<r.length;v++){var b=r[v];aR(f,b)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===ca||e.nodeType===Cr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===ca||e.nodeType===Cr||e.nodeType===mf||e.nodeType===pn&&e.nodeValue===" react-mount-point-unstable "))}function OS(e){e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ru(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var e_=ve.ReactCurrentOwner,AS;AS=function(e){if(e._reactRootContainer&&e.nodeType!==pn){var t=vS(e._reactRootContainer.current);t&&t.parentNode!==e&&d("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=cm(e),r=!!(a&&ti(a));r&&!n&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===Cr?e.documentElement:e.firstChild:null}function jS(){}function t_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var y=qc(o);i.call(y)}}var o=fS(t,a,e,ai,null,!1,!1,"",jS);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return ql(l),Hr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var y=qc(v);f.call(y)}}var v=cS(e,ai,null,!1,!1,"",jS);e._reactRootContainer=v,Us(v.current,e);var b=e.nodeType===pn?e.parentNode:e;return ql(b),Hr(function(){Pu(t,v,n,a)}),v}}function n_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){AS(n),n_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=t_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Pu(t,o,e,r)}return qc(o)}var NS=!1;function a_(e){{NS||(NS=!0,d("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=e_.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||d("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Et(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ca?e:PD(e,"findDOMNode")}function r_(e,t,n){if(d("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Qc(null,e,t,!0,n)}function i_(e,t,n){if(d("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Qc(null,e,t,!1,n)}function o_(e,t,n,a){if(d("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Bu(n))throw new Error("Target container is not a DOM element.");if(e==null||!eT(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var US=!1;function l_(e){if(US||(US=!0,d("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Bu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ru(e)&&e._reactRootContainer===void 0;t&&d("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=cm(e),a=n&&!ti(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Hr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&ti(r)),o=e.nodeType===ca&&Bu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}aE(BD),iE($D),oE(YD),lE(Ya),uE(eE),(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")&&d("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"),$0(sx),W0(Pp,Jw,Hr);function u_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(t))throw new Error("Target container is not a DOM element.");return VD(e,t,null,n)}function s_(e,t,n,a){return o_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[ti,Ao,Hs,qm,Gm,Pp]};function c_(e,t){return fm.usingClientEntryPoint||d('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t)}function f_(e,t,n){return fm.usingClientEntryPoint||d('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JD(e,t,n)}function d_(e){return $b()&&d("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Hr(e)}var v_=QD({findFiberByHostInstance:Vi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!v_&&Jt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HS=window.location.protocol;/^(https?|file):$/.test(HS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}la.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,la.createPortal=u_,la.createRoot=c_,la.findDOMNode=a_,la.flushSync=d_,la.hydrate=r_,la.hydrateRoot=f_,la.render=i_,la.unmountComponentAtNode=l_,la.unstable_batchedUpdates=Pp,la.unstable_renderSubtreeIntoContainer=s_,la.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),la}hm.exports=BS();var $S=hm.exports,Sm,Tm=$S;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(w,_){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(w,_)}finally{Em.usingClientEntryPoint=!1}}}const F=w=>{if(isNaN(w))return"00:00:00.000";const _=Math.floor(w/3600),ve=Math.floor(w%3600/60),be=Math.floor(w%60),pe=Math.round(w%1*1e3),Oe=String(_).padStart(2,"0"),d=String(ve).padStart(2,"0"),Z=String(be).padStart(2,"0"),Se=String(pe).padStart(3,"0");return`${Oe}:${d}:${Z}.${Se}`},yi=w=>F(w),YS=w=>F(w),oe={debug:(...w)=>{},error:(...w)=>console.error(...w),warn:(...w)=>console.warn(...w),info:(...w)=>console.info(...w)};var te=Zc();const IS=({videoRef:w,currentTime:_,duration:ve,isPlaying:be,isMuted:pe=!1,onPlayPause:Oe,onSeek:d,onToggleMute:Z})=>{var Xe;const Se=te.useRef(null),[ne,nt]=te.useState(!1),[G,N]=te.useState(!1),[ae,Ue]=te.useState(null),[Vt,xt]=te.useState(!1),Rt=te.useRef(!1),[Ge,Ce]=te.useState({x:0}),[mt,xe]=te.useState(0),et=typeof window<"u"&&((Xe=window.MEDIA_DATA)==null?void 0:Xe.videoUrl)||"/videos/sample-video-37s.mp4";te.useEffect(()=>{if(nt((()=>{const I=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(I)&&!window.MSStream})()),typeof window<"u"){const I=localStorage.getItem("video_initialized")==="true";N(I)}},[]),te.useEffect(()=>{be&&!G&&(N(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[be,G]),te.useEffect(()=>{const $=w.current;if(!$)return;$.setAttribute("playsinline","true"),$.setAttribute("webkit-playsinline","true"),$.setAttribute("x-webkit-airplay","allow");const I=()=>{Rt.current||(Ue($.currentTime),typeof window<"u"&&(window.lastSeekedPosition=$.currentTime))},ze=()=>{ne&&(N(!0),localStorage.setItem("video_initialized","true"))},Fe=()=>{};return $.addEventListener("timeupdate",I),$.addEventListener("play",ze),$.addEventListener("pause",Fe),()=>{$.removeEventListener("timeupdate",I),$.removeEventListener("play",ze),$.removeEventListener("pause",Fe)}},[w,ne,Rt]),te.useEffect(()=>{Ue(_)},[_]);const B=ve>0?_/ve*100:0,kt=$=>{$.preventDefault(),xt(!0),Rt.current=!0,tt($);const I=Fe=>{Rt.current&&tt(Fe)},ze=()=>{xt(!1),Rt.current=!1,document.removeEventListener("mousemove",I),document.removeEventListener("mouseup",ze)};document.addEventListener("mousemove",I),document.addEventListener("mouseup",ze)},tt=$=>{if(!Se.current)return;const I=Se.current.getBoundingClientRect(),ze=Math.max(0,Math.min(1,($.clientX-I.left)/I.width)),Fe=ve*ze;Ce({x:$.clientX}),xe(Fe),Ue(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)},He=$=>{if(!Se.current||!$.touches[0])return;$.preventDefault(),xt(!0),Rt.current=!0,J($);const I=Fe=>{Rt.current&&J(Fe)},ze=()=>{xt(!1),Rt.current=!1,document.removeEventListener("touchmove",I),document.removeEventListener("touchend",ze),document.removeEventListener("touchcancel",ze)};document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",ze),document.addEventListener("touchcancel",ze)},J=$=>{if(!Se.current)return;const I="touches"in $?$.touches[0]:null;if(!I)return;$.preventDefault();const ze=Se.current.getBoundingClientRect(),Fe=Math.max(0,Math.min(1,(I.clientX-ze.left)/ze.width)),at=ve*Fe;Ce({x:I.clientX}),xe(at),Ue(at),typeof window<"u"&&(window.lastSeekedPosition=at),d(at)},Ze=$=>{if(!Vt&&Se.current){const I=Se.current.getBoundingClientRect(),ze=($.clientX-I.left)/I.width,Fe=ve*ze;Ue(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)}},X=()=>{w.current&&(document.fullscreenElement?document.exitFullscreen():w.current.requestFullscreen())},Ot=()=>{const $=w.current;$&&($.paused?ne&&ae!==null&&ae>0?($.currentTime=ae,setTimeout(()=>{w.current&&w.current.play().then(()=>{var I;oe.debug("iOS: Play started successfully at position:",(I=w.current)==null?void 0:I.currentTime),Oe()}).catch(I=>{console.error("iOS: Error playing video:",I)})},50)):$.play().then(()=>{Oe()}).catch(I=>{console.error("Error playing video:",I)}):($.pause(),Oe()))};return m.jsxs("div",{className:"video-player-container",children:[m.jsxs("video",{ref:w,preload:"auto",crossOrigin:"anonymous",onClick:Ot,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:pe,children:[m.jsx("source",{src:et,type:"video/mp4"}),m.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),ne&&!G&&!be&&m.jsx("div",{className:"ios-first-play-indicator",children:m.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),m.jsx("div",{className:`play-pause-indicator ${be?"pause-icon":"play-icon"}`}),m.jsxs("div",{className:"video-controls",children:[m.jsxs("div",{className:"video-time-display",children:[m.jsx("span",{className:"video-current-time",children:yi(_)}),m.jsxs("span",{className:"video-duration",children:["/ ",yi(ve)]})]}),m.jsxs("div",{ref:Se,className:`video-progress ${Vt?"dragging":""}`,onClick:Ze,onMouseDown:kt,onTouchStart:He,children:[m.jsx("div",{className:"video-progress-fill",style:{width:`${B}%`}}),m.jsx("div",{className:"video-scrubber",style:{left:`${B}%`}}),Vt&&m.jsx("div",{className:"video-time-tooltip",style:{left:`${Ge.x}px`,transform:"translateX(-50%)"},children:F(mt)})]}),m.jsxs("div",{className:"video-controls-buttons",children:[Z&&m.jsx("button",{className:"mute-button","aria-label":pe?"Unmute":"Mute",onClick:Z,"data-tooltip":pe?"Unmute":"Mute",children:pe?m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),m.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),m.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),m.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),m.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),m.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),m.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:X,"data-tooltip":"Toggle fullscreen",children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 010-2h4a1 1 0 011 1v4a1 1 0 01-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 012 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 010 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 010-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"})})})]})]})]})},tf=(w,_)=>{const ve=Math.min(Math.max(w/(_||1),0),1),be=210,pe=40+Math.floor(ve*20),Oe=85+Math.floor(ve*8);return`hsl(${be}, ${pe}%, ${Oe}%)`},Cm=async(w,_)=>new Promise(ve=>{const be=document.createElement("canvas");be.width=10,be.height=10;const pe=be.getContext("2d");if(pe){const d=tf(_,w.duration);pe.fillStyle=d,pe.fillRect(0,0,be.width,be.height)}const Oe=be.toDataURL("image/png",.5);ve(Oe)}),no=({isOpen:w,onClose:_,title:ve,children:be,actions:pe})=>{if(te.useEffect(()=>{const d=Z=>{Z.key==="Escape"&&w&&_()};return document.addEventListener("keydown",d),w&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[w,_]),!w)return null;const Oe=d=>{d.target===d.currentTarget&&_()};return m.jsx("div",{className:"modal-overlay",onClick:Oe,children:m.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h2",{className:"modal-title",children:ve}),m.jsx("button",{className:"modal-close-button",onClick:_,"aria-label":"Close modal",children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),m.jsx("div",{className:"modal-content",children:be}),pe&&m.jsx("div",{className:"modal-actions",children:pe})]})})},xm=w=>new Promise(_=>setTimeout(_,w)),nf=async(w,_)=>{try{const ve=await fetch(`/api/v1/media/${w}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)});if(!ve.ok)if(ve.status===400)try{return{status:400,error:(await ve.json()).error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:400,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else if(ve.status!==404)try{const pe=await ve.json();return{status:ve.status,error:pe.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:ve.status,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${w}`};const be=await ve.json();return{status:200,msg:"Video Processed Successfully",url_redirect:be.url_redirect||`./view?m=${w}`,...be}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${w}`}}},Rm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23333333;}%20.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%20%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cpath%20class='st0'%20d='M350.45,277.5l-164.08,94.73c-16.55,9.56-37.24-2.39-37.24-21.5V161.27c0-19.11,20.69-31.06,37.24-21.5%20l164.08,94.73C367,244.06,367,267.94,350.45,277.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",wm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M208.15,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C218.47,375.57,213.85,380.19,208.15,380.19z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M395.04,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C405.36,375.57,400.74,380.19,395.04,380.19z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Dm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M85.26,277.5l164.08,94.73c16.55,9.56,37.24-2.39,37.24-21.5V161.27c0-19.11-20.69-31.06-37.24-21.5%20L85.26,234.5C68.71,244.06,68.71,267.94,85.26,277.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M377.47,375.59h41.42c11.19,0,20.26-9.07,20.26-20.26V156.67c0-11.19-9.07-20.26-20.26-20.26h-41.42%20c-11.19,0-20.26,9.07-20.26,20.26v198.67C357.21,366.52,366.28,375.59,377.47,375.59z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(28,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",GS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(30,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",XS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",QS={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},_m=w=>{let _=`${w}%`,ve="translateX(-50%)";return w<17?(_="0%",ve="none"):w>83&&(_="100%",ve="translateX(-100%)"),{left:_,transform:ve}},KS=({currentTime:w,duration:_,thumbnails:ve,trimStart:be,trimEnd:pe,splitPoints:Oe,zoomLevel:d,clipSegments:Z,onTrimStartChange:Se,onTrimEndChange:ne,onZoomChange:nt,onSeek:G,videoRef:N,onSave:ae,onSaveACopy:Ue,onSaveSegments:Vt,isPreviewMode:xt,hasUnsavedChanges:Rt=!1,isIOSUninitialized:Ge=!1,isPlaying:Ce,setIsPlaying:mt,onPlayPause:xe,isPlayingSegments:et=!1})=>{const B=te.useRef(null),kt=te.useRef(null),tt=te.useRef(null),[He,J]=te.useState(null),[Ze,X]=te.useState(!1),[Ot,Xe]=te.useState({x:0,y:0}),[$,I]=te.useState(0),[ze,Fe]=te.useState(!1),[at,ht]=te.useState(30),[Ke,Ve]=te.useState(!1),[Ae,st]=te.useState(null),[$t,Ye]=te.useState(0),[At,rt]=te.useState(!1),Ie=te.useRef(null),Jt=g=>{const V=g;let k=null,S=null,x=$;const c=()=>{const p=V<0?Math.max(0,x+V):Math.min(_,x+V);x=p;const T=Ke;if(G(p),I(p),Ye(p),B.current){const R=B.current.getBoundingClientRect(),P=p/_*100,re=R.left+R.width*(P/100);Xe({x:re,y:R.top-10});const z=Z.find(ce=>p>=ce.startTime&&p<=ce.endTime);if(z)J(z.id),X(!1);else{J(null);const ce=bt(p);ht(ce),X(!0)}}T&&N.current&&(N.current.play(),Ve(!0))};return{onMouseDown:p=>{p.stopPropagation(),p.preventDefault(),x=$,c(),k=setTimeout(()=>{S=setInterval(c,200)},750);const T=()=>{k&&(clearTimeout(k),k=null),S&&(clearInterval(S),S=null),document.removeEventListener("mouseup",T),document.removeEventListener("mouseleave",T)};document.addEventListener("mouseup",T),document.addEventListener("mouseleave",T)},onTouchStart:p=>{p.stopPropagation(),p.preventDefault(),x=$,c(),k=setTimeout(()=>{S=setInterval(c,200)},750);const T=()=>{k&&(clearTimeout(k),k=null),S&&(clearInterval(S),S=null),document.removeEventListener("touchend",T),document.removeEventListener("touchcancel",T)};document.addEventListener("touchend",T),document.addEventListener("touchcancel",T)},onClick:p=>{p.stopPropagation()}}},[xn,Xt]=te.useState(!1),[cn,Yt]=te.useState(!1),[an,Rn]=te.useState(!1),[U,W]=te.useState(!1),[me,le]=te.useState(!1),[Ee,we]=te.useState(!1),[yt,_e]=te.useState(""),[ct,wt]=te.useState(""),[un,wn]=te.useState(""),[Q,ye]=te.useState("save"),Pe=_>0?w/_*100:0,gt=_>0?be/_*100:0,Pt=_>0?pe/_*100:0,Qt=async()=>{var g,V;Xt(!1),W(!0),ye("save");try{const k=Z.map(p=>({startTime:F(p.startTime),endTime:F(p.endTime)})),S=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,x=typeof window<"u"&&((V=window.MEDIA_DATA)==null?void 0:V.redirectURL)||null;oe.debug("Save request:",{mediaId:S,segments:k,saveAsCopy:!1,redirectURL:x});const c=await nf(S,{segments:k,saveAsCopy:!1});if(oe.debug("Save response:",c),W(!1),c.status===200){const p=x||c.url_redirect;oe.debug("Using redirect URL:",p),wn(p),_e("Video saved successfully!"),le(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";oe.debug("Save error (400):",p),wt(p),we(!0)}else oe.debug("Save error (unknown status):",c),wt("An unexpected error occurred"),we(!0)}catch(k){oe.error("Error processing video:",k),W(!1);const S=k instanceof Error?k.message:"An error occurred during processing";wt(S),we(!0)}},Kt=async()=>{var g,V;Yt(!1),W(!0),ye("copy");try{const k=Z.map(p=>({startTime:F(p.startTime),endTime:F(p.endTime)})),S=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,x=typeof window<"u"&&((V=window.MEDIA_DATA)==null?void 0:V.redirectUserMediaURL)||null;oe.debug("Save as copy request:",{mediaId:S,segments:k,saveAsCopy:!0,redirectUserMediaURL:x});const c=await nf(S,{segments:k,saveAsCopy:!0});if(oe.debug("Save as copy response:",c),W(!1),c.status===200){const p=x||c.url_redirect;oe.debug("Using redirect user media URL:",p),wn(p),_e("Video saved as a new copy!"),le(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";oe.debug("Save as copy error (400):",p),wt(p),we(!0)}else oe.debug("Save as copy error (unknown status):",c),wt("An unexpected error occurred"),we(!0)}catch(k){oe.error("Error processing video:",k),W(!1);const S=k instanceof Error?k.message:"An error occurred during processing";wt(S),we(!0)}},Dn=async()=>{var g,V;Rn(!1),W(!0),ye("segments");try{const k=Z.map(p=>({startTime:F(p.startTime),endTime:F(p.endTime),name:p.name})),S=typeof window<"u"&&((g=window.MEDIA_DATA)==null?void 0:g.mediaId)||null,x=typeof window<"u"&&((V=window.MEDIA_DATA)==null?void 0:V.redirectUserMediaURL)||null;oe.debug("Save segments request:",{mediaId:S,segments:k,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:x});const c=await nf(S,{segments:k,saveAsCopy:!0,saveIndividualSegments:!0});if(oe.debug("Save segments response:",c),W(!1),c.status===200){const p=x||c.url_redirect;oe.debug("Using redirect user media URL for segments:",p),wn(p),_e(`${k.length} segments saved successfully!`),le(!0)}else if(c.status===400){const p=c.error||"An error occurred during processing";oe.debug("Save segments error (400):",p),wt(p),we(!0)}else oe.debug("Save segments error (unknown status):",c),wt("An unexpected error occurred"),we(!0)}catch(k){oe.error("Error processing video segments:",k),W(!1);const S=k instanceof Error?k.message:"An error occurred during processing";wt(S),we(!0)}};te.useEffect(()=>{if(Ie.current&&B.current&&d>1){const g=Ie.current.clientWidth,V=B.current.clientWidth,k=w/_*V,S=Math.max(0,k-g/2);Ie.current.scrollTo({left:S,behavior:"smooth"});const x=B.current.getBoundingClientRect();Ie.current.getBoundingClientRect();const p=x.left-Ie.current.scrollLeft+Pe/100*x.width;(He!==null||Ze)&&(Xe({x:p,y:x.top-10}),I(w))}},[w,d,_,He,Ze,Pe]),te.useEffect(()=>{const g=N.current;if(!g||!Ae||!Ke||xt||et)return;oe.debug("Segment boundary check ACTIVATED for segment:",Ae.id,"Start:",F(Ae.startTime),"End:",F(Ae.endTime));const V=()=>{const k=Ae.endTime-g.currentTime;if(Math.round(k*10)%10===0&&oe.debug("Segment playback - time remaining:",F(k),"Current:",F(g.currentTime),"End:",F(Ae.endTime),"ContinuePastBoundary:",At),g.currentTime>Ae.endTime){g.pause(),g.currentTime=Ae.endTime,Ve(!1),rt(!1),oe.debug("Passed segment end - setting back to exact boundary:",F(Ae.endTime));return}if(Ae.endTime-g.currentTime<.05)if(At)oe.debug("Continuing past segment boundary:",F(Ae.endTime)),g.currentTime>Ae.endTime&&(rt(!1),st(null),sessionStorage.removeItem("continuingPastSegment"));else{g.pause(),g.currentTime=Ae.endTime,Ve(!1),oe.debug("Paused at segment end boundary:",F(Ae.endTime));const x=[...Z].sort((c,p)=>c.startTime-p.startTime).find(c=>c.startTime>Ae.endTime);x&&Math.abs(x.startTime-Ae.endTime)<.1&&(oe.debug("Found adjacent next segment:",x.id),J(x.id),st(x),Ye(x.startTime),I(x.startTime),g.currentTime=x.startTime)}};return g.addEventListener("timeupdate",V),()=>{g.removeEventListener("timeupdate",V)}},[Ae,Ke,xt,At,Z]),te.useEffect(()=>{if(N.current)if(N.current.paused)N.current.paused&&Ke&&(Ye(w),I(w),Ve(!1),oe.debug("Video paused at:",F(w)));else{Ye(w),I(w),He!==null&&Ve(!0);const g=Z.find(S=>w>=S.startTime&&w<=S.endTime),V=w/_*100;if(B.current){const S=B.current.offsetWidth,x=V/100*S;Xe({x,y:B.current.getBoundingClientRect().top-10})}const k=sessionStorage.getItem("continuingPastSegment")==="true";if(g){const S=N.current,x=Ae&&Ae.id<0&&Ke;if((Ae==null?void 0:Ae.id)!==g.id&&!x&&!k&&!At&&(oe.debug(`Entered a new segment during playback: ${g.id}, setting as active`),st(g),J(g.id),X(!1),rt(!1),sessionStorage.removeItem("continuingPastSegment")),x&&S&&g){oe.debug(`CUTAWAY BOUNDARY REACHED: Current position ${F(S.currentTime)} at segment ${g.id} - STOPPING at boundary ${F(g.startTime)}`),S.pause(),setTimeout(()=>{if(N.current){N.current.currentTime=g.startTime,G(g.startTime),Ye(g.startTime),I(g.startTime),rt(!1),J(g.id),X(!1);const p=()=>{N.current&&(N.current.currentTime=g.startTime,G(g.startTime),Ye(g.startTime),I(g.startTime),oe.debug(`Position corrected to exact segment boundary: ${F(N.current.currentTime)} (target: ${F(g.startTime)})`))};setTimeout(p,10),setTimeout(p,20),setTimeout(p,50),setTimeout(p,100),setTimeout(p,200),N.current.addEventListener("seeked",p),N.current.addEventListener("canplay",p),N.current.addEventListener("waiting",p),setTimeout(()=>{N.current&&(N.current.removeEventListener("seeked",p),N.current.removeEventListener("canplay",p),N.current.removeEventListener("waiting",p))},300)}},10),Ve(!1),st(null);return}Ae===null&&Ke===!0||k||x?(He!==g.id||Ze)&&(oe.debug("Tooltip updated for segment during continued playback:",g.id,x?"(cutaway playback - keeping virtual segment)":""),J(g.id),X(!1),!x&&sessionStorage.getItem("lastSegmentId")!==g.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ae==null?void 0:Ae.id)!==g.id||Ze)&&(oe.debug("Playback moved into segment:",g.id),J(g.id),st(g),X(!1),sessionStorage.setItem("lastSegmentId",g.id.toString()))}else if(Ae!==null||!Ze){J(null),st(null);const S=bt(w);ht(S),S>=.5?X(!0):X(!1)}}},[w,Ke,Ae,He,Z]),te.useEffect(()=>{const g=V=>{const k=V.target;ze&&!k.closest(".zoom-dropdown-container")&&Fe(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[ze]),te.useEffect(()=>()=>{},[He,Ze,Ke]),te.useEffect(()=>{const g=kt.current,V=tt.current,k=B.current;if(!g||!V||!k)return;const S=x=>c=>{c.preventDefault();const p=k.getBoundingClientRect();let T=!0,R=x?be:pe;const P=ce=>new CustomEvent("trim-handle-event",{detail:{type:ce,isStart:x}});document.dispatchEvent(P("drag-start"));const re=ce=>{if(!T)return;const ut=p.width,it=Math.max(0,Math.min(1,(ce.clientX-p.left)/ut))*_;typeof window<"u"&&(window.lastSeekedPosition=it),x?it<pe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:it,isStart:!0,recordHistory:!1}})),R=it):it>be&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:it,isStart:!1,recordHistory:!1}})),R=it)},z=()=>{T=!1,document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",z),x?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:R,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:R,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(P("drag-end"))};document.addEventListener("mousemove",re),document.addEventListener("mouseup",z)};return g.addEventListener("mousedown",S(!0)),V.addEventListener("mousedown",S(!1)),()=>{g.removeEventListener("mousedown",S(!0)),V.removeEventListener("mousedown",S(!1))}},[_,be,pe,Se,ne]);const It=()=>{const g=ve.length||10;return Array.from({length:g}).map((V,k)=>{const S=_/g,x=k*S,c=x+S,p=(x+c)/2,T=tf(p,_);return m.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/g}%`,backgroundColor:T}},k)})},Ft=()=>Oe.map((g,V)=>{const k=g/_*100;return m.jsx("div",{className:"split-point",style:{left:`${k}%`}},V)}),bt=g=>{const k=[...Z].sort((p,T)=>p.startTime-T.startTime),S=k.find(p=>p.startTime>g),x=[...k].reverse().find(p=>p.endTime<g);let c;return S?c=S.startTime-g:c=_-g,oe.debug("Space calculation:",{position:F(g),nextSegment:S?F(S.startTime):"none",prevSegment:x?F(x.endTime):"none",availableSpace:F(Math.max(.1,c))}),Math.max(.1,c)},ua=g=>{if(!B.current)return;const V=Z.find(R=>{const P=g>=R.startTime&&g<=R.endTime,re=Math.abs(g-R.startTime)<.001,z=Math.abs(g-R.endTime)<.001;return P||re||z}),k=[...Z].sort((R,P)=>R.startTime-P.startTime),S=k.find(R=>R.startTime>g),x=[...k].reverse().find(R=>R.endTime<g);if(V)J(V.id),X(!1);else{const R=bt(g);ht(R),J(null),X(!0),oe.debug("Cutaway position:",{current:F(g),prevSegmentEnd:x?F(x.endTime):"none",nextSegmentStart:S?F(S.startTime):"none",availableSpace:F(R)})}const c=B.current.getBoundingClientRect(),p=g/_*100;let T;d>1&&Ie.current?T=c.left-Ie.current.scrollLeft+c.width*(p/100):T=c.left+c.width*(p/100),Xe({x:T,y:c.top-10})},ha=g=>{if(et||!B.current||!Ie.current||Ge)return;const V=N.current&&!N.current.paused;rt(!1);const k=B.current.getBoundingClientRect();let S;if(d>1){const p=Ie.current.scrollLeft,T=B.current.clientWidth;S=(g.clientX-k.left+p)/T}else S=(g.clientX-k.left)/k.width;const x=S*_;oe.debug("Timeline clicked at:",F(x),"distance from end:",F(_-x)),typeof window<"u"&&(window.lastSeekedPosition=x),G(x),I(x),Ye(x);const c=Z.find(p=>{const T=x>=p.startTime&&x<=p.endTime,R=Math.abs(x-p.startTime)<.01,P=Math.abs(x-p.endTime)<.01;return T||R||P});if(c&&st(c),(V||xt)&&N.current&&N.current.play().then(()=>{Ve(!0)}).catch(p=>{console.error("Error resuming playback:",p),Ve(!1)}),g.target===B.current||g.target.classList.contains("timeline-thumbnail"))if(c)J(c.id),X(!1);else{J(null);const p=bt(x);ht(p);let T;if(d>1){const z=k.left-Ie.current.scrollLeft,ce=x/_;T=z+ce*k.width}else T=g.clientX;Xe({x:T,y:k.top-10}),X(!0);const R=[...Z].sort((z,ce)=>z.startTime-ce.startTime),P=[...R].reverse().find(z=>z.endTime<x),re=R.find(z=>z.startTime>x);oe.debug("Clicked in cutaway area:",{position:F(x),availableSpace:F(p),prevSegmentEnd:P?F(P.endTime):"none",nextSegmentStart:re?F(re.startTime):"none"})}},Yn=(g,V)=>k=>{if(et||(k.preventDefault(),k.stopPropagation(),!B.current))return;B.current.getBoundingClientRect().width;const x=Z.find(en=>en.id===g);if(!x)return;const c=x.startTime,p=x.endTime,T={...x};document.body.style.cursor="ew-resize";const R=document.createElement("div");R.style.position="fixed",R.style.top="0",R.style.left="0",R.style.width="100vw",R.style.height="100vh",R.style.zIndex="1000",R.style.cursor="ew-resize",document.body.appendChild(R);let P=!0,re=c,z=p;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:g}}));const ce=en=>{if(!P||!B.current)return;const zt=B.current.getBoundingClientRect(),Dt=Math.max(0,Math.min(1,(en-zt.left)/zt.width))*_,Zn=V?Dt:c,yr=V?p:Dt;if(w>=Zn&&w<=yr)J(g),X(!1);else{J(null);const dn=bt(w);ht(dn),X(!0)}const Br=Z.filter(dn=>dn.id!==g);let ga=c,ba=p;if(V){ga=Math.min(Dt,p-.5);const _t=Br.filter(Ta=>Ta.endTime<=c).sort((Ta,sa)=>sa.endTime-Ta.endTime)[0];_t&&ga<_t.endTime&&(ga=_t.endTime),_t&&Math.abs(ga-_t.endTime)<.3&&(ga=_t.endTime),re=ga}else{ba=Math.max(Dt,c+.5);const _t=Br.filter(Ta=>Ta.startTime>=p).sort((Ta,sa)=>Ta.startTime-sa.startTime)[0];_t&&ba>_t.startTime&&(ba=_t.startTime),_t&&Math.abs(ba-_t.startTime)<.3&&(ba=_t.startTime),z=ba}const $r=Z.map(dn=>dn.id===g?{...dn,startTime:ga,endTime:ba}:dn),gi=new CustomEvent("update-segments",{detail:{segments:$r,recordHistory:!1}});if(document.dispatchEvent(gi),He===g&&N.current){const dn=N.current.currentTime,_t=$r.find(Sa=>Sa.id===g);if(_t){const Sa=dn>=_t.startTime&&dn<=_t.endTime;oe.debug(`During drag - playhead at ${F(dn)} is ${Sa?"inside":"outside"} segment (${F(_t.startTime)} - ${F(_t.endTime)})`),!Sa&&Ke&&(N.current.pause(),Ve(!1),st(null)),dn<_t.startTime?(oe.debug(`Adjusting display time to segment start: ${F(_t.startTime)}`),Ye(_t.startTime),I(_t.startTime)):dn>_t.endTime&&(oe.debug(`Adjusting display time to segment end: ${F(_t.endTime)}`),Ye(_t.endTime),I(_t.endTime))}}},ut=()=>{if(!P)return;P=!1,document.removeEventListener("mousemove",Le),document.removeEventListener("mouseup",it),document.removeEventListener("touchmove",fn),document.removeEventListener("touchend",_n),document.removeEventListener("touchcancel",_n),document.body.style.cursor="",document.body.contains(R)&&document.body.removeChild(R);const en=Z.map(De=>De.id===g?{...De,startTime:re,endTime:z}:De),zt=V?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:en,recordHistory:!0,action:zt}})),He===g&&N.current){const De=N.current.currentTime,Dt=en.find(Zn=>Zn.id===g);if(Dt){const Zn=De>=Dt.startTime&&De<=Dt.endTime;oe.debug(`Drag complete - playhead at ${F(De)} is ${Zn?"inside":"outside"} segment (${F(Dt.startTime)} - ${F(Dt.endTime)})`);const yr=De>=T.startTime&&De<=T.endTime;Zn?!yr&&Zn?(st(Dt),xt&&N.current.play().then(()=>{Ve(!0)}).catch(Va=>{console.error("Error starting playback:",Va)})):yr&&Zn&&(Dt.startTime!==T.startTime||Dt.endTime!==T.endTime)&&st(Dt):(Ke&&(N.current.pause(),Ve(!1),st(null),rt(!1)),De<Dt.startTime?(oe.debug(`Final adjustment - setting display time to segment start: ${F(Dt.startTime)}`),Ye(Dt.startTime),I(Dt.startTime)):De>Dt.endTime&&(oe.debug(`Final adjustment - setting display time to segment end: ${F(Dt.endTime)}`),Ye(Dt.endTime),I(Dt.endTime)))}}},Le=en=>{ce(en.clientX)},it=()=>{ut()},fn=en=>{en.touches.length>0&&(en.preventDefault(),ce(en.touches[0].clientX))},_n=()=>{ut()};document.addEventListener("mousemove",Le,{passive:!1}),document.addEventListener("mouseup",it),document.addEventListener("touchmove",fn,{passive:!1}),document.addEventListener("touchend",_n),document.addEventListener("touchcancel",_n)},nr=g=>V=>{if(et||V.target.classList.contains("clip-segment-handle"))return;V.preventDefault(),V.stopPropagation(),rt(!1);const k=N.current&&!N.current.paused;J(g);const S=Z.find(z=>z.id===g);if(!S)return;const c=V.currentTarget.getBoundingClientRect(),p=(V.clientX-c.left)/c.width,T=S.startTime+p*(S.endTime-S.startTime),R=Math.max(S.startTime,Math.min(S.endTime,T));if(I(R),Ye(R),N.current){const z=N.current.currentTime,ce=z>=S.startTime&&z<=S.endTime;oe.debug(`Segment click - playhead at ${F(z)} is ${ce?"inside":"outside"} segment (${F(S.startTime)} - ${F(S.endTime)})`),ce||(Math.abs(z-S.startTime)<Math.abs(z-S.endTime)?(oe.debug(`Playhead outside segment - adjusting to segment start: ${F(S.startTime)}`),Ye(S.startTime)):(oe.debug(`Playhead outside segment - adjusting to segment end: ${F(S.endTime)}`),Ye(S.endTime)))}G(R),(k||xt)&&N.current&&(st(S),rt(!1),N.current.play().then(()=>{Ve(!0)}).catch(z=>{console.error("Error resuming playback after segment click:",z)})),xt&&N.current&&(st(S),N.current.play().then(()=>{Ve(!0)}).catch(z=>{console.error("Error continuing preview playback:",z)}));const P=V.clientX,re=c.top-10;if(Xe({x:P,y:re}),d>1&&B.current&&Ie.current){B.current.getBoundingClientRect();const z=B.current.clientWidth,ce=Ie.current.clientWidth,ut=R/_*z,Le=Math.max(0,ut-ce/2);Ie.current.scrollTo({left:Le,behavior:"smooth"}),setTimeout(()=>{if(B.current&&Ie.current){const it=B.current.getBoundingClientRect(),_n=R/_*z-Ie.current.scrollLeft+it.left;Xe({x:_n,y:re})}},300)}},Vr=()=>Z.map((g,V)=>{const k=g.startTime/_*100,S=(g.endTime-g.startTime)/_*100,x=tf((g.startTime+g.endTime)/2,_);return m.jsxs("div",{className:`clip-segment ${He===g.id?"selected":""}`,style:{left:`${k}%`,width:`${S}%`,backgroundColor:x,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:nr(g.id),children:[m.jsxs("div",{className:"clip-segment-info",children:[m.jsxs("div",{className:"clip-segment-name",children:["Segment ",V+1]}),m.jsxs("div",{className:"clip-segment-time",children:[yi(g.startTime)," - ",yi(g.endTime)]}),m.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",yi(g.endTime-g.startTime)]})]}),m.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:c=>{c.stopPropagation(),Yn(g.id,!0)(c)},onTouchStart:c=>{c.stopPropagation(),Yn(g.id,!0)(c)}}),m.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:c=>{c.stopPropagation(),Yn(g.id,!1)(c)},onTouchStart:c=>{c.stopPropagation(),Yn(g.id,!1)(c)}})]},g.id)});te.useEffect(()=>{const g=V=>{const{segmentId:k}=V.detail;if(Z.filter(x=>x.id!==k).length===0){const x={id:Date.now(),name:"Full Video",startTime:0,endTime:_,thumbnail:""},c=new CustomEvent("update-segments",{detail:{segments:[x],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(c),J(x.id),X(!1),I(w),Ye(w),st(x),B.current){const p=B.current.getBoundingClientRect(),T=w/_*100,R=p.left+p.width*(T/100);Xe({x:R,y:p.top-10}),oe.debug("Created full video segment:",{id:x.id,duration:F(_),currentPosition:F(w)})}}else if(He===k){if(!Z.find(p=>p.id===k))return;const c=bt(w);if(J(null),X(!0),ht(c),B.current){const p=B.current.getBoundingClientRect(),T=w/_*100,R=p.left+p.width*(T/100);Xe({x:R,y:p.top-10}),oe.debug("Segment deleted, showing cutaway tooltip:",{position:F(w),availableSpace:F(c)})}}};return document.addEventListener("delete-segment",g),()=>{document.removeEventListener("delete-segment",g)}},[He,Z,w,_,B]),te.useEffect(()=>{const g=N.current;if(!g)return;const V=()=>{if(!N.current)return;const S=N.current,x=S.currentTime;rt(!1);let c=_,p=null,T=null;p=Z.find(P=>{const re=x>=P.startTime&&x<=P.endTime,z=Math.abs(x-P.startTime)<.001,ce=Math.abs(x-P.endTime)<.001;return re||z||ce}),T=Z.filter(P=>{const re=P.startTime>x,z=Math.abs(P.startTime-x)>.001;return re&&z}).sort((P,re)=>P.startTime-re.startTime)[0],p?(c=p.endTime,st(p)):T&&(c=T.startTime);const R=()=>{if(!S)return;const P=S.currentTime;if(c-P<=.001||P>=c){S.pause();const z=()=>{S&&(S.currentTime=c,G(c),Ye(c),I(c),oe.debug("Position verification:",{target:F(c),actual:F(S.currentTime),difference:Math.abs(S.currentTime-c).toFixed(3)}))};z(),setTimeout(z,10),setTimeout(z,20),setTimeout(z,50),p?(J(p.id),X(!1)):T?(J(T.id),X(!1),st(T)):(J(null),X(!0),st(null)),S.removeEventListener("timeupdate",R),mt(!1),Ve(!1),rt(!1);return}};S.addEventListener("timeupdate",R),S.play().then(()=>{mt(!0),Ve(!0),oe.debug("Playback started:",{from:F(x),to:F(c),currentSegment:p?`Segment ${p.id}`:"None",nextSegment:T?`Segment ${T.id}`:"None"})}).catch(P=>{console.error("Error playing video:",P)})},k=()=>{Ve(!1)};return g.addEventListener("play",V),g.addEventListener("pause",k),()=>{g.removeEventListener("play",V),g.removeEventListener("pause",k)}},[Z,_,G]);const Pr=g=>{if(!B.current)return;const V=B.current.getBoundingClientRect(),S=(g.clientX-V.left)/V.width*_,x=Math.max(0,Math.min(_,S));typeof window<"u"&&(window.lastSeekedPosition=x)},[hr,za]=te.useState(!1),Fa=te.useRef(!1),ya=g=>{if(Ge)return;g.stopPropagation(),g.preventDefault(),za(!0),Fa.current=!0,ua(w);const V=S=>{if(!B.current||!Ie.current)return;const x=B.current.getBoundingClientRect();let c;if(d>1){const T=Ie.current.scrollLeft,R=B.current.clientWidth;c=(S.clientX-x.left+T)/R}else c=(S.clientX-x.left)/x.width;c=Math.max(0,Math.min(1,c));const p=c*_;I(p),Ye(p),ua(p),typeof window<"u"&&(window.lastSeekedPosition=p),G(p)},k=()=>{za(!1),Fa.current=!1,document.removeEventListener("mousemove",V),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",V),document.addEventListener("mouseup",k)},Kn=g=>{if(Ge)return;g.stopPropagation(),g.preventDefault(),za(!0),Fa.current=!0,ua(w);const V=S=>{if(!B.current||!Ie.current||!S.touches[0])return;const x=B.current.getBoundingClientRect();let c;if(d>1){const T=Ie.current.scrollLeft,R=B.current.clientWidth;c=(S.touches[0].clientX-x.left+T)/R}else c=(S.touches[0].clientX-x.left)/x.width;c=Math.max(0,Math.min(1,c));const p=c*_;I(p),Ye(p),ua(p),typeof window<"u"&&(window.lastSeekedPosition=p),G(p)},k=()=>{za(!1),Fa.current=!1,document.removeEventListener("touchmove",V),document.removeEventListener("touchend",k),document.removeEventListener("touchcancel",k)};document.addEventListener("touchmove",V,{passive:!1}),document.addEventListener("touchend",k),document.addEventListener("touchcancel",k)};return te.useEffect(()=>{},[un,Q,me]),te.useEffect(()=>{let g,V;if(me&&un){let k=10;g=setInterval(()=>{k--;const S=document.querySelector(".countdown");S&&(S.textContent=k.toString()),k<=0&&clearInterval(g)},1e3),V=setTimeout(()=>{ae&&ae(),window.location.href=un},1e4)}return()=>{g&&clearInterval(g),V&&clearTimeout(V)}},[me,un,ae]),m.jsxs("div",{className:`timeline-container-card ${et?"segments-playback-mode":""}`,children:[m.jsxs("div",{className:"timeline-header",children:[m.jsx("div",{className:"timeline-title",children:m.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),m.jsxs("div",{className:"duration-time",children:["Total Segments: ",m.jsx("span",{children:F(Z.reduce((g,V)=>g+(V.endTime-V.startTime),0))})]})]}),m.jsx("div",{ref:Ie,className:`timeline-scroll-container ${et?"segments-playback-mode":""}`,style:{overflow:d>1?"auto":"hidden"},children:m.jsxs("div",{ref:B,className:"timeline-container",onClick:ha,onMouseMove:Pr,style:{width:`${d*100}%`,cursor:"pointer"},children:[m.jsxs("div",{className:"timeline-marker",style:{left:`${Pe}%`},children:[m.jsx("div",{className:"timeline-marker-head",onClick:g=>{if(g.stopPropagation(),Z.find(V=>w>=V.startTime&&w<=V.endTime),He||Ze){J(null),X(!1);return}else ua(w),oe.debug("Opening tooltip at:",F(w))},children:m.jsx("span",{className:"timeline-marker-head-icon",children:He||Ze?"-":"+"})}),m.jsx("div",{className:`timeline-marker-drag ${hr?"dragging":""}`,onMouseDown:ya,onTouchStart:Kn,children:m.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),Z.length===0&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"trim-line-marker",style:{left:`${gt}%`},children:m.jsx("div",{ref:kt,className:"trim-handle left"})}),m.jsx("div",{className:"trim-line-marker",style:{left:`${Pt}%`},children:m.jsx("div",{ref:tt,className:"trim-handle right"})})]}),Vr(),Ft(),It(),He!==null&&m.jsxs("div",{className:`segment-tooltip two-row-tooltip ${et?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Pe)},children:[m.jsxs("div",{className:"tooltip-row",children:[m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...Jt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),m.jsx("div",{className:"tooltip-time-display",children:F($t)}),m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...Jt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),m.jsxs("div",{className:"tooltip-row tooltip-actions",children:[m.jsx("button",{className:"tooltip-action-btn delete","data-tooltip":"Delete segment",onClick:g=>{g.stopPropagation();const V=new CustomEvent("delete-segment",{detail:{segmentId:He}});document.dispatchEvent(V)},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M3 6h18"}),m.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),m.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),m.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),m.jsx("button",{className:"tooltip-action-btn scissors","data-tooltip":"Split segment at current position",onClick:g=>{g.stopPropagation();const V=new CustomEvent("split-segment",{detail:{segmentId:He,time:$}});document.dispatchEvent(V)},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"6",cy:"6",r:"3"}),m.jsx("circle",{cx:"6",cy:"18",r:"3"}),m.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),m.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),m.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),m.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play segment from beginning",onClick:g=>{g.stopPropagation();const V=Z.find(k=>k.id===He);if(V&&N.current){if(rt(!0),Math.abs(N.current.currentTime-V.endTime)<.05){oe.debug(`Already at end boundary (${F(N.current.currentTime)}), nudging position back slightly`);const k=Math.max(V.startTime,V.endTime-.1);N.current.currentTime=k,G(k),I(k),oe.debug(`Position adjusted to ${F(k)}`)}else G(V.startTime),I(V.startTime);st(V),N.current.play().then(()=>{Ve(!0)}).catch(k=>{console.error("Error playing from beginning:",k)})}},children:m.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:`tooltip-action-btn ${Ce?"pause":"play"}`,"data-tooltip":Ce?"Pause playback":"Play from current position",onClick:g=>{g.stopPropagation(),Ce?N.current&&(N.current.pause(),Ve(!1),rt(!1)):xe()},children:Ce?m.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):m.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn set-in","data-tooltip":"Set start point at current position",onClick:g=>{if(g.stopPropagation(),Z.find(k=>k.id===He)){const k=Z.map(x=>x.id===He?{...x,startTime:$<x.endTime-.5?$:x.endTime-.5}:x),S=new CustomEvent("update-segments",{detail:{segments:k,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(S)}},children:m.jsx("img",{src:qS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn set-out","data-tooltip":"Set end point at current position",onClick:g=>{if(g.stopPropagation(),Z.find(k=>k.id===He)){const k=Z.map(x=>x.id===He?{...x,endTime:$>x.startTime+.5?$:x.startTime+.5}:x),S=new CustomEvent("update-segments",{detail:{segments:k,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(S)}},children:m.jsx("img",{src:WS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Ze&&He===null&&m.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${et?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Pe)},children:[m.jsxs("div",{className:"tooltip-row",children:[m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Decrease by 50ms (hold for continuous adjustment)",...Jt(-.05),children:"-50ms"}),m.jsx("div",{className:"tooltip-time-display",children:F($)}),m.jsx("button",{className:"tooltip-time-btn","data-tooltip":"Increase by 50ms (hold for continuous adjustment)",...Jt(.05),children:"+50ms"})]}),m.jsxs("div",{className:"tooltip-row tooltip-actions",children:[at>=.5&&m.jsxs("button",{className:"tooltip-action-btn new-segment","data-tooltip":"Create new segment",onClick:async g=>{g.stopPropagation();const V=$,k=V+at;if(at<.5){X(!1);return}const S={id:Date.now(),name:"segment",startTime:V,endTime:k,thumbnail:""},x=[...Z,S],c=new CustomEvent("update-segments",{detail:{segments:x,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(c),X(!1),setTimeout(()=>{const p=x[x.length-1];p&&(J(p.id),oe.debug("Created and selected new segment:",p.id))},100)},children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),m.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),m.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),m.jsx("button",{className:"tooltip-action-btn play-from-start","data-tooltip":"Play from beginning of cutaway",onClick:g=>{if(g.stopPropagation(),N.current){const V=$;rt(!0);const k=[...Z].sort((P,re)=>P.startTime-re.startTime),S=[...k].reverse().find(P=>P.endTime<V),x=S?S.endTime+.025:0,c=k.find(P=>P.startTime>V),p=c?c.startTime:_,T={id:-999,name:"Cutaway",startTime:x,endTime:p,thumbnail:""};G(x),I(x),Ve(!1),setTimeout(()=>{st(T)},0);const R=()=>{if(!N.current)return;const P=N.current.currentTime,re=[...Z].sort((Le,it)=>Le.startTime-it.startTime),z=re.find(Le=>Le.startTime>P-.3),ce=z&&P>=z.startTime-.25&&P<=z.startTime+.1&&!At;z&&P>=z.startTime-.25&&P<=z.startTime+.1&&oe.debug(`Approaching boundary at ${F(z.startTime)}, continuePastBoundary=${At}, willStop=${ce}`);const ut=re.find(Le=>P>=Le.startTime&&P<=Le.endTime);if(ut&&(Ae==null?void 0:Ae.id)!==ut.id){oe.debug(`Entered segment ${ut.id} during cutaway playback`),st(ut),J(ut.id),X(!1),N.current.removeEventListener("timeupdate",R),rt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(ce&&z){oe.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${F(P)} approaching segment at ${F(z.startTime)} (distance: ${Math.abs(P-z.startTime).toFixed(3)}s) - STOPPING`),N.current.pause(),setTimeout(()=>{if(N.current){N.current.currentTime=z.startTime,G(z.startTime),Ye(z.startTime),I(z.startTime),rt(!1),J(z.id),X(!1),st(z);const Le=()=>{N.current&&(N.current.currentTime=z.startTime,G(z.startTime),Ye(z.startTime),I(z.startTime),oe.debug(`Position corrected to exact segment boundary: ${F(N.current.currentTime)} (target: ${F(z.startTime)})`))};setTimeout(Le,10),setTimeout(Le,20),setTimeout(Le,50),setTimeout(Le,100),setTimeout(Le,200),N.current.addEventListener("seeked",Le),N.current.addEventListener("canplay",Le),N.current.addEventListener("waiting",Le),setTimeout(()=>{N.current&&(N.current.removeEventListener("seeked",Le),N.current.removeEventListener("canplay",Le),N.current.removeEventListener("waiting",Le))},300)}},10),Ve(!1),st(null),N.current.removeEventListener("timeupdate",R);return}};N.current.addEventListener("timeupdate",R),setTimeout(()=>{N.current&&N.current.play().then(()=>{Ve(!0),oe.debug("CUTAWAY PLAYBACK STARTED:",F(x),"to",F(p),S?`(after segment ${S.id}, offset +25ms from ${F(S.endTime)})`:"(from video start)",c?`(will stop at segment ${c.id})`:"(will play to end)")}).catch(P=>{console.error("Error playing cutaway:",P)})},50)}},children:m.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:`tooltip-action-btn ${Ce?"pause":"play"}`,"data-tooltip":Ce?"Pause playback":"Play from here until next segment",onClick:g=>{g.stopPropagation(),Ce?N.current&&(N.current.pause(),Ve(!1),rt(!1)):xe()},children:Ce?m.jsx("img",{src:wm,alt:"Pause",style:{width:"24px",height:"24px"}}):m.jsx("img",{src:Rm,alt:"Play",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn segment-end","data-tooltip":"Adjust end of previous segment or create segment from start",onClick:g=>{g.stopPropagation();const k=[...Z].sort((S,x)=>S.startTime-x.startTime).filter(S=>S.endTime<=$).sort((S,x)=>x.endTime-S.endTime)[0];if(k){const S=Z.map(c=>c.id===k.id?{...c,endTime:$}:c),x=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(x),oe.debug("Adjusted end of previous segment to:",F($)),J(k.id),X(!1)}else if(Z.length>0){const S=[...Z].sort((p,T)=>p.startTime-T.startTime);let x=!1,c=0;for(let p=0;p<S.length-1;p++){const T=S[p].endTime,R=S[p+1].startTime;if($>T&&$<R){x=!0,c=T;break}}if(x){const p={id:Date.now(),name:"segment",startTime:c,endTime:$,thumbnail:""},T=[...Z,p],R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(R),oe.debug("Created new segment in gap from",F(c),"to",F($)),J(p.id),X(!1)}else if($<S[0].startTime){const p={id:Date.now(),name:"segment",startTime:0,endTime:$,thumbnail:""},T=[...Z,p],R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(R),oe.debug("Created new segment from start to:",F($)),J(p.id),X(!1)}else{const p=[...Z].sort((T,R)=>R.endTime-T.endTime)[0];if(p&&p.endTime<_){const T=Z.map(P=>P.id===p.id?{...P,endTime:_}:P),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(R),J(p.id),X(!1)}}}else if($>0){const S={id:Date.now(),name:"segment",startTime:0,endTime:$,thumbnail:""},x=new CustomEvent("update-segments",{detail:{segments:[S],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(x),oe.debug("Created new segment from start to:",F($)),J(S.id),X(!1)}},children:m.jsx("img",{src:XS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),m.jsx("button",{className:"tooltip-action-btn segment-start","data-tooltip":"Adjust start of next segment or create segment to end",onClick:g=>{g.stopPropagation();const k=[...Z].sort((S,x)=>S.startTime-x.startTime).filter(S=>S.startTime>=$).sort((S,x)=>S.startTime-x.startTime)[0];if(k){const S=Z.map(c=>c.id===k.id?{...c,startTime:$}:c),x=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(x),oe.debug("Adjusted start of next segment to:",F($)),J(k.id),X(!1)}else if(Z.length>0){const S=[...Z].sort((p,T)=>p.startTime-T.startTime);let x=!1,c=0;for(let p=0;p<S.length-1;p++){const T=S[p].endTime,R=S[p+1].startTime;if($>T&&$<R){x=!0,c=R;break}}if(x){const p={id:Date.now(),name:"segment",startTime:$,endTime:c,thumbnail:""},T=[...Z,p],R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(R),oe.debug("Created new segment in gap from",F($),"to",F(c)),J(p.id),X(!1)}else if($<S[0].startTime){const p={id:Date.now(),name:"segment",startTime:$,endTime:S[0].startTime,thumbnail:""},T=[...Z,p],R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(R),oe.debug("Created new segment from",F($),"to first segment"),J(p.id),X(!1)}else if($>S[S.length-1].endTime){const p={id:Date.now(),name:"segment",startTime:$,endTime:_,thumbnail:""},T=[...Z,p],R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(R),oe.debug("Created new segment from",F($),"to end"),J(p.id),X(!1)}else{const p=S[0];if(p&&p.startTime>0){const T=Z.map(P=>P.id===p.id?{...P,startTime:0}:P),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(R),J(p.id),X(!1)}}}else if($<_){const S={id:Date.now(),name:"segment",startTime:$,endTime:_,thumbnail:""},x=new CustomEvent("update-segments",{detail:{segments:[S],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(x),oe.debug("Created new segment from",F($),"to end"),J(S.id),X(!1)}},children:m.jsx("img",{src:GS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),m.jsxs("div",{className:"timeline-controls",children:[m.jsxs("div",{className:"time-navigation",children:[m.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),m.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:g=>{if(g.key==="Enter"){const V=g.currentTarget.value;try{const k=V.split(":");let S=0,x=0,c=0,p=0;if(k.length===3){S=parseInt(k[0]),x=parseInt(k[1]);const R=k[2].split(".");c=parseInt(R[0]),R.length>1&&(p=parseInt(R[1].padEnd(3,"0").substring(0,3)))}else if(k.length===2){x=parseInt(k[0]);const R=k[1].split(".");c=parseInt(R[0]),R.length>1&&(p=parseInt(R[1].padEnd(3,"0").substring(0,3)))}const T=S*3600+x*60+c+p/1e3;if(!isNaN(T)&&T>=0&&T<=_){G(T);const R=P=>{const re=Z.find(z=>{const ce=P>=z.startTime&&P<=z.endTime,ut=Math.abs(P-z.startTime)<.001,Le=Math.abs(P-z.endTime)<.001;return ce||ut||Le});if(B.current&&Ie.current){const z=B.current.getBoundingClientRect();let ce;if(d>1)ce=z.left-Ie.current.scrollLeft+P/_*z.width;else{const ut=P/_;ce=z.left+z.width*ut}Xe({x:ce,y:z.top-10}),I(P),re?(J(re.id),X(!1)):(J(null),X(!0))}};setTimeout(()=>R(T),10)}}catch(k){console.error("Invalid time format:",k)}}}}),m.jsx("div",{className:"time-button-group",children:(()=>{const g=()=>{const V=Z.find(k=>{const S=w>=k.startTime&&w<=k.endTime,x=Math.abs(w-k.startTime)<.001,c=Math.abs(w-k.endTime)<.001;return S||x||c});if(B.current&&Ie.current){const k=B.current.getBoundingClientRect();let S;if(d>1)S=k.left-Ie.current.scrollLeft+w/_*k.width;else{const x=w/_;S=k.left+k.width*x}if(Xe({x:S,y:k.top-10}),I(w),V)J(V.id),X(!1);else{const x=bt(w);ht(x),x>=.5?(J(null),X(!0)):(J(null),X(!1))}}};return m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"time-button",onClick:()=>{G(w-.01),setTimeout(g,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(w-.001),setTimeout(g,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(w+.001),setTimeout(g,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),m.jsx("button",{className:"time-button",onClick:()=>{G(w+.01),setTimeout(g,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),m.jsxs("div",{className:"controls-right",children:[m.jsxs("div",{className:"zoom-dropdown-container",children:[m.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Fe(!ze),children:["Zoom ",d,"x",m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),ze&&m.jsx("div",{className:"zoom-dropdown",style:{position:"absolute",top:"100%",left:0,zIndex:1e3},children:[1,2,4,8,16,32,64,128,256,512,1024,2048,4096].map(g=>m.jsxs("div",{className:`zoom-option ${d===g?"selected":""}`,onClick:()=>{nt(g),Fe(!1)},children:[d===g&&m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",g,"x"]},g))})]}),m.jsxs("div",{className:"save-buttons-row",children:[ae&&m.jsx("button",{onClick:()=>Xt(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Ue&&m.jsx("button",{onClick:()=>Yt(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),Vt&&m.jsx("button",{onClick:()=>Rn(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),m.jsxs(no,{isOpen:xn,onClose:()=>Xt(!1),title:"Save Changes",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Xt(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{ae&&ae(),Qt()},children:"Confirm Save"})]}),children:[m.jsx("p",{className:"modal-message",children:"You're about to replace the original video with this trimmed version. This can't be undone."}),m.jsx("p",{className:"modal-message",children:"The original video will be replaced with this trimmed version."})]}),m.jsxs(no,{isOpen:cn,onClose:()=>Yt(!1),title:"Save As New Copy",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Yt(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Ue&&Ue(),Kt()},children:"Confirm Save As Copy"})]}),children:[m.jsx("p",{className:"modal-message",children:"You're about to save a new copy with your edits. The original video will stay the same. Find the new file in your My Media folder - named after the original file."}),m.jsx("p",{className:"modal-message",children:"A new copy of the video will be created with your trimmed segments."})]}),m.jsxs(no,{isOpen:U,onClose:()=>{},title:"Processing Video",children:[m.jsx("div",{className:"modal-spinner",children:m.jsx("div",{className:"spinner"})}),m.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),m.jsxs(no,{isOpen:an,onClose:()=>Rn(!1),title:"Save Segments",actions:m.jsxs(m.Fragment,{children:[m.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Rn(!1),children:"Cancel"}),m.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Vt&&Vt(),Dn()},children:"Save Segments"})]}),children:[m.jsx("p",{className:"modal-message",children:"You're about to save each segment as a separate video. Find the new files in your My Media folder - named after the original file."}),m.jsx("p",{className:"modal-message",children:"Each segment will be saved with its name as the filename."})]}),m.jsx(no,{isOpen:me,onClose:()=>le(!1),title:"Video Edited Successfully",children:m.jsx("div",{className:"modal-success-content",children:m.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your ",m.jsx("a",{href:un,className:"media-page-link",style:QS,children:"media page"})," in ",m.jsx("span",{className:"countdown",children:"10"})," seconds. "," ",Q==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),m.jsxs(no,{isOpen:Ee,onClose:()=>we(!1),title:"Video Processing Error",children:[m.jsxs("div",{className:"modal-error-content",children:[m.jsx("div",{className:"modal-error-icon",children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#F44336",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),m.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),m.jsx("p",{className:"modal-message text-center error-message",children:ct})]}),m.jsx("div",{className:"modal-choices",children:m.jsxs("button",{onClick:()=>we(!1),className:"modal-choice-button centered-choice",children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),m.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),Ge&&m.jsx("div",{className:"mobile-timeline-overlay",children:m.jsxs("div",{className:"mobile-timeline-message",children:[m.jsx("p",{children:"Please play the video first to enable timeline controls"}),m.jsx("div",{className:"mobile-play-icon"})]})})]})},ZS=({onSplit:w,onReset:_,onUndo:ve,onRedo:be,onPreview:pe,onPlaySegments:Oe,onPlay:d,canUndo:Z,canRedo:Se,isPreviewMode:ne=!1,isPlaying:nt=!1,isPlayingSegments:G=!1})=>{const N=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),d()};return m.jsx("div",{className:"editing-tools-container",children:m.jsxs("div",{className:"flex-container single-row",children:[m.jsxs("div",{className:"button-group play-buttons-group",children:[m.jsx("button",{className:"button segments-button",onClick:Oe,"data-tooltip":G?"Stop segments playback":"Play all segments continuously until the end",style:{fontSize:"0.875rem"},children:G?m.jsxs(m.Fragment,{children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),m.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),m.jsx("span",{className:"full-text",children:"Stop Preview"}),m.jsx("span",{className:"short-text",children:"Stop Preview"})]}):m.jsxs(m.Fragment,{children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),m.jsx("span",{className:"full-text",children:"Play Preview"}),m.jsx("span",{className:"short-text",children:"Play Preview"})]})}),!ne&&!G&&m.jsx("button",{className:"button play-button",onClick:N,"data-tooltip":nt?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:nt?m.jsxs(m.Fragment,{children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),m.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),m.jsx("span",{className:"full-text",children:"Pause"}),m.jsx("span",{className:"short-text",children:"Pause"})]}):m.jsxs(m.Fragment,{children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),m.jsx("span",{className:"full-text",children:"Play"}),m.jsx("span",{className:"short-text",children:"Play"})]})}),G&&m.jsxs("div",{className:"segments-playback-message",children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]}),"Preview Mode"]}),ne&&m.jsxs("div",{className:"preview-mode-message",children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),m.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]}),"Preview Mode"]})]}),m.jsxs("div",{className:"button-group secondary",children:[m.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!Z,onClick:ve,children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"M9 14 4 9l5-5"}),m.jsx("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]}),m.jsx("span",{className:"button-text",children:"Undo"})]}),m.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!Se,onClick:be,children:[m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[m.jsx("path",{d:"m15 14 5-5-5-5"}),m.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),m.jsx("span",{className:"button-text",children:"Redo"})]}),m.jsx("div",{className:"divider"}),m.jsxs("button",{className:"button",onClick:_,"data-tooltip":"Reset to full video",children:[m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.jsx("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})}),m.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},JS=({segments:w})=>{const _=[...w].sort((pe,Oe)=>pe.startTime-Oe.startTime),ve=pe=>{const Oe=new CustomEvent("delete-segment",{detail:{segmentId:pe}});document.dispatchEvent(Oe)},be=pe=>`segment-default-color segment-color-${pe%8+1}`;return m.jsxs("div",{className:"clip-segments-container",children:[m.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),_.map((pe,Oe)=>m.jsxs("div",{className:`segment-item ${be(Oe)}`,children:[m.jsxs("div",{className:"segment-content",children:[m.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${pe.thumbnail})`}}),m.jsxs("div",{className:"segment-info",children:[m.jsxs("div",{className:"segment-title",children:["Segment ",Oe+1]}),m.jsxs("div",{className:"segment-time",children:[yi(pe.startTime)," - ",yi(pe.endTime)]}),m.jsxs("div",{className:"segment-duration",children:["Duration: ",YS(pe.endTime-pe.startTime)]})]})]}),m.jsx("div",{className:"segment-actions",children:m.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>ve(pe.id),children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:m.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})})]},pe.id)),_.length===0&&m.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},e0=({videoRef:w,onPlay:_})=>{const[ve,be]=te.useState(!1);te.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);be(d)},[]),te.useEffect(()=>{const Oe=w.current;if(!Oe)return;const d=()=>{be(!1)};return Oe.addEventListener("play",d),()=>{Oe.removeEventListener("play",d)}},[w]);const pe=()=>{_()};return ve?m.jsx("div",{className:"mobile-play-prompt-overlay",children:m.jsx("div",{className:"mobile-play-prompt",children:m.jsx("button",{className:"mobile-play-button",onClick:pe,children:"Click to start editing..."})})}):null},t0=()=>{const w=te.useRef(null),[_,ve]=te.useState(0),[be,pe]=te.useState(0),[Oe,d]=te.useState(!1),[Z,Se]=te.useState(!1),[ne,nt]=te.useState(!1),[G,N]=te.useState(0),[ae,Ue]=te.useState([]),[Vt,xt]=te.useState(0),[Rt,Ge]=te.useState(0),[Ce,mt]=te.useState([]),[xe,et]=te.useState(1),[B,kt]=te.useState([]),[tt,He]=te.useState([]),[J,Ze]=te.useState(-1),[X,Ot]=te.useState(!1),[Xe,$]=te.useState(!1),[I,ze]=te.useState(0);te.useEffect(()=>{var U;if(tt.length>0){const W=((U=tt[J])==null?void 0:U.action)||"";W!=="save"&&W!=="save_copy"&&W!=="save_segments"&&Ot(!0)}},[tt,J]),te.useEffect(()=>{const U=W=>{if(X){const me="Your edits will get lost if you leave the page. Do you want to continue?";return W.preventDefault(),W.returnValue=me,me}};return window.addEventListener("beforeunload",U),()=>{window.removeEventListener("beforeunload",U)}},[X]),te.useEffect(()=>{const U=w.current;if(!U)return;const W=()=>{pe(U.duration),Ge(U.duration),(async()=>{const _e=await Cm(U,U.duration/2),ct={id:1,name:"segment",startTime:0,endTime:U.duration,thumbnail:_e},wt={trimStart:0,trimEnd:U.duration,splitPoints:[],clipSegments:[ct]};He([wt]),Ze(0),kt([ct]);const un=6,wn=U.duration/un,Q=[];for(let ye=0;ye<un;ye++){const Pe=wn*ye+wn/2,gt=await Cm(U,Pe);Q.push(gt)}Ue(Q)})()},me=()=>{ve(U.currentTime)},le=()=>{ne||(d(!0),an(!0))},Ee=()=>{ne||d(!1)},we=()=>{d(!1),U.currentTime=Vt};return U.addEventListener("loadedmetadata",W),U.addEventListener("timeupdate",me),U.addEventListener("play",le),U.addEventListener("pause",Ee),U.addEventListener("ended",we),()=>{U.removeEventListener("loadedmetadata",W),U.removeEventListener("timeupdate",me),U.removeEventListener("play",le),U.removeEventListener("pause",Ee),U.removeEventListener("ended",we)}},[ne]);const Fe=U=>{const W=w.current;if(!W)return;const me=!W.paused,le=ne;if(W.currentTime=U,ve(U),typeof window<"u"&&(window.lastSeekedPosition=U),le){const Ee=B.find(we=>U>=we.startTime&&U<=we.endTime);if(Ee){const yt=[...B].sort((_e,ct)=>_e.startTime-ct.startTime).findIndex(_e=>_e.id===Ee.id);yt!==-1&&N(yt)}}(me||le)&&(le&&nt(!0),W.play().then(()=>{d(!0)}).catch(Ee=>{console.error("Error resuming playback:",Ee),d(!1)}))},at=U=>{const W={trimStart:Vt,trimEnd:Rt,splitPoints:[...Ce],clipSegments:JSON.parse(JSON.stringify(B)),action:U||"manual_save"},me=tt[J],le=()=>{if(!me||me.clipSegments.length!==W.clipSegments.length)return!0;for(let yt=0;yt<W.clipSegments.length;yt++){const _e=me.clipSegments[yt],ct=W.clipSegments[yt];if(!_e||!ct||Math.abs(_e.startTime-ct.startTime)>.001||Math.abs(_e.endTime-ct.endTime)>.001)return!0}return!1},Ee=!me||me.trimStart!==W.trimStart||me.trimEnd!==W.trimEnd||me.splitPoints.length!==W.splitPoints.length||le(),we=W.action!==void 0;if(Ee||we){const yt=J;He(_e=>yt<_e.length-1?[..._e.slice(0,yt+1),W]:[..._e,W]),Ze(_e=>_e+1)}};te.useEffect(()=>{const U=W=>{if(W.detail){const{time:me,isStart:le,recordHistory:Ee,action:we}=W.detail;le?xt(me):Ge(me),Ee&&setTimeout(()=>{at(we||(le?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",U),()=>{document.removeEventListener("update-trim",U)}},[]),te.useEffect(()=>{const U=le=>{if(le.detail&&le.detail.segments){const Ee=le.detail.recordHistory!==!1,we=le.detail.action||"update_segments";kt(le.detail.segments),Ee&&setTimeout(()=>{const yt=JSON.parse(JSON.stringify(le.detail.segments)),_e={trimStart:Vt,trimEnd:Rt,splitPoints:[...Ce],clipSegments:yt,action:we},ct=J;He(wt=>ct<wt.length-1?[...wt.slice(0,ct+1),_e]:[...wt,_e]),Ze(wt=>wt+1)},20)}},W=async le=>{const Ee=le;if(Ee.detail&&typeof Ee.detail.time=="number"&&typeof Ee.detail.segmentId=="number"){const we=Ee.detail.time,yt=Ee.detail.segmentId;Fe(we);const _e=B.find(Q=>Q.id===yt);if(!_e||we<=_e.startTime||we>=_e.endTime)return;const ct=[...B],wt=ct.findIndex(Q=>Q.id===yt);if(wt===-1)return;ct.splice(wt,1);const un={id:Date.now(),name:`${_e.name}-A`,startTime:_e.startTime,endTime:we,thumbnail:""},wn={id:Date.now()+1,name:`${_e.name}-B`,startTime:we,endTime:_e.endTime,thumbnail:""};ct.push(un,wn),ct.sort((Q,ye)=>Q.startTime-ye.startTime),kt(ct),at("split_segment")}},me=async le=>{const Ee=le;if(Ee.detail&&typeof Ee.detail.segmentId=="number"){const we=Ee.detail.segmentId,yt=B.filter(_e=>_e.id!==we);if(yt.length!==B.length){if(yt.length===0&&w.current){const _e={id:Date.now(),name:"segment",startTime:0,endTime:w.current.duration,thumbnail:""};xt(0),Ge(w.current.duration),mt([]),kt([_e])}else kt(yt);at("delete_segment")}}};return document.addEventListener("update-segments",U),document.addEventListener("split-segment",W),document.addEventListener("delete-segment",me),()=>{document.removeEventListener("update-segments",U),document.removeEventListener("split-segment",W),document.removeEventListener("delete-segment",me)}},[B,be]),te.useEffect(()=>{if(!ne||!w.current)return;const U=[...B].sort((le,Ee)=>le.startTime-Ee.startTime);if(U.length===0)return;const W=w.current,me=()=>{if(!ne||!W)return;const le=U[G];if(!le)return;const Ee=W.currentTime;if(Ee<le.startTime){W.currentTime=le.startTime;return}if(Ee>=le.endTime-.01){if(G<U.length-1){const we=U[G+1];W.currentTime=we.startTime,N(G+1),oe.debug("Preview: Moving to next segment",{from:F(le.endTime),to:F(we.startTime),segmentIndex:G+1})}else W.currentTime=U[0].startTime,N(0);W.play().catch(we=>{console.error("Error continuing preview playback:",we)})}};return W.addEventListener("timeupdate",me),W.paused&&(W.currentTime=U[G].startTime,W.play().catch(le=>{console.error("Error starting preview playback:",le)})),()=>{W&&W.removeEventListener("timeupdate",me)}},[ne,G,B]);const ht=()=>{const U=w.current;if(!U||B.length===0)return;if(ne){nt(!1),U.pause(),d(!1);return}const W=[...B].sort((me,le)=>me.startTime-le.startTime);W.length!==0&&(nt(!0),N(0),U.currentTime=W[0].startTime,U.play().then(()=>{d(!0)}).catch(me=>{console.error("Error starting preview:",me),nt(!1),d(!1)}))},Ke=U=>{xt(U),at("adjust_trim_start")},Ve=U=>{Ge(U),at("adjust_trim_end")},Ae=async()=>{if(w.current&&!Ce.includes(_)){const U=[...Ce,_].sort((le,Ee)=>le-Ee);mt(U);const W=[];let me=0;for(let le=0;le<=U.length;le++){const Ee=le<U.length?U[le]:be;me<Ee&&(W.push({id:Date.now()+le,name:`Segment ${le+1}`,startTime:me,endTime:Ee,thumbnail:""}),me=Ee)}kt(W),at("create_split_points")}},st=async()=>{if(xt(0),Ge(be),mt([]),!w.current)return;const U={id:Date.now(),name:"segment",startTime:0,endTime:be,thumbnail:""};kt([U]),at("reset_all")},$t=()=>{if(J>0){const U=tt[J-1];oe.debug(`** UNDO ** to position ${J-1}, action: ${U.action}, segments: ${U.clipSegments.length}`),oe.debug("Segment details after undo:",U.clipSegments.map(W=>`ID: ${W.id}, Time: ${F(W.startTime)} - ${F(W.endTime)}`)),xt(U.trimStart),Ge(U.trimEnd),mt([...U.splitPoints]),kt(JSON.parse(JSON.stringify(U.clipSegments))),Ze(J-1)}},Ye=()=>{if(J<tt.length-1){const U=tt[J+1];oe.debug(`** REDO ** to position ${J+1}, action: ${U.action}, segments: ${U.clipSegments.length}`),oe.debug("Segment details after redo:",U.clipSegments.map(W=>`ID: ${W.id}, Time: ${F(W.startTime)} - ${F(W.endTime)}`)),xt(U.trimStart),Ge(U.trimEnd),mt([...U.splitPoints]),kt(JSON.parse(JSON.stringify(U.clipSegments))),Ze(J+1)}},At=U=>{et(U)},rt=()=>{const U=w.current;U&&(U.muted=!U.muted,Se(!Z))},Ie=()=>{[...B].sort((W,me)=>W.startTime-me.startTime).map(W=>({startTime:F(W.startTime),endTime:F(W.endTime)})),Ot(!1),at("save")},Jt=()=>{[...B].sort((W,me)=>W.startTime-me.startTime).map(W=>({startTime:F(W.startTime),endTime:F(W.endTime)})),Ot(!1),at("save_copy")},xn=()=>{[...B].sort((W,me)=>W.startTime-me.startTime).map(W=>({name:W.name,startTime:F(W.startTime),endTime:F(W.endTime)})),Ot(!1),at("save_segments")},Xt=U=>{(!cn||Yt)&&Fe(U)},cn=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Yt,an]=te.useState(!1);return te.useEffect(()=>{if(!Xe||!w.current)return;const U=w.current,W=[...B].sort((le,Ee)=>le.startTime-Ee.startTime),me=()=>{const le=W[I];if(!le)return;const Ee=U.currentTime;if(Ee<le.startTime){U.currentTime=le.startTime;return}if(Ee>=le.endTime-.01)if(I<W.length-1){const we=W[I+1];U.currentTime=we.startTime,ze(I+1),U.paused&&U.play().catch(yt=>{console.error("Error continuing segment playback:",yt)})}else U.pause(),$(!1),ze(0),U.removeEventListener("timeupdate",me)};return U.addEventListener("timeupdate",me),U.paused&&W.length>0&&(U.currentTime=W[0].startTime,U.play().catch(console.error)),()=>{U.removeEventListener("timeupdate",me)}},[Xe,I,B]),{videoRef:w,currentTime:_,duration:be,isPlaying:Oe,setIsPlaying:d,isMuted:Z,isPreviewMode:ne,isPlayingSegments:Xe,thumbnails:ae,trimStart:Vt,trimEnd:Rt,splitPoints:Ce,zoomLevel:xe,clipSegments:B,hasUnsavedChanges:X,historyPosition:J,history:tt,handleTrimStartChange:Ke,handleTrimEndChange:Ve,handleZoomChange:At,handleMobileSafeSeek:Xt,handleSplit:Ae,handleReset:st,handleUndo:$t,handleRedo:Ye,handlePreview:ht,handlePlaySegments:()=>{const U=w.current;if(!(!U||B.length===0))if(Xe)U.pause(),$(!1),ze(0);else{$(!0),ze(0),ne&&nt(!1);const W=[...B].sort((me,le)=>me.startTime-le.startTime);U.currentTime=W[0].startTime,U.play().catch(me=>{console.error("Error starting segments playback:",me),$(!1)})}},toggleMute:rt,handleSave:Ie,handleSaveACopy:Jt,handleSaveSegments:xn,isMobile:cn,videoInitialized:Yt,setVideoInitialized:an}},n0=()=>{const{videoRef:w,currentTime:_,duration:ve,isPlaying:be,setIsPlaying:pe,isMuted:Oe,isPreviewMode:d,thumbnails:Z,trimStart:Se,trimEnd:ne,splitPoints:nt,zoomLevel:G,clipSegments:N,hasUnsavedChanges:ae,historyPosition:Ue,history:Vt,handleTrimStartChange:xt,handleTrimEndChange:Rt,handleZoomChange:Ge,handleMobileSafeSeek:Ce,handleSplit:mt,handleReset:xe,handleUndo:et,handleRedo:B,handlePreview:kt,toggleMute:tt,handleSave:He,handleSaveACopy:J,handleSaveSegments:Ze,isMobile:X,videoInitialized:Ot,setVideoInitialized:Xe,isPlayingSegments:$,handlePlaySegments:I}=t0(),ze=()=>{if(!w.current)return;const Fe=w.current;if(be){Fe.pause(),pe(!1);return}const at=Number(Fe.currentTime.toFixed(6));let ht=ve,Ke=null,Ve=null;const Ae=[...N].sort(($t,Ye)=>$t.startTime-Ye.startTime);Ke=Ae.find($t=>{const Ye=Number($t.startTime.toFixed(6)),At=Number($t.endTime.toFixed(6));return at>Ye&&at<At||at===Ye}),Ke||(Ve=Ae.find($t=>Number($t.startTime.toFixed(6))>at)),Ke?ht=Number(Ke.endTime.toFixed(6)):Ve&&(ht=Number(Ve.startTime.toFixed(6)));const st=()=>{if(!Fe)return;const $t=Number(Fe.currentTime.toFixed(6));if(Number((ht-$t).toFixed(6))<=0||$t>=ht){Fe.pause();const At=()=>{if(!Fe)return;Fe.currentTime=ht,Ce(ht);const rt=Number(Fe.currentTime.toFixed(6)),Ie=Number(Math.abs(rt-ht).toFixed(6));oe.debug("Position verification:",{target:F(ht),actual:F(rt),difference:Ie}),Ie>0&&(Fe.currentTime=ht,Ce(ht))};At(),setTimeout(At,5),setTimeout(At,10),setTimeout(At,20),setTimeout(At,50),Fe.removeEventListener("timeupdate",st),pe(!1),oe.debug("Stopped at position:",{target:F(ht),actual:F(Fe.currentTime),type:Ke?"segment end":Ve?"next segment start":"end of video",segment:Ke?{id:Ke.id,start:F(Ke.startTime),end:F(Ke.endTime)}:null,nextSegment:Ve?{id:Ve.id,start:F(Ve.startTime),end:F(Ve.endTime)}:null});return}};Fe.addEventListener("timeupdate",st),Fe.play().then(()=>{pe(!0),Xe(!0),oe.debug("Playback started:",{from:F(at),to:F(ht),currentSegment:Ke?{id:Ke.id,start:F(Ke.startTime),end:F(Ke.endTime)}:"None",nextSegment:Ve?{id:Ve.id,start:F(Ve.startTime),end:F(Ve.endTime)}:"None"})}).catch($t=>{console.error("Error playing video:",$t)})};return m.jsxs("div",{className:"bg-background min-h-screen",children:[m.jsx(e0,{videoRef:w,onPlay:ze}),m.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[m.jsx(IS,{videoRef:w,currentTime:_,duration:ve,isPlaying:be,isMuted:Oe,onPlayPause:ze,onSeek:Ce,onToggleMute:tt}),m.jsx(ZS,{onSplit:mt,onReset:xe,onUndo:et,onRedo:B,onPreview:kt,onPlaySegments:I,onPlay:ze,isPreviewMode:d,isPlaying:be,isPlayingSegments:$,canUndo:Ue>0,canRedo:Ue<Vt.length-1}),m.jsx(KS,{currentTime:_,duration:ve,thumbnails:Z,trimStart:Se,trimEnd:ne,splitPoints:nt,zoomLevel:G,clipSegments:N,onTrimStartChange:xt,onTrimEndChange:Rt,onZoomChange:Ge,onSeek:Ce,videoRef:w,onSave:He,onSaveACopy:J,onSaveSegments:Ze,isPreviewMode:d,hasUnsavedChanges:ae,isIOSUninitialized:X&&!Ot,isPlaying:be,setIsPlaying:pe,onPlayPause:ze,isPlayingSegments:$}),m.jsx(JS,{segments:N})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Mm=()=>{const w=document.getElementById("video-editor-trim-root");w&&Sm(w).render(m.jsx(n0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Mm):Mm()})();
//# sourceMappingURL=video-editor.js.map