react-screenshots 0.5.15 → 0.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/electron/assets/index.7793f29e.js +0 -222
- package/electron/assets/index.78c5dcbf.css +0 -1
- package/electron/electron.html +0 -14
- package/lib/react-screenshots.cjs.js +0 -14
- package/lib/react-screenshots.es.js +0 -3166
- package/lib/style.css +0 -1
- package/lib/types/ScreenshotsBackground/getBoundsByPoints.d.ts +0 -2
- package/lib/types/ScreenshotsBackground/index.d.ts +0 -4
- package/lib/types/ScreenshotsButton/index.d.ts +0 -12
- package/lib/types/ScreenshotsCanvas/getBoundsByPoints.d.ts +0 -2
- package/lib/types/ScreenshotsCanvas/getPoints.d.ts +0 -2
- package/lib/types/ScreenshotsCanvas/index.d.ts +0 -15
- package/lib/types/ScreenshotsCanvas/isPointInDraw.d.ts +0 -2
- package/lib/types/ScreenshotsColor/index.d.ts +0 -8
- package/lib/types/ScreenshotsContext.d.ts +0 -29
- package/lib/types/ScreenshotsMagnifier/index.d.ts +0 -8
- package/lib/types/ScreenshotsOperations/index.d.ts +0 -6
- package/lib/types/ScreenshotsOption/index.d.ts +0 -15
- package/lib/types/ScreenshotsSize/index.d.ts +0 -8
- package/lib/types/ScreenshotsSizeColor/index.d.ts +0 -10
- package/lib/types/ScreenshotsTextarea/calculateNodeSize.d.ts +0 -17
- package/lib/types/ScreenshotsTextarea/index.d.ts +0 -15
- package/lib/types/composeImage.d.ts +0 -10
- package/lib/types/exports.d.ts +0 -3
- package/lib/types/hooks/useBounds.d.ts +0 -7
- package/lib/types/hooks/useCall.d.ts +0 -2
- package/lib/types/hooks/useCanvasContextRef.d.ts +0 -2
- package/lib/types/hooks/useCanvasMousedown.d.ts +0 -1
- package/lib/types/hooks/useCanvasMousemove.d.ts +0 -1
- package/lib/types/hooks/useCanvasMouseup.d.ts +0 -1
- package/lib/types/hooks/useCursor.d.ts +0 -6
- package/lib/types/hooks/useDispatcher.d.ts +0 -2
- package/lib/types/hooks/useDrawSelect.d.ts +0 -2
- package/lib/types/hooks/useEmiter.d.ts +0 -8
- package/lib/types/hooks/useHistory.d.ts +0 -16
- package/lib/types/hooks/useLang.d.ts +0 -2
- package/lib/types/hooks/useOperation.d.ts +0 -6
- package/lib/types/hooks/useReset.d.ts +0 -2
- package/lib/types/hooks/useStore.d.ts +0 -2
- package/lib/types/index.d.ts +0 -13
- package/lib/types/operations/Arrow/draw.d.ts +0 -11
- package/lib/types/operations/Arrow/index.d.ts +0 -22
- package/lib/types/operations/Brush/draw.d.ts +0 -3
- package/lib/types/operations/Brush/index.d.ts +0 -14
- package/lib/types/operations/Cancel/index.d.ts +0 -2
- package/lib/types/operations/Ellipse/draw.d.ts +0 -11
- package/lib/types/operations/Ellipse/index.d.ts +0 -28
- package/lib/types/operations/Mosaic/index.d.ts +0 -11
- package/lib/types/operations/Ok/index.d.ts +0 -2
- package/lib/types/operations/Rectangle/draw.d.ts +0 -11
- package/lib/types/operations/Rectangle/index.d.ts +0 -28
- package/lib/types/operations/Redo/index.d.ts +0 -2
- package/lib/types/operations/Save/index.d.ts +0 -2
- package/lib/types/operations/Text/index.d.ts +0 -22
- package/lib/types/operations/Undo/index.d.ts +0 -2
- package/lib/types/operations/index.d.ts +0 -3
- package/lib/types/operations/utils.d.ts +0 -4
- package/lib/types/types.d.ts +0 -39
- package/lib/types/useGetLoadedImage.d.ts +0 -1
- package/lib/types/zh_CN.d.ts +0 -16
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
const D0=function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))x(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const s of m.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&x(s)}).observe(document,{childList:!0,subtree:!0});function y(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerpolicy&&(m.referrerPolicy=h.referrerpolicy),h.crossorigin==="use-credentials"?m.credentials="include":h.crossorigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function x(h){if(h.ep)return;h.ep=!0;const m=y(h);fetch(h.href,m)}};D0();var R={exports:{}},Gg={};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var Vg=Object.getOwnPropertySymbols,_0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function k0(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function O0(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var d={},y=0;y<10;y++)d["_"+String.fromCharCode(y)]=y;var x=Object.getOwnPropertyNames(d).map(function(m){return d[m]});if(x.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(m){h[m]=m}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var dp=O0()?Object.assign:function(l,d){for(var y,x=k0(l),h,m=1;m<arguments.length;m++){y=Object(arguments[m]);for(var s in y)_0.call(y,s)&&(x[s]=y[s]);if(Vg){h=Vg(y);for(var S=0;S<h.length;S++)w0.call(y,h[S])&&(x[h[S]]=y[h[S]])}}return x};/** @license React v17.0.2
|
|
6
|
-
* react.development.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/(function(l){(function(){var d=dp,y="17.0.2",x=60103,h=60106;l.Fragment=60107,l.StrictMode=60108,l.Profiler=60114;var m=60109,s=60110,S=60112;l.Suspense=60113;var z=60120,k=60115,T=60116,D=60121,N=60122,E=60117,L=60129,te=60131;if(typeof Symbol=="function"&&Symbol.for){var G=Symbol.for;x=G("react.element"),h=G("react.portal"),l.Fragment=G("react.fragment"),l.StrictMode=G("react.strict_mode"),l.Profiler=G("react.profiler"),m=G("react.provider"),s=G("react.context"),S=G("react.forward_ref"),l.Suspense=G("react.suspense"),z=G("react.suspense_list"),k=G("react.memo"),T=G("react.lazy"),D=G("react.block"),N=G("react.server.block"),E=G("react.fundamental"),G("react.scope"),G("react.opaque.id"),L=G("react.debug_trace_mode"),G("react.offscreen"),te=G("react.legacy_hidden")}var re=typeof Symbol=="function"&&Symbol.iterator,X="@@iterator";function W(f){if(f===null||typeof f!="object")return null;var C=re&&f[re]||f[X];return typeof C=="function"?C:null}var H={current:null},_={transition:0},Y={current:null},q={},K=null;function pe(f){K=f}q.setExtraStackFrame=function(f){K=f},q.getCurrentStack=null,q.getStackAddendum=function(){var f="";K&&(f+=K);var C=q.getCurrentStack;return C&&(f+=C()||""),f};var Ce={current:!1},ce={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:_,ReactCurrentOwner:Y,IsSomeRendererActing:Ce,assign:d};ce.ReactDebugCurrentFrame=q;function Ze(f){{for(var C=arguments.length,U=new Array(C>1?C-1:0),V=1;V<C;V++)U[V-1]=arguments[V];De("warn",f,U)}}function de(f){{for(var C=arguments.length,U=new Array(C>1?C-1:0),V=1;V<C;V++)U[V-1]=arguments[V];De("error",f,U)}}function De(f,C,U){{var V=ce.ReactDebugCurrentFrame,ne=V.getStackAddendum();ne!==""&&(C+="%s",U=U.concat([ne]));var xe=U.map(function(ye){return""+ye});xe.unshift("Warning: "+C),Function.prototype.apply.call(console[f],console,xe)}}var He={};function Ie(f,C){{var U=f.constructor,V=U&&(U.displayName||U.name)||"ReactClass",ne=V+"."+C;if(He[ne])return;de("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.",C,V),He[ne]=!0}}var Ot={isMounted:function(f){return!1},enqueueForceUpdate:function(f,C,U){Ie(f,"forceUpdate")},enqueueReplaceState:function(f,C,U,V){Ie(f,"replaceState")},enqueueSetState:function(f,C,U,V){Ie(f,"setState")}},at={};Object.freeze(at);function dt(f,C,U){this.props=f,this.context=C,this.refs=at,this.updater=U||Ot}dt.prototype.isReactComponent={},dt.prototype.setState=function(f,C){if(!(typeof f=="object"||typeof f=="function"||f==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,f,C,"setState")},dt.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};{var wn={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)."]},$r=function(f,C){Object.defineProperty(dt.prototype,f,{get:function(){Ze("%s(...) is deprecated in plain JavaScript React classes. %s",C[0],C[1])}})};for(var $t in wn)wn.hasOwnProperty($t)&&$r($t,wn[$t])}function Yn(){}Yn.prototype=dt.prototype;function Zt(f,C,U){this.props=f,this.context=C,this.refs=at,this.updater=U||Ot}var ln=Zt.prototype=new Yn;ln.constructor=Zt,d(ln,dt.prototype),ln.isPureReactComponent=!0;function Nt(){var f={current:null};return Object.seal(f),f}function kn(f,C,U){var V=C.displayName||C.name||"";return f.displayName||(V!==""?U+"("+V+")":U)}function qe(f){return f.displayName||"Context"}function Ge(f){if(f==null)return null;if(typeof f.tag=="number"&&de("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case l.Fragment:return"Fragment";case h:return"Portal";case l.Profiler:return"Profiler";case l.StrictMode:return"StrictMode";case l.Suspense:return"Suspense";case z:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case s:var C=f;return qe(C)+".Consumer";case m:var U=f;return qe(U._context)+".Provider";case S:return kn(f,f.render,"ForwardRef");case k:return Ge(f.type);case D:return Ge(f._render);case T:{var V=f,ne=V._payload,xe=V._init;try{return Ge(xe(ne))}catch{return null}}}return null}var Dt=Object.prototype.hasOwnProperty,pt={key:!0,ref:!0,__self:!0,__source:!0},et,yn,Pt;Pt={};function Mt(f){if(Dt.call(f,"ref")){var C=Object.getOwnPropertyDescriptor(f,"ref").get;if(C&&C.isReactWarning)return!1}return f.ref!==void 0}function On(f){if(Dt.call(f,"key")){var C=Object.getOwnPropertyDescriptor(f,"key").get;if(C&&C.isReactWarning)return!1}return f.key!==void 0}function er(f,C){var U=function(){et||(et=!0,de("%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)",C))};U.isReactWarning=!0,Object.defineProperty(f,"key",{get:U,configurable:!0})}function gn(f,C){var U=function(){yn||(yn=!0,de("%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)",C))};U.isReactWarning=!0,Object.defineProperty(f,"ref",{get:U,configurable:!0})}function Pr(f){if(typeof f.ref=="string"&&Y.current&&f.__self&&Y.current.stateNode!==f.__self){var C=Ge(Y.current.type);Pt[C]||(de('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',C,f.ref),Pt[C]=!0)}}var sn=function(f,C,U,V,ne,xe,ye){var he={$$typeof:x,type:f,key:C,ref:U,props:ye,_owner:xe};return he._store={},Object.defineProperty(he._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(he,"_self",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.defineProperty(he,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.freeze&&(Object.freeze(he.props),Object.freeze(he)),he};function tr(f,C,U){var V,ne={},xe=null,ye=null,he=null,ze=null;if(C!=null){Mt(C)&&(ye=C.ref,Pr(C)),On(C)&&(xe=""+C.key),he=C.__self===void 0?null:C.__self,ze=C.__source===void 0?null:C.__source;for(V in C)Dt.call(C,V)&&!pt.hasOwnProperty(V)&&(ne[V]=C[V])}var Pe=arguments.length-2;if(Pe===1)ne.children=U;else if(Pe>1){for(var tt=Array(Pe),ht=0;ht<Pe;ht++)tt[ht]=arguments[ht+2];Object.freeze&&Object.freeze(tt),ne.children=tt}if(f&&f.defaultProps){var Wt=f.defaultProps;for(V in Wt)ne[V]===void 0&&(ne[V]=Wt[V])}if(xe||ye){var It=typeof f=="function"?f.displayName||f.name||"Unknown":f;xe&&er(ne,It),ye&&gn(ne,It)}return sn(f,xe,ye,he,ze,Y.current,ne)}function Yr(f,C){var U=sn(f.type,C,f.ref,f._self,f._source,f._owner,f.props);return U}function nr(f,C,U){if(f==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+f+".");var V,ne=d({},f.props),xe=f.key,ye=f.ref,he=f._self,ze=f._source,Pe=f._owner;if(C!=null){Mt(C)&&(ye=C.ref,Pe=Y.current),On(C)&&(xe=""+C.key);var tt;f.type&&f.type.defaultProps&&(tt=f.type.defaultProps);for(V in C)Dt.call(C,V)&&!pt.hasOwnProperty(V)&&(C[V]===void 0&&tt!==void 0?ne[V]=tt[V]:ne[V]=C[V])}var ht=arguments.length-2;if(ht===1)ne.children=U;else if(ht>1){for(var Wt=Array(ht),It=0;It<ht;It++)Wt[It]=arguments[It+2];ne.children=Wt}return sn(f.type,xe,ye,he,ze,Pe,ne)}function Vt(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var Nn=".",St=":";function vt(f){var C=/[=:]/g,U={"=":"=0",":":"=2"},V=f.replace(C,function(ne){return U[ne]});return"$"+V}var Wr=!1,Rr=/\/+/g;function rr(f){return f.replace(Rr,"$&/")}function J(f,C){return typeof f=="object"&&f!==null&&f.key!=null?vt(""+f.key):C.toString(36)}function fe(f,C,U,V,ne){var xe=typeof f;(xe==="undefined"||xe==="boolean")&&(f=null);var ye=!1;if(f===null)ye=!0;else switch(xe){case"string":case"number":ye=!0;break;case"object":switch(f.$$typeof){case x:case h:ye=!0}}if(ye){var he=f,ze=ne(he),Pe=V===""?Nn+J(he,0):V;if(Array.isArray(ze)){var tt="";Pe!=null&&(tt=rr(Pe)+"/"),fe(ze,C,tt,"",function(po){return po})}else ze!=null&&(Vt(ze)&&(ze=Yr(ze,U+(ze.key&&(!he||he.key!==ze.key)?rr(""+ze.key)+"/":"")+Pe)),C.push(ze));return 1}var ht,Wt,It=0,cn=V===""?Nn:V+St;if(Array.isArray(f))for(var Kr=0;Kr<f.length;Kr++)ht=f[Kr],Wt=cn+J(ht,Kr),It+=fe(ht,C,U,Wt,ne);else{var ri=W(f);if(typeof ri=="function"){var co=f;ri===co.entries&&(Wr||Ze("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Wr=!0);for(var Ws=ri.call(co),fo,Is=0;!(fo=Ws.next()).done;)ht=fo.value,Wt=cn+J(ht,Is++),It+=fe(ht,C,U,Wt,ne)}else if(xe==="object"){var ai=""+f;throw Error("Objects are not valid as a React child (found: "+(ai==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":ai)+"). If you meant to render a collection of children, use an array instead.")}}return It}function Se(f,C,U){if(f==null)return f;var V=[],ne=0;return fe(f,V,"","",function(xe){return C.call(U,xe,ne++)}),V}function Me(f){var C=0;return Se(f,function(){C++}),C}function $e(f,C,U){Se(f,function(){C.apply(this,arguments)},U)}function it(f){return Se(f,function(C){return C})||[]}function ot(f){if(!Vt(f))throw Error("React.Children.only expected to receive a single React element child.");return f}function _t(f,C){C===void 0?C=null:C!==null&&typeof C!="function"&&de("createContext: Expected the optional second argument to be a function. Instead received: %s",C);var U={$$typeof:s,_calculateChangedBits:C,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null};U.Provider={$$typeof:m,_context:U};var V=!1,ne=!1,xe=!1;{var ye={$$typeof:s,_context:U,_calculateChangedBits:U._calculateChangedBits};Object.defineProperties(ye,{Provider:{get:function(){return ne||(ne=!0,de("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),U.Provider},set:function(he){U.Provider=he}},_currentValue:{get:function(){return U._currentValue},set:function(he){U._currentValue=he}},_currentValue2:{get:function(){return U._currentValue2},set:function(he){U._currentValue2=he}},_threadCount:{get:function(){return U._threadCount},set:function(he){U._threadCount=he}},Consumer:{get:function(){return V||(V=!0,de("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),U.Consumer}},displayName:{get:function(){return U.displayName},set:function(he){xe||(Ze("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",he),xe=!0)}}}),U.Consumer=ye}return U._currentRenderer=null,U._currentRenderer2=null,U}var Xe=-1,en=0,Ir=1,ar=2;function Er(f){if(f._status===Xe){var C=f._result,U=C(),V=f;V._status=en,V._result=U,U.then(function(ne){if(f._status===en){var xe=ne.default;xe===void 0&&de(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
13
|
-
|
|
14
|
-
Your code should look like:
|
|
15
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,ne);var ye=f;ye._status=Ir,ye._result=xe}},function(ne){if(f._status===en){var xe=f;xe._status=ar,xe._result=ne}})}if(f._status===Ir)return f._result;throw f._result}function qr(f){var C={_status:-1,_result:f},U={$$typeof:T,_payload:C,_init:Er};{var V,ne;Object.defineProperties(U,{defaultProps:{configurable:!0,get:function(){return V},set:function(xe){de("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."),V=xe,Object.defineProperty(U,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return ne},set:function(xe){de("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."),ne=xe,Object.defineProperty(U,"propTypes",{enumerable:!0})}}})}return U}function Wn(f){f!=null&&f.$$typeof===k?de("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof f!="function"?de("forwardRef requires a render function but was given %s.",f===null?"null":typeof f):f.length!==0&&f.length!==2&&de("forwardRef render functions accept exactly two parameters: props and ref. %s",f.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),f!=null&&(f.defaultProps!=null||f.propTypes!=null)&&de("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var C={$$typeof:S,render:f};{var U;Object.defineProperty(C,"displayName",{enumerable:!1,configurable:!0,get:function(){return U},set:function(V){U=V,f.displayName==null&&(f.displayName=V)}})}return C}var ir=!1;function In(f){return!!(typeof f=="string"||typeof f=="function"||f===l.Fragment||f===l.Profiler||f===L||f===l.StrictMode||f===l.Suspense||f===z||f===te||ir||typeof f=="object"&&f!==null&&(f.$$typeof===T||f.$$typeof===k||f.$$typeof===m||f.$$typeof===s||f.$$typeof===S||f.$$typeof===E||f.$$typeof===D||f[0]===N))}function g(f,C){In(f)||de("memo: The first argument must be a component. Instead received: %s",f===null?"null":typeof f);var U={$$typeof:k,type:f,compare:C===void 0?null:C};{var V;Object.defineProperty(U,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(ne){V=ne,f.displayName==null&&(f.displayName=ne)}})}return U}function B(){var f=H.current;if(f===null)throw 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:
|
|
16
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
17
|
-
2. You might be breaking the Rules of Hooks
|
|
18
|
-
3. You might have more than one copy of React in the same app
|
|
19
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return f}function ae(f,C){var U=B();if(C!==void 0&&de("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",C,typeof C=="number"&&Array.isArray(arguments[2])?`
|
|
20
|
-
|
|
21
|
-
Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks`:""),f._context!==void 0){var V=f._context;V.Consumer===f?de("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?"):V.Provider===f&&de("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return U.useContext(f,C)}function me(f){var C=B();return C.useState(f)}function Oe(f,C,U){var V=B();return V.useReducer(f,C,U)}function Ae(f){var C=B();return C.useRef(f)}function _e(f,C){var U=B();return U.useEffect(f,C)}function Ee(f,C){var U=B();return U.useLayoutEffect(f,C)}function we(f,C){var U=B();return U.useCallback(f,C)}function Qe(f,C){var U=B();return U.useMemo(f,C)}function ut(f,C,U){var V=B();return V.useImperativeHandle(f,C,U)}function At(f,C){{var U=B();return U.useDebugValue(f,C)}}var Ut=0,Gr,tn,to,no,ro,ao,io;function oo(){}oo.__reactDisabledLog=!0;function Mn(){{if(Ut===0){Gr=console.log,tn=console.info,to=console.warn,no=console.error,ro=console.group,ao=console.groupCollapsed,io=console.groupEnd;var f={configurable:!0,enumerable:!0,value:oo,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}Ut++}}function An(){{if(Ut--,Ut===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d({},f,{value:Gr}),info:d({},f,{value:tn}),warn:d({},f,{value:to}),error:d({},f,{value:no}),group:d({},f,{value:ro}),groupCollapsed:d({},f,{value:ao}),groupEnd:d({},f,{value:io})})}Ut<0&&de("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xa=ce.ReactCurrentDispatcher,Sa;function bn(f,C,U){{if(Sa===void 0)try{throw Error()}catch(ne){var V=ne.stack.trim().match(/\n( *(at )?)/);Sa=V&&V[1]||""}return`
|
|
22
|
-
`+Sa+f}}var Ca=!1,Tr;{var js=typeof WeakMap=="function"?WeakMap:Map;Tr=new js}function ei(f,C){if(!f||Ca)return"";{var U=Tr.get(f);if(U!==void 0)return U}var V;Ca=!0;var ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var xe;xe=xa.current,xa.current=null,Mn();try{if(C){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(cn){V=cn}Reflect.construct(f,[],ye)}else{try{ye.call()}catch(cn){V=cn}f.call(ye.prototype)}}else{try{throw Error()}catch(cn){V=cn}f()}}catch(cn){if(cn&&V&&typeof cn.stack=="string"){for(var he=cn.stack.split(`
|
|
23
|
-
`),ze=V.stack.split(`
|
|
24
|
-
`),Pe=he.length-1,tt=ze.length-1;Pe>=1&&tt>=0&&he[Pe]!==ze[tt];)tt--;for(;Pe>=1&&tt>=0;Pe--,tt--)if(he[Pe]!==ze[tt]){if(Pe!==1||tt!==1)do if(Pe--,tt--,tt<0||he[Pe]!==ze[tt]){var ht=`
|
|
25
|
-
`+he[Pe].replace(" at new "," at ");return typeof f=="function"&&Tr.set(f,ht),ht}while(Pe>=1&&tt>=0);break}}}finally{Ca=!1,xa.current=xe,An(),Error.prepareStackTrace=ne}var Wt=f?f.displayName||f.name:"",It=Wt?bn(Wt):"";return typeof f=="function"&&Tr.set(f,It),It}function ku(f,C,U){return ei(f,!1)}function Ra(f){var C=f.prototype;return!!(C&&C.isReactComponent)}function ti(f,C,U){if(f==null)return"";if(typeof f=="function")return ei(f,Ra(f));if(typeof f=="string")return bn(f);switch(f){case l.Suspense:return bn("Suspense");case z:return bn("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case S:return ku(f.render);case k:return ti(f.type,C,U);case D:return ku(f._render);case T:{var V=f,ne=V._payload,xe=V._init;try{return ti(xe(ne),C,U)}catch{}}}return""}var ni={},Ou=ce.ReactDebugCurrentFrame;function Ea(f){if(f){var C=f._owner,U=ti(f.type,f._source,C?C.type:null);Ou.setExtraStackFrame(U)}else Ou.setExtraStackFrame(null)}function Hs(f,C,U,V,ne){{var xe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ye in f)if(xe(f,ye)){var he=void 0;try{if(typeof f[ye]!="function"){var ze=Error((V||"React class")+": "+U+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}he=f[ye](C,ye,V,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){he=Pe}he&&!(he instanceof Error)&&(Ea(ne),de("%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).",V||"React class",U,ye,typeof he),Ea(null)),he instanceof Error&&!(he.message in ni)&&(ni[he.message]=!0,Ea(ne),de("Failed %s type: %s",U,he.message),Ea(null))}}}function Dr(f){if(f){var C=f._owner,U=ti(f.type,f._source,C?C.type:null);pe(U)}else pe(null)}var Z;Z=!1;function uo(){if(Y.current){var f=Ge(Y.current.type);if(f)return`
|
|
26
|
-
|
|
27
|
-
Check the render method of \``+f+"`."}return""}function Yt(f){if(f!==void 0){var C=f.fileName.replace(/^.*[\\\/]/,""),U=f.lineNumber;return`
|
|
28
|
-
|
|
29
|
-
Check your code at `+C+":"+U+"."}return""}function Xr(f){return f!=null?Yt(f.__source):""}var Qr={};function Vs(f){var C=uo();if(!C){var U=typeof f=="string"?f:f.displayName||f.name;U&&(C=`
|
|
30
|
-
|
|
31
|
-
Check the top-level render call using <`+U+">.")}return C}function Bt(f,C){if(!(!f._store||f._store.validated||f.key!=null)){f._store.validated=!0;var U=Vs(C);if(!Qr[U]){Qr[U]=!0;var V="";f&&f._owner&&f._owner!==Y.current&&(V=" It was passed a child from "+Ge(f._owner.type)+"."),Dr(f),de('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,V),Dr(null)}}}function Ct(f,C){if(typeof f=="object"){if(Array.isArray(f))for(var U=0;U<f.length;U++){var V=f[U];Vt(V)&&Bt(V,C)}else if(Vt(f))f._store&&(f._store.validated=!0);else if(f){var ne=W(f);if(typeof ne=="function"&&ne!==f.entries)for(var xe=ne.call(f),ye;!(ye=xe.next()).done;)Vt(ye.value)&&Bt(ye.value,C)}}}function xn(f){{var C=f.type;if(C==null||typeof C=="string")return;var U;if(typeof C=="function")U=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===S||C.$$typeof===k))U=C.propTypes;else return;if(U){var V=Ge(C);Hs(U,f.props,"prop",V,f)}else if(C.PropTypes!==void 0&&!Z){Z=!0;var ne=Ge(C);de("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ne||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&de("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bs(f){{for(var C=Object.keys(f.props),U=0;U<C.length;U++){var V=C[U];if(V!=="children"&&V!=="key"){Dr(f),de("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",V),Dr(null);break}}f.ref!==null&&(Dr(f),de("Invalid attribute `ref` supplied to `React.Fragment`."),Dr(null))}}function nn(f,C,U){var V=In(f);if(!V){var ne="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(ne+=" 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 xe=Xr(C);xe?ne+=xe:ne+=uo();var ye;f===null?ye="null":Array.isArray(f)?ye="array":f!==void 0&&f.$$typeof===x?(ye="<"+(Ge(f.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof f,de("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,ne)}var he=tr.apply(this,arguments);if(he==null)return he;if(V)for(var ze=2;ze<arguments.length;ze++)Ct(arguments[ze],f);return f===l.Fragment?Bs(he):xn(he),he}var qn=!1;function Fs(f){var C=nn.bind(null,f);return C.type=f,qn||(qn=!0,Ze("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(C,"type",{enumerable:!1,get:function(){return Ze("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:f}),f}}),C}function lo(f,C,U){for(var V=nr.apply(this,arguments),ne=2;ne<arguments.length;ne++)Ct(arguments[ne],V.type);return xn(V),V}try{var so=Object.freeze({})}catch{}var Nu=nn,$s=lo,Ps=Fs,Ys={map:Se,forEach:$e,count:Me,toArray:it,only:ot};l.Children=Ys,l.Component=dt,l.PureComponent=Zt,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,l.cloneElement=$s,l.createContext=_t,l.createElement=Nu,l.createFactory=Ps,l.createRef=Nt,l.forwardRef=Wn,l.isValidElement=Vt,l.lazy=qr,l.memo=g,l.useCallback=we,l.useContext=ae,l.useDebugValue=At,l.useEffect=_e,l.useImperativeHandle=ut,l.useLayoutEffect=Ee,l.useMemo=Qe,l.useReducer=Oe,l.useRef=Ae,l.useState=me,l.version=y})()})(Gg);R.exports=Gg;var Xg=R.exports,zs={exports:{}},$n={},Qg={exports:{}},Kg={};/** @license React v0.20.2
|
|
32
|
-
* scheduler.development.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/(function(l){(function(){var d=!1,y=!1,x,h,m,s,S=typeof performance=="object"&&typeof performance.now=="function";if(S){var z=performance;l.unstable_now=function(){return z.now()}}else{var k=Date,T=k.now();l.unstable_now=function(){return k.now()-T}}if(typeof window=="undefined"||typeof MessageChannel!="function"){var D=null,N=null,E=function(){if(D!==null)try{var J=l.unstable_now(),fe=!0;D(fe,J),D=null}catch(Se){throw setTimeout(E,0),Se}};x=function(J){D!==null?setTimeout(x,0,J):(D=J,setTimeout(E,0))},h=function(J,fe){N=setTimeout(J,fe)},m=function(){clearTimeout(N)},l.unstable_shouldYield=function(){return!1},s=l.unstable_forceFrameRate=function(){}}else{var L=window.setTimeout,te=window.clearTimeout;if(typeof console!="undefined"){var G=window.requestAnimationFrame,re=window.cancelAnimationFrame;typeof G!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof re!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var X=!1,W=null,H=-1,_=5,Y=0;l.unstable_shouldYield=function(){return l.unstable_now()>=Y},s=function(){},l.unstable_forceFrameRate=function(J){if(J<0||J>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}J>0?_=Math.floor(1e3/J):_=5};var q=function(){if(W!==null){var J=l.unstable_now();Y=J+_;var fe=!0;try{var Se=W(fe,J);Se?pe.postMessage(null):(X=!1,W=null)}catch(Me){throw pe.postMessage(null),Me}}else X=!1},K=new MessageChannel,pe=K.port2;K.port1.onmessage=q,x=function(J){W=J,X||(X=!0,pe.postMessage(null))},h=function(J,fe){H=L(function(){J(l.unstable_now())},fe)},m=function(){te(H),H=-1}}function Ce(J,fe){var Se=J.length;J.push(fe),de(J,fe,Se)}function ce(J){var fe=J[0];return fe===void 0?null:fe}function Ze(J){var fe=J[0];if(fe!==void 0){var Se=J.pop();return Se!==fe&&(J[0]=Se,De(J,Se,0)),fe}else return null}function de(J,fe,Se){for(var Me=Se;;){var $e=Me-1>>>1,it=J[$e];if(it!==void 0&&He(it,fe)>0)J[$e]=fe,J[Me]=it,Me=$e;else return}}function De(J,fe,Se){for(var Me=Se,$e=J.length;Me<$e;){var it=(Me+1)*2-1,ot=J[it],_t=it+1,Xe=J[_t];if(ot!==void 0&&He(ot,fe)<0)Xe!==void 0&&He(Xe,ot)<0?(J[Me]=Xe,J[_t]=fe,Me=_t):(J[Me]=ot,J[it]=fe,Me=it);else if(Xe!==void 0&&He(Xe,fe)<0)J[Me]=Xe,J[_t]=fe,Me=_t;else return}}function He(J,fe){var Se=J.sortIndex-fe.sortIndex;return Se!==0?Se:J.id-fe.id}var Ie=1,Ot=2,at=3,dt=4,wn=5;function $r(J,fe){}var $t=1073741823,Yn=-1,Zt=250,ln=5e3,Nt=1e4,kn=$t,qe=[],Ge=[],Dt=1,pt=null,et=at,yn=!1,Pt=!1,Mt=!1;function On(J){for(var fe=ce(Ge);fe!==null;){if(fe.callback===null)Ze(Ge);else if(fe.startTime<=J)Ze(Ge),fe.sortIndex=fe.expirationTime,Ce(qe,fe);else return;fe=ce(Ge)}}function er(J){if(Mt=!1,On(J),!Pt)if(ce(qe)!==null)Pt=!0,x(gn);else{var fe=ce(Ge);fe!==null&&h(er,fe.startTime-J)}}function gn(J,fe){Pt=!1,Mt&&(Mt=!1,m()),yn=!0;var Se=et;try{var Me;if(!y)return Pr(J,fe)}finally{pt=null,et=Se,yn=!1}}function Pr(J,fe){var Se=fe;for(On(Se),pt=ce(qe);pt!==null&&!d&&!(pt.expirationTime>Se&&(!J||l.unstable_shouldYield()));){var Me=pt.callback;if(typeof Me=="function"){pt.callback=null,et=pt.priorityLevel;var $e=pt.expirationTime<=Se,it=Me($e);Se=l.unstable_now(),typeof it=="function"?pt.callback=it:pt===ce(qe)&&Ze(qe),On(Se)}else Ze(qe);pt=ce(qe)}if(pt!==null)return!0;var ot=ce(Ge);return ot!==null&&h(er,ot.startTime-Se),!1}function sn(J,fe){switch(J){case Ie:case Ot:case at:case dt:case wn:break;default:J=at}var Se=et;et=J;try{return fe()}finally{et=Se}}function tr(J){var fe;switch(et){case Ie:case Ot:case at:fe=at;break;default:fe=et;break}var Se=et;et=fe;try{return J()}finally{et=Se}}function Yr(J){var fe=et;return function(){var Se=et;et=fe;try{return J.apply(this,arguments)}finally{et=Se}}}function nr(J,fe,Se){var Me=l.unstable_now(),$e;if(typeof Se=="object"&&Se!==null){var it=Se.delay;typeof it=="number"&&it>0?$e=Me+it:$e=Me}else $e=Me;var ot;switch(J){case Ie:ot=Yn;break;case Ot:ot=Zt;break;case wn:ot=kn;break;case dt:ot=Nt;break;case at:default:ot=ln;break}var _t=$e+ot,Xe={id:Dt++,callback:fe,priorityLevel:J,startTime:$e,expirationTime:_t,sortIndex:-1};return $e>Me?(Xe.sortIndex=$e,Ce(Ge,Xe),ce(qe)===null&&Xe===ce(Ge)&&(Mt?m():Mt=!0,h(er,$e-Me))):(Xe.sortIndex=_t,Ce(qe,Xe),!Pt&&!yn&&(Pt=!0,x(gn))),Xe}function Vt(){}function Nn(){!Pt&&!yn&&(Pt=!0,x(gn))}function St(){return ce(qe)}function vt(J){J.callback=null}function Wr(){return et}var Rr=s,rr=null;l.unstable_IdlePriority=wn,l.unstable_ImmediatePriority=Ie,l.unstable_LowPriority=dt,l.unstable_NormalPriority=at,l.unstable_Profiling=rr,l.unstable_UserBlockingPriority=Ot,l.unstable_cancelCallback=vt,l.unstable_continueExecution=Nn,l.unstable_getCurrentPriorityLevel=Wr,l.unstable_getFirstCallbackNode=St,l.unstable_next=tr,l.unstable_pauseExecution=Vt,l.unstable_requestPaint=Rr,l.unstable_runWithPriority=sn,l.unstable_scheduleCallback=nr,l.unstable_wrapCallback=Yr})()})(Kg);Qg.exports=Kg;var Jg={exports:{}},Zg={};/** @license React v0.20.2
|
|
39
|
-
* scheduler-tracing.development.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/(function(l){(function(){var d=0,y=0,x=0;l.__interactionsRef=null,l.__subscriberRef=null,l.__interactionsRef={current:new Set},l.__subscriberRef={current:null};function h(X){var W=l.__interactionsRef.current;l.__interactionsRef.current=new Set;try{return X()}finally{l.__interactionsRef.current=W}}function m(){return l.__interactionsRef.current}function s(){return++x}function S(X,W,H){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d,Y={__count:1,id:y++,name:X,timestamp:W},q=l.__interactionsRef.current,K=new Set(q);K.add(Y),l.__interactionsRef.current=K;var pe=l.__subscriberRef.current,Ce;try{pe!==null&&pe.onInteractionTraced(Y)}finally{try{pe!==null&&pe.onWorkStarted(K,_)}finally{try{Ce=H()}finally{l.__interactionsRef.current=q;try{pe!==null&&pe.onWorkStopped(K,_)}finally{Y.__count--,pe!==null&&Y.__count===0&&pe.onInteractionScheduledWorkCompleted(Y)}}}}return Ce}function z(X){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,H=l.__interactionsRef.current,_=l.__subscriberRef.current;_!==null&&_.onWorkScheduled(H,W),H.forEach(function(K){K.__count++});var Y=!1;function q(){var K=l.__interactionsRef.current;l.__interactionsRef.current=H,_=l.__subscriberRef.current;try{var pe;try{_!==null&&_.onWorkStarted(H,W)}finally{try{pe=X.apply(void 0,arguments)}finally{l.__interactionsRef.current=K,_!==null&&_.onWorkStopped(H,W)}}return pe}finally{Y||(Y=!0,H.forEach(function(Ce){Ce.__count--,_!==null&&Ce.__count===0&&_.onInteractionScheduledWorkCompleted(Ce)}))}}return q.cancel=function(){_=l.__subscriberRef.current;try{_!==null&&_.onWorkCanceled(H,W)}finally{H.forEach(function(pe){pe.__count--,_&&pe.__count===0&&_.onInteractionScheduledWorkCompleted(pe)})}},q}var k=null;k=new Set;function T(X){k.add(X),k.size===1&&(l.__subscriberRef.current={onInteractionScheduledWorkCompleted:E,onInteractionTraced:N,onWorkCanceled:re,onWorkScheduled:L,onWorkStarted:te,onWorkStopped:G})}function D(X){k.delete(X),k.size===0&&(l.__subscriberRef.current=null)}function N(X){var W=!1,H=null;if(k.forEach(function(_){try{_.onInteractionTraced(X)}catch(Y){W||(W=!0,H=Y)}}),W)throw H}function E(X){var W=!1,H=null;if(k.forEach(function(_){try{_.onInteractionScheduledWorkCompleted(X)}catch(Y){W||(W=!0,H=Y)}}),W)throw H}function L(X,W){var H=!1,_=null;if(k.forEach(function(Y){try{Y.onWorkScheduled(X,W)}catch(q){H||(H=!0,_=q)}}),H)throw _}function te(X,W){var H=!1,_=null;if(k.forEach(function(Y){try{Y.onWorkStarted(X,W)}catch(q){H||(H=!0,_=q)}}),H)throw _}function G(X,W){var H=!1,_=null;if(k.forEach(function(Y){try{Y.onWorkStopped(X,W)}catch(q){H||(H=!0,_=q)}}),H)throw _}function re(X,W){var H=!1,_=null;if(k.forEach(function(Y){try{Y.onWorkCanceled(X,W)}catch(q){H||(H=!0,_=q)}}),H)throw _}l.unstable_clear=h,l.unstable_getCurrent=m,l.unstable_getThreadID=s,l.unstable_subscribe=T,l.unstable_trace=S,l.unstable_unsubscribe=D,l.unstable_wrap=z})()})(Zg);Jg.exports=Zg;/** @license React v17.0.2
|
|
46
|
-
* react-dom.development.js
|
|
47
|
-
*
|
|
48
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
49
|
-
*
|
|
50
|
-
* This source code is licensed under the MIT license found in the
|
|
51
|
-
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/(function(){var l=R.exports,d=dp,y=Qg.exports,x=Jg.exports,h=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S("warn",e,n)}}function s(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S("error",e,n)}}function S(e,t,n){{var r=h.ReactDebugCurrentFrame,a=r.getStackAddendum();a!==""&&(t+="%s",n=n.concat([a]));var i=n.map(function(o){return""+o});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}if(!l)throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var z=0,k=1,T=2,D=3,N=4,E=5,L=6,te=7,G=8,re=9,X=10,W=11,H=12,_=13,Y=14,q=15,K=16,pe=17,Ce=18,ce=19,Ze=20,de=21,De=22,He=23,Ie=24,Ot=!0,at=!1,dt=!1,wn=!1,$r=new Set,$t={},Yn={};function Zt(e,t){ln(e,t),ln(e+"Capture",t)}function ln(e,t){$t[e]&&s("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),$t[e]=t;{var n=e.toLowerCase();Yn[n]=e,e==="onDoubleClick"&&(Yn.ondblclick=e)}for(var r=0;r<t.length;r++)$r.add(t[r])}var Nt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",kn=0,qe=1,Ge=2,Dt=3,pt=4,et=5,yn=6,Pt=":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",Mt=Pt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",On="data-reactroot",er=new RegExp("^["+Pt+"]["+Mt+"]*$"),gn=Object.prototype.hasOwnProperty,Pr={},sn={};function tr(e){return gn.call(sn,e)?!0:gn.call(Pr,e)?!1:er.test(e)?(sn[e]=!0,!0):(Pr[e]=!0,s("Invalid attribute name: `%s`",e),!1)}function Yr(e,t,n){return t!==null?t.type===kn:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function nr(e,t,n,r){if(n!==null&&n.type===kn)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(r)return!1;if(n!==null)return!n.acceptsBooleans;var a=e.toLowerCase().slice(0,5);return a!=="data-"&&a!=="aria-"}default:return!1}}function Vt(e,t,n,r){if(t===null||typeof t=="undefined"||nr(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case Dt:return!t;case pt:return t===!1;case et:return isNaN(t);case yn:return isNaN(t)||t<1}return!1}function Nn(e){return vt.hasOwnProperty(e)?vt[e]:null}function St(e,t,n,r,a,i,o){this.acceptsBooleans=t===Ge||t===Dt||t===pt,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var vt={},Wr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Wr.forEach(function(e){vt[e]=new St(e,kn,!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];vt[t]=new St(t,qe,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){vt[e]=new St(e,Ge,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){vt[e]=new St(e,Ge,!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){vt[e]=new St(e,Dt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){vt[e]=new St(e,Dt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){vt[e]=new St(e,pt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){vt[e]=new St(e,yn,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){vt[e]=new St(e,et,!1,e.toLowerCase(),null,!1,!1)});var Rr=/[\-\:]([a-z])/g,rr=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(Rr,rr);vt[t]=new St(t,qe,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Rr,rr);vt[t]=new St(t,qe,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Rr,rr);vt[t]=new St(t,qe,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){vt[e]=new St(e,qe,!1,e.toLowerCase(),null,!1,!1)});var J="xlinkHref";vt[J]=new St("xlinkHref",qe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){vt[e]=new St(e,qe,!1,e.toLowerCase(),null,!0,!0)});var fe=/^[\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,Se=!1;function Me(e){!Se&&fe.test(e)&&(Se=!0,s("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 $e(e,t,n,r){if(r.mustUseProperty){var a=r.propertyName;return e[a]}else{r.sanitizeURL&&Me(""+n);var i=r.attributeName,o=null;if(r.type===pt){if(e.hasAttribute(i)){var u=e.getAttribute(i);return u===""?!0:Vt(t,n,r,!1)?u:u===""+n?n:u}}else if(e.hasAttribute(i)){if(Vt(t,n,r,!1))return e.getAttribute(i);if(r.type===Dt)return n;o=e.getAttribute(i)}return Vt(t,n,r,!1)?o===null?n:o:o===""+n?n:o}}function it(e,t,n){{if(!tr(t))return;if(KR(n))return n;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return r===""+n?n:r}}function ot(e,t,n,r){var a=Nn(t);if(!Yr(t,a,r)){if(Vt(t,n,a,r)&&(n=null),r||a===null){if(tr(t)){var i=t;n===null?e.removeAttribute(i):e.setAttribute(i,""+n)}return}var o=a.mustUseProperty;if(o){var u=a.propertyName;if(n===null){var c=a.type;e[u]=c===Dt?!1:""}else e[u]=n;return}var p=a.attributeName,v=a.attributeNamespace;if(n===null)e.removeAttribute(p);else{var O=a.type,b;O===Dt||O===pt&&n===!0?b="":(b=""+n,a.sanitizeURL&&Me(b.toString())),v?e.setAttributeNS(v,p,b):e.setAttribute(p,b)}}}var _t=60103,Xe=60106,en=60107,Ir=60108,ar=60114,Er=60109,qr=60110,Wn=60112,ir=60113,In=60120,g=60115,B=60116,ae=60121,me=60119,Oe=60128,Ae=60129,_e=60130,Ee=60131;if(typeof Symbol=="function"&&Symbol.for){var we=Symbol.for;_t=we("react.element"),Xe=we("react.portal"),en=we("react.fragment"),Ir=we("react.strict_mode"),ar=we("react.profiler"),Er=we("react.provider"),qr=we("react.context"),Wn=we("react.forward_ref"),ir=we("react.suspense"),In=we("react.suspense_list"),g=we("react.memo"),B=we("react.lazy"),ae=we("react.block"),we("react.server.block"),we("react.fundamental"),me=we("react.scope"),Oe=we("react.opaque.id"),Ae=we("react.debug_trace_mode"),_e=we("react.offscreen"),Ee=we("react.legacy_hidden")}var Qe=typeof Symbol=="function"&&Symbol.iterator,ut="@@iterator";function At(e){if(e===null||typeof e!="object")return null;var t=Qe&&e[Qe]||e[ut];return typeof t=="function"?t:null}var Ut=0,Gr,tn,to,no,ro,ao,io;function oo(){}oo.__reactDisabledLog=!0;function Mn(){{if(Ut===0){Gr=console.log,tn=console.info,to=console.warn,no=console.error,ro=console.group,ao=console.groupCollapsed,io=console.groupEnd;var e={configurable:!0,enumerable:!0,value:oo,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ut++}}function An(){{if(Ut--,Ut===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:d({},e,{value:Gr}),info:d({},e,{value:tn}),warn:d({},e,{value:to}),error:d({},e,{value:no}),group:d({},e,{value:ro}),groupCollapsed:d({},e,{value:ao}),groupEnd:d({},e,{value:io})})}Ut<0&&s("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xa=h.ReactCurrentDispatcher,Sa;function bn(e,t,n){{if(Sa===void 0)try{throw Error()}catch(a){var r=a.stack.trim().match(/\n( *(at )?)/);Sa=r&&r[1]||""}return`
|
|
53
|
-
`+Sa+e}}var Ca=!1,Tr;{var js=typeof WeakMap=="function"?WeakMap:Map;Tr=new js}function ei(e,t){if(!e||Ca)return"";{var n=Tr.get(e);if(n!==void 0)return n}var r;Ca=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=xa.current,xa.current=null,Mn();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(F){r=F}Reflect.construct(e,[],o)}else{try{o.call()}catch(F){r=F}e.call(o.prototype)}}else{try{throw Error()}catch(F){r=F}e()}}catch(F){if(F&&r&&typeof F.stack=="string"){for(var u=F.stack.split(`
|
|
54
|
-
`),c=r.stack.split(`
|
|
55
|
-
`),p=u.length-1,v=c.length-1;p>=1&&v>=0&&u[p]!==c[v];)v--;for(;p>=1&&v>=0;p--,v--)if(u[p]!==c[v]){if(p!==1||v!==1)do if(p--,v--,v<0||u[p]!==c[v]){var O=`
|
|
56
|
-
`+u[p].replace(" at new "," at ");return typeof e=="function"&&Tr.set(e,O),O}while(p>=1&&v>=0);break}}}finally{Ca=!1,xa.current=i,An(),Error.prepareStackTrace=a}var b=e?e.displayName||e.name:"",A=b?bn(b):"";return typeof e=="function"&&Tr.set(e,A),A}function ku(e,t,n){return ei(e,!0)}function Ra(e,t,n){return ei(e,!1)}function ti(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ni(e,t,n){if(e==null)return"";if(typeof e=="function")return ei(e,ti(e));if(typeof e=="string")return bn(e);switch(e){case ir:return bn("Suspense");case In:return bn("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Wn:return Ra(e.render);case g:return ni(e.type,t,n);case ae:return Ra(e._render);case B:{var r=e,a=r._payload,i=r._init;try{return ni(i(a),t,n)}catch{}}}return""}function Ou(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case E:return bn(e.type);case K:return bn("Lazy");case _:return bn("Suspense");case ce:return bn("SuspenseList");case z:case T:case q:return Ra(e.type);case W:return Ra(e.type.render);case De:return Ra(e.type._render);case k:return ku(e.type);default:return""}}function Ea(e){try{var t="",n=e;do t+=Ou(n),n=n.return;while(n);return t}catch(r){return`
|
|
57
|
-
Error generating stack: `+r.message+`
|
|
58
|
-
`+r.stack}}function Hs(e,t,n){var r=t.displayName||t.name||"";return e.displayName||(r!==""?n+"("+r+")":n)}function Dr(e){return e.displayName||"Context"}function Z(e){if(e==null)return null;if(typeof e.tag=="number"&&s("Received an unexpected object in getComponentName(). 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 en:return"Fragment";case Xe:return"Portal";case ar:return"Profiler";case Ir:return"StrictMode";case ir:return"Suspense";case In:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qr:var t=e;return Dr(t)+".Consumer";case Er:var n=e;return Dr(n._context)+".Provider";case Wn:return Hs(e,e.render,"ForwardRef");case g:return Z(e.type);case ae:return Z(e._render);case B:{var r=e,a=r._payload,i=r._init;try{return Z(i(a))}catch{return null}}}return null}var uo=h.ReactDebugCurrentFrame,Yt=null,Xr=!1;function Qr(){{if(Yt===null)return null;var e=Yt._debugOwner;if(e!==null&&typeof e!="undefined")return Z(e.type)}return null}function Vs(){return Yt===null?"":Ea(Yt)}function Bt(){uo.getCurrentStack=null,Yt=null,Xr=!1}function Ct(e){uo.getCurrentStack=Vs,Yt=e,Xr=!1}function xn(e){Xr=e}function Bs(){return Xr}function nn(e){return""+e}function qn(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}var Fs={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function lo(e,t){Fs[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||s("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||s("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 so(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nu(e){return e._valueTracker}function $s(e){e._valueTracker=null}function Ps(e){var t="";return e&&(so(e)?t=e.checked?"true":"false":t=e.value),t}function Ys(e){var t=so(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!(e.hasOwnProperty(t)||typeof n=="undefined"||typeof n.get!="function"||typeof n.set!="function")){var a=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){$s(e),delete e[t]}};return o}}function f(e){Nu(e)||(e._valueTracker=Ys(e))}function C(e){if(!e)return!1;var t=Nu(e);if(!t)return!0;var n=t.getValue(),r=Ps(e);return r!==n?(t.setValue(r),!0):!1}function U(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}var V=!1,ne=!1,xe=!1,ye=!1;function he(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function ze(e,t){var n=e,r=t.checked,a=d({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:n._wrapperState.initialChecked});return a}function Pe(e,t){lo("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!ne&&(s("%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",Qr()||"A component",t.type),ne=!0),t.value!==void 0&&t.defaultValue!==void 0&&!V&&(s("%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",Qr()||"A component",t.type),V=!0);var n=e,r=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:qn(t.value!=null?t.value:r),controlled:he(t)}}function tt(e,t){var n=e,r=t.checked;r!=null&&ot(n,"checked",r,!1)}function ht(e,t){var n=e;{var r=he(t);!n._wrapperState.controlled&&r&&!ye&&(s("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"),ye=!0),n._wrapperState.controlled&&!r&&!xe&&(s("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"),xe=!0)}tt(e,t);var a=qn(t.value),i=t.type;if(a!=null)i==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=nn(a)):n.value!==nn(a)&&(n.value=nn(a));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Kr(n,t.type,a):t.hasOwnProperty("defaultValue")&&Kr(n,t.type,qn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function Wt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type,i=a==="submit"||a==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=nn(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var u=r.name;u!==""&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,u!==""&&(r.name=u)}function It(e,t){var n=e;ht(n,t),cn(n,t)}function cn(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var r=e;r.parentNode;)r=r.parentNode;for(var a=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<a.length;i++){var o=a[i];if(!(o===e||o.form!==e.form)){var u=vl(o);if(!u)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");C(o),ht(o,u)}}}}function Kr(e,t,n){(t!=="number"||U(e.ownerDocument)!==e)&&(n==null?e.defaultValue=nn(e._wrapperState.initialValue):e.defaultValue!==nn(n)&&(e.defaultValue=nn(n)))}var ri=!1,co=!1;function Ws(e){var t="";return l.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function fo(e,t){typeof t.children=="object"&&t.children!==null&&l.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||typeof n.type=="string"&&(co||(co=!0,s("Only strings and numbers are supported as <option> children."))))}),t.selected!=null&&!ri&&(s("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ri=!0)}function Is(e,t){t.value!=null&&e.setAttribute("value",nn(qn(t.value)))}function ai(e,t){var n=d({children:void 0},t),r=Ws(t.children);return r&&(n.children=r),n}var po;po=!1;function mp(){var e=Qr();return e?`
|
|
59
|
-
|
|
60
|
-
Check the render method of \``+e+"`.":""}var yp=["value","defaultValue"];function lb(e){{lo("select",e);for(var t=0;t<yp.length;t++){var n=yp[t];if(e[n]!=null){var r=Array.isArray(e[n]);e.multiple&&!r?s("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,mp()):!e.multiple&&r&&s("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,mp())}}}}function ii(e,t,n,r){var a=e.options;if(t){for(var i=n,o={},u=0;u<i.length;u++)o["$"+i[u]]=!0;for(var c=0;c<a.length;c++){var p=o.hasOwnProperty("$"+a[c].value);a[c].selected!==p&&(a[c].selected=p),p&&r&&(a[c].defaultSelected=!0)}}else{for(var v=nn(qn(n)),O=null,b=0;b<a.length;b++){if(a[b].value===v){a[b].selected=!0,r&&(a[b].defaultSelected=!0);return}O===null&&!a[b].disabled&&(O=a[b])}O!==null&&(O.selected=!0)}}function qs(e,t){return d({},t,{value:void 0})}function gp(e,t){var n=e;lb(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!po&&(s("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"),po=!0)}function sb(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;r!=null?ii(n,!!t.multiple,r,!1):t.defaultValue!=null&&ii(n,!!t.multiple,t.defaultValue,!0)}function cb(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var a=t.value;a!=null?ii(n,!!t.multiple,a,!1):r!==!!t.multiple&&(t.defaultValue!=null?ii(n,!!t.multiple,t.defaultValue,!0):ii(n,!!t.multiple,t.multiple?[]:"",!1))}function fb(e,t){var n=e,r=t.value;r!=null&&ii(n,!!t.multiple,r,!1)}var bp=!1;function Gs(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var r=d({},t,{value:void 0,defaultValue:void 0,children:nn(n._wrapperState.initialValue)});return r}function xp(e,t){var n=e;lo("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!bp&&(s("%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",Qr()||"A component"),bp=!0);var r=t.value;if(r==null){var a=t.children,i=t.defaultValue;if(a!=null){s("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Array.isArray(a)){if(!(a.length<=1))throw Error("<textarea> can only have at most one child.");a=a[0]}i=a}}i==null&&(i=""),r=i}n._wrapperState={initialValue:qn(r)}}function Sp(e,t){var n=e,r=qn(t.value),a=qn(t.defaultValue);if(r!=null){var i=nn(r);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}a!=null&&(n.defaultValue=nn(a))}function Cp(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&r!==""&&r!==null&&(n.value=r)}function db(e,t){Sp(e,t)}var Mu="http://www.w3.org/1999/xhtml",Rp="http://www.w3.org/1998/Math/MathML",Xs="http://www.w3.org/2000/svg",Ep={html:Mu,mathml:Rp,svg:Xs};function Qs(e){switch(e){case"svg":return Xs;case"math":return Rp;default:return Mu}}function Ks(e,t){return e==null||e===Mu?Qs(t):e===Xs&&t==="foreignObject"?Mu:e}var pb=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e},Au,Tp=pb(function(e,t){if(e.namespaceURI===Ep.svg&&!("innerHTML"in e)){Au=Au||document.createElement("div"),Au.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Au.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),Un=1,_r=3,Sn=8,Jr=9,Dp=11,Uu=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===_r){n.nodeValue=t;return}}e.textContent=t},vb={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"]},vo={animationIterationCount:!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 hb(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var mb=["Webkit","ms","Moz","O"];Object.keys(vo).forEach(function(e){mb.forEach(function(t){vo[hb(t,e)]=vo[e]})});function Js(e,t,n){var r=t==null||typeof t=="boolean"||t==="";return r?"":!n&&typeof t=="number"&&t!==0&&!(vo.hasOwnProperty(e)&&vo[e])?t+"px":(""+t).trim()}var yb=/([A-Z])/g,gb=/^ms-/;function bb(e){return e.replace(yb,"-$1").toLowerCase().replace(gb,"-ms-")}var _p=function(){};{var xb=/^(?:webkit|moz|o)[A-Z]/,Sb=/^-ms-/,Cb=/-(.)/g,wp=/;\s*$/,oi={},Zs={},kp=!1,Op=!1,Rb=function(e){return e.replace(Cb,function(t,n){return n.toUpperCase()})},Eb=function(e){oi.hasOwnProperty(e)&&oi[e]||(oi[e]=!0,s("Unsupported style property %s. Did you mean %s?",e,Rb(e.replace(Sb,"ms-"))))},Tb=function(e){oi.hasOwnProperty(e)&&oi[e]||(oi[e]=!0,s("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},Db=function(e,t){Zs.hasOwnProperty(t)&&Zs[t]||(Zs[t]=!0,s(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(wp,"")))},_b=function(e,t){kp||(kp=!0,s("`NaN` is an invalid value for the `%s` css style property.",e))},wb=function(e,t){Op||(Op=!0,s("`Infinity` is an invalid value for the `%s` css style property.",e))};_p=function(e,t){e.indexOf("-")>-1?Eb(e):xb.test(e)?Tb(e):wp.test(t)&&Db(e,t),typeof t=="number"&&(isNaN(t)?_b(e,t):isFinite(t)||wb(e,t))}}var kb=_p;function Ob(e){{var t="",n="";for(var r in e)if(!!e.hasOwnProperty(r)){var a=e[r];if(a!=null){var i=r.indexOf("--")===0;t+=n+(i?r:bb(r))+":",t+=Js(r,a,i),n=";"}}return t||null}}function Np(e,t){var n=e.style;for(var r in t)if(!!t.hasOwnProperty(r)){var a=r.indexOf("--")===0;a||kb(r,t[r]);var i=Js(r,t[r],a);r==="float"&&(r="cssFloat"),a?n.setProperty(r,i):n[r]=i}}function Nb(e){return e==null||typeof e=="boolean"||e===""}function Mp(e){var t={};for(var n in e)for(var r=vb[n]||[n],a=0;a<r.length;a++)t[r[a]]=n;return t}function Mb(e,t){{if(!t)return;var n=Mp(e),r=Mp(t),a={};for(var i in n){var o=n[i],u=r[i];if(u&&o!==u){var c=o+","+u;if(a[c])continue;a[c]=!0,s("%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.",Nb(e[o])?"Removing":"Updating",o,u)}}}}var Ab={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},Ub=d({menuitem:!0},Ab),zb="__html";function ec(e,t){if(!!t){if(Ub[e]&&!(t.children==null&&t.dangerouslySetInnerHTML==null))throw Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(!(typeof t.dangerouslySetInnerHTML=="object"&&zb in t.dangerouslySetInnerHTML))throw 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&&s("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 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 Ta(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 zu={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",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"},Ap={"aria-current":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},ui={},Lb=new RegExp("^(aria)-["+Mt+"]*$"),jb=new RegExp("^(aria)[A-Z]["+Mt+"]*$"),Hb=Object.prototype.hasOwnProperty;function Vb(e,t){{if(Hb.call(ui,t)&&ui[t])return!0;if(jb.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=Ap.hasOwnProperty(n)?n:null;if(r==null)return s("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),ui[t]=!0,!0;if(t!==r)return s("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),ui[t]=!0,!0}if(Lb.test(t)){var a=t.toLowerCase(),i=Ap.hasOwnProperty(a)?a:null;if(i==null)return ui[t]=!0,!1;if(t!==i)return s("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),ui[t]=!0,!0}}return!0}function Bb(e,t){{var n=[];for(var r in t){var a=Vb(e,r);a||n.push(r)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?s("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&s("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function Fb(e,t){Ta(e,t)||Bb(e,t)}var Up=!1;function $b(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Up&&(Up=!0,e==="select"&&t.multiple?s("`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):s("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var zp=function(){};{var rn={},Pb=Object.prototype.hasOwnProperty,Lp=/^on./,Yb=/^on[^A-Z]/,Wb=new RegExp("^(aria)-["+Mt+"]*$"),Ib=new RegExp("^(aria)[A-Z]["+Mt+"]*$");zp=function(e,t,n,r){if(Pb.call(rn,t)&&rn[t])return!0;var a=t.toLowerCase();if(a==="onfocusin"||a==="onfocusout")return s("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."),rn[t]=!0,!0;if(r!=null){var i=r.registrationNameDependencies,o=r.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var u=o.hasOwnProperty(a)?o[a]:null;if(u!=null)return s("Invalid event handler property `%s`. Did you mean `%s`?",t,u),rn[t]=!0,!0;if(Lp.test(t))return s("Unknown event handler property `%s`. It will be ignored.",t),rn[t]=!0,!0}else if(Lp.test(t))return Yb.test(t)&&s("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),rn[t]=!0,!0;if(Wb.test(t)||Ib.test(t))return!0;if(a==="innerhtml")return s("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),rn[t]=!0,!0;if(a==="aria")return s("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),rn[t]=!0,!0;if(a==="is"&&n!==null&&n!==void 0&&typeof n!="string")return s("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),rn[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return s("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),rn[t]=!0,!0;var c=Nn(t),p=c!==null&&c.type===kn;if(zu.hasOwnProperty(a)){var v=zu[a];if(v!==t)return s("Invalid DOM property `%s`. Did you mean `%s`?",t,v),rn[t]=!0,!0}else if(!p&&t!==a)return s("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,a),rn[t]=!0,!0;return typeof n=="boolean"&&nr(t,n,c,!1)?(n?s('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):s('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),rn[t]=!0,!0):p?!0:nr(t,n,c,!1)?(rn[t]=!0,!1):((n==="false"||n==="true")&&c!==null&&c.type===Dt&&(s("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),rn[t]=!0),!0)}}var qb=function(e,t,n){{var r=[];for(var a in t){var i=zp(e,a,t[a],n);i||r.push(a)}var o=r.map(function(u){return"`"+u+"`"}).join(", ");r.length===1?s("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):r.length>1&&s("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 Gb(e,t,n){Ta(e,t)||qb(e,t,n)}var jp=1,Lu=1<<1,ho=1<<2,Hp=1<<4,Xb=jp|Lu|ho;function tc(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===_r?t.parentNode:t}var nc=null,li=null,si=null;function Vp(e){var t=aa(e);if(!!t){if(typeof nc!="function")throw 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 r=vl(n);nc(t.stateNode,t.type,r)}}}function Qb(e){nc=e}function Bp(e){li?si?si.push(e):si=[e]:li=e}function Kb(){return li!==null||si!==null}function Fp(){if(!!li){var e=li,t=si;if(li=null,si=null,Vp(e),t)for(var n=0;n<t.length;n++)Vp(t[n])}}var rc=function(e,t){return e(t)},$p=function(e,t,n,r,a){return e(t,n,r,a)},ac=function(){},Pp=rc,Zr=!1,ic=!1;function oc(){var e=Kb();e&&(ac(),Fp())}function Jb(e,t){if(Zr)return e(t);Zr=!0;try{return rc(e,t)}finally{Zr=!1,oc()}}function Zb(e,t,n){if(ic)return e(t,n);ic=!0;try{return Pp(e,t,n)}finally{ic=!1,oc()}}function ex(e,t,n,r,a){var i=Zr;Zr=!0;try{return $p(e,t,n,r,a)}finally{Zr=i,Zr||oc()}}function tx(e){Zr||ac()}function nx(e,t,n,r){rc=e,$p=t,ac=n,Pp=r}function rx(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function ax(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&&rx(t));default:return!1}}function mo(e,t){var n=e.stateNode;if(n===null)return null;var r=vl(n);if(r===null)return null;var a=r[t];if(ax(t,e.type,r))return null;if(!(!a||typeof a=="function"))throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}var uc=!1;if(Nt)try{var yo={};Object.defineProperty(yo,"passive",{get:function(){uc=!0}}),window.addEventListener("test",yo,yo),window.removeEventListener("test",yo,yo)}catch{uc=!1}function Yp(e,t,n,r,a,i,o,u,c){var p=Array.prototype.slice.call(arguments,3);try{t.apply(n,p)}catch(v){this.onError(v)}}var Wp=Yp;if(typeof window!="undefined"&&typeof window.dispatchEvent=="function"&&typeof document!="undefined"&&typeof document.createEvent=="function"){var lc=document.createElement("react");Wp=function(t,n,r,a,i,o,u,c,p){if(typeof document=="undefined")throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var v=document.createEvent("Event"),O=!1,b=!0,A=window.event,F=Object.getOwnPropertyDescriptor(window,"event");function Q(){lc.removeEventListener(j,Re,!1),typeof window.event!="undefined"&&window.hasOwnProperty("event")&&(window.event=A)}var ve=Array.prototype.slice.call(arguments,3);function Re(){O=!0,Q(),n.apply(r,ve),b=!1}var be,Ne=!1,Fe=!1;function M(w){if(be=w.error,Ne=!0,be===null&&w.colno===0&&w.lineno===0&&(Fe=!0),w.defaultPrevented&&be!=null&&typeof be=="object")try{be._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",M),lc.addEventListener(j,Re,!1),v.initEvent(j,!1,!1),lc.dispatchEvent(v),F&&Object.defineProperty(window,"event",F),O&&b&&(Ne?Fe&&(be=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.")):be=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(be)),window.removeEventListener("error",M),!O)return Q(),Yp.apply(this,arguments)}}var ix=Wp,ci=!1,ju=null,Hu=!1,sc=null,ox={onError:function(e){ci=!0,ju=e}};function or(e,t,n,r,a,i,o,u,c){ci=!1,ju=null,ix.apply(ox,arguments)}function ux(e,t,n,r,a,i,o,u,c){if(or.apply(this,arguments),ci){var p=ur();Hu||(Hu=!0,sc=p)}}function lx(){if(Hu){var e=sc;throw Hu=!1,sc=null,e}}function wr(){return ci}function ur(){if(ci){var e=ju;return ci=!1,ju=null,e}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function fi(e){return e._reactInternals}function sx(e){return e._reactInternals!==void 0}function cx(e,t){e._reactInternals=t}var mt=0,ea=1,Rt=2,Ye=4,fx=6,kr=8,Vu=16,Ip=32,nt=64,Bu=128,Da=256,go=512,bo=8192,Or=1024,dx=1028,px=932,vx=2047,xo=2048,Nr=4096,cc=16384,hx=h.ReactCurrentOwner;function _a(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do t=r,(t.flags&(Rt|Or))!==mt&&(n=t.return),r=t.return;while(r)}return t.tag===D?n:null}function qp(e){if(e.tag===_){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 Gp(e){return e.tag===D?e.stateNode.containerInfo:null}function mx(e){return _a(e)===e}function yx(e){{var t=hx.current;if(t!==null&&t.tag===k){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||s("%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.",Z(n.type)||"A component"),r._warnedAboutRefsInRender=!0}}var a=fi(e);return a?_a(a)===a:!1}function Xp(e){if(_a(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Qp(e){var t=e.alternate;if(!t){var n=_a(e);if(n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,a=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){var u=i.return;if(u!==null){r=a=u;continue}break}if(i.child===o.child){for(var c=i.child;c;){if(c===r)return Xp(i),e;if(c===a)return Xp(i),t;c=c.sibling}throw Error("Unable to find node on an unmounted component.")}if(r.return!==a.return)r=i,a=o;else{for(var p=!1,v=i.child;v;){if(v===r){p=!0,r=i,a=o;break}if(v===a){p=!0,a=i,r=o;break}v=v.sibling}if(!p){for(v=o.child;v;){if(v===r){p=!0,r=o,a=i;break}if(v===a){p=!0,a=o,r=i;break}v=v.sibling}if(!p)throw 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(r.alternate!==a)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(r.tag!==D)throw Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Kp(e){var t=Qp(e);if(!t)return null;for(var n=t;;){if(n.tag===E||n.tag===L)return n;if(n.child){n.child.return=n,n=n.child;continue}if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function gx(e){var t=Qp(e);if(!t)return null;for(var n=t;;){if(n.tag===E||n.tag===L||at)return n;if(n.child&&n.tag!==N){n.child.return=n,n=n.child;continue}if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Jp(e,t){for(var n=t,r=e.alternate;n!==null;){if(n===e||n===r)return!0;n=n.return}return!1}var Zp;function bx(e){Zp=e}var fc;function xx(e){fc=e}var ev;function Sx(e){ev=e}var tv;function Cx(e){tv=e}var dc=!1,Mr=[],ta=null,na=null,ra=null,So=new Map,Co=new Map,Ro=[];function Rx(){return Mr.length>0}var Ex=["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 nv(e){return Ex.indexOf(e)>-1}function rv(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:n|Hp,nativeEvent:a,targetContainers:[r]}}function av(e,t,n,r,a){var i=rv(e,t,n,r,a);Mr.push(i)}function iv(e,t){switch(e){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;So.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var r=t.pointerId;Co.delete(r);break}}}function Eo(e,t,n,r,a,i){if(e===null||e.nativeEvent!==i){var o=rv(t,n,r,a,i);if(t!==null){var u=aa(t);u!==null&&fc(u)}return o}e.eventSystemFlags|=r;var c=e.targetContainers;return a!==null&&c.indexOf(a)===-1&&c.push(a),e}function Tx(e,t,n,r,a){switch(t){case"focusin":{var i=a;return ta=Eo(ta,e,t,n,r,i),!0}case"dragenter":{var o=a;return na=Eo(na,e,t,n,r,o),!0}case"mouseover":{var u=a;return ra=Eo(ra,e,t,n,r,u),!0}case"pointerover":{var c=a,p=c.pointerId;return So.set(p,Eo(So.get(p)||null,e,t,n,r,c)),!0}case"gotpointercapture":{var v=a,O=v.pointerId;return Co.set(O,Eo(Co.get(O)||null,e,t,n,r,v)),!0}}return!1}function Dx(e){var t=Ua(e.target);if(t!==null){var n=_a(t);if(n!==null){var r=n.tag;if(r===_){var a=qp(n);if(a!==null){e.blockedOn=a,tv(e.lanePriority,function(){y.unstable_runWithPriority(e.priority,function(){ev(n)})});return}}else if(r===D){var i=n.stateNode;if(i.hydrate){e.blockedOn=Gp(n);return}}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],r=Dc(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(r!==null){var a=aa(r);return a!==null&&fc(a),e.blockedOn=r,!1}t.shift()}return!0}function ov(e,t,n){Fu(e)&&n.delete(t)}function _x(){for(dc=!1;Mr.length>0;){var e=Mr[0];if(e.blockedOn!==null){var t=aa(e.blockedOn);t!==null&&Zp(t);break}for(var n=e.targetContainers;n.length>0;){var r=n[0],a=Dc(e.domEventName,e.eventSystemFlags,r,e.nativeEvent);if(a!==null){e.blockedOn=a;break}n.shift()}e.blockedOn===null&&Mr.shift()}ta!==null&&Fu(ta)&&(ta=null),na!==null&&Fu(na)&&(na=null),ra!==null&&Fu(ra)&&(ra=null),So.forEach(ov),Co.forEach(ov)}function To(e,t){e.blockedOn===t&&(e.blockedOn=null,dc||(dc=!0,y.unstable_scheduleCallback(y.unstable_NormalPriority,_x)))}function uv(e){if(Mr.length>0){To(Mr[0],e);for(var t=1;t<Mr.length;t++){var n=Mr[t];n.blockedOn===e&&(n.blockedOn=null)}}ta!==null&&To(ta,e),na!==null&&To(na,e),ra!==null&&To(ra,e);var r=function(u){return To(u,e)};So.forEach(r),Co.forEach(r);for(var a=0;a<Ro.length;a++){var i=Ro[a];i.blockedOn===e&&(i.blockedOn=null)}for(;Ro.length>0;){var o=Ro[0];if(o.blockedOn!==null)break;Dx(o),o.blockedOn===null&&Ro.shift()}}var pc=0,lv=1,vc=2;function $u(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var di={animationend:$u("Animation","AnimationEnd"),animationiteration:$u("Animation","AnimationIteration"),animationstart:$u("Animation","AnimationStart"),transitionend:$u("Transition","TransitionEnd")},hc={},sv={};Nt&&(sv=document.createElement("div").style,"AnimationEvent"in window||(delete di.animationend.animation,delete di.animationiteration.animation,delete di.animationstart.animation),"TransitionEvent"in window||delete di.transitionend.transition);function Pu(e){if(hc[e])return hc[e];if(!di[e])return e;var t=di[e];for(var n in t)if(t.hasOwnProperty(n)&&n in sv)return hc[e]=t[n];return e}var cv=Pu("animationend"),fv=Pu("animationiteration"),dv=Pu("animationstart"),pv=Pu("transitionend"),vv=new Map,mc=new Map,wx=["cancel","cancel","click","click","close","close","contextmenu","contextMenu","copy","copy","cut","cut","auxclick","auxClick","dblclick","doubleClick","dragend","dragEnd","dragstart","dragStart","drop","drop","focusin","focus","focusout","blur","input","input","invalid","invalid","keydown","keyDown","keypress","keyPress","keyup","keyUp","mousedown","mouseDown","mouseup","mouseUp","paste","paste","pause","pause","play","play","pointercancel","pointerCancel","pointerdown","pointerDown","pointerup","pointerUp","ratechange","rateChange","reset","reset","seeked","seeked","submit","submit","touchcancel","touchCancel","touchend","touchEnd","touchstart","touchStart","volumechange","volumeChange"],kx=["change","selectionchange","textInput","compositionstart","compositionend","compositionupdate"],Ox=["drag","drag","dragenter","dragEnter","dragexit","dragExit","dragleave","dragLeave","dragover","dragOver","mousemove","mouseMove","mouseout","mouseOut","mouseover","mouseOver","pointermove","pointerMove","pointerout","pointerOut","pointerover","pointerOver","scroll","scroll","toggle","toggle","touchmove","touchMove","wheel","wheel"],Nx=["abort","abort",cv,"animationEnd",fv,"animationIteration",dv,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",pv,"transitionEnd","waiting","waiting"];function yc(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],i=a[0].toUpperCase()+a.slice(1),o="on"+i;mc.set(r,t),vv.set(r,o),Zt(o,[r])}}function Mx(e,t){for(var n=0;n<e.length;n++)mc.set(e[n],t)}function Ax(e){var t=mc.get(e);return t===void 0?vc:t}function Ux(){yc(wx,pc),yc(Ox,lv),yc(Nx,vc),Mx(kx,pc)}var zx=y.unstable_now;if(!(x.__interactionsRef!=null&&x.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var hv=99,mv=98,yv=97,Lx=96,gv=95,jx=90;zx();var pi=15,Yu=14,bv=13,Wu=12,xv=11,vi=10,Sv=9,wa=8,Cv=7,Iu=6,gc=5,Rv=4,Ev=3,qu=2,Tv=1,ka=0,Hx=31,$=0,fn=0,Ve=1,Do=2,bc=4,Gu=24,Dv=32,_v=192,wv=256,xc=3584,kv=4096,hi=4186112,Xu=62914560,mi=33554432,Sc=67108864,Ov=134217727,Nv=134217728,Cc=805306368,lr=1073741824,yt=-1;function R_(e){}var Ke=wa;function yi(e){if((Ve&e)!==$)return Ke=pi,Ve;if((Do&e)!==$)return Ke=Yu,Do;if((bc&e)!==$)return Ke=bv,bc;var t=Gu&e;if(t!==$)return Ke=Wu,t;if((e&Dv)!==$)return Ke=xv,Dv;var n=_v&e;if(n!==$)return Ke=vi,n;if((e&wv)!==$)return Ke=Sv,wv;var r=xc&e;if(r!==$)return Ke=wa,r;if((e&kv)!==$)return Ke=Cv,kv;var a=hi&e;if(a!==$)return Ke=Iu,a;var i=Xu&e;if(i!==$)return Ke=gc,i;if(e&Sc)return Ke=Rv,Sc;if((e&Nv)!==$)return Ke=Ev,Nv;var o=Cc&e;return o!==$?(Ke=qu,o):(lr&e)!==$?(Ke=Tv,lr):(s("Should have found matching lanes. This is a bug in React."),Ke=wa,e)}function Vx(e){switch(e){case hv:return pi;case mv:return vi;case yv:case Lx:return wa;case gv:return qu;default:return ka}}function Bx(e){switch(e){case pi:case Yu:return hv;case bv:case Wu:case xv:case vi:return mv;case Sv:case wa:case Cv:case Iu:case Rv:case gc:return yv;case Ev:case qu:case Tv:return gv;case ka:return jx;default:throw Error("Invalid update priority: "+e+". This is a bug in React.")}}function _o(e,t){var n=e.pendingLanes;if(n===$)return Ke=ka,$;var r=$,a=ka,i=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(i!==$)r=i,a=Ke=pi;else{var c=n&Ov;if(c!==$){var p=c&~o;if(p!==$)r=yi(p),a=Ke;else{var v=c&u;v!==$&&(r=yi(v),a=Ke)}}else{var O=n&~o;O!==$?(r=yi(O),a=Ke):u!==$&&(r=yi(u),a=Ke)}}if(r===$)return $;if(r=n&Qx(r),t!==$&&t!==r&&(t&o)===$){yi(t);var b=Ke;if(a<=b)return t;Ke=a}var A=e.entangledLanes;if(A!==$)for(var F=e.entanglements,Q=r&A;Q>0;){var ve=Oa(Q),Re=1<<ve;r|=F[ve],Q&=~Re}return r}function Fx(e,t){for(var n=e.eventTimes,r=yt;t>0;){var a=Oa(t),i=1<<a,o=n[a];o>r&&(r=o),t&=~i}return r}function $x(e,t){yi(e);var n=Ke;return n>=vi?t+250:n>=Iu?t+5e3:yt}function Px(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var u=Oa(o),c=1<<u,p=i[u];p===yt?((c&r)===$||(c&a)!==$)&&(i[u]=$x(c,t)):p<=t&&(e.expiredLanes|=c),o&=~c}}function Mv(e){var t=e.pendingLanes&~lr;return t!==$?t:t&lr?lr:$}function Yx(){return Ke}function Av(e){return(e&Ov)!==$}function Uv(e){return(e&Xu)===e}function Wx(e){return(e&hi)===e}function Qu(e,t){switch(e){case ka:break;case pi:return Ve;case Yu:return Do;case Wu:{var n=an(Gu&~t);return n===fn?Qu(vi,t):n}case vi:{var r=an(_v&~t);return r===fn?Qu(wa,t):r}case wa:{var a=an(xc&~t);return a===fn&&(a=an(hi&~t),a===fn&&(a=an(xc))),a}case Iu:case gc:break;case qu:var i=an(Cc&~t);return i===fn&&(i=an(Cc)),i}throw Error("Invalid update priority: "+e+". This is a bug in React.")}function Ix(e,t){var n=an(hi&~t);return n===fn&&(n=an(hi&~e),n===fn&&(n=an(hi))),n}function qx(e){var t=an(Xu&~e);return t===fn&&(t=an(Xu)),t}function Gx(e){return e&-e}function Xx(e){var t=31-jv(e);return t<0?$:1<<t}function Qx(e){return(Xx(e)<<1)-1}function an(e){return Gx(e)}function Oa(e){return 31-jv(e)}function Kx(e){return Oa(e)}function qt(e,t){return(e&t)!==$}function Na(e,t){return(e&t)===t}function Le(e,t){return e|t}function Ku(e,t){return e&~t}function E_(e){return e}function Jx(e,t){return e!==fn&&e<t?e:t}function Rc(e){for(var t=[],n=0;n<Hx;n++)t.push(e);return t}function Ju(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r;var a=e.eventTimes,i=Kx(t);a[i]=n}function Zx(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var a=Oa(r),i=1<<a;n[a]=yt,r&=~i}}function zv(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function eS(e){e.expiredLanes|=Gu&e.pendingLanes}function tS(e){return(e&Gu)!==$}function Lv(e,t){e.mutableReadLanes|=t&e.pendingLanes}function nS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,a=e.eventTimes,i=e.expirationTimes,o=n;o>0;){var u=Oa(o),c=1<<u;r[u]=$,a[u]=yt,i[u]=yt,o&=~c}}function rS(e,t){e.entangledLanes|=t;for(var n=e.entanglements,r=t;r>0;){var a=Oa(r),i=1<<a;n[a]|=t,r&=~i}}var jv=Math.clz32?Math.clz32:oS,aS=Math.log,iS=Math.LN2;function oS(e){return e===0?32:31-(aS(e)/iS|0)|0}var uS=y.unstable_UserBlockingPriority,lS=y.unstable_runWithPriority,Ec=!0;function Hv(e){Ec=!!e}function sS(){return Ec}function cS(e,t,n){var r=Ax(t),a;switch(r){case pc:a=fS;break;case lv:a=dS;break;case vc:default:a=Tc;break}return a.bind(null,t,n,e)}function fS(e,t,n,r){tx(r.timeStamp),ex(Tc,e,t,n,r)}function dS(e,t,n,r){lS(uS,Tc.bind(null,e,t,n,r))}function Tc(e,t,n,r){if(!!Ec){var a=!0;if(a=(t&ho)===0,a&&Rx()&&nv(e)){av(null,e,t,n,r);return}var i=Dc(e,t,n,r);if(i===null){a&&iv(e,r);return}if(a){if(nv(e)){av(i,e,t,n,r);return}if(Tx(i,e,t,n,r))return;iv(e,r)}gh(e,t,r,null,n)}}function Dc(e,t,n,r){var a=tc(r),i=Ua(a);if(i!==null){var o=_a(i);if(o===null)i=null;else{var u=o.tag;if(u===_){var c=qp(o);if(c!==null)return c;i=null}else if(u===D){var p=o.stateNode;if(p.hydrate)return Gp(o);i=null}else o!==i&&(i=null)}}return gh(e,t,r,i,n),null}function pS(e,t,n){return e.addEventListener(t,n,!1),n}function vS(e,t,n){return e.addEventListener(t,n,!0),n}function hS(e,t,n,r){return e.addEventListener(t,n,{capture:!0,passive:r}),n}function mS(e,t,n,r){return e.addEventListener(t,n,{passive:r}),n}var wo=null,_c=null,ko=null;function yS(e){return wo=e,_c=Bv(),!0}function gS(){wo=null,_c=null,ko=null}function Vv(){if(ko)return ko;var e,t=_c,n=t.length,r,a=Bv(),i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);var u=r>1?1-r:void 0;return ko=a.slice(e,u),ko}function Bv(){return"value"in wo?wo.value:wo.textContent}function Zu(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 el(){return!0}function Fv(){return!1}function Cn(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var u in e)if(!!e.hasOwnProperty(u)){var c=e[u];c?this[u]=c(i):this[u]=i[u]}var p=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return p?this.isDefaultPrevented=el:this.isDefaultPrevented=Fv,this.isPropagationStopped=Fv,this}return d(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=el)},stopPropagation:function(){var n=this.nativeEvent;!n||(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=el)},persist:function(){},isPersistent:el}),t}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wc=Cn(gi),Oo=d({},gi,{view:0,detail:0}),bS=Cn(Oo),kc,Oc,No;function xS(e){e!==No&&(No&&e.type==="mousemove"?(kc=e.screenX-No.screenX,Oc=e.screenY-No.screenY):(kc=0,Oc=0),No=e)}var tl=d({},Oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,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:(xS(e),kc)},movementY:function(e){return"movementY"in e?e.movementY:Oc}}),$v=Cn(tl),SS=d({},tl,{dataTransfer:0}),CS=Cn(SS),RS=d({},Oo,{relatedTarget:0}),Nc=Cn(RS),ES=d({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),TS=Cn(ES),DS=d({},gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_S=Cn(DS),wS=d({},gi,{data:0}),Pv=Cn(wS),kS=Pv,OS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NS={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 MS(e){if(e.key){var t=OS[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=Zu(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?NS[e.keyCode]||"Unidentified":""}var AS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function US(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=AS[e];return r?!!n[r]:!1}function Mc(e){return US}var zS=d({},Oo,{key:MS,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(e){return e.type==="keypress"?Zu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LS=Cn(zS),jS=d({},tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yv=Cn(jS),HS=d({},Oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),VS=Cn(HS),BS=d({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),FS=Cn(BS),$S=d({},tl,{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}),PS=Cn($S),YS=[9,13,27,32],Wv=229,Ac=Nt&&"CompositionEvent"in window,Mo=null;Nt&&"documentMode"in document&&(Mo=document.documentMode);var WS=Nt&&"TextEvent"in window&&!Mo,Iv=Nt&&(!Ac||Mo&&Mo>8&&Mo<=11),qv=32,Gv=String.fromCharCode(qv);function IS(){Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Zt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Zt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Xv=!1;function qS(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function GS(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function XS(e,t){return e==="keydown"&&t.keyCode===Wv}function Qv(e,t){switch(e){case"keyup":return YS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Wv;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kv(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Jv(e){return e.locale==="ko"}var bi=!1;function QS(e,t,n,r,a){var i,o;if(Ac?i=GS(t):bi?Qv(t,r)&&(i="onCompositionEnd"):XS(t,r)&&(i="onCompositionStart"),!i)return null;Iv&&!Jv(r)&&(!bi&&i==="onCompositionStart"?bi=yS(a):i==="onCompositionEnd"&&bi&&(o=Vv()));var u=rl(n,i);if(u.length>0){var c=new Pv(i,t,null,r,a);if(e.push({event:c,listeners:u}),o)c.data=o;else{var p=Kv(r);p!==null&&(c.data=p)}}}function KS(e,t){switch(e){case"compositionend":return Kv(t);case"keypress":var n=t.which;return n!==qv?null:(Xv=!0,Gv);case"textInput":var r=t.data;return r===Gv&&Xv?null:r;default:return null}}function JS(e,t){if(bi){if(e==="compositionend"||!Ac&&Qv(e,t)){var n=Vv();return gS(),bi=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!qS(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Iv&&!Jv(t)?null:t.data;default:return null}}function ZS(e,t,n,r,a){var i;if(WS?i=KS(t,r):i=JS(t,r),!i)return null;var o=rl(n,"onBeforeInput");if(o.length>0){var u=new kS("onBeforeInput","beforeinput",null,r,a);e.push({event:u,listeners:o}),u.data=i}}function eC(e,t,n,r,a,i,o){QS(e,t,n,r,a),ZS(e,t,n,r,a)}var tC={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 Zv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tC[e.type]:t==="textarea"}/**
|
|
61
|
-
* Checks if an event is supported in the current execution environment.
|
|
62
|
-
*
|
|
63
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
64
|
-
* `reset`, `load`, `error`, and `select`.
|
|
65
|
-
*
|
|
66
|
-
* Borrows from Modernizr.
|
|
67
|
-
*
|
|
68
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
69
|
-
* @return {boolean} True if the event is supported.
|
|
70
|
-
* @internal
|
|
71
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
72
|
-
*/function nC(e){if(!Nt)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n=typeof r[t]=="function"}return n}function rC(){Zt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function eh(e,t,n,r){Bp(r);var a=rl(t,"onChange");if(a.length>0){var i=new wc("onChange","change",null,n,r);e.push({event:i,listeners:a})}}var Ao=null,Uo=null;function aC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function iC(e){var t=[];eh(t,Uo,e,tc(e)),Jb(oC,t)}function oC(e){dh(e,0)}function nl(e){var t=Ei(e);if(C(t))return e}function uC(e,t){if(e==="change")return t}var th=!1;Nt&&(th=nC("input")&&(!document.documentMode||document.documentMode>9));function lC(e,t){Ao=e,Uo=t,Ao.attachEvent("onpropertychange",rh)}function nh(){!Ao||(Ao.detachEvent("onpropertychange",rh),Ao=null,Uo=null)}function rh(e){e.propertyName==="value"&&nl(Uo)&&iC(e)}function sC(e,t,n){e==="focusin"?(nh(),lC(t,n)):e==="focusout"&&nh()}function cC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nl(Uo)}function fC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function dC(e,t){if(e==="click")return nl(t)}function pC(e,t){if(e==="input"||e==="change")return nl(t)}function vC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Kr(e,"number",e.value)}function hC(e,t,n,r,a,i,o){var u=n?Ei(n):window,c,p;if(aC(u)?c=uC:Zv(u)?th?c=pC:(c=cC,p=sC):fC(u)&&(c=dC),c){var v=c(t,n);if(v){eh(e,v,r,a);return}}p&&p(t,u,n),t==="focusout"&&vC(u)}function mC(){ln("onMouseEnter",["mouseout","mouseover"]),ln("onMouseLeave",["mouseout","mouseover"]),ln("onPointerEnter",["pointerout","pointerover"]),ln("onPointerLeave",["pointerout","pointerover"])}function yC(e,t,n,r,a,i,o){var u=t==="mouseover"||t==="pointerover",c=t==="mouseout"||t==="pointerout";if(u&&(i&Hp)===0){var p=r.relatedTarget||r.fromElement;if(p&&(Ua(p)||pl(p)))return}if(!(!c&&!u)){var v;if(a.window===a)v=a;else{var O=a.ownerDocument;O?v=O.defaultView||O.parentWindow:v=window}var b,A;if(c){var F=r.relatedTarget||r.toElement;if(b=n,A=F?Ua(F):null,A!==null){var Q=_a(A);(A!==Q||A.tag!==E&&A.tag!==L)&&(A=null)}}else b=null,A=n;if(b!==A){var ve=$v,Re="onMouseLeave",be="onMouseEnter",Ne="mouse";(t==="pointerout"||t==="pointerover")&&(ve=Yv,Re="onPointerLeave",be="onPointerEnter",Ne="pointer");var Fe=b==null?v:Ei(b),M=A==null?v:Ei(A),j=new ve(Re,Ne+"leave",b,r,a);j.target=Fe,j.relatedTarget=M;var w=null,I=Ua(a);if(I===n){var ee=new ve(be,Ne+"enter",A,r,a);ee.target=M,ee.relatedTarget=Fe,w=ee}FC(e,j,w,b,A)}}}function gC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zn=typeof Object.is=="function"?Object.is:gC,bC=Object.prototype.hasOwnProperty;function zo(e,t){if(zn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=0;a<n.length;a++)if(!bC.call(t,n[a])||!zn(e[n[a]],t[n[a]]))return!1;return!0}function ah(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ih(e,t){for(var n=ah(e),r=0,a=0;n;){if(n.nodeType===_r){if(a=r+n.textContent.length,r<=t&&a>=t)return{node:n,offset:t-r};r=a}n=ah(xC(n))}}function SC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||r.rangeCount===0)return null;var a=r.anchorNode,i=r.anchorOffset,o=r.focusNode,u=r.focusOffset;try{a.nodeType,o.nodeType}catch{return null}return CC(e,a,i,o,u)}function CC(e,t,n,r,a){var i=0,o=-1,u=-1,c=0,p=0,v=e,O=null;e:for(;;){for(var b=null;v===t&&(n===0||v.nodeType===_r)&&(o=i+n),v===r&&(a===0||v.nodeType===_r)&&(u=i+a),v.nodeType===_r&&(i+=v.nodeValue.length),(b=v.firstChild)!==null;)O=v,v=b;for(;;){if(v===e)break e;if(O===t&&++c===n&&(o=i),O===r&&++p===a&&(u=i),(b=v.nextSibling)!==null)break;v=O,O=v.parentNode}v=b}return o===-1||u===-1?null:{start:o,end:u}}function RC(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(!!r.getSelection){var a=r.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),u=t.end===void 0?o:Math.min(t.end,i);if(!a.extend&&o>u){var c=u;u=o,o=c}var p=ih(e,o),v=ih(e,u);if(p&&v){if(a.rangeCount===1&&a.anchorNode===p.node&&a.anchorOffset===p.offset&&a.focusNode===v.node&&a.focusOffset===v.offset)return;var O=n.createRange();O.setStart(p.node,p.offset),a.removeAllRanges(),o>u?(a.addRange(O),a.extend(v.node,v.offset)):(O.setEnd(v.node,v.offset),a.addRange(O))}}}function oh(e){return e&&e.nodeType===_r}function uh(e,t){return!e||!t?!1:e===t?!0:oh(e)?!1:oh(t)?uh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function EC(e){return e&&e.ownerDocument&&uh(e.ownerDocument.documentElement,e)}function TC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function lh(){for(var e=window,t=U();t instanceof e.HTMLIFrameElement;){if(TC(t))e=t.contentWindow;else return t;t=U(e.document)}return t}function Uc(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 DC(){var e=lh();return{focusedElem:e,selectionRange:Uc(e)?wC(e):null}}function _C(e){var t=lh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&EC(n)){r!==null&&Uc(n)&&kC(n,r);for(var a=[],i=n;i=i.parentNode;)i.nodeType===Un&&a.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<a.length;o++){var u=a[o];u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}}function wC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=SC(e),t||{start:0,end:0}}function kC(e,t){var n=t.start,r=t.end;r===void 0&&(r=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):RC(e,t)}var OC=Nt&&"documentMode"in document&&document.documentMode<=11;function NC(){Zt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var xi=null,zc=null,Lo=null,Lc=!1;function MC(e){if("selectionStart"in e&&Uc(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 AC(e){return e.window===e?e.document:e.nodeType===Jr?e:e.ownerDocument}function sh(e,t,n){var r=AC(n);if(!(Lc||xi==null||xi!==U(r))){var a=MC(xi);if(!Lo||!zo(Lo,a)){Lo=a;var i=rl(zc,"onSelect");if(i.length>0){var o=new wc("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=xi}}}}function UC(e,t,n,r,a,i,o){var u=n?Ei(n):window;switch(t){case"focusin":(Zv(u)||u.contentEditable==="true")&&(xi=u,zc=n,Lo=null);break;case"focusout":xi=null,zc=null,Lo=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,sh(e,r,a);break;case"selectionchange":if(OC)break;case"keydown":case"keyup":sh(e,r,a)}}function zC(e,t,n,r,a,i,o){var u=vv.get(t);if(u!==void 0){var c=wc,p=t;switch(t){case"keypress":if(Zu(r)===0)return;case"keydown":case"keyup":c=LS;break;case"focusin":p="focus",c=Nc;break;case"focusout":p="blur",c=Nc;break;case"beforeblur":case"afterblur":c=Nc;break;case"click":if(r.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=$v;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=CS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=VS;break;case cv:case fv:case dv:c=TS;break;case pv:c=FS;break;case"scroll":c=bS;break;case"wheel":c=PS;break;case"copy":case"cut":case"paste":c=_S;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Yv;break}var v=(i&ho)!==0;{var O=!v&&t==="scroll",b=VC(n,u,r.type,v,O);if(b.length>0){var A=new c(u,p,null,r,a);e.push({event:A,listeners:b})}}}}Ux(),mC(),rC(),NC(),IS();function LC(e,t,n,r,a,i,o){zC(e,t,n,r,a,i);var u=(i&Xb)===0;u&&(yC(e,t,n,r,a,i),hC(e,t,n,r,a),UC(e,t,n,r,a),eC(e,t,n,r,a))}var jo=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],ch=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(jo));function fh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ux(r,t,void 0,e),e.currentTarget=null}function jC(e,t,n){var r;if(n)for(var a=t.length-1;a>=0;a--){var i=t[a],o=i.instance,u=i.currentTarget,c=i.listener;if(o!==r&&e.isPropagationStopped())return;fh(e,c,u),r=o}else for(var p=0;p<t.length;p++){var v=t[p],O=v.instance,b=v.currentTarget,A=v.listener;if(O!==r&&e.isPropagationStopped())return;fh(e,A,b),r=O}}function dh(e,t){for(var n=(t&ho)!==0,r=0;r<e.length;r++){var a=e[r],i=a.event,o=a.listeners;jC(i,o,n)}lx()}function HC(e,t,n,r,a){var i=tc(n),o=[];LC(o,e,r,n,i,t),dh(o,t)}function rt(e,t){var n=!1,r=Wh(t),a=xh(e,n);r.has(a)||(mh(t,e,Lu,n),r.add(a))}var ph="_reactListening"+Math.random().toString(36).slice(2);function vh(e){{if(e[ph])return;e[ph]=!0,$r.forEach(function(t){ch.has(t)||hh(t,!1,e,null),hh(t,!0,e,null)})}}function hh(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=n;if(e==="selectionchange"&&n.nodeType!==Jr&&(i=n.ownerDocument),r!==null&&!t&&ch.has(e)){if(e!=="scroll")return;a|=Lu,i=r}var o=Wh(i),u=xh(e,t);o.has(u)||(t&&(a|=ho),mh(i,e,a,t),o.add(u))}function mh(e,t,n,r,a){var i=cS(e,t,n),o=void 0;uc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,r?o!==void 0?hS(e,t,i,o):vS(e,t,i):o!==void 0?mS(e,t,i,o):pS(e,t,i)}function yh(e,t){return e===t||e.nodeType===Sn&&e.parentNode===t}function gh(e,t,n,r,a){var i=r;if((t&jp)===0&&(t&Lu)===0){var o=a;if(r!==null){var u=r;e:for(;;){if(u===null)return;var c=u.tag;if(c===D||c===N){var p=u.stateNode.containerInfo;if(yh(p,o))break;if(c===N)for(var v=u.return;v!==null;){var O=v.tag;if(O===D||O===N){var b=v.stateNode.containerInfo;if(yh(b,o))return}v=v.return}for(;p!==null;){var A=Ua(p);if(A===null)return;var F=A.tag;if(F===E||F===L){u=i=A;continue e}p=p.parentNode}}u=u.return}}}Zb(function(){return HC(e,t,n,i)})}function Ho(e,t,n){return{instance:e,listener:t,currentTarget:n}}function VC(e,t,n,r,a){for(var i=t!==null?t+"Capture":null,o=r?i:t,u=[],c=e,p=null;c!==null;){var v=c,O=v.stateNode,b=v.tag;if(b===E&&O!==null&&(p=O,o!==null)){var A=mo(c,o);A!=null&&u.push(Ho(c,A,p))}if(a)break;c=c.return}return u}function rl(e,t){for(var n=t+"Capture",r=[],a=e;a!==null;){var i=a,o=i.stateNode,u=i.tag;if(u===E&&o!==null){var c=o,p=mo(a,n);p!=null&&r.unshift(Ho(a,p,c));var v=mo(a,t);v!=null&&r.push(Ho(a,v,c))}a=a.return}return r}function Si(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==E);return e||null}function BC(e,t){for(var n=e,r=t,a=0,i=n;i;i=Si(i))a++;for(var o=0,u=r;u;u=Si(u))o++;for(;a-o>0;)n=Si(n),a--;for(;o-a>0;)r=Si(r),o--;for(var c=a;c--;){if(n===r||r!==null&&n===r.alternate)return n;n=Si(n),r=Si(r)}return null}function bh(e,t,n,r,a){for(var i=t._reactName,o=[],u=n;u!==null&&u!==r;){var c=u,p=c.alternate,v=c.stateNode,O=c.tag;if(p!==null&&p===r)break;if(O===E&&v!==null){var b=v;if(a){var A=mo(u,i);A!=null&&o.unshift(Ho(u,A,b))}else if(!a){var F=mo(u,i);F!=null&&o.push(Ho(u,F,b))}}u=u.return}o.length!==0&&e.push({event:t,listeners:o})}function FC(e,t,n,r,a){var i=r&&a?BC(r,a):null;r!==null&&bh(e,t,r,i,!1),a!==null&&n!==null&&bh(e,n,a,i,!0)}function xh(e,t){return e+"__"+(t?"capture":"bubble")}var dn=!1,Vo="dangerouslySetInnerHTML",al="suppressContentEditableWarning",Bo="suppressHydrationWarning",Sh="autoFocus",Ma="children",Aa="style",il="__html",Ci=Ep.html,jc,Fo,ol,ul,$o,Ch,ll,Rh,Po,Eh;{jc={dialog:!0,webview:!0},ol=function(e,t){Fb(e,t),$b(e,t),Gb(e,t,{registrationNameDependencies:$t,possibleRegistrationNames:Yn})},Rh=Nt&&!document.documentMode;var $C=/\r\n?/g,PC=/\u0000|\uFFFD/g;Po=function(e){var t=typeof e=="string"?e:""+e;return t.replace($C,`
|
|
73
|
-
`).replace(PC,"")},ul=function(e,t){if(!dn){var n=Po(t),r=Po(e);r!==n&&(dn=!0,s('Text content did not match. Server: "%s" Client: "%s"',r,n))}},$o=function(e,t,n){if(!dn){var r=Po(n),a=Po(t);a!==r&&(dn=!0,s("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(a),JSON.stringify(r)))}},Ch=function(e){if(!dn){dn=!0;var t=[];e.forEach(function(n){t.push(n)}),s("Extra attributes from the server: %s",t)}},ll=function(e,t){t===!1?s("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):s("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Eh=function(e,t){var n=e.namespaceURI===Ci?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML}}function Th(e){return e.nodeType===Jr?e:e.ownerDocument}function YC(){}function sl(e){e.onclick=YC}function WC(e,t,n,r,a){for(var i in r)if(!!r.hasOwnProperty(i)){var o=r[i];if(i===Aa)o&&Object.freeze(o),Np(t,o);else if(i===Vo){var u=o?o[il]:void 0;u!=null&&Tp(t,u)}else if(i===Ma)if(typeof o=="string"){var c=e!=="textarea"||o!=="";c&&Uu(t,o)}else typeof o=="number"&&Uu(t,""+o);else i===al||i===Bo||i===Sh||($t.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ll(i,o),i==="onScroll"&&rt("scroll",t)):o!=null&&ot(t,i,o,a))}}function IC(e,t,n,r){for(var a=0;a<t.length;a+=2){var i=t[a],o=t[a+1];i===Aa?Np(e,o):i===Vo?Tp(e,o):i===Ma?Uu(e,o):ot(e,i,o,r)}}function qC(e,t,n,r){var a,i=Th(n),o,u=r;if(u===Ci&&(u=Qs(e)),u===Ci){if(a=Ta(e,t),!a&&e!==e.toLowerCase()&&s("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var c=i.createElement("div");c.innerHTML="<script><\/script>";var p=c.firstChild;o=c.removeChild(p)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(u,e);return u===Ci&&!a&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!Object.prototype.hasOwnProperty.call(jc,e)&&(jc[e]=!0,s("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 GC(e,t){return Th(t).createTextNode(e)}function XC(e,t,n,r){var a=Ta(t,n);ol(t,n);var i;switch(t){case"dialog":rt("cancel",e),rt("close",e),i=n;break;case"iframe":case"object":case"embed":rt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<jo.length;o++)rt(jo[o],e);i=n;break;case"source":rt("error",e),i=n;break;case"img":case"image":case"link":rt("error",e),rt("load",e),i=n;break;case"details":rt("toggle",e),i=n;break;case"input":Pe(e,n),i=ze(e,n),rt("invalid",e);break;case"option":fo(e,n),i=ai(e,n);break;case"select":gp(e,n),i=qs(e,n),rt("invalid",e);break;case"textarea":xp(e,n),i=Gs(e,n),rt("invalid",e);break;default:i=n}switch(ec(t,i),WC(t,e,r,i,a),t){case"input":f(e),Wt(e,n,!1);break;case"textarea":f(e),Cp(e);break;case"option":Is(e,n);break;case"select":sb(e,n);break;default:typeof i.onClick=="function"&&sl(e);break}}function QC(e,t,n,r,a){ol(t,r);var i=null,o,u;switch(t){case"input":o=ze(e,n),u=ze(e,r),i=[];break;case"option":o=ai(e,n),u=ai(e,r),i=[];break;case"select":o=qs(e,n),u=qs(e,r),i=[];break;case"textarea":o=Gs(e,n),u=Gs(e,r),i=[];break;default:o=n,u=r,typeof o.onClick!="function"&&typeof u.onClick=="function"&&sl(e);break}ec(t,u);var c,p,v=null;for(c in o)if(!(u.hasOwnProperty(c)||!o.hasOwnProperty(c)||o[c]==null))if(c===Aa){var O=o[c];for(p in O)O.hasOwnProperty(p)&&(v||(v={}),v[p]="")}else c===Vo||c===Ma||c===al||c===Bo||c===Sh||($t.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in u){var b=u[c],A=o!=null?o[c]:void 0;if(!(!u.hasOwnProperty(c)||b===A||b==null&&A==null))if(c===Aa)if(b&&Object.freeze(b),A){for(p in A)A.hasOwnProperty(p)&&(!b||!b.hasOwnProperty(p))&&(v||(v={}),v[p]="");for(p in b)b.hasOwnProperty(p)&&A[p]!==b[p]&&(v||(v={}),v[p]=b[p])}else v||(i||(i=[]),i.push(c,v)),v=b;else if(c===Vo){var F=b?b[il]:void 0,Q=A?A[il]:void 0;F!=null&&Q!==F&&(i=i||[]).push(c,F)}else c===Ma?(typeof b=="string"||typeof b=="number")&&(i=i||[]).push(c,""+b):c===al||c===Bo||($t.hasOwnProperty(c)?(b!=null&&(typeof b!="function"&&ll(c,b),c==="onScroll"&&rt("scroll",e)),!i&&A!==b&&(i=[])):typeof b=="object"&&b!==null&&b.$$typeof===Oe?b.toString():(i=i||[]).push(c,b))}return v&&(Mb(v,u[Aa]),(i=i||[]).push(Aa,v)),i}function KC(e,t,n,r,a){n==="input"&&a.type==="radio"&&a.name!=null&&tt(e,a);var i=Ta(n,r),o=Ta(n,a);switch(IC(e,t,i,o),n){case"input":ht(e,a);break;case"textarea":Sp(e,a);break;case"select":cb(e,a);break}}function JC(e){{var t=e.toLowerCase();return zu.hasOwnProperty(t)&&zu[t]||null}}function ZC(e,t,n,r,a){var i,o;switch(Fo=n[Bo]===!0,i=Ta(t,n),ol(t,n),t){case"dialog":rt("cancel",e),rt("close",e);break;case"iframe":case"object":case"embed":rt("load",e);break;case"video":case"audio":for(var u=0;u<jo.length;u++)rt(jo[u],e);break;case"source":rt("error",e);break;case"img":case"image":case"link":rt("error",e),rt("load",e);break;case"details":rt("toggle",e);break;case"input":Pe(e,n),rt("invalid",e);break;case"option":fo(e,n);break;case"select":gp(e,n),rt("invalid",e);break;case"textarea":xp(e,n),rt("invalid",e);break}ec(t,n);{o=new Set;for(var c=e.attributes,p=0;p<c.length;p++){var v=c[p].name.toLowerCase();switch(v){case"data-reactroot":break;case"value":break;case"checked":break;case"selected":break;default:o.add(c[p].name)}}}var O=null;for(var b in n)if(!!n.hasOwnProperty(b)){var A=n[b];if(b===Ma)typeof A=="string"?e.textContent!==A&&(Fo||ul(e.textContent,A),O=[Ma,A]):typeof A=="number"&&e.textContent!==""+A&&(Fo||ul(e.textContent,A),O=[Ma,""+A]);else if($t.hasOwnProperty(b))A!=null&&(typeof A!="function"&&ll(b,A),b==="onScroll"&&rt("scroll",e));else if(typeof i=="boolean"){var F=void 0,Q=Nn(b);if(!Fo){if(!(b===al||b===Bo||b==="value"||b==="checked"||b==="selected")){if(b===Vo){var ve=e.innerHTML,Re=A?A[il]:void 0;if(Re!=null){var be=Eh(e,Re);be!==ve&&$o(b,ve,be)}}else if(b===Aa){if(o.delete(b),Rh){var Ne=Ob(A);F=e.getAttribute("style"),Ne!==F&&$o(b,F,Ne)}}else if(i)o.delete(b.toLowerCase()),F=it(e,b,A),A!==F&&$o(b,F,A);else if(!Yr(b,Q,i)&&!Vt(b,A,Q,i)){var Fe=!1;if(Q!==null)o.delete(Q.attributeName),F=$e(e,b,A,Q);else{var M=r;if(M===Ci&&(M=Qs(t)),M===Ci)o.delete(b.toLowerCase());else{var j=JC(b);j!==null&&j!==b&&(Fe=!0,o.delete(j)),o.delete(b)}F=it(e,b,A)}A!==F&&!Fe&&$o(b,F,A)}}}}}switch(o.size>0&&!Fo&&Ch(o),t){case"input":f(e),Wt(e,n,!0);break;case"textarea":f(e),Cp(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&sl(e);break}return O}function eR(e,t){var n=e.nodeValue!==t;return n}function Dh(e,t){ul(e.nodeValue,t)}function _h(e,t){{if(dn)return;dn=!0,s("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function wh(e,t){{if(dn)return;dn=!0,s('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function kh(e,t,n){{if(dn)return;dn=!0,s("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Oh(e,t){{if(t===""||dn)return;dn=!0,s('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function tR(e,t,n){switch(t){case"input":It(e,n);return;case"textarea":db(e,n);return;case"select":fb(e,n);return}}var Yo=function(){},Wo=function(){};{var nR=["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"],Nh=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],rR=Nh.concat(["button"]),aR=["dd","dt","li","option","optgroup","p","rp","rt"],Mh={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Wo=function(e,t){var n=d({},e||Mh),r={tag:t};return Nh.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),rR.indexOf(t)!==-1&&(n.pTagInButtonScope=null),nR.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t==="form"&&(n.formTag=r),t==="a"&&(n.aTagInScope=r),t==="button"&&(n.buttonTagInScope=r),t==="nobr"&&(n.nobrTagInScope=r),t==="p"&&(n.pTagInButtonScope=r),t==="li"&&(n.listItemTagAutoclosing=r),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=r),n};var iR=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 aR.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},oR=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},Ah={};Yo=function(e,t,n){n=n||Mh;var r=n.current,a=r&&r.tag;t!=null&&(e!=null&&s("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=iR(e,a)?null:r,o=i?null:oR(e,n),u=i||o;if(!!u){var c=u.tag,p=!!i+"|"+e+"|"+c;if(!Ah[p]){Ah[p]=!0;var v=e,O="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",O=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var b="";c==="table"&&e==="tr"&&(b+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),s("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",v,c,O,b)}else s("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,c)}}}}var Ri;Ri="suppressHydrationWarning";var Uh="$",zh="/$",Hc="$?",Vc="$!",uR="style",Bc=null,Fc=null;function Lh(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function lR(e){var t,n,r=e.nodeType;switch(r){case Jr:case Dp:{t=r===Jr?"#document":"#fragment";var a=e.documentElement;n=a?a.namespaceURI:Ks(null,"");break}default:{var i=r===Sn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=Ks(o,t);break}}{var u=t.toLowerCase(),c=Wo(null,u);return{namespace:n,ancestorInfo:c}}}function sR(e,t,n){{var r=e,a=Ks(r.namespace,t),i=Wo(r.ancestorInfo,t);return{namespace:a,ancestorInfo:i}}}function T_(e){return e}function cR(e){Bc=sS(),Fc=DC();var t=null;return Hv(!1),t}function fR(e){_C(Fc),Hv(Bc),Bc=null,Fc=null}function dR(e,t,n,r,a){var i;{var o=r;if(Yo(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var u=""+t.children,c=Wo(o.ancestorInfo,e);Yo(null,u,c)}i=o.namespace}var p=qC(e,t,n,i);return dl(a,p),Wc(p,t),p}function pR(e,t){e.appendChild(t)}function vR(e,t,n,r,a){return XC(e,t,n,r),Lh(t,n)}function hR(e,t,n,r,a,i){{var o=i;if(typeof r.children!=typeof n.children&&(typeof r.children=="string"||typeof r.children=="number")){var u=""+r.children,c=Wo(o.ancestorInfo,t);Yo(null,u,c)}}return QC(e,t,n,r)}function $c(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function mR(e,t,n,r){{var a=n;Yo(null,e,a.ancestorInfo)}var i=GC(e,t);return dl(r,i),i}var jh=typeof setTimeout=="function"?setTimeout:void 0,yR=typeof clearTimeout=="function"?clearTimeout:void 0,Pc=-1;function gR(e,t,n,r){Lh(t,n)&&e.focus()}function bR(e,t,n,r,a,i){Wc(e,a),KC(e,t,n,r,a)}function Hh(e){Uu(e,"")}function xR(e,t,n){e.nodeValue=n}function SR(e,t){e.appendChild(t)}function CR(e,t){var n;e.nodeType===Sn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var r=e._reactRootContainer;r==null&&n.onclick===null&&sl(n)}function RR(e,t,n){e.insertBefore(t,n)}function ER(e,t,n){e.nodeType===Sn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function TR(e,t){e.removeChild(t)}function DR(e,t){e.nodeType===Sn?e.parentNode.removeChild(t):e.removeChild(t)}function _R(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function wR(e){e.nodeValue=""}function kR(e,t){e=e;var n=t[uR],r=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=Js("display",r)}function OR(e,t){e.nodeValue=t}function Yc(e){if(e.nodeType===Un)e.textContent="";else if(e.nodeType===Jr){var t=e.body;t!=null&&(t.textContent="")}}function NR(e,t,n){return e.nodeType!==Un||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function MR(e,t){return t===""||e.nodeType!==_r?null:e}function AR(e){return e.data===Hc}function UR(e){return e.data===Vc}function Vh(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===Un||t===_r)break}return e}function cl(e){return Vh(e.nextSibling)}function Bh(e){return Vh(e.firstChild)}function zR(e,t,n,r,a,i){dl(i,e),Wc(e,n);var o;{var u=a;o=u.namespace}return ZC(e,t,n,o)}function LR(e,t,n){return dl(n,e),eR(e,t)}function jR(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===Sn){var r=t.data;if(r===zh){if(n===0)return cl(t);n--}else(r===Uh||r===Vc||r===Hc)&&n++}t=t.nextSibling}return null}function Fh(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===Sn){var r=t.data;if(r===Uh||r===Vc||r===Hc){if(n===0)return t;n--}else r===zh&&n++}t=t.previousSibling}return null}function HR(e){uv(e)}function VR(e){uv(e)}function BR(e,t,n){Dh(t,n)}function FR(e,t,n,r,a){t[Ri]!==!0&&Dh(r,a)}function $R(e,t){t.nodeType===Un?_h(e,t):t.nodeType===Sn||wh(e,t)}function PR(e,t,n,r){t[Ri]!==!0&&(r.nodeType===Un?_h(n,r):r.nodeType===Sn||wh(n,r))}function YR(e,t,n){kh(e,t)}function WR(e,t){Oh(e,t)}function IR(e,t,n,r,a){t[Ri]!==!0&&kh(n,r)}function qR(e,t,n,r){t[Ri]!==!0&&Oh(n,r)}function GR(e,t,n){t[Ri]}var XR=0;function QR(e){var t="r:"+(XR++).toString(36);return{toString:function(){return e(),t},valueOf:function(){return e(),t}}}function KR(e){return e!==null&&typeof e=="object"&&e.$$typeof===Oe}function JR(e){return{$$typeof:Oe,toString:e,valueOf:e}}function ZR(e){vh(e)}var fl=Math.random().toString(36).slice(2),Io="__reactFiber$"+fl,$h="__reactProps$"+fl,qo="__reactContainer$"+fl,Ph="__reactEvents$"+fl;function dl(e,t){t[Io]=e}function eE(e,t){t[qo]=e}function Yh(e){e[qo]=null}function pl(e){return!!e[qo]}function Ua(e){var t=e[Io];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qo]||n[Io],t){var r=t.alternate;if(t.child!==null||r!==null&&r.child!==null)for(var a=Fh(e);a!==null;){var i=a[Io];if(i)return i;a=Fh(a)}return t}e=n,n=e.parentNode}return null}function aa(e){var t=e[Io]||e[qo];return t&&(t.tag===E||t.tag===L||t.tag===_||t.tag===D)?t:null}function Ei(e){if(e.tag===E||e.tag===L)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function vl(e){return e[$h]||null}function Wc(e,t){e[$h]=t}function Wh(e){var t=e[Ph];return t===void 0&&(t=e[Ph]=new Set),t}var Ih={},qh=h.ReactDebugCurrentFrame;function hl(e){if(e){var t=e._owner,n=ni(e.type,e._source,t?t.type:null);qh.setExtraStackFrame(n)}else qh.setExtraStackFrame(null)}function Gn(e,t,n,r,a){{var i=Function.call.bind(Object.prototype.hasOwnProperty);for(var o in e)if(i(e,o)){var u=void 0;try{if(typeof e[o]!="function"){var c=Error((r||"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 c.name="Invariant Violation",c}u=e[o](t,o,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(p){u=p}u&&!(u instanceof Error)&&(hl(a),s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,o,typeof u),hl(null)),u instanceof Error&&!(u.message in Ih)&&(Ih[u.message]=!0,hl(a),s("Failed %s type: %s",n,u.message),hl(null))}}}var Ic=[],ml;ml=[];var Ar=-1;function ia(e){return{current:e}}function Gt(e,t){if(Ar<0){s("Unexpected pop.");return}t!==ml[Ar]&&s("Unexpected Fiber popped."),e.current=Ic[Ar],Ic[Ar]=null,ml[Ar]=null,Ar--}function Xt(e,t,n){Ar++,Ic[Ar]=e.current,ml[Ar]=n,e.current=t}var qc;qc={};var Rn={};Object.freeze(Rn);var Ur=ia(Rn),sr=ia(!1),Gc=Rn;function Ti(e,t,n){return n&&cr(t)?Gc:Ur.current}function Gh(e,t,n){{var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}}function Di(e,t){{var n=e.type,r=n.contextTypes;if(!r)return Rn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in r)i[o]=t[o];{var u=Z(n)||"Unknown";Gn(r,i,"context",u)}return a&&Gh(e,t,i),i}}function yl(){return sr.current}function cr(e){{var t=e.childContextTypes;return t!=null}}function gl(e){Gt(sr,e),Gt(Ur,e)}function Xc(e){Gt(sr,e),Gt(Ur,e)}function Xh(e,t,n){{if(Ur.current!==Rn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Xt(Ur,t,e),Xt(sr,n,e)}}function Qh(e,t,n){{var r=e.stateNode,a=t.childContextTypes;if(typeof r.getChildContext!="function"){{var i=Z(t)||"Unknown";qc[i]||(qc[i]=!0,s("%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=r.getChildContext();for(var u in o)if(!(u in a))throw Error((Z(t)||"Unknown")+'.getChildContext(): key "'+u+'" is not defined in childContextTypes.');{var c=Z(t)||"Unknown";Gn(a,o,"child context",c)}return d({},n,o)}}function bl(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Rn;return Gc=Ur.current,Xt(Ur,n,e),Xt(sr,sr.current,e),!0}}function Kh(e,t,n){{var r=e.stateNode;if(!r)throw 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 a=Qh(e,t,Gc);r.__reactInternalMemoizedMergedChildContext=a,Gt(sr,e),Gt(Ur,e),Xt(Ur,a,e),Xt(sr,n,e)}else Gt(sr,e),Xt(sr,n,e)}}function tE(e){{if(!(mx(e)&&e.tag===k))throw 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 D:return t.stateNode.context;case k:{var n=t.type;if(cr(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Qc=0,Jh=1,Zh=2,xl=null,fr=null,_i=!1,nE=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined";function rE(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return s("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{xl=t.inject(e),fr=t}catch(n){s("React instrumentation encountered an error: %s.",n)}return!0}function aE(e,t){if(fr&&typeof fr.onScheduleFiberRoot=="function")try{fr.onScheduleFiberRoot(xl,e,t)}catch(n){_i||(_i=!0,s("React instrumentation encountered an error: %s",n))}}function iE(e,t){if(fr&&typeof fr.onCommitFiberRoot=="function")try{var n=(e.current.flags&nt)===nt;Ot&&fr.onCommitFiberRoot(xl,e,t,n)}catch(r){_i||(_i=!0,s("React instrumentation encountered an error: %s",r))}}function oE(e){if(fr&&typeof fr.onCommitFiberUnmount=="function")try{fr.onCommitFiberUnmount(xl,e)}catch(t){_i||(_i=!0,s("React instrumentation encountered an error: %s",t))}}var uE=y.unstable_runWithPriority,Kc=y.unstable_scheduleCallback,em=y.unstable_cancelCallback,lE=y.unstable_shouldYield,tm=y.unstable_requestPaint,Jc=y.unstable_now,sE=y.unstable_getCurrentPriorityLevel,Sl=y.unstable_ImmediatePriority,nm=y.unstable_UserBlockingPriority,rm=y.unstable_NormalPriority,am=y.unstable_LowPriority,im=y.unstable_IdlePriority;if(!(x.__interactionsRef!=null&&x.__interactionsRef.current!=null))throw Error("It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling");var om={},Ln=99,za=98,zr=97,um=96,lm=95,Zc=90,cE=lE,fE=tm!==void 0?tm:function(){},Lr=null,Cl=null,ef=!1,sm=Jc(),Qt=sm<1e4?Jc:function(){return Jc()-sm};function wi(){switch(sE()){case Sl:return Ln;case nm:return za;case rm:return zr;case am:return um;case im:return lm;default:throw Error("Unknown priority level.")}}function cm(e){switch(e){case Ln:return Sl;case za:return nm;case zr:return rm;case um:return am;case lm:return im;default:throw Error("Unknown priority level.")}}function La(e,t){var n=cm(e);return uE(n,t)}function oa(e,t,n){var r=cm(e);return Kc(r,t,n)}function dE(e){return Lr===null?(Lr=[e],Cl=Kc(Sl,dm)):Lr.push(e),om}function fm(e){e!==om&&em(e)}function dr(){if(Cl!==null){var e=Cl;Cl=null,em(e)}dm()}function dm(){if(!ef&&Lr!==null){ef=!0;var e=0;try{var t=!0,n=Lr;La(Ln,function(){for(;e<n.length;e++){var r=n[e];do r=r(t);while(r!==null)}}),Lr=null}catch(r){throw Lr!==null&&(Lr=Lr.slice(e+1)),Kc(Sl,dr),r}finally{ef=!1}}}var pm="17.0.2",lt=0,gt=1,pn=2,ja=4,En=8,pE=16,vE=h.ReactCurrentBatchConfig,hE=0;function mE(){return vE.transition}var Xn={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var yE=function(e){for(var t=null,n=e;n!==null;)n.mode>&&(t=n),n=n.return;return t},Ha=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},Go=[],Xo=[],Qo=[],Ko=[],Jo=[],Zo=[],Va=new Set;Xn.recordUnsafeLifecycleWarnings=function(e,t){Va.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Go.push(e),e.mode>&&typeof t.UNSAFE_componentWillMount=="function"&&Xo.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Qo.push(e),e.mode>&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Ko.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Jo.push(e),e.mode>&&typeof t.UNSAFE_componentWillUpdate=="function"&&Zo.push(e))},Xn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Go.length>0&&(Go.forEach(function(b){e.add(Z(b.type)||"Component"),Va.add(b.type)}),Go=[]);var t=new Set;Xo.length>0&&(Xo.forEach(function(b){t.add(Z(b.type)||"Component"),Va.add(b.type)}),Xo=[]);var n=new Set;Qo.length>0&&(Qo.forEach(function(b){n.add(Z(b.type)||"Component"),Va.add(b.type)}),Qo=[]);var r=new Set;Ko.length>0&&(Ko.forEach(function(b){r.add(Z(b.type)||"Component"),Va.add(b.type)}),Ko=[]);var a=new Set;Jo.length>0&&(Jo.forEach(function(b){a.add(Z(b.type)||"Component"),Va.add(b.type)}),Jo=[]);var i=new Set;if(Zo.length>0&&(Zo.forEach(function(b){i.add(Z(b.type)||"Component"),Va.add(b.type)}),Zo=[]),t.size>0){var o=Ha(t);s(`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.
|
|
74
|
-
|
|
75
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
76
|
-
|
|
77
|
-
Please update the following components: %s`,o)}if(r.size>0){var u=Ha(r);s(`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.
|
|
78
|
-
|
|
79
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
80
|
-
* 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
|
|
81
|
-
|
|
82
|
-
Please update the following components: %s`,u)}if(i.size>0){var c=Ha(i);s(`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.
|
|
83
|
-
|
|
84
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
85
|
-
|
|
86
|
-
Please update the following components: %s`,c)}if(e.size>0){var p=Ha(e);m(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
87
|
-
|
|
88
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
89
|
-
* 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.
|
|
90
|
-
|
|
91
|
-
Please update the following components: %s`,p)}if(n.size>0){var v=Ha(n);m(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
92
|
-
|
|
93
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
94
|
-
* 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
|
|
95
|
-
* 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.
|
|
96
|
-
|
|
97
|
-
Please update the following components: %s`,v)}if(a.size>0){var O=Ha(a);m(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
98
|
-
|
|
99
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
100
|
-
* 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.
|
|
101
|
-
|
|
102
|
-
Please update the following components: %s`,O)}};var Rl=new Map,vm=new Set;Xn.recordLegacyContextWarning=function(e,t){var n=yE(e);if(n===null){s("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(!vm.has(e.type)){var r=Rl.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(r===void 0&&(r=[],Rl.set(n,r)),r.push(e))}},Xn.flushLegacyContextWarning=function(){Rl.forEach(function(e,t){if(e.length!==0){var n=e[0],r=new Set;e.forEach(function(i){r.add(Z(i.type)||"Component"),vm.add(i.type)});var a=Ha(r);try{Ct(n),s(`Legacy context API has been detected within a strict-mode tree.
|
|
103
|
-
|
|
104
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
105
|
-
|
|
106
|
-
Please update the following components: %s
|
|
107
|
-
|
|
108
|
-
Learn more about this warning here: https://reactjs.org/link/legacy-context`,a)}finally{Bt()}}})},Xn.discardPendingWarnings=function(){Go=[],Xo=[],Qo=[],Ko=[],Jo=[],Zo=[],Rl=new Map}}function Qn(e,t){if(e&&e.defaultProps){var n=d({},t),r=e.defaultProps;for(var a in r)n[a]===void 0&&(n[a]=r[a]);return n}return t}var El=1073741823,tf=ia(null),nf;nf={};var Tl=null,ki=null,Dl=null,_l=!1;function wl(){Tl=null,ki=null,Dl=null,_l=!1}function hm(){_l=!0}function mm(){_l=!1}function ym(e,t){var n=e.type._context;Xt(tf,n._currentValue,e),n._currentValue=t,n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==nf&&s("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=nf}function rf(e){var t=tf.current;Gt(tf,e);var n=e.type._context;n._currentValue=t}function gE(e,t,n){if(zn(n,t))return 0;var r=typeof e._calculateChangedBits=="function"?e._calculateChangedBits(n,t):El;return(r&El)!==r&&s("calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",r),r|0}function gm(e,t){for(var n=e;n!==null;){var r=n.alternate;if(!Na(n.childLanes,t))n.childLanes=Le(n.childLanes,t),r!==null&&(r.childLanes=Le(r.childLanes,t));else if(r!==null&&!Na(r.childLanes,t))r.childLanes=Le(r.childLanes,t);else break;n=n.return}}function bE(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=void 0,o=a.dependencies;if(o!==null){i=a.child;for(var u=o.firstContext;u!==null;){if(u.context===t&&(u.observedBits&n)!==0){if(a.tag===k){var c=ua(yt,an(r));c.tag=kl,la(a,c)}a.lanes=Le(a.lanes,r);var p=a.alternate;p!==null&&(p.lanes=Le(p.lanes,r)),gm(a.return,r),o.lanes=Le(o.lanes,r);break}u=u.next}}else a.tag===X?i=a.type===e.type?null:a.child:i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}var v=i.sibling;if(v!==null){v.return=i.return,i=v;break}i=i.return}a=i}}function Oi(e,t){Tl=e,ki=null,Dl=null;var n=e.dependencies;if(n!==null){var r=n.firstContext;r!==null&&(qt(n.lanes,t)&&dd(),n.firstContext=null)}}function wt(e,t){if(_l&&s("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()."),Dl!==e){if(!(t===!1||t===0)){var n;typeof t!="number"||t===El?(Dl=e,n=El):n=t;var r={context:e,observedBits:n,next:null};if(ki===null){if(Tl===null)throw 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().");ki=r,Tl.dependencies={lanes:$,firstContext:r,responders:null}}else ki=ki.next=r}}return e._currentValue}var bm=0,xm=1,kl=2,af=3,Ol=!1,of,Nl;of=!1,Nl=null;function uf(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null};e.updateQueue=t}function Sm(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var a={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=a}}function ua(e,t){var n={eventTime:e,lane:t,tag:bm,payload:null,callback:null,next:null};return n}function la(e,t){var n=e.updateQueue;if(n!==null){var r=n.shared,a=r.pending;a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Nl===r&&!of&&(s("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."),of=!0)}}function Cm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null){var a=r.updateQueue;if(n===a){var i=null,o=null,u=n.firstBaseUpdate;if(u!==null){var c=u;do{var p={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};o===null?i=o=p:(o.next=p,o=p),c=c.next}while(c!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:a.shared,effects:a.effects},e.updateQueue=n;return}}var v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function xE(e,t,n,r,a,i){switch(n.tag){case xm:{var o=n.payload;if(typeof o=="function"){hm();var u=o.call(i,r,a);{if(e.mode>){Mn();try{o.call(i,r,a)}finally{An()}}mm()}return u}return o}case af:e.flags=e.flags&~Nr|nt;case bm:{var c=n.payload,p;if(typeof c=="function"){hm(),p=c.call(i,r,a);{if(e.mode>){Mn();try{c.call(i,r,a)}finally{An()}}mm()}}else p=c;return p==null?r:d({},r,p)}case kl:return Ol=!0,r}return r}function eu(e,t,n,r){var a=e.updateQueue;Ol=!1,Nl=a.shared;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,u=a.shared.pending;if(u!==null){a.shared.pending=null;var c=u,p=c.next;c.next=null,o===null?i=p:o.next=p,o=c;var v=e.alternate;if(v!==null){var O=v.updateQueue,b=O.lastBaseUpdate;b!==o&&(b===null?O.firstBaseUpdate=p:b.next=p,O.lastBaseUpdate=c)}}if(i!==null){var A=a.baseState,F=$,Q=null,ve=null,Re=null,be=i;do{var Ne=be.lane,Fe=be.eventTime;if(Na(r,Ne)){if(Re!==null){var j={eventTime:Fe,lane:fn,tag:be.tag,payload:be.payload,callback:be.callback,next:null};Re=Re.next=j}A=xE(e,a,be,A,t,n);var w=be.callback;if(w!==null){e.flags|=Ip;var I=a.effects;I===null?a.effects=[be]:I.push(be)}}else{var M={eventTime:Fe,lane:Ne,tag:be.tag,payload:be.payload,callback:be.callback,next:null};Re===null?(ve=Re=M,Q=A):Re=Re.next=M,F=Le(F,Ne)}if(be=be.next,be===null){if(u=a.shared.pending,u===null)break;var ee=u,se=ee.next;ee.next=null,be=se,a.lastBaseUpdate=ee,a.shared.pending=null}}while(!0);Re===null&&(Q=A),a.baseState=Q,a.firstBaseUpdate=ve,a.lastBaseUpdate=Re,jd(F),e.lanes=F,e.memoizedState=A}Nl=null}function SE(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Rm(){Ol=!1}function Ml(){return Ol}function Em(e,t,n){var r=t.effects;if(t.effects=null,r!==null)for(var a=0;a<r.length;a++){var i=r[a],o=i.callback;o!==null&&(i.callback=null,SE(o,n))}}var lf={},CE=Array.isArray,Tm=new l.Component().refs,sf,cf,ff,df,pf,Dm,Al,vf,hf,mf;{sf=new Set,cf=new Set,ff=new Set,df=new Set,vf=new Set,pf=new Set,hf=new Set,mf=new Set;var _m=new Set;Al=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;_m.has(n)||(_m.add(n),s("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Dm=function(e,t){if(t===void 0){var n=Z(e)||"Component";pf.has(n)||(pf.add(n),s("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(lf,"_processChildContext",{enumerable:!1,value:function(){throw 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(lf)}function Ul(e,t,n,r){var a=e.memoizedState;if(e.mode>){Mn();try{n(r,a)}finally{An()}}var i=n(r,a);Dm(t,i);var o=i==null?a:d({},a,i);if(e.memoizedState=o,e.lanes===$){var u=e.updateQueue;u.baseState=o}}var yf={isMounted:yx,enqueueSetState:function(e,t,n){var r=fi(e),a=Dn(),i=da(r),o=ua(a,i);o.payload=t,n!=null&&(Al(n,"setState"),o.callback=n),la(r,o),Jt(r,i,a)},enqueueReplaceState:function(e,t,n){var r=fi(e),a=Dn(),i=da(r),o=ua(a,i);o.tag=xm,o.payload=t,n!=null&&(Al(n,"replaceState"),o.callback=n),la(r,o),Jt(r,i,a)},enqueueForceUpdate:function(e,t){var n=fi(e),r=Dn(),a=da(n),i=ua(r,a);i.tag=kl,t!=null&&(Al(t,"forceUpdate"),i.callback=t),la(n,i),Jt(n,a,r)}};function wm(e,t,n,r,a,i,o){var u=e.stateNode;if(typeof u.shouldComponentUpdate=="function"){if(e.mode>){Mn();try{u.shouldComponentUpdate(r,i,o)}finally{An()}}var c=u.shouldComponentUpdate(r,i,o);return c===void 0&&s("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),c}return t.prototype&&t.prototype.isPureReactComponent?!zo(n,r)||!zo(a,i):!0}function RE(e,t,n){var r=e.stateNode;{var a=Z(t)||"Component",i=r.render;i||(t.prototype&&typeof t.prototype.render=="function"?s("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",a):s("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",a)),r.getInitialState&&!r.getInitialState.isReactClassApproved&&!r.state&&s("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?",a),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&s("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.",a),r.propTypes&&s("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",a),r.contextType&&s("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",a),r.contextTypes&&s("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",a),t.contextType&&t.contextTypes&&!hf.has(t)&&(hf.add(t),s("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",a)),typeof r.componentShouldUpdate=="function"&&s("%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.",a),t.prototype&&t.prototype.isPureReactComponent&&typeof r.shouldComponentUpdate!="undefined"&&s("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Z(t)||"A pure component"),typeof r.componentDidUnmount=="function"&&s("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",a),typeof r.componentDidReceiveProps=="function"&&s("%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().",a),typeof r.componentWillRecieveProps=="function"&&s("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",a),typeof r.UNSAFE_componentWillRecieveProps=="function"&&s("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",a);var o=r.props!==n;r.props!==void 0&&o&&s("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",a,a),r.defaultProps&&s("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",a,a),typeof r.getSnapshotBeforeUpdate=="function"&&typeof r.componentDidUpdate!="function"&&!ff.has(t)&&(ff.add(t),s("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(t))),typeof r.getDerivedStateFromProps=="function"&&s("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),typeof r.getDerivedStateFromError=="function"&&s("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),typeof t.getSnapshotBeforeUpdate=="function"&&s("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",a);var u=r.state;u&&(typeof u!="object"||CE(u))&&s("%s.state: must be set to an object or null",a),typeof r.getChildContext=="function"&&typeof t.childContextTypes!="object"&&s("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",a)}}function km(e,t){t.updater=yf,e.stateNode=t,cx(t,e),t._reactInternalInstance=lf}function Om(e,t,n){var r=!1,a=Rn,i=Rn,o=t.contextType;if("contextType"in t){var u=o===null||o!==void 0&&o.$$typeof===qr&&o._context===void 0;if(!u&&!mf.has(t)){mf.add(t);var c="";o===void 0?c=" 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"?c=" However, it is set to a "+typeof o+".":o.$$typeof===Er?c=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?c=" Did you accidentally pass the Context.Consumer instead?":c=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",s("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z(t)||"Component",c)}}if(typeof o=="object"&&o!==null)i=wt(o);else{a=Ti(e,t,!0);var p=t.contextTypes;r=p!=null,i=r?Di(e,a):Rn}if(e.mode>){Mn();try{new t(n,i)}finally{An()}}var v=new t(n,i),O=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;km(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&O===null){var b=Z(t)||"Component";cf.has(b)||(cf.add(b),s("`%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.",b,v.state===null?"null":"undefined",b))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var A=null,F=null,Q=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?A="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(A="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?F="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(F="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?Q="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(Q="UNSAFE_componentWillUpdate"),A!==null||F!==null||Q!==null){var ve=Z(t)||"Component",Re=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";df.has(ve)||(df.add(ve),s(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
109
|
-
|
|
110
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
111
|
-
|
|
112
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
113
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,ve,Re,A!==null?`
|
|
114
|
-
`+A:"",F!==null?`
|
|
115
|
-
`+F:"",Q!==null?`
|
|
116
|
-
`+Q:""))}}}return r&&Gh(e,a,i),v}function EE(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(s("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(e.type)||"Component"),yf.enqueueReplaceState(t,t.state,null))}function Nm(e,t,n,r){var a=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==a){{var i=Z(e.type)||"Component";sf.has(i)||(sf.add(i),s("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}yf.enqueueReplaceState(t,t.state,null)}}function gf(e,t,n,r){RE(e,t,n);var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Tm,uf(e);var i=t.contextType;if(typeof i=="object"&&i!==null)a.context=wt(i);else{var o=Ti(e,t,!0);a.context=Di(e,o)}{if(a.state===n){var u=Z(t)||"Component";vf.has(u)||(vf.add(u),s("%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.",u))}e.mode>&&Xn.recordLegacyContextWarning(e,a),Xn.recordUnsafeLifecycleWarnings(e,a)}eu(e,n,a,r),a.state=e.memoizedState;var c=t.getDerivedStateFromProps;typeof c=="function"&&(Ul(e,t,c,n),a.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof a.getSnapshotBeforeUpdate!="function"&&(typeof a.UNSAFE_componentWillMount=="function"||typeof a.componentWillMount=="function")&&(EE(e,a),eu(e,n,a,r),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=Ye)}function TE(e,t,n,r){var a=e.stateNode,i=e.memoizedProps;a.props=i;var o=a.context,u=t.contextType,c=Rn;if(typeof u=="object"&&u!==null)c=wt(u);else{var p=Ti(e,t,!0);c=Di(e,p)}var v=t.getDerivedStateFromProps,O=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function";!O&&(typeof a.UNSAFE_componentWillReceiveProps=="function"||typeof a.componentWillReceiveProps=="function")&&(i!==n||o!==c)&&Nm(e,a,n,c),Rm();var b=e.memoizedState,A=a.state=b;if(eu(e,n,a,r),A=e.memoizedState,i===n&&b===A&&!yl()&&!Ml())return typeof a.componentDidMount=="function"&&(e.flags|=Ye),!1;typeof v=="function"&&(Ul(e,t,v,n),A=e.memoizedState);var F=Ml()||wm(e,t,i,n,b,A,c);return F?(!O&&(typeof a.UNSAFE_componentWillMount=="function"||typeof a.componentWillMount=="function")&&(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=Ye)):(typeof a.componentDidMount=="function"&&(e.flags|=Ye),e.memoizedProps=n,e.memoizedState=A),a.props=n,a.state=A,a.context=c,F}function DE(e,t,n,r,a){var i=t.stateNode;Sm(e,t);var o=t.memoizedProps,u=t.type===t.elementType?o:Qn(t.type,o);i.props=u;var c=t.pendingProps,p=i.context,v=n.contextType,O=Rn;if(typeof v=="object"&&v!==null)O=wt(v);else{var b=Ti(t,n,!0);O=Di(t,b)}var A=n.getDerivedStateFromProps,F=typeof A=="function"||typeof i.getSnapshotBeforeUpdate=="function";!F&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==c||p!==O)&&Nm(t,i,r,O),Rm();var Q=t.memoizedState,ve=i.state=Q;if(eu(t,r,i,a),ve=t.memoizedState,o===c&&Q===ve&&!yl()&&!Ml())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||Q!==e.memoizedState)&&(t.flags|=Ye),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||Q!==e.memoizedState)&&(t.flags|=Da),!1;typeof A=="function"&&(Ul(t,n,A,r),ve=t.memoizedState);var Re=Ml()||wm(t,n,u,r,Q,ve,O);return Re?(!F&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,ve,O),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,ve,O)),typeof i.componentDidUpdate=="function"&&(t.flags|=Ye),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=Da)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||Q!==e.memoizedState)&&(t.flags|=Ye),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||Q!==e.memoizedState)&&(t.flags|=Da),t.memoizedProps=r,t.memoizedState=ve),i.props=r,i.state=ve,i.context=O,Re}var bf,xf,Sf,Cf,Rf,Mm=function(e,t){};bf=!1,xf=!1,Sf={},Cf={},Rf={},Mm=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw 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=Z(t.type)||"Component";Cf[n]||(Cf[n]=!0,s('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var zl=Array.isArray;function tu(e,t,n){var r=n.ref;if(r!==null&&typeof r!="function"&&typeof r!="object"){if((e.mode>||wn)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)){var a=Z(e.type)||"Component";Sf[a]||(s('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r),Sf[a]=!0)}if(n._owner){var i=n._owner,o;if(i){var u=i;if(u.tag!==k)throw 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=u.stateNode}if(!o)throw Error("Missing owner for string ref "+r+". This error is likely caused by a bug in React. Please file an issue.");var c=""+r;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var p=function(v){var O=o.refs;O===Tm&&(O=o.refs={}),v===null?delete O[c]:O[c]=v};return p._stringRef=c,p}else{if(typeof r!="string")throw Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw Error("Element ref was specified as a string ("+r+`) but no owner was set. This could happen for one of the following reasons:
|
|
117
|
-
1. You may be adding a ref to a function component
|
|
118
|
-
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
119
|
-
3. You have multiple copies of React loaded
|
|
120
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return r}function Ll(e,t){if(e.type!=="textarea")throw Error("Objects are not valid as a React child (found: "+(Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}function jl(e){{var t=Z(e.type)||"Component";if(Rf[t])return;Rf[t]=!0,s("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 Am(e){function t(M,j){if(!!e){var w=M.lastEffect;w!==null?(w.nextEffect=j,M.lastEffect=j):M.firstEffect=M.lastEffect=j,j.nextEffect=null,j.flags=kr}}function n(M,j){if(!e)return null;for(var w=j;w!==null;)t(M,w),w=w.sibling;return null}function r(M,j){for(var w=new Map,I=j;I!==null;)I.key!==null?w.set(I.key,I):w.set(I.index,I),I=I.sibling;return w}function a(M,j){var w=Qa(M,j);return w.index=0,w.sibling=null,w}function i(M,j,w){if(M.index=w,!e)return j;var I=M.alternate;if(I!==null){var ee=I.index;return ee<j?(M.flags=Rt,j):ee}else return M.flags=Rt,j}function o(M){return e&&M.alternate===null&&(M.flags=Rt),M}function u(M,j,w,I){if(j===null||j.tag!==L){var ee=Kd(w,M.mode,I);return ee.return=M,ee}else{var se=a(j,w);return se.return=M,se}}function c(M,j,w,I){if(j!==null&&(j.elementType===w.type||pg(j,w))){var ee=a(j,w.props);return ee.ref=tu(M,j,w),ee.return=M,ee._debugSource=w._source,ee._debugOwner=w._owner,ee}var se=Xd(w,M.mode,I);return se.ref=tu(M,j,w),se.return=M,se}function p(M,j,w,I){if(j===null||j.tag!==N||j.stateNode.containerInfo!==w.containerInfo||j.stateNode.implementation!==w.implementation){var ee=Jd(w,M.mode,I);return ee.return=M,ee}else{var se=a(j,w.children||[]);return se.return=M,se}}function v(M,j,w,I,ee){if(j===null||j.tag!==te){var se=Ka(w,M.mode,I,ee);return se.return=M,se}else{var ke=a(j,w);return ke.return=M,ke}}function O(M,j,w){if(typeof j=="string"||typeof j=="number"){var I=Kd(""+j,M.mode,w);return I.return=M,I}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _t:{var ee=Xd(j,M.mode,w);return ee.ref=tu(M,null,j),ee.return=M,ee}case Xe:{var se=Jd(j,M.mode,w);return se.return=M,se}}if(zl(j)||At(j)){var ke=Ka(j,M.mode,w,null);return ke.return=M,ke}Ll(M,j)}return typeof j=="function"&&jl(M),null}function b(M,j,w,I){var ee=j!==null?j.key:null;if(typeof w=="string"||typeof w=="number")return ee!==null?null:u(M,j,""+w,I);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _t:return w.key===ee?w.type===en?v(M,j,w.props.children,I,ee):c(M,j,w,I):null;case Xe:return w.key===ee?p(M,j,w,I):null}if(zl(w)||At(w))return ee!==null?null:v(M,j,w,I,null);Ll(M,w)}return typeof w=="function"&&jl(M),null}function A(M,j,w,I,ee){if(typeof I=="string"||typeof I=="number"){var se=M.get(w)||null;return u(j,se,""+I,ee)}if(typeof I=="object"&&I!==null){switch(I.$$typeof){case _t:{var ke=M.get(I.key===null?w:I.key)||null;return I.type===en?v(j,ke,I.props.children,ee,I.key):c(j,ke,I,ee)}case Xe:{var Je=M.get(I.key===null?w:I.key)||null;return p(j,Je,I,ee)}}if(zl(I)||At(I)){var st=M.get(w)||null;return v(j,st,I,ee,null)}Ll(j,I)}return typeof I=="function"&&jl(j),null}function F(M,j,w){{if(typeof M!="object"||M===null)return j;switch(M.$$typeof){case _t:case Xe:Mm(M,w);var I=M.key;if(typeof I!="string")break;if(j===null){j=new Set,j.add(I);break}if(!j.has(I)){j.add(I);break}s("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 \u2014 the behavior is unsupported and could change in a future version.",I);break}}return j}function Q(M,j,w,I){for(var ee=null,se=0;se<w.length;se++){var ke=w[se];ee=F(ke,ee,M)}for(var Je=null,st=null,je=j,kt=0,Ue=0,ct=null;je!==null&&Ue<w.length;Ue++){je.index>Ue?(ct=je,je=null):ct=je.sibling;var Lt=b(M,je,w[Ue],I);if(Lt===null){je===null&&(je=ct);break}e&&je&&Lt.alternate===null&&t(M,je),kt=i(Lt,kt,Ue),st===null?Je=Lt:st.sibling=Lt,st=Lt,je=ct}if(Ue===w.length)return n(M,je),Je;if(je===null){for(;Ue<w.length;Ue++){var Et=O(M,w[Ue],I);Et!==null&&(kt=i(Et,kt,Ue),st===null?Je=Et:st.sibling=Et,st=Et)}return Je}for(var gr=r(M,je);Ue<w.length;Ue++){var Tt=A(gr,M,Ue,w[Ue],I);Tt!==null&&(e&&Tt.alternate!==null&&gr.delete(Tt.key===null?Ue:Tt.key),kt=i(Tt,kt,Ue),st===null?Je=Tt:st.sibling=Tt,st=Tt)}return e&&gr.forEach(function(br){return t(M,br)}),Je}function ve(M,j,w,I){var ee=At(w);if(typeof ee!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&w[Symbol.toStringTag]==="Generator"&&(xf||s("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."),xf=!0),w.entries===ee&&(bf||s("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),bf=!0);var se=ee.call(w);if(se)for(var ke=null,Je=se.next();!Je.done;Je=se.next()){var st=Je.value;ke=F(st,ke,M)}}var je=ee.call(w);if(je==null)throw Error("An iterable object provided no iterator.");for(var kt=null,Ue=null,ct=j,Lt=0,Et=0,gr=null,Tt=je.next();ct!==null&&!Tt.done;Et++,Tt=je.next()){ct.index>Et?(gr=ct,ct=null):gr=ct.sibling;var br=b(M,ct,Tt.value,I);if(br===null){ct===null&&(ct=gr);break}e&&ct&&br.alternate===null&&t(M,ct),Lt=i(br,Lt,Et),Ue===null?kt=br:Ue.sibling=br,Ue=br,ct=gr}if(Tt.done)return n(M,ct),kt;if(ct===null){for(;!Tt.done;Et++,Tt=je.next()){var Ja=O(M,Tt.value,I);Ja!==null&&(Lt=i(Ja,Lt,Et),Ue===null?kt=Ja:Ue.sibling=Ja,Ue=Ja)}return kt}for(var ip=r(M,ct);!Tt.done;Et++,Tt=je.next()){var ha=A(ip,M,Et,Tt.value,I);ha!==null&&(e&&ha.alternate!==null&&ip.delete(ha.key===null?Et:ha.key),Lt=i(ha,Lt,Et),Ue===null?kt=ha:Ue.sibling=ha,Ue=ha)}return e&&ip.forEach(function(T0){return t(M,T0)}),kt}function Re(M,j,w,I){if(j!==null&&j.tag===L){n(M,j.sibling);var ee=a(j,w);return ee.return=M,ee}n(M,j);var se=Kd(w,M.mode,I);return se.return=M,se}function be(M,j,w,I){for(var ee=w.key,se=j;se!==null;){if(se.key===ee){switch(se.tag){case te:{if(w.type===en){n(M,se.sibling);var ke=a(se,w.props.children);return ke.return=M,ke._debugSource=w._source,ke._debugOwner=w._owner,ke}break}case De:default:{if(se.elementType===w.type||pg(se,w)){n(M,se.sibling);var Je=a(se,w.props);return Je.ref=tu(M,se,w),Je.return=M,Je._debugSource=w._source,Je._debugOwner=w._owner,Je}break}}n(M,se);break}else t(M,se);se=se.sibling}if(w.type===en){var st=Ka(w.props.children,M.mode,I,w.key);return st.return=M,st}else{var je=Xd(w,M.mode,I);return je.ref=tu(M,j,w),je.return=M,je}}function Ne(M,j,w,I){for(var ee=w.key,se=j;se!==null;){if(se.key===ee)if(se.tag===N&&se.stateNode.containerInfo===w.containerInfo&&se.stateNode.implementation===w.implementation){n(M,se.sibling);var ke=a(se,w.children||[]);return ke.return=M,ke}else{n(M,se);break}else t(M,se);se=se.sibling}var Je=Jd(w,M.mode,I);return Je.return=M,Je}function Fe(M,j,w,I){var ee=typeof w=="object"&&w!==null&&w.type===en&&w.key===null;ee&&(w=w.props.children);var se=typeof w=="object"&&w!==null;if(se)switch(w.$$typeof){case _t:return o(be(M,j,w,I));case Xe:return o(Ne(M,j,w,I))}if(typeof w=="string"||typeof w=="number")return o(Re(M,j,""+w,I));if(zl(w))return Q(M,j,w,I);if(At(w))return ve(M,j,w,I);if(se&&Ll(M,w),typeof w=="function"&&jl(M),typeof w=="undefined"&&!ee)switch(M.tag){case k:{var ke=M.stateNode;if(ke.render._isMockFunction)break}case De:case z:case W:case q:throw Error((Z(M.type)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return n(M,j)}return Fe}var Hl=Am(!0),Um=Am(!1);function _E(e,t){if(!(e===null||t.child===e.child))throw Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,r=Qa(n,n.pendingProps);for(t.child=r,r.return=t;n.sibling!==null;)n=n.sibling,r=r.sibling=Qa(n,n.pendingProps),r.return=t;r.sibling=null}}function wE(e,t){for(var n=e.child;n!==null;)FD(n,t),n=n.sibling}var nu={},sa=ia(nu),ru=ia(nu),Vl=ia(nu);function Bl(e){if(e===nu)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function zm(){var e=Bl(Vl.current);return e}function Ef(e,t){Xt(Vl,t,e),Xt(ru,e,e),Xt(sa,nu,e);var n=lR(t);Gt(sa,e),Xt(sa,n,e)}function Ni(e){Gt(sa,e),Gt(ru,e),Gt(Vl,e)}function Tf(){var e=Bl(sa.current);return e}function Lm(e){Bl(Vl.current);var t=Bl(sa.current),n=sR(t,e.type);t!==n&&(Xt(ru,e,e),Xt(sa,n,e))}function Df(e){ru.current===e&&(Gt(sa,e),Gt(ru,e))}var kE=0,jm=1,_f=1,au=2,Kn=ia(kE);function Fl(e,t){return(e&t)!==0}function iu(e){return e&jm}function wf(e,t){return e&jm|t}function OE(e,t){return e|t}function Ba(e,t){Xt(Kn,t,e)}function Mi(e){Gt(Kn,e)}function NE(e,t){var n=e.memoizedState;if(n!==null)return n.dehydrated!==null;var r=e.memoizedProps;return r.fallback===void 0?!1:r.unstable_avoidThisFallback!==!0?!0:!t}function $l(e){for(var t=e;t!==null;){if(t.tag===_){var n=t.memoizedState;if(n!==null){var r=n.dehydrated;if(r===null||AR(r)||UR(r))return t}}else if(t.tag===ce&&t.memoizedProps.revealOrder!==void 0){var a=(t.flags&nt)!==mt;if(a)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 kf=0,Ai=1,Ui=2,ou=4,jn=null,Fa=null,ca=!1;function ME(e){var t=e.stateNode.containerInfo;return Fa=Bh(t),jn=e,ca=!0,!0}function Hm(e,t){switch(e.tag){case D:$R(e.stateNode.containerInfo,t);break;case E:PR(e.type,e.memoizedProps,e.stateNode,t);break}var n=qD();n.stateNode=t,n.return=e,n.flags=kr,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vm(e,t){switch(t.flags=t.flags&~Or|Rt,e.tag){case D:{var n=e.stateNode.containerInfo;switch(t.tag){case E:var r=t.type;t.pendingProps,YR(n,r);break;case L:var a=t.pendingProps;WR(n,a);break}break}case E:{var i=e.type,o=e.memoizedProps,u=e.stateNode;switch(t.tag){case E:var c=t.type;t.pendingProps,IR(i,o,u,c);break;case L:var p=t.pendingProps;qR(i,o,u,p);break;case _:GR(i,o);break}break}default:return}}function Bm(e,t){switch(e.tag){case E:{var n=e.type;e.pendingProps;var r=NR(t,n);return r!==null?(e.stateNode=r,!0):!1}case L:{var a=e.pendingProps,i=MR(t,a);return i!==null?(e.stateNode=i,!0):!1}case _:return!1;default:return!1}}function Of(e){if(!!ca){var t=Fa;if(!t){Vm(jn,e),ca=!1,jn=e;return}var n=t;if(!Bm(e,t)){if(t=cl(n),!t||!Bm(e,t)){Vm(jn,e),ca=!1,jn=e;return}Hm(jn,n)}jn=e,Fa=Bh(t)}}function AE(e,t,n){var r=e.stateNode,a=zR(r,e.type,e.memoizedProps,t,n,e);return e.updateQueue=a,a!==null}function UE(e){var t=e.stateNode,n=e.memoizedProps,r=LR(t,n,e);if(r){var a=jn;if(a!==null)switch(a.tag){case D:{var i=a.stateNode.containerInfo;BR(i,t,n);break}case E:{var o=a.type,u=a.memoizedProps,c=a.stateNode;FR(o,u,c,t,n);break}}}return r}function zE(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return jR(n)}function Fm(e){for(var t=e.return;t!==null&&t.tag!==E&&t.tag!==D&&t.tag!==_;)t=t.return;jn=t}function Pl(e){if(e!==jn)return!1;if(!ca)return Fm(e),ca=!0,!1;var t=e.type;if(e.tag!==E||t!=="head"&&t!=="body"&&!$c(t,e.memoizedProps))for(var n=Fa;n;)Hm(e,n),n=cl(n);return Fm(e),e.tag===_?Fa=zE(e):Fa=jn?cl(e.stateNode):null,!0}function Nf(){jn=null,Fa=null,ca=!1}function Mf(){return ca}var uu=[],Af;Af={};function LE(e){uu.push(e)}function Uf(){for(var e=0;e<uu.length;e++){var t=uu[e];t._workInProgressVersionPrimary=null}uu.length=0}function jE(e){return e._workInProgressVersionPrimary}function $m(e,t){e._workInProgressVersionPrimary=t,uu.push(e)}function HE(e){e._currentPrimaryRenderer==null?e._currentPrimaryRenderer=Af:e._currentPrimaryRenderer!==Af&&s("Detected multiple renderers concurrently rendering the same mutable source. This is currently unsupported.")}var ie=h.ReactCurrentDispatcher,Hn=h.ReactCurrentBatchConfig,zf,Lf;Lf={},zf=new Set;var lu=$,We=null,Kt=null,zt=null,Yl=!1,su=!1,VE=25,P=null,Vn=null,fa=-1,jf=!1;function Be(){{var e=P;Vn===null?Vn=[e]:Vn.push(e)}}function oe(){{var e=P;Vn!==null&&(fa++,Vn[fa]!==e&&BE(e))}}function cu(e){e!=null&&!Array.isArray(e)&&s("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",P,typeof e)}function BE(e){{var t=Z(We.type);if(!zf.has(t)&&(zf.add(t),Vn!==null)){for(var n="",r=30,a=0;a<=fa;a++){for(var i=Vn[a],o=a===fa?e:i,u=a+1+". "+i;u.length<r;)u+=" ";u+=o+`
|
|
121
|
-
`,n+=u}s(`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
|
|
122
|
-
|
|
123
|
-
Previous render Next render
|
|
124
|
-
------------------------------------------------------
|
|
125
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
126
|
-
`,t,n)}}}function vn(){throw 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:
|
|
127
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
128
|
-
2. You might be breaking the Rules of Hooks
|
|
129
|
-
3. You might have more than one copy of React in the same app
|
|
130
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Hf(e,t){if(jf)return!1;if(t===null)return s("%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.",P),!1;e.length!==t.length&&s(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
131
|
-
|
|
132
|
-
Previous: %s
|
|
133
|
-
Incoming: %s`,P,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!zn(e[n],t[n]))return!1;return!0}function zi(e,t,n,r,a,i){lu=i,We=t,Vn=e!==null?e._debugHookTypes:null,fa=-1,jf=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=$,e!==null&&e.memoizedState!==null?ie.current=ry:Vn!==null?ie.current=ny:ie.current=ty;var o=n(r,a);if(su){var u=0;do{if(su=!1,!(u<VE))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");u+=1,jf=!1,Kt=null,zt=null,t.updateQueue=null,fa=-1,ie.current=ay,o=n(r,a)}while(su)}ie.current=ns,t._debugHookTypes=Vn;var c=Kt!==null&&Kt.next!==null;if(lu=$,We=null,Kt=null,zt=null,P=null,Vn=null,fa=-1,Yl=!1,c)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Pm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=~(go|Ye),e.lanes=Ku(e.lanes,n)}function Ym(){if(ie.current=ns,Yl){for(var e=We.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}lu=$,We=null,Kt=null,zt=null,Vn=null,fa=-1,P=null,ts=!1,su=!1}function $a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?We.memoizedState=zt=e:zt=zt.next=e,zt}function Pa(){var e;if(Kt===null){var t=We.alternate;t!==null?e=t.memoizedState:e=null}else e=Kt.next;var n;if(zt===null?n=We.memoizedState:n=zt.next,n!==null)zt=n,n=zt.next,Kt=e;else{if(e===null)throw Error("Rendered more hooks than during the previous render.");Kt=e;var r={memoizedState:Kt.memoizedState,baseState:Kt.baseState,baseQueue:Kt.baseQueue,queue:Kt.queue,next:null};zt===null?We.memoizedState=zt=r:zt=zt.next=r}return zt}function FE(){return{lastEffect:null}}function Wl(e,t){return typeof t=="function"?t(e):t}function Vf(e,t,n){var r=$a(),a;n!==void 0?a=n(t):a=t,r.memoizedState=r.baseState=a;var i=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},o=i.dispatch=Jf.bind(null,We,i);return[r.memoizedState,o]}function Bf(e,t,n){var r=Pa(),a=r.queue;if(a===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var i=Kt,o=i.baseQueue,u=a.pending;if(u!==null){if(o!==null){var c=o.next,p=u.next;o.next=p,u.next=c}i.baseQueue!==o&&s("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=u,a.pending=null}if(o!==null){var v=o.next,O=i.baseState,b=null,A=null,F=null,Q=v;do{var ve=Q.lane;if(Na(lu,ve)){if(F!==null){var be={lane:fn,action:Q.action,eagerReducer:Q.eagerReducer,eagerState:Q.eagerState,next:null};F=F.next=be}if(Q.eagerReducer===e)O=Q.eagerState;else{var Ne=Q.action;O=e(O,Ne)}}else{var Re={lane:ve,action:Q.action,eagerReducer:Q.eagerReducer,eagerState:Q.eagerState,next:null};F===null?(A=F=Re,b=O):F=F.next=Re,We.lanes=Le(We.lanes,ve),jd(ve)}Q=Q.next}while(Q!==null&&Q!==v);F===null?b=O:F.next=A,zn(O,r.memoizedState)||dd(),r.memoizedState=O,r.baseState=b,r.baseQueue=F,a.lastRenderedState=O}var Fe=a.dispatch;return[r.memoizedState,Fe]}function Ff(e,t,n){var r=Pa(),a=r.queue;if(a===null)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,u=r.memoizedState;if(o!==null){a.pending=null;var c=o.next,p=c;do{var v=p.action;u=e(u,v),p=p.next}while(p!==c);zn(u,r.memoizedState)||dd(),r.memoizedState=u,r.baseQueue===null&&(r.baseState=u),a.lastRenderedState=u}return[u,i]}function Wm(e,t,n){HE(t);var r=t._getVersion,a=r(t._source),i=!1,o=jE(t);if(o!==null?i=o===a:(i=Na(lu,e.mutableReadLanes),i&&$m(t,a)),i){var u=n(t._source);return typeof u=="function"&&s("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),u}else throw LE(t),Error("Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue.")}function Im(e,t,n,r){var a=WT();if(a===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var i=t._getVersion,o=i(t._source),u=ie.current,c=u.useState(function(){return Wm(a,t,n)}),p=c[0],v=c[1],O=p,b=zt,A=e.memoizedState,F=A.refs,Q=F.getSnapshot,ve=A.source,Re=A.subscribe,be=We;if(e.memoizedState={refs:F,source:t,subscribe:r},u.useEffect(function(){F.getSnapshot=n,F.setSnapshot=v;var Fe=i(t._source);if(!zn(o,Fe)){var M=n(t._source);if(typeof M=="function"&&s("Mutable source should not return a function as the snapshot value. Functions may close over mutable values and cause tearing."),!zn(O,M)){v(M);var j=da(be);Lv(a,j)}rS(a,a.mutableReadLanes)}},[n,t,r]),u.useEffect(function(){var Fe=function(){var j=F.getSnapshot,w=F.setSnapshot;try{w(j(t._source));var I=da(be);Lv(a,I)}catch(ee){w(function(){throw ee})}},M=r(t._source,Fe);return typeof M!="function"&&s("Mutable source subscribe function must return an unsubscribe function."),M},[t,r]),!zn(Q,n)||!zn(ve,t)||!zn(Re,r)){var Ne={pending:null,dispatch:null,lastRenderedReducer:Wl,lastRenderedState:O};Ne.dispatch=v=Jf.bind(null,We,Ne),b.queue=Ne,b.baseQueue=null,O=Wm(a,t,n),b.memoizedState=b.baseState=O}return O}function $f(e,t,n){var r=$a();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Im(r,e,t,n)}function Il(e,t,n){var r=Pa();return Im(r,e,t,n)}function Ya(e){var t=$a();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n=t.queue={pending:null,dispatch:null,lastRenderedReducer:Wl,lastRenderedState:e},r=n.dispatch=Jf.bind(null,We,n);return[t.memoizedState,r]}function fu(e){return Bf(Wl)}function du(e){return Ff(Wl)}function ql(e,t,n,r){var a={tag:e,create:t,destroy:n,deps:r,next:null},i=We.updateQueue;if(i===null)i=FE(),We.updateQueue=i,i.lastEffect=a.next=a;else{var o=i.lastEffect;if(o===null)i.lastEffect=a.next=a;else{var u=o.next;o.next=a,a.next=u,i.lastEffect=a}}return a}function Gl(e){var t=$a(),n={current:e};return Object.seal(n),t.memoizedState=n,n}function Li(e){var t=Pa();return t.memoizedState}function Pf(e,t,n,r){var a=$a(),i=r===void 0?null:r;We.flags|=e,a.memoizedState=ql(Ai|t,n,void 0,i)}function Yf(e,t,n,r){var a=Pa(),i=r===void 0?null:r,o=void 0;if(Kt!==null){var u=Kt.memoizedState;if(o=u.destroy,i!==null){var c=u.deps;if(Hf(i,c)){ql(t,n,o,i);return}}}We.flags|=e,a.memoizedState=ql(Ai|t,n,o,i)}function Xl(e,t){return typeof jest!="undefined"&&ug(We),Pf(Ye|go,ou,e,t)}function ji(e,t){return typeof jest!="undefined"&&ug(We),Yf(Ye|go,ou,e,t)}function Wf(e,t){return Pf(Ye,Ui,e,t)}function Ql(e,t){return Yf(Ye,Ui,e,t)}function qm(e,t){if(typeof t=="function"){var n=t,r=e();return n(r),function(){n(null)}}else if(t!=null){var a=t;a.hasOwnProperty("current")||s("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}");var i=e();return a.current=i,function(){a.current=null}}}function If(e,t,n){typeof t!="function"&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var r=n!=null?n.concat([e]):null;return Pf(Ye,Ui,qm.bind(null,t,e),r)}function Kl(e,t,n){typeof t!="function"&&s("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var r=n!=null?n.concat([e]):null;return Yf(Ye,Ui,qm.bind(null,t,e),r)}function $E(e,t){}var Jl=$E;function qf(e,t){var n=$a(),r=t===void 0?null:t;return n.memoizedState=[e,r],e}function Zl(e,t){var n=Pa(),r=t===void 0?null:t,a=n.memoizedState;if(a!==null&&r!==null){var i=a[1];if(Hf(r,i))return a[0]}return n.memoizedState=[e,r],e}function Gf(e,t){var n=$a(),r=t===void 0?null:t,a=e();return n.memoizedState=[a,r],a}function es(e,t){var n=Pa(),r=t===void 0?null:t,a=n.memoizedState;if(a!==null&&r!==null){var i=a[1];if(Hf(r,i))return a[0]}var o=e();return n.memoizedState=[o,r],o}function Xf(e){var t=Ya(e),n=t[0],r=t[1];return Xl(function(){var a=Hn.transition;Hn.transition=1;try{r(e)}finally{Hn.transition=a}},[e]),n}function Gm(e){var t=fu(),n=t[0],r=t[1];return ji(function(){var a=Hn.transition;Hn.transition=1;try{r(e)}finally{Hn.transition=a}},[e]),n}function Xm(e){var t=du(),n=t[0],r=t[1];return ji(function(){var a=Hn.transition;Hn.transition=1;try{r(e)}finally{Hn.transition=a}},[e]),n}function PE(e,t){var n=wi();La(n<za?za:n,function(){e(!0)}),La(n>zr?zr:n,function(){var r=Hn.transition;Hn.transition=1;try{e(!1),t()}finally{Hn.transition=r}})}function Qf(){var e=Ya(!1),t=e[0],n=e[1],r=PE.bind(null,n);return Gl(r),[r,t]}function Qm(){var e=fu(),t=e[0],n=Li(),r=n.current;return[r,t]}function Km(){var e=du(),t=e[0],n=Li(),r=n.current;return[r,t]}var ts=!1;function YE(){return ts}function Jm(e){{var t=Z(e.type)||"Unknown";Bs()&&!Lf[t]&&(s("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly."),Lf[t]=!0)}}function Kf(){var e=QR.bind(null,Jm.bind(null,We));if(Mf()){var t=!1,n=We,r=function(){throw t||(t=!0,ts=!0,i(e()),ts=!1,Jm(n)),Error("The object passed back from useOpaqueIdentifier is meant to be passed through to attributes only. Do not read the value directly.")},a=JR(r),i=Ya(a)[1];return(We.mode&pn)===lt&&(We.flags|=Ye|go,ql(Ai|ou,function(){i(e())},void 0,null)),a}else{var o=e();return Ya(o),o}}function Zm(){var e=fu()[0];return e}function ey(){var e=du()[0];return e}function Jf(e,t,n){typeof arguments[3]=="function"&&s("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 r=Dn(),a=da(e),i={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;o===null?i.next=i:(i.next=o.next,o.next=i),t.pending=i;var u=e.alternate;if(e===We||u!==null&&u===We)su=Yl=!0;else{if(e.lanes===$&&(u===null||u.lanes===$)){var c=t.lastRenderedReducer;if(c!==null){var p;p=ie.current,ie.current=Jn;try{var v=t.lastRenderedState,O=c(v,n);if(i.eagerReducer=c,i.eagerState=O,zn(O,v))return}catch{}finally{ie.current=p}}}typeof jest!="undefined"&&(og(e),_D(e)),Jt(e,a,r)}}var ns={readContext:wt,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useDeferredValue:vn,useTransition:vn,useMutableSource:vn,useOpaqueIdentifier:vn,unstable_isNewReconciler:dt},ty=null,ny=null,ry=null,ay=null,pr=null,Jn=null,rs=null;{var Zf=function(){s("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().")},Te=function(){s("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")};ty={readContext:function(e,t){return wt(e,t)},useCallback:function(e,t){return P="useCallback",Be(),cu(t),qf(e,t)},useContext:function(e,t){return P="useContext",Be(),wt(e,t)},useEffect:function(e,t){return P="useEffect",Be(),cu(t),Xl(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",Be(),cu(n),If(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",Be(),cu(t),Wf(e,t)},useMemo:function(e,t){P="useMemo",Be(),cu(t);var n=ie.current;ie.current=pr;try{return Gf(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",Be();var r=ie.current;ie.current=pr;try{return Vf(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",Be(),Gl(e)},useState:function(e){P="useState",Be();var t=ie.current;ie.current=pr;try{return Ya(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",Be(),void 0},useDeferredValue:function(e){return P="useDeferredValue",Be(),Xf(e)},useTransition:function(){return P="useTransition",Be(),Qf()},useMutableSource:function(e,t,n){return P="useMutableSource",Be(),$f(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",Be(),Kf()},unstable_isNewReconciler:dt},ny={readContext:function(e,t){return wt(e,t)},useCallback:function(e,t){return P="useCallback",oe(),qf(e,t)},useContext:function(e,t){return P="useContext",oe(),wt(e,t)},useEffect:function(e,t){return P="useEffect",oe(),Xl(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",oe(),If(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",oe(),Wf(e,t)},useMemo:function(e,t){P="useMemo",oe();var n=ie.current;ie.current=pr;try{return Gf(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",oe();var r=ie.current;ie.current=pr;try{return Vf(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",oe(),Gl(e)},useState:function(e){P="useState",oe();var t=ie.current;ie.current=pr;try{return Ya(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",oe(),void 0},useDeferredValue:function(e){return P="useDeferredValue",oe(),Xf(e)},useTransition:function(){return P="useTransition",oe(),Qf()},useMutableSource:function(e,t,n){return P="useMutableSource",oe(),$f(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",oe(),Kf()},unstable_isNewReconciler:dt},ry={readContext:function(e,t){return wt(e,t)},useCallback:function(e,t){return P="useCallback",oe(),Zl(e,t)},useContext:function(e,t){return P="useContext",oe(),wt(e,t)},useEffect:function(e,t){return P="useEffect",oe(),ji(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",oe(),Kl(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",oe(),Ql(e,t)},useMemo:function(e,t){P="useMemo",oe();var n=ie.current;ie.current=Jn;try{return es(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",oe();var r=ie.current;ie.current=Jn;try{return Bf(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",oe(),Li()},useState:function(e){P="useState",oe();var t=ie.current;ie.current=Jn;try{return fu(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",oe(),Jl()},useDeferredValue:function(e){return P="useDeferredValue",oe(),Gm(e)},useTransition:function(){return P="useTransition",oe(),Qm()},useMutableSource:function(e,t,n){return P="useMutableSource",oe(),Il(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",oe(),Zm()},unstable_isNewReconciler:dt},ay={readContext:function(e,t){return wt(e,t)},useCallback:function(e,t){return P="useCallback",oe(),Zl(e,t)},useContext:function(e,t){return P="useContext",oe(),wt(e,t)},useEffect:function(e,t){return P="useEffect",oe(),ji(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",oe(),Kl(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",oe(),Ql(e,t)},useMemo:function(e,t){P="useMemo",oe();var n=ie.current;ie.current=rs;try{return es(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",oe();var r=ie.current;ie.current=rs;try{return Ff(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",oe(),Li()},useState:function(e){P="useState",oe();var t=ie.current;ie.current=rs;try{return du(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",oe(),Jl()},useDeferredValue:function(e){return P="useDeferredValue",oe(),Xm(e)},useTransition:function(){return P="useTransition",oe(),Km()},useMutableSource:function(e,t,n){return P="useMutableSource",oe(),Il(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",oe(),ey()},unstable_isNewReconciler:dt},pr={readContext:function(e,t){return Zf(),wt(e,t)},useCallback:function(e,t){return P="useCallback",Te(),Be(),qf(e,t)},useContext:function(e,t){return P="useContext",Te(),Be(),wt(e,t)},useEffect:function(e,t){return P="useEffect",Te(),Be(),Xl(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",Te(),Be(),If(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",Te(),Be(),Wf(e,t)},useMemo:function(e,t){P="useMemo",Te(),Be();var n=ie.current;ie.current=pr;try{return Gf(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",Te(),Be();var r=ie.current;ie.current=pr;try{return Vf(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",Te(),Be(),Gl(e)},useState:function(e){P="useState",Te(),Be();var t=ie.current;ie.current=pr;try{return Ya(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",Te(),Be(),void 0},useDeferredValue:function(e){return P="useDeferredValue",Te(),Be(),Xf(e)},useTransition:function(){return P="useTransition",Te(),Be(),Qf()},useMutableSource:function(e,t,n){return P="useMutableSource",Te(),Be(),$f(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",Te(),Be(),Kf()},unstable_isNewReconciler:dt},Jn={readContext:function(e,t){return Zf(),wt(e,t)},useCallback:function(e,t){return P="useCallback",Te(),oe(),Zl(e,t)},useContext:function(e,t){return P="useContext",Te(),oe(),wt(e,t)},useEffect:function(e,t){return P="useEffect",Te(),oe(),ji(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",Te(),oe(),Kl(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",Te(),oe(),Ql(e,t)},useMemo:function(e,t){P="useMemo",Te(),oe();var n=ie.current;ie.current=Jn;try{return es(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",Te(),oe();var r=ie.current;ie.current=Jn;try{return Bf(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",Te(),oe(),Li()},useState:function(e){P="useState",Te(),oe();var t=ie.current;ie.current=Jn;try{return fu(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",Te(),oe(),Jl()},useDeferredValue:function(e){return P="useDeferredValue",Te(),oe(),Gm(e)},useTransition:function(){return P="useTransition",Te(),oe(),Qm()},useMutableSource:function(e,t,n){return P="useMutableSource",Te(),oe(),Il(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",Te(),oe(),Zm()},unstable_isNewReconciler:dt},rs={readContext:function(e,t){return Zf(),wt(e,t)},useCallback:function(e,t){return P="useCallback",Te(),oe(),Zl(e,t)},useContext:function(e,t){return P="useContext",Te(),oe(),wt(e,t)},useEffect:function(e,t){return P="useEffect",Te(),oe(),ji(e,t)},useImperativeHandle:function(e,t,n){return P="useImperativeHandle",Te(),oe(),Kl(e,t,n)},useLayoutEffect:function(e,t){return P="useLayoutEffect",Te(),oe(),Ql(e,t)},useMemo:function(e,t){P="useMemo",Te(),oe();var n=ie.current;ie.current=Jn;try{return es(e,t)}finally{ie.current=n}},useReducer:function(e,t,n){P="useReducer",Te(),oe();var r=ie.current;ie.current=Jn;try{return Ff(e,t,n)}finally{ie.current=r}},useRef:function(e){return P="useRef",Te(),oe(),Li()},useState:function(e){P="useState",Te(),oe();var t=ie.current;ie.current=Jn;try{return du(e)}finally{ie.current=t}},useDebugValue:function(e,t){return P="useDebugValue",Te(),oe(),Jl()},useDeferredValue:function(e){return P="useDeferredValue",Te(),oe(),Xm(e)},useTransition:function(){return P="useTransition",Te(),oe(),Km()},useMutableSource:function(e,t,n){return P="useMutableSource",Te(),oe(),Il(e,t,n)},useOpaqueIdentifier:function(){return P="useOpaqueIdentifier",Te(),oe(),ey()},unstable_isNewReconciler:dt}}var as=y.unstable_now,iy=0,pu=-1;function WE(){return iy}function oy(){iy=as()}function ed(e){pu=as(),e.actualStartTime<0&&(e.actualStartTime=as())}function uy(e){pu=-1}function is(e,t){if(pu>=0){var n=as()-pu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),pu=-1}}function td(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}var vu=h.ReactCurrentOwner,vr=!1,nd,hu,rd,ad,id,Wa,od,os;nd={},hu={},rd={},ad={},id={},Wa=!1,od={},os={};function hn(e,t,n,r){e===null?t.child=Um(t,null,n,r):t.child=Hl(t,e.child,n,r)}function IE(e,t,n,r){t.child=Hl(t,e.child,null,r),t.child=Hl(t,null,n,r)}function ly(e,t,n,r,a){if(t.type!==t.elementType){var i=n.propTypes;i&&Gn(i,r,"prop",Z(n))}var o=n.render,u=t.ref,c;Oi(t,a);{if(vu.current=t,xn(!0),c=zi(e,t,o,r,u,a),t.mode>){Mn();try{c=zi(e,t,o,r,u,a)}finally{An()}}xn(!1)}return e!==null&&!vr?(Pm(e,t,a),jr(e,t,a)):(t.flags|=ea,hn(e,t,c,a),t.child)}function sy(e,t,n,r,a,i){if(e===null){var o=n.type;if(VD(o)&&n.compare===null&&n.defaultProps===void 0){var u=o;return u=Wi(o),t.tag=q,t.type=u,cd(t,o),cy(e,t,u,r,a,i)}{var c=o.propTypes;c&&Gn(c,r,"prop",Z(o))}var p=Gd(n.type,null,r,t,t.mode,i);return p.ref=t.ref,p.return=t,t.child=p,p}{var v=n.type,O=v.propTypes;O&&Gn(O,r,"prop",Z(v))}var b=e.child;if(!qt(a,i)){var A=b.memoizedProps,F=n.compare;if(F=F!==null?F:zo,F(A,r)&&e.ref===t.ref)return jr(e,t,i)}t.flags|=ea;var Q=Qa(b,r);return Q.ref=t.ref,Q.return=t,t.child=Q,Q}function cy(e,t,n,r,a,i){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===B){var u=o,c=u._payload,p=u._init;try{o=p(c)}catch{o=null}var v=o&&o.propTypes;v&&Gn(v,r,"prop",Z(o))}}if(e!==null){var O=e.memoizedProps;if(zo(O,r)&&e.ref===t.ref&&t.type===e.type)if(vr=!1,qt(i,a))(e.flags&cc)!==mt&&(vr=!0);else return t.lanes=e.lanes,jr(e,t,i)}return ld(e,t,n,r,i)}function ud(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if((t.mode&ja)===lt){var o={baseLanes:$};t.memoizedState=o,Cs(t,n)}else if(qt(n,lr)){var v={baseLanes:$};t.memoizedState=v;var O=i!==null?i.baseLanes:n;Cs(t,O)}else{var u;if(i!==null){var c=i.baseLanes;u=Le(c,n)}else u=n;ws(lr),t.lanes=t.childLanes=lr;var p={baseLanes:u};return t.memoizedState=p,Cs(t,u),null}else{var b;i!==null?(b=Le(i.baseLanes,n),t.memoizedState=null):b=n,Cs(t,b)}return hn(e,t,a,n),t.child}var qE=ud;function GE(e,t,n){var r=t.pendingProps;return hn(e,t,r,n),t.child}function XE(e,t,n){var r=t.pendingProps.children;return hn(e,t,r,n),t.child}function QE(e,t,n){{t.flags|=Ye;var r=t.stateNode;r.effectDuration=0,r.passiveEffectDuration=0}var a=t.pendingProps,i=a.children;return hn(e,t,i,n),t.child}function fy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Bu)}function ld(e,t,n,r,a){if(t.type!==t.elementType){var i=n.propTypes;i&&Gn(i,r,"prop",Z(n))}var o;{var u=Ti(t,n,!0);o=Di(t,u)}var c;Oi(t,a);{if(vu.current=t,xn(!0),c=zi(e,t,n,r,o,a),t.mode>){Mn();try{c=zi(e,t,n,r,o,a)}finally{An()}}xn(!1)}return e!==null&&!vr?(Pm(e,t,a),jr(e,t,a)):(t.flags|=ea,hn(e,t,c,a),t.child)}function dy(e,t,n,r,a){if(t.type!==t.elementType){var i=n.propTypes;i&&Gn(i,r,"prop",Z(n))}var o;cr(n)?(o=!0,bl(t)):o=!1,Oi(t,a);var u=t.stateNode,c;u===null?(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Rt),Om(t,n,r),gf(t,n,r,a),c=!0):e===null?c=TE(t,n,r,a):c=DE(e,t,n,r,a);var p=sd(e,t,n,c,o,a);{var v=t.stateNode;c&&v.props!==r&&(Wa||s("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(t.type)||"a component"),Wa=!0)}return p}function sd(e,t,n,r,a,i){fy(e,t);var o=(t.flags&nt)!==mt;if(!r&&!o)return a&&Kh(t,n,!1),jr(e,t,i);var u=t.stateNode;vu.current=t;var c;if(o&&typeof n.getDerivedStateFromError!="function")c=null,uy();else{if(xn(!0),c=u.render(),t.mode>){Mn();try{u.render()}finally{An()}}xn(!1)}return t.flags|=ea,e!==null&&o?IE(e,t,c,i):hn(e,t,c,i),t.memoizedState=u.state,a&&Kh(t,n,!0),t.child}function py(e){var t=e.stateNode;t.pendingContext?Xh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Xh(e,t.context,!1),Ef(e,t.containerInfo)}function KE(e,t,n){py(t);var r=t.updateQueue;if(!(e!==null&&r!==null))throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");var a=t.pendingProps,i=t.memoizedState,o=i!==null?i.element:null;Sm(e,t),eu(t,a,null,n);var u=t.memoizedState,c=u.element;if(c===o)return Nf(),jr(e,t,n);var p=t.stateNode;if(p.hydrate&&ME(t)){{var v=p.mutableSourceEagerHydrationData;if(v!=null)for(var O=0;O<v.length;O+=2){var b=v[O],A=v[O+1];$m(b,A)}}var F=Um(t,null,c,n);t.child=F;for(var Q=F;Q;)Q.flags=Q.flags&~Rt|Or,Q=Q.sibling}else hn(e,t,c,n),Nf();return t.child}function JE(e,t,n){Lm(t),e===null&&Of(t);var r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,u=$c(r,a);return u?o=null:i!==null&&$c(r,i)&&(t.flags|=Vu),fy(e,t),hn(e,t,o,n),t.child}function ZE(e,t){return e===null&&Of(t),null}function eT(e,t,n,r,a){e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Rt);var i=t.pendingProps,o=n,u=o._payload,c=o._init,p=c(u);t.type=p;var v=t.tag=BD(p),O=Qn(p,i),b;switch(v){case z:return cd(t,p),t.type=p=Wi(p),b=ld(null,t,p,O,a),b;case k:return t.type=p=$d(p),b=dy(null,t,p,O,a),b;case W:return t.type=p=Pd(p),b=ly(null,t,p,O,a),b;case Y:{if(t.type!==t.elementType){var A=p.propTypes;A&&Gn(A,O,"prop",Z(p))}return b=sy(null,t,p,Qn(p.type,O),r,a),b}}var F="";throw p!==null&&typeof p=="object"&&p.$$typeof===B&&(F=" Did you wrap a component in React.lazy() more than once?"),Error("Element type is invalid. Received a promise that resolves to: "+p+". Lazy element type must resolve to a class or function."+F)}function tT(e,t,n,r,a){e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Rt),t.tag=k;var i;return cr(n)?(i=!0,bl(t)):i=!1,Oi(t,a),Om(t,n,r),gf(t,n,r,a),sd(null,t,n,!0,i,a)}function nT(e,t,n,r){e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Rt);var a=t.pendingProps,i;{var o=Ti(t,n,!1);i=Di(t,o)}Oi(t,r);var u;{if(n.prototype&&typeof n.prototype.render=="function"){var c=Z(n)||"Unknown";nd[c]||(s("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),nd[c]=!0)}t.mode>&&Xn.recordLegacyContextWarning(t,null),xn(!0),vu.current=t,u=zi(null,t,n,a,i,r),xn(!1)}if(t.flags|=ea,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){var p=Z(n)||"Unknown";hu[p]||(s("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.",p,p,p),hu[p]=!0)}if(typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0){{var v=Z(n)||"Unknown";hu[v]||(s("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",v,v,v),hu[v]=!0)}t.tag=k,t.memoizedState=null,t.updateQueue=null;var O=!1;cr(n)?(O=!0,bl(t)):O=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,uf(t);var b=n.getDerivedStateFromProps;return typeof b=="function"&&Ul(t,n,b,a),km(t,u),gf(t,n,a,r),sd(null,t,n,!0,O,r)}else{if(t.tag=z,t.mode>){Mn();try{u=zi(null,t,n,a,i,r)}finally{An()}}return hn(null,t,u,r),cd(t,n),t.child}}function cd(e,t){{if(t&&t.childContextTypes&&s("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",r=Qr();r&&(n+=`
|
|
134
|
-
|
|
135
|
-
Check the render method of \``+r+"`.");var a=r||e._debugID||"",i=e._debugSource;i&&(a=i.fileName+":"+i.lineNumber),id[a]||(id[a]=!0,s("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(typeof t.getDerivedStateFromProps=="function"){var o=Z(t)||"Unknown";ad[o]||(s("%s: Function components do not support getDerivedStateFromProps.",o),ad[o]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Z(t)||"Unknown";rd[u]||(s("%s: Function components do not support contextType.",u),rd[u]=!0)}}}var us={dehydrated:null,retryLane:fn};function ls(e){return{baseLanes:e}}function vy(e,t){return{baseLanes:Le(e.baseLanes,t)}}function rT(e,t,n,r){if(t!==null){var a=t.memoizedState;if(a===null)return!1}return Fl(e,au)}function hy(e,t){return Ku(e.childLanes,t)}function my(e,t,n){var r=t.pendingProps;i0(t)&&(t.flags|=nt);var a=Kn.current,i=!1,o=(t.flags&nt)!==mt;if(o||rT(a,e)?(i=!0,t.flags&=~nt):(e===null||e.memoizedState!==null)&&r.fallback!==void 0&&r.unstable_avoidThisFallback!==!0&&(a=OE(a,_f)),a=iu(a),Ba(t,a),e===null){r.fallback!==void 0&&Of(t);var u=r.children,c=r.fallback;if(i){var p=yy(t,u,c,n),v=t.child;return v.memoizedState=ls(n),t.memoizedState=us,p}else if(typeof r.unstable_expectedLoadTime=="number"){var O=yy(t,u,c,n),b=t.child;return b.memoizedState=ls(n),t.memoizedState=us,t.lanes=mi,ws(mi),O}else return aT(t,u,n)}else{var A=e.memoizedState;if(A!==null)if(i){var F=r.fallback,Q=r.children,ve=xy(e,t,Q,F,n),Re=t.child,be=e.child.memoizedState;return Re.memoizedState=be===null?ls(n):vy(be,n),Re.childLanes=hy(e,n),t.memoizedState=us,ve}else{var Ne=r.children,Fe=by(e,t,Ne,n);return t.memoizedState=null,Fe}else if(i){var M=r.fallback,j=r.children,w=xy(e,t,j,M,n),I=t.child,ee=e.child.memoizedState;return I.memoizedState=ee===null?ls(n):vy(ee,n),I.childLanes=hy(e,n),t.memoizedState=us,w}else{var se=r.children,ke=by(e,t,se,n);return t.memoizedState=null,ke}}}function aT(e,t,n){var r=e.mode,a={mode:"visible",children:t},i=Qd(a,r,n,null);return i.return=e,e.child=i,i}function yy(e,t,n,r){var a=e.mode,i=e.child,o={mode:"hidden",children:t},u,c;return(a&pn)===lt&&i!==null?(u=i,u.childLanes=$,u.pendingProps=o,e.mode&En&&(u.actualDuration=0,u.actualStartTime=-1,u.selfBaseDuration=0,u.treeBaseDuration=0),c=Ka(n,a,r,null)):(u=Qd(o,a,$,null),c=Ka(n,a,r,null)),u.return=e,c.return=e,u.sibling=c,e.child=u,c}function gy(e,t){return Qa(e,t)}function by(e,t,n,r){var a=e.child,i=a.sibling,o=gy(a,{mode:"visible",children:n});return(t.mode&pn)===lt&&(o.lanes=r),o.return=t,o.sibling=null,i!==null&&(i.nextEffect=null,i.flags=kr,t.firstEffect=t.lastEffect=i),t.child=o,o}function xy(e,t,n,r,a){var i=t.mode,o=e.child,u=o.sibling,c={mode:"hidden",children:n},p;if((i&pn)===lt&&t.child!==o){var v=t.child;p=v,p.childLanes=$,p.pendingProps=c,t.mode&En&&(p.actualDuration=0,p.actualStartTime=-1,p.selfBaseDuration=o.selfBaseDuration,p.treeBaseDuration=o.treeBaseDuration);var O=p.lastEffect;O!==null?(t.firstEffect=p.firstEffect,t.lastEffect=O,O.nextEffect=null):t.firstEffect=t.lastEffect=null}else p=gy(o,c);var b;return u!==null?b=Qa(u,r):(b=Ka(r,i,a,null),b.flags|=Rt),b.return=t,p.return=t,p.sibling=b,t.child=p,b}function Sy(e,t){e.lanes=Le(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Le(n.lanes,t)),gm(e.return,t)}function iT(e,t,n){for(var r=t;r!==null;){if(r.tag===_){var a=r.memoizedState;a!==null&&Sy(r,n)}else if(r.tag===ce)Sy(r,n);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)return;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function oT(e){for(var t=e,n=null;t!==null;){var r=t.alternate;r!==null&&$l(r)===null&&(n=t),t=t.sibling}return n}function uT(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!od[e])if(od[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{s('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{s('"%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:s('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else s('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function lT(e,t){e!==void 0&&!os[e]&&(e!=="collapsed"&&e!=="hidden"?(os[e]=!0,s('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(os[e]=!0,s('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function Cy(e,t){{var n=Array.isArray(e),r=!n&&typeof At(e)=="function";if(n||r){var a=n?"array":"iterable";return s("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>",a,t,a),!1}}return!0}function sT(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(!Cy(e[n],n))return}else{var r=At(e);if(typeof r=="function"){var a=r.call(e);if(a)for(var i=a.next(),o=0;!i.done;i=a.next()){if(!Cy(i.value,o))return;o++}}else s('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 fd(e,t,n,r,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.lastEffect=i)}function Ry(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail,o=r.children;uT(a),lT(i,a),sT(o,a),hn(e,t,o,n);var u=Kn.current,c=Fl(u,au);if(c)u=wf(u,au),t.flags|=nt;else{var p=e!==null&&(e.flags&nt)!==mt;p&&iT(t,t.child,n),u=iu(u)}if(Ba(t,u),(t.mode&pn)===lt)t.memoizedState=null;else switch(a){case"forwards":{var v=oT(t.child),O;v===null?(O=t.child,t.child=null):(O=v.sibling,v.sibling=null),fd(t,!1,O,v,i,t.lastEffect);break}case"backwards":{var b=null,A=t.child;for(t.child=null;A!==null;){var F=A.alternate;if(F!==null&&$l(F)===null){t.child=A;break}var Q=A.sibling;A.sibling=b,b=A,A=Q}fd(t,!0,b,null,i,t.lastEffect);break}case"together":{fd(t,!1,null,null,void 0,t.lastEffect);break}default:t.memoizedState=null}return t.child}function cT(e,t,n){Ef(t,t.stateNode.containerInfo);var r=t.pendingProps;return e===null?t.child=Hl(t,null,r,n):hn(e,t,r,n),t.child}var Ey=!1;function fT(e,t,n){var r=t.type,a=r._context,i=t.pendingProps,o=t.memoizedProps,u=i.value;{"value"in i||Ey||(Ey=!0,s("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var c=t.type.propTypes;c&&Gn(c,i,"prop","Context.Provider")}if(ym(t,u),o!==null){var p=o.value,v=gE(a,u,p);if(v===0){if(o.children===i.children&&!yl())return jr(e,t,n)}else bE(t,a,v,n)}var O=i.children;return hn(e,t,O,n),t.child}var Ty=!1;function dT(e,t,n){var r=t.type;r._context===void 0?r!==r.Consumer&&(Ty||(Ty=!0,s("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var a=t.pendingProps,i=a.children;typeof i!="function"&&s("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."),Oi(t,n);var o=wt(r,a.unstable_observedBits),u;return vu.current=t,xn(!0),u=i(o),xn(!1),t.flags|=ea,hn(e,t,u,n),t.child}function dd(){vr=!0}function jr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),uy(),jd(t.lanes),qt(n,t.childLanes)?(_E(e,t),t.child):null}function pT(e,t,n){{var r=t.return;if(r===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===r.child)r.child=n;else{var a=r.child;if(a===null)throw new Error("Expected parent to have a child.");for(;a.sibling!==t;)if(a=a.sibling,a===null)throw new Error("Expected to find the previous sibling.");a.sibling=n}var i=r.lastEffect;return i!==null?(i.nextEffect=e,r.lastEffect=e):r.firstEffect=r.lastEffect=e,e.nextEffect=null,e.flags=kr,n.flags|=Rt,n}}function Dy(e,t,n){var r=t.lanes;if(t._debugNeedsRemount&&e!==null)return pT(e,t,Gd(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,i=t.pendingProps;if(a!==i||yl()||t.type!==e.type)vr=!0;else if(qt(n,r))(e.flags&cc)!==mt?vr=!0:vr=!1;else{switch(vr=!1,t.tag){case D:py(t),Nf();break;case E:Lm(t);break;case k:{var o=t.type;cr(o)&&bl(t);break}case N:Ef(t,t.stateNode.containerInfo);break;case X:{var u=t.memoizedProps.value;ym(t,u);break}case H:{var c=qt(n,t.childLanes);c&&(t.flags|=Ye);var p=t.stateNode;p.effectDuration=0,p.passiveEffectDuration=0}break;case _:{var v=t.memoizedState;if(v!==null){var O=t.child,b=O.childLanes;if(qt(n,b))return my(e,t,n);Ba(t,iu(Kn.current));var A=jr(e,t,n);return A!==null?A.sibling:null}else Ba(t,iu(Kn.current));break}case ce:{var F=(e.flags&nt)!==mt,Q=qt(n,t.childLanes);if(F){if(Q)return Ry(e,t,n);t.flags|=nt}var ve=t.memoizedState;if(ve!==null&&(ve.rendering=null,ve.tail=null,ve.lastEffect=null),Ba(t,Kn.current),Q)break;return null}case He:case Ie:return t.lanes=$,ud(e,t,n)}return jr(e,t,n)}}else vr=!1;switch(t.lanes=$,t.tag){case T:return nT(e,t,t.type,n);case K:{var Re=t.elementType;return eT(e,t,Re,r,n)}case z:{var be=t.type,Ne=t.pendingProps,Fe=t.elementType===be?Ne:Qn(be,Ne);return ld(e,t,be,Fe,n)}case k:{var M=t.type,j=t.pendingProps,w=t.elementType===M?j:Qn(M,j);return dy(e,t,M,w,n)}case D:return KE(e,t,n);case E:return JE(e,t,n);case L:return ZE(e,t);case _:return my(e,t,n);case N:return cT(e,t,n);case W:{var I=t.type,ee=t.pendingProps,se=t.elementType===I?ee:Qn(I,ee);return ly(e,t,I,se,n)}case te:return GE(e,t,n);case G:return XE(e,t,n);case H:return QE(e,t,n);case X:return fT(e,t,n);case re:return dT(e,t,n);case Y:{var ke=t.type,Je=t.pendingProps,st=Qn(ke,Je);if(t.type!==t.elementType){var je=ke.propTypes;je&&Gn(je,st,"prop",Z(ke))}return st=Qn(ke.type,st),sy(e,t,ke,st,r,n)}case q:return cy(e,t,t.type,t.pendingProps,r,n);case pe:{var kt=t.type,Ue=t.pendingProps,ct=t.elementType===kt?Ue:Qn(kt,Ue);return tT(e,t,kt,ct,n)}case ce:return Ry(e,t,n);case Ze:break;case de:break;case De:break;case He:return ud(e,t,n);case Ie:return qE(e,t,n)}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Hi(e){e.flags|=Ye}function _y(e){e.flags|=Bu}var wy,pd,ky,Oy;wy=function(e,t,n,r){for(var a=t.child;a!==null;){if(a.tag===E||a.tag===L)pR(e,a.stateNode);else if(a.tag!==N){if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)return;for(;a.sibling===null;){if(a.return===null||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},pd=function(e){},ky=function(e,t,n,r,a){var i=e.memoizedProps;if(i!==r){var o=t.stateNode,u=Tf(),c=hR(o,n,i,r,a,u);t.updateQueue=c,c&&Hi(t)}},Oy=function(e,t,n,r){n!==r&&Hi(t)};function mu(e,t){if(!Mf())switch(e.tailMode){case"hidden":{for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break}case"collapsed":{for(var a=e.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function Ny(e,t,n){var r=t.pendingProps;switch(t.tag){case T:case K:case q:case z:case W:case te:case G:case H:case re:case Y:return null;case k:{var a=t.type;return cr(a)&&gl(t),null}case D:{Ni(t),Xc(t),Uf();var i=t.stateNode;if(i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=Pl(t);o?Hi(t):i.hydrate||(t.flags|=Da)}return pd(t),null}case E:{Df(t);var u=zm(),c=t.type;if(e!==null&&t.stateNode!=null)ky(e,t,c,r,u),e.ref!==t.ref&&_y(t);else{if(!r){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return null}var p=Tf(),v=Pl(t);if(v)AE(t,u,p)&&Hi(t);else{var O=dR(c,r,u,p,t);wy(O,t,!1,!1),t.stateNode=O,vR(O,c,r,u)&&Hi(t)}t.ref!==null&&_y(t)}return null}case L:{var b=r;if(e&&t.stateNode!=null){var A=e.memoizedProps;Oy(e,t,A,b)}else{if(typeof b!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var F=zm(),Q=Tf(),ve=Pl(t);ve?UE(t)&&Hi(t):t.stateNode=mR(b,F,Q,t)}return null}case _:{Mi(t);var Re=t.memoizedState;if((t.flags&nt)!==mt)return t.lanes=n,(t.mode&En)!==lt&&td(t),t;var be=Re!==null,Ne=!1;if(e===null)t.memoizedProps.fallback!==void 0&&Pl(t);else{var Fe=e.memoizedState;Ne=Fe!==null}if(be&&!Ne&&(t.mode&pn)!==lt){var M=e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0;M||Fl(Kn.current,_f)?ZT():eD()}return(be||Ne)&&(t.flags|=Ye),null}case N:return Ni(t),pd(t),e===null&&ZR(t.stateNode.containerInfo),null;case X:return rf(t),null;case pe:{var j=t.type;return cr(j)&&gl(t),null}case ce:{Mi(t);var w=t.memoizedState;if(w===null)return null;var I=(t.flags&nt)!==mt,ee=w.rendering;if(ee===null)if(I)mu(w,!1);else{var se=nD()&&(e===null||(e.flags&nt)===mt);if(!se)for(var ke=t.child;ke!==null;){var Je=$l(ke);if(Je!==null){I=!0,t.flags|=nt,mu(w,!1);var st=Je.updateQueue;return st!==null&&(t.updateQueue=st,t.flags|=Ye),w.lastEffect===null&&(t.firstEffect=null),t.lastEffect=w.lastEffect,wE(t,n),Ba(t,wf(Kn.current,au)),t.child}ke=ke.sibling}w.tail!==null&&Qt()>qy()&&(t.flags|=nt,I=!0,mu(w,!1),t.lanes=mi,ws(mi))}else{if(!I){var je=$l(ee);if(je!==null){t.flags|=nt,I=!0;var kt=je.updateQueue;if(kt!==null&&(t.updateQueue=kt,t.flags|=Ye),mu(w,!0),w.tail===null&&w.tailMode==="hidden"&&!ee.alternate&&!Mf()){var Ue=t.lastEffect=w.lastEffect;return Ue!==null&&(Ue.nextEffect=null),null}}else Qt()*2-w.renderingStartTime>qy()&&n!==lr&&(t.flags|=nt,I=!0,mu(w,!1),t.lanes=mi,ws(mi))}if(w.isBackwards)ee.sibling=t.child,t.child=ee;else{var ct=w.last;ct!==null?ct.sibling=ee:t.child=ee,w.last=ee}}if(w.tail!==null){var Lt=w.tail;w.rendering=Lt,w.tail=Lt.sibling,w.lastEffect=t.lastEffect,w.renderingStartTime=Qt(),Lt.sibling=null;var Et=Kn.current;return I?Et=wf(Et,au):Et=iu(Et),Ba(t,Et),Lt}return null}case Ze:break;case de:break;case De:break;case He:case Ie:{if(Ld(t),e!==null){var gr=t.memoizedState,Tt=e.memoizedState,br=Tt!==null,Ja=gr!==null;br!==Ja&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=Ye)}return null}}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function vT(e,t){switch(e.tag){case k:{var n=e.type;cr(n)&&gl(e);var r=e.flags;return r&Nr?(e.flags=r&~Nr|nt,(e.mode&En)!==lt&&td(e),e):null}case D:{Ni(e),Xc(e),Uf();var a=e.flags;if((a&nt)!==mt)throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=a&~Nr|nt,e}case E:return Df(e),null;case _:{Mi(e);var i=e.flags;return i&Nr?(e.flags=i&~Nr|nt,(e.mode&En)!==lt&&td(e),e):null}case ce:return Mi(e),null;case N:return Ni(e),null;case X:return rf(e),null;case He:case Ie:return Ld(e),null;default:return null}}function My(e){switch(e.tag){case k:{var t=e.type.childContextTypes;t!=null&&gl(e);break}case D:{Ni(e),Xc(e),Uf();break}case E:{Df(e);break}case N:Ni(e);break;case _:Mi(e);break;case ce:Mi(e);break;case X:rf(e);break;case He:case Ie:Ld(e);break}}function vd(e,t){return{value:e,source:t,stack:Ea(t)}}function hT(e,t){return!0}function hd(e,t){try{var n=hT(e,t);if(n===!1)return;var r=t.value,a=t.source,i=t.stack,o=i!==null?i:"";if(r!=null&&r._suppressLogging){if(e.tag===k)return;console.error(r)}var u=a?Z(a.type):null,c=u?"The above error occurred in the <"+u+"> component:":"The above error occurred in one of your React components:",p,v=Z(e.type);v?p="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+"."):p=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
136
|
-
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;var O=c+`
|
|
137
|
-
`+o+`
|
|
138
|
-
|
|
139
|
-
`+(""+p);console.error(O)}catch(b){setTimeout(function(){throw b})}}var mT=typeof WeakMap=="function"?WeakMap:Map;function Ay(e,t,n){var r=ua(yt,n);r.tag=af,r.payload={element:null};var a=t.value;return r.callback=function(){mD(a),hd(e,t)},r}function Uy(e,t,n){var r=ua(yt,n);r.tag=af;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var i=t.value;r.payload=function(){return hd(e,t),a(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"?r.callback=function(){vg(e),typeof a!="function"&&(vD(this),hd(e,t));var c=t.value,p=t.stack;this.componentDidCatch(c,{componentStack:p!==null?p:""}),typeof a!="function"&&(qt(e.lanes,Ve)||s("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Z(e.type)||"Unknown"))}:r.callback=function(){vg(e)},r}function yT(e,t,n){var r=e.pingCache,a;if(r===null?(r=e.pingCache=new mT,a=new Set,r.set(t,a)):(a=r.get(t),a===void 0&&(a=new Set,r.set(t,a))),!a.has(n)){a.add(n);var i=yD.bind(null,e,t,n);t.then(i,i)}}function gT(e,t,n,r,a){if(n.flags|=xo,n.firstEffect=n.lastEffect=null,r!==null&&typeof r=="object"&&typeof r.then=="function"){var i=r;if((n.mode&pn)===lt){var o=n.alternate;o?(n.updateQueue=o.updateQueue,n.memoizedState=o.memoizedState,n.lanes=o.lanes):(n.updateQueue=null,n.memoizedState=null)}var u=Fl(Kn.current,_f),c=t;do{if(c.tag===_&&NE(c,u)){var p=c.updateQueue;if(p===null){var v=new Set;v.add(i),c.updateQueue=v}else p.add(i);if((c.mode&pn)===lt){if(c.flags|=nt,n.flags|=cc,n.flags&=~(px|xo),n.tag===k){var O=n.alternate;if(O===null)n.tag=pe;else{var b=ua(yt,Ve);b.tag=kl,la(n,b)}}n.lanes=Le(n.lanes,Ve);return}yT(e,i,a),c.flags|=Nr,c.lanes=a;return}c=c.return}while(c!==null);r=new Error((Z(n.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
140
|
-
|
|
141
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}tD(),r=vd(r,n);var A=t;do{switch(A.tag){case D:{var F=r;A.flags|=Nr;var Q=an(a);A.lanes=Le(A.lanes,Q);var ve=Ay(A,F,Q);Cm(A,ve);return}case k:var Re=r,be=A.type,Ne=A.stateNode;if((A.flags&nt)===mt&&(typeof be.getDerivedStateFromError=="function"||Ne!==null&&typeof Ne.componentDidCatch=="function"&&!Hd(Ne))){A.flags|=Nr;var Fe=an(a);A.lanes=Le(A.lanes,Fe);var M=Uy(A,Re,Fe);Cm(A,M);return}break}A=A.return}while(A!==null)}var zy=null;zy=new Set;var bT=typeof WeakSet=="function"?WeakSet:Set,xT=function(e,t){t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()};function ST(e,t){if(or(null,xT,null,e,t),wr()){var n=ur();pa(e,n)}}function Ly(e){var t=e.ref;if(t!==null)if(typeof t=="function"){if(or(null,t,null,null),wr()){var n=ur();pa(e,n)}}else t.current=null}function CT(e,t){if(or(null,t,null),wr()){var n=ur();pa(e,n)}}function RT(e,t){switch(t.tag){case z:case W:case q:case De:return;case k:{if(t.flags&Da&&e!==null){var n=e.memoizedProps,r=e.memoizedState,a=t.stateNode;t.type===t.elementType&&!Wa&&(a.props!==t.memoizedProps&&s("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.",Z(t.type)||"instance"),a.state!==t.memoizedState&&s("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.",Z(t.type)||"instance"));var i=a.getSnapshotBeforeUpdate(t.elementType===t.type?n:Qn(t.type,n),r);{var o=zy;i===void 0&&!o.has(t.type)&&(o.add(t.type),s("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(t.type)))}a.__reactInternalSnapshotBeforeUpdate=i}return}case D:{if(t.flags&Da){var u=t.stateNode;Yc(u.containerInfo)}return}case E:case L:case N:case pe:return}throw 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.")}function ET(e,t){var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next,i=a;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&o()}i=i.next}while(i!==a)}}function TT(e,t){var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next,i=a;do{if((i.tag&e)===e){var o=i.create;i.destroy=o();{var u=i.destroy;if(u!==void 0&&typeof u!="function"){var c=void 0;u===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?c=`
|
|
142
|
-
|
|
143
|
-
It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
144
|
-
|
|
145
|
-
useEffect(() => {
|
|
146
|
-
async function fetchData() {
|
|
147
|
-
// You can await here
|
|
148
|
-
const response = await MyAPI.getData(someId);
|
|
149
|
-
// ...
|
|
150
|
-
}
|
|
151
|
-
fetchData();
|
|
152
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
153
|
-
|
|
154
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:c=" You returned: "+u,s("An effect function must not return anything besides a function, which is used for clean-up.%s",c)}}}i=i.next}while(i!==a)}}function DT(e){var t=e.updateQueue,n=t!==null?t.lastEffect:null;if(n!==null){var r=n.next,a=r;do{var i=a,o=i.next,u=i.tag;(u&ou)!==kf&&(u&Ai)!==kf&&(ng(e,a),fD(e,a)),a=o}while(a!==r)}}function _T(e,t,n,r){switch(n.tag){case z:case W:case q:case De:{TT(Ui|Ai,n),DT(n);return}case k:{var a=n.stateNode;if(n.flags&Ye)if(t===null)n.type===n.elementType&&!Wa&&(a.props!==n.memoizedProps&&s("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.",Z(n.type)||"instance"),a.state!==n.memoizedState&&s("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.",Z(n.type)||"instance")),a.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Qn(n.type,t.memoizedProps),o=t.memoizedState;n.type===n.elementType&&!Wa&&(a.props!==n.memoizedProps&&s("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.",Z(n.type)||"instance"),a.state!==n.memoizedState&&s("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.",Z(n.type)||"instance")),a.componentDidUpdate(i,o,a.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;u!==null&&(n.type===n.elementType&&!Wa&&(a.props!==n.memoizedProps&&s("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.",Z(n.type)||"instance"),a.state!==n.memoizedState&&s("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.",Z(n.type)||"instance")),Em(n,u,a));return}case D:{var c=n.updateQueue;if(c!==null){var p=null;if(n.child!==null)switch(n.child.tag){case E:p=n.child.stateNode;break;case k:p=n.child.stateNode;break}Em(n,c,p)}return}case E:{var v=n.stateNode;if(t===null&&n.flags&Ye){var O=n.type,b=n.memoizedProps;gR(v,O,b)}return}case L:return;case N:return;case H:{{var A=n.memoizedProps;A.onCommit;var F=A.onRender;n.stateNode.effectDuration;var Q=WE();typeof F=="function"&&F(n.memoizedProps.id,t===null?"mount":"update",n.actualDuration,n.treeBaseDuration,n.actualStartTime,Q,e.memoizedInteractions)}return}case _:{zT(e,n);return}case ce:case pe:case Ze:case de:case He:case Ie:return}throw 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.")}function jy(e,t){for(var n=e;;){if(n.tag===E){var r=n.stateNode;t?_R(r):kR(n.stateNode,n.memoizedProps)}else if(n.tag===L){var a=n.stateNode;t?wR(a):OR(a,n.memoizedProps)}else if(!((n.tag===He||n.tag===Ie)&&n.memoizedState!==null&&n!==e)){if(n.child!==null){n.child.return=n,n=n.child;continue}}if(n===e)return;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function wT(e){var t=e.ref;if(t!==null){var n=e.stateNode,r;switch(e.tag){case E:r=n;break;default:r=n}typeof t=="function"?t(r):(t.hasOwnProperty("current")||s("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(e.type)),t.current=r)}}function kT(e){var t=e.ref;t!==null&&(typeof t=="function"?t(null):t.current=null)}function Hy(e,t,n){switch(oE(t),t.tag){case z:case W:case Y:case q:case De:{var r=t.updateQueue;if(r!==null){var a=r.lastEffect;if(a!==null){var i=a.next,o=i;do{var u=o,c=u.destroy,p=u.tag;c!==void 0&&((p&ou)!==kf?ng(t,o):CT(t,c)),o=o.next}while(o!==i)}}return}case k:{Ly(t);var v=t.stateNode;typeof v.componentWillUnmount=="function"&&ST(t,v);return}case E:{Ly(t);return}case N:{$y(e,t);return}case Ze:return;case Ce:return;case de:return}}function OT(e,t,n){for(var r=t;;){if(Hy(e,r),r.child!==null&&r.tag!==N){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}}function Vy(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null,e._debugOwner=null}function NT(e){for(var t=e.return;t!==null;){if(By(t))return t;t=t.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function By(e){return e.tag===E||e.tag===D||e.tag===N}function MT(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||By(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==E&&t.tag!==L&&t.tag!==Ce;){if(t.flags&Rt||t.child===null||t.tag===N)continue e;t.child.return=t,t=t.child}if(!(t.flags&Rt))return t.stateNode}}function Fy(e){var t=NT(e),n,r,a=t.stateNode;switch(t.tag){case E:n=a,r=!1;break;case D:n=a.containerInfo,r=!0;break;case N:n=a.containerInfo,r=!0;break;case Ze:default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}t.flags&Vu&&(Hh(n),t.flags&=~Vu);var i=MT(e);r?md(e,i,n):yd(e,i,n)}function md(e,t,n){var r=e.tag,a=r===E||r===L;if(a||at){var i=a?e.stateNode:e.stateNode.instance;t?ER(n,i,t):CR(n,i)}else if(r!==N){var o=e.child;if(o!==null){md(o,t,n);for(var u=o.sibling;u!==null;)md(u,t,n),u=u.sibling}}}function yd(e,t,n){var r=e.tag,a=r===E||r===L;if(a||at){var i=a?e.stateNode:e.stateNode.instance;t?RR(n,i,t):SR(n,i)}else if(r!==N){var o=e.child;if(o!==null){yd(o,t,n);for(var u=o.sibling;u!==null;)yd(u,t,n),u=u.sibling}}}function $y(e,t,n){for(var r=t,a=!1,i,o;;){if(!a){var u=r.return;e:for(;;){if(u===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");var c=u.stateNode;switch(u.tag){case E:i=c,o=!1;break e;case D:i=c.containerInfo,o=!0;break e;case N:i=c.containerInfo,o=!0;break e}u=u.return}a=!0}if(r.tag===E||r.tag===L)OT(e,r),o?DR(i,r.stateNode):TR(i,r.stateNode);else if(r.tag===N){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(Hy(e,r),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.tag===N&&(a=!1)}r.sibling.return=r.return,r=r.sibling}}function AT(e,t,n){$y(e,t);var r=t.alternate;Vy(t),r!==null&&Vy(r)}function gd(e,t){switch(t.tag){case z:case W:case Y:case q:case De:{ET(Ui|Ai,t);return}case k:return;case E:{var n=t.stateNode;if(n!=null){var r=t.memoizedProps,a=e!==null?e.memoizedProps:r,i=t.type,o=t.updateQueue;t.updateQueue=null,o!==null&&bR(n,o,i,a,r)}return}case L:{if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var u=t.stateNode,c=t.memoizedProps,p=e!==null?e.memoizedProps:c;xR(u,p,c);return}case D:{{var v=t.stateNode;v.hydrate&&(v.hydrate=!1,HR(v.containerInfo))}return}case H:return;case _:{UT(t),Py(t);return}case ce:{Py(t);return}case pe:return;case Ze:break;case de:break;case He:case Ie:{var O=t.memoizedState,b=O!==null;jy(t,b);return}}throw 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.")}function UT(e){var t=e.memoizedState;if(t!==null){JT();{var n=e.child;jy(n,!0)}}}function zT(e,t){var n=t.memoizedState;if(n===null){var r=t.alternate;if(r!==null){var a=r.memoizedState;if(a!==null){var i=a.dehydrated;i!==null&&VR(i)}}}}function Py(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bT),t.forEach(function(r){var a=bD.bind(null,e,r);n.has(r)||(r.__reactDoNotTraceInteractions!==!0&&(a=x.unstable_wrap(a)),n.add(r),r.then(a,a))})}}function LT(e,t){if(e!==null){var n=e.memoizedState;if(n===null||n.dehydrated!==null){var r=t.memoizedState;return r!==null&&r.dehydrated===null}}return!1}function jT(e){Hh(e.stateNode)}if(typeof Symbol=="function"&&Symbol.for){var yu=Symbol.for;yu("selector.component"),yu("selector.has_pseudo_class"),yu("selector.role"),yu("selector.test_id"),yu("selector.text")}var HT=[];function VT(){HT.forEach(function(e){return e()})}var BT=Math.ceil,bd=h.ReactCurrentDispatcher,xd=h.ReactCurrentOwner,Sd=h.IsSomeRendererActing,bt=0,ss=1,FT=2,Cd=4,Rd=8,Tn=16,hr=32,Yy=64,Hr=0,cs=1,fs=2,ds=3,ps=4,Ed=5,ge=bt,on=null,xt=null,un=$,mr=$,Td=ia($),Ft=Hr,vs=null,Ia=$,hs=$,qa=$,ms=$,Dd=null,_d=0,Wy=500,Iy=1/0,$T=500;function Vi(){Iy=Qt()+$T}function qy(){return Iy}var le=null,ys=!1,wd=null,Bi=null,Vr=!1,Fi=null,gu=Zc,kd=$,Od=[],Nd=[],Br=null,PT=50,bu=0,Md=null,YT=50,gs=0,Ga=null,xu=yt,Fr=$,bs=$,Ad=!1,Su=null,xs=!1;function WT(){return on}function Dn(){return(ge&(Tn|hr))!==bt?Qt():(xu!==yt||(xu=Qt()),xu)}function da(e){var t=e.mode;if((t&pn)===lt)return Ve;if((t&ja)===lt)return wi()===Ln?Ve:Do;Fr===$&&(Fr=Ia);var n=mE()!==hE;if(n)return bs!==$&&(bs=Dd!==null?Dd.pendingLanes:$),Ix(Fr,bs);var r=wi(),a;if((ge&Cd)!==bt&&r===za)a=Qu(Wu,Fr);else{var i=Vx(r);a=Qu(i,Fr)}return a}function IT(e){var t=e.mode;return(t&pn)===lt?Ve:(t&ja)===lt?wi()===Ln?Ve:Do:(Fr===$&&(Fr=Ia),qx(Fr))}function Jt(e,t,n){SD(),TD(e);var r=Ss(e,t);if(r===null)return RD(e),null;Ju(r,t,n),r===on&&(qa=Le(qa,t),Ft===ps&&$i(r,un));var a=wi();t===Ve?(ge&Rd)!==bt&&(ge&(Tn|hr))===bt?(va(r,t),Ud(r)):(Bn(r,n),va(r,t),ge===bt&&(Vi(),dr())):((ge&Cd)!==bt&&(a===za||a===Ln)&&(Br===null?Br=new Set([r]):Br.add(r)),Bn(r,n),va(r,t)),Dd=r}function Ss(e,t){e.lanes=Le(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Le(n.lanes,t)),n===null&&(e.flags&(Rt|Or))!==mt&&ag(e);for(var r=e,a=e.return;a!==null;)a.childLanes=Le(a.childLanes,t),n=a.alternate,n!==null?n.childLanes=Le(n.childLanes,t):(a.flags&(Rt|Or))!==mt&&ag(e),r=a,a=a.return;if(r.tag===D){var i=r.stateNode;return i}else return null}function Bn(e,t){var n=e.callbackNode;Px(e,t);var r=_o(e,e===on?un:$),a=Yx();if(r===$){n!==null&&(fm(n),e.callbackNode=null,e.callbackPriority=ka);return}if(n!==null){var i=e.callbackPriority;if(i===a)return;fm(n)}var o;if(a===pi)o=dE(Ud.bind(null,e));else if(a===Yu)o=oa(Ln,Ud.bind(null,e));else{var u=Bx(a);o=oa(u,Gy.bind(null,e))}e.callbackPriority=a,e.callbackNode=o}function Gy(e){if(xu=yt,Fr=$,bs=$,(ge&(Tn|hr))!==bt)throw Error("Should not already be working.");var t=e.callbackNode,n=yr();if(n&&e.callbackNode!==t)return null;var r=_o(e,e===on?un:$);if(r===$)return null;var a=aD(e,r);if(qt(Ia,qa))Pi(e,$);else if(a!==Hr){if(a===fs&&(ge|=Yy,e.hydrate&&(e.hydrate=!1,Yc(e.containerInfo)),r=Mv(e),r!==$&&(a=Cu(e,r))),a===cs){var i=vs;throw Pi(e,$),$i(e,r),Bn(e,Qt()),i}var o=e.current.alternate;e.finishedWork=o,e.finishedLanes=r,qT(e,a,r)}return Bn(e,Qt()),e.callbackNode===t?Gy.bind(null,e):null}function qT(e,t,n){switch(t){case Hr:case cs:throw Error("Root did not complete. This is a bug in React.");case fs:{Xa(e);break}case ds:{if($i(e,n),Uv(n)&&!kD()){var r=_d+Wy-Qt();if(r>10){var a=_o(e,$);if(a!==$)break;var i=e.suspendedLanes;if(!Na(i,n)){Dn(),zv(e,i);break}e.timeoutHandle=jh(Xa.bind(null,e),r);break}}Xa(e);break}case ps:{if($i(e,n),Wx(n))break;{var o=Fx(e,n),u=o,c=Qt()-u,p=xD(c)-c;if(p>10){e.timeoutHandle=jh(Xa.bind(null,e),p);break}}Xa(e);break}case Ed:{Xa(e);break}default:throw Error("Unknown root exit status.")}}function $i(e,t){t=Ku(t,ms),t=Ku(t,qa),Zx(e,t)}function Ud(e){if((ge&(Tn|hr))!==bt)throw Error("Should not already be working.");yr();var t,n;if(e===on&&qt(e.expiredLanes,un)?(t=un,n=Cu(e,t),qt(Ia,qa)&&(t=_o(e,t),n=Cu(e,t))):(t=_o(e,$),n=Cu(e,t)),e.tag!==Qc&&n===fs&&(ge|=Yy,e.hydrate&&(e.hydrate=!1,Yc(e.containerInfo)),t=Mv(e),t!==$&&(n=Cu(e,t))),n===cs){var r=vs;throw Pi(e,$),$i(e,t),Bn(e,Qt()),r}var a=e.current.alternate;return e.finishedWork=a,e.finishedLanes=t,Xa(e),Bn(e,Qt()),null}function GT(){if((ge&(ss|Tn|hr))!==bt){(ge&Tn)!==bt&&s("unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering.");return}XT(),yr()}function XT(){if(Br!==null){var e=Br;Br=null,e.forEach(function(t){eS(t),Bn(t,Qt())})}dr()}function Xy(e,t){var n=ge;ge|=ss;try{return e(t)}finally{ge=n,ge===bt&&(Vi(),dr())}}function QT(e,t){var n=ge;ge|=FT;try{return e(t)}finally{ge=n,ge===bt&&(Vi(),dr())}}function KT(e,t,n,r,a){var i=ge;ge|=Cd;try{return La(za,e.bind(null,t,n,r,a))}finally{ge=i,ge===bt&&(Vi(),dr())}}function Qy(e,t){var n=ge;ge&=~ss,ge|=Rd;try{return e(t)}finally{ge=n,ge===bt&&(Vi(),dr())}}function zd(e,t){var n=ge;if((n&(Tn|hr))!==bt)return s("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."),e(t);ge|=ss;try{return e?La(Ln,e.bind(null,t)):void 0}finally{ge=n,dr()}}function Cs(e,t){Xt(Td,mr,e),mr=Le(mr,t),Ia=Le(Ia,t)}function Ld(e){mr=Td.current,Gt(Td,e)}function Pi(e,t){e.finishedWork=null,e.finishedLanes=$;var n=e.timeoutHandle;if(n!==Pc&&(e.timeoutHandle=Pc,yR(n)),xt!==null)for(var r=xt.return;r!==null;)My(r),r=r.return;on=e,xt=Qa(e.current,null),un=mr=Ia=t,Ft=Hr,vs=null,hs=$,qa=$,ms=$,Ga=null,Xn.discardPendingWarnings()}function Ky(e,t){do{var n=xt;try{if(wl(),Ym(),Bt(),xd.current=null,n===null||n.return===null){Ft=cs,vs=t,xt=null;return}Ot&&n.mode&En&&is(n,!0),gT(e,n.return,n,t,un),tg(n)}catch(r){t=r,xt===n&&n!==null?(n=n.return,xt=n):n=xt;continue}return}while(!0)}function Jy(){var e=bd.current;return bd.current=ns,e===null?ns:e}function Zy(e){bd.current=e}function Rs(e){{var t=x.__interactionsRef.current;return x.__interactionsRef.current=e.memoizedInteractions,t}}function Es(e){x.__interactionsRef.current=e}function JT(){_d=Qt()}function jd(e){hs=Le(e,hs)}function ZT(){Ft===Hr&&(Ft=ds)}function eD(){(Ft===Hr||Ft===ds)&&(Ft=ps),on!==null&&(Av(hs)||Av(qa))&&$i(on,un)}function tD(){Ft!==Ed&&(Ft=fs)}function nD(){return Ft===Hr}function Cu(e,t){var n=ge;ge|=Tn;var r=Jy();(on!==e||un!==t)&&(Pi(e,t),cg(e,t));var a=Rs(e);do try{rD();break}catch(i){Ky(e,i)}while(!0);if(wl(),Es(a),ge=n,Zy(r),xt!==null)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return on=null,un=$,Ft}function rD(){for(;xt!==null;)eg(xt)}function aD(e,t){var n=ge;ge|=Tn;var r=Jy();(on!==e||un!==t)&&(Vi(),Pi(e,t),cg(e,t));var a=Rs(e);do try{iD();break}catch(i){Ky(e,i)}while(!0);return wl(),Es(a),Zy(r),ge=n,xt!==null?Hr:(on=null,un=$,Ft)}function iD(){for(;xt!==null&&!cE();)eg(xt)}function eg(e){var t=e.alternate;Ct(e);var n;(e.mode&En)!==lt?(ed(e),n=Vd(t,e,mr),is(e,!0)):n=Vd(t,e,mr),Bt(),e.memoizedProps=e.pendingProps,n===null?tg(e):xt=n,xd.current=null}function tg(e){var t=e;do{var n=t.alternate,r=t.return;if((t.flags&xo)===mt){Ct(t);var a=void 0;if((t.mode&En)===lt?a=Ny(n,t,mr):(ed(t),a=Ny(n,t,mr),is(t,!1)),Bt(),a!==null){xt=a;return}if(oD(t),r!==null&&(r.flags&xo)===mt){r.firstEffect===null&&(r.firstEffect=t.firstEffect),t.lastEffect!==null&&(r.lastEffect!==null&&(r.lastEffect.nextEffect=t.firstEffect),r.lastEffect=t.lastEffect);var i=t.flags;i>ea&&(r.lastEffect!==null?r.lastEffect.nextEffect=t:r.firstEffect=t,r.lastEffect=t)}}else{var o=vT(t);if(o!==null){o.flags&=vx,xt=o;return}if((t.mode&En)!==lt){is(t,!1);for(var u=t.actualDuration,c=t.child;c!==null;)u+=c.actualDuration,c=c.sibling;t.actualDuration=u}r!==null&&(r.firstEffect=r.lastEffect=null,r.flags|=xo)}var p=t.sibling;if(p!==null){xt=p;return}t=r,xt=t}while(t!==null);Ft===Hr&&(Ft=Ed)}function oD(e){if(!((e.tag===Ie||e.tag===He)&&e.memoizedState!==null&&!qt(mr,lr)&&(e.mode&ja)!==$)){var t=$;if((e.mode&En)!==lt){for(var n=e.actualDuration,r=e.selfBaseDuration,a=e.alternate===null||e.child!==e.alternate.child,i=e.child;i!==null;)t=Le(t,Le(i.lanes,i.childLanes)),a&&(n+=i.actualDuration),r+=i.treeBaseDuration,i=i.sibling;var o=e.tag===_&&e.memoizedState!==null;if(o){var u=e.child;u!==null&&(r-=u.treeBaseDuration)}e.actualDuration=n,e.treeBaseDuration=r}else for(var c=e.child;c!==null;)t=Le(t,Le(c.lanes,c.childLanes)),c=c.sibling;e.childLanes=t}}function Xa(e){var t=wi();return La(Ln,uD.bind(null,e,t)),null}function uD(e,t){do yr();while(Fi!==null);if(CD(),(ge&(Tn|hr))!==bt)throw Error("Should not already be working.");var n=e.finishedWork,r=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=$,n===e.current)throw 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;var a=Le(n.lanes,n.childLanes);nS(e,a),Br!==null&&!tS(a)&&Br.has(e)&&Br.delete(e),e===on&&(on=null,xt=null,un=$);var i;if(n.flags>ea?n.lastEffect!==null?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,i!==null){var o=ge;ge|=hr;var u=Rs(e);xd.current=null,Su=cR(e.containerInfo),xs=!1,le=i;do if(or(null,lD,null),wr()){if(le===null)throw Error("Should be working on an effect.");var c=ur();pa(le,c),le=le.nextEffect}while(le!==null);Su=null,oy(),le=i;do if(or(null,sD,null,e,t),wr()){if(le===null)throw Error("Should be working on an effect.");var p=ur();pa(le,p),le=le.nextEffect}while(le!==null);fR(e.containerInfo),e.current=n,le=i;do if(or(null,cD,null,e,r),wr()){if(le===null)throw Error("Should be working on an effect.");var v=ur();pa(le,v),le=le.nextEffect}while(le!==null);le=null,fE(),Es(u),ge=o}else e.current=n,oy();var O=Vr;if(Vr)Vr=!1,Fi=e,kd=r,gu=t;else for(le=i;le!==null;){var b=le.nextEffect;le.nextEffect=null,le.flags&kr&&dg(le),le=b}if(a=e.pendingLanes,a!==$){if(Ga!==null){var A=Ga;Ga=null;for(var F=0;F<A.length;F++)sg(e,A[F],e.memoizedInteractions)}va(e,a)}else Bi=null;if(O||fg(e,r),a===Ve?e===Md?bu++:(bu=0,Md=e):bu=0,iE(n.stateNode,t),VT(),Bn(e,Qt()),ys){ys=!1;var Q=wd;throw wd=null,Q}return(ge&Rd)!==bt||dr(),null}function lD(){for(;le!==null;){var e=le.alternate;!xs&&Su!==null&&((le.flags&kr)!==mt?Jp(le,Su)&&(xs=!0):le.tag===_&<(e,le)&&Jp(le,Su)&&(xs=!0));var t=le.flags;(t&Da)!==mt&&(Ct(le),RT(e,le),Bt()),(t&go)!==mt&&(Vr||(Vr=!0,oa(zr,function(){return yr(),null}))),le=le.nextEffect}}function sD(e,t){for(;le!==null;){Ct(le);var n=le.flags;if(n&Vu&&jT(le),n&Bu){var r=le.alternate;r!==null&&kT(r)}var a=n&(Rt|Ye|kr|Or);switch(a){case Rt:{Fy(le),le.flags&=~Rt;break}case fx:{Fy(le),le.flags&=~Rt;var i=le.alternate;gd(i,le);break}case Or:{le.flags&=~Or;break}case dx:{le.flags&=~Or;var o=le.alternate;gd(o,le);break}case Ye:{var u=le.alternate;gd(u,le);break}case kr:{AT(e,le);break}}Bt(),le=le.nextEffect}}function cD(e,t){for(;le!==null;){Ct(le);var n=le.flags;if(n&(Ye|Ip)){var r=le.alternate;_T(e,r,le)}n&Bu&&wT(le),Bt(),le=le.nextEffect}}function yr(){if(gu!==Zc){var e=gu>zr?zr:gu;return gu=Zc,La(e,pD)}return!1}function fD(e,t){Od.push(t,e),Vr||(Vr=!0,oa(zr,function(){return yr(),null}))}function ng(e,t){Nd.push(t,e);{e.flags|=bo;var n=e.alternate;n!==null&&(n.flags|=bo)}Vr||(Vr=!0,oa(zr,function(){return yr(),null}))}function dD(e){var t=e.create;e.destroy=t()}function pD(){if(Fi===null)return!1;var e=Fi,t=kd;if(Fi=null,kd=$,(ge&(Tn|hr))!==bt)throw Error("Cannot flush passive effects while already rendering.");Ad=!0;var n=ge;ge|=hr;var r=Rs(e),a=Nd;Nd=[];for(var i=0;i<a.length;i+=2){var o=a[i],u=a[i+1],c=o.destroy;o.destroy=void 0;{u.flags&=~bo;var p=u.alternate;p!==null&&(p.flags&=~bo)}if(typeof c=="function"){if(Ct(u),or(null,c,null),wr()){if(u===null)throw Error("Should be working on an effect.");var v=ur();pa(u,v)}Bt()}}var O=Od;Od=[];for(var b=0;b<O.length;b+=2){var A=O[b],F=O[b+1];{if(Ct(F),or(null,dD,null,A),wr()){if(F===null)throw Error("Should be working on an effect.");var Q=ur();pa(F,Q)}Bt()}}for(var ve=e.current.firstEffect;ve!==null;){var Re=ve.nextEffect;ve.nextEffect=null,ve.flags&kr&&dg(ve),ve=Re}return Es(r),fg(e,t),Ad=!1,ge=n,dr(),gs=Fi===null?0:gs+1,!0}function Hd(e){return Bi!==null&&Bi.has(e)}function vD(e){Bi===null?Bi=new Set([e]):Bi.add(e)}function hD(e){ys||(ys=!0,wd=e)}var mD=hD;function rg(e,t,n){var r=vd(n,t),a=Ay(e,r,Ve);la(e,a);var i=Dn(),o=Ss(e,Ve);o!==null&&(Ju(o,Ve,i),Bn(o,i),va(o,Ve))}function pa(e,t){if(e.tag===D){rg(e,e,t);return}for(var n=e.return;n!==null;){if(n.tag===D){rg(n,e,t);return}else if(n.tag===k){var r=n.type,a=n.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&!Hd(a)){var i=vd(t,e),o=Uy(n,i,Ve);la(n,o);var u=Dn(),c=Ss(n,Ve);if(c!==null)Ju(c,Ve,u),Bn(c,u),va(c,Ve);else if(typeof a.componentDidCatch=="function"&&!Hd(a))try{a.componentDidCatch(t,i)}catch{}return}}n=n.return}}function yD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t);var a=Dn();zv(e,n),on===e&&Na(un,n)&&(Ft===ps||Ft===ds&&Uv(un)&&Qt()-_d<Wy?Pi(e,$):ms=Le(ms,n)),Bn(e,a),va(e,n)}function gD(e,t){t===fn&&(t=IT(e));var n=Dn(),r=Ss(e,t);r!==null&&(Ju(r,t,n),Bn(r,n),va(r,t))}function bD(e,t){var n=fn,r;r=e.stateNode,r!==null&&r.delete(t),gD(e,n)}function xD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:BT(e/1960)*1960}function SD(){if(bu>PT)throw bu=0,Md=null,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.");gs>YT&&(gs=0,s("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 CD(){Xn.flushLegacyContextWarning(),Xn.flushPendingUnsafeLifecycleWarnings()}var Ts=null;function ag(e){{if((ge&Tn)!==bt||!(e.mode&(pn|ja)))return;var t=e.tag;if(t!==T&&t!==D&&t!==k&&t!==z&&t!==W&&t!==Y&&t!==q&&t!==De)return;var n=Z(e.type)||"ReactComponent";if(Ts!==null){if(Ts.has(n))return;Ts.add(n)}else Ts=new Set([n]);var r=Yt;try{Ct(e),s("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{r?Ct(e):Bt()}}}var Ds=null;function RD(e){{var t=e.tag;if(t!==D&&t!==k&&t!==z&&t!==W&&t!==Y&&t!==q&&t!==De||(e.flags&bo)!==mt)return;var n=Z(e.type)||"ReactComponent";if(Ds!==null){if(Ds.has(n))return;Ds.add(n)}else Ds=new Set([n]);if(!Ad){var r=Yt;try{Ct(e),s("Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.",t===k?"the componentWillUnmount method":"a useEffect cleanup function")}finally{r?Ct(e):Bt()}}}}var Vd;{var ED=null;Vd=function(e,t,n){var r=mg(ED,t);try{return Dy(e,t,n)}catch(i){if(i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(wl(),Ym(),My(t),mg(t,r),t.mode&En&&ed(t),or(null,Dy,null,e,t,n),wr()){var a=ur();throw a}else throw i}}}var ig=!1,Bd;Bd=new Set;function TD(e){if(Xr&&(ge&Tn)!==bt&&!YE())switch(e.tag){case z:case W:case q:{var t=xt&&Z(xt.type)||"Unknown",n=t;if(!Bd.has(n)){Bd.add(n);var r=Z(e.type)||"Unknown";s("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",r,t,t)}break}case k:{ig||(s("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ig=!0);break}}}var _s={current:!1};function og(e){if(Sd.current===!0&&_s.current!==!0){var t=Yt;try{Ct(e),s(`It looks like you're using the wrong act() around your test interactions.
|
|
155
|
-
Be sure to use the matching version of act() corresponding to your renderer:
|
|
156
|
-
|
|
157
|
-
// for react-dom:
|
|
158
|
-
import {act} from 'react-dom/test-utils';
|
|
159
|
-
// ...
|
|
160
|
-
act(() => ...);
|
|
161
|
-
|
|
162
|
-
// for react-test-renderer:
|
|
163
|
-
import TestRenderer from react-test-renderer';
|
|
164
|
-
const {act} = TestRenderer;
|
|
165
|
-
// ...
|
|
166
|
-
act(() => ...);`)}finally{t?Ct(e):Bt()}}}function ug(e){(e.mode>)!==lt&&Sd.current===!1&&_s.current===!1&&s(`An update to %s ran an effect, but was not wrapped in act(...).
|
|
167
|
-
|
|
168
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
-
|
|
170
|
-
act(() => {
|
|
171
|
-
/* fire events that update state */
|
|
172
|
-
});
|
|
173
|
-
/* assert on the output */
|
|
174
|
-
|
|
175
|
-
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`,Z(e.type))}function DD(e){if(ge===bt&&Sd.current===!1&&_s.current===!1){var t=Yt;try{Ct(e),s(`An update to %s inside a test was not wrapped in act(...).
|
|
176
|
-
|
|
177
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
178
|
-
|
|
179
|
-
act(() => {
|
|
180
|
-
/* fire events that update state */
|
|
181
|
-
});
|
|
182
|
-
/* assert on the output */
|
|
183
|
-
|
|
184
|
-
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`,Z(e.type))}finally{t?Ct(e):Bt()}}}var _D=DD,lg=!1;function wD(e){lg===!1&&y.unstable_flushAllWithoutAsserting===void 0&&(e.mode&pn||e.mode&ja)&&(lg=!0,s(`In Concurrent or Sync modes, the "scheduler" module needs to be mocked to guarantee consistent behaviour across tests and browsers. For example, with jest:
|
|
185
|
-
jest.mock('scheduler', () => require('scheduler/unstable_mock'));
|
|
186
|
-
|
|
187
|
-
For more info, visit https://reactjs.org/link/mock-scheduler`))}function Fd(e,t){return t*1e3+e.interactionThreadID}function ws(e){Ga===null?Ga=[e]:Ga.push(e)}function sg(e,t,n){if(n.size>0){var r=e.pendingInteractionMap,a=r.get(t);a!=null?n.forEach(function(u){a.has(u)||u.__count++,a.add(u)}):(r.set(t,new Set(n)),n.forEach(function(u){u.__count++}));var i=x.__subscriberRef.current;if(i!==null){var o=Fd(e,t);i.onWorkScheduled(n,o)}}}function va(e,t){sg(e,t,x.__interactionsRef.current)}function cg(e,t){var n=new Set;if(e.pendingInteractionMap.forEach(function(i,o){qt(t,o)&&i.forEach(function(u){return n.add(u)})}),e.memoizedInteractions=n,n.size>0){var r=x.__subscriberRef.current;if(r!==null){var a=Fd(e,t);try{r.onWorkStarted(n,a)}catch(i){oa(Ln,function(){throw i})}}}}function fg(e,t){var n=e.pendingLanes,r;try{if(r=x.__subscriberRef.current,r!==null&&e.memoizedInteractions.size>0){var a=Fd(e,t);r.onWorkStopped(e.memoizedInteractions,a)}}catch(o){oa(Ln,function(){throw o})}finally{var i=e.pendingInteractionMap;i.forEach(function(o,u){qt(n,u)||(i.delete(u),o.forEach(function(c){if(c.__count--,r!==null&&c.__count===0)try{r.onInteractionScheduledWorkCompleted(c)}catch(p){oa(Ln,function(){throw p})}}))})}}function kD(){return OD>0}var OD=0;function dg(e){e.sibling=null,e.stateNode=null}var Fn=null,Yi=null,ND=function(e){Fn=e};function Wi(e){{if(Fn===null)return e;var t=Fn(e);return t===void 0?e:t.current}}function $d(e){return Wi(e)}function Pd(e){{if(Fn===null)return e;var t=Fn(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=Wi(e.render);if(e.render!==n){var r={$$typeof:Wn,render:n};return e.displayName!==void 0&&(r.displayName=e.displayName),r}}return e}return t.current}}function pg(e,t){{if(Fn===null)return!1;var n=e.elementType,r=t.type,a=!1,i=typeof r=="object"&&r!==null?r.$$typeof:null;switch(e.tag){case k:{typeof r=="function"&&(a=!0);break}case z:{(typeof r=="function"||i===B)&&(a=!0);break}case W:{(i===Wn||i===B)&&(a=!0);break}case Y:case q:{(i===g||i===B)&&(a=!0);break}default:return!1}if(a){var o=Fn(n);if(o!==void 0&&o===Fn(r))return!0}return!1}}function vg(e){{if(Fn===null||typeof WeakSet!="function")return;Yi===null&&(Yi=new WeakSet),Yi.add(e)}}var MD=function(e,t){{if(Fn===null)return;var n=t.staleFamilies,r=t.updatedFamilies;yr(),zd(function(){Yd(e.current,r,n)})}},AD=function(e,t){{if(e.context!==Rn)return;yr(),zd(function(){Ru(t,e,null,null)})}};function Yd(e,t,n){{var r=e.alternate,a=e.child,i=e.sibling,o=e.tag,u=e.type,c=null;switch(o){case z:case q:case k:c=u;break;case W:c=u.render;break}if(Fn===null)throw new Error("Expected resolveFamily to be set during hot reload.");var p=!1,v=!1;if(c!==null){var O=Fn(c);O!==void 0&&(n.has(O)?v=!0:t.has(O)&&(o===k?v=!0:p=!0))}Yi!==null&&(Yi.has(e)||r!==null&&Yi.has(r))&&(v=!0),v&&(e._debugNeedsRemount=!0),(v||p)&&Jt(e,Ve,yt),a!==null&&!v&&Yd(a,t,n),i!==null&&Yd(i,t,n)}}var UD=function(e,t){{var n=new Set,r=new Set(t.map(function(a){return a.current}));return Wd(e.current,r,n),n}};function Wd(e,t,n){{var r=e.child,a=e.sibling,i=e.tag,o=e.type,u=null;switch(i){case z:case q:case k:u=o;break;case W:u=o.render;break}var c=!1;u!==null&&t.has(u)&&(c=!0),c?zD(e,n):r!==null&&Wd(r,t,n),a!==null&&Wd(a,t,n)}}function zD(e,t){{var n=LD(e,t);if(n)return;for(var r=e;;){switch(r.tag){case E:t.add(r.stateNode);return;case N:t.add(r.stateNode.containerInfo);return;case D:t.add(r.stateNode.containerInfo);return}if(r.return===null)throw new Error("Expected to reach root first.");r=r.return}}}function LD(e,t){for(var n=e,r=!1;;){if(n.tag===E)r=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;n.sibling===null;){if(n.return===null||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Id;{Id=!1;try{var hg=Object.preventExtensions({})}catch{Id=!0}}var jD=1;function HD(e,t,n,r){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=r,this.flags=mt,this.nextEffect=null,this.firstEffect=null,this.lastEffect=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._debugID=jD++,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Id&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var _n=function(e,t,n,r){return new HD(e,t,n,r)};function qd(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function VD(e){return typeof e=="function"&&!qd(e)&&e.defaultProps===void 0}function BD(e){if(typeof e=="function")return qd(e)?k:z;if(e!=null){var t=e.$$typeof;if(t===Wn)return W;if(t===g)return Y}return T}function Qa(e,t){var n=e.alternate;n===null?(n=_n(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugID=e._debugID,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=mt,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null,n.actualDuration=0,n.actualStartTime=-1),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 r=e.dependencies;switch(n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.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 T:case z:case q:n.type=Wi(e.type);break;case k:n.type=$d(e.type);break;case W:n.type=Pd(e.type);break}return n}function FD(e,t){e.flags&=Rt,e.nextEffect=null,e.firstEffect=null,e.lastEffect=null;var n=e.alternate;if(n===null)e.childLanes=$,e.lanes=t,e.child=null,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.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function $D(e){var t;return e===Zh?t=ja|pn|gt:e===Jh?t=pn|gt:t=lt,nE&&(t|=En),_n(D,null,null,t)}function Gd(e,t,n,r,a,i){var o=T,u=e;if(typeof e=="function")qd(e)?(o=k,u=$d(u)):u=Wi(u);else if(typeof e=="string")o=E;else{e:switch(e){case en:return Ka(n.children,a,i,t);case Ae:o=G,a|=pE;break;case Ir:o=G,a|=gt;break;case ar:return PD(n,a,i,t);case ir:return YD(n,a,i,t);case In:return WD(n,a,i,t);case _e:return Qd(n,a,i,t);case Ee:return ID(n,a,i,t);case me:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Er:o=X;break e;case qr:o=re;break e;case Wn:o=W,u=Pd(u);break e;case g:o=Y;break e;case B:o=K,u=null;break e;case ae:o=De;break e}var c="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" 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 p=r?Z(r.type):null;p&&(c+=`
|
|
188
|
-
|
|
189
|
-
Check the render method of \``+p+"`.")}throw 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)+"."+c)}}}var v=_n(o,n,t,a);return v.elementType=e,v.type=u,v.lanes=i,v._debugOwner=r,v}function Xd(e,t,n){var r=null;r=e._owner;var a=e.type,i=e.key,o=e.props,u=Gd(a,i,o,r,t,n);return u._debugSource=e._source,u._debugOwner=e._owner,u}function Ka(e,t,n,r){var a=_n(te,e,r,t);return a.lanes=n,a}function PD(e,t,n,r){typeof e.id!="string"&&s('Profiler must specify an "id" as a prop');var a=_n(H,e,r,t|En);return a.elementType=ar,a.type=ar,a.lanes=n,a.stateNode={effectDuration:0,passiveEffectDuration:0},a}function YD(e,t,n,r){var a=_n(_,e,r,t);return a.type=ir,a.elementType=ir,a.lanes=n,a}function WD(e,t,n,r){var a=_n(ce,e,r,t);return a.type=In,a.elementType=In,a.lanes=n,a}function Qd(e,t,n,r){var a=_n(He,e,r,t);return a.type=_e,a.elementType=_e,a.lanes=n,a}function ID(e,t,n,r){var a=_n(Ie,e,r,t);return a.type=Ee,a.elementType=Ee,a.lanes=n,a}function Kd(e,t,n){var r=_n(L,e,null,t);return r.lanes=n,r}function qD(){var e=_n(E,null,null,lt);return e.elementType="DELETED",e.type="DELETED",e}function Jd(e,t,n){var r=e.children!==null?e.children:[],a=_n(N,r,e.key,t);return a.lanes=n,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function mg(e,t){return e===null&&(e=_n(T,null,null,lt)),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.nextEffect=t.nextEffect,e.firstEffect=t.firstEffect,e.lastEffect=t.lastEffect,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._debugID=t._debugID,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function GD(e,t,n){switch(this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Pc,this.context=null,this.pendingContext=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=ka,this.eventTimes=Rc($),this.expirationTimes=Rc(yt),this.pendingLanes=$,this.suspendedLanes=$,this.pingedLanes=$,this.expiredLanes=$,this.mutableReadLanes=$,this.finishedLanes=$,this.entangledLanes=$,this.entanglements=Rc($),this.mutableSourceEagerHydrationData=null,this.interactionThreadID=x.unstable_getThreadID(),this.memoizedInteractions=new Set,this.pendingInteractionMap=new Map,t){case Jh:this._debugRootType="createBlockingRoot()";break;case Zh:this._debugRootType="createRoot()";break;case Qc:this._debugRootType="createLegacyRoot()";break}}function XD(e,t,n,r){var a=new GD(e,t,n),i=$D(t);return a.current=i,i.stateNode=a,uf(i),a}function QD(e,t){var n=t._getVersion,r=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,r]:e.mutableSourceEagerHydrationData.push(t,r)}function KD(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Zd,ep;Zd=!1,ep={};function JD(e){if(!e)return Rn;var t=fi(e),n=tE(t);if(t.tag===k){var r=t.type;if(cr(r))return Qh(t,r,n)}return n}function ZD(e,t){{var n=fi(e);if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(e));var r=Kp(n);if(r===null)return null;if(r.mode>){var a=Z(n.type)||"Component";if(!ep[a]){ep[a]=!0;var i=Yt;try{Ct(r),n.mode>?s("%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,a):s("%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,a)}finally{i?Ct(i):Bt()}}}return r.stateNode}}function e0(e,t,n,r){return XD(e,t,n)}function Ru(e,t,n,r){aE(t,e);var a=t.current,i=Dn();typeof jest!="undefined"&&(wD(a),og(a));var o=da(a),u=JD(n);t.context===null?t.context=u:t.pendingContext=u,Xr&&Yt!==null&&!Zd&&(Zd=!0,s(`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.
|
|
190
|
-
|
|
191
|
-
Check the render method of %s.`,Z(Yt.type)||"Unknown"));var c=ua(i,o);return c.payload={element:e},r=r===void 0?null:r,r!==null&&(typeof r!="function"&&s("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),c.callback=r),la(a,c),Jt(a,o,i),o}function tp(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case E:return t.child.stateNode;default:return t.child.stateNode}}function yg(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=Jx(n.retryLane,t))}function np(e,t){yg(e,t);var n=e.alternate;n&&yg(n,t)}function t0(e){if(e.tag===_){var t=Dn(),n=bc;Jt(e,n,t),np(e,n)}}function n0(e){if(e.tag===_){var t=Dn(),n=Sc;Jt(e,n,t),np(e,n)}}function r0(e){if(e.tag===_){var t=Dn(),n=da(e);Jt(e,n,t),np(e,n)}}function a0(e,t){try{return t()}finally{}}function gg(e){var t=gx(e);return t===null?null:t.tag===Ze?t.stateNode.instance:t.stateNode}var bg=function(e){return!1};function i0(e){return bg(e)}var xg=null,Sg=null,Cg=null,Rg=null,Eg=null,Tg=null,Dg=null,_g=null;{var wg=function(e,t,n){var r=t[n],a=Array.isArray(e)?e.slice():d({},e);return n+1===t.length?(Array.isArray(a)?a.splice(r,1):delete a[r],a):(a[r]=wg(e[r],t,n+1),a)},kg=function(e,t){return wg(e,t,0)},Og=function(e,t,n,r){var a=t[r],i=Array.isArray(e)?e.slice():d({},e);if(r+1===t.length){var o=n[r];i[o]=i[a],Array.isArray(i)?i.splice(a,1):delete i[a]}else i[a]=Og(e[a],t,n,r+1);return i},Ng=function(e,t,n){if(t.length!==n.length){m("copyWithRename() expects paths of the same length");return}else for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){m("copyWithRename() expects paths to be the same except for the deepest key");return}return Og(e,t,n,0)},Mg=function(e,t,n,r){if(n>=t.length)return r;var a=t[n],i=Array.isArray(e)?e.slice():d({},e);return i[a]=Mg(e[a],t,n+1,r),i},Ag=function(e,t,n){return Mg(e,t,0,n)},rp=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};xg=function(e,t,n,r){var a=rp(e,t);if(a!==null){var i=Ag(a.memoizedState,n,r);a.memoizedState=i,a.baseState=i,e.memoizedProps=d({},e.memoizedProps),Jt(e,Ve,yt)}},Sg=function(e,t,n){var r=rp(e,t);if(r!==null){var a=kg(r.memoizedState,n);r.memoizedState=a,r.baseState=a,e.memoizedProps=d({},e.memoizedProps),Jt(e,Ve,yt)}},Cg=function(e,t,n,r){var a=rp(e,t);if(a!==null){var i=Ng(a.memoizedState,n,r);a.memoizedState=i,a.baseState=i,e.memoizedProps=d({},e.memoizedProps),Jt(e,Ve,yt)}},Rg=function(e,t,n){e.pendingProps=Ag(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Jt(e,Ve,yt)},Eg=function(e,t){e.pendingProps=kg(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Jt(e,Ve,yt)},Tg=function(e,t,n){e.pendingProps=Ng(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),Jt(e,Ve,yt)},Dg=function(e){Jt(e,Ve,yt)},_g=function(e){bg=e}}function o0(e){var t=Kp(e);return t===null?null:t.stateNode}function u0(e){return null}function l0(){return Yt}function s0(e){var t=e.findFiberByHostInstance,n=h.ReactCurrentDispatcher;return rE({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:xg,overrideHookStateDeletePath:Sg,overrideHookStateRenamePath:Cg,overrideProps:Rg,overridePropsDeletePath:Eg,overridePropsRenamePath:Tg,setSuspenseHandler:_g,scheduleUpdate:Dg,currentDispatcherRef:n,findHostInstanceByFiber:o0,findFiberByHostInstance:t||u0,findHostInstancesForRefresh:UD,scheduleRefresh:MD,scheduleRoot:AD,setRefreshHandler:ND,getCurrentFiber:l0})}function ap(e,t,n){this._internalRoot=c0(e,t,n)}ap.prototype.render=function(e){var t=this._internalRoot;{typeof arguments[1]=="function"&&s("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var n=t.containerInfo;if(n.nodeType!==Sn){var r=gg(t.current);r&&r.parentNode!==n&&s("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.")}}Ru(e,t,null,null)},ap.prototype.unmount=function(){typeof arguments[0]=="function"&&s("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,t=e.containerInfo;Ru(null,e,null,function(){Yh(t)})};function c0(e,t,n){var r=n!=null&&n.hydrate===!0;n!=null&&n.hydrationOptions;var a=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null,i=e0(e,t,r);eE(i.current,e),e.nodeType;{var o=e.nodeType===Sn?e.parentNode:e;vh(o)}if(a)for(var u=0;u<a.length;u++){var c=a[u];QD(i,c)}return i}function f0(e,t){return new ap(e,Qc,t)}function Ii(e){return!!(e&&(e.nodeType===Un||e.nodeType===Jr||e.nodeType===Dp||e.nodeType===Sn&&e.nodeValue===" react-mount-point-unstable "))}var d0=h.ReactCurrentOwner,Ug,zg=!1;Ug=function(e){if(e._reactRootContainer&&e.nodeType!==Sn){var t=gg(e._reactRootContainer._internalRoot.current);t&&t.parentNode!==e&&s("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,r=ks(e),a=!!(r&&aa(r));a&&!n&&s("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===Un&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&s("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 ks(e){return e?e.nodeType===Jr?e.documentElement:e.firstChild:null}function p0(e){var t=ks(e);return!!(t&&t.nodeType===Un&&t.hasAttribute(On))}function v0(e,t){var n=t||p0(e);if(!n)for(var r=!1,a;a=e.lastChild;)!r&&a.nodeType===Un&&a.hasAttribute(On)&&(r=!0,s("render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")),e.removeChild(a);return n&&!t&&!zg&&(zg=!0,m("render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v18. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML.")),f0(e,n?{hydrate:!0}:void 0)}function h0(e,t){e!==null&&typeof e!="function"&&s("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Os(e,t,n,r,a){Ug(n),h0(a===void 0?null:a,"render");var i=n._reactRootContainer,o;if(i){if(o=i._internalRoot,typeof a=="function"){var c=a;a=function(){var p=tp(o);c.call(p)}}Ru(t,o,e,a)}else{if(i=n._reactRootContainer=v0(n,r),o=i._internalRoot,typeof a=="function"){var u=a;a=function(){var p=tp(o);u.call(p)}}Qy(function(){Ru(t,o,e,a)})}return tp(o)}function m0(e){{var t=d0.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||s("%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.",Z(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Un?e:ZD(e,"findDOMNode")}function y0(e,t,n){if(!Ii(t))throw Error("Target container is not a DOM element.");{var r=pl(t)&&t._reactRootContainer===void 0;r&&s("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call createRoot(container, {hydrate: true}).render(element)?")}return Os(null,e,t,!0,n)}function g0(e,t,n){if(!Ii(t))throw Error("Target container is not a DOM element.");{var r=pl(t)&&t._reactRootContainer===void 0;r&&s("You are calling ReactDOM.render() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Os(null,e,t,!1,n)}function b0(e,t,n,r){if(!Ii(n))throw Error("Target container is not a DOM element.");if(!(e!=null&&sx(e)))throw Error("parentComponent must be a valid React Component");return Os(e,t,n,!1,r)}function x0(e){if(!Ii(e))throw Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=pl(e)&&e._reactRootContainer===void 0;t&&s("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=ks(e),r=n&&!aa(n);r&&s("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Qy(function(){Os(null,null,e,!1,function(){e._reactRootContainer=null,Yh(e)})}),!0}else{{var a=ks(e),i=!!(a&&aa(a)),o=e.nodeType===Un&&Ii(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&s("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}}bx(t0),xx(n0),Sx(r0),Cx(a0);var Lg=!1;(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")&&s("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"),Qb(tR),nx(Xy,KT,GT,QT);function jg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ii(t))throw Error("Target container is not a DOM element.");return KD(e,t,null,n)}function S0(e,t,n,r){return b0(e,t,n,r)}function C0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return Lg||(Lg=!0,m('The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 18+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')),jg(e,t,n)}var R0={Events:[aa,Ei,vl,Bp,Fp,yr,_s]},E0=s0({findFiberByHostInstance:Ua,bundleType:1,version:pm,rendererPackageName:"react-dom"});if(!E0&&Nt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var Hg=window.location.protocol;/^(https?|file):$/.test(Hg)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(Hg==="file:"?`
|
|
192
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}$n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R0,$n.createPortal=jg,$n.findDOMNode=m0,$n.flushSync=zd,$n.hydrate=y0,$n.render=g0,$n.unmountComponentAtNode=x0,$n.unstable_batchedUpdates=Xy,$n.unstable_createPortal=C0,$n.unstable_renderSubtreeIntoContainer=S0,$n.version=pm})();zs.exports=$n;var N0=zs.exports,ft=(l=>(l[l.Edit=0]="Edit",l[l.Source=1]="Source",l))(ft||{});function Us({image:l,width:d,height:y,history:x,bounds:h}){return new Promise((m,s)=>{const S=document.createElement("canvas"),z=h.width*window.devicePixelRatio,k=h.height*window.devicePixelRatio;S.width=z,S.height=k;const T=S.getContext("2d");if(!T)return s(new Error("convert image to blob fail"));const D=l.naturalWidth/d,N=l.naturalHeight/y;T.imageSmoothingEnabled=!0,T.imageSmoothingQuality="low",T.setTransform(window.devicePixelRatio,0,0,window.devicePixelRatio,0,0),T.clearRect(0,0,h.width,h.height),T.drawImage(l,h.x*D,h.y*N,h.width*D,h.height*N,0,0,h.width,h.height),x.stack.slice(0,x.index+1).forEach(E=>{E.type===ft.Source&&E.draw(T,E)}),S.toBlob(E=>{if(!E)return s(new Error("canvas toBlob fail"));m(E)},"image/png")})}const eb={magnifier_position_label:"\u5750\u6807",operation_ok_title:"\u786E\u5B9A",operation_cancel_title:"\u53D6\u6D88",operation_save_title:"\u4FDD\u5B58",operation_redo_title:"\u91CD\u505A",operation_undo_title:"\u64A4\u9500",operation_mosaic_title:"\u9A6C\u8D5B\u514B",operation_text_title:"\u6587\u672C",operation_brush_title:"\u753B\u7B14",operation_arrow_title:"\u7BAD\u5934",operation_ellipse_title:"\u692D\u5706",operation_rectangle_title:"\u77E9\u5F62"};var pp=Xg.createContext({store:{url:void 0,image:null,width:0,height:0,lang:eb,emiterRef:{current:{}},canvasContextRef:{current:null},history:{index:-1,stack:[]},bounds:null,cursor:"move",operation:void 0},dispatcher:{call:void 0,setHistory:void 0,setBounds:void 0,setCursor:void 0,setOperation:void 0}});function Du(){const{dispatcher:l}=R.exports.useContext(pp);return l}function mn(){const{store:l}=R.exports.useContext(pp);return l}function Qi(){const{bounds:l}=mn(),{setBounds:d}=Du(),y=R.exports.useCallback(h=>{d==null||d(h)},[d]),x=R.exports.useCallback(()=>{d==null||d(null)},[d]);return[l,{set:y,reset:x}]}function Cr(){const{lang:l}=mn();return l}var ue={exports:{}},tb={};/** @license React v17.0.2
|
|
193
|
-
* react-jsx-dev-runtime.development.js
|
|
194
|
-
*
|
|
195
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the MIT license found in the
|
|
198
|
-
* LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/(function(l){(function(){var d=R.exports,y=dp,x=60103,h=60106;l.Fragment=60107;var m=60108,s=60114,S=60109,z=60110,k=60112,T=60113,D=60120,N=60115,E=60116,L=60121,te=60122,G=60117,re=60129,X=60131;if(typeof Symbol=="function"&&Symbol.for){var W=Symbol.for;x=W("react.element"),h=W("react.portal"),l.Fragment=W("react.fragment"),m=W("react.strict_mode"),s=W("react.profiler"),S=W("react.provider"),z=W("react.context"),k=W("react.forward_ref"),T=W("react.suspense"),D=W("react.suspense_list"),N=W("react.memo"),E=W("react.lazy"),L=W("react.block"),te=W("react.server.block"),G=W("react.fundamental"),W("react.scope"),W("react.opaque.id"),re=W("react.debug_trace_mode"),W("react.offscreen"),X=W("react.legacy_hidden")}var H=typeof Symbol=="function"&&Symbol.iterator,_="@@iterator";function Y(g){if(g===null||typeof g!="object")return null;var B=H&&g[H]||g[_];return typeof B=="function"?B:null}var q=d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function K(g){{for(var B=arguments.length,ae=new Array(B>1?B-1:0),me=1;me<B;me++)ae[me-1]=arguments[me];pe("error",g,ae)}}function pe(g,B,ae){{var me=q.ReactDebugCurrentFrame,Oe=me.getStackAddendum();Oe!==""&&(B+="%s",ae=ae.concat([Oe]));var Ae=ae.map(function(_e){return""+_e});Ae.unshift("Warning: "+B),Function.prototype.apply.call(console[g],console,Ae)}}var Ce=!1;function ce(g){return!!(typeof g=="string"||typeof g=="function"||g===l.Fragment||g===s||g===re||g===m||g===T||g===D||g===X||Ce||typeof g=="object"&&g!==null&&(g.$$typeof===E||g.$$typeof===N||g.$$typeof===S||g.$$typeof===z||g.$$typeof===k||g.$$typeof===G||g.$$typeof===L||g[0]===te))}function Ze(g,B,ae){var me=B.displayName||B.name||"";return g.displayName||(me!==""?ae+"("+me+")":ae)}function de(g){return g.displayName||"Context"}function De(g){if(g==null)return null;if(typeof g.tag=="number"&&K("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case l.Fragment:return"Fragment";case h:return"Portal";case s:return"Profiler";case m:return"StrictMode";case T:return"Suspense";case D:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case z:var B=g;return de(B)+".Consumer";case S:var ae=g;return de(ae._context)+".Provider";case k:return Ze(g,g.render,"ForwardRef");case N:return De(g.type);case L:return De(g._render);case E:{var me=g,Oe=me._payload,Ae=me._init;try{return De(Ae(Oe))}catch{return null}}}return null}var He=0,Ie,Ot,at,dt,wn,$r,$t;function Yn(){}Yn.__reactDisabledLog=!0;function Zt(){{if(He===0){Ie=console.log,Ot=console.info,at=console.warn,dt=console.error,wn=console.group,$r=console.groupCollapsed,$t=console.groupEnd;var g={configurable:!0,enumerable:!0,value:Yn,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}He++}}function ln(){{if(He--,He===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:y({},g,{value:Ie}),info:y({},g,{value:Ot}),warn:y({},g,{value:at}),error:y({},g,{value:dt}),group:y({},g,{value:wn}),groupCollapsed:y({},g,{value:$r}),groupEnd:y({},g,{value:$t})})}He<0&&K("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Nt=q.ReactCurrentDispatcher,kn;function qe(g,B,ae){{if(kn===void 0)try{throw Error()}catch(Oe){var me=Oe.stack.trim().match(/\n( *(at )?)/);kn=me&&me[1]||""}return`
|
|
200
|
-
`+kn+g}}var Ge=!1,Dt;{var pt=typeof WeakMap=="function"?WeakMap:Map;Dt=new pt}function et(g,B){if(!g||Ge)return"";{var ae=Dt.get(g);if(ae!==void 0)return ae}var me;Ge=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=Nt.current,Nt.current=null,Zt();try{if(B){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(tn){me=tn}Reflect.construct(g,[],_e)}else{try{_e.call()}catch(tn){me=tn}g.call(_e.prototype)}}else{try{throw Error()}catch(tn){me=tn}g()}}catch(tn){if(tn&&me&&typeof tn.stack=="string"){for(var Ee=tn.stack.split(`
|
|
201
|
-
`),we=me.stack.split(`
|
|
202
|
-
`),Qe=Ee.length-1,ut=we.length-1;Qe>=1&&ut>=0&&Ee[Qe]!==we[ut];)ut--;for(;Qe>=1&&ut>=0;Qe--,ut--)if(Ee[Qe]!==we[ut]){if(Qe!==1||ut!==1)do if(Qe--,ut--,ut<0||Ee[Qe]!==we[ut]){var At=`
|
|
203
|
-
`+Ee[Qe].replace(" at new "," at ");return typeof g=="function"&&Dt.set(g,At),At}while(Qe>=1&&ut>=0);break}}}finally{Ge=!1,Nt.current=Ae,ln(),Error.prepareStackTrace=Oe}var Ut=g?g.displayName||g.name:"",Gr=Ut?qe(Ut):"";return typeof g=="function"&&Dt.set(g,Gr),Gr}function yn(g,B,ae){return et(g,!1)}function Pt(g){var B=g.prototype;return!!(B&&B.isReactComponent)}function Mt(g,B,ae){if(g==null)return"";if(typeof g=="function")return et(g,Pt(g));if(typeof g=="string")return qe(g);switch(g){case T:return qe("Suspense");case D:return qe("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case k:return yn(g.render);case N:return Mt(g.type,B,ae);case L:return yn(g._render);case E:{var me=g,Oe=me._payload,Ae=me._init;try{return Mt(Ae(Oe),B,ae)}catch{}}}return""}var On={},er=q.ReactDebugCurrentFrame;function gn(g){if(g){var B=g._owner,ae=Mt(g.type,g._source,B?B.type:null);er.setExtraStackFrame(ae)}else er.setExtraStackFrame(null)}function Pr(g,B,ae,me,Oe){{var Ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var _e in g)if(Ae(g,_e)){var Ee=void 0;try{if(typeof g[_e]!="function"){var we=Error((me||"React class")+": "+ae+" type `"+_e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[_e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}Ee=g[_e](B,_e,me,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Qe){Ee=Qe}Ee&&!(Ee instanceof Error)&&(gn(Oe),K("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",me||"React class",ae,_e,typeof Ee),gn(null)),Ee instanceof Error&&!(Ee.message in On)&&(On[Ee.message]=!0,gn(Oe),K("Failed %s type: %s",ae,Ee.message),gn(null))}}}var sn=q.ReactCurrentOwner,tr=Object.prototype.hasOwnProperty,Yr={key:!0,ref:!0,__self:!0,__source:!0},nr,Vt,Nn;Nn={};function St(g){if(tr.call(g,"ref")){var B=Object.getOwnPropertyDescriptor(g,"ref").get;if(B&&B.isReactWarning)return!1}return g.ref!==void 0}function vt(g){if(tr.call(g,"key")){var B=Object.getOwnPropertyDescriptor(g,"key").get;if(B&&B.isReactWarning)return!1}return g.key!==void 0}function Wr(g,B){if(typeof g.ref=="string"&&sn.current&&B&&sn.current.stateNode!==B){var ae=De(sn.current.type);Nn[ae]||(K('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',De(sn.current.type),g.ref),Nn[ae]=!0)}}function Rr(g,B){{var ae=function(){nr||(nr=!0,K("%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))};ae.isReactWarning=!0,Object.defineProperty(g,"key",{get:ae,configurable:!0})}}function rr(g,B){{var ae=function(){Vt||(Vt=!0,K("%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))};ae.isReactWarning=!0,Object.defineProperty(g,"ref",{get:ae,configurable:!0})}}var J=function(g,B,ae,me,Oe,Ae,_e){var Ee={$$typeof:x,type:g,key:B,ref:ae,props:_e,_owner:Ae};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function fe(g,B,ae,me,Oe){{var Ae,_e={},Ee=null,we=null;ae!==void 0&&(Ee=""+ae),vt(B)&&(Ee=""+B.key),St(B)&&(we=B.ref,Wr(B,Oe));for(Ae in B)tr.call(B,Ae)&&!Yr.hasOwnProperty(Ae)&&(_e[Ae]=B[Ae]);if(g&&g.defaultProps){var Qe=g.defaultProps;for(Ae in Qe)_e[Ae]===void 0&&(_e[Ae]=Qe[Ae])}if(Ee||we){var ut=typeof g=="function"?g.displayName||g.name||"Unknown":g;Ee&&Rr(_e,ut),we&&rr(_e,ut)}return J(g,Ee,we,Oe,me,sn.current,_e)}}var Se=q.ReactCurrentOwner,Me=q.ReactDebugCurrentFrame;function $e(g){if(g){var B=g._owner,ae=Mt(g.type,g._source,B?B.type:null);Me.setExtraStackFrame(ae)}else Me.setExtraStackFrame(null)}var it;it=!1;function ot(g){return typeof g=="object"&&g!==null&&g.$$typeof===x}function _t(){{if(Se.current){var g=De(Se.current.type);if(g)return`
|
|
204
|
-
|
|
205
|
-
Check the render method of \``+g+"`."}return""}}function Xe(g){{if(g!==void 0){var B=g.fileName.replace(/^.*[\\\/]/,""),ae=g.lineNumber;return`
|
|
206
|
-
|
|
207
|
-
Check your code at `+B+":"+ae+"."}return""}}var en={};function Ir(g){{var B=_t();if(!B){var ae=typeof g=="string"?g:g.displayName||g.name;ae&&(B=`
|
|
208
|
-
|
|
209
|
-
Check the top-level render call using <`+ae+">.")}return B}}function ar(g,B){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var ae=Ir(B);if(en[ae])return;en[ae]=!0;var me="";g&&g._owner&&g._owner!==Se.current&&(me=" It was passed a child from "+De(g._owner.type)+"."),$e(g),K('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,me),$e(null)}}function Er(g,B){{if(typeof g!="object")return;if(Array.isArray(g))for(var ae=0;ae<g.length;ae++){var me=g[ae];ot(me)&&ar(me,B)}else if(ot(g))g._store&&(g._store.validated=!0);else if(g){var Oe=Y(g);if(typeof Oe=="function"&&Oe!==g.entries)for(var Ae=Oe.call(g),_e;!(_e=Ae.next()).done;)ot(_e.value)&&ar(_e.value,B)}}}function qr(g){{var B=g.type;if(B==null||typeof B=="string")return;var ae;if(typeof B=="function")ae=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===k||B.$$typeof===N))ae=B.propTypes;else return;if(ae){var me=De(B);Pr(ae,g.props,"prop",me,g)}else if(B.PropTypes!==void 0&&!it){it=!0;var Oe=De(B);K("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&K("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wn(g){{for(var B=Object.keys(g.props),ae=0;ae<B.length;ae++){var me=B[ae];if(me!=="children"&&me!=="key"){$e(g),K("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",me),$e(null);break}}g.ref!==null&&($e(g),K("Invalid attribute `ref` supplied to `React.Fragment`."),$e(null))}}function ir(g,B,ae,me,Oe,Ae){{var _e=ce(g);if(!_e){var Ee="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Ee+=" 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 we=Xe(Oe);we?Ee+=we:Ee+=_t();var Qe;g===null?Qe="null":Array.isArray(g)?Qe="array":g!==void 0&&g.$$typeof===x?(Qe="<"+(De(g.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):Qe=typeof g,K("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Qe,Ee)}var ut=fe(g,B,ae,Oe,Ae);if(ut==null)return ut;if(_e){var At=B.children;if(At!==void 0)if(me)if(Array.isArray(At)){for(var Ut=0;Ut<At.length;Ut++)Er(At[Ut],g);Object.freeze&&Object.freeze(At)}else K("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 Er(At,g)}return g===l.Fragment?Wn(ut):qr(ut),ut}}var In=ir;l.jsxDEV=In})()})(tb);ue.exports=tb;var qi="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsMagnifier\\index.tsx";const Gi=100,Xi=80;var M0=R.exports.memo(function({x:d,y}){const{width:x,height:h,image:m}=mn(),s=Cr(),[S,z]=R.exports.useState(null),k=R.exports.useRef(null),T=R.exports.useRef(null),D=R.exports.useRef(null),[N,E]=R.exports.useState("000000");return R.exports.useLayoutEffect(()=>{if(!k.current)return;const L=k.current.getBoundingClientRect();let te=d+20,G=y+20;te+L.width>x&&(te=d-L.width-20),G+L.height>h&&(G=y-L.height-20),te<0&&(te=0),G<0&&(G=0),z({x:te,y:G})},[x,h,d,y]),R.exports.useEffect(()=>{if(!m||!T.current){D.current=null;return}if(D.current||(D.current=T.current.getContext("2d")),!D.current)return;const L=D.current;L.clearRect(0,0,Gi,Xi);const te=m.naturalWidth/x,G=m.naturalHeight/h;L.drawImage(m,d*te-Gi/2,y*G-Xi/2,Gi,Xi,0,0,Gi,Xi);const{data:re}=L.getImageData(Math.floor(Gi/2),Math.floor(Xi/2),1,1),X=Array.from(re.slice(0,3)).map(W=>W>=16?W.toString(16):`0${W.toString(16)}`).join("").toUpperCase();E(X)},[x,h,m,d,y]),ue.exports.jsxDEV("div",{ref:k,className:"screenshots-magnifier",style:{transform:`translate(${S==null?void 0:S.x}px, ${S==null?void 0:S.y}px)`},children:[ue.exports.jsxDEV("div",{className:"screenshots-magnifier-body",children:ue.exports.jsxDEV("canvas",{ref:T,className:"screenshots-magnifier-body-canvas",width:Gi,height:Xi},void 0,!1,{fileName:qi,lineNumber:97,columnNumber:9},this)},void 0,!1,{fileName:qi,lineNumber:96,columnNumber:7},this),ue.exports.jsxDEV("div",{className:"screenshots-magnifier-footer",children:[ue.exports.jsxDEV("div",{className:"screenshots-magnifier-footer-item",children:[s.magnifier_position_label,": (",d,",",y,")"]},void 0,!0,{fileName:qi,lineNumber:105,columnNumber:9},this),ue.exports.jsxDEV("div",{className:"screenshots-magnifier-footer-item",children:["RGB: #",N]},void 0,!0,{fileName:qi,lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:qi,lineNumber:104,columnNumber:7},this)]},void 0,!0,{fileName:qi,lineNumber:89,columnNumber:5},this)});function A0({x:l,y:d},{x:y,y:x},h,m){return l>y&&([l,y]=[y,l]),d>x&&([d,x]=[x,d]),l<0&&(l=0),y>h&&(y=h),d<0&&(d=0),x>m&&(x=m),{x:l,y:d,width:y-l,height:x-d}}var Ns="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsBackground\\index.tsx",U0=R.exports.memo(function(){const{url:d,image:y,width:x,height:h}=mn(),[m,s]=Qi(),S=R.exports.useRef(null),z=R.exports.useRef(null),k=R.exports.useRef(!1),[T,D]=R.exports.useState(null),N=R.exports.useCallback((L,te)=>{if(!S.current)return;const{x:G,y:re}=S.current.getBoundingClientRect();s.set(A0({x:L.x-G,y:L.y-re},{x:te.x-G,y:te.y-re},x,h))},[x,h,s]),E=R.exports.useCallback(L=>{z.current||m||L.button!==0||(z.current={x:L.clientX,y:L.clientY},k.current=!1)},[m]);return R.exports.useEffect(()=>{const L=G=>{if(S.current){const re=S.current.getBoundingClientRect();G.clientX<re.left||G.clientY<re.top||G.clientX>re.right||G.clientY>re.bottom?D(null):D({x:G.clientX-re.x,y:G.clientY-re.y})}!z.current||(N(z.current,{x:G.clientX,y:G.clientY}),k.current=!0)},te=G=>{!z.current||(k.current&&N(z.current,{x:G.clientX,y:G.clientY}),z.current=null,k.current=!1)};return window.addEventListener("mousemove",L),window.addEventListener("mouseup",te),()=>{window.removeEventListener("mousemove",L),window.removeEventListener("mouseup",te)}},[N]),R.exports.useLayoutEffect(()=>{(!y||m)&&D(null)},[y,m]),!d||!y?null:ue.exports.jsxDEV("div",{ref:S,className:"screenshots-background",onMouseDown:E,children:[ue.exports.jsxDEV("img",{className:"screenshots-background-image",src:d},void 0,!1,{fileName:Ns,lineNumber:121,columnNumber:7},this),ue.exports.jsxDEV("div",{className:"screenshots-background-mask"},void 0,!1,{fileName:Ns,lineNumber:122,columnNumber:7},this),T&&!m&&ue.exports.jsxDEV(M0,{x:T==null?void 0:T.x,y:T==null?void 0:T.y},void 0,!1,{fileName:Ns,lineNumber:123,columnNumber:31},this)]},void 0,!0,{fileName:Ns,lineNumber:120,columnNumber:5},this)});function ya(){const{cursor:l}=mn(),{setCursor:d}=Du(),y=R.exports.useCallback(h=>{d==null||d(h)},[d]),x=R.exports.useCallback(()=>{d==null||d("move")},[d]);return[l,{set:y,reset:x}]}function Ki(){const{emiterRef:l}=mn(),d=R.exports.useCallback((m,s)=>{const S=l.current;Array.isArray(S[m])?S[m].push(s):S[m]=[s]},[l]),y=R.exports.useCallback((m,s)=>{const S=l.current;if(Array.isArray(S[m])){const z=S[m].findIndex(k=>k===s);z!==-1&&S[m].splice(z,1)}},[l]),x=R.exports.useCallback((m,...s)=>{const S=l.current;Array.isArray(S[m])&&S[m].forEach(z=>z(...s))},[l]),h=R.exports.useCallback(()=>{l.current={}},[l]);return{on:d,off:y,emit:x,reset:h}}function Pn(){const{history:l}=mn(),{setHistory:d}=Du(),y=R.exports.useCallback(T=>{const{index:D,stack:N}=l;N.forEach(E=>{E.type===ft.Source&&(E.isSelected=!1)}),T.type===ft.Source?T.isSelected=!0:T.type===ft.Edit&&(T.source.isSelected=!0),N.splice(D+1),N.push(T),d==null||d({index:N.length-1,stack:N})},[l,d]),x=R.exports.useCallback(()=>{const{stack:T}=l;T.pop(),d==null||d({index:T.length-1,stack:T})},[l,d]),h=R.exports.useCallback(()=>{const{index:T,stack:D}=l,N=D[T];N&&(N.type===ft.Source?N.isSelected=!1:N.type===ft.Edit&&N.source.editHistory.pop()),d==null||d({index:T<=0?-1:T-1,stack:D})},[l,d]),m=R.exports.useCallback(()=>{const{index:T,stack:D}=l,N=D[T+1];N&&(N.type===ft.Source?N.isSelected=!1:N.type===ft.Edit&&N.source.editHistory.push(N)),d==null||d({index:T>=D.length-1?D.length-1:T+1,stack:D})},[l,d]),s=R.exports.useCallback(T=>{d==null||d({...T})},[d]),S=R.exports.useCallback(T=>{l.stack.forEach(D=>{D.type===ft.Source&&(D===T?D.isSelected=!0:D.isSelected=!1)}),d==null||d({...l})},[l,d]),z=R.exports.useCallback(()=>{l.stack.forEach(T=>{T.type===ft.Source&&(T.isSelected=!1)}),d==null||d({...l})},[l,d]),k=R.exports.useCallback(()=>{d==null||d({index:-1,stack:[]})},[d]);return[{index:l.index,stack:l.stack,top:l.stack.slice(l.index,l.index+1)[0]},{push:y,pop:x,undo:h,redo:m,set:s,select:S,clearSelect:z,reset:k}]}function ga(){const{operation:l}=mn(),{setOperation:d}=Du(),y=R.exports.useCallback(h=>{d==null||d(h)},[d]),x=R.exports.useCallback(()=>{d==null||d(void 0)},[d]);return[l,{set:y,reset:x}]}function z0({x:l,y:d},{x:y,y:x},h,m,s,S){return l>y&&([l,y]=[y,l]),d>x&&([d,x]=[x,d]),l<0&&(l=0,S==="move"&&(y=h.width)),y>m&&(y=m,S==="move"&&(l=y-h.width)),d<0&&(d=0,S==="move"&&(x=h.height)),x>s&&(x=s,S==="move"&&(d=x-h.height)),{x:l,y:d,width:Math.max(y-l,1),height:Math.max(x-d,1)}}function L0(l,d,y,x){const h=l.clientX-y.x,m=l.clientY-y.y;let s=x.x,S=x.y,z=x.x+x.width,k=x.y+x.height;switch(d){case"top":S+=m;break;case"top-right":z+=h,S+=m;break;case"right":z+=h;break;case"right-bottom":z+=h,k+=m;break;case"bottom":k+=m;break;case"bottom-left":s+=h,k+=m;break;case"left":s+=h;break;case"left-top":s+=h,S+=m;break;case"move":s+=h,S+=m,z+=h,k+=m;break}return[{x:s,y:S},{x:z,y:k}]}function j0(l,d,y,x){if(!d)return!1;const h=document.createElement("canvas");h.width=l.width,h.height=l.height;const m=h.getContext("2d");if(!m)return!1;const{left:s,top:S}=d.getBoundingClientRect(),z=x.clientX-s,k=x.clientY-S;return[...y.stack.slice(0,y.index+1)].reverse().find(D=>{var N;return D.type!==ft.Source?!1:(m.clearRect(0,0,l.width,l.height),(N=D.isHit)==null?void 0:N.call(D,m,D,{x:z,y:k}))})}var Za="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsCanvas\\index.tsx";const H0=["top","right","bottom","left"],V0=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"];var B0=R.exports.memo(R.exports.forwardRef(function(d,y){const{url:x,image:h,width:m,height:s}=mn(),S=Ki(),[z]=Pn(),[k]=ya(),[T,D]=Qi(),[N]=ga(),E=R.exports.useRef(),L=R.exports.useRef(null),te=R.exports.useRef(null),G=R.exports.useRef(null),re=R.exports.useRef(null),X=R.exports.useCallback(()=>{if(!T||!re.current)return;const _=re.current;_.imageSmoothingEnabled=!0,_.imageSmoothingQuality="low",_.clearRect(0,0,T.width,T.height),z.stack.slice(0,z.index+1).forEach(Y=>{Y.type===ft.Source&&Y.draw(_,Y)})},[T,re,z]),W=R.exports.useCallback((_,Y)=>{if(!(_.button!==0||!T))if(!N)E.current=Y,L.current={x:_.clientX,y:_.clientY},te.current={x:T.x,y:T.y,width:T.width,height:T.height};else{const q=j0(T,G.current,z,_.nativeEvent);q?S.emit("drawselect",q,_.nativeEvent):S.emit("mousedown",_.nativeEvent)}},[T,N,S,z]),H=R.exports.useCallback(_=>{if(!E.current||!L.current||!te.current||!T)return;const Y=L0(_,E.current,L.current,te.current);D.set(z0(Y[0],Y[1],T,m,s,E.current))},[m,s,T,D]);return R.exports.useLayoutEffect(()=>{if(!h||!T||!G.current){re.current=null;return}re.current||(re.current=G.current.getContext("2d")),X()},[h,T,X]),R.exports.useEffect(()=>{const _=q=>{if(N)S.emit("mousemove",q);else{if(!E.current||!L.current||!te.current)return;H(q)}},Y=q=>{if(N)S.emit("mouseup",q);else{if(!E.current||!L.current||!te.current)return;H(q),E.current=void 0,L.current=null,te.current=null}};return window.addEventListener("mousemove",_),window.addEventListener("mouseup",Y),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",Y)}},[H,N,S]),R.exports.useImperativeHandle(y,()=>re.current),ue.exports.jsxDEV("div",{className:"screenshots-canvas",style:{width:(T==null?void 0:T.width)||0,height:(T==null?void 0:T.height)||0,transform:T?`translate(${T.x}px, ${T.y}px)`:"none"},children:[ue.exports.jsxDEV("div",{className:"screenshots-canvas-body",children:[ue.exports.jsxDEV("img",{className:"screenshots-canvas-image",src:x,style:{width:m,height:s,transform:T?`translate(${-T.x}px, ${-T.y}px)`:"none"}},void 0,!1,{fileName:Za,lineNumber:183,columnNumber:11},this),ue.exports.jsxDEV("canvas",{ref:G,className:"screenshots-canvas-panel",width:(T==null?void 0:T.width)||0,height:(T==null?void 0:T.height)||0},void 0,!1,{fileName:Za,lineNumber:192,columnNumber:11},this)]},void 0,!0,{fileName:Za,lineNumber:181,columnNumber:9},this),ue.exports.jsxDEV("div",{className:"screenshots-canvas-mask",style:{cursor:k},onMouseDown:_=>W(_,"move")},void 0,!1,{fileName:Za,lineNumber:199,columnNumber:9},this),H0.map(_=>ue.exports.jsxDEV("div",{className:`screenshots-canvas-border-${_}`},_,!1,{fileName:Za,lineNumber:207,columnNumber:18},this)),V0.map(_=>ue.exports.jsxDEV("div",{className:`screenshots-canvas-point-${_}`,onMouseDown:Y=>W(Y,_)},_,!1,{fileName:Za,lineNumber:211,columnNumber:13},this))]},void 0,!0,{fileName:Za,lineNumber:173,columnNumber:7},this)}));function vp(){const l=Du();return R.exports.useCallback((y,...x)=>{var h;(h=l.call)==null||h.call(l,y,...x)},[l])}function ba(){const{canvasContextRef:l}=mn();return l}function hp(){const l=Ki(),[,d]=Qi(),[,y]=ya(),[,x]=Pn(),[,h]=ga();return R.exports.useCallback(()=>{l.reset(),x.reset(),d.reset(),y.reset(),h.reset()},[l,x,d,y,h])}var op="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsOption\\index.tsx",F0=R.exports.memo(function({open:d,content:y,children:x}){var te,G;const h=R.exports.useRef(null),m=R.exports.useRef(null),s=R.exports.useRef(null),S=R.exports.useContext(ub),[z,k]=R.exports.useState("bottom"),[T,D]=R.exports.useState(null),[N,E]=R.exports.useState(0),L=()=>(m.current||(m.current=document.createElement("div")),m.current);return R.exports.useEffect(()=>{const re=L();return d&&document.body.appendChild(re),()=>{re.remove()}},[d]),R.exports.useEffect(()=>{if(!d||!S||!h.current||!s.current)return;const re=h.current.getBoundingClientRect(),X=s.current.getBoundingClientRect();let W=z,H=re.left+re.width/2,_=re.top+re.height,Y=N;if(H+X.width/2>S.x+S.width){const q=H;H=S.x+S.width-X.width/2,Y=q-H}if(H<S.x+X.width/2){const q=H;H=S.x+X.width/2,Y=q-H}_>window.innerHeight-X.height&&(W==="bottom"&&(W="top"),_=re.top-X.height),_<0&&(W==="top"&&(W="bottom"),_=re.top+re.height),W!==z&&k(W),((T==null?void 0:T.x)!==H||T.y!==_)&&D({x:H,y:_}),Y!==N&&E(Y)}),ue.exports.jsxDEV(ue.exports.Fragment,{children:[R.exports.cloneElement(x,{ref:h}),d&&y&&zs.exports.createPortal(ue.exports.jsxDEV("div",{ref:s,className:"screenshots-option",style:{visibility:T?"visible":"hidden",transform:`translate(${(te=T==null?void 0:T.x)!=null?te:0}px, ${(G=T==null?void 0:T.y)!=null?G:0}px)`},"data-placement":z,children:[ue.exports.jsxDEV("div",{className:"screenshots-option-container",children:y},void 0,!1,{fileName:op,lineNumber:120,columnNumber:13},this),ue.exports.jsxDEV("div",{className:"screenshots-option-arrow",style:{marginLeft:N}},void 0,!1,{fileName:op,lineNumber:121,columnNumber:13},this)]},void 0,!0,{fileName:op,lineNumber:111,columnNumber:11},this),L())]},void 0,!0)});var up="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsButton\\index.tsx",Zn=R.exports.memo(function({title:d,icon:y,checked:x,disabled:h,option:m,onClick:s}){const S=["screenshots-button"],z=R.exports.useCallback(k=>{h||!s||s(k)},[h,s]);return x&&S.push("screenshots-button-checked"),h&&S.push("screenshots-button-disabled"),ue.exports.jsxDEV(F0,{open:x,content:m,children:ue.exports.jsxDEV("div",{className:S.join(" "),title:d,onClick:z,children:ue.exports.jsxDEV("span",{className:y},void 0,!1,{fileName:up,lineNumber:44,columnNumber:9},this)},void 0,!1,{fileName:up,lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:up,lineNumber:42,columnNumber:5},this)}),$0="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Ok\\index.tsx";function P0(){const{image:l,width:d,height:y,history:x,bounds:h,lang:m}=mn(),s=ba(),[,S]=Pn(),z=vp(),k=hp(),T=R.exports.useCallback(()=>{S.clearSelect(),setTimeout(()=>{!s.current||!l||!h||Us({image:l,width:d,height:y,history:x,bounds:h}).then(D=>{z("onOk",D,h),k()})})},[s,S,l,d,y,x,h,z,k]);return ue.exports.jsxDEV(Zn,{title:m.operation_ok_title,icon:"icon-ok",onClick:T},void 0,!1,{fileName:$0,lineNumber:36,columnNumber:10},this)}var Y0="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Cancel\\index.tsx";function W0(){const l=vp(),d=hp(),y=Cr(),x=R.exports.useCallback(()=>{l("onCancel"),d()},[l,d]);return ue.exports.jsxDEV(Zn,{title:y.operation_cancel_title,icon:"icon-cancel",onClick:x},void 0,!1,{fileName:Y0,lineNumber:17,columnNumber:10},this)}var I0="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Save\\index.tsx";function q0(){const{image:l,width:d,height:y,history:x,bounds:h,lang:m}=mn(),s=ba(),[,S]=Pn(),z=vp(),k=hp(),T=R.exports.useCallback(()=>{S.clearSelect(),setTimeout(()=>{!s.current||!l||!h||Us({image:l,width:d,height:y,history:x,bounds:h}).then(D=>{z("onSave",D,h),k()})})},[s,S,l,d,y,x,h,z,k]);return ue.exports.jsxDEV(Zn,{title:m.operation_save_title,icon:"icon-save",onClick:T},void 0,!1,{fileName:I0,lineNumber:36,columnNumber:10},this)}var G0="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Redo\\index.tsx";function X0(){const l=Cr(),[d,y]=Pn(),x=R.exports.useCallback(()=>{y.redo()},[y]);return ue.exports.jsxDEV(Zn,{title:l.operation_redo_title,icon:"icon-redo",disabled:!d.stack.length||d.stack.length-1===d.index,onClick:x},void 0,!1,{fileName:G0,lineNumber:15,columnNumber:5},this)}var Q0="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Undo\\index.tsx";function K0(){const l=Cr(),[d,y]=Pn(),x=R.exports.useCallback(()=>{y.undo()},[y]);return ue.exports.jsxDEV(Zn,{title:l.operation_undo_title,icon:"icon-undo",disabled:d.index===-1,onClick:x},void 0,!1,{fileName:Q0,lineNumber:15,columnNumber:5},this)}var lp="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsSize\\index.tsx",nb=R.exports.memo(function({value:d,onChange:y}){const x=[3,6,9];return ue.exports.jsxDEV("div",{className:"screenshots-size",children:x.map(h=>{const m=["screenshots-size-item"];return h===d&&m.push("screenshots-size-active"),ue.exports.jsxDEV("div",{className:m.join(" "),onClick:()=>y&&y(h),children:ue.exports.jsxDEV("div",{className:"screenshots-size-pointer",style:{width:h*1.8,height:h*1.8}},void 0,!1,{fileName:lp,lineNumber:22,columnNumber:13},this)},h,!1,{fileName:lp,lineNumber:21,columnNumber:11},this)})},void 0,!1,{fileName:lp,lineNumber:12,columnNumber:5},this)});function Ji(l){const d=Ki();R.exports.useEffect(()=>(d.on("mousedown",l),()=>{d.off("mousedown",l)}),[l,d])}function Zi(l){const d=Ki();R.exports.useEffect(()=>(d.on("mousemove",l),()=>{d.off("mousemove",l)}),[l,d])}function eo(l){const d=Ki();R.exports.useEffect(()=>(d.on("mouseup",l),()=>{d.off("mouseup",l)}),[l,d])}var Bg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Mosaic\\index.tsx";function Ms(l,d,y){if(!y)return[0,0,0,0];const{data:x,width:h}=y,m=d*h*4+l*4;return Array.from(x.slice(m,m+4))}function J0(l,d){const{tiles:y,size:x}=d.data;y.forEach(h=>{const m=Math.round(h.color[0]),s=Math.round(h.color[1]),S=Math.round(h.color[2]),z=h.color[3]/255;l.fillStyle=`rgba(${m}, ${s}, ${S}, ${z})`,l.fillRect(h.x-x/2,h.y-x/2,x,x)})}function Z0(){const l=Cr(),{image:d,width:y,height:x}=mn(),[h,m]=ga(),s=ba(),[S,z]=Pn(),[k]=Qi(),[,T]=ya(),[D,N]=R.exports.useState(3),E=R.exports.useRef(null),L=R.exports.useRef(null),te=h==="Mosaic",G=R.exports.useCallback(()=>{m.set("Mosaic"),T.set("crosshair")},[m,T]),re=R.exports.useCallback(()=>{te||(G(),z.clearSelect())},[te,G,z]),X=R.exports.useCallback(_=>{if(!te||L.current||!E.current||!s.current)return;const Y=s.current.canvas.getBoundingClientRect(),q=_.clientX-Y.x,K=_.clientY-Y.y,pe=D*2;L.current={name:"Mosaic",type:ft.Source,data:{size:pe,tiles:[{x:q,y:K,color:Ms(q,K,E.current)}]},editHistory:[],draw:J0}},[te,D,s]),W=R.exports.useCallback(_=>{if(!te||!L.current||!s.current||!E.current)return;const Y=s.current.canvas.getBoundingClientRect(),q=_.clientX-Y.x,K=_.clientY-Y.y,pe=L.current.data.size,Ce=L.current.data.tiles;let ce=Ce[Ce.length-1];if(!ce)Ce.push({x:q,y:K,color:Ms(q,K,E.current)});else{const Ze=ce.x-q,de=ce.y-K;let De=Math.sqrt(Ze**2+de**2);const He=-de/De,Ie=-Ze/De;for(;De>pe;){const Ot=Math.floor(ce.x+pe*Ie),at=Math.floor(ce.y+pe*He);ce={x:Ot,y:at,color:Ms(Ot,at,E.current)},Ce.push(ce),De-=pe}De>pe/2&&Ce.push({x:q,y:K,color:Ms(q,K,E.current)})}S.top!==L.current?z.push(L.current):z.set(S)},[te,s,S,z]),H=R.exports.useCallback(()=>{!te||(L.current=null)},[te]);return Ji(X),Zi(W),eo(H),R.exports.useEffect(()=>{if(!k||!d||!te)return;const _=document.createElement("canvas"),Y=_.getContext("2d");if(!Y)return;_.width=k.width,_.height=k.height;const q=d.naturalWidth/y,K=d.naturalHeight/x;Y.drawImage(d,k.x*q,k.y*K,k.width*q,k.height*K,0,0,k.width,k.height),E.current=Y.getImageData(0,0,k.width,k.height)},[y,x,k,d,te]),ue.exports.jsxDEV(Zn,{title:l.operation_mosaic_title,icon:"icon-mosaic",checked:te,onClick:re,option:ue.exports.jsxDEV(nb,{value:D,onChange:N},void 0,!1,{fileName:Bg,lineNumber:220,columnNumber:15},this)},void 0,!1,{fileName:Bg,lineNumber:215,columnNumber:5},this)}var Fg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsColor\\index.tsx",e_=R.exports.memo(function({value:d,onChange:y}){const x=["#ee5126","#fceb4d","#90e746","#51c0fa","#7a7a7a","#ffffff"];return ue.exports.jsxDEV("div",{className:"screenshots-color",children:x.map(h=>{const m=["screenshots-color-item"];return h===d&&m.push("screenshots-color-active"),ue.exports.jsxDEV("div",{className:m.join(" "),style:{backgroundColor:h},onClick:()=>y&&y(h)},h,!1,{fileName:Fg,lineNumber:19,columnNumber:11},this)})},void 0,!1,{fileName:Fg,lineNumber:12,columnNumber:5},this)});var sp="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsSizeColor\\index.tsx",_u=R.exports.memo(function({size:d,color:y,onSizeChange:x,onColorChange:h}){return ue.exports.jsxDEV("div",{className:"screenshots-sizecolor",children:[ue.exports.jsxDEV(nb,{value:d,onChange:x},void 0,!1,{fileName:sp,lineNumber:21,columnNumber:7},this),ue.exports.jsxDEV(e_,{value:y,onChange:h},void 0,!1,{fileName:sp,lineNumber:22,columnNumber:7},this)]},void 0,!0,{fileName:sp,lineNumber:20,columnNumber:5},this)});const t_=`
|
|
210
|
-
min-width: 0 !important;
|
|
211
|
-
width: 0 !important;
|
|
212
|
-
min-height: 0 !important;
|
|
213
|
-
height:0 !important;
|
|
214
|
-
visibility: hidden !important;
|
|
215
|
-
overflow: hidden !important;
|
|
216
|
-
position: absolute !important;
|
|
217
|
-
z-index: -1000 !important;
|
|
218
|
-
top:0 !important;
|
|
219
|
-
right:0 !important;
|
|
220
|
-
`,n_=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","text-indent","padding-left","padding-right","border-width","box-sizing","white-space","word-break"];let ma;function r_(l){const d=window.getComputedStyle(l),y=d.getPropertyValue("box-sizing")||d.getPropertyValue("-moz-box-sizing")||d.getPropertyValue("-webkit-box-sizing"),x=parseFloat(d.getPropertyValue("padding-bottom"))+parseFloat(d.getPropertyValue("padding-top")),h=parseFloat(d.getPropertyValue("border-bottom-width"))+parseFloat(d.getPropertyValue("border-top-width"));return{sizingStyle:n_.map(s=>`${s}:${d.getPropertyValue(s)}`).join(";"),paddingSize:x,borderSize:h,boxSizing:y}}function a_(l,d,y,x){ma||(ma=document.createElement("textarea"),ma.setAttribute("tab-index","-1"),document.body.appendChild(ma));const{paddingSize:h,borderSize:m,boxSizing:s,sizingStyle:S}=r_(l);ma.setAttribute("style",`${S};${t_};max-width:${y}px;max-height:${x}px`),ma.value=d||" ";let z=ma.scrollWidth,k=ma.scrollHeight;return s==="border-box"?(z+=m,k+=m):s==="content-box"&&(z-=h,k-=h),{width:Math.min(z,y),height:Math.min(k,x)}}var i_="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsTextarea\\index.tsx",o_=R.exports.memo(function({x:d,y,maxWidth:x,maxHeight:h,size:m,color:s,value:S,onChange:z,onBlur:k}){const T=R.exports.useRef(null),D=R.exports.useRef(null),[N,E]=R.exports.useState(0),[L,te]=R.exports.useState(0),G=()=>(T.current||(T.current=document.createElement("div")),T.current);return R.exports.useLayoutEffect(()=>(T.current&&(document.body.appendChild(T.current),requestAnimationFrame(()=>{var re;(re=D.current)==null||re.focus()})),()=>{var re;(re=T.current)==null||re.remove()}),[]),R.exports.useLayoutEffect(()=>{if(!D.current)return;const{width:re,height:X}=a_(D.current,S,x,h);E(re),te(X)},[S,x,h]),zs.exports.createPortal(ue.exports.jsxDEV("textarea",{ref:D,className:"screenshots-textarea",style:{color:s,width:N,height:L,maxWidth:x,maxHeight:h,fontSize:m,lineHeight:`${m}px`,transform:`translate(${d}px, ${y}px)`},value:S,onChange:re=>z&&z(re.target.value),onBlur:re=>k&&k(re)},void 0,!1,{fileName:i_,lineNumber:65,columnNumber:5},this),G())});function wu(l){const d=Ki();R.exports.useEffect(()=>(d.on("drawselect",l),()=>{d.off("drawselect",l)}),[l,d])}var cp="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Text\\index.tsx";const fp={3:18,6:32,9:46};function u_(l,d){const{size:y,color:x,fontFamily:h,x:m,y:s,text:S}=d.data;l.fillStyle=x,l.textAlign="left",l.textBaseline="top",l.font=`${y}px ${h}`;const z=d.editHistory.reduce((k,{data:T})=>({x:k.x+T.x2-T.x1,y:k.y+T.y2-T.y1}),{x:0,y:0});S.split(`
|
|
221
|
-
`).forEach((k,T)=>{l.fillText(k,m+z.x,s+z.y+T*y)})}function l_(l,d,y){l.textAlign="left",l.textBaseline="top",l.font=`${d.data.size}px ${d.data.fontFamily}`;let x=0,h=0;d.data.text.split(`
|
|
222
|
-
`).forEach(D=>{const N=l.measureText(D);x<N.width&&(x=N.width),h+=d.data.size});const{x:m,y:s}=d.editHistory.reduce((D,{data:N})=>({x:D.x+N.x2-N.x1,y:D.y+N.y2-N.y1}),{x:0,y:0}),S=d.data.x+m,z=d.data.y+s,k=S+x,T=z+h;return y.x>=S&&y.x<=k&&y.y>=z&&y.y<=T}function s_(){const l=Cr(),[d,y]=Pn(),[x]=Qi(),[h,m]=ga(),[,s]=ya(),S=ba(),[z,k]=R.exports.useState(3),[T,D]=R.exports.useState("#ee5126"),N=R.exports.useRef(null),E=R.exports.useRef(null),[L,te]=R.exports.useState(null),[G,re]=R.exports.useState(""),X=h==="Text",W=R.exports.useCallback(()=>{m.set("Text"),s.set("default")},[m,s]),H=R.exports.useCallback(()=>{X||(W(),y.clearSelect())},[X,W,y]),_=R.exports.useCallback(de=>{N.current&&(N.current.data.size=fp[de]),k(de)},[]),Y=R.exports.useCallback(de=>{N.current&&(N.current.data.color=de),D(de)},[]),q=R.exports.useCallback(de=>{re(de),X&&N.current&&(N.current.data.text=de)},[X]),K=R.exports.useCallback(()=>{N.current&&N.current.data.text&&y.push(N.current),N.current=null,re(""),te(null)},[y]),pe=R.exports.useCallback((de,De)=>{de.name==="Text"&&(W(),E.current={type:ft.Edit,data:{x1:De.clientX,y1:De.clientY,x2:De.clientX,y2:De.clientY},source:de},y.select(de))},[W,y]),Ce=R.exports.useCallback(de=>{if(!X||!S.current||N.current||!x)return;const{left:De,top:He}=S.current.canvas.getBoundingClientRect(),Ie=window.getComputedStyle(S.current.canvas).fontFamily,Ot=de.clientX-De,at=de.clientY-He;N.current={name:"Text",type:ft.Source,data:{size:fp[z],color:T,fontFamily:Ie,x:Ot,y:at,text:""},editHistory:[],draw:u_,isHit:l_},te({x:de.clientX,y:de.clientY,maxWidth:x.width-Ot,maxHeight:x.height-at})},[X,z,T,x,S]),ce=R.exports.useCallback(de=>{!X||E.current&&(E.current.data.x2=de.clientX,E.current.data.y2=de.clientY,d.top!==E.current?(E.current.source.editHistory.push(E.current),y.push(E.current)):y.set(d))},[X,d,y]),Ze=R.exports.useCallback(()=>{!X||(E.current=null)},[X]);return wu(pe),Ji(Ce),Zi(ce),eo(Ze),ue.exports.jsxDEV(ue.exports.Fragment,{children:[ue.exports.jsxDEV(Zn,{title:l.operation_text_title,icon:"icon-text",checked:X,onClick:H,option:ue.exports.jsxDEV(_u,{size:z,color:T,onSizeChange:_,onColorChange:Y},void 0,!1,{fileName:cp,lineNumber:261,columnNumber:11},this)},void 0,!1,{fileName:cp,lineNumber:255,columnNumber:7},this),X&&L&&ue.exports.jsxDEV(o_,{x:L.x,y:L.y,maxWidth:L.maxWidth,maxHeight:L.maxHeight,size:fp[z],color:T,value:G,onChange:q,onBlur:K},void 0,!1,{fileName:cp,lineNumber:265,columnNumber:9},this)]},void 0,!0)}const rb=4;function jt(l,d,y){l.lineWidth=1,l.strokeStyle="#000000",l.fillStyle="#ffffff",l.beginPath(),l.arc(d,y,rb,0,2*Math.PI),l.fill(),l.stroke()}function Ls(l,d,y){d.draw(l,d);const{data:x}=l.getImageData(y.x,y.y,1,1);return x.some(h=>h!==0)}function Ht(l,d,y){if(!l)return!1;const{left:x,top:h}=l.getBoundingClientRect(),m=d.clientX-x,s=d.clientY-h;return(y.x-m)**2+(y.y-s)**2<rb**2}function c_(l,d){const{size:y,color:x,points:h}=d.data;l.lineCap="round",l.lineJoin="round",l.lineWidth=y,l.strokeStyle=x;const m=d.editHistory.reduce((s,{data:S})=>({x:s.x+S.x2-S.x1,y:s.y+S.y2-S.y1}),{x:0,y:0});l.beginPath(),h.forEach((s,S)=>{S===0?l.moveTo(s.x+m.x,s.y+m.y):l.lineTo(s.x+m.x,s.y+m.y)}),l.stroke(),d.isSelected&&(l.lineWidth=1,l.strokeStyle="#000000",l.beginPath(),h.forEach((s,S)=>{S===0?l.moveTo(s.x+m.x,s.y+m.y):l.lineTo(s.x+m.x,s.y+m.y)}),l.stroke())}var $g="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Brush\\index.tsx";function f_(){const l=Cr(),[,d]=ya(),[y,x]=ga(),h=ba(),[m,s]=Pn(),[S,z]=R.exports.useState(3),[k,T]=R.exports.useState("#ee5126"),D=R.exports.useRef(null),N=R.exports.useRef(null),E=y==="Brush",L=R.exports.useCallback(()=>{x.set("Brush"),d.set("default")},[x,d]),te=R.exports.useCallback(()=>{E||(L(),s.clearSelect())},[E,L,s]),G=R.exports.useCallback((H,_)=>{H.name==="Brush"&&(L(),N.current={type:ft.Edit,data:{x1:_.clientX,y1:_.clientY,x2:_.clientX,y2:_.clientY},source:H},s.select(H))},[L,s]),re=R.exports.useCallback(H=>{if(!E||D.current||!h.current)return;const{left:_,top:Y}=h.current.canvas.getBoundingClientRect();D.current={name:"Brush",type:ft.Source,data:{size:S,color:k,points:[{x:H.clientX-_,y:H.clientY-Y}]},editHistory:[],draw:c_,isHit:Ls}},[E,h,S,k]),X=R.exports.useCallback(H=>{if(!(!E||!h.current)){if(N.current)N.current.data.x2=H.clientX,N.current.data.y2=H.clientY,m.top!==N.current?(N.current.source.editHistory.push(N.current),s.push(N.current)):s.set(m);else if(D.current){const{left:_,top:Y}=h.current.canvas.getBoundingClientRect();D.current.data.points.push({x:H.clientX-_,y:H.clientY-Y}),m.top!==D.current?s.push(D.current):s.set(m)}}},[E,m,h,s]),W=R.exports.useCallback(()=>{!E||(D.current&&s.clearSelect(),D.current=null,N.current=null)},[E,s]);return wu(G),Ji(re),Zi(X),eo(W),ue.exports.jsxDEV(Zn,{title:l.operation_brush_title,icon:"icon-brush",checked:E,onClick:te,option:ue.exports.jsxDEV(_u,{size:S,color:k,onSizeChange:z,onColorChange:T},void 0,!1,{fileName:$g,lineNumber:166,columnNumber:15},this)},void 0,!1,{fileName:$g,lineNumber:161,columnNumber:5},this)}function ab(l){let{x1:d,y1:y,x2:x,y2:h}=l.data;return l.editHistory.forEach(({data:m})=>{const s=m.x2-m.x1,S=m.y2-m.y1;m.type===As.Move?(d+=s,y+=S,x+=s,h+=S):m.type===As.MoveStart?(d+=s,y+=S):m.type===As.MoveEnd&&(x+=s,h+=S)}),{...l.data,x1:d,x2:x,y1:y,y2:h}}function d_(l,d){const{size:y,color:x,x1:h,x2:m,y1:s,y2:S}=ab(d);l.lineCap="round",l.lineJoin="bevel",l.lineWidth=y,l.strokeStyle=x;const z=m-h,k=S-s,T=y*3,D=Math.atan2(k,z);l.beginPath(),l.moveTo(h,s),l.lineTo(m,S),l.lineTo(m-T*Math.cos(D-Math.PI/6),S-T*Math.sin(D-Math.PI/6)),l.moveTo(m,S),l.lineTo(m-T*Math.cos(D+Math.PI/6),S-T*Math.sin(D+Math.PI/6)),l.stroke(),d.isSelected&&(jt(l,h,s),jt(l,m,S))}var Pg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Arrow\\index.tsx",As=(l=>(l[l.Move=0]="Move",l[l.MoveStart=1]="MoveStart",l[l.MoveEnd=2]="MoveEnd",l))(As||{});function p_(){const l=Cr(),[,d]=ya(),[y,x]=ga(),[h,m]=Pn(),s=ba(),[S,z]=R.exports.useState(3),[k,T]=R.exports.useState("#ee5126"),D=R.exports.useRef(null),N=R.exports.useRef(null),E=y==="Arrow",L=R.exports.useCallback(()=>{x.set("Arrow"),d.set("default")},[x,d]),te=R.exports.useCallback(()=>{E||(L(),m.clearSelect())},[E,L,m]),G=R.exports.useCallback((H,_)=>{if(H.name!=="Arrow"||!s.current)return;const Y=H;L();const{x1:q,y1:K,x2:pe,y2:Ce}=ab(Y);let ce=0;Ht(s.current.canvas,_,{x:q,y:K})?ce=1:Ht(s.current.canvas,_,{x:pe,y:Ce})&&(ce=2),N.current={type:ft.Edit,data:{type:ce,x1:_.clientX,y1:_.clientY,x2:_.clientX,y2:_.clientY},source:Y},m.select(H)},[s,L,m]),re=R.exports.useCallback(H=>{if(!E||D.current||!s.current)return;const{left:_,top:Y}=s.current.canvas.getBoundingClientRect();D.current={name:"Arrow",type:ft.Source,data:{size:S,color:k,x1:H.clientX-_,y1:H.clientY-Y,x2:H.clientX-_,y2:H.clientY-Y},editHistory:[],draw:d_,isHit:Ls}},[E,k,S,s]),X=R.exports.useCallback(H=>{if(!(!E||!s.current)){if(N.current)N.current.data.x2=H.clientX,N.current.data.y2=H.clientY,h.top!==N.current?(N.current.source.editHistory.push(N.current),m.push(N.current)):m.set(h);else if(D.current){const{left:_,top:Y}=s.current.canvas.getBoundingClientRect();D.current.data.x2=H.clientX-_,D.current.data.y2=H.clientY-Y,h.top!==D.current?m.push(D.current):m.set(h)}}},[E,h,s,m]),W=R.exports.useCallback(()=>{!E||(D.current&&m.clearSelect(),D.current=null,N.current=null)},[E,m]);return wu(G),Ji(re),Zi(X),eo(W),ue.exports.jsxDEV(Zn,{title:l.operation_arrow_title,icon:"icon-arrow",checked:E,onClick:te,option:ue.exports.jsxDEV(_u,{size:S,color:k,onSizeChange:z,onColorChange:T},void 0,!1,{fileName:Pg,lineNumber:190,columnNumber:15},this)},void 0,!1,{fileName:Pg,lineNumber:185,columnNumber:5},this)}function ib(l){let{x1:d,y1:y,x2:x,y2:h}=l.data;return l.editHistory.forEach(({data:m})=>{const s=m.x2-m.x1,S=m.y2-m.y1;m.type===xr.Move?(d+=s,y+=S,x+=s,h+=S):m.type===xr.ResizeTop?y+=S:m.type===xr.ResizeRightTop?(x+=s,y+=S):m.type===xr.ResizeRight?x+=s:m.type===xr.ResizeRightBottom?(x+=s,h+=S):m.type===xr.ResizeBottom?h+=S:m.type===xr.ResizeLeftBottom?(d+=s,h+=S):m.type===xr.ResizeLeft?d+=s:m.type===xr.ResizeLeftTop&&(d+=s,y+=S)}),{...l.data,x1:d,x2:x,y1:y,y2:h}}function v_(l,d){const{size:y,color:x,x1:h,y1:m,x2:s,y2:S}=ib(d);l.lineCap="butt",l.lineJoin="miter",l.lineWidth=y,l.strokeStyle=x;const z=(h+s)/2,k=(m+S)/2,T=Math.abs(s-h)/2,D=Math.abs(S-m)/2,N=.5522848,E=T*N,L=D*N;l.beginPath(),l.moveTo(z-T,k),l.bezierCurveTo(z-T,k-L,z-E,k-D,z,k-D),l.bezierCurveTo(z+E,k-D,z+T,k-L,z+T,k),l.bezierCurveTo(z+T,k+L,z+E,k+D,z,k+D),l.bezierCurveTo(z-E,k+D,z-T,k+L,z-T,k),l.closePath(),l.stroke(),d.isSelected&&(l.lineWidth=1,l.strokeStyle="#000000",l.fillStyle="#ffffff",l.beginPath(),l.moveTo(h,m),l.lineTo(s,m),l.lineTo(s,S),l.lineTo(h,S),l.closePath(),l.stroke(),jt(l,(h+s)/2,m),jt(l,s,m),jt(l,s,(m+S)/2),jt(l,s,S),jt(l,(h+s)/2,S),jt(l,h,S),jt(l,h,(m+S)/2),jt(l,h,m))}var Yg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Ellipse\\index.tsx",xr=(l=>(l[l.Move=0]="Move",l[l.ResizeTop=1]="ResizeTop",l[l.ResizeRightTop=2]="ResizeRightTop",l[l.ResizeRight=3]="ResizeRight",l[l.ResizeRightBottom=4]="ResizeRightBottom",l[l.ResizeBottom=5]="ResizeBottom",l[l.ResizeLeftBottom=6]="ResizeLeftBottom",l[l.ResizeLeft=7]="ResizeLeft",l[l.ResizeLeftTop=8]="ResizeLeftTop",l))(xr||{});function h_(){const l=Cr(),[d,y]=Pn(),[x,h]=ga(),[,m]=ya(),s=ba(),[S,z]=R.exports.useState(3),[k,T]=R.exports.useState("#ee5126"),D=R.exports.useRef(null),N=R.exports.useRef(null),E=x==="Ellipse",L=R.exports.useCallback(()=>{h.set("Ellipse"),m.set("crosshair")},[h,m]),te=R.exports.useCallback(()=>{E||(L(),y.clearSelect())},[E,L,y]),G=R.exports.useCallback((H,_)=>{if(H.name!=="Ellipse"||!s.current)return;const Y=H;L();const{x1:q,y1:K,x2:pe,y2:Ce}=ib(Y);let ce=0;Ht(s.current.canvas,_,{x:(q+pe)/2,y:K})?ce=1:Ht(s.current.canvas,_,{x:pe,y:K})?ce=2:Ht(s.current.canvas,_,{x:pe,y:(K+Ce)/2})?ce=3:Ht(s.current.canvas,_,{x:pe,y:Ce})?ce=4:Ht(s.current.canvas,_,{x:(q+pe)/2,y:Ce})?ce=5:Ht(s.current.canvas,_,{x:q,y:Ce})?ce=6:Ht(s.current.canvas,_,{x:q,y:(K+Ce)/2})?ce=7:Ht(s.current.canvas,_,{x:q,y:K})&&(ce=8),N.current={type:ft.Edit,data:{type:ce,x1:_.clientX,y1:_.clientY,x2:_.clientX,y2:_.clientY},source:Y},y.select(H)},[s,L,y]),re=R.exports.useCallback(H=>{if(!E||!s.current||D.current)return;const{left:_,top:Y}=s.current.canvas.getBoundingClientRect(),q=H.clientX-_,K=H.clientY-Y;D.current={name:"Ellipse",type:ft.Source,data:{size:S,color:k,x1:q,y1:K,x2:q,y2:K},editHistory:[],draw:v_,isHit:Ls}},[E,S,k,s]),X=R.exports.useCallback(H=>{if(!(!E||!s.current)){if(N.current)N.current.data.x2=H.clientX,N.current.data.y2=H.clientY,d.top!==N.current?(N.current.source.editHistory.push(N.current),y.push(N.current)):y.set(d);else if(D.current){const{left:_,top:Y}=s.current.canvas.getBoundingClientRect();D.current.data.x2=H.clientX-_,D.current.data.y2=H.clientY-Y,d.top!==D.current?y.push(D.current):y.set(d)}}},[E,s,d,y]),W=R.exports.useCallback(()=>{!E||(D.current&&y.clearSelect(),D.current=null,N.current=null)},[E,y]);return wu(G),Ji(re),Zi(X),eo(W),ue.exports.jsxDEV(Zn,{title:l.operation_ellipse_title,icon:"icon-ellipse",checked:E,onClick:te,option:ue.exports.jsxDEV(_u,{size:S,color:k,onSizeChange:z,onColorChange:T},void 0,!1,{fileName:Yg,lineNumber:242,columnNumber:15},this)},void 0,!1,{fileName:Yg,lineNumber:237,columnNumber:5},this)}function ob(l){let{x1:d,y1:y,x2:x,y2:h}=l.data;return l.editHistory.forEach(({data:m})=>{const s=m.x2-m.x1,S=m.y2-m.y1;m.type===Sr.Move?(d+=s,y+=S,x+=s,h+=S):m.type===Sr.ResizeTop?y+=S:m.type===Sr.ResizeRightTop?(x+=s,y+=S):m.type===Sr.ResizeRight?x+=s:m.type===Sr.ResizeRightBottom?(x+=s,h+=S):m.type===Sr.ResizeBottom?h+=S:m.type===Sr.ResizeLeftBottom?(d+=s,h+=S):m.type===Sr.ResizeLeft?d+=s:m.type===Sr.ResizeLeftTop&&(d+=s,y+=S)}),{...l.data,x1:d,x2:x,y1:y,y2:h}}function m_(l,d){const{size:y,color:x,x1:h,y1:m,x2:s,y2:S}=ob(d);l.lineCap="butt",l.lineJoin="miter",l.lineWidth=y,l.strokeStyle=x,l.beginPath(),l.moveTo(h,m),l.lineTo(s,m),l.lineTo(s,S),l.lineTo(h,S),l.closePath(),l.stroke(),d.isSelected&&(l.lineWidth=1,l.strokeStyle="#000000",l.fillStyle="#ffffff",jt(l,(h+s)/2,m),jt(l,s,m),jt(l,s,(m+S)/2),jt(l,s,S),jt(l,(h+s)/2,S),jt(l,h,S),jt(l,h,(m+S)/2),jt(l,h,m))}var Wg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\operations\\Rectangle\\index.tsx",Sr=(l=>(l[l.Move=0]="Move",l[l.ResizeTop=1]="ResizeTop",l[l.ResizeRightTop=2]="ResizeRightTop",l[l.ResizeRight=3]="ResizeRight",l[l.ResizeRightBottom=4]="ResizeRightBottom",l[l.ResizeBottom=5]="ResizeBottom",l[l.ResizeLeftBottom=6]="ResizeLeftBottom",l[l.ResizeLeft=7]="ResizeLeft",l[l.ResizeLeftTop=8]="ResizeLeftTop",l))(Sr||{});function y_(){const l=Cr(),[d,y]=Pn(),[x,h]=ga(),[,m]=ya(),s=ba(),[S,z]=R.exports.useState(3),[k,T]=R.exports.useState("#ee5126"),D=R.exports.useRef(null),N=R.exports.useRef(null),E=x==="Rectangle",L=R.exports.useCallback(()=>{h.set("Rectangle"),m.set("crosshair")},[h,m]),te=R.exports.useCallback(()=>{E||(L(),y.clearSelect())},[E,L,y]),G=R.exports.useCallback((H,_)=>{if(H.name!=="Rectangle"||!s.current)return;const Y=H;L();const{x1:q,y1:K,x2:pe,y2:Ce}=ob(Y);let ce=0;Ht(s.current.canvas,_,{x:(q+pe)/2,y:K})?ce=1:Ht(s.current.canvas,_,{x:pe,y:K})?ce=2:Ht(s.current.canvas,_,{x:pe,y:(K+Ce)/2})?ce=3:Ht(s.current.canvas,_,{x:pe,y:Ce})?ce=4:Ht(s.current.canvas,_,{x:(q+pe)/2,y:Ce})?ce=5:Ht(s.current.canvas,_,{x:q,y:Ce})?ce=6:Ht(s.current.canvas,_,{x:q,y:(K+Ce)/2})?ce=7:Ht(s.current.canvas,_,{x:q,y:K})&&(ce=8),N.current={type:ft.Edit,data:{type:ce,x1:_.clientX,y1:_.clientY,x2:_.clientX,y2:_.clientY},source:H},y.select(H)},[s,L,y]),re=R.exports.useCallback(H=>{if(!E||!s.current||D.current)return;const{left:_,top:Y}=s.current.canvas.getBoundingClientRect(),q=H.clientX-_,K=H.clientY-Y;D.current={name:"Rectangle",type:ft.Source,data:{size:S,color:k,x1:q,y1:K,x2:q,y2:K},editHistory:[],draw:m_,isHit:Ls}},[E,S,k,s]),X=R.exports.useCallback(H=>{if(!(!E||!s.current)){if(N.current)N.current.data.x2=H.clientX,N.current.data.y2=H.clientY,d.top!==N.current?(N.current.source.editHistory.push(N.current),y.push(N.current)):y.set(d);else if(D.current){const{left:_,top:Y}=s.current.canvas.getBoundingClientRect(),q=D.current.data;q.x2=H.clientX-_,q.y2=H.clientY-Y,d.top!==D.current?y.push(D.current):y.set(d)}}},[E,s,d,y]),W=R.exports.useCallback(()=>{!E||(D.current&&y.clearSelect(),D.current=null,N.current=null)},[E,y]);return wu(G),Ji(re),Zi(X),eo(W),ue.exports.jsxDEV(Zn,{title:l.operation_rectangle_title,icon:"icon-rectangle",checked:E,onClick:te,option:ue.exports.jsxDEV(_u,{size:S,color:k,onSizeChange:z,onColorChange:T},void 0,!1,{fileName:Wg,lineNumber:242,columnNumber:15},this)},void 0,!1,{fileName:Wg,lineNumber:237,columnNumber:5},this)}var g_=[y_,h_,p_,f_,s_,Z0,"|",K0,X0,"|",q0,W0,P0];var Eu="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\ScreenshotsOperations\\index.tsx";const ub=Xg.createContext(null);var b_=R.exports.memo(function(){var D,N;const{width:d,height:y}=mn(),[x]=Qi(),[h,m]=R.exports.useState(null),[s,S]=R.exports.useState(null),z=R.exports.useRef(null),k=R.exports.useCallback(E=>{E.stopPropagation()},[]),T=R.exports.useCallback(E=>{E.preventDefault(),E.stopPropagation()},[]);return R.exports.useEffect(()=>{if(!x||!z.current)return;const E=z.current.getBoundingClientRect();let L=x.x+x.width-E.width,te=x.y+x.height+10;L<0&&(L=0),L>d-E.width&&(L=d-E.width),te>y-E.height&&(te=y-E.height-10),(!s||Math.abs(s.x-L)>1||Math.abs(s.y-te)>1)&&S({x:L,y:te}),(!h||Math.abs(h.x-E.x)>1||Math.abs(h.y-E.y)>1||Math.abs(h.width-E.width)>1||Math.abs(h.height-E.height)>1)&&m({x:E.x,y:E.y,width:E.width,height:E.height})}),x?ue.exports.jsxDEV(ub.Provider,{value:h,children:ue.exports.jsxDEV("div",{ref:z,className:"screenshots-operations",style:{visibility:s?"visible":"hidden",transform:`translate(${(D=s==null?void 0:s.x)!=null?D:0}px, ${(N=s==null?void 0:s.y)!=null?N:0}px)`},onDoubleClick:k,onContextMenu:T,children:ue.exports.jsxDEV("div",{className:"screenshots-operations-buttons",children:g_.map((E,L)=>E==="|"?ue.exports.jsxDEV("div",{className:"screenshots-operations-divider"},L,!1,{fileName:Eu,lineNumber:93,columnNumber:22},this):ue.exports.jsxDEV(E,{},L,!1,{fileName:Eu,lineNumber:95,columnNumber:22},this))},void 0,!1,{fileName:Eu,lineNumber:90,columnNumber:9},this)},void 0,!1,{fileName:Eu,lineNumber:80,columnNumber:7},this)},void 0,!1,{fileName:Eu,lineNumber:79,columnNumber:5},this):null});function x_(l){const[d,y]=R.exports.useState(null);return R.exports.useEffect(()=>{if(y(null),l==null)return;const x=document.createElement("img"),h=()=>y(x),m=()=>y(null);return x.addEventListener("load",h),x.addEventListener("error",m),x.src=l,()=>{x.removeEventListener("load",h),x.removeEventListener("error",m)}},[l]),d}var Tu="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\Screenshots\\index.tsx";function S_({url:l,width:d,height:y,lang:x,className:h,...m}){const s=x_(l),S=R.exports.useRef(null),z=R.exports.useRef({}),[k,T]=R.exports.useState({index:-1,stack:[]}),[D,N]=R.exports.useState(null),[E,L]=R.exports.useState("move"),[te,G]=R.exports.useState(void 0),re={url:l,width:d,height:y,image:s,lang:{...eb,...x},emiterRef:z,canvasContextRef:S,history:k,bounds:D,cursor:E,operation:te},X=R.exports.useCallback((K,...pe)=>{const Ce=m[K];typeof Ce=="function"&&Ce(...pe)},[m]),W={call:X,setHistory:T,setBounds:N,setCursor:L,setOperation:G},H=["screenshots"];h&&H.push(h);const _=()=>{z.current={},T({index:-1,stack:[]}),N(null),L("move"),G(void 0)},Y=R.exports.useCallback(async K=>{if(!(K.button!==0||!s))if(D&&S.current)Us({image:s,width:d,height:y,history:k,bounds:D}).then(pe=>{X("onOk",pe,D),_()});else{const pe={x:0,y:0,width:d,height:y};Us({image:s,width:d,height:y,history:k,bounds:pe}).then(Ce=>{X("onOk",Ce,pe),_()})}},[s,k,D,d,y,X]),q=R.exports.useCallback(K=>{K.button===2&&(K.preventDefault(),X("onCancel"),_())},[X]);return R.exports.useLayoutEffect(()=>{_()},[l]),ue.exports.jsxDEV(pp.Provider,{value:{store:re,dispatcher:W},children:ue.exports.jsxDEV("div",{className:H.join(" "),style:{width:d,height:y},onDoubleClick:Y,onContextMenu:q,children:[ue.exports.jsxDEV(U0,{},void 0,!1,{fileName:Tu,lineNumber:149,columnNumber:9},this),ue.exports.jsxDEV(B0,{ref:S},void 0,!1,{fileName:Tu,lineNumber:150,columnNumber:9},this),ue.exports.jsxDEV(b_,{},void 0,!1,{fileName:Tu,lineNumber:151,columnNumber:9},this)]},void 0,!0,{fileName:Tu,lineNumber:143,columnNumber:7},this)},void 0,!1,{fileName:Tu,lineNumber:142,columnNumber:5},this)}var Ig="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\electron\\app.tsx";function C_(){const[l,d]=R.exports.useState(void 0),[y,x]=R.exports.useState(window.innerWidth),[h,m]=R.exports.useState(window.innerHeight),[s,S]=R.exports.useState(void 0),[z,k]=R.exports.useState(void 0),T=R.exports.useCallback(async(E,L)=>{!s||!E||window.screenshots.save(await E.arrayBuffer(),{bounds:L,display:s})},[s]),D=R.exports.useCallback(()=>{window.screenshots.cancel()},[]),N=R.exports.useCallback(async(E,L)=>{!s||!E||window.screenshots.ok(await E.arrayBuffer(),{bounds:L,display:s})},[s]);return R.exports.useEffect(()=>{const E=G=>{k(G)},L=(G,re)=>{S(G),d(re)},te=()=>{d(void 0),S(void 0),requestAnimationFrame(()=>window.screenshots.reset())};return window.screenshots.on("setLang",E),window.screenshots.on("capture",L),window.screenshots.on("reset",te),window.screenshots.ready(),()=>{window.screenshots.off("capture",L),window.screenshots.off("setLang",E),window.screenshots.off("reset",te)}},[]),R.exports.useEffect(()=>{const E=()=>{x(window.innerWidth),m(window.innerHeight)};return window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E)}},[D]),ue.exports.jsxDEV("div",{className:"body",children:ue.exports.jsxDEV(S_,{url:l,width:y,height:h,lang:z,onSave:T,onCancel:D,onOk:N},void 0,!1,{fileName:Ig,lineNumber:89,columnNumber:7},this)},void 0,!1,{fileName:Ig,lineNumber:88,columnNumber:5},this)}var qg="C:\\Users\\nashaofu\\Documents\\Github\\screenshots\\packages\\react-screenshots\\src\\electron\\index.tsx";N0.render(ue.exports.jsxDEV(R.exports.StrictMode,{children:ue.exports.jsxDEV(C_,{},void 0,!1,{fileName:qg,lineNumber:7,columnNumber:5},globalThis)},void 0,!1,{fileName:qg,lineNumber:6,columnNumber:3},globalThis),document.getElementById("app"));
|