mediacms/static/chapters_editor/chapters-editor.js
Yiannis Christodoulou a61692aa8c build assets
2025-10-19 12:43:51 +03:00

204 lines
396 KiB
JavaScript

(function(){"use strict";var cm={exports:{}},Jc={exports:{}},ll={exports:{}};ll.exports;var fm;function NS(){return fm||(fm=1,function(k,M){/**
* @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 ee="18.3.1",Le=Symbol.for("react.element"),je=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),Rt=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),he=Symbol.for("react.context"),st=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),oe=Symbol.for("react.offscreen"),Wt=Symbol.iterator,vt="@@iterator";function Fe(s){if(s===null||typeof s!="object")return null;var m=Wt&&s[Wt]||s[vt];return typeof m=="function"?m:null}var De={current:null},Ke={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Xe={current:null},W={},Bt=null;function We(s){Bt=s}W.setExtraStackFrame=function(s){Bt=s},W.getCurrentStack=null,W.getStackAddendum=function(){var s="";Bt&&(s+=Bt);var m=W.getCurrentStack;return m&&(s+=m()||""),s};var Et=!1,At=!1,Re=!1,Q=!1,Ze=!1,te={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:Ke,ReactCurrentOwner:Xe};te.ReactDebugCurrentFrame=W,te.ReactCurrentActQueue=O;function pe(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),A=1;A<m;A++)D[A-1]=arguments[A];P("warn",s,D)}}function Y(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),A=1;A<m;A++)D[A-1]=arguments[A];P("error",s,D)}}function P(s,m,D){{var A=te.ReactDebugCurrentFrame,K=A.getStackAddendum();K!==""&&(m+="%s",D=D.concat([K]));var Ne=D.map(function(Se){return String(Se)});Ne.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ne)}}var _e={};function Ct(s,m){{var D=s.constructor,A=D&&(D.displayName||D.name)||"ReactClass",K=A+"."+m;if(_e[K])return;Y("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.",m,A),_e[K]=!0}}var Dn={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,D){Ct(s,"forceUpdate")},enqueueReplaceState:function(s,m,D,A){Ct(s,"replaceState")},enqueueSetState:function(s,m,D,A){Ct(s,"setState")}},$t=Object.assign,un={};Object.freeze(un);function Ut(s,m,D){this.props=s,this.context=m,this.refs=un,this.updater=D||Dn}Ut.prototype.isReactComponent={},Ut.prototype.setState=function(s,m){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,m,"setState")},Ut.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var xt={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)."]},qt=function(s,m){Object.defineProperty(Ut.prototype,s,{get:function(){pe("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var ht in xt)xt.hasOwnProperty(ht)&&qt(ht,xt[ht])}function jn(){}jn.prototype=Ut.prototype;function ft(s,m,D){this.props=s,this.context=m,this.refs=un,this.updater=D||Dn}var tn=ft.prototype=new jn;tn.constructor=ft,$t(tn,Ut.prototype),tn.isPureReactComponent=!0;function wt(){var s={current:null};return Object.seal(s),s}var Je=Array.isArray;function nn(s){return Je(s)}function an(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,D=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function rn(s){try{return Zt(s),!1}catch{return!0}}function Zt(s){return""+s}function va(s){if(rn(s))return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",an(s)),Zt(s)}function L(s,m,D){var A=s.displayName;if(A)return A;var K=m.displayName||m.name||"";return K!==""?D+"("+K+")":D}function q(s){return s.displayName||"Context"}function se(s){if(s==null)return null;if(typeof s.tag=="number"&&Y("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 I:return"Fragment";case je:return"Portal";case Rt:return"Profiler";case c:return"StrictMode";case re:return"Suspense";case Ue:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case he:var m=s;return q(m)+".Consumer";case ve:var D=s;return q(D._context)+".Provider";case st:return L(s,s.render,"ForwardRef");case ie:var A=s.displayName||null;return A!==null?A:se(s.type)||"Memo";case ye:{var K=s,Ne=K._payload,Se=K._init;try{return se(Se(Ne))}catch{return null}}}return null}var ne=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},qe,at,ke;ke={};function Be(s){if(ne.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function rt(s){if(ne.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Gt(s,m){var D=function(){qe||(qe=!0,Y("%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)",m))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}function mn(s,m){var D=function(){at||(at=!0,Y("%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)",m))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}function G(s){if(typeof s.ref=="string"&&Xe.current&&s.__self&&Xe.current.stateNode!==s.__self){var m=se(Xe.current.type);ke[m]||(Y('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',m,s.ref),ke[m]=!0)}}var ge=function(s,m,D,A,K,Ne,Se){var Ye={$$typeof:Le,type:s,key:m,ref:D,props:Se,_owner:Ne};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Ve(s,m,D){var A,K={},Ne=null,Se=null,Ye=null,it=null;if(m!=null){Be(m)&&(Se=m.ref,G(m)),rt(m)&&(va(m.key),Ne=""+m.key),Ye=m.__self===void 0?null:m.__self,it=m.__source===void 0?null:m.__source;for(A in m)ne.call(m,A)&&!we.hasOwnProperty(A)&&(K[A]=m[A])}var _t=arguments.length-2;if(_t===1)K.children=D;else if(_t>1){for(var Pt=Array(_t),Yt=0;Yt<_t;Yt++)Pt[Yt]=arguments[Yt+2];Object.freeze&&Object.freeze(Pt),K.children=Pt}if(s&&s.defaultProps){var tt=s.defaultProps;for(A in tt)K[A]===void 0&&(K[A]=tt[A])}if(Ne||Se){var Jt=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ne&&Gt(K,Jt),Se&&mn(K,Jt)}return ge(s,Ne,Se,Ye,it,Xe.current,K)}function dt(s,m){var D=ge(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return D}function Dt(s,m,D){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var A,K=$t({},s.props),Ne=s.key,Se=s.ref,Ye=s._self,it=s._source,_t=s._owner;if(m!=null){Be(m)&&(Se=m.ref,_t=Xe.current),rt(m)&&(va(m.key),Ne=""+m.key);var Pt;s.type&&s.type.defaultProps&&(Pt=s.type.defaultProps);for(A in m)ne.call(m,A)&&!we.hasOwnProperty(A)&&(m[A]===void 0&&Pt!==void 0?K[A]=Pt[A]:K[A]=m[A])}var Yt=arguments.length-2;if(Yt===1)K.children=D;else if(Yt>1){for(var tt=Array(Yt),Jt=0;Jt<Yt;Jt++)tt[Jt]=arguments[Jt+2];K.children=tt}return ge(s.type,Ne,Se,Ye,it,_t,K)}function Ht(s){return typeof s=="object"&&s!==null&&s.$$typeof===Le}var Nt=".",Un=":";function zt(s){var m=/[=:]/g,D={"=":"=0",":":"=2"},A=s.replace(m,function(K){return D[K]});return"$"+A}var jt=!1,Ot=/\/+/g;function $a(s){return s.replace(Ot,"$&/")}function Ta(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(va(s.key),zt(""+s.key)):m.toString(36)}function Ea(s,m,D,A,K){var Ne=typeof s;(Ne==="undefined"||Ne==="boolean")&&(s=null);var Se=!1;if(s===null)Se=!0;else switch(Ne){case"string":case"number":Se=!0;break;case"object":switch(s.$$typeof){case Le:case je:Se=!0}}if(Se){var Ye=s,it=K(Ye),_t=A===""?Nt+Ta(Ye,0):A;if(nn(it)){var Pt="";_t!=null&&(Pt=$a(_t)+"/"),Ea(it,m,Pt,"",function(uf){return uf})}else it!=null&&(Ht(it)&&(it.key&&(!Ye||Ye.key!==it.key)&&va(it.key),it=dt(it,D+(it.key&&(!Ye||Ye.key!==it.key)?$a(""+it.key)+"/":"")+_t)),m.push(it));return 1}var Yt,tt,Jt=0,fn=A===""?Nt:A+Un;if(nn(s))for(var Oi=0;Oi<s.length;Oi++)Yt=s[Oi],tt=fn+Ta(Yt,Oi),Jt+=Ea(Yt,m,D,tt,K);else{var ml=Fe(s);if(typeof ml=="function"){var Lr=s;ml===Lr.entries&&(jt||pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jt=!0);for(var hl=ml.call(Lr),yl,lf=0;!(yl=hl.next()).done;)Yt=yl.value,tt=fn+Ta(Yt,lf++),Jt+=Ea(Yt,m,D,tt,K)}else if(Ne==="object"){var Zu=String(s);throw new Error("Objects are not valid as a React child (found: "+(Zu==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Zu)+"). If you meant to render a collection of children, use an array instead.")}}return Jt}function or(s,m,D){if(s==null)return s;var A=[],K=0;return Ea(s,A,"","",function(Ne){return m.call(D,Ne,K++)}),A}function La(s){var m=0;return or(s,function(){m++}),m}function Zr(s,m,D){or(s,function(){m.apply(this,arguments)},D)}function xr(s){return or(s,function(m){return m})||[]}function ei(s){if(!Ht(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function ti(s){var m={$$typeof:he,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:ve,_context:m};var D=!1,A=!1,K=!1;{var Ne={$$typeof:he,_context:m};Object.defineProperties(Ne,{Provider:{get:function(){return A||(A=!0,Y("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(Se){m.Provider=Se}},_currentValue:{get:function(){return m._currentValue},set:function(Se){m._currentValue=Se}},_currentValue2:{get:function(){return m._currentValue2},set:function(Se){m._currentValue2=Se}},_threadCount:{get:function(){return m._threadCount},set:function(Se){m._threadCount=Se}},Consumer:{get:function(){return D||(D=!0,Y("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(Se){K||(pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Se),K=!0)}}}),m.Consumer=Ne}return m._currentRenderer=null,m._currentRenderer2=null,m}var hn=-1,yn=0,ea=1,ta=2;function Rr(s){if(s._status===hn){var m=s._result,D=m();if(D.then(function(Ne){if(s._status===yn||s._status===hn){var Se=s;Se._status=ea,Se._result=Ne}},function(Ne){if(s._status===yn||s._status===hn){var Se=s;Se._status=ta,Se._result=Ne}}),s._status===hn){var A=s;A._status=yn,A._result=D}}if(s._status===ea){var K=s._result;return K===void 0&&Y(`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||Y(`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 wr(s){var m={_status:hn,_result:s},D={$$typeof:ye,_payload:m,_init:Rr};{var A,K;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return A},set:function(Ne){Y("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."),A=Ne,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return K},set:function(Ne){Y("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=Ne,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function Dr(s){s!=null&&s.$$typeof===ie?Y("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?Y("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&Y("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)&&Y("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:st,render:s};{var D;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(A){D=A,!s.name&&!s.displayName&&(s.displayName=A)}})}return m}var h;h=Symbol.for("react.module.reference");function z(s){return!!(typeof s=="string"||typeof s=="function"||s===I||s===Rt||Ze||s===c||s===re||s===Ue||Q||s===oe||Et||At||Re||typeof s=="object"&&s!==null&&(s.$$typeof===ye||s.$$typeof===ie||s.$$typeof===ve||s.$$typeof===he||s.$$typeof===st||s.$$typeof===h||s.getModuleId!==void 0))}function J(s,m){z(s)||Y("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:ie,type:s,compare:m===void 0?null:m};{var A;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(K){A=K,!s.name&&!s.displayName&&(s.displayName=K)}})}return D}function me(){var s=De.current;return s===null&&Y(`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 et(s){var m=me();if(s._context!==void 0){var D=s._context;D.Consumer===s?Y("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?"):D.Provider===s&&Y("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function p(s){var m=me();return m.useState(s)}function E(s,m,D){var A=me();return A.useReducer(s,m,D)}function b(s){var m=me();return m.useRef(s)}function T(s,m){var D=me();return D.useEffect(s,m)}function R(s,m){var D=me();return D.useInsertionEffect(s,m)}function U(s,m){var D=me();return D.useLayoutEffect(s,m)}function S(s,m){var D=me();return D.useCallback(s,m)}function $(s,m){var D=me();return D.useMemo(s,m)}function V(s,m,D){var A=me();return A.useImperativeHandle(s,m,D)}function Te(s,m){{var D=me();return D.useDebugValue(s,m)}}function Ce(){var s=me();return s.useTransition()}function Ae(s){var m=me();return m.useDeferredValue(s)}function ct(){var s=me();return s.useId()}function Qt(s,m,D){var A=me();return A.useSyncExternalStore(s,m,D)}var gn=0,_n,_r,Oa,kn,lr,Hn,Vt;function na(){}na.__reactDisabledLog=!0;function ur(){{if(gn===0){_n=console.log,_r=console.info,Oa=console.warn,kn=console.error,lr=console.group,Hn=console.groupCollapsed,Vt=console.groupEnd;var s={configurable:!0,enumerable:!0,value:na,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}gn++}}function Pa(){{if(gn--,gn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$t({},s,{value:_n}),info:$t({},s,{value:_r}),warn:$t({},s,{value:Oa}),error:$t({},s,{value:kn}),group:$t({},s,{value:lr}),groupCollapsed:$t({},s,{value:Hn}),groupEnd:$t({},s,{value:Vt})})}gn<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sr=te.ReactCurrentDispatcher,qn;function pa(s,m,D){{if(qn===void 0)try{throw Error()}catch(K){var A=K.stack.trim().match(/\n( *(at )?)/);qn=A&&A[1]||""}return`
`+qn+s}}var cr=!1,ni;{var sn=typeof WeakMap=="function"?WeakMap:Map;ni=new sn}function St(s,m){if(!s||cr)return"";{var D=ni.get(s);if(D!==void 0)return D}var A;cr=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=sr.current,sr.current=null,ur();try{if(m){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(fn){A=fn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(fn){A=fn}s.call(Se.prototype)}}else{try{throw Error()}catch(fn){A=fn}s()}}catch(fn){if(fn&&A&&typeof fn.stack=="string"){for(var Ye=fn.stack.split(`
`),it=A.stack.split(`
`),_t=Ye.length-1,Pt=it.length-1;_t>=1&&Pt>=0&&Ye[_t]!==it[Pt];)Pt--;for(;_t>=1&&Pt>=0;_t--,Pt--)if(Ye[_t]!==it[Pt]){if(_t!==1||Pt!==1)do if(_t--,Pt--,Pt<0||Ye[_t]!==it[Pt]){var Yt=`
`+Ye[_t].replace(" at new "," at ");return s.displayName&&Yt.includes("<anonymous>")&&(Yt=Yt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ni.set(s,Yt),Yt}while(_t>=1&&Pt>=0);break}}}finally{cr=!1,sr.current=Ne,Pa(),Error.prepareStackTrace=K}var tt=s?s.displayName||s.name:"",Jt=tt?pa(tt):"";return typeof s=="function"&&ni.set(s,Jt),Jt}function Aa(s,m,D){return St(s,!1)}function Ya(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Ia(s,m,D){if(s==null)return"";if(typeof s=="function")return St(s,Ya(s));if(typeof s=="string")return pa(s);switch(s){case re:return pa("Suspense");case Ue:return pa("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case st:return Aa(s.render);case ie:return Ia(s.type,m,D);case ye:{var A=s,K=A._payload,Ne=A._init;try{return Ia(Ne(K),m,D)}catch{}}}return""}var qu={},sl=te.ReactDebugCurrentFrame;function yt(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);sl.setExtraStackFrame(D)}else sl.setExtraStackFrame(null)}function nf(s,m,D,A,K){{var Ne=Function.call.bind(ne);for(var Se in s)if(Ne(s,Se)){var Ye=void 0;try{if(typeof s[Se]!="function"){var it=Error((A||"React class")+": "+D+" type `"+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}Ye=s[Se](m,Se,A,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_t){Ye=_t}Ye&&!(Ye instanceof Error)&&(yt(K),Y("%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",D,Se,typeof Ye),yt(null)),Ye instanceof Error&&!(Ye.message in qu)&&(qu[Ye.message]=!0,yt(K),Y("Failed %s type: %s",D,Ye.message),yt(null))}}}function kr(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);We(D)}else We(null)}var Ge;Ge=!1;function cl(){if(Xe.current){var s=se(Xe.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function aa(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
Check your code at `+m+":"+D+"."}return""}function Mi(s){return s!=null?aa(s.__source):""}var ai={};function af(s){var m=cl();if(!m){var D=typeof s=="string"?s:s.displayName||s.name;D&&(m=`
Check the top-level render call using <`+D+">.")}return m}function Mn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=af(m);if(!ai[D]){ai[D]=!0;var A="";s&&s._owner&&s._owner!==Xe.current&&(A=" It was passed a child from "+se(s._owner.type)+"."),kr(s),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,A),kr(null)}}}function Kt(s,m){if(typeof s=="object"){if(nn(s))for(var D=0;D<s.length;D++){var A=s[D];Ht(A)&&Mn(A,m)}else if(Ht(s))s._store&&(s._store.validated=!0);else if(s){var K=Fe(s);if(typeof K=="function"&&K!==s.entries)for(var Ne=K.call(s),Se;!(Se=Ne.next()).done;)Ht(Se.value)&&Mn(Se.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var D;if(typeof m=="function")D=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===st||m.$$typeof===ie))D=m.propTypes;else return;if(D){var A=se(m);nf(D,s.props,"prop",A,s)}else if(m.PropTypes!==void 0&&!Ge){Ge=!0;var K=se(m);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Na(s){{for(var m=Object.keys(s.props),D=0;D<m.length;D++){var A=m[D];if(A!=="children"&&A!=="key"){kr(s),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),kr(null);break}}s.ref!==null&&(kr(s),Y("Invalid attribute `ref` supplied to `React.Fragment`."),kr(null))}}function ra(s,m,D){var A=z(s);if(!A){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 Ne=Mi(m);Ne?K+=Ne:K+=cl();var Se;s===null?Se="null":nn(s)?Se="array":s!==void 0&&s.$$typeof===Le?(Se="<"+(se(s.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof s,Y("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,K)}var Ye=Ve.apply(this,arguments);if(Ye==null)return Ye;if(A)for(var it=2;it<arguments.length;it++)Kt(arguments[it],s);return s===I?Na(Ye):Gu(Ye),Ye}var Wa=!1;function rf(s){var m=ra.bind(null,s);return m.type=s,Wa||(Wa=!0,pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function fl(s,m,D){for(var A=Dt.apply(this,arguments),K=2;K<arguments.length;K++)Kt(arguments[K],A.type);return Gu(A),A}function Xu(s,m){var D=Ke.transition;Ke.transition={};var A=Ke.transition;Ke.transition._updatedFibers=new Set;try{s()}finally{if(Ke.transition=D,D===null&&A._updatedFibers){var K=A._updatedFibers.size;K>10&&pe("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."),A._updatedFibers.clear()}}}var dl=!1,uo=null;function of(s){if(uo===null)try{var m=("require"+Math.random()).slice(0,7),D=k&&k[m];uo=D.call(k,"timers").setImmediate}catch{uo=function(K){dl===!1&&(dl=!0,typeof MessageChannel>"u"&&Y("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 Ne=new MessageChannel;Ne.port1.onmessage=K,Ne.port2.postMessage(void 0)}}return uo(s)}var ri=0,Li=!1;function vl(s){{var m=ri;ri++,O.current===null&&(O.current=[]);var D=O.isBatchingLegacy,A;try{if(O.isBatchingLegacy=!0,A=s(),!D&&O.didScheduleLegacyUpdate){var K=O.current;K!==null&&(O.didScheduleLegacyUpdate=!1,fo(K))}}catch(tt){throw Mr(m),tt}finally{O.isBatchingLegacy=D}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var Ne=A,Se=!1,Ye={then:function(tt,Jt){Se=!0,Ne.then(function(fn){Mr(m),ri===0?so(fn,tt,Jt):tt(fn)},function(fn){Mr(m),Jt(fn)})}};return!Li&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Se||(Li=!0,Y("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 () => ...);"))}),Ye}else{var it=A;if(Mr(m),ri===0){var _t=O.current;_t!==null&&(fo(_t),O.current=null);var Pt={then:function(tt,Jt){O.current===null?(O.current=[],so(it,tt,Jt)):tt(it)}};return Pt}else{var Yt={then:function(tt,Jt){tt(it)}};return Yt}}}}function Mr(s){s!==ri-1&&Y("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ri=s}function so(s,m,D){{var A=O.current;if(A!==null)try{fo(A),of(function(){A.length===0?(O.current=null,m(s)):so(s,m,D)})}catch(K){D(K)}else m(s)}}var co=!1;function fo(s){if(!co){co=!0;var m=0;try{for(;m<s.length;m++){var D=s[m];do D=D(!0);while(D!==null)}s.length=0}catch(A){throw s=s.slice(m+1),A}finally{co=!1}}}var Qu=ra,Ku=fl,pl=rf,Ju={map:or,forEach:Zr,count:La,toArray:xr,only:ei};M.Children=Ju,M.Component=Ut,M.Fragment=I,M.Profiler=Rt,M.PureComponent=ft,M.StrictMode=c,M.Suspense=re,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=te,M.act=vl,M.cloneElement=Ku,M.createContext=ti,M.createElement=Qu,M.createFactory=pl,M.createRef=wt,M.forwardRef=Dr,M.isValidElement=Ht,M.lazy=wr,M.memo=J,M.startTransition=Xu,M.unstable_act=vl,M.useCallback=S,M.useContext=et,M.useDebugValue=Te,M.useDeferredValue=Ae,M.useEffect=T,M.useId=ct,M.useImperativeHandle=V,M.useInsertionEffect=R,M.useLayoutEffect=U,M.useMemo=$,M.useReducer=E,M.useRef=b,M.useState=p,M.useSyncExternalStore=Qt,M.useTransition=Ce,M.version=ee,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ll,ll.exports)),ll.exports}var dm;function Zc(){return dm||(dm=1,Jc.exports=NS()),Jc.exports}var ul={},vm;function jS(){if(vm)return ul;vm=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 k=Zc(),M=Symbol.for("react.element"),ee=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),je=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),Rt=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),st=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),ye=Symbol.iterator,oe="@@iterator";function Wt(h){if(h===null||typeof h!="object")return null;var z=ye&&h[ye]||h[oe];return typeof z=="function"?z:null}var vt=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Fe(h){{for(var z=arguments.length,J=new Array(z>1?z-1:0),me=1;me<z;me++)J[me-1]=arguments[me];De("error",h,J)}}function De(h,z,J){{var me=vt.ReactDebugCurrentFrame,et=me.getStackAddendum();et!==""&&(z+="%s",J=J.concat([et]));var p=J.map(function(E){return String(E)});p.unshift("Warning: "+z),Function.prototype.apply.call(console[h],console,p)}}var Ke=!1,O=!1,Xe=!1,W=!1,Bt=!1,We;We=Symbol.for("react.module.reference");function Et(h){return!!(typeof h=="string"||typeof h=="function"||h===Le||h===I||Bt||h===je||h===he||h===st||W||h===ie||Ke||O||Xe||typeof h=="object"&&h!==null&&(h.$$typeof===Ue||h.$$typeof===re||h.$$typeof===c||h.$$typeof===Rt||h.$$typeof===ve||h.$$typeof===We||h.getModuleId!==void 0))}function At(h,z,J){var me=h.displayName;if(me)return me;var et=z.displayName||z.name||"";return et!==""?J+"("+et+")":J}function Re(h){return h.displayName||"Context"}function Q(h){if(h==null)return null;if(typeof h.tag=="number"&&Fe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Le:return"Fragment";case ee:return"Portal";case I:return"Profiler";case je:return"StrictMode";case he:return"Suspense";case st:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case Rt:var z=h;return Re(z)+".Consumer";case c:var J=h;return Re(J._context)+".Provider";case ve:return At(h,h.render,"ForwardRef");case re:var me=h.displayName||null;return me!==null?me:Q(h.type)||"Memo";case Ue:{var et=h,p=et._payload,E=et._init;try{return Q(E(p))}catch{return null}}}return null}var Ze=Object.assign,te=0,pe,Y,P,_e,Ct,Dn,$t;function un(){}un.__reactDisabledLog=!0;function Ut(){{if(te===0){pe=console.log,Y=console.info,P=console.warn,_e=console.error,Ct=console.group,Dn=console.groupCollapsed,$t=console.groupEnd;var h={configurable:!0,enumerable:!0,value:un,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}te++}}function xt(){{if(te--,te===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ze({},h,{value:pe}),info:Ze({},h,{value:Y}),warn:Ze({},h,{value:P}),error:Ze({},h,{value:_e}),group:Ze({},h,{value:Ct}),groupCollapsed:Ze({},h,{value:Dn}),groupEnd:Ze({},h,{value:$t})})}te<0&&Fe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var qt=vt.ReactCurrentDispatcher,ht;function jn(h,z,J){{if(ht===void 0)try{throw Error()}catch(et){var me=et.stack.trim().match(/\n( *(at )?)/);ht=me&&me[1]||""}return`
`+ht+h}}var ft=!1,tn;{var wt=typeof WeakMap=="function"?WeakMap:Map;tn=new wt}function Je(h,z){if(!h||ft)return"";{var J=tn.get(h);if(J!==void 0)return J}var me;ft=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=qt.current,qt.current=null,Ut();try{if(z){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(Te){me=Te}Reflect.construct(h,[],E)}else{try{E.call()}catch(Te){me=Te}h.call(E.prototype)}}else{try{throw Error()}catch(Te){me=Te}h()}}catch(Te){if(Te&&me&&typeof Te.stack=="string"){for(var b=Te.stack.split(`
`),T=me.stack.split(`
`),R=b.length-1,U=T.length-1;R>=1&&U>=0&&b[R]!==T[U];)U--;for(;R>=1&&U>=0;R--,U--)if(b[R]!==T[U]){if(R!==1||U!==1)do if(R--,U--,U<0||b[R]!==T[U]){var S=`
`+b[R].replace(" at new "," at ");return h.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",h.displayName)),typeof h=="function"&&tn.set(h,S),S}while(R>=1&&U>=0);break}}}finally{ft=!1,qt.current=p,xt(),Error.prepareStackTrace=et}var $=h?h.displayName||h.name:"",V=$?jn($):"";return typeof h=="function"&&tn.set(h,V),V}function nn(h,z,J){return Je(h,!1)}function an(h){var z=h.prototype;return!!(z&&z.isReactComponent)}function rn(h,z,J){if(h==null)return"";if(typeof h=="function")return Je(h,an(h));if(typeof h=="string")return jn(h);switch(h){case he:return jn("Suspense");case st:return jn("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ve:return nn(h.render);case re:return rn(h.type,z,J);case Ue:{var me=h,et=me._payload,p=me._init;try{return rn(p(et),z,J)}catch{}}}return""}var Zt=Object.prototype.hasOwnProperty,va={},L=vt.ReactDebugCurrentFrame;function q(h){if(h){var z=h._owner,J=rn(h.type,h._source,z?z.type:null);L.setExtraStackFrame(J)}else L.setExtraStackFrame(null)}function se(h,z,J,me,et){{var p=Function.call.bind(Zt);for(var E in h)if(p(h,E)){var b=void 0;try{if(typeof h[E]!="function"){var T=Error((me||"React class")+": "+J+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}b=h[E](z,E,me,J,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){b=R}b&&!(b instanceof Error)&&(q(et),Fe("%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).",me||"React class",J,E,typeof b),q(null)),b instanceof Error&&!(b.message in va)&&(va[b.message]=!0,q(et),Fe("Failed %s type: %s",J,b.message),q(null))}}}var ne=Array.isArray;function we(h){return ne(h)}function qe(h){{var z=typeof Symbol=="function"&&Symbol.toStringTag,J=z&&h[Symbol.toStringTag]||h.constructor.name||"Object";return J}}function at(h){try{return ke(h),!1}catch{return!0}}function ke(h){return""+h}function Be(h){if(at(h))return Fe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(h)),ke(h)}var rt=vt.ReactCurrentOwner,Gt={key:!0,ref:!0,__self:!0,__source:!0},mn,G;function ge(h){if(Zt.call(h,"ref")){var z=Object.getOwnPropertyDescriptor(h,"ref").get;if(z&&z.isReactWarning)return!1}return h.ref!==void 0}function Ve(h){if(Zt.call(h,"key")){var z=Object.getOwnPropertyDescriptor(h,"key").get;if(z&&z.isReactWarning)return!1}return h.key!==void 0}function dt(h,z){typeof h.ref=="string"&&rt.current}function Dt(h,z){{var J=function(){mn||(mn=!0,Fe("%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)",z))};J.isReactWarning=!0,Object.defineProperty(h,"key",{get:J,configurable:!0})}}function Ht(h,z){{var J=function(){G||(G=!0,Fe("%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)",z))};J.isReactWarning=!0,Object.defineProperty(h,"ref",{get:J,configurable:!0})}}var Nt=function(h,z,J,me,et,p,E){var b={$$typeof:M,type:h,key:z,ref:J,props:E,_owner:p};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Un(h,z,J,me,et){{var p,E={},b=null,T=null;J!==void 0&&(Be(J),b=""+J),Ve(z)&&(Be(z.key),b=""+z.key),ge(z)&&(T=z.ref,dt(z,et));for(p in z)Zt.call(z,p)&&!Gt.hasOwnProperty(p)&&(E[p]=z[p]);if(h&&h.defaultProps){var R=h.defaultProps;for(p in R)E[p]===void 0&&(E[p]=R[p])}if(b||T){var U=typeof h=="function"?h.displayName||h.name||"Unknown":h;b&&Dt(E,U),T&&Ht(E,U)}return Nt(h,b,T,et,me,rt.current,E)}}var zt=vt.ReactCurrentOwner,jt=vt.ReactDebugCurrentFrame;function Ot(h){if(h){var z=h._owner,J=rn(h.type,h._source,z?z.type:null);jt.setExtraStackFrame(J)}else jt.setExtraStackFrame(null)}var $a;$a=!1;function Ta(h){return typeof h=="object"&&h!==null&&h.$$typeof===M}function Ea(){{if(zt.current){var h=Q(zt.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function or(h){return""}var La={};function Zr(h){{var z=Ea();if(!z){var J=typeof h=="string"?h:h.displayName||h.name;J&&(z=`
Check the top-level render call using <`+J+">.")}return z}}function xr(h,z){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var J=Zr(z);if(La[J])return;La[J]=!0;var me="";h&&h._owner&&h._owner!==zt.current&&(me=" It was passed a child from "+Q(h._owner.type)+"."),Ot(h),Fe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',J,me),Ot(null)}}function ei(h,z){{if(typeof h!="object")return;if(we(h))for(var J=0;J<h.length;J++){var me=h[J];Ta(me)&&xr(me,z)}else if(Ta(h))h._store&&(h._store.validated=!0);else if(h){var et=Wt(h);if(typeof et=="function"&&et!==h.entries)for(var p=et.call(h),E;!(E=p.next()).done;)Ta(E.value)&&xr(E.value,z)}}}function ti(h){{var z=h.type;if(z==null||typeof z=="string")return;var J;if(typeof z=="function")J=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===ve||z.$$typeof===re))J=z.propTypes;else return;if(J){var me=Q(z);se(J,h.props,"prop",me,h)}else if(z.PropTypes!==void 0&&!$a){$a=!0;var et=Q(z);Fe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",et||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&Fe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function hn(h){{for(var z=Object.keys(h.props),J=0;J<z.length;J++){var me=z[J];if(me!=="children"&&me!=="key"){Ot(h),Fe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),Ot(null);break}}h.ref!==null&&(Ot(h),Fe("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var yn={};function ea(h,z,J,me,et,p){{var E=Et(h);if(!E){var b="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(b+=" 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 T=or();T?b+=T:b+=Ea();var R;h===null?R="null":we(h)?R="array":h!==void 0&&h.$$typeof===M?(R="<"+(Q(h.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):R=typeof h,Fe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,b)}var U=Un(h,z,J,et,p);if(U==null)return U;if(E){var S=z.children;if(S!==void 0)if(me)if(we(S)){for(var $=0;$<S.length;$++)ei(S[$],h);Object.freeze&&Object.freeze(S)}else Fe("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 ei(S,h)}if(Zt.call(z,"key")){var V=Q(h),Te=Object.keys(z).filter(function(ct){return ct!=="key"}),Ce=Te.length>0?"{key: someKey, "+Te.join(": ..., ")+": ...}":"{key: someKey}";if(!yn[V+Ce]){var Ae=Te.length>0?"{"+Te.join(": ..., ")+": ...}":"{}";Fe(`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} />`,Ce,V,Ae,V),yn[V+Ce]=!0}}return h===Le?hn(U):ti(U),U}}function ta(h,z,J){return ea(h,z,J,!0)}function Rr(h,z,J){return ea(h,z,J,!1)}var wr=Rr,Dr=ta;ul.Fragment=Le,ul.jsx=wr,ul.jsxs=Dr}(),ul}cm.exports=jS();var v=cm.exports,pm={exports:{}},ef={exports:{}},tf={},mm;function US(){return mm||(mm=1,function(k){/**
* @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 M=!1,ee=5;function Le(G,ge){var Ve=G.length;G.push(ge),c(G,ge,Ve)}function je(G){return G.length===0?null:G[0]}function I(G){if(G.length===0)return null;var ge=G[0],Ve=G.pop();return Ve!==ge&&(G[0]=Ve,Rt(G,Ve,0)),ge}function c(G,ge,Ve){for(var dt=Ve;dt>0;){var Dt=dt-1>>>1,Ht=G[Dt];if(ve(Ht,ge)>0)G[Dt]=ge,G[dt]=Ht,dt=Dt;else return}}function Rt(G,ge,Ve){for(var dt=Ve,Dt=G.length,Ht=Dt>>>1;dt<Ht;){var Nt=(dt+1)*2-1,Un=G[Nt],zt=Nt+1,jt=G[zt];if(ve(Un,ge)<0)zt<Dt&&ve(jt,Un)<0?(G[dt]=jt,G[zt]=ge,dt=zt):(G[dt]=Un,G[Nt]=ge,dt=Nt);else if(zt<Dt&&ve(jt,ge)<0)G[dt]=jt,G[zt]=ge,dt=zt;else return}}function ve(G,ge){var Ve=G.sortIndex-ge.sortIndex;return Ve!==0?Ve:G.id-ge.id}var he=1,st=2,re=3,Ue=4,ie=5;function ye(G,ge){}var oe=typeof performance=="object"&&typeof performance.now=="function";if(oe){var Wt=performance;k.unstable_now=function(){return Wt.now()}}else{var vt=Date,Fe=vt.now();k.unstable_now=function(){return vt.now()-Fe}}var De=1073741823,Ke=-1,O=250,Xe=5e3,W=1e4,Bt=De,We=[],Et=[],At=1,Re=null,Q=re,Ze=!1,te=!1,pe=!1,Y=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,_e=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ct(G){for(var ge=je(Et);ge!==null;){if(ge.callback===null)I(Et);else if(ge.startTime<=G)I(Et),ge.sortIndex=ge.expirationTime,Le(We,ge);else return;ge=je(Et)}}function Dn(G){if(pe=!1,Ct(G),!te)if(je(We)!==null)te=!0,ke($t);else{var ge=je(Et);ge!==null&&Be(Dn,ge.startTime-G)}}function $t(G,ge){te=!1,pe&&(pe=!1,rt()),Ze=!0;var Ve=Q;try{var dt;if(!M)return un(G,ge)}finally{Re=null,Q=Ve,Ze=!1}}function un(G,ge){var Ve=ge;for(Ct(Ve),Re=je(We);Re!==null&&!(Re.expirationTime>Ve&&(!G||L()));){var dt=Re.callback;if(typeof dt=="function"){Re.callback=null,Q=Re.priorityLevel;var Dt=Re.expirationTime<=Ve,Ht=dt(Dt);Ve=k.unstable_now(),typeof Ht=="function"?Re.callback=Ht:Re===je(We)&&I(We),Ct(Ve)}else I(We);Re=je(We)}if(Re!==null)return!0;var Nt=je(Et);return Nt!==null&&Be(Dn,Nt.startTime-Ve),!1}function Ut(G,ge){switch(G){case he:case st:case re:case Ue:case ie:break;default:G=re}var Ve=Q;Q=G;try{return ge()}finally{Q=Ve}}function xt(G){var ge;switch(Q){case he:case st:case re:ge=re;break;default:ge=Q;break}var Ve=Q;Q=ge;try{return G()}finally{Q=Ve}}function qt(G){var ge=Q;return function(){var Ve=Q;Q=ge;try{return G.apply(this,arguments)}finally{Q=Ve}}}function ht(G,ge,Ve){var dt=k.unstable_now(),Dt;if(typeof Ve=="object"&&Ve!==null){var Ht=Ve.delay;typeof Ht=="number"&&Ht>0?Dt=dt+Ht:Dt=dt}else Dt=dt;var Nt;switch(G){case he:Nt=Ke;break;case st:Nt=O;break;case ie:Nt=Bt;break;case Ue:Nt=W;break;case re:default:Nt=Xe;break}var Un=Dt+Nt,zt={id:At++,callback:ge,priorityLevel:G,startTime:Dt,expirationTime:Un,sortIndex:-1};return Dt>dt?(zt.sortIndex=Dt,Le(Et,zt),je(We)===null&&zt===je(Et)&&(pe?rt():pe=!0,Be(Dn,Dt-dt))):(zt.sortIndex=Un,Le(We,zt),!te&&!Ze&&(te=!0,ke($t))),zt}function jn(){}function ft(){!te&&!Ze&&(te=!0,ke($t))}function tn(){return je(We)}function wt(G){G.callback=null}function Je(){return Q}var nn=!1,an=null,rn=-1,Zt=ee,va=-1;function L(){var G=k.unstable_now()-va;return!(G<Zt)}function q(){}function se(G){if(G<0||G>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}G>0?Zt=Math.floor(1e3/G):Zt=ee}var ne=function(){if(an!==null){var G=k.unstable_now();va=G;var ge=!0,Ve=!0;try{Ve=an(ge,G)}finally{Ve?we():(nn=!1,an=null)}}else nn=!1},we;if(typeof _e=="function")we=function(){_e(ne)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,at=qe.port2;qe.port1.onmessage=ne,we=function(){at.postMessage(null)}}else we=function(){Y(ne,0)};function ke(G){an=G,nn||(nn=!0,we())}function Be(G,ge){rn=Y(function(){G(k.unstable_now())},ge)}function rt(){P(rn),rn=-1}var Gt=q,mn=null;k.unstable_IdlePriority=ie,k.unstable_ImmediatePriority=he,k.unstable_LowPriority=Ue,k.unstable_NormalPriority=re,k.unstable_Profiling=mn,k.unstable_UserBlockingPriority=st,k.unstable_cancelCallback=wt,k.unstable_continueExecution=ft,k.unstable_forceFrameRate=se,k.unstable_getCurrentPriorityLevel=Je,k.unstable_getFirstCallbackNode=tn,k.unstable_next=xt,k.unstable_pauseExecution=jn,k.unstable_requestPaint=Gt,k.unstable_runWithPriority=Ut,k.unstable_scheduleCallback=ht,k.unstable_shouldYield=L,k.unstable_wrapCallback=qt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var hm;function HS(){return hm||(hm=1,ef.exports=US()),ef.exports}var da={},ym;function zS(){if(ym)return da;ym=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 k=Zc(),M=HS(),ee=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Le=!1;function je(e){Le=e}function I(e){if(!Le){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Rt("warn",e,n)}}function c(e){if(!Le){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Rt("error",e,n)}}function Rt(e,t,n){{var a=ee.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 ve=0,he=1,st=2,re=3,Ue=4,ie=5,ye=6,oe=7,Wt=8,vt=9,Fe=10,De=11,Ke=12,O=13,Xe=14,W=15,Bt=16,We=17,Et=18,At=19,Re=21,Q=22,Ze=23,te=24,pe=25,Y=!0,P=!1,_e=!1,Ct=!1,Dn=!1,$t=!0,un=!0,Ut=!0,xt=!0,qt=new Set,ht={},jn={};function ft(e,t){tn(e,t),tn(e+"Capture",t)}function tn(e,t){ht[e]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ht[e]=t;{var n=e.toLowerCase();jn[n]=e,e==="onDoubleClick"&&(jn.ondblclick=e)}for(var a=0;a<t.length;a++)qt.add(t[a])}var wt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Je=Object.prototype.hasOwnProperty;function nn(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function an(e){try{return rn(e),!1}catch{return!0}}function rn(e){return""+e}function Zt(e,t){if(an(e))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),rn(e)}function va(e){if(an(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(e)),rn(e)}function L(e,t){if(an(e))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),rn(e)}function q(e,t){if(an(e))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),rn(e)}function se(e){if(an(e))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",nn(e)),rn(e)}function ne(e){if(an(e))return c("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.",nn(e)),rn(e)}var we=0,qe=1,at=2,ke=3,Be=4,rt=5,Gt=6,mn=":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",G=mn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("^["+mn+"]["+G+"]*$"),Ve={},dt={};function Dt(e){return Je.call(dt,e)?!0:Je.call(Ve,e)?!1:ge.test(e)?(dt[e]=!0,!0):(Ve[e]=!0,c("Invalid attribute name: `%s`",e),!1)}function Ht(e,t,n){return t!==null?t.type===we:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Nt(e,t,n,a){if(n!==null&&n.type===we)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 Un(e,t,n,a){if(t===null||typeof t>"u"||Nt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case ke:return!t;case Be:return t===!1;case rt:return isNaN(t);case Gt:return isNaN(t)||t<1}return!1}function zt(e){return Ot.hasOwnProperty(e)?Ot[e]:null}function jt(e,t,n,a,r,i,o){this.acceptsBooleans=t===at||t===ke||t===Be,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ot={},$a=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$a.forEach(function(e){Ot[e]=new jt(e,we,!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];Ot[t]=new jt(t,qe,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ot[e]=new jt(e,at,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ot[e]=new jt(e,at,!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){Ot[e]=new jt(e,ke,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ot[e]=new jt(e,ke,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ot[e]=new jt(e,Be,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ot[e]=new jt(e,Gt,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ot[e]=new jt(e,rt,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-\:]([a-z])/g,Ea=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(Ta,Ea);Ot[t]=new jt(t,qe,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Ta,Ea);Ot[t]=new jt(t,qe,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ta,Ea);Ot[t]=new jt(t,qe,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ot[e]=new jt(e,qe,!1,e.toLowerCase(),null,!1,!1)});var or="xlinkHref";Ot[or]=new jt("xlinkHref",qe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ot[e]=new jt(e,qe,!1,e.toLowerCase(),null,!0,!0)});var La=/^[\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,Zr=!1;function xr(e){!Zr&&La.test(e)&&(Zr=!0,c("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 ei(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{Zt(n,t),a.sanitizeURL&&xr(""+n);var i=a.attributeName,o=null;if(a.type===Be){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Un(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Un(t,n,a,!1))return e.getAttribute(i);if(a.type===ke)return n;o=e.getAttribute(i)}return Un(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ti(e,t,n,a){{if(!Dt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return Zt(n,t),r===""+n?n:r}}function hn(e,t,n,a){var r=zt(t);if(!Ht(t,r,a)){if(Un(t,n,r,a)&&(n=null),a||r===null){if(Dt(t)){var i=t;n===null?e.removeAttribute(i):(Zt(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===ke?!1:""}else e[l]=n;return}var f=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var g=r.type,y;g===ke||g===Be&&n===!0?y="":(Zt(n,f),y=""+n,r.sanitizeURL&&xr(y.toString())),d?e.setAttributeNS(d,f,y):e.setAttribute(f,y)}}}var yn=Symbol.for("react.element"),ea=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),Rr=Symbol.for("react.strict_mode"),wr=Symbol.for("react.profiler"),Dr=Symbol.for("react.provider"),h=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),E=Symbol.for("react.scope"),b=Symbol.for("react.debug_trace_mode"),T=Symbol.for("react.offscreen"),R=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.cache"),S=Symbol.for("react.tracing_marker"),$=Symbol.iterator,V="@@iterator";function Te(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[V];return typeof t=="function"?t:null}var Ce=Object.assign,Ae=0,ct,Qt,gn,_n,_r,Oa,kn;function lr(){}lr.__reactDisabledLog=!0;function Hn(){{if(Ae===0){ct=console.log,Qt=console.info,gn=console.warn,_n=console.error,_r=console.group,Oa=console.groupCollapsed,kn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:lr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ae++}}function Vt(){{if(Ae--,Ae===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ce({},e,{value:ct}),info:Ce({},e,{value:Qt}),warn:Ce({},e,{value:gn}),error:Ce({},e,{value:_n}),group:Ce({},e,{value:_r}),groupCollapsed:Ce({},e,{value:Oa}),groupEnd:Ce({},e,{value:kn})})}Ae<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var na=ee.ReactCurrentDispatcher,ur;function Pa(e,t,n){{if(ur===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ur=a&&a[1]||""}return`
`+ur+e}}var sr=!1,qn;{var pa=typeof WeakMap=="function"?WeakMap:Map;qn=new pa}function cr(e,t){if(!e||sr)return"";{var n=qn.get(e);if(n!==void 0)return n}var a;sr=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=na.current,na.current=null,Hn();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(_){a=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){a=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var l=_.stack.split(`
`),u=a.stack.split(`
`),f=l.length-1,d=u.length-1;f>=1&&d>=0&&l[f]!==u[d];)d--;for(;f>=1&&d>=0;f--,d--)if(l[f]!==u[d]){if(f!==1||d!==1)do if(f--,d--,d<0||l[f]!==u[d]){var g=`
`+l[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&qn.set(e,g),g}while(f>=1&&d>=0);break}}}finally{sr=!1,na.current=i,Vt(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",w=y?Pa(y):"";return typeof e=="function"&&qn.set(e,w),w}function ni(e,t,n){return cr(e,!0)}function sn(e,t,n){return cr(e,!1)}function St(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Aa(e,t,n){if(e==null)return"";if(typeof e=="function")return cr(e,St(e));if(typeof e=="string")return Pa(e);switch(e){case J:return Pa("Suspense");case me:return Pa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return sn(e.render);case et:return Aa(e.type,t,n);case p:{var a=e,r=a._payload,i=a._init;try{return Aa(i(r),t,n)}catch{}}}return""}function Ya(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ie:return Pa(e.type);case Bt:return Pa("Lazy");case O:return Pa("Suspense");case At:return Pa("SuspenseList");case ve:case st:case W:return sn(e.type);case De:return sn(e.type.render);case he:return ni(e.type);default:return""}}function Ia(e){try{var t="",n=e;do t+=Ya(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function qu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function sl(e){return e.displayName||"Context"}function yt(e){if(e==null)return null;if(typeof e.tag=="number"&&c("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 ta:return"Fragment";case ea:return"Portal";case wr:return"Profiler";case Rr:return"StrictMode";case J:return"Suspense";case me:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return sl(t)+".Consumer";case Dr:var n=e;return sl(n._context)+".Provider";case z:return qu(e,e.render,"ForwardRef");case et:var a=e.displayName||null;return a!==null?a:yt(e.type)||"Memo";case p:{var r=e,i=r._payload,o=r._init;try{return yt(o(i))}catch{return null}}}return null}function nf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function kr(e){return e.displayName||"Context"}function Ge(e){var t=e.tag,n=e.type;switch(t){case te:return"Cache";case vt:var a=n;return kr(a)+".Consumer";case Fe:var r=n;return kr(r._context)+".Provider";case Et:return"DehydratedFragment";case De:return nf(n,n.render,"ForwardRef");case oe:return"Fragment";case ie:return n;case Ue:return"Portal";case re:return"Root";case ye:return"Text";case Bt:return yt(n);case Wt:return n===Rr?"StrictMode":"Mode";case Q:return"Offscreen";case Ke:return"Profiler";case Re:return"Scope";case O:return"Suspense";case At:return"SuspenseList";case pe:return"TracingMarker";case he:case ve:case We:case st:case Xe:case W:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var cl=ee.ReactDebugCurrentFrame,aa=null,Mi=!1;function ai(){{if(aa===null)return null;var e=aa._debugOwner;if(e!==null&&typeof e<"u")return Ge(e)}return null}function af(){return aa===null?"":Ia(aa)}function Mn(){cl.getCurrentStack=null,aa=null,Mi=!1}function Kt(e){cl.getCurrentStack=e===null?null:af,aa=e,Mi=!1}function Gu(){return aa}function Na(e){Mi=e}function ra(e){return""+e}function Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ne(e),e;default:return""}}var rf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){rf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||c("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||c("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 Xu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dl(e){return e._valueTracker}function uo(e){e._valueTracker=null}function of(e){var t="";return e&&(Xu(e)?t=e.checked?"true":"false":t=e.value),t}function ri(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ne(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){ne(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){ne(l),a=""+l},stopTracking:function(){uo(e),delete e[t]}};return o}}function Li(e){dl(e)||(e._valueTracker=ri(e))}function vl(e){if(!e)return!1;var t=dl(e);if(!t)return!0;var n=t.getValue(),a=of(e);return a!==n?(t.setValue(a),!0):!1}function Mr(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 so=!1,co=!1,fo=!1,Qu=!1;function Ku(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function pl(e,t){var n=e,a=t.checked,r=Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Ju(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!co&&(c("%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",ai()||"A component",t.type),co=!0),t.value!==void 0&&t.defaultValue!==void 0&&!so&&(c("%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",ai()||"A component",t.type),so=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Wa(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&hn(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Ku(t);!n._wrapperState.controlled&&a&&!Qu&&(c("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"),Qu=!0),n._wrapperState.controlled&&!a&&!fo&&(c("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"),fo=!0)}s(e,t);var r=Wa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ra(r)):n.value!==ra(r)&&(n.value=ra(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ne(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ne(n,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function D(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=ra(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 A(e,t){var n=e;m(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;Zt(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=zs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");vl(o),m(o,l)}}}}function Ne(e,t,n){(t!=="number"||Mr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ra(e._wrapperState.initialValue):e.defaultValue!==ra(n)&&(e.defaultValue=ra(n)))}var Se=!1,Ye=!1,it=!1;function _t(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?k.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ye||(Ye=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(it||(it=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Se&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Se=!0)}function Pt(e,t){t.value!=null&&e.setAttribute("value",ra(Wa(t.value)))}var Yt=Array.isArray;function tt(e){return Yt(e)}var Jt;Jt=!1;function fn(){var e=ai();return e?`
Check the render method of \``+e+"`.":""}var Oi=["value","defaultValue"];function ml(e){{fl("select",e);for(var t=0;t<Oi.length;t++){var n=Oi[t];if(e[n]!=null){var a=tt(e[n]);e.multiple&&!a?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,fn()):!e.multiple&&a&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,fn())}}}}function Lr(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 d=ra(Wa(n)),g=null,y=0;y<r.length;y++){if(r[y].value===d){r[y].selected=!0,a&&(r[y].defaultSelected=!0);return}g===null&&!r[y].disabled&&(g=r[y])}g!==null&&(g.selected=!0)}}function hl(e,t){return Ce({},t,{value:void 0})}function yl(e,t){var n=e;ml(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Jt&&(c("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"),Jt=!0)}function lf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Lr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Lr(n,!!t.multiple,t.defaultValue,!0)}function Zu(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Lr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Lr(n,!!t.multiple,t.defaultValue,!0):Lr(n,!!t.multiple,t.multiple?[]:"",!1))}function uf(e,t){var n=e,a=t.value;a!=null&&Lr(n,!!t.multiple,a,!1)}var wm=!1;function sf(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Ce({},t,{value:void 0,defaultValue:void 0,children:ra(n._wrapperState.initialValue)});return a}function Dm(e,t){var n=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wm&&(c("%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",ai()||"A component"),wm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){c("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(tt(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:Wa(a)}}function _m(e,t){var n=e,a=Wa(t.value),r=Wa(t.defaultValue);if(a!=null){var i=ra(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ra(r))}function km(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function t0(e,t){_m(e,t)}var Or="http://www.w3.org/1999/xhtml",n0="http://www.w3.org/1998/Math/MathML",cf="http://www.w3.org/2000/svg";function ff(e){switch(e){case"svg":return cf;case"math":return n0;default:return Or}}function df(e,t){return e==null||e===Or?ff(t):e===cf&&t==="foreignObject"?Or:e}var a0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},es,Mm=a0(function(e,t){if(e.namespaceURI===cf&&!("innerHTML"in e)){es=es||document.createElement("div"),es.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ma=1,Ar=3,dn=8,Nr=9,vf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Ar){n.nodeValue=t;return}}e.textContent=t},r0={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"]},gl={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 i0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o0=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){o0.forEach(function(t){gl[i0(t,e)]=gl[e]})});function pf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(q(t,e),(""+t).trim())}var l0=/([A-Z])/g,u0=/^ms-/;function s0(e){return e.replace(l0,"-$1").toLowerCase().replace(u0,"-ms-")}var Lm=function(){};{var c0=/^(?:webkit|moz|o)[A-Z]/,f0=/^-ms-/,d0=/-(.)/g,Om=/;\s*$/,vo={},mf={},Am=!1,Nm=!1,v0=function(e){return e.replace(d0,function(t,n){return n.toUpperCase()})},p0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported style property %s. Did you mean %s?",e,v0(e.replace(f0,"ms-"))))},m0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},h0=function(e,t){mf.hasOwnProperty(t)&&mf[t]||(mf[t]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Om,"")))},y0=function(e,t){Am||(Am=!0,c("`NaN` is an invalid value for the `%s` css style property.",e))},g0=function(e,t){Nm||(Nm=!0,c("`Infinity` is an invalid value for the `%s` css style property.",e))};Lm=function(e,t){e.indexOf("-")>-1?p0(e):c0.test(e)?m0(e):Om.test(t)&&h0(e,t),typeof t=="number"&&(isNaN(t)?y0(e,t):isFinite(t)||g0(e,t))}}var b0=Lm;function S0(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:s0(a))+":",t+=pf(a,r,i),n=";"}}return t||null}}function jm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||b0(a,t[a]);var i=pf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function T0(e){return e==null||typeof e=="boolean"||e===""}function Um(e){var t={};for(var n in e)for(var a=r0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function E0(e,t){{if(!t)return;var n=Um(e),a=Um(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,c("%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.",T0(e[o])?"Removing":"Updating",o,l)}}}}var C0={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},x0=Ce({menuitem:!0},C0),R0="__html";function hf(e,t){if(t){if(x0[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"||!(R0 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&&c("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 Ai(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 ns={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"},Hm={"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},po={},w0=new RegExp("^(aria)-["+G+"]*$"),D0=new RegExp("^(aria)[A-Z]["+G+"]*$");function _0(e,t){{if(Je.call(po,t)&&po[t])return!0;if(D0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Hm.hasOwnProperty(n)?n:null;if(a==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),po[t]=!0,!0;if(t!==a)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),po[t]=!0,!0}if(w0.test(t)){var r=t.toLowerCase(),i=Hm.hasOwnProperty(r)?r:null;if(i==null)return po[t]=!0,!1;if(t!==i)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),po[t]=!0,!0}}return!0}function k0(e,t){{var n=[];for(var a in t){var r=_0(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function M0(e,t){Ai(e,t)||k0(e,t)}var zm=!1;function L0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!zm&&(zm=!0,e==="select"&&t.multiple?c("`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):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Vm=function(){};{var ia={},Fm=/^on./,O0=/^on[^A-Z]/,A0=new RegExp("^(aria)-["+G+"]*$"),N0=new RegExp("^(aria)[A-Z]["+G+"]*$");Vm=function(e,t,n,a){if(Je.call(ia,t)&&ia[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return c("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."),ia[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 c("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ia[t]=!0,!0;if(Fm.test(t))return c("Unknown event handler property `%s`. It will be ignored.",t),ia[t]=!0,!0}else if(Fm.test(t))return O0.test(t)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ia[t]=!0,!0;if(A0.test(t)||N0.test(t))return!0;if(r==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ia[t]=!0,!0;if(r==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ia[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ia[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ia[t]=!0,!0;var u=zt(t),f=u!==null&&u.type===we;if(ns.hasOwnProperty(r)){var d=ns[r];if(d!==t)return c("Invalid DOM property `%s`. Did you mean `%s`?",t,d),ia[t]=!0,!0}else if(!f&&t!==r)return c("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),ia[t]=!0,!0;return typeof n=="boolean"&&Nt(t,n,u,!1)?(n?c('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):c('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),ia[t]=!0,!0):f?!0:Nt(t,n,u,!1)?(ia[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===ke&&(c("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),ia[t]=!0),!0)}}var j0=function(e,t,n){{var a=[];for(var r in t){var i=Vm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?c("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&&c("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 U0(e,t,n){Ai(e,t)||j0(e,t,n)}var Bm=1,yf=2,bl=4,H0=Bm|yf|bl,Sl=null;function z0(e){Sl!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Sl=e}function V0(){Sl===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Sl=null}function F0(e){return e===Sl}function gf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Ar?t.parentNode:t}var bf=null,mo=null,ho=null;function $m(e){var t=vi(e);if(t){if(typeof bf!="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=zs(n);bf(t.stateNode,t.type,a)}}}function B0(e){bf=e}function Pm(e){mo?ho?ho.push(e):ho=[e]:mo=e}function $0(){return mo!==null||ho!==null}function Ym(){if(mo){var e=mo,t=ho;if(mo=null,ho=null,$m(e),t)for(var n=0;n<t.length;n++)$m(t[n])}}var Im=function(e,t){return e(t)},Wm=function(){},Sf=!1;function P0(){var e=$0();e&&(Wm(),Ym())}function qm(e,t,n){if(Sf)return e(t,n);Sf=!0;try{return Im(e,t,n)}finally{Sf=!1,P0()}}function Y0(e,t,n){Im=e,Wm=n}function I0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function W0(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&&I0(t));default:return!1}}function Tl(e,t){var n=e.stateNode;if(n===null)return null;var a=zs(n);if(a===null)return null;var r=a[t];if(W0(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 Tf=!1;if(wt)try{var El={};Object.defineProperty(El,"passive",{get:function(){Tf=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Tf=!1}function Gm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var Xm=Gm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Ef=document.createElement("react");Xm=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 d=document.createEvent("Event"),g=!1,y=!0,w=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function N(){Ef.removeEventListener(j,Me,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var ae=Array.prototype.slice.call(arguments,3);function Me(){g=!0,N(),n.apply(a,ae),y=!1}var xe,ut=!1,nt=!1;function C(x){if(xe=x.error,ut=!0,xe===null&&x.colno===0&&x.lineno===0&&(nt=!0),x.defaultPrevented&&xe!=null&&typeof xe=="object")try{xe._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),Ef.addEventListener(j,Me,!1),d.initEvent(j,!1,!1),Ef.dispatchEvent(d),_&&Object.defineProperty(window,"event",_),g&&y&&(ut?nt&&(xe=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.")):xe=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(xe)),window.removeEventListener("error",C),!g)return N(),Gm.apply(this,arguments)}}var q0=Xm,yo=!1,as=null,rs=!1,Cf=null,G0={onError:function(e){yo=!0,as=e}};function xf(e,t,n,a,r,i,o,l,u){yo=!1,as=null,q0.apply(G0,arguments)}function X0(e,t,n,a,r,i,o,l,u){if(xf.apply(this,arguments),yo){var f=Rf();rs||(rs=!0,Cf=f)}}function Q0(){if(rs){var e=Cf;throw rs=!1,Cf=null,e}}function K0(){return yo}function Rf(){if(yo){var e=as;return yo=!1,as=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 go(e){return e._reactInternals}function J0(e){return e._reactInternals!==void 0}function Z0(e,t){e._reactInternals=t}var He=0,bo=1,vn=2,gt=4,Ni=16,Cl=32,Qm=64,bt=128,jr=256,ji=512,So=1024,ii=2048,Ur=4096,Ui=8192,wf=16384,eT=32767,is=32768,oa=65536,Df=131072,Km=1048576,_f=2097152,Hi=4194304,kf=8388608,oi=16777216,Mf=33554432,Lf=gt|So|0,Of=vn|gt|Ni|Cl|ji|Ur|Ui,xl=gt|Qm|ji|Ui,To=ii|Ni,Hr=Hi|kf|_f,tT=ee.ReactCurrentOwner;function zi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(vn|Ur))!==He&&(n=t.return),a=t.return;while(a)}return t.tag===re?n:null}function Jm(e){if(e.tag===O){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 Zm(e){return e.tag===re?e.stateNode.containerInfo:null}function nT(e){return zi(e)===e}function aT(e){{var t=tT.current;if(t!==null&&t.tag===he){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||c("%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.",Ge(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=go(e);return r?zi(r)===r:!1}function eh(e){if(zi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function th(e){var t=e.alternate;if(!t){var n=zi(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 eh(i),e;if(u===r)return eh(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,d=i.child;d;){if(d===a){f=!0,a=i,r=o;break}if(d===r){f=!0,r=i,a=o;break}d=d.sibling}if(!f){for(d=o.child;d;){if(d===a){f=!0,a=o,r=i;break}if(d===r){f=!0,r=o,a=i;break}d=d.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!==re)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function nh(e){var t=th(e);return t!==null?ah(t):null}function ah(e){if(e.tag===ie||e.tag===ye)return e;for(var t=e.child;t!==null;){var n=ah(t);if(n!==null)return n;t=t.sibling}return null}function rT(e){var t=th(e);return t!==null?rh(t):null}function rh(e){if(e.tag===ie||e.tag===ye)return e;for(var t=e.child;t!==null;){if(t.tag!==Ue){var n=rh(t);if(n!==null)return n}t=t.sibling}return null}var ih=M.unstable_scheduleCallback,iT=M.unstable_cancelCallback,oT=M.unstable_shouldYield,lT=M.unstable_requestPaint,Ln=M.unstable_now,uT=M.unstable_getCurrentPriorityLevel,os=M.unstable_ImmediatePriority,Af=M.unstable_UserBlockingPriority,Vi=M.unstable_NormalPriority,sT=M.unstable_LowPriority,Nf=M.unstable_IdlePriority,cT=M.unstable_yieldValue,fT=M.unstable_setDisableYieldValue,Eo=null,Gn=null,ue=null,fr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function dT(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 c("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{un&&(e=Ce({},e,{getLaneLabelMap:gT,injectProfilingHooks:yT})),Eo=t.inject(e),Gn=t}catch(n){c("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function vT(e,t){if(Gn&&typeof Gn.onScheduleFiberRoot=="function")try{Gn.onScheduleFiberRoot(Eo,e,t)}catch(n){fr||(fr=!0,c("React instrumentation encountered an error: %s",n))}}function pT(e,t){if(Gn&&typeof Gn.onCommitFiberRoot=="function")try{var n=(e.current.flags&bt)===bt;if(Ut){var a;switch(t){case Ra:a=os;break;case Vr:a=Af;break;case Fr:a=Vi;break;case vs:a=Nf;break;default:a=Vi;break}Gn.onCommitFiberRoot(Eo,e,a,n)}}catch(r){fr||(fr=!0,c("React instrumentation encountered an error: %s",r))}}function mT(e){if(Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function hT(e){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function On(e){if(typeof cT=="function"&&(fT(e),je(e)),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function yT(e){ue=e}function gT(){{for(var e=new Map,t=1,n=0;n<Uf;n++){var a=zT(t);e.set(t,a),t*=2}return e}}function bT(e){ue!==null&&typeof ue.markCommitStarted=="function"&&ue.markCommitStarted(e)}function oh(){ue!==null&&typeof ue.markCommitStopped=="function"&&ue.markCommitStopped()}function Rl(e){ue!==null&&typeof ue.markComponentRenderStarted=="function"&&ue.markComponentRenderStarted(e)}function Co(){ue!==null&&typeof ue.markComponentRenderStopped=="function"&&ue.markComponentRenderStopped()}function ST(e){ue!==null&&typeof ue.markComponentPassiveEffectMountStarted=="function"&&ue.markComponentPassiveEffectMountStarted(e)}function TT(){ue!==null&&typeof ue.markComponentPassiveEffectMountStopped=="function"&&ue.markComponentPassiveEffectMountStopped()}function ET(e){ue!==null&&typeof ue.markComponentPassiveEffectUnmountStarted=="function"&&ue.markComponentPassiveEffectUnmountStarted(e)}function CT(){ue!==null&&typeof ue.markComponentPassiveEffectUnmountStopped=="function"&&ue.markComponentPassiveEffectUnmountStopped()}function xT(e){ue!==null&&typeof ue.markComponentLayoutEffectMountStarted=="function"&&ue.markComponentLayoutEffectMountStarted(e)}function RT(){ue!==null&&typeof ue.markComponentLayoutEffectMountStopped=="function"&&ue.markComponentLayoutEffectMountStopped()}function lh(e){ue!==null&&typeof ue.markComponentLayoutEffectUnmountStarted=="function"&&ue.markComponentLayoutEffectUnmountStarted(e)}function uh(){ue!==null&&typeof ue.markComponentLayoutEffectUnmountStopped=="function"&&ue.markComponentLayoutEffectUnmountStopped()}function wT(e,t,n){ue!==null&&typeof ue.markComponentErrored=="function"&&ue.markComponentErrored(e,t,n)}function DT(e,t,n){ue!==null&&typeof ue.markComponentSuspended=="function"&&ue.markComponentSuspended(e,t,n)}function _T(e){ue!==null&&typeof ue.markLayoutEffectsStarted=="function"&&ue.markLayoutEffectsStarted(e)}function kT(){ue!==null&&typeof ue.markLayoutEffectsStopped=="function"&&ue.markLayoutEffectsStopped()}function MT(e){ue!==null&&typeof ue.markPassiveEffectsStarted=="function"&&ue.markPassiveEffectsStarted(e)}function LT(){ue!==null&&typeof ue.markPassiveEffectsStopped=="function"&&ue.markPassiveEffectsStopped()}function sh(e){ue!==null&&typeof ue.markRenderStarted=="function"&&ue.markRenderStarted(e)}function OT(){ue!==null&&typeof ue.markRenderYielded=="function"&&ue.markRenderYielded()}function ch(){ue!==null&&typeof ue.markRenderStopped=="function"&&ue.markRenderStopped()}function AT(e){ue!==null&&typeof ue.markRenderScheduled=="function"&&ue.markRenderScheduled(e)}function NT(e,t){ue!==null&&typeof ue.markForceUpdateScheduled=="function"&&ue.markForceUpdateScheduled(e,t)}function jf(e,t){ue!==null&&typeof ue.markStateUpdateScheduled=="function"&&ue.markStateUpdateScheduled(e,t)}var Oe=0,ot=1,kt=2,on=8,dr=16,fh=Math.clz32?Math.clz32:HT,jT=Math.log,UT=Math.LN2;function HT(e){var t=e>>>0;return t===0?32:31-(jT(t)/UT|0)|0}var Uf=31,F=0,An=0,$e=1,xo=2,zr=4,Fi=8,vr=16,wl=32,Ro=4194240,Dl=64,Hf=128,zf=256,Vf=512,Ff=1024,Bf=2048,$f=4096,Pf=8192,Yf=16384,If=32768,Wf=65536,qf=131072,Gf=262144,Xf=524288,Qf=1048576,Kf=2097152,ls=130023424,wo=4194304,Jf=8388608,Zf=16777216,ed=33554432,td=67108864,dh=wo,_l=134217728,vh=268435455,kl=268435456,Bi=536870912,Ca=1073741824;function zT(e){{if(e&$e)return"Sync";if(e&xo)return"InputContinuousHydration";if(e&zr)return"InputContinuous";if(e&Fi)return"DefaultHydration";if(e&vr)return"Default";if(e&wl)return"TransitionHydration";if(e&Ro)return"Transition";if(e&ls)return"Retry";if(e&_l)return"SelectiveHydration";if(e&kl)return"IdleHydration";if(e&Bi)return"Idle";if(e&Ca)return"Offscreen"}}var It=-1,us=Dl,ss=wo;function Ml(e){switch($i(e)){case $e:return $e;case xo:return xo;case zr:return zr;case Fi:return Fi;case vr:return vr;case wl:return wl;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return e&Ro;case wo:case Jf:case Zf:case ed:case td:return e&ls;case _l:return _l;case kl:return kl;case Bi:return Bi;case Ca:return Ca;default:return c("Should have found matching lanes. This is a bug in React."),e}}function cs(e,t){var n=e.pendingLanes;if(n===F)return F;var a=F,r=e.suspendedLanes,i=e.pingedLanes,o=n&vh;if(o!==F){var l=o&~r;if(l!==F)a=Ml(l);else{var u=o&i;u!==F&&(a=Ml(u))}}else{var f=n&~r;f!==F?a=Ml(f):i!==F&&(a=Ml(i))}if(a===F)return F;if(t!==F&&t!==a&&(t&r)===F){var d=$i(a),g=$i(t);if(d>=g||d===vr&&(g&Ro)!==F)return t}(a&zr)!==F&&(a|=n&vr);var y=e.entangledLanes;if(y!==F)for(var w=e.entanglements,_=a&y;_>0;){var N=Pi(_),ae=1<<N;a|=w[N],_&=~ae}return a}function VT(e,t){for(var n=e.eventTimes,a=It;t>0;){var r=Pi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function FT(e,t){switch(e){case $e:case xo:case zr:return t+250;case Fi:case vr:case wl:case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return t+5e3;case wo:case Jf:case Zf:case ed:case td:return It;case _l:case kl:case Bi:case Ca:return It;default:return c("Should have found matching lanes. This is a bug in React."),It}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Pi(o),u=1<<l,f=i[l];f===It?((u&a)===F||(u&r)!==F)&&(i[l]=FT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Ml(e.pendingLanes)}function nd(e){var t=e.pendingLanes&~Ca;return t!==F?t:t&Ca?Ca:F}function PT(e){return(e&$e)!==F}function ad(e){return(e&vh)!==F}function ph(e){return(e&ls)===e}function YT(e){var t=$e|zr|vr;return(e&t)===F}function IT(e){return(e&Ro)===e}function fs(e,t){var n=xo|zr|Fi|vr;return(t&n)!==F}function WT(e,t){return(t&e.expiredLanes)!==F}function mh(e){return(e&Ro)!==F}function hh(){var e=us;return us<<=1,(us&Ro)===F&&(us=Dl),e}function qT(){var e=ss;return ss<<=1,(ss&ls)===F&&(ss=wo),e}function $i(e){return e&-e}function Ll(e){return $i(e)}function Pi(e){return 31-fh(e)}function rd(e){return Pi(e)}function xa(e,t){return(e&t)!==F}function Do(e,t){return(e&t)===t}function Qe(e,t){return e|t}function ds(e,t){return e&~t}function yh(e,t){return e&t}function p_(e){return e}function GT(e,t){return e!==An&&e<t?e:t}function id(e){for(var t=[],n=0;n<Uf;n++)t.push(e);return t}function Ol(e,t,n){e.pendingLanes|=t,t!==Bi&&(e.suspendedLanes=F,e.pingedLanes=F);var a=e.eventTimes,r=rd(t);a[r]=n}function XT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Pi(a),i=1<<r;n[r]=It,a&=~i}}function gh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function QT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=F,e.pingedLanes=F,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=Pi(o),u=1<<l;a[l]=F,r[l]=It,i[l]=It,o&=~u}}function od(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Pi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function KT(e,t){var n=$i(t),a;switch(n){case zr:a=xo;break;case vr:a=Fi;break;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case wo:case Jf:case Zf:case ed:case td:a=wl;break;case Bi:a=kl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function bh(e,t,n){if(qa)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=rd(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Sh(e,t){if(qa)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=rd(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 Th(e,t){return null}var Ra=$e,Vr=zr,Fr=vr,vs=Bi,Al=An;function Ga(){return Al}function Nn(e){Al=e}function JT(e,t){var n=Al;try{return Al=e,t()}finally{Al=n}}function ZT(e,t){return e!==0&&e<t?e:t}function eE(e,t){return e>t?e:t}function ld(e,t){return e!==0&&e<t}function Eh(e){var t=$i(e);return ld(Ra,t)?ld(Vr,t)?ad(t)?Fr:vs:Vr:Ra}function ps(e){var t=e.current.memoizedState;return t.isDehydrated}var Ch;function tE(e){Ch=e}function nE(e){Ch(e)}var ud;function aE(e){ud=e}var xh;function rE(e){xh=e}var Rh;function iE(e){Rh=e}var wh;function oE(e){wh=e}var sd=!1,ms=[],li=null,ui=null,si=null,Nl=new Map,jl=new Map,ci=[],lE=["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 uE(e){return lE.indexOf(e)>-1}function sE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function Dh(e,t){switch(e){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Nl.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;jl.delete(a);break}}}function Ul(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=sE(t,n,a,r,i);if(t!==null){var l=vi(t);l!==null&&ud(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function cE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return li=Ul(li,e,t,n,a,i),!0}case"dragenter":{var o=r;return ui=Ul(ui,e,t,n,a,o),!0}case"mouseover":{var l=r;return si=Ul(si,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Nl.set(f,Ul(Nl.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,g=d.pointerId;return jl.set(g,Ul(jl.get(g)||null,e,t,n,a,d)),!0}}return!1}function _h(e){var t=Wi(e.target);if(t!==null){var n=zi(t);if(n!==null){var a=n.tag;if(a===O){var r=Jm(n);if(r!==null){e.blockedOn=r,wh(e.priority,function(){xh(n)});return}}else if(a===re){var i=n.stateNode;if(ps(i)){e.blockedOn=Zm(n);return}}}}e.blockedOn=null}function fE(e){for(var t=Rh(),n={blockedOn:null,target:e,priority:t},a=0;a<ci.length&&ld(t,ci[a].priority);a++);ci.splice(a,0,n),a===0&&_h(n)}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=dd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);z0(i),r.target.dispatchEvent(i),V0()}else{var o=vi(a);return o!==null&&ud(o),e.blockedOn=a,!1}t.shift()}return!0}function kh(e,t,n){hs(e)&&n.delete(t)}function dE(){sd=!1,li!==null&&hs(li)&&(li=null),ui!==null&&hs(ui)&&(ui=null),si!==null&&hs(si)&&(si=null),Nl.forEach(kh),jl.forEach(kh)}function Hl(e,t){e.blockedOn===t&&(e.blockedOn=null,sd||(sd=!0,M.unstable_scheduleCallback(M.unstable_NormalPriority,dE)))}function zl(e){if(ms.length>0){Hl(ms[0],e);for(var t=1;t<ms.length;t++){var n=ms[t];n.blockedOn===e&&(n.blockedOn=null)}}li!==null&&Hl(li,e),ui!==null&&Hl(ui,e),si!==null&&Hl(si,e);var a=function(l){return Hl(l,e)};Nl.forEach(a),jl.forEach(a);for(var r=0;r<ci.length;r++){var i=ci[r];i.blockedOn===e&&(i.blockedOn=null)}for(;ci.length>0;){var o=ci[0];if(o.blockedOn!==null)break;_h(o),o.blockedOn===null&&ci.shift()}}var _o=ee.ReactCurrentBatchConfig,cd=!0;function Mh(e){cd=!!e}function vE(){return cd}function pE(e,t,n){var a=Lh(t),r;switch(a){case Ra:r=mE;break;case Vr:r=hE;break;case Fr:default:r=fd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{Nn(Ra),fd(e,t,n,a)}finally{Nn(r),_o.transition=i}}function hE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{Nn(Vr),fd(e,t,n,a)}finally{Nn(r),_o.transition=i}}function fd(e,t,n,a){cd&&yE(e,t,n,a)}function yE(e,t,n,a){var r=dd(e,t,n,a);if(r===null){wd(e,t,a,ys,n),Dh(e,a);return}if(cE(r,e,t,n,a)){a.stopPropagation();return}if(Dh(e,a),t&bl&&uE(e)){for(;r!==null;){var i=vi(r);i!==null&&nE(i);var o=dd(e,t,n,a);if(o===null&&wd(e,t,a,ys,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}wd(e,t,a,null,n)}var ys=null;function dd(e,t,n,a){ys=null;var r=gf(a),i=Wi(r);if(i!==null){var o=zi(i);if(o===null)i=null;else{var l=o.tag;if(l===O){var u=Jm(o);if(u!==null)return u;i=null}else if(l===re){var f=o.stateNode;if(ps(f))return Zm(o);i=null}else o!==i&&(i=null)}}return ys=i,null}function Lh(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 Ra;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 Vr;case"message":{var t=uT();switch(t){case os:return Ra;case Af:return Vr;case Vi:case sT:return Fr;case Nf:return vs;default:return Fr}}default:return Fr}}function gE(e,t,n){return e.addEventListener(t,n,!1),n}function bE(e,t,n){return e.addEventListener(t,n,!0),n}function SE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function TE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Vl=null,vd=null,Fl=null;function EE(e){return Vl=e,vd=Ah(),!0}function CE(){Vl=null,vd=null,Fl=null}function Oh(){if(Fl)return Fl;var e,t=vd,n=t.length,a,r=Ah(),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 Fl=r.slice(e,l),Fl}function Ah(){return"value"in Vl?Vl.value:Vl.textContent}function gs(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 bs(){return!0}function Nh(){return!1}function wa(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=bs:this.isDefaultPrevented=Nh,this.isPropagationStopped=Nh,this}return Ce(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=bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),t}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pd=wa(ko),Bl=Ce({},ko,{view:0,detail:0}),xE=wa(Bl),md,hd,$l;function RE(e){e!==$l&&($l&&e.type==="mousemove"?(md=e.screenX-$l.screenX,hd=e.screenY-$l.screenY):(md=0,hd=0),$l=e)}var Ss=Ce({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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:(RE(e),md)},movementY:function(e){return"movementY"in e?e.movementY:hd}}),jh=wa(Ss),wE=Ce({},Ss,{dataTransfer:0}),DE=wa(wE),_E=Ce({},Bl,{relatedTarget:0}),yd=wa(_E),kE=Ce({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=wa(kE),LE=Ce({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OE=wa(LE),AE=Ce({},ko,{data:0}),Uh=wa(AE),NE=Uh,jE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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 HE(e){if(e.key){var t=jE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=gs(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""}var zE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=zE[e];return a?!!n[a]:!1}function gd(e){return VE}var FE=Ce({},Bl,{key:HE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=wa(FE),$E=Ce({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=wa($E),PE=Ce({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),YE=wa(PE),IE=Ce({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),WE=wa(IE),qE=Ce({},Ss,{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}),GE=wa(qE),XE=[9,13,27,32],zh=229,bd=wt&&"CompositionEvent"in window,Pl=null;wt&&"documentMode"in document&&(Pl=document.documentMode);var QE=wt&&"TextEvent"in window&&!Pl,Vh=wt&&(!bd||Pl&&Pl>8&&Pl<=11),Fh=32,Bh=String.fromCharCode(Fh);function KE(){ft("onBeforeInput",["compositionend","keypress","textInput","paste"]),ft("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),ft("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var $h=!1;function JE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function ZE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eC(e,t){return e==="keydown"&&t.keyCode===zh}function Ph(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==zh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Ih(e){return e.locale==="ko"}var Mo=!1;function tC(e,t,n,a,r){var i,o;if(bd?i=ZE(t):Mo?Ph(t,a)&&(i="onCompositionEnd"):eC(t,a)&&(i="onCompositionStart"),!i)return null;Vh&&!Ih(a)&&(!Mo&&i==="onCompositionStart"?Mo=EE(r):i==="onCompositionEnd"&&Mo&&(o=Oh()));var l=Rs(n,i);if(l.length>0){var u=new Uh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Yh(a);f!==null&&(u.data=f)}}}function nC(e,t){switch(e){case"compositionend":return Yh(t);case"keypress":var n=t.which;return n!==Fh?null:($h=!0,Bh);case"textInput":var a=t.data;return a===Bh&&$h?null:a;default:return null}}function aC(e,t){if(Mo){if(e==="compositionend"||!bd&&Ph(e,t)){var n=Oh();return CE(),Mo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!JE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vh&&!Ih(t)?null:t.data;default:return null}}function rC(e,t,n,a,r){var i;if(QE?i=nC(t,a):i=aC(t,a),!i)return null;var o=Rs(n,"onBeforeInput");if(o.length>0){var l=new NE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function iC(e,t,n,a,r,i,o){tC(e,t,n,a,r),rC(e,t,n,a,r)}var oC={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oC[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 lC(e){if(!wt)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 uC(){ft("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function qh(e,t,n,a){Pm(a);var r=Rs(t,"onChange");if(r.length>0){var i=new pd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Yl=null,Il=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];qh(t,Il,e,gf(e)),qm(fC,t)}function fC(e){fy(e,0)}function Ts(e){var t=Uo(e);if(vl(t))return e}function dC(e,t){if(e==="change")return t}var Gh=!1;wt&&(Gh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Yl=e,Il=t,Yl.attachEvent("onpropertychange",Qh)}function Xh(){Yl&&(Yl.detachEvent("onpropertychange",Qh),Yl=null,Il=null)}function Qh(e){e.propertyName==="value"&&Ts(Il)&&cC(e)}function pC(e,t,n){e==="focusin"?(Xh(),vC(t,n)):e==="focusout"&&Xh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Il)}function hC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function yC(e,t){if(e==="click")return Ts(t)}function gC(e,t){if(e==="input"||e==="change")return Ts(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ne(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Uo(n):window,u,f;if(sC(l)?u=dC:Wh(l)?Gh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var d=u(t,n);if(d){qh(e,d,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){tn("onMouseEnter",["mouseout","mouseover"]),tn("onMouseLeave",["mouseout","mouseover"]),tn("onPointerEnter",["pointerout","pointerover"]),tn("onPointerLeave",["pointerout","pointerover"])}function EC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!F0(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Wi(f)||ou(f)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var g=r.ownerDocument;g?d=g.defaultView||g.parentWindow:d=window}var y,w;if(u){var _=a.relatedTarget||a.toElement;if(y=n,w=_?Wi(_):null,w!==null){var N=zi(w);(w!==N||w.tag!==ie&&w.tag!==ye)&&(w=null)}}else y=null,w=n;if(y!==w){var ae=jh,Me="onMouseLeave",xe="onMouseEnter",ut="mouse";(t==="pointerout"||t==="pointerover")&&(ae=Hh,Me="onPointerLeave",xe="onPointerEnter",ut="pointer");var nt=y==null?d:Uo(y),C=w==null?d:Uo(w),j=new ae(Me,ut+"leave",y,a,r);j.target=nt,j.relatedTarget=C;var x=null,B=Wi(r);if(B===n){var fe=new ae(xe,ut+"enter",w,a,r);fe.target=C,fe.relatedTarget=nt,x=fe}WC(e,j,x,y,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Da=typeof Object.is=="function"?Object.is:CC;function Wl(e,t){if(Da(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(!Je.call(t,i)||!Da(e[i],t[i]))return!1}return!0}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Jh(e,t){for(var n=Kh(e),a=0,r=0;n;){if(n.nodeType===Ar){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Kh(xC(n))}}function RC(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 wC(e,r,i,o,l)}function wC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,d=e,g=null;e:for(;;){for(var y=null;d===t&&(n===0||d.nodeType===Ar)&&(o=i+n),d===a&&(r===0||d.nodeType===Ar)&&(l=i+r),d.nodeType===Ar&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)g=d,d=y;for(;;){if(d===e)break e;if(g===t&&++u===n&&(o=i),g===a&&++f===r&&(l=i),(y=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=y}return o===-1||l===-1?null:{start:o,end:l}}function DC(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=Jh(e,o),d=Jh(e,l);if(f&&d){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var g=n.createRange();g.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(g),r.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),r.addRange(g))}}}function Zh(e){return e&&e.nodeType===Ar}function ey(e,t){return!e||!t?!1:e===t?!0:Zh(e)?!1:Zh(t)?ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function _C(e){return e&&e.ownerDocument&&ey(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ty(){for(var e=window,t=Mr();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=Mr(e.document)}return t}function Sd(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 MC(){var e=ty();return{focusedElem:e,selectionRange:Sd(e)?OC(e):null}}function LC(e){var t=ty(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&_C(n)){a!==null&&Sd(n)&&AC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ma&&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 OC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=RC(e),t||{start:0,end:0}}function AC(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)):DC(e,t)}var NC=wt&&"documentMode"in document&&document.documentMode<=11;function jC(){ft("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Lo=null,Td=null,ql=null,Ed=!1;function UC(e){if("selectionStart"in e&&Sd(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 HC(e){return e.window===e?e.document:e.nodeType===Nr?e:e.ownerDocument}function ny(e,t,n){var a=HC(n);if(!(Ed||Lo==null||Lo!==Mr(a))){var r=UC(Lo);if(!ql||!Wl(ql,r)){ql=r;var i=Rs(Td,"onSelect");if(i.length>0){var o=new pd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Lo}}}}function zC(e,t,n,a,r,i,o){var l=n?Uo(n):window;switch(t){case"focusin":(Wh(l)||l.contentEditable==="true")&&(Lo=l,Td=n,ql=null);break;case"focusout":Lo=null,Td=null,ql=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,ny(e,a,r);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":ny(e,a,r)}}function Es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Oo={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Cd={},ay={};wt&&(ay=document.createElement("div").style,"AnimationEvent"in window||(delete Oo.animationend.animation,delete Oo.animationiteration.animation,delete Oo.animationstart.animation),"TransitionEvent"in window||delete Oo.transitionend.transition);function Cs(e){if(Cd[e])return Cd[e];if(!Oo[e])return e;var t=Oo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ay)return Cd[e]=t[n];return e}var ry=Cs("animationend"),iy=Cs("animationiteration"),oy=Cs("animationstart"),ly=Cs("transitionend"),uy=new Map,sy=["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 fi(e,t){uy.set(e,t),ft(t,[e])}function VC(){for(var e=0;e<sy.length;e++){var t=sy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);fi(n,"on"+a)}fi(ry,"onAnimationEnd"),fi(iy,"onAnimationIteration"),fi(oy,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(ly,"onTransitionEnd")}function FC(e,t,n,a,r,i,o){var l=uy.get(t);if(l!==void 0){var u=pd,f=t;switch(t){case"keypress":if(gs(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":f="focus",u=yd;break;case"focusout":f="blur",u=yd;break;case"beforeblur":case"afterblur":u=yd;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=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=DE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=YE;break;case ry:case iy:case oy:u=ME;break;case ly:u=WE;break;case"scroll":u=xE;break;case"wheel":u=GE;break;case"copy":case"cut":case"paste":u=OE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Hh;break}var d=(i&bl)!==0;{var g=!d&&t==="scroll",y=YC(n,l,a.type,d,g);if(y.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:y})}}}}VC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){FC(e,t,n,a,r,i);var l=(i&H0)===0;l&&(EC(e,t,n,a,r),SC(e,t,n,a,r),zC(e,t,n,a,r),iC(e,t,n,a,r))}var Gl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],xd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Gl));function cy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,X0(a,t,void 0,e),e.currentTarget=null}function $C(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;cy(e,u,l),a=o}else for(var f=0;f<t.length;f++){var d=t[f],g=d.instance,y=d.currentTarget,w=d.listener;if(g!==a&&e.isPropagationStopped())return;cy(e,w,y),a=g}}function fy(e,t){for(var n=(t&bl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}Q0()}function PC(e,t,n,a,r){var i=gf(n),o=[];BC(o,e,a,n,i,t),fy(o,t)}function Xt(e,t){xd.has(e)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=bR(t),r=qC(e);a.has(r)||(dy(t,e,yf,n),a.add(r))}function Rd(e,t,n){xd.has(e)&&!t&&c('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|=bl),dy(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function Xl(e){if(!e[xs]){e[xs]=!0,qt.forEach(function(n){n!=="selectionchange"&&(xd.has(n)||Rd(n,!1,e),Rd(n,!0,e))});var t=e.nodeType===Nr?e:e.ownerDocument;t!==null&&(t[xs]||(t[xs]=!0,Rd("selectionchange",!1,t)))}}function dy(e,t,n,a,r){var i=pE(e,t,n),o=void 0;Tf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?SE(e,t,i,o):bE(e,t,i):o!==void 0?TE(e,t,i,o):gE(e,t,i)}function vy(e,t){return e===t||e.nodeType===dn&&e.parentNode===t}function wd(e,t,n,a,r){var i=a;if(!(t&Bm)&&!(t&yf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===re||u===Ue){var f=l.stateNode.containerInfo;if(vy(f,o))break;if(u===Ue)for(var d=l.return;d!==null;){var g=d.tag;if(g===re||g===Ue){var y=d.stateNode.containerInfo;if(vy(y,o))return}d=d.return}for(;f!==null;){var w=Wi(f);if(w===null)return;var _=w.tag;if(_===ie||_===ye){l=i=w;continue e}f=f.parentNode}}l=l.return}}}qm(function(){return PC(e,t,n,i)})}function Ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function YC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,d=null;f!==null;){var g=f,y=g.stateNode,w=g.tag;if(w===ie&&y!==null&&(d=y,l!==null)){var _=Tl(f,l);_!=null&&u.push(Ql(f,_,d))}if(r)break;f=f.return}return u}function Rs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ie&&o!==null){var u=o,f=Tl(r,n);f!=null&&a.unshift(Ql(r,f,u));var d=Tl(r,t);d!=null&&a.push(Ql(r,d,u))}r=r.return}return a}function Ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ie);return e||null}function IC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Ao(i))r++;for(var o=0,l=a;l;l=Ao(l))o++;for(;r-o>0;)n=Ao(n),r--;for(;o-r>0;)a=Ao(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Ao(n),a=Ao(a)}return null}function py(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,d=u.stateNode,g=u.tag;if(f!==null&&f===a)break;if(g===ie&&d!==null){var y=d;if(r){var w=Tl(l,i);w!=null&&o.unshift(Ql(l,w,y))}else if(!r){var _=Tl(l,i);_!=null&&o.push(Ql(l,_,y))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function WC(e,t,n,a,r){var i=a&&r?IC(a,r):null;a!==null&&py(e,t,a,i,!1),r!==null&&n!==null&&py(e,n,r,i,!0)}function qC(e,t){return e+"__bubble"}var ha=!1,Kl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",di="suppressHydrationWarning",my="autoFocus",Yi="children",Ii="style",Ds="__html",Dd,_s,Jl,hy,ks,yy,gy;Dd={dialog:!0,webview:!0},_s=function(e,t){M0(e,t),L0(e,t),U0(e,t,{registrationNameDependencies:ht,possibleRegistrationNames:jn})},yy=wt&&!document.documentMode,Jl=function(e,t,n){if(!ha){var a=Ms(n),r=Ms(t);r!==a&&(ha=!0,c("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},hy=function(e){if(!ha){ha=!0;var t=[];e.forEach(function(n){t.push(n)}),c("Extra attributes from the server: %s",t)}},ks=function(e,t){t===!1?c("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):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},gy=function(e,t){var n=e.namespaceURI===Or?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var GC=/\r\n?/g,XC=/\u0000|\uFFFD/g;function Ms(e){se(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
`).replace(XC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ha||(ha=!0,c('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&Y))throw new Error("Text content does not match server-rendered HTML.")}function by(e){return e.nodeType===Nr?e:e.ownerDocument}function QC(){}function Os(e){e.onclick=QC}function KC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Ii)o&&Object.freeze(o),jm(t,o);else if(i===Kl){var l=o?o[Ds]:void 0;l!=null&&Mm(t,l)}else if(i===Yi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&ts(t,o)}else typeof o=="number"&&ts(t,""+o);else i===ws||i===di||i===my||(ht.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&Xt("scroll",t)):o!=null&&hn(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Ii?jm(e,o):i===Kl?Mm(e,o):i===Yi?ts(e,o):hn(e,i,o,a)}}function ZC(e,t,n,a){var r,i=by(n),o,l=a;if(l===Or&&(l=ff(e)),l===Or){if(r=Ai(e,t),!r&&e!==e.toLowerCase()&&c("<%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 d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===Or&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!Je.call(Dd,e)&&(Dd[e]=!0,c("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 ex(e,t){return by(t).createTextNode(e)}function tx(e,t,n,a){var r=Ai(t,n);_s(t,n);var i;switch(t){case"dialog":Xt("cancel",e),Xt("close",e),i=n;break;case"iframe":case"object":case"embed":Xt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Gl.length;o++)Xt(Gl[o],e);i=n;break;case"source":Xt("error",e),i=n;break;case"img":case"image":case"link":Xt("error",e),Xt("load",e),i=n;break;case"details":Xt("toggle",e),i=n;break;case"input":Ju(e,n),i=pl(e,n),Xt("invalid",e);break;case"option":_t(e,n),i=n;break;case"select":yl(e,n),i=hl(e,n),Xt("invalid",e);break;case"textarea":Dm(e,n),i=sf(e,n),Xt("invalid",e);break;default:i=n}switch(hf(t,i),KC(t,e,a,i,r),t){case"input":Li(e),D(e,n,!1);break;case"textarea":Li(e),km(e);break;case"option":Pt(e,n);break;case"select":lf(e,n);break;default:typeof i.onClick=="function"&&Os(e);break}}function nx(e,t,n,a,r){_s(t,a);var i=null,o,l;switch(t){case"input":o=pl(e,n),l=pl(e,a),i=[];break;case"select":o=hl(e,n),l=hl(e,a),i=[];break;case"textarea":o=sf(e,n),l=sf(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Os(e);break}hf(t,l);var u,f,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Ii){var g=o[u];for(f in g)g.hasOwnProperty(f)&&(d||(d={}),d[f]="")}else u===Kl||u===Yi||u===ws||u===di||u===my||(ht.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===w||y==null&&w==null))if(u===Ii)if(y&&Object.freeze(y),w){for(f in w)w.hasOwnProperty(f)&&(!y||!y.hasOwnProperty(f))&&(d||(d={}),d[f]="");for(f in y)y.hasOwnProperty(f)&&w[f]!==y[f]&&(d||(d={}),d[f]=y[f])}else d||(i||(i=[]),i.push(u,d)),d=y;else if(u===Kl){var _=y?y[Ds]:void 0,N=w?w[Ds]:void 0;_!=null&&N!==_&&(i=i||[]).push(u,_)}else u===Yi?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===ws||u===di||(ht.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&ks(u,y),u==="onScroll"&&Xt("scroll",e)),!i&&w!==y&&(i=[])):(i=i||[]).push(u,y))}return d&&(E0(d,l[Ii]),(i=i||[]).push(Ii,d)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ai(n,a),o=Ai(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":_m(e,r);break;case"select":Zu(e,r);break}}function rx(e){{var t=e.toLowerCase();return ns.hasOwnProperty(t)&&ns[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ai(t,n),_s(t,n),t){case"dialog":Xt("cancel",e),Xt("close",e);break;case"iframe":case"object":case"embed":Xt("load",e);break;case"video":case"audio":for(var f=0;f<Gl.length;f++)Xt(Gl[f],e);break;case"source":Xt("error",e);break;case"img":case"image":case"link":Xt("error",e),Xt("load",e);break;case"details":Xt("toggle",e);break;case"input":Ju(e,n),Xt("invalid",e);break;case"option":_t(e,n);break;case"select":yl(e,n),Xt("invalid",e);break;case"textarea":Dm(e,n),Xt("invalid",e);break}hf(t,n);{u=new Set;for(var d=e.attributes,g=0;g<d.length;g++){var y=d[g].name.toLowerCase();switch(y){case"value":break;case"checked":break;case"selected":break;default:u.add(d[g].name)}}}var w=null;for(var _ in n)if(n.hasOwnProperty(_)){var N=n[_];if(_===Yi)typeof N=="string"?e.textContent!==N&&(n[di]!==!0&&Ls(e.textContent,N,i,o),w=[Yi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[di]!==!0&&Ls(e.textContent,N,i,o),w=[Yi,""+N]);else if(ht.hasOwnProperty(_))N!=null&&(typeof N!="function"&&ks(_,N),_==="onScroll"&&Xt("scroll",e));else if(o&&typeof l=="boolean"){var ae=void 0,Me=zt(_);if(n[di]!==!0){if(!(_===ws||_===di||_==="value"||_==="checked"||_==="selected")){if(_===Kl){var xe=e.innerHTML,ut=N?N[Ds]:void 0;if(ut!=null){var nt=gy(e,ut);nt!==xe&&Jl(_,xe,nt)}}else if(_===Ii){if(u.delete(_),yy){var C=S0(N);ae=e.getAttribute("style"),C!==ae&&Jl(_,ae,C)}}else if(l&&!Dn)u.delete(_.toLowerCase()),ae=ti(e,_,N),N!==ae&&Jl(_,ae,N);else if(!Ht(_,Me,l)&&!Un(_,N,Me,l)){var j=!1;if(Me!==null)u.delete(Me.attributeName),ae=ei(e,_,N,Me);else{var x=a;if(x===Or&&(x=ff(t)),x===Or)u.delete(_.toLowerCase());else{var B=rx(_);B!==null&&B!==_&&(j=!0,u.delete(B)),u.delete(_)}ae=ti(e,_,N)}var fe=Dn;!fe&&N!==ae&&!j&&Jl(_,ae,N)}}}}}switch(o&&u.size>0&&n[di]!==!0&&hy(u),t){case"input":Li(e),D(e,n,!0);break;case"textarea":Li(e),km(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Os(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function _d(e,t){{if(ha)return;ha=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(ha)return;ha=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Md(e,t,n){{if(ha)return;ha=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ld(e,t){{if(t===""||ha)return;ha=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function lx(e,t,n){switch(t){case"input":A(e,n);return;case"textarea":t0(e,n);return;case"select":uf(e,n);return}}var Zl=function(){},eu=function(){};{var ux=["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"],Sy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sx=Sy.concat(["button"]),cx=["dd","dt","li","option","optgroup","p","rp","rt"],Ty={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};eu=function(e,t){var n=Ce({},e||Ty),a={tag:t};return Sy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),sx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ux.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 fx=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 cx.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},dx=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},Ey={};Zl=function(e,t,n){n=n||Ty;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=fx(e,r)?null:a,o=i?null:dx(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!Ey[f]){Ey[f]=!0;var d=e,g="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",g=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+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."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,g,y)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var As="suppressHydrationWarning",Ns="$",js="/$",tu="$?",nu="$!",vx="style",Od=null,Ad=null;function px(e){var t,n,a=e.nodeType;switch(a){case Nr:case vf:{t=a===Nr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:df(null,"");break}default:{var i=a===dn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=df(o,t);break}}{var l=t.toLowerCase(),u=eu(null,l);return{namespace:n,ancestorInfo:u}}}function mx(e,t,n){{var a=e,r=df(a.namespace,t),i=eu(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function m_(e){return e}function hx(e){Od=vE(),Ad=MC();var t=null;return Mh(!1),t}function yx(e){LC(Ad),Mh(Od),Od=null,Ad=null}function gx(e,t,n,a,r){var i;{var o=a;if(Zl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=eu(o.ancestorInfo,e);Zl(null,l,u)}i=o.namespace}var f=ZC(e,t,n,i);return iu(r,f),Bd(f,t),f}function bx(e,t){e.appendChild(t)}function Sx(e,t,n,a,r){switch(tx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Tx(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=eu(o.ancestorInfo,t);Zl(null,l,u)}}return nx(e,t,n,a)}function Nd(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 Ex(e,t,n,a){{var r=n;Zl(null,e,r.ancestorInfo)}var i=ex(e,t);return iu(a,i),i}function Cx(){var e=window.event;return e===void 0?Fr:Lh(e.type)}var jd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=-1,Cy=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(e){return Cy.resolve(null).then(e).catch(wx)}:jd;function wx(e){setTimeout(function(){throw e})}function Dx(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 _x(e,t,n,a,r,i){ax(e,t,n,a,r),Bd(e,r)}function xy(e){ts(e,"")}function kx(e,t,n){e.nodeValue=n}function Mx(e,t){e.appendChild(t)}function Lx(e,t){var n;e.nodeType===dn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Os(n)}function Ox(e,t,n){e.insertBefore(t,n)}function Ax(e,t,n){e.nodeType===dn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===dn?e.parentNode.removeChild(t):e.removeChild(t)}function Hd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===dn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),zl(t);return}else a--;else(i===Ns||i===tu||i===nu)&&a++}n=r}while(n);zl(t)}function Ux(e,t){e.nodeType===dn?Hd(e.parentNode,t):e.nodeType===ma&&Hd(e,t),zl(e)}function Hx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function zx(e){e.nodeValue=""}function Vx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=pf("display",a)}function Fx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===ma?e.textContent="":e.nodeType===Nr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==ma||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Ar?null:e}function Yx(e){return e.nodeType!==dn?null:e}function Ry(e){return e.data===tu}function zd(e){return e.data===nu}function Ix(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 Wx(e,t){e._reactRetry=t}function Us(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ma||t===Ar)break;if(t===dn){var n=e.data;if(n===Ns||n===nu||n===tu)break;if(n===js)return null}}return e}function au(e){return Us(e.nextSibling)}function qx(e){return Us(e.firstChild)}function Gx(e){return Us(e.firstChild)}function Xx(e){return Us(e.nextSibling)}function Qx(e,t,n,a,r,i,o){iu(i,e),Bd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&ot)!==Oe;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return iu(n,e),n.mode&ot,ox(e,t)}function Jx(e,t){iu(t,e)}function Zx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===js){if(n===0)return au(t);n--}else(a===Ns||a===nu||a===tu)&&n++}t=t.nextSibling}return null}function wy(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===Ns||a===nu||a===tu){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function eR(e){zl(e)}function tR(e){zl(e)}function nR(e){return e!=="head"&&e!=="body"}function aR(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function rR(e,t,n,a,r,i){if(t[As]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function iR(e,t){t.nodeType===ma?_d(e,t):t.nodeType===dn||kd(e,t)}function oR(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ma?_d(n,t):t.nodeType===dn||kd(n,t))}}function lR(e,t,n,a,r){(r||t[As]!==!0)&&(a.nodeType===ma?_d(n,a):a.nodeType===dn||kd(n,a))}function uR(e,t,n){Md(e,t)}function sR(e,t){Ld(e,t)}function cR(e,t,n){{var a=e.parentNode;a!==null&&Md(a,t)}}function fR(e,t){{var n=e.parentNode;n!==null&&Ld(n,t)}}function dR(e,t,n,a,r,i){(i||t[As]!==!0)&&Md(n,a)}function vR(e,t,n,a,r){(r||t[As]!==!0)&&Ld(n,a)}function pR(e){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function mR(e){Xl(e)}var No=Math.random().toString(36).slice(2),jo="__reactFiber$"+No,Vd="__reactProps$"+No,ru="__reactContainer$"+No,Fd="__reactEvents$"+No,hR="__reactListeners$"+No,yR="__reactHandles$"+No;function gR(e){delete e[jo],delete e[Vd],delete e[Fd],delete e[hR],delete e[yR]}function iu(e,t){t[jo]=e}function Hs(e,t){t[ru]=e}function Dy(e){e[ru]=null}function ou(e){return!!e[ru]}function Wi(e){var t=e[jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ru]||n[jo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=wy(e);r!==null;){var i=r[jo];if(i)return i;r=wy(r)}return t}e=n,n=e.parentNode}return null}function vi(e){var t=e[jo]||e[ru];return t&&(t.tag===ie||t.tag===ye||t.tag===O||t.tag===re)?t:null}function Uo(e){if(e.tag===ie||e.tag===ye)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Vd]||null}function Bd(e,t){e[Vd]=t}function bR(e){var t=e[Fd];return t===void 0&&(t=e[Fd]=new Set),t}var _y={},ky=ee.ReactDebugCurrentFrame;function Vs(e){if(e){var t=e._owner,n=Aa(e.type,e._source,t?t.type:null);ky.setExtraStackFrame(n)}else ky.setExtraStackFrame(null)}function Xa(e,t,n,a,r){{var i=Function.call.bind(Je);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)&&(Vs(r),c("%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),Vs(null)),l instanceof Error&&!(l.message in _y)&&(_y[l.message]=!0,Vs(r),c("Failed %s type: %s",n,l.message),Vs(null))}}}var $d=[],Fs;Fs=[];var Br=-1;function pi(e){return{current:e}}function Xn(e,t){if(Br<0){c("Unexpected pop.");return}t!==Fs[Br]&&c("Unexpected Fiber popped."),e.current=$d[Br],$d[Br]=null,Fs[Br]=null,Br--}function Qn(e,t,n){Br++,$d[Br]=e.current,Fs[Br]=n,e.current=t}var Pd;Pd={};var _a={};Object.freeze(_a);var $r=pi(_a),pr=pi(!1),Yd=_a;function Ho(e,t,n){return n&&mr(t)?Yd:$r.current}function My(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function zo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return _a;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=Ge(e)||"Unknown";Xa(a,i,"context",l)}return r&&My(e,t,i),i}}function Bs(){return pr.current}function mr(e){{var t=e.childContextTypes;return t!=null}}function $s(e){Xn(pr,e),Xn($r,e)}function Id(e){Xn(pr,e),Xn($r,e)}function Ly(e,t,n){{if($r.current!==_a)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qn($r,t,e),Qn(pr,n,e)}}function Oy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ge(e)||"Unknown";Pd[i]||(Pd[i]=!0,c("%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((Ge(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ge(e)||"Unknown";Xa(r,o,"child context",u)}return Ce({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||_a;return Yd=$r.current,Qn($r,n,e),Qn(pr,pr.current,e),!0}}function Ay(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=Oy(e,t,Yd);a.__reactInternalMemoizedMergedChildContext=r,Xn(pr,e),Xn($r,e),Qn($r,r,e),Qn(pr,n,e)}else Xn(pr,e),Qn(pr,n,e)}}function SR(e){{if(!nT(e)||e.tag!==he)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 re:return t.stateNode.context;case he:{var n=t.type;if(mr(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 mi=0,Ys=1,Pr=null,Wd=!1,qd=!1;function Ny(e){Pr===null?Pr=[e]:Pr.push(e)}function TR(e){Wd=!0,Ny(e)}function jy(){Wd&&hi()}function hi(){if(!qd&&Pr!==null){qd=!0;var e=0,t=Ga();try{var n=!0,a=Pr;for(Nn(Ra);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Pr=null,Wd=!1}catch(i){throw Pr!==null&&(Pr=Pr.slice(e+1)),ih(os,hi),i}finally{Nn(t),qd=!1}}return null}var Vo=[],Fo=0,Is=null,Ws=0,ja=[],Ua=0,qi=null,Yr=1,Ir="";function ER(e){return Xi(),(e.flags&Km)!==He}function CR(e){return Xi(),Ws}function xR(){var e=Ir,t=Yr,n=t&~RR(t);return n.toString(32)+e}function Gi(e,t){Xi(),Vo[Fo++]=Ws,Vo[Fo++]=Is,Is=e,Ws=t}function Uy(e,t,n){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,qi=e;var a=Yr,r=Ir,i=qs(a)-1,o=a&~(1<<i),l=n+1,u=qs(t)+i;if(u>30){var f=i-i%5,d=(1<<f)-1,g=(o&d).toString(32),y=o>>f,w=i-f,_=qs(t)+w,N=l<<w,ae=N|y,Me=g+r;Yr=1<<_|ae,Ir=Me}else{var xe=l<<i,ut=xe|o,nt=r;Yr=1<<u|ut,Ir=nt}}function Gd(e){Xi();var t=e.return;if(t!==null){var n=1,a=0;Gi(e,n),Uy(e,n,a)}}function qs(e){return 32-fh(e)}function RR(e){return 1<<qs(e)-1}function Xd(e){for(;e===Is;)Is=Vo[--Fo],Vo[Fo]=null,Ws=Vo[--Fo],Vo[Fo]=null;for(;e===qi;)qi=ja[--Ua],ja[Ua]=null,Ir=ja[--Ua],ja[Ua]=null,Yr=ja[--Ua],ja[Ua]=null}function wR(){return Xi(),qi!==null?{id:Yr,overflow:Ir}:null}function DR(e,t){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,Yr=t.id,Ir=t.overflow,qi=e}function Xi(){Vn()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var zn=null,Ha=null,Qa=!1,Qi=!1,yi=null;function _R(){Qa&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Hy(){Qi=!0}function kR(){return Qi}function MR(e){var t=e.stateNode.containerInfo;return Ha=Gx(t),zn=e,Qa=!0,yi=null,Qi=!1,!0}function LR(e,t,n){return Ha=Xx(t),zn=e,Qa=!0,yi=null,Qi=!1,n!==null&&DR(e,n),!0}function zy(e,t){switch(e.tag){case re:{iR(e.stateNode.containerInfo,t);break}case ie:{var n=(e.mode&ot)!==Oe;lR(e.type,e.memoizedProps,e.stateNode,t,n);break}case O:{var a=e.memoizedState;a.dehydrated!==null&&oR(a.dehydrated,t);break}}}function Vy(e,t){zy(e,t);var n=jD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=Ni):a.push(n)}function Qd(e,t){{if(Qi)return;switch(e.tag){case re:{var n=e.stateNode.containerInfo;switch(t.tag){case ie:var a=t.type;t.pendingProps,uR(n,a);break;case ye:var r=t.pendingProps;sR(n,r);break}break}case ie:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ie:{var u=t.type,f=t.pendingProps,d=(e.mode&ot)!==Oe;dR(i,o,l,u,f,d);break}case ye:{var g=t.pendingProps,y=(e.mode&ot)!==Oe;vR(i,o,l,g,y);break}}break}case O:{var w=e.memoizedState,_=w.dehydrated;if(_!==null)switch(t.tag){case ie:var N=t.type;t.pendingProps,cR(_,N);break;case ye:var ae=t.pendingProps;fR(_,ae);break}break}default:return}}}function Fy(e,t){t.flags=t.flags&~Ur|vn,Qd(e,t)}function By(e,t){switch(e.tag){case ie:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,zn=e,Ha=qx(a),!0):!1}case ye:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,zn=e,Ha=null,!0):!1}case O:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:wR(),retryLane:Ca};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,zn=e,Ha=null,!0}return!1}default:return!1}}function Kd(e){return(e.mode&ot)!==Oe&&(e.flags&bt)===He}function Jd(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Zd(e){if(Qa){var t=Ha;if(!t){Kd(e)&&(Qd(zn,e),Jd()),Fy(zn,e),Qa=!1,zn=e;return}var n=t;if(!By(e,t)){Kd(e)&&(Qd(zn,e),Jd()),t=au(n);var a=zn;if(!t||!By(e,t)){Fy(zn,e),Qa=!1,zn=e;return}Vy(a,n)}}}function OR(e,t,n){var a=e.stateNode,r=!Qi,i=Qx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function AR(e){var t=e.stateNode,n=e.memoizedProps,a=Kx(t,n,e);if(a){var r=zn;if(r!==null)switch(r.tag){case re:{var i=r.stateNode.containerInfo,o=(r.mode&ot)!==Oe;aR(i,t,n,o);break}case ie:{var l=r.type,u=r.memoizedProps,f=r.stateNode,d=(r.mode&ot)!==Oe;rR(l,u,f,t,n,d);break}}}return a}function NR(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.");Jx(n,e)}function jR(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 Zx(n)}function $y(e){for(var t=e.return;t!==null&&t.tag!==ie&&t.tag!==re&&t.tag!==O;)t=t.return;zn=t}function Gs(e){if(e!==zn)return!1;if(!Qa)return $y(e),Qa=!0,!1;if(e.tag!==re&&(e.tag!==ie||nR(e.type)&&!Nd(e.type,e.memoizedProps))){var t=Ha;if(t)if(Kd(e))Py(e),Jd();else for(;t;)Vy(e,t),t=au(t)}return $y(e),e.tag===O?Ha=jR(e):Ha=zn?au(e.stateNode):null,!0}function UR(){return Qa&&Ha!==null}function Py(e){for(var t=Ha;t;)zy(e,t),t=au(t)}function Bo(){zn=null,Ha=null,Qa=!1,Qi=!1}function Yy(){yi!==null&&(Hb(yi),yi=null)}function Vn(){return Qa}function ev(e){yi===null?yi=[e]:yi.push(e)}var HR=ee.ReactCurrentBatchConfig,zR=null;function VR(){return HR.transition}var Ka={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var FR=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},Ki=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},lu=[],uu=[],su=[],cu=[],fu=[],du=[],Ji=new Set;Ka.recordUnsafeLifecycleWarnings=function(e,t){Ji.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&uu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&cu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&fu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&du.push(e))},Ka.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;lu.length>0&&(lu.forEach(function(y){e.add(Ge(y)||"Component"),Ji.add(y.type)}),lu=[]);var t=new Set;uu.length>0&&(uu.forEach(function(y){t.add(Ge(y)||"Component"),Ji.add(y.type)}),uu=[]);var n=new Set;su.length>0&&(su.forEach(function(y){n.add(Ge(y)||"Component"),Ji.add(y.type)}),su=[]);var a=new Set;cu.length>0&&(cu.forEach(function(y){a.add(Ge(y)||"Component"),Ji.add(y.type)}),cu=[]);var r=new Set;fu.length>0&&(fu.forEach(function(y){r.add(Ge(y)||"Component"),Ji.add(y.type)}),fu=[]);var i=new Set;if(du.length>0&&(du.forEach(function(y){i.add(Ge(y)||"Component"),Ji.add(y.type)}),du=[]),t.size>0){var o=Ki(t);c(`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=Ki(a);c(`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=Ki(i);c(`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=Ki(e);I(`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 d=Ki(n);I(`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`,d)}if(r.size>0){var g=Ki(r);I(`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`,g)}};var Xs=new Map,Iy=new Set;Ka.recordLegacyContextWarning=function(e,t){var n=FR(e);if(n===null){c("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(!Iy.has(e.type)){var a=Xs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Xs.set(n,a)),a.push(e))}},Ka.flushLegacyContextWarning=function(){Xs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ge(i)||"Component"),Iy.add(i.type)});var r=Ki(a);try{Kt(n),c(`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()}}})},Ka.discardPendingWarnings=function(){lu=[],uu=[],su=[],cu=[],fu=[],du=[],Xs=new Map}}var tv,nv,av,rv,iv,Wy=function(e,t){};tv=!1,nv=!1,av={},rv={},iv={},Wy=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=Ge(t)||"Component";rv[n]||(rv[n]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function BR(e){return e.prototype&&e.prototype.isReactComponent}function vu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||$t)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==he)&&!(typeof n.type=="function"&&!BR(n.type))&&n._owner){var r=Ge(e)||"Component";av[r]||(c('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),av[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==he)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;L(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var d=function(g){var y=u.refs;g===null?delete y[f]:y[f]=g};return d._stringRef=f,d}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 Qs(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 Ks(e){{var t=Ge(e)||"Component";if(iv[t])return;iv[t]=!0,c("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 qy(e){var t=e._payload,n=e._init;return n(t)}function Gy(e){function t(C,j){if(e){var x=C.deletions;x===null?(C.deletions=[j],C.flags|=Ni):x.push(j)}}function n(C,j){if(!e)return null;for(var x=j;x!==null;)t(C,x),x=x.sibling;return null}function a(C,j){for(var x=new Map,B=j;B!==null;)B.key!==null?x.set(B.key,B):x.set(B.index,B),B=B.sibling;return x}function r(C,j){var x=lo(C,j);return x.index=0,x.sibling=null,x}function i(C,j,x){if(C.index=x,!e)return C.flags|=Km,j;var B=C.alternate;if(B!==null){var fe=B.index;return fe<j?(C.flags|=vn,j):fe}else return C.flags|=vn,j}function o(C){return e&&C.alternate===null&&(C.flags|=vn),C}function l(C,j,x,B){if(j===null||j.tag!==ye){var fe=em(x,C.mode,B);return fe.return=C,fe}else{var le=r(j,x);return le.return=C,le}}function u(C,j,x,B){var fe=x.type;if(fe===ta)return d(C,j,x.props.children,B,x.key);if(j!==null&&(j.elementType===fe||Zb(j,x)||typeof fe=="object"&&fe!==null&&fe.$$typeof===p&&qy(fe)===j.type)){var le=r(j,x.props);return le.ref=vu(C,j,x),le.return=C,le._debugSource=x._source,le._debugOwner=x._owner,le}var ze=Zp(x,C.mode,B);return ze.ref=vu(C,j,x),ze.return=C,ze}function f(C,j,x,B){if(j===null||j.tag!==Ue||j.stateNode.containerInfo!==x.containerInfo||j.stateNode.implementation!==x.implementation){var fe=tm(x,C.mode,B);return fe.return=C,fe}else{var le=r(j,x.children||[]);return le.return=C,le}}function d(C,j,x,B,fe){if(j===null||j.tag!==oe){var le=_i(x,C.mode,B,fe);return le.return=C,le}else{var ze=r(j,x);return ze.return=C,ze}}function g(C,j,x){if(typeof j=="string"&&j!==""||typeof j=="number"){var B=em(""+j,C.mode,x);return B.return=C,B}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case yn:{var fe=Zp(j,C.mode,x);return fe.ref=vu(C,null,j),fe.return=C,fe}case ea:{var le=tm(j,C.mode,x);return le.return=C,le}case p:{var ze=j._payload,Ie=j._init;return g(C,Ie(ze),x)}}if(tt(j)||Te(j)){var Lt=_i(j,C.mode,x,null);return Lt.return=C,Lt}Qs(C,j)}return typeof j=="function"&&Ks(C),null}function y(C,j,x,B){var fe=j!==null?j.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return fe!==null?null:l(C,j,""+x,B);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case yn:return x.key===fe?u(C,j,x,B):null;case ea:return x.key===fe?f(C,j,x,B):null;case p:{var le=x._payload,ze=x._init;return y(C,j,ze(le),B)}}if(tt(x)||Te(x))return fe!==null?null:d(C,j,x,B,null);Qs(C,x)}return typeof x=="function"&&Ks(C),null}function w(C,j,x,B,fe){if(typeof B=="string"&&B!==""||typeof B=="number"){var le=C.get(x)||null;return l(j,le,""+B,fe)}if(typeof B=="object"&&B!==null){switch(B.$$typeof){case yn:{var ze=C.get(B.key===null?x:B.key)||null;return u(j,ze,B,fe)}case ea:{var Ie=C.get(B.key===null?x:B.key)||null;return f(j,Ie,B,fe)}case p:var Lt=B._payload,pt=B._init;return w(C,j,x,pt(Lt),fe)}if(tt(B)||Te(B)){var cn=C.get(x)||null;return d(j,cn,B,fe,null)}Qs(j,B)}return typeof B=="function"&&Ks(j),null}function _(C,j,x){{if(typeof C!="object"||C===null)return j;switch(C.$$typeof){case yn:case ea:Wy(C,x);var B=C.key;if(typeof B!="string")break;if(j===null){j=new Set,j.add(B);break}if(!j.has(B)){j.add(B);break}c("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.",B);break;case p:var fe=C._payload,le=C._init;_(le(fe),j,x);break}}return j}function N(C,j,x,B){for(var fe=null,le=0;le<x.length;le++){var ze=x[le];fe=_(ze,fe,C)}for(var Ie=null,Lt=null,pt=j,cn=0,mt=0,ln=null;pt!==null&&mt<x.length;mt++){pt.index>mt?(ln=pt,pt=null):ln=pt.sibling;var Jn=y(C,pt,x[mt],B);if(Jn===null){pt===null&&(pt=ln);break}e&&pt&&Jn.alternate===null&&t(C,pt),cn=i(Jn,cn,mt),Lt===null?Ie=Jn:Lt.sibling=Jn,Lt=Jn,pt=ln}if(mt===x.length){if(n(C,pt),Vn()){var Wn=mt;Gi(C,Wn)}return Ie}if(pt===null){for(;mt<x.length;mt++){var Ma=g(C,x[mt],B);Ma!==null&&(cn=i(Ma,cn,mt),Lt===null?Ie=Ma:Lt.sibling=Ma,Lt=Ma)}if(Vn()){var ca=mt;Gi(C,ca)}return Ie}for(var fa=a(C,pt);mt<x.length;mt++){var Zn=w(fa,C,mt,x[mt],B);Zn!==null&&(e&&Zn.alternate!==null&&fa.delete(Zn.key===null?mt:Zn.key),cn=i(Zn,cn,mt),Lt===null?Ie=Zn:Lt.sibling=Zn,Lt=Zn)}if(e&&fa.forEach(function(ol){return t(C,ol)}),Vn()){var Jr=mt;Gi(C,Jr)}return Ie}function ae(C,j,x,B){var fe=Te(x);if(typeof fe!="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"&&x[Symbol.toStringTag]==="Generator"&&(nv||c("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."),nv=!0),x.entries===fe&&(tv||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tv=!0);var le=fe.call(x);if(le)for(var ze=null,Ie=le.next();!Ie.done;Ie=le.next()){var Lt=Ie.value;ze=_(Lt,ze,C)}}var pt=fe.call(x);if(pt==null)throw new Error("An iterable object provided no iterator.");for(var cn=null,mt=null,ln=j,Jn=0,Wn=0,Ma=null,ca=pt.next();ln!==null&&!ca.done;Wn++,ca=pt.next()){ln.index>Wn?(Ma=ln,ln=null):Ma=ln.sibling;var fa=y(C,ln,ca.value,B);if(fa===null){ln===null&&(ln=Ma);break}e&&ln&&fa.alternate===null&&t(C,ln),Jn=i(fa,Jn,Wn),mt===null?cn=fa:mt.sibling=fa,mt=fa,ln=Ma}if(ca.done){if(n(C,ln),Vn()){var Zn=Wn;Gi(C,Zn)}return cn}if(ln===null){for(;!ca.done;Wn++,ca=pt.next()){var Jr=g(C,ca.value,B);Jr!==null&&(Jn=i(Jr,Jn,Wn),mt===null?cn=Jr:mt.sibling=Jr,mt=Jr)}if(Vn()){var ol=Wn;Gi(C,ol)}return cn}for(var Iu=a(C,ln);!ca.done;Wn++,ca=pt.next()){var Cr=w(Iu,C,Wn,ca.value,B);Cr!==null&&(e&&Cr.alternate!==null&&Iu.delete(Cr.key===null?Wn:Cr.key),Jn=i(Cr,Jn,Wn),mt===null?cn=Cr:mt.sibling=Cr,mt=Cr)}if(e&&Iu.forEach(function(v_){return t(C,v_)}),Vn()){var d_=Wn;Gi(C,d_)}return cn}function Me(C,j,x,B){if(j!==null&&j.tag===ye){n(C,j.sibling);var fe=r(j,x);return fe.return=C,fe}n(C,j);var le=em(x,C.mode,B);return le.return=C,le}function xe(C,j,x,B){for(var fe=x.key,le=j;le!==null;){if(le.key===fe){var ze=x.type;if(ze===ta){if(le.tag===oe){n(C,le.sibling);var Ie=r(le,x.props.children);return Ie.return=C,Ie._debugSource=x._source,Ie._debugOwner=x._owner,Ie}}else if(le.elementType===ze||Zb(le,x)||typeof ze=="object"&&ze!==null&&ze.$$typeof===p&&qy(ze)===le.type){n(C,le.sibling);var Lt=r(le,x.props);return Lt.ref=vu(C,le,x),Lt.return=C,Lt._debugSource=x._source,Lt._debugOwner=x._owner,Lt}n(C,le);break}else t(C,le);le=le.sibling}if(x.type===ta){var pt=_i(x.props.children,C.mode,B,x.key);return pt.return=C,pt}else{var cn=Zp(x,C.mode,B);return cn.ref=vu(C,j,x),cn.return=C,cn}}function ut(C,j,x,B){for(var fe=x.key,le=j;le!==null;){if(le.key===fe)if(le.tag===Ue&&le.stateNode.containerInfo===x.containerInfo&&le.stateNode.implementation===x.implementation){n(C,le.sibling);var ze=r(le,x.children||[]);return ze.return=C,ze}else{n(C,le);break}else t(C,le);le=le.sibling}var Ie=tm(x,C.mode,B);return Ie.return=C,Ie}function nt(C,j,x,B){var fe=typeof x=="object"&&x!==null&&x.type===ta&&x.key===null;if(fe&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case yn:return o(xe(C,j,x,B));case ea:return o(ut(C,j,x,B));case p:var le=x._payload,ze=x._init;return nt(C,j,ze(le),B)}if(tt(x))return N(C,j,x,B);if(Te(x))return ae(C,j,x,B);Qs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(Me(C,j,""+x,B)):(typeof x=="function"&&Ks(C),n(C,j))}return nt}var $o=Gy(!0),Xy=Gy(!1);function $R(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=lo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=lo(n,n.pendingProps),a.return=t;a.sibling=null}}function PR(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var ov=pi(null),lv;lv={};var Js=null,Po=null,uv=null,Zs=!1;function ec(){Js=null,Po=null,uv=null,Zs=!1}function Qy(){Zs=!0}function Ky(){Zs=!1}function Jy(e,t,n){Qn(ov,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==lv&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=lv}function sv(e,t){var n=ov.current;Xn(ov,t),e._currentValue=n}function cv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Do(a.childLanes,t)?r!==null&&!Do(r.childLanes,t)&&(r.childLanes=Qe(r.childLanes,t)):(a.childLanes=Qe(a.childLanes,t),r!==null&&(r.childLanes=Qe(r.childLanes,t))),a===n)break;a=a.return}a!==n&&c("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 YR(e,t,n){IR(e,t,n)}function IR(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===he){var l=Ll(n),u=Wr(It,l);u.tag=nc;var f=a.updateQueue;if(f!==null){var d=f.shared,g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}a.lanes=Qe(a.lanes,n);var y=a.alternate;y!==null&&(y.lanes=Qe(y.lanes,n)),cv(a.return,n,e),i.lanes=Qe(i.lanes,n);break}o=o.next}}else if(a.tag===Fe)r=a.type===e.type?null:a.child;else if(a.tag===Et){var w=a.return;if(w===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");w.lanes=Qe(w.lanes,n);var _=w.alternate;_!==null&&(_.lanes=Qe(_.lanes,n)),cv(w,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 N=r.sibling;if(N!==null){N.return=r.return,r=N;break}r=r.return}a=r}}function Yo(e,t){Js=e,Po=null,uv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(xa(n.lanes,t)&&_u(),n.firstContext=null)}}function pn(e){Zs&&c("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(uv!==e){var n={context:e,memoizedValue:t,next:null};if(Po===null){if(Js===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().");Po=n,Js.dependencies={lanes:F,firstContext:n}}else Po=Po.next=n}return t}var Zi=null;function fv(e){Zi===null?Zi=[e]:Zi.push(e)}function WR(){if(Zi!==null){for(var e=0;e<Zi.length;e++){var t=Zi[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}}Zi=null}}function Zy(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function qR(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function GR(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function ya(e,t){return tc(e,t)}var XR=tc;function tc(e,t){e.lanes=Qe(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Qe(n.lanes,t)),n===null&&(e.flags&(vn|Ur))!==He&&Xb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=Qe(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=Qe(n.childLanes,t):(r.flags&(vn|Ur))!==He&&Xb(e),a=r,r=r.return;if(a.tag===re){var i=a.stateNode;return i}else return null}var eg=0,tg=1,nc=2,dv=3,ac=!1,vv,rc;vv=!1,rc=null;function pv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:F},effects:null};e.updateQueue=t}function ng(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 Wr(e,t){var n={eventTime:e,lane:t,tag:eg,payload:null,callback:null,next:null};return n}function gi(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(rc===r&&!vv&&(c("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."),vv=!0),qw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,XR(e,n)}else return GR(e,r,t,n)}function ic(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(mh(n)){var i=r.lanes;i=yh(i,e.pendingLanes);var o=Qe(i,n);r.lanes=o,od(e,o)}}}function mv(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 d=n.lastBaseUpdate;d===null?n.firstBaseUpdate=t:d.next=t,n.lastBaseUpdate=t}function QR(e,t,n,a,r,i){switch(n.tag){case tg:{var o=n.payload;if(typeof o=="function"){Qy();var l=o.call(i,a,r);{if(e.mode&on){On(!0);try{o.call(i,a,r)}finally{On(!1)}}Ky()}return l}return o}case dv:e.flags=e.flags&~oa|bt;case eg:{var u=n.payload,f;if(typeof u=="function"){Qy(),f=u.call(i,a,r);{if(e.mode&on){On(!0);try{u.call(i,a,r)}finally{On(!1)}}Ky()}}else f=u;return f==null?a:Ce({},a,f)}case nc:return ac=!0,a}return a}function oc(e,t,n,a){var r=e.updateQueue;ac=!1,rc=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 d=e.alternate;if(d!==null){var g=d.updateQueue,y=g.lastBaseUpdate;y!==o&&(y===null?g.firstBaseUpdate=f:y.next=f,g.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,_=F,N=null,ae=null,Me=null,xe=i;do{var ut=xe.lane,nt=xe.eventTime;if(Do(a,ut)){if(Me!==null){var j={eventTime:nt,lane:An,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null};Me=Me.next=j}w=QR(e,r,xe,w,t,n);var x=xe.callback;if(x!==null&&xe.lane!==An){e.flags|=Qm;var B=r.effects;B===null?r.effects=[xe]:B.push(xe)}}else{var C={eventTime:nt,lane:ut,tag:xe.tag,payload:xe.payload,callback:xe.callback,next:null};Me===null?(ae=Me=C,N=w):Me=Me.next=C,_=Qe(_,ut)}if(xe=xe.next,xe===null){if(l=r.shared.pending,l===null)break;var fe=l,le=fe.next;fe.next=null,xe=le,r.lastBaseUpdate=fe,r.shared.pending=null}}while(!0);Me===null&&(N=w),r.baseState=N,r.firstBaseUpdate=ae,r.lastBaseUpdate=Me;var ze=r.shared.interleaved;if(ze!==null){var Ie=ze;do _=Qe(_,Ie.lane),Ie=Ie.next;while(Ie!==ze)}else i===null&&(r.shared.lanes=F);Fu(_),e.lanes=_,e.memoizedState=w}rc=null}function KR(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ag(){ac=!1}function lc(){return ac}function rg(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,KR(o,n))}}var pu={},bi=pi(pu),mu=pi(pu),uc=pi(pu);function sc(e){if(e===pu)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 ig(){var e=sc(uc.current);return e}function hv(e,t){Qn(uc,t,e),Qn(mu,e,e),Qn(bi,pu,e);var n=px(t);Xn(bi,e),Qn(bi,n,e)}function Io(e){Xn(bi,e),Xn(mu,e),Xn(uc,e)}function yv(){var e=sc(bi.current);return e}function og(e){sc(uc.current);var t=sc(bi.current),n=mx(t,e.type);t!==n&&(Qn(mu,e,e),Qn(bi,n,e))}function gv(e){mu.current===e&&(Xn(bi,e),Xn(mu,e))}var JR=0,lg=1,ug=1,hu=2,Ja=pi(JR);function bv(e,t){return(e&t)!==0}function Wo(e){return e&lg}function Sv(e,t){return e&lg|t}function ZR(e,t){return e|t}function Si(e,t){Qn(Ja,t,e)}function qo(e){Xn(Ja,e)}function e1(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function cc(e){for(var t=e;t!==null;){if(t.tag===O){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Ry(a)||zd(a))return t}}else if(t.tag===At&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&bt)!==He;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 ga=0,bn=1,hr=2,Sn=4,Fn=8,Tv=[];function Ev(){for(var e=0;e<Tv.length;e++){var t=Tv[e];t._workInProgressVersionPrimary=null}Tv.length=0}function t1(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ce=ee.ReactCurrentDispatcher,yu=ee.ReactCurrentBatchConfig,Cv,Go;Cv=new Set;var eo=F,Mt=null,Tn=null,En=null,fc=!1,gu=!1,bu=0,n1=0,a1=25,H=null,za=null,Ti=-1,xv=!1;function Tt(){{var e=H;za===null?za=[e]:za.push(e)}}function Z(){{var e=H;za!==null&&(Ti++,za[Ti]!==e&&r1(e))}}function Xo(e){e!=null&&!tt(e)&&c("%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 r1(e){{var t=Ge(Mt);if(!Cv.has(t)&&(Cv.add(t),za!==null)){for(var n="",a=30,r=0;r<=Ti;r++){for(var i=za[r],o=r===Ti?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}c(`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 Kn(){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 Rv(e,t){if(xv)return!1;if(t===null)return c("%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&&c(`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(!Da(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,r,i){eo=i,Mt=t,za=e!==null?e._debugHookTypes:null,Ti=-1,xv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=F,e!==null&&e.memoizedState!==null?ce.current=Mg:za!==null?ce.current=kg:ce.current=_g;var o=n(a,r);if(gu){var l=0;do{if(gu=!1,bu=0,l>=a1)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,xv=!1,Tn=null,En=null,t.updateQueue=null,Ti=-1,ce.current=Lg,o=n(a,r)}while(gu)}ce.current=xc,t._debugHookTypes=za;var u=Tn!==null&&Tn.next!==null;if(eo=F,Mt=null,Tn=null,En=null,H=null,za=null,Ti=-1,e!==null&&(e.flags&Hr)!==(t.flags&Hr)&&(e.mode&ot)!==Oe&&c("Internal React error: Expected static flag was missing. Please notify the React team."),fc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Ko(){var e=bu!==0;return bu=0,e}function sg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&dr)!==Oe?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function cg(){if(ce.current=xc,fc){for(var e=Mt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}eo=F,Mt=null,Tn=null,En=null,za=null,Ti=-1,H=null,Cg=!1,gu=!1,bu=0}function yr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?Mt.memoizedState=En=e:En=En.next=e,En}function Va(){var e;if(Tn===null){var t=Mt.alternate;t!==null?e=t.memoizedState:e=null}else e=Tn.next;var n;if(En===null?n=Mt.memoizedState:n=En.next,n!==null)En=n,n=En.next,Tn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Tn=e;var a={memoizedState:Tn.memoizedState,baseState:Tn.baseState,baseQueue:Tn.baseQueue,queue:Tn.queue,next:null};En===null?Mt.memoizedState=En=a:En=En.next=a}return En}function fg(){return{lastEffect:null,stores:null}}function wv(e,t){return typeof t=="function"?t(e):t}function Dv(e,t,n){var a=yr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=u1.bind(null,Mt,i);return[a.memoizedState,o]}function _v(e,t,n){var a=Va(),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=Tn,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&&c("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 d=o.next,g=i.baseState,y=null,w=null,_=null,N=d;do{var ae=N.lane;if(Do(eo,ae)){if(_!==null){var xe={lane:An,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_=_.next=xe}if(N.hasEagerState)g=N.eagerState;else{var ut=N.action;g=e(g,ut)}}else{var Me={lane:ae,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_===null?(w=_=Me,y=g):_=_.next=Me,Mt.lanes=Qe(Mt.lanes,ae),Fu(ae)}N=N.next}while(N!==null&&N!==d);_===null?y=g:_.next=w,Da(g,a.memoizedState)||_u(),a.memoizedState=g,a.baseState=y,a.baseQueue=_,r.lastRenderedState=g}var nt=r.interleaved;if(nt!==null){var C=nt;do{var j=C.lane;Mt.lanes=Qe(Mt.lanes,j),Fu(j),C=C.next}while(C!==nt)}else o===null&&(r.lanes=F);var x=r.dispatch;return[a.memoizedState,x]}function kv(e,t,n){var a=Va(),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 d=f.action;l=e(l,d),f=f.next}while(f!==u);Da(l,a.memoizedState)||_u(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function h_(e,t,n){}function y_(e,t,n){}function Mv(e,t,n){var a=Mt,r=yr(),i,o=Vn();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(),Go||i!==n()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Go=!0)}else{if(i=t(),!Go){var l=t();Da(i,l)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var u=Pc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(u,eo)||dg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,hc(pg.bind(null,a,f,e),[e]),a.flags|=ii,Su(bn|Fn,vg.bind(null,a,f,i,t),void 0,null),i}function dc(e,t,n){var a=Mt,r=Va(),i=t();if(!Go){var o=t();Da(i,o)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var l=r.memoizedState,u=!Da(l,i);u&&(r.memoizedState=i,_u());var f=r.queue;if(Eu(pg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||En!==null&&En.memoizedState.tag&bn){a.flags|=ii,Su(bn|Fn,vg.bind(null,a,f,i,t),void 0,null);var d=Pc();if(d===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(d,eo)||dg(a,t,i)}return i}function dg(e,t,n){e.flags|=wf;var a={getSnapshot:t,value:n},r=Mt.updateQueue;if(r===null)r=fg(),Mt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function vg(e,t,n,a){t.value=n,t.getSnapshot=a,mg(t)&&hg(e)}function pg(e,t,n){var a=function(){mg(t)&&hg(e)};return n(a)}function mg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Da(n,a)}catch{return!0}}function hg(e){var t=ya(e,$e);t!==null&&wn(t,e,$e,It)}function vc(e){var t=yr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:wv,lastRenderedState:e};t.queue=n;var a=n.dispatch=s1.bind(null,Mt,n);return[t.memoizedState,a]}function Lv(e){return _v(wv)}function Ov(e){return kv(wv)}function Su(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Mt.updateQueue;if(i===null)i=fg(),Mt.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 Av(e){var t=yr();{var n={current:e};return t.memoizedState=n,n}}function pc(e){var t=Va();return t.memoizedState}function Tu(e,t,n,a){var r=yr(),i=a===void 0?null:a;Mt.flags|=e,r.memoizedState=Su(bn|t,n,void 0,i)}function mc(e,t,n,a){var r=Va(),i=a===void 0?null:a,o=void 0;if(Tn!==null){var l=Tn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Rv(i,u)){r.memoizedState=Su(t,n,o,i);return}}}Mt.flags|=e,r.memoizedState=Su(bn|t,n,o,i)}function hc(e,t){return(Mt.mode&dr)!==Oe?Tu(Mf|ii|kf,Fn,e,t):Tu(ii|kf,Fn,e,t)}function Eu(e,t){return mc(ii,Fn,e,t)}function Nv(e,t){return Tu(gt,hr,e,t)}function yc(e,t){return mc(gt,hr,e,t)}function jv(e,t){var n=gt;return n|=Hi,(Mt.mode&dr)!==Oe&&(n|=oi),Tu(n,Sn,e,t)}function gc(e,t){return mc(gt,Sn,e,t)}function yg(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")||c("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 Uv(e,t,n){typeof t!="function"&&c("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=gt;return r|=Hi,(Mt.mode&dr)!==Oe&&(r|=oi),Tu(r,Sn,yg.bind(null,t,e),a)}function bc(e,t,n){typeof t!="function"&&c("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 mc(gt,Sn,yg.bind(null,t,e),a)}function i1(e,t){}var Sc=i1;function Hv(e,t){var n=yr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Tc(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}return n.memoizedState=[e,a],e}function zv(e,t){var n=yr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Ec(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Vv(e){var t=yr();return t.memoizedState=e,e}function gg(e){var t=Va(),n=Tn,a=n.memoizedState;return Sg(t,a,e)}function bg(e){var t=Va();if(Tn===null)return t.memoizedState=e,e;var n=Tn.memoizedState;return Sg(t,n,e)}function Sg(e,t,n){var a=!YT(eo);if(a){if(!Da(n,t)){var r=hh();Mt.lanes=Qe(Mt.lanes,r),Fu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,_u()),e.memoizedState=n,n}function o1(e,t,n){var a=Ga();Nn(ZT(a,Vr)),e(!0);var r=yu.transition;yu.transition={};var i=yu.transition;yu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Nn(a),yu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&I("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 Fv(){var e=vc(!1),t=e[0],n=e[1],a=o1.bind(null,n),r=yr();return r.memoizedState=a,[t,a]}function Tg(){var e=Lv(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}function Eg(){var e=Ov(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}var Cg=!1;function l1(){return Cg}function Bv(){var e=yr(),t=Pc(),n=t.identifierPrefix,a;if(Vn()){var r=xR();a=":"+n+"R"+r;var i=bu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=n1++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Cc(){var e=Va(),t=e.memoizedState;return t}function u1(e,t,n){typeof arguments[3]=="function"&&c("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=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=Zy(e,t,r,a);if(i!==null){var o=sa();wn(i,e,a,o),wg(i,t,a)}}Dg(e,a)}function s1(e,t,n){typeof arguments[3]=="function"&&c("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=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=e.alternate;if(e.lanes===F&&(i===null||i.lanes===F)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ce.current,ce.current=Za;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Da(f,u)){qR(e,t,r,a);return}}catch{}finally{ce.current=l}}}var d=Zy(e,t,r,a);if(d!==null){var g=sa();wn(d,e,a,g),wg(d,t,a)}}Dg(e,a)}function xg(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function Rg(e,t){gu=fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wg(e,t,n){if(mh(n)){var a=t.lanes;a=yh(a,e.pendingLanes);var r=Qe(a,n);t.lanes=r,od(e,r)}}function Dg(e,t,n){jf(e,t)}var xc={readContext:pn,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useInsertionEffect:Kn,useLayoutEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useMutableSource:Kn,useSyncExternalStore:Kn,useId:Kn,unstable_isNewReconciler:P},_g=null,kg=null,Mg=null,Lg=null,gr=null,Za=null,Rc=null;{var $v=function(){c("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().")},Pe=function(){c("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")};_g={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",Tt(),Xo(t),Hv(e,t)},useContext:function(e){return H="useContext",Tt(),pn(e)},useEffect:function(e,t){return H="useEffect",Tt(),Xo(t),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Tt(),Xo(n),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Tt(),Xo(t),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Tt(),Xo(t),jv(e,t)},useMemo:function(e,t){H="useMemo",Tt(),Xo(t);var n=ce.current;ce.current=gr;try{return zv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Tt();var a=ce.current;ce.current=gr;try{return Dv(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Tt(),Av(e)},useState:function(e){H="useState",Tt();var t=ce.current;ce.current=gr;try{return vc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Tt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Tt(),Vv(e)},useTransition:function(){return H="useTransition",Tt(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Tt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Tt(),Mv(e,t,n)},useId:function(){return H="useId",Tt(),Bv()},unstable_isNewReconciler:P},kg={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",Z(),Hv(e,t)},useContext:function(e){return H="useContext",Z(),pn(e)},useEffect:function(e,t){return H="useEffect",Z(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Z(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Z(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Z(),jv(e,t)},useMemo:function(e,t){H="useMemo",Z();var n=ce.current;ce.current=gr;try{return zv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Z();var a=ce.current;ce.current=gr;try{return Dv(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Z(),Av(e)},useState:function(e){H="useState",Z();var t=ce.current;ce.current=gr;try{return vc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Z(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Z(),Vv(e)},useTransition:function(){return H="useTransition",Z(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Z(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Z(),Mv(e,t,n)},useId:function(){return H="useId",Z(),Bv()},unstable_isNewReconciler:P},Mg={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",Z(),Tc(e,t)},useContext:function(e){return H="useContext",Z(),pn(e)},useEffect:function(e,t){return H="useEffect",Z(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Z(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Z(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Z(),gc(e,t)},useMemo:function(e,t){H="useMemo",Z();var n=ce.current;ce.current=Za;try{return Ec(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Z();var a=ce.current;ce.current=Za;try{return _v(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Z(),pc()},useState:function(e){H="useState",Z();var t=ce.current;ce.current=Za;try{return Lv(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Z(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Z(),gg(e)},useTransition:function(){return H="useTransition",Z(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",Z(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Z(),dc(e,t)},useId:function(){return H="useId",Z(),Cc()},unstable_isNewReconciler:P},Lg={readContext:function(e){return pn(e)},useCallback:function(e,t){return H="useCallback",Z(),Tc(e,t)},useContext:function(e){return H="useContext",Z(),pn(e)},useEffect:function(e,t){return H="useEffect",Z(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Z(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Z(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Z(),gc(e,t)},useMemo:function(e,t){H="useMemo",Z();var n=ce.current;ce.current=Rc;try{return Ec(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Z();var a=ce.current;ce.current=Rc;try{return kv(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Z(),pc()},useState:function(e){H="useState",Z();var t=ce.current;ce.current=Rc;try{return Ov(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Z(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Z(),bg(e)},useTransition:function(){return H="useTransition",Z(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",Z(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Z(),dc(e,t)},useId:function(){return H="useId",Z(),Cc()},unstable_isNewReconciler:P},gr={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Pe(),Tt(),Hv(e,t)},useContext:function(e){return H="useContext",Pe(),Tt(),pn(e)},useEffect:function(e,t){return H="useEffect",Pe(),Tt(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),Tt(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),Tt(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Tt(),jv(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Tt();var n=ce.current;ce.current=gr;try{return zv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),Tt();var a=ce.current;ce.current=gr;try{return Dv(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Pe(),Tt(),Av(e)},useState:function(e){H="useState",Pe(),Tt();var t=ce.current;ce.current=gr;try{return vc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),Tt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Pe(),Tt(),Vv(e)},useTransition:function(){return H="useTransition",Pe(),Tt(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),Tt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),Tt(),Mv(e,t,n)},useId:function(){return H="useId",Pe(),Tt(),Bv()},unstable_isNewReconciler:P},Za={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Pe(),Z(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),Z(),pn(e)},useEffect:function(e,t){return H="useEffect",Pe(),Z(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),Z(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),Z(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Z(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Z();var n=ce.current;ce.current=Za;try{return Ec(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),Z();var a=ce.current;ce.current=Za;try{return _v(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Pe(),Z(),pc()},useState:function(e){H="useState",Pe(),Z();var t=ce.current;ce.current=Za;try{return Lv(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),Z(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),Z(),gg(e)},useTransition:function(){return H="useTransition",Pe(),Z(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),Z(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),Z(),dc(e,t)},useId:function(){return H="useId",Pe(),Z(),Cc()},unstable_isNewReconciler:P},Rc={readContext:function(e){return $v(),pn(e)},useCallback:function(e,t){return H="useCallback",Pe(),Z(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),Z(),pn(e)},useEffect:function(e,t){return H="useEffect",Pe(),Z(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),Z(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),Z(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Z(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Z();var n=ce.current;ce.current=Za;try{return Ec(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),Z();var a=ce.current;ce.current=Za;try{return kv(e,t,n)}finally{ce.current=a}},useRef:function(e){return H="useRef",Pe(),Z(),pc()},useState:function(e){H="useState",Pe(),Z();var t=ce.current;ce.current=Za;try{return Ov(e)}finally{ce.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),Z(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),Z(),bg(e)},useTransition:function(){return H="useTransition",Pe(),Z(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),Z(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),Z(),dc(e,t)},useId:function(){return H="useId",Pe(),Z(),Cc()},unstable_isNewReconciler:P}}var Ei=M.unstable_now,Og=0,wc=-1,Cu=-1,Dc=-1,Pv=!1,_c=!1;function Ag(){return Pv}function c1(){_c=!0}function f1(){Pv=!1,_c=!1}function d1(){Pv=_c,_c=!1}function Ng(){return Og}function jg(){Og=Ei()}function Yv(e){Cu=Ei(),e.actualStartTime<0&&(e.actualStartTime=Ei())}function Ug(e){Cu=-1}function kc(e,t){if(Cu>=0){var n=Ei()-Cu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Cu=-1}}function br(e){if(wc>=0){var t=Ei()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case re:var a=n.stateNode;a.effectDuration+=t;return;case Ke:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function Iv(e){if(Dc>=0){var t=Ei()-Dc;Dc=-1;for(var n=e.return;n!==null;){switch(n.tag){case re:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case Ke:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function Sr(){wc=Ei()}function Wv(){Dc=Ei()}function qv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function er(e,t){if(e&&e.defaultProps){var n=Ce({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Gv={},Xv,Qv,Kv,Jv,Zv,Hg,Mc,ep,tp,np,xu;{Xv=new Set,Qv=new Set,Kv=new Set,Jv=new Set,ep=new Set,Zv=new Set,tp=new Set,np=new Set,xu=new Set;var zg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;zg.has(n)||(zg.add(n),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Hg=function(e,t){if(t===void 0){var n=yt(e)||"Component";Zv.has(n)||(Zv.add(n),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Gv,"_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(Gv)}function ap(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)}}Hg(t,i)}var o=i==null?r:Ce({},r,i);if(e.memoizedState=o,e.lanes===F){var l=e.updateQueue;l.baseState=o}}var rp={isMounted:aT,enqueueSetState:function(e,t,n){var a=go(e),r=sa(),i=wi(a),o=Wr(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=gi(a,o,i);l!==null&&(wn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueReplaceState:function(e,t,n){var a=go(e),r=sa(),i=wi(a),o=Wr(r,i);o.tag=tg,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=gi(a,o,i);l!==null&&(wn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueForceUpdate:function(e,t){var n=go(e),a=sa(),r=wi(n),i=Wr(a,r);i.tag=nc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=gi(n,i,r);o!==null&&(wn(o,n,r,a),ic(o,n,r)),NT(n,r)}};function Vg(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&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",yt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Wl(n,a)||!Wl(r,i):!0}function v1(e,t,n){var a=e.stateNode;{var r=yt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):c("%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&&c("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&&c("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&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!xu.has(t)&&(e.mode&on)===Oe&&(xu.add(t),c(`%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&&!xu.has(t)&&(e.mode&on)===Oe&&(xu.add(t),c(`%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&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!tp.has(t)&&(tp.add(t),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&c("%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"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",yt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&c("%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"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&c("%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&&c("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"&&!Kv.has(t)&&(Kv.add(t),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",yt(t))),typeof a.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&c("%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"||tt(l))&&c("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Fg(e,t){t.updater=rp,e.stateNode=t,Z0(t,e),t._reactInternalInstance=Gv}function Bg(e,t,n){var a=!1,r=_a,i=_a,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&o._context===void 0;if(!l&&!np.has(t)){np.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===Dr?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(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",yt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=pn(o);else{r=Ho(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?zo(e,r):_a}var d=new t(n,i);if(e.mode&on){On(!0);try{d=new t(n,i)}finally{On(!1)}}var g=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Fg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&g===null){var y=yt(t)||"Component";Qv.has(y)||(Qv.add(y),c("`%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,d.state===null?"null":"undefined",y))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var w=null,_=null,N=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),w!==null||_!==null||N!==null){var ae=yt(t)||"Component",Me=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Jv.has(ae)||(Jv.add(ae),c(`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`,ae,Me,w!==null?`
`+w:"",_!==null?`
`+_:"",N!==null?`
`+N:""))}}}return a&&My(e,r,i),d}function p1(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ge(e)||"Component"),rp.enqueueReplaceState(t,t.state,null))}function $g(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=Ge(e)||"Component";Xv.has(i)||(Xv.add(i),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}rp.enqueueReplaceState(t,t.state,null)}}function ip(e,t,n,a){v1(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},pv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=pn(i);else{var o=Ho(e,t,!0);r.context=zo(e,o)}{if(r.state===n){var l=yt(t)||"Component";ep.has(l)||(ep.add(l),c("%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&&Ka.recordLegacyContextWarning(e,r),Ka.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ap(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")&&(p1(e,r),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=gt;f|=Hi,(e.mode&dr)!==Oe&&(f|=oi),e.flags|=f}}function m1(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=_a;if(typeof l=="object"&&l!==null)u=pn(l);else{var f=Ho(e,t,!0);u=zo(e,f)}var d=t.getDerivedStateFromProps,g=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!g&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&$g(e,r,n,u),ag();var y=e.memoizedState,w=r.state=y;if(oc(e,n,r,a),w=e.memoizedState,i===n&&y===w&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var _=gt;_|=Hi,(e.mode&dr)!==Oe&&(_|=oi),e.flags|=_}return!1}typeof d=="function"&&(ap(e,t,d,n),w=e.memoizedState);var N=lc()||Vg(e,t,i,n,y,w,u);if(N){if(!g&&(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 ae=gt;ae|=Hi,(e.mode&dr)!==Oe&&(ae|=oi),e.flags|=ae}}else{if(typeof r.componentDidMount=="function"){var Me=gt;Me|=Hi,(e.mode&dr)!==Oe&&(Me|=oi),e.flags|=Me}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,N}function h1(e,t,n,a,r){var i=t.stateNode;ng(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:er(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,d=n.contextType,g=_a;if(typeof d=="object"&&d!==null)g=pn(d);else{var y=Ho(t,n,!0);g=zo(t,y)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==g)&&$g(t,i,a,g),ag();var N=t.memoizedState,ae=i.state=N;if(oc(t,a,i,r),ae=t.memoizedState,o===u&&N===ae&&!Bs()&&!lc()&&!_e)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=So),!1;typeof w=="function"&&(ap(t,n,w,a),ae=t.memoizedState);var Me=lc()||Vg(t,n,l,a,N,ae,g)||_e;return Me?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ae,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ae,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=So)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=gt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=So),t.memoizedProps=a,t.memoizedState=ae),i.props=a,i.state=ae,i.context=g,Me}function to(e,t){return{value:e,source:t,stack:Ia(t),digest:null}}function op(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function y1(e,t){return!0}function lp(e,t){try{var n=y1(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===he)return;console.error(a)}var l=r?Ge(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===re)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 d=Ge(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var g=u+`
`+o+`
`+(""+f);console.error(g)}catch(y){setTimeout(function(){throw y})}}var g1=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){var a=Wr(It,n);a.tag=dv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),lp(e,t)},a}function up(e,t,n){var a=Wr(It,n);a.tag=dv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){eS(e),lp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){eS(e),lp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(xa(e.lanes,$e)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ge(e)||"Unknown"))}),a}function Yg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new g1,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=fD.bind(null,e,t,n);qa&&Bu(e,n),t.then(i,i)}}function b1(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 S1(e,t){var n=e.tag;if((e.mode&ot)===Oe&&(n===ve||n===De||n===W)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Ig(e){var t=e;do{if(t.tag===O&&e1(t))return t;t=t.return}while(t!==null);return null}function Wg(e,t,n,a,r){if((e.mode&ot)===Oe){if(e===t)e.flags|=oa;else{if(e.flags|=bt,n.flags|=Df,n.flags&=-52805,n.tag===he){var i=n.alternate;if(i===null)n.tag=We;else{var o=Wr(It,$e);o.tag=nc,gi(n,o,$e)}}n.lanes=Qe(n.lanes,$e)}return e}return e.flags|=oa,e.lanes=r,e}function T1(e,t,n,a,r){if(n.flags|=is,qa&&Bu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;S1(n),Vn()&&n.mode&ot&&Hy();var o=Ig(t);if(o!==null){o.flags&=~jr,Wg(o,t,n,e,r),o.mode&ot&&Yg(e,i,r),b1(o,e,i);return}else{if(!PT(r)){Yg(e,i,r),Bp();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(Vn()&&n.mode&ot){Hy();var u=Ig(t);if(u!==null){(u.flags&oa)===He&&(u.flags|=jr),Wg(u,t,n,e,r),ev(to(a,n));return}}a=to(a,n),eD(a);var f=t;do{switch(f.tag){case re:{var d=a;f.flags|=oa;var g=Ll(r);f.lanes=Qe(f.lanes,g);var y=Pg(f,d,g);mv(f,y);return}case he:var w=a,_=f.type,N=f.stateNode;if((f.flags&bt)===He&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!Ib(N))){f.flags|=oa;var ae=Ll(r);f.lanes=Qe(f.lanes,ae);var Me=up(f,w,ae);mv(f,Me);return}break}f=f.return}while(f!==null)}function E1(){return null}var Ru=ee.ReactCurrentOwner,tr=!1,sp,wu,cp,fp,dp,no,vp,Lc,Du;sp={},wu={},cp={},fp={},dp={},no=!1,vp={},Lc={},Du={};function la(e,t,n,a){e===null?t.child=Xy(t,null,n,a):t.child=$o(t,e.child,n,a)}function C1(e,t,n,a){t.child=$o(t,e.child,null,a),t.child=$o(t,null,n,a)}function qg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",yt(n))}var o=n.render,l=t.ref,u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,o,a,l,r),f=Ko(),t.mode&on){On(!0);try{u=Qo(e,t,o,a,l,r),f=Ko()}finally{On(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Vn()&&f&&Gd(t),t.flags|=bo,la(e,t,u,r),t.child)}function Gg(e,t,n,a,r){if(e===null){var i=n.type;if(_D(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=il(i),t.tag=W,t.type=o,hp(t,i),Xg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Xa(l,a,"prop",yt(i)),n.defaultProps!==void 0){var u=yt(i)||"Unknown";Du[u]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Du[u]=!0)}}var f=Jp(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var d=n.type,g=d.propTypes;g&&Xa(g,a,"prop",yt(d))}var y=e.child,w=Ep(e,r);if(!w){var _=y.memoizedProps,N=n.compare;if(N=N!==null?N:Wl,N(_,a)&&e.ref===t.ref)return qr(e,t,r)}t.flags|=bo;var ae=lo(y,a);return ae.ref=t.ref,ae.return=t,t.child=ae,ae}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===p){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Xa(f,a,"prop",yt(i))}}if(e!==null){var d=e.memoizedProps;if(Wl(d,a)&&e.ref===t.ref&&t.type===e.type)if(tr=!1,t.pendingProps=a=d,Ep(e,r))(e.flags&Df)!==He&&(tr=!0);else return t.lanes=e.lanes,qr(e,t,r)}return pp(e,t,n,a,r)}function Qg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||Ct)if((t.mode&ot)===Oe){var o={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=o,Yc(t,n)}else if(xa(n,Ca)){var g={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=g;var y=i!==null?i.baseLanes:n;Yc(t,y)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=Qe(f,n)}else u=n;t.lanes=t.childLanes=Ca;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,Yc(t,u),null}else{var w;i!==null?(w=Qe(i.baseLanes,n),t.memoizedState=null):w=n,Yc(t,w)}return la(e,t,r,n),t.child}function x1(e,t,n){var a=t.pendingProps;return la(e,t,a,n),t.child}function R1(e,t,n){var a=t.pendingProps.children;return la(e,t,a,n),t.child}function w1(e,t,n){{t.flags|=gt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return la(e,t,i,n),t.child}function Kg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=ji,t.flags|=_f)}function pp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",yt(n))}var o;{var l=Ho(t,n,!0);o=zo(t,l)}var u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,n,a,o,r),f=Ko(),t.mode&on){On(!0);try{u=Qo(e,t,n,a,o,r),f=Ko()}finally{On(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Vn()&&f&&Gd(t),t.flags|=bo,la(e,t,u,r),t.child)}function Jg(e,t,n,a,r){{switch(PD(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|=bt,t.flags|=oa;var f=new Error("Simulated error coming from DevTools"),d=Ll(r);t.lanes=Qe(t.lanes,d);var g=up(t,to(f,t),d);mv(t,g);break}}if(t.type!==t.elementType){var y=n.propTypes;y&&Xa(y,a,"prop",yt(n))}}var w;mr(n)?(w=!0,Ps(t)):w=!1,Yo(t,r);var _=t.stateNode,N;_===null?(Ac(e,t),Bg(t,n,a),ip(t,n,a,r),N=!0):e===null?N=m1(t,n,a,r):N=h1(e,t,n,a,r);var ae=mp(e,t,n,N,w,r);{var Me=t.stateNode;N&&Me.props!==a&&(no||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ge(t)||"a component"),no=!0)}return ae}function mp(e,t,n,a,r,i){Kg(e,t);var o=(t.flags&bt)!==He;if(!a&&!o)return r&&Ay(t,n,!1),qr(e,t,i);var l=t.stateNode;Ru.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Ug();else{Rl(t);{if(Na(!0),u=l.render(),t.mode&on){On(!0);try{l.render()}finally{On(!1)}}Na(!1)}Co()}return t.flags|=bo,e!==null&&o?C1(e,t,u,i):la(e,t,u,i),t.memoizedState=l.state,r&&Ay(t,n,!0),t.child}function Zg(e){var t=e.stateNode;t.pendingContext?Ly(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ly(e,t.context,!1),hv(e,t.containerInfo)}function D1(e,t,n){if(Zg(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;ng(e,t),oc(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&jr){var d=to(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 eb(e,t,l,n,d)}else if(l!==i){var g=to(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return eb(e,t,l,n,g)}else{MR(t);var y=Xy(t,null,l,n);t.child=y;for(var w=y;w;)w.flags=w.flags&~vn|Ur,w=w.sibling}}else{if(Bo(),l===i)return qr(e,t,n);la(e,t,l,n)}return t.child}function eb(e,t,n,a,r){return Bo(),ev(r),t.flags|=jr,la(e,t,n,a),t.child}function _1(e,t,n){og(t),e===null&&Zd(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Nd(a,r);return l?o=null:i!==null&&Nd(a,i)&&(t.flags|=Cl),Kg(e,t),la(e,t,o,n),t.child}function k1(e,t){return e===null&&Zd(t),null}function M1(e,t,n,a){Ac(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),d=er(u,r),g;switch(f){case ve:return hp(t,u),t.type=u=il(u),g=pp(null,t,u,d,a),g;case he:return t.type=u=Wp(u),g=Jg(null,t,u,d,a),g;case De:return t.type=u=qp(u),g=qg(null,t,u,d,a),g;case Xe:{if(t.type!==t.elementType){var y=u.propTypes;y&&Xa(y,d,"prop",yt(u))}return g=Gg(null,t,u,er(u.type,d),a),g}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===p&&(w=" 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."+w))}function L1(e,t,n,a,r){Ac(e,t),t.tag=he;var i;return mr(n)?(i=!0,Ps(t)):i=!1,Yo(t,r),Bg(t,n,a),ip(t,n,a,r),mp(null,t,n,!0,i,r)}function O1(e,t,n,a){Ac(e,t);var r=t.pendingProps,i;{var o=Ho(t,n,!1);i=zo(t,o)}Yo(t,a);var l,u;Rl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=yt(n)||"Unknown";sp[f]||(c("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),sp[f]=!0)}t.mode&on&&Ka.recordLegacyContextWarning(t,null),Na(!0),Ru.current=t,l=Qo(null,t,n,r,i,a),u=Ko(),Na(!1)}if(Co(),t.flags|=bo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=yt(n)||"Unknown";wu[d]||(c("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.",d,d,d),wu[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=yt(n)||"Unknown";wu[g]||(c("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.",g,g,g),wu[g]=!0)}t.tag=he,t.memoizedState=null,t.updateQueue=null;var y=!1;return mr(n)?(y=!0,Ps(t)):y=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pv(t),Fg(t,l),ip(t,n,r,a),mp(null,t,n,!0,y,a)}else{if(t.tag=ve,t.mode&on){On(!0);try{l=Qo(null,t,n,r,i,a),u=Ko()}finally{On(!1)}}return Vn()&&u&&Gd(t),la(null,t,l,a),hp(t,n),t.child}}function hp(e,t){{if(t&&t.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=ai();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),dp[r]||(dp[r]=!0,c("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=yt(t)||"Unknown";Du[o]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Du[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=yt(t)||"Unknown";fp[l]||(c("%s: Function components do not support getDerivedStateFromProps.",l),fp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=yt(t)||"Unknown";cp[u]||(c("%s: Function components do not support contextType.",u),cp[u]=!0)}}}var yp={dehydrated:null,treeContext:null,retryLane:An};function gp(e){return{baseLanes:e,cachePool:E1(),transitions:null}}function A1(e,t){var n=null;return{baseLanes:Qe(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function N1(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return bv(e,hu)}function j1(e,t){return ds(e.childLanes,t)}function tb(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=bt);var r=Ja.current,i=!1,o=(t.flags&bt)!==He;if(o||N1(r,e)?(i=!0,t.flags&=~bt):(e===null||e.memoizedState!==null)&&(r=ZR(r,ug)),r=Wo(r),Si(t,r),e===null){Zd(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return F1(t,u)}var f=a.children,d=a.fallback;if(i){var g=U1(t,f,d,n),y=t.child;return y.memoizedState=gp(n),t.memoizedState=yp,g}else return bp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return B1(e,t,o,a,_,w,n)}if(i){var N=a.fallback,ae=a.children,Me=z1(e,t,ae,N,n),xe=t.child,ut=e.child.memoizedState;return xe.memoizedState=ut===null?gp(n):A1(ut,n),xe.childLanes=j1(e,n),t.memoizedState=yp,Me}else{var nt=a.children,C=H1(e,t,nt,n);return t.memoizedState=null,C}}}function bp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Sp(r,a);return i.return=e,e.child=i,i}function U1(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&ot)===Oe&&i!==null?(l=i,l.childLanes=F,l.pendingProps=o,e.mode&kt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=_i(n,r,a,null)):(l=Sp(o,r),u=_i(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Sp(e,t,n){return nS(e,t,F,null)}function nb(e,t){return lo(e,t)}function H1(e,t,n,a){var r=e.child,i=r.sibling,o=nb(r,{mode:"visible",children:n});if((t.mode&ot)===Oe&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=Ni):l.push(i)}return t.child=o,o}function z1(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&ot)===Oe&&t.child!==o){var d=t.child;f=d,f.childLanes=F,f.pendingProps=u,t.mode&kt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=nb(o,u),f.subtreeFlags=o.subtreeFlags&Hr;var g;return l!==null?g=lo(l,a):(g=_i(a,i,r,null),g.flags|=vn),g.return=t,f.return=t,f.sibling=g,t.child=f,g}function Oc(e,t,n,a){a!==null&&ev(a),$o(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=bp(t,i);return o.flags|=vn,t.memoizedState=null,o}function V1(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Sp(o,i),u=_i(a,i,r,null);return u.flags|=vn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&ot)!==Oe&&$o(t,e.child,null,r),u}function F1(e,t,n){return(e.mode&ot)===Oe?(c("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=$e):zd(t)?e.lanes=Fi:e.lanes=Ca,null}function B1(e,t,n,a,r,i,o){if(n)if(t.flags&jr){t.flags&=~jr;var C=op(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Oc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=bt,null;var j=a.children,x=a.fallback,B=V1(e,t,j,x,o),fe=t.child;return fe.memoizedState=gp(o),t.memoizedState=yp,B}else{if(_R(),(t.mode&ot)===Oe)return Oc(e,t,o,null);if(zd(r)){var l,u,f;{var d=Ix(r);l=d.digest,u=d.message,f=d.stack}var g;u?g=new Error(u):g=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var y=op(g,l,f);return Oc(e,t,o,y)}var w=xa(o,e.childLanes);if(tr||w){var _=Pc();if(_!==null){var N=KT(_,o);if(N!==An&&N!==i.retryLane){i.retryLane=N;var ae=It;ya(e,N),wn(_,e,N,ae)}}Bp();var Me=op(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 Oc(e,t,o,Me)}else if(Ry(r)){t.flags|=bt,t.child=e.child;var xe=dD.bind(null,e);return Wx(r,xe),null}else{LR(t,r,i.treeContext);var ut=a.children,nt=bp(t,ut);return nt.flags|=Ur,nt}}}function ab(e,t,n){e.lanes=Qe(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=Qe(a.lanes,t)),cv(e.return,t,n)}function $1(e,t,n){for(var a=t;a!==null;){if(a.tag===O){var r=a.memoizedState;r!==null&&ab(a,n,e)}else if(a.tag===At)ab(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 P1(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&cc(a)===null&&(n=t),t=t.sibling}return n}function Y1(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!vp[e])if(vp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{c('"%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:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function I1(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function rb(e,t){{var n=tt(e),a=!n&&typeof Te(e)=="function";if(n||a){var r=n?"array":"iterable";return c("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 W1(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(tt(e)){for(var n=0;n<e.length;n++)if(!rb(e[n],n))return}else{var a=Te(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(!rb(i.value,o))return;o++}}else c('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 Tp(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 ib(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;Y1(r),I1(i,r),W1(o,r),la(e,t,o,n);var l=Ja.current,u=bv(l,hu);if(u)l=Sv(l,hu),t.flags|=bt;else{var f=e!==null&&(e.flags&bt)!==He;f&&$1(t,t.child,n),l=Wo(l)}if(Si(t,l),(t.mode&ot)===Oe)t.memoizedState=null;else switch(r){case"forwards":{var d=P1(t.child),g;d===null?(g=t.child,t.child=null):(g=d.sibling,d.sibling=null),Tp(t,!1,g,d,i);break}case"backwards":{var y=null,w=t.child;for(t.child=null;w!==null;){var _=w.alternate;if(_!==null&&cc(_)===null){t.child=w;break}var N=w.sibling;w.sibling=y,y=w,w=N}Tp(t,!0,y,null,i);break}case"together":{Tp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function q1(e,t,n){hv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=$o(t,null,a,n):la(e,t,a,n),t.child}var ob=!1;function G1(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ob||(ob=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Xa(u,i,"prop","Context.Provider")}if(Jy(t,r,l),o!==null){var f=o.value;if(Da(f,l)){if(o.children===i.children&&!Bs())return qr(e,t,n)}else YR(t,r,n)}var d=i.children;return la(e,t,d,n),t.child}var lb=!1;function X1(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(lb||(lb=!0,c("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"&&c("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."),Yo(t,n);var o=pn(a);Rl(t);var l;return Ru.current=t,Na(!0),l=i(o),Na(!1),Co(),t.flags|=bo,la(e,t,l,n),t.child}function _u(){tr=!0}function Ac(e,t){(t.mode&ot)===Oe&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=vn)}function qr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Ug(),Fu(t.lanes),xa(n,t.childLanes)?($R(e,t),t.child):null}function Q1(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|=Ni):i.push(e),n.flags|=vn,n}}function Ep(e,t){var n=e.lanes;return!!xa(n,t)}function K1(e,t,n){switch(t.tag){case re:Zg(t),t.stateNode,Bo();break;case ie:og(t);break;case he:{var a=t.type;mr(a)&&Ps(t);break}case Ue:hv(t,t.stateNode.containerInfo);break;case Fe:{var r=t.memoizedProps.value,i=t.type._context;Jy(t,i,r);break}case Ke:{var o=xa(n,t.childLanes);o&&(t.flags|=gt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case O:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return Si(t,Wo(Ja.current)),t.flags|=bt,null;var f=t.child,d=f.childLanes;if(xa(n,d))return tb(e,t,n);Si(t,Wo(Ja.current));var g=qr(e,t,n);return g!==null?g.sibling:null}else Si(t,Wo(Ja.current));break}case At:{var y=(e.flags&bt)!==He,w=xa(n,t.childLanes);if(y){if(w)return ib(e,t,n);t.flags|=bt}var _=t.memoizedState;if(_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),Si(t,Ja.current),w)break;return null}case Q:case Ze:return t.lanes=F,Qg(e,t,n)}return qr(e,t,n)}function ub(e,t,n){if(t._debugNeedsRemount&&e!==null)return Q1(e,t,Jp(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||Bs()||t.type!==e.type)tr=!0;else{var i=Ep(e,n);if(!i&&(t.flags&bt)===He)return tr=!1,K1(e,t,n);(e.flags&Df)!==He?tr=!0:tr=!1}}else if(tr=!1,Vn()&&ER(t)){var o=t.index,l=CR();Uy(t,l,o)}switch(t.lanes=F,t.tag){case st:return O1(e,t,t.type,n);case Bt:{var u=t.elementType;return M1(e,t,u,n)}case ve:{var f=t.type,d=t.pendingProps,g=t.elementType===f?d:er(f,d);return pp(e,t,f,g,n)}case he:{var y=t.type,w=t.pendingProps,_=t.elementType===y?w:er(y,w);return Jg(e,t,y,_,n)}case re:return D1(e,t,n);case ie:return _1(e,t,n);case ye:return k1(e,t);case O:return tb(e,t,n);case Ue:return q1(e,t,n);case De:{var N=t.type,ae=t.pendingProps,Me=t.elementType===N?ae:er(N,ae);return qg(e,t,N,Me,n)}case oe:return x1(e,t,n);case Wt:return R1(e,t,n);case Ke:return w1(e,t,n);case Fe:return G1(e,t,n);case vt:return X1(e,t,n);case Xe:{var xe=t.type,ut=t.pendingProps,nt=er(xe,ut);if(t.type!==t.elementType){var C=xe.propTypes;C&&Xa(C,nt,"prop",yt(xe))}return nt=er(xe.type,nt),Gg(e,t,xe,nt,n)}case W:return Xg(e,t,t.type,t.pendingProps,n);case We:{var j=t.type,x=t.pendingProps,B=t.elementType===j?x:er(j,x);return L1(e,t,j,B,n)}case At:return ib(e,t,n);case Re:break;case Q:return Qg(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 Jo(e){e.flags|=gt}function sb(e){e.flags|=ji,e.flags|=_f}var cb,Cp,fb,db;cb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ie||r.tag===ye)bx(e,r.stateNode);else if(r.tag!==Ue){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}},Cp=function(e,t){},fb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=yv(),u=Tx(o,n,i,a,r,l);t.updateQueue=u,u&&Jo(t)}},db=function(e,t,n,a){n!==a&&Jo(t)};function ku(e,t){if(!Vn())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 Bn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=F,a=He;if(t){if((e.mode&kt)!==Oe){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=Qe(n,Qe(f.lanes,f.childLanes)),a|=f.subtreeFlags&Hr,a|=f.flags&Hr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=Qe(n,Qe(d.lanes,d.childLanes)),a|=d.subtreeFlags&Hr,a|=d.flags&Hr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&kt)!==Oe){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=Qe(n,Qe(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=Qe(n,Qe(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 J1(e,t,n){if(UR()&&(t.mode&ot)!==Oe&&(t.flags&bt)===He)return Py(t),Bo(),t.flags|=jr|is|oa,!1;var a=Gs(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(NR(t),Bn(t),(t.mode&kt)!==Oe){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Bo(),(t.flags&bt)===He&&(t.memoizedState=null),t.flags|=gt,Bn(t),(t.mode&kt)!==Oe){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Yy(),!0}function vb(e,t,n){var a=t.pendingProps;switch(Xd(t),t.tag){case st:case Bt:case W:case ve:case De:case oe:case Wt:case Ke:case vt:case Xe:return Bn(t),null;case he:{var r=t.type;return mr(r)&&$s(t),Bn(t),null}case re:{var i=t.stateNode;if(Io(t),Id(t),Ev(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=Gs(t);if(o)Jo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&jr)!==He)&&(t.flags|=So,Yy())}}return Cp(e,t),Bn(t),null}case ie:{gv(t);var u=ig(),f=t.type;if(e!==null&&t.stateNode!=null)fb(e,t,f,a,u),e.ref!==t.ref&&sb(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 Bn(t),null}var d=yv(),g=Gs(t);if(g)OR(t,u,d)&&Jo(t);else{var y=gx(f,a,u,d,t);cb(y,t,!1,!1),t.stateNode=y,Sx(y,f,a,u)&&Jo(t)}t.ref!==null&&sb(t)}return Bn(t),null}case ye:{var w=a;if(e&&t.stateNode!=null){var _=e.memoizedProps;db(e,t,_,w)}else{if(typeof w!="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 N=ig(),ae=yv(),Me=Gs(t);Me?AR(t)&&Jo(t):t.stateNode=Ex(w,N,ae,t)}return Bn(t),null}case O:{qo(t);var xe=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ut=J1(e,t,xe);if(!ut)return t.flags&oa?t:null}if((t.flags&bt)!==He)return t.lanes=n,(t.mode&kt)!==Oe&&qv(t),t;var nt=xe!==null,C=e!==null&&e.memoizedState!==null;if(nt!==C&&nt){var j=t.child;if(j.flags|=Ui,(t.mode&ot)!==Oe){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||bv(Ja.current,ug)?Zw():Bp()}}var B=t.updateQueue;if(B!==null&&(t.flags|=gt),Bn(t),(t.mode&kt)!==Oe&&nt){var fe=t.child;fe!==null&&(t.treeBaseDuration-=fe.treeBaseDuration)}return null}case Ue:return Io(t),Cp(e,t),e===null&&mR(t.stateNode.containerInfo),Bn(t),null;case Fe:var le=t.type._context;return sv(le,t),Bn(t),null;case We:{var ze=t.type;return mr(ze)&&$s(t),Bn(t),null}case At:{qo(t);var Ie=t.memoizedState;if(Ie===null)return Bn(t),null;var Lt=(t.flags&bt)!==He,pt=Ie.rendering;if(pt===null)if(Lt)ku(Ie,!1);else{var cn=tD()&&(e===null||(e.flags&bt)===He);if(!cn)for(var mt=t.child;mt!==null;){var ln=cc(mt);if(ln!==null){Lt=!0,t.flags|=bt,ku(Ie,!1);var Jn=ln.updateQueue;return Jn!==null&&(t.updateQueue=Jn,t.flags|=gt),t.subtreeFlags=He,PR(t,n),Si(t,Sv(Ja.current,hu)),t.child}mt=mt.sibling}Ie.tail!==null&&Ln()>Nb()&&(t.flags|=bt,Lt=!0,ku(Ie,!1),t.lanes=dh)}else{if(!Lt){var Wn=cc(pt);if(Wn!==null){t.flags|=bt,Lt=!0;var Ma=Wn.updateQueue;if(Ma!==null&&(t.updateQueue=Ma,t.flags|=gt),ku(Ie,!0),Ie.tail===null&&Ie.tailMode==="hidden"&&!pt.alternate&&!Vn())return Bn(t),null}else Ln()*2-Ie.renderingStartTime>Nb()&&n!==Ca&&(t.flags|=bt,Lt=!0,ku(Ie,!1),t.lanes=dh)}if(Ie.isBackwards)pt.sibling=t.child,t.child=pt;else{var ca=Ie.last;ca!==null?ca.sibling=pt:t.child=pt,Ie.last=pt}}if(Ie.tail!==null){var fa=Ie.tail;Ie.rendering=fa,Ie.tail=fa.sibling,Ie.renderingStartTime=Ln(),fa.sibling=null;var Zn=Ja.current;return Lt?Zn=Sv(Zn,hu):Zn=Wo(Zn),Si(t,Zn),fa}return Bn(t),null}case Re:break;case Q:case Ze:{Fp(t);var Jr=t.memoizedState,ol=Jr!==null;if(e!==null){var Iu=e.memoizedState,Cr=Iu!==null;Cr!==ol&&!Ct&&(t.flags|=Ui)}return!ol||(t.mode&ot)===Oe?Bn(t):xa(Er,Ca)&&(Bn(t),t.subtreeFlags&(vn|gt)&&(t.flags|=Ui)),null}case te:return null;case pe: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 Z1(e,t,n){switch(Xd(t),t.tag){case he:{var a=t.type;mr(a)&&$s(t);var r=t.flags;return r&oa?(t.flags=r&~oa|bt,(t.mode&kt)!==Oe&&qv(t),t):null}case re:{t.stateNode,Io(t),Id(t),Ev();var i=t.flags;return(i&oa)!==He&&(i&bt)===He?(t.flags=i&~oa|bt,t):null}case ie:return gv(t),null;case O:{qo(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.");Bo()}var l=t.flags;return l&oa?(t.flags=l&~oa|bt,(t.mode&kt)!==Oe&&qv(t),t):null}case At:return qo(t),null;case Ue:return Io(t),null;case Fe:var u=t.type._context;return sv(u,t),null;case Q:case Ze:return Fp(t),null;case te:return null;default:return null}}function pb(e,t,n){switch(Xd(t),t.tag){case he:{var a=t.type.childContextTypes;a!=null&&$s(t);break}case re:{t.stateNode,Io(t),Id(t),Ev();break}case ie:{gv(t);break}case Ue:Io(t);break;case O:qo(t);break;case At:qo(t);break;case Fe:var r=t.type._context;sv(r,t);break;case Q:case Ze:Fp(t);break}}var mb=null;mb=new Set;var Nc=!1,$n=!1,ew=typeof WeakSet=="function"?WeakSet:Set,be=null,Zo=null,el=null;function tw(e){xf(null,function(){throw e}),Rf()}var nw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&kt)try{Sr(),t.componentWillUnmount()}finally{br(e)}else t.componentWillUnmount()};function hb(e,t){try{Ci(Sn,e)}catch(n){Ft(e,t,n)}}function xp(e,t,n){try{nw(e,n)}catch(a){Ft(e,t,a)}}function aw(e,t,n){try{n.componentDidMount()}catch(a){Ft(e,t,a)}}function yb(e,t){try{bb(e)}catch(n){Ft(e,t,n)}}function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ut&&xt&&e.mode&kt)try{Sr(),a=n(null)}finally{br(e)}else a=n(null)}catch(r){Ft(e,t,r)}typeof a=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){Ft(e,t,a)}}var gb=!1;function rw(e,t){hx(e.containerInfo),be=t,iw();var n=gb;return gb=!1,n}function iw(){for(;be!==null;){var e=be,t=e.child;(e.subtreeFlags&Lf)!==He&&t!==null?(t.return=e,be=t):ow()}}function ow(){for(;be!==null;){var e=be;Kt(e);try{lw(e)}catch(n){Ft(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&So)!==He){switch(Kt(e),e.tag){case ve:case De:case W:break;case he:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!no&&(i.props!==e.memoizedProps&&c("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.",Ge(e)||"instance"),i.state!==e.memoizedState&&c("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.",Ge(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:er(e.type,a),r);{var l=mb;o===void 0&&!l.has(e.type)&&(l.add(e.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ge(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case re:{{var u=e.stateNode;Bx(u.containerInfo)}break}case ie:case ye:case Ue:case We: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 nr(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&Fn)!==ga?ET(t):(e&Sn)!==ga&&lh(t),(e&hr)!==ga&&$u(!0),jc(t,n,l),(e&hr)!==ga&&$u(!1),(e&Fn)!==ga?CT():(e&Sn)!==ga&&uh())}o=o.next}while(o!==i)}}function Ci(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&Fn)!==ga?ST(t):(e&Sn)!==ga&&xT(t);var o=i.create;(e&hr)!==ga&&$u(!0),i.destroy=o(),(e&hr)!==ga&&$u(!1),(e&Fn)!==ga?TT():(e&Sn)!==ga&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Sn)!==He?u="useLayoutEffect":(i.tag&hr)!==He?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,c("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function uw(e,t){if((t.flags&gt)!==He)switch(t.tag){case Ke:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ng(),l=t.alternate===null?"mount":"update";Ag()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case re:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Ke:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&xl)!==He)switch(n.tag){case ve:case De:case W:{if(!$n)if(n.mode&kt)try{Sr(),Ci(Sn|bn,n)}finally{br(n)}else Ci(Sn|bn,n);break}case he:{var r=n.stateNode;if(n.flags&gt&&!$n)if(t===null)if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("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.",Ge(n)||"instance")),n.mode&kt)try{Sr(),r.componentDidMount()}finally{br(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:er(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("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.",Ge(n)||"instance")),n.mode&kt)try{Sr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{br(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("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.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("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.",Ge(n)||"instance")),rg(n,l,r));break}case re:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ie:f=n.child.stateNode;break;case he:f=n.child.stateNode;break}rg(n,u,f)}break}case ie:{var d=n.stateNode;if(t===null&&n.flags&gt){var g=n.type,y=n.memoizedProps;Dx(d,g,y)}break}case ye:break;case Ue:break;case Ke:{{var w=n.memoizedProps,_=w.onCommit,N=w.onRender,ae=n.stateNode.effectDuration,Me=Ng(),xe=t===null?"mount":"update";Ag()&&(xe="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,xe,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Me);{typeof _=="function"&&_(n.memoizedProps.id,xe,ae,Me),oD(n);var ut=n.return;e:for(;ut!==null;){switch(ut.tag){case re:var nt=ut.stateNode;nt.effectDuration+=ae;break e;case Ke:var C=ut.stateNode;C.effectDuration+=ae;break e}ut=ut.return}}}break}case O:{yw(e,n);break}case At:case We:case Re:case Q:case Ze:case pe: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.")}$n||n.flags&ji&&bb(n)}function cw(e){switch(e.tag){case ve:case De:case W:{if(e.mode&kt)try{Sr(),hb(e,e.return)}finally{br(e)}else hb(e,e.return);break}case he:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),yb(e,e.return);break}case ie:{yb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===ie){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Vx(a.stateNode,a.memoizedProps)}catch(o){Ft(e,e.return,o)}}}else if(a.tag===ye){if(n===null)try{var i=a.stateNode;t?zx(i):Fx(i,a.memoizedProps)}catch(o){Ft(e,e.return,o)}}else if(!((a.tag===Q||a.tag===Ze)&&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 bb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ie:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&kt)try{Sr(),r=t(a)}finally{br(e)}else r=t(a);typeof r=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else t.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ge(e)),t.current=a}}function dw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Sb(e){var t=e.alternate;t!==null&&(e.alternate=null,Sb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ie){var n=e.stateNode;n!==null&&gR(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 vw(e){for(var t=e.return;t!==null;){if(Tb(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 Tb(e){return e.tag===ie||e.tag===re||e.tag===Ue}function Eb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Tb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ie&&t.tag!==ye&&t.tag!==Et;){if(t.flags&vn||t.child===null||t.tag===Ue)continue e;t.child.return=t,t=t.child}if(!(t.flags&vn))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case ie:{var n=t.stateNode;t.flags&Cl&&(xy(n),t.flags&=~Cl);var a=Eb(e);wp(e,a,n);break}case re:case Ue:{var r=t.stateNode.containerInfo,i=Eb(e);Rp(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 Rp(e,t,n){var a=e.tag,r=a===ie||a===ye;if(r){var i=e.stateNode;t?Ax(n,i,t):Lx(n,i)}else if(a!==Ue){var o=e.child;if(o!==null){Rp(o,t,n);for(var l=o.sibling;l!==null;)Rp(l,t,n),l=l.sibling}}}function wp(e,t,n){var a=e.tag,r=a===ie||a===ye;if(r){var i=e.stateNode;t?Ox(n,i,t):Mx(n,i)}else if(a!==Ue){var o=e.child;if(o!==null){wp(o,t,n);for(var l=o.sibling;l!==null;)wp(l,t,n),l=l.sibling}}}var Pn=null,ar=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ie:{Pn=a.stateNode,ar=!1;break e}case re:{Pn=a.stateNode.containerInfo,ar=!0;break e}case Ue:{Pn=a.stateNode.containerInfo,ar=!0;break e}}a=a.return}if(Pn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Cb(e,t,n),Pn=null,ar=!1}dw(n)}function xi(e,t,n){for(var a=n.child;a!==null;)Cb(e,t,a),a=a.sibling}function Cb(e,t,n){switch(hT(n),n.tag){case ie:$n||tl(n,t);case ye:{{var a=Pn,r=ar;Pn=null,xi(e,t,n),Pn=a,ar=r,Pn!==null&&(ar?jx(Pn,n.stateNode):Nx(Pn,n.stateNode))}return}case Et:{Pn!==null&&(ar?Ux(Pn,n.stateNode):Hd(Pn,n.stateNode));return}case Ue:{{var i=Pn,o=ar;Pn=n.stateNode.containerInfo,ar=!0,xi(e,t,n),Pn=i,ar=o}return}case ve:case De:case Xe:case W:{if(!$n){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,d=f;do{var g=d,y=g.destroy,w=g.tag;y!==void 0&&((w&hr)!==ga?jc(n,t,y):(w&Sn)!==ga&&(lh(n),n.mode&kt?(Sr(),jc(n,t,y),br(n)):jc(n,t,y),uh())),d=d.next}while(d!==f)}}}xi(e,t,n);return}case he:{if(!$n){tl(n,t);var _=n.stateNode;typeof _.componentWillUnmount=="function"&&xp(n,t,_)}xi(e,t,n);return}case Re:{xi(e,t,n);return}case Q:{if(n.mode&ot){var N=$n;$n=N||n.memoizedState!==null,xi(e,t,n),$n=N}else xi(e,t,n);break}default:{xi(e,t,n);return}}}function hw(e){e.memoizedState}function yw(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&&tR(i)}}}}function xb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ew),t.forEach(function(a){var r=vD.bind(null,e,a);if(!n.has(a)){if(n.add(a),qa)if(Zo!==null&&el!==null)Bu(el,Zo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function gw(e,t,n){Zo=n,el=e,Kt(t),Rb(t,e),Kt(t),Zo=null,el=null}function rr(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{mw(e,t,i)}catch(u){Ft(i,t,u)}}var o=Gu();if(t.subtreeFlags&Of)for(var l=t.child;l!==null;)Kt(l),Rb(l,e),l=l.sibling;Kt(o)}function Rb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ve:case De:case Xe:case W:{if(rr(t,e),Tr(e),r&gt){try{nr(hr|bn,e,e.return),Ci(hr|bn,e)}catch(ze){Ft(e,e.return,ze)}if(e.mode&kt){try{Sr(),nr(Sn|bn,e,e.return)}catch(ze){Ft(e,e.return,ze)}br(e)}else try{nr(Sn|bn,e,e.return)}catch(ze){Ft(e,e.return,ze)}}return}case he:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);return}case ie:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);{if(e.flags&Cl){var i=e.stateNode;try{xy(i)}catch(ze){Ft(e,e.return,ze)}}if(r&gt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{_x(o,d,f,u,l,e)}catch(ze){Ft(e,e.return,ze)}}}}return}case ye:{if(rr(t,e),Tr(e),r&gt){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 g=e.stateNode,y=e.memoizedProps,w=a!==null?a.memoizedProps:y;try{kx(g,w,y)}catch(ze){Ft(e,e.return,ze)}}return}case re:{if(rr(t,e),Tr(e),r&gt&&a!==null){var _=a.memoizedState;if(_.isDehydrated)try{eR(t.containerInfo)}catch(ze){Ft(e,e.return,ze)}}return}case Ue:{rr(t,e),Tr(e);return}case O:{rr(t,e),Tr(e);var N=e.child;if(N.flags&Ui){var ae=N.stateNode,Me=N.memoizedState,xe=Me!==null;if(ae.isHidden=xe,xe){var ut=N.alternate!==null&&N.alternate.memoizedState!==null;ut||Jw()}}if(r&gt){try{hw(e)}catch(ze){Ft(e,e.return,ze)}xb(e)}return}case Q:{var nt=a!==null&&a.memoizedState!==null;if(e.mode&ot){var C=$n;$n=C||nt,rr(t,e),$n=C}else rr(t,e);if(Tr(e),r&Ui){var j=e.stateNode,x=e.memoizedState,B=x!==null,fe=e;if(j.isHidden=B,B&&!nt&&(fe.mode&ot)!==Oe){be=fe;for(var le=fe.child;le!==null;)be=le,Sw(le),le=le.sibling}fw(fe,B)}return}case At:{rr(t,e),Tr(e),r&gt&&xb(e);return}case Re:return;default:{rr(t,e),Tr(e);return}}}function Tr(e){var t=e.flags;if(t&vn){try{pw(e)}catch(n){Ft(e,e.return,n)}e.flags&=~vn}t&Ur&&(e.flags&=~Ur)}function bw(e,t,n){Zo=n,el=t,be=e,wb(e,t,n),Zo=null,el=null}function wb(e,t,n){for(var a=(e.mode&ot)!==Oe;be!==null;){var r=be,i=r.child;if(r.tag===Q&&a){var o=r.memoizedState!==null,l=o||Nc;if(l){Dp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,d=f||$n,g=Nc,y=$n;Nc=l,$n=d,$n&&!y&&(be=r,Tw(r));for(var w=i;w!==null;)be=w,wb(w,t,n),w=w.sibling;be=r,Nc=g,$n=y,Dp(e,t,n);continue}}(r.subtreeFlags&xl)!==He&&i!==null?(i.return=r,be=i):Dp(e,t,n)}}function Dp(e,t,n){for(;be!==null;){var a=be;if((a.flags&xl)!==He){var r=a.alternate;Kt(a);try{sw(t,r,a,n)}catch(o){Ft(a,a.return,o)}Mn()}if(a===e){be=null;return}var i=a.sibling;if(i!==null){i.return=a.return,be=i;return}be=a.return}}function Sw(e){for(;be!==null;){var t=be,n=t.child;switch(t.tag){case ve:case De:case Xe:case W:{if(t.mode&kt)try{Sr(),nr(Sn,t,t.return)}finally{br(t)}else nr(Sn,t,t.return);break}case he:{tl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xp(t,t.return,a);break}case ie:{tl(t,t.return);break}case Q:{var r=t.memoizedState!==null;if(r){Db(e);continue}break}}n!==null?(n.return=t,be=n):Db(e)}}function Db(e){for(;be!==null;){var t=be;if(t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function Tw(e){for(;be!==null;){var t=be,n=t.child;if(t.tag===Q){var a=t.memoizedState!==null;if(a){_b(e);continue}}n!==null?(n.return=t,be=n):_b(e)}}function _b(e){for(;be!==null;){var t=be;Kt(t);try{cw(t)}catch(a){Ft(t,t.return,a)}if(Mn(),t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function Ew(e,t,n,a){be=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;be!==null;){var r=be,i=r.child;(r.subtreeFlags&To)!==He&&i!==null?(i.return=r,be=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;be!==null;){var r=be;if((r.flags&ii)!==He){Kt(r);try{Rw(t,r,n,a)}catch(o){Ft(r,r.return,o)}Mn()}if(r===e){be=null;return}var i=r.sibling;if(i!==null){i.return=r.return,be=i;return}be=r.return}}function Rw(e,t,n,a){switch(t.tag){case ve:case De:case W:{if(t.mode&kt){Wv();try{Ci(Fn|bn,t)}finally{Iv(t)}}else Ci(Fn|bn,t);break}}}function ww(e){be=e,Dw()}function Dw(){for(;be!==null;){var e=be,t=e.child;if((be.flags&Ni)!==He){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];be=r,Mw(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)}}}be=e}}(e.subtreeFlags&To)!==He&&t!==null?(t.return=e,be=t):_w()}}function _w(){for(;be!==null;){var e=be;(e.flags&ii)!==He&&(Kt(e),kw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function kw(e){switch(e.tag){case ve:case De:case W:{e.mode&kt?(Wv(),nr(Fn|bn,e,e.return),Iv(e)):nr(Fn|bn,e,e.return);break}}}function Mw(e,t){for(;be!==null;){var n=be;Kt(n),Ow(n,t),Mn();var a=n.child;a!==null?(a.return=n,be=a):Lw(e)}}function Lw(e){for(;be!==null;){var t=be,n=t.sibling,a=t.return;if(Sb(t),t===e){be=null;return}if(n!==null){n.return=a,be=n;return}be=a}}function Ow(e,t){switch(e.tag){case ve:case De:case W:{e.mode&kt?(Wv(),nr(Fn,e,t),Iv(e)):nr(Fn,e,t);break}}}function Aw(e){switch(e.tag){case ve:case De:case W:{try{Ci(Sn|bn,e)}catch(n){Ft(e,e.return,n)}break}case he:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Ft(e,e.return,n)}break}}}function Nw(e){switch(e.tag){case ve:case De:case W:{try{Ci(Fn|bn,e)}catch(t){Ft(e,e.return,t)}break}}}function jw(e){switch(e.tag){case ve:case De:case W:{try{nr(Sn|bn,e,e.return)}catch(n){Ft(e,e.return,n)}break}case he:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&xp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case ve:case De:case W:try{nr(Fn|bn,e,e.return)}catch(t){Ft(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Mu=Symbol.for;Mu("selector.component"),Mu("selector.has_pseudo_class"),Mu("selector.role"),Mu("selector.test_id"),Mu("selector.text")}var Hw=[];function zw(){Hw.forEach(function(e){return e()})}var Vw=ee.ReactCurrentActQueue;function Fw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function kb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Vw.current!==null&&c("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,_p=ee.ReactCurrentDispatcher,kp=ee.ReactCurrentOwner,Yn=ee.ReactCurrentBatchConfig,ir=ee.ReactCurrentActQueue,Cn=0,Mb=1,In=2,Fa=4,Gr=0,Lu=1,ao=2,Uc=3,Ou=4,Lb=5,Mp=6,lt=Cn,ua=null,en=null,xn=F,Er=F,Lp=pi(F),Rn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,Op=0,Ob=500,Ab=1/0,$w=500,Xr=null;function Uu(){Ab=Ln()+$w}function Nb(){return Ab}var Vc=!1,Ap=null,nl=null,ro=!1,Ri=null,Hu=F,Np=[],jp=null,Pw=50,zu=0,Up=null,Hp=!1,Fc=!1,Yw=50,al=0,Bc=null,Vu=It,$c=F,jb=!1;function Pc(){return ua}function sa(){return(lt&(In|Fa))!==Cn?Ln():(Vu!==It||(Vu=Ln()),Vu)}function wi(e){var t=e.mode;if((t&ot)===Oe)return $e;if((lt&In)!==Cn&&xn!==F)return Ll(xn);var n=VR()!==zR;if(n){if(Yn.transition!==null){var a=Yn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return $c===An&&($c=hh()),$c}var r=Ga();if(r!==An)return r;var i=Cx();return i}function Iw(e){var t=e.mode;return(t&ot)===Oe?$e:qT()}function wn(e,t,n,a){mD(),jb&&c("useInsertionEffect must not schedule updates."),Hp&&(Fc=!0),Ol(e,n,a),(lt&In)!==F&&e===ua?gD(t):(qa&&bh(e,t,n),bD(t),e===ua&&((lt&In)===Cn&&(Nu=Qe(Nu,n)),Rn===Ou&&Di(e,xn)),Sa(e,a),n===$e&&lt===Cn&&(t.mode&ot)===Oe&&!ir.isBatchingLegacy&&(Uu(),jy()))}function Ww(e,t,n){var a=e.current;a.lanes=t,Ol(e,t,n),Sa(e,n)}function qw(e){return(lt&In)!==Cn}function Sa(e,t){var n=e.callbackNode;BT(e,t);var a=cs(e,e===ua?xn:F);if(a===F){n!==null&&Kb(n),e.callbackNode=null,e.callbackPriority=An;return}var r=$i(a),i=e.callbackPriority;if(i===r&&!(ir.current!==null&&n!==Yp)){n==null&&i!==$e&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&Kb(n);var o;if(r===$e)e.tag===mi?(ir.isBatchingLegacy!==null&&(ir.didScheduleLegacyUpdate=!0),TR(zb.bind(null,e))):Ny(zb.bind(null,e)),ir.current!==null?ir.current.push(hi):Rx(function(){(lt&(In|Fa))===Cn&&hi()}),o=null;else{var l;switch(Eh(a)){case Ra:l=os;break;case Vr:l=Af;break;case Fr:l=Vi;break;case vs:l=Nf;break;default:l=Vi;break}o=Ip(l,Ub.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Ub(e,t){if(f1(),Vu=It,$c=F,(lt&(In|Fa))!==Cn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Kr();if(a&&e.callbackNode!==n)return null;var r=cs(e,e===ua?xn:F);if(r===F)return null;var i=!fs(e,r)&&!WT(e,r)&&!t,o=i?aD(e,r):Ic(e,r);if(o!==Gr){if(o===ao){var l=nd(e);l!==F&&(r=l,o=zp(e,l))}if(o===Lu){var u=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),u}if(o===Mp)Di(e,r);else{var f=!fs(e,r),d=e.current.alternate;if(f&&!Xw(d)){if(o=Ic(e,r),o===ao){var g=nd(e);g!==F&&(r=g,o=zp(e,g))}if(o===Lu){var y=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),y}}e.finishedWork=d,e.finishedLanes=r,Gw(e,o,r)}}return Sa(e,Ln()),e.callbackNode===n?Ub.bind(null,e):null}function zp(e,t){var n=ju;if(ps(e)){var a=io(e,t);a.flags|=jr,pR(e.containerInfo)}var r=Ic(e,t);if(r!==ao){var i=ba;ba=n,i!==null&&Hb(i)}return r}function Hb(e){ba===null?ba=e:ba.push.apply(ba,e)}function Gw(e,t,n){switch(t){case Gr:case Lu:throw new Error("Root did not complete. This is a bug in React.");case ao:{oo(e,ba,Xr);break}case Uc:{if(Di(e,n),ph(n)&&!Jb()){var a=Op+Ob-Ln();if(a>10){var r=cs(e,F);if(r!==F)break;var i=e.suspendedLanes;if(!Do(i,n)){sa(),gh(e,i);break}e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),a);break}}oo(e,ba,Xr);break}case Ou:{if(Di(e,n),IT(n))break;if(!Jb()){var o=VT(e,n),l=o,u=Ln()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),f);break}}oo(e,ba,Xr);break}case Lb:{oo(e,ba,Xr);break}default:throw new Error("Unknown root exit status.")}}function Xw(e){for(var t=e;;){if(t.flags&wf){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(!Da(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&wf&&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 Di(e,t){t=ds(t,zc),t=ds(t,Nu),XT(e,t)}function zb(e){if(d1(),(lt&(In|Fa))!==Cn)throw new Error("Should not already be working.");Kr();var t=cs(e,F);if(!xa(t,$e))return Sa(e,Ln()),null;var n=Ic(e,t);if(e.tag!==mi&&n===ao){var a=nd(e);a!==F&&(t=a,n=zp(e,a))}if(n===Lu){var r=Au;throw io(e,F),Di(e,t),Sa(e,Ln()),r}if(n===Mp)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,oo(e,ba,Xr),Sa(e,Ln()),null}function Qw(e,t){t!==F&&(od(e,Qe(t,$e)),Sa(e,Ln()),(lt&(In|Fa))===Cn&&(Uu(),hi()))}function Vp(e,t){var n=lt;lt|=Mb;try{return e(t)}finally{lt=n,lt===Cn&&!ir.isBatchingLegacy&&(Uu(),jy())}}function Kw(e,t,n,a,r){var i=Ga(),o=Yn.transition;try{return Yn.transition=null,Nn(Ra),e(t,n,a,r)}finally{Nn(i),Yn.transition=o,lt===Cn&&Uu()}}function Qr(e){Ri!==null&&Ri.tag===mi&&(lt&(In|Fa))===Cn&&Kr();var t=lt;lt|=Mb;var n=Yn.transition,a=Ga();try{return Yn.transition=null,Nn(Ra),e?e():void 0}finally{Nn(a),Yn.transition=n,lt=t,(lt&(In|Fa))===Cn&&hi()}}function Vb(){return(lt&(In|Fa))!==Cn}function Yc(e,t){Qn(Lp,Er,e),Er=Qe(Er,t)}function Fp(e){Er=Lp.current,Xn(Lp,e)}function io(e,t){e.finishedWork=null,e.finishedLanes=F;var n=e.timeoutHandle;if(n!==Ud&&(e.timeoutHandle=Ud,xx(n)),en!==null)for(var a=en.return;a!==null;){var r=a.alternate;pb(r,a),a=a.return}ua=e;var i=lo(e.current,null);return en=i,xn=Er=t,Rn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,WR(),Ka.discardPendingWarnings(),i}function Fb(e,t){do{var n=en;try{if(ec(),cg(),Mn(),kp.current=null,n===null||n.return===null){Rn=Lu,Au=t,en=null;return}if(Ut&&n.mode&kt&&kc(n,!0),un)if(Co(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;DT(n,a,xn)}else wT(n,t,xn);T1(e,n.return,n,t,xn),Yb(n)}catch(r){t=r,en===n&&n!==null?(n=n.return,en=n):n=en;continue}return}while(!0)}function Bb(){var e=_p.current;return _p.current=xc,e===null?xc:e}function $b(e){_p.current=e}function Jw(){Op=Ln()}function Fu(e){Hc=Qe(e,Hc)}function Zw(){Rn===Gr&&(Rn=Uc)}function Bp(){(Rn===Gr||Rn===Uc||Rn===ao)&&(Rn=Ou),ua!==null&&(ad(Hc)||ad(Nu))&&Di(ua,xn)}function eD(e){Rn!==Ou&&(Rn=ao),ju===null?ju=[e]:ju.push(e)}function tD(){return Rn===Gr}function Ic(e,t){var n=lt;lt|=In;var a=Bb();if(ua!==e||xn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,xn),r.clear()),Sh(e,t)}Xr=Th(),io(e,t)}sh(t);do try{nD();break}catch(i){Fb(e,i)}while(!0);if(ec(),lt=n,$b(a),en!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ch(),ua=null,xn=F,Rn}function nD(){for(;en!==null;)Pb(en)}function aD(e,t){var n=lt;lt|=In;var a=Bb();if(ua!==e||xn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,xn),r.clear()),Sh(e,t)}Xr=Th(),Uu(),io(e,t)}sh(t);do try{rD();break}catch(i){Fb(e,i)}while(!0);return ec(),$b(a),lt=n,en!==null?(OT(),Gr):(ch(),ua=null,xn=F,Rn)}function rD(){for(;en!==null&&!oT();)Pb(en)}function Pb(e){var t=e.alternate;Kt(e);var n;(e.mode&kt)!==Oe?(Yv(e),n=$p(t,e,Er),kc(e,!0)):n=$p(t,e,Er),Mn(),e.memoizedProps=e.pendingProps,n===null?Yb(e):en=n,kp.current=null}function Yb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&is)===He){Kt(t);var r=void 0;if((t.mode&kt)===Oe?r=vb(n,t,Er):(Yv(t),r=vb(n,t,Er),kc(t,!1)),Mn(),r!==null){en=r;return}}else{var i=Z1(n,t);if(i!==null){i.flags&=eT,en=i;return}if((t.mode&kt)!==Oe){kc(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|=is,a.subtreeFlags=He,a.deletions=null;else{Rn=Mp,en=null;return}}var u=t.sibling;if(u!==null){en=u;return}t=a,en=t}while(t!==null);Rn===Gr&&(Rn=Lb)}function oo(e,t,n){var a=Ga(),r=Yn.transition;try{Yn.transition=null,Nn(Ra),iD(e,t,n,a)}finally{Yn.transition=r,Nn(a)}return null}function iD(e,t,n,a){do Kr();while(Ri!==null);if(hD(),(lt&(In|Fa))!==Cn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(bT(i),r===null)return oh(),null;if(i===F&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=F,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=Qe(r.lanes,r.childLanes);QT(e,o),e===ua&&(ua=null,en=null,xn=F),((r.subtreeFlags&To)!==He||(r.flags&To)!==He)&&(ro||(ro=!0,jp=n,Ip(Vi,function(){return Kr(),null})));var l=(r.subtreeFlags&(Lf|Of|xl|To))!==He,u=(r.flags&(Lf|Of|xl|To))!==He;if(l||u){var f=Yn.transition;Yn.transition=null;var d=Ga();Nn(Ra);var g=lt;lt|=Fa,kp.current=null,rw(e,r),jg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_T(i),bw(r,e,i),kT(),lT(),lt=g,Nn(d),Yn.transition=f}else e.current=r,jg();var y=ro;if(ro?(ro=!1,Ri=e,Hu=i):(al=0,Bc=null),o=e.pendingLanes,o===F&&(nl=null),y||Gb(e.current,!1),pT(r.stateNode,a),qa&&e.memoizedUpdaters.clear(),zw(),Sa(e,Ln()),t!==null)for(var w=e.onRecoverableError,_=0;_<t.length;_++){var N=t[_],ae=N.stack,Me=N.digest;w(N.value,{componentStack:ae,digest:Me})}if(Vc){Vc=!1;var xe=Ap;throw Ap=null,xe}return xa(Hu,$e)&&e.tag!==mi&&Kr(),o=e.pendingLanes,xa(o,$e)?(c1(),e===Up?zu++:(zu=0,Up=e)):zu=0,hi(),oh(),null}function Kr(){if(Ri!==null){var e=Eh(Hu),t=eE(Fr,e),n=Yn.transition,a=Ga();try{return Yn.transition=null,Nn(t),lD()}finally{Nn(a),Yn.transition=n}}return!1}function oD(e){Np.push(e),ro||(ro=!0,Ip(Vi,function(){return Kr(),null}))}function lD(){if(Ri===null)return!1;var e=jp;jp=null;var t=Ri,n=Hu;if(Ri=null,Hu=F,(lt&(In|Fa))!==Cn)throw new Error("Cannot flush passive effects while already rendering.");Hp=!0,Fc=!1,MT(n);var a=lt;lt|=Fa,ww(t.current),Ew(t,t.current,n,e);{var r=Np;Np=[];for(var i=0;i<r.length;i++){var o=r[i];uw(t,o)}}LT(),Gb(t.current,!0),lt=a,hi(),Fc?t===Bc?al++:(al=0,Bc=t):al=0,Hp=!1,Fc=!1,mT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Ib(e){return nl!==null&&nl.has(e)}function uD(e){nl===null?nl=new Set([e]):nl.add(e)}function sD(e){Vc||(Vc=!0,Ap=e)}var cD=sD;function Wb(e,t,n){var a=to(n,t),r=Pg(e,a,$e),i=gi(e,r,$e),o=sa();i!==null&&(Ol(i,$e,o),Sa(i,o))}function Ft(e,t,n){if(tw(n),$u(!1),e.tag===re){Wb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===re){Wb(a,e,n);return}else if(a.tag===he){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Ib(i)){var o=to(n,e),l=up(a,o,$e),u=gi(a,l,$e),f=sa();u!==null&&(Ol(u,$e,f),Sa(u,f));return}}a=a.return}c(`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 fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=sa();gh(e,n),SD(e),ua===e&&Do(xn,n)&&(Rn===Ou||Rn===Uc&&ph(xn)&&Ln()-Op<Ob?io(e,F):zc=Qe(zc,n)),Sa(e,r)}function qb(e,t){t===An&&(t=Iw(e));var n=sa(),a=ya(e,t);a!==null&&(Ol(a,t,n),Sa(a,n))}function dD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),qb(e,n)}function vD(e,t){var n=An,a;switch(e.tag){case O:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case At: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),qb(e,n)}function pD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function mD(){if(zu>Pw)throw zu=0,Up=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.");al>Yw&&(al=0,Bc=null,c("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 hD(){Ka.flushLegacyContextWarning(),Ka.flushPendingUnsafeLifecycleWarnings()}function Gb(e,t){Kt(e),Wc(e,oi,jw),t&&Wc(e,Mf,Uw),Wc(e,oi,Aw),t&&Wc(e,Mf,Nw),Mn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==He?a=a.child:((a.flags&t)!==He&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var qc=null;function Xb(e){{if((lt&In)!==Cn||!(e.mode&ot))return;var t=e.tag;if(t!==st&&t!==re&&t!==he&&t!==ve&&t!==De&&t!==Xe&&t!==W)return;var n=Ge(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=aa;try{Kt(e),c("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?Kt(e):Mn()}}}var $p;{var yD=null;$p=function(e,t,n){var a=aS(yD,t);try{return ub(e,t,n)}catch(i){if(kR()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),cg(),pb(e,t),aS(t,a),t.mode&kt&&Yv(t),xf(null,ub,null,e,t,n),K0()){var r=Rf();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Qb=!1,Pp;Pp=new Set;function gD(e){if(Mi&&!l1())switch(e.tag){case ve:case De:case W:{var t=en&&Ge(en)||"Unknown",n=t;if(!Pp.has(n)){Pp.add(n);var a=Ge(e)||"Unknown";c("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 he:{Qb||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Qb=!0);break}}}function Bu(e,t){if(qa){var n=e.memoizedUpdaters;n.forEach(function(a){bh(e,a,t)})}}var Yp={};function Ip(e,t){{var n=ir.current;return n!==null?(n.push(t),Yp):ih(e,t)}}function Kb(e){if(e!==Yp)return iT(e)}function Jb(){return ir.current!==null}function bD(e){{if(e.mode&ot){if(!kb())return}else if(!Fw()||lt!==Cn||e.tag!==ve&&e.tag!==De&&e.tag!==W)return;if(ir.current===null){var t=aa;try{Kt(e),c(`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`,Ge(e))}finally{t?Kt(e):Mn()}}}}function SD(e){e.tag!==mi&&kb()&&ir.current===null&&c(`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 $u(e){jb=e}var Ba=null,rl=null,TD=function(e){Ba=e};function il(e){{if(Ba===null)return e;var t=Ba(e);return t===void 0?e:t.current}}function Wp(e){return il(e)}function qp(e){{if(Ba===null)return e;var t=Ba(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=il(e.render);if(e.render!==n){var a={$$typeof:z,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function Zb(e,t){{if(Ba===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 he:{typeof a=="function"&&(r=!0);break}case ve:{(typeof a=="function"||i===p)&&(r=!0);break}case De:{(i===z||i===p)&&(r=!0);break}case Xe:case W:{(i===et||i===p)&&(r=!0);break}default:return!1}if(r){var o=Ba(n);if(o!==void 0&&o===Ba(a))return!0}return!1}}function eS(e){{if(Ba===null||typeof WeakSet!="function")return;rl===null&&(rl=new WeakSet),rl.add(e)}}var ED=function(e,t){{if(Ba===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Kr(),Qr(function(){Gp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==_a)return;Kr(),Qr(function(){Pu(t,e,null,null)})}};function Gp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ve:case W:case he:u=l;break;case De:u=l.render;break}if(Ba===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,d=!1;if(u!==null){var g=Ba(u);g!==void 0&&(n.has(g)?d=!0:t.has(g)&&(o===he?d=!0:f=!0))}if(rl!==null&&(rl.has(e)||a!==null&&rl.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||f){var y=ya(e,$e);y!==null&&wn(y,e,$e,It)}r!==null&&!d&&Gp(r,t,n),i!==null&&Gp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Xp(e.current,a,n),n}};function Xp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ve:case W:case he:l=o;break;case De:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Xp(a,t,n),r!==null&&Xp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ie:t.add(a.stateNode);return;case Ue:t.add(a.stateNode.containerInfo);return;case re:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function wD(e,t){for(var n=e,a=!1;;){if(n.tag===ie)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 Qp;{Qp=!1;try{var tS=Object.preventExtensions({})}catch{Qp=!0}}function DD(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=He,this.subtreeFlags=He,this.deletions=null,this.lanes=F,this.childLanes=F,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,!Qp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ka=function(e,t,n,a){return new DD(e,t,n,a)};function Kp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Kp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Kp(e)?he:ve;if(e!=null){var t=e.$$typeof;if(t===z)return De;if(t===et)return Xe}return st}function lo(e,t){var n=e.alternate;n===null?(n=ka(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=He,n.subtreeFlags=He,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Hr,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 st:case ve:case W:n.type=il(e.type);break;case he:n.type=Wp(e.type);break;case De:n.type=qp(e.type);break}return n}function MD(e,t){e.flags&=Hr|vn;var n=e.alternate;if(n===null)e.childLanes=F,e.lanes=t,e.child=null,e.subtreeFlags=He,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=He,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 LD(e,t,n){var a;return e===Ys?(a=ot,t===!0&&(a|=on,a|=dr)):a=Oe,qa&&(a|=kt),ka(re,null,null,a)}function Jp(e,t,n,a,r,i){var o=st,l=e;if(typeof e=="function")Kp(e)?(o=he,l=Wp(l)):l=il(l);else if(typeof e=="string")o=ie;else e:switch(e){case ta:return _i(n.children,r,i,t);case Rr:o=Wt,r|=on,(r&ot)!==Oe&&(r|=dr);break;case wr:return OD(n,r,i,t);case J:return AD(n,r,i,t);case me:return ND(n,r,i,t);case T:return nS(n,r,i,t);case R:case E:case U:case S:case b:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dr:o=Fe;break e;case h:o=vt;break e;case z:o=De,l=qp(l);break e;case et:o=Xe;break e;case p:o=Bt,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?Ge(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 d=ka(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function Zp(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=Jp(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function _i(e,t,n,a){var r=ka(oe,e,a,t);return r.lanes=n,r}function OD(e,t,n,a){typeof e.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=ka(Ke,e,a,t|kt);return r.elementType=wr,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=ka(O,e,a,t);return r.elementType=J,r.lanes=n,r}function ND(e,t,n,a){var r=ka(At,e,a,t);return r.elementType=me,r.lanes=n,r}function nS(e,t,n,a){var r=ka(Q,e,a,t);r.elementType=T,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function em(e,t,n){var a=ka(ye,e,null,t);return a.lanes=n,a}function jD(){var e=ka(ie,null,null,Oe);return e.elementType="DELETED",e}function UD(e){var t=ka(Et,null,null,Oe);return t.stateNode=e,t}function tm(e,t,n){var a=e.children!==null?e.children:[],r=ka(Ue,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function aS(e,t){return e===null&&(e=ka(st,null,null,Oe)),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 HD(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=Ud,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=id(F),this.expirationTimes=id(It),this.pendingLanes=F,this.suspendedLanes=F,this.pingedLanes=F,this.expiredLanes=F,this.mutableReadLanes=F,this.finishedLanes=F,this.entangledLanes=F,this.entanglements=id(F),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<Uf;o++)i.push(new Set)}switch(t){case Ys:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case mi:this._debugRootType=n?"hydrate()":"render()";break}}function rS(e,t,n,a,r,i,o,l,u,f){var d=new HD(e,t,n,l,u),g=LD(t,i);d.current=g,g.stateNode=d;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=y}return pv(g),d}var nm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return va(a),{$$typeof:ea,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var am,rm;am=!1,rm={};function iS(e){if(!e)return _a;var t=go(e),n=SR(t);if(t.tag===he){var a=t.type;if(mr(a))return Oy(t,a,n)}return n}function VD(e,t){{var n=go(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=nh(n);if(r===null)return null;if(r.mode&on){var i=Ge(n)||"Component";if(!rm[i]){rm[i]=!0;var o=aa;try{Kt(r),n.mode&on?c("%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):c("%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?Kt(o):Mn()}}}return r.stateNode}}function oS(e,t,n,a,r,i,o,l){var u=!1,f=null;return rS(e,t,u,f,n,a,r,i,o)}function lS(e,t,n,a,r,i,o,l,u,f){var d=!0,g=rS(n,a,d,e,r,i,o,l,u);g.context=iS(null);var y=g.current,w=sa(),_=wi(y),N=Wr(w,_);return N.callback=t??null,gi(y,N,_),Ww(g,_,w),g}function Pu(e,t,n,a){vT(t,e);var r=t.current,i=sa(),o=wi(r);AT(o);var l=iS(n);t.context===null?t.context=l:t.pendingContext=l,Mi&&aa!==null&&!am&&(am=!0,c(`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.`,Ge(aa)||"Unknown"));var u=Wr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=gi(r,u,o);return f!==null&&(wn(f,r,o,i),ic(f,r,o)),o}function Gc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ie:return t.child.stateNode;default:return t.child.stateNode}}function FD(e){switch(e.tag){case re:{var t=e.stateNode;if(ps(t)){var n=$T(t);Qw(t,n)}break}case O:{Qr(function(){var r=ya(e,$e);if(r!==null){var i=sa();wn(r,e,$e,i)}});var a=$e;im(e,a);break}}}function uS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function im(e,t){uS(e,t);var n=e.alternate;n&&uS(n,t)}function BD(e){if(e.tag===O){var t=_l,n=ya(e,t);if(n!==null){var a=sa();wn(n,e,t,a)}im(e,t)}}function $D(e){if(e.tag===O){var t=wi(e),n=ya(e,t);if(n!==null){var a=sa();wn(n,e,t,a)}im(e,t)}}function sS(e){var t=rT(e);return t===null?null:t.stateNode}var cS=function(e){return null};function PD(e){return cS(e)}var fS=function(e){return!1};function YD(e){return fS(e)}var dS=null,vS=null,pS=null,mS=null,hS=null,yS=null,gS=null,bS=null,SS=null;{var TS=function(e,t,n){var a=t[n],r=tt(e)?e.slice():Ce({},e);return n+1===t.length?(tt(r)?r.splice(a,1):delete r[a],r):(r[a]=TS(e[a],t,n+1),r)},ES=function(e,t){return TS(e,t,0)},CS=function(e,t,n,a){var r=t[a],i=tt(e)?e.slice():Ce({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],tt(i)?i.splice(r,1):delete i[r]}else i[r]=CS(e[r],t,n,a+1);return i},xS=function(e,t,n){if(t.length!==n.length){I("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){I("copyWithRename() expects paths to be the same except for the deepest key");return}return CS(e,t,n,0)},RS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=tt(e)?e.slice():Ce({},e);return i[r]=RS(e[r],t,n+1,a),i},wS=function(e,t,n){return RS(e,t,0,n)},om=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};dS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=wS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ce({},e.memoizedProps);var o=ya(e,$e);o!==null&&wn(o,e,$e,It)}},vS=function(e,t,n){var a=om(e,t);if(a!==null){var r=ES(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Ce({},e.memoizedProps);var i=ya(e,$e);i!==null&&wn(i,e,$e,It)}},pS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=xS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ce({},e.memoizedProps);var o=ya(e,$e);o!==null&&wn(o,e,$e,It)}},mS=function(e,t,n){e.pendingProps=wS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,$e);a!==null&&wn(a,e,$e,It)},hS=function(e,t){e.pendingProps=ES(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ya(e,$e);n!==null&&wn(n,e,$e,It)},yS=function(e,t,n){e.pendingProps=xS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,$e);a!==null&&wn(a,e,$e,It)},gS=function(e){var t=ya(e,$e);t!==null&&wn(t,e,$e,It)},bS=function(e){cS=e},SS=function(e){fS=e}}function ID(e){var t=nh(e);return t===null?null:t.stateNode}function WD(e){return null}function qD(){return aa}function GD(e){var t=e.findFiberByHostInstance,n=ee.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:dS,overrideHookStateDeletePath:vS,overrideHookStateRenamePath:pS,overrideProps:mS,overridePropsDeletePath:hS,overridePropsRenamePath:yS,setErrorHandler:bS,setSuspenseHandler:SS,scheduleUpdate:gS,currentDispatcherRef:n,findHostInstanceByFiber:ID,findFiberByHostInstance:t||WD,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:nm})}var DS=typeof reportError=="function"?reportError:function(e){console.error(e)};function lm(e){this._internalRoot=e}Xc.prototype.render=lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Qc(arguments[1])?c("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"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==dn){var a=sS(t.current);a&&a.parentNode!==n&&c("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)},Xc.prototype.unmount=lm.prototype.unmount=function(){typeof arguments[0]=="function"&&c("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;Vb()&&c("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."),Qr(function(){Pu(null,e,null,null)}),Dy(t)}};function XD(e,t){if(!Qc(e))throw new Error("createRoot(...): Target container is not a DOM element.");_S(e);var n=!1,a=!1,r="",i=DS;t!=null&&(t.hydrate?I("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===yn&&c(`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=oS(e,Ys,null,n,a,r,i);Hs(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Xl(l),new lm(o)}function Xc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Xc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Qc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_S(e),t===void 0&&c("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=DS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=lS(t,null,e,Ys,a,i,o,l,u);if(Hs(f.current,e),Xl(e),r)for(var d=0;d<r.length;d++){var g=r[d];t1(f,g)}return new Xc(f)}function Qc(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf))}function Yu(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf||e.nodeType===dn&&e.nodeValue===" react-mount-point-unstable "))}function _S(e){e.nodeType===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("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."),ou(e)&&(e._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("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 JD=ee.ReactCurrentOwner,kS;kS=function(e){if(e._reactRootContainer&&e.nodeType!==dn){var t=sS(e._reactRootContainer.current);t&&t.parentNode!==e&&c("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=um(e),r=!!(a&&vi(a));r&&!n&&c("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===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("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 um(e){return e?e.nodeType===Nr?e.documentElement:e.firstChild:null}function MS(){}function ZD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var y=Gc(o);i.call(y)}}var o=lS(t,a,e,mi,null,!1,!1,"",MS);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Xl(l),Qr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var y=Gc(d);f.call(y)}}var d=oS(e,mi,null,!1,!1,"",MS);e._reactRootContainer=d,Hs(d.current,e);var g=e.nodeType===dn?e.parentNode:e;return Xl(g),Qr(function(){Pu(t,d,n,a)}),d}}function e_(e,t){e!==null&&typeof e!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Kc(e,t,n,a,r){kS(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=ZD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=Gc(o);l.call(u)}}Pu(t,o,e,r)}return Gc(o)}var LS=!1;function t_(e){{LS||(LS=!0,c("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=JD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||c("%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.",yt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ma?e:VD(e,"findDOMNode")}function n_(e,t,n){if(c("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"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("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 Kc(null,e,t,!0,n)}function a_(e,t,n){if(c("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"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("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 Kc(null,e,t,!1,n)}function r_(e,t,n,a){if(c("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"),!Yu(n))throw new Error("Target container is not a DOM element.");if(e==null||!J0(e))throw new Error("parentComponent must be a valid React Component");return Kc(e,t,n,!1,a)}var OS=!1;function i_(e){if(OS||(OS=!0,c("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")),!Yu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ou(e)&&e._reactRootContainer===void 0;t&&c("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=um(e),a=n&&!vi(n);a&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Qr(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,Dy(e)})}),!0}else{{var r=um(e),i=!!(r&&vi(r)),o=e.nodeType===ma&&Yu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&c("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}}tE(FD),aE(BD),rE($D),iE(Ga),oE(JT),(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")&&c("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"),B0(lx),Y0(Vp,Kw,Qr);function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Qc(t))throw new Error("Target container is not a DOM element.");return zD(e,t,null,n)}function l_(e,t,n,a){return r_(e,t,n,a)}var sm={usingClientEntryPoint:!1,Events:[vi,Uo,zs,Pm,Ym,Vp]};function u_(e,t){return sm.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),XD(e,t)}function s_(e,t,n){return sm.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t,n)}function c_(e){return Vb()&&c("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."),Qr(e)}var f_=GD({findFiberByHostInstance:Wi,bundleType:1,version:nm,rendererPackageName:"react-dom"});if(!f_&&wt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AS=window.location.protocol;/^(https?|file):$/.test(AS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,da.createPortal=o_,da.createRoot=u_,da.findDOMNode=t_,da.flushSync=c_,da.hydrate=n_,da.hydrateRoot=s_,da.render=a_,da.unmountComponentAtNode=i_,da.unstable_batchedUpdates=Vp,da.unstable_renderSubtreeIntoContainer=l_,da.version=nm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),da}pm.exports=zS();var VS=pm.exports,gm,bm=VS;{var Sm=bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;gm=function(k,M){Sm.usingClientEntryPoint=!0;try{return bm.createRoot(k,M)}finally{Sm.usingClientEntryPoint=!1}}}const de=k=>{if(isNaN(k))return"00:00:00.000";const M=Math.floor(k/3600),ee=Math.floor(k%3600/60),Le=Math.floor(k%60),je=Math.round(k%1*1e3),I=String(M).padStart(2,"0"),c=String(ee).padStart(2,"0"),Rt=String(Le).padStart(2,"0"),ve=String(je).padStart(3,"0");return`${I}:${c}:${Rt}.${ve}`},ki=k=>de(k),FS=k=>de(k),Ee={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var X=Zc();const BS=({videoRef:k,currentTime:M,duration:ee,isPlaying:Le,isMuted:je=!1,onPlayPause:I,onSeek:c,onToggleMute:Rt})=>{var te;const ve=X.useRef(null),[he,st]=X.useState(!1),[re,Ue]=X.useState(!1),[ie,ye]=X.useState(null),[oe,Wt]=X.useState(!1),vt=X.useRef(!1),[Fe,De]=X.useState({x:0}),[Ke,O]=X.useState(0),Xe=typeof window<"u"&&((te=window.MEDIA_DATA)==null?void 0:te.videoUrl)||"/videos/sample-video.mp4";X.useEffect(()=>{const pe=()=>{const P=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(P)&&!window.MSStream},Y=()=>{const P=navigator.userAgent||navigator.vendor||window.opera;return/Safari/.test(P)&&!/Chrome/.test(P)&&!/Chromium/.test(P)};if(st(pe()),typeof window<"u"&&(window.isSafari=Y()),typeof window<"u"){const P=localStorage.getItem("video_initialized")==="true";Ue(P)}},[]),X.useEffect(()=>{Le&&!re&&(Ue(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Le,re]),X.useEffect(()=>{const pe=k.current;if(!pe)return;pe.setAttribute("playsinline","true"),pe.setAttribute("webkit-playsinline","true"),pe.setAttribute("x-webkit-airplay","allow");const Y=()=>{vt.current||(ye(pe.currentTime),typeof window<"u"&&(window.lastSeekedPosition=pe.currentTime))},P=()=>{he&&(Ue(!0),localStorage.setItem("video_initialized","true"))},_e=()=>{};return pe.addEventListener("timeupdate",Y),pe.addEventListener("play",P),pe.addEventListener("pause",_e),()=>{pe.removeEventListener("timeupdate",Y),pe.removeEventListener("play",P),pe.removeEventListener("pause",_e)}},[k,he,vt]),X.useEffect(()=>{ye(M)},[M]);const W=ee>0?M/ee*100:0,Bt=pe=>{pe.preventDefault(),Wt(!0),vt.current=!0,We(pe);const Y=_e=>{vt.current&&We(_e)},P=()=>{Wt(!1),vt.current=!1,document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",P)},We=pe=>{if(!ve.current)return;const Y=ve.current.getBoundingClientRect(),P=Math.max(0,Math.min(1,(pe.clientX-Y.left)/Y.width)),_e=ee*P;De({x:pe.clientX}),O(_e),ye(_e),typeof window<"u"&&(window.lastSeekedPosition=_e),c(_e)},Et=pe=>{if(!ve.current||!pe.touches[0])return;pe.preventDefault(),Wt(!0),vt.current=!0,At(pe);const Y=_e=>{vt.current&&At(_e)},P=()=>{Wt(!1),vt.current=!1,document.removeEventListener("touchmove",Y),document.removeEventListener("touchend",P),document.removeEventListener("touchcancel",P)};document.addEventListener("touchmove",Y,{passive:!1}),document.addEventListener("touchend",P),document.addEventListener("touchcancel",P)},At=pe=>{if(!ve.current)return;const Y="touches"in pe?pe.touches[0]:null;if(!Y)return;pe.preventDefault();const P=ve.current.getBoundingClientRect(),_e=Math.max(0,Math.min(1,(Y.clientX-P.left)/P.width)),Ct=ee*_e;De({x:Y.clientX}),O(Ct),ye(Ct),typeof window<"u"&&(window.lastSeekedPosition=Ct),c(Ct)},Re=pe=>{if(!oe&&ve.current){const Y=ve.current.getBoundingClientRect(),P=(pe.clientX-Y.left)/Y.width,_e=ee*P;ye(_e),typeof window<"u"&&(window.lastSeekedPosition=_e),c(_e)}},Q=()=>{k.current&&(document.fullscreenElement?document.exitFullscreen():k.current.requestFullscreen())},Ze=()=>{const pe=k.current;pe&&(pe.paused?he&&ie!==null&&ie>0?(pe.currentTime=ie,setTimeout(()=>{k.current&&k.current.play().then(()=>{var Y;Ee.debug("iOS: Play started successfully at position:",(Y=k.current)==null?void 0:Y.currentTime),I()}).catch(Y=>{console.error("iOS: Error playing video:",Y)})},50)):pe.play().then(()=>{I()}).catch(Y=>{console.error("Error playing video:",Y)}):(pe.pause(),I()))};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:k,preload:"metadata",crossOrigin:"anonymous",onClick:Ze,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:je,children:[v.jsx("source",{src:Xe,type:"video/mp4"}),v.jsx("source",{src:Xe,type:"audio/mp4"}),v.jsx("source",{src:Xe,type:"audio/mpeg"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video or audio."})]}),he&&!re&&!Le&&v.jsx("div",{className:"ios-first-play-indicator",children:v.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),v.jsx("div",{className:`play-pause-indicator ${Le?"pause-icon":"play-icon"}`}),v.jsxs("div",{className:"video-controls",children:[v.jsxs("div",{className:"video-time-display",children:[v.jsx("span",{className:"video-current-time",children:ki(M)}),v.jsxs("span",{className:"video-duration",children:["/ ",ki(ee)]})]}),v.jsxs("div",{ref:ve,className:`video-progress ${oe?"dragging":""}`,onClick:Re,onMouseDown:Bt,onTouchStart:Et,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${W}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${W}%`}}),oe&&v.jsx("div",{className:"video-time-tooltip",style:{left:`${Fe.x}px`,transform:"translateX(-50%)"},children:de(Ke)})]}),v.jsxs("div",{className:"video-controls-buttons",children:[Rt&&v.jsx("button",{className:"mute-button","aria-label":je?"Unmute":"Mute",onClick:Rt,"data-tooltip":je?"Unmute":"Mute",children:je?v.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:[v.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),v.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),v.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),v.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):v.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:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),v.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:Q,"data-tooltip":"Toggle fullscreen",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.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"})})})]})]})]})},$S=(k,M)=>{const ee=Math.min(Math.max(k/(M||1),0),1),Le=210,je=40+Math.floor(ee*20),I=85+Math.floor(ee*8);return`hsl(${Le}, ${je}%, ${I}%)`},Wu=({isOpen:k,onClose:M,title:ee,children:Le,actions:je})=>{if(X.useEffect(()=>{const c=Rt=>{Rt.key==="Escape"&&k&&M()};return document.addEventListener("keydown",c),k&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}},[k,M]),!k)return null;const I=c=>{c.target===c.currentTarget&&M()};return v.jsx("div",{className:"modal-overlay",onClick:I,children:v.jsxs("div",{className:"modal-container",onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("h2",{className:"modal-title",children:ee}),v.jsx("button",{className:"modal-close-button",onClick:M,"aria-label":"Close modal",style:{minWidth:"24px",minHeight:"24px"},children:v.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:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v.jsx("div",{className:"modal-content",children:Le}),je&&v.jsx("div",{className:"modal-actions",children:je})]})})},PS=async(k,M)=>{try{const ee=await fetch(`/api/v1/media/${k}/chapters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)});if(Ee.debug("response",ee),!ee.ok){if(ee.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const je=await ee.json();return{success:!1,timestamp:new Date().toISOString(),error:je.error||"Auto-save failed (videoApi.ts)"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed (videoApi.ts)"}}}const Le=await ee.json();return{success:!0,timestamp:Le.updated_at||new Date().toISOString(),...Le}}catch{return{success:!0,timestamp:new Date().toISOString()}}},Tm="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",Em="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",Cm="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",YS="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",IS="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",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%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",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%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",GS={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},xm=k=>{let I,c;if(k<=15)if(k<=0)I="0%",c="none";else{const ve=-50*((k-0)/15);I=`${k}%`,c=`translateX(${ve}%)`}else if(k>=75)if(k>=100)I="100%",c="translateX(-100%)";else{const ve=-50-50*((k-75)/25);I=`${k}%`,c=`translateX(${ve}%)`}else I=`${k}%`,c="translateX(-50%)";return{left:I,transform:c}},XS=({currentTime:k,duration:M,trimStart:ee,trimEnd:Le,splitPoints:je,zoomLevel:I,clipSegments:c,selectedSegmentId:Rt,onSelectedSegmentChange:ve,onSegmentUpdate:he,onChapterSave:st,onTrimStartChange:re,onTrimEndChange:Ue,onZoomChange:ie,onSeek:ye,videoRef:oe,hasUnsavedChanges:Wt=!1,isIOSUninitialized:vt=!1,isPlaying:Fe,setIsPlaying:De,onPlayPause:Ke,isPlayingSegments:O=!1})=>{const Xe=(p,E)=>`Chapter ${[...E,{startTime:p}].sort((U,S)=>U.startTime-S.startTime).findIndex(U=>U.startTime===p)+1}`,W=X.useRef(null),Bt=X.useRef(null),We=X.useRef(null),[Et,At]=X.useState(null),Re=Rt!==void 0?Rt:Et,Q=p=>{ve?ve(p):At(p)},[Ze,te]=X.useState(!1),[pe,Y]=X.useState({x:0,y:0}),[P,_e]=X.useState(0),[Ct,Dn]=X.useState(!1),[$t,un]=X.useState(30),[Ut,xt]=X.useState(!1),[qt,ht]=X.useState(null),[jn,ft]=X.useState(0),[tn,wt]=X.useState(!1),Je=X.useRef(null),[nn,an]=X.useState(""),[rn,Zt]=X.useState(!1),L=[...c].sort((p,E)=>p.startTime-E.startTime).find(p=>p.id===Re),[q,se]=X.useState(""),[ne,we]=X.useState(!1),qe=X.useRef(null),at=X.useRef(c);X.useEffect(()=>{at.current=c},[c]);const ke=X.useCallback(async()=>{var p;try{we(!0);const E=at.current.sort((U,S)=>U.startTime-S.startTime).map(U=>({startTime:de(U.startTime),endTime:de(U.endTime),chapterTitle:U.chapterTitle}));Ee.debug("chapters",E);const T=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null||"1234";if(Ee.debug("mediaId",T),!T||E.length===0){Ee.debug("No mediaId or segments, skipping auto-save"),we(!1);return}Ee.debug("Auto-saving segments:",{mediaId:T,chapters:E});const R=await PS(T,{chapters:E});if(R.success===!0){Ee.debug("Auto-save successful");const S=new Date(R.updated_at||new Date().toISOString()).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");se(S),Ee.debug("Auto-save successful:",S)}else Ee.error("Auto-save failed: (TimelineControls.tsx)")}catch(E){Ee.error("Auto-save error: (TimelineControls.tsx)",E)}finally{we(!1)}},[]),Be=X.useCallback(()=>{qe.current&&clearTimeout(qe.current);const p=setTimeout(()=>{ke()},1e3);qe.current=p},[ke]);X.useEffect(()=>{if(L){const p=L.chapterTitle&&/^Chapter \d+$/.test(L.chapterTitle);an(p?"":L.chapterTitle||"")}else an("")},[Re,L]);const rt=p=>{an(p),Zt(!0),Re&&he&&he(Re,{chapterTitle:p})},Gt=p=>{const E=p;let b=null,T=null,R=P;const U=()=>{const S=E<0?Math.max(0,R+E):Math.min(M,R+E);R=S;const $=Ut;if(ye(S),_e(S),ft(S),W.current){const V=W.current.getBoundingClientRect(),Te=S/M*100,Ce=V.left+V.width*(Te/100);Y({x:Ce,y:V.top-10});const Ae=c.find(ct=>S>=ct.startTime&&S<=ct.endTime);if(Ae)Q(Ae.id),te(!1);else{Q(null);const ct=hn(S);un(ct),te(!0)}}$&&oe.current&&(oe.current.play(),xt(!0))};return{onMouseDown:S=>{S.stopPropagation(),S.preventDefault(),R=P,U(),b=setTimeout(()=>{T=setInterval(U,200)},750);const $=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("mouseup",$),document.removeEventListener("mouseleave",$)};document.addEventListener("mouseup",$),document.addEventListener("mouseleave",$)},onTouchStart:S=>{S.stopPropagation(),S.preventDefault(),R=P,U(),b=setTimeout(()=>{T=setInterval(U,200)},750);const $=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("touchend",$),document.removeEventListener("touchcancel",$)};document.addEventListener("touchend",$),document.addEventListener("touchcancel",$)},onClick:S=>{S.stopPropagation()}}},[mn,G]=X.useState(!1),[ge,Ve]=X.useState(!1),[dt,Dt]=X.useState(!1),[Ht,Nt]=X.useState(!1),[Un,zt]=X.useState(""),[jt,Ot]=X.useState(""),[$a,Ta]=X.useState(""),[Ea,or]=X.useState("chapters"),La=M>0?k/M*100:0,Zr=M>0?ee/M*100:0,xr=M>0?Le/M*100:0,ei=async()=>{var p;G(!1),Ve(!0),or("chapters");try{const E=c.filter(b=>b.chapterTitle&&b.chapterTitle.trim()).sort((b,T)=>b.startTime-T.startTime).map(b=>({chapterTitle:b.chapterTitle||`Chapter ${b.id}`,from:de(b.startTime),to:de(b.endTime)}));if(st){await st(E),Ve(!1),E.length===0?zt("All chapters cleared successfully!"):zt("Chapters saved successfully!");const b=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null;b&&Ta(`/view?m=${b}`),Dt(!0)}else Ot("Chapter save function not available"),Nt(!0),Ve(!1)}catch(E){Ee.error("Error saving chapters:",E),Ve(!1);const b=E instanceof Error?E.message:"An error occurred while saving chapters";Ot(b),Nt(!0)}};X.useEffect(()=>{if(Je.current&&W.current&&I>1){const p=Je.current.clientWidth,E=W.current.clientWidth,b=k/M*E,T=Math.max(0,b-p/2);Je.current.scrollTo({left:T,behavior:"smooth"});const R=W.current.getBoundingClientRect();Je.current.getBoundingClientRect();const S=R.left-Je.current.scrollLeft+La/100*R.width;(Re!==null||Ze)&&(Y({x:S,y:R.top-10}),_e(k))}},[k,I,M,Re,Ze,La]),X.useEffect(()=>{},[qt,Ut,tn,c]),X.useEffect(()=>{if(oe.current)if(oe.current.paused)oe.current.paused&&Ut&&(ft(k),_e(k),xt(!1),Ee.debug("Video paused at:",de(k)));else{ft(k),_e(k),Re!==null&&xt(!0);const p=c.find(T=>k>=T.startTime&&k<=T.endTime),E=k/M*100;if(W.current){const T=W.current.offsetWidth,R=E/100*T;Y({x:R,y:W.current.getBoundingClientRect().top-10})}const b=sessionStorage.getItem("continuingPastSegment")==="true";if(p){const T=oe.current,R=qt&&qt.id<0&&Ut;if((qt==null?void 0:qt.id)!==p.id&&!R&&!b&&!tn&&(Ee.debug(`Entered a new segment during playback: ${p.id}, setting as active`),ht(p),Q(p.id),te(!1),wt(!1),sessionStorage.removeItem("continuingPastSegment")),R&&T&&p){Ee.debug(`CUTAWAY BOUNDARY REACHED: Current position ${de(T.currentTime)} at segment ${p.id} - STOPPING at boundary ${de(p.startTime)}`),T.pause(),setTimeout(()=>{if(oe.current){oe.current.currentTime=p.startTime,ye(p.startTime),ft(p.startTime),_e(p.startTime),wt(!1),Q(p.id),te(!1);const S=()=>{oe.current&&(oe.current.currentTime=p.startTime,ye(p.startTime),ft(p.startTime),_e(p.startTime),Ee.debug(`Position corrected to exact segment boundary: ${de(oe.current.currentTime)} (target: ${de(p.startTime)})`))};setTimeout(S,10),setTimeout(S,20),setTimeout(S,50),setTimeout(S,100),setTimeout(S,200),oe.current.addEventListener("seeked",S),oe.current.addEventListener("canplay",S),oe.current.addEventListener("waiting",S),setTimeout(()=>{oe.current&&(oe.current.removeEventListener("seeked",S),oe.current.removeEventListener("canplay",S),oe.current.removeEventListener("waiting",S))},300)}},10),xt(!1),ht(null);return}qt===null&&Ut===!0||b||R?(Re!==p.id||Ze)&&(Ee.debug("Tooltip updated for segment during continued playback:",p.id,R?"(cutaway playback - keeping virtual segment)":""),Q(p.id),te(!1),!R&&sessionStorage.getItem("lastSegmentId")!==p.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((qt==null?void 0:qt.id)!==p.id||Ze)&&(Ee.debug("Playback moved into segment:",p.id),Q(p.id),ht(p),te(!1),sessionStorage.setItem("lastSegmentId",p.id.toString()))}else if(qt!==null||!Ze){Q(null),ht(null);const T=hn(k);un(T),T>=.5?te(!0):te(!1)}}},[k,Ut,qt,Re,c]),X.useEffect(()=>{const p=E=>{const b=E.target;Ct&&!b.closest(".zoom-dropdown-container")&&Dn(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[Ct]),X.useEffect(()=>{const p=T=>{const{recordHistory:R,fromAutoSave:U}=T.detail;R&&!U&&Be()},E=()=>{Be()},b=T=>{const{recordHistory:R}=T.detail;R&&Be()};return document.addEventListener("update-segments",p),document.addEventListener("segment-drag-end",E),document.addEventListener("update-trim",b),document.addEventListener("delete-segment",Be),document.addEventListener("split-segment",Be),document.addEventListener("undo-redo-autosave",Be),()=>{document.removeEventListener("update-segments",p),document.removeEventListener("segment-drag-end",E),document.removeEventListener("update-trim",b),document.removeEventListener("delete-segment",Be),document.removeEventListener("split-segment",Be),document.removeEventListener("undo-redo-autosave",Be),qe.current&&(Ee.debug("Clearing auto-save timer in cleanup:",qe.current),clearTimeout(qe.current))}},[Be]),X.useEffect(()=>{c.length>0&&!q&&setTimeout(()=>{ke()},500)},[q,ke]),X.useEffect(()=>{const p=()=>{var T;let b=typeof window<"u"&&((T=window.MEDIA_DATA)==null?void 0:T.chapters)||null;try{if(b&&b.chapters&&b.chapters.length>0){Ee.debug("Found saved segments:",b);const R=b.chapters.map((S,$)=>({id:Date.now()+$,chapterTitle:S.chapterTitle||`Chapter ${$+1}`,startTime:E(S.startTime),endTime:E(S.endTime)})),U=new CustomEvent("update-segments",{detail:{segments:R,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(U),b.updated_at){const $=new Date(b.updated_at).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");se($)}}else Ee.debug("No saved segments found")}catch(R){console.error("Error loading saved segments:",R)}},E=b=>{const T=b.split(":");if(T.length!==3)return 0;const R=parseInt(T[0])||0,U=parseInt(T[1])||0,S=T[2].split("."),$=parseInt(S[0])||0,V=parseInt(S[1])||0;return R*3600+U*60+$+V/1e3};setTimeout(p,100)},[]),X.useEffect(()=>()=>{},[Re,Ze,Ut]),X.useEffect(()=>{const p=Bt.current,E=We.current,b=W.current;if(!p||!E||!b)return;const T=R=>U=>{U.preventDefault();const S=b.getBoundingClientRect();let $=!0,V=R?ee:Le;const Te=ct=>new CustomEvent("trim-handle-event",{detail:{type:ct,isStart:R}});document.dispatchEvent(Te("drag-start"));const Ce=ct=>{if(!$)return;const Qt=S.width,_n=Math.max(0,Math.min(1,(ct.clientX-S.left)/Qt))*M;typeof window<"u"&&(window.lastSeekedPosition=_n),R?_n<Le&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:_n,isStart:!0,recordHistory:!1}})),V=_n):_n>ee&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:_n,isStart:!1,recordHistory:!1}})),V=_n)},Ae=()=>{$=!1,document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Ae),R?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:V,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:V,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(Te("drag-end"))};document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Ae)};return p.addEventListener("mousedown",T(!0)),E.addEventListener("mousedown",T(!1)),()=>{p.removeEventListener("mousedown",T(!0)),E.removeEventListener("mousedown",T(!1))}},[M,ee,Le,re,Ue]);const ti=()=>je.map((p,E)=>{const b=p/M*100;return v.jsx("div",{className:"split-point",style:{left:`${b}%`}},E)}),hn=p=>{const b=[...c].sort((S,$)=>S.startTime-$.startTime),T=b.find(S=>S.startTime>p),R=[...b].reverse().find(S=>S.endTime<p);let U;return T?U=T.startTime-p:U=M-p,Ee.debug("Space calculation:",{position:de(p),nextSegment:T?de(T.startTime):"none",prevSegment:R?de(R.endTime):"none",availableSpace:de(Math.max(.1,U))}),Math.max(.1,U)},yn=p=>{if(!W.current)return;const E=c.find(V=>{const Te=p>=V.startTime&&p<=V.endTime,Ce=Math.abs(p-V.startTime)<.001,Ae=Math.abs(p-V.endTime)<.001;return Te||Ce||Ae}),b=[...c].sort((V,Te)=>V.startTime-Te.startTime),T=b.find(V=>V.startTime>p),R=[...b].reverse().find(V=>V.endTime<p);if(E)Q(E.id),te(!1);else{const V=hn(p);un(V),Q(null),te(!0),Ee.debug("Cutaway position:",{current:de(p),prevSegmentEnd:R?de(R.endTime):"none",nextSegmentStart:T?de(T.startTime):"none",availableSpace:de(V)})}const U=W.current.getBoundingClientRect(),S=p/M*100;let $;I>1&&Je.current?$=U.left-Je.current.scrollLeft+U.width*(S/100):$=U.left+U.width*(S/100),Y({x:$,y:U.top-10})},ea=p=>{if(!W.current||!Je.current||vt)return;const E=oe.current&&!oe.current.paused;wt(!1);const b=W.current.getBoundingClientRect();let T;if(I>1){const S=Je.current.scrollLeft,$=W.current.clientWidth;T=(p.clientX-b.left+S)/$}else T=(p.clientX-b.left)/b.width;const R=T*M;Ee.debug("Timeline clicked at:",de(R),"distance from end:",de(M-R)),typeof window<"u"&&(window.lastSeekedPosition=R),ye(R),_e(R),ft(R);const U=c.find(S=>{const $=R>=S.startTime&&R<=S.endTime,V=Math.abs(R-S.startTime)<.01,Te=Math.abs(R-S.endTime)<.01;return $||V||Te});if(U&&ht(U),oe.current)if(O&&E){if(U){const $=[...c].sort((V,Te)=>V.startTime-Te.startTime).findIndex(V=>V.id===U.id);if($!==-1){const V=new CustomEvent("update-segment-index",{detail:{segmentIndex:$}});document.dispatchEvent(V),Ee.debug(`Segments playback mode: updating segment index to ${$} for timeline click in segment ${U.id}`)}}oe.current.play().then(()=>{xt(!0)}).catch(S=>{console.error("Error resuming segments playback:",S),xt(!1)})}else E&&!O&&oe.current.play().then(()=>{xt(!0)}).catch(S=>{console.error("Error resuming playback:",S),xt(!1)});if(p.target===W.current)if(U)Q(U.id),te(!1);else{Q(null);const S=hn(R);un(S);let $;if(I>1){const Ae=b.left-Je.current.scrollLeft,ct=R/M;$=Ae+ct*b.width}else $=p.clientX;Y({x:$,y:b.top-10}),te(!0);const V=[...c].sort((Ae,ct)=>Ae.startTime-ct.startTime),Te=[...V].reverse().find(Ae=>Ae.endTime<R),Ce=V.find(Ae=>Ae.startTime>R);Ee.debug("Clicked in cutaway area:",{position:de(R),availableSpace:de(S),prevSegmentEnd:Te?de(Te.endTime):"none",nextSegmentStart:Ce?de(Ce.startTime):"none"})}},ta=(p,E)=>b=>{if(b.preventDefault(),b.stopPropagation(),!W.current)return;W.current.getBoundingClientRect().width;const R=c.find(kn=>kn.id===p);if(!R)return;const U=R.startTime,S=R.endTime,$={...R};document.body.style.cursor="ew-resize";const V=document.createElement("div");V.style.position="fixed",V.style.top="0",V.style.left="0",V.style.width="100vw",V.style.height="100vh",V.style.zIndex="1000",V.style.cursor="ew-resize",document.body.appendChild(V);let Te=!0,Ce=U,Ae=S;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:p}}));const ct=kn=>{if(!Te||!W.current)return;const lr=W.current.getBoundingClientRect(),Vt=Math.max(0,Math.min(1,(kn-lr.left)/lr.width))*M,na=E?Vt:U,ur=E?S:Vt;if(k>=na&&k<=ur)Q(p),te(!1);else{Q(null);const sn=hn(k);un(sn),te(!0)}const sr=c.filter(sn=>sn.id!==p);let qn=U,pa=S;if(E){qn=Math.min(Vt,S-.5);const St=sr.filter(Ya=>Ya.endTime<=U).sort((Ya,Ia)=>Ia.endTime-Ya.endTime)[0];St&&qn<St.endTime&&(qn=St.endTime),St&&Math.abs(qn-St.endTime)<.3&&(qn=St.endTime),Ce=qn}else{pa=Math.max(Vt,U+.5);const St=sr.filter(Ya=>Ya.startTime>=S).sort((Ya,Ia)=>Ya.startTime-Ia.startTime)[0];St&&pa>St.startTime&&(pa=St.startTime),St&&Math.abs(pa-St.startTime)<.3&&(pa=St.startTime),Ae=pa}const cr=c.map(sn=>sn.id===p?{...sn,startTime:qn,endTime:pa}:sn),ni=new CustomEvent("update-segments",{detail:{segments:cr,recordHistory:!1}});if(document.dispatchEvent(ni),Re===p&&oe.current){const sn=oe.current.currentTime,St=cr.find(Aa=>Aa.id===p);if(St){const Aa=sn>=St.startTime&&sn<=St.endTime;Ee.debug(`During drag - playhead at ${de(sn)} is ${Aa?"inside":"outside"} segment (${de(St.startTime)} - ${de(St.endTime)})`),!Aa&&Ut&&(oe.current.pause(),xt(!1),ht(null)),sn<St.startTime?(Ee.debug(`Adjusting display time to segment start: ${de(St.startTime)}`),ft(St.startTime),_e(St.startTime)):sn>St.endTime&&(Ee.debug(`Adjusting display time to segment end: ${de(St.endTime)}`),ft(St.endTime),_e(St.endTime))}}},Qt=()=>{if(!Te)return;Te=!1,document.removeEventListener("mousemove",gn),document.removeEventListener("mouseup",_n),document.removeEventListener("touchmove",_r),document.removeEventListener("touchend",Oa),document.removeEventListener("touchcancel",Oa),document.body.style.cursor="",document.body.contains(V)&&document.body.removeChild(V);const kn=c.map(Hn=>Hn.id===p?{...Hn,startTime:Ce,endTime:Ae}:Hn),lr=E?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:kn,recordHistory:!0,action:lr}})),Re===p&&oe.current){const Hn=oe.current.currentTime,Vt=kn.find(na=>na.id===p);if(Vt){const na=Hn>=Vt.startTime&&Hn<=Vt.endTime;Ee.debug(`Drag complete - playhead at ${de(Hn)} is ${na?"inside":"outside"} segment (${de(Vt.startTime)} - ${de(Vt.endTime)})`);const ur=Hn>=$.startTime&&Hn<=$.endTime;na?(!ur&&na||ur&&na&&(Vt.startTime!==$.startTime||Vt.endTime!==$.endTime))&&ht(Vt):(Ut&&(oe.current.pause(),xt(!1),ht(null),wt(!1)),Hn<Vt.startTime?(Ee.debug(`Final adjustment - setting display time to segment start: ${de(Vt.startTime)}`),ft(Vt.startTime),_e(Vt.startTime)):Hn>Vt.endTime&&(Ee.debug(`Final adjustment - setting display time to segment end: ${de(Vt.endTime)}`),ft(Vt.endTime),_e(Vt.endTime)))}}},gn=kn=>{ct(kn.clientX)},_n=()=>{Qt()},_r=kn=>{kn.touches.length>0&&(kn.preventDefault(),ct(kn.touches[0].clientX))},Oa=()=>{Qt()};document.addEventListener("mousemove",gn,{passive:!1}),document.addEventListener("mouseup",_n),document.addEventListener("touchmove",_r,{passive:!1}),document.addEventListener("touchend",Oa),document.addEventListener("touchcancel",Oa)},Rr=p=>E=>{if(E.target.classList.contains("clip-segment-handle"))return;E.preventDefault(),E.stopPropagation(),wt(!1);const b=oe.current&&!oe.current.paused;Q(p);const T=c.find(Ae=>Ae.id===p);if(!T)return;const U=E.currentTarget.getBoundingClientRect(),S=(E.clientX-U.left)/U.width,$=T.startTime+S*(T.endTime-T.startTime),V=Math.max(T.startTime,Math.min(T.endTime,$));if(_e(V),ft(V),oe.current){const Ae=oe.current.currentTime,ct=Ae>=T.startTime&&Ae<=T.endTime;Ee.debug(`Segment click - playhead at ${de(Ae)} is ${ct?"inside":"outside"} segment (${de(T.startTime)} - ${de(T.endTime)})`),ct||(Math.abs(Ae-T.startTime)<Math.abs(Ae-T.endTime)?(Ee.debug(`Playhead outside segment - adjusting to segment start: ${de(T.startTime)}`),ft(T.startTime)):(Ee.debug(`Playhead outside segment - adjusting to segment end: ${de(T.endTime)}`),ft(T.endTime)))}if(ye(V),oe.current)if(O&&b){const ct=[...c].sort((Qt,gn)=>Qt.startTime-gn.startTime).findIndex(Qt=>Qt.id===p);if(ct!==-1){const Qt=new CustomEvent("update-segment-index",{detail:{segmentIndex:ct}});document.dispatchEvent(Qt)}oe.current.play().then(()=>{xt(!0)}).catch(Qt=>{console.error("Error continuing segments playback after segment click:",Qt)})}else b&&!O&&(ht(T),wt(!1),oe.current.play().then(()=>{xt(!0)}).catch(Ae=>{console.error("Error resuming playback after segment click:",Ae)}));const Te=E.clientX,Ce=U.top-10;if(Y({x:Te,y:Ce}),I>1&&W.current&&Je.current){W.current.getBoundingClientRect();const Ae=W.current.clientWidth,ct=Je.current.clientWidth,Qt=V/M*Ae,gn=Math.max(0,Qt-ct/2);Je.current.scrollTo({left:gn,behavior:"smooth"}),setTimeout(()=>{if(W.current&&Je.current){const _n=W.current.getBoundingClientRect(),Oa=V/M*Ae-Je.current.scrollLeft+_n.left;Y({x:Oa,y:Ce})}},300)}},wr=()=>[...c].sort((E,b)=>E.startTime-b.startTime).map((E,b)=>{const T=E.startTime/M*100,R=(E.endTime-E.startTime)/M*100,U=$S((E.startTime+E.endTime)/2,M);return v.jsxs("div",{className:`clip-segment ${Re===E.id?"selected":""}`,style:{left:`${T}%`,width:`${R}%`,backgroundColor:U,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Rr(E.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Chapter ",b+1]}),v.jsxs("div",{className:"clip-segment-time",children:[ki(E.startTime)," - ",ki(E.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",ki(E.endTime-E.startTime)]})]}),O?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:S=>{S.stopPropagation(),ta(E.id,!0)(S)},onTouchStart:S=>{S.stopPropagation(),ta(E.id,!0)(S)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:S=>{S.stopPropagation(),ta(E.id,!1)(S)},onTouchStart:S=>{S.stopPropagation(),ta(E.id,!1)(S)}})]})]},E.id)});X.useEffect(()=>{const p=E=>{const{segmentId:b}=E.detail;if(c.filter(R=>R.id!==b).length===0)Q(null),te(!1),ht(null);else if(Re===b){if(!c.find(S=>S.id===b))return;const U=hn(k);if(Q(null),te(!0),un(U),W.current){const S=W.current.getBoundingClientRect(),$=k/M*100,V=S.left+S.width*($/100);Y({x:V,y:S.top-10}),Ee.debug("Segment deleted, showing cutaway tooltip:",{position:de(k),availableSpace:de(U)})}}};return document.addEventListener("delete-segment",p),()=>{document.removeEventListener("delete-segment",p)}},[Re,c,k,M,W]),X.useEffect(()=>{const p=oe.current;if(!p)return;const E=()=>{De(!0),xt(!0)},b=()=>{De(!1),xt(!1)};return p.addEventListener("play",E),p.addEventListener("pause",b),()=>{p.removeEventListener("play",E),p.removeEventListener("pause",b)}},[]);const Dr=p=>{if(!W.current)return;const E=W.current.getBoundingClientRect(),T=(p.clientX-E.left)/E.width*M,R=Math.max(0,Math.min(M,T));typeof window<"u"&&(window.lastSeekedPosition=R)},[h,z]=X.useState(!1),J=X.useRef(!1),me=p=>{if(vt)return;p.stopPropagation(),p.preventDefault(),z(!0),J.current=!0,yn(k);const E=T=>{if(!W.current||!Je.current)return;const R=W.current.getBoundingClientRect();let U;if(I>1){const $=Je.current.scrollLeft,V=W.current.clientWidth;U=(T.clientX-R.left+$)/V}else U=(T.clientX-R.left)/R.width;U=Math.max(0,Math.min(1,U));const S=U*M;_e(S),ft(S),yn(S),typeof window<"u"&&(window.lastSeekedPosition=S),ye(S)},b=()=>{z(!1),J.current=!1,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",b)},et=p=>{if(vt)return;p.stopPropagation(),p.preventDefault(),z(!0),J.current=!0,yn(k);const E=T=>{if(!W.current||!Je.current||!T.touches[0])return;const R=W.current.getBoundingClientRect();let U;if(I>1){const $=Je.current.scrollLeft,V=W.current.clientWidth;U=(T.touches[0].clientX-R.left+$)/V}else U=(T.touches[0].clientX-R.left)/R.width;U=Math.max(0,Math.min(1,U));const S=U*M;_e(S),ft(S),yn(S),typeof window<"u"&&(window.lastSeekedPosition=S),ye(S)},b=()=>{z(!1),J.current=!1,document.removeEventListener("touchmove",E),document.removeEventListener("touchend",b),document.removeEventListener("touchcancel",b)};document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",b),document.addEventListener("touchcancel",b)};return X.useEffect(()=>{},[$a,Ea,dt]),v.jsxs("div",{className:`timeline-container-card ${O?"segments-playback-mode":""}`,children:[v.jsxs("div",{className:"timeline-header",children:[v.jsx("div",{className:"timeline-title",children:v.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),v.jsxs("div",{className:"duration-time",children:["Total Chapters:"," ",v.jsx("span",{children:de(c.reduce((p,E)=>p+(E.endTime-E.startTime),0))})]})]}),v.jsx("div",{ref:Je,className:`timeline-scroll-container ${O?"segments-playback-mode":""}`,style:{overflow:I>1?"auto":"hidden"},children:v.jsxs("div",{ref:W,className:"timeline-container",onClick:ea,onMouseMove:Dr,style:{width:`${I*100}%`,cursor:"pointer"},children:[v.jsxs("div",{className:"timeline-marker",style:{left:`${La}%`},children:[v.jsx("div",{className:"timeline-marker-head",onClick:p=>{if(p.stopPropagation(),c.find(E=>k>=E.startTime&&k<=E.endTime),Re||Ze){Q(null),te(!1);return}else yn(k),Ee.debug("Opening tooltip at:",de(k))},children:v.jsx("span",{className:"timeline-marker-head-icon",children:Re||Ze?"-":"+"})}),O?null:v.jsx("div",{className:`timeline-marker-drag ${h?"dragging":""}`,onMouseDown:me,onTouchStart:et,children:v.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),c.length===0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"trim-line-marker",style:{left:`${Zr}%`},children:v.jsx("div",{ref:Bt,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${xr}%`},children:v.jsx("div",{ref:We,className:"trim-handle right"})})]}),wr(),ti(),Re!==null&&v.jsxs("div",{className:`segment-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(La)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[Re&&v.jsx("div",{className:"tooltip-chapter-editor",children:v.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Add Chapter Text",value:nn,onChange:p=>rt(p.target.value),onBlur:ke,onMouseLeave:ke,rows:2,maxLength:200,onClick:p=>p.stopPropagation(),onMouseDown:p=>p.stopPropagation(),onMouseUp:p=>p.stopPropagation()})}),v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:Gt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:de(jn)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:Gt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsx("button",{className:`tooltip-action-btn delete ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Delete segment",disabled:O,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:p=>{p.stopPropagation();const E=new CustomEvent("delete-segment",{detail:{segmentId:Re}});document.dispatchEvent(E)},children:v.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:[v.jsx("path",{d:"M3 6h18"}),v.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"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),v.jsx("button",{className:`tooltip-action-btn scissors ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const E=new CustomEvent("split-segment",{detail:{segmentId:Re,time:P}});document.dispatchEvent(E)},children:v.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:[v.jsx("circle",{cx:"6",cy:"6",r:"3"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),v.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),v.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const E=c.find(b=>b.id===Re);if(E&&oe.current){if(wt(!0),Math.abs(oe.current.currentTime-E.endTime)<.05){Ee.debug(`Already at end boundary (${de(oe.current.currentTime)}), nudging position back slightly`);const b=Math.max(E.startTime,E.endTime-.1);oe.current.currentTime=b,ye(b),_e(b),Ee.debug(`Position adjusted to ${de(b)}`)}else ye(E.startTime),_e(E.startTime);ht(E),oe.current.play().then(()=>{xt(!0)}).catch(b=>{console.error("Error playing from beginning:",b)})}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Fe?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Fe?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Fe?oe.current&&(oe.current.pause(),xt(!1),wt(!1)):Ke()},children:Fe?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-in ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set start point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Re)){const b=c.map(R=>R.id===Re?{...R,startTime:P<R.endTime-.5?P:R.endTime-.5}:R),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:IS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-out ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set end point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Re)){const b=c.map(R=>R.id===Re?{...R,endTime:P>R.startTime+.5?P:R.startTime+.5}:R),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:YS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Ze&&Re===null&&v.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(La)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:Gt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:de(P)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:Gt(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsxs("button",{className:`tooltip-action-btn new-segment ${$t<.5||O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":$t<.5?"Not enough space for new segment":"Create new segment",disabled:$t<.5||O,onClick:async p=>{if(p.stopPropagation(),$t<.5)return;const E=P,b=E+$t,T={id:Date.now(),chapterTitle:Xe(E,c),startTime:E,endTime:b},R=[...c,T],U=new CustomEvent("update-segments",{detail:{segments:R,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(U),te(!1),setTimeout(()=>{const S=R[R.length-1];S&&(Q(S.id),Ee.debug("Created and selected new segment:",S.id))},100)},children:[v.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:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),v.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),v.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{if(p.stopPropagation(),oe.current){const E=P;wt(!0);const b=[...c].sort((V,Te)=>V.startTime-Te.startTime),T=[...b].reverse().find(V=>V.endTime<E),R=T?T.endTime+.025:0,U=b.find(V=>V.startTime>E),S=U?U.startTime:M,$={id:-999,chapterTitle:"Cutaway",startTime:R,endTime:S};ye(R),_e(R),xt(!1),setTimeout(()=>{ht($)},0),setTimeout(()=>{oe.current&&oe.current.play().then(()=>{xt(!0),Ee.debug("CUTAWAY PLAYBACK STARTED:",de(R),"to",de(S),T?`(after segment ${T.id}, offset +25ms from ${de(T.endTime)})`:"(from video start)",U?`(will stop at segment ${U.id})`:"(will play to end)")}).catch(V=>{console.error("Error playing cutaway:",V)})},50)}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Fe?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Fe?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Fe?oe.current&&(oe.current.pause(),xt(!1),wt(!1)):Ke()},children:Fe?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-end ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Adjust end of previous segment",disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,R)=>T.startTime-R.startTime).filter(T=>T.endTime<=P).sort((T,R)=>R.endTime-T.endTime)[0];if(b){const T=c.map(U=>U.id===b.id?{...U,endTime:P}:U),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(R),Ee.debug("Adjusted end of previous segment to:",de(P)),Q(b.id),te(!1)}else if(c.length>0){const T=[...c].sort((S,$)=>S.startTime-$.startTime);let R=!1,U=0;for(let S=0;S<T.length-1;S++){const $=T[S].endTime,V=T[S+1].startTime;if(P>$&&P<V){R=!0,U=$;break}}if(R){const S={id:Date.now(),chapterTitle:Xe(U,c),startTime:U,endTime:P},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(V),Ee.debug("Created new segment in gap from",de(U),"to",de(P)),Q(S.id),te(!1)}else if(P<T[0].startTime){const S={id:Date.now(),chapterTitle:Xe(0,c),startTime:0,endTime:P},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(V),Ee.debug("Created new segment from start to:",de(P)),Q(S.id),te(!1)}else{const S=[...c].sort(($,V)=>V.endTime-$.endTime)[0];if(S&&S.endTime<M){const $=c.map(Te=>Te.id===S.id?{...Te,endTime:M}:Te),V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(V),Q(S.id),te(!1)}}}else if(P>0){const T={id:Date.now(),chapterTitle:Xe(0,c),startTime:0,endTime:P},R=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(R),Ee.debug("Created new segment from start to:",de(P)),Q(T.id),te(!1)}},children:v.jsx("img",{src:qS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,R)=>T.startTime-R.startTime).filter(T=>T.startTime>=P).sort((T,R)=>T.startTime-R.startTime)[0];if(b){const T=c.map(U=>U.id===b.id?{...U,startTime:P}:U),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(R),Ee.debug("Adjusted start of next segment to:",de(P)),Q(b.id),te(!1)}else if(c.length>0){const T=[...c].sort((S,$)=>S.startTime-$.startTime);let R=!1,U=0;for(let S=0;S<T.length-1;S++){const $=T[S].endTime,V=T[S+1].startTime;if(P>$&&P<V){R=!0,U=V;break}}if(R){const S={id:Date.now(),chapterTitle:Xe(P,c),startTime:P,endTime:U},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(V),Ee.debug("Created new segment in gap from",de(P),"to",de(U)),Q(S.id),te(!1)}else if(P<T[0].startTime){const S={id:Date.now(),chapterTitle:Xe(P,c),startTime:P,endTime:T[0].startTime},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(V),Ee.debug("Created new segment from",de(P),"to first segment"),Q(S.id),te(!1)}else if(P>T[T.length-1].endTime){const S={id:Date.now(),chapterTitle:Xe(P,c),startTime:P,endTime:M},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(V),Ee.debug("Created new segment from",de(P),"to end"),Q(S.id),te(!1)}else{const S=T[0];if(S&&S.startTime>0){const $=c.map(Te=>Te.id===S.id?{...Te,startTime:0}:Te),V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(V),Q(S.id),te(!1)}}}else if(P<M){const T={id:Date.now(),chapterTitle:Xe(P,c),startTime:P,endTime:M},R=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(R),Ee.debug("Created new segment from",de(P),"to end"),Q(T.id),te(!1)}},children:v.jsx("img",{src:WS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),v.jsxs("div",{className:"timeline-controls",children:[v.jsxs("div",{className:"time-navigation",children:[v.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),v.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:p=>{if(p.key==="Enter"){const E=p.currentTarget.value;try{const b=E.split(":");let T=0,R=0,U=0,S=0;if(b.length===3){T=parseInt(b[0]),R=parseInt(b[1]);const V=b[2].split(".");U=parseInt(V[0]),V.length>1&&(S=parseInt(V[1].padEnd(3,"0").substring(0,3)))}else if(b.length===2){R=parseInt(b[0]);const V=b[1].split(".");U=parseInt(V[0]),V.length>1&&(S=parseInt(V[1].padEnd(3,"0").substring(0,3)))}const $=T*3600+R*60+U+S/1e3;if(!isNaN($)&&$>=0&&$<=M){ye($);const V=Te=>{const Ce=c.find(Ae=>{const ct=Te>=Ae.startTime&&Te<=Ae.endTime,Qt=Math.abs(Te-Ae.startTime)<.001,gn=Math.abs(Te-Ae.endTime)<.001;return ct||Qt||gn});if(W.current&&Je.current){const Ae=W.current.getBoundingClientRect();let ct;if(I>1)ct=Ae.left-Je.current.scrollLeft+Te/M*Ae.width;else{const Qt=Te/M;ct=Ae.left+Ae.width*Qt}Y({x:ct,y:Ae.top-10}),_e(Te),Ce?(Q(Ce.id),te(!1)):(Q(null),te(!0))}};setTimeout(()=>V($),10)}}catch(b){console.error("Invalid time format:",b)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const p=()=>{const E=c.find(b=>{const T=k>=b.startTime&&k<=b.endTime,R=Math.abs(k-b.startTime)<.001,U=Math.abs(k-b.endTime)<.001;return T||R||U});if(W.current&&Je.current){const b=W.current.getBoundingClientRect();let T;if(I>1)T=b.left-Je.current.scrollLeft+k/M*b.width;else{const R=k/M;T=b.left+b.width*R}if(Y({x:T,y:b.top-10}),_e(k),E)Q(E.id),te(!1);else{const R=hn(k);un(R),R>=.5?(Q(null),te(!0)):(Q(null),te(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{ye(k-.01),setTimeout(p,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{ye(k-.001),setTimeout(p,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{ye(k+.001),setTimeout(p,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{ye(k+.01),setTimeout(p,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),v.jsxs("div",{className:"controls-right",children:[v.jsxs("div",{className:"zoom-dropdown-container",children:[v.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Dn(!Ct),children:["Zoom ",I,"x",v.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:v.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),Ct&&v.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(p=>v.jsxs("div",{className:`zoom-option ${I===p?"selected":""}`,onClick:()=>{ie(p),Dn(!1)},children:[I===p&&v.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:v.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",p,"x"]},p))})]}),v.jsx("div",{className:"auto-saved-time",style:{color:ne?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:ne?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"auto-save-spinner",style:{display:"inline-block",width:"12px",height:"12px",border:"2px solid #f3f3f3",borderTop:"2px solid #1976d2",borderRadius:"50%",animation:"spin 1s linear infinite"}}),"Auto saving..."]}):q?`Auto saved: ${q}`:"Not saved yet"}),v.jsx("div",{className:"save-buttons-row",children:v.jsx("button",{onClick:()=>G(!0),className:"save-chapters-button","data-tooltip":c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear all chapters":"Save chapters",children:c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear Chapters":"Save Chapters"})}),v.jsx(Wu,{isOpen:mn,onClose:()=>G(!1),title:"Save Chapters",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>G(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:ei,children:c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear Chapters":"Save Chapters"})]}),children:v.jsx("p",{className:"modal-message",children:(()=>{const p=c.filter(E=>E.chapterTitle&&E.chapterTitle.trim()).length;return p===0?"Are you sure you want to clear all chapters? This will remove all existing chapters from the database.":`Are you sure you want to save the chapters? This will save ${p} chapters to the database.`})()})}),v.jsxs(Wu,{isOpen:ge,onClose:()=>{},title:"Processing Video",children:[v.jsx("div",{className:"modal-spinner",children:v.jsx("div",{className:"spinner"})}),v.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),v.jsx(Wu,{isOpen:dt,onClose:()=>{Dt(!1)},title:"Video Edited Successfully",children:v.jsx("div",{className:"modal-success-content",children:v.jsxs("p",{className:"modal-message text-center redirect-message",children:[v.jsx("span",{style:{fontWeight:"bold"},children:"Your chapters have been saved successfully!"}),v.jsx("br",{}),v.jsx("a",{href:$a,className:"media-page-link",style:GS,children:"Click here to navigate to the media page"})," ","or close this window to continue editing the chapters."]})})}),v.jsxs(Wu,{isOpen:Ht,onClose:()=>Nt(!1),title:"Video Processing Error",children:[v.jsxs("div",{className:"modal-error-content",children:[v.jsx("div",{className:"modal-error-icon",children:v.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:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),v.jsx("p",{className:"modal-message text-center error-message",children:jt})]}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>Nt(!1),className:"modal-choice-button centered-choice",children:[v.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:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),vt&&v.jsx("div",{className:"mobile-timeline-overlay",children:v.jsxs("div",{className:"mobile-timeline-message",children:[v.jsx("p",{children:"Please play the video first to enable timeline controls"}),v.jsx("div",{className:"mobile-play-icon"})]})})]})},QS=({onSplit:k,onReset:M,onUndo:ee,onRedo:Le,onPlay:je,canUndo:I,canRedo:c,isPlaying:Rt=!1})=>{const[ve,he]=X.useState(!1);X.useEffect(()=>{const re=()=>{he(window.innerWidth<=640)};return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]);const st=()=>{je()};return v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsx("div",{className:"button-group play-buttons-group",children:v.jsx("button",{className:"button play-button",onClick:st,"data-tooltip":Rt?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:Rt?v.jsxs(v.Fragment,{children:[v.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:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Pause"}),v.jsx("span",{className:"short-text",children:"Pause"})]}):v.jsxs(v.Fragment,{children:[v.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:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play"}),v.jsx("span",{className:"short-text",children:"Play"})]})})}),v.jsxs("div",{className:"button-group secondary",children:[v.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!I,onClick:ee,children:[v.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:[v.jsx("path",{d:"M9 14 4 9l5-5"}),v.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"})]}),v.jsx("span",{className:"button-text",children:"Undo"})]}),v.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!c,onClick:Le,children:[v.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:[v.jsx("path",{d:"m15 14 5-5-5-5"}),v.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),v.jsx("span",{className:"button-text",children:"Redo"})]}),v.jsx("div",{className:"divider"}),v.jsxs("button",{className:"button",onClick:M,"data-tooltip":"Reset to full video",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.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"})}),v.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},KS=({segments:k,selectedSegmentId:M})=>{const ee=[...k].sort((I,c)=>I.startTime-c.startTime),Le=I=>{const c=new CustomEvent("delete-segment",{detail:{segmentId:I}});document.dispatchEvent(c)},je=I=>`segment-default-color segment-color-${I%8+1}`;return ee.find(I=>I.id===M),v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),ee.map((I,c)=>v.jsxs("div",{className:`segment-item ${je(c)} ${M===I.id?"selected":""}`,children:[v.jsx("div",{className:"segment-content",children:v.jsxs("div",{className:"segment-info",children:[v.jsx("div",{className:"segment-title",children:I.chapterTitle?v.jsx("span",{className:"chapter-title",children:I.chapterTitle}):v.jsxs("span",{className:"default-title",children:["Chapter ",c+1]})}),v.jsxs("div",{className:"segment-time",children:[ki(I.startTime)," - ",ki(I.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",FS(I.endTime-I.startTime)]})]})}),v.jsx("div",{className:"segment-actions",children:v.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>Le(I.id),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.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"})})})})]},I.id)),ee.length===0&&v.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},JS=({videoRef:k,onPlay:M})=>{const[ee,Le]=X.useState(!1);X.useEffect(()=>{const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Le(c)},[]),X.useEffect(()=>{const I=k.current;if(!I)return;const c=()=>{Le(!1)};return I.addEventListener("play",c),()=>{I.removeEventListener("play",c)}},[k]);const je=()=>{M()};return ee?v.jsx("div",{className:"mobile-play-prompt-overlay",children:v.jsx("div",{className:"mobile-play-prompt",children:v.jsx("button",{className:"mobile-play-button",onClick:je,children:"Click to start editing..."})})}):null},ZS=()=>{const k=L=>[...L].sort((se,ne)=>se.startTime-ne.startTime).map((se,ne)=>({...se,chapterTitle:`Chapter ${ne+1}`})),M=L=>{const q=L.split(":");if(q.length!==3)return 0;const se=parseInt(q[0],10)||0,ne=parseInt(q[1],10)||0,we=parseFloat(q[2])||0;return se*3600+ne*60+we},ee=X.useRef(null),[Le,je]=X.useState(0),[I,c]=X.useState(0),[Rt,ve]=X.useState(!1),[he,st]=X.useState(!1),[re,Ue]=X.useState(0),[ie,ye]=X.useState(0),[oe,Wt]=X.useState([]),[vt,Fe]=X.useState(1),[De,Ke]=X.useState([]),[O,Xe]=X.useState(null),[W,Bt]=X.useState([]),[We,Et]=X.useState(-1),[At,Re]=X.useState(!1),[Q,Ze]=X.useState(!1),[te,pe]=X.useState(0);X.useEffect(()=>{var L;if(W.length>0){const q=((L=W[We])==null?void 0:L.action)||"";q!=="save"&&q!=="save_copy"&&q!=="save_segments"&&Re(!0)}},[W,We]);const Y=()=>{const L=navigator.userAgent||navigator.vendor||window.opera;return/Safari/.test(L)&&!/Chrome/.test(L)&&!/Chromium/.test(L)};X.useEffect(()=>{const L=ee.current;if(!L)return;const q=()=>{Ee.debug("Video loadedmetadata event fired, duration:",L.duration),c(L.duration),ye(L.duration),(async()=>{var G;let rt=[];const Gt=typeof window<"u"&&((G=window.MEDIA_DATA)==null?void 0:G.chapters)||[];if(Gt.length>0)for(let ge=0;ge<Gt.length;ge++){const Ve=Gt[ge],dt=M(Ve.startTime),Dt=M(Ve.endTime),Ht={id:ge+1,chapterTitle:Ve.chapterTitle,startTime:dt,endTime:Dt};rt.push(Ht)}else rt=[];const mn={trimStart:0,trimEnd:L.duration,splitPoints:[],clipSegments:rt};Bt([mn]),Et(0),Ke(rt),Ee.debug("Editor initialized with segments:",rt.length)})()},se=()=>{L.duration&&I===0&&q()},ne=()=>{L.duration&&I===0&&q()},we=()=>{je(L.currentTime)},qe=()=>{ve(!0),Zt(!0)},at=()=>{ve(!1)},ke=()=>{ve(!1),L.currentTime=re};if(L.addEventListener("loadedmetadata",q),L.addEventListener("timeupdate",we),L.addEventListener("play",qe),L.addEventListener("pause",at),L.addEventListener("ended",ke),Y()){L.addEventListener("canplay",se),L.addEventListener("loadeddata",ne);const Be=setTimeout(()=>{L.duration&&I===0&&q()},1e3);return()=>{L.removeEventListener("loadedmetadata",q),L.removeEventListener("timeupdate",we),L.removeEventListener("play",qe),L.removeEventListener("pause",at),L.removeEventListener("ended",ke),L.removeEventListener("canplay",se),L.removeEventListener("loadeddata",ne),clearTimeout(Be)}}return()=>{L.removeEventListener("loadedmetadata",q),L.removeEventListener("timeupdate",we),L.removeEventListener("play",qe),L.removeEventListener("pause",at),L.removeEventListener("ended",ke)}},[]),X.useEffect(()=>{if(Y()&&ee.current){const L=ee.current,q=()=>{(async()=>{try{if(Ee.debug("Safari: Attempting auto-initialization on user interaction"),await L.play(),L.pause(),L.duration>0&&De.length===0){Ee.debug("Safari: Successfully initialized metadata with empty state"),c(L.duration),ye(L.duration),Ke([]);const we={trimStart:0,trimEnd:L.duration,splitPoints:[],clipSegments:[]};Bt([we]),Et(0)}}catch{}})()},se=()=>{De.length===0&&L.duration===0&&q()};return document.addEventListener("click",se),document.addEventListener("keydown",se),()=>{document.removeEventListener("click",se),document.removeEventListener("keydown",se)}}},[De.length]);const P=async()=>{if(Y()&&ee.current&&I===0){const L=ee.current;try{return Ee.debug("Safari: Initializing on user interaction"),await L.play(),L.pause(),!0}catch{return!1}}return!1},_e=L=>{const q=ee.current;if(!q)return;if(Y()&&I===0){P().then(()=>{setTimeout(()=>{q&&(q.currentTime=L,je(L))},100)});return}const se=!q.paused;q.currentTime=L,je(L),typeof window<"u"&&(window.lastSeekedPosition=L),se&&q.play().then(()=>{ve(!0)}).catch(ne=>{console.error("Error resuming playback:",ne),ve(!1)})},Ct=L=>{const q={trimStart:re,trimEnd:ie,splitPoints:[...oe],clipSegments:JSON.parse(JSON.stringify(De)),action:L||"manual_save"},se=W[We],ne=()=>{if(!se||se.clipSegments.length!==q.clipSegments.length)return!0;for(let at=0;at<q.clipSegments.length;at++){const ke=se.clipSegments[at],Be=q.clipSegments[at];if(!ke||!Be||Math.abs(ke.startTime-Be.startTime)>.001||Math.abs(ke.endTime-Be.endTime)>.001)return!0}return!1},we=!se||se.trimStart!==q.trimStart||se.trimEnd!==q.trimEnd||se.splitPoints.length!==q.splitPoints.length||ne(),qe=q.action!==void 0;if(we||qe){const at=We;Bt(ke=>at<ke.length-1?[...ke.slice(0,at+1),q]:[...ke,q]),Et(ke=>ke+1)}};X.useEffect(()=>{const L=q=>{if(q.detail){const{time:se,isStart:ne,recordHistory:we,action:qe}=q.detail;ne?Ue(se):ye(se),we&&setTimeout(()=>{Ct(qe||(ne?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",L),()=>{document.removeEventListener("update-trim",L)}},[]),X.useEffect(()=>{const L=ne=>{if(ne.detail&&ne.detail.segments){const we=ne.detail.recordHistory!==!1,qe=ne.detail.action||"update_segments";Ke(ne.detail.segments),we&&setTimeout(()=>{const at=JSON.parse(JSON.stringify(ne.detail.segments)),ke={trimStart:re,trimEnd:ie,splitPoints:[...oe],clipSegments:at,action:qe},Be=We;Bt(rt=>Be<rt.length-1?[...rt.slice(0,Be+1),ke]:[...rt,ke]),Et(rt=>rt+1)},20)}},q=async ne=>{const we=ne;if(we.detail&&typeof we.detail.time=="number"&&typeof we.detail.segmentId=="number"){const qe=we.detail.time,at=we.detail.segmentId;_e(qe);const ke=De.find(ge=>ge.id===at);if(!ke||qe<=ke.startTime||qe>=ke.endTime)return;const Be=[...De],rt=Be.findIndex(ge=>ge.id===at);if(rt===-1)return;Be.splice(rt,1);const Gt={id:Date.now(),chapterTitle:"",startTime:ke.startTime,endTime:qe},mn={id:Date.now()+1,chapterTitle:"",startTime:qe,endTime:ke.endTime};Be.push(Gt,mn);const G=k(Be);Ke(G),Ct("split_segment")}},se=async ne=>{var qe;const we=ne;if(we.detail&&typeof we.detail.segmentId=="number"){const at=we.detail.segmentId,ke=De.filter(Be=>Be.id!==at);if(ke.length!==De.length){if(ke.length===0)Ke([]),Ue(0),ye(((qe=ee.current)==null?void 0:qe.duration)||0),Wt([]);else{const Be=k(ke);Ke(Be)}Ct("delete_segment")}}};return document.addEventListener("update-segments",L),document.addEventListener("split-segment",q),document.addEventListener("delete-segment",se),()=>{document.removeEventListener("update-segments",L),document.removeEventListener("split-segment",q),document.removeEventListener("delete-segment",se)}},[De,I]);const Dn=L=>{Ue(L),Ct("adjust_trim_start")},$t=L=>{ye(L),Ct("adjust_trim_end")},un=async()=>{if(ee.current&&!oe.includes(Le)){const L=[...oe,Le].sort((ne,we)=>ne-we);Wt(L);const q=[];let se=0;for(let ne=0;ne<=L.length;ne++){const we=ne<L.length?L[ne]:I;se<we&&(q.push({id:Date.now()+ne,chapterTitle:`Chapter ${ne+1}`,startTime:se,endTime:we}),se=we)}Ke(q),Ct("create_split_points")}},Ut=async()=>{Ue(0),ye(I),Wt([]),Ke([]),Ct("reset_all")},xt=()=>{if(We>0){const L=W[We-1];Ee.debug(`** UNDO ** to position ${We-1}, action: ${L.action}, segments: ${L.clipSegments.length}`),Ee.debug("Segment details after undo:",L.clipSegments.map(q=>`ID: ${q.id}, Time: ${de(q.startTime)} - ${de(q.endTime)}`)),Ue(L.trimStart),ye(L.trimEnd),Wt([...L.splitPoints]),Ke(JSON.parse(JSON.stringify(L.clipSegments))),Et(We-1),setTimeout(()=>{const q=new CustomEvent("undo-redo-autosave");document.dispatchEvent(q)},10)}},qt=()=>{if(We<W.length-1){const L=W[We+1];Ee.debug(`** REDO ** to position ${We+1}, action: ${L.action}, segments: ${L.clipSegments.length}`),Ee.debug("Segment details after redo:",L.clipSegments.map(q=>`ID: ${q.id}, Time: ${de(q.startTime)} - ${de(q.endTime)}`)),Ue(L.trimStart),ye(L.trimEnd),Wt([...L.splitPoints]),Ke(JSON.parse(JSON.stringify(L.clipSegments))),Et(We+1),setTimeout(()=>{const q=new CustomEvent("undo-redo-autosave");document.dispatchEvent(q)},10)}},ht=L=>{Fe(L)},jn=()=>{const L=ee.current;L&&(L.muted=!L.muted,st(!he))},ft=(L,q)=>{Ke(se=>se.map(ne=>ne.id===L?{...ne,...q}:ne)),Re(!0)},tn=async L=>{var q;try{const se=(q=window.MEDIA_DATA)==null?void 0:q.mediaId;if(!se){console.error("No media ID found");return}let ne=L.map(rt=>({startTime:rt.from,endTime:rt.to,chapterTitle:rt.chapterTitle})).sort((rt,Gt)=>{const mn=M(rt.startTime),G=M(Gt.startTime);return mn-G});if(ne.length===1){const rt=ne[0],Gt=M(rt.startTime),mn=M(rt.endTime);Gt<=.1&&Math.abs(mn-I)<=.1&&(Ee.debug("Manual save: Single chapter spans full video - sending empty array"),ne=[])}const we={chapters:ne},qe=wt(),at={"Content-Type":"application/json"};qe&&(at["X-CSRFToken"]=qe);const ke=await fetch(`/api/v1/media/${se}/chapters`,{method:"POST",headers:at,body:JSON.stringify(we)});if(!ke.ok)throw new Error(`Failed to save chapters: ${ke.status}`);const Be=await ke.json();Re(!1)}catch(se){console.error("Error saving chapters:",se)}},wt=()=>{var ne;const se=`; ${document.cookie}`.split("; csrftoken=");return se.length===2&&((ne=se.pop())==null?void 0:ne.split(";").shift())||""},Je=L=>{Xe(L)},nn=L=>{(!an||rn)&&_e(L)},an=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[rn,Zt]=X.useState(!1);return X.useEffect(()=>{if(!Q||!ee.current)return;const L=ee.current,q=[...De].sort((ne,we)=>ne.startTime-we.startTime),se=()=>{const ne=q[te];if(!ne)return;const we=L.currentTime;if(we<ne.startTime){L.currentTime=ne.startTime;return}if(we>=ne.endTime-.01)if(te<q.length-1){const qe=q[te+1];L.currentTime=qe.startTime,pe(te+1),L.paused&&L.play().catch(at=>{console.error("Error continuing segment playback:",at)})}else L.pause(),Ze(!1),pe(0),L.removeEventListener("timeupdate",se)};return L.addEventListener("timeupdate",se),L.paused&&q.length>0&&(L.currentTime=q[0].startTime,L.play().catch(console.error)),()=>{L.removeEventListener("timeupdate",se)}},[Q,te,De]),X.useEffect(()=>{const L=q=>{const{segmentIndex:se}=q.detail;Q&&se!==te&&pe(se)};return document.addEventListener("update-segment-index",L),()=>{document.removeEventListener("update-segment-index",L)}},[Q,te]),{videoRef:ee,currentTime:Le,duration:I,isPlaying:Rt,setIsPlaying:ve,isMuted:he,isPlayingSegments:Q,trimStart:re,trimEnd:ie,splitPoints:oe,zoomLevel:vt,clipSegments:De,selectedSegmentId:O,hasUnsavedChanges:At,historyPosition:We,history:W,handleTrimStartChange:Dn,handleTrimEndChange:$t,handleZoomChange:ht,handleMobileSafeSeek:nn,handleSplit:un,handleReset:Ut,handleUndo:xt,handleRedo:qt,handlePlaySegments:()=>{const L=ee.current;if(!(!L||De.length===0))if(Q)L.pause(),Ze(!1),pe(0);else{Ze(!0),pe(0);const q=[...De].sort((se,ne)=>se.startTime-ne.startTime);L.currentTime=q[0].startTime,L.play().catch(se=>{console.error("Error starting segments playback:",se),Ze(!1)})}},toggleMute:jn,handleSegmentUpdate:ft,handleChapterSave:tn,handleSelectedSegmentChange:Je,isMobile:an,videoInitialized:rn,setVideoInitialized:Zt,initializeSafariIfNeeded:P}},e0=()=>{const{videoRef:k,currentTime:M,duration:ee,isPlaying:Le,setIsPlaying:je,isMuted:I,trimStart:c,trimEnd:Rt,splitPoints:ve,zoomLevel:he,clipSegments:st,selectedSegmentId:re,hasUnsavedChanges:Ue,historyPosition:ie,history:ye,handleTrimStartChange:oe,handleTrimEndChange:Wt,handleZoomChange:vt,handleMobileSafeSeek:Fe,handleSplit:De,handleReset:Ke,handleUndo:O,handleRedo:Xe,toggleMute:W,handleSegmentUpdate:Bt,handleChapterSave:We,handleSelectedSegmentChange:Et,isMobile:At,videoInitialized:Re,setVideoInitialized:Q,initializeSafariIfNeeded:Ze}=ZS(),te=async()=>{if(!k.current)return;const pe=k.current;if(Le){pe.pause(),je(!1);return}if(ee===0&&await Ze()){setTimeout(()=>te(),200);return}pe.play().then(()=>{je(!0),Q(!0),Ee.debug("Continuous playback started from:",de(pe.currentTime))}).catch(Y=>{console.error("Error playing video:",Y)})};return X.useEffect(()=>{const pe=Y=>{const P=Y.target;if(!(P.tagName==="INPUT"||P.tagName==="TEXTAREA"||P.isContentEditable))switch(Y.code){case"Space":Y.preventDefault(),te();break;case"ArrowLeft":if(Y.preventDefault(),k.current){const _e=Math.max(M-10,0);Fe(_e),Ee.debug("Jumped backward 10 seconds to:",de(_e))}break;case"ArrowRight":if(Y.preventDefault(),k.current){const _e=Math.min(M+10,ee);Fe(_e),Ee.debug("Jumped forward 10 seconds to:",de(_e))}break}};return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)}},[te,Fe,M,ee,k]),v.jsxs("div",{className:"bg-background min-h-screen",children:[v.jsx(JS,{videoRef:k,onPlay:te}),v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(BS,{videoRef:k,currentTime:M,duration:ee,isPlaying:Le,isMuted:I,onPlayPause:te,onSeek:Fe,onToggleMute:W}),v.jsx(QS,{onSplit:De,onReset:Ke,onUndo:O,onRedo:Xe,onPlay:te,isPlaying:Le,canUndo:ie>0,canRedo:ie<ye.length-1}),v.jsx(XS,{currentTime:M,duration:ee,thumbnails:[],trimStart:c,trimEnd:Rt,splitPoints:ve,zoomLevel:he,clipSegments:st,selectedSegmentId:re,onSelectedSegmentChange:Et,onSegmentUpdate:Bt,onChapterSave:We,onTrimStartChange:oe,onTrimEndChange:Wt,onZoomChange:vt,onSeek:Fe,videoRef:k,hasUnsavedChanges:Ue,isIOSUninitialized:At&&!Re,isPlaying:Le,setIsPlaying:je,onPlayPause:te}),v.jsx(KS,{segments:st,selectedSegmentId:re})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Rm=()=>{const k=document.getElementById("chapters-editor-root");k&&gm(k).render(v.jsx(e0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rm):Rm()})();
//# sourceMappingURL=chapters-editor.js.map