mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
204 lines
401 KiB
JavaScript
204 lines
401 KiB
JavaScript
(function(){"use strict";var dm={exports:{}},Jc={exports:{}},ul={exports:{}};ul.exports;var vm;function U0(){return vm||(vm=1,function(M,R){/**
|
|
* @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 be="18.3.1",Re=Symbol.for("react.element"),we=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),re=Symbol.for("react.context"),Tt=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Qe=Symbol.for("react.offscreen"),I=Symbol.iterator,xt="@@iterator";function ot(s){if(s===null||typeof s!="object")return null;var m=I&&s[I]||s[xt];return typeof m=="function"?m:null}var Le={current:null},rt={transition:null},Ce={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},Z={},zt=null;function Et(s){zt=s}Z.setExtraStackFrame=function(s){zt=s},Z.getCurrentStack=null,Z.getStackAddendum=function(){var s="";zt&&(s+=zt);var m=Z.getCurrentStack;return m&&(s+=m()||""),s};var st=!1,Ot=!1,ke=!1,X=!1,tt=!1,oe={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:rt,ReactCurrentOwner:U};oe.ReactDebugCurrentFrame=Z,oe.ReactCurrentActQueue=Ce;function Se(s){{for(var m=arguments.length,_=new Array(m>1?m-1:0),O=1;O<m;O++)_[O-1]=arguments[O];G("warn",s,_)}}function q(s){{for(var m=arguments.length,_=new Array(m>1?m-1:0),O=1;O<m;O++)_[O-1]=arguments[O];G("error",s,_)}}function G(s,m,_){{var O=oe.ReactDebugCurrentFrame,J=O.getStackAddendum();J!==""&&(m+="%s",_=_.concat([J]));var Ue=_.map(function(xe){return String(xe)});Ue.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ue)}}var he={};function mt(s,m){{var _=s.constructor,O=_&&(_.displayName||_.name)||"ReactClass",J=O+"."+m;if(he[J])return;q("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,O),he[J]=!0}}var At={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,_){mt(s,"forceUpdate")},enqueueReplaceState:function(s,m,_,O){mt(s,"replaceState")},enqueueSetState:function(s,m,_,O){mt(s,"setState")}},ct=Object.assign,en={};Object.freeze(en);function jt(s,m,_){this.props=s,this.context=m,this.refs=en,this.updater=_||At}jt.prototype.isReactComponent={},jt.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")},jt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ye={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)."]},ze=function(s,m){Object.defineProperty(jt.prototype,s,{get:function(){Se("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Ve in Ye)Ye.hasOwnProperty(Ve)&&ze(Ve,Ye[Ve])}function vn(){}vn.prototype=jt.prototype;function Ze(s,m,_){this.props=s,this.context=m,this.refs=en,this.updater=_||At}var Gt=Ze.prototype=new vn;Gt.constructor=Ze,ct(Gt,jt.prototype),Gt.isPureReactComponent=!0;function St(){var s={current:null};return Object.seal(s),s}var it=Array.isArray;function an(s){return it(s)}function on(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,_=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return _}}function ln(s){try{return cn(s),!1}catch{return!0}}function cn(s){return""+s}function z(s){if(ln(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",on(s)),cn(s)}function ue(s,m,_){var O=s.displayName;if(O)return O;var J=m.displayName||m.name||"";return J!==""?_+"("+J+")":_}function De(s){return s.displayName||"Context"}function Te(s){if(s==null)return null;if(typeof s.tag=="number"&&q("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 ve:return"Fragment";case we:return"Portal";case W:return"Profiler";case f:return"StrictMode";case ce:return"Suspense";case je:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case re:var m=s;return De(m)+".Consumer";case ge:var _=s;return De(_._context)+".Provider";case Tt:return ue(s,s.render,"ForwardRef");case te:var O=s.displayName||null;return O!==null?O:Te(s.type)||"Memo";case Be:{var J=s,Ue=J._payload,xe=J._init;try{return Te(xe(Ue))}catch{return null}}}return null}var Oe=Object.prototype.hasOwnProperty,et={key:!0,ref:!0,__self:!0,__source:!0},Je,Ie,We;We={};function ft(s){if(Oe.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function pn(s){if(Oe.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Ln(s,m){var _=function(){Je||(Je=!0,q("%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))};_.isReactWarning=!0,Object.defineProperty(s,"key",{get:_,configurable:!0})}function mn(s,m){var _=function(){Ie||(Ie=!0,q("%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))};_.isReactWarning=!0,Object.defineProperty(s,"ref",{get:_,configurable:!0})}function K(s){if(typeof s.ref=="string"&&U.current&&s.__self&&U.current.stateNode!==s.__self){var m=Te(U.current.type);We[m]||(q('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),We[m]=!0)}}var ye=function(s,m,_,O,J,Ue,xe){var Ge={$$typeof:Re,type:s,key:m,ref:_,props:xe,_owner:Ue};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function Ae(s,m,_){var O,J={},Ue=null,xe=null,Ge=null,ht=null;if(m!=null){ft(m)&&(xe=m.ref,K(m)),pn(m)&&(z(m.key),Ue=""+m.key),Ge=m.__self===void 0?null:m.__self,ht=m.__source===void 0?null:m.__source;for(O in m)Oe.call(m,O)&&!et.hasOwnProperty(O)&&(J[O]=m[O])}var Vt=arguments.length-2;if(Vt===1)J.children=_;else if(Vt>1){for(var Qt=Array(Vt),Kt=0;Kt<Vt;Kt++)Qt[Kt]=arguments[Kt+2];Object.freeze&&Object.freeze(Qt),J.children=Qt}if(s&&s.defaultProps){var vt=s.defaultProps;for(O in vt)J[O]===void 0&&(J[O]=vt[O])}if(Ue||xe){var nn=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ue&&Ln(J,nn),xe&&mn(J,nn)}return ye(s,Ue,xe,Ge,ht,U.current,J)}function nt(s,m){var _=ye(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return _}function Ut(s,m,_){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var O,J=ct({},s.props),Ue=s.key,xe=s.ref,Ge=s._self,ht=s._source,Vt=s._owner;if(m!=null){ft(m)&&(xe=m.ref,Vt=U.current),pn(m)&&(z(m.key),Ue=""+m.key);var Qt;s.type&&s.type.defaultProps&&(Qt=s.type.defaultProps);for(O in m)Oe.call(m,O)&&!et.hasOwnProperty(O)&&(m[O]===void 0&&Qt!==void 0?J[O]=Qt[O]:J[O]=m[O])}var Kt=arguments.length-2;if(Kt===1)J.children=_;else if(Kt>1){for(var vt=Array(Kt),nn=0;nn<Kt;nn++)vt[nn]=arguments[nn+2];J.children=vt}return ye(s.type,Ue,xe,Ge,ht,Vt,J)}function Wt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Re}var Ht=".",zn=":";function Xt(s){var m=/[=:]/g,_={"=":"=0",":":"=2"},O=s.replace(m,function(J){return _[J]});return"$"+O}var It=!1,Ft=/\/+/g;function Fn(s){return s.replace(Ft,"$&/")}function xa(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(z(s.key),Xt(""+s.key)):m.toString(36)}function ma(s,m,_,O,J){var Ue=typeof s;(Ue==="undefined"||Ue==="boolean")&&(s=null);var xe=!1;if(s===null)xe=!0;else switch(Ue){case"string":case"number":xe=!0;break;case"object":switch(s.$$typeof){case Re:case we:xe=!0}}if(xe){var Ge=s,ht=J(Ge),Vt=O===""?Ht+xa(Ge,0):O;if(an(ht)){var Qt="";Vt!=null&&(Qt=Fn(Vt)+"/"),ma(ht,m,Qt,"",function(cf){return cf})}else ht!=null&&(Wt(ht)&&(ht.key&&(!Ge||Ge.key!==ht.key)&&z(ht.key),ht=nt(ht,_+(ht.key&&(!Ge||Ge.key!==ht.key)?Fn(""+ht.key)+"/":"")+Vt)),m.push(ht));return 1}var Kt,vt,nn=0,gn=O===""?Ht:O+zn;if(an(s))for(var Ai=0;Ai<s.length;Ai++)Kt=s[Ai],vt=gn+xa(Kt,Ai),nn+=ma(Kt,m,_,vt,J);else{var hl=ot(s);if(typeof hl=="function"){var Mr=s;hl===Mr.entries&&(It||Se("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),It=!0);for(var yl=hl.call(Mr),gl,sf=0;!(gl=yl.next()).done;)Kt=gl.value,vt=gn+xa(Kt,sf++),nn+=ma(Kt,m,_,vt,J)}else if(Ue==="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 nn}function lr(s,m,_){if(s==null)return s;var O=[],J=0;return ma(s,O,"","",function(Ue){return m.call(_,Ue,J++)}),O}function Na(s){var m=0;return lr(s,function(){m++}),m}function Jr(s,m,_){lr(s,function(){m.apply(this,arguments)},_)}function Er(s){return lr(s,function(m){return m})||[]}function Zr(s){if(!Wt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function ei(s){var m={$$typeof:re,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:ge,_context:m};var _=!1,O=!1,J=!1;{var Ue={$$typeof:re,_context:m};Object.defineProperties(Ue,{Provider:{get:function(){return O||(O=!0,q("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(xe){m.Provider=xe}},_currentValue:{get:function(){return m._currentValue},set:function(xe){m._currentValue=xe}},_currentValue2:{get:function(){return m._currentValue2},set:function(xe){m._currentValue2=xe}},_threadCount:{get:function(){return m._threadCount},set:function(xe){m._threadCount=xe}},Consumer:{get:function(){return _||(_=!0,q("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(xe){J||(Se("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),J=!0)}}}),m.Consumer=Ue}return m._currentRenderer=null,m._currentRenderer2=null,m}var Ra=-1,fn=0,En=1,ja=2;function Ua(s){if(s._status===Ra){var m=s._result,_=m();if(_.then(function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=En,xe._result=Ue}},function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=ja,xe._result=Ue}}),s._status===Ra){var O=s;O._status=fn,O._result=_}}if(s._status===En){var J=s._result;return J===void 0&&q(`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?`,J),"default"in J||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,J),J.default}else throw s._result}function Cr(s){var m={_status:Ra,_result:s},_={$$typeof:Be,_payload:m,_init:Ua};{var O,J;Object.defineProperties(_,{defaultProps:{configurable:!0,get:function(){return O},set:function(Ue){q("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),O=Ue,Object.defineProperty(_,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return J},set:function(Ue){q("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."),J=Ue,Object.defineProperty(_,"propTypes",{enumerable:!0})}}})}return _}function xr(s){s!=null&&s.$$typeof===te?q("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?q("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&q("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)&&q("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:Tt,render:s};{var _;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return _},set:function(O){_=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return m}var h;h=Symbol.for("react.module.reference");function B(s){return!!(typeof s=="string"||typeof s=="function"||s===ve||s===W||tt||s===f||s===ce||s===je||X||s===Qe||st||Ot||ke||typeof s=="object"&&s!==null&&(s.$$typeof===Be||s.$$typeof===te||s.$$typeof===ge||s.$$typeof===re||s.$$typeof===Tt||s.$$typeof===h||s.getModuleId!==void 0))}function ne(s,m){B(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var _={$$typeof:te,type:s,compare:m===void 0?null:m};{var O;Object.defineProperty(_,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(J){O=J,!s.name&&!s.displayName&&(s.displayName=J)}})}return _}function fe(){var s=Le.current;return s===null&&q(`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 lt(s){var m=fe();if(s._context!==void 0){var _=s._context;_.Consumer===s?q("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?"):_.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function qe(s){var m=fe();return m.useState(s)}function v(s,m,_){var O=fe();return O.useReducer(s,m,_)}function w(s){var m=fe();return m.useRef(s)}function E(s,m){var _=fe();return _.useEffect(s,m)}function b(s,m){var _=fe();return _.useInsertionEffect(s,m)}function S(s,m){var _=fe();return _.useLayoutEffect(s,m)}function L(s,m){var _=fe();return _.useCallback(s,m)}function T(s,m){var _=fe();return _.useMemo(s,m)}function V(s,m,_){var O=fe();return O.useImperativeHandle(s,m,_)}function j(s,m){{var _=fe();return _.useDebugValue(s,m)}}function F(){var s=fe();return s.useTransition()}function ut(s){var m=fe();return m.useDeferredValue(s)}function ee(){var s=fe();return s.useId()}function dt(s,m,_){var O=fe();return O.useSyncExternalStore(s,m,_)}var Rt=0,Ct,hn,Rr,Ha,On,wr,Vn;function Yt(){}Yt.__reactDisabledLog=!0;function ha(){{if(Rt===0){Ct=console.log,hn=console.info,Rr=console.warn,Ha=console.error,On=console.group,wr=console.groupCollapsed,Vn=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Rt++}}function na(){{if(Rt--,Rt===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ct({},s,{value:Ct}),info:ct({},s,{value:hn}),warn:ct({},s,{value:Rr}),error:ct({},s,{value:Ha}),group:ct({},s,{value:On}),groupCollapsed:ct({},s,{value:wr}),groupEnd:ct({},s,{value:Vn})})}Rt<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ti=oe.ReactCurrentDispatcher,Wa;function ya(s,m,_){{if(Wa===void 0)try{throw Error()}catch(J){var O=J.stack.trim().match(/\n( *(at )?)/);Wa=O&&O[1]||""}return`
|
|
`+Wa+s}}var aa=!1,Dr;{var Mi=typeof WeakMap=="function"?WeakMap:Map;Dr=new Mi}function yn(s,m){if(!s||aa)return"";{var _=Dr.get(s);if(_!==void 0)return _}var O;aa=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ue;Ue=ti.current,ti.current=null,ha();try{if(m){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(gn){O=gn}Reflect.construct(s,[],xe)}else{try{xe.call()}catch(gn){O=gn}s.call(xe.prototype)}}else{try{throw Error()}catch(gn){O=gn}s()}}catch(gn){if(gn&&O&&typeof gn.stack=="string"){for(var Ge=gn.stack.split(`
|
|
`),ht=O.stack.split(`
|
|
`),Vt=Ge.length-1,Qt=ht.length-1;Vt>=1&&Qt>=0&&Ge[Vt]!==ht[Qt];)Qt--;for(;Vt>=1&&Qt>=0;Vt--,Qt--)if(Ge[Vt]!==ht[Qt]){if(Vt!==1||Qt!==1)do if(Vt--,Qt--,Qt<0||Ge[Vt]!==ht[Qt]){var Kt=`
|
|
`+Ge[Vt].replace(" at new "," at ");return s.displayName&&Kt.includes("<anonymous>")&&(Kt=Kt.replace("<anonymous>",s.displayName)),typeof s=="function"&&Dr.set(s,Kt),Kt}while(Vt>=1&&Qt>=0);break}}}finally{aa=!1,ti.current=Ue,na(),Error.prepareStackTrace=J}var vt=s?s.displayName||s.name:"",nn=vt?ya(vt):"";return typeof s=="function"&&Dr.set(s,nn),nn}function _t(s,m,_){return yn(s,!1)}function ur(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function ra(s,m,_){if(s==null)return"";if(typeof s=="function")return yn(s,ur(s));if(typeof s=="string")return ya(s);switch(s){case ce:return ya("Suspense");case je:return ya("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case Tt:return _t(s.render);case te:return ra(s.type,m,_);case Be:{var O=s,J=O._payload,Ue=O._init;try{return ra(Ue(J),m,_)}catch{}}}return""}var ni={},cl=oe.ReactDebugCurrentFrame;function kt(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);cl.setExtraStackFrame(_)}else cl.setExtraStackFrame(null)}function rf(s,m,_,O,J){{var Ue=Function.call.bind(Oe);for(var xe in s)if(Ue(s,xe)){var Ge=void 0;try{if(typeof s[xe]!="function"){var ht=Error((O||"React class")+": "+_+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ge=s[xe](m,xe,O,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Vt){Ge=Vt}Ge&&!(Ge instanceof Error)&&(kt(J),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",_,xe,typeof Ge),kt(null)),Ge instanceof Error&&!(Ge.message in ni)&&(ni[Ge.message]=!0,kt(J),q("Failed %s type: %s",_,Ge.message),kt(null))}}}function _r(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);Et(_)}else Et(null)}var Ke;Ke=!1;function fl(){if(U.current){var s=Te(U.current.type);if(s)return`
|
|
|
|
Check the render method of \``+s+"`."}return""}function ia(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),_=s.lineNumber;return`
|
|
|
|
Check your code at `+m+":"+_+"."}return""}function Li(s){return s!=null?ia(s.__source):""}var ai={};function of(s){var m=fl();if(!m){var _=typeof s=="string"?s:s.displayName||s.name;_&&(m=`
|
|
|
|
Check the top-level render call using <`+_+">.")}return m}function An(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var _=of(m);if(!ai[_]){ai[_]=!0;var O="";s&&s._owner&&s._owner!==U.current&&(O=" It was passed a child from "+Te(s._owner.type)+"."),_r(s),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,O),_r(null)}}}function tn(s,m){if(typeof s=="object"){if(an(s))for(var _=0;_<s.length;_++){var O=s[_];Wt(O)&&An(O,m)}else if(Wt(s))s._store&&(s._store.validated=!0);else if(s){var J=ot(s);if(typeof J=="function"&&J!==s.entries)for(var Ue=J.call(s),xe;!(xe=Ue.next()).done;)Wt(xe.value)&&An(xe.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var _;if(typeof m=="function")_=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===Tt||m.$$typeof===te))_=m.propTypes;else return;if(_){var O=Te(m);rf(_,s.props,"prop",O,s)}else if(m.PropTypes!==void 0&&!Ke){Ke=!0;var J=Te(m);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function za(s){{for(var m=Object.keys(s.props),_=0;_<m.length;_++){var O=m[_];if(O!=="children"&&O!=="key"){_r(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),_r(null);break}}s.ref!==null&&(_r(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),_r(null))}}function oa(s,m,_){var O=B(s);if(!O){var J="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(J+=" 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 Ue=Li(m);Ue?J+=Ue:J+=fl();var xe;s===null?xe="null":an(s)?xe="array":s!==void 0&&s.$$typeof===Re?(xe="<"+(Te(s.type)||"Unknown")+" />",J=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof s,q("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,J)}var Ge=Ae.apply(this,arguments);if(Ge==null)return Ge;if(O)for(var ht=2;ht<arguments.length;ht++)tn(arguments[ht],s);return s===ve?za(Ge):Gu(Ge),Ge}var qa=!1;function lf(s){var m=oa.bind(null,s);return m.type=s,qa||(qa=!0,Se("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 Se("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function dl(s,m,_){for(var O=Ut.apply(this,arguments),J=2;J<arguments.length;J++)tn(arguments[J],O.type);return Gu(O),O}function Xu(s,m){var _=rt.transition;rt.transition={};var O=rt.transition;rt.transition._updatedFibers=new Set;try{s()}finally{if(rt.transition=_,_===null&&O._updatedFibers){var J=O._updatedFibers.size;J>10&&Se("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var vl=!1,so=null;function uf(s){if(so===null)try{var m=("require"+Math.random()).slice(0,7),_=M&&M[m];so=_.call(M,"timers").setImmediate}catch{so=function(J){vl===!1&&(vl=!0,typeof MessageChannel>"u"&&q("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 Ue=new MessageChannel;Ue.port1.onmessage=J,Ue.port2.postMessage(void 0)}}return so(s)}var ri=0,Oi=!1;function pl(s){{var m=ri;ri++,Ce.current===null&&(Ce.current=[]);var _=Ce.isBatchingLegacy,O;try{if(Ce.isBatchingLegacy=!0,O=s(),!_&&Ce.didScheduleLegacyUpdate){var J=Ce.current;J!==null&&(Ce.didScheduleLegacyUpdate=!1,vo(J))}}catch(vt){throw kr(m),vt}finally{Ce.isBatchingLegacy=_}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Ue=O,xe=!1,Ge={then:function(vt,nn){xe=!0,Ue.then(function(gn){kr(m),ri===0?co(gn,vt,nn):vt(gn)},function(gn){kr(m),nn(gn)})}};return!Oi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Oi=!0,q("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 () => ...);"))}),Ge}else{var ht=O;if(kr(m),ri===0){var Vt=Ce.current;Vt!==null&&(vo(Vt),Ce.current=null);var Qt={then:function(vt,nn){Ce.current===null?(Ce.current=[],co(ht,vt,nn)):vt(ht)}};return Qt}else{var Kt={then:function(vt,nn){vt(ht)}};return Kt}}}}function kr(s){s!==ri-1&&q("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 co(s,m,_){{var O=Ce.current;if(O!==null)try{vo(O),uf(function(){O.length===0?(Ce.current=null,m(s)):co(s,m,_)})}catch(J){_(J)}else m(s)}}var fo=!1;function vo(s){if(!fo){fo=!0;var m=0;try{for(;m<s.length;m++){var _=s[m];do _=_(!0);while(_!==null)}s.length=0}catch(O){throw s=s.slice(m+1),O}finally{fo=!1}}}var Qu=oa,Ku=dl,ml=lf,Ju={map:lr,forEach:Jr,count:Na,toArray:Er,only:Zr};R.Children=Ju,R.Component=jt,R.Fragment=ve,R.Profiler=W,R.PureComponent=Ze,R.StrictMode=f,R.Suspense=ce,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,R.act=pl,R.cloneElement=Ku,R.createContext=ei,R.createElement=Qu,R.createFactory=ml,R.createRef=St,R.forwardRef=xr,R.isValidElement=Wt,R.lazy=Cr,R.memo=ne,R.startTransition=Xu,R.unstable_act=pl,R.useCallback=L,R.useContext=lt,R.useDebugValue=j,R.useDeferredValue=ut,R.useEffect=E,R.useId=ee,R.useImperativeHandle=V,R.useInsertionEffect=b,R.useLayoutEffect=S,R.useMemo=T,R.useReducer=v,R.useRef=w,R.useState=qe,R.useSyncExternalStore=dt,R.useTransition=F,R.version=be,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ul,ul.exports)),ul.exports}var pm;function Zc(){return pm||(pm=1,Jc.exports=U0()),Jc.exports}var sl={},mm;function H0(){if(mm)return sl;mm=1;/**
|
|
* @license React
|
|
* react-jsx-runtime.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/return function(){var M=Zc(),R=Symbol.for("react.element"),be=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),W=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),Be=Symbol.iterator,Qe="@@iterator";function I(h){if(h===null||typeof h!="object")return null;var B=Be&&h[Be]||h[Qe];return typeof B=="function"?B:null}var xt=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ot(h){{for(var B=arguments.length,ne=new Array(B>1?B-1:0),fe=1;fe<B;fe++)ne[fe-1]=arguments[fe];Le("error",h,ne)}}function Le(h,B,ne){{var fe=xt.ReactDebugCurrentFrame,lt=fe.getStackAddendum();lt!==""&&(B+="%s",ne=ne.concat([lt]));var qe=ne.map(function(v){return String(v)});qe.unshift("Warning: "+B),Function.prototype.apply.call(console[h],console,qe)}}var rt=!1,Ce=!1,U=!1,Z=!1,zt=!1,Et;Et=Symbol.for("react.module.reference");function st(h){return!!(typeof h=="string"||typeof h=="function"||h===Re||h===ve||zt||h===we||h===re||h===Tt||Z||h===te||rt||Ce||U||typeof h=="object"&&h!==null&&(h.$$typeof===je||h.$$typeof===ce||h.$$typeof===f||h.$$typeof===W||h.$$typeof===ge||h.$$typeof===Et||h.getModuleId!==void 0))}function Ot(h,B,ne){var fe=h.displayName;if(fe)return fe;var lt=B.displayName||B.name||"";return lt!==""?ne+"("+lt+")":ne}function ke(h){return h.displayName||"Context"}function X(h){if(h==null)return null;if(typeof h.tag=="number"&&ot("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 Re:return"Fragment";case be:return"Portal";case ve:return"Profiler";case we:return"StrictMode";case re:return"Suspense";case Tt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case W:var B=h;return ke(B)+".Consumer";case f:var ne=h;return ke(ne._context)+".Provider";case ge:return Ot(h,h.render,"ForwardRef");case ce:var fe=h.displayName||null;return fe!==null?fe:X(h.type)||"Memo";case je:{var lt=h,qe=lt._payload,v=lt._init;try{return X(v(qe))}catch{return null}}}return null}var tt=Object.assign,oe=0,Se,q,G,he,mt,At,ct;function en(){}en.__reactDisabledLog=!0;function jt(){{if(oe===0){Se=console.log,q=console.info,G=console.warn,he=console.error,mt=console.group,At=console.groupCollapsed,ct=console.groupEnd;var h={configurable:!0,enumerable:!0,value:en,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}oe++}}function Ye(){{if(oe--,oe===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:tt({},h,{value:Se}),info:tt({},h,{value:q}),warn:tt({},h,{value:G}),error:tt({},h,{value:he}),group:tt({},h,{value:mt}),groupCollapsed:tt({},h,{value:At}),groupEnd:tt({},h,{value:ct})})}oe<0&&ot("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ze=xt.ReactCurrentDispatcher,Ve;function vn(h,B,ne){{if(Ve===void 0)try{throw Error()}catch(lt){var fe=lt.stack.trim().match(/\n( *(at )?)/);Ve=fe&&fe[1]||""}return`
|
|
`+Ve+h}}var Ze=!1,Gt;{var St=typeof WeakMap=="function"?WeakMap:Map;Gt=new St}function it(h,B){if(!h||Ze)return"";{var ne=Gt.get(h);if(ne!==void 0)return ne}var fe;Ze=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var qe;qe=ze.current,ze.current=null,jt();try{if(B){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(j){fe=j}Reflect.construct(h,[],v)}else{try{v.call()}catch(j){fe=j}h.call(v.prototype)}}else{try{throw Error()}catch(j){fe=j}h()}}catch(j){if(j&&fe&&typeof j.stack=="string"){for(var w=j.stack.split(`
|
|
`),E=fe.stack.split(`
|
|
`),b=w.length-1,S=E.length-1;b>=1&&S>=0&&w[b]!==E[S];)S--;for(;b>=1&&S>=0;b--,S--)if(w[b]!==E[S]){if(b!==1||S!==1)do if(b--,S--,S<0||w[b]!==E[S]){var L=`
|
|
`+w[b].replace(" at new "," at ");return h.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",h.displayName)),typeof h=="function"&&Gt.set(h,L),L}while(b>=1&&S>=0);break}}}finally{Ze=!1,ze.current=qe,Ye(),Error.prepareStackTrace=lt}var T=h?h.displayName||h.name:"",V=T?vn(T):"";return typeof h=="function"&&Gt.set(h,V),V}function an(h,B,ne){return it(h,!1)}function on(h){var B=h.prototype;return!!(B&&B.isReactComponent)}function ln(h,B,ne){if(h==null)return"";if(typeof h=="function")return it(h,on(h));if(typeof h=="string")return vn(h);switch(h){case re:return vn("Suspense");case Tt:return vn("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ge:return an(h.render);case ce:return ln(h.type,B,ne);case je:{var fe=h,lt=fe._payload,qe=fe._init;try{return ln(qe(lt),B,ne)}catch{}}}return""}var cn=Object.prototype.hasOwnProperty,z={},ue=xt.ReactDebugCurrentFrame;function De(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);ue.setExtraStackFrame(ne)}else ue.setExtraStackFrame(null)}function Te(h,B,ne,fe,lt){{var qe=Function.call.bind(cn);for(var v in h)if(qe(h,v)){var w=void 0;try{if(typeof h[v]!="function"){var E=Error((fe||"React class")+": "+ne+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}w=h[v](B,v,fe,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){w=b}w&&!(w instanceof Error)&&(De(lt),ot("%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).",fe||"React class",ne,v,typeof w),De(null)),w instanceof Error&&!(w.message in z)&&(z[w.message]=!0,De(lt),ot("Failed %s type: %s",ne,w.message),De(null))}}}var Oe=Array.isArray;function et(h){return Oe(h)}function Je(h){{var B=typeof Symbol=="function"&&Symbol.toStringTag,ne=B&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ne}}function Ie(h){try{return We(h),!1}catch{return!0}}function We(h){return""+h}function ft(h){if(Ie(h))return ot("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(h)),We(h)}var pn=xt.ReactCurrentOwner,Ln={key:!0,ref:!0,__self:!0,__source:!0},mn,K;function ye(h){if(cn.call(h,"ref")){var B=Object.getOwnPropertyDescriptor(h,"ref").get;if(B&&B.isReactWarning)return!1}return h.ref!==void 0}function Ae(h){if(cn.call(h,"key")){var B=Object.getOwnPropertyDescriptor(h,"key").get;if(B&&B.isReactWarning)return!1}return h.key!==void 0}function nt(h,B){typeof h.ref=="string"&&pn.current}function Ut(h,B){{var ne=function(){mn||(mn=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"key",{get:ne,configurable:!0})}}function Wt(h,B){{var ne=function(){K||(K=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"ref",{get:ne,configurable:!0})}}var Ht=function(h,B,ne,fe,lt,qe,v){var w={$$typeof:R,type:h,key:B,ref:ne,props:v,_owner:qe};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function zn(h,B,ne,fe,lt){{var qe,v={},w=null,E=null;ne!==void 0&&(ft(ne),w=""+ne),Ae(B)&&(ft(B.key),w=""+B.key),ye(B)&&(E=B.ref,nt(B,lt));for(qe in B)cn.call(B,qe)&&!Ln.hasOwnProperty(qe)&&(v[qe]=B[qe]);if(h&&h.defaultProps){var b=h.defaultProps;for(qe in b)v[qe]===void 0&&(v[qe]=b[qe])}if(w||E){var S=typeof h=="function"?h.displayName||h.name||"Unknown":h;w&&Ut(v,S),E&&Wt(v,S)}return Ht(h,w,E,lt,fe,pn.current,v)}}var Xt=xt.ReactCurrentOwner,It=xt.ReactDebugCurrentFrame;function Ft(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);It.setExtraStackFrame(ne)}else It.setExtraStackFrame(null)}var Fn;Fn=!1;function xa(h){return typeof h=="object"&&h!==null&&h.$$typeof===R}function ma(){{if(Xt.current){var h=X(Xt.current.type);if(h)return`
|
|
|
|
Check the render method of \``+h+"`."}return""}}function lr(h){return""}var Na={};function Jr(h){{var B=ma();if(!B){var ne=typeof h=="string"?h:h.displayName||h.name;ne&&(B=`
|
|
|
|
Check the top-level render call using <`+ne+">.")}return B}}function Er(h,B){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var ne=Jr(B);if(Na[ne])return;Na[ne]=!0;var fe="";h&&h._owner&&h._owner!==Xt.current&&(fe=" It was passed a child from "+X(h._owner.type)+"."),Ft(h),ot('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,fe),Ft(null)}}function Zr(h,B){{if(typeof h!="object")return;if(et(h))for(var ne=0;ne<h.length;ne++){var fe=h[ne];xa(fe)&&Er(fe,B)}else if(xa(h))h._store&&(h._store.validated=!0);else if(h){var lt=I(h);if(typeof lt=="function"&<!==h.entries)for(var qe=lt.call(h),v;!(v=qe.next()).done;)xa(v.value)&&Er(v.value,B)}}}function ei(h){{var B=h.type;if(B==null||typeof B=="string")return;var ne;if(typeof B=="function")ne=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===ge||B.$$typeof===ce))ne=B.propTypes;else return;if(ne){var fe=X(B);Te(ne,h.props,"prop",fe,h)}else if(B.PropTypes!==void 0&&!Fn){Fn=!0;var lt=X(B);ot("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",lt||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&ot("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ra(h){{for(var B=Object.keys(h.props),ne=0;ne<B.length;ne++){var fe=B[ne];if(fe!=="children"&&fe!=="key"){Ft(h),ot("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),Ft(null);break}}h.ref!==null&&(Ft(h),ot("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var fn={};function En(h,B,ne,fe,lt,qe){{var v=st(h);if(!v){var w="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(w+=" 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 E=lr();E?w+=E:w+=ma();var b;h===null?b="null":et(h)?b="array":h!==void 0&&h.$$typeof===R?(b="<"+(X(h.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):b=typeof h,ot("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,w)}var S=zn(h,B,ne,lt,qe);if(S==null)return S;if(v){var L=B.children;if(L!==void 0)if(fe)if(et(L)){for(var T=0;T<L.length;T++)Zr(L[T],h);Object.freeze&&Object.freeze(L)}else ot("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 Zr(L,h)}if(cn.call(B,"key")){var V=X(h),j=Object.keys(B).filter(function(ee){return ee!=="key"}),F=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!fn[V+F]){var ut=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";ot(`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} />`,F,V,ut,V),fn[V+F]=!0}}return h===Re?Ra(S):ei(S),S}}function ja(h,B,ne){return En(h,B,ne,!0)}function Ua(h,B,ne){return En(h,B,ne,!1)}var Cr=Ua,xr=ja;sl.Fragment=Re,sl.jsx=Cr,sl.jsxs=xr}(),sl}dm.exports=H0();var p=dm.exports,hm={exports:{}},ef={exports:{}},tf={},ym;function z0(){return ym||(ym=1,function(M){/**
|
|
* @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 R=!1,be=5;function Re(K,ye){var Ae=K.length;K.push(ye),f(K,ye,Ae)}function we(K){return K.length===0?null:K[0]}function ve(K){if(K.length===0)return null;var ye=K[0],Ae=K.pop();return Ae!==ye&&(K[0]=Ae,W(K,Ae,0)),ye}function f(K,ye,Ae){for(var nt=Ae;nt>0;){var Ut=nt-1>>>1,Wt=K[Ut];if(ge(Wt,ye)>0)K[Ut]=ye,K[nt]=Wt,nt=Ut;else return}}function W(K,ye,Ae){for(var nt=Ae,Ut=K.length,Wt=Ut>>>1;nt<Wt;){var Ht=(nt+1)*2-1,zn=K[Ht],Xt=Ht+1,It=K[Xt];if(ge(zn,ye)<0)Xt<Ut&&ge(It,zn)<0?(K[nt]=It,K[Xt]=ye,nt=Xt):(K[nt]=zn,K[Ht]=ye,nt=Ht);else if(Xt<Ut&&ge(It,ye)<0)K[nt]=It,K[Xt]=ye,nt=Xt;else return}}function ge(K,ye){var Ae=K.sortIndex-ye.sortIndex;return Ae!==0?Ae:K.id-ye.id}var re=1,Tt=2,ce=3,je=4,te=5;function Be(K,ye){}var Qe=typeof performance=="object"&&typeof performance.now=="function";if(Qe){var I=performance;M.unstable_now=function(){return I.now()}}else{var xt=Date,ot=xt.now();M.unstable_now=function(){return xt.now()-ot}}var Le=1073741823,rt=-1,Ce=250,U=5e3,Z=1e4,zt=Le,Et=[],st=[],Ot=1,ke=null,X=ce,tt=!1,oe=!1,Se=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,he=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function mt(K){for(var ye=we(st);ye!==null;){if(ye.callback===null)ve(st);else if(ye.startTime<=K)ve(st),ye.sortIndex=ye.expirationTime,Re(Et,ye);else return;ye=we(st)}}function At(K){if(Se=!1,mt(K),!oe)if(we(Et)!==null)oe=!0,We(ct);else{var ye=we(st);ye!==null&&ft(At,ye.startTime-K)}}function ct(K,ye){oe=!1,Se&&(Se=!1,pn()),tt=!0;var Ae=X;try{var nt;if(!R)return en(K,ye)}finally{ke=null,X=Ae,tt=!1}}function en(K,ye){var Ae=ye;for(mt(Ae),ke=we(Et);ke!==null&&!(ke.expirationTime>Ae&&(!K||ue()));){var nt=ke.callback;if(typeof nt=="function"){ke.callback=null,X=ke.priorityLevel;var Ut=ke.expirationTime<=Ae,Wt=nt(Ut);Ae=M.unstable_now(),typeof Wt=="function"?ke.callback=Wt:ke===we(Et)&&ve(Et),mt(Ae)}else ve(Et);ke=we(Et)}if(ke!==null)return!0;var Ht=we(st);return Ht!==null&&ft(At,Ht.startTime-Ae),!1}function jt(K,ye){switch(K){case re:case Tt:case ce:case je:case te:break;default:K=ce}var Ae=X;X=K;try{return ye()}finally{X=Ae}}function Ye(K){var ye;switch(X){case re:case Tt:case ce:ye=ce;break;default:ye=X;break}var Ae=X;X=ye;try{return K()}finally{X=Ae}}function ze(K){var ye=X;return function(){var Ae=X;X=ye;try{return K.apply(this,arguments)}finally{X=Ae}}}function Ve(K,ye,Ae){var nt=M.unstable_now(),Ut;if(typeof Ae=="object"&&Ae!==null){var Wt=Ae.delay;typeof Wt=="number"&&Wt>0?Ut=nt+Wt:Ut=nt}else Ut=nt;var Ht;switch(K){case re:Ht=rt;break;case Tt:Ht=Ce;break;case te:Ht=zt;break;case je:Ht=Z;break;case ce:default:Ht=U;break}var zn=Ut+Ht,Xt={id:Ot++,callback:ye,priorityLevel:K,startTime:Ut,expirationTime:zn,sortIndex:-1};return Ut>nt?(Xt.sortIndex=Ut,Re(st,Xt),we(Et)===null&&Xt===we(st)&&(Se?pn():Se=!0,ft(At,Ut-nt))):(Xt.sortIndex=zn,Re(Et,Xt),!oe&&!tt&&(oe=!0,We(ct))),Xt}function vn(){}function Ze(){!oe&&!tt&&(oe=!0,We(ct))}function Gt(){return we(Et)}function St(K){K.callback=null}function it(){return X}var an=!1,on=null,ln=-1,cn=be,z=-1;function ue(){var K=M.unstable_now()-z;return!(K<cn)}function De(){}function Te(K){if(K<0||K>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}K>0?cn=Math.floor(1e3/K):cn=be}var Oe=function(){if(on!==null){var K=M.unstable_now();z=K;var ye=!0,Ae=!0;try{Ae=on(ye,K)}finally{Ae?et():(an=!1,on=null)}}else an=!1},et;if(typeof he=="function")et=function(){he(Oe)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,Ie=Je.port2;Je.port1.onmessage=Oe,et=function(){Ie.postMessage(null)}}else et=function(){q(Oe,0)};function We(K){on=K,an||(an=!0,et())}function ft(K,ye){ln=q(function(){K(M.unstable_now())},ye)}function pn(){G(ln),ln=-1}var Ln=De,mn=null;M.unstable_IdlePriority=te,M.unstable_ImmediatePriority=re,M.unstable_LowPriority=je,M.unstable_NormalPriority=ce,M.unstable_Profiling=mn,M.unstable_UserBlockingPriority=Tt,M.unstable_cancelCallback=St,M.unstable_continueExecution=Ze,M.unstable_forceFrameRate=Te,M.unstable_getCurrentPriorityLevel=it,M.unstable_getFirstCallbackNode=Gt,M.unstable_next=Ye,M.unstable_pauseExecution=vn,M.unstable_requestPaint=Ln,M.unstable_runWithPriority=jt,M.unstable_scheduleCallback=Ve,M.unstable_shouldYield=ue,M.unstable_wrapCallback=ze,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var gm;function F0(){return gm||(gm=1,ef.exports=z0()),ef.exports}var pa={},bm;function V0(){if(bm)return pa;bm=1;/**
|
|
* @license React
|
|
* react-dom.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var M=Zc(),R=F0(),be=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Re=!1;function we(e){Re=e}function ve(e){if(!Re){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];W("warn",e,n)}}function f(e){if(!Re){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];W("error",e,n)}}function W(e,t,n){{var a=be.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 ge=0,re=1,Tt=2,ce=3,je=4,te=5,Be=6,Qe=7,I=8,xt=9,ot=10,Le=11,rt=12,Ce=13,U=14,Z=15,zt=16,Et=17,st=18,Ot=19,ke=21,X=22,tt=23,oe=24,Se=25,q=!0,G=!1,he=!1,mt=!1,At=!1,ct=!0,en=!0,jt=!0,Ye=!0,ze=new Set,Ve={},vn={};function Ze(e,t){Gt(e,t),Gt(e+"Capture",t)}function Gt(e,t){Ve[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ve[e]=t;{var n=e.toLowerCase();vn[n]=e,e==="onDoubleClick"&&(vn.ondblclick=e)}for(var a=0;a<t.length;a++)ze.add(t[a])}var St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",it=Object.prototype.hasOwnProperty;function an(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function on(e){try{return ln(e),!1}catch{return!0}}function ln(e){return""+e}function cn(e,t){if(on(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),ln(e)}function z(e){if(on(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),ln(e)}function ue(e,t){if(on(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),ln(e)}function De(e,t){if(on(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),ln(e)}function Te(e){if(on(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),ln(e)}function Oe(e){if(on(e))return f("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.",an(e)),ln(e)}var et=0,Je=1,Ie=2,We=3,ft=4,pn=5,Ln=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",K=mn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("^["+mn+"]["+K+"]*$"),Ae={},nt={};function Ut(e){return it.call(nt,e)?!0:it.call(Ae,e)?!1:ye.test(e)?(nt[e]=!0,!0):(Ae[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function Wt(e,t,n){return t!==null?t.type===et:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ht(e,t,n,a){if(n!==null&&n.type===et)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 zn(e,t,n,a){if(t===null||typeof t>"u"||Ht(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case We:return!t;case ft:return t===!1;case pn:return isNaN(t);case Ln:return isNaN(t)||t<1}return!1}function Xt(e){return Ft.hasOwnProperty(e)?Ft[e]:null}function It(e,t,n,a,r,i,o){this.acceptsBooleans=t===Ie||t===We||t===ft,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ft={},Fn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Fn.forEach(function(e){Ft[e]=new It(e,et,!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];Ft[t]=new It(t,Je,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new It(e,Ie,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new It(e,Ie,!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){Ft[e]=new It(e,We,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new It(e,We,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ft[e]=new It(e,ft,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ft[e]=new It(e,Ln,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ft[e]=new It(e,pn,!1,e.toLowerCase(),null,!1,!1)});var xa=/[\-\:]([a-z])/g,ma=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(xa,ma);Ft[t]=new It(t,Je,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!1,!1)});var lr="xlinkHref";Ft[lr]=new It("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!0,!0)});var Na=/^[\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,Jr=!1;function Er(e){!Jr&&Na.test(e)&&(Jr=!0,f("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 Zr(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{cn(n,t),a.sanitizeURL&&Er(""+n);var i=a.attributeName,o=null;if(a.type===ft){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:zn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(zn(t,n,a,!1))return e.getAttribute(i);if(a.type===We)return n;o=e.getAttribute(i)}return zn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ei(e,t,n,a){{if(!Ut(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return cn(n,t),r===""+n?n:r}}function Ra(e,t,n,a){var r=Xt(t);if(!Wt(t,r,a)){if(zn(t,n,r,a)&&(n=null),a||r===null){if(Ut(t)){var i=t;n===null?e.removeAttribute(i):(cn(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===We?!1:""}else e[l]=n;return}var c=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var g=r.type,y;g===We||g===ft&&n===!0?y="":(cn(n,c),y=""+n,r.sanitizeURL&&Er(y.toString())),d?e.setAttributeNS(d,c,y):e.setAttribute(c,y)}}}var fn=Symbol.for("react.element"),En=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Ua=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),xr=Symbol.for("react.provider"),h=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),v=Symbol.for("react.scope"),w=Symbol.for("react.debug_trace_mode"),E=Symbol.for("react.offscreen"),b=Symbol.for("react.legacy_hidden"),S=Symbol.for("react.cache"),L=Symbol.for("react.tracing_marker"),T=Symbol.iterator,V="@@iterator";function j(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[V];return typeof t=="function"?t:null}var F=Object.assign,ut=0,ee,dt,Rt,Ct,hn,Rr,Ha;function On(){}On.__reactDisabledLog=!0;function wr(){{if(ut===0){ee=console.log,dt=console.info,Rt=console.warn,Ct=console.error,hn=console.group,Rr=console.groupCollapsed,Ha=console.groupEnd;var e={configurable:!0,enumerable:!0,value:On,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ut++}}function Vn(){{if(ut--,ut===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ee}),info:F({},e,{value:dt}),warn:F({},e,{value:Rt}),error:F({},e,{value:Ct}),group:F({},e,{value:hn}),groupCollapsed:F({},e,{value:Rr}),groupEnd:F({},e,{value:Ha})})}ut<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Yt=be.ReactCurrentDispatcher,ha;function na(e,t,n){{if(ha===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ha=a&&a[1]||""}return`
|
|
`+ha+e}}var ti=!1,Wa;{var ya=typeof WeakMap=="function"?WeakMap:Map;Wa=new ya}function aa(e,t){if(!e||ti)return"";{var n=Wa.get(e);if(n!==void 0)return n}var a;ti=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Yt.current,Yt.current=null,wr();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(k){a=k}Reflect.construct(e,[],o)}else{try{o.call()}catch(k){a=k}e.call(o.prototype)}}else{try{throw Error()}catch(k){a=k}e()}}catch(k){if(k&&a&&typeof k.stack=="string"){for(var l=k.stack.split(`
|
|
`),u=a.stack.split(`
|
|
`),c=l.length-1,d=u.length-1;c>=1&&d>=0&&l[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,d<0||l[c]!==u[d]){var g=`
|
|
`+l[c].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wa.set(e,g),g}while(c>=1&&d>=0);break}}}finally{ti=!1,Yt.current=i,Vn(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",D=y?na(y):"";return typeof e=="function"&&Wa.set(e,D),D}function Dr(e,t,n){return aa(e,!0)}function Mi(e,t,n){return aa(e,!1)}function yn(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _t(e,t,n){if(e==null)return"";if(typeof e=="function")return aa(e,yn(e));if(typeof e=="string")return na(e);switch(e){case ne:return na("Suspense");case fe:return na("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case B:return Mi(e.render);case lt:return _t(e.type,t,n);case qe:{var a=e,r=a._payload,i=a._init;try{return _t(i(r),t,n)}catch{}}}return""}function ur(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case te:return na(e.type);case zt:return na("Lazy");case Ce:return na("Suspense");case Ot:return na("SuspenseList");case ge:case Tt:case Z:return Mi(e.type);case Le:return Mi(e.type.render);case re:return Dr(e.type);default:return""}}function ra(e){try{var t="",n=e;do t+=ur(n),n=n.return;while(n);return t}catch(a){return`
|
|
Error generating stack: `+a.message+`
|
|
`+a.stack}}function ni(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function cl(e){return e.displayName||"Context"}function kt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 ja:return"Fragment";case En:return"Portal";case Cr:return"Profiler";case Ua:return"StrictMode";case ne:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return cl(t)+".Consumer";case xr:var n=e;return cl(n._context)+".Provider";case B:return ni(e,e.render,"ForwardRef");case lt:var a=e.displayName||null;return a!==null?a:kt(e.type)||"Memo";case qe:{var r=e,i=r._payload,o=r._init;try{return kt(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function _r(e){return e.displayName||"Context"}function Ke(e){var t=e.tag,n=e.type;switch(t){case oe:return"Cache";case xt:var a=n;return _r(a)+".Consumer";case ot:var r=n;return _r(r._context)+".Provider";case st:return"DehydratedFragment";case Le:return rf(n,n.render,"ForwardRef");case Qe:return"Fragment";case te:return n;case je:return"Portal";case ce:return"Root";case Be:return"Text";case zt:return kt(n);case I:return n===Ua?"StrictMode":"Mode";case X:return"Offscreen";case rt:return"Profiler";case ke:return"Scope";case Ce:return"Suspense";case Ot:return"SuspenseList";case Se:return"TracingMarker";case re:case ge:case Et:case Tt:case U:case Z:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var fl=be.ReactDebugCurrentFrame,ia=null,Li=!1;function ai(){{if(ia===null)return null;var e=ia._debugOwner;if(e!==null&&typeof e<"u")return Ke(e)}return null}function of(){return ia===null?"":ra(ia)}function An(){fl.getCurrentStack=null,ia=null,Li=!1}function tn(e){fl.getCurrentStack=e===null?null:of,ia=e,Li=!1}function Gu(){return ia}function za(e){Li=e}function oa(e){return""+e}function qa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Oe(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function dl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("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||f("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 vl(e){return e._valueTracker}function so(e){e._valueTracker=null}function uf(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);Oe(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){Oe(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Oe(l),a=""+l},stopTracking:function(){so(e),delete e[t]}};return o}}function Oi(e){vl(e)||(e._valueTracker=ri(e))}function pl(e){if(!e)return!1;var t=vl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function kr(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 co=!1,fo=!1,vo=!1,Qu=!1;function Ku(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function ml(e,t){var n=e,a=t.checked,r=F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Ju(e,t){dl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!fo&&(f("%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),fo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!co&&(f("%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),co=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:qa(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&Ra(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Ku(t);!n._wrapperState.controlled&&a&&!Qu&&(f("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&&!vo&&(f("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"),vo=!0)}s(e,t);var r=qa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=oa(r)):n.value!==oa(r)&&(n.value=oa(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ue(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ue(n,t.type,qa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function _(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=oa(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function O(e,t){var n=e;m(n,t),J(n,t)}function J(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;cn(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.");pl(o),m(o,l)}}}}function Ue(e,t,n){(t!=="number"||kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=oa(e._wrapperState.initialValue):e.defaultValue!==oa(n)&&(e.defaultValue=oa(n)))}var xe=!1,Ge=!1,ht=!1;function Vt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?M.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ge||(Ge=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(ht||(ht=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!xe&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),xe=!0)}function Qt(e,t){t.value!=null&&e.setAttribute("value",oa(qa(t.value)))}var Kt=Array.isArray;function vt(e){return Kt(e)}var nn;nn=!1;function gn(){var e=ai();return e?`
|
|
|
|
Check the render method of \``+e+"`.":""}var Ai=["value","defaultValue"];function hl(e){{dl("select",e);for(var t=0;t<Ai.length;t++){var n=Ai[t];if(e[n]!=null){var a=vt(e[n]);e.multiple&&!a?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,gn()):!e.multiple&&a&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,gn())}}}}function Mr(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 c=o.hasOwnProperty("$"+r[u].value);r[u].selected!==c&&(r[u].selected=c),c&&a&&(r[u].defaultSelected=!0)}}else{for(var d=oa(qa(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 yl(e,t){return F({},t,{value:void 0})}function gl(e,t){var n=e;hl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!nn&&(f("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),nn=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Mr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Mr(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?Mr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Mr(n,!!t.multiple,t.defaultValue,!0):Mr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Mr(n,!!t.multiple,a,!1)}var _m=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=F({},t,{value:void 0,defaultValue:void 0,children:oa(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;dl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!_m&&(f("%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"),_m=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){f("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(vt(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:qa(a)}}function Mm(e,t){var n=e,a=qa(t.value),r=qa(t.defaultValue);if(a!=null){var i=oa(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=oa(r))}function Lm(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function nS(e,t){Mm(e,t)}var Lr="http://www.w3.org/1999/xhtml",aS="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return aS;default:return Lr}}function pf(e,t){return e==null||e===Lr?vf(t):e===df&&t==="foreignObject"?Lr:e}var rS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},es,Om=rS(function(e,t){if(e.namespaceURI===df&&!("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}),ga=1,Or=3,bn=8,Ar=9,mf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Or){n.nodeValue=t;return}}e.textContent=t},iS={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"]},bl={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 oS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var lS=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){lS.forEach(function(t){bl[oS(t,e)]=bl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(bl.hasOwnProperty(e)&&bl[e])?t+"px":(De(t,e),(""+t).trim())}var uS=/([A-Z])/g,sS=/^ms-/;function cS(e){return e.replace(uS,"-$1").toLowerCase().replace(sS,"-ms-")}var Am=function(){};{var fS=/^(?:webkit|moz|o)[A-Z]/,dS=/^-ms-/,vS=/-(.)/g,Nm=/;\s*$/,po={},yf={},jm=!1,Um=!1,pS=function(e){return e.replace(vS,function(t,n){return n.toUpperCase()})},mS=function(e){po.hasOwnProperty(e)&&po[e]||(po[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,pS(e.replace(dS,"ms-"))))},hS=function(e){po.hasOwnProperty(e)&&po[e]||(po[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},yS=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Nm,"")))},gS=function(e,t){jm||(jm=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},bS=function(e,t){Um||(Um=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};Am=function(e,t){e.indexOf("-")>-1?mS(e):fS.test(e)?hS(e):Nm.test(t)&&yS(e,t),typeof t=="number"&&(isNaN(t)?gS(e,t):isFinite(t)||bS(e,t))}}var SS=Am;function TS(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:cS(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Hm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||SS(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function ES(e){return e==null||typeof e=="boolean"||e===""}function zm(e){var t={};for(var n in e)for(var a=iS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function CS(e,t){{if(!t)return;var n=zm(e),a=zm(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,f("%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.",ES(e[o])?"Removing":"Updating",o,l)}}}}var xS={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},RS=F({menuitem:!0},xS),wS="__html";function gf(e,t){if(t){if(RS[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"||!(wS 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&&f("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 Ni(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"},Fm={"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},mo={},DS=new RegExp("^(aria)-["+K+"]*$"),_S=new RegExp("^(aria)[A-Z]["+K+"]*$");function kS(e,t){{if(it.call(mo,t)&&mo[t])return!0;if(_S.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Fm.hasOwnProperty(n)?n:null;if(a==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),mo[t]=!0,!0;if(t!==a)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),mo[t]=!0,!0}if(DS.test(t)){var r=t.toLowerCase(),i=Fm.hasOwnProperty(r)?r:null;if(i==null)return mo[t]=!0,!1;if(t!==i)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),mo[t]=!0,!0}}return!0}function MS(e,t){{var n=[];for(var a in t){var r=kS(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function LS(e,t){Ni(e,t)||MS(e,t)}var Vm=!1;function OS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Vm&&(Vm=!0,e==="select"&&t.multiple?f("`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):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Bm=function(){};{var la={},$m=/^on./,AS=/^on[^A-Z]/,NS=new RegExp("^(aria)-["+K+"]*$"),jS=new RegExp("^(aria)[A-Z]["+K+"]*$");Bm=function(e,t,n,a){if(it.call(la,t)&&la[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return f("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."),la[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 f("Invalid event handler property `%s`. Did you mean `%s`?",t,l),la[t]=!0,!0;if($m.test(t))return f("Unknown event handler property `%s`. It will be ignored.",t),la[t]=!0,!0}else if($m.test(t))return AS.test(t)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),la[t]=!0,!0;if(NS.test(t)||jS.test(t))return!0;if(r==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),la[t]=!0,!0;if(r==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),la[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),la[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),la[t]=!0,!0;var u=Xt(t),c=u!==null&&u.type===et;if(ns.hasOwnProperty(r)){var d=ns[r];if(d!==t)return f("Invalid DOM property `%s`. Did you mean `%s`?",t,d),la[t]=!0,!0}else if(!c&&t!==r)return f("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),la[t]=!0,!0;return typeof n=="boolean"&&Ht(t,n,u,!1)?(n?f('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):f('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),la[t]=!0,!0):c?!0:Ht(t,n,u,!1)?(la[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===We&&(f("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),la[t]=!0),!0)}}var US=function(e,t,n){{var a=[];for(var r in t){var i=Bm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?f("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&&f("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 HS(e,t,n){Ni(e,t)||US(e,t,n)}var Pm=1,bf=2,Sl=4,zS=Pm|bf|Sl,Tl=null;function FS(e){Tl!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Tl=e}function VS(){Tl===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Tl=null}function BS(e){return e===Tl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Or?t.parentNode:t}var Tf=null,ho=null,yo=null;function Ym(e){var t=vi(e);if(t){if(typeof Tf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var a=zs(n);Tf(t.stateNode,t.type,a)}}}function $S(e){Tf=e}function Im(e){ho?yo?yo.push(e):yo=[e]:ho=e}function PS(){return ho!==null||yo!==null}function Wm(){if(ho){var e=ho,t=yo;if(ho=null,yo=null,Ym(e),t)for(var n=0;n<t.length;n++)Ym(t[n])}}var qm=function(e,t){return e(t)},Gm=function(){},Ef=!1;function YS(){var e=PS();e&&(Gm(),Wm())}function Xm(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return qm(e,t,n)}finally{Ef=!1,YS()}}function IS(e,t,n){qm=e,Gm=n}function WS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function qS(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&&WS(t));default:return!1}}function El(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(qS(t,e.type,a))return null;if(r&&typeof r!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}var Cf=!1;if(St)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{Cf=!1}function Qm(e,t,n,a,r,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Km=Qm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Km=function(t,n,a,r,i,o,l,u,c){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,D=window.event,k=Object.getOwnPropertyDescriptor(window,"event");function A(){xf.removeEventListener(N,Me,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=D)}var ie=Array.prototype.slice.call(arguments,3);function Me(){g=!0,A(),n.apply(a,ie),y=!1}var _e,bt=!1,pt=!1;function C(x){if(_e=x.error,bt=!0,_e===null&&x.colno===0&&x.lineno===0&&(pt=!0),x.defaultPrevented&&_e!=null&&typeof _e=="object")try{_e._suppressLogging=!0}catch{}}var N="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),xf.addEventListener(N,Me,!1),d.initEvent(N,!1,!1),xf.dispatchEvent(d),k&&Object.defineProperty(window,"event",k),g&&y&&(bt?pt&&(_e=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.")):_e=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(_e)),window.removeEventListener("error",C),!g)return A(),Qm.apply(this,arguments)}}var GS=Km,go=!1,as=null,rs=!1,Rf=null,XS={onError:function(e){go=!0,as=e}};function wf(e,t,n,a,r,i,o,l,u){go=!1,as=null,GS.apply(XS,arguments)}function QS(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),go){var c=Df();rs||(rs=!0,Rf=c)}}function KS(){if(rs){var e=Rf;throw rs=!1,Rf=null,e}}function JS(){return go}function Df(){if(go){var e=as;return go=!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 bo(e){return e._reactInternals}function ZS(e){return e._reactInternals!==void 0}function eT(e,t){e._reactInternals=t}var He=0,So=1,Sn=2,Mt=4,ji=16,xl=32,Jm=64,Lt=128,Nr=256,Ui=512,To=1024,ii=2048,jr=4096,Hi=8192,_f=16384,tT=32767,is=32768,ua=65536,kf=131072,Zm=1048576,Mf=2097152,zi=4194304,Lf=8388608,oi=16777216,Of=33554432,Af=Mt|To|0,Nf=Sn|Mt|ji|xl|Ui|jr|Hi,Rl=Mt|Jm|Ui|Hi,Eo=ii|ji,Ur=zi|Lf|Mf,nT=be.ReactCurrentOwner;function Fi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(Sn|jr))!==He&&(n=t.return),a=t.return;while(a)}return t.tag===ce?n:null}function eh(e){if(e.tag===Ce){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 th(e){return e.tag===ce?e.stateNode.containerInfo:null}function aT(e){return Fi(e)===e}function rT(e){{var t=nT.current;if(t!==null&&t.tag===re){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||f("%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.",Ke(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=bo(e);return r?Fi(r)===r:!1}function nh(e){if(Fi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ah(e){var t=e.alternate;if(!t){var n=Fi(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 nh(i),e;if(u===r)return nh(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 c=!1,d=i.child;d;){if(d===a){c=!0,a=i,r=o;break}if(d===r){c=!0,r=i,a=o;break}d=d.sibling}if(!c){for(d=o.child;d;){if(d===a){c=!0,a=o,r=i;break}if(d===r){c=!0,r=o,a=i;break}d=d.sibling}if(!c)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!==ce)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function rh(e){var t=ah(e);return t!==null?ih(t):null}function ih(e){if(e.tag===te||e.tag===Be)return e;for(var t=e.child;t!==null;){var n=ih(t);if(n!==null)return n;t=t.sibling}return null}function iT(e){var t=ah(e);return t!==null?oh(t):null}function oh(e){if(e.tag===te||e.tag===Be)return e;for(var t=e.child;t!==null;){if(t.tag!==je){var n=oh(t);if(n!==null)return n}t=t.sibling}return null}var lh=R.unstable_scheduleCallback,oT=R.unstable_cancelCallback,lT=R.unstable_shouldYield,uT=R.unstable_requestPaint,Nn=R.unstable_now,sT=R.unstable_getCurrentPriorityLevel,os=R.unstable_ImmediatePriority,jf=R.unstable_UserBlockingPriority,Vi=R.unstable_NormalPriority,cT=R.unstable_LowPriority,Uf=R.unstable_IdlePriority,fT=R.unstable_yieldValue,dT=R.unstable_setDisableYieldValue,Co=null,Qn=null,se=null,sr=!1,Ga=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function vT(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 f("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{en&&(e=F({},e,{getLaneLabelMap:bT,injectProfilingHooks:gT})),Co=t.inject(e),Qn=t}catch(n){f("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function pT(e,t){if(Qn&&typeof Qn.onScheduleFiberRoot=="function")try{Qn.onScheduleFiberRoot(Co,e,t)}catch(n){sr||(sr=!0,f("React instrumentation encountered an error: %s",n))}}function mT(e,t){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Lt)===Lt;if(jt){var a;switch(t){case _a:a=os;break;case zr:a=jf;break;case Fr:a=Vi;break;case vs:a=Uf;break;default:a=Vi;break}Qn.onCommitFiberRoot(Co,e,a,n)}}catch(r){sr||(sr=!0,f("React instrumentation encountered an error: %s",r))}}function hT(e){if(Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Co,e)}catch(t){sr||(sr=!0,f("React instrumentation encountered an error: %s",t))}}function yT(e){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Co,e)}catch(t){sr||(sr=!0,f("React instrumentation encountered an error: %s",t))}}function jn(e){if(typeof fT=="function"&&(dT(e),we(e)),Qn&&typeof Qn.setStrictMode=="function")try{Qn.setStrictMode(Co,e)}catch(t){sr||(sr=!0,f("React instrumentation encountered an error: %s",t))}}function gT(e){se=e}function bT(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=FT(t);e.set(t,a),t*=2}return e}}function ST(e){se!==null&&typeof se.markCommitStarted=="function"&&se.markCommitStarted(e)}function uh(){se!==null&&typeof se.markCommitStopped=="function"&&se.markCommitStopped()}function wl(e){se!==null&&typeof se.markComponentRenderStarted=="function"&&se.markComponentRenderStarted(e)}function xo(){se!==null&&typeof se.markComponentRenderStopped=="function"&&se.markComponentRenderStopped()}function TT(e){se!==null&&typeof se.markComponentPassiveEffectMountStarted=="function"&&se.markComponentPassiveEffectMountStarted(e)}function ET(){se!==null&&typeof se.markComponentPassiveEffectMountStopped=="function"&&se.markComponentPassiveEffectMountStopped()}function CT(e){se!==null&&typeof se.markComponentPassiveEffectUnmountStarted=="function"&&se.markComponentPassiveEffectUnmountStarted(e)}function xT(){se!==null&&typeof se.markComponentPassiveEffectUnmountStopped=="function"&&se.markComponentPassiveEffectUnmountStopped()}function RT(e){se!==null&&typeof se.markComponentLayoutEffectMountStarted=="function"&&se.markComponentLayoutEffectMountStarted(e)}function wT(){se!==null&&typeof se.markComponentLayoutEffectMountStopped=="function"&&se.markComponentLayoutEffectMountStopped()}function sh(e){se!==null&&typeof se.markComponentLayoutEffectUnmountStarted=="function"&&se.markComponentLayoutEffectUnmountStarted(e)}function ch(){se!==null&&typeof se.markComponentLayoutEffectUnmountStopped=="function"&&se.markComponentLayoutEffectUnmountStopped()}function DT(e,t,n){se!==null&&typeof se.markComponentErrored=="function"&&se.markComponentErrored(e,t,n)}function _T(e,t,n){se!==null&&typeof se.markComponentSuspended=="function"&&se.markComponentSuspended(e,t,n)}function kT(e){se!==null&&typeof se.markLayoutEffectsStarted=="function"&&se.markLayoutEffectsStarted(e)}function MT(){se!==null&&typeof se.markLayoutEffectsStopped=="function"&&se.markLayoutEffectsStopped()}function LT(e){se!==null&&typeof se.markPassiveEffectsStarted=="function"&&se.markPassiveEffectsStarted(e)}function OT(){se!==null&&typeof se.markPassiveEffectsStopped=="function"&&se.markPassiveEffectsStopped()}function fh(e){se!==null&&typeof se.markRenderStarted=="function"&&se.markRenderStarted(e)}function AT(){se!==null&&typeof se.markRenderYielded=="function"&&se.markRenderYielded()}function dh(){se!==null&&typeof se.markRenderStopped=="function"&&se.markRenderStopped()}function NT(e){se!==null&&typeof se.markRenderScheduled=="function"&&se.markRenderScheduled(e)}function jT(e,t){se!==null&&typeof se.markForceUpdateScheduled=="function"&&se.markForceUpdateScheduled(e,t)}function Hf(e,t){se!==null&&typeof se.markStateUpdateScheduled=="function"&&se.markStateUpdateScheduled(e,t)}var Ne=0,yt=1,Bt=2,un=8,cr=16,vh=Math.clz32?Math.clz32:zT,UT=Math.log,HT=Math.LN2;function zT(e){var t=e>>>0;return t===0?32:31-(UT(t)/HT|0)|0}var zf=31,$=0,Un=0,$e=1,Ro=2,Hr=4,Bi=8,fr=16,Dl=32,wo=4194240,_l=64,Ff=128,Vf=256,Bf=512,$f=1024,Pf=2048,Yf=4096,If=8192,Wf=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Jf=1048576,Zf=2097152,ls=130023424,Do=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,ph=Do,kl=134217728,mh=268435455,Ml=268435456,$i=536870912,wa=1073741824;function FT(e){{if(e&$e)return"Sync";if(e&Ro)return"InputContinuousHydration";if(e&Hr)return"InputContinuous";if(e&Bi)return"DefaultHydration";if(e&fr)return"Default";if(e&Dl)return"TransitionHydration";if(e&wo)return"Transition";if(e&ls)return"Retry";if(e&kl)return"SelectiveHydration";if(e&Ml)return"IdleHydration";if(e&$i)return"Idle";if(e&wa)return"Offscreen"}}var Jt=-1,us=_l,ss=Do;function Ll(e){switch(Pi(e)){case $e:return $e;case Ro:return Ro;case Hr:return Hr;case Bi:return Bi;case fr:return fr;case Dl:return Dl;case _l:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:return e&wo;case Do:case ed:case td:case nd:case ad:return e&ls;case kl:return kl;case Ml:return Ml;case $i:return $i;case wa:return wa;default:return f("Should have found matching lanes. This is a bug in React."),e}}function cs(e,t){var n=e.pendingLanes;if(n===$)return $;var a=$,r=e.suspendedLanes,i=e.pingedLanes,o=n&mh;if(o!==$){var l=o&~r;if(l!==$)a=Ll(l);else{var u=o&i;u!==$&&(a=Ll(u))}}else{var c=n&~r;c!==$?a=Ll(c):i!==$&&(a=Ll(i))}if(a===$)return $;if(t!==$&&t!==a&&(t&r)===$){var d=Pi(a),g=Pi(t);if(d>=g||d===fr&&(g&wo)!==$)return t}(a&Hr)!==$&&(a|=n&fr);var y=e.entangledLanes;if(y!==$)for(var D=e.entanglements,k=a&y;k>0;){var A=Yi(k),ie=1<<A;a|=D[A],k&=~ie}return a}function VT(e,t){for(var n=e.eventTimes,a=Jt;t>0;){var r=Yi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function BT(e,t){switch(e){case $e:case Ro:case Hr:return t+250;case Bi:case fr:case Dl:case _l:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:return t+5e3;case Do:case ed:case td:case nd:case ad:return Jt;case kl:case Ml:case $i:case wa:return Jt;default:return f("Should have found matching lanes. This is a bug in React."),Jt}}function $T(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Yi(o),u=1<<l,c=i[l];c===Jt?((u&a)===$||(u&r)!==$)&&(i[l]=BT(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function PT(e){return Ll(e.pendingLanes)}function rd(e){var t=e.pendingLanes&~wa;return t!==$?t:t&wa?wa:$}function YT(e){return(e&$e)!==$}function id(e){return(e&mh)!==$}function hh(e){return(e&ls)===e}function IT(e){var t=$e|Hr|fr;return(e&t)===$}function WT(e){return(e&wo)===e}function fs(e,t){var n=Ro|Hr|Bi|fr;return(t&n)!==$}function qT(e,t){return(t&e.expiredLanes)!==$}function yh(e){return(e&wo)!==$}function gh(){var e=us;return us<<=1,(us&wo)===$&&(us=_l),e}function GT(){var e=ss;return ss<<=1,(ss&ls)===$&&(ss=Do),e}function Pi(e){return e&-e}function Ol(e){return Pi(e)}function Yi(e){return 31-vh(e)}function od(e){return Yi(e)}function Da(e,t){return(e&t)!==$}function _o(e,t){return(e&t)===t}function at(e,t){return e|t}function ds(e,t){return e&~t}function bh(e,t){return e&t}function m_(e){return e}function XT(e,t){return e!==Un&&e<t?e:t}function ld(e){for(var t=[],n=0;n<zf;n++)t.push(e);return t}function Al(e,t,n){e.pendingLanes|=t,t!==$i&&(e.suspendedLanes=$,e.pingedLanes=$);var a=e.eventTimes,r=od(t);a[r]=n}function QT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Yi(a),i=1<<r;n[r]=Jt,a&=~i}}function Sh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function KT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=$,e.pingedLanes=$,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=Yi(o),u=1<<l;a[l]=$,r[l]=Jt,i[l]=Jt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Yi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function JT(e,t){var n=Pi(t),a;switch(n){case Hr:a=Ro;break;case fr:a=Bi;break;case _l:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:case Do:case ed:case td:case nd:case ad:a=Dl;break;case $i:a=Ml;break;default:a=Un;break}return(a&(e.suspendedLanes|t))!==Un?Un:a}function Th(e,t,n){if(Ga)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Eh(e,t){if(Ga)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function Ch(e,t){return null}var _a=$e,zr=Hr,Fr=fr,vs=$i,Nl=Un;function Xa(){return Nl}function Hn(e){Nl=e}function ZT(e,t){var n=Nl;try{return Nl=e,t()}finally{Nl=n}}function eE(e,t){return e!==0&&e<t?e:t}function tE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function xh(e){var t=Pi(e);return sd(_a,t)?sd(zr,t)?id(t)?Fr:vs:zr:_a}function ps(e){var t=e.current.memoizedState;return t.isDehydrated}var Rh;function nE(e){Rh=e}function aE(e){Rh(e)}var cd;function rE(e){cd=e}var wh;function iE(e){wh=e}var Dh;function oE(e){Dh=e}var _h;function lE(e){_h=e}var fd=!1,ms=[],li=null,ui=null,si=null,jl=new Map,Ul=new Map,ci=[],uE=["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 sE(e){return uE.indexOf(e)>-1}function cE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function kh(e,t){switch(e){case"focusin":case"focusout":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;jl.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Ul.delete(a);break}}}function Hl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=cE(t,n,a,r,i);if(t!==null){var l=vi(t);l!==null&&cd(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function fE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return li=Hl(li,e,t,n,a,i),!0}case"dragenter":{var o=r;return ui=Hl(ui,e,t,n,a,o),!0}case"mouseover":{var l=r;return si=Hl(si,e,t,n,a,l),!0}case"pointerover":{var u=r,c=u.pointerId;return jl.set(c,Hl(jl.get(c)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,g=d.pointerId;return Ul.set(g,Hl(Ul.get(g)||null,e,t,n,a,d)),!0}}return!1}function Mh(e){var t=qi(e.target);if(t!==null){var n=Fi(t);if(n!==null){var a=n.tag;if(a===Ce){var r=eh(n);if(r!==null){e.blockedOn=r,_h(e.priority,function(){wh(n)});return}}else if(a===ce){var i=n.stateNode;if(ps(i)){e.blockedOn=th(n);return}}}}e.blockedOn=null}function dE(e){for(var t=Dh(),n={blockedOn:null,target:e,priority:t},a=0;a<ci.length&&sd(t,ci[a].priority);a++);ci.splice(a,0,n),a===0&&Mh(n)}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=pd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);FS(i),r.target.dispatchEvent(i),VS()}else{var o=vi(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Lh(e,t,n){hs(e)&&n.delete(t)}function vE(){fd=!1,li!==null&&hs(li)&&(li=null),ui!==null&&hs(ui)&&(ui=null),si!==null&&hs(si)&&(si=null),jl.forEach(Lh),Ul.forEach(Lh)}function zl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,R.unstable_scheduleCallback(R.unstable_NormalPriority,vE)))}function Fl(e){if(ms.length>0){zl(ms[0],e);for(var t=1;t<ms.length;t++){var n=ms[t];n.blockedOn===e&&(n.blockedOn=null)}}li!==null&&zl(li,e),ui!==null&&zl(ui,e),si!==null&&zl(si,e);var a=function(l){return zl(l,e)};jl.forEach(a),Ul.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;Mh(o),o.blockedOn===null&&ci.shift()}}var ko=be.ReactCurrentBatchConfig,dd=!0;function Oh(e){dd=!!e}function pE(){return dd}function mE(e,t,n){var a=Ah(t),r;switch(a){case _a:r=hE;break;case zr:r=yE;break;case Fr:default:r=vd;break}return r.bind(null,t,n,e)}function hE(e,t,n,a){var r=Xa(),i=ko.transition;ko.transition=null;try{Hn(_a),vd(e,t,n,a)}finally{Hn(r),ko.transition=i}}function yE(e,t,n,a){var r=Xa(),i=ko.transition;ko.transition=null;try{Hn(zr),vd(e,t,n,a)}finally{Hn(r),ko.transition=i}}function vd(e,t,n,a){dd&&gE(e,t,n,a)}function gE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,ys,n),kh(e,a);return}if(fE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&Sl&&sE(e)){for(;r!==null;){var i=vi(r);i!==null&&aE(i);var o=pd(e,t,n,a);if(o===null&&_d(e,t,a,ys,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}_d(e,t,a,null,n)}var ys=null;function pd(e,t,n,a){ys=null;var r=Sf(a),i=qi(r);if(i!==null){var o=Fi(i);if(o===null)i=null;else{var l=o.tag;if(l===Ce){var u=eh(o);if(u!==null)return u;i=null}else if(l===ce){var c=o.stateNode;if(ps(c))return th(o);i=null}else o!==i&&(i=null)}}return ys=i,null}function Ah(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 _a;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 zr;case"message":{var t=sT();switch(t){case os:return _a;case jf:return zr;case Vi:case cT:return Fr;case Uf:return vs;default:return Fr}}default:return Fr}}function bE(e,t,n){return e.addEventListener(t,n,!1),n}function SE(e,t,n){return e.addEventListener(t,n,!0),n}function TE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function EE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Vl=null,md=null,Bl=null;function CE(e){return Vl=e,md=jh(),!0}function xE(){Vl=null,md=null,Bl=null}function Nh(){if(Bl)return Bl;var e,t=md,n=t.length,a,r=jh(),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 Bl=r.slice(e,l),Bl}function jh(){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 Uh(){return!1}function ka(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 c=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return c?this.isDefaultPrevented=bs:this.isDefaultPrevented=Uh,this.isPropagationStopped=Uh,this}return F(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 Mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=ka(Mo),$l=F({},Mo,{view:0,detail:0}),RE=ka($l),yd,gd,Pl;function wE(e){e!==Pl&&(Pl&&e.type==="mousemove"?(yd=e.screenX-Pl.screenX,gd=e.screenY-Pl.screenY):(yd=0,gd=0),Pl=e)}var Ss=F({},$l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(wE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Hh=ka(Ss),DE=F({},Ss,{dataTransfer:0}),_E=ka(DE),kE=F({},$l,{relatedTarget:0}),bd=ka(kE),ME=F({},Mo,{animationName:0,elapsedTime:0,pseudoElement:0}),LE=ka(ME),OE=F({},Mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),AE=ka(OE),NE=F({},Mo,{data:0}),zh=ka(NE),jE=zh,UE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HE={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 zE(e){if(e.key){var t=UE[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"?HE[e.keyCode]||"Unidentified":""}var FE={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=FE[e];return a?!!n[a]:!1}function Sd(e){return VE}var BE=F({},$l,{key:zE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return e.type==="keypress"?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}}),$E=ka(BE),PE=F({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=ka(PE),YE=F({},$l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),IE=ka(YE),WE=F({},Mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),qE=ka(WE),GE=F({},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}),XE=ka(GE),QE=[9,13,27,32],Vh=229,Td=St&&"CompositionEvent"in window,Yl=null;St&&"documentMode"in document&&(Yl=document.documentMode);var KE=St&&"TextEvent"in window&&!Yl,Bh=St&&(!Td||Yl&&Yl>8&&Yl<=11),$h=32,Ph=String.fromCharCode($h);function JE(){Ze("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ze("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Yh=!1;function ZE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function eC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function tC(e,t){return e==="keydown"&&t.keyCode===Vh}function Ih(e,t){switch(e){case"keyup":return QE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Vh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function qh(e){return e.locale==="ko"}var Lo=!1;function nC(e,t,n,a,r){var i,o;if(Td?i=eC(t):Lo?Ih(t,a)&&(i="onCompositionEnd"):tC(t,a)&&(i="onCompositionStart"),!i)return null;Bh&&!qh(a)&&(!Lo&&i==="onCompositionStart"?Lo=CE(r):i==="onCompositionEnd"&&Lo&&(o=Nh()));var l=Rs(n,i);if(l.length>0){var u=new zh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var c=Wh(a);c!==null&&(u.data=c)}}}function aC(e,t){switch(e){case"compositionend":return Wh(t);case"keypress":var n=t.which;return n!==$h?null:(Yh=!0,Ph);case"textInput":var a=t.data;return a===Ph&&Yh?null:a;default:return null}}function rC(e,t){if(Lo){if(e==="compositionend"||!Td&&Ih(e,t)){var n=Nh();return xE(),Lo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!ZE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bh&&!qh(t)?null:t.data;default:return null}}function iC(e,t,n,a,r){var i;if(KE?i=aC(t,a):i=rC(t,a),!i)return null;var o=Rs(n,"onBeforeInput");if(o.length>0){var l=new jE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function oC(e,t,n,a,r,i,o){nC(e,t,n,a,r),iC(e,t,n,a,r)}var lC={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 Gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!lC[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 uC(e){if(!St)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 sC(){Ze("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Xh(e,t,n,a){Im(a);var r=Rs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Il=null,Wl=null;function cC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function fC(e){var t=[];Xh(t,Wl,e,Sf(e)),Xm(dC,t)}function dC(e){vy(e,0)}function Ts(e){var t=Ho(e);if(pl(t))return e}function vC(e,t){if(e==="change")return t}var Qh=!1;St&&(Qh=uC("input")&&(!document.documentMode||document.documentMode>9));function pC(e,t){Il=e,Wl=t,Il.attachEvent("onpropertychange",Jh)}function Kh(){Il&&(Il.detachEvent("onpropertychange",Jh),Il=null,Wl=null)}function Jh(e){e.propertyName==="value"&&Ts(Wl)&&fC(e)}function mC(e,t,n){e==="focusin"?(Kh(),pC(t,n)):e==="focusout"&&Kh()}function hC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Wl)}function yC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function gC(e,t){if(e==="click")return Ts(t)}function bC(e,t){if(e==="input"||e==="change")return Ts(t)}function SC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ue(e,"number",e.value)}function TC(e,t,n,a,r,i,o){var l=n?Ho(n):window,u,c;if(cC(l)?u=vC:Gh(l)?Qh?u=bC:(u=hC,c=mC):yC(l)&&(u=gC),u){var d=u(t,n);if(d){Xh(e,d,a,r);return}}c&&c(t,l,n),t==="focusout"&&SC(l)}function EC(){Gt("onMouseEnter",["mouseout","mouseover"]),Gt("onMouseLeave",["mouseout","mouseover"]),Gt("onPointerEnter",["pointerout","pointerover"]),Gt("onPointerLeave",["pointerout","pointerover"])}function CC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!BS(a)){var c=a.relatedTarget||a.fromElement;if(c&&(qi(c)||lu(c)))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,D;if(u){var k=a.relatedTarget||a.toElement;if(y=n,D=k?qi(k):null,D!==null){var A=Fi(D);(D!==A||D.tag!==te&&D.tag!==Be)&&(D=null)}}else y=null,D=n;if(y!==D){var ie=Hh,Me="onMouseLeave",_e="onMouseEnter",bt="mouse";(t==="pointerout"||t==="pointerover")&&(ie=Fh,Me="onPointerLeave",_e="onPointerEnter",bt="pointer");var pt=y==null?d:Ho(y),C=D==null?d:Ho(D),N=new ie(Me,bt+"leave",y,a,r);N.target=pt,N.relatedTarget=C;var x=null,Y=qi(r);if(Y===n){var pe=new ie(_e,bt+"enter",D,a,r);pe.target=C,pe.relatedTarget=pt,x=pe}qC(e,N,x,y,D)}}}function xC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ma=typeof Object.is=="function"?Object.is:xC;function ql(e,t){if(Ma(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(!it.call(t,i)||!Ma(e[i],t[i]))return!1}return!0}function Zh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function RC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ey(e,t){for(var n=Zh(e),a=0,r=0;n;){if(n.nodeType===Or){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Zh(RC(n))}}function wC(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 DC(e,r,i,o,l)}function DC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,c=0,d=e,g=null;e:for(;;){for(var y=null;d===t&&(n===0||d.nodeType===Or)&&(o=i+n),d===a&&(r===0||d.nodeType===Or)&&(l=i+r),d.nodeType===Or&&(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&&++c===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 _C(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 c=ey(e,o),d=ey(e,l);if(c&&d){if(r.rangeCount===1&&r.anchorNode===c.node&&r.anchorOffset===c.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var g=n.createRange();g.setStart(c.node,c.offset),r.removeAllRanges(),o>l?(r.addRange(g),r.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),r.addRange(g))}}}function ty(e){return e&&e.nodeType===Or}function ny(e,t){return!e||!t?!1:e===t?!0:ty(e)?!1:ty(t)?ny(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function kC(e){return e&&e.ownerDocument&&ny(e.ownerDocument.documentElement,e)}function MC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ay(){for(var e=window,t=kr();t instanceof e.HTMLIFrameElement;){if(MC(t))e=t.contentWindow;else return t;t=kr(e.document)}return t}function Ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function LC(){var e=ay();return{focusedElem:e,selectionRange:Ed(e)?AC(e):null}}function OC(e){var t=ay(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&kC(n)){a!==null&&Ed(n)&&NC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ga&&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 AC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=wC(e),t||{start:0,end:0}}function NC(e,t){var n=t.start,a=t.end;a===void 0&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):_C(e,t)}var jC=St&&"documentMode"in document&&document.documentMode<=11;function UC(){Ze("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Oo=null,Cd=null,Gl=null,xd=!1;function HC(e){if("selectionStart"in e&&Ed(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function zC(e){return e.window===e?e.document:e.nodeType===Ar?e:e.ownerDocument}function ry(e,t,n){var a=zC(n);if(!(xd||Oo==null||Oo!==kr(a))){var r=HC(Oo);if(!Gl||!ql(Gl,r)){Gl=r;var i=Rs(Cd,"onSelect");if(i.length>0){var o=new hd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Oo}}}}function FC(e,t,n,a,r,i,o){var l=n?Ho(n):window;switch(t){case"focusin":(Gh(l)||l.contentEditable==="true")&&(Oo=l,Cd=n,Gl=null);break;case"focusout":Oo=null,Cd=null,Gl=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,ry(e,a,r);break;case"selectionchange":if(jC)break;case"keydown":case"keyup":ry(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 Ao={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Rd={},iy={};St&&(iy=document.createElement("div").style,"AnimationEvent"in window||(delete Ao.animationend.animation,delete Ao.animationiteration.animation,delete Ao.animationstart.animation),"TransitionEvent"in window||delete Ao.transitionend.transition);function Cs(e){if(Rd[e])return Rd[e];if(!Ao[e])return e;var t=Ao[e];for(var n in t)if(t.hasOwnProperty(n)&&n in iy)return Rd[e]=t[n];return e}var oy=Cs("animationend"),ly=Cs("animationiteration"),uy=Cs("animationstart"),sy=Cs("transitionend"),cy=new Map,fy=["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){cy.set(e,t),Ze(t,[e])}function VC(){for(var e=0;e<fy.length;e++){var t=fy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);fi(n,"on"+a)}fi(oy,"onAnimationEnd"),fi(ly,"onAnimationIteration"),fi(uy,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(sy,"onTransitionEnd")}function BC(e,t,n,a,r,i,o){var l=cy.get(t);if(l!==void 0){var u=hd,c=t;switch(t){case"keypress":if(gs(a)===0)return;case"keydown":case"keyup":u=$E;break;case"focusin":c="focus",u=bd;break;case"focusout":c="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=_E;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=IE;break;case oy:case ly:case uy:u=LE;break;case sy:u=qE;break;case"scroll":u=RE;break;case"wheel":u=XE;break;case"copy":case"cut":case"paste":u=AE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Fh;break}var d=(i&Sl)!==0;{var g=!d&&t==="scroll",y=IC(n,l,a.type,d,g);if(y.length>0){var D=new u(l,c,null,a,r);e.push({event:D,listeners:y})}}}}VC(),EC(),sC(),UC(),JE();function $C(e,t,n,a,r,i,o){BC(e,t,n,a,r,i);var l=(i&zS)===0;l&&(CC(e,t,n,a,r),TC(e,t,n,a,r),FC(e,t,n,a,r),oC(e,t,n,a,r))}var Xl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],wd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Xl));function dy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,QS(a,t,void 0,e),e.currentTarget=null}function PC(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;dy(e,u,l),a=o}else for(var c=0;c<t.length;c++){var d=t[c],g=d.instance,y=d.currentTarget,D=d.listener;if(g!==a&&e.isPropagationStopped())return;dy(e,D,y),a=g}}function vy(e,t){for(var n=(t&Sl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;PC(i,o,n)}KS()}function YC(e,t,n,a,r){var i=Sf(n),o=[];$C(o,e,a,n,i,t),vy(o,t)}function Zt(e,t){wd.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=S1(t),r=GC(e);a.has(r)||(py(t,e,bf,n),a.add(r))}function Dd(e,t,n){wd.has(e)&&!t&&f('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|=Sl),py(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function Ql(e){if(!e[xs]){e[xs]=!0,ze.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===Ar?e:e.ownerDocument;t!==null&&(t[xs]||(t[xs]=!0,Dd("selectionchange",!1,t)))}}function py(e,t,n,a,r){var i=mE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?TE(e,t,i,o):SE(e,t,i):o!==void 0?EE(e,t,i,o):bE(e,t,i)}function my(e,t){return e===t||e.nodeType===bn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Pm)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===ce||u===je){var c=l.stateNode.containerInfo;if(my(c,o))break;if(u===je)for(var d=l.return;d!==null;){var g=d.tag;if(g===ce||g===je){var y=d.stateNode.containerInfo;if(my(y,o))return}d=d.return}for(;c!==null;){var D=qi(c);if(D===null)return;var k=D.tag;if(k===te||k===Be){l=i=D;continue e}c=c.parentNode}}l=l.return}}}Xm(function(){return YC(e,t,n,i)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],c=e,d=null;c!==null;){var g=c,y=g.stateNode,D=g.tag;if(D===te&&y!==null&&(d=y,l!==null)){var k=El(c,l);k!=null&&u.push(Kl(c,k,d))}if(r)break;c=c.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===te&&o!==null){var u=o,c=El(r,n);c!=null&&a.unshift(Kl(r,c,u));var d=El(r,t);d!=null&&a.push(Kl(r,d,u))}r=r.return}return a}function No(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==te);return e||null}function WC(e,t){for(var n=e,a=t,r=0,i=n;i;i=No(i))r++;for(var o=0,l=a;l;l=No(l))o++;for(;r-o>0;)n=No(n),r--;for(;o-r>0;)a=No(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=No(n),a=No(a)}return null}function hy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,c=u.alternate,d=u.stateNode,g=u.tag;if(c!==null&&c===a)break;if(g===te&&d!==null){var y=d;if(r){var D=El(l,i);D!=null&&o.unshift(Kl(l,D,y))}else if(!r){var k=El(l,i);k!=null&&o.push(Kl(l,k,y))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function qC(e,t,n,a,r){var i=a&&r?WC(a,r):null;a!==null&&hy(e,t,a,i,!1),r!==null&&n!==null&&hy(e,n,r,i,!0)}function GC(e,t){return e+"__bubble"}var ba=!1,Jl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",di="suppressHydrationWarning",yy="autoFocus",Ii="children",Wi="style",Ds="__html",kd,_s,Zl,gy,ks,by,Sy;kd={dialog:!0,webview:!0},_s=function(e,t){LS(e,t),OS(e,t),HS(e,t,{registrationNameDependencies:Ve,possibleRegistrationNames:vn})},by=St&&!document.documentMode,Zl=function(e,t,n){if(!ba){var a=Ms(n),r=Ms(t);r!==a&&(ba=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},gy=function(e){if(!ba){ba=!0;var t=[];e.forEach(function(n){t.push(n)}),f("Extra attributes from the server: %s",t)}},ks=function(e,t){t===!1?f("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):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Sy=function(e,t){var n=e.namespaceURI===Lr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var XC=/\r\n?/g,QC=/\u0000|\uFFFD/g;function Ms(e){Te(e);var t=typeof e=="string"?e:""+e;return t.replace(XC,`
|
|
`).replace(QC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ba||(ba=!0,f('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Ty(e){return e.nodeType===Ar?e:e.ownerDocument}function KC(){}function Os(e){e.onclick=KC}function JC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Wi)o&&Object.freeze(o),Hm(t,o);else if(i===Jl){var l=o?o[Ds]:void 0;l!=null&&Om(t,l)}else if(i===Ii)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===yy||(Ve.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&Zt("scroll",t)):o!=null&&Ra(t,i,o,r))}}function ZC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Wi?Hm(e,o):i===Jl?Om(e,o):i===Ii?ts(e,o):Ra(e,i,o,a)}}function ex(e,t,n,a){var r,i=Ty(n),o,l=a;if(l===Lr&&(l=vf(e)),l===Lr){if(r=Ni(e,t),!r&&e!==e.toLowerCase()&&f("<%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 c=u.firstChild;o=u.removeChild(c)}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===Lr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!it.call(kd,e)&&(kd[e]=!0,f("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 tx(e,t){return Ty(t).createTextNode(e)}function nx(e,t,n,a){var r=Ni(t,n);_s(t,n);var i;switch(t){case"dialog":Zt("cancel",e),Zt("close",e),i=n;break;case"iframe":case"object":case"embed":Zt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Xl.length;o++)Zt(Xl[o],e);i=n;break;case"source":Zt("error",e),i=n;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),i=n;break;case"details":Zt("toggle",e),i=n;break;case"input":Ju(e,n),i=ml(e,n),Zt("invalid",e);break;case"option":Vt(e,n),i=n;break;case"select":gl(e,n),i=yl(e,n),Zt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Zt("invalid",e);break;default:i=n}switch(gf(t,i),JC(t,e,a,i,r),t){case"input":Oi(e),_(e,n,!1);break;case"textarea":Oi(e),Lm(e);break;case"option":Qt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Os(e);break}}function ax(e,t,n,a,r){_s(t,a);var i=null,o,l;switch(t){case"input":o=ml(e,n),l=ml(e,a),i=[];break;case"select":o=yl(e,n),l=yl(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Os(e);break}gf(t,l);var u,c,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Wi){var g=o[u];for(c in g)g.hasOwnProperty(c)&&(d||(d={}),d[c]="")}else u===Jl||u===Ii||u===ws||u===di||u===yy||(Ve.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],D=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===D||y==null&&D==null))if(u===Wi)if(y&&Object.freeze(y),D){for(c in D)D.hasOwnProperty(c)&&(!y||!y.hasOwnProperty(c))&&(d||(d={}),d[c]="");for(c in y)y.hasOwnProperty(c)&&D[c]!==y[c]&&(d||(d={}),d[c]=y[c])}else d||(i||(i=[]),i.push(u,d)),d=y;else if(u===Jl){var k=y?y[Ds]:void 0,A=D?D[Ds]:void 0;k!=null&&A!==k&&(i=i||[]).push(u,k)}else u===Ii?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===ws||u===di||(Ve.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&ks(u,y),u==="onScroll"&&Zt("scroll",e)),!i&&D!==y&&(i=[])):(i=i||[]).push(u,y))}return d&&(CS(d,l[Wi]),(i=i||[]).push(Wi,d)),i}function rx(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ni(n,a),o=Ni(n,r);switch(ZC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Mm(e,r);break;case"select":Zu(e,r);break}}function ix(e){{var t=e.toLowerCase();return ns.hasOwnProperty(t)&&ns[t]||null}}function ox(e,t,n,a,r,i,o){var l,u;switch(l=Ni(t,n),_s(t,n),t){case"dialog":Zt("cancel",e),Zt("close",e);break;case"iframe":case"object":case"embed":Zt("load",e);break;case"video":case"audio":for(var c=0;c<Xl.length;c++)Zt(Xl[c],e);break;case"source":Zt("error",e);break;case"img":case"image":case"link":Zt("error",e),Zt("load",e);break;case"details":Zt("toggle",e);break;case"input":Ju(e,n),Zt("invalid",e);break;case"option":Vt(e,n);break;case"select":gl(e,n),Zt("invalid",e);break;case"textarea":km(e,n),Zt("invalid",e);break}gf(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 D=null;for(var k in n)if(n.hasOwnProperty(k)){var A=n[k];if(k===Ii)typeof A=="string"?e.textContent!==A&&(n[di]!==!0&&Ls(e.textContent,A,i,o),D=[Ii,A]):typeof A=="number"&&e.textContent!==""+A&&(n[di]!==!0&&Ls(e.textContent,A,i,o),D=[Ii,""+A]);else if(Ve.hasOwnProperty(k))A!=null&&(typeof A!="function"&&ks(k,A),k==="onScroll"&&Zt("scroll",e));else if(o&&typeof l=="boolean"){var ie=void 0,Me=Xt(k);if(n[di]!==!0){if(!(k===ws||k===di||k==="value"||k==="checked"||k==="selected")){if(k===Jl){var _e=e.innerHTML,bt=A?A[Ds]:void 0;if(bt!=null){var pt=Sy(e,bt);pt!==_e&&Zl(k,_e,pt)}}else if(k===Wi){if(u.delete(k),by){var C=TS(A);ie=e.getAttribute("style"),C!==ie&&Zl(k,ie,C)}}else if(l&&!At)u.delete(k.toLowerCase()),ie=ei(e,k,A),A!==ie&&Zl(k,ie,A);else if(!Wt(k,Me,l)&&!zn(k,A,Me,l)){var N=!1;if(Me!==null)u.delete(Me.attributeName),ie=Zr(e,k,A,Me);else{var x=a;if(x===Lr&&(x=vf(t)),x===Lr)u.delete(k.toLowerCase());else{var Y=ix(k);Y!==null&&Y!==k&&(N=!0,u.delete(Y)),u.delete(k)}ie=ei(e,k,A)}var pe=At;!pe&&A!==ie&&!N&&Zl(k,ie,A)}}}}}switch(o&&u.size>0&&n[di]!==!0&&gy(u),t){case"input":Oi(e),_(e,n,!0);break;case"textarea":Oi(e),Lm(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Os(e);break}return D}function lx(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(ba)return;ba=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(ba)return;ba=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(ba)return;ba=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||ba)return;ba=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function ux(e,t,n){switch(t){case"input":O(e,n);return;case"textarea":nS(e,n);return;case"select":cf(e,n);return}}var eu=function(){},tu=function(){};{var sx=["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"],Ey=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],cx=Ey.concat(["button"]),fx=["dd","dt","li","option","optgroup","p","rp","rt"],Cy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};tu=function(e,t){var n=F({},e||Cy),a={tag:t};return Ey.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),cx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),sx.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 dx=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 fx.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},vx=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},xy={};eu=function(e,t,n){n=n||Cy;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=dx(e,r)?null:a,o=i?null:vx(e,n),l=i||o;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!xy[c]){xy[c]=!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."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,g,y)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var As="suppressHydrationWarning",Ns="$",js="/$",nu="$?",au="$!",px="style",Nd=null,jd=null;function mx(e){var t,n,a=e.nodeType;switch(a){case Ar:case mf:{t=a===Ar?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===bn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=tu(null,l);return{namespace:n,ancestorInfo:u}}}function hx(e,t,n){{var a=e,r=pf(a.namespace,t),i=tu(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function h_(e){return e}function yx(e){Nd=pE(),jd=LC();var t=null;return Oh(!1),t}function gx(e){OC(jd),Oh(Nd),Nd=null,jd=null}function bx(e,t,n,a,r){var i;{var o=a;if(eu(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=tu(o.ancestorInfo,e);eu(null,l,u)}i=o.namespace}var c=ex(e,t,n,i);return ou(r,c),Pd(c,t),c}function Sx(e,t){e.appendChild(t)}function Tx(e,t,n,a,r){switch(nx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Ex(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=tu(o.ancestorInfo,t);eu(null,l,u)}}return ax(e,t,n,a)}function Ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Cx(e,t,n,a){{var r=n;eu(null,e,r.ancestorInfo)}var i=tx(e,t);return ou(a,i),i}function xx(){var e=window.event;return e===void 0?Fr:Ah(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Ry=typeof Promise=="function"?Promise:void 0,wx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(e){return Ry.resolve(null).then(e).catch(Dx)}:Hd;function Dx(e){setTimeout(function(){throw e})}function _x(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 kx(e,t,n,a,r,i){rx(e,t,n,a,r),Pd(e,r)}function wy(e){ts(e,"")}function Mx(e,t,n){e.nodeValue=n}function Lx(e,t){e.appendChild(t)}function Ox(e,t){var n;e.nodeType===bn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Os(n)}function Ax(e,t,n){e.insertBefore(t,n)}function Nx(e,t,n){e.nodeType===bn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function jx(e,t){e.removeChild(t)}function Ux(e,t){e.nodeType===bn?e.parentNode.removeChild(t):e.removeChild(t)}function Fd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===bn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),Fl(t);return}else a--;else(i===Ns||i===nu||i===au)&&a++}n=r}while(n);Fl(t)}function Hx(e,t){e.nodeType===bn?Fd(e.parentNode,t):e.nodeType===ga&&Fd(e,t),Fl(e)}function zx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Fx(e){e.nodeValue=""}function Vx(e,t){e=e;var n=t[px],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Bx(e,t){e.nodeValue=t}function $x(e){e.nodeType===ga?e.textContent="":e.nodeType===Ar&&e.documentElement&&e.removeChild(e.documentElement)}function Px(e,t,n){return e.nodeType!==ga||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Yx(e,t){return t===""||e.nodeType!==Or?null:e}function Ix(e){return e.nodeType!==bn?null:e}function Dy(e){return e.data===nu}function Vd(e){return e.data===au}function Wx(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 qx(e,t){e._reactRetry=t}function Us(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ga||t===Or)break;if(t===bn){var n=e.data;if(n===Ns||n===au||n===nu)break;if(n===js)return null}}return e}function ru(e){return Us(e.nextSibling)}function Gx(e){return Us(e.firstChild)}function Xx(e){return Us(e.firstChild)}function Qx(e){return Us(e.nextSibling)}function Kx(e,t,n,a,r,i,o){ou(i,e),Pd(e,n);var l;{var u=r;l=u.namespace}var c=(i.mode&yt)!==Ne;return ox(e,t,n,l,a,c,o)}function Jx(e,t,n,a){return ou(n,e),n.mode&yt,lx(e,t)}function Zx(e,t){ou(t,e)}function e1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===bn){var a=t.data;if(a===js){if(n===0)return ru(t);n--}else(a===Ns||a===au||a===nu)&&n++}t=t.nextSibling}return null}function _y(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===bn){var a=t.data;if(a===Ns||a===au||a===nu){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function t1(e){Fl(e)}function n1(e){Fl(e)}function a1(e){return e!=="head"&&e!=="body"}function r1(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function i1(e,t,n,a,r,i){if(t[As]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function o1(e,t){t.nodeType===ga?Md(e,t):t.nodeType===bn||Ld(e,t)}function l1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ga?Md(n,t):t.nodeType===bn||Ld(n,t))}}function u1(e,t,n,a,r){(r||t[As]!==!0)&&(a.nodeType===ga?Md(n,a):a.nodeType===bn||Ld(n,a))}function s1(e,t,n){Od(e,t)}function c1(e,t){Ad(e,t)}function f1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function d1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function v1(e,t,n,a,r,i){(i||t[As]!==!0)&&Od(n,a)}function p1(e,t,n,a,r){(r||t[As]!==!0)&&Ad(n,a)}function m1(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function h1(e){Ql(e)}var jo=Math.random().toString(36).slice(2),Uo="__reactFiber$"+jo,Bd="__reactProps$"+jo,iu="__reactContainer$"+jo,$d="__reactEvents$"+jo,y1="__reactListeners$"+jo,g1="__reactHandles$"+jo;function b1(e){delete e[Uo],delete e[Bd],delete e[$d],delete e[y1],delete e[g1]}function ou(e,t){t[Uo]=e}function Hs(e,t){t[iu]=e}function ky(e){e[iu]=null}function lu(e){return!!e[iu]}function qi(e){var t=e[Uo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[iu]||n[Uo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=_y(e);r!==null;){var i=r[Uo];if(i)return i;r=_y(r)}return t}e=n,n=e.parentNode}return null}function vi(e){var t=e[Uo]||e[iu];return t&&(t.tag===te||t.tag===Be||t.tag===Ce||t.tag===ce)?t:null}function Ho(e){if(e.tag===te||e.tag===Be)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Bd]||null}function Pd(e,t){e[Bd]=t}function S1(e){var t=e[$d];return t===void 0&&(t=e[$d]=new Set),t}var My={},Ly=be.ReactDebugCurrentFrame;function Fs(e){if(e){var t=e._owner,n=_t(e.type,e._source,t?t.type:null);Ly.setExtraStackFrame(n)}else Ly.setExtraStackFrame(null)}function Qa(e,t,n,a,r){{var i=Function.call.bind(it);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(c){l=c}l&&!(l instanceof Error)&&(Fs(r),f("%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),Fs(null)),l instanceof Error&&!(l.message in My)&&(My[l.message]=!0,Fs(r),f("Failed %s type: %s",n,l.message),Fs(null))}}}var Yd=[],Vs;Vs=[];var Vr=-1;function pi(e){return{current:e}}function Kn(e,t){if(Vr<0){f("Unexpected pop.");return}t!==Vs[Vr]&&f("Unexpected Fiber popped."),e.current=Yd[Vr],Yd[Vr]=null,Vs[Vr]=null,Vr--}function Jn(e,t,n){Vr++,Yd[Vr]=e.current,Vs[Vr]=n,e.current=t}var Id;Id={};var La={};Object.freeze(La);var Br=pi(La),dr=pi(!1),Wd=La;function zo(e,t,n){return n&&vr(t)?Wd:Br.current}function Oy(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function Fo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return La;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=Ke(e)||"Unknown";Qa(a,i,"context",l)}return r&&Oy(e,t,i),i}}function Bs(){return dr.current}function vr(e){{var t=e.childContextTypes;return t!=null}}function $s(e){Kn(dr,e),Kn(Br,e)}function qd(e){Kn(dr,e),Kn(Br,e)}function Ay(e,t,n){{if(Br.current!==La)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Jn(Br,t,e),Jn(dr,n,e)}}function Ny(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ke(e)||"Unknown";Id[i]||(Id[i]=!0,f("%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((Ke(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ke(e)||"Unknown";Qa(r,o,"child context",u)}return F({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||La;return Wd=Br.current,Jn(Br,n,e),Jn(dr,dr.current,e),!0}}function jy(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=Ny(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,Kn(dr,e),Kn(Br,e),Jn(Br,r,e),Jn(dr,n,e)}else Kn(dr,e),Jn(dr,n,e)}}function T1(e){{if(!aT(e)||e.tag!==re)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 ce:return t.stateNode.context;case re:{var n=t.type;if(vr(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,$r=null,Gd=!1,Xd=!1;function Uy(e){$r===null?$r=[e]:$r.push(e)}function E1(e){Gd=!0,Uy(e)}function Hy(){Gd&&hi()}function hi(){if(!Xd&&$r!==null){Xd=!0;var e=0,t=Xa();try{var n=!0,a=$r;for(Hn(_a);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}$r=null,Gd=!1}catch(i){throw $r!==null&&($r=$r.slice(e+1)),lh(os,hi),i}finally{Hn(t),Xd=!1}}return null}var Vo=[],Bo=0,Is=null,Ws=0,Fa=[],Va=0,Gi=null,Pr=1,Yr="";function C1(e){return Qi(),(e.flags&Zm)!==He}function x1(e){return Qi(),Ws}function R1(){var e=Yr,t=Pr,n=t&~w1(t);return n.toString(32)+e}function Xi(e,t){Qi(),Vo[Bo++]=Ws,Vo[Bo++]=Is,Is=e,Ws=t}function zy(e,t,n){Qi(),Fa[Va++]=Pr,Fa[Va++]=Yr,Fa[Va++]=Gi,Gi=e;var a=Pr,r=Yr,i=qs(a)-1,o=a&~(1<<i),l=n+1,u=qs(t)+i;if(u>30){var c=i-i%5,d=(1<<c)-1,g=(o&d).toString(32),y=o>>c,D=i-c,k=qs(t)+D,A=l<<D,ie=A|y,Me=g+r;Pr=1<<k|ie,Yr=Me}else{var _e=l<<i,bt=_e|o,pt=r;Pr=1<<u|bt,Yr=pt}}function Qd(e){Qi();var t=e.return;if(t!==null){var n=1,a=0;Xi(e,n),zy(e,n,a)}}function qs(e){return 32-vh(e)}function w1(e){return 1<<qs(e)-1}function Kd(e){for(;e===Is;)Is=Vo[--Bo],Vo[Bo]=null,Ws=Vo[--Bo],Vo[Bo]=null;for(;e===Gi;)Gi=Fa[--Va],Fa[Va]=null,Yr=Fa[--Va],Fa[Va]=null,Pr=Fa[--Va],Fa[Va]=null}function D1(){return Qi(),Gi!==null?{id:Pr,overflow:Yr}:null}function _1(e,t){Qi(),Fa[Va++]=Pr,Fa[Va++]=Yr,Fa[Va++]=Gi,Pr=t.id,Yr=t.overflow,Gi=e}function Qi(){$n()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Bn=null,Ba=null,Ka=!1,Ki=!1,yi=null;function k1(){Ka&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Fy(){Ki=!0}function M1(){return Ki}function L1(e){var t=e.stateNode.containerInfo;return Ba=Xx(t),Bn=e,Ka=!0,yi=null,Ki=!1,!0}function O1(e,t,n){return Ba=Qx(t),Bn=e,Ka=!0,yi=null,Ki=!1,n!==null&&_1(e,n),!0}function Vy(e,t){switch(e.tag){case ce:{o1(e.stateNode.containerInfo,t);break}case te:{var n=(e.mode&yt)!==Ne;u1(e.type,e.memoizedProps,e.stateNode,t,n);break}case Ce:{var a=e.memoizedState;a.dehydrated!==null&&l1(a.dehydrated,t);break}}}function By(e,t){Vy(e,t);var n=UD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=ji):a.push(n)}function Jd(e,t){{if(Ki)return;switch(e.tag){case ce:{var n=e.stateNode.containerInfo;switch(t.tag){case te:var a=t.type;t.pendingProps,s1(n,a);break;case Be:var r=t.pendingProps;c1(n,r);break}break}case te:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case te:{var u=t.type,c=t.pendingProps,d=(e.mode&yt)!==Ne;v1(i,o,l,u,c,d);break}case Be:{var g=t.pendingProps,y=(e.mode&yt)!==Ne;p1(i,o,l,g,y);break}}break}case Ce:{var D=e.memoizedState,k=D.dehydrated;if(k!==null)switch(t.tag){case te:var A=t.type;t.pendingProps,f1(k,A);break;case Be:var ie=t.pendingProps;d1(k,ie);break}break}default:return}}}function $y(e,t){t.flags=t.flags&~jr|Sn,Jd(e,t)}function Py(e,t){switch(e.tag){case te:{var n=e.type;e.pendingProps;var a=Px(t,n);return a!==null?(e.stateNode=a,Bn=e,Ba=Gx(a),!0):!1}case Be:{var r=e.pendingProps,i=Yx(t,r);return i!==null?(e.stateNode=i,Bn=e,Ba=null,!0):!1}case Ce:{var o=Ix(t);if(o!==null){var l={dehydrated:o,treeContext:D1(),retryLane:wa};e.memoizedState=l;var u=HD(o);return u.return=e,e.child=u,Bn=e,Ba=null,!0}return!1}default:return!1}}function Zd(e){return(e.mode&yt)!==Ne&&(e.flags&Lt)===He}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Ka){var t=Ba;if(!t){Zd(e)&&(Jd(Bn,e),ev()),$y(Bn,e),Ka=!1,Bn=e;return}var n=t;if(!Py(e,t)){Zd(e)&&(Jd(Bn,e),ev()),t=ru(n);var a=Bn;if(!t||!Py(e,t)){$y(Bn,e),Ka=!1,Bn=e;return}By(a,n)}}}function A1(e,t,n){var a=e.stateNode,r=!Ki,i=Kx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function N1(e){var t=e.stateNode,n=e.memoizedProps,a=Jx(t,n,e);if(a){var r=Bn;if(r!==null)switch(r.tag){case ce:{var i=r.stateNode.containerInfo,o=(r.mode&yt)!==Ne;r1(i,t,n,o);break}case te:{var l=r.type,u=r.memoizedProps,c=r.stateNode,d=(r.mode&yt)!==Ne;i1(l,u,c,t,n,d);break}}}return a}function j1(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.");Zx(n,e)}function U1(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return e1(n)}function Yy(e){for(var t=e.return;t!==null&&t.tag!==te&&t.tag!==ce&&t.tag!==Ce;)t=t.return;Bn=t}function Gs(e){if(e!==Bn)return!1;if(!Ka)return Yy(e),Ka=!0,!1;if(e.tag!==ce&&(e.tag!==te||a1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Ba;if(t)if(Zd(e))Iy(e),ev();else for(;t;)By(e,t),t=ru(t)}return Yy(e),e.tag===Ce?Ba=U1(e):Ba=Bn?ru(e.stateNode):null,!0}function H1(){return Ka&&Ba!==null}function Iy(e){for(var t=Ba;t;)Vy(e,t),t=ru(t)}function $o(){Bn=null,Ba=null,Ka=!1,Ki=!1}function Wy(){yi!==null&&(Fb(yi),yi=null)}function $n(){return Ka}function nv(e){yi===null?yi=[e]:yi.push(e)}var z1=be.ReactCurrentBatchConfig,F1=null;function V1(){return z1.transition}var Ja={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var B1=function(e){for(var t=null,n=e;n!==null;)n.mode&un&&(t=n),n=n.return;return t},Ji=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},uu=[],su=[],cu=[],fu=[],du=[],vu=[],Zi=new Set;Ja.recordUnsafeLifecycleWarnings=function(e,t){Zi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&uu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillMount=="function"&&su.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&cu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&fu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&du.push(e),e.mode&un&&typeof t.UNSAFE_componentWillUpdate=="function"&&vu.push(e))},Ja.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;uu.length>0&&(uu.forEach(function(y){e.add(Ke(y)||"Component"),Zi.add(y.type)}),uu=[]);var t=new Set;su.length>0&&(su.forEach(function(y){t.add(Ke(y)||"Component"),Zi.add(y.type)}),su=[]);var n=new Set;cu.length>0&&(cu.forEach(function(y){n.add(Ke(y)||"Component"),Zi.add(y.type)}),cu=[]);var a=new Set;fu.length>0&&(fu.forEach(function(y){a.add(Ke(y)||"Component"),Zi.add(y.type)}),fu=[]);var r=new Set;du.length>0&&(du.forEach(function(y){r.add(Ke(y)||"Component"),Zi.add(y.type)}),du=[]);var i=new Set;if(vu.length>0&&(vu.forEach(function(y){i.add(Ke(y)||"Component"),Zi.add(y.type)}),vu=[]),t.size>0){var o=Ji(t);f(`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=Ji(a);f(`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=Ji(i);f(`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 c=Ji(e);ve(`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`,c)}if(n.size>0){var d=Ji(n);ve(`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=Ji(r);ve(`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,qy=new Set;Ja.recordLegacyContextWarning=function(e,t){var n=B1(e);if(n===null){f("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(!qy.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))}},Ja.flushLegacyContextWarning=function(){Xs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ke(i)||"Component"),qy.add(i.type)});var r=Ji(a);try{tn(n),f(`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{An()}}})},Ja.discardPendingWarnings=function(){uu=[],su=[],cu=[],fu=[],du=[],vu=[],Xs=new Map}}var av,rv,iv,ov,lv,Gy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Gy=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=Ke(t)||"Component";ov[n]||(ov[n]=!0,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function $1(e){return e.prototype&&e.prototype.isReactComponent}function pu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&un||ct)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==re)&&!(typeof n.type=="function"&&!$1(n.type))&&n._owner){var r=Ke(e)||"Component";iv[r]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==re)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;ue(a,"ref");var c=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var d=function(g){var y=u.refs;g===null?delete y[c]:y[c]=g};return d._stringRef=c,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=Ke(e)||"Component";if(lv[t])return;lv[t]=!0,f("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 Xy(e){var t=e._payload,n=e._init;return n(t)}function Qy(e){function t(C,N){if(e){var x=C.deletions;x===null?(C.deletions=[N],C.flags|=ji):x.push(N)}}function n(C,N){if(!e)return null;for(var x=N;x!==null;)t(C,x),x=x.sibling;return null}function a(C,N){for(var x=new Map,Y=N;Y!==null;)Y.key!==null?x.set(Y.key,Y):x.set(Y.index,Y),Y=Y.sibling;return x}function r(C,N){var x=uo(C,N);return x.index=0,x.sibling=null,x}function i(C,N,x){if(C.index=x,!e)return C.flags|=Zm,N;var Y=C.alternate;if(Y!==null){var pe=Y.index;return pe<N?(C.flags|=Sn,N):pe}else return C.flags|=Sn,N}function o(C){return e&&C.alternate===null&&(C.flags|=Sn),C}function l(C,N,x,Y){if(N===null||N.tag!==Be){var pe=nm(x,C.mode,Y);return pe.return=C,pe}else{var le=r(N,x);return le.return=C,le}}function u(C,N,x,Y){var pe=x.type;if(pe===ja)return d(C,N,x.props.children,Y,x.key);if(N!==null&&(N.elementType===pe||t0(N,x)||typeof pe=="object"&&pe!==null&&pe.$$typeof===qe&&Xy(pe)===N.type)){var le=r(N,x.props);return le.ref=pu(C,N,x),le.return=C,le._debugSource=x._source,le._debugOwner=x._owner,le}var Fe=tm(x,C.mode,Y);return Fe.ref=pu(C,N,x),Fe.return=C,Fe}function c(C,N,x,Y){if(N===null||N.tag!==je||N.stateNode.containerInfo!==x.containerInfo||N.stateNode.implementation!==x.implementation){var pe=am(x,C.mode,Y);return pe.return=C,pe}else{var le=r(N,x.children||[]);return le.return=C,le}}function d(C,N,x,Y,pe){if(N===null||N.tag!==Qe){var le=_i(x,C.mode,Y,pe);return le.return=C,le}else{var Fe=r(N,x);return Fe.return=C,Fe}}function g(C,N,x){if(typeof N=="string"&&N!==""||typeof N=="number"){var Y=nm(""+N,C.mode,x);return Y.return=C,Y}if(typeof N=="object"&&N!==null){switch(N.$$typeof){case fn:{var pe=tm(N,C.mode,x);return pe.ref=pu(C,null,N),pe.return=C,pe}case En:{var le=am(N,C.mode,x);return le.return=C,le}case qe:{var Fe=N._payload,Xe=N._init;return g(C,Xe(Fe),x)}}if(vt(N)||j(N)){var Pt=_i(N,C.mode,x,null);return Pt.return=C,Pt}Qs(C,N)}return typeof N=="function"&&Ks(C),null}function y(C,N,x,Y){var pe=N!==null?N.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return pe!==null?null:l(C,N,""+x,Y);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fn:return x.key===pe?u(C,N,x,Y):null;case En:return x.key===pe?c(C,N,x,Y):null;case qe:{var le=x._payload,Fe=x._init;return y(C,N,Fe(le),Y)}}if(vt(x)||j(x))return pe!==null?null:d(C,N,x,Y,null);Qs(C,x)}return typeof x=="function"&&Ks(C),null}function D(C,N,x,Y,pe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var le=C.get(x)||null;return l(N,le,""+Y,pe)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case fn:{var Fe=C.get(Y.key===null?x:Y.key)||null;return u(N,Fe,Y,pe)}case En:{var Xe=C.get(Y.key===null?x:Y.key)||null;return c(N,Xe,Y,pe)}case qe:var Pt=Y._payload,wt=Y._init;return D(C,N,x,wt(Pt),pe)}if(vt(Y)||j(Y)){var dn=C.get(x)||null;return d(N,dn,Y,pe,null)}Qs(N,Y)}return typeof Y=="function"&&Ks(N),null}function k(C,N,x){{if(typeof C!="object"||C===null)return N;switch(C.$$typeof){case fn:case En:Gy(C,x);var Y=C.key;if(typeof Y!="string")break;if(N===null){N=new Set,N.add(Y);break}if(!N.has(Y)){N.add(Y);break}f("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.",Y);break;case qe:var pe=C._payload,le=C._init;k(le(pe),N,x);break}}return N}function A(C,N,x,Y){for(var pe=null,le=0;le<x.length;le++){var Fe=x[le];pe=k(Fe,pe,C)}for(var Xe=null,Pt=null,wt=N,dn=0,Dt=0,sn=null;wt!==null&&Dt<x.length;Dt++){wt.index>Dt?(sn=wt,wt=null):sn=wt.sibling;var ea=y(C,wt,x[Dt],Y);if(ea===null){wt===null&&(wt=sn);break}e&&wt&&ea.alternate===null&&t(C,wt),dn=i(ea,dn,Dt),Pt===null?Xe=ea:Pt.sibling=ea,Pt=ea,wt=sn}if(Dt===x.length){if(n(C,wt),$n()){var Xn=Dt;Xi(C,Xn)}return Xe}if(wt===null){for(;Dt<x.length;Dt++){var Aa=g(C,x[Dt],Y);Aa!==null&&(dn=i(Aa,dn,Dt),Pt===null?Xe=Aa:Pt.sibling=Aa,Pt=Aa)}if($n()){var da=Dt;Xi(C,da)}return Xe}for(var va=a(C,wt);Dt<x.length;Dt++){var ta=D(va,C,Dt,x[Dt],Y);ta!==null&&(e&&ta.alternate!==null&&va.delete(ta.key===null?Dt:ta.key),dn=i(ta,dn,Dt),Pt===null?Xe=ta:Pt.sibling=ta,Pt=ta)}if(e&&va.forEach(function(ll){return t(C,ll)}),$n()){var Kr=Dt;Xi(C,Kr)}return Xe}function ie(C,N,x,Y){var pe=j(x);if(typeof pe!="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"&&(rv||f("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),rv=!0),x.entries===pe&&(av||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var le=pe.call(x);if(le)for(var Fe=null,Xe=le.next();!Xe.done;Xe=le.next()){var Pt=Xe.value;Fe=k(Pt,Fe,C)}}var wt=pe.call(x);if(wt==null)throw new Error("An iterable object provided no iterator.");for(var dn=null,Dt=null,sn=N,ea=0,Xn=0,Aa=null,da=wt.next();sn!==null&&!da.done;Xn++,da=wt.next()){sn.index>Xn?(Aa=sn,sn=null):Aa=sn.sibling;var va=y(C,sn,da.value,Y);if(va===null){sn===null&&(sn=Aa);break}e&&sn&&va.alternate===null&&t(C,sn),ea=i(va,ea,Xn),Dt===null?dn=va:Dt.sibling=va,Dt=va,sn=Aa}if(da.done){if(n(C,sn),$n()){var ta=Xn;Xi(C,ta)}return dn}if(sn===null){for(;!da.done;Xn++,da=wt.next()){var Kr=g(C,da.value,Y);Kr!==null&&(ea=i(Kr,ea,Xn),Dt===null?dn=Kr:Dt.sibling=Kr,Dt=Kr)}if($n()){var ll=Xn;Xi(C,ll)}return dn}for(var Wu=a(C,sn);!da.done;Xn++,da=wt.next()){var Tr=D(Wu,C,Xn,da.value,Y);Tr!==null&&(e&&Tr.alternate!==null&&Wu.delete(Tr.key===null?Xn:Tr.key),ea=i(Tr,ea,Xn),Dt===null?dn=Tr:Dt.sibling=Tr,Dt=Tr)}if(e&&Wu.forEach(function(p_){return t(C,p_)}),$n()){var v_=Xn;Xi(C,v_)}return dn}function Me(C,N,x,Y){if(N!==null&&N.tag===Be){n(C,N.sibling);var pe=r(N,x);return pe.return=C,pe}n(C,N);var le=nm(x,C.mode,Y);return le.return=C,le}function _e(C,N,x,Y){for(var pe=x.key,le=N;le!==null;){if(le.key===pe){var Fe=x.type;if(Fe===ja){if(le.tag===Qe){n(C,le.sibling);var Xe=r(le,x.props.children);return Xe.return=C,Xe._debugSource=x._source,Xe._debugOwner=x._owner,Xe}}else if(le.elementType===Fe||t0(le,x)||typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===qe&&Xy(Fe)===le.type){n(C,le.sibling);var Pt=r(le,x.props);return Pt.ref=pu(C,le,x),Pt.return=C,Pt._debugSource=x._source,Pt._debugOwner=x._owner,Pt}n(C,le);break}else t(C,le);le=le.sibling}if(x.type===ja){var wt=_i(x.props.children,C.mode,Y,x.key);return wt.return=C,wt}else{var dn=tm(x,C.mode,Y);return dn.ref=pu(C,N,x),dn.return=C,dn}}function bt(C,N,x,Y){for(var pe=x.key,le=N;le!==null;){if(le.key===pe)if(le.tag===je&&le.stateNode.containerInfo===x.containerInfo&&le.stateNode.implementation===x.implementation){n(C,le.sibling);var Fe=r(le,x.children||[]);return Fe.return=C,Fe}else{n(C,le);break}else t(C,le);le=le.sibling}var Xe=am(x,C.mode,Y);return Xe.return=C,Xe}function pt(C,N,x,Y){var pe=typeof x=="object"&&x!==null&&x.type===ja&&x.key===null;if(pe&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case fn:return o(_e(C,N,x,Y));case En:return o(bt(C,N,x,Y));case qe:var le=x._payload,Fe=x._init;return pt(C,N,Fe(le),Y)}if(vt(x))return A(C,N,x,Y);if(j(x))return ie(C,N,x,Y);Qs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(Me(C,N,""+x,Y)):(typeof x=="function"&&Ks(C),n(C,N))}return pt}var Po=Qy(!0),Ky=Qy(!1);function P1(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=uo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=uo(n,n.pendingProps),a.return=t;a.sibling=null}}function Y1(e,t){for(var n=e.child;n!==null;)LD(n,t),n=n.sibling}var uv=pi(null),sv;sv={};var Js=null,Yo=null,cv=null,Zs=!1;function ec(){Js=null,Yo=null,cv=null,Zs=!1}function Jy(){Zs=!0}function Zy(){Zs=!1}function eg(e,t,n){Jn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Kn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(_o(a.childLanes,t)?r!==null&&!_o(r.childLanes,t)&&(r.childLanes=at(r.childLanes,t)):(a.childLanes=at(a.childLanes,t),r!==null&&(r.childLanes=at(r.childLanes,t))),a===n)break;a=a.return}a!==n&&f("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 I1(e,t,n){W1(e,t,n)}function W1(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===re){var l=Ol(n),u=Ir(Jt,l);u.tag=nc;var c=a.updateQueue;if(c!==null){var d=c.shared,g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}a.lanes=at(a.lanes,n);var y=a.alternate;y!==null&&(y.lanes=at(y.lanes,n)),dv(a.return,n,e),i.lanes=at(i.lanes,n);break}o=o.next}}else if(a.tag===ot)r=a.type===e.type?null:a.child;else if(a.tag===st){var D=a.return;if(D===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");D.lanes=at(D.lanes,n);var k=D.alternate;k!==null&&(k.lanes=at(k.lanes,n)),dv(D,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var A=r.sibling;if(A!==null){A.return=r.return,r=A;break}r=r.return}a=r}}function Io(e,t){Js=e,Yo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Da(n.lanes,t)&&ku(),n.firstContext=null)}}function Tn(e){Zs&&f("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(cv!==e){var n={context:e,memoizedValue:t,next:null};if(Yo===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().");Yo=n,Js.dependencies={lanes:$,firstContext:n}}else Yo=Yo.next=n}return t}var eo=null;function vv(e){eo===null?eo=[e]:eo.push(e)}function q1(){if(eo!==null){for(var e=0;e<eo.length;e++){var t=eo[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}}eo=null}}function tg(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function G1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function X1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function Sa(e,t){return tc(e,t)}var Q1=tc;function tc(e,t){e.lanes=at(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=at(n.lanes,t)),n===null&&(e.flags&(Sn|jr))!==He&&Kb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=at(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=at(n.childLanes,t):(r.flags&(Sn|jr))!==He&&Kb(e),a=r,r=r.return;if(a.tag===ce){var i=a.stateNode;return i}else return null}var ng=0,ag=1,nc=2,pv=3,ac=!1,mv,rc;mv=!1,rc=null;function hv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:$},effects:null};e.updateQueue=t}function rg(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 Ir(e,t){var n={eventTime:e,lane:t,tag:ng,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&&!mv&&(f("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),mv=!0),Gw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Q1(e,n)}else return X1(e,r,t,n)}function ic(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(yh(n)){var i=r.lanes;i=bh(i,e.pendingLanes);var o=at(i,n);r.lanes=o,ud(e,o)}}}function yv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var c={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=c:(o.next=c,o=c),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 K1(e,t,n,a,r,i){switch(n.tag){case ag:{var o=n.payload;if(typeof o=="function"){Jy();var l=o.call(i,a,r);{if(e.mode&un){jn(!0);try{o.call(i,a,r)}finally{jn(!1)}}Zy()}return l}return o}case pv:e.flags=e.flags&~ua|Lt;case ng:{var u=n.payload,c;if(typeof u=="function"){Jy(),c=u.call(i,a,r);{if(e.mode&un){jn(!0);try{u.call(i,a,r)}finally{jn(!1)}}Zy()}}else c=u;return c==null?a:F({},a,c)}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,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;if(d!==null){var g=d.updateQueue,y=g.lastBaseUpdate;y!==o&&(y===null?g.firstBaseUpdate=c:y.next=c,g.lastBaseUpdate=u)}}if(i!==null){var D=r.baseState,k=$,A=null,ie=null,Me=null,_e=i;do{var bt=_e.lane,pt=_e.eventTime;if(_o(a,bt)){if(Me!==null){var N={eventTime:pt,lane:Un,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null};Me=Me.next=N}D=K1(e,r,_e,D,t,n);var x=_e.callback;if(x!==null&&_e.lane!==Un){e.flags|=Jm;var Y=r.effects;Y===null?r.effects=[_e]:Y.push(_e)}}else{var C={eventTime:pt,lane:bt,tag:_e.tag,payload:_e.payload,callback:_e.callback,next:null};Me===null?(ie=Me=C,A=D):Me=Me.next=C,k=at(k,bt)}if(_e=_e.next,_e===null){if(l=r.shared.pending,l===null)break;var pe=l,le=pe.next;pe.next=null,_e=le,r.lastBaseUpdate=pe,r.shared.pending=null}}while(!0);Me===null&&(A=D),r.baseState=A,r.firstBaseUpdate=ie,r.lastBaseUpdate=Me;var Fe=r.shared.interleaved;if(Fe!==null){var Xe=Fe;do k=at(k,Xe.lane),Xe=Xe.next;while(Xe!==Fe)}else i===null&&(r.shared.lanes=$);Bu(k),e.lanes=k,e.memoizedState=D}rc=null}function J1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ig(){ac=!1}function lc(){return ac}function og(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,J1(o,n))}}var mu={},bi=pi(mu),hu=pi(mu),uc=pi(mu);function sc(e){if(e===mu)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 lg(){var e=sc(uc.current);return e}function gv(e,t){Jn(uc,t,e),Jn(hu,e,e),Jn(bi,mu,e);var n=mx(t);Kn(bi,e),Jn(bi,n,e)}function Wo(e){Kn(bi,e),Kn(hu,e),Kn(uc,e)}function bv(){var e=sc(bi.current);return e}function ug(e){sc(uc.current);var t=sc(bi.current),n=hx(t,e.type);t!==n&&(Jn(hu,e,e),Jn(bi,n,e))}function Sv(e){hu.current===e&&(Kn(bi,e),Kn(hu,e))}var Z1=0,sg=1,cg=1,yu=2,Za=pi(Z1);function Tv(e,t){return(e&t)!==0}function qo(e){return e&sg}function Ev(e,t){return e&sg|t}function eR(e,t){return e|t}function Si(e,t){Jn(Za,t,e)}function Go(e){Kn(Za,e)}function tR(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===Ce){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Dy(a)||Vd(a))return t}}else if(t.tag===Ot&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Lt)!==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 Ta=0,Cn=1,pr=2,xn=4,Pn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function nR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var de=be.ReactCurrentDispatcher,gu=be.ReactCurrentBatchConfig,Rv,Xo;Rv=new Set;var to=$,$t=null,Rn=null,wn=null,fc=!1,bu=!1,Su=0,aR=0,rR=25,H=null,$a=null,Ti=-1,wv=!1;function Nt(){{var e=H;$a===null?$a=[e]:$a.push(e)}}function ae(){{var e=H;$a!==null&&(Ti++,$a[Ti]!==e&&iR(e))}}function Qo(e){e!=null&&!vt(e)&&f("%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 iR(e){{var t=Ke($t);if(!Rv.has(t)&&(Rv.add(t),$a!==null)){for(var n="",a=30,r=0;r<=Ti;r++){for(var i=$a[r],o=r===Ti?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
|
|
`,n+=l}f(`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 Zn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Dv(e,t){if(wv)return!1;if(t===null)return f("%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&&f(`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(!Ma(e[n],t[n]))return!1;return!0}function Ko(e,t,n,a,r,i){to=i,$t=t,$a=e!==null?e._debugHookTypes:null,Ti=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=$,e!==null&&e.memoizedState!==null?de.current=Og:$a!==null?de.current=Lg:de.current=Mg;var o=n(a,r);if(bu){var l=0;do{if(bu=!1,Su=0,l>=rR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,Rn=null,wn=null,t.updateQueue=null,Ti=-1,de.current=Ag,o=n(a,r)}while(bu)}de.current=xc,t._debugHookTypes=$a;var u=Rn!==null&&Rn.next!==null;if(to=$,$t=null,Rn=null,wn=null,H=null,$a=null,Ti=-1,e!==null&&(e.flags&Ur)!==(t.flags&Ur)&&(e.mode&yt)!==Ne&&f("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 Jo(){var e=Su!==0;return Su=0,e}function fg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&cr)!==Ne?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function dg(){if(de.current=xc,fc){for(var e=$t.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}to=$,$t=null,Rn=null,wn=null,$a=null,Ti=-1,H=null,Rg=!1,bu=!1,Su=0}function mr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wn===null?$t.memoizedState=wn=e:wn=wn.next=e,wn}function Pa(){var e;if(Rn===null){var t=$t.alternate;t!==null?e=t.memoizedState:e=null}else e=Rn.next;var n;if(wn===null?n=$t.memoizedState:n=wn.next,n!==null)wn=n,n=wn.next,Rn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");Rn=e;var a={memoizedState:Rn.memoizedState,baseState:Rn.baseState,baseQueue:Rn.baseQueue,queue:Rn.queue,next:null};wn===null?$t.memoizedState=wn=a:wn=wn.next=a}return wn}function vg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=mr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:$,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=sR.bind(null,$t,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=Pa(),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=Rn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,c=l.next;o.next=c,l.next=u}i.baseQueue!==o&&f("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,D=null,k=null,A=d;do{var ie=A.lane;if(_o(to,ie)){if(k!==null){var _e={lane:Un,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};k=k.next=_e}if(A.hasEagerState)g=A.eagerState;else{var bt=A.action;g=e(g,bt)}}else{var Me={lane:ie,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null};k===null?(D=k=Me,y=g):k=k.next=Me,$t.lanes=at($t.lanes,ie),Bu(ie)}A=A.next}while(A!==null&&A!==d);k===null?y=g:k.next=D,Ma(g,a.memoizedState)||ku(),a.memoizedState=g,a.baseState=y,a.baseQueue=k,r.lastRenderedState=g}var pt=r.interleaved;if(pt!==null){var C=pt;do{var N=C.lane;$t.lanes=at($t.lanes,N),Bu(N),C=C.next}while(C!==pt)}else o===null&&(r.lanes=$);var x=r.dispatch;return[a.memoizedState,x]}function Lv(e,t,n){var a=Pa(),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,c=u;do{var d=c.action;l=e(l,d),c=c.next}while(c!==u);Ma(l,a.memoizedState)||ku(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function y_(e,t,n){}function g_(e,t,n){}function Ov(e,t,n){var a=$t,r=mr(),i,o=$n();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(),Xo||i!==n()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xo=!0)}else{if(i=t(),!Xo){var l=t();Ma(i,l)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Xo=!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,to)||pg(a,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,hc(hg.bind(null,a,c,e),[e]),a.flags|=ii,Tu(Cn|Pn,mg.bind(null,a,c,i,t),void 0,null),i}function dc(e,t,n){var a=$t,r=Pa(),i=t();if(!Xo){var o=t();Ma(i,o)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Xo=!0)}var l=r.memoizedState,u=!Ma(l,i);u&&(r.memoizedState=i,ku());var c=r.queue;if(Cu(hg.bind(null,a,c,e),[e]),c.getSnapshot!==t||u||wn!==null&&wn.memoizedState.tag&Cn){a.flags|=ii,Tu(Cn|Pn,mg.bind(null,a,c,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,to)||pg(a,t,i)}return i}function pg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=$t.updateQueue;if(r===null)r=vg(),$t.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function mg(e,t,n,a){t.value=n,t.getSnapshot=a,yg(t)&&gg(e)}function hg(e,t,n){var a=function(){yg(t)&&gg(e)};return n(a)}function yg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ma(n,a)}catch{return!0}}function gg(e){var t=Sa(e,$e);t!==null&&Mn(t,e,$e,Jt)}function vc(e){var t=mr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:$,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=cR.bind(null,$t,n);return[t.memoizedState,a]}function Av(e){return Mv(_v)}function Nv(e){return Lv(_v)}function Tu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=$t.updateQueue;if(i===null)i=vg(),$t.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 jv(e){var t=mr();{var n={current:e};return t.memoizedState=n,n}}function pc(e){var t=Pa();return t.memoizedState}function Eu(e,t,n,a){var r=mr(),i=a===void 0?null:a;$t.flags|=e,r.memoizedState=Tu(Cn|t,n,void 0,i)}function mc(e,t,n,a){var r=Pa(),i=a===void 0?null:a,o=void 0;if(Rn!==null){var l=Rn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=Tu(t,n,o,i);return}}}$t.flags|=e,r.memoizedState=Tu(Cn|t,n,o,i)}function hc(e,t){return($t.mode&cr)!==Ne?Eu(Of|ii|Lf,Pn,e,t):Eu(ii|Lf,Pn,e,t)}function Cu(e,t){return mc(ii,Pn,e,t)}function Uv(e,t){return Eu(Mt,pr,e,t)}function yc(e,t){return mc(Mt,pr,e,t)}function Hv(e,t){var n=Mt;return n|=zi,($t.mode&cr)!==Ne&&(n|=oi),Eu(n,xn,e,t)}function gc(e,t){return mc(Mt,xn,e,t)}function bg(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")||f("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function zv(e,t,n){typeof t!="function"&&f("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=Mt;return r|=zi,($t.mode&cr)!==Ne&&(r|=oi),Eu(r,xn,bg.bind(null,t,e),a)}function bc(e,t,n){typeof t!="function"&&f("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(Mt,xn,bg.bind(null,t,e),a)}function oR(e,t){}var Sc=oR;function Fv(e,t){var n=mr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Tc(e,t){var n=Pa(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=mr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Ec(e,t){var n=Pa(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Bv(e){var t=mr();return t.memoizedState=e,e}function Sg(e){var t=Pa(),n=Rn,a=n.memoizedState;return Eg(t,a,e)}function Tg(e){var t=Pa();if(Rn===null)return t.memoizedState=e,e;var n=Rn.memoizedState;return Eg(t,n,e)}function Eg(e,t,n){var a=!IT(to);if(a){if(!Ma(n,t)){var r=gh();$t.lanes=at($t.lanes,r),Bu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,ku()),e.memoizedState=n,n}function lR(e,t,n){var a=Xa();Hn(eE(a,zr)),e(!0);var r=gu.transition;gu.transition={};var i=gu.transition;gu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Hn(a),gu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&ve("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 $v(){var e=vc(!1),t=e[0],n=e[1],a=lR.bind(null,n),r=mr();return r.memoizedState=a,[t,a]}function Cg(){var e=Av(),t=e[0],n=Pa(),a=n.memoizedState;return[t,a]}function xg(){var e=Nv(),t=e[0],n=Pa(),a=n.memoizedState;return[t,a]}var Rg=!1;function uR(){return Rg}function Pv(){var e=mr(),t=Pc(),n=t.identifierPrefix,a;if($n()){var r=R1();a=":"+n+"R"+r;var i=Su++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=aR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Cc(){var e=Pa(),t=e.memoizedState;return t}function sR(e,t,n){typeof arguments[3]=="function"&&f("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(wg(e))Dg(t,r);else{var i=tg(e,t,r,a);if(i!==null){var o=fa();Mn(i,e,a,o),_g(i,t,a)}}kg(e,a)}function cR(e,t,n){typeof arguments[3]=="function"&&f("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(wg(e))Dg(t,r);else{var i=e.alternate;if(e.lanes===$&&(i===null||i.lanes===$)){var o=t.lastRenderedReducer;if(o!==null){var l;l=de.current,de.current=er;try{var u=t.lastRenderedState,c=o(u,n);if(r.hasEagerState=!0,r.eagerState=c,Ma(c,u)){G1(e,t,r,a);return}}catch{}finally{de.current=l}}}var d=tg(e,t,r,a);if(d!==null){var g=fa();Mn(d,e,a,g),_g(d,t,a)}}kg(e,a)}function wg(e){var t=e.alternate;return e===$t||t!==null&&t===$t}function Dg(e,t){bu=fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _g(e,t,n){if(yh(n)){var a=t.lanes;a=bh(a,e.pendingLanes);var r=at(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){Hf(e,t)}var xc={readContext:Tn,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useInsertionEffect:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useSyncExternalStore:Zn,useId:Zn,unstable_isNewReconciler:G},Mg=null,Lg=null,Og=null,Ag=null,hr=null,er=null,Rc=null;{var Yv=function(){f("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(){f("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")};Mg={readContext:function(e){return Tn(e)},useCallback:function(e,t){return H="useCallback",Nt(),Qo(t),Fv(e,t)},useContext:function(e){return H="useContext",Nt(),Tn(e)},useEffect:function(e,t){return H="useEffect",Nt(),Qo(t),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Nt(),Qo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Nt(),Qo(t),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Nt(),Qo(t),Hv(e,t)},useMemo:function(e,t){H="useMemo",Nt(),Qo(t);var n=de.current;de.current=hr;try{return Vv(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",Nt();var a=de.current;de.current=hr;try{return kv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",Nt(),jv(e)},useState:function(e){H="useState",Nt();var t=de.current;de.current=hr;try{return vc(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Nt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Nt(),Bv(e)},useTransition:function(){return H="useTransition",Nt(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",Nt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Nt(),Ov(e,t,n)},useId:function(){return H="useId",Nt(),Pv()},unstable_isNewReconciler:G},Lg={readContext:function(e){return Tn(e)},useCallback:function(e,t){return H="useCallback",ae(),Fv(e,t)},useContext:function(e){return H="useContext",ae(),Tn(e)},useEffect:function(e,t){return H="useEffect",ae(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ae(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ae(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ae(),Hv(e,t)},useMemo:function(e,t){H="useMemo",ae();var n=de.current;de.current=hr;try{return Vv(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",ae();var a=de.current;de.current=hr;try{return kv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",ae(),jv(e)},useState:function(e){H="useState",ae();var t=de.current;de.current=hr;try{return vc(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ae(),void 0},useDeferredValue:function(e){return H="useDeferredValue",ae(),Bv(e)},useTransition:function(){return H="useTransition",ae(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ae(),Ov(e,t,n)},useId:function(){return H="useId",ae(),Pv()},unstable_isNewReconciler:G},Og={readContext:function(e){return Tn(e)},useCallback:function(e,t){return H="useCallback",ae(),Tc(e,t)},useContext:function(e){return H="useContext",ae(),Tn(e)},useEffect:function(e,t){return H="useEffect",ae(),Cu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ae(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ae(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ae(),gc(e,t)},useMemo:function(e,t){H="useMemo",ae();var n=de.current;de.current=er;try{return Ec(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",ae();var a=de.current;de.current=er;try{return Mv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",ae(),pc()},useState:function(e){H="useState",ae();var t=de.current;de.current=er;try{return Av(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ae(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",ae(),Sg(e)},useTransition:function(){return H="useTransition",ae(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ae(),dc(e,t)},useId:function(){return H="useId",ae(),Cc()},unstable_isNewReconciler:G},Ag={readContext:function(e){return Tn(e)},useCallback:function(e,t){return H="useCallback",ae(),Tc(e,t)},useContext:function(e){return H="useContext",ae(),Tn(e)},useEffect:function(e,t){return H="useEffect",ae(),Cu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",ae(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",ae(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",ae(),gc(e,t)},useMemo:function(e,t){H="useMemo",ae();var n=de.current;de.current=Rc;try{return Ec(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",ae();var a=de.current;de.current=Rc;try{return Lv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",ae(),pc()},useState:function(e){H="useState",ae();var t=de.current;de.current=Rc;try{return Nv(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",ae(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",ae(),Tg(e)},useTransition:function(){return H="useTransition",ae(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",ae(),dc(e,t)},useId:function(){return H="useId",ae(),Cc()},unstable_isNewReconciler:G},hr={readContext:function(e){return Yv(),Tn(e)},useCallback:function(e,t){return H="useCallback",Pe(),Nt(),Fv(e,t)},useContext:function(e){return H="useContext",Pe(),Nt(),Tn(e)},useEffect:function(e,t){return H="useEffect",Pe(),Nt(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),Nt(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),Nt(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Nt(),Hv(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Nt();var n=de.current;de.current=hr;try{return Vv(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),Nt();var a=de.current;de.current=hr;try{return kv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",Pe(),Nt(),jv(e)},useState:function(e){H="useState",Pe(),Nt();var t=de.current;de.current=hr;try{return vc(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),Nt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Pe(),Nt(),Bv(e)},useTransition:function(){return H="useTransition",Pe(),Nt(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),Nt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),Nt(),Ov(e,t,n)},useId:function(){return H="useId",Pe(),Nt(),Pv()},unstable_isNewReconciler:G},er={readContext:function(e){return Yv(),Tn(e)},useCallback:function(e,t){return H="useCallback",Pe(),ae(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),ae(),Tn(e)},useEffect:function(e,t){return H="useEffect",Pe(),ae(),Cu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),ae(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),ae(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),ae(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),ae();var n=de.current;de.current=er;try{return Ec(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),ae();var a=de.current;de.current=er;try{return Mv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",Pe(),ae(),pc()},useState:function(e){H="useState",Pe(),ae();var t=de.current;de.current=er;try{return Av(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),ae(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),ae(),Sg(e)},useTransition:function(){return H="useTransition",Pe(),ae(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),ae(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),ae(),dc(e,t)},useId:function(){return H="useId",Pe(),ae(),Cc()},unstable_isNewReconciler:G},Rc={readContext:function(e){return Yv(),Tn(e)},useCallback:function(e,t){return H="useCallback",Pe(),ae(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),ae(),Tn(e)},useEffect:function(e,t){return H="useEffect",Pe(),ae(),Cu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),ae(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),ae(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),ae(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),ae();var n=de.current;de.current=er;try{return Ec(e,t)}finally{de.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),ae();var a=de.current;de.current=er;try{return Lv(e,t,n)}finally{de.current=a}},useRef:function(e){return H="useRef",Pe(),ae(),pc()},useState:function(e){H="useState",Pe(),ae();var t=de.current;de.current=er;try{return Nv(e)}finally{de.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),ae(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),ae(),Tg(e)},useTransition:function(){return H="useTransition",Pe(),ae(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),ae(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),ae(),dc(e,t)},useId:function(){return H="useId",Pe(),ae(),Cc()},unstable_isNewReconciler:G}}var Ei=R.unstable_now,Ng=0,wc=-1,xu=-1,Dc=-1,Iv=!1,_c=!1;function jg(){return Iv}function fR(){_c=!0}function dR(){Iv=!1,_c=!1}function vR(){Iv=_c,_c=!1}function Ug(){return Ng}function Hg(){Ng=Ei()}function Wv(e){xu=Ei(),e.actualStartTime<0&&(e.actualStartTime=Ei())}function zg(e){xu=-1}function kc(e,t){if(xu>=0){var n=Ei()-xu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),xu=-1}}function yr(e){if(wc>=0){var t=Ei()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ce:var a=n.stateNode;a.effectDuration+=t;return;case rt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(Dc>=0){var t=Ei()-Dc;Dc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ce:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case rt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function gr(){wc=Ei()}function Gv(){Dc=Ei()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function tr(e,t){if(e&&e.defaultProps){var n=F({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Jv,Zv,ep,tp,Fg,Mc,np,ap,rp,Ru;{Kv=new Set,Jv=new Set,Zv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Ru=new Set;var Vg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Vg.has(n)||(Vg.add(n),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Fg=function(e,t){if(t===void 0){var n=kt(e)||"Component";tp.has(n)||(tp.add(n),f("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&un){jn(!0);try{i=n(a,r)}finally{jn(!1)}}Fg(t,i)}var o=i==null?r:F({},r,i);if(e.memoizedState=o,e.lanes===$){var l=e.updateQueue;l.baseState=o}}var op={isMounted:rT,enqueueSetState:function(e,t,n){var a=bo(e),r=fa(),i=wi(a),o=Ir(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Mn(l,a,i,r),ic(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=bo(e),r=fa(),i=wi(a),o=Ir(r,i);o.tag=ag,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Mn(l,a,i,r),ic(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=bo(e),a=fa(),r=wi(n),i=Ir(a,r);i.tag=nc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=gi(n,i,r);o!==null&&(Mn(o,n,r,a),ic(o,n,r)),jT(n,r)}};function Bg(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&un){jn(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{jn(!1)}}u===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",kt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!ql(n,a)||!ql(r,i):!0}function pR(e,t,n){var a=e.stateNode;{var r=kt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):f("%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&&f("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&&f("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&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Ru.has(t)&&(e.mode&un)===Ne&&(Ru.add(t),f(`%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&&!Ru.has(t)&&(e.mode&un)===Ne&&(Ru.add(t),f(`%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&&f("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&f("%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"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",kt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&f("%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"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&f("%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&&f("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"&&!Zv.has(t)&&(Zv.add(t),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",kt(t))),typeof a.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&f("%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"||vt(l))&&f("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function $g(e,t){t.updater=op,e.stateNode=t,eT(t,e),t._reactInternalInstance=Qv}function Pg(e,t,n){var a=!1,r=La,i=La,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===xr?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(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",kt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=Tn(o);else{r=zo(e,t,!0);var c=t.contextTypes;a=c!=null,i=a?Fo(e,r):La}var d=new t(n,i);if(e.mode&un){jn(!0);try{d=new t(n,i)}finally{jn(!1)}}var g=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;$g(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&g===null){var y=kt(t)||"Component";Jv.has(y)||(Jv.add(y),f("`%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 D=null,k=null,A=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?D="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(D="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?k="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(k="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?A="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(A="UNSAFE_componentWillUpdate"),D!==null||k!==null||A!==null){var ie=kt(t)||"Component",Me=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(ie)||(ep.add(ie),f(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
|
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
|
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
https://reactjs.org/link/unsafe-component-lifecycles`,ie,Me,D!==null?`
|
|
`+D:"",k!==null?`
|
|
`+k:"",A!==null?`
|
|
`+A:""))}}}return a&&Oy(e,r,i),d}function mR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(f("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ke(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Yg(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=Ke(e)||"Component";Kv.has(i)||(Kv.add(i),f("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){pR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=Tn(i);else{var o=zo(e,t,!0);r.context=Fo(e,o)}{if(r.state===n){var l=kt(t)||"Component";np.has(l)||(np.add(l),f("%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&un&&Ja.recordLegacyContextWarning(e,r),Ja.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(mR(e,r),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var c=Mt;c|=zi,(e.mode&cr)!==Ne&&(c|=oi),e.flags|=c}}function hR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=La;if(typeof l=="object"&&l!==null)u=Tn(l);else{var c=zo(e,t,!0);u=Fo(e,c)}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)&&Yg(e,r,n,u),ig();var y=e.memoizedState,D=r.state=y;if(oc(e,n,r,a),D=e.memoizedState,i===n&&y===D&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var k=Mt;k|=zi,(e.mode&cr)!==Ne&&(k|=oi),e.flags|=k}return!1}typeof d=="function"&&(ip(e,t,d,n),D=e.memoizedState);var A=lc()||Bg(e,t,i,n,y,D,u);if(A){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 ie=Mt;ie|=zi,(e.mode&cr)!==Ne&&(ie|=oi),e.flags|=ie}}else{if(typeof r.componentDidMount=="function"){var Me=Mt;Me|=zi,(e.mode&cr)!==Ne&&(Me|=oi),e.flags|=Me}e.memoizedProps=n,e.memoizedState=D}return r.props=n,r.state=D,r.context=u,A}function yR(e,t,n,a,r){var i=t.stateNode;rg(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:tr(t.type,o);i.props=l;var u=t.pendingProps,c=i.context,d=n.contextType,g=La;if(typeof d=="object"&&d!==null)g=Tn(d);else{var y=zo(t,n,!0);g=Fo(t,y)}var D=n.getDerivedStateFromProps,k=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function";!k&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||c!==g)&&Yg(t,i,a,g),ig();var A=t.memoizedState,ie=i.state=A;if(oc(t,a,i,r),ie=t.memoizedState,o===u&&A===ie&&!Bs()&&!lc()&&!he)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Mt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=To),!1;typeof D=="function"&&(ip(t,n,D,a),ie=t.memoizedState);var Me=lc()||Bg(t,n,l,a,A,ie,g)||he;return Me?(!k&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ie,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ie,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=Mt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=To)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=Mt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||A!==e.memoizedState)&&(t.flags|=To),t.memoizedProps=a,t.memoizedState=ie),i.props=a,i.state=ie,i.context=g,Me}function no(e,t){return{value:e,source:t,stack:ra(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gR(e,t){return!0}function sp(e,t){try{var n=gR(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===re)return;console.error(a)}var l=r?Ke(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",c;if(e.tag===ce)c=`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=Ke(e)||"Anonymous";c="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var g=u+`
|
|
`+o+`
|
|
|
|
`+(""+c);console.error(g)}catch(y){setTimeout(function(){throw y})}}var bR=typeof WeakMap=="function"?WeakMap:Map;function Ig(e,t,n){var a=Ir(Jt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){fD(r),sp(e,t)},a}function cp(e,t,n){var a=Ir(Jt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){n0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){n0(e),sp(e,t),typeof r!="function"&&sD(this);var u=t.value,c=t.stack;this.componentDidCatch(u,{componentStack:c!==null?c:""}),typeof r!="function"&&(Da(e.lanes,$e)||f("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ke(e)||"Unknown"))}),a}function Wg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new bR,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=dD.bind(null,e,t,n);Ga&&$u(e,n),t.then(i,i)}}function SR(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 TR(e,t){var n=e.tag;if((e.mode&yt)===Ne&&(n===ge||n===Le||n===Z)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function qg(e){var t=e;do{if(t.tag===Ce&&tR(t))return t;t=t.return}while(t!==null);return null}function Gg(e,t,n,a,r){if((e.mode&yt)===Ne){if(e===t)e.flags|=ua;else{if(e.flags|=Lt,n.flags|=kf,n.flags&=-52805,n.tag===re){var i=n.alternate;if(i===null)n.tag=Et;else{var o=Ir(Jt,$e);o.tag=nc,gi(n,o,$e)}}n.lanes=at(n.lanes,$e)}return e}return e.flags|=ua,e.lanes=r,e}function ER(e,t,n,a,r){if(n.flags|=is,Ga&&$u(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;TR(n),$n()&&n.mode&yt&&Fy();var o=qg(t);if(o!==null){o.flags&=~Nr,Gg(o,t,n,e,r),o.mode&yt&&Wg(e,i,r),SR(o,e,i);return}else{if(!YT(r)){Wg(e,i,r),Pp();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($n()&&n.mode&yt){Fy();var u=qg(t);if(u!==null){(u.flags&ua)===He&&(u.flags|=Nr),Gg(u,t,n,e,r),nv(no(a,n));return}}a=no(a,n),tD(a);var c=t;do{switch(c.tag){case ce:{var d=a;c.flags|=ua;var g=Ol(r);c.lanes=at(c.lanes,g);var y=Ig(c,d,g);yv(c,y);return}case re:var D=a,k=c.type,A=c.stateNode;if((c.flags&Lt)===He&&(typeof k.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&!qb(A))){c.flags|=ua;var ie=Ol(r);c.lanes=at(c.lanes,ie);var Me=cp(c,D,ie);yv(c,Me);return}break}c=c.return}while(c!==null)}function CR(){return null}var wu=be.ReactCurrentOwner,nr=!1,fp,Du,dp,vp,pp,ao,mp,Lc,_u;fp={},Du={},dp={},vp={},pp={},ao=!1,mp={},Lc={},_u={};function sa(e,t,n,a){e===null?t.child=Ky(t,null,n,a):t.child=Po(t,e.child,n,a)}function xR(e,t,n,a){t.child=Po(t,e.child,null,a),t.child=Po(t,null,n,a)}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Qa(i,a,"prop",kt(n))}var o=n.render,l=t.ref,u,c;Io(t,r),wl(t);{if(wu.current=t,za(!0),u=Ko(e,t,o,a,l,r),c=Jo(),t.mode&un){jn(!0);try{u=Ko(e,t,o,a,l,r),c=Jo()}finally{jn(!1)}}za(!1)}return xo(),e!==null&&!nr?(fg(e,t,r),Wr(e,t,r)):($n()&&c&&Qd(t),t.flags|=So,sa(e,t,u,r),t.child)}function Qg(e,t,n,a,r){if(e===null){var i=n.type;if(kD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=ol(i),t.tag=Z,t.type=o,gp(t,i),Kg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Qa(l,a,"prop",kt(i)),n.defaultProps!==void 0){var u=kt(i)||"Unknown";_u[u]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),_u[u]=!0)}}var c=em(n.type,null,a,t,t.mode,r);return c.ref=t.ref,c.return=t,t.child=c,c}{var d=n.type,g=d.propTypes;g&&Qa(g,a,"prop",kt(d))}var y=e.child,D=xp(e,r);if(!D){var k=y.memoizedProps,A=n.compare;if(A=A!==null?A:ql,A(k,a)&&e.ref===t.ref)return Wr(e,t,r)}t.flags|=So;var ie=uo(y,a);return ie.ref=t.ref,ie.return=t,t.child=ie,ie}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===qe){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var c=i&&i.propTypes;c&&Qa(c,a,"prop",kt(i))}}if(e!==null){var d=e.memoizedProps;if(ql(d,a)&&e.ref===t.ref&&t.type===e.type)if(nr=!1,t.pendingProps=a=d,xp(e,r))(e.flags&kf)!==He&&(nr=!0);else return t.lanes=e.lanes,Wr(e,t,r)}return hp(e,t,n,a,r)}function Jg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||mt)if((t.mode&yt)===Ne){var o={baseLanes:$,cachePool:null,transitions:null};t.memoizedState=o,Yc(t,n)}else if(Da(n,wa)){var g={baseLanes:$,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 c=i.baseLanes;u=at(c,n)}else u=n;t.lanes=t.childLanes=wa;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,Yc(t,u),null}else{var D;i!==null?(D=at(i.baseLanes,n),t.memoizedState=null):D=n,Yc(t,D)}return sa(e,t,r,n),t.child}function RR(e,t,n){var a=t.pendingProps;return sa(e,t,a,n),t.child}function wR(e,t,n){var a=t.pendingProps.children;return sa(e,t,a,n),t.child}function DR(e,t,n){{t.flags|=Mt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return sa(e,t,i,n),t.child}function Zg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Ui,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Qa(i,a,"prop",kt(n))}var o;{var l=zo(t,n,!0);o=Fo(t,l)}var u,c;Io(t,r),wl(t);{if(wu.current=t,za(!0),u=Ko(e,t,n,a,o,r),c=Jo(),t.mode&un){jn(!0);try{u=Ko(e,t,n,a,o,r),c=Jo()}finally{jn(!1)}}za(!1)}return xo(),e!==null&&!nr?(fg(e,t,r),Wr(e,t,r)):($n()&&c&&Qd(t),t.flags|=So,sa(e,t,u,r),t.child)}function eb(e,t,n,a,r){{switch(YD(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|=Lt,t.flags|=ua;var c=new Error("Simulated error coming from DevTools"),d=Ol(r);t.lanes=at(t.lanes,d);var g=cp(t,no(c,t),d);yv(t,g);break}}if(t.type!==t.elementType){var y=n.propTypes;y&&Qa(y,a,"prop",kt(n))}}var D;vr(n)?(D=!0,Ps(t)):D=!1,Io(t,r);var k=t.stateNode,A;k===null?(Ac(e,t),Pg(t,n,a),lp(t,n,a,r),A=!0):e===null?A=hR(t,n,a,r):A=yR(e,t,n,a,r);var ie=yp(e,t,n,A,D,r);{var Me=t.stateNode;A&&Me.props!==a&&(ao||f("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ke(t)||"a component"),ao=!0)}return ie}function yp(e,t,n,a,r,i){Zg(e,t);var o=(t.flags&Lt)!==He;if(!a&&!o)return r&&jy(t,n,!1),Wr(e,t,i);var l=t.stateNode;wu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,zg();else{wl(t);{if(za(!0),u=l.render(),t.mode&un){jn(!0);try{l.render()}finally{jn(!1)}}za(!1)}xo()}return t.flags|=So,e!==null&&o?xR(e,t,u,i):sa(e,t,u,i),t.memoizedState=l.state,r&&jy(t,n,!0),t.child}function tb(e){var t=e.stateNode;t.pendingContext?Ay(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ay(e,t.context,!1),gv(e,t.containerInfo)}function _R(e,t,n){if(tb(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;rg(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},c=t.updateQueue;if(c.baseState=u,t.memoizedState=u,t.flags&Nr){var d=no(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 nb(e,t,l,n,d)}else if(l!==i){var g=no(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return nb(e,t,l,n,g)}else{L1(t);var y=Ky(t,null,l,n);t.child=y;for(var D=y;D;)D.flags=D.flags&~Sn|jr,D=D.sibling}}else{if($o(),l===i)return Wr(e,t,n);sa(e,t,l,n)}return t.child}function nb(e,t,n,a,r){return $o(),nv(r),t.flags|=Nr,sa(e,t,n,a),t.child}function kR(e,t,n){ug(t),e===null&&tv(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Ud(a,r);return l?o=null:i!==null&&Ud(a,i)&&(t.flags|=xl),Zg(e,t),sa(e,t,o,n),t.child}function MR(e,t){return e===null&&tv(t),null}function LR(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 c=t.tag=MD(u),d=tr(u,r),g;switch(c){case ge:return gp(t,u),t.type=u=ol(u),g=hp(null,t,u,d,a),g;case re:return t.type=u=Gp(u),g=eb(null,t,u,d,a),g;case Le:return t.type=u=Xp(u),g=Xg(null,t,u,d,a),g;case U:{if(t.type!==t.elementType){var y=u.propTypes;y&&Qa(y,d,"prop",kt(u))}return g=Qg(null,t,u,tr(u.type,d),a),g}}var D="";throw u!==null&&typeof u=="object"&&u.$$typeof===qe&&(D=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+D))}function OR(e,t,n,a,r){Ac(e,t),t.tag=re;var i;return vr(n)?(i=!0,Ps(t)):i=!1,Io(t,r),Pg(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function AR(e,t,n,a){Ac(e,t);var r=t.pendingProps,i;{var o=zo(t,n,!1);i=Fo(t,o)}Io(t,a);var l,u;wl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var c=kt(n)||"Unknown";fp[c]||(f("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.",c,c),fp[c]=!0)}t.mode&un&&Ja.recordLegacyContextWarning(t,null),za(!0),wu.current=t,l=Ko(null,t,n,r,i,a),u=Jo(),za(!1)}if(xo(),t.flags|=So,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=kt(n)||"Unknown";Du[d]||(f("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),Du[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=kt(n)||"Unknown";Du[g]||(f("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),Du[g]=!0)}t.tag=re,t.memoizedState=null,t.updateQueue=null;var y=!1;return vr(n)?(y=!0,Ps(t)):y=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),$g(t,l),lp(t,n,r,a),yp(null,t,n,!0,y,a)}else{if(t.tag=ge,t.mode&un){jn(!0);try{l=Ko(null,t,n,r,i,a),u=Jo()}finally{jn(!1)}}return $n()&&u&&Qd(t),sa(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&f("%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),pp[r]||(pp[r]=!0,f("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=kt(t)||"Unknown";_u[o]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),_u[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=kt(t)||"Unknown";vp[l]||(f("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=kt(t)||"Unknown";dp[u]||(f("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:Un};function Sp(e){return{baseLanes:e,cachePool:CR(),transitions:null}}function NR(e,t){var n=null;return{baseLanes:at(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function jR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,yu)}function UR(e,t){return ds(e.childLanes,t)}function ab(e,t,n){var a=t.pendingProps;ID(t)&&(t.flags|=Lt);var r=Za.current,i=!1,o=(t.flags&Lt)!==He;if(o||jR(r,e)?(i=!0,t.flags&=~Lt):(e===null||e.memoizedState!==null)&&(r=eR(r,cg)),r=qo(r),Si(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return BR(t,u)}var c=a.children,d=a.fallback;if(i){var g=HR(t,c,d,n),y=t.child;return y.memoizedState=Sp(n),t.memoizedState=bp,g}else return Tp(t,c)}else{var D=e.memoizedState;if(D!==null){var k=D.dehydrated;if(k!==null)return $R(e,t,o,a,k,D,n)}if(i){var A=a.fallback,ie=a.children,Me=FR(e,t,ie,A,n),_e=t.child,bt=e.child.memoizedState;return _e.memoizedState=bt===null?Sp(n):NR(bt,n),_e.childLanes=UR(e,n),t.memoizedState=bp,Me}else{var pt=a.children,C=zR(e,t,pt,n);return t.memoizedState=null,C}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function HR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&yt)===Ne&&i!==null?(l=i,l.childLanes=$,l.pendingProps=o,e.mode&Bt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=_i(n,r,a,null)):(l=Ep(o,r),u=_i(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return r0(e,t,$,null)}function rb(e,t){return uo(e,t)}function zR(e,t,n,a){var r=e.child,i=r.sibling,o=rb(r,{mode:"visible",children:n});if((t.mode&yt)===Ne&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=ji):l.push(i)}return t.child=o,o}function FR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},c;if((i&yt)===Ne&&t.child!==o){var d=t.child;c=d,c.childLanes=$,c.pendingProps=u,t.mode&Bt&&(c.actualDuration=0,c.actualStartTime=-1,c.selfBaseDuration=o.selfBaseDuration,c.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else c=rb(o,u),c.subtreeFlags=o.subtreeFlags&Ur;var g;return l!==null?g=uo(l,a):(g=_i(a,i,r,null),g.flags|=Sn),g.return=t,c.return=t,c.sibling=g,t.child=c,g}function Oc(e,t,n,a){a!==null&&nv(a),Po(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=Sn,t.memoizedState=null,o}function VR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=_i(a,i,r,null);return u.flags|=Sn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&yt)!==Ne&&Po(t,e.child,null,r),u}function BR(e,t,n){return(e.mode&yt)===Ne?(f("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):Vd(t)?e.lanes=Bi:e.lanes=wa,null}function $R(e,t,n,a,r,i,o){if(n)if(t.flags&Nr){t.flags&=~Nr;var C=up(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|=Lt,null;var N=a.children,x=a.fallback,Y=VR(e,t,N,x,o),pe=t.child;return pe.memoizedState=Sp(o),t.memoizedState=bp,Y}else{if(k1(),(t.mode&yt)===Ne)return Oc(e,t,o,null);if(Vd(r)){var l,u,c;{var d=Wx(r);l=d.digest,u=d.message,c=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=up(g,l,c);return Oc(e,t,o,y)}var D=Da(o,e.childLanes);if(nr||D){var k=Pc();if(k!==null){var A=JT(k,o);if(A!==Un&&A!==i.retryLane){i.retryLane=A;var ie=Jt;Sa(e,A),Mn(k,e,A,ie)}}Pp();var Me=up(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Oc(e,t,o,Me)}else if(Dy(r)){t.flags|=Lt,t.child=e.child;var _e=vD.bind(null,e);return qx(r,_e),null}else{O1(t,r,i.treeContext);var bt=a.children,pt=Tp(t,bt);return pt.flags|=jr,pt}}}function ib(e,t,n){e.lanes=at(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=at(a.lanes,t)),dv(e.return,t,n)}function PR(e,t,n){for(var a=t;a!==null;){if(a.tag===Ce){var r=a.memoizedState;r!==null&&ib(a,n,e)}else if(a.tag===Ot)ib(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 YR(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 IR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%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:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function WR(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ob(e,t){{var n=vt(e),a=!n&&typeof j(e)=="function";if(n||a){var r=n?"array":"iterable";return f("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 qR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(vt(e)){for(var n=0;n<e.length;n++)if(!ob(e[n],n))return}else{var a=j(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(!ob(i.value,o))return;o++}}else f('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Cp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function lb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;IR(r),WR(i,r),qR(o,r),sa(e,t,o,n);var l=Za.current,u=Tv(l,yu);if(u)l=Ev(l,yu),t.flags|=Lt;else{var c=e!==null&&(e.flags&Lt)!==He;c&&PR(t,t.child,n),l=qo(l)}if(Si(t,l),(t.mode&yt)===Ne)t.memoizedState=null;else switch(r){case"forwards":{var d=YR(t.child),g;d===null?(g=t.child,t.child=null):(g=d.sibling,d.sibling=null),Cp(t,!1,g,d,i);break}case"backwards":{var y=null,D=t.child;for(t.child=null;D!==null;){var k=D.alternate;if(k!==null&&cc(k)===null){t.child=D;break}var A=D.sibling;D.sibling=y,y=D,D=A}Cp(t,!0,y,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function GR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Po(t,null,a,n):sa(e,t,a,n),t.child}var ub=!1;function XR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ub||(ub=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Qa(u,i,"prop","Context.Provider")}if(eg(t,r,l),o!==null){var c=o.value;if(Ma(c,l)){if(o.children===i.children&&!Bs())return Wr(e,t,n)}else I1(t,r,n)}var d=i.children;return sa(e,t,d,n),t.child}var sb=!1;function QR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(sb||(sb=!0,f("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"&&f("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."),Io(t,n);var o=Tn(a);wl(t);var l;return wu.current=t,za(!0),l=i(o),za(!1),xo(),t.flags|=So,sa(e,t,l,n),t.child}function ku(){nr=!0}function Ac(e,t){(t.mode&yt)===Ne&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Sn)}function Wr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),zg(),Bu(t.lanes),Da(n,t.childLanes)?(P1(e,t),t.child):null}function KR(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|=ji):i.push(e),n.flags|=Sn,n}}function xp(e,t){var n=e.lanes;return!!Da(n,t)}function JR(e,t,n){switch(t.tag){case ce:tb(t),t.stateNode,$o();break;case te:ug(t);break;case re:{var a=t.type;vr(a)&&Ps(t);break}case je:gv(t,t.stateNode.containerInfo);break;case ot:{var r=t.memoizedProps.value,i=t.type._context;eg(t,i,r);break}case rt:{var o=Da(n,t.childLanes);o&&(t.flags|=Mt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case Ce:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return Si(t,qo(Za.current)),t.flags|=Lt,null;var c=t.child,d=c.childLanes;if(Da(n,d))return ab(e,t,n);Si(t,qo(Za.current));var g=Wr(e,t,n);return g!==null?g.sibling:null}else Si(t,qo(Za.current));break}case Ot:{var y=(e.flags&Lt)!==He,D=Da(n,t.childLanes);if(y){if(D)return lb(e,t,n);t.flags|=Lt}var k=t.memoizedState;if(k!==null&&(k.rendering=null,k.tail=null,k.lastEffect=null),Si(t,Za.current),D)break;return null}case X:case tt:return t.lanes=$,Jg(e,t,n)}return Wr(e,t,n)}function cb(e,t,n){if(t._debugNeedsRemount&&e!==null)return KR(e,t,em(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Bs()||t.type!==e.type)nr=!0;else{var i=xp(e,n);if(!i&&(t.flags&Lt)===He)return nr=!1,JR(e,t,n);(e.flags&kf)!==He?nr=!0:nr=!1}}else if(nr=!1,$n()&&C1(t)){var o=t.index,l=x1();zy(t,l,o)}switch(t.lanes=$,t.tag){case Tt:return AR(e,t,t.type,n);case zt:{var u=t.elementType;return LR(e,t,u,n)}case ge:{var c=t.type,d=t.pendingProps,g=t.elementType===c?d:tr(c,d);return hp(e,t,c,g,n)}case re:{var y=t.type,D=t.pendingProps,k=t.elementType===y?D:tr(y,D);return eb(e,t,y,k,n)}case ce:return _R(e,t,n);case te:return kR(e,t,n);case Be:return MR(e,t);case Ce:return ab(e,t,n);case je:return GR(e,t,n);case Le:{var A=t.type,ie=t.pendingProps,Me=t.elementType===A?ie:tr(A,ie);return Xg(e,t,A,Me,n)}case Qe:return RR(e,t,n);case I:return wR(e,t,n);case rt:return DR(e,t,n);case ot:return XR(e,t,n);case xt:return QR(e,t,n);case U:{var _e=t.type,bt=t.pendingProps,pt=tr(_e,bt);if(t.type!==t.elementType){var C=_e.propTypes;C&&Qa(C,pt,"prop",kt(_e))}return pt=tr(_e.type,pt),Qg(e,t,_e,pt,n)}case Z:return Kg(e,t,t.type,t.pendingProps,n);case Et:{var N=t.type,x=t.pendingProps,Y=t.elementType===N?x:tr(N,x);return OR(e,t,N,Y,n)}case Ot:return lb(e,t,n);case ke:break;case X:return Jg(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 Zo(e){e.flags|=Mt}function fb(e){e.flags|=Ui,e.flags|=Mf}var db,Rp,vb,pb;db=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===te||r.tag===Be)Sx(e,r.stateNode);else if(r.tag!==je){if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===t)return;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rp=function(e,t){},vb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Ex(o,n,i,a,r,l);t.updateQueue=u,u&&Zo(t)}},pb=function(e,t,n,a){n!==a&&Zo(t)};function Mu(e,t){if(!$n())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 Yn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=$,a=He;if(t){if((e.mode&Bt)!==Ne){for(var u=e.selfBaseDuration,c=e.child;c!==null;)n=at(n,at(c.lanes,c.childLanes)),a|=c.subtreeFlags&Ur,a|=c.flags&Ur,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=at(n,at(d.lanes,d.childLanes)),a|=d.subtreeFlags&Ur,a|=d.flags&Ur,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&Bt)!==Ne){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=at(n,at(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=at(n,at(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 ZR(e,t,n){if(H1()&&(t.mode&yt)!==Ne&&(t.flags&Lt)===He)return Iy(t),$o(),t.flags|=Nr|is|ua,!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(j1(t),Yn(t),(t.mode&Bt)!==Ne){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if($o(),(t.flags&Lt)===He&&(t.memoizedState=null),t.flags|=Mt,Yn(t),(t.mode&Bt)!==Ne){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Wy(),!0}function mb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case Tt:case zt:case Z:case ge:case Le:case Qe:case I:case rt:case xt:case U:return Yn(t),null;case re:{var r=t.type;return vr(r)&&$s(t),Yn(t),null}case ce:{var i=t.stateNode;if(Wo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=Gs(t);if(o)Zo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Nr)!==He)&&(t.flags|=To,Wy())}}return Rp(e,t),Yn(t),null}case te:{Sv(t);var u=lg(),c=t.type;if(e!==null&&t.stateNode!=null)vb(e,t,c,a,u),e.ref!==t.ref&&fb(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 Yn(t),null}var d=bv(),g=Gs(t);if(g)A1(t,u,d)&&Zo(t);else{var y=bx(c,a,u,d,t);db(y,t,!1,!1),t.stateNode=y,Tx(y,c,a,u)&&Zo(t)}t.ref!==null&&fb(t)}return Yn(t),null}case Be:{var D=a;if(e&&t.stateNode!=null){var k=e.memoizedProps;pb(e,t,k,D)}else{if(typeof D!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var A=lg(),ie=bv(),Me=Gs(t);Me?N1(t)&&Zo(t):t.stateNode=Cx(D,A,ie,t)}return Yn(t),null}case Ce:{Go(t);var _e=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var bt=ZR(e,t,_e);if(!bt)return t.flags&ua?t:null}if((t.flags&Lt)!==He)return t.lanes=n,(t.mode&Bt)!==Ne&&Xv(t),t;var pt=_e!==null,C=e!==null&&e.memoizedState!==null;if(pt!==C&&pt){var N=t.child;if(N.flags|=Hi,(t.mode&yt)!==Ne){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||Tv(Za.current,cg)?eD():Pp()}}var Y=t.updateQueue;if(Y!==null&&(t.flags|=Mt),Yn(t),(t.mode&Bt)!==Ne&&pt){var pe=t.child;pe!==null&&(t.treeBaseDuration-=pe.treeBaseDuration)}return null}case je:return Wo(t),Rp(e,t),e===null&&h1(t.stateNode.containerInfo),Yn(t),null;case ot:var le=t.type._context;return fv(le,t),Yn(t),null;case Et:{var Fe=t.type;return vr(Fe)&&$s(t),Yn(t),null}case Ot:{Go(t);var Xe=t.memoizedState;if(Xe===null)return Yn(t),null;var Pt=(t.flags&Lt)!==He,wt=Xe.rendering;if(wt===null)if(Pt)Mu(Xe,!1);else{var dn=nD()&&(e===null||(e.flags&Lt)===He);if(!dn)for(var Dt=t.child;Dt!==null;){var sn=cc(Dt);if(sn!==null){Pt=!0,t.flags|=Lt,Mu(Xe,!1);var ea=sn.updateQueue;return ea!==null&&(t.updateQueue=ea,t.flags|=Mt),t.subtreeFlags=He,Y1(t,n),Si(t,Ev(Za.current,yu)),t.child}Dt=Dt.sibling}Xe.tail!==null&&Nn()>Ub()&&(t.flags|=Lt,Pt=!0,Mu(Xe,!1),t.lanes=ph)}else{if(!Pt){var Xn=cc(wt);if(Xn!==null){t.flags|=Lt,Pt=!0;var Aa=Xn.updateQueue;if(Aa!==null&&(t.updateQueue=Aa,t.flags|=Mt),Mu(Xe,!0),Xe.tail===null&&Xe.tailMode==="hidden"&&!wt.alternate&&!$n())return Yn(t),null}else Nn()*2-Xe.renderingStartTime>Ub()&&n!==wa&&(t.flags|=Lt,Pt=!0,Mu(Xe,!1),t.lanes=ph)}if(Xe.isBackwards)wt.sibling=t.child,t.child=wt;else{var da=Xe.last;da!==null?da.sibling=wt:t.child=wt,Xe.last=wt}}if(Xe.tail!==null){var va=Xe.tail;Xe.rendering=va,Xe.tail=va.sibling,Xe.renderingStartTime=Nn(),va.sibling=null;var ta=Za.current;return Pt?ta=Ev(ta,yu):ta=qo(ta),Si(t,ta),va}return Yn(t),null}case ke:break;case X:case tt:{$p(t);var Kr=t.memoizedState,ll=Kr!==null;if(e!==null){var Wu=e.memoizedState,Tr=Wu!==null;Tr!==ll&&!mt&&(t.flags|=Hi)}return!ll||(t.mode&yt)===Ne?Yn(t):Da(Sr,wa)&&(Yn(t),t.subtreeFlags&(Sn|Mt)&&(t.flags|=Hi)),null}case oe:return null;case Se: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 ew(e,t,n){switch(Kd(t),t.tag){case re:{var a=t.type;vr(a)&&$s(t);var r=t.flags;return r&ua?(t.flags=r&~ua|Lt,(t.mode&Bt)!==Ne&&Xv(t),t):null}case ce:{t.stateNode,Wo(t),qd(t),xv();var i=t.flags;return(i&ua)!==He&&(i&Lt)===He?(t.flags=i&~ua|Lt,t):null}case te:return Sv(t),null;case Ce:{Go(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.");$o()}var l=t.flags;return l&ua?(t.flags=l&~ua|Lt,(t.mode&Bt)!==Ne&&Xv(t),t):null}case Ot:return Go(t),null;case je:return Wo(t),null;case ot:var u=t.type._context;return fv(u,t),null;case X:case tt:return $p(t),null;case oe:return null;default:return null}}function hb(e,t,n){switch(Kd(t),t.tag){case re:{var a=t.type.childContextTypes;a!=null&&$s(t);break}case ce:{t.stateNode,Wo(t),qd(t),xv();break}case te:{Sv(t);break}case je:Wo(t);break;case Ce:Go(t);break;case Ot:Go(t);break;case ot:var r=t.type._context;fv(r,t);break;case X:case tt:$p(t);break}}var yb=null;yb=new Set;var Nc=!1,In=!1,tw=typeof WeakSet=="function"?WeakSet:Set,Ee=null,el=null,tl=null;function nw(e){wf(null,function(){throw e}),Df()}var aw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Bt)try{gr(),t.componentWillUnmount()}finally{yr(e)}else t.componentWillUnmount()};function gb(e,t){try{Ci(xn,e)}catch(n){qt(e,t,n)}}function wp(e,t,n){try{aw(e,n)}catch(a){qt(e,t,a)}}function rw(e,t,n){try{n.componentDidMount()}catch(a){qt(e,t,a)}}function bb(e,t){try{Tb(e)}catch(n){qt(e,t,n)}}function nl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(jt&&Ye&&e.mode&Bt)try{gr(),a=n(null)}finally{yr(e)}else a=n(null)}catch(r){qt(e,t,r)}typeof a=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ke(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){qt(e,t,a)}}var Sb=!1;function iw(e,t){yx(e.containerInfo),Ee=t,ow();var n=Sb;return Sb=!1,n}function ow(){for(;Ee!==null;){var e=Ee,t=e.child;(e.subtreeFlags&Af)!==He&&t!==null?(t.return=e,Ee=t):lw()}}function lw(){for(;Ee!==null;){var e=Ee;tn(e);try{uw(e)}catch(n){qt(e,e.return,n)}An();var t=e.sibling;if(t!==null){t.return=e.return,Ee=t;return}Ee=e.return}}function uw(e){var t=e.alternate,n=e.flags;if((n&To)!==He){switch(tn(e),e.tag){case ge:case Le:case Z:break;case re:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!ao&&(i.props!==e.memoizedProps&&f("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.",Ke(e)||"instance"),i.state!==e.memoizedState&&f("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.",Ke(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:tr(e.type,a),r);{var l=yb;o===void 0&&!l.has(e.type)&&(l.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ke(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case ce:{{var u=e.stateNode;$x(u.containerInfo)}break}case te:case Be:case je:case Et: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.")}An()}}function ar(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&Pn)!==Ta?CT(t):(e&xn)!==Ta&&sh(t),(e&pr)!==Ta&&Pu(!0),jc(t,n,l),(e&pr)!==Ta&&Pu(!1),(e&Pn)!==Ta?xT():(e&xn)!==Ta&&ch())}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&Pn)!==Ta?TT(t):(e&xn)!==Ta&&RT(t);var o=i.create;(e&pr)!==Ta&&Pu(!0),i.destroy=o(),(e&pr)!==Ta&&Pu(!1),(e&Pn)!==Ta?ET():(e&xn)!==Ta&&wT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&xn)!==He?u="useLayoutEffect":(i.tag&pr)!==He?u="useInsertionEffect":u="useEffect";var c=void 0;l===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?c=`
|
|
|
|
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`:c=" You returned: "+l,f("%s must not return anything besides a function, which is used for clean-up.%s",u,c)}}}i=i.next}while(i!==r)}}function sw(e,t){if((t.flags&Mt)!==He)switch(t.tag){case rt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ug(),l=t.alternate===null?"mount":"update";jg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case ce:var c=u.stateNode;c.passiveEffectDuration+=n;break e;case rt:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function cw(e,t,n,a){if((n.flags&Rl)!==He)switch(n.tag){case ge:case Le:case Z:{if(!In)if(n.mode&Bt)try{gr(),Ci(xn|Cn,n)}finally{yr(n)}else Ci(xn|Cn,n);break}case re:{var r=n.stateNode;if(n.flags&Mt&&!In)if(t===null)if(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&f("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ke(n)||"instance")),n.mode&Bt)try{gr(),r.componentDidMount()}finally{yr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:tr(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&f("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ke(n)||"instance")),n.mode&Bt)try{gr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{yr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&f("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.",Ke(n)||"instance"),r.state!==n.memoizedState&&f("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.",Ke(n)||"instance")),og(n,l,r));break}case ce:{var u=n.updateQueue;if(u!==null){var c=null;if(n.child!==null)switch(n.child.tag){case te:c=n.child.stateNode;break;case re:c=n.child.stateNode;break}og(n,u,c)}break}case te:{var d=n.stateNode;if(t===null&&n.flags&Mt){var g=n.type,y=n.memoizedProps;_x(d,g,y)}break}case Be:break;case je:break;case rt:{{var D=n.memoizedProps,k=D.onCommit,A=D.onRender,ie=n.stateNode.effectDuration,Me=Ug(),_e=t===null?"mount":"update";jg()&&(_e="nested-update"),typeof A=="function"&&A(n.memoizedProps.id,_e,n.actualDuration,n.treeBaseDuration,n.actualStartTime,Me);{typeof k=="function"&&k(n.memoizedProps.id,_e,ie,Me),lD(n);var bt=n.return;e:for(;bt!==null;){switch(bt.tag){case ce:var pt=bt.stateNode;pt.effectDuration+=ie;break e;case rt:var C=bt.stateNode;C.effectDuration+=ie;break e}bt=bt.return}}}break}case Ce:{gw(e,n);break}case Ot:case Et:case ke:case X:case tt:case Se: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.")}In||n.flags&Ui&&Tb(n)}function fw(e){switch(e.tag){case ge:case Le:case Z:{if(e.mode&Bt)try{gr(),gb(e,e.return)}finally{yr(e)}else gb(e,e.return);break}case re:{var t=e.stateNode;typeof t.componentDidMount=="function"&&rw(e,e.return,t),bb(e,e.return);break}case te:{bb(e,e.return);break}}}function dw(e,t){for(var n=null,a=e;;){if(a.tag===te){if(n===null){n=a;try{var r=a.stateNode;t?zx(r):Vx(a.stateNode,a.memoizedProps)}catch(o){qt(e,e.return,o)}}}else if(a.tag===Be){if(n===null)try{var i=a.stateNode;t?Fx(i):Bx(i,a.memoizedProps)}catch(o){qt(e,e.return,o)}}else if(!((a.tag===X||a.tag===tt)&&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 Tb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case te:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Bt)try{gr(),r=t(a)}finally{yr(e)}else r=t(a);typeof r=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ke(e))}else t.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ke(e)),t.current=a}}function vw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Eb(e){var t=e.alternate;t!==null&&(e.alternate=null,Eb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===te){var n=e.stateNode;n!==null&&b1(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 pw(e){for(var t=e.return;t!==null;){if(Cb(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 Cb(e){return e.tag===te||e.tag===ce||e.tag===je}function xb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Cb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==te&&t.tag!==Be&&t.tag!==st;){if(t.flags&Sn||t.child===null||t.tag===je)continue e;t.child.return=t,t=t.child}if(!(t.flags&Sn))return t.stateNode}}function mw(e){var t=pw(e);switch(t.tag){case te:{var n=t.stateNode;t.flags&xl&&(wy(n),t.flags&=~xl);var a=xb(e);_p(e,a,n);break}case ce:case je:{var r=t.stateNode.containerInfo,i=xb(e);Dp(e,i,r);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Dp(e,t,n){var a=e.tag,r=a===te||a===Be;if(r){var i=e.stateNode;t?Nx(n,i,t):Ox(n,i)}else if(a!==je){var o=e.child;if(o!==null){Dp(o,t,n);for(var l=o.sibling;l!==null;)Dp(l,t,n),l=l.sibling}}}function _p(e,t,n){var a=e.tag,r=a===te||a===Be;if(r){var i=e.stateNode;t?Ax(n,i,t):Lx(n,i)}else if(a!==je){var o=e.child;if(o!==null){_p(o,t,n);for(var l=o.sibling;l!==null;)_p(l,t,n),l=l.sibling}}}var Wn=null,rr=!1;function hw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case te:{Wn=a.stateNode,rr=!1;break e}case ce:{Wn=a.stateNode.containerInfo,rr=!0;break e}case je:{Wn=a.stateNode.containerInfo,rr=!0;break e}}a=a.return}if(Wn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rb(e,t,n),Wn=null,rr=!1}vw(n)}function xi(e,t,n){for(var a=n.child;a!==null;)Rb(e,t,a),a=a.sibling}function Rb(e,t,n){switch(yT(n),n.tag){case te:In||nl(n,t);case Be:{{var a=Wn,r=rr;Wn=null,xi(e,t,n),Wn=a,rr=r,Wn!==null&&(rr?Ux(Wn,n.stateNode):jx(Wn,n.stateNode))}return}case st:{Wn!==null&&(rr?Hx(Wn,n.stateNode):Fd(Wn,n.stateNode));return}case je:{{var i=Wn,o=rr;Wn=n.stateNode.containerInfo,rr=!0,xi(e,t,n),Wn=i,rr=o}return}case ge:case Le:case U:case Z:{if(!In){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var c=u.next,d=c;do{var g=d,y=g.destroy,D=g.tag;y!==void 0&&((D&pr)!==Ta?jc(n,t,y):(D&xn)!==Ta&&(sh(n),n.mode&Bt?(gr(),jc(n,t,y),yr(n)):jc(n,t,y),ch())),d=d.next}while(d!==c)}}}xi(e,t,n);return}case re:{if(!In){nl(n,t);var k=n.stateNode;typeof k.componentWillUnmount=="function"&&wp(n,t,k)}xi(e,t,n);return}case ke:{xi(e,t,n);return}case X:{if(n.mode&yt){var A=In;In=A||n.memoizedState!==null,xi(e,t,n),In=A}else xi(e,t,n);break}default:{xi(e,t,n);return}}}function yw(e){e.memoizedState}function gw(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&&n1(i)}}}}function wb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tw),t.forEach(function(a){var r=pD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Ga)if(el!==null&&tl!==null)$u(tl,el);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function bw(e,t,n){el=n,tl=e,tn(t),Db(t,e),tn(t),el=null,tl=null}function ir(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{hw(e,t,i)}catch(u){qt(i,t,u)}}var o=Gu();if(t.subtreeFlags&Nf)for(var l=t.child;l!==null;)tn(l),Db(l,e),l=l.sibling;tn(o)}function Db(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ge:case Le:case U:case Z:{if(ir(t,e),br(e),r&Mt){try{ar(pr|Cn,e,e.return),Ci(pr|Cn,e)}catch(Fe){qt(e,e.return,Fe)}if(e.mode&Bt){try{gr(),ar(xn|Cn,e,e.return)}catch(Fe){qt(e,e.return,Fe)}yr(e)}else try{ar(xn|Cn,e,e.return)}catch(Fe){qt(e,e.return,Fe)}}return}case re:{ir(t,e),br(e),r&Ui&&a!==null&&nl(a,a.return);return}case te:{ir(t,e),br(e),r&Ui&&a!==null&&nl(a,a.return);{if(e.flags&xl){var i=e.stateNode;try{wy(i)}catch(Fe){qt(e,e.return,Fe)}}if(r&Mt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{kx(o,d,c,u,l,e)}catch(Fe){qt(e,e.return,Fe)}}}}return}case Be:{if(ir(t,e),br(e),r&Mt){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,D=a!==null?a.memoizedProps:y;try{Mx(g,D,y)}catch(Fe){qt(e,e.return,Fe)}}return}case ce:{if(ir(t,e),br(e),r&Mt&&a!==null){var k=a.memoizedState;if(k.isDehydrated)try{t1(t.containerInfo)}catch(Fe){qt(e,e.return,Fe)}}return}case je:{ir(t,e),br(e);return}case Ce:{ir(t,e),br(e);var A=e.child;if(A.flags&Hi){var ie=A.stateNode,Me=A.memoizedState,_e=Me!==null;if(ie.isHidden=_e,_e){var bt=A.alternate!==null&&A.alternate.memoizedState!==null;bt||Zw()}}if(r&Mt){try{yw(e)}catch(Fe){qt(e,e.return,Fe)}wb(e)}return}case X:{var pt=a!==null&&a.memoizedState!==null;if(e.mode&yt){var C=In;In=C||pt,ir(t,e),In=C}else ir(t,e);if(br(e),r&Hi){var N=e.stateNode,x=e.memoizedState,Y=x!==null,pe=e;if(N.isHidden=Y,Y&&!pt&&(pe.mode&yt)!==Ne){Ee=pe;for(var le=pe.child;le!==null;)Ee=le,Tw(le),le=le.sibling}dw(pe,Y)}return}case Ot:{ir(t,e),br(e),r&Mt&&wb(e);return}case ke:return;default:{ir(t,e),br(e);return}}}function br(e){var t=e.flags;if(t&Sn){try{mw(e)}catch(n){qt(e,e.return,n)}e.flags&=~Sn}t&jr&&(e.flags&=~jr)}function Sw(e,t,n){el=n,tl=t,Ee=e,_b(e,t,n),el=null,tl=null}function _b(e,t,n){for(var a=(e.mode&yt)!==Ne;Ee!==null;){var r=Ee,i=r.child;if(r.tag===X&&a){var o=r.memoizedState!==null,l=o||Nc;if(l){kp(e,t,n);continue}else{var u=r.alternate,c=u!==null&&u.memoizedState!==null,d=c||In,g=Nc,y=In;Nc=l,In=d,In&&!y&&(Ee=r,Ew(r));for(var D=i;D!==null;)Ee=D,_b(D,t,n),D=D.sibling;Ee=r,Nc=g,In=y,kp(e,t,n);continue}}(r.subtreeFlags&Rl)!==He&&i!==null?(i.return=r,Ee=i):kp(e,t,n)}}function kp(e,t,n){for(;Ee!==null;){var a=Ee;if((a.flags&Rl)!==He){var r=a.alternate;tn(a);try{cw(t,r,a,n)}catch(o){qt(a,a.return,o)}An()}if(a===e){Ee=null;return}var i=a.sibling;if(i!==null){i.return=a.return,Ee=i;return}Ee=a.return}}function Tw(e){for(;Ee!==null;){var t=Ee,n=t.child;switch(t.tag){case ge:case Le:case U:case Z:{if(t.mode&Bt)try{gr(),ar(xn,t,t.return)}finally{yr(t)}else ar(xn,t,t.return);break}case re:{nl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case te:{nl(t,t.return);break}case X:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,Ee=n):kb(e)}}function kb(e){for(;Ee!==null;){var t=Ee;if(t===e){Ee=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ee=n;return}Ee=t.return}}function Ew(e){for(;Ee!==null;){var t=Ee,n=t.child;if(t.tag===X){var a=t.memoizedState!==null;if(a){Mb(e);continue}}n!==null?(n.return=t,Ee=n):Mb(e)}}function Mb(e){for(;Ee!==null;){var t=Ee;tn(t);try{fw(t)}catch(a){qt(t,t.return,a)}if(An(),t===e){Ee=null;return}var n=t.sibling;if(n!==null){n.return=t.return,Ee=n;return}Ee=t.return}}function Cw(e,t,n,a){Ee=t,xw(t,e,n,a)}function xw(e,t,n,a){for(;Ee!==null;){var r=Ee,i=r.child;(r.subtreeFlags&Eo)!==He&&i!==null?(i.return=r,Ee=i):Rw(e,t,n,a)}}function Rw(e,t,n,a){for(;Ee!==null;){var r=Ee;if((r.flags&ii)!==He){tn(r);try{ww(t,r,n,a)}catch(o){qt(r,r.return,o)}An()}if(r===e){Ee=null;return}var i=r.sibling;if(i!==null){i.return=r.return,Ee=i;return}Ee=r.return}}function ww(e,t,n,a){switch(t.tag){case ge:case Le:case Z:{if(t.mode&Bt){Gv();try{Ci(Pn|Cn,t)}finally{qv(t)}}else Ci(Pn|Cn,t);break}}}function Dw(e){Ee=e,_w()}function _w(){for(;Ee!==null;){var e=Ee,t=e.child;if((Ee.flags&ji)!==He){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];Ee=r,Lw(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)}}}Ee=e}}(e.subtreeFlags&Eo)!==He&&t!==null?(t.return=e,Ee=t):kw()}}function kw(){for(;Ee!==null;){var e=Ee;(e.flags&ii)!==He&&(tn(e),Mw(e),An());var t=e.sibling;if(t!==null){t.return=e.return,Ee=t;return}Ee=e.return}}function Mw(e){switch(e.tag){case ge:case Le:case Z:{e.mode&Bt?(Gv(),ar(Pn|Cn,e,e.return),qv(e)):ar(Pn|Cn,e,e.return);break}}}function Lw(e,t){for(;Ee!==null;){var n=Ee;tn(n),Aw(n,t),An();var a=n.child;a!==null?(a.return=n,Ee=a):Ow(e)}}function Ow(e){for(;Ee!==null;){var t=Ee,n=t.sibling,a=t.return;if(Eb(t),t===e){Ee=null;return}if(n!==null){n.return=a,Ee=n;return}Ee=a}}function Aw(e,t){switch(e.tag){case ge:case Le:case Z:{e.mode&Bt?(Gv(),ar(Pn,e,t),qv(e)):ar(Pn,e,t);break}}}function Nw(e){switch(e.tag){case ge:case Le:case Z:{try{Ci(xn|Cn,e)}catch(n){qt(e,e.return,n)}break}case re:{var t=e.stateNode;try{t.componentDidMount()}catch(n){qt(e,e.return,n)}break}}}function jw(e){switch(e.tag){case ge:case Le:case Z:{try{Ci(Pn|Cn,e)}catch(t){qt(e,e.return,t)}break}}}function Uw(e){switch(e.tag){case ge:case Le:case Z:{try{ar(xn|Cn,e,e.return)}catch(n){qt(e,e.return,n)}break}case re:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function Hw(e){switch(e.tag){case ge:case Le:case Z:try{ar(Pn|Cn,e,e.return)}catch(t){qt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Lu=Symbol.for;Lu("selector.component"),Lu("selector.has_pseudo_class"),Lu("selector.role"),Lu("selector.test_id"),Lu("selector.text")}var zw=[];function Fw(){zw.forEach(function(e){return e()})}var Vw=be.ReactCurrentActQueue;function Bw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Lb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Vw.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var $w=Math.ceil,Mp=be.ReactCurrentDispatcher,Lp=be.ReactCurrentOwner,qn=be.ReactCurrentBatchConfig,or=be.ReactCurrentActQueue,Dn=0,Ob=1,Gn=2,Ya=4,qr=0,Ou=1,ro=2,Uc=3,Au=4,Ab=5,Op=6,gt=Dn,ca=null,rn=null,_n=$,Sr=$,Ap=pi($),kn=qr,Nu=null,Hc=$,ju=$,zc=$,Uu=null,Ea=null,Np=0,Nb=500,jb=1/0,Pw=500,Gr=null;function Hu(){jb=Nn()+Pw}function Ub(){return jb}var Fc=!1,jp=null,al=null,io=!1,Ri=null,zu=$,Up=[],Hp=null,Yw=50,Fu=0,zp=null,Fp=!1,Vc=!1,Iw=50,rl=0,Bc=null,Vu=Jt,$c=$,Hb=!1;function Pc(){return ca}function fa(){return(gt&(Gn|Ya))!==Dn?Nn():(Vu!==Jt||(Vu=Nn()),Vu)}function wi(e){var t=e.mode;if((t&yt)===Ne)return $e;if((gt&Gn)!==Dn&&_n!==$)return Ol(_n);var n=V1()!==F1;if(n){if(qn.transition!==null){var a=qn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return $c===Un&&($c=gh()),$c}var r=Xa();if(r!==Un)return r;var i=xx();return i}function Ww(e){var t=e.mode;return(t&yt)===Ne?$e:GT()}function Mn(e,t,n,a){hD(),Hb&&f("useInsertionEffect must not schedule updates."),Fp&&(Vc=!0),Al(e,n,a),(gt&Gn)!==$&&e===ca?bD(t):(Ga&&Th(e,t,n),SD(t),e===ca&&((gt&Gn)===Dn&&(ju=at(ju,n)),kn===Au&&Di(e,_n)),Ca(e,a),n===$e&>===Dn&&(t.mode&yt)===Ne&&!or.isBatchingLegacy&&(Hu(),Hy()))}function qw(e,t,n){var a=e.current;a.lanes=t,Al(e,t,n),Ca(e,n)}function Gw(e){return(gt&Gn)!==Dn}function Ca(e,t){var n=e.callbackNode;$T(e,t);var a=cs(e,e===ca?_n:$);if(a===$){n!==null&&Zb(n),e.callbackNode=null,e.callbackPriority=Un;return}var r=Pi(a),i=e.callbackPriority;if(i===r&&!(or.current!==null&&n!==Wp)){n==null&&i!==$e&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&Zb(n);var o;if(r===$e)e.tag===mi?(or.isBatchingLegacy!==null&&(or.didScheduleLegacyUpdate=!0),E1(Vb.bind(null,e))):Uy(Vb.bind(null,e)),or.current!==null?or.current.push(hi):wx(function(){(gt&(Gn|Ya))===Dn&&hi()}),o=null;else{var l;switch(xh(a)){case _a:l=os;break;case zr:l=jf;break;case Fr:l=Vi;break;case vs:l=Uf;break;default:l=Vi;break}o=qp(l,zb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function zb(e,t){if(dR(),Vu=Jt,$c=$,(gt&(Gn|Ya))!==Dn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Qr();if(a&&e.callbackNode!==n)return null;var r=cs(e,e===ca?_n:$);if(r===$)return null;var i=!fs(e,r)&&!qT(e,r)&&!t,o=i?rD(e,r):Ic(e,r);if(o!==qr){if(o===ro){var l=rd(e);l!==$&&(r=l,o=Vp(e,l))}if(o===Ou){var u=Nu;throw oo(e,$),Di(e,r),Ca(e,Nn()),u}if(o===Op)Di(e,r);else{var c=!fs(e,r),d=e.current.alternate;if(c&&!Qw(d)){if(o=Ic(e,r),o===ro){var g=rd(e);g!==$&&(r=g,o=Vp(e,g))}if(o===Ou){var y=Nu;throw oo(e,$),Di(e,r),Ca(e,Nn()),y}}e.finishedWork=d,e.finishedLanes=r,Xw(e,o,r)}}return Ca(e,Nn()),e.callbackNode===n?zb.bind(null,e):null}function Vp(e,t){var n=Uu;if(ps(e)){var a=oo(e,t);a.flags|=Nr,m1(e.containerInfo)}var r=Ic(e,t);if(r!==ro){var i=Ea;Ea=n,i!==null&&Fb(i)}return r}function Fb(e){Ea===null?Ea=e:Ea.push.apply(Ea,e)}function Xw(e,t,n){switch(t){case qr:case Ou:throw new Error("Root did not complete. This is a bug in React.");case ro:{lo(e,Ea,Gr);break}case Uc:{if(Di(e,n),hh(n)&&!e0()){var a=Np+Nb-Nn();if(a>10){var r=cs(e,$);if(r!==$)break;var i=e.suspendedLanes;if(!_o(i,n)){fa(),Sh(e,i);break}e.timeoutHandle=Hd(lo.bind(null,e,Ea,Gr),a);break}}lo(e,Ea,Gr);break}case Au:{if(Di(e,n),WT(n))break;if(!e0()){var o=VT(e,n),l=o,u=Nn()-l,c=mD(u)-u;if(c>10){e.timeoutHandle=Hd(lo.bind(null,e,Ea,Gr),c);break}}lo(e,Ea,Gr);break}case Ab:{lo(e,Ea,Gr);break}default:throw new Error("Unknown root exit status.")}}function Qw(e){for(var t=e;;){if(t.flags&_f){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!Ma(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&_f&&u!==null){u.return=t,t=u;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function Di(e,t){t=ds(t,zc),t=ds(t,ju),QT(e,t)}function Vb(e){if(vR(),(gt&(Gn|Ya))!==Dn)throw new Error("Should not already be working.");Qr();var t=cs(e,$);if(!Da(t,$e))return Ca(e,Nn()),null;var n=Ic(e,t);if(e.tag!==mi&&n===ro){var a=rd(e);a!==$&&(t=a,n=Vp(e,a))}if(n===Ou){var r=Nu;throw oo(e,$),Di(e,t),Ca(e,Nn()),r}if(n===Op)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,lo(e,Ea,Gr),Ca(e,Nn()),null}function Kw(e,t){t!==$&&(ud(e,at(t,$e)),Ca(e,Nn()),(gt&(Gn|Ya))===Dn&&(Hu(),hi()))}function Bp(e,t){var n=gt;gt|=Ob;try{return e(t)}finally{gt=n,gt===Dn&&!or.isBatchingLegacy&&(Hu(),Hy())}}function Jw(e,t,n,a,r){var i=Xa(),o=qn.transition;try{return qn.transition=null,Hn(_a),e(t,n,a,r)}finally{Hn(i),qn.transition=o,gt===Dn&&Hu()}}function Xr(e){Ri!==null&&Ri.tag===mi&&(gt&(Gn|Ya))===Dn&&Qr();var t=gt;gt|=Ob;var n=qn.transition,a=Xa();try{return qn.transition=null,Hn(_a),e?e():void 0}finally{Hn(a),qn.transition=n,gt=t,(gt&(Gn|Ya))===Dn&&hi()}}function Bb(){return(gt&(Gn|Ya))!==Dn}function Yc(e,t){Jn(Ap,Sr,e),Sr=at(Sr,t)}function $p(e){Sr=Ap.current,Kn(Ap,e)}function oo(e,t){e.finishedWork=null,e.finishedLanes=$;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,Rx(n)),rn!==null)for(var a=rn.return;a!==null;){var r=a.alternate;hb(r,a),a=a.return}ca=e;var i=uo(e.current,null);return rn=i,_n=Sr=t,kn=qr,Nu=null,Hc=$,ju=$,zc=$,Uu=null,Ea=null,q1(),Ja.discardPendingWarnings(),i}function $b(e,t){do{var n=rn;try{if(ec(),dg(),An(),Lp.current=null,n===null||n.return===null){kn=Ou,Nu=t,rn=null;return}if(jt&&n.mode&Bt&&kc(n,!0),en)if(xo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;_T(n,a,_n)}else DT(n,t,_n);ER(e,n.return,n,t,_n),Wb(n)}catch(r){t=r,rn===n&&n!==null?(n=n.return,rn=n):n=rn;continue}return}while(!0)}function Pb(){var e=Mp.current;return Mp.current=xc,e===null?xc:e}function Yb(e){Mp.current=e}function Zw(){Np=Nn()}function Bu(e){Hc=at(e,Hc)}function eD(){kn===qr&&(kn=Uc)}function Pp(){(kn===qr||kn===Uc||kn===ro)&&(kn=Au),ca!==null&&(id(Hc)||id(ju))&&Di(ca,_n)}function tD(e){kn!==Au&&(kn=ro),Uu===null?Uu=[e]:Uu.push(e)}function nD(){return kn===qr}function Ic(e,t){var n=gt;gt|=Gn;var a=Pb();if(ca!==e||_n!==t){if(Ga){var r=e.memoizedUpdaters;r.size>0&&($u(e,_n),r.clear()),Eh(e,t)}Gr=Ch(),oo(e,t)}fh(t);do try{aD();break}catch(i){$b(e,i)}while(!0);if(ec(),gt=n,Yb(a),rn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return dh(),ca=null,_n=$,kn}function aD(){for(;rn!==null;)Ib(rn)}function rD(e,t){var n=gt;gt|=Gn;var a=Pb();if(ca!==e||_n!==t){if(Ga){var r=e.memoizedUpdaters;r.size>0&&($u(e,_n),r.clear()),Eh(e,t)}Gr=Ch(),Hu(),oo(e,t)}fh(t);do try{iD();break}catch(i){$b(e,i)}while(!0);return ec(),Yb(a),gt=n,rn!==null?(AT(),qr):(dh(),ca=null,_n=$,kn)}function iD(){for(;rn!==null&&!lT();)Ib(rn)}function Ib(e){var t=e.alternate;tn(e);var n;(e.mode&Bt)!==Ne?(Wv(e),n=Yp(t,e,Sr),kc(e,!0)):n=Yp(t,e,Sr),An(),e.memoizedProps=e.pendingProps,n===null?Wb(e):rn=n,Lp.current=null}function Wb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&is)===He){tn(t);var r=void 0;if((t.mode&Bt)===Ne?r=mb(n,t,Sr):(Wv(t),r=mb(n,t,Sr),kc(t,!1)),An(),r!==null){rn=r;return}}else{var i=ew(n,t);if(i!==null){i.flags&=tT,rn=i;return}if((t.mode&Bt)!==Ne){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{kn=Op,rn=null;return}}var u=t.sibling;if(u!==null){rn=u;return}t=a,rn=t}while(t!==null);kn===qr&&(kn=Ab)}function lo(e,t,n){var a=Xa(),r=qn.transition;try{qn.transition=null,Hn(_a),oD(e,t,n,a)}finally{qn.transition=r,Hn(a)}return null}function oD(e,t,n,a){do Qr();while(Ri!==null);if(yD(),(gt&(Gn|Ya))!==Dn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(ST(i),r===null)return uh(),null;if(i===$&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=$,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=Un;var o=at(r.lanes,r.childLanes);KT(e,o),e===ca&&(ca=null,rn=null,_n=$),((r.subtreeFlags&Eo)!==He||(r.flags&Eo)!==He)&&(io||(io=!0,Hp=n,qp(Vi,function(){return Qr(),null})));var l=(r.subtreeFlags&(Af|Nf|Rl|Eo))!==He,u=(r.flags&(Af|Nf|Rl|Eo))!==He;if(l||u){var c=qn.transition;qn.transition=null;var d=Xa();Hn(_a);var g=gt;gt|=Ya,Lp.current=null,iw(e,r),Hg(),bw(e,r,i),gx(e.containerInfo),e.current=r,kT(i),Sw(r,e,i),MT(),uT(),gt=g,Hn(d),qn.transition=c}else e.current=r,Hg();var y=io;if(io?(io=!1,Ri=e,zu=i):(rl=0,Bc=null),o=e.pendingLanes,o===$&&(al=null),y||Qb(e.current,!1),mT(r.stateNode,a),Ga&&e.memoizedUpdaters.clear(),Fw(),Ca(e,Nn()),t!==null)for(var D=e.onRecoverableError,k=0;k<t.length;k++){var A=t[k],ie=A.stack,Me=A.digest;D(A.value,{componentStack:ie,digest:Me})}if(Fc){Fc=!1;var _e=jp;throw jp=null,_e}return Da(zu,$e)&&e.tag!==mi&&Qr(),o=e.pendingLanes,Da(o,$e)?(fR(),e===zp?Fu++:(Fu=0,zp=e)):Fu=0,hi(),uh(),null}function Qr(){if(Ri!==null){var e=xh(zu),t=tE(Fr,e),n=qn.transition,a=Xa();try{return qn.transition=null,Hn(t),uD()}finally{Hn(a),qn.transition=n}}return!1}function lD(e){Up.push(e),io||(io=!0,qp(Vi,function(){return Qr(),null}))}function uD(){if(Ri===null)return!1;var e=Hp;Hp=null;var t=Ri,n=zu;if(Ri=null,zu=$,(gt&(Gn|Ya))!==Dn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Vc=!1,LT(n);var a=gt;gt|=Ya,Dw(t.current),Cw(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];sw(t,o)}}OT(),Qb(t.current,!0),gt=a,hi(),Vc?t===Bc?rl++:(rl=0,Bc=t):rl=0,Fp=!1,Vc=!1,hT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function qb(e){return al!==null&&al.has(e)}function sD(e){al===null?al=new Set([e]):al.add(e)}function cD(e){Fc||(Fc=!0,jp=e)}var fD=cD;function Gb(e,t,n){var a=no(n,t),r=Ig(e,a,$e),i=gi(e,r,$e),o=fa();i!==null&&(Al(i,$e,o),Ca(i,o))}function qt(e,t,n){if(nw(n),Pu(!1),e.tag===ce){Gb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===ce){Gb(a,e,n);return}else if(a.tag===re){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!qb(i)){var o=no(n,e),l=cp(a,o,$e),u=gi(a,l,$e),c=fa();u!==null&&(Al(u,$e,c),Ca(u,c));return}}a=a.return}f(`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 dD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=fa();Sh(e,n),TD(e),ca===e&&_o(_n,n)&&(kn===Au||kn===Uc&&hh(_n)&&Nn()-Np<Nb?oo(e,$):zc=at(zc,n)),Ca(e,r)}function Xb(e,t){t===Un&&(t=Ww(e));var n=fa(),a=Sa(e,t);a!==null&&(Al(a,t,n),Ca(a,n))}function vD(e){var t=e.memoizedState,n=Un;t!==null&&(n=t.retryLane),Xb(e,n)}function pD(e,t){var n=Un,a;switch(e.tag){case Ce:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Ot: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),Xb(e,n)}function mD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:$w(e/1960)*1960}function hD(){if(Fu>Yw)throw Fu=0,zp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");rl>Iw&&(rl=0,Bc=null,f("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 yD(){Ja.flushLegacyContextWarning(),Ja.flushPendingUnsafeLifecycleWarnings()}function Qb(e,t){tn(e),Wc(e,oi,Uw),t&&Wc(e,Of,Hw),Wc(e,oi,Nw),t&&Wc(e,Of,jw),An()}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 Kb(e){{if((gt&Gn)!==Dn||!(e.mode&yt))return;var t=e.tag;if(t!==Tt&&t!==ce&&t!==re&&t!==ge&&t!==Le&&t!==U&&t!==Z)return;var n=Ke(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=ia;try{tn(e),f("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?tn(e):An()}}}var Yp;{var gD=null;Yp=function(e,t,n){var a=i0(gD,t);try{return cb(e,t,n)}catch(i){if(M1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),dg(),hb(e,t),i0(t,a),t.mode&Bt&&Wv(t),wf(null,cb,null,e,t,n),JS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Jb=!1,Ip;Ip=new Set;function bD(e){if(Li&&!uR())switch(e.tag){case ge:case Le:case Z:{var t=rn&&Ke(rn)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Ke(e)||"Unknown";f("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 re:{Jb||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Jb=!0);break}}}function $u(e,t){if(Ga){var n=e.memoizedUpdaters;n.forEach(function(a){Th(e,a,t)})}}var Wp={};function qp(e,t){{var n=or.current;return n!==null?(n.push(t),Wp):lh(e,t)}}function Zb(e){if(e!==Wp)return oT(e)}function e0(){return or.current!==null}function SD(e){{if(e.mode&yt){if(!Lb())return}else if(!Bw()||gt!==Dn||e.tag!==ge&&e.tag!==Le&&e.tag!==Z)return;if(or.current===null){var t=ia;try{tn(e),f(`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`,Ke(e))}finally{t?tn(e):An()}}}}function TD(e){e.tag!==mi&&Lb()&&or.current===null&&f(`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 Pu(e){Hb=e}var Ia=null,il=null,ED=function(e){Ia=e};function ol(e){{if(Ia===null)return e;var t=Ia(e);return t===void 0?e:t.current}}function Gp(e){return ol(e)}function Xp(e){{if(Ia===null)return e;var t=Ia(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=ol(e.render);if(e.render!==n){var a={$$typeof:B,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function t0(e,t){{if(Ia===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 re:{typeof a=="function"&&(r=!0);break}case ge:{(typeof a=="function"||i===qe)&&(r=!0);break}case Le:{(i===B||i===qe)&&(r=!0);break}case U:case Z:{(i===lt||i===qe)&&(r=!0);break}default:return!1}if(r){var o=Ia(n);if(o!==void 0&&o===Ia(a))return!0}return!1}}function n0(e){{if(Ia===null||typeof WeakSet!="function")return;il===null&&(il=new WeakSet),il.add(e)}}var CD=function(e,t){{if(Ia===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Qr(),Xr(function(){Qp(e.current,a,n)})}},xD=function(e,t){{if(e.context!==La)return;Qr(),Xr(function(){Yu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ge:case Z:case re:u=l;break;case Le:u=l.render;break}if(Ia===null)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(u!==null){var g=Ia(u);g!==void 0&&(n.has(g)?d=!0:t.has(g)&&(o===re?d=!0:c=!0))}if(il!==null&&(il.has(e)||a!==null&&il.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var y=Sa(e,$e);y!==null&&Mn(y,e,$e,Jt)}r!==null&&!d&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var RD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ge:case Z:case re:l=o;break;case Le:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?wD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function wD(e,t){{var n=DD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case te:t.add(a.stateNode);return;case je:t.add(a.stateNode.containerInfo);return;case ce:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function DD(e,t){for(var n=e,a=!1;;){if(n.tag===te)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 Jp;{Jp=!1;try{var a0=Object.preventExtensions({})}catch{Jp=!0}}function _D(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=$,this.childLanes=$,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,!Jp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Oa=function(e,t,n,a){return new _D(e,t,n,a)};function Zp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function kD(e){return typeof e=="function"&&!Zp(e)&&e.defaultProps===void 0}function MD(e){if(typeof e=="function")return Zp(e)?re:ge;if(e!=null){var t=e.$$typeof;if(t===B)return Le;if(t===lt)return U}return Tt}function uo(e,t){var n=e.alternate;n===null?(n=Oa(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&Ur,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 Tt:case ge:case Z:n.type=ol(e.type);break;case re:n.type=Gp(e.type);break;case Le:n.type=Xp(e.type);break}return n}function LD(e,t){e.flags&=Ur|Sn;var n=e.alternate;if(n===null)e.childLanes=$,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 OD(e,t,n){var a;return e===Ys?(a=yt,t===!0&&(a|=un,a|=cr)):a=Ne,Ga&&(a|=Bt),Oa(ce,null,null,a)}function em(e,t,n,a,r,i){var o=Tt,l=e;if(typeof e=="function")Zp(e)?(o=re,l=Gp(l)):l=ol(l);else if(typeof e=="string")o=te;else e:switch(e){case ja:return _i(n.children,r,i,t);case Ua:o=I,r|=un,(r&yt)!==Ne&&(r|=cr);break;case Cr:return AD(n,r,i,t);case ne:return ND(n,r,i,t);case fe:return jD(n,r,i,t);case E:return r0(n,r,i,t);case b:case v:case S:case L:case w:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xr:o=ot;break e;case h:o=xt;break e;case B:o=Le,l=Xp(l);break e;case lt:o=U;break e;case qe:o=zt,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 c=a?Ke(a):null;c&&(u+=`
|
|
|
|
Check the render method of \``+c+"`.")}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=Oa(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function _i(e,t,n,a){var r=Oa(Qe,e,a,t);return r.lanes=n,r}function AD(e,t,n,a){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Oa(rt,e,a,t|Bt);return r.elementType=Cr,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function ND(e,t,n,a){var r=Oa(Ce,e,a,t);return r.elementType=ne,r.lanes=n,r}function jD(e,t,n,a){var r=Oa(Ot,e,a,t);return r.elementType=fe,r.lanes=n,r}function r0(e,t,n,a){var r=Oa(X,e,a,t);r.elementType=E,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Oa(Be,e,null,t);return a.lanes=n,a}function UD(){var e=Oa(te,null,null,Ne);return e.elementType="DELETED",e}function HD(e){var t=Oa(st,null,null,Ne);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Oa(je,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function i0(e,t){return e===null&&(e=Oa(Tt,null,null,Ne)),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 zD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Un,this.eventTimes=ld($),this.expirationTimes=ld(Jt),this.pendingLanes=$,this.suspendedLanes=$,this.pingedLanes=$,this.expiredLanes=$,this.mutableReadLanes=$,this.finishedLanes=$,this.entangledLanes=$,this.entanglements=ld($),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<zf;o++)i.push(new Set)}switch(t){case Ys:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case mi:this._debugRootType=n?"hydrate()":"render()";break}}function o0(e,t,n,a,r,i,o,l,u,c){var d=new zD(e,t,n,l,u),g=OD(t,i);d.current=g,g.stateNode=d;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=y}return hv(g),d}var rm="18.3.1";function FD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return z(a),{$$typeof:En,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function l0(e){if(!e)return La;var t=bo(e),n=T1(t);if(t.tag===re){var a=t.type;if(vr(a))return Ny(t,a,n)}return n}function VD(e,t){{var n=bo(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=rh(n);if(r===null)return null;if(r.mode&un){var i=Ke(n)||"Component";if(!om[i]){om[i]=!0;var o=ia;try{tn(r),n.mode&un?f("%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):f("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?tn(o):An()}}}return r.stateNode}}function u0(e,t,n,a,r,i,o,l){var u=!1,c=null;return o0(e,t,u,c,n,a,r,i,o)}function s0(e,t,n,a,r,i,o,l,u,c){var d=!0,g=o0(n,a,d,e,r,i,o,l,u);g.context=l0(null);var y=g.current,D=fa(),k=wi(y),A=Ir(D,k);return A.callback=t??null,gi(y,A,k),qw(g,k,D),g}function Yu(e,t,n,a){pT(t,e);var r=t.current,i=fa(),o=wi(r);NT(o);var l=l0(n);t.context===null?t.context=l:t.pendingContext=l,Li&&ia!==null&&!im&&(im=!0,f(`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.`,Ke(ia)||"Unknown"));var u=Ir(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var c=gi(r,u,o);return c!==null&&(Mn(c,r,o,i),ic(c,r,o)),o}function Gc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case te:return t.child.stateNode;default:return t.child.stateNode}}function BD(e){switch(e.tag){case ce:{var t=e.stateNode;if(ps(t)){var n=PT(t);Kw(t,n)}break}case Ce:{Xr(function(){var r=Sa(e,$e);if(r!==null){var i=fa();Mn(r,e,$e,i)}});var a=$e;lm(e,a);break}}}function c0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=XT(n.retryLane,t))}function lm(e,t){c0(e,t);var n=e.alternate;n&&c0(n,t)}function $D(e){if(e.tag===Ce){var t=kl,n=Sa(e,t);if(n!==null){var a=fa();Mn(n,e,t,a)}lm(e,t)}}function PD(e){if(e.tag===Ce){var t=wi(e),n=Sa(e,t);if(n!==null){var a=fa();Mn(n,e,t,a)}lm(e,t)}}function f0(e){var t=iT(e);return t===null?null:t.stateNode}var d0=function(e){return null};function YD(e){return d0(e)}var v0=function(e){return!1};function ID(e){return v0(e)}var p0=null,m0=null,h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null;{var C0=function(e,t,n){var a=t[n],r=vt(e)?e.slice():F({},e);return n+1===t.length?(vt(r)?r.splice(a,1):delete r[a],r):(r[a]=C0(e[a],t,n+1),r)},x0=function(e,t){return C0(e,t,0)},R0=function(e,t,n,a){var r=t[a],i=vt(e)?e.slice():F({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],vt(i)?i.splice(r,1):delete i[r]}else i[r]=R0(e[r],t,n,a+1);return i},w0=function(e,t,n){if(t.length!==n.length){ve("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){ve("copyWithRename() expects paths to be the same except for the deepest key");return}return R0(e,t,n,0)},D0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=vt(e)?e.slice():F({},e);return i[r]=D0(e[r],t,n+1,a),i},_0=function(e,t,n){return D0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};p0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=F({},e.memoizedProps);var o=Sa(e,$e);o!==null&&Mn(o,e,$e,Jt)}},m0=function(e,t,n){var a=um(e,t);if(a!==null){var r=x0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=F({},e.memoizedProps);var i=Sa(e,$e);i!==null&&Mn(i,e,$e,Jt)}},h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=w0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=F({},e.memoizedProps);var o=Sa(e,$e);o!==null&&Mn(o,e,$e,Jt)}},y0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Sa(e,$e);a!==null&&Mn(a,e,$e,Jt)},g0=function(e,t){e.pendingProps=x0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Sa(e,$e);n!==null&&Mn(n,e,$e,Jt)},b0=function(e,t,n){e.pendingProps=w0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Sa(e,$e);a!==null&&Mn(a,e,$e,Jt)},S0=function(e){var t=Sa(e,$e);t!==null&&Mn(t,e,$e,Jt)},T0=function(e){d0=e},E0=function(e){v0=e}}function WD(e){var t=rh(e);return t===null?null:t.stateNode}function qD(e){return null}function GD(){return ia}function XD(e){var t=e.findFiberByHostInstance,n=be.ReactCurrentDispatcher;return vT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:p0,overrideHookStateDeletePath:m0,overrideHookStateRenamePath:h0,overrideProps:y0,overridePropsDeletePath:g0,overridePropsRenamePath:b0,setErrorHandler:T0,setSuspenseHandler:E0,scheduleUpdate:S0,currentDispatcherRef:n,findHostInstanceByFiber:WD,findFiberByHostInstance:t||qD,findHostInstancesForRefresh:RD,scheduleRefresh:CD,scheduleRoot:xD,setRefreshHandler:ED,getCurrentFiber:GD,reconcilerVersion:rm})}var k0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Xc.prototype.render=sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?f("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])?f("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"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==bn){var a=f0(t.current);a&&a.parentNode!==n&&f("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.")}}Yu(e,t,null,null)},Xc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&f("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;Bb()&&f("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."),Xr(function(){Yu(null,e,null,null)}),ky(t)}};function QD(e,t){if(!Qc(e))throw new Error("createRoot(...): Target container is not a DOM element.");M0(e);var n=!1,a=!1,r="",i=k0;t!=null&&(t.hydrate?ve("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===fn&&f(`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=u0(e,Ys,null,n,a,r,i);Hs(o.current,e);var l=e.nodeType===bn?e.parentNode:e;return Ql(l),new sm(o)}function Xc(e){this._internalRoot=e}function KD(e){e&&dE(e)}Xc.prototype.unstable_scheduleHydration=KD;function JD(e,t,n){if(!Qc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");M0(e),t===void 0&&f("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=k0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var c=s0(t,null,e,Ys,a,i,o,l,u);if(Hs(c.current,e),Ql(e),r)for(var d=0;d<r.length;d++){var g=r[d];nR(c,g)}return new Xc(c)}function Qc(e){return!!(e&&(e.nodeType===ga||e.nodeType===Ar||e.nodeType===mf))}function Iu(e){return!!(e&&(e.nodeType===ga||e.nodeType===Ar||e.nodeType===mf||e.nodeType===bn&&e.nodeValue===" react-mount-point-unstable "))}function M0(e){e.nodeType===ga&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("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."),lu(e)&&(e._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("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 ZD=be.ReactCurrentOwner,L0;L0=function(e){if(e._reactRootContainer&&e.nodeType!==bn){var t=f0(e._reactRootContainer.current);t&&t.parentNode!==e&&f("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=cm(e),r=!!(a&&vi(a));r&&!n&&f("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===ga&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===Ar?e.documentElement:e.firstChild:null}function O0(){}function e_(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=s0(t,a,e,mi,null,!1,!1,"",O0);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===bn?e.parentNode:e;return Ql(l),Xr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var c=a;a=function(){var y=Gc(d);c.call(y)}}var d=u0(e,mi,null,!1,!1,"",O0);e._reactRootContainer=d,Hs(d.current,e);var g=e.nodeType===bn?e.parentNode:e;return Ql(g),Xr(function(){Yu(t,d,n,a)}),d}}function t_(e,t){e!==null&&typeof e!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Kc(e,t,n,a,r){L0(n),t_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=e_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=Gc(o);l.call(u)}}Yu(t,o,e,r)}return Gc(o)}var A0=!1;function n_(e){{A0||(A0=!0,f("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=ZD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||f("%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.",kt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ga?e:VD(e,"findDOMNode")}function a_(e,t,n){if(f("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"),!Iu(t))throw new Error("Target container is not a DOM element.");{var a=lu(t)&&t._reactRootContainer===void 0;a&&f("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 r_(e,t,n){if(f("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"),!Iu(t))throw new Error("Target container is not a DOM element.");{var a=lu(t)&&t._reactRootContainer===void 0;a&&f("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 i_(e,t,n,a){if(f("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"),!Iu(n))throw new Error("Target container is not a DOM element.");if(e==null||!ZS(e))throw new Error("parentComponent must be a valid React Component");return Kc(e,t,n,!1,a)}var N0=!1;function o_(e){if(N0||(N0=!0,f("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")),!Iu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=lu(e)&&e._reactRootContainer===void 0;t&&f("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=cm(e),a=n&&!vi(n);a&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Xr(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&vi(r)),o=e.nodeType===ga&&Iu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&f("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}}nE(BD),rE($D),iE(PD),oE(Xa),lE(ZT),(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")&&f("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"),$S(ux),IS(Bp,Jw,Xr);function l_(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 FD(e,t,null,n)}function u_(e,t,n,a){return i_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[vi,Ho,zs,Im,Wm,Bp]};function s_(e,t){return fm.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),QD(e,t)}function c_(e,t,n){return fm.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JD(e,t,n)}function f_(e){return Bb()&&f("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."),Xr(e)}var d_=XD({findFiberByHostInstance:qi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!d_&&St&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var j0=window.location.protocol;/^(https?|file):$/.test(j0)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(j0==="file:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}pa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,pa.createPortal=l_,pa.createRoot=s_,pa.findDOMNode=n_,pa.flushSync=f_,pa.hydrate=a_,pa.hydrateRoot=c_,pa.render=r_,pa.unmountComponentAtNode=o_,pa.unstable_batchedUpdates=Bp,pa.unstable_renderSubtreeIntoContainer=u_,pa.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),pa}hm.exports=V0();var B0=hm.exports,Sm,Tm=B0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(M,R){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(M,R)}finally{Em.usingClientEntryPoint=!1}}}const P=M=>{if(isNaN(M))return"00:00:00.000";const R=Math.floor(M/3600),be=Math.floor(M%3600/60),Re=Math.floor(M%60),we=Math.round(M%1*1e3),ve=String(R).padStart(2,"0"),f=String(be).padStart(2,"0"),W=String(Re).padStart(2,"0"),ge=String(we).padStart(3,"0");return`${ve}:${f}:${W}.${ge}`},ki=M=>P(M),$0=M=>P(M),me={debug:(...M)=>{},error:(...M)=>console.error(...M),warn:(...M)=>console.warn(...M),info:(...M)=>console.info(...M)};var Q=Zc();const P0=({videoRef:M,currentTime:R,duration:be,isPlaying:Re,isMuted:we=!1,onPlayPause:ve,onSeek:f,onToggleMute:W})=>{var oe;const ge=Q.useRef(null),[re,Tt]=Q.useState(!1),[ce,je]=Q.useState(!1),[te,Be]=Q.useState(null),[Qe,I]=Q.useState(!1),xt=Q.useRef(!1),[ot,Le]=Q.useState({x:0}),[rt,Ce]=Q.useState(0),U=typeof window<"u"&&((oe=window.MEDIA_DATA)==null?void 0:oe.videoUrl)||"/videos/sample-video.mp4";Q.useEffect(()=>{if(Tt((()=>{const q=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(q)&&!window.MSStream})()),typeof window<"u"){const q=localStorage.getItem("video_initialized")==="true";je(q)}},[]),Q.useEffect(()=>{Re&&!ce&&(je(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Re,ce]),Q.useEffect(()=>{const Se=M.current;if(!Se)return;Se.setAttribute("playsinline","true"),Se.setAttribute("webkit-playsinline","true"),Se.setAttribute("x-webkit-airplay","allow");const q=()=>{xt.current||(Be(Se.currentTime),typeof window<"u"&&(window.lastSeekedPosition=Se.currentTime))},G=()=>{re&&(je(!0),localStorage.setItem("video_initialized","true"))},he=()=>{};return Se.addEventListener("timeupdate",q),Se.addEventListener("play",G),Se.addEventListener("pause",he),()=>{Se.removeEventListener("timeupdate",q),Se.removeEventListener("play",G),Se.removeEventListener("pause",he)}},[M,re,xt]),Q.useEffect(()=>{Be(R)},[R]);const Z=be>0?R/be*100:0,zt=Se=>{Se.preventDefault(),I(!0),xt.current=!0,Et(Se);const q=he=>{xt.current&&Et(he)},G=()=>{I(!1),xt.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",G)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",G)},Et=Se=>{if(!ge.current)return;const q=ge.current.getBoundingClientRect(),G=Math.max(0,Math.min(1,(Se.clientX-q.left)/q.width)),he=be*G;Le({x:Se.clientX}),Ce(he),Be(he),typeof window<"u"&&(window.lastSeekedPosition=he),f(he)},st=Se=>{if(!ge.current||!Se.touches[0])return;Se.preventDefault(),I(!0),xt.current=!0,Ot(Se);const q=he=>{xt.current&&Ot(he)},G=()=>{I(!1),xt.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",G),document.removeEventListener("touchcancel",G)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",G),document.addEventListener("touchcancel",G)},Ot=Se=>{if(!ge.current)return;const q="touches"in Se?Se.touches[0]:null;if(!q)return;Se.preventDefault();const G=ge.current.getBoundingClientRect(),he=Math.max(0,Math.min(1,(q.clientX-G.left)/G.width)),mt=be*he;Le({x:q.clientX}),Ce(mt),Be(mt),typeof window<"u"&&(window.lastSeekedPosition=mt),f(mt)},ke=Se=>{if(!Qe&&ge.current){const q=ge.current.getBoundingClientRect(),G=(Se.clientX-q.left)/q.width,he=be*G;Be(he),typeof window<"u"&&(window.lastSeekedPosition=he),f(he)}},X=()=>{M.current&&(document.fullscreenElement?document.exitFullscreen():M.current.requestFullscreen())},tt=()=>{const Se=M.current;Se&&(Se.paused?re&&te!==null&&te>0?(Se.currentTime=te,setTimeout(()=>{M.current&&M.current.play().then(()=>{var q;me.debug("iOS: Play started successfully at position:",(q=M.current)==null?void 0:q.currentTime),ve()}).catch(q=>{console.error("iOS: Error playing video:",q)})},50)):Se.play().then(()=>{ve()}).catch(q=>{console.error("Error playing video:",q)}):(Se.pause(),ve()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:M,preload:"auto",crossOrigin:"anonymous",onClick:tt,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:we,children:[p.jsx("source",{src:U,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),re&&!ce&&!Re&&p.jsx("div",{className:"ios-first-play-indicator",children:p.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),p.jsx("div",{className:`play-pause-indicator ${Re?"pause-icon":"play-icon"}`}),p.jsxs("div",{className:"video-controls",children:[p.jsxs("div",{className:"video-time-display",children:[p.jsx("span",{className:"video-current-time",children:ki(R)}),p.jsxs("span",{className:"video-duration",children:["/ ",ki(be)]})]}),p.jsxs("div",{ref:ge,className:`video-progress ${Qe?"dragging":""}`,onClick:ke,onMouseDown:zt,onTouchStart:st,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${Z}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${Z}%`}}),Qe&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${ot.x}px`,transform:"translateX(-50%)"},children:P(rt)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[W&&p.jsx("button",{className:"mute-button","aria-label":we?"Unmute":"Mute",onClick:W,"data-tooltip":we?"Unmute":"Mute",children:we?p.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:[p.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),p.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),p.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),p.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),p.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):p.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:[p.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),p.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),p.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:X,"data-tooltip":"Toggle fullscreen",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})})})]})]})]})},nf=(M,R)=>{const be=Math.min(Math.max(M/(R||1),0),1),Re=210,we=40+Math.floor(be*20),ve=85+Math.floor(be*8);return`hsl(${Re}, ${we}%, ${ve}%)`},af=async(M,R)=>new Promise(be=>{const Re=document.createElement("canvas");Re.width=10,Re.height=10;const we=Re.getContext("2d");if(we){const f=nf(R,M.duration);we.fillStyle=f,we.fillRect(0,0,Re.width,Re.height)}const ve=Re.toDataURL("image/png",.5);be(ve)}),qu=({isOpen:M,onClose:R,title:be,children:Re,actions:we})=>{if(Q.useEffect(()=>{const f=W=>{W.key==="Escape"&&M&&R()};return document.addEventListener("keydown",f),M&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f),document.body.style.overflow=""}},[M,R]),!M)return null;const ve=f=>{f.target===f.currentTarget&&R()};return p.jsx("div",{className:"modal-overlay",onClick:ve,children:p.jsxs("div",{className:"modal-container",onClick:f=>f.stopPropagation(),children:[p.jsxs("div",{className:"modal-header",children:[p.jsx("h2",{className:"modal-title",children:be}),p.jsx("button",{className:"modal-close-button",onClick:R,"aria-label":"Close modal",children:p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"modal-content",children:Re}),we&&p.jsx("div",{className:"modal-actions",children:we})]})})},Y0=async(M,R)=>{try{const be=await fetch(`/api/v1/media/${M}/chapters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(R)});if(me.debug("response",be),!be.ok){if(be.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const we=await be.json();return{success:!1,timestamp:new Date().toISOString(),error:we.error||"Auto-save failed"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed"}}}const Re=await be.json();return Re.status==="success"?{success:!0,timestamp:Re.updated_at||new Date().toISOString(),...Re}:{success:!1,timestamp:new Date().toISOString(),error:Re.error||"Auto-save failed"}}catch{return{success:!0,timestamp:new Date().toISOString()}}},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%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",xm="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",Rm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.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",I0="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",W0="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",q0="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",G0="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",X0={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},wm=M=>{let ve,f;if(M<=25)if(M<=0)ve="0%",f="none";else{const ge=-50*((M-0)/25);ve=`${M}%`,f=`translateX(${ge}%)`}else if(M>=75)if(M>=100)ve="100%",f="translateX(-100%)";else{const ge=-50-50*((M-75)/25);ve=`${M}%`,f=`translateX(${ge}%)`}else ve=`${M}%`,f="translateX(-50%)";return{left:ve,transform:f}},Q0=({currentTime:M,duration:R,thumbnails:be,trimStart:Re,trimEnd:we,splitPoints:ve,zoomLevel:f,clipSegments:W,selectedSegmentId:ge,onSelectedSegmentChange:re,onSegmentUpdate:Tt,onChapterSave:ce,onTrimStartChange:je,onTrimEndChange:te,onZoomChange:Be,onSeek:Qe,videoRef:I,hasUnsavedChanges:xt=!1,isIOSUninitialized:ot=!1,isPlaying:Le,setIsPlaying:rt,onPlayPause:Ce,isPlayingSegments:U=!1})=>{const Z=Q.useRef(null),zt=Q.useRef(null),Et=Q.useRef(null),[st,Ot]=Q.useState(null),ke=ge!==void 0?ge:st,X=v=>{re?re(v):Ot(v)},[tt,oe]=Q.useState(!1),[Se,q]=Q.useState({x:0,y:0}),[G,he]=Q.useState(0),[mt,At]=Q.useState(!1),[ct,en]=Q.useState(30),[jt,Ye]=Q.useState(!1),[ze,Ve]=Q.useState(null),[vn,Ze]=Q.useState(0),[Gt,St]=Q.useState(!1),it=Q.useRef(null),[an,on]=Q.useState(""),[ln,cn]=Q.useState(!1),ue=[...W].sort((v,w)=>v.startTime-w.startTime).find(v=>v.id===ke),[De,Te]=Q.useState(""),[Oe,et]=Q.useState(!1),Je=Q.useRef(null),Ie=Q.useRef(W);Q.useEffect(()=>{Ie.current=W},[W]);const We=Q.useCallback(async()=>{var v;try{et(!0);const w=Ie.current.map(L=>({startTime:P(L.startTime),endTime:P(L.endTime),name:L.name,chapterTitle:L.chapterTitle,text:L.chapterTitle}));me.debug("segments",w);const b=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null||"1234";if(me.debug("mediaId",b),!b||w.length===0){me.debug("No mediaId or segments, skipping auto-save"),et(!1);return}me.debug("Auto-saving segments:",{mediaId:b,segments:w});const S=await Y0(b,{segments:w});if(S.success){me.debug("Auto-save successful");const T=new Date(S.timestamp).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");Te(T),me.debug("Auto-save successful:",T)}else me.error("Auto-save failed:",S.error)}catch(w){me.error("Auto-save error:",w)}finally{et(!1)}},[]),ft=Q.useCallback(()=>{Je.current&&clearTimeout(Je.current);const v=setTimeout(()=>{We()},1e3);Je.current=v},[We]);Q.useEffect(()=>{on(ue&&ue.chapterTitle||"")},[ke,ue]);const pn=v=>{on(v),cn(!0),ke&&Tt&&Tt(ke,{chapterTitle:v})},Ln=v=>{const w=v;let E=null,b=null,S=G;const L=()=>{const T=w<0?Math.max(0,S+w):Math.min(R,S+w);S=T;const V=jt;if(Qe(T),he(T),Ze(T),Z.current){const j=Z.current.getBoundingClientRect(),F=T/R*100,ut=j.left+j.width*(F/100);q({x:ut,y:j.top-10});const ee=W.find(dt=>T>=dt.startTime&&T<=dt.endTime);if(ee)X(ee.id),oe(!1);else{X(null);const dt=fn(T);en(dt),oe(!0)}}V&&I.current&&(I.current.play(),Ye(!0))};return{onMouseDown:T=>{T.stopPropagation(),T.preventDefault(),S=G,L(),E=setTimeout(()=>{b=setInterval(L,200)},750);const V=()=>{E&&(clearTimeout(E),E=null),b&&(clearInterval(b),b=null),document.removeEventListener("mouseup",V),document.removeEventListener("mouseleave",V)};document.addEventListener("mouseup",V),document.addEventListener("mouseleave",V)},onTouchStart:T=>{T.stopPropagation(),T.preventDefault(),S=G,L(),E=setTimeout(()=>{b=setInterval(L,200)},750);const V=()=>{E&&(clearTimeout(E),E=null),b&&(clearInterval(b),b=null),document.removeEventListener("touchend",V),document.removeEventListener("touchcancel",V)};document.addEventListener("touchend",V),document.addEventListener("touchcancel",V)},onClick:T=>{T.stopPropagation()}}},[mn,K]=Q.useState(!1),[ye,Ae]=Q.useState(!1),[nt,Ut]=Q.useState(!1),[Wt,Ht]=Q.useState(!1),[zn,Xt]=Q.useState(""),[It,Ft]=Q.useState(""),[Fn,xa]=Q.useState(""),[ma,lr]=Q.useState("chapters"),Na=R>0?M/R*100:0,Jr=R>0?Re/R*100:0,Er=R>0?we/R*100:0,Zr=async()=>{var v;K(!1),Ae(!0),lr("chapters");try{const w=W.filter(E=>E.chapterTitle&&E.chapterTitle.trim()).map(E=>({name:E.chapterTitle||`Chapter ${E.id}`,from:P(E.startTime),to:P(E.endTime)}));if(w.length===0){Ft("No chapters with titles found"),Ht(!0),Ae(!1);return}if(ce){await ce(w),Ae(!1),Xt("Chapters saved successfully!");const E=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null;E&&xa(`/view?m=${E}`),Ut(!0)}else Ft("Chapter save function not available"),Ht(!0),Ae(!1)}catch(w){me.error("Error saving chapters:",w),Ae(!1);const E=w instanceof Error?w.message:"An error occurred while saving chapters";Ft(E),Ht(!0)}};Q.useEffect(()=>{if(it.current&&Z.current&&f>1){const v=it.current.clientWidth,w=Z.current.clientWidth,E=M/R*w,b=Math.max(0,E-v/2);it.current.scrollTo({left:b,behavior:"smooth"});const S=Z.current.getBoundingClientRect();it.current.getBoundingClientRect();const T=S.left-it.current.scrollLeft+Na/100*S.width;(ke!==null||tt)&&(q({x:T,y:S.top-10}),he(M))}},[M,f,R,ke,tt,Na]),Q.useEffect(()=>{const v=I.current;if(!v||!ze||!jt||U)return;me.debug("Segment boundary check ACTIVATED for segment:",ze.id,"Start:",P(ze.startTime),"End:",P(ze.endTime));const w=()=>{const E=ze.endTime-v.currentTime;if(Math.round(E*10)%10===0&&me.debug("Segment playback - time remaining:",P(E),"Current:",P(v.currentTime),"End:",P(ze.endTime),"ContinuePastBoundary:",Gt),v.currentTime>ze.endTime){v.pause(),v.currentTime=ze.endTime,Ye(!1),St(!1),me.debug("Passed segment end - setting back to exact boundary:",P(ze.endTime));return}if(ze.endTime-v.currentTime<.05)if(Gt)me.debug("Continuing past segment boundary:",P(ze.endTime)),v.currentTime>ze.endTime&&(St(!1),Ve(null),sessionStorage.removeItem("continuingPastSegment"));else{v.pause(),v.currentTime=ze.endTime,Ye(!1),me.debug("Paused at segment end boundary:",P(ze.endTime));const S=[...W].sort((L,T)=>L.startTime-T.startTime).find(L=>L.startTime>ze.endTime);S&&Math.abs(S.startTime-ze.endTime)<.1&&(me.debug("Found adjacent next segment:",S.id),X(S.id),Ve(S),Ze(S.startTime),he(S.startTime),v.currentTime=S.startTime)}};return v.addEventListener("timeupdate",w),()=>{v.removeEventListener("timeupdate",w)}},[ze,jt,Gt,W]),Q.useEffect(()=>{if(I.current)if(I.current.paused)I.current.paused&&jt&&(Ze(M),he(M),Ye(!1),me.debug("Video paused at:",P(M)));else{Ze(M),he(M),ke!==null&&Ye(!0);const v=W.find(b=>M>=b.startTime&&M<=b.endTime),w=M/R*100;if(Z.current){const b=Z.current.offsetWidth,S=w/100*b;q({x:S,y:Z.current.getBoundingClientRect().top-10})}const E=sessionStorage.getItem("continuingPastSegment")==="true";if(v){const b=I.current,S=ze&&ze.id<0&&jt;if((ze==null?void 0:ze.id)!==v.id&&!S&&!E&&!Gt&&(me.debug(`Entered a new segment during playback: ${v.id}, setting as active`),Ve(v),X(v.id),oe(!1),St(!1),sessionStorage.removeItem("continuingPastSegment")),S&&b&&v){me.debug(`CUTAWAY BOUNDARY REACHED: Current position ${P(b.currentTime)} at segment ${v.id} - STOPPING at boundary ${P(v.startTime)}`),b.pause(),setTimeout(()=>{if(I.current){I.current.currentTime=v.startTime,Qe(v.startTime),Ze(v.startTime),he(v.startTime),St(!1),X(v.id),oe(!1);const T=()=>{I.current&&(I.current.currentTime=v.startTime,Qe(v.startTime),Ze(v.startTime),he(v.startTime),me.debug(`Position corrected to exact segment boundary: ${P(I.current.currentTime)} (target: ${P(v.startTime)})`))};setTimeout(T,10),setTimeout(T,20),setTimeout(T,50),setTimeout(T,100),setTimeout(T,200),I.current.addEventListener("seeked",T),I.current.addEventListener("canplay",T),I.current.addEventListener("waiting",T),setTimeout(()=>{I.current&&(I.current.removeEventListener("seeked",T),I.current.removeEventListener("canplay",T),I.current.removeEventListener("waiting",T))},300)}},10),Ye(!1),Ve(null);return}ze===null&&jt===!0||E||S?(ke!==v.id||tt)&&(me.debug("Tooltip updated for segment during continued playback:",v.id,S?"(cutaway playback - keeping virtual segment)":""),X(v.id),oe(!1),!S&&sessionStorage.getItem("lastSegmentId")!==v.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((ze==null?void 0:ze.id)!==v.id||tt)&&(me.debug("Playback moved into segment:",v.id),X(v.id),Ve(v),oe(!1),sessionStorage.setItem("lastSegmentId",v.id.toString()))}else if(ze!==null||!tt){X(null),Ve(null);const b=fn(M);en(b),b>=.5?oe(!0):oe(!1)}}},[M,jt,ze,ke,W]),Q.useEffect(()=>{const v=w=>{const E=w.target;mt&&!E.closest(".zoom-dropdown-container")&&At(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[mt]),Q.useEffect(()=>{const v=b=>{const{recordHistory:S,fromAutoSave:L}=b.detail;S&&!L&&ft()},w=()=>{ft()},E=b=>{const{recordHistory:S}=b.detail;S&&ft()};return document.addEventListener("update-segments",v),document.addEventListener("segment-drag-end",w),document.addEventListener("update-trim",E),document.addEventListener("delete-segment",ft),document.addEventListener("split-segment",ft),()=>{document.removeEventListener("update-segments",v),document.removeEventListener("segment-drag-end",w),document.removeEventListener("update-trim",E),document.removeEventListener("delete-segment",ft),document.removeEventListener("split-segment",ft),Je.current&&(me.debug("Clearing auto-save timer in cleanup:",Je.current),clearTimeout(Je.current))}},[ft]),Q.useEffect(()=>{W.length>0&&!De&&setTimeout(()=>{We()},500)},[De,We]),Q.useEffect(()=>{const v=()=>{var b;let E=typeof window<"u"&&((b=window.MEDIA_DATA)==null?void 0:b.chapters)||null;E||(E={segments:[{startTime:"00:00:00.000",endTime:"00:00:10.000",chapterTitle:"Chapter 1 (from saved data)"},{startTime:"00:00:12.000",endTime:"00:00:17.000",chapterTitle:"Chapter 2 (from saved data)"},{startTime:"00:00:20.000",endTime:"00:00:30.000",chapterTitle:"Chapter 3 (from saved data)"}],updated_at:"2025-06-24 14:59:14"});try{if(E&&E.segments&&E.segments.length>0){me.debug("Found saved segments:",E);const S=E.segments.map((T,V)=>({id:Date.now()+V,name:T.name||`Segment ${V+1}`,startTime:w(T.startTime),endTime:w(T.endTime),thumbnail:"",chapterTitle:T.chapterTitle||""})),L=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(L),E.updated_at){const V=new Date(E.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(",","");Te(V)}}else me.debug("No saved segments found")}catch(S){console.error("Error loading saved segments:",S)}},w=E=>{const b=E.split(":");if(b.length!==3)return 0;const S=parseInt(b[0])||0,L=parseInt(b[1])||0,T=b[2].split("."),V=parseInt(T[0])||0,j=parseInt(T[1])||0;return S*3600+L*60+V+j/1e3};setTimeout(v,100)},[]),Q.useEffect(()=>()=>{},[ke,tt,jt]),Q.useEffect(()=>{const v=zt.current,w=Et.current,E=Z.current;if(!v||!w||!E)return;const b=S=>L=>{L.preventDefault();const T=E.getBoundingClientRect();let V=!0,j=S?Re:we;const F=dt=>new CustomEvent("trim-handle-event",{detail:{type:dt,isStart:S}});document.dispatchEvent(F("drag-start"));const ut=dt=>{if(!V)return;const Rt=T.width,hn=Math.max(0,Math.min(1,(dt.clientX-T.left)/Rt))*R;typeof window<"u"&&(window.lastSeekedPosition=hn),S?hn<we&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:hn,isStart:!0,recordHistory:!1}})),j=hn):hn>Re&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:hn,isStart:!1,recordHistory:!1}})),j=hn)},ee=()=>{V=!1,document.removeEventListener("mousemove",ut),document.removeEventListener("mouseup",ee),S?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:j,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:j,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(F("drag-end"))};document.addEventListener("mousemove",ut),document.addEventListener("mouseup",ee)};return v.addEventListener("mousedown",b(!0)),w.addEventListener("mousedown",b(!1)),()=>{v.removeEventListener("mousedown",b(!0)),w.removeEventListener("mousedown",b(!1))}},[R,Re,we,je,te]);const ei=()=>{const v=be.length||10;return Array.from({length:v}).map((w,E)=>{const b=R/v,S=E*b,L=S+b,T=(S+L)/2,V=nf(T,R);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/v}%`,backgroundColor:V}},E)})},Ra=()=>ve.map((v,w)=>{const E=v/R*100;return p.jsx("div",{className:"split-point",style:{left:`${E}%`}},w)}),fn=v=>{const E=[...W].sort((T,V)=>T.startTime-V.startTime),b=E.find(T=>T.startTime>v),S=[...E].reverse().find(T=>T.endTime<v);let L;return b?L=b.startTime-v:L=R-v,me.debug("Space calculation:",{position:P(v),nextSegment:b?P(b.startTime):"none",prevSegment:S?P(S.endTime):"none",availableSpace:P(Math.max(.1,L))}),Math.max(.1,L)},En=v=>{if(!Z.current)return;const w=W.find(j=>{const F=v>=j.startTime&&v<=j.endTime,ut=Math.abs(v-j.startTime)<.001,ee=Math.abs(v-j.endTime)<.001;return F||ut||ee}),E=[...W].sort((j,F)=>j.startTime-F.startTime),b=E.find(j=>j.startTime>v),S=[...E].reverse().find(j=>j.endTime<v);if(w)X(w.id),oe(!1);else{const j=fn(v);en(j),X(null),oe(!0),me.debug("Cutaway position:",{current:P(v),prevSegmentEnd:S?P(S.endTime):"none",nextSegmentStart:b?P(b.startTime):"none",availableSpace:P(j)})}const L=Z.current.getBoundingClientRect(),T=v/R*100;let V;f>1&&it.current?V=L.left-it.current.scrollLeft+L.width*(T/100):V=L.left+L.width*(T/100),q({x:V,y:L.top-10})},ja=v=>{if(!Z.current||!it.current||ot)return;const w=I.current&&!I.current.paused;St(!1);const E=Z.current.getBoundingClientRect();let b;if(f>1){const T=it.current.scrollLeft,V=Z.current.clientWidth;b=(v.clientX-E.left+T)/V}else b=(v.clientX-E.left)/E.width;const S=b*R;me.debug("Timeline clicked at:",P(S),"distance from end:",P(R-S)),typeof window<"u"&&(window.lastSeekedPosition=S),Qe(S),he(S),Ze(S);const L=W.find(T=>{const V=S>=T.startTime&&S<=T.endTime,j=Math.abs(S-T.startTime)<.01,F=Math.abs(S-T.endTime)<.01;return V||j||F});if(L&&Ve(L),I.current)if(U&&w){if(L){const V=[...W].sort((j,F)=>j.startTime-F.startTime).findIndex(j=>j.id===L.id);if(V!==-1){const j=new CustomEvent("update-segment-index",{detail:{segmentIndex:V}});document.dispatchEvent(j),me.debug(`Segments playback mode: updating segment index to ${V} for timeline click in segment ${L.id}`)}}I.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming segments playback:",T),Ye(!1)})}else w&&!U&&I.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming playback:",T),Ye(!1)});if(v.target===Z.current||v.target.classList.contains("timeline-thumbnail"))if(L)X(L.id),oe(!1);else{X(null);const T=fn(S);en(T);let V;if(f>1){const ee=E.left-it.current.scrollLeft,dt=S/R;V=ee+dt*E.width}else V=v.clientX;q({x:V,y:E.top-10}),oe(!0);const j=[...W].sort((ee,dt)=>ee.startTime-dt.startTime),F=[...j].reverse().find(ee=>ee.endTime<S),ut=j.find(ee=>ee.startTime>S);me.debug("Clicked in cutaway area:",{position:P(S),availableSpace:P(T),prevSegmentEnd:F?P(F.endTime):"none",nextSegmentStart:ut?P(ut.startTime):"none"})}},Ua=(v,w)=>E=>{if(E.preventDefault(),E.stopPropagation(),!Z.current)return;Z.current.getBoundingClientRect().width;const S=W.find(On=>On.id===v);if(!S)return;const L=S.startTime,T=S.endTime,V={...S};document.body.style.cursor="ew-resize";const j=document.createElement("div");j.style.position="fixed",j.style.top="0",j.style.left="0",j.style.width="100vw",j.style.height="100vh",j.style.zIndex="1000",j.style.cursor="ew-resize",document.body.appendChild(j);let F=!0,ut=L,ee=T;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:v}}));const dt=On=>{if(!F||!Z.current)return;const wr=Z.current.getBoundingClientRect(),Yt=Math.max(0,Math.min(1,(On-wr.left)/wr.width))*R,ha=w?Yt:L,na=w?T:Yt;if(M>=ha&&M<=na)X(v),oe(!1);else{X(null);const yn=fn(M);en(yn),oe(!0)}const Wa=W.filter(yn=>yn.id!==v);let ya=L,aa=T;if(w){ya=Math.min(Yt,T-.5);const _t=Wa.filter(ra=>ra.endTime<=L).sort((ra,ni)=>ni.endTime-ra.endTime)[0];_t&&ya<_t.endTime&&(ya=_t.endTime),_t&&Math.abs(ya-_t.endTime)<.3&&(ya=_t.endTime),ut=ya}else{aa=Math.max(Yt,L+.5);const _t=Wa.filter(ra=>ra.startTime>=T).sort((ra,ni)=>ra.startTime-ni.startTime)[0];_t&&aa>_t.startTime&&(aa=_t.startTime),_t&&Math.abs(aa-_t.startTime)<.3&&(aa=_t.startTime),ee=aa}const Dr=W.map(yn=>yn.id===v?{...yn,startTime:ya,endTime:aa}:yn),Mi=new CustomEvent("update-segments",{detail:{segments:Dr,recordHistory:!1}});if(document.dispatchEvent(Mi),ke===v&&I.current){const yn=I.current.currentTime,_t=Dr.find(ur=>ur.id===v);if(_t){const ur=yn>=_t.startTime&&yn<=_t.endTime;me.debug(`During drag - playhead at ${P(yn)} is ${ur?"inside":"outside"} segment (${P(_t.startTime)} - ${P(_t.endTime)})`),!ur&&jt&&(I.current.pause(),Ye(!1),Ve(null)),yn<_t.startTime?(me.debug(`Adjusting display time to segment start: ${P(_t.startTime)}`),Ze(_t.startTime),he(_t.startTime)):yn>_t.endTime&&(me.debug(`Adjusting display time to segment end: ${P(_t.endTime)}`),Ze(_t.endTime),he(_t.endTime))}}},Rt=()=>{if(!F)return;F=!1,document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",hn),document.removeEventListener("touchmove",Rr),document.removeEventListener("touchend",Ha),document.removeEventListener("touchcancel",Ha),document.body.style.cursor="",document.body.contains(j)&&document.body.removeChild(j);const On=W.map(Vn=>Vn.id===v?{...Vn,startTime:ut,endTime:ee}:Vn),wr=w?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:On,recordHistory:!0,action:wr}})),ke===v&&I.current){const Vn=I.current.currentTime,Yt=On.find(ha=>ha.id===v);if(Yt){const ha=Vn>=Yt.startTime&&Vn<=Yt.endTime;me.debug(`Drag complete - playhead at ${P(Vn)} is ${ha?"inside":"outside"} segment (${P(Yt.startTime)} - ${P(Yt.endTime)})`);const na=Vn>=V.startTime&&Vn<=V.endTime;ha?(!na&&ha||na&&ha&&(Yt.startTime!==V.startTime||Yt.endTime!==V.endTime))&&Ve(Yt):(jt&&(I.current.pause(),Ye(!1),Ve(null),St(!1)),Vn<Yt.startTime?(me.debug(`Final adjustment - setting display time to segment start: ${P(Yt.startTime)}`),Ze(Yt.startTime),he(Yt.startTime)):Vn>Yt.endTime&&(me.debug(`Final adjustment - setting display time to segment end: ${P(Yt.endTime)}`),Ze(Yt.endTime),he(Yt.endTime)))}}},Ct=On=>{dt(On.clientX)},hn=()=>{Rt()},Rr=On=>{On.touches.length>0&&(On.preventDefault(),dt(On.touches[0].clientX))},Ha=()=>{Rt()};document.addEventListener("mousemove",Ct,{passive:!1}),document.addEventListener("mouseup",hn),document.addEventListener("touchmove",Rr,{passive:!1}),document.addEventListener("touchend",Ha),document.addEventListener("touchcancel",Ha)},Cr=v=>w=>{if(w.target.classList.contains("clip-segment-handle"))return;w.preventDefault(),w.stopPropagation(),St(!1);const E=I.current&&!I.current.paused;X(v);const b=W.find(ee=>ee.id===v);if(!b)return;const L=w.currentTarget.getBoundingClientRect(),T=(w.clientX-L.left)/L.width,V=b.startTime+T*(b.endTime-b.startTime),j=Math.max(b.startTime,Math.min(b.endTime,V));if(he(j),Ze(j),I.current){const ee=I.current.currentTime,dt=ee>=b.startTime&&ee<=b.endTime;me.debug(`Segment click - playhead at ${P(ee)} is ${dt?"inside":"outside"} segment (${P(b.startTime)} - ${P(b.endTime)})`),dt||(Math.abs(ee-b.startTime)<Math.abs(ee-b.endTime)?(me.debug(`Playhead outside segment - adjusting to segment start: ${P(b.startTime)}`),Ze(b.startTime)):(me.debug(`Playhead outside segment - adjusting to segment end: ${P(b.endTime)}`),Ze(b.endTime)))}if(Qe(j),I.current)if(U&&E){const dt=[...W].sort((Rt,Ct)=>Rt.startTime-Ct.startTime).findIndex(Rt=>Rt.id===v);if(dt!==-1){const Rt=new CustomEvent("update-segment-index",{detail:{segmentIndex:dt}});document.dispatchEvent(Rt)}I.current.play().then(()=>{Ye(!0)}).catch(Rt=>{console.error("Error continuing segments playback after segment click:",Rt)})}else E&&!U&&(Ve(b),St(!1),I.current.play().then(()=>{Ye(!0)}).catch(ee=>{console.error("Error resuming playback after segment click:",ee)}));const F=w.clientX,ut=L.top-10;if(q({x:F,y:ut}),f>1&&Z.current&&it.current){Z.current.getBoundingClientRect();const ee=Z.current.clientWidth,dt=it.current.clientWidth,Rt=j/R*ee,Ct=Math.max(0,Rt-dt/2);it.current.scrollTo({left:Ct,behavior:"smooth"}),setTimeout(()=>{if(Z.current&&it.current){const hn=Z.current.getBoundingClientRect(),Ha=j/R*ee-it.current.scrollLeft+hn.left;q({x:Ha,y:ut})}},300)}},xr=()=>W.map((v,w)=>{const E=v.startTime/R*100,b=(v.endTime-v.startTime)/R*100,S=nf((v.startTime+v.endTime)/2,R);return p.jsxs("div",{className:`clip-segment ${ke===v.id?"selected":""}`,style:{left:`${E}%`,width:`${b}%`,backgroundColor:S,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Cr(v.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",w+1]}),p.jsxs("div",{className:"clip-segment-time",children:[ki(v.startTime)," - ",ki(v.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",ki(v.endTime-v.startTime)]})]}),U?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:L=>{L.stopPropagation(),Ua(v.id,!0)(L)},onTouchStart:L=>{L.stopPropagation(),Ua(v.id,!0)(L)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:L=>{L.stopPropagation(),Ua(v.id,!1)(L)},onTouchStart:L=>{L.stopPropagation(),Ua(v.id,!1)(L)}})]})]},v.id)});Q.useEffect(()=>{const v=w=>{const{segmentId:E}=w.detail;if(W.filter(S=>S.id!==E).length===0){const S={id:Date.now(),name:"Full Video",startTime:0,endTime:R,thumbnail:""},L=new CustomEvent("update-segments",{detail:{segments:[S],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(L),X(S.id),oe(!1),he(M),Ze(M),Ve(S),Z.current){const T=Z.current.getBoundingClientRect(),V=M/R*100,j=T.left+T.width*(V/100);q({x:j,y:T.top-10}),me.debug("Created full video segment:",{id:S.id,duration:P(R),currentPosition:P(M)})}}else if(ke===E){if(!W.find(T=>T.id===E))return;const L=fn(M);if(X(null),oe(!0),en(L),Z.current){const T=Z.current.getBoundingClientRect(),V=M/R*100,j=T.left+T.width*(V/100);q({x:j,y:T.top-10}),me.debug("Segment deleted, showing cutaway tooltip:",{position:P(M),availableSpace:P(L)})}}};return document.addEventListener("delete-segment",v),()=>{document.removeEventListener("delete-segment",v)}},[ke,W,M,R,Z]),Q.useEffect(()=>{const v=I.current;if(!v)return;const w=()=>{if(!I.current)return;const b=I.current,S=b.currentTime;St(!1);let L=R,T=null,V=null;T=W.find(F=>{const ut=S>=F.startTime&&S<=F.endTime,ee=Math.abs(S-F.startTime)<.001,dt=Math.abs(S-F.endTime)<.001;return ut||ee||dt}),V=W.filter(F=>{const ut=F.startTime>S,ee=Math.abs(F.startTime-S)>.001;return ut&&ee}).sort((F,ut)=>F.startTime-ut.startTime)[0],T?(L=T.endTime,Ve(T)):V&&(L=V.startTime);const j=()=>{if(!b)return;const F=b.currentTime;if(L-F<=.001||F>=L){b.pause();const ee=()=>{b&&(b.currentTime=L,Qe(L),Ze(L),he(L),me.debug("Position verification:",{target:P(L),actual:P(b.currentTime),difference:Math.abs(b.currentTime-L).toFixed(3)}))};ee(),setTimeout(ee,10),setTimeout(ee,20),setTimeout(ee,50),T?(X(T.id),oe(!1)):V?(X(V.id),oe(!1),Ve(V)):(X(null),oe(!0),Ve(null)),b.removeEventListener("timeupdate",j),rt(!1),Ye(!1),St(!1);return}};b.addEventListener("timeupdate",j),b.play().then(()=>{rt(!0),Ye(!0),me.debug("Playback started:",{from:P(S),to:P(L),currentSegment:T?`Segment ${T.id}`:"None",nextSegment:V?`Segment ${V.id}`:"None"})}).catch(F=>{console.error("Error playing video:",F)})},E=()=>{Ye(!1)};return v.addEventListener("play",w),v.addEventListener("pause",E),()=>{v.removeEventListener("play",w),v.removeEventListener("pause",E)}},[W,R,Qe]);const h=v=>{if(!Z.current)return;const w=Z.current.getBoundingClientRect(),b=(v.clientX-w.left)/w.width*R,S=Math.max(0,Math.min(R,b));typeof window<"u"&&(window.lastSeekedPosition=S)},[B,ne]=Q.useState(!1),fe=Q.useRef(!1),lt=v=>{if(ot)return;v.stopPropagation(),v.preventDefault(),ne(!0),fe.current=!0,En(M);const w=b=>{if(!Z.current||!it.current)return;const S=Z.current.getBoundingClientRect();let L;if(f>1){const V=it.current.scrollLeft,j=Z.current.clientWidth;L=(b.clientX-S.left+V)/j}else L=(b.clientX-S.left)/S.width;L=Math.max(0,Math.min(1,L));const T=L*R;he(T),Ze(T),En(T),typeof window<"u"&&(window.lastSeekedPosition=T),Qe(T)},E=()=>{ne(!1),fe.current=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",w),document.addEventListener("mouseup",E)},qe=v=>{if(ot)return;v.stopPropagation(),v.preventDefault(),ne(!0),fe.current=!0,En(M);const w=b=>{if(!Z.current||!it.current||!b.touches[0])return;const S=Z.current.getBoundingClientRect();let L;if(f>1){const V=it.current.scrollLeft,j=Z.current.clientWidth;L=(b.touches[0].clientX-S.left+V)/j}else L=(b.touches[0].clientX-S.left)/S.width;L=Math.max(0,Math.min(1,L));const T=L*R;he(T),Ze(T),En(T),typeof window<"u"&&(window.lastSeekedPosition=T),Qe(T)},E=()=>{ne(!1),fe.current=!1,document.removeEventListener("touchmove",w),document.removeEventListener("touchend",E),document.removeEventListener("touchcancel",E)};document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",E),document.addEventListener("touchcancel",E)};return Q.useEffect(()=>{},[Fn,ma,nt]),Q.useEffect(()=>{let v,w;if(nt&&Fn){let E=10;v=setInterval(()=>{E--;const b=document.querySelector(".countdown");b&&(b.textContent=E.toString()),E<=0&&clearInterval(v)},1e3),w=setTimeout(()=>{window.location.href=Fn},1e4)}return()=>{v&&clearInterval(v),w&&clearTimeout(w)}},[nt,Fn]),Q.useEffect(()=>{!nt&&Fn&&(window.location.href=Fn)},[Fn,ma,nt]),p.jsxs("div",{className:`timeline-container-card ${U?"segments-playback-mode":""}`,children:[p.jsxs("div",{className:"timeline-header",children:[p.jsx("div",{className:"timeline-title",children:p.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),p.jsxs("div",{className:"duration-time",children:["Total Segments:"," ",p.jsx("span",{children:P(W.reduce((v,w)=>v+(w.endTime-w.startTime),0))})]})]}),p.jsx("div",{ref:it,className:`timeline-scroll-container ${U?"segments-playback-mode":""}`,style:{overflow:f>1?"auto":"hidden"},children:p.jsxs("div",{ref:Z,className:"timeline-container",onClick:ja,onMouseMove:h,style:{width:`${f*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${Na}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:v=>{if(v.stopPropagation(),W.find(w=>M>=w.startTime&&M<=w.endTime),ke||tt){X(null),oe(!1);return}else En(M),me.debug("Opening tooltip at:",P(M))},children:p.jsx("span",{className:"timeline-marker-head-icon",children:ke||tt?"-":"+"})}),U?null:p.jsx("div",{className:`timeline-marker-drag ${B?"dragging":""}`,onMouseDown:lt,onTouchStart:qe,children:p.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),W.length===0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"trim-line-marker",style:{left:`${Jr}%`},children:p.jsx("div",{ref:zt,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${Er}%`},children:p.jsx("div",{ref:Et,className:"trim-handle right"})})]}),xr(),Ra(),ei(),ke!==null&&p.jsxs("div",{className:`segment-tooltip two-row-tooltip ${U?"segments-playback-mode":""}`,style:{position:"absolute",...wm(Na)},onClick:v=>{U&&(v.stopPropagation(),v.preventDefault())},children:[ke&&p.jsx("div",{className:"tooltip-chapter-editor",children:p.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Chapter Title",value:an,onChange:v=>pn(v.target.value),onBlur:We,onMouseLeave:We,rows:2,maxLength:200,onClick:v=>v.stopPropagation(),onMouseDown:v=>v.stopPropagation(),onMouseUp:v=>v.stopPropagation()})}),p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek -50ms (click or hold)",disabled:U,...U?{}:Ln(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${U?"disabled":""}`,style:{pointerEvents:U?"none":"auto",cursor:U?"not-allowed":"default",opacity:U?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:v=>{U&&(v.stopPropagation(),v.preventDefault())},children:P(vn)}),p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek +50ms (click or hold)",disabled:U,...U?{}:Ln(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:`tooltip-action-btn delete ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Delete segment",disabled:U,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:v=>{v.stopPropagation();const w=new CustomEvent("delete-segment",{detail:{segmentId:ke}});document.dispatchEvent(w)},children:p.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:[p.jsx("path",{d:"M3 6h18"}),p.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"}),p.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),p.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),p.jsx("button",{className:`tooltip-action-btn scissors ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{v.stopPropagation();const w=new CustomEvent("split-segment",{detail:{segmentId:ke,time:G}});document.dispatchEvent(w)},children:p.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:[p.jsx("circle",{cx:"6",cy:"6",r:"3"}),p.jsx("circle",{cx:"6",cy:"18",r:"3"}),p.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),p.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),p.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),p.jsx("button",{className:`tooltip-action-btn play-from-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{v.stopPropagation();const w=W.find(E=>E.id===ke);if(w&&I.current){if(St(!0),Math.abs(I.current.currentTime-w.endTime)<.05){me.debug(`Already at end boundary (${P(I.current.currentTime)}), nudging position back slightly`);const E=Math.max(w.startTime,w.endTime-.1);I.current.currentTime=E,Qe(E),he(E),me.debug(`Position adjusted to ${P(E)}`)}else Qe(w.startTime),he(w.startTime);Ve(w),I.current.play().then(()=>{Ye(!0)}).catch(E=>{console.error("Error playing from beginning:",E)})}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${Le?"pause":"play"} ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":Le?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{v.stopPropagation(),Le?I.current&&(I.current.pause(),Ye(!1),St(!1)):Ce()},children:Le?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-in ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Set start point at current position",disabled:U,onClick:v=>{if(v.stopPropagation(),W.find(E=>E.id===ke)){const E=W.map(S=>S.id===ke?{...S,startTime:G<S.endTime-.5?G:S.endTime-.5}:S),b=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(b)}},children:p.jsx("img",{src:W0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-out ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Set end point at current position",disabled:U,onClick:v=>{if(v.stopPropagation(),W.find(E=>E.id===ke)){const E=W.map(S=>S.id===ke?{...S,endTime:G>S.startTime+.5?G:S.startTime+.5}:S),b=new CustomEvent("update-segments",{detail:{segments:E,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(b)}},children:p.jsx("img",{src:I0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),tt&&ke===null&&p.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${U?"segments-playback-mode":""}`,style:{position:"absolute",...wm(Na)},onClick:v=>{U&&(v.stopPropagation(),v.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek -50ms (click or hold)",disabled:U,...U?{}:Ln(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${U?"disabled":""}`,style:{pointerEvents:U?"none":"auto",cursor:U?"not-allowed":"default",opacity:U?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:v=>{U&&(v.stopPropagation(),v.preventDefault())},children:P(G)}),p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Seek +50ms (click or hold)",disabled:U,...U?{}:Ln(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsxs("button",{className:`tooltip-action-btn new-segment ${ct<.5||U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":ct<.5?"Not enough space for new segment":"Create new segment",disabled:ct<.5||U,onClick:async v=>{if(v.stopPropagation(),ct<.5)return;const w=G,E=w+ct,b={id:Date.now(),name:"segment",startTime:w,endTime:E,thumbnail:""},S=[...W,b],L=new CustomEvent("update-segments",{detail:{segments:S,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(L),oe(!1),setTimeout(()=>{const T=S[S.length-1];T&&(X(T.id),me.debug("Created and selected new segment:",T.id))},100)},children:[p.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:[p.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),p.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),p.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),p.jsx("button",{className:`tooltip-action-btn play-from-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{if(v.stopPropagation(),I.current){const w=G;St(!0);const E=[...W].sort((F,ut)=>F.startTime-ut.startTime),b=[...E].reverse().find(F=>F.endTime<w),S=b?b.endTime+.025:0,L=E.find(F=>F.startTime>w),T=L?L.startTime:R,V={id:-999,name:"Cutaway",startTime:S,endTime:T,thumbnail:""};Qe(S),he(S),Ye(!1),setTimeout(()=>{Ve(V)},0);const j=()=>{if(!I.current)return;const F=I.current.currentTime,ut=[...W].sort((Ct,hn)=>Ct.startTime-hn.startTime),ee=ut.find(Ct=>Ct.startTime>F-.3),dt=ee&&F>=ee.startTime-.25&&F<=ee.startTime+.1&&!Gt;ee&&F>=ee.startTime-.25&&F<=ee.startTime+.1&&me.debug(`Approaching boundary at ${P(ee.startTime)}, continuePastBoundary=${Gt}, willStop=${dt}`);const Rt=ut.find(Ct=>F>=Ct.startTime&&F<=Ct.endTime);if(Rt&&(ze==null?void 0:ze.id)!==Rt.id){me.debug(`Entered segment ${Rt.id} during cutaway playback`),Ve(Rt),X(Rt.id),oe(!1),I.current.removeEventListener("timeupdate",j),St(!1),sessionStorage.removeItem("continuingPastSegment");return}if(dt&&ee){me.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${P(F)} approaching segment at ${P(ee.startTime)} (distance: ${Math.abs(F-ee.startTime).toFixed(3)}s) - STOPPING`),I.current.pause(),setTimeout(()=>{if(I.current){I.current.currentTime=ee.startTime,Qe(ee.startTime),Ze(ee.startTime),he(ee.startTime),St(!1),X(ee.id),oe(!1),Ve(ee);const Ct=()=>{I.current&&(I.current.currentTime=ee.startTime,Qe(ee.startTime),Ze(ee.startTime),he(ee.startTime),me.debug(`Position corrected to exact segment boundary: ${P(I.current.currentTime)} (target: ${P(ee.startTime)})`))};setTimeout(Ct,10),setTimeout(Ct,20),setTimeout(Ct,50),setTimeout(Ct,100),setTimeout(Ct,200),I.current.addEventListener("seeked",Ct),I.current.addEventListener("canplay",Ct),I.current.addEventListener("waiting",Ct),setTimeout(()=>{I.current&&(I.current.removeEventListener("seeked",Ct),I.current.removeEventListener("canplay",Ct),I.current.removeEventListener("waiting",Ct))},300)}},10),Ye(!1),Ve(null),I.current.removeEventListener("timeupdate",j);return}};I.current.addEventListener("timeupdate",j),setTimeout(()=>{I.current&&I.current.play().then(()=>{Ye(!0),me.debug("CUTAWAY PLAYBACK STARTED:",P(S),"to",P(T),b?`(after segment ${b.id}, offset +25ms from ${P(b.endTime)})`:"(from video start)",L?`(will stop at segment ${L.id})`:"(will play to end)")}).catch(F=>{console.error("Error playing cutaway:",F)})},50)}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${Le?"pause":"play"} ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":Le?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{v.stopPropagation(),Le?I.current&&(I.current.pause(),Ye(!1),St(!1)):Ce()},children:Le?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-end ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Adjust end of previous segment",disabled:U,onClick:v=>{v.stopPropagation();const E=[...W].sort((b,S)=>b.startTime-S.startTime).filter(b=>b.endTime<=G).sort((b,S)=>S.endTime-b.endTime)[0];if(E){const b=W.map(L=>L.id===E.id?{...L,endTime:G}:L),S=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(S),me.debug("Adjusted end of previous segment to:",P(G)),X(E.id),oe(!1)}else if(W.length>0){const b=[...W].sort((T,V)=>T.startTime-V.startTime);let S=!1,L=0;for(let T=0;T<b.length-1;T++){const V=b[T].endTime,j=b[T+1].startTime;if(G>V&&G<j){S=!0,L=V;break}}if(S){const T={id:Date.now(),name:"segment",startTime:L,endTime:G,thumbnail:""},V=[...W,T],j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(j),me.debug("Created new segment in gap from",P(L),"to",P(G)),X(T.id),oe(!1)}else if(G<b[0].startTime){const T={id:Date.now(),name:"segment",startTime:0,endTime:G,thumbnail:""},V=[...W,T],j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(j),me.debug("Created new segment from start to:",P(G)),X(T.id),oe(!1)}else{const T=[...W].sort((V,j)=>j.endTime-V.endTime)[0];if(T&&T.endTime<R){const V=W.map(F=>F.id===T.id?{...F,endTime:R}:F),j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(j),X(T.id),oe(!1)}}}else if(G>0){const b={id:Date.now(),name:"segment",startTime:0,endTime:G,thumbnail:""},S=new CustomEvent("update-segments",{detail:{segments:[b],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(S),me.debug("Created new segment from start to:",P(G)),X(b.id),oe(!1)}},children:p.jsx("img",{src:G0,alt:"Set end point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:v=>{v.stopPropagation();const E=[...W].sort((b,S)=>b.startTime-S.startTime).filter(b=>b.startTime>=G).sort((b,S)=>b.startTime-S.startTime)[0];if(E){const b=W.map(L=>L.id===E.id?{...L,startTime:G}:L),S=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(S),me.debug("Adjusted start of next segment to:",P(G)),X(E.id),oe(!1)}else if(W.length>0){const b=[...W].sort((T,V)=>T.startTime-V.startTime);let S=!1,L=0;for(let T=0;T<b.length-1;T++){const V=b[T].endTime,j=b[T+1].startTime;if(G>V&&G<j){S=!0,L=j;break}}if(S){const T={id:Date.now(),name:"segment",startTime:G,endTime:L,thumbnail:""},V=[...W,T],j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(j),me.debug("Created new segment in gap from",P(G),"to",P(L)),X(T.id),oe(!1)}else if(G<b[0].startTime){const T={id:Date.now(),name:"segment",startTime:G,endTime:b[0].startTime,thumbnail:""},V=[...W,T],j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(j),me.debug("Created new segment from",P(G),"to first segment"),X(T.id),oe(!1)}else if(G>b[b.length-1].endTime){const T={id:Date.now(),name:"segment",startTime:G,endTime:R,thumbnail:""},V=[...W,T],j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(j),me.debug("Created new segment from",P(G),"to end"),X(T.id),oe(!1)}else{const T=b[0];if(T&&T.startTime>0){const V=W.map(F=>F.id===T.id?{...F,startTime:0}:F),j=new CustomEvent("update-segments",{detail:{segments:V,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(j),X(T.id),oe(!1)}}}else if(G<R){const b={id:Date.now(),name:"segment",startTime:G,endTime:R,thumbnail:""},S=new CustomEvent("update-segments",{detail:{segments:[b],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(S),me.debug("Created new segment from",P(G),"to end"),X(b.id),oe(!1)}},children:p.jsx("img",{src:q0,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),p.jsxs("div",{className:"timeline-controls",children:[p.jsxs("div",{className:"time-navigation",children:[p.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),p.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:v=>{if(v.key==="Enter"){const w=v.currentTarget.value;try{const E=w.split(":");let b=0,S=0,L=0,T=0;if(E.length===3){b=parseInt(E[0]),S=parseInt(E[1]);const j=E[2].split(".");L=parseInt(j[0]),j.length>1&&(T=parseInt(j[1].padEnd(3,"0").substring(0,3)))}else if(E.length===2){S=parseInt(E[0]);const j=E[1].split(".");L=parseInt(j[0]),j.length>1&&(T=parseInt(j[1].padEnd(3,"0").substring(0,3)))}const V=b*3600+S*60+L+T/1e3;if(!isNaN(V)&&V>=0&&V<=R){Qe(V);const j=F=>{const ut=W.find(ee=>{const dt=F>=ee.startTime&&F<=ee.endTime,Rt=Math.abs(F-ee.startTime)<.001,Ct=Math.abs(F-ee.endTime)<.001;return dt||Rt||Ct});if(Z.current&&it.current){const ee=Z.current.getBoundingClientRect();let dt;if(f>1)dt=ee.left-it.current.scrollLeft+F/R*ee.width;else{const Rt=F/R;dt=ee.left+ee.width*Rt}q({x:dt,y:ee.top-10}),he(F),ut?(X(ut.id),oe(!1)):(X(null),oe(!0))}};setTimeout(()=>j(V),10)}}catch(E){console.error("Invalid time format:",E)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const v=()=>{const w=W.find(E=>{const b=M>=E.startTime&&M<=E.endTime,S=Math.abs(M-E.startTime)<.001,L=Math.abs(M-E.endTime)<.001;return b||S||L});if(Z.current&&it.current){const E=Z.current.getBoundingClientRect();let b;if(f>1)b=E.left-it.current.scrollLeft+M/R*E.width;else{const S=M/R;b=E.left+E.width*S}if(q({x:b,y:E.top-10}),he(M),w)X(w.id),oe(!1);else{const S=fn(M);en(S),S>=.5?(X(null),oe(!0)):(X(null),oe(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{Qe(M-.01),setTimeout(v,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Qe(M-.001),setTimeout(v,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Qe(M+.001),setTimeout(v,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Qe(M+.01),setTimeout(v,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),p.jsxs("div",{className:"controls-right",children:[p.jsxs("div",{className:"zoom-dropdown-container",children:[p.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>At(!mt),children:["Zoom ",f,"x",p.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:p.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),mt&&p.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(v=>p.jsxs("div",{className:`zoom-option ${f===v?"selected":""}`,onClick:()=>{Be(v),At(!1)},children:[f===v&&p.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:p.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",v,"x"]},v))})]}),p.jsx("div",{className:"auto-saved-time",style:{color:Oe?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:Oe?p.jsxs(p.Fragment,{children:[p.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..."]}):De?`Auto saved: ${De}`:"Not saved yet"}),p.jsx("div",{className:"save-buttons-row",children:p.jsx("button",{onClick:()=>K(!0),className:"save-chapters-button","data-tooltip":"Save chapters",disabled:W.filter(v=>v.chapterTitle&&v.chapterTitle.trim()).length===0,children:"Save Chapters"})}),p.jsx(qu,{isOpen:mn,onClose:()=>K(!1),title:"Save Chapters",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>K(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:Zr,children:"Save Chapters"})]}),children:p.jsxs("p",{className:"modal-message",children:["Are you sure you want to save the chapters? This will save"," ",W.filter(v=>v.chapterTitle&&v.chapterTitle.trim()).length," chapters to the database."]})}),p.jsxs(qu,{isOpen:ye,onClose:()=>{},title:"Processing Video",children:[p.jsx("div",{className:"modal-spinner",children:p.jsx("div",{className:"spinner"})}),p.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),p.jsx(qu,{isOpen:nt,onClose:()=>Ut(!1),title:"Video Edited Successfully",children:p.jsx("div",{className:"modal-success-content",children:p.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your"," ",p.jsx("a",{href:Fn,className:"media-page-link",style:X0,children:"media page"})," in ",p.jsx("span",{className:"countdown",children:"10"})," seconds. Your chapters have been saved successfully."]})})}),p.jsxs(qu,{isOpen:Wt,onClose:()=>Ht(!1),title:"Video Processing Error",children:[p.jsxs("div",{className:"modal-error-content",children:[p.jsx("div",{className:"modal-error-icon",children:p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),p.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),p.jsx("p",{className:"modal-message text-center error-message",children:It})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>Ht(!1),className:"modal-choice-button centered-choice",children:[p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),ot&&p.jsx("div",{className:"mobile-timeline-overlay",children:p.jsxs("div",{className:"mobile-timeline-message",children:[p.jsx("p",{children:"Please play the video first to enable timeline controls"}),p.jsx("div",{className:"mobile-play-icon"})]})})]})},K0=({onSplit:M,onReset:R,onUndo:be,onRedo:Re,onPlaySegments:we,onPlay:ve,canUndo:f,canRedo:W,isPlaying:ge=!1,isPlayingSegments:re=!1})=>{const[Tt,ce]=Q.useState(!1);Q.useEffect(()=>{const te=()=>{ce(window.innerWidth<=640)};return te(),window.addEventListener("resize",te),()=>window.removeEventListener("resize",te)},[]);const je=()=>{ve()};return p.jsx("div",{className:"editing-tools-container",children:p.jsxs("div",{className:"flex-container single-row",children:[p.jsxs("div",{className:"button-group play-buttons-group",children:[p.jsx("button",{className:"button segments-button",onClick:we,"data-tooltip":re?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:re?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Stop Preview"}),p.jsx("span",{className:"short-text",children:"Stop Preview"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play Preview"}),p.jsx("span",{className:"short-text",children:"Play Preview"})]})}),(!re||!Tt)&&p.jsx("button",{className:`button play-button ${re?"greyed-out":""}`,onClick:je,"data-tooltip":ge?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:re,children:ge&&!re?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Pause"}),p.jsx("span",{className:"short-text",children:"Pause"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play"}),p.jsx("span",{className:"short-text",children:"Play"})]})})]}),p.jsxs("div",{className:"button-group secondary",children:[p.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":re?"Disabled during preview":"Undo last action",disabled:!f||re,onClick:be,children:[p.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:[p.jsx("path",{d:"M9 14 4 9l5-5"}),p.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"})]}),p.jsx("span",{className:"button-text",children:"Undo"})]}),p.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":re?"Disabled during preview":"Redo last undone action",disabled:!W||re,onClick:Re,children:[p.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:[p.jsx("path",{d:"m15 14 5-5-5-5"}),p.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),p.jsx("span",{className:"button-text",children:"Redo"})]}),p.jsx("div",{className:"divider"}),p.jsxs("button",{className:"button",onClick:R,"data-tooltip":re?"Disabled during preview":"Reset to full video",disabled:re,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})}),p.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},J0=({segments:M,selectedSegmentId:R})=>{const be=[...M].sort((ve,f)=>ve.startTime-f.startTime),Re=ve=>{const f=new CustomEvent("delete-segment",{detail:{segmentId:ve}});document.dispatchEvent(f)},we=ve=>`segment-default-color segment-color-${ve%8+1}`;return be.find(ve=>ve.id===R),p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),be.map((ve,f)=>p.jsxs("div",{className:`segment-item ${we(f)} ${R===ve.id?"selected":""}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${ve.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsx("div",{className:"segment-title",children:ve.chapterTitle?p.jsx("span",{className:"chapter-title",children:ve.chapterTitle}):p.jsxs("span",{className:"default-title",children:["Chapter ",f+1]})}),p.jsxs("div",{className:"segment-time",children:[ki(ve.startTime)," - ",ki(ve.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",$0(ve.endTime-ve.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>Re(ve.id),children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})})})})]},ve.id)),be.length===0&&p.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},Z0=({videoRef:M,onPlay:R})=>{const[be,Re]=Q.useState(!1);Q.useEffect(()=>{const f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Re(f)},[]),Q.useEffect(()=>{const ve=M.current;if(!ve)return;const f=()=>{Re(!1)};return ve.addEventListener("play",f),()=>{ve.removeEventListener("play",f)}},[M]);const we=()=>{R()};return be?p.jsx("div",{className:"mobile-play-prompt-overlay",children:p.jsx("div",{className:"mobile-play-prompt",children:p.jsx("button",{className:"mobile-play-button",onClick:we,children:"Click to start editing..."})})}):null},eS=()=>{const M=z=>{const ue=z.split(":");if(ue.length!==3)return 0;const De=parseInt(ue[0],10)||0,Te=parseInt(ue[1],10)||0,Oe=parseFloat(ue[2])||0;return De*3600+Te*60+Oe},R=Q.useRef(null),[be,Re]=Q.useState(0),[we,ve]=Q.useState(0),[f,W]=Q.useState(!1),[ge,re]=Q.useState(!1),[Tt,ce]=Q.useState([]),[je,te]=Q.useState(0),[Be,Qe]=Q.useState(0),[I,xt]=Q.useState([]),[ot,Le]=Q.useState(1),[rt,Ce]=Q.useState([]),[U,Z]=Q.useState(null),[zt,Et]=Q.useState([]),[st,Ot]=Q.useState(-1),[ke,X]=Q.useState(!1),[tt,oe]=Q.useState(!1),[Se,q]=Q.useState(0);Q.useEffect(()=>{var z;if(zt.length>0){const ue=((z=zt[st])==null?void 0:z.action)||"";ue!=="save"&&ue!=="save_copy"&&ue!=="save_segments"&&X(!0)}},[zt,st]),Q.useEffect(()=>{const z=R.current;if(!z)return;const ue=()=>{ve(z.duration),Qe(z.duration),(async()=>{var K;let Ie=[];const We=typeof window<"u"&&((K=window.MEDIA_DATA)==null?void 0:K.chapters)||[];if(We.length>0)for(let ye=0;ye<We.length;ye++){const Ae=We[ye],nt=M(Ae.startTime),Ut=M(Ae.endTime),Wt=await af(z,(nt+Ut)/2),Ht={id:ye+1,name:`segment-${ye+1}`,startTime:nt,endTime:Ut,thumbnail:Wt,chapterTitle:Ae.text};Ie.push(Ht)}else{const ye=await af(z,z.duration/2);Ie=[{id:1,name:"segment",startTime:0,endTime:z.duration,thumbnail:ye}]}const ft={trimStart:0,trimEnd:z.duration,splitPoints:[],clipSegments:Ie};Et([ft]),Ot(0),Ce(Ie);const pn=6,Ln=z.duration/pn,mn=[];for(let ye=0;ye<pn;ye++){const Ae=Ln*ye+Ln/2,nt=await af(z,Ae);mn.push(nt)}ce(mn)})()},De=()=>{Re(z.currentTime)},Te=()=>{W(!0),ln(!0)},Oe=()=>{W(!1)},et=()=>{W(!1),z.currentTime=je};return z.addEventListener("loadedmetadata",ue),z.addEventListener("timeupdate",De),z.addEventListener("play",Te),z.addEventListener("pause",Oe),z.addEventListener("ended",et),()=>{z.removeEventListener("loadedmetadata",ue),z.removeEventListener("timeupdate",De),z.removeEventListener("play",Te),z.removeEventListener("pause",Oe),z.removeEventListener("ended",et)}},[]);const G=z=>{const ue=R.current;if(!ue)return;const De=!ue.paused;ue.currentTime=z,Re(z),typeof window<"u"&&(window.lastSeekedPosition=z),De&&ue.play().then(()=>{W(!0)}).catch(Te=>{console.error("Error resuming playback:",Te),W(!1)})},he=z=>{const ue={trimStart:je,trimEnd:Be,splitPoints:[...I],clipSegments:JSON.parse(JSON.stringify(rt)),action:z||"manual_save"},De=zt[st],Te=()=>{if(!De||De.clipSegments.length!==ue.clipSegments.length)return!0;for(let Je=0;Je<ue.clipSegments.length;Je++){const Ie=De.clipSegments[Je],We=ue.clipSegments[Je];if(!Ie||!We||Math.abs(Ie.startTime-We.startTime)>.001||Math.abs(Ie.endTime-We.endTime)>.001)return!0}return!1},Oe=!De||De.trimStart!==ue.trimStart||De.trimEnd!==ue.trimEnd||De.splitPoints.length!==ue.splitPoints.length||Te(),et=ue.action!==void 0;if(Oe||et){const Je=st;Et(Ie=>Je<Ie.length-1?[...Ie.slice(0,Je+1),ue]:[...Ie,ue]),Ot(Ie=>Ie+1)}};Q.useEffect(()=>{const z=ue=>{if(ue.detail){const{time:De,isStart:Te,recordHistory:Oe,action:et}=ue.detail;Te?te(De):Qe(De),Oe&&setTimeout(()=>{he(et||(Te?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",z),()=>{document.removeEventListener("update-trim",z)}},[]),Q.useEffect(()=>{const z=Te=>{if(Te.detail&&Te.detail.segments){const Oe=Te.detail.recordHistory!==!1,et=Te.detail.action||"update_segments";Ce(Te.detail.segments),Oe&&setTimeout(()=>{const Je=JSON.parse(JSON.stringify(Te.detail.segments)),Ie={trimStart:je,trimEnd:Be,splitPoints:[...I],clipSegments:Je,action:et},We=st;Et(ft=>We<ft.length-1?[...ft.slice(0,We+1),Ie]:[...ft,Ie]),Ot(ft=>ft+1)},20)}},ue=async Te=>{const Oe=Te;if(Oe.detail&&typeof Oe.detail.time=="number"&&typeof Oe.detail.segmentId=="number"){const et=Oe.detail.time,Je=Oe.detail.segmentId;G(et);const Ie=rt.find(mn=>mn.id===Je);if(!Ie||et<=Ie.startTime||et>=Ie.endTime)return;const We=[...rt],ft=We.findIndex(mn=>mn.id===Je);if(ft===-1)return;We.splice(ft,1);const pn={id:Date.now(),name:`${Ie.name}-A`,startTime:Ie.startTime,endTime:et,thumbnail:""},Ln={id:Date.now()+1,name:`${Ie.name}-B`,startTime:et,endTime:Ie.endTime,thumbnail:""};We.push(pn,Ln),We.sort((mn,K)=>mn.startTime-K.startTime),Ce(We),he("split_segment")}},De=async Te=>{const Oe=Te;if(Oe.detail&&typeof Oe.detail.segmentId=="number"){const et=Oe.detail.segmentId,Je=rt.filter(Ie=>Ie.id!==et);if(Je.length!==rt.length){if(Je.length===0&&R.current){const Ie={id:Date.now(),name:"segment",startTime:0,endTime:R.current.duration,thumbnail:""};te(0),Qe(R.current.duration),xt([]),Ce([Ie])}else Ce(Je);he("delete_segment")}}};return document.addEventListener("update-segments",z),document.addEventListener("split-segment",ue),document.addEventListener("delete-segment",De),()=>{document.removeEventListener("update-segments",z),document.removeEventListener("split-segment",ue),document.removeEventListener("delete-segment",De)}},[rt,we]);const mt=z=>{te(z),he("adjust_trim_start")},At=z=>{Qe(z),he("adjust_trim_end")},ct=async()=>{if(R.current&&!I.includes(be)){const z=[...I,be].sort((Te,Oe)=>Te-Oe);xt(z);const ue=[];let De=0;for(let Te=0;Te<=z.length;Te++){const Oe=Te<z.length?z[Te]:we;De<Oe&&(ue.push({id:Date.now()+Te,name:`Segment ${Te+1}`,startTime:De,endTime:Oe,thumbnail:""}),De=Oe)}Ce(ue),he("create_split_points")}},en=async()=>{if(te(0),Qe(we),xt([]),!R.current)return;const z={id:Date.now(),name:"segment",startTime:0,endTime:we,thumbnail:""};Ce([z]),he("reset_all")},jt=()=>{if(st>0){const z=zt[st-1];me.debug(`** UNDO ** to position ${st-1}, action: ${z.action}, segments: ${z.clipSegments.length}`),me.debug("Segment details after undo:",z.clipSegments.map(ue=>`ID: ${ue.id}, Time: ${P(ue.startTime)} - ${P(ue.endTime)}`)),te(z.trimStart),Qe(z.trimEnd),xt([...z.splitPoints]),Ce(JSON.parse(JSON.stringify(z.clipSegments))),Ot(st-1)}},Ye=()=>{if(st<zt.length-1){const z=zt[st+1];me.debug(`** REDO ** to position ${st+1}, action: ${z.action}, segments: ${z.clipSegments.length}`),me.debug("Segment details after redo:",z.clipSegments.map(ue=>`ID: ${ue.id}, Time: ${P(ue.startTime)} - ${P(ue.endTime)}`)),te(z.trimStart),Qe(z.trimEnd),xt([...z.splitPoints]),Ce(JSON.parse(JSON.stringify(z.clipSegments))),Ot(st+1)}},ze=z=>{Le(z)},Ve=()=>{const z=R.current;z&&(z.muted=!z.muted,re(!ge))},vn=(z,ue)=>{Ce(De=>De.map(Te=>Te.id===z?{...Te,...ue}:Te)),X(!0)},Ze=async z=>{var ue;try{const De=(ue=window.MEDIA_DATA)==null?void 0:ue.mediaId;if(!De){console.error("No media ID found");return}const Oe={chapters:z.map(ft=>({startTime:ft.from,endTime:ft.to,text:ft.name}))};console.log("Saving chapters:",Oe);const et=Gt(),Je={"Content-Type":"application/json"};et&&(Je["X-CSRFToken"]=et);const Ie=await fetch(`/api/v1/media/${De}/chapters`,{method:"POST",headers:Je,body:JSON.stringify(Oe)});if(!Ie.ok)throw new Error(`Failed to save chapters: ${Ie.status}`);const We=await Ie.json();console.log("Chapters saved successfully:",We),X(!1)}catch(De){console.error("Error saving chapters:",De)}},Gt=()=>{var Te;const De=`; ${document.cookie}`.split("; csrftoken=");return De.length===2&&((Te=De.pop())==null?void 0:Te.split(";").shift())||""},St=z=>{Z(z)},it=z=>{(!an||on)&&G(z)},an=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[on,ln]=Q.useState(!1);return Q.useEffect(()=>{if(!tt||!R.current)return;const z=R.current,ue=[...rt].sort((Te,Oe)=>Te.startTime-Oe.startTime),De=()=>{const Te=ue[Se];if(!Te)return;const Oe=z.currentTime;if(Oe<Te.startTime){z.currentTime=Te.startTime;return}if(Oe>=Te.endTime-.01)if(Se<ue.length-1){const et=ue[Se+1];z.currentTime=et.startTime,q(Se+1),z.paused&&z.play().catch(Je=>{console.error("Error continuing segment playback:",Je)})}else z.pause(),oe(!1),q(0),z.removeEventListener("timeupdate",De)};return z.addEventListener("timeupdate",De),z.paused&&ue.length>0&&(z.currentTime=ue[0].startTime,z.play().catch(console.error)),()=>{z.removeEventListener("timeupdate",De)}},[tt,Se,rt]),Q.useEffect(()=>{const z=ue=>{const{segmentIndex:De}=ue.detail;tt&&De!==Se&&q(De)};return document.addEventListener("update-segment-index",z),()=>{document.removeEventListener("update-segment-index",z)}},[tt,Se]),{videoRef:R,currentTime:be,duration:we,isPlaying:f,setIsPlaying:W,isMuted:ge,isPlayingSegments:tt,thumbnails:Tt,trimStart:je,trimEnd:Be,splitPoints:I,zoomLevel:ot,clipSegments:rt,selectedSegmentId:U,hasUnsavedChanges:ke,historyPosition:st,history:zt,handleTrimStartChange:mt,handleTrimEndChange:At,handleZoomChange:ze,handleMobileSafeSeek:it,handleSplit:ct,handleReset:en,handleUndo:jt,handleRedo:Ye,handlePlaySegments:()=>{const z=R.current;if(!(!z||rt.length===0))if(tt)z.pause(),oe(!1),q(0);else{oe(!0),q(0);const ue=[...rt].sort((De,Te)=>De.startTime-Te.startTime);z.currentTime=ue[0].startTime,z.play().catch(De=>{console.error("Error starting segments playback:",De),oe(!1)})}},toggleMute:Ve,handleSegmentUpdate:vn,handleChapterSave:Ze,handleSelectedSegmentChange:St,isMobile:an,videoInitialized:on,setVideoInitialized:ln}},tS=()=>{const{videoRef:M,currentTime:R,duration:be,isPlaying:Re,setIsPlaying:we,isMuted:ve,thumbnails:f,trimStart:W,trimEnd:ge,splitPoints:re,zoomLevel:Tt,clipSegments:ce,selectedSegmentId:je,hasUnsavedChanges:te,historyPosition:Be,history:Qe,handleTrimStartChange:I,handleTrimEndChange:xt,handleZoomChange:ot,handleMobileSafeSeek:Le,handleSplit:rt,handleReset:Ce,handleUndo:U,handleRedo:Z,toggleMute:zt,handleSegmentUpdate:Et,handleChapterSave:st,handleSelectedSegmentChange:Ot,isMobile:ke,videoInitialized:X,setVideoInitialized:tt,isPlayingSegments:oe,handlePlaySegments:Se}=eS(),q=()=>{if(!M.current)return;const G=M.current;if(Re){G.pause(),we(!1);return}const he=Number(G.currentTime.toFixed(6));let mt=be,At=null,ct=null;const en=[...ce].sort((Ye,ze)=>Ye.startTime-ze.startTime);At=en.find(Ye=>{const ze=Number(Ye.startTime.toFixed(6)),Ve=Number(Ye.endTime.toFixed(6));return he>ze&&he<Ve||he===ze}),At||(ct=en.find(Ye=>Number(Ye.startTime.toFixed(6))>he)),At?mt=Number(At.endTime.toFixed(6)):ct&&(mt=Number(ct.startTime.toFixed(6)));const jt=()=>{if(!G)return;const Ye=Number(G.currentTime.toFixed(6));if(Number((mt-Ye).toFixed(6))<=0||Ye>=mt){G.pause();const Ve=()=>{if(!G)return;G.currentTime=mt,Le(mt);const vn=Number(G.currentTime.toFixed(6)),Ze=Number(Math.abs(vn-mt).toFixed(6));me.debug("Position verification:",{target:P(mt),actual:P(vn),difference:Ze}),Ze>0&&(G.currentTime=mt,Le(mt))};Ve(),setTimeout(Ve,5),setTimeout(Ve,10),setTimeout(Ve,20),setTimeout(Ve,50),G.removeEventListener("timeupdate",jt),we(!1),me.debug("Stopped at position:",{target:P(mt),actual:P(G.currentTime),type:At?"segment end":ct?"next segment start":"end of video",segment:At?{id:At.id,start:P(At.startTime),end:P(At.endTime)}:null,nextSegment:ct?{id:ct.id,start:P(ct.startTime),end:P(ct.endTime)}:null});return}};G.addEventListener("timeupdate",jt),G.play().then(()=>{we(!0),tt(!0),me.debug("Playback started:",{from:P(he),to:P(mt),currentSegment:At?{id:At.id,start:P(At.startTime),end:P(At.endTime)}:"None",nextSegment:ct?{id:ct.id,start:P(ct.startTime),end:P(ct.endTime)}:"None"})}).catch(Ye=>{console.error("Error playing video:",Ye)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(Z0,{videoRef:M,onPlay:q}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(P0,{videoRef:M,currentTime:R,duration:be,isPlaying:Re,isMuted:ve,onPlayPause:q,onSeek:Le,onToggleMute:zt}),p.jsx(K0,{onSplit:rt,onReset:Ce,onUndo:U,onRedo:Z,onPlaySegments:Se,onPlay:q,isPlaying:Re,isPlayingSegments:oe,canUndo:Be>0,canRedo:Be<Qe.length-1}),p.jsx(Q0,{currentTime:R,duration:be,thumbnails:f,trimStart:W,trimEnd:ge,splitPoints:re,zoomLevel:Tt,clipSegments:ce,selectedSegmentId:je,onSelectedSegmentChange:Ot,onSegmentUpdate:Et,onChapterSave:st,onTrimStartChange:I,onTrimEndChange:xt,onZoomChange:ot,onSeek:Le,videoRef:M,hasUnsavedChanges:te,isIOSUninitialized:ke&&!X,isPlaying:Re,setIsPlaying:we,onPlayPause:q,isPlayingSegments:oe}),p.jsx(J0,{segments:ce,selectedSegmentId:je})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Dm=()=>{const M=document.getElementById("chapters-editor-root");M&&Sm(M).render(p.jsx(tS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Dm):Dm()})();
|
|
//# sourceMappingURL=chapters-editor.js.map
|