-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
2 lines (2 loc) · 329 KB
/
main.js
1
2
/*! For license information please see main.js.LICENSE.txt */
(()=>{var e={361:e=>{function t(e){if(0===e.length)throw new Error("Probability vector is empty.");const t=e.reduce(((e,t)=>e+t),1e-10*e.length);for(let n=0;n<e.length;n++)e[n]=(e[n]+1e-10)/t}function n(e,n,r,o){if(0===e.length)throw new Error("Probability vector is empty.");const a=[],i=e.map((e=>Math.pow(e,n)));t(i);const l=Array.from(Array(i.length).keys());l.sort(((e,t)=>i[t]-i[e]));let s=0;const u=[];for(const e of l){if(u.length>=r)break;if(s>=o)break;a.push(e),u.push(i[e]),s+=i[e]}return t(u),[u,a]}function r(e){if(!Array.isArray(e)||0===e.length)throw new Error("Probability vector is empty.");t(e);const n=Math.random();let r=0;for(let t=0;t<e.length;t++)if(r+=e[t],n<r)return t;return e.length-1}e.exports={normalize:t,scaleFilterNormalize:n,probabilisticSample:function(e,t=1.5,o=10,a=.9){const[i,l]=n(e,t,o,a);if(0===l.length)throw new Error("No valid indices after filtering, cannot sample.");return l[r(i)]},sample:r}},557:(e,t,n)=>{"use strict";!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=n(540),r=n(982),o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,a=!1;function i(e){if(!a){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 l(e){if(!a){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=o.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var a=n.map((function(e){return String(e)}));a.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,a)}var u=10,c=11,d=12,f=13,p=14,h=15,m=17,g=19,v=21,y=22,b=23,w=!1,k=new Set,S={},x={};function C(e,t){T(e,t),T(e+"Capture",t)}function T(e,t){S[e]&&l("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),S[e]=t;var n=e.toLowerCase();x[n]=e,"onDoubleClick"===e&&(x.ondblclick=e);for(var r=0;r<t.length;r++)k.add(t[r])}var E=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),R=Object.prototype.hasOwnProperty;function _(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function P(e){try{return O(e),!1}catch(e){return!0}}function O(e){return""+e}function D(e,t){if(P(e))return l("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,_(e)),O(e)}function L(e){if(P(e))return l("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",_(e)),O(e)}var I=":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",N=I+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",z=new RegExp("^["+I+"]["+N+"]*$"),M={},A={};function U(e){return!!R.call(A,e)||!R.call(M,e)&&(z.test(e)?(A[e]=!0,!0):(M[e]=!0,l("Invalid attribute name: `%s`",e),!1))}function F(e,t,n){return null!==t?0===t.type:!n&&e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])}function j(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var o=e.toLowerCase().slice(0,5);return"data-"!==o&&"aria-"!==o;default:return!1}}function B(e,t,n,r){if(null==t)return!0;if(j(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function W(e){return V.hasOwnProperty(e)?V[e]:null}function H(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var V={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){V[e]=new H(e,0,!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];V[t]=new H(t,1,!1,n,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V[e]=new H(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V[e]=new H(e,2,!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){V[e]=new H(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V[e]=new H(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){V[e]=new H(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){V[e]=new H(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){V[e]=new H(e,5,!1,e.toLowerCase(),null,!1,!1)}));var $=/[\-\:]([a-z])/g,q=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($,q);V[t]=new H(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace($,q);V[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,q);V[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){V[e]=new H(e,1,!1,e.toLowerCase(),null,!1,!1)})),V.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){V[e]=new H(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Y=/^[\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,Q=!1;function K(e){!Q&&Y.test(e)&&(Q=!0,l("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 G(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];D(n,t),r.sanitizeURL&&K(""+n);var o=r.attributeName,a=null;if(4===r.type){if(e.hasAttribute(o)){var i=e.getAttribute(o);return""===i||(B(t,n,r,!1)?i:i===""+n?n:i)}}else if(e.hasAttribute(o)){if(B(t,n,r,!1))return e.getAttribute(o);if(3===r.type)return n;a=e.getAttribute(o)}return B(t,n,r,!1)?null===a?n:a:a===""+n?n:a}function X(e,t,n,r){if(U(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var o=e.getAttribute(t);return D(n,t),o===""+n?n:o}}function J(e,t,n,r){var o=W(t);if(!F(t,o,r))if(B(t,n,o,r)&&(n=null),r||null===o){if(U(t)){var a=t;null===n?e.removeAttribute(a):(D(n,t),e.setAttribute(a,""+n))}}else if(o.mustUseProperty){var i=o.propertyName;if(null===n){var l=o.type;e[i]=3!==l&&""}else e[i]=n}else{var s=o.attributeName,u=o.attributeNamespace;if(null===n)e.removeAttribute(s);else{var c,d=o.type;3===d||4===d&&!0===n?c="":(D(n,s),c=""+n,o.sanitizeURL&&K(c.toString())),u?e.setAttributeNS(u,s,c):e.setAttribute(s,c)}}}var Z=Symbol.for("react.element"),ee=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),ne=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),oe=Symbol.for("react.provider"),ae=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),de=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),fe=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function pe(e){if(null===e||"object"!=typeof e)return null;var t=fe&&e[fe]||e["@@iterator"];return"function"==typeof t?t:null}var he,me,ge,ve,ye,be,we,ke=Object.assign,Se=0;function xe(){}xe.__reactDisabledLog=!0;var Ce,Te=o.ReactCurrentDispatcher;function Ee(e,t,n){if(void 0===Ce)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Ce=r&&r[1]||""}return"\n"+Ce+e}var Re,_e=!1,Pe="function"==typeof WeakMap?WeakMap:Map;function Oe(e,t){if(!e||_e)return"";var n,r=Re.get(e);if(void 0!==r)return r;_e=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Te.current,Te.current=null,function(){if(0===Se){he=console.log,me=console.info,ge=console.warn,ve=console.error,ye=console.group,be=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Se++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),u=n.stack.split("\n"),c=s.length-1,d=u.length-1;c>=1&&d>=0&&s[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(s[c]!==u[d]){if(1!==c||1!==d)do{if(c--,--d<0||s[c]!==u[d]){var f="\n"+s[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Re.set(e,f),f}}while(c>=1&&d>=0);break}}}finally{_e=!1,Te.current=o,function(){if(0==--Se){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},e,{value:he}),info:ke({},e,{value:me}),warn:ke({},e,{value:ge}),error:ke({},e,{value:ve}),group:ke({},e,{value:ye}),groupCollapsed:ke({},e,{value:be}),groupEnd:ke({},e,{value:we})})}Se<0&&l("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=e?e.displayName||e.name:"",h=p?Ee(p):"";return"function"==typeof e&&Re.set(e,h),h}function De(e,t,n){return Oe(e,!1)}function Le(e,t,n){if(null==e)return"";if("function"==typeof e)return Oe(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return Ee(e);switch(e){case le:return Ee("Suspense");case se:return Ee("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ie:return De(e.render);case ue:return Le(e.type,t,n);case ce:var o=e,a=o._payload,i=o._init;try{return Le(i(a),t,n)}catch(e){}}return""}function Ie(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return Ee(e.type);case 16:return Ee("Lazy");case f:return Ee("Suspense");case g:return Ee("SuspenseList");case 0:case 2:case h:return De(e.type);case c:return De(e.type.render);case 1:return Oe(e.type,!0);default:return""}}function Ne(e){try{var t="",n=e;do{t+=Ie(n),n=n.return}while(n);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}function ze(e){return e.displayName||"Context"}function Me(e){if(null==e)return null;if("number"==typeof e.tag&&l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case te:return"Fragment";case ee:return"Portal";case re:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return ze(e)+".Consumer";case oe:return ze(e._context)+".Provider";case ie:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case ue:var t=e.displayName||null;return null!==t?t:Me(e.type)||"Memo";case ce:var n=e,r=n._payload,o=n._init;try{return Me(o(r))}catch(e){return null}}return null}function Ae(e){return e.displayName||"Context"}function Ue(e){var t,n,r,o,a=e.tag,i=e.type;switch(a){case 24:return"Cache";case 9:return Ae(i)+".Consumer";case u:return Ae(i._context)+".Provider";case 18:return"DehydratedFragment";case c:return t=i,r="ForwardRef",o=(n=i.render).displayName||n.name||"",t.displayName||(""!==o?r+"("+o+")":r);case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Me(i);case 8:return i===ne?"StrictMode":"Mode";case y:return"Offscreen";case d:return"Profiler";case v:return"Scope";case f:return"Suspense";case g:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case m:case 2:case p:case h:if("function"==typeof i)return i.displayName||i.name||null;if("string"==typeof i)return i}return null}Re=new Pe;var Fe=o.ReactDebugCurrentFrame,je=null,Be=!1;function We(){if(null===je)return null;var e=je._debugOwner;return null!=e?Ue(e):null}function He(){return null===je?"":Ne(je)}function Ve(){Fe.getCurrentStack=null,je=null,Be=!1}function $e(e){Fe.getCurrentStack=null===e?null:He,je=e,Be=!1}function qe(e){Be=e}function Ye(e){return""+e}function Qe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return L(e),e;default:return""}}var Ke={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ge(e,t){Ke[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||l("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||null==t.checked||l("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 Xe(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function Je(e){return e._valueTracker}function Ze(e){Je(e)||(e._valueTracker=function(e){var t=Xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);L(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){L(e),r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var i={getValue:function(){return r},setValue:function(e){L(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return i}}(e))}function et(e){if(!e)return!1;var t=Je(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=Xe(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function tt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var nt=!1,rt=!1,ot=!1,at=!1;function it(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function lt(e,t){var n=e,r=t.checked;return ke({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function st(e,t){Ge(0,t),void 0===t.checked||void 0===t.defaultChecked||rt||(l("%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",We()||"A component",t.type),rt=!0),void 0===t.value||void 0===t.defaultValue||nt||(l("%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",We()||"A component",t.type),nt=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Qe(null!=t.value?t.value:r),controlled:it(t)}}function ut(e,t){var n=e,r=t.checked;null!=r&&J(n,"checked",r,!1)}function ct(e,t){var n=e,r=it(t);n._wrapperState.controlled||!r||at||(l("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"),at=!0),!n._wrapperState.controlled||r||ot||(l("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"),ot=!0),ut(e,t);var o=Qe(t.value),a=t.type;if(null!=o)"number"===a?(0===o&&""===n.value||n.value!=o)&&(n.value=Ye(o)):n.value!==Ye(o)&&(n.value=Ye(o));else if("submit"===a||"reset"===a)return void n.removeAttribute("value");t.hasOwnProperty("value")?ft(n,t.type,o):t.hasOwnProperty("defaultValue")&&ft(n,t.type,Qe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function dt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;var a=Ye(r._wrapperState.initialValue);n||a!==r.value&&(r.value=a),r.defaultValue=a}var i=r.name;""!==i&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==i&&(r.name=i)}function ft(e,t,n){"number"===t&&tt(e.ownerDocument)===e||(null==n?e.defaultValue=Ye(e._wrapperState.initialValue):e.defaultValue!==Ye(n)&&(e.defaultValue=Ye(n)))}var pt=!1,ht=!1,mt=!1;function gt(t,n){null==n.value&&("object"==typeof n.children&&null!==n.children?e.Children.forEach(n.children,(function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(ht||(ht=!0,l("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))})):null!=n.dangerouslySetInnerHTML&&(mt||(mt=!0,l("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||pt||(l("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),pt=!0)}var vt,yt=Array.isArray;function bt(e){return yt(e)}function wt(){var e=We();return e?"\n\nCheck the render method of `"+e+"`.":""}vt=!1;var kt=["value","defaultValue"];function St(e,t,n,r){var o=e.options;if(t){for(var a=n,i={},l=0;l<a.length;l++)i["$"+a[l]]=!0;for(var s=0;s<o.length;s++){var u=i.hasOwnProperty("$"+o[s].value);o[s].selected!==u&&(o[s].selected=u),u&&r&&(o[s].defaultSelected=!0)}}else{for(var c=Ye(Qe(n)),d=null,f=0;f<o.length;f++){if(o[f].value===c)return o[f].selected=!0,void(r&&(o[f].defaultSelected=!0));null!==d||o[f].disabled||(d=o[f])}null!==d&&(d.selected=!0)}}function xt(e,t){return ke({},t,{value:void 0})}function Ct(e,t){var n=e;!function(e){Ge(0,e);for(var t=0;t<kt.length;t++){var n=kt[t];if(null!=e[n]){var r=bt(e[n]);e.multiple&&!r?l("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,wt()):!e.multiple&&r&&l("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,wt())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||vt||(l("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"),vt=!0)}var Tt=!1;function Et(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return ke({},t,{value:void 0,defaultValue:void 0,children:Ye(n._wrapperState.initialValue)})}function Rt(e,t){var n=e;Ge(0,t),void 0===t.value||void 0===t.defaultValue||Tt||(l("%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",We()||"A component"),Tt=!0);var r=t.value;if(null==r){var o=t.children,a=t.defaultValue;if(null!=o){if(l("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=a)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(bt(o)){if(o.length>1)throw new Error("<textarea> can only have at most one child.");o=o[0]}a=o}null==a&&(a=""),r=a}n._wrapperState={initialValue:Qe(r)}}function _t(e,t){var n=e,r=Qe(t.value),o=Qe(t.defaultValue);if(null!=r){var a=Ye(r);a!==n.value&&(n.value=a),null==t.defaultValue&&n.defaultValue!==a&&(n.defaultValue=a)}null!=o&&(n.defaultValue=Ye(o))}function Pt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var Ot="http://www.w3.org/1999/xhtml",Dt="http://www.w3.org/2000/svg";function Lt(e){switch(e){case"svg":return Dt;case"math":return"http://www.w3.org/1998/Math/MathML";default:return Ot}}function It(e,t){return null==e||e===Ot?Lt(t):e===Dt&&"foreignObject"===t?Ot:e}var Nt,zt,Mt=(zt=function(e,t){if(e.namespaceURI!==Dt||"innerHTML"in e)e.innerHTML=t;else{(Nt=Nt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Nt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return zt(e,t)}))}:zt),At=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},Ut={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"]},Ft={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},jt=["Webkit","ms","Moz","O"];function Bt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Ft.hasOwnProperty(e)&&Ft[e]?(function(e,t){P(e)&&(l("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,_(e)),O(e))}(t,e),(""+t).trim()):t+"px"}Object.keys(Ft).forEach((function(e){jt.forEach((function(t){Ft[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=Ft[e]}))}));var Wt=/([A-Z])/g,Ht=/^ms-/;function Vt(e){return e.replace(Wt,"-$1").toLowerCase().replace(Ht,"-ms-")}var $t=/^(?:webkit|moz|o)[A-Z]/,qt=/^-ms-/,Yt=/-(.)/g,Qt=/;\s*$/,Kt={},Gt={},Xt=!1,Jt=!1,Zt=function(e,t){e.indexOf("-")>-1?function(e){Kt.hasOwnProperty(e)&&Kt[e]||(Kt[e]=!0,l("Unsupported style property %s. Did you mean %s?",e,e.replace(qt,"ms-").replace(Yt,(function(e,t){return t.toUpperCase()}))))}(e):$t.test(e)?function(e){Kt.hasOwnProperty(e)&&Kt[e]||(Kt[e]=!0,l("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Qt.test(t)&&function(e,t){Gt.hasOwnProperty(t)&&Gt[t]||(Gt[t]=!0,l('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Qt,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e){Xt||(Xt=!0,l("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e){Jt||(Jt=!0,l("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function en(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o){var a=0===r.indexOf("--");t+=n+(a?r:Vt(r))+":",t+=Bt(r,o,a),n=";"}}return t||null}function tn(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--");o||Zt(r,t[r]);var a=Bt(r,t[r],o);"float"===r&&(r="cssFloat"),o?n.setProperty(r,a):n[r]=a}}function nn(e){var t={};for(var n in e)for(var r=Ut[n]||[n],o=0;o<r.length;o++)t[r[o]]=n;return t}var rn=ke({menuitem:!0},{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});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&l("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."),null!=t.style&&"object"!=typeof t.style)throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ln={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},sn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},un={},cn=new RegExp("^(aria)-["+N+"]*$"),dn=new RegExp("^(aria)[A-Z]["+N+"]*$");function fn(e,t){if(R.call(un,t)&&un[t])return!0;if(dn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=sn.hasOwnProperty(n)?n:null;if(null==r)return l("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),un[t]=!0,!0;if(t!==r)return l("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),un[t]=!0,!0}if(cn.test(t)){var o=t.toLowerCase(),a=sn.hasOwnProperty(o)?o:null;if(null==a)return un[t]=!0,!1;if(t!==a)return l("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,a),un[t]=!0,!0}return!0}var pn,hn=!1,mn={},gn=/^on./,vn=/^on[^A-Z]/,yn=new RegExp("^(aria)-["+N+"]*$"),bn=new RegExp("^(aria)[A-Z]["+N+"]*$");pn=function(e,t,n,r){if(R.call(mn,t)&&mn[t])return!0;var o=t.toLowerCase();if("onfocusin"===o||"onfocusout"===o)return l("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."),mn[t]=!0,!0;if(null!=r){var a=r.registrationNameDependencies,i=r.possibleRegistrationNames;if(a.hasOwnProperty(t))return!0;var s=i.hasOwnProperty(o)?i[o]:null;if(null!=s)return l("Invalid event handler property `%s`. Did you mean `%s`?",t,s),mn[t]=!0,!0;if(gn.test(t))return l("Unknown event handler property `%s`. It will be ignored.",t),mn[t]=!0,!0}else if(gn.test(t))return vn.test(t)&&l("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),mn[t]=!0,!0;if(yn.test(t)||bn.test(t))return!0;if("innerhtml"===o)return l("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mn[t]=!0,!0;if("aria"===o)return l("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mn[t]=!0,!0;if("is"===o&&null!=n&&"string"!=typeof n)return l("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),mn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return l("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),mn[t]=!0,!0;var u=W(t),c=null!==u&&0===u.type;if(ln.hasOwnProperty(o)){var d=ln[o];if(d!==t)return l("Invalid DOM property `%s`. Did you mean `%s`?",t,d),mn[t]=!0,!0}else if(!c&&t!==o)return l("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,o),mn[t]=!0,!0;return"boolean"==typeof n&&j(t,n,u,!1)?(n?l('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):l('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),mn[t]=!0,!0):!!c||(j(t,n,u,!1)?(mn[t]=!0,!1):("false"!==n&&"true"!==n||null===u||3!==u.type||(l("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"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),mn[t]=!0),!0))};var wn=null;function kn(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var Sn=null,xn=null,Cn=null;function Tn(e){var t=mu(e);if(t){if("function"!=typeof Sn)throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var r=vu(n);Sn(t.stateNode,t.type,r)}}}function En(e){xn?Cn?Cn.push(e):Cn=[e]:xn=e}function Rn(){if(xn){var e=xn,t=Cn;if(xn=null,Cn=null,Tn(e),t)for(var n=0;n<t.length;n++)Tn(t[n])}}var _n=function(e,t){return e(t)},Pn=function(){},On=!1;function Dn(e,t,n){if(On)return e(t,n);On=!0;try{return _n(e,t,n)}finally{On=!1,(null!==xn||null!==Cn)&&(Pn(),Rn())}}function Ln(e,t){var n=e.stateNode;if(null===n)return null;var r=vu(n);if(null===r)return null;var o=r[t];if(function(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||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(o&&"function"!=typeof o)throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}var In=!1;if(E)try{var Nn={};Object.defineProperty(Nn,"passive",{get:function(){In=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch(e){In=!1}function zn(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Mn=zn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var An=document.createElement("react");Mn=function(e,t,n,r,o,a,i,l,s){if("undefined"==typeof document||null===document)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var u=document.createEvent("Event"),c=!1,d=!0,f=window.event,p=Object.getOwnPropertyDescriptor(window,"event");function h(){An.removeEventListener(k,v,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=f)}var m,g=Array.prototype.slice.call(arguments,3);function v(){c=!0,h(),t.apply(n,g),d=!1}var y=!1,b=!1;function w(e){if(m=e.error,y=!0,null===m&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=m&&"object"==typeof m)try{m._suppressLogging=!0}catch(e){}}var k="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",w),An.addEventListener(k,v,!1),u.initEvent(k,!1,!1),An.dispatchEvent(u),p&&Object.defineProperty(window,"event",p),c&&d&&(y?b&&(m=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.")):m=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(m)),window.removeEventListener("error",w),!c)return h(),zn.apply(this,arguments)}}var Un=Mn,Fn=!1,jn=null,Bn=!1,Wn=null,Hn={onError:function(e){Fn=!0,jn=e}};function Vn(e,t,n,r,o,a,i,l,s){Fn=!1,jn=null,Un.apply(Hn,arguments)}function $n(){if(Fn){var e=jn;return Fn=!1,jn=null,e}throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function qn(e){return e._reactInternals}var Yn=128,Qn=256,Kn=512,Gn=1024,Xn=2048,Jn=4096,Zn=8192,er=16384,tr=32768,nr=65536,rr=131072,or=1048576,ar=2097152,ir=4194304,lr=16777216,sr=33554432,ur=8772,cr=2064,dr=14680064,fr=o.ReactCurrentOwner;function pr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{4098&(t=r).flags&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function hr(e){if(e.tag===f){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function mr(e){return 3===e.tag?e.stateNode.containerInfo:null}function gr(e){if(pr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function vr(e){var t=e.alternate;if(!t){var n=pr(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){var l=a.return;if(null!==l){r=o=l;continue}break}if(a.child===i.child){for(var s=a.child;s;){if(s===r)return gr(a),e;if(s===o)return gr(a),t;s=s.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==o.return)r=a,o=i;else{for(var u=!1,c=a.child;c;){if(c===r){u=!0,r=a,o=i;break}if(c===o){u=!0,o=a,r=i;break}c=c.sibling}if(!u){for(c=i.child;c;){if(c===r){u=!0,r=i,o=a;break}if(c===o){u=!0,o=i,r=a;break}c=c.sibling}if(!u)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(r.alternate!==o)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function yr(e){var t=vr(e);return null!==t?br(t):null}function br(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=br(t);if(null!==n)return n;t=t.sibling}return null}function wr(e){var t=vr(e);return null!==t?kr(t):null}function kr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=kr(t);if(null!==n)return n}t=t.sibling}return null}var Sr=r.unstable_scheduleCallback,xr=r.unstable_cancelCallback,Cr=r.unstable_shouldYield,Tr=r.unstable_requestPaint,Er=r.unstable_now,Rr=r.unstable_getCurrentPriorityLevel,_r=r.unstable_ImmediatePriority,Pr=r.unstable_UserBlockingPriority,Or=r.unstable_NormalPriority,Dr=r.unstable_LowPriority,Lr=r.unstable_IdlePriority,Ir=r.unstable_yieldValue,Nr=r.unstable_setDisableYieldValue,zr=null,Mr=null,Ar=null,Ur=!1,Fr="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function jr(e){if("function"==typeof Ir&&(Nr(e),a=e),Mr&&"function"==typeof Mr.setStrictMode)try{Mr.setStrictMode(zr,e)}catch(e){Ur||(Ur=!0,l("React instrumentation encountered an error: %s",e))}}function Br(e){Ar=e}function Wr(){for(var e=new Map,t=1,n=0;n<ro;n++){var r=Mo(t);e.set(t,r),t*=2}return e}function Hr(){null!==Ar&&"function"==typeof Ar.markCommitStopped&&Ar.markCommitStopped()}function Vr(e){null!==Ar&&"function"==typeof Ar.markComponentRenderStarted&&Ar.markComponentRenderStarted(e)}function $r(){null!==Ar&&"function"==typeof Ar.markComponentRenderStopped&&Ar.markComponentRenderStopped()}function qr(e){null!==Ar&&"function"==typeof Ar.markComponentLayoutEffectMountStarted&&Ar.markComponentLayoutEffectMountStarted(e)}function Yr(e){null!==Ar&&"function"==typeof Ar.markComponentLayoutEffectUnmountStarted&&Ar.markComponentLayoutEffectUnmountStarted(e)}function Qr(){null!==Ar&&"function"==typeof Ar.markComponentLayoutEffectUnmountStopped&&Ar.markComponentLayoutEffectUnmountStopped()}function Kr(e,t,n){null!==Ar&&"function"==typeof Ar.markComponentErrored&&Ar.markComponentErrored(e,t,n)}function Gr(e){null!==Ar&&"function"==typeof Ar.markRenderStarted&&Ar.markRenderStarted(e)}function Xr(){null!==Ar&&"function"==typeof Ar.markRenderStopped&&Ar.markRenderStopped()}function Jr(e,t){null!==Ar&&"function"==typeof Ar.markStateUpdateScheduled&&Ar.markStateUpdateScheduled(e,t)}var Zr=16,eo=Math.clz32?Math.clz32:function(e){var t=e>>>0;return 0===t?32:31-(to(t)/no|0)|0},to=Math.log,no=Math.LN2,ro=31,oo=1,ao=2,io=4,lo=8,so=16,uo=32,co=4194240,fo=1024,po=2048,ho=4096,mo=8192,go=16384,vo=32768,yo=65536,bo=131072,wo=262144,ko=524288,So=1048576,xo=2097152,Co=130023424,To=4194304,Eo=8388608,Ro=16777216,_o=33554432,Po=67108864,Oo=To,Do=134217728,Lo=268435455,Io=268435456,No=536870912,zo=1073741824;function Mo(e){return e&oo?"Sync":e&ao?"InputContinuousHydration":e&io?"InputContinuous":e&lo?"DefaultHydration":e&so?"Default":e&uo?"TransitionHydration":e&co?"Transition":e&Co?"Retry":e&Do?"SelectiveHydration":e&Io?"IdleHydration":e&No?"Idle":e&zo?"Offscreen":void 0}var Ao=-1,Uo=64,Fo=To;function jo(e){switch(Ko(e)){case oo:return oo;case ao:return ao;case io:return io;case lo:return lo;case so:return so;case uo:return uo;case 64:case 128:case 256:case 512:case fo:case po:case ho:case mo:case go:case vo:case yo:case bo:case wo:case ko:case So:case xo:return e&co;case To:case Eo:case Ro:case _o:case Po:return e&Co;case Do:return Do;case Io:return Io;case No:return No;case zo:return zo;default:return l("Should have found matching lanes. This is a bug in React."),e}}function Bo(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=n&Lo;if(0!==i){var l=i&~o;if(0!==l)r=jo(l);else{var s=i&a;0!==s&&(r=jo(s))}}else{var u=n&~o;0!==u?r=jo(u):0!==a&&(r=jo(a))}if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)){var c=Ko(r),d=Ko(t);if(c>=d||c===so&&d&co)return t}r&io&&(r|=n&so);var f=e.entangledLanes;if(0!==f)for(var p=e.entanglements,h=r&f;h>0;){var m=Xo(h),g=1<<m;r|=p[m],h&=~g}return r}function Wo(e,t){switch(e){case oo:case ao:case io:return t+250;case lo:case so:case uo:case 64:case 128:case 256:case 512:case fo:case po:case ho:case mo:case go:case vo:case yo:case bo:case wo:case ko:case So:case xo:return t+5e3;case To:case Eo:case Ro:case _o:case Po:case Do:case Io:case No:case zo:return Ao;default:return l("Should have found matching lanes. This is a bug in React."),Ao}}function Ho(e){var t=e.pendingLanes&~zo;return 0!==t?t:t&zo?zo:0}function Vo(e){return!!(e&Lo)}function $o(e){return(e&Co)===e}function qo(e,t){return!!(t&(ao|io|lo|so))}function Yo(e){return!!(e&co)}function Qo(){var e=Uo;return(Uo<<=1)&co||(Uo=64),e}function Ko(e){return e&-e}function Go(e){return Ko(e)}function Xo(e){return 31-eo(e)}function Jo(e){return Xo(e)}function Zo(e,t){return!!(e&t)}function ea(e,t){return(e&t)===t}function ta(e,t){return e|t}function na(e,t){return e&~t}function ra(e,t){return e&t}function oa(e){for(var t=[],n=0;n<ro;n++)t.push(e);return t}function aa(e,t,n){e.pendingLanes|=t,t!==No&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[Jo(t)]=n}function ia(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function la(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,o=n;o;){var a=Xo(o),i=1<<a;i&t|r[a]&t&&(r[a]|=t),o&=~i}}function sa(e,t,n){if(Fr)for(var r=e.pendingUpdatersLaneMap;n>0;){var o=Jo(n),a=1<<o;r[o].add(t),n&=~a}}function ua(e,t){if(Fr)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var o=Jo(t),a=1<<o,i=n[o];i.size>0&&(i.forEach((function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)})),i.clear()),t&=~a}}var ca,da,fa,pa,ha,ma=oo,ga=io,va=so,ya=No,ba=0;function wa(){return ba}function ka(e){ba=e}function Sa(e,t){return 0!==e&&e<t}function xa(e){var t=Ko(e);return Sa(ma,t)?Sa(ga,t)?Vo(t)?va:ya:ga:ma}function Ca(e){return e.current.memoizedState.isDehydrated}function Ta(e){ca(e)}var Ea=!1,Ra=[],_a=null,Pa=null,Oa=null,Da=new Map,La=new Map,Ia=[],Na=["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 za(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Da.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;La.delete(r)}}function Ma(e,t,n,r,o,a){if(null===e||e.nativeEvent!==a){var i=function(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]}}(t,n,r,o,a);if(null!==t){var l=mu(t);null!==l&&da(l)}return i}e.eventSystemFlags|=r;var s=e.targetContainers;return null!==o&&-1===s.indexOf(o)&&s.push(o),e}function Aa(e){var t=hu(e.target);if(null!==t){var n=pr(t);if(null!==n){var r=n.tag;if(r===f){var o=hr(n);if(null!==o)return e.blockedOn=o,void ha(e.priority,(function(){fa(n)}))}else if(3===r&&Ca(n.stateNode))return void(e.blockedOn=mr(n))}}e.blockedOn=null}function Ua(e){if(null!==e.blockedOn)return!1;for(var t,n=e.targetContainers;n.length>0;){n[0];var r=Ga(e.domEventName,e.eventSystemFlags,0,e.nativeEvent);if(null!==r){var o=mu(r);return null!==o&&da(o),e.blockedOn=r,!1}var a=e.nativeEvent,i=new a.constructor(a.type,a);t=i,null!==wn&&l("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),wn=t,a.target.dispatchEvent(i),null===wn&&l("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),wn=null,n.shift()}return!0}function Fa(e,t,n){Ua(e)&&n.delete(t)}function ja(){Ea=!1,null!==_a&&Ua(_a)&&(_a=null),null!==Pa&&Ua(Pa)&&(Pa=null),null!==Oa&&Ua(Oa)&&(Oa=null),Da.forEach(Fa),La.forEach(Fa)}function Ba(e,t){e.blockedOn===t&&(e.blockedOn=null,Ea||(Ea=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ja)))}function Wa(e){if(Ra.length>0){Ba(Ra[0],e);for(var t=1;t<Ra.length;t++){var n=Ra[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==_a&&Ba(_a,e),null!==Pa&&Ba(Pa,e),null!==Oa&&Ba(Oa,e);var r=function(t){return Ba(t,e)};Da.forEach(r),La.forEach(r);for(var o=0;o<Ia.length;o++){var a=Ia[o];a.blockedOn===e&&(a.blockedOn=null)}for(;Ia.length>0;){var i=Ia[0];if(null!==i.blockedOn)break;Aa(i),null===i.blockedOn&&Ia.shift()}}var Ha=o.ReactCurrentBatchConfig,Va=!0;function $a(e){Va=!!e}function qa(e,t,n,r){var o=wa(),a=Ha.transition;Ha.transition=null;try{ka(ma),Qa(e,t,n,r)}finally{ka(o),Ha.transition=a}}function Ya(e,t,n,r){var o=wa(),a=Ha.transition;Ha.transition=null;try{ka(ga),Qa(e,t,n,r)}finally{ka(o),Ha.transition=a}}function Qa(e,t,n,r){Va&&function(e,t,n,r){var o=Ga(0,0,0,r);if(null===o)return Kl(e,t,r,Ka,n),void za(e,r);if(function(e,t,n,r,o){switch(t){case"focusin":return _a=Ma(_a,e,t,n,r,o),!0;case"dragenter":return Pa=Ma(Pa,e,t,n,r,o),!0;case"mouseover":return Oa=Ma(Oa,e,t,n,r,o),!0;case"pointerover":var a=o,i=a.pointerId;return Da.set(i,Ma(Da.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":var l=o,s=l.pointerId;return La.set(s,Ma(La.get(s)||null,e,t,n,r,l)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(za(e,r),4&t&&(l=e,Na.indexOf(l)>-1)){for(;null!==o;){var a=mu(o);null!==a&&Ta(a);var i=Ga(0,0,0,r);if(null===i&&Kl(e,t,r,Ka,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else{var l;Kl(e,t,r,null,n)}}(e,t,n,r)}var Ka=null;function Ga(e,t,n,r){Ka=null;var o=hu(kn(r));if(null!==o){var a=pr(o);if(null===a)o=null;else{var i=a.tag;if(i===f){var l=hr(a);if(null!==l)return l;o=null}else if(3===i){if(Ca(a.stateNode))return mr(a);o=null}else a!==o&&(o=null)}}return Ka=o,null}function Xa(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return ma;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ga;case"message":switch(Rr()){case _r:return ma;case Pr:return ga;case Or:case Dr:return va;case Lr:return ya;default:return va}default:return va}}var Ja=null,Za=null,ei=null;function ti(){if(ei)return ei;var e,t,n=Za,r=n.length,o=ni(),a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);var l=t>1?1-t:void 0;return ei=o.slice(e,l)}function ni(){return"value"in Ja?Ja.value:Ja.textContent}function ri(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function oi(){return!0}function ai(){return!1}function ii(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)if(e.hasOwnProperty(i)){var l=e[i];this[i]=l?l(o):o[i]}var s=null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue;return this.isDefaultPrevented=s?oi:ai,this.isPropagationStopped=ai,this}return ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=oi)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=oi)},persist:function(){},isPersistent:oi}),t}var li,si,ui,ci={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},di=ii(ci),fi=ke({},ci,{view:0,detail:0}),pi=ii(fi),hi=ke({},fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ei,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(function(e){e!==ui&&(ui&&"mousemove"===e.type?(li=e.screenX-ui.screenX,si=e.screenY-ui.screenY):(li=0,si=0),ui=e)}(e),li)},movementY:function(e){return"movementY"in e?e.movementY:si}}),mi=ii(hi),gi=ii(ke({},hi,{dataTransfer:0})),vi=ii(ke({},fi,{relatedTarget:0})),yi=ii(ke({},ci,{animationName:0,elapsedTime:0,pseudoElement:0})),bi=ii(ke({},ci,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wi=ii(ke({},ci,{data:0})),ki=wi,Si={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xi={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"},Ci={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ti(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Ci[e];return!!n&&!!t[n]}function Ei(e){return Ti}var Ri=ii(ke({},fi,{key:function(e){if(e.key){var t=Si[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=ri(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?xi[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ei,charCode:function(e){return"keypress"===e.type?ri(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ri(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),_i=ii(ke({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pi=ii(ke({},fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ei})),Oi=ii(ke({},ci,{propertyName:0,elapsedTime:0,pseudoElement:0})),Di=ii(ke({},hi,{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})),Li=[9,13,27,32],Ii=229,Ni=E&&"CompositionEvent"in window,zi=null;E&&"documentMode"in document&&(zi=document.documentMode);var Mi=E&&"TextEvent"in window&&!zi,Ai=E&&(!Ni||zi&&zi>8&&zi<=11),Ui=32,Fi=String.fromCharCode(Ui),ji=!1;function Bi(e,t){switch(e){case"keyup":return-1!==Li.indexOf(t.keyCode);case"keydown":return t.keyCode!==Ii;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wi(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function Hi(e){return"ko"===e.locale}var Vi=!1;function $i(e,t,n,r,o){var a;if(!(a=Mi?function(e,t){switch(e){case"compositionend":return Wi(t);case"keypress":return t.which!==Ui?null:(ji=!0,Fi);case"textInput":var n=t.data;return n===Fi&&ji?null:n;default:return null}}(t,r):function(e,t){if(Vi){if("compositionend"===e||!Ni&&Bi(e,t)){var n=ti();return Ja=null,Za=null,ei=null,Vi=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ai&&!Hi(t)?null:t.data}}(t,r)))return null;var i=Xl(n,"onBeforeInput");if(i.length>0){var l=new ki("onBeforeInput","beforeinput",null,r,o);e.push({event:l,listeners:i}),l.data=a}}var qi={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 Yi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qi[e.type]:"textarea"===t}function Qi(e,t,n,r){En(r);var o=Xl(t,"onChange");if(o.length>0){var a=new di("onChange","change",null,n,r);e.push({event:a,listeners:o})}}var Ki=null,Gi=null;function Xi(e){Wl(e,0)}function Ji(e){if(et(gu(e)))return e}function Zi(e,t){if("change"===e)return t}var el=!1;function tl(){Ki&&(Ki.detachEvent("onpropertychange",nl),Ki=null,Gi=null)}function nl(e){"value"===e.propertyName&&Ji(Gi)&&function(e){var t=[];Qi(t,Gi,e,kn(e)),Dn(Xi,t)}(e)}function rl(e,t,n){"focusin"===e?(tl(),function(e,t){Gi=t,(Ki=e).attachEvent("onpropertychange",nl)}(t,n)):"focusout"===e&&tl()}function ol(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ji(Gi)}function al(e,t){if("click"===e)return Ji(t)}function il(e,t){if("input"===e||"change"===e)return Ji(t)}E&&(el=function(){if(!E)return!1;var e="oninput",t=e in document;if(!t){var n=document.createElement("div");n.setAttribute(e,"return;"),t="function"==typeof n[e]}return t}()&&(!document.documentMode||document.documentMode>9));var ll="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sl(e,t){if(ll(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(!R.call(t,a)||!ll(e[a],t[a]))return!1}return!0}function ul(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cl(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function dl(e,t){for(var n=ul(e),r=0,o=0;n;){if(3===n.nodeType){if(o=r+n.textContent.length,r<=t&&o>=t)return{node:n,offset:t-r};r=o}n=ul(cl(n))}}function fl(e){return e&&3===e.nodeType}function pl(e,t){return!(!e||!t)&&(e===t||!fl(e)&&(fl(t)?pl(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hl(e){return e&&e.ownerDocument&&pl(e.ownerDocument.documentElement,e)}function ml(e){try{return"string"==typeof e.contentWindow.location.href}catch(e){return!1}}function gl(){for(var e=window,t=tt();t instanceof e.HTMLIFrameElement;){if(!ml(t))return t;t=tt((e=t.contentWindow).document)}return t}function vl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function yl(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:function(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var o=r.anchorNode,a=r.anchorOffset,i=r.focusNode,l=r.focusOffset;try{o.nodeType,i.nodeType}catch(e){return null}return function(e,t,n,r,o){var a=0,i=-1,l=-1,s=0,u=0,c=e,d=null;e:for(;;){for(var f=null;c!==t||0!==n&&3!==c.nodeType||(i=a+n),c!==r||0!==o&&3!==c.nodeType||(l=a+o),3===c.nodeType&&(a+=c.nodeValue.length),null!==(f=c.firstChild);)d=c,c=f;for(;;){if(c===e)break e;if(d===t&&++s===n&&(i=a),d===r&&++u===o&&(l=a),null!==(f=c.nextSibling))break;d=(c=d).parentNode}c=f}return-1===i||-1===l?null:{start:i,end:l}}(e,o,a,i,l)}(e))||{start:0,end:0}}var bl=E&&"documentMode"in document&&document.documentMode<=11,wl=null,kl=null,Sl=null,xl=!1;function Cl(e,t,n){var r,o=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!xl&&null!=wl&&wl===tt(o)){var a=function(e){if("selectionStart"in e&&vl(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(wl);if(!Sl||!sl(Sl,a)){Sl=a;var i=Xl(kl,"onSelect");if(i.length>0){var l=new di("onSelect","select",null,t,n);e.push({event:l,listeners:i}),l.target=wl}}}}function Tl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var El={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionend:Tl("Transition","TransitionEnd")},Rl={},_l={};function Pl(e){if(Rl[e])return Rl[e];if(!El[e])return e;var t=El[e];for(var n in t)if(t.hasOwnProperty(n)&&n in _l)return Rl[e]=t[n];return e}E&&(_l=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);var Ol=Pl("animationend"),Dl=Pl("animationiteration"),Ll=Pl("animationstart"),Il=Pl("transitionend"),Nl=new Map,zl=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function Ml(e,t){Nl.set(e,t),C(t,[e])}function Al(e,t,n,r,o,a,i){(function(e,t,n,r,o,a){var i=Nl.get(t);if(void 0!==i){var l=di,s=t;switch(t){case"keypress":if(0===ri(r))return;case"keydown":case"keyup":l=Ri;break;case"focusin":s="focus",l=vi;break;case"focusout":s="blur",l=vi;break;case"beforeblur":case"afterblur":l=vi;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pi;break;case Ol:case Dl:case Ll:l=yi;break;case Il:l=Oi;break;case"scroll":l=pi;break;case"wheel":l=Di;break;case"copy":case"cut":case"paste":l=bi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_i}var u=!!(4&a),c=!u&&"scroll"===t,d=function(e,t,n,r,o){for(var a=r?null!==t?t+"Capture":null:t,i=[],l=e,s=null;null!==l;){var u=l,c=u.stateNode;if(5===u.tag&&null!==c&&(s=c,null!==a)){var d=Ln(l,a);null!=d&&i.push(Gl(l,d,s))}if(o)break;l=l.return}return i}(n,i,r.type,u,c);if(d.length>0){var f=new l(i,s,null,r,o);e.push({event:f,listeners:d})}}})(e,t,n,r,o,a),!(7&a)&&(function(e,t,n,r,o){var a="mouseover"===t||"pointerover"===t,i="mouseout"===t||"pointerout"===t;if(a&&r!==wn){var l=r.relatedTarget||r.fromElement;if(l&&(hu(l)||pu(l)))return}if(i||a){var s,u,c;if(o.window===o)s=o;else{var d=o.ownerDocument;s=d?d.defaultView||d.parentWindow:window}if(i){var f=r.relatedTarget||r.toElement;u=n,null!==(c=f?hu(f):null)&&(c!==pr(c)||5!==c.tag&&6!==c.tag)&&(c=null)}else u=null,c=n;if(u!==c){var p=mi,h="onMouseLeave",m="onMouseEnter",g="mouse";"pointerout"!==t&&"pointerover"!==t||(p=_i,h="onPointerLeave",m="onPointerEnter",g="pointer");var v=null==u?s:gu(u),y=null==c?s:gu(c),b=new p(h,g+"leave",u,r,o);b.target=v,b.relatedTarget=y;var w=null;if(hu(o)===n){var k=new p(m,g+"enter",c,r,o);k.target=y,k.relatedTarget=v,w=k}!function(e,t,n,r,o){var a=r&&o?function(e,t){for(var n=e,r=t,o=0,a=n;a;a=Jl(a))o++;for(var i=0,l=r;l;l=Jl(l))i++;for(;o-i>0;)n=Jl(n),o--;for(;i-o>0;)r=Jl(r),i--;for(var s=o;s--;){if(n===r||null!==r&&n===r.alternate)return n;n=Jl(n),r=Jl(r)}return null}(r,o):null;null!==r&&Zl(e,t,r,a,!1),null!==o&&null!==n&&Zl(e,n,o,a,!0)}(e,b,w,u,c)}}}(e,t,n,r,o),function(e,t,n,r,o){var a,i,l,s,u,c,d=n?gu(n):window;if("select"===(s=(l=d).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type?a=Zi:Yi(d)?el?a=il:(a=ol,i=rl):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(d)&&(a=al),a){var f=a(t,n);if(f)return void Qi(e,f,r,o)}i&&i(t,d,n),"focusout"===t&&(c=(u=d)._wrapperState)&&c.controlled&&"number"===u.type&&ft(u,"number",u.value)}(e,t,n,r,o),function(e,t,n,r,o){var a=n?gu(n):window;switch(t){case"focusin":(Yi(a)||"true"===a.contentEditable)&&(wl=a,kl=n,Sl=null);break;case"focusout":wl=null,kl=null,Sl=null;break;case"mousedown":xl=!0;break;case"contextmenu":case"mouseup":case"dragend":xl=!1,Cl(e,r,o);break;case"selectionchange":if(bl)break;case"keydown":case"keyup":Cl(e,r,o)}}(e,t,n,r,o),function(e,t,n,r,o){(function(e,t,n,r,o){var a,i;if(Ni?a=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):Vi?Bi(t,r)&&(a="onCompositionEnd"):function(e,t){return"keydown"===e&&t.keyCode===Ii}(t,r)&&(a="onCompositionStart"),!a)return null;Ai&&!Hi(r)&&(Vi||"onCompositionStart"!==a?"onCompositionEnd"===a&&Vi&&(i=ti()):Vi=function(e){return Ja=e,Za=ni(),!0}(o));var l=Xl(n,a);if(l.length>0){var s=new wi(a,t,null,r,o);if(e.push({event:s,listeners:l}),i)s.data=i;else{var u=Wi(r);null!==u&&(s.data=u)}}})(e,t,n,r,o),$i(e,t,n,r,o)}(e,t,n,r,o))}!function(){for(var e=0;e<zl.length;e++){var t=zl[e];Ml(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}Ml(Ol,"onAnimationEnd"),Ml(Dl,"onAnimationIteration"),Ml(Ll,"onAnimationStart"),Ml("dblclick","onDoubleClick"),Ml("focusin","onFocus"),Ml("focusout","onBlur"),Ml(Il,"onTransitionEnd")}(),T("onMouseEnter",["mouseout","mouseover"]),T("onMouseLeave",["mouseout","mouseover"]),T("onPointerEnter",["pointerout","pointerover"]),T("onPointerLeave",["pointerout","pointerover"]),C("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),C("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),C("onBeforeInput",["compositionend","keypress","textInput","paste"]),C("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),C("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),C("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var Ul=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Fl=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Ul));function jl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(Vn.apply(this,arguments),Fn){var u=$n();Bn||(Bn=!0,Wn=u)}}(r,t,void 0,e),e.currentTarget=null}function Bl(e,t,n){var r;if(n)for(var o=t.length-1;o>=0;o--){var a=t[o],i=a.instance,l=a.currentTarget,s=a.listener;if(i!==r&&e.isPropagationStopped())return;jl(e,s,l),r=i}else for(var u=0;u<t.length;u++){var c=t[u],d=c.instance,f=c.currentTarget,p=c.listener;if(d!==r&&e.isPropagationStopped())return;jl(e,p,f),r=d}}function Wl(e,t){for(var n=!!(4&t),r=0;r<e.length;r++){var o=e[r];Bl(o.event,o.listeners,n)}!function(){if(Bn){var e=Wn;throw Bn=!1,Wn=null,e}}()}function Hl(e,t){Fl.has(e)||l('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n,r,o=!1,a=(void 0===(r=(n=t)[lu])&&(r=n[lu]=new Set),r),i=function(e){return e+"__bubble"}(e);a.has(i)||(Yl(t,e,2,o),a.add(i))}function Vl(e,t,n){Fl.has(e)&&!t&&l('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),Yl(n,e,r,t)}var $l="_reactListening"+Math.random().toString(36).slice(2);function ql(e){if(!e[$l]){e[$l]=!0,k.forEach((function(t){"selectionchange"!==t&&(Fl.has(t)||Vl(t,!1,e),Vl(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[$l]||(t[$l]=!0,Vl("selectionchange",!1,t)))}}function Yl(e,t,n,r,o){var a=function(e,t,n){var r;switch(Xa(t)){case ma:r=qa;break;case ga:r=Ya;break;default:r=Qa}return r.bind(null,t,n,e)}(e,t,n),i=void 0;In&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0)),r?void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,a):void 0!==i?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,a,i):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,a)}function Ql(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function Kl(e,t,n,r,o){var a=r;if(!(1&t||2&t)){var i=o;if(null!==r){var l=r;e:for(;;){if(null===l)return;var s=l.tag;if(3===s||4===s){var u=l.stateNode.containerInfo;if(Ql(u,i))break;if(4===s)for(var c=l.return;null!==c;){var d=c.tag;if((3===d||4===d)&&Ql(c.stateNode.containerInfo,i))return;c=c.return}for(;null!==u;){var f=hu(u);if(null===f)return;var p=f.tag;if(5===p||6===p){l=a=f;continue e}u=u.parentNode}}l=l.return}}}Dn((function(){return function(e,t,n,r){var o=[];Al(o,e,r,n,kn(n),t),Wl(o,t)}(e,t,n,a)}))}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xl(e,t){for(var n=t+"Capture",r=[],o=e;null!==o;){var a=o,i=a.stateNode;if(5===a.tag&&null!==i){var l=i,s=Ln(o,n);null!=s&&r.unshift(Gl(o,s,l));var u=Ln(o,t);null!=u&&r.push(Gl(o,u,l))}o=o.return}return r}function Jl(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zl(e,t,n,r,o){for(var a=t._reactName,i=[],l=n;null!==l&&l!==r;){var s=l,u=s.alternate,c=s.stateNode,d=s.tag;if(null!==u&&u===r)break;if(5===d&&null!==c){var f=c;if(o){var p=Ln(l,a);null!=p&&i.unshift(Gl(l,p,f))}else if(!o){var h=Ln(l,a);null!=h&&i.push(Gl(l,h,f))}}l=l.return}0!==i.length&&e.push({event:t,listeners:i})}var es,ts,ns,rs,os,as,is,ls=!1,ss="dangerouslySetInnerHTML",us="suppressContentEditableWarning",cs="suppressHydrationWarning",ds="autoFocus",fs="children",ps="style",hs="__html";es={dialog:!0,webview:!0},ts=function(e,t){(function(e,t){an(e,t)||function(e,t){var n=[];for(var r in t)fn(0,r)||n.push(r);var o=n.map((function(e){return"`"+e+"`"})).join(", ");1===n.length?l("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",o,e):n.length>1&&l("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",o,e)}(e,t)})(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||hn||(hn=!0,"select"===e&&t.multiple?l("`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):l("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),function(e,t,n){an(e,t)||function(e,t,n){var r=[];for(var o in t)pn(0,o,t[o],n)||r.push(o);var a=r.map((function(e){return"`"+e+"`"})).join(", ");1===r.length?l("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 ",a,e):r.length>1&&l("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 ",a,e)}(e,t,n)}(e,t,{registrationNameDependencies:S,possibleRegistrationNames:x})},as=E&&!document.documentMode,ns=function(e,t,n){if(!ls){var r=vs(n),o=vs(t);o!==r&&(ls=!0,l("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(o),JSON.stringify(r)))}},rs=function(e){if(!ls){ls=!0;var t=[];e.forEach((function(e){t.push(e)})),l("Extra attributes from the server: %s",t)}},os=function(e,t){!1===t?l("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):l("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},is=function(e,t){var n=e.namespaceURI===Ot?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var ms=/\r\n?/g,gs=/\u0000|\uFFFD/g;function vs(e){return P(t=e)&&(l("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",_(t)),O(t)),("string"==typeof e?e:""+e).replace(ms,"\n").replace(gs,"");var t}function ys(e,t,n,r){var o=vs(t),a=vs(e);if(a!==o&&(r&&(ls||(ls=!0,l('Text content did not match. Server: "%s" Client: "%s"',a,o))),n))throw new Error("Text content does not match server-rendered HTML.")}function bs(e){return 9===e.nodeType?e:e.ownerDocument}function ws(){}function ks(e){e.onclick=ws}function Ss(e,t){ls||(ls=!0,l("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function xs(e,t){ls||(ls=!0,l('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Cs(e,t,n){ls||(ls=!0,l("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function Ts(e,t){""!==t&&(ls||(ls=!0,l('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var Es,Rs,_s=["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"],Ps=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],Os=Ps.concat(["button"]),Ds=["dd","dt","li","option","optgroup","p","rp","rt"],Ls={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Rs=function(e,t){var n=ke({},e||Ls),r={tag:t};return-1!==Ps.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==Os.indexOf(t)&&(n.pTagInButtonScope=null),-1!==_s.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var Is={};Es=function(e,t,n){var r=(n=n||Ls).current,o=r&&r.tag;null!=t&&(null!=e&&l("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var a=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===Ds.indexOf(t);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 null==t}return!0}(e,o)?null:r,i=a?null: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}(e,n),s=a||i;if(s){var u=s.tag,c=!!a+"|"+e+"|"+u;if(!Is[c]){Is[c]=!0;var d=e,f="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",f=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",a){var p="";"table"===u&&"tr"===e&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),l("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,f,p)}else l("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}};var Ns="suppressHydrationWarning",zs="$",Ms="/$",As="$?",Us="$!",Fs=null,js=null;function Bs(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ws="function"==typeof setTimeout?setTimeout:void 0,Hs="function"==typeof clearTimeout?clearTimeout:void 0,Vs="function"==typeof Promise?Promise:void 0,$s="function"==typeof queueMicrotask?queueMicrotask:void 0!==Vs?function(e){return Vs.resolve(null).then(e).catch(qs)}:Ws;function qs(e){setTimeout((function(){throw e}))}function Ys(e){At(e,"")}function Qs(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType){var a=o.data;if(a===Ms){if(0===r)return e.removeChild(o),void Wa(t);r--}else a!==zs&&a!==As&&a!==Us||r++}n=o}while(n);Wa(t)}function Ks(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function Gs(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=Bt("display",r)}function Xs(e,t){e.nodeValue=t}function Js(e){return e.data===As}function Zs(e){return e.data===Us}function eu(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===zs||n===Us||n===As)break;if(n===Ms)return null}}return e}function tu(e){return eu(e.nextSibling)}function nu(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===zs||r===Us||r===As){if(0===n)return t;n--}else r===Ms&&n++}t=t.previousSibling}return null}var ru=Math.random().toString(36).slice(2),ou="__reactFiber$"+ru,au="__reactProps$"+ru,iu="__reactContainer$"+ru,lu="__reactEvents$"+ru,su="__reactListeners$"+ru,uu="__reactHandles$"+ru;function cu(e,t){t[ou]=e}function du(e,t){t[iu]=e}function fu(e){e[iu]=null}function pu(e){return!!e[iu]}function hu(e){var t=e[ou];if(t)return t;for(var n=e.parentNode;n;){if(t=n[iu]||n[ou]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var o=nu(e);null!==o;){var a=o[ou];if(a)return a;o=nu(o)}return t}n=(e=n).parentNode}return null}function mu(e){var t=e[ou]||e[iu];return!t||5!==t.tag&&6!==t.tag&&t.tag!==f&&3!==t.tag?null:t}function gu(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function vu(e){return e[au]||null}function yu(e,t){e[au]=t}var bu={},wu=o.ReactDebugCurrentFrame;function ku(e){if(e){var t=e._owner,n=Le(e.type,e._source,t?t.type:null);wu.setExtraStackFrame(n)}else wu.setExtraStackFrame(null)}function Su(e,t,n,r,o){var a=Function.call.bind(R);for(var i in e)if(a(e,i)){var s=void 0;try{if("function"!=typeof e[i]){var u=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}s=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(ku(o),l("%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,i,typeof s),ku(null)),s instanceof Error&&!(s.message in bu)&&(bu[s.message]=!0,ku(o),l("Failed %s type: %s",n,s.message),ku(null))}}var xu,Cu=[];xu=[];var Tu,Eu=-1;function Ru(e){return{current:e}}function _u(e,t){Eu<0?l("Unexpected pop."):(t!==xu[Eu]&&l("Unexpected Fiber popped."),e.current=Cu[Eu],Cu[Eu]=null,xu[Eu]=null,Eu--)}function Pu(e,t,n){Eu++,Cu[Eu]=e.current,xu[Eu]=n,e.current=t}Tu={};var Ou={};Object.freeze(Ou);var Du=Ru(Ou),Lu=Ru(!1),Iu=Ou;function Nu(e,t,n){return n&&Uu(t)?Iu:Du.current}function zu(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function Mu(e,t){var n=e.type.contextTypes;if(!n)return Ou;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var a in n)o[a]=t[a];return Su(n,o,"context",Ue(e)||"Unknown"),r&&zu(e,t,o),o}function Au(){return Lu.current}function Uu(e){return null!=e.childContextTypes}function Fu(e){_u(Lu,e),_u(Du,e)}function ju(e){_u(Lu,e),_u(Du,e)}function Bu(e,t,n){if(Du.current!==Ou)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Pu(Du,t,e),Pu(Lu,n,e)}function Wu(e,t,n){var r=e.stateNode,o=t.childContextTypes;if("function"!=typeof r.getChildContext){var a=Ue(e)||"Unknown";return Tu[a]||(Tu[a]=!0,l("%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.",a,a)),n}var i=r.getChildContext();for(var s in i)if(!(s in o))throw new Error((Ue(e)||"Unknown")+'.getChildContext(): key "'+s+'" is not defined in childContextTypes.');return Su(o,i,"child context",Ue(e)||"Unknown"),ke({},n,i)}function Hu(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ou;return Iu=Du.current,Pu(Du,n,e),Pu(Lu,Lu.current,e),!0}function Vu(e,t,n){var r=e.stateNode;if(!r)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var o=Wu(e,t,Iu);r.__reactInternalMemoizedMergedChildContext=o,_u(Lu,e),_u(Du,e),Pu(Du,o,e),Pu(Lu,n,e)}else _u(Lu,e),Pu(Lu,n,e)}var $u=null,qu=!1,Yu=!1;function Qu(e){null===$u?$u=[e]:$u.push(e)}function Ku(){qu&&Gu()}function Gu(){if(!Yu&&null!==$u){Yu=!0;var e=0,t=wa();try{var n=$u;for(ka(ma);e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}$u=null,qu=!1}catch(t){throw null!==$u&&($u=$u.slice(e+1)),Sr(_r,Gu),t}finally{ka(t),Yu=!1}}return null}var Xu=[],Ju=0,Zu=null,ec=0,tc=[],nc=0,rc=null,oc=1,ac="";function ic(e,t){dc(),Xu[Ju++]=ec,Xu[Ju++]=Zu,Zu=e,ec=t}function lc(e,t,n){dc(),tc[nc++]=oc,tc[nc++]=ac,tc[nc++]=rc,rc=e;var r=oc,o=ac,a=uc(r)-1,i=r&~(1<<a),l=n+1,s=uc(t)+a;if(s>30){var u=a-a%5,c=(i&(1<<u)-1).toString(32),d=i>>u,f=a-u,p=uc(t)+f;oc=1<<p|l<<f|d,ac=c+o}else oc=1<<s|l<<a|i,ac=o}function sc(e){dc(),null!==e.return&&(ic(e,1),lc(e,1,0))}function uc(e){return 32-eo(e)}function cc(e){for(;e===Zu;)Zu=Xu[--Ju],Xu[Ju]=null,ec=Xu[--Ju],Xu[Ju]=null;for(;e===rc;)rc=tc[--nc],tc[nc]=null,ac=tc[--nc],tc[nc]=null,oc=tc[--nc],tc[nc]=null}function dc(){Dc()||l("Expected to be hydrating. This is a bug in React. Please file an issue.")}var fc=null,pc=null,hc=!1,mc=!1,gc=null;function vc(){mc=!0}function yc(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Ss(e,t):8===t.nodeType||xs(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=!!(1&e.mode);!function(e,t,n,r,o){(o||!0!==t[Ns])&&(1===r.nodeType?Ss(n,r):8===r.nodeType||xs(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case f:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Ss(n,t):8===t.nodeType||xs(n,t))}(r.dehydrated,t)}}function bc(e,t){yc(e,t);var n,r=((n=tb(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var o=e.deletions;null===o?(e.deletions=[r],e.flags|=16):o.push(r)}function wc(e,t){if(!mc)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t){Cs(e,t)}(n,r);break;case 6:!function(e,t){Ts(e,t)}(n,t.pendingProps)}break;case 5:e.type;var o=e.memoizedProps,a=e.stateNode;switch(t.tag){case 5:var i=t.type;t.pendingProps,function(e,t,n,r,o,a){(a||!0!==t[Ns])&&Cs(n,r)}(0,o,a,i,0,!!(1&e.mode));break;case 6:!function(e,t,n,r,o){(o||!0!==t[Ns])&&Ts(n,r)}(0,o,a,t.pendingProps,!!(1&e.mode))}break;case f:var l=e.memoizedState.dehydrated;if(null!==l)switch(t.tag){case 5:var s=t.type;t.pendingProps,function(e,t){var n=e.parentNode;null!==n&&Cs(n,t)}(l,s);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&Ts(n,t)}(l,t.pendingProps)}break;default:return}}function kc(e,t){t.flags=-4097&t.flags|2,wc(e,t)}function Sc(e,t){switch(e.tag){case 5:var n=e.type,r=(e.pendingProps,function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n));return null!==r&&(e.stateNode=r,fc=e,pc=eu(r.firstChild),!0);case 6:var o=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==o&&(e.stateNode=o,fc=e,pc=null,!0);case f:var a=function(e){return 8!==e.nodeType?null:e}(t);if(null!==a){var i={dehydrated:a,treeContext:(dc(),null!==rc?{id:oc,overflow:ac}:null),retryLane:zo};e.memoizedState=i;var l=function(e){var t=tb(18,null,null,0);return t.stateNode=e,t}(a);return l.return=e,e.child=l,fc=e,pc=null,!0}return!1;default:return!1}}function xc(e){return!(!(1&e.mode)||e.flags&Yn)}function Cc(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Tc(e){if(hc){var t=pc;if(!t)return xc(e)&&(wc(fc,e),Cc()),kc(fc,e),hc=!1,void(fc=e);var n=t;if(!Sc(e,t)){xc(e)&&(wc(fc,e),Cc()),t=tu(n);var r=fc;if(!t||!Sc(e,t))return kc(fc,e),hc=!1,void(fc=e);bc(r,n)}}}function Ec(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==f;)t=t.return;fc=t}function Rc(e){if(e!==fc)return!1;if(!hc)return Ec(e),hc=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!Bs(e.type,e.memoizedProps))){var t=pc;if(t)if(xc(e))_c(e),Cc();else for(;t;)bc(e,t),t=tu(t)}var n;return Ec(e),pc=e.tag===f?function(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===Ms){if(0===n)return tu(t);n--}else r!==zs&&r!==Us&&r!==As||n++}t=t.nextSibling}return null}(n)}(e):fc?tu(e.stateNode):null,!0}function _c(e){for(var t=pc;t;)yc(e,t),t=tu(t)}function Pc(){fc=null,pc=null,hc=!1,mc=!1}function Oc(){null!==gc&&(Xv(gc),gc=null)}function Dc(){return hc}function Lc(e){null===gc?gc=[e]:gc.push(e)}var Ic=o.ReactCurrentBatchConfig,Nc={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},zc=function(e){var t=[];return e.forEach((function(e){t.push(e)})),t.sort().join(", ")},Mc=[],Ac=[],Uc=[],Fc=[],jc=[],Bc=[],Wc=new Set;Nc.recordUnsafeLifecycleWarnings=function(e,t){Wc.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Mc.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Ac.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Uc.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&Fc.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&jc.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Bc.push(e))},Nc.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Mc.length>0&&(Mc.forEach((function(t){e.add(Ue(t)||"Component"),Wc.add(t.type)})),Mc=[]);var t=new Set;Ac.length>0&&(Ac.forEach((function(e){t.add(Ue(e)||"Component"),Wc.add(e.type)})),Ac=[]);var n=new Set;Uc.length>0&&(Uc.forEach((function(e){n.add(Ue(e)||"Component"),Wc.add(e.type)})),Uc=[]);var r=new Set;Fc.length>0&&(Fc.forEach((function(e){r.add(Ue(e)||"Component"),Wc.add(e.type)})),Fc=[]);var o=new Set;jc.length>0&&(jc.forEach((function(e){o.add(Ue(e)||"Component"),Wc.add(e.type)})),jc=[]);var a=new Set;Bc.length>0&&(Bc.forEach((function(e){a.add(Ue(e)||"Component"),Wc.add(e.type)})),Bc=[]),t.size>0&&l("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.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",zc(t)),r.size>0&&l("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.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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\n\nPlease update the following components: %s",zc(r)),a.size>0&&l("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.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",zc(a)),e.size>0&&i("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* 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.\n\nPlease update the following components: %s",zc(e)),n.size>0&&i("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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\n* 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.\n\nPlease update the following components: %s",zc(n)),o.size>0&&i("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* 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.\n\nPlease update the following components: %s",zc(o))};var Hc,Vc,$c,qc,Yc,Qc,Kc=new Map,Gc=new Set;function Xc(e,t,n){var r,o,a=n.ref;if(null!==a&&"function"!=typeof a&&"object"!=typeof a){if(e.mode,!(n._owner&&n._self&&n._owner.stateNode!==n._self||n._owner&&1!==n._owner.tag)&&("function"!=typeof n.type||(r=n.type).prototype&&r.prototype.isReactComponent)&&n._owner){var i=Ue(e)||"Component";$c[i]||(l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',i,a),$c[i]=!0)}if(n._owner){var s,u=n._owner;if(u){var c=u;if(1!==c.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");s=c.stateNode}if(!s)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var d=s;P(o=a)&&(l("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.","ref",_(o)),O(o));var f=""+a;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===f)return t.ref;var p=function(e){var t=d.refs;null===e?delete t[f]:t[f]=e};return p._stringRef=f,p}if("string"!=typeof a)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return a}function Jc(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Zc(e){var t=Ue(e)||"Component";Yc[t]||(Yc[t]=!0,l("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 ed(e){var t=e._payload;return(0,e._init)(t)}function td(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(var o=r;null!==o;)t(n,o),o=o.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function o(e,t){var n=rb(e,t);return n.index=0,n.sibling=null,n}function a(t,n,r){if(t.index=r,!e)return t.flags|=or,n;var o=t.alternate;if(null!==o){var a=o.index;return a<n?(t.flags|=2,n):a}return t.flags|=2,n}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){if(null===t||6!==t.tag){var a=ub(n,e.mode,r);return a.return=e,a}var i=o(t,n);return i.return=e,i}function u(e,t,n,r){var a=n.type;if(a===te)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===a||$y(t,n)||"object"==typeof a&&null!==a&&a.$$typeof===ce&&ed(a)===t.type)){var i=o(t,n.props);return i.ref=Xc(e,t,n),i.return=e,i._debugSource=n._source,i._debugOwner=n._owner,i}var l=ib(n,e.mode,r);return l.ref=Xc(e,t,n),l.return=e,l}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var a=cb(n,e.mode,r);return a.return=e,a}var i=o(t,n.children||[]);return i.return=e,i}function d(e,t,n,r,a){if(null===t||7!==t.tag){var i=lb(n,e.mode,r,a);return i.return=e,i}var l=o(t,n);return l.return=e,l}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=ub(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case Z:var o=ib(t,e.mode,n);return o.ref=Xc(e,null,t),o.return=e,o;case ee:var a=cb(t,e.mode,n);return a.return=e,a;case ce:var i=t._payload;return f(e,(0,t._init)(i),n)}if(bt(t)||pe(t)){var l=lb(t,e.mode,n,null);return l.return=e,l}Jc(0,t)}return"function"==typeof t&&Zc(e),null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Z:return n.key===o?u(e,t,n,r):null;case ee:return n.key===o?c(e,t,n,r):null;case ce:var a=n._payload;return p(e,t,(0,n._init)(a),r)}if(bt(n)||pe(n))return null!==o?null:d(e,t,n,r,null);Jc(0,n)}return"function"==typeof n&&Zc(e),null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Z:return u(t,e.get(null===r.key?n:r.key)||null,r,o);case ee:return c(t,e.get(null===r.key?n:r.key)||null,r,o);case ce:var a=r._payload;return h(e,t,n,(0,r._init)(a),o)}if(bt(r)||pe(r))return d(t,e.get(n)||null,r,o,null);Jc(0,r)}return"function"==typeof r&&Zc(t),null}function m(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case Z:case ee:Qc(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}l("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",r);break;case ce:var o=e._payload;m((0,e._init)(o),t,n)}return t}return function s(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===te&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case Z:return i(function(e,r,a,i){for(var l=a.key,s=r;null!==s;){if(s.key===l){var u=a.type;if(u===te){if(7===s.tag){n(e,s.sibling);var c=o(s,a.props.children);return c.return=e,c._debugSource=a._source,c._debugOwner=a._owner,c}}else if(s.elementType===u||$y(s,a)||"object"==typeof u&&null!==u&&u.$$typeof===ce&&ed(u)===s.type){n(e,s.sibling);var d=o(s,a.props);return d.ref=Xc(e,s,a),d.return=e,d._debugSource=a._source,d._debugOwner=a._owner,d}n(e,s);break}t(e,s),s=s.sibling}if(a.type===te){var f=lb(a.props.children,e.mode,i,a.key);return f.return=e,f}var p=ib(a,e.mode,i);return p.ref=Xc(e,r,a),p.return=e,p}(u,c,d,g));case ee:return i(function(e,r,a,i){for(var l=a.key,s=r;null!==s;){if(s.key===l){if(4===s.tag&&s.stateNode.containerInfo===a.containerInfo&&s.stateNode.implementation===a.implementation){n(e,s.sibling);var u=o(s,a.children||[]);return u.return=e,u}n(e,s);break}t(e,s),s=s.sibling}var c=cb(a,e.mode,i);return c.return=e,c}(u,c,d,g));case ce:var v=d._payload;return s(u,c,(0,d._init)(v),g)}if(bt(d))return function(o,i,l,s){for(var u=null,c=0;c<l.length;c++)u=m(l[c],u,o);for(var d=null,g=null,v=i,y=0,b=0,w=null;null!==v&&b<l.length;b++){v.index>b?(w=v,v=null):w=v.sibling;var k=p(o,v,l[b],s);if(null===k){null===v&&(v=w);break}e&&v&&null===k.alternate&&t(o,v),y=a(k,y,b),null===g?d=k:g.sibling=k,g=k,v=w}if(b===l.length)return n(o,v),Dc()&&ic(o,b),d;if(null===v){for(;b<l.length;b++){var S=f(o,l[b],s);null!==S&&(y=a(S,y,b),null===g?d=S:g.sibling=S,g=S)}return Dc()&&ic(o,b),d}for(var x=r(0,v);b<l.length;b++){var C=h(x,o,b,l[b],s);null!==C&&(e&&null!==C.alternate&&x.delete(null===C.key?b:C.key),y=a(C,y,b),null===g?d=C:g.sibling=C,g=C)}return e&&x.forEach((function(e){return t(o,e)})),Dc()&&ic(o,b),d}(u,c,d,g);if(pe(d))return function(o,i,s,u){var c=pe(s);if("function"!=typeof c)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===s[Symbol.toStringTag]&&(Vc||l("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."),Vc=!0),s.entries===c&&(Hc||l("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Hc=!0);var d=c.call(s);if(d)for(var g=null,v=d.next();!v.done;v=d.next())g=m(v.value,g,o);var y=c.call(s);if(null==y)throw new Error("An iterable object provided no iterator.");for(var b=null,w=null,k=i,S=0,x=0,C=null,T=y.next();null!==k&&!T.done;x++,T=y.next()){k.index>x?(C=k,k=null):C=k.sibling;var E=p(o,k,T.value,u);if(null===E){null===k&&(k=C);break}e&&k&&null===E.alternate&&t(o,k),S=a(E,S,x),null===w?b=E:w.sibling=E,w=E,k=C}if(T.done)return n(o,k),Dc()&&ic(o,x),b;if(null===k){for(;!T.done;x++,T=y.next()){var R=f(o,T.value,u);null!==R&&(S=a(R,S,x),null===w?b=R:w.sibling=R,w=R)}return Dc()&&ic(o,x),b}for(var _=r(0,k);!T.done;x++,T=y.next()){var P=h(_,o,x,T.value,u);null!==P&&(e&&null!==P.alternate&&_.delete(null===P.key?x:P.key),S=a(P,S,x),null===w?b=P:w.sibling=P,w=P)}return e&&_.forEach((function(e){return t(o,e)})),Dc()&&ic(o,x),b}(u,c,d,g);Jc(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?i(function(e,t,r,a){if(null!==t&&6===t.tag){n(e,t.sibling);var i=o(t,r);return i.return=e,i}n(e,t);var l=ub(r,e.mode,a);return l.return=e,l}(u,c,""+d,g)):("function"==typeof d&&Zc(u),n(u,c))}}Nc.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Gc.has(e.type)){var r=Kc.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Kc.set(n,r)),r.push(e))}}else l("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.")},Nc.flushLegacyContextWarning=function(){Kc.forEach((function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach((function(e){r.add(Ue(e)||"Component"),Gc.add(e.type)}));var o=zc(r);try{$e(n),l("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)}finally{Ve()}}}))},Nc.discardPendingWarnings=function(){Mc=[],Ac=[],Uc=[],Fc=[],jc=[],Bc=[],Kc=new Map},Hc=!1,Vc=!1,$c={},qc={},Yc={},Qc=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ue(t)||"Component";qc[n]||(qc[n]=!0,l('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var nd=td(!0),rd=td(!1);function od(e,t){for(var n=e.child;null!==n;)ob(n,t),n=n.sibling}var ad,id=Ru(null);ad={};var ld=null,sd=null,ud=null,cd=!1;function dd(){ld=null,sd=null,ud=null,cd=!1}function fd(){cd=!0}function pd(){cd=!1}function hd(e,t,n){Pu(id,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==ad&&l("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ad}function md(e,t){var n=id.current;_u(id,t),e._currentValue=n}function gd(e,t,n){for(var r=e;null!==r;){var o=r.alternate;if(ea(r.childLanes,t)?null===o||ea(o.childLanes,t)||(o.childLanes=ta(o.childLanes,t)):(r.childLanes=ta(r.childLanes,t),null!==o&&(o.childLanes=ta(o.childLanes,t))),r===n)break;r=r.return}r!==n&&l("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function vd(e,t){ld=e,sd=null,ud=null;var n=e.dependencies;null!==n&&null!==n.firstContext&&(Zo(n.lanes,t)&&Tm(),n.firstContext=null)}function yd(e){cd&&l("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(ud===e);else{var n={context:e,memoizedValue:t,next:null};if(null===sd){if(null===ld)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");sd=n,ld.dependencies={lanes:0,firstContext:n}}else sd=sd.next=n}return t}var bd=null;function wd(e){null===bd?bd=[e]:bd.push(e)}function kd(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cd(e,r)}function Sd(e,t){return Cd(e,t)}var xd=Cd;function Cd(e,t){e.lanes=ta(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=ta(n.lanes,t)),null===n&&4098&e.flags&&Oy(e);for(var r=e,o=e.return;null!==o;)o.childLanes=ta(o.childLanes,t),null!==(n=o.alternate)?n.childLanes=ta(n.childLanes,t):4098&o.flags&&Oy(e),r=o,o=o.return;return 3===r.tag?r.stateNode:null}var Td,Ed,Rd=0,_d=2,Pd=!1;function Od(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function Dd(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var o={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=o}}function Ld(e,t){return{eventTime:e,lane:t,tag:Rd,payload:null,callback:null,next:null}}function Id(e,t,n){var r=e.updateQueue;if(null===r)return null;var o=r.shared;if(Ed!==o||Td||(l("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."),Td=!0),(av&Gg)!==Kg){var a=o.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),o.pending=t,xd(e,n)}return function(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,wd(t)):(n.next=o.next,o.next=n),t.interleaved=n,Cd(e,r)}(e,o,t,n)}function Nd(e,t,n){var r=t.updateQueue;if(null!==r){var o=r.shared;if(Yo(n)){var a=o.lanes,i=ta(a=ra(a,e.pendingLanes),n);o.lanes=i,la(e,i)}}}function zd(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var o=r.updateQueue;if(n===o){var a=null,i=null,l=n.firstBaseUpdate;if(null!==l){var s=l;do{var u={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};null===i?a=i=u:(i.next=u,i=u),s=s.next}while(null!==s);null===i?a=i=t:(i.next=t,i=t)}else a=i=t;return n={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}}var c=n.lastBaseUpdate;null===c?n.firstBaseUpdate=t:c.next=t,n.lastBaseUpdate=t}function Md(e,t,n,r,o,a){switch(n.tag){case 1:var i=n.payload;if("function"==typeof i){fd();var l=i.call(a,r,o);if(8&e.mode){jr(!0);try{i.call(a,r,o)}finally{jr(!1)}}return pd(),l}return i;case 3:e.flags=-65537&e.flags|Yn;case Rd:var s,u=n.payload;if("function"==typeof u){if(fd(),s=u.call(a,r,o),8&e.mode){jr(!0);try{u.call(a,r,o)}finally{jr(!1)}}pd()}else s=u;return null==s?r:ke({},r,s);case _d:return Pd=!0,r}return r}function Ad(e,t,n,r){var o=e.updateQueue;Pd=!1,Ed=o.shared;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;if(null!==c){var d=c.updateQueue,f=d.lastBaseUpdate;f!==i&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=s)}}if(null!==a){for(var p=o.baseState,h=0,m=null,g=null,v=null,y=a;;){var b=y.lane,w=y.eventTime;if(ea(r,b)){if(null!==v){var k={eventTime:w,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};v=v.next=k}if(p=Md(e,0,y,p,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var S=o.effects;null===S?o.effects=[y]:S.push(y)}}else{var x={eventTime:w,lane:b,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===v?(g=v=x,m=p):v=v.next=x,h=ta(h,b)}if(null===(y=y.next)){if(null===(l=o.shared.pending))break;var C=l,T=C.next;C.next=null,y=T,o.lastBaseUpdate=C,o.shared.pending=null}}null===v&&(m=p),o.baseState=m,o.firstBaseUpdate=g,o.lastBaseUpdate=v;var E=o.shared.interleaved;if(null!==E){var R=E;do{h=ta(h,R.lane),R=R.next}while(R!==E)}else null===a&&(o.shared.lanes=0);uy(h),e.lanes=h,e.memoizedState=p}Ed=null}function Ud(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Fd(){Pd=!1}function jd(){return Pd}function Bd(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.callback;null!==i&&(a.callback=null,Ud(i,n))}}Td=!1,Ed=null;var Wd={},Hd=Ru(Wd),Vd=Ru(Wd),$d=Ru(Wd);function qd(e){if(e===Wd)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Yd(){return qd($d.current)}function Qd(e,t){Pu($d,t,e),Pu(Vd,e,e),Pu(Hd,Wd,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var o=e.documentElement;n=o?o.namespaceURI:It(null,"");break;default:var a=8===r?e.parentNode:e;n=It(a.namespaceURI||null,t=a.tagName)}var i=t.toLowerCase();return{namespace:n,ancestorInfo:Rs(null,i)}}(t);_u(Hd,e),Pu(Hd,n,e)}function Kd(e){_u(Hd,e),_u(Vd,e),_u($d,e)}function Gd(){return qd(Hd.current)}function Xd(e){qd($d.current);var t,n,r,o=qd(Hd.current),a=(t=o,n=e.type,{namespace:It((r=t).namespace,n),ancestorInfo:Rs(r.ancestorInfo,n)});o!==a&&(Pu(Vd,e,e),Pu(Hd,a,e))}function Jd(e){Vd.current===e&&(_u(Hd,e),_u(Vd,e))}var Zd=Ru(0);function ef(e,t){return!!(e&t)}function tf(e){return 1&e}function nf(e,t){return 1&e|t}function rf(e,t){Pu(Zd,t,e)}function of(e){_u(Zd,e)}function af(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function lf(e){for(var t=e;null!==t;){if(t.tag===f){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||Js(r)||Zs(r))return t}}else if(t.tag===g&&void 0!==t.memoizedProps.revealOrder){if(t.flags&Yn)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sf=[];function uf(){for(var e=0;e<sf.length;e++)sf[e]._workInProgressVersionPrimary=null;sf.length=0}function cf(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var df,ff,pf=o.ReactCurrentDispatcher,hf=o.ReactCurrentBatchConfig;df=new Set;var mf=0,gf=null,vf=null,yf=null,bf=!1,wf=!1,kf=0,Sf=0,xf=null,Cf=null,Tf=-1,Ef=!1;function Rf(){var e=xf;null===Cf?Cf=[e]:Cf.push(e)}function _f(){var e=xf;null!==Cf&&(Tf++,Cf[Tf]!==e&&function(e){var t=Ue(gf);if(!df.has(t)&&(df.add(t),null!==Cf)){for(var n="",r=0;r<=Tf;r++){for(var o=Cf[r],a=r===Tf?e:o,i=r+1+". "+o;i.length<30;)i+=" ";n+=i+=a+"\n"}l("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\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function Pf(e){null==e||bt(e)||l("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",xf,typeof e)}function Of(){throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Df(e,t){if(Ef)return!1;if(null===t)return l("%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.",xf),!1;e.length!==t.length&&l("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",xf,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!ll(e[n],t[n]))return!1;return!0}function Lf(e,t,n,r,o,a){mf=a,gf=t,Cf=null!==e?e._debugHookTypes:null,Tf=-1,Ef=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?pf.current=Ap:pf.current=null!==Cf?Mp:zp;var i=n(r,o);if(wf){var s=0;do{if(wf=!1,kf=0,s>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");s+=1,Ef=!1,vf=null,yf=null,t.updateQueue=null,Tf=-1,pf.current=Up,i=n(r,o)}while(wf)}pf.current=Np,t._debugHookTypes=Cf;var u=null!==vf&&null!==vf.next;if(mf=0,gf=null,vf=null,yf=null,xf=null,Cf=null,Tf=-1,null!==e&&(e.flags&dr)!=(t.flags&dr)&&1&e.mode&&l("Internal React error: Expected static flag was missing. Please notify the React team."),bf=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return i}function If(){var e=0!==kf;return kf=0,e}function Nf(e,t,n){t.updateQueue=e.updateQueue,t.mode&Zr?t.flags&=-50333701:t.flags&=-2053,e.lanes=na(e.lanes,n)}function zf(){if(pf.current=Np,bf){for(var e=gf.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}bf=!1}mf=0,gf=null,vf=null,yf=null,Cf=null,Tf=-1,xf=null,Tp=!1,wf=!1,kf=0}function Mf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yf?gf.memoizedState=yf=e:yf=yf.next=e,yf}function Af(){var e,t;if(null===vf){var n=gf.alternate;e=null!==n?n.memoizedState:null}else e=vf.next;if(null!==(t=null===yf?gf.memoizedState:yf.next))t=(yf=t).next,vf=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(vf=e).memoizedState,baseState:vf.baseState,baseQueue:vf.baseQueue,queue:vf.queue,next:null};null===yf?gf.memoizedState=yf=r:yf=yf.next=r}return yf}function Uf(e,t){return"function"==typeof t?t(e):t}function Ff(e,t,n){var r,o=Mf();r=void 0!==n?n(t):t,o.memoizedState=o.baseState=r;var a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};o.queue=a;var i=a.dispatch=_p.bind(null,gf,a);return[o.memoizedState,i]}function jf(e,t,n){var r=Af(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=vf,i=a.baseQueue,s=o.pending;if(null!==s){if(null!==i){var u=i.next,c=s.next;i.next=c,s.next=u}a.baseQueue!==i&&l("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=i=s,o.pending=null}if(null!==i){var d=i.next,f=a.baseState,p=null,h=null,m=null,g=d;do{var v=g.lane;if(ea(mf,v)){if(null!==m){var y={lane:0,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};m=m.next=y}f=g.hasEagerState?g.eagerState:e(f,g.action)}else{var b={lane:v,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null};null===m?(h=m=b,p=f):m=m.next=b,gf.lanes=ta(gf.lanes,v),uy(v)}g=g.next}while(null!==g&&g!==d);null===m?p=f:m.next=h,ll(f,r.memoizedState)||Tm(),r.memoizedState=f,r.baseState=p,r.baseQueue=m,o.lastRenderedState=f}var w=o.interleaved;if(null!==w){var k=w;do{var S=k.lane;gf.lanes=ta(gf.lanes,S),uy(S),k=k.next}while(k!==w)}else null===i&&(o.lanes=0);var x=o.dispatch;return[r.memoizedState,x]}function Bf(e,t,n){var r=Af(),o=r.queue;if(null===o)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");o.lastRenderedReducer=e;var a=o.dispatch,i=o.pending,l=r.memoizedState;if(null!==i){o.pending=null;var s=i.next,u=s;do{l=e(l,u.action),u=u.next}while(u!==s);ll(l,r.memoizedState)||Tm(),r.memoizedState=l,null===r.baseQueue&&(r.baseState=l),o.lastRenderedState=l}return[l,a]}function Wf(e,t,n){var r,o=gf,a=Mf();if(Dc()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),ff||r!==n()&&(l("The result of getServerSnapshot should be cached to avoid an infinite loop"),ff=!0)}else{if(r=t(),!ff){var i=t();ll(r,i)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),ff=!0)}if(null===Vv())throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qo(0,mf)||Vf(o,t,r)}a.memoizedState=r;var s={value:r,getSnapshot:t};return a.queue=s,rp(qf.bind(null,o,s,e),[e]),o.flags|=Xn,Jf(9,$f.bind(null,o,s,r,t),void 0,null),r}function Hf(e,t,n){var r=gf,o=Af(),a=t();if(!ff){var i=t();ll(a,i)||(l("The result of getSnapshot should be cached to avoid an infinite loop"),ff=!0)}var s=o.memoizedState,u=!ll(s,a);u&&(o.memoizedState=a,Tm());var c=o.queue;if(op(qf.bind(null,r,c,e),[e]),c.getSnapshot!==t||u||null!==yf&&1&yf.memoizedState.tag){if(r.flags|=Xn,Jf(9,$f.bind(null,r,c,a,t),void 0,null),null===Vv())throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");qo(0,mf)||Vf(r,t,a)}return a}function Vf(e,t,n){e.flags|=er;var r={getSnapshot:t,value:n},o=gf.updateQueue;if(null===o)o={lastEffect:null,stores:null},gf.updateQueue=o,o.stores=[r];else{var a=o.stores;null===a?o.stores=[r]:a.push(r)}}function $f(e,t,n,r){t.value=n,t.getSnapshot=r,Yf(t)&&Qf(e)}function qf(e,t,n){return n((function(){Yf(t)&&Qf(e)}))}function Yf(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!ll(n,r)}catch(e){return!0}}function Qf(e){var t=Sd(e,oo);null!==t&&Yv(t,e,oo,Ao)}function Kf(e){var t=Mf();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uf,lastRenderedState:e};t.queue=n;var r=n.dispatch=Pp.bind(null,gf,n);return[t.memoizedState,r]}function Gf(e){return jf(Uf)}function Xf(e){return Bf(Uf)}function Jf(e,t,n,r){var o={tag:e,create:t,destroy:n,deps:r,next:null},a=gf.updateQueue;if(null===a)a={lastEffect:null,stores:null},gf.updateQueue=a,a.lastEffect=o.next=o;else{var i=a.lastEffect;if(null===i)a.lastEffect=o.next=o;else{var l=i.next;i.next=o,o.next=l,a.lastEffect=o}}return o}function Zf(e){var t={current:e};return Mf().memoizedState=t,t}function ep(e){return Af().memoizedState}function tp(e,t,n,r){var o=Mf(),a=void 0===r?null:r;gf.flags|=e,o.memoizedState=Jf(1|t,n,void 0,a)}function np(e,t,n,r){var o=Af(),a=void 0===r?null:r,i=void 0;if(null!==vf){var l=vf.memoizedState;if(i=l.destroy,null!==a&&Df(a,l.deps))return void(o.memoizedState=Jf(t,n,i,a))}gf.flags|=e,o.memoizedState=Jf(1|t,n,i,a)}function rp(e,t){return gf.mode&Zr?tp(41945088,8,e,t):tp(8390656,8,e,t)}function op(e,t){return np(Xn,8,e,t)}function ap(e,t){return tp(4,2,e,t)}function ip(e,t){return np(4,2,e,t)}function lp(e,t){var n=4;return n|=ir,gf.mode&Zr&&(n|=lr),tp(n,4,e,t)}function sp(e,t){return np(4,4,e,t)}function up(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var o=t;o.hasOwnProperty("current")||l("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}");var a=e();return o.current=a,function(){o.current=null}}}function cp(e,t,n){"function"!=typeof t&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,o=4;return o|=ir,gf.mode&Zr&&(o|=lr),tp(o,4,up.bind(null,t,e),r)}function dp(e,t,n){"function"!=typeof t&&l("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return np(4,4,up.bind(null,t,e),r)}var fp=function(e,t){};function pp(e,t){var n=void 0===t?null:t;return Mf().memoizedState=[e,n],e}function hp(e,t){var n=Af(),r=void 0===t?null:t,o=n.memoizedState;return null!==o&&null!==r&&Df(r,o[1])?o[0]:(n.memoizedState=[e,r],e)}function mp(e,t){var n=Mf(),r=void 0===t?null:t,o=e();return n.memoizedState=[o,r],o}function gp(e,t){var n=Af(),r=void 0===t?null:t,o=n.memoizedState;if(null!==o&&null!==r&&Df(r,o[1]))return o[0];var a=e();return n.memoizedState=[a,r],a}function vp(e){return Mf().memoizedState=e,e}function yp(e){return wp(Af(),vf.memoizedState,e)}function bp(e){var t=Af();return null===vf?(t.memoizedState=e,e):wp(t,vf.memoizedState,e)}function wp(e,t,n){if(mf&(oo|io|so)){if(!ll(n,t)){var r=Qo();gf.lanes=ta(gf.lanes,r),uy(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,Tm()),e.memoizedState=n,n}function kp(e,t,n){var r,o,a=wa();ka((o=ga,0!==(r=a)&&r<o?r:o)),e(!0);var l=hf.transition;hf.transition={};var s=hf.transition;hf.transition._updatedFibers=new Set;try{e(!1),t()}finally{ka(a),hf.transition=l,null===l&&s._updatedFibers&&(s._updatedFibers.size>10&&i("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),s._updatedFibers.clear())}}function Sp(){var e=Kf(!1),t=e[0],n=e[1],r=kp.bind(null,n);return Mf().memoizedState=r,[t,r]}function xp(){return[Gf()[0],Af().memoizedState]}function Cp(){return[Xf()[0],Af().memoizedState]}var Tp=!1;function Ep(){var e,t=Mf(),n=Vv().identifierPrefix;if(Dc()){e=":"+n+"R"+function(){var e,t=ac;return(oc&(e=oc,~(1<<uc(e)-1))).toString(32)+t}();var r=kf++;r>0&&(e+="H"+r.toString(32)),e+=":"}else e=":"+n+"r"+(Sf++).toString(32)+":";return t.memoizedState=e,e}function Rp(){return Af().memoizedState}function _p(e,t,n){"function"==typeof arguments[3]&&l("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=qv(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Dp(t,o);else{var a=kd(e,t,o,r);null!==a&&(Yv(a,e,r,$v()),Lp(a,t,r))}Ip(e,r)}function Pp(e,t,n){"function"==typeof arguments[3]&&l("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=qv(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Op(e))Dp(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)){var i=t.lastRenderedReducer;if(null!==i){var s;s=pf.current,pf.current=jp;try{var u=t.lastRenderedState,c=i(u,n);if(o.hasEagerState=!0,o.eagerState=c,ll(c,u))return void function(e,t,n){var r=t.interleaved;null===r?(n.next=n,wd(t)):(n.next=r.next,r.next=n),t.interleaved=n}(0,t,o)}catch(e){}finally{pf.current=s}}}var d=kd(e,t,o,r);null!==d&&(Yv(d,e,r,$v()),Lp(d,t,r))}Ip(e,r)}function Op(e){var t=e.alternate;return e===gf||null!==t&&t===gf}function Dp(e,t){wf=bf=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Lp(e,t,n){if(Yo(n)){var r=t.lanes,o=ta(r=ra(r,e.pendingLanes),n);t.lanes=o,la(e,o)}}function Ip(e,t,n){Jr(e,t)}var Np={readContext:yd,useCallback:Of,useContext:Of,useEffect:Of,useImperativeHandle:Of,useInsertionEffect:Of,useLayoutEffect:Of,useMemo:Of,useReducer:Of,useRef:Of,useState:Of,useDebugValue:Of,useDeferredValue:Of,useTransition:Of,useMutableSource:Of,useSyncExternalStore:Of,useId:Of,unstable_isNewReconciler:w},zp=null,Mp=null,Ap=null,Up=null,Fp=null,jp=null,Bp=null,Wp=function(){l("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().")},Hp=function(){l("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")};zp={readContext:function(e){return yd(e)},useCallback:function(e,t){return xf="useCallback",Rf(),Pf(t),pp(e,t)},useContext:function(e){return xf="useContext",Rf(),yd(e)},useEffect:function(e,t){return xf="useEffect",Rf(),Pf(t),rp(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",Rf(),Pf(n),cp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",Rf(),Pf(t),ap(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",Rf(),Pf(t),lp(e,t)},useMemo:function(e,t){xf="useMemo",Rf(),Pf(t);var n=pf.current;pf.current=Fp;try{return mp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",Rf();var r=pf.current;pf.current=Fp;try{return Ff(e,t,n)}finally{pf.current=r}},useRef:function(e){return xf="useRef",Rf(),Zf(e)},useState:function(e){xf="useState",Rf();var t=pf.current;pf.current=Fp;try{return Kf(e)}finally{pf.current=t}},useDebugValue:function(e,t){xf="useDebugValue",Rf()},useDeferredValue:function(e){return xf="useDeferredValue",Rf(),vp(e)},useTransition:function(){return xf="useTransition",Rf(),Sp()},useMutableSource:function(e,t,n){xf="useMutableSource",Rf()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",Rf(),Wf(e,t,n)},useId:function(){return xf="useId",Rf(),Ep()},unstable_isNewReconciler:w},Mp={readContext:function(e){return yd(e)},useCallback:function(e,t){return xf="useCallback",_f(),pp(e,t)},useContext:function(e){return xf="useContext",_f(),yd(e)},useEffect:function(e,t){return xf="useEffect",_f(),rp(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",_f(),cp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",_f(),ap(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",_f(),lp(e,t)},useMemo:function(e,t){xf="useMemo",_f();var n=pf.current;pf.current=Fp;try{return mp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",_f();var r=pf.current;pf.current=Fp;try{return Ff(e,t,n)}finally{pf.current=r}},useRef:function(e){return xf="useRef",_f(),Zf(e)},useState:function(e){xf="useState",_f();var t=pf.current;pf.current=Fp;try{return Kf(e)}finally{pf.current=t}},useDebugValue:function(e,t){xf="useDebugValue",_f()},useDeferredValue:function(e){return xf="useDeferredValue",_f(),vp(e)},useTransition:function(){return xf="useTransition",_f(),Sp()},useMutableSource:function(e,t,n){xf="useMutableSource",_f()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",_f(),Wf(e,t,n)},useId:function(){return xf="useId",_f(),Ep()},unstable_isNewReconciler:w},Ap={readContext:function(e){return yd(e)},useCallback:function(e,t){return xf="useCallback",_f(),hp(e,t)},useContext:function(e){return xf="useContext",_f(),yd(e)},useEffect:function(e,t){return xf="useEffect",_f(),op(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",_f(),dp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",_f(),ip(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",_f(),sp(e,t)},useMemo:function(e,t){xf="useMemo",_f();var n=pf.current;pf.current=jp;try{return gp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",_f();var r=pf.current;pf.current=jp;try{return jf(e)}finally{pf.current=r}},useRef:function(e){return xf="useRef",_f(),ep()},useState:function(e){xf="useState",_f();var t=pf.current;pf.current=jp;try{return Gf()}finally{pf.current=t}},useDebugValue:function(e,t){return xf="useDebugValue",_f(),fp()},useDeferredValue:function(e){return xf="useDeferredValue",_f(),yp(e)},useTransition:function(){return xf="useTransition",_f(),xp()},useMutableSource:function(e,t,n){xf="useMutableSource",_f()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",_f(),Hf(e,t)},useId:function(){return xf="useId",_f(),Rp()},unstable_isNewReconciler:w},Up={readContext:function(e){return yd(e)},useCallback:function(e,t){return xf="useCallback",_f(),hp(e,t)},useContext:function(e){return xf="useContext",_f(),yd(e)},useEffect:function(e,t){return xf="useEffect",_f(),op(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",_f(),dp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",_f(),ip(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",_f(),sp(e,t)},useMemo:function(e,t){xf="useMemo",_f();var n=pf.current;pf.current=Bp;try{return gp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",_f();var r=pf.current;pf.current=Bp;try{return Bf(e)}finally{pf.current=r}},useRef:function(e){return xf="useRef",_f(),ep()},useState:function(e){xf="useState",_f();var t=pf.current;pf.current=Bp;try{return Xf()}finally{pf.current=t}},useDebugValue:function(e,t){return xf="useDebugValue",_f(),fp()},useDeferredValue:function(e){return xf="useDeferredValue",_f(),bp(e)},useTransition:function(){return xf="useTransition",_f(),Cp()},useMutableSource:function(e,t,n){xf="useMutableSource",_f()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",_f(),Hf(e,t)},useId:function(){return xf="useId",_f(),Rp()},unstable_isNewReconciler:w},Fp={readContext:function(e){return Wp(),yd(e)},useCallback:function(e,t){return xf="useCallback",Hp(),Rf(),pp(e,t)},useContext:function(e){return xf="useContext",Hp(),Rf(),yd(e)},useEffect:function(e,t){return xf="useEffect",Hp(),Rf(),rp(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",Hp(),Rf(),cp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",Hp(),Rf(),ap(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",Hp(),Rf(),lp(e,t)},useMemo:function(e,t){xf="useMemo",Hp(),Rf();var n=pf.current;pf.current=Fp;try{return mp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",Hp(),Rf();var r=pf.current;pf.current=Fp;try{return Ff(e,t,n)}finally{pf.current=r}},useRef:function(e){return xf="useRef",Hp(),Rf(),Zf(e)},useState:function(e){xf="useState",Hp(),Rf();var t=pf.current;pf.current=Fp;try{return Kf(e)}finally{pf.current=t}},useDebugValue:function(e,t){xf="useDebugValue",Hp(),Rf()},useDeferredValue:function(e){return xf="useDeferredValue",Hp(),Rf(),vp(e)},useTransition:function(){return xf="useTransition",Hp(),Rf(),Sp()},useMutableSource:function(e,t,n){xf="useMutableSource",Hp(),Rf()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",Hp(),Rf(),Wf(e,t,n)},useId:function(){return xf="useId",Hp(),Rf(),Ep()},unstable_isNewReconciler:w},jp={readContext:function(e){return Wp(),yd(e)},useCallback:function(e,t){return xf="useCallback",Hp(),_f(),hp(e,t)},useContext:function(e){return xf="useContext",Hp(),_f(),yd(e)},useEffect:function(e,t){return xf="useEffect",Hp(),_f(),op(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",Hp(),_f(),dp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",Hp(),_f(),ip(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",Hp(),_f(),sp(e,t)},useMemo:function(e,t){xf="useMemo",Hp(),_f();var n=pf.current;pf.current=jp;try{return gp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",Hp(),_f();var r=pf.current;pf.current=jp;try{return jf(e)}finally{pf.current=r}},useRef:function(e){return xf="useRef",Hp(),_f(),ep()},useState:function(e){xf="useState",Hp(),_f();var t=pf.current;pf.current=jp;try{return Gf()}finally{pf.current=t}},useDebugValue:function(e,t){return xf="useDebugValue",Hp(),_f(),fp()},useDeferredValue:function(e){return xf="useDeferredValue",Hp(),_f(),yp(e)},useTransition:function(){return xf="useTransition",Hp(),_f(),xp()},useMutableSource:function(e,t,n){xf="useMutableSource",Hp(),_f()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",Hp(),_f(),Hf(e,t)},useId:function(){return xf="useId",Hp(),_f(),Rp()},unstable_isNewReconciler:w},Bp={readContext:function(e){return Wp(),yd(e)},useCallback:function(e,t){return xf="useCallback",Hp(),_f(),hp(e,t)},useContext:function(e){return xf="useContext",Hp(),_f(),yd(e)},useEffect:function(e,t){return xf="useEffect",Hp(),_f(),op(e,t)},useImperativeHandle:function(e,t,n){return xf="useImperativeHandle",Hp(),_f(),dp(e,t,n)},useInsertionEffect:function(e,t){return xf="useInsertionEffect",Hp(),_f(),ip(e,t)},useLayoutEffect:function(e,t){return xf="useLayoutEffect",Hp(),_f(),sp(e,t)},useMemo:function(e,t){xf="useMemo",Hp(),_f();var n=pf.current;pf.current=jp;try{return gp(e,t)}finally{pf.current=n}},useReducer:function(e,t,n){xf="useReducer",Hp(),_f();var r=pf.current;pf.current=jp;try{return Bf(e)}finally{pf.current=r}},useRef:function(e){return xf="useRef",Hp(),_f(),ep()},useState:function(e){xf="useState",Hp(),_f();var t=pf.current;pf.current=jp;try{return Xf()}finally{pf.current=t}},useDebugValue:function(e,t){return xf="useDebugValue",Hp(),_f(),fp()},useDeferredValue:function(e){return xf="useDeferredValue",Hp(),_f(),bp(e)},useTransition:function(){return xf="useTransition",Hp(),_f(),Cp()},useMutableSource:function(e,t,n){xf="useMutableSource",Hp(),_f()},useSyncExternalStore:function(e,t,n){return xf="useSyncExternalStore",Hp(),_f(),Hf(e,t)},useId:function(){return xf="useId",Hp(),_f(),Rp()},unstable_isNewReconciler:w};var Vp=r.unstable_now,$p=0,qp=-1,Yp=-1,Qp=-1,Kp=!1,Gp=!1;function Xp(){return Kp}function Jp(){return $p}function Zp(){$p=Vp()}function eh(e){Yp=Vp(),e.actualStartTime<0&&(e.actualStartTime=Vp())}function th(e){Yp=-1}function nh(e,t){if(Yp>=0){var n=Vp()-Yp;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Yp=-1}}function rh(e){if(qp>=0){var t=Vp()-qp;qp=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:case d:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function oh(e){if(Qp>=0){var t=Vp()-Qp;Qp=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case d:var o=n.stateNode;return void(null!==o&&(o.passiveEffectDuration+=t))}n=n.return}}}function ah(){qp=Vp()}function ih(){Qp=Vp()}function lh(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function sh(e,t){if(e&&e.defaultProps){var n=ke({},t),r=e.defaultProps;for(var o in r)void 0===n[o]&&(n[o]=r[o]);return n}return t}var uh,ch,dh,fh,ph,hh,mh,gh,vh,yh,bh,wh={};uh=new Set,ch=new Set,dh=new Set,fh=new Set,gh=new Set,ph=new Set,vh=new Set,yh=new Set,bh=new Set;var kh=new Set;function Sh(e,t,n,r){var o=e.memoizedState,a=n(r,o);if(8&e.mode){jr(!0);try{a=n(r,o)}finally{jr(!1)}}hh(t,a);var i=null==a?o:ke({},o,a);e.memoizedState=i,0===e.lanes&&(e.updateQueue.baseState=i)}mh=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;kh.has(n)||(kh.add(n),l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},hh=function(e,t){if(void 0===t){var n=Me(e)||"Component";ph.has(n)||(ph.add(n),l("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(wh,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(wh);var xh={isMounted:function(e){var t=fr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||l("%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.",Ue(n)||"A component"),r._warnedAboutRefsInRender=!0}var o=qn(e);return!!o&&pr(o)===o},enqueueSetState:function(e,t,n){var r=qn(e),o=$v(),a=qv(r),i=Ld(o,a);i.payload=t,null!=n&&(mh(n,"setState"),i.callback=n);var l=Id(r,i,a);null!==l&&(Yv(l,r,a,o),Nd(l,r,a)),Jr(r,a)},enqueueReplaceState:function(e,t,n){var r=qn(e),o=$v(),a=qv(r),i=Ld(o,a);i.tag=1,i.payload=t,null!=n&&(mh(n,"replaceState"),i.callback=n);var l=Id(r,i,a);null!==l&&(Yv(l,r,a,o),Nd(l,r,a)),Jr(r,a)},enqueueForceUpdate:function(e,t){var n=qn(e),r=$v(),o=qv(n),a=Ld(r,o);a.tag=_d,null!=t&&(mh(t,"forceUpdate"),a.callback=t);var i=Id(n,a,o);null!==i&&(Yv(i,n,o,r),Nd(i,n,o)),function(e,t){null!==Ar&&"function"==typeof Ar.markForceUpdateScheduled&&Ar.markForceUpdateScheduled(e,t)}(n,o)}};function Ch(e,t,n,r,o,a,i){var s=e.stateNode;if("function"==typeof s.shouldComponentUpdate){var u=s.shouldComponentUpdate(r,a,i);if(8&e.mode){jr(!0);try{u=s.shouldComponentUpdate(r,a,i)}finally{jr(!1)}}return void 0===u&&l("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Me(t)||"Component"),u}return!(t.prototype&&t.prototype.isPureReactComponent&&sl(n,r)&&sl(o,a))}function Th(e,t){var n;t.updater=xh,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=wh}function Eh(e,t,n){var r=!1,o=Ou,a=Ou,i=t.contextType;if("contextType"in t&&null!==i&&(void 0===i||i.$$typeof!==ae||void 0!==i._context)&&!yh.has(t)){yh.add(t);var s;s=void 0===i?" 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.":"object"!=typeof i?" However, it is set to a "+typeof i+".":i.$$typeof===oe?" Did you accidentally pass the Context.Provider instead?":void 0!==i._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(i).join(", ")+"}.",l("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Me(t)||"Component",s)}"object"==typeof i&&null!==i?a=yd(i):(o=Nu(0,t,!0),a=(r=null!=t.contextTypes)?Mu(e,o):Ou);var u=new t(n,a);if(8&e.mode){jr(!0);try{u=new t(n,a)}finally{jr(!1)}}var c=e.memoizedState=null!==u.state&&void 0!==u.state?u.state:null;if(Th(e,u),"function"==typeof t.getDerivedStateFromProps&&null===c){var d=Me(t)||"Component";ch.has(d)||(ch.add(d),l("`%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.",d,null===u.state?"null":"undefined",d))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof u.getSnapshotBeforeUpdate){var f=null,p=null,h=null;if("function"==typeof u.componentWillMount&&!0!==u.componentWillMount.__suppressDeprecationWarning?f="componentWillMount":"function"==typeof u.UNSAFE_componentWillMount&&(f="UNSAFE_componentWillMount"),"function"==typeof u.componentWillReceiveProps&&!0!==u.componentWillReceiveProps.__suppressDeprecationWarning?p="componentWillReceiveProps":"function"==typeof u.UNSAFE_componentWillReceiveProps&&(p="UNSAFE_componentWillReceiveProps"),"function"==typeof u.componentWillUpdate&&!0!==u.componentWillUpdate.__suppressDeprecationWarning?h="componentWillUpdate":"function"==typeof u.UNSAFE_componentWillUpdate&&(h="UNSAFE_componentWillUpdate"),null!==f||null!==p||null!==h){var m=Me(t)||"Component",g="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";fh.has(m)||(fh.add(m),l("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",m,g,null!==f?"\n "+f:"",null!==p?"\n "+p:"",null!==h?"\n "+h:""))}}return r&&zu(e,o,a),u}function Rh(e,t,n,r){var o=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==o){var a=Ue(e)||"Component";uh.has(a)||(uh.add(a),l("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),xh.enqueueReplaceState(t,t.state,null)}}function _h(e,t,n,r){!function(e,t,n){var r=e.stateNode,o=Me(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?l("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",o):l("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",o)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||l("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?",o),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&l("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.",o),r.propTypes&&l("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",o),r.contextType&&l("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",o),!t.childContextTypes||bh.has(t)||8&e.mode||(bh.add(t),l("%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead\n\n.Learn more about this warning here: https://reactjs.org/link/legacy-context",o)),!t.contextTypes||bh.has(t)||8&e.mode||(bh.add(t),l("%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",o)),r.contextTypes&&l("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",o),t.contextType&&t.contextTypes&&!vh.has(t)&&(vh.add(t),l("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",o)),"function"==typeof r.componentShouldUpdate&&l("%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.",o),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&l("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Me(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&l("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",o),"function"==typeof r.componentDidReceiveProps&&l("%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().",o),"function"==typeof r.componentWillRecieveProps&&l("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",o),"function"==typeof r.UNSAFE_componentWillRecieveProps&&l("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",o);var a=r.props!==n;void 0!==r.props&&a&&l("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o,o),r.defaultProps&&l("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",o,o),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||dh.has(t)||(dh.add(t),l("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Me(t))),"function"==typeof r.getDerivedStateFromProps&&l("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof r.getDerivedStateFromError&&l("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",o),"function"==typeof t.getSnapshotBeforeUpdate&&l("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",o);var i=r.state;i&&("object"!=typeof i||bt(i))&&l("%s.state: must be set to an object or null",o),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&l("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",o)}(e,t,n);var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Od(e);var a=t.contextType;if("object"==typeof a&&null!==a)o.context=yd(a);else{var i=Nu(0,t,!0);o.context=Mu(e,i)}if(o.state===n){var s=Me(t)||"Component";gh.has(s)||(gh.add(s),l("%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.",s))}8&e.mode&&Nc.recordLegacyContextWarning(e,o),Nc.recordUnsafeLifecycleWarnings(e,o),o.state=e.memoizedState;var u=t.getDerivedStateFromProps;if("function"==typeof u&&(Sh(e,t,u,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(l("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ue(e)||"Component"),xh.enqueueReplaceState(t,t.state,null))}(e,o),Ad(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount){var c=4;c|=ir,e.mode&Zr&&(c|=lr),e.flags|=c}}function Ph(e,t){return{value:e,source:t,stack:Ne(t),digest:null}}function Oh(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Dh(e,t){try{var n=t.value,r=t.source,o=t.stack,a=null!==o?o:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var i=r?Ue(r):null,l=(i?"The above error occurred in the <"+i+"> component:":"The above error occurred in one of your React components:")+"\n"+a+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(Ue(e)||"Anonymous")+".");console.error(l)}catch(e){setTimeout((function(){throw e}))}}var Lh="function"==typeof WeakMap?WeakMap:Map;function Ih(e,t,n){var r=Ld(Ao,n);r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){by(o),Dh(e,t)},r}function Nh(e,t,n){var r=Ld(Ao,n);r.tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var a=t.value;r.payload=function(){return o(a)},r.callback=function(){qy(e),Dh(e,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){qy(e),Dh(e,t),"function"!=typeof o&&(null===_v?_v=new Set([this]):_v.add(this));var n=t.value,r=t.stack;this.componentDidCatch(n,{componentStack:null!==r?r:""}),"function"!=typeof o&&(Zo(e.lanes,oo)||l("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ue(e)||"Unknown"))}),r}function zh(e,t,n){var r,o=e.pingCache;if(null===o?(o=e.pingCache=new Lh,r=new Set,o.set(t,r)):void 0===(r=o.get(t))&&(r=new Set,o.set(t,r)),!r.has(n)){r.add(n);var a=Sy.bind(null,e,t,n);Fr&&Iy(e,n),t.then(a,a)}}function Mh(e){var t=e;do{if(t.tag===f&&af(t))return t;t=t.return}while(null!==t);return null}function Ah(e,t,n,r,o){if(!(1&e.mode)){if(e===t)e.flags|=nr;else{if(e.flags|=Yn,n.flags|=rr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=m;else{var a=Ld(Ao,oo);a.tag=_d,Id(n,a,oo)}n.lanes=ta(n.lanes,oo)}return e}return e.flags|=nr,e.lanes=o,e}function Uh(e,t,n,r,o){if(n.flags|=tr,Fr&&Iy(e,o),null!==r&&"object"==typeof r&&"function"==typeof r.then){var a=r;!function(e){var t=e.tag;if(!(1&e.mode||0!==t&&t!==c&&t!==h)){var n=e.alternate;n?(e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.lanes=n.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),Dc()&&1&n.mode&&vc();var i=Mh(t);if(null!==i)return i.flags&=-257,Ah(i,t,n,0,o),1&i.mode&&zh(e,a,o),void function(e,t,n){var r=e.updateQueue;if(null===r){var o=new Set;o.add(n),e.updateQueue=o}else r.add(n)}(i,0,a);if(!(o&oo))return zh(e,a,o),void cy();r=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.")}else if(Dc()&&1&n.mode){vc();var l=Mh(t);if(null!==l)return l.flags&nr||(l.flags|=Qn),Ah(l,t,n,0,o),void Lc(Ph(r,n))}!function(e){dv!==nv&&(dv=ev),null===vv?vv=[e]:vv.push(e)}(r=Ph(r,n));var s=t;do{switch(s.tag){case 3:var u=r;s.flags|=nr;var d=Go(o);return s.lanes=ta(s.lanes,d),void zd(s,Ih(s,u,d));case 1:var f=r,p=s.type,m=s.stateNode;if(!(s.flags&Yn||"function"!=typeof p.getDerivedStateFromError&&(null===m||"function"!=typeof m.componentDidCatch||yy(m)))){s.flags|=nr;var g=Go(o);return s.lanes=ta(s.lanes,g),void zd(s,Nh(s,f,g))}}s=s.return}while(null!==s)}var Fh,jh,Bh,Wh,Hh,Vh,$h,qh,Yh,Qh=o.ReactCurrentOwner,Kh=!1;function Gh(e,t,n,r){t.child=null===e?rd(t,null,n,r):nd(t,e.child,n,r)}function Xh(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&Su(a,r,"prop",Me(n))}var i,l,s=n.render,u=t.ref;if(vd(t,o),Vr(t),Qh.current=t,qe(!0),i=Lf(e,t,s,r,u,o),l=If(),8&t.mode){jr(!0);try{i=Lf(e,t,s,r,u,o),l=If()}finally{jr(!1)}}return qe(!1),$r(),null===e||Kh?(Dc()&&l&&sc(t),t.flags|=1,Gh(e,t,i,o),t.child):(Nf(e,t,o),Rm(e,t,o))}function Jh(e,t,n,r,o){if(null===e){var a,i=n.type;if(function(e){return"function"==typeof e&&!nb(e)&&void 0===e.defaultProps}(i)&&null===n.compare&&void 0===n.defaultProps)return a=Wy(i),t.tag=h,t.type=a,lm(t,i),Zh(e,t,a,r,o);var s=i.propTypes;if(s&&Su(s,r,"prop",Me(i)),void 0!==n.defaultProps){var u=Me(i)||"Unknown";Yh[u]||(l("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Yh[u]=!0)}var c=ab(n.type,null,r,t,t.mode,o);return c.ref=t.ref,c.return=t,t.child=c,c}var d=n.type,f=d.propTypes;f&&Su(f,r,"prop",Me(d));var p=e.child;if(!_m(e,o)){var m=p.memoizedProps,g=n.compare;if((g=null!==g?g:sl)(m,r)&&e.ref===t.ref)return Rm(e,t,o)}t.flags|=1;var v=rb(p,r);return v.ref=t.ref,v.return=t,t.child=v,v}function Zh(e,t,n,r,o){if(t.type!==t.elementType){var a=t.elementType;if(a.$$typeof===ce){var i=a,l=i._payload,s=i._init;try{a=s(l)}catch(e){a=null}var u=a&&a.propTypes;u&&Su(u,r,"prop",Me(a))}}if(null!==e){var c=e.memoizedProps;if(sl(c,r)&&e.ref===t.ref&&t.type===e.type){if(Kh=!1,t.pendingProps=r=c,!_m(e,o))return t.lanes=e.lanes,Rm(e,t,o);e.flags&rr&&(Kh=!0)}}return nm(e,t,n,r,o)}function em(e,t,n){var r,o=t.pendingProps,a=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(1&t.mode){if(!Zo(n,zo)){var l;l=null!==i?ta(i.baseLanes,n):n,t.lanes=t.childLanes=zo;var s={baseLanes:l,cachePool:null,transitions:null};return t.memoizedState=s,t.updateQueue=null,ry(t,l),null}t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ry(t,null!==i?i.baseLanes:n)}else{t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ry(t,n)}else null!==i?(r=ta(i.baseLanes,n),t.memoizedState=null):r=n,ry(t,r);return Gh(e,t,a,n),t.child}function tm(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=Kn,t.flags|=ar)}function nm(e,t,n,r,o){if(t.type!==t.elementType){var a=n.propTypes;a&&Su(a,r,"prop",Me(n))}var i,l,s;if(i=Mu(t,Nu(0,n,!0)),vd(t,o),Vr(t),Qh.current=t,qe(!0),l=Lf(e,t,n,r,i,o),s=If(),8&t.mode){jr(!0);try{l=Lf(e,t,n,r,i,o),s=If()}finally{jr(!1)}}return qe(!1),$r(),null===e||Kh?(Dc()&&s&&sc(t),t.flags|=1,Gh(e,t,l,o),t.child):(Nf(e,t,o),Rm(e,t,o))}function rm(e,t,n,r,o){switch(Nb(t)){case!1:var a=t.stateNode,i=new(0,t.type)(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,i,null);break;case!0:t.flags|=Yn,t.flags|=nr;var s=new Error("Simulated error coming from DevTools"),u=Go(o);t.lanes=ta(t.lanes,u),zd(t,Nh(t,Ph(s,t),u))}if(t.type!==t.elementType){var c=n.propTypes;c&&Su(c,r,"prop",Me(n))}var d,f;Uu(n)?(d=!0,Hu(t)):d=!1,vd(t,o),null===t.stateNode?(Em(e,t),Eh(t,n,r),_h(t,n,r,o),f=!0):f=null===e?function(e,t,n,r){var o=e.stateNode,a=e.memoizedProps;o.props=a;var i,l=o.context,s=t.contextType;i="object"==typeof s&&null!==s?yd(s):Mu(e,Nu(0,t,!0));var u=t.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===n&&l===i||Rh(e,o,n,i),Fd();var d=e.memoizedState,f=o.state=d;if(Ad(e,n,o,r),f=e.memoizedState,a===n&&d===f&&!Au()&&!jd()){if("function"==typeof o.componentDidMount){var p=4;p|=ir,e.mode&Zr&&(p|=lr),e.flags|=p}return!1}"function"==typeof u&&(Sh(e,t,u,n),f=e.memoizedState);var h=jd()||Ch(e,t,a,n,d,f,i);if(h){if(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount){var m=4;m|=ir,e.mode&Zr&&(m|=lr),e.flags|=m}}else{if("function"==typeof o.componentDidMount){var g=4;g|=ir,e.mode&Zr&&(g|=lr),e.flags|=g}e.memoizedProps=n,e.memoizedState=f}return o.props=n,o.state=f,o.context=i,h}(t,n,r,o):function(e,t,n,r,o){var a=t.stateNode;Dd(e,t);var i=t.memoizedProps,l=t.type===t.elementType?i:sh(t.type,i);a.props=l;var s,u=t.pendingProps,c=a.context,d=n.contextType;s="object"==typeof d&&null!==d?yd(d):Mu(t,Nu(0,n,!0));var f=n.getDerivedStateFromProps,p="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||i===u&&c===s||Rh(t,a,r,s),Fd();var h=t.memoizedState,m=a.state=h;if(Ad(t,r,a,o),m=t.memoizedState,i===u&&h===m&&!Au()&&!jd())return"function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=Gn)),!1;"function"==typeof f&&(Sh(t,n,f,r),m=t.memoizedState);var g=jd()||Ch(t,n,l,r,h,m,s)||false;return g?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=Gn)):("function"==typeof a.componentDidUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4)),"function"==typeof a.getSnapshotBeforeUpdate&&(i===e.memoizedProps&&h===e.memoizedState||(t.flags|=Gn)),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,g}(e,t,n,r,o);var p=om(e,t,n,f,d,o),h=t.stateNode;return f&&h.props!==r&&(Vh||l("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ue(t)||"a component"),Vh=!0),p}function om(e,t,n,r,o,a){tm(e,t);var i=!!(t.flags&Yn);if(!r&&!i)return o&&Vu(t,n,!1),Rm(e,t,a);var l,s=t.stateNode;if(Qh.current=t,i&&"function"!=typeof n.getDerivedStateFromError)l=null,th();else{if(Vr(t),qe(!0),l=s.render(),8&t.mode){jr(!0);try{s.render()}finally{jr(!1)}}qe(!1),$r()}return t.flags|=1,null!==e&&i?function(e,t,n,r){t.child=nd(t,e.child,null,r),t.child=nd(t,null,n,r)}(e,t,l,a):Gh(e,t,l,a),t.memoizedState=s.state,o&&Vu(t,n,!0),t.child}function am(e){var t=e.stateNode;t.pendingContext?Bu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bu(e,t.context,!1),Qd(e,t.containerInfo)}function im(e,t,n,r,o){return Pc(),Lc(o),t.flags|=Qn,Gh(e,t,n,r),t.child}function lm(e,t){if(t&&t.childContextTypes&&l("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=We();r&&(n+="\n\nCheck the render method of `"+r+"`.");var o=r||"",a=e._debugSource;a&&(o=a.fileName+":"+a.lineNumber),Hh[o]||(Hh[o]=!0,l("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(void 0!==t.defaultProps){var i=Me(t)||"Unknown";Yh[i]||(l("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",i),Yh[i]=!0)}if("function"==typeof t.getDerivedStateFromProps){var s=Me(t)||"Unknown";Wh[s]||(l("%s: Function components do not support getDerivedStateFromProps.",s),Wh[s]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var u=Me(t)||"Unknown";Bh[u]||(l("%s: Function components do not support contextType.",u),Bh[u]=!0)}}Fh={},jh={},Bh={},Wh={},Hh={},Vh=!1,$h={},qh={},Yh={};var sm={dehydrated:null,treeContext:null,retryLane:0};function um(e){return{baseLanes:e,cachePool:null,transitions:null}}function cm(e,t,n){var r=t.pendingProps;zb(t)&&(t.flags|=Yn);var o=Zd.current,a=!1,i=!!(t.flags&Yn);if(i||function(e,t){return(null===t||null!==t.memoizedState)&&ef(e,2)}(o,e)?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),rf(t,o=tf(o)),null===e){Tc(t);var s=t.memoizedState;if(null!==s){var u=s.dehydrated;if(null!==u)return function(e,t){return 1&e.mode?Zs(t)?e.lanes=lo:e.lanes=zo:(l("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=oo),null}(t,u)}var c=r.children,d=r.fallback;if(a){var f=function(e,t,n,r){var o,a,i=e.mode,l=e.child,s={mode:"hidden",children:t};return 1&i||null===l?(o=fm(s,i),a=lb(n,i,r,null)):((o=l).childLanes=0,o.pendingProps=s,2&e.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=0,o.treeBaseDuration=0),a=lb(n,i,r,null)),o.return=e,a.return=e,o.sibling=a,e.child=o,a}(t,c,d,n);return t.child.memoizedState=um(n),t.memoizedState=sm,f}return dm(t,c)}var p=e.memoizedState;if(null!==p){var h=p.dehydrated;if(null!==h)return function(e,t,n,r,o,a,i){if(n){if(t.flags&Qn)return t.flags&=-257,hm(e,t,i,Oh(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=Yn,null;var s=function(e,t,n,r,o){var a=t.mode,i=fm({mode:"visible",children:n},a),l=lb(r,a,o,null);return l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,!(1&t.mode)||nd(t,e.child,null,o),l}(e,t,r.children,r.fallback,i);return t.child.memoizedState=um(i),t.memoizedState=sm,s}if(hc&&l("We should not be hydrating here. This is a bug in React. Please file a bug."),!(1&t.mode))return hm(e,t,i,null);if(Zs(o)){var u,c,d,f=function(e){var t,n,r,o=e.nextSibling&&e.nextSibling.dataset;return o&&(t=o.dgst,n=o.msg,r=o.stck),{message:n,digest:t,stack:r}}(o);return u=f.digest,c=f.message,d=f.stack,hm(e,t,i,Oh(c?new Error(c):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),u,d))}var p=Zo(i,e.childLanes);if(Kh||p){var h=Vv();if(null!==h){var m=function(e,t){var n;switch(Ko(t)){case io:n=ao;break;case so:n=lo;break;case 64:case 128:case 256:case 512:case fo:case po:case ho:case mo:case go:case vo:case yo:case bo:case wo:case ko:case So:case xo:case To:case Eo:case Ro:case _o:case Po:n=uo;break;case No:n=Io;break;default:n=0}return n&(e.suspendedLanes|t)?0:n}(h,i);if(0!==m&&m!==a.retryLane){a.retryLane=m;Sd(e,m),Yv(h,e,m,-1)}}return cy(),hm(e,t,i,Oh(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.")))}if(Js(o))return t.flags|=Yn,t.child=e.child,g=Cy.bind(null,e),o._reactRetry=g,null;!function(e,t,n){pc=eu(t.nextSibling),fc=e,hc=!0,gc=null,mc=!1,null!==n&&function(e,t){dc(),tc[nc++]=oc,tc[nc++]=ac,tc[nc++]=rc,oc=t.id,ac=t.overflow,rc=e}(e,n)}(t,o,a.treeContext);var g,v=dm(t,r.children);return v.flags|=Jn,v}(e,t,i,r,h,p,n)}if(a){var m=r.fallback,g=function(e,t,n,r,o){var a,i,l=t.mode,s=e.child,u=s.sibling,c={mode:"hidden",children:n};return 1&l||t.child===s?(a=pm(s,c)).subtreeFlags=s.subtreeFlags&dr:((a=t.child).childLanes=0,a.pendingProps=c,2&t.mode&&(a.actualDuration=0,a.actualStartTime=-1,a.selfBaseDuration=s.selfBaseDuration,a.treeBaseDuration=s.treeBaseDuration),t.deletions=null),null!==u?i=rb(u,r):(i=lb(r,l,o,null)).flags|=2,i.return=t,a.return=t,a.sibling=i,t.child=a,i}(e,t,r.children,m,n),v=t.child,y=e.child.memoizedState;return v.memoizedState=null===y?um(n):function(e,t){return{baseLanes:ta(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),v.childLanes=function(e,t){return na(e.childLanes,t)}(e,n),t.memoizedState=sm,g}var b=function(e,t,n,r){var o=e.child,a=o.sibling,i=pm(o,{mode:"visible",children:n});if(1&t.mode||(i.lanes=r),i.return=t,i.sibling=null,null!==a){var l=t.deletions;null===l?(t.deletions=[a],t.flags|=16):l.push(a)}return t.child=i,i}(e,t,r.children,n);return t.memoizedState=null,b}function dm(e,t,n){var r=fm({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function fm(e,t,n){return sb(e,t,0,null)}function pm(e,t){return rb(e,t)}function hm(e,t,n,r){null!==r&&Lc(r),nd(t,e.child,null,n);var o=dm(t,t.pendingProps.children);return o.flags|=2,t.memoizedState=null,o}function mm(e,t,n){e.lanes=ta(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=ta(r.lanes,t)),gd(e.return,t,n)}function gm(e,t){var n=bt(e),r=!n&&"function"==typeof pe(e);if(n||r){var o=n?"array":"iterable";return l("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>",o,t,o),!1}return!0}function vm(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ym(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail,i=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!$h[e])if($h[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":l('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":l('"%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:l('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else l('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(o),function(e,t){void 0===e||qh[e]||("collapsed"!==e&&"hidden"!==e?(qh[e]=!0,l('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(qh[e]=!0,l('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(a,o),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(bt(e)){for(var n=0;n<e.length;n++)if(!gm(e[n],n))return}else{var r=pe(e);if("function"==typeof r){var o=r.call(e);if(o)for(var a=o.next(),i=0;!a.done;a=o.next()){if(!gm(a.value,i))return;i++}}else l('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)}}(i,o),Gh(e,t,i,n);var s=Zd.current;if(ef(s,2)?(s=nf(s,2),t.flags|=Yn):(null!==e&&!!(e.flags&Yn)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===f)null!==r.memoizedState&&mm(r,n,e);else if(r.tag===g)mm(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),s=tf(s)),rf(t,s),1&t.mode)switch(o){case"forwards":var u,c=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===lf(r)&&(n=t),t=t.sibling}return n}(t.child);null===c?(u=t.child,t.child=null):(u=c.sibling,c.sibling=null),vm(t,!1,u,c,a);break;case"backwards":var d=null,p=t.child;for(t.child=null;null!==p;){var h=p.alternate;if(null!==h&&null===lf(h)){t.child=p;break}var m=p.sibling;p.sibling=d,d=p,p=m}vm(t,!0,d,null,a);break;case"together":vm(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}var bm,wm,km,Sm,xm=!1,Cm=!1;function Tm(){Kh=!0}function Em(e,t){1&t.mode||null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rm(e,t,n){return null!==e&&(t.dependencies=e.dependencies),th(),uy(t.lanes),Zo(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=rb(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=rb(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function _m(e,t){return!!Zo(e.lanes,t)}function Pm(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)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 o=r.child;if(null===o)throw new Error("Expected parent to have a child.");for(;o.sibling!==t;)if(null===(o=o.sibling))throw new Error("Expected to find the previous sibling.");o.sibling=n}var a=r.deletions;return null===a?(r.deletions=[e],r.flags|=16):a.push(e),n.flags|=2,n}(e,t,ab(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||Au()||t.type!==e.type)Kh=!0;else{if(!(_m(e,n)||t.flags&Yn))return Kh=!1,function(e,t,n){switch(t.tag){case 3:am(t),t.stateNode,Pc();break;case 5:Xd(t);break;case 1:Uu(t.type)&&Hu(t);break;case 4:Qd(t,t.stateNode.containerInfo);break;case u:var r=t.memoizedProps.value;hd(t,t.type._context,r);break;case d:Zo(n,t.childLanes)&&(t.flags|=4);var o=t.stateNode;o.effectDuration=0,o.passiveEffectDuration=0;break;case f:var a=t.memoizedState;if(null!==a){if(null!==a.dehydrated)return rf(t,tf(Zd.current)),t.flags|=Yn,null;if(Zo(n,t.child.childLanes))return cm(e,t,n);rf(t,tf(Zd.current));var i=Rm(e,t,n);return null!==i?i.sibling:null}rf(t,tf(Zd.current));break;case g:var l=!!(e.flags&Yn),s=Zo(n,t.childLanes);if(l){if(s)return ym(e,t,n);t.flags|=Yn}var c=t.memoizedState;if(null!==c&&(c.rendering=null,c.tail=null,c.lastEffect=null),rf(t,Zd.current),s)break;return null;case y:case b:return t.lanes=0,em(e,t,n)}return Rm(e,t,n)}(e,t,n);Kh=!!(e.flags&rr)}else if(Kh=!1,Dc()&&function(e){return dc(),!!(e.flags&or)}(t)){var r=t.index;lc(t,(dc(),ec),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){Em(e,t);var o,a,i,s=t.pendingProps;if(o=Mu(t,Nu(0,n,!1)),vd(t,r),Vr(t),n.prototype&&"function"==typeof n.prototype.render){var u=Me(n)||"Unknown";Fh[u]||(l("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.",u,u),Fh[u]=!0)}if(8&t.mode&&Nc.recordLegacyContextWarning(t,null),qe(!0),Qh.current=t,a=Lf(null,t,n,s,o,r),i=If(),qe(!1),$r(),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var c=Me(n)||"Unknown";jh[c]||(l("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.",c,c,c),jh[c]=!0)}if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var d=Me(n)||"Unknown";jh[d]||(l("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),jh[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var f=!1;return Uu(n)?(f=!0,Hu(t)):f=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Od(t),Th(t,a),_h(t,n,s,r),om(null,t,n,!0,f,r)}if(t.tag=0,8&t.mode){jr(!0);try{a=Lf(null,t,n,s,o,r),i=If()}finally{jr(!1)}}return Dc()&&i&&sc(t),Gh(null,t,a,r),lm(t,n),t.child}(e,t,t.type,n);case 16:return function(e,t,n,r){Em(e,t);var o=t.pendingProps,a=n,i=a._payload,l=(0,a._init)(i);t.type=l;var s=t.tag=function(e){if("function"==typeof e)return nb(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ie)return c;if(t===ue)return p}return 2}(l),u=sh(l,o);switch(s){case 0:return lm(t,l),t.type=l=Wy(l),nm(null,t,l,u,r);case 1:return t.type=l=Hy(l),rm(null,t,l,u,r);case c:return t.type=l=Vy(l),Xh(null,t,l,u,r);case p:if(t.type!==t.elementType){var d=l.propTypes;d&&Su(d,u,"prop",Me(l))}return Jh(null,t,l,sh(l.type,u),r)}var f="";throw null!==l&&"object"==typeof l&&l.$$typeof===ce&&(f=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+f)}(e,t,t.elementType,n);case 0:var o=t.type,a=t.pendingProps;return nm(e,t,o,t.elementType===o?a:sh(o,a),n);case 1:var i=t.type,s=t.pendingProps;return rm(e,t,i,t.elementType===i?s:sh(i,s),n);case 3:return function(e,t,n){if(am(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,o=t.memoizedState,a=o.element;Dd(e,t),Ad(t,r,null,n);var i,l,s=t.memoizedState,u=(t.stateNode,s.element);if(o.isDehydrated){var c={element:u,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions};if(t.updateQueue.baseState=c,t.memoizedState=c,t.flags&Qn)return im(e,t,u,n,Ph(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t));if(u!==a)return im(e,t,u,n,Ph(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));l=(i=t).stateNode.containerInfo,pc=eu(l.firstChild),fc=i,hc=!0,gc=null,mc=!1;var d=rd(t,null,u,n);t.child=d;for(var f=d;f;)f.flags=-3&f.flags|Jn,f=f.sibling}else{if(Pc(),u===a)return Rm(e,t,n);Gh(e,t,u,n)}return t.child}(e,t,n);case 5:return function(e,t,n){Xd(t),null===e&&Tc(t);var r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children;return Bs(r,o)?i=null:null!==a&&Bs(r,a)&&(t.flags|=32),tm(e,t),Gh(e,t,i,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&Tc(t),null}(e,t);case f:return cm(e,t,n);case 4:return function(e,t,n){Qd(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=nd(t,null,r,n):Gh(e,t,r,n),t.child}(e,t,n);case c:var w=t.type,k=t.pendingProps;return Xh(e,t,w,t.elementType===w?k:sh(w,k),n);case 7:return function(e,t,n){return Gh(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return Gh(e,t,t.pendingProps.children,n),t.child}(e,t,n);case d:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,Gh(e,t,t.pendingProps.children,n),t.child}(e,t,n);case u:return function(e,t,n){var r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value;"value"in o||xm||(xm=!0,l("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var s=t.type.propTypes;if(s&&Su(s,o,"prop","Context.Provider"),hd(t,r,i),null!==a){var c=a.value;if(ll(c,i)){if(a.children===o.children&&!Au())return Rm(e,t,n)}else!function(e,t,n){!function(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var o=void 0,a=r.dependencies;if(null!==a){o=r.child;for(var i=a.firstContext;null!==i;){if(i.context===t){if(1===r.tag){var l=Go(n),s=Ld(Ao,l);s.tag=_d;var c=r.updateQueue;if(null===c);else{var d=c.shared,f=d.pending;null===f?s.next=s:(s.next=f.next,f.next=s),d.pending=s}}r.lanes=ta(r.lanes,n);var p=r.alternate;null!==p&&(p.lanes=ta(p.lanes,n)),gd(r.return,n,e),a.lanes=ta(a.lanes,n);break}i=i.next}}else if(r.tag===u)o=r.type===e.type?null:r.child;else if(18===r.tag){var h=r.return;if(null===h)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes=ta(h.lanes,n);var m=h.alternate;null!==m&&(m.lanes=ta(m.lanes,n)),gd(h,n,e),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var g=o.sibling;if(null!==g){g.return=o.return,o=g;break}o=o.return}r=o}}(e,t,n)}(t,r,n)}return Gh(e,t,o.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(Cm||(Cm=!0,l("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 o=t.pendingProps.children;"function"!=typeof o&&l("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."),vd(t,n);var a,i=yd(r);return Vr(t),Qh.current=t,qe(!0),a=o(i),qe(!1),$r(),t.flags|=1,Gh(e,t,a,n),t.child}(e,t,n);case p:var S=t.type,x=sh(S,t.pendingProps);if(t.type!==t.elementType){var C=S.propTypes;C&&Su(C,x,"prop",Me(S))}return Jh(e,t,S,x=sh(S.type,x),n);case h:return Zh(e,t,t.type,t.pendingProps,n);case m:var T=t.type,E=t.pendingProps;return function(e,t,n,r,o){var a;return Em(e,t),t.tag=1,Uu(n)?(a=!0,Hu(t)):a=!1,vd(t,o),Eh(t,n,r),_h(t,n,r,o),om(null,t,n,!0,a,o)}(e,t,T,t.elementType===T?E:sh(T,E),n);case g:return ym(e,t,n);case v:break;case y:return em(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Om(e){e.flags|=4}function Dm(e){e.flags|=Kn,e.flags|=ar}function Lm(e,t){if(!Dc())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var o=e.tail,a=null;null!==o;)null!==o.alternate&&(a=o),o=o.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Im(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(2&e.mode){for(var o=e.selfBaseDuration,a=e.child;null!==a;)n=ta(n,ta(a.lanes,a.childLanes)),r|=a.subtreeFlags&dr,r|=a.flags&dr,o+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=o}else for(var i=e.child;null!==i;)n=ta(n,ta(i.lanes,i.childLanes)),r|=i.subtreeFlags&dr,r|=i.flags&dr,i.return=e,i=i.sibling;e.subtreeFlags|=r}else{if(2&e.mode){for(var l=e.actualDuration,s=e.selfBaseDuration,u=e.child;null!==u;)n=ta(n,ta(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,l+=u.actualDuration,s+=u.treeBaseDuration,u=u.sibling;e.actualDuration=l,e.treeBaseDuration=s}else for(var c=e.child;null!==c;)n=ta(n,ta(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Nm(e,t,n){if(hc&&null!==pc&&1&t.mode&&!(t.flags&Yn))return _c(t),Pc(),t.flags|=98560,!1;var r=Rc(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(function(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){cu(t,e)}(n,e)}(t),Im(t),2&t.mode&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}if(Pc(),t.flags&Yn||(t.memoizedState=null),t.flags|=4,Im(t),2&t.mode&&null!==n){var a=t.child;null!==a&&(t.treeBaseDuration-=a.treeBaseDuration)}return!1}return Oc(),!0}function zm(e,t,n){var r=t.pendingProps;switch(cc(t),t.tag){case 2:case 16:case h:case 0:case c:case 7:case 8:case d:case 9:case p:return Im(t),null;case 1:return Uu(t.type)&&Fu(t),Im(t),null;case 3:var o=t.stateNode;return Kd(t),ju(t),uf(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===e||null===e.child)&&(Rc(t)?Om(t):null!==e&&(!e.memoizedState.isDehydrated||t.flags&Qn)&&(t.flags|=Gn,Oc())),wm(e,t),Im(t),null;case 5:Jd(t);var a=Yd(),i=t.type;if(null!==e&&null!=t.stateNode)km(e,t,i,r,a),e.ref!==t.ref&&Dm(t);else{if(!r){if(null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Im(t),null}var s=Gd();if(Rc(t))(function(e,t,n){var r=e.stateNode,o=!mc,a=function(e,t,n,r,o,a,i){return cu(a,e),yu(e,n),function(e,t,n,r,o,a,i){var l,s;switch(l=an(t,n),ts(t,n),t){case"dialog":Hl("cancel",e),Hl("close",e);break;case"iframe":case"object":case"embed":Hl("load",e);break;case"video":case"audio":for(var u=0;u<Ul.length;u++)Hl(Ul[u],e);break;case"source":Hl("error",e);break;case"img":case"image":case"link":Hl("error",e),Hl("load",e);break;case"details":Hl("toggle",e);break;case"input":st(e,n),Hl("invalid",e);break;case"option":gt(0,n);break;case"select":Ct(e,n),Hl("invalid",e);break;case"textarea":Rt(e,n),Hl("invalid",e)}on(t,n),s=new Set;for(var c=e.attributes,d=0;d<c.length;d++)switch(c[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:s.add(c[d].name)}var f,p=null;for(var h in n)if(n.hasOwnProperty(h)){var m=n[h];if(h===fs)"string"==typeof m?e.textContent!==m&&(!0!==n[cs]&&ys(e.textContent,m,a,i),p=[fs,m]):"number"==typeof m&&e.textContent!==""+m&&(!0!==n[cs]&&ys(e.textContent,m,a,i),p=[fs,""+m]);else if(S.hasOwnProperty(h))null!=m&&("function"!=typeof m&&os(h,m),"onScroll"===h&&Hl("scroll",e));else if(i&&"boolean"==typeof l){var g=void 0,v=W(h);if(!0===n[cs]);else if(h===us||h===cs||"value"===h||"checked"===h||"selected"===h);else if(h===ss){var y=e.innerHTML,b=m?m[hs]:void 0;if(null!=b){var w=is(e,b);w!==y&&ns(h,y,w)}}else if(h===ps){if(s.delete(h),as){var k=en(m);k!==(g=e.getAttribute("style"))&&ns(h,g,k)}}else if(l)s.delete(h.toLowerCase()),m!==(g=X(e,h,m))&&ns(h,g,m);else if(!F(h,v,l)&&!B(h,m,v,l)){var x=!1;if(null!==v)s.delete(v.attributeName),g=G(e,h,m,v);else{var C=r;if(C===Ot&&(C=Lt(t)),C===Ot)s.delete(h.toLowerCase());else{var T=(f=h.toLowerCase(),ln.hasOwnProperty(f)&&ln[f]||null);null!==T&&T!==h&&(x=!0,s.delete(T)),s.delete(h)}g=X(e,h,m)}m===g||x||ns(h,g,m)}}}switch(i&&s.size>0&&!0!==n[cs]&&rs(s),t){case"input":Ze(e),dt(e,n,!0);break;case"textarea":Ze(e),Pt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&ks(e)}return p}(e,t,n,o.namespace,0,!!(1&a.mode),i)}(r,e.type,e.memoizedProps,0,n,e,o);return e.updateQueue=a,null!==a})(t,0,s)&&Om(t);else{var w=function(e,t,n,r,o){var a=r;if(Es(e,null,a.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var i=""+t.children,s=Rs(a.ancestorInfo,e);Es(null,i,s)}var u=function(e,t,n,r){var o,a,i=bs(n),s=r;if(s===Ot&&(s=Lt(e)),s===Ot){if((o=an(e,t))||e===e.toLowerCase()||l("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var u=i.createElement("div");u.innerHTML="<script><\/script>";var c=u.firstChild;a=u.removeChild(c)}else if("string"==typeof t.is)a=i.createElement(e,{is:t.is});else if(a=i.createElement(e),"select"===e){var d=a;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else a=i.createElementNS(s,e);return s===Ot&&(o||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(a)||R.call(es,e)||(es[e]=!0,l("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),a}(e,t,n,a.namespace);return cu(o,u),yu(u,t),u}(i,r,a,s,t);bm(w,t,!1,!1),t.stateNode=w,function(e,t,n){switch(function(e,t,n){var r,o=an(t,n);switch(ts(t,n),t){case"dialog":Hl("cancel",e),Hl("close",e),r=n;break;case"iframe":case"object":case"embed":Hl("load",e),r=n;break;case"video":case"audio":for(var a=0;a<Ul.length;a++)Hl(Ul[a],e);r=n;break;case"source":Hl("error",e),r=n;break;case"img":case"image":case"link":Hl("error",e),Hl("load",e),r=n;break;case"details":Hl("toggle",e),r=n;break;case"input":st(e,n),r=lt(e,n),Hl("invalid",e);break;case"option":gt(0,n),r=n;break;case"select":Ct(e,n),r=xt(0,n),Hl("invalid",e);break;case"textarea":Rt(e,n),r=Et(e,n),Hl("invalid",e);break;default:r=n}switch(on(t,r),function(e,t,n,r,o){for(var a in r)if(r.hasOwnProperty(a)){var i=r[a];if(a===ps)i&&Object.freeze(i),tn(t,i);else if(a===ss){var l=i?i[hs]:void 0;null!=l&&Mt(t,l)}else a===fs?"string"==typeof i?("textarea"!==e||""!==i)&&At(t,i):"number"==typeof i&&At(t,""+i):a===us||a===cs||a===ds||(S.hasOwnProperty(a)?null!=i&&("function"!=typeof i&&os(a,i),"onScroll"===a&&Hl("scroll",t)):null!=i&&J(t,a,i,o))}}(t,e,0,r,o),t){case"input":Ze(e),dt(e,n,!1);break;case"textarea":Ze(e),Pt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Ye(Qe(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?St(n,!!t.multiple,r,!1):null!=t.defaultValue&&St(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof r.onClick&&ks(e)}}(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(w,i,r)&&Om(t)}null!==t.ref&&Dm(t)}return Im(t),null;case 6:var k=r;if(e&&null!=t.stateNode){var x=e.memoizedProps;Sm(e,t,x,k)}else{if("string"!=typeof k&&null===t.stateNode)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var C=Yd(),T=Gd();Rc(t)?function(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return cu(n,e),n.mode,function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var o=fc;if(null!==o)switch(o.tag){case 3:o.stateNode.containerInfo,function(e,t,n,r){ys(t.nodeValue,n,r,!0)}(0,t,n,!!(1&o.mode));break;case 5:o.type;var a=o.memoizedProps;o.stateNode,function(e,t,n,r,o,a){!0!==t[Ns]&&ys(r.nodeValue,o,a,!0)}(0,a,0,t,n,!!(1&o.mode))}}return r}(t)&&Om(t):t.stateNode=function(e,t,n,r){Es(null,e,n.ancestorInfo);var o=function(e,t){return bs(t).createTextNode(e)}(e,t);return cu(r,o),o}(k,C,T,t)}return Im(t),null;case f:of(t);var E=t.memoizedState;if((null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)&&!Nm(e,t,E))return t.flags&nr?t:null;if(t.flags&Yn)return t.lanes=n,2&t.mode&&lh(t),t;var _=null!==E;if(_!==(null!==e&&null!==e.memoizedState)&&_&&(t.child.flags|=Zn,1&t.mode&&(null===e&&(t.memoizedProps.unstable_avoidThisFallback,1)||ef(Zd.current,1)?dv===Jg&&(dv=tv):cy())),null!==t.updateQueue&&(t.flags|=4),Im(t),2&t.mode&&_){var P=t.child;null!==P&&(t.treeBaseDuration-=P.treeBaseDuration)}return null;case 4:return Kd(t),wm(e,t),null===e&&ql(t.stateNode.containerInfo),Im(t),null;case u:return md(t.type._context,t),Im(t),null;case m:return Uu(t.type)&&Fu(t),Im(t),null;case g:of(t);var O=t.memoizedState;if(null===O)return Im(t),null;var D=!!(t.flags&Yn),L=O.rendering;if(null===L)if(D)Lm(O,!1);else{if(dv!==Jg||null!==e&&e.flags&Yn)for(var I=t.child;null!==I;){var N=lf(I);if(null!==N){D=!0,t.flags|=Yn,Lm(O,!1);var z=N.updateQueue;return null!==z&&(t.updateQueue=z,t.flags|=4),t.subtreeFlags=0,od(t,n),rf(t,nf(Zd.current,2)),t.child}I=I.sibling}null!==O.tail&&Er()>Tv()&&(t.flags|=Yn,D=!0,Lm(O,!1),t.lanes=Oo)}else{if(!D){var M=lf(L);if(null!==M){t.flags|=Yn,D=!0;var A=M.updateQueue;if(null!==A&&(t.updateQueue=A,t.flags|=4),Lm(O,!0),null===O.tail&&"hidden"===O.tailMode&&!L.alternate&&!Dc())return Im(t),null}else 2*Er()-O.renderingStartTime>Tv()&&n!==zo&&(t.flags|=Yn,D=!0,Lm(O,!1),t.lanes=Oo)}if(O.isBackwards)L.sibling=t.child,t.child=L;else{var U=O.last;null!==U?U.sibling=L:t.child=L,O.last=L}}if(null!==O.tail){var j=O.tail;O.rendering=j,O.tail=j.sibling,O.renderingStartTime=Er(),j.sibling=null;var H=Zd.current;return rf(t,H=D?nf(H,2):tf(H)),j}return Im(t),null;case v:break;case y:case b:oy(t);var V=null!==t.memoizedState;return null!==e&&null!==e.memoizedState!==V&&(t.flags|=Zn),V&&1&t.mode?Zo(uv,zo)&&(Im(t),6&t.subtreeFlags&&(t.flags|=Zn)):Im(t),null;case 24:case 25:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Mm(e,t,n){switch(cc(t),t.tag){case 1:Uu(t.type)&&Fu(t);var r=t.flags;return r&nr?(t.flags=-65537&r|Yn,2&t.mode&&lh(t),t):null;case 3:t.stateNode,Kd(t),ju(t),uf();var o=t.flags;return o&nr&&!(o&Yn)?(t.flags=-65537&o|Yn,t):null;case 5:return Jd(t),null;case f:of(t);var a=t.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Pc()}var i=t.flags;return i&nr?(t.flags=-65537&i|Yn,2&t.mode&&lh(t),t):null;case g:return of(t),null;case 4:return Kd(t),null;case u:return md(t.type._context,t),null;case y:case b:return oy(t),null;default:return null}}function Am(e,t,n){switch(cc(t),t.tag){case 1:null!=t.type.childContextTypes&&Fu(t);break;case 3:t.stateNode,Kd(t),ju(t),uf();break;case 5:Jd(t);break;case 4:Kd(t);break;case f:case g:of(t);break;case u:md(t.type._context,t);break;case y:case b:oy(t)}}bm=function(e,t,n,r){for(var o,a,i=t.child;null!==i;){if(5===i.tag||6===i.tag)o=e,a=i.stateNode,o.appendChild(a);else if(4===i.tag);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},wm=function(e,t){},km=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var i=function(e,t,n,r,o,a){var i=a;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var s=""+r.children,u=Rs(i.ancestorInfo,t);Es(null,s,u)}return function(e,t,n,r){ts(t,r);var o,a,i,s,u=null;switch(t){case"input":o=lt(e,n),a=lt(e,r),u=[];break;case"select":o=xt(0,n),a=xt(0,r),u=[];break;case"textarea":o=Et(e,n),a=Et(e,r),u=[];break;default:a=r,"function"!=typeof(o=n).onClick&&"function"==typeof a.onClick&&ks(e)}on(t,a);var c=null;for(i in o)if(!a.hasOwnProperty(i)&&o.hasOwnProperty(i)&&null!=o[i])if(i===ps){var d=o[i];for(s in d)d.hasOwnProperty(s)&&(c||(c={}),c[s]="")}else i===ss||i===fs||i===us||i===cs||i===ds||(S.hasOwnProperty(i)?u||(u=[]):(u=u||[]).push(i,null));for(i in a){var f=a[i],p=null!=o?o[i]:void 0;if(a.hasOwnProperty(i)&&f!==p&&(null!=f||null!=p))if(i===ps)if(f&&Object.freeze(f),p){for(s in p)!p.hasOwnProperty(s)||f&&f.hasOwnProperty(s)||(c||(c={}),c[s]="");for(s in f)f.hasOwnProperty(s)&&p[s]!==f[s]&&(c||(c={}),c[s]=f[s])}else c||(u||(u=[]),u.push(i,c)),c=f;else if(i===ss){var h=f?f[hs]:void 0,m=p?p[hs]:void 0;null!=h&&m!==h&&(u=u||[]).push(i,h)}else i===fs?"string"!=typeof f&&"number"!=typeof f||(u=u||[]).push(i,""+f):i===us||i===cs||(S.hasOwnProperty(i)?(null!=f&&("function"!=typeof f&&os(i,f),"onScroll"===i&&Hl("scroll",e)),u||p===f||(u=[])):(u=u||[]).push(i,f))}return c&&(function(e,t){if(t){var n,r=nn(e),o=nn(t),a={};for(var i in r){var s=r[i],u=o[i];if(u&&s!==u){var c=s+","+u;if(a[c])continue;a[c]=!0,l("%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.",null==(n=e[s])||"boolean"==typeof n||""===n?"Removing":"Updating",s,u)}}}}(c,a[ps]),(u=u||[]).push(ps,c)),u}(e,t,n,r)}(t.stateNode,n,a,r,0,Gd());t.updateQueue=i,i&&Om(t)}},Sm=function(e,t,n,r){n!==r&&Om(t)};var Um=null;Um=new Set;var Fm=!1,jm=!1,Bm="function"==typeof WeakSet?WeakSet:Set,Wm=null,Hm=null,Vm=null,$m=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{ah(),t.componentWillUnmount()}finally{rh(e)}else t.componentWillUnmount()};function qm(e,t){try{ng(4,e)}catch(n){ky(e,t,n)}}function Ym(e,t,n){try{$m(e,n)}catch(n){ky(e,t,n)}}function Qm(e,t){try{ig(e)}catch(n){ky(e,t,n)}}function Km(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{ah(),r=n(null)}finally{rh(e)}else r=n(null)}catch(n){ky(e,t,n)}"function"==typeof r&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else n.current=null}function Gm(e,t,n){try{n()}catch(n){ky(e,t,n)}}var Xm=!1;function Jm(e,t){var n;e.containerInfo,Fs=Va,n=gl(),js={focusedElem:n,selectionRange:vl(n)?yl(n):null},$a(!1),Wm=t,function(){for(;null!==Wm;){var e=Wm,t=e.child;1028&e.subtreeFlags&&null!==t?(t.return=e,Wm=t):Zm()}}();var r=Xm;return Xm=!1,r}function Zm(){for(;null!==Wm;){var e=Wm;$e(e);try{eg(e)}catch(t){ky(e,e.return,t)}Ve();var t=e.sibling;if(null!==t)return t.return=e.return,void(Wm=t);Wm=e.return}}function eg(e){var t,n=e.alternate;if(e.flags&Gn){switch($e(e),e.tag){case 0:case c:case h:break;case 1:if(null!==n){var r=n.memoizedProps,o=n.memoizedState,a=e.stateNode;e.type!==e.elementType||Vh||(a.props!==e.memoizedProps&&l("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.",Ue(e)||"instance"),a.state!==e.memoizedState&&l("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.",Ue(e)||"instance"));var i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:sh(e.type,r),o),s=Um;void 0!==i||s.has(e.type)||(s.add(e.type),l("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ue(e))),a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:1===(t=e.stateNode.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case m:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ve()}}function tg(e,t,n){var r,o=t.updateQueue,a=null!==o?o.lastEffect:null;if(null!==a){var i=a.next,l=i;do{if((l.tag&e)===e){var s=l.destroy;l.destroy=void 0,void 0!==s&&(8&e?(r=t,null!==Ar&&"function"==typeof Ar.markComponentPassiveEffectUnmountStarted&&Ar.markComponentPassiveEffectUnmountStarted(r)):4&e&&Yr(t),2&e&&Uy(!0),Gm(t,n,s),2&e&&Uy(!1),8&e?null!==Ar&&"function"==typeof Ar.markComponentPassiveEffectUnmountStopped&&Ar.markComponentPassiveEffectUnmountStopped():4&e&&Qr())}l=l.next}while(l!==i)}}function ng(e,t){var n,r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var a=o.next,i=a;do{if((i.tag&e)===e){8&e?(n=t,null!==Ar&&"function"==typeof Ar.markComponentPassiveEffectMountStarted&&Ar.markComponentPassiveEffectMountStarted(n)):4&e&&qr(t);var s=i.create;2&e&&Uy(!0),i.destroy=s(),2&e&&Uy(!1),8&e?null!==Ar&&"function"==typeof Ar.markComponentPassiveEffectMountStopped&&Ar.markComponentPassiveEffectMountStopped():4&e&&null!==Ar&&"function"==typeof Ar.markComponentLayoutEffectMountStopped&&Ar.markComponentLayoutEffectMountStopped();var u=i.destroy;if(void 0!==u&&"function"!=typeof u){var c;l("%s must not return anything besides a function, which is used for clean-up.%s",c=4&i.tag?"useLayoutEffect":2&i.tag?"useInsertionEffect":"useEffect",null===u?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof u.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+u)}}i=i.next}while(i!==a)}}function rg(e,t){if(4&t.flags&&t.tag===d){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,o=r.id,a=r.onPostCommit,i=Jp(),l=null===t.alternate?"mount":"update";Xp()&&(l="nested-update"),"function"==typeof a&&a(o,l,n,i);var s=t.return;e:for(;null!==s;){switch(s.tag){case 3:case d:s.stateNode.passiveEffectDuration+=n;break e}s=s.return}}}function og(e,t,n,r){if(n.flags&ur)switch(n.tag){case 0:case c:case h:if(!jm)if(2&n.mode)try{ah(),ng(5,n)}finally{rh(n)}else ng(5,n);break;case 1:var o=n.stateNode;if(4&n.flags&&!jm)if(null===t)if(n.type!==n.elementType||Vh||(o.props!==n.memoizedProps&&l("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.",Ue(n)||"instance"),o.state!==n.memoizedState&&l("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.",Ue(n)||"instance")),2&n.mode)try{ah(),o.componentDidMount()}finally{rh(n)}else o.componentDidMount();else{var a=n.elementType===n.type?t.memoizedProps:sh(n.type,t.memoizedProps),i=t.memoizedState;if(n.type!==n.elementType||Vh||(o.props!==n.memoizedProps&&l("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.",Ue(n)||"instance"),o.state!==n.memoizedState&&l("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.",Ue(n)||"instance")),2&n.mode)try{ah(),o.componentDidUpdate(a,i,o.__reactInternalSnapshotBeforeUpdate)}finally{rh(n)}else o.componentDidUpdate(a,i,o.__reactInternalSnapshotBeforeUpdate)}var s=n.updateQueue;null!==s&&(n.type!==n.elementType||Vh||(o.props!==n.memoizedProps&&l("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.",Ue(n)||"instance"),o.state!==n.memoizedState&&l("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.",Ue(n)||"instance")),Bd(0,s,o));break;case 3:var u=n.updateQueue;if(null!==u){var p=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:p=n.child.stateNode}Bd(0,u,p)}break;case 5:var w=n.stateNode;null===t&&4&n.flags&&function(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(w,n.type,n.memoizedProps);break;case 6:case 4:break;case d:var k=n.memoizedProps,S=k.onCommit,x=k.onRender,C=n.stateNode.effectDuration,T=Jp(),E=null===t?"mount":"update";Xp()&&(E="nested-update"),"function"==typeof x&&x(n.memoizedProps.id,E,n.actualDuration,n.treeBaseDuration,n.actualStartTime,T),"function"==typeof S&&S(n.memoizedProps.id,E,C,T),_=n,Lv.push(_),Pv||(Pv=!0,zy(Or,(function(){return vy(),null})));var R=n.return;e:for(;null!==R;){switch(R.tag){case 3:case d:R.stateNode.effectDuration+=C;break e}R=R.return}break;case f:!function(e,t){if(null===t.memoizedState){var n=t.alternate;if(null!==n){var r=n.memoizedState;if(null!==r){var o=r.dehydrated;null!==o&&function(e){Wa(e)}(o)}}}}(0,n);break;case g:case m:case v:case y:case b:case 25:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}var _;jm||n.flags&Kn&&ig(n)}function ag(e){switch(e.tag){case 0:case c:case h:if(2&e.mode)try{ah(),qm(e,e.return)}finally{rh(e)}else qm(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(n){ky(e,t,n)}}(e,e.return,t),Qm(e,e.return);break;case 5:Qm(e,e.return)}}function ig(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var o;if(2&e.mode)try{ah(),o=t(n)}finally{rh(e)}else o=t(n);"function"==typeof o&&l("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else t.hasOwnProperty("current")||l("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ue(e)),t.current=n}}function lg(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,lg(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[ou],delete t[au],delete t[lu],delete t[su],delete t[uu])}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sg(e){return 5===e.tag||3===e.tag||4===e.tag}function ug(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||sg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function cg(e){var t=function(e){for(var t=e.return;null!==t;){if(sg(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(Ys(n),t.flags&=-33),fg(e,ug(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;dg(e,ug(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function dg(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,o,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&ks(n)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){dg(a,t,n);for(var i=a.sibling;null!==i;)dg(i,t,n),i=i.sibling}}}function fg(e,t,n){var r=e.tag;if(5===r||6===r){var o=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,o,t):function(e,t){e.appendChild(t)}(n,o)}else if(4===r);else{var a=e.child;if(null!==a){fg(a,t,n);for(var i=a.sibling;null!==i;)fg(i,t,n),i=i.sibling}}}var pg=null,hg=!1;function mg(e,t,n){var r,o,a=t;e:for(;null!==a;){switch(a.tag){case 5:pg=a.stateNode,hg=!1;break e;case 3:case 4:pg=a.stateNode.containerInfo,hg=!0;break e}a=a.return}if(null===pg)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vg(e,t,n),pg=null,hg=!1,null!==(o=(r=n).alternate)&&(o.return=null),r.return=null}function gg(e,t,n){for(var r=n.child;null!==r;)vg(e,t,r),r=r.sibling}function vg(e,t,n){switch(function(e){if(Mr&&"function"==typeof Mr.onCommitFiberUnmount)try{Mr.onCommitFiberUnmount(zr,e)}catch(e){Ur||(Ur=!0,l("React instrumentation encountered an error: %s",e))}}(n),n.tag){case 5:jm||Km(n,t);case 6:var r=pg,o=hg;return pg=null,gg(e,t,n),hg=o,void(null!==(pg=r)&&(hg?(S=pg,x=n.stateNode,8===S.nodeType?S.parentNode.removeChild(x):S.removeChild(x)):function(e,t){e.removeChild(t)}(pg,n.stateNode)));case 18:return void(null!==pg&&(hg?function(e,t){8===e.nodeType?Qs(e.parentNode,t):1===e.nodeType&&Qs(e,t),Wa(e)}(pg,n.stateNode):Qs(pg,n.stateNode)));case 4:var a=pg,i=hg;return pg=n.stateNode.containerInfo,hg=!0,gg(e,t,n),pg=a,void(hg=i);case 0:case c:case p:case h:if(!jm){var s=n.updateQueue;if(null!==s){var u=s.lastEffect;if(null!==u){var d=u.next,f=d;do{var m=f,g=m.destroy,b=m.tag;void 0!==g&&(2&b?Gm(n,t,g):4&b&&(Yr(n),2&n.mode?(ah(),Gm(n,t,g),rh(n)):Gm(n,t,g),Qr())),f=f.next}while(f!==d)}}}return void gg(e,t,n);case 1:if(!jm){Km(n,t);var w=n.stateNode;"function"==typeof w.componentWillUnmount&&Ym(n,t,w)}return void gg(e,t,n);case v:return void gg(e,t,n);case y:if(1&n.mode){var k=jm;jm=k||null!==n.memoizedState,gg(e,t,n),jm=k}else gg(e,t,n);break;default:return void gg(e,t,n)}var S,x}function yg(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Bm),t.forEach((function(t){var r=Ty.bind(null,e,t);if(!n.has(t)){if(n.add(t),Fr){if(null===Hm||null===Vm)throw Error("Expected finished root and lanes to be set. This is a bug in React.");Iy(Vm,Hm)}t.then(r,r)}}))}}function bg(e,t,n){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{mg(e,t,a)}catch(e){ky(a,t,e)}}var i=je;if(12854&t.subtreeFlags)for(var l=t.child;null!==l;)$e(l),wg(l,e),l=l.sibling;$e(i)}function wg(e,t,n){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case c:case p:case h:if(bg(t,e),kg(e),4&o){try{tg(3,e,e.return),ng(3,e)}catch(t){ky(e,e.return,t)}if(2&e.mode){try{ah(),tg(5,e,e.return)}catch(t){ky(e,e.return,t)}rh(e)}else try{tg(5,e,e.return)}catch(t){ky(e,e.return,t)}}return;case 1:return bg(t,e),kg(e),void(o&Kn&&null!==r&&Km(r,r.return));case 5:if(bg(t,e),kg(e),o&Kn&&null!==r&&Km(r,r.return),32&e.flags){var a=e.stateNode;try{Ys(a)}catch(t){ky(e,e.return,t)}}if(4&o){var i=e.stateNode;if(null!=i){var l=e.memoizedProps,s=null!==r?r.memoizedProps:l,u=e.type,d=e.updateQueue;if(e.updateQueue=null,null!==d)try{!function(e,t,n,r,o){(function(e,t,n,r,o){switch("input"===n&&"radio"===o.type&&null!=o.name&&ut(e,o),an(n,r),function(e,t,n,r){for(var o=0;o<t.length;o+=2){var a=t[o],i=t[o+1];a===ps?tn(e,i):a===ss?Mt(e,i):a===fs?At(e,i):J(e,a,i,r)}}(e,t,0,an(n,o)),n){case"input":ct(e,o);break;case"textarea":_t(e,o);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var o=t.value;null!=o?St(n,!!t.multiple,o,!1):r!==!!t.multiple&&(null!=t.defaultValue?St(n,!!t.multiple,t.defaultValue,!0):St(n,!!t.multiple,t.multiple?[]:"",!1))}(e,o)}})(e,t,n,r,o),yu(e,o)}(i,d,u,s,l)}catch(t){ky(e,e.return,t)}}}return;case 6:if(bg(t,e),kg(e),4&o){if(null===e.stateNode)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var m=e.stateNode,w=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(m,0,w)}catch(t){ky(e,e.return,t)}}return;case 3:if(bg(t,e),kg(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Wa(t.containerInfo)}catch(t){ky(e,e.return,t)}return;case 4:return bg(t,e),void kg(e);case f:bg(t,e),kg(e);var k=e.child;if(k.flags&Zn){var S=k.stateNode,x=null!==k.memoizedState;S.isHidden=x,x&&(null!==k.alternate&&null!==k.alternate.memoizedState||(bv=Er()))}if(4&o){try{!function(e){e.memoizedState}(e)}catch(t){ky(e,e.return,t)}yg(e)}return;case y:var C=null!==r&&null!==r.memoizedState;if(1&e.mode){var T=jm;jm=T||C,bg(t,e),jm=T}else bg(t,e);if(kg(e),o&Zn){var E=e.stateNode,R=null!==e.memoizedState,_=e;if(E.isHidden=R,R&&!C&&1&_.mode){Wm=_;for(var P=_.child;null!==P;)Wm=P,Tg(P),P=P.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var o=r.stateNode;t?Ks(o):Gs(r.stateNode,r.memoizedProps)}catch(t){ky(e,e.return,t)}}}else if(6===r.tag){if(null===n)try{var a=r.stateNode;t?a.nodeValue="":Xs(a,r.memoizedProps)}catch(t){ky(e,e.return,t)}}else if((r.tag!==y&&r.tag!==b||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(_,R)}return;case g:return bg(t,e),kg(e),void(4&o&&yg(e));case v:return;default:return bg(t,e),void kg(e)}}function kg(e){var t=e.flags;if(2&t){try{cg(e)}catch(t){ky(e,e.return,t)}e.flags&=-3}t&Jn&&(e.flags&=-4097)}function Sg(e,t,n){Hm=n,Vm=t,Wm=e,xg(e,t,n),Hm=null,Vm=null}function xg(e,t,n){for(var r=!!(1&e.mode);null!==Wm;){var o=Wm,a=o.child;if(o.tag===y&&r){var i=null!==o.memoizedState||Fm;if(i){Cg(e);continue}var l=o.alternate,s=null!==l&&null!==l.memoizedState,u=Fm,c=jm;Fm=i,(jm=s||jm)&&!c&&(Wm=o,Rg(o));for(var d=a;null!==d;)Wm=d,xg(d,t,n),d=d.sibling;Wm=o,Fm=u,jm=c,Cg(e)}else o.subtreeFlags&ur&&null!==a?(a.return=o,Wm=a):Cg(e)}}function Cg(e,t,n){for(;null!==Wm;){var r=Wm;if(r.flags&ur){var o=r.alternate;$e(r);try{og(0,o,r)}catch(e){ky(r,r.return,e)}Ve()}if(r===e)return void(Wm=null);var a=r.sibling;if(null!==a)return a.return=r.return,void(Wm=a);Wm=r.return}}function Tg(e){for(;null!==Wm;){var t=Wm,n=t.child;switch(t.tag){case 0:case c:case p:case h:if(2&t.mode)try{ah(),tg(4,t,t.return)}finally{rh(t)}else tg(4,t,t.return);break;case 1:Km(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&Ym(t,t.return,r);break;case 5:Km(t,t.return);break;case y:if(null!==t.memoizedState){Eg(e);continue}}null!==n?(n.return=t,Wm=n):Eg(e)}}function Eg(e){for(;null!==Wm;){var t=Wm;if(t===e)return void(Wm=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Wm=n);Wm=t.return}}function Rg(e){for(;null!==Wm;){var t=Wm,n=t.child;t.tag!==y||null===t.memoizedState?null!==n?(n.return=t,Wm=n):_g(e):_g(e)}}function _g(e){for(;null!==Wm;){var t=Wm;$e(t);try{ag(t)}catch(e){ky(t,t.return,e)}if(Ve(),t===e)return void(Wm=null);var n=t.sibling;if(null!==n)return n.return=t.return,void(Wm=n);Wm=t.return}}function Pg(e,t,n,r){for(;null!==Wm;){var o=Wm;if(o.flags&Xn){$e(o);try{Og(0,o)}catch(e){ky(o,o.return,e)}Ve()}if(o===e)return void(Wm=null);var a=o.sibling;if(null!==a)return a.return=o.return,void(Wm=a);Wm=o.return}}function Og(e,t,n,r){switch(t.tag){case 0:case c:case h:if(2&t.mode){ih();try{ng(9,t)}finally{oh(t)}}else ng(9,t)}}function Dg(){for(;null!==Wm;){var e=Wm;e.flags&Xn&&($e(e),Lg(e),Ve());var t=e.sibling;if(null!==t)return t.return=e.return,void(Wm=t);Wm=e.return}}function Lg(e){switch(e.tag){case 0:case c:case h:2&e.mode?(ih(),tg(9,e,e.return),oh(e)):tg(9,e,e.return)}}function Ig(e,t){for(;null!==Wm;){var n=Wm;$e(n),zg(n,t),Ve();var r=n.child;null!==r?(r.return=n,Wm=r):Ng(e)}}function Ng(e){for(;null!==Wm;){var t=Wm,n=t.sibling,r=t.return;if(lg(t),t===e)return void(Wm=null);if(null!==n)return n.return=r,void(Wm=n);Wm=r}}function zg(e,t){switch(e.tag){case 0:case c:case h:2&e.mode?(ih(),tg(8,e,t),oh(e)):tg(8,e,t)}}function Mg(e){switch(e.tag){case 0:case c:case h:try{ng(5,e)}catch(t){ky(e,e.return,t)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(t){ky(e,e.return,t)}}}function Ag(e){switch(e.tag){case 0:case c:case h:try{ng(9,e)}catch(t){ky(e,e.return,t)}}}function Ug(e){switch(e.tag){case 0:case c:case h:try{tg(5,e,e.return)}catch(t){ky(e,e.return,t)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Ym(e,e.return,t)}}function Fg(e){switch(e.tag){case 0:case c:case h:try{tg(9,e,e.return)}catch(t){ky(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var jg=Symbol.for;jg("selector.component"),jg("selector.has_pseudo_class"),jg("selector.role"),jg("selector.test_id"),jg("selector.text")}var Bg=[],Wg=o.ReactCurrentActQueue;function Hg(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===Wg.current||l("The current testing environment is not configured to support act(...)"),e}var Vg=Math.ceil,$g=o.ReactCurrentDispatcher,qg=o.ReactCurrentOwner,Yg=o.ReactCurrentBatchConfig,Qg=o.ReactCurrentActQueue,Kg=0,Gg=2,Xg=4,Jg=0,Zg=1,ev=2,tv=3,nv=4,rv=5,ov=6,av=Kg,iv=null,lv=null,sv=0,uv=0,cv=Ru(0),dv=Jg,fv=null,pv=0,hv=0,mv=0,gv=0,vv=null,yv=null,bv=0,wv=500,kv=1/0,Sv=500,xv=null;function Cv(){kv=Er()+Sv}function Tv(){return kv}var Ev=!1,Rv=null,_v=null,Pv=!1,Ov=null,Dv=0,Lv=[],Iv=50,Nv=0,zv=null,Mv=!1,Av=!1,Uv=50,Fv=0,jv=null,Bv=Ao,Wv=0,Hv=!1;function Vv(){return iv}function $v(){return(av&(Gg|Xg))!==Kg?Er():Bv!==Ao?Bv:Bv=Er()}function qv(e){if(!(1&e.mode))return oo;if((av&Gg)!==Kg&&0!==sv)return Go(sv);if(null!==Ic.transition){if(null!==Yg.transition){var t=Yg.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===Wv&&(Wv=Qo()),Wv}var n,r=wa();return 0!==r?r:void 0===(n=window.event)?va:Xa(n.type)}function Yv(e,t,n,r){!function(){if(Nv>Iv)throw Nv=0,zv=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Fv>Uv&&(Fv=0,jv=null,l("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."))}(),Hv&&l("useInsertionEffect must not schedule updates."),Mv&&(Av=!0),aa(e,n,r),av&Gg&&e===iv?function(e){if(Be&&!Tp)switch(e.tag){case 0:case c:case h:var t=lv&&Ue(lv)||"Unknown",n=t;Dy.has(n)||(Dy.add(n),l("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",Ue(e)||"Unknown",t,t));break;case 1:Ly||(l("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Ly=!0)}}(t):(Fr&&sa(e,t,n),function(e){if(1&e.mode){if(!Hg())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(av!==Kg)return;if(0!==e.tag&&e.tag!==c&&e.tag!==h)return}var t;if(null===Qg.current){var n=je;try{$e(e),l("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis 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",Ue(e))}finally{n?$e(e):Ve()}}}(t),e===iv&&((av&Gg)===Kg&&(mv=ta(mv,n)),dv===nv&&Jv(e,sv)),Qv(e,r),n!==oo||av!==Kg||1&t.mode||Qg.isBatchingLegacy||(Cv(),Ku()))}function Qv(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,i=n;i>0;){var l=Xo(i),s=1<<l,u=a[l];u===Ao?s&r&&!(s&o)||(a[l]=Wo(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=Bo(e,e===iv?sv:0);if(0===r)return null!==n&&My(n),e.callbackNode=null,void(e.callbackPriority=0);var o=Ko(r),a=e.callbackPriority;if(a!==o||null!==Qg.current&&n!==Ny){var i,s;if(null!=n&&My(n),o===oo)0===e.tag?(null!==Qg.isBatchingLegacy&&(Qg.didScheduleLegacyUpdate=!0),s=Zv.bind(null,e),qu=!0,Qu(s)):Qu(Zv.bind(null,e)),null!==Qg.current?Qg.current.push(Gu):$s((function(){(av&(Gg|Xg))===Kg&&Gu()})),i=null;else{var u;switch(xa(r)){case ma:u=_r;break;case ga:u=Pr;break;case va:u=Or;break;case ya:u=Lr;break;default:u=Or}i=zy(u,Kv.bind(null,e))}e.callbackPriority=o,e.callbackNode=i}else null==n&&a!==oo&&l("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function Kv(e,t){if(Kp=!1,Gp=!1,Bv=Ao,Wv=0,(av&(Gg|Xg))!==Kg)throw new Error("Should not already be working.");var n=e.callbackNode;if(vy()&&e.callbackNode!==n)return null;var r=Bo(e,e===iv?sv:0);if(0===r)return null;var o=!qo(0,r)&&!function(e,t){return!!(t&e.expiredLanes)}(e,r)&&!t,a=o?function(e,t){var n=av;av|=Gg;var r=ly();if(iv!==e||sv!==t){if(Fr){var o=e.memoizedUpdaters;o.size>0&&(Iy(e,sv),o.clear()),ua(e,t)}xv=null,Cv(),ay(e,t)}for(Gr(t);;)try{py();break}catch(t){iy(e,t)}return dd(),sy(r),av=n,null!==lv?(null!==Ar&&"function"==typeof Ar.markRenderYielded&&Ar.markRenderYielded(),Jg):(Xr(),iv=null,sv=0,dv)}(e,r):dy(e,r);if(a!==Jg){if(a===ev){var i=Ho(e);0!==i&&(r=i,a=Gv(e,i))}if(a===Zg){var l=fv;throw ay(e,0),Jv(e,r),Qv(e,Er()),l}if(a===ov)Jv(e,r);else{var s=!qo(0,r),u=e.current.alternate;if(s&&!function(e){for(var t=e;;){if(t.flags&er){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o],i=a.getSnapshot,l=a.value;try{if(!ll(i(),l))return!1}catch(e){return!1}}}}var s=t.child;if(t.subtreeFlags&er&&null!==s)s.return=t,t=s;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(u)){if((a=dy(e,r))===ev){var c=Ho(e);0!==c&&(r=c,a=Gv(e,c))}if(a===Zg){var d=fv;throw ay(e,0),Jv(e,r),Qv(e,Er()),d}}e.finishedWork=u,e.finishedLanes=r,function(e,t,n){switch(t){case Jg:case Zg:throw new Error("Root did not complete. This is a bug in React.");case ev:gy(e,yv,xv);break;case tv:if(Jv(e,n),$o(n)&&!Ay()){var r=bv+wv-Er();if(r>10){if(0!==Bo(e,0))break;var o=e.suspendedLanes;if(!ea(o,n)){$v(),ia(e,o);break}e.timeoutHandle=Ws(gy.bind(null,e,yv,xv),r);break}}gy(e,yv,xv);break;case nv:if(Jv(e,n),function(e){return(e&co)===e}(n))break;if(!Ay()){var a=function(e,t){for(var n=e.eventTimes,r=Ao;t>0;){var o=Xo(t),a=1<<o,i=n[o];i>r&&(r=i),t&=~a}return r}(e,n),i=a,l=Er()-i,s=((u=l)<120?120:u<480?480:u<1080?1080:u<1920?1920:u<3e3?3e3:u<4320?4320:1960*Vg(u/1960))-l;if(s>10){e.timeoutHandle=Ws(gy.bind(null,e,yv,xv),s);break}}gy(e,yv,xv);break;case rv:gy(e,yv,xv);break;default:throw new Error("Unknown root exit status.")}var u}(e,a,r)}}return Qv(e,Er()),e.callbackNode===n?Kv.bind(null,e):null}function Gv(e,t){var n=vv;Ca(e)&&(ay(e,t).flags|=Qn,l("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=dy(e,t);if(r!==ev){var o=yv;yv=n,null!==o&&Xv(o)}return r}function Xv(e){null===yv?yv=e:yv.push.apply(yv,e)}function Jv(e,t){t=na(t,gv),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var o=Xo(r),a=1<<o;n[o]=Ao,r&=~a}}(e,t=na(t,mv))}function Zv(e){if(Kp=Gp,Gp=!1,(av&(Gg|Xg))!==Kg)throw new Error("Should not already be working.");vy();var t=Bo(e,0);if(!Zo(t,oo))return Qv(e,Er()),null;var n=dy(e,t);if(0!==e.tag&&n===ev){var r=Ho(e);0!==r&&(t=r,n=Gv(e,r))}if(n===Zg){var o=fv;throw ay(e,0),Jv(e,t),Qv(e,Er()),o}if(n===ov)throw new Error("Root did not complete. This is a bug in React.");var a=e.current.alternate;return e.finishedWork=a,e.finishedLanes=t,gy(e,yv,xv),Qv(e,Er()),null}function ey(e,t){var n=av;av|=1;try{return e(t)}finally{(av=n)!==Kg||Qg.isBatchingLegacy||(Cv(),Ku())}}function ty(e){null!==Ov&&0===Ov.tag&&(av&(Gg|Xg))===Kg&&vy();var t=av;av|=1;var n=Yg.transition,r=wa();try{return Yg.transition=null,ka(ma),e?e():void 0}finally{ka(r),Yg.transition=n,((av=t)&(Gg|Xg))===Kg&&Gu()}}function ny(){return(av&(Gg|Xg))!==Kg}function ry(e,t){Pu(cv,uv,e),uv=ta(uv,t),pv=ta(pv,t)}function oy(e){uv=cv.current,_u(cv,e)}function ay(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hs(n)),null!==lv)for(var r=lv.return;null!==r;)r.alternate,Am(0,r),r=r.return;iv=e;var o=rb(e.current,null);return lv=o,sv=uv=pv=t,dv=Jg,fv=null,hv=0,mv=0,gv=0,vv=null,yv=null,function(){if(null!==bd){for(var e=0;e<bd.length;e++){var t=bd[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,o=t.pending;if(null!==o){var a=o.next;o.next=r,n.next=a}t.pending=n}}bd=null}}(),Nc.discardPendingWarnings(),o}function iy(e,t){for(;;){var n=lv;try{if(dd(),zf(),Ve(),qg.current=null,null===n||null===n.return)return dv=Zg,fv=t,void(lv=null);2&n.mode&&nh(n,!0),$r(),null!==t&&"object"==typeof t&&"function"==typeof t.then?(r=n,o=t,a=sv,null!==Ar&&"function"==typeof Ar.markComponentSuspended&&Ar.markComponentSuspended(r,o,a)):Kr(n,t,sv),Uh(e,n.return,n,t,sv),my(n)}catch(e){t=e,lv===n&&null!==n?(n=n.return,lv=n):n=lv;continue}return}var r,o,a}function ly(){var e=$g.current;return $g.current=Np,null===e?Np:e}function sy(e){$g.current=e}function uy(e){hv=ta(e,hv)}function cy(){dv!==Jg&&dv!==tv&&dv!==ev||(dv=nv),null!==iv&&(Vo(hv)||Vo(mv))&&Jv(iv,sv)}function dy(e,t){var n=av;av|=Gg;var r=ly();if(iv!==e||sv!==t){if(Fr){var o=e.memoizedUpdaters;o.size>0&&(Iy(e,sv),o.clear()),ua(e,t)}xv=null,ay(e,t)}for(Gr(t);;)try{fy();break}catch(t){iy(e,t)}if(dd(),av=n,sy(r),null!==lv)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Xr(),iv=null,sv=0,dv}function fy(){for(;null!==lv;)hy(lv)}function py(){for(;null!==lv&&!Cr();)hy(lv)}function hy(e){var t,n=e.alternate;$e(e),2&e.mode?(eh(e),t=_y(n,e,uv),nh(e,!0)):t=_y(n,e,uv),Ve(),e.memoizedProps=e.pendingProps,null===t?my(e):lv=t,qg.current=null}function my(e){var t=e;do{var n=t.alternate,r=t.return;if(t.flags&tr){var o=Mm(0,t);if(null!==o)return o.flags&=32767,void(lv=o);if(2&t.mode){nh(t,!1);for(var a=t.actualDuration,i=t.child;null!==i;)a+=i.actualDuration,i=i.sibling;t.actualDuration=a}if(null===r)return dv=ov,void(lv=null);r.flags|=tr,r.subtreeFlags=0,r.deletions=null}else{$e(t);var l=void 0;if(2&t.mode?(eh(t),l=zm(n,t,uv),nh(t,!1)):l=zm(n,t,uv),Ve(),null!==l)return void(lv=l)}var s=t.sibling;if(null!==s)return void(lv=s);lv=t=r}while(null!==t);dv===Jg&&(dv=rv)}function gy(e,t,n){var r=wa(),o=Yg.transition;try{Yg.transition=null,ka(ma),function(e,t,n,r){do{vy()}while(null!==Ov);if(Nc.flushLegacyContextWarning(),Nc.flushPendingUnsafeLifecycleWarnings(),(av&(Gg|Xg))!==Kg)throw new Error("Should not already be working.");var o=e.finishedWork,a=e.finishedLanes;if(function(e){null!==Ar&&"function"==typeof Ar.markCommitStarted&&Ar.markCommitStarted(e)}(a),null===o)return Hr(),null;if(0===a&&l("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=0,o===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var i=ta(o.lanes,o.childLanes);(function(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,o=e.eventTimes,a=e.expirationTimes,i=n;i>0;){var l=Xo(i),s=1<<l;r[l]=0,o[l]=Ao,a[l]=Ao,i&=~s}})(e,i),e===iv&&(iv=null,lv=null,sv=0),(o.subtreeFlags&cr||o.flags&cr)&&(Pv||(Pv=!0,zy(Or,(function(){return vy(),null}))));var s=!!(15990&o.subtreeFlags),u=!!(15990&o.flags);if(s||u){var c=Yg.transition;Yg.transition=null;var d=wa();ka(ma);var f=av;av|=Xg,qg.current=null,Jm(e,o),Zp(),function(e,t,n){Hm=n,Vm=e,$e(t),wg(t,e),$e(t),Hm=null,Vm=null}(e,o,a),e.containerInfo,function(e){var t,n,r,o,a=gl(),i=e.focusedElem,l=e.selectionRange;if(a!==i&&hl(i)){null!==l&&vl(i)&&(t=i,r=(n=l).start,void 0===(o=n.end)&&(o=r),"selectionStart"in t?(t.selectionStart=r,t.selectionEnd=Math.min(o,t.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var o=r.getSelection(),a=e.textContent.length,i=Math.min(t.start,a),l=void 0===t.end?i:Math.min(t.end,a);if(!o.extend&&i>l){var s=l;l=i,i=s}var u=dl(e,i),c=dl(e,l);if(u&&c){if(1===o.rangeCount&&o.anchorNode===u.node&&o.anchorOffset===u.offset&&o.focusNode===c.node&&o.focusOffset===c.offset)return;var d=n.createRange();d.setStart(u.node,u.offset),o.removeAllRanges(),i>l?(o.addRange(d),o.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),o.addRange(d))}}}(t,n));for(var s=[],u=i;u=u.parentNode;)1===u.nodeType&&s.push({element:u,left:u.scrollLeft,top:u.scrollTop});"function"==typeof i.focus&&i.focus();for(var c=0;c<s.length;c++){var d=s[c];d.element.scrollLeft=d.left,d.element.scrollTop=d.top}}}(js),$a(Fs),Fs=null,js=null,e.current=o,function(e){null!==Ar&&"function"==typeof Ar.markLayoutEffectsStarted&&Ar.markLayoutEffectsStarted(e)}(a),Sg(o,e,a),null!==Ar&&"function"==typeof Ar.markLayoutEffectsStopped&&Ar.markLayoutEffectsStopped(),Tr(),av=f,ka(d),Yg.transition=c}else e.current=o,Zp();var p=Pv;if(Pv?(Pv=!1,Ov=e,Dv=a):(Fv=0,jv=null),0===(i=e.pendingLanes)&&(_v=null),p||Ey(e.current,!1),function(e,t){if(Mr&&"function"==typeof Mr.onCommitFiberRoot)try{var n,r=(e.current.flags&Yn)===Yn;switch(t){case ma:n=_r;break;case ga:n=Pr;break;case va:n=Or;break;case ya:n=Lr;break;default:n=Or}Mr.onCommitFiberRoot(zr,e,n,r)}catch(e){Ur||(Ur=!0,l("React instrumentation encountered an error: %s",e))}}(o.stateNode,r),Fr&&e.memoizedUpdaters.clear(),Bg.forEach((function(e){return e()})),Qv(e,Er()),null!==t)for(var h=e.onRecoverableError,m=0;m<t.length;m++){var g=t[m],v=g.stack,y=g.digest;h(g.value,{componentStack:v,digest:y})}if(Ev){Ev=!1;var b=Rv;throw Rv=null,b}Zo(Dv,oo)&&0!==e.tag&&vy(),Zo(i=e.pendingLanes,oo)?(Gp=!0,e===zv?Nv++:(Nv=0,zv=e)):Nv=0,Gu(),Hr()}(e,t,n,r)}finally{Yg.transition=o,ka(r)}return null}function vy(){if(null!==Ov){var e=(o=xa(Dv),0===(r=va)||r>o?r:o),t=Yg.transition,n=wa();try{return Yg.transition=null,ka(e),function(){if(null===Ov)return!1;0;var e=Ov,t=Dv;if(Ov=null,Dv=0,(av&(Gg|Xg))!==Kg)throw new Error("Cannot flush passive effects while already rendering.");Mv=!0,Av=!1,function(e){null!==Ar&&"function"==typeof Ar.markPassiveEffectsStarted&&Ar.markPassiveEffectsStarted(e)}(t);var n,r,o=av;av|=Xg,r=e.current,Wm=r,function(){for(;null!==Wm;){var e=Wm,t=e.child;if(16&Wm.flags){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var o=n[r];Wm=o,Ig(o,e)}var a=e.alternate;if(null!==a){var i=a.child;if(null!==i){a.child=null;do{var l=i.sibling;i.sibling=null,i=l}while(null!==i)}}Wm=e}}e.subtreeFlags&cr&&null!==t?(t.return=e,Wm=t):Dg()}}(),n=e.current,Wm=n,function(e){for(;null!==Wm;){var t=Wm,n=t.child;t.subtreeFlags&cr&&null!==n?(n.return=t,Wm=n):Pg(e)}}(n);var a=Lv;Lv=[];for(var i=0;i<a.length;i++)rg(0,a[i]);null!==Ar&&"function"==typeof Ar.markPassiveEffectsStopped&&Ar.markPassiveEffectsStopped(),Ey(e.current,!0),av=o,Gu(),Av?e===jv?Fv++:(Fv=0,jv=e):Fv=0,Mv=!1,Av=!1,function(e){if(Mr&&"function"==typeof Mr.onPostCommitFiberRoot)try{Mr.onPostCommitFiberRoot(zr,e)}catch(e){Ur||(Ur=!0,l("React instrumentation encountered an error: %s",e))}}(e);var s=e.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{ka(n),Yg.transition=t}}var r,o;return!1}function yy(e){return null!==_v&&_v.has(e)}var by=function(e){Ev||(Ev=!0,Rv=e)};function wy(e,t,n){var r=Id(e,Ih(e,Ph(n,t),oo),oo),o=$v();null!==r&&(aa(r,oo,o),Qv(r,o))}function ky(e,t,n){if(function(e){Vn(null,(function(){throw e})),$n()}(n),Uy(!1),3!==e.tag){var r=null;for(r=t;null!==r;){if(3===r.tag)return void wy(r,e,n);if(1===r.tag){var o=r.type,a=r.stateNode;if("function"==typeof o.getDerivedStateFromError||"function"==typeof a.componentDidCatch&&!yy(a)){var i=Id(r,Nh(r,Ph(n,e),oo),oo),s=$v();return void(null!==i&&(aa(i,oo,s),Qv(i,s)))}}r=r.return}l("Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s",n)}else wy(e,e,n)}function Sy(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var o=$v();ia(e,n),function(e){0!==e.tag&&Hg()&&null===Qg.current&&l("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis 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")}(e),iv===e&&ea(sv,n)&&(dv===nv||dv===tv&&$o(sv)&&Er()-bv<wv?ay(e,0):gv=ta(gv,n)),Qv(e,o)}function xy(e,t){var n;0===t&&(t=1&e.mode?(n=Fo,(Fo<<=1)&Co||(Fo=To),n):oo);var r=$v(),o=Sd(e,t);null!==o&&(aa(o,t,r),Qv(o,r))}function Cy(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xy(e,n)}function Ty(e,t){var n,r=0;switch(e.tag){case f:n=e.stateNode;var o=e.memoizedState;null!==o&&(r=o.retryLane);break;case g:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),xy(e,r)}function Ey(e,t){$e(e),Ry(e,lr,Ug),t&&Ry(e,sr,Fg),Ry(e,lr,Mg),t&&Ry(e,sr,Ag),Ve()}function Ry(e,t,n){for(var r=e,o=null;null!==r;){var a=r.subtreeFlags&t;r!==o&&null!==r.child&&0!==a?r=r.child:(r.flags&t&&n(r),r=null!==r.sibling?r.sibling:o=r.return)}}var _y,Py=null;function Oy(e){if((av&Gg)===Kg&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===c||t===p||t===h){var n=Ue(e)||"ReactComponent";if(null!==Py){if(Py.has(n))return;Py.add(n)}else Py=new Set([n]);var r=je;try{$e(e),l("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?$e(e):Ve()}}}}_y=function(e,t,n){var r=db(null,t);try{return Pm(e,t,n)}catch(a){if(mc||null!==a&&"object"==typeof a&&"function"==typeof a.then)throw a;if(dd(),zf(),Am(0,t),db(t,r),2&t.mode&&eh(t),Vn(null,Pm,null,e,t,n),Fn){var o=$n();"object"==typeof o&&null!==o&&o._suppressLogging&&"object"==typeof a&&null!==a&&!a._suppressLogging&&(a._suppressLogging=!0)}throw a}};var Dy,Ly=!1;function Iy(e,t){Fr&&e.memoizedUpdaters.forEach((function(n){sa(e,n,t)}))}Dy=new Set;var Ny={};function zy(e,t){var n=Qg.current;return null!==n?(n.push(t),Ny):Sr(e,t)}function My(e){if(e!==Ny)return xr(e)}function Ay(){return null!==Qg.current}function Uy(e){Hv=e}var Fy=null,jy=null,By=function(e){Fy=e};function Wy(e){if(null===Fy)return e;var t=Fy(e);return void 0===t?e:t.current}function Hy(e){return Wy(e)}function Vy(e){if(null===Fy)return e;var t=Fy(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=Wy(e.render);if(e.render!==n){var r={$$typeof:ie,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function $y(e,t){if(null===Fy)return!1;var n=e.elementType,r=t.type,o=!1,a="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(o=!0);break;case 0:("function"==typeof r||a===ce)&&(o=!0);break;case c:(a===ie||a===ce)&&(o=!0);break;case p:case h:(a===ue||a===ce)&&(o=!0);break;default:return!1}if(o){var i=Fy(n);if(void 0!==i&&i===Fy(r))return!0}return!1}function qy(e){null!==Fy&&"function"==typeof WeakSet&&(null===jy&&(jy=new WeakSet),jy.add(e))}var Yy=function(e,t){if(null!==Fy){var n=t.staleFamilies,r=t.updatedFamilies;vy(),ty((function(){Ky(e.current,r,n)}))}},Qy=function(e,t){e.context===Ou&&(vy(),ty((function(){wb(t,e,null,null)})))};function Ky(e,t,n){var r=e.alternate,o=e.child,a=e.sibling,i=e.tag,l=e.type,s=null;switch(i){case 0:case h:case 1:s=l;break;case c:s=l.render}if(null===Fy)throw new Error("Expected resolveFamily to be set during hot reload.");var u=!1,d=!1;if(null!==s){var f=Fy(s);void 0!==f&&(n.has(f)?d=!0:t.has(f)&&(1===i?d=!0:u=!0))}if(null!==jy&&(jy.has(e)||null!==r&&jy.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||u){var p=Sd(e,oo);null!==p&&Yv(p,e,oo,Ao)}null===o||d||Ky(o,t,n),null!==a&&Ky(a,t,n)}var Gy,Xy=function(e,t){var n=new Set,r=new Set(t.map((function(e){return e.current})));return Jy(e.current,r,n),n};function Jy(e,t,n){var r=e.child,o=e.sibling,a=e.tag,i=e.type,l=null;switch(a){case 0:case h:case 1:l=i;break;case c:l=i.render}var s=!1;null!==l&&t.has(l)&&(s=!0),s?function(e,t){var n=function(e,t){for(var n=e,r=!1;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(!n)for(var r=e;;){switch(r.tag){case 5:return void t.add(r.stateNode);case 4:case 3:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&Jy(r,t,n),null!==o&&Jy(o,t,n)}Gy=!1;try{var Zy=Object.preventExtensions({});new Map([[Zy,null]]),new Set([Zy])}catch(e){Gy=!0}function eb(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=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Gy||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var tb=function(e,t,n,r){return new eb(e,t,n,r)};function nb(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function rb(e,t){var n=e.alternate;null===n?((n=tb(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&dr,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=null===r?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 2:case 0:case h:n.type=Wy(e.type);break;case 1:n.type=Hy(e.type);break;case c:n.type=Vy(e.type)}return n}function ob(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function ab(e,t,n,r,o,a){var i=2,s=e;if("function"==typeof e)nb(e)?(i=1,s=Hy(s)):s=Wy(s);else if("string"==typeof e)i=5;else e:switch(e){case te:return lb(n.children,o,a,t);case ne:i=8,1&(o|=8)&&(o|=Zr);break;case re:return function(e,t,n,r){"string"!=typeof e.id&&l('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var o=tb(d,e,r,2|t);return o.elementType=re,o.lanes=n,o.stateNode={effectDuration:0,passiveEffectDuration:0},o}(n,o,a,t);case le:return function(e,t,n,r){var o=tb(f,e,r,t);return o.elementType=le,o.lanes=n,o}(n,o,a,t);case se:return function(e,t,n,r){var o=tb(g,e,r,t);return o.elementType=se,o.lanes=n,o}(n,o,a,t);case de:return sb(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:i=u;break e;case ae:i=9;break e;case ie:i=c,s=Vy(s);break e;case ue:i=p;break e;case ce:i=16,s=null;break e}var h="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(h+=" 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 m=r?Ue(r):null;throw m&&(h+="\n\nCheck the render method of `"+m+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+h)}var v=tb(i,n,t,o);return v.elementType=e,v.type=s,v.lanes=a,v._debugOwner=r,v}function ib(e,t,n){var r;r=e._owner;var o=ab(e.type,e.key,e.props,r,t,n);return o._debugSource=e._source,o._debugOwner=e._owner,o}function lb(e,t,n,r){var o=tb(7,e,r,t);return o.lanes=n,o}function sb(e,t,n,r){var o=tb(y,e,r,t);return o.elementType=de,o.lanes=n,o.stateNode={isHidden:!1},o}function ub(e,t,n){var r=tb(6,e,null,t);return r.lanes=n,r}function cb(e,t,n){var r=null!==e.children?e.children:[],o=tb(4,r,e.key,t);return o.lanes=n,o.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},o}function db(e,t){return null===e&&(e=tb(2,null,null,0)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function fb(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=oa(0),this.expirationTimes=oa(Ao),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=oa(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var a=this.pendingUpdatersLaneMap=[],i=0;i<ro;i++)a.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function pb(e,t,n,r,o,a,i,l,s,u){var c=new fb(e,t,n,l,s),d=function(e,t){var n;return 1===e?(n=1,!0===t&&(n|=8,n|=Zr)):n=0,Fr&&(n|=2),tb(3,null,null,n)}(t,a);c.current=d,d.stateNode=c;var f={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=f,Od(d),c}var hb,mb,gb="18.3.1";function vb(e){if(!e)return Ou;var t=qn(e),n=function(e){if(!function(e){return pr(e)===e}(e)||1!==e.tag)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case 3:return t.stateNode.context;case 1:if(Uu(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}(t);if(1===t.tag){var r=t.type;if(Uu(r))return Wu(t,r,n)}return n}function yb(e,t,n,r,o,a,i,l){return pb(e,t,!1,null,0,r,0,a,i)}function bb(e,t,n,r,o,a,i,l,s,u){var c=pb(n,r,!0,e,0,a,0,l,s);c.context=vb(null);var d=c.current,f=$v(),p=qv(d),h=Ld(f,p);return h.callback=null!=t?t:null,Id(d,h,p),function(e,t,n){e.current.lanes=t,aa(e,t,n),Qv(e,n)}(c,p,f),c}function wb(e,t,n,r){!function(e,t){if(Mr&&"function"==typeof Mr.onScheduleFiberRoot)try{Mr.onScheduleFiberRoot(zr,e,t)}catch(e){Ur||(Ur=!0,l("React instrumentation encountered an error: %s",e))}}(t,e);var o=t.current,a=$v(),i=qv(o);!function(e){null!==Ar&&"function"==typeof Ar.markRenderScheduled&&Ar.markRenderScheduled(e)}(i);var s=vb(n);null===t.context?t.context=s:t.pendingContext=s,Be&&null!==je&&!hb&&(hb=!0,l("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.\n\nCheck the render method of %s.",Ue(je)||"Unknown"));var u=Ld(a,i);u.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&l("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),u.callback=r);var c=Id(o,u,i);return null!==c&&(Yv(c,o,i,a),Nd(c,o,i)),i}function kb(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function Sb(e,t){var n,r,o=e.memoizedState;null!==o&&null!==o.dehydrated&&(o.retryLane=(r=t,0!==(n=o.retryLane)&&n<r?n:r))}function xb(e,t){Sb(e,t);var n=e.alternate;n&&Sb(n,t)}function Cb(e){var t=wr(e);return null===t?null:t.stateNode}hb=!1,mb={};var Tb,Eb,Rb,_b,Pb,Ob,Db,Lb,Ib,Nb=function(e){return null},zb=function(e){return!1},Mb=function(e,t,n){var r=t[n],o=bt(e)?e.slice():ke({},e);return n+1===t.length?(bt(o)?o.splice(r,1):delete o[r],o):(o[r]=Mb(e[r],t,n+1),o)},Ab=function(e,t){return Mb(e,t,0)},Ub=function(e,t,n,r){var o=t[r],a=bt(e)?e.slice():ke({},e);return r+1===t.length?(a[n[r]]=a[o],bt(a)?a.splice(o,1):delete a[o]):a[o]=Ub(e[o],t,n,r+1),a},Fb=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void i("copyWithRename() expects paths to be the same except for the deepest key");return Ub(e,t,n,0)}i("copyWithRename() expects paths of the same length")},jb=function(e,t,n,r){if(n>=t.length)return r;var o=t[n],a=bt(e)?e.slice():ke({},e);return a[o]=jb(e[o],t,n+1,r),a},Bb=function(e,t,n){return jb(e,t,0,n)},Wb=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function Hb(e){var t=yr(e);return null===t?null:t.stateNode}function Vb(e){return null}function $b(){return je}Tb=function(e,t,n,r){var o=Wb(e,t);if(null!==o){var a=Bb(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=ke({},e.memoizedProps);var i=Sd(e,oo);null!==i&&Yv(i,e,oo,Ao)}},Eb=function(e,t,n){var r=Wb(e,t);if(null!==r){var o=Ab(r.memoizedState,n);r.memoizedState=o,r.baseState=o,e.memoizedProps=ke({},e.memoizedProps);var a=Sd(e,oo);null!==a&&Yv(a,e,oo,Ao)}},Rb=function(e,t,n,r){var o=Wb(e,t);if(null!==o){var a=Fb(o.memoizedState,n,r);o.memoizedState=a,o.baseState=a,e.memoizedProps=ke({},e.memoizedProps);var i=Sd(e,oo);null!==i&&Yv(i,e,oo,Ao)}},_b=function(e,t,n){e.pendingProps=Bb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sd(e,oo);null!==r&&Yv(r,e,oo,Ao)},Pb=function(e,t){e.pendingProps=Ab(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Sd(e,oo);null!==n&&Yv(n,e,oo,Ao)},Ob=function(e,t,n){e.pendingProps=Fb(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=Sd(e,oo);null!==r&&Yv(r,e,oo,Ao)},Db=function(e){var t=Sd(e,oo);null!==t&&Yv(t,e,oo,Ao)},Lb=function(e){Nb=e},Ib=function(e){zb=e};var qb="function"==typeof reportError?reportError:function(e){console.error(e)};function Yb(e){this._internalRoot=e}function Qb(e){this._internalRoot=e}function Kb(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gb(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xb(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&l("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),pu(e)&&(e._reactRootContainer?l("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):l("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}Qb.prototype.render=Yb.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?l("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Kb(arguments[1])?l("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):void 0!==arguments[1]&&l("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=Cb(t.current);r&&r.parentNode!==n&&l("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.")}wb(e,t,null,null)},Qb.prototype.unmount=Yb.prototype.unmount=function(){"function"==typeof arguments[0]&&l("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ny()&&l("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),ty((function(){wb(null,e,null,null)})),fu(t)}},Qb.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=pa(),n={blockedOn:null,target:e,priority:t},r=0;r<Ia.length&&Sa(t,Ia[r].priority);r++);Ia.splice(r,0,n),0===r&&Aa(n)}(e)};var Jb,Zb=o.ReactCurrentOwner;function ew(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function tw(){}function nw(e,t,n,r,o){Jb(n),function(e){null!==e&&"function"!=typeof e&&l("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.","render",e)}(void 0===o?null:o);var a,i=n._reactRootContainer;if(i){if("function"==typeof o){var s=o;o=function(){var e=kb(a);s.call(e)}}wb(t,a=i,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=kb(i);a.call(e)}}var i=bb(t,r,e,0,0,!1,0,"",tw);return e._reactRootContainer=i,du(i.current,e),ql(8===e.nodeType?e.parentNode:e),ty(),i}for(var l;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var s=r;r=function(){var e=kb(u);s.call(e)}}var u=yb(e,0,0,!1,0,"",tw);return e._reactRootContainer=u,du(u.current,e),ql(8===e.nodeType?e.parentNode:e),ty((function(){wb(t,u,n,r)})),u}(n,t,e,o,r);return kb(a)}Jb=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=Cb(e._reactRootContainer.current);t&&t.parentNode!==e&&l("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=ew(e);!(!r||!mu(r))&&!n&&l("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."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&l("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.")};var rw,ow=!1,aw=!1;rw=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Ca(t)){var n=function(e){return jo(e.pendingLanes)}(t);!function(e,t){0!==t&&(la(e,ta(t,oo)),Qv(e,Er()),(av&(Gg|Xg))===Kg&&(Cv(),Gu()))}(t,n)}break;case f:ty((function(){var t=Sd(e,oo);if(null!==t){var n=$v();Yv(t,e,oo,n)}})),xb(e,oo)}},ca=rw,da=function(e){if(e.tag===f){var t=Do,n=Sd(e,t);null!==n&&Yv(n,e,t,$v()),xb(e,t)}},fa=function(e){if(e.tag===f){var t=qv(e),n=Sd(e,t);null!==n&&Yv(n,e,t,$v()),xb(e,t)}},function(e){pa=e}(wa),ha=function(e,t){var n=ba;try{return ba=e,t()}finally{ba=n}},"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||l("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"),Sn=function(e,t,n){switch(t){case"input":return void function(e,t){var n=e;ct(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;D(n,"name");for(var o=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),a=0;a<o.length;a++){var i=o[a];if(i!==e&&i.form===e.form){var l=vu(i);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");et(i),ct(i,l)}}}}(n,t)}(e,n);case"textarea":return void function(e,t){_t(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&St(n,!!t.multiple,r,!1)}(e,n)}},_n=ey,Pn=ty;var iw={usingClientEntryPoint:!1,Events:[mu,gu,vu,En,Rn,ey]},lw=function(e){var t=e.findFiberByHostInstance,n=o.ReactCurrentDispatcher;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return l("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{e=ke({},e,{getLaneLabelMap:Wr,injectProfilingHooks:Br}),zr=t.inject(e),Mr=t}catch(e){l("React instrumentation encountered an error: %s.",e)}return!!t.checkDCE}({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:Tb,overrideHookStateDeletePath:Eb,overrideHookStateRenamePath:Rb,overrideProps:_b,overridePropsDeletePath:Pb,overridePropsRenamePath:Ob,setErrorHandler:Lb,setSuspenseHandler:Ib,scheduleUpdate:Db,currentDispatcherRef:n,findHostInstanceByFiber:Hb,findFiberByHostInstance:t||Vb,findHostInstancesForRefresh:Xy,scheduleRefresh:Yy,scheduleRoot:Qy,setRefreshHandler:By,getCurrentFiber:$b,reconcilerVersion:gb})}({findFiberByHostInstance:hu,bundleType:1,version:gb,rendererPackageName:"react-dom"});if(!lw&&E&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var sw=window.location.protocol;/^(https?|file):$/.test(sw)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===sw?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iw,t.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Kb(t))throw new Error("Target container is not a DOM element.");return function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return P(r=o)&&(l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_(r)),O(r)),{$$typeof:ee,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){return iw.usingClientEntryPoint||l('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!Kb(e))throw new Error("createRoot(...): Target container is not a DOM element.");Xb(e);var n=!1,r="",o=qb;null!=t&&(t.hydrate?i("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===Z&&l("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var a=yb(e,1,0,n,0,r,o);return du(a.current,e),ql(8===e.nodeType?e.parentNode:e),new Yb(a)}(e,t)},t.findDOMNode=function(e){ow||(ow=!0,l("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=Zb.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||l("%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.",Me(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=qn(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var o=yr(n);if(null===o)return null;if(8&o.mode){var a=Ue(n)||"Component";if(!mb[a]){mb[a]=!0;var i=je;try{$e(o),8&n.mode?l("%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):l("%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?$e(i):Ve()}}}return o.stateNode}(e,"findDOMNode")},t.flushSync=function(e){return ny()&&l("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."),ty(e)},t.hydrate=function(e,t,n){if(l("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(t))throw new Error("Target container is not a DOM element.");return pu(t)&&void 0===t._reactRootContainer&&l("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?"),nw(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){return iw.usingClientEntryPoint||l('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!Kb(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");Xb(e),void 0===t&&l("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=qb;null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError));var s=bb(t,null,e,1,0,o,0,a,i);if(du(s.current,e),ql(e),r)for(var u=0;u<r.length;u++)cf(s,r[u]);return new Qb(s)}(e,t,n)},t.render=function(e,t,n){if(l("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(t))throw new Error("Target container is not a DOM element.");return pu(t)&&void 0===t._reactRootContainer&&l("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?"),nw(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(aw||(aw=!0,l("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Gb(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(pu(e)&&void 0===e._reactRootContainer&&l("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?"),e._reactRootContainer){var t=ew(e);return t&&!mu(t)&&l("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),ty((function(){nw(null,null,e,!1,(function(){e._reactRootContainer=null,fu(e)}))})),!0}var n=ew(e),r=!(!n||!mu(n)),o=1===e.nodeType&&Gb(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&l("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."),!1},t.unstable_batchedUpdates=ey,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(l("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Gb(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return nw(e,t,n,!1,r)}(e,t,n,r)},t.version=gb,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()},338:(e,t,n)=>{"use strict";var r=n(961),o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t.createRoot=function(e,t){o.usingClientEntryPoint=!0;try{return r.createRoot(e,t)}finally{o.usingClientEntryPoint=!1}},t.hydrateRoot=function(e,t,n){o.usingClientEntryPoint=!0;try{return r.hydrateRoot(e,t,n)}finally{o.usingClientEntryPoint=!1}}},961:(e,t,n)=>{"use strict";e.exports=n(557)},837:(e,t,n)=>{"use strict";e=n.nmd(e),function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.iterator;function g(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}var v={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},k={},S=null;function x(e){S=e}k.setExtraStackFrame=function(e){S=e},k.getCurrentStack=null,k.getStackAddendum=function(){var e="";S&&(e+=S);var t=k.getCurrentStack;return t&&(e+=t()||""),e};var C={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:y,ReactCurrentOwner:w};function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];R("warn",e,n)}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];R("error",e,n)}function R(e,t,n){var r=C.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var o=n.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}C.ReactDebugCurrentFrame=k,C.ReactCurrentActQueue=b;var _={};function P(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",o=r+"."+t;_[o]||(E("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.",t,r),_[o]=!0)}var O={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){P(e,"replaceState")},enqueueSetState:function(e,t,n,r){P(e,"setState")}},D=Object.assign,L={};function I(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||O}Object.freeze(L),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={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)."]},z=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){T("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var M in N)N.hasOwnProperty(M)&&z(M,N[M]);function A(){}function U(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||O}A.prototype=I.prototype;var F=U.prototype=new A;F.constructor=U,D(F,I.prototype),F.isPureReactComponent=!0;var j=Array.isArray;function B(e){return j(e)}function W(e){return""+e}function H(e){if(function(e){try{return W(e),!1}catch(e){return!0}}(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}function V(e){return e.displayName||"Context"}function $(e){if(null==e)return null;if("number"==typeof e.tag&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return V(e)+".Consumer";case l:return V(e._context)+".Provider";case u:return function(e,t,n){var r=e.displayName;if(r)return r;var o=t.displayName||t.name||"";return""!==o?n+"("+o+")":n}(e,e.render,"ForwardRef");case f:var t=e.displayName||null;return null!==t?t:$(e.type)||"Memo";case p:var n=e,h=n._payload,m=n._init;try{return $(m(h))}catch(e){return null}}return null}var q,Y,Q,K=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function J(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}Q={};var Z=function(e,t,r,o,a,i,l){var s={$$typeof:n,type:e,key:t,ref:r,props:l,_owner:i,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ee(e,t,n){var r,o={},a=null,i=null,l=null,s=null;if(null!=t)for(r in X(t)&&(i=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=$(w.current.type);Q[t]||(E('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',t,e.ref),Q[t]=!0)}}(t)),J(t)&&(H(t.key),a=""+t.key),l=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)K.call(t,r)&&!G.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(u>1){for(var c=Array(u),d=0;d<u;d++)c[d]=arguments[d+2];Object.freeze&&Object.freeze(c),o.children=c}if(e&&e.defaultProps){var f=e.defaultProps;for(r in f)void 0===o[r]&&(o[r]=f[r])}if(a||i){var p="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var n=function(){q||(q=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(o,p),i&&function(e,t){var n=function(){Y||(Y=!0,E("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(o,p)}return Z(e,a,i,l,s,w.current,o)}function te(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=D({},e.props),i=e.key,l=e.ref,s=e._self,u=e._source,c=e._owner;if(null!=t)for(r in X(t)&&(l=t.ref,c=w.current),J(t)&&(H(t.key),i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)K.call(t,r)&&!G.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?a[r]=o[r]:a[r]=t[r]);var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var f=Array(d),p=0;p<d;p++)f[p]=arguments[p+2];a.children=f}return Z(e.type,i,l,s,u,c,a)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var re,oe=!1,ae=/\/+/g;function ie(e){return e.replace(ae,"$&/")}function le(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(H(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function se(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s,u,c,d=!1;if(null===e)d=!0;else switch(l){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var f=e,p=i(f),h=""===a?"."+le(f,0):a;if(B(p)){var m="";null!=h&&(m=ie(h)+"/"),se(p,t,m,"",(function(e){return e}))}else null!=p&&(ne(p)&&(!p.key||f&&f.key===p.key||H(p.key),s=p,u=o+(!p.key||f&&f.key===p.key?"":ie(""+p.key)+"/")+h,p=Z(s.type,u,s.ref,s._self,s._source,s._owner,s.props)),t.push(p));return 1}var v=0,y=""===a?".":a+":";if(B(e))for(var b=0;b<e.length;b++)v+=se(c=e[b],t,o,y+le(c,b),i);else{var w=g(e);if("function"==typeof w){var k=e;w===k.entries&&(oe||T("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),oe=!0);for(var S,x=w.call(k),C=0;!(S=x.next()).done;)v+=se(c=S.value,t,o,y+le(c,C++),i)}else if("object"===l){var E=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ue(e,t,n){if(null==e)return e;var r=[],o=0;return se(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function ce(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}}),(function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}})),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||E("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function de(e){return"string"==typeof e||"function"==typeof e||e===o||e===i||e===a||e===c||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===l||e.$$typeof===s||e.$$typeof===u||e.$$typeof===re||void 0!==e.getModuleId)}function fe(){var e=v.current;return null===e&&E("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}re=Symbol.for("react.module.reference");var pe,he,me,ge,ve,ye,be,we=0;function ke(){}ke.__reactDisabledLog=!0;var Se,xe=C.ReactCurrentDispatcher;function Ce(e,t,n){if(void 0===Se)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);Se=r&&r[1]||""}return"\n"+Se+e}var Te,Ee=!1,Re="function"==typeof WeakMap?WeakMap:Map;function _e(e,t){if(!e||Ee)return"";var n,r=Te.get(e);if(void 0!==r)return r;Ee=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=xe.current,xe.current=null,function(){if(0===we){pe=console.log,he=console.info,me=console.warn,ge=console.error,ve=console.group,ye=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){n=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),s=n.stack.split("\n"),u=l.length-1,c=s.length-1;u>=1&&c>=0&&l[u]!==s[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==s[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==s[c]){var d="\n"+l[u].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Te.set(e,d),d}}while(u>=1&&c>=0);break}}}finally{Ee=!1,xe.current=o,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:he}),warn:D({},e,{value:me}),error:D({},e,{value:ge}),group:D({},e,{value:ve}),groupCollapsed:D({},e,{value:ye}),groupEnd:D({},e,{value:be})})}we<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?Ce(f):"";return"function"==typeof e&&Te.set(e,p),p}function Pe(e,t,n){if(null==e)return"";if("function"==typeof e)return _e(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ce(e);switch(e){case c:return Ce("Suspense");case d:return Ce("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case u:return _e(e.render,!1);case f:return Pe(e.type,t,n);case p:var r=e,o=r._payload,a=r._init;try{return Pe(a(o),t,n)}catch(e){}}return""}Te=new Re;var Oe,De={},Le=C.ReactDebugCurrentFrame;function Ie(e){if(e){var t=e._owner,n=Pe(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}function Ne(e){if(e){var t=e._owner;x(Pe(e.type,e._source,t?t.type:null))}else x(null)}function ze(){if(w.current){var e=$(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Oe=!1;var Me={};function Ae(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ze();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Me[n]){Me[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+$(e._owner.type)+"."),Ne(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Ne(null)}}}function Ue(e,t){if("object"==typeof e)if(B(e))for(var n=0;n<e.length;n++){var r=e[n];ne(r)&&Ae(r,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var o=g(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)ne(a.value)&&Ae(a.value,t)}}function Fe(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;t=n.propTypes}if(t){var r=$(n);!function(e,t,n,r,o){var a=Function.call.bind(K);for(var i in e)if(a(e,i)){var l=void 0;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}l=e[i](t,i,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){l=e}!l||l instanceof Error||(Ie(o),E("%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,i,typeof l),Ie(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,Ie(o),E("Failed %s type: %s",n,l.message),Ie(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||Oe||(Oe=!0,E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",$(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function je(e,t,r){var a,i,l=de(e);if(!l){var s,u="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),u+=(null!=(a=t)&&void 0!==(i=a.__source)?"\n\nCheck your code at "+i.fileName.replace(/^.*[\\\/]/,"")+":"+i.lineNumber+".":"")||ze(),null===e?s="null":B(e)?s="array":void 0!==e&&e.$$typeof===n?(s="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,E("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,u)}var c=ee.apply(this,arguments);if(null==c)return c;if(l)for(var d=2;d<arguments.length;d++)Ue(arguments[d],e);return e===o?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Ne(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Ne(null);break}}null!==e.ref&&(Ne(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}(c):Fe(c),c}var Be=!1,We=!1,He=null,Ve=0,$e=!1;function qe(e){var t=Ve;Ve++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var o=b.current;null!==o&&(b.didScheduleLegacyUpdate=!1,Ge(o))}}catch(e){throw Ye(t),e}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var a=n,i=!1,l={then:function(e,n){i=!0,a.then((function(r){Ye(t),0===Ve?Qe(r,e,n):e(r)}),(function(e){Ye(t),n(e)}))}};return $e||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){i||($e=!0,E("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),l}var s=n;if(Ye(t),0===Ve){var u=b.current;return null!==u&&(Ge(u),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Qe(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}}function Ye(e){e!==Ve-1&&E("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ve=e}function Qe(t,n,r){var o=b.current;if(null!==o)try{Ge(o),function(){if(null===He)try{var a=("require"+Math.random()).slice(0,7),i=e&&e[a];He=i.call(e,"timers").setImmediate}catch(e){He=function(e){!1===We&&(We=!0,"undefined"==typeof MessageChannel&&E("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}He((function(){0===o.length?(b.current=null,n(t)):Qe(t,n,r)}))}()}catch(e){r(e)}else n(t)}var Ke=!1;function Ge(e){if(!Ke){Ke=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(n){throw e=e.slice(t+1),n}finally{Ke=!1}}}var Xe=je,Je={map:ue,forEach:function(e,t,n){ue(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return ue(e,(function(){t++})),t},toArray:function(e){return ue(e,(function(e){return e}))||[]},only:function(e){if(!ne(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=Je,t.Component=I,t.Fragment=o,t.Profiler=i,t.PureComponent=U,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,t.act=qe,t.cloneElement=function(e,t,n){for(var r=te.apply(this,arguments),o=2;o<arguments.length;o++)Ue(arguments[o],r.type);return Fe(r),r},t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:l,_context:t};var n=!1,r=!1,o=!1,a={$$typeof:s,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return r||(r=!0,E("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,E("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(T("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=Xe,t.createFactory=function(e){var t=je.bind(null,e);return t.type=e,Be||(Be=!0,T("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return T("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===f?E("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?E("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&E("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||E("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:u,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ne,t.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:ce};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){E("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."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){E("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."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){de(e)||E("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:f,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=y.transition;y.transition={};var r=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{y.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>10&&T("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),r._updatedFibers.clear())}},t.unstable_act=qe,t.useCallback=function(e,t){return fe().useCallback(e,t)},t.useContext=function(e){var t=fe();if(void 0!==e._context){var n=e._context;n.Consumer===e?E("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?"):n.Provider===e&&E("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return fe().useDebugValue(e,t)},t.useDeferredValue=function(e){return fe().useDeferredValue(e)},t.useEffect=function(e,t){return fe().useEffect(e,t)},t.useId=function(){return fe().useId()},t.useImperativeHandle=function(e,t,n){return fe().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return fe().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return fe().useLayoutEffect(e,t)},t.useMemo=function(e,t){return fe().useMemo(e,t)},t.useReducer=function(e,t,n){return fe().useReducer(e,t,n)},t.useRef=function(e){return fe().useRef(e)},t.useState=function(e){return fe().useState(e)},t.useSyncExternalStore=function(e,t,n){return fe().useSyncExternalStore(e,t,n)},t.useTransition=function(){return fe().useTransition()},t.version="18.3.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()},540:(e,t,n)=>{"use strict";e.exports=n(837)},213:(e,t)=>{"use strict";!function(){function e(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var a=r-1>>>1,i=e[a];if(!(o(i,t)>0))return;e[a]=t,e[r]=i,r=a}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t){for(var n=0,r=e.length,a=r>>>1;n<a;){var i=2*(n+1)-1,l=e[i],s=i+1,u=e[s];if(o(l,t)<0)s<r&&o(u,l)<0?(e[n]=u,e[s]=t,n=s):(e[n]=l,e[i]=t,n=i);else{if(!(s<r&&o(u,t)<0))return;e[n]=u,e[s]=t,n=s}}}(e,n)),t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error),"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();t.unstable_now=function(){return i.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=t))return;r(u),o.sortIndex=o.expirationTime,e(s,o)}o=n(u)}}function w(e){if(m=!1,b(e),!h)if(null!==n(s))h=!0,L(k);else{var t=n(u);null!==t&&I(w,t.startTime-e)}}function k(e,o){h=!1,m&&(m=!1,N()),p=!0;var a=f;try{return function(e,o){var a=o;for(b(a),d=n(s);null!==d&&(!(d.expirationTime>a)||e&&!R());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var l=i(d.expirationTime<=a);a=t.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),b(a)}else r(s);d=n(s)}if(null!==d)return!0;var c=n(u);return null!==c&&I(w,c.startTime-a),!1}(e,o)}finally{d=null,f=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S=!1,x=null,C=-1,T=5,E=-1;function R(){return!(t.unstable_now()-E<T)}var _,P=function(){if(null!==x){var e=t.unstable_now();E=e;var n=!0;try{n=x(!0,e)}finally{n?_():(S=!1,x=null)}}else S=!1};if("function"==typeof y)_=function(){y(P)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,D=O.port2;O.port1.onmessage=P,_=function(){D.postMessage(null)}}else _=function(){g(P,0)};function L(e){x=e,S||(S=!0,_())}function I(e,n){C=g((function(){e(t.unstable_now())}),n)}function N(){v(C),C=-1}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||p||(h=!0,L(k))},t.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=e>0?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return n(s)},t.unstable_next=function(e){var t;switch(f){case 1:case 2:case 3:t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(r,o,a){var i,l,d=t.unstable_now();if("object"==typeof a&&null!==a){var f=a.delay;i="number"==typeof f&&f>0?d+f:d}else i=d;switch(r){case 1:l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}var g=i+l,v={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:g,sortIndex:-1};return i>d?(v.sortIndex=i,e(u,v),null===n(s)&&v===n(u)&&(m?N():m=!0,I(w,i-d))):(v.sortIndex=g,e(s,v),h||p||(h=!0,L(k))),v},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()},982:(e,t,n)=>{"use strict";e.exports=n(213)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(540),t=n.n(e),r=n(338);const o=class{constructor(e=[]){if(Array.isArray(e))this.values=e.slice();else{if(!(e instanceof Float32Array))throw new Error("Invalid argument for KVCache initialization");this.values=Array.from(e)}}};class a{constructor(){this.q_=.001*Math.random(),this.n_=0,this.expanded_=!1,this.children_=[],this.actions_=[],this.policy_=[],this.kvCache_=null,this.ancestorCache_=[]}get q(){return this.q_}get n(){return this.n_}isExpanded(){return this.expanded_}setExpanded(){this.expanded_=!0}getChildrenN(){return this.children_.map((e=>e.n))}getChildrenQ(){return this.children_.map((e=>e.q))}getChild(e){return this.children_[e]}setPolicy(e){if(!Array.isArray(e))throw new Error("Policy must be an array");if(this.policy_=[...e],this.children_.length&&e.length!==this.children_.length)throw new Error("Policy size does not match children size: "+[e.length,this.children_.length])}expand(e){if("function"!=typeof e.getLegalActions)throw new Error("State must implement getLegalActions");this.actions_=e.getLegalActions();for(let e=0;e<this.actions_.length;e++)this.children_.push(new a);if(this.setExpanded(),this.policy_.length&&this.policy_.length!==this.children_.length)throw new Error("Policy size does not match children size: "+[policy.length,this.children_.length])}updateResult(e){this.q_+=(e-this.q_)/++this.n_}getChildren(){return this.children_}getPolicy(){return this.policy_}getActions(){return this.actions_}setKvCache(e){if(!(e instanceof o))throw new Error("kvCache must be an instance of KVCache");this.kvCache_=e}setAncestorCache(e){if(!Array.isArray(e)||!e.every((e=>e instanceof o)))throw new Error("ancestorCache must be an array of KVCache instances");this.ancestorCache_=[...e]}getKvCache(){if(!this.kvCache_)throw new Error("kvCache_ is null");return this.kvCache_}getAncestorCache(){return this.ancestorCache_}}const i=a,l=class{constructor(e,t=!0){this.state=t?e.clone():e,this.root=new i,this.history=[]}getTotalSimulationCount(){return this.root.isExpanded()||this.root.expand(this.state),this.root.n}getFrequencies(){return this.root.isExpanded()||this.root.expand(this.state),this.root.getChildrenN()}getValues(){return this.root.isExpanded()||this.root.expand(this.state),this.root.getChildrenQ()}moveRoot(e){if(!this.root.isExpanded())throw new Error("MCTS root should be expanded before moving");const t=this.root,n=this.state.getLegalActions()[e];this.history.push(n),this.state.doAction(n);const r=this.root.children_[e],o=t.getKvCache();t.ancestorCache_.push(o),this.root=r}getState(){return this.state}getRootNode(){return this.root}getHistory(){return this.history}};var s=n(361);class u{choose(e){throw new Error("Not implemented")}}class c extends u{constructor(){super()}choose(e){if(0===e.length)throw new Error("Probability vector is empty.");return e.indexOf(Math.max(...e))}}const d=1,f=2,p="DRAW",h="PLAYER1_WIN",m="PLAYER2_WIN",g="NOT_FINISH_YET";class v{constructor(){this.history=[]}clone(){throw new Error("clone() must be implemented by subclasses")}isSame(e){throw new Error("isSame() must be implemented by subclasses")}stateSize(){throw new Error("stateSize() must be implemented by subclasses")}getStateInput(){throw new Error("getStateInput() must be implemented by subclasses")}getPlayerThisTurn(){throw new Error("getPlayerThisTurn() must be implemented by subclasses")}getResult(){throw new Error("getResult() must be implemented by subclasses")}isGameOver(){throw new Error("isGameOver() must be implemented by subclasses")}actionSpaceSize(){throw new Error("actionSpaceSize() must be implemented by subclasses")}getLegalActions(){throw new Error("getLegalActions() must be implemented by subclasses")}doAction(e){throw new Error("doAction() must be implemented by subclasses")}getAction(e){return this.getLegalActions()[e]}getBoard(){throw new Error("getBoard() must be implemented by subclasses")}getCurrentPlayer(){throw new Error("getCurrentPlayer() must be implemented by subclasses")}doActionTest(e){if(!this.getLegalActions().includes(e))throw new Error("Invalid action.");this.doAction(e)}getHistory(){return this.history}}function y(e,t){const n=e.getResult();if(n===p)return 0;if(n===h)return 1===t?1:-1;if(n===m)return 2===t?1:-1;throw new Error("Invalid result type.")}const b=[],w=class{constructor(e,t,n){if(!e||!t||!n)throw new Error("Invalid arguments");this.modelPath=e,this.stateSize=t,this.pvSize=n,this.inputNames=["input","kv_cache"],this.outputNames=["output","kv_cache_out"],this.ready=!1,this.initializeSession(),b.push(this)}async initializeSession(){this.session_loader=ort.InferenceSession.create(this.modelPath),this.kvDim_loader=this.getKVDim(),this.session=await this.session_loader,console.log(`ONNX model loaded successfully from ${this.modelPath}`),this.kvDim=await this.kvDim_loader,this.ready=!0}async getKVDim(){this.session=await this.session_loader;const e={input:new ort.Tensor("int64",new BigInt64Array(Array(this.stateSize).fill(0n)),[this.stateSize]),kv_cache:new ort.Tensor("float32",new Float32Array(Array(1).fill(0)),[1,1])};try{return(await this.session.run(e))[name].dims}catch(e){const t=/Expected:\s(\d+)/.exec(e.message);if(t)return parseInt(t[1],10);throw e}}async inference(e,t){this.session=await this.session_loader,this.kvDim=await this.kvDim_loader;const n=[this.stateSize],r=[Math.floor(t.length/this.kvDim),this.kvDim],a=new ort.Tensor("int64",new BigInt64Array(e),n),i=new ort.Tensor("float32",new Float32Array(t),r),l={[this.inputNames[0]]:a,[this.inputNames[1]]:i},s=await this.session.run(l,this.outputNames),u=Array.from(s[this.outputNames[0]].data),c=Array.from(s[this.outputNames[1]].data);return[u,new o(c)]}getStateSize(){return this.stateSize}getKvDim(){return this.kvDim}getPvSize(){return this.pvSize}};class k{async setPolicyReturnValue(e,t,n){throw new Error("Not implemented")}}class S extends k{constructor(){super()}getRandomMove(e){const t=e.getLegalActions();return t[Math.floor(Math.random()*t.length)]}async setPolicyReturnValue(e,t,n){let r=t.actionSpaceSize(),a=Array(r).fill(1/r),i=e;i.isExpanded()||i.expand(t);let l=t.getLegalActions(),s=[],u=0;for(let e=0;e<l.length;e++){let t=a[l[e]];u+=t,s.push(t)}for(let e=0;e<l.length;e++)s[e]/=u;i.setPolicy(s);let c=new o;i.setKvCache(c);let d=t,f=d.getPlayerThisTurn();for(;!d.isGameOver();){let e=this.getRandomMove(d);d.doAction(e)}return y(d,f)}}class x extends k{constructor(e,t,n){super(),this.pvNet=new w(e,t,n)}async setPolicyReturnValue(e,t,n){const r=t.getLegalActions(),o=t.getStateInput(),a=n.flatMap((e=>e.values)),i=o.map((e=>BigInt(e))),[l,s]=await this.pvNet.inference(i,a),u=l.pop(),c=r.map((e=>l[e]));return e.setPolicy(c),e.setKvCache(s),u}}class C{select(e){throw new Error("Not implemented")}}class T extends C{constructor(e=1.4){super(),this.c_=e}select(e){const t=e.getChildren(),n=e.getPolicy();let r=-1e20,o=-1;const a=this.c_*Math.sqrt(e.n+1);for(let e=0;e<t.length;e++){const i=-t[e].q+n[e]*a/(t[e].n+1);i>r&&(r=i,o=e)}return o}}class E{run(e,t){throw new Error("run() must be implemented by subclasses")}}class R extends E{run(e,t){return y(e,t)}}const _=class{constructor(e,t,n,r){e||(e=new c),t||(t=new S),n||(n=new R),r||(r=new T(1.4)),this.decisionStrategy=e,this.pvEstimator=t,this.endgameRater=n,this.selectionStrategy=r,this.mctsTree=null}setState(e){this.mctsTree&&this.mctsTree.getState().isSame(e)||(this.mctsTree=new l(e))}verbosePrintStart(e){const t=this.mctsTree;console.log(`Starting search with ${e} iterations`),t.getTotalSimulationCount()>0&&console.log(`Using cached tree with ${t.getTotalSimulationCount()} simulations`)}verbosePrintResult(){const e=this.mctsTree,t=e.getFrequencies(),n=e.getState().getLegalActions();console.log("Frequencies: ");for(let e=0;e<t.length;e++)console.log(`${n[e]} ${t[e]}`);console.log()}async searchAction(e,t,n,r=0){this.setState(e);const o=this.mctsTree;n&&this.verbosePrintStart(t);for(let e=0;e<r;++e)await this.searchOnce();for(let e=o.getTotalSimulationCount();e<t;++e)await this.searchOnce();n&&this.verbosePrintResult();const a=o.getFrequencies();return this.decisionStrategy.choose(a)}async searchOnce(){const e=this.mctsTree,t=[];let n,r=e.getRootNode(),o=e.getState().clone(),a=r.getAncestorCache().slice();for(;;){if(t.push(r),o.isGameOver()){n=this.endgameRater.run(o,o.getPlayerThisTurn());break}if(0===r.n){n=await this.pvEstimator.setPolicyReturnValue(r,o,a);break}a.push(r.getKvCache()),r.isExpanded()||r.expand(o);const e=this.selectionStrategy.select(r);r=r.getChild(e),o.doAction(o.getAction(e))}for(let e=t.length-1;e>=0;e--)t[e].updateResult(n),n=-n}async moveRoot(e){if(!this.mctsTree)throw new Error("MCTS tree is not initialized");this.mctsTree.getRootNode().isExpanded()||(await this.searchOnce(),await this.searchOnce()),this.mctsTree.moveRoot(e)}getTree(){return this.mctsTree}};class P extends v{constructor(e=null){super(),e?(this.board=[...e.board],this.currentPlayer=e.currentPlayer,this.gameOver=e.gameOver):(this.board=Array(9).fill(0),this.currentPlayer=1,this.gameOver=!1)}clone(){return new P(this)}isSame(e){return e instanceof P&&this.board.toString()===e.board.toString()&&this.currentPlayer===e.currentPlayer}stateSize(){return 9}getStateInput(){return this.board.map((e=>1===this.currentPlayer?e:1===e?2:2===e?1:0))}getPlayerThisTurn(){return this.currentPlayer}getResult(){return this.checkWinner(1)?h:this.checkWinner(2)?m:this.board.includes(0)?g:p}isGameOver(){return this.gameOver}actionSpaceSize(){return 9}getLegalActions(){return this.board.map(((e,t)=>0===e?t:null)).filter((e=>null!==e))}doAction(e){if(e<0||e>=9||0!==this.board[e])throw new Error("Invalid move");this.history.push(action),this.board[e]=1===this.currentPlayer?1:2,this.checkWinner(this.currentPlayer)?this.gameOver=!0:this.gameOver=!this.board.includes(0),this.switchTurn()}checkWinner(e){const t=1===e?1:2;return[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]].some((e=>this.board[e[0]]===t&&this.board[e[1]]===t&&this.board[e[2]]===t))}switchTurn(){this.currentPlayer=1===this.currentPlayer?2:1}}const O=P;class D extends v{constructor(){super(),this.board=Array(8).fill(null).map((()=>Array(8).fill(0))),this.board[3][3]=1,this.board[4][4]=1,this.board[3][4]=2,this.board[4][3]=2,this.whosTurn=1,this.lastSkipped=!1,this.gameOver=!1}clone(){const e=new D;return e.board=this.board.map((e=>[...e])),e.whosTurn=this.whosTurn,e.lastSkipped=this.lastSkipped,e.gameOver=this.gameOver,e}isSame(e){return e instanceof D&&this.whosTurn===e.whosTurn&&this.lastSkipped===e.lastSkipped&&this.gameOver===e.gameOver&&JSON.stringify(this.board)===JSON.stringify(e.board)}stateSize(){return 64}getStateInput(){return this.board.flat()}getBoard(){return this.board}getCurrentPlayer(){return this.whosTurn}getPlayerThisTurn(){return this.whosTurn}getResult(){if(!this.gameOver)return g;const e=this.board.flat().reduce(((e,t)=>(1===t&&e[1]++,2===t&&e[2]++,e)),{[d]:0,[f]:0});return e[1]>e[2]?h:e[1]<e[2]?m:p}isGameOver(){return this.gameOver}actionSpaceSize(){return 65}getLegalActions(){const e=[];for(let t=0;t<64;t++){const n=Math.floor(t/8),r=t%8;0===this.board[n][r]&&this.canFlip(n,r)&&e.push(t)}return 0===e.length&&e.push(64),e}doAction(e){if(this.history.push(e),64===e)return this.lastSkipped&&(this.gameOver=!0),this.lastSkipped=!0,void this.switchTurn();const t=Math.floor(e/8),n=e%8;this.flipPieces(t,n),this.board[t][n]=1===this.whosTurn?1:2,this.lastSkipped=!1,this.switchTurn()}switchTurn(){this.whosTurn=1===this.whosTurn?2:1}canFlip(e,t){const n=[[0,1],[1,0],[0,-1],[-1,0],[-1,-1],[-1,1],[1,-1],[1,1]],r=1===this.whosTurn?2:1,o=1===this.whosTurn?1:2;for(const[a,i]of n){let n=e+a,l=t+i,s=!1;for(;n>=0&&n<8&&l>=0&&l<8;){if(this.board[n][l]!==r){if(this.board[n][l]===o&&s)return!0;break}s=!0,n+=a,l+=i}}return!1}flipPieces(e,t){const n=[[0,1],[1,0],[0,-1],[-1,0],[-1,-1],[-1,1],[1,-1],[1,1]],r=1===this.whosTurn?2:1,o=1===this.whosTurn?1:2;for(const[a,i]of n){let n=e+a,l=t+i,s=[];for(;n>=0&&n<8&&l>=0&&l<8;){if(this.board[n][l]!==r){if(this.board[n][l]===o){for(const[e,t]of s)this.board[e][t]=o;break}break}s.push([n,l]),n+=a,l+=i}}}}const L=D;class I extends v{constructor(){super(),this.board=Array(15).fill(null).map((()=>Array(15).fill(0))),this.whosTurn=1,this.turn=0,this.result=g,this.gameOver=!1}clone(){const e=new I;return e.board=this.board.map((e=>[...e])),e.whosTurn=this.whosTurn,e.turn=this.turn,e.result=this.result,e.gameOver=this.gameOver,e}isSame(e){return e instanceof I&&this.whosTurn===e.whosTurn&&this.turn===e.turn&&this.result===e.result&&JSON.stringify(this.board)===JSON.stringify(e.board)}stateSize(){return 225}getStateInput(){const e=[];for(let t=0;t<15;t++)for(let n=0;n<15;n++)1===this.whosTurn?1===this.board[t][n]?e.push(1):2===this.board[t][n]?e.push(2):e.push(0):1===this.board[t][n]?e.push(2):2===this.board[t][n]?e.push(1):e.push(0);return e}getResult(){if(this.result!==g)return this.result;225===this.turn&&(this.result=p,this.gameOver=!0);for(let e=0;e<15;e++)for(let t=0;t<15;t++)if(this.isConnected(e,t,1,0)||this.isConnected(e,t,0,1)||this.isConnected(e,t,1,1)||this.isConnected(e,t,1,-1)){this.result=1===this.whosTurn?h:m,this.gameOver=!0;break}return this.result}isConnected(e,t,n,r){const o=this.board[e][t];let a=1;for(let i=1;i<5;i++){const l=e+i*n,s=t+i*r;if(l<0||l>=15||s<0||s>=15||this.board[l][s]!==o)break;a++}for(let i=1;i<5;i++){const l=e-i*n,s=t-i*r;if(l<0||l>=15||s<0||s>=15||this.board[l][s]!==o)break;a++}return a>=5}getLegalActions(){const e=[];for(let t=0;t<225;t++){const n=Math.floor(t/15),r=t%15;0===this.board[n][r]&&e.push(t)}return e}doAction(e){const t=Math.floor(e/15),n=e%15;if(0!==this.board[t][n])throw new Error("Invalid move");this.history.push(e);const r=1===this.whosTurn?1:2;this.board[t][n]=r,this.turn++,this.isConnected(t,n,1,0)||this.isConnected(t,n,0,1)||this.isConnected(t,n,1,1)||this.isConnected(t,n,1,-1)?(this.result=1===this.whosTurn?h:m,this.gameOver=!0):225===this.turn&&(this.result=p,this.gameOver=!0),this.switchTurn()}switchTurn(){this.whosTurn=1===this.whosTurn?2:1}getBoard(){return this.board}getCurrentPlayer(){return this.whosTurn}getPlayerThisTurn(){return this.whosTurn}getResult(){return this.result}isGameOver(){return this.gameOver}actionSpaceSize(){return 225}}const N=I;class z extends e.Component{renderCell(e,n){const{onCellClick:r}=this.props;return t().createElement("button",{style:{width:"100px",height:"100px",fontSize:"1rem",textAlign:"center",backgroundColor:"#ddd",border:"1px solid #444",cursor:"pointer"},onMouseOver:e=>e.target.style.backgroundColor="#bbb",onMouseOut:e=>e.target.style.backgroundColor="#ddd",onClick:()=>r(n)},e[n])}render(){const{state:e}=this.props,n=Array(9).fill(null);for(let t=0;t<9;t++)1===e.board[t]?n[t]="O":2===e.board[t]&&(n[t]="X");return t().createElement("div",{style:{textAlign:"center"}},t().createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 100px)",gridGap:"5px",justifyContent:"center",margin:"20px auto"}},n.map(((e,t)=>this.renderCell(n,t)))))}}const M=z;class A extends e.Component{renderCell(e,n,r){const{onCellClick:o}=this.props,a={width:"40px",height:"40px",borderRadius:"50%",backgroundColor:1===e[n][r]?"white":2===e[n][r]?"black":"transparent"};return t().createElement("div",{key:`${n}-${r}`,style:{width:"50px",height:"50px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#008000",border:"1px solid black",cursor:"pointer",boxSizing:"border-box"},onClick:()=>o(8*n+r)},t().createElement("div",{style:a}))}render(){const{state:e}=this.props,n=Array(8).fill(null).map((()=>Array(8).fill(null)));for(let t=0;t<8;t++)for(let r=0;r<8;r++)n[t][r]=e.board[t][r];return t().createElement("div",{style:{textAlign:"center"}},t().createElement("div",{style:{display:"grid",gridTemplateColumns:"repeat(8, 50px)",gridGap:"0px",justifyContent:"center",margin:"20px auto"}},n.map(((e,t)=>e.map(((e,r)=>this.renderCell(n,t,r)))))))}}const U=A;function F(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const j=15;class B extends e.Component{constructor(e){super(e),F(this,"handleResize",(()=>{const e=this.calculateCellSize();e!==this.state.cellSize&&this.setState({cellSize:e})})),F(this,"handleMouseMove",(e=>{const t=this.canvasRef.current.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,o=Math.round(r/this.state.cellSize-.5),a=Math.round(n/this.state.cellSize-.5);o>=0&&o<j&&a>=0&&a<j?this.setState({hoverPosition:{row:o,col:a}}):this.setState({hoverPosition:null})})),F(this,"handleCanvasClick",(e=>{const{onCellClick:t}=this.props,n=this.canvasRef.current.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,a=Math.round(o/this.state.cellSize-.5),i=Math.round(r/this.state.cellSize-.5);a>=0&&a<j&&i>=0&&i<j&&t(a*j+i)})),F(this,"handleMouseLeave",(()=>{this.setState({hoverPosition:null})})),this.canvasRef=t().createRef(),this.state={hoverPosition:null,cellSize:this.calculateCellSize()},this.cachedBoard=null,this.cachedHoverPosition=null,this.cachedProbabilities=null,this.cachedBestAction=null}componentDidMount(){window.addEventListener("resize",this.handleResize),this.drawBoard()}componentDidUpdate(){this.drawBoard()}componentWillUnmount(){window.removeEventListener("resize",this.handleResize)}calculateCellSize(){if(this.props.cellSize)return this.props.cellSize;const e=.8*Math.min(window.innerWidth,window.innerHeight);return Math.floor(e/j)}isCachedProbabilitiesChanged(e){if(!this.cachedProbabilities)return!0;if(!e)return!0;if(e.length!==this.cachedProbabilities.length)return!0;for(let t=0;t<e.length;t++)if(e[t]!==this.cachedProbabilities[t])return!0;return!1}isCachedBestActionChanged(e){return!(null===e&&null===this.cachedBestAction||null!==e&&null!==this.cachedBestAction&&e===this.cachedBestAction)}isBoardChanged(e){if(!this.cachedBoard)return!0;for(let t=0;t<j;t++)for(let n=0;n<j;n++)if(e[t][n]!==this.cachedBoard[t][n])return!0;return!1}isHoverPositionChanged(e){const{cachedHoverPosition:t}=this;return!(!t&&!e||t&&e&&t.row===e.row&&t.col===e.col)}drawBoard(){const e=this.canvasRef.current,t=e.getContext("2d"),{state:n,show_hover:r,action_freqs:o,best_action:a}=this.props,i=n.board,{hoverPosition:l,cellSize:u}=this.state,c=this.isBoardChanged(i),d=this.isHoverPositionChanged(l),f=this.isCachedProbabilitiesChanged(o),p=this.isCachedBestActionChanged(a);if(!(c||d||f||p))return;this.cachedBoard=i.map((e=>[...e])),this.cachedHoverPosition=l,this.cachedProbabilities=o?o.slice(0):null,this.cachedBestAction=a,t.clearRect(0,0,e.width,e.height),t.fillStyle="#D98E43",t.fillRect(0,0,e.width,e.height);for(let e of[3,7,11])for(let n of[3,7,11])t.beginPath(),t.arc((n+.5)*u,(e+.5)*u,.1*u,0,2*Math.PI),t.fillStyle="black",t.fill();t.strokeStyle="black";for(let e=0;e<j;e++)t.beginPath(),t.moveTo((e+.5)*u,.5*u),t.lineTo((e+.5)*u,14.5*u),t.moveTo(.5*u,(e+.5)*u),t.lineTo(14.5*u,(e+.5)*u),t.stroke();for(let e=0;e<j;e++)for(let n=0;n<j;n++)if(1===i[e][n]||2===i[e][n]){const r=(n+.5)*u,o=(e+.5)*u;t.beginPath(),t.arc(r,o,.4*u,0,2*Math.PI),t.fillStyle=1===i[e][n]?"black":"white",t.fill()}const h=n.getHistory().slice(-1)[0];if(void 0!==h){const e=Math.floor(h/j),n=(h%j+.5)*u,r=(e+.5)*u;t.beginPath(),t.moveTo(n,r-u/6),t.lineTo(n-u/6,r+u/6),t.lineTo(n+u/6,r+u/6),t.closePath(),t.fillStyle="#a00",t.fill()}if(o){const e=o.slice(0,225);(0,s.normalize)(e);for(let n=0;n<e.length;n++){const r=e[n];if(r>.02){const e=Math.floor(n/j),o=(n%j+.5)*u,a=(e+.5)*u;t.beginPath(),t.arc(o,a,u/2.5,0,2*Math.PI);const i=.8*Math.pow(r,.5)+.2;t.fillStyle=`rgba(0, 192, 64, ${i})`,t.fill(),t.fillStyle="black",t.font=u/3+"px Arial",t.textAlign="center",t.textBaseline="middle",t.fillText(r.toFixed(2),o,a)}}}if(null!==a&&null==o){const e=a,n=Math.floor(e/j),r=(e%j+.5)*u,o=(n+.5)*u;t.beginPath(),t.arc(r,o,.4*u,0,2*Math.PI);const i=.95;t.fillStyle=`rgba(224, 0, 0, ${i})`,t.fill()}if(r&&l){const{row:e,col:r}=l;if(0===i[e][r]){const o=(r+.5)*u,a=(e+.5)*u;t.beginPath(),t.arc(o,a,.4*u,0,2*Math.PI),t.fillStyle=1===n.getCurrentPlayer()?"rgba(0, 0, 0, 0.5)":"rgba(255, 255, 255, 0.5)",t.fill()}}}render(){const{cellSize:e}=this.state;return t().createElement("div",{style:{textAlign:"center"}},t().createElement("canvas",{ref:this.canvasRef,width:j*e,height:j*e,style:{border:"1px solid black",margin:"10px auto",display:"block"},onClick:this.handleCanvasClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave}))}}const W={Othello:L,TicTacToe:O,ConnectFive:N},H={Othello:U,TicTacToe:M,ConnectFive:B},V={marginTop:"4px",padding:"4px 8px",fontSize:"1rem",cursor:"pointer"},$={fontSize:"1rem",marginTop:"5px",textAlign:"center"},q={switch:{position:"relative",display:"inline-block",width:"34px",height:"20px"},input:{opacity:0,width:0,height:0},slider:{position:"absolute",cursor:"pointer",top:0,left:0,right:0,bottom:0,backgroundColor:"#ccc",transition:"0.4s",borderRadius:"34px"},sliderBefore:{position:"absolute",content:"''",height:"14px",width:"14px",left:"3px",bottom:"3px",backgroundColor:"white",transition:"0.4s",borderRadius:"50%"},sliderChecked:{backgroundColor:"#2196f3"},sliderBeforeChecked:{transform:"translateX(14px)"}};const Y=class extends _{constructor(e,t,n=1e3,r=null){var o,a,i;super(),o=this,i=async()=>{for(;this.isThinking&&!this.mctsTree.getState().isGameOver();)await this.searchOnce(),this.onUpdate&&await this.onUpdate()},(a=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(a="thinkingThreadReturnNull"))in o?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,this.setState(e),this.pvEstimator=function(e){if("Othello"===e)return new x("./othello_pvnet.onnx",64,66);if("ConnectFive"===e)return new x("./connect_five_pvnet.onnx",225,226);if("TicTacToe"===e)throw new Error("TicTacToe does not have a PVNet model")}(t),this.numSimulations=n,this.isThinking=!1,this.thinkingThread=null,this.onUpdate=r,this.startThinking()}async searchAction(e=0){await this.stopThinking();const t=this.mctsTree.getState();await this.searchOnce(),await this.searchOnce(),await this.searchOnce();for(let t=0;t<e;t++)await this.searchOnce(),this.onUpdate&&await this.onUpdate();for(;this.mctsTree.root.n<this.numSimulations;)await this.searchOnce(),this.onUpdate&&await this.onUpdate();const n=this.mctsTree.getFrequencies(),r=this.decisionStrategy.choose(n),o=t.getAction(r);return this.startThinking(),[r,o]}async moveRoot(e){await this.stopThinking(),await super.moveRoot(e),this.startThinking()}async resetRoot(e){await this.stopThinking(),super.setState(e),this.startThinking()}async forceSetRoot(e){await this.stopThinking(),super.setState(e),this.startThinking()}startThinking(){if(this.isThinking)throw new Error("Agent is already thinking");this.isThinking=!0,this.thinkingThread=this.thinkingThreadReturnNull()}async stopThinking(){this.isThinking&&(this.isThinking=!1,await this.thinkingThread)}};function Q(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const K=(window.fetchWatcher||(window.fetchWatcher=new class{constructor(){Q(this,"install",(()=>{const e=window.fetch;window.fetch=async(t,n)=>{this.logs[t]=["start"],this.watchers.forEach((e=>e(t)));const r=await e(t,n),o=r.headers.get("Content-Length");o||console.warn("Content-Length header is missing. Progress tracking won't be accurate.");const a=o?parseInt(o,10):0,i=r.body.getReader();let l=0,s=[];for(;;){const{done:e,value:n}=await i.read();if(e)break;if(l+=n.length,s.push(n),a){const e=(l/a*100).toFixed(2);this.logs[t].push([e,l,a]),this.watchers.forEach((e=>e(t)))}}this.logs[t].push("done"),this.watchers.forEach((e=>e(t)));const u=new Blob(s);return new Response(u,{status:r.status,statusText:r.statusText,headers:r.headers})}})),Q(this,"pluginWatcher",(e=>{this.watchers.push(e)})),this.logs={},this.watchers=[]}getLogs(e){return this.logs[e]||[]}getAllLogs(){return this.logs}},window.fetchWatcher.install()),window.fetchWatcher),G=function({handleFirstPlayerSelection:e}){const[n,r]=t().useState(!1),[o,a]=t().useState([0,0,1]),i={margin:"5px",padding:"5px 10px",fontSize:"1rem",cursor:"pointer"};async function l(t){for(let e=0;e<b.length;e++)b[e].ready||(r(!0),K.pluginWatcher((t=>{if(t===b[e].modelPath){const e=K.getLogs(t),n=e[e.length-1];n instanceof Array&&n[1]/n[2]>o[1]/o[2]+.01&&a(e[e.length-1])}})),console.log("Please wait several seconds for the model to be loaded.")),await b[e].session_loader,await b[e].kvDim_loader;r(!1),e(t)}return t().createElement("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(255, 255, 255, 0.95)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",zIndex:1e3}},t().createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"}},t().createElement("h1",{style:{textAlign:"center",marginBottom:"20px"}},"On-Device AlphaZero AI for Connect Five"),t().createElement("div",{style:{display:"flex",gap:"10px"}},t().createElement("button",{style:i,onClick:()=>l(!1)},"Player First"),t().createElement("button",{style:i,onClick:()=>l(!0)},"AI First")),t().createElement("h2",{style:{textAlign:"center",marginTop:"20px"}},"How to play?"," ",t().createElement("a",{href:"https://en.wikipedia.org/wiki/Gomoku#Rules",target:"_blank",rel:"noopener noreferrer"},"Rules")),n&&t().createElement(t().Fragment,null,t().createElement("h2",{style:{color:"red"}},"Please wait a few seconds to load the model..."),t().createElement("h3",{style:{color:"red"}},o[0],"% loaded (",o[1]/1024|0," /"," ",o[2]/1024|0," KB)"))),t().createElement("div",{style:{flex:0,textAlign:"center",marginBottom:"20px"}},t().createElement("div",{style:{fontWeight:800}},"Created by: Ji-Jia Wu"),t().createElement("div",{style:{marginTop:"10px"}},t().createElement("a",{href:"https://www.linkedin.com/in/jijia-wu-a089731b8/",target:"_blank",rel:"noopener noreferrer",style:{marginRight:"10px"}},"LinkedIn"),t().createElement("a",{href:"https://github.com/072jiajia",target:"_blank",rel:"noopener noreferrer",style:{marginRight:"10px"}},"GitHub"),t().createElement("a",{href:"mailto:[email protected]"},"Contact"))))};class X extends e.Component{render(){const{checked:e}=this.props;return t().createElement("div",{style:q.switch,onClick:this.props.onClick},t().createElement("input",{type:"checkbox",style:q.input,checked:e,onChange:()=>{}}),t().createElement("span",{style:{...q.slider,...e?q.sliderChecked:{}}},t().createElement("span",{style:{...q.sliderBefore,...e?q.sliderBeforeChecked:{}}})))}}const J=X;async function Z(e){return new Promise((t=>setTimeout(t,e)))}window.mobileCheck=function(){let e=!1;var t;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e};class ee extends e.Component{constructor(e){var t,n,r;super(e),t=this,r=()=>{this.setState((e=>({showSuggestions:!e.showSuggestions})))},(n=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(n="handleToggleChange"))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.debugging=!1,window.mobileCheck()?(this.sleep_time=100,this.maxSimulations=3200,this.leastSimulations=0):(this.sleep_time=0,this.maxSimulations=32e3,this.leastSimulations=100),this.gameConfig={game:"ConnectFive",num_simulations:800},this.GameClass=W[this.gameConfig.game],this.BoardComponent=H[this.gameConfig.game];const o=new this.GameClass;this.state={state:o,stateHistory:[],isPlayerTurn:null,gameStarted:!1,gameEnded:!1,showDetail:!1,showSuggestions:!1,toggle_value:!0,agentNumSimulations:0},this.agent=new Y(o,this.gameConfig.game,this.gameConfig.num_simulations,(()=>this.handleSimulationChange()))}toggleDetail(){this.setState((e=>({showDetail:!e.showDetail})))}resetGame(){const e=new this.GameClass;this.setState({state:e,stateHistory:[],isPlayerTurn:null,gameStarted:!1,gameEnded:!1,showDetail:!1}),this.agent.resetRoot(e)}handleCellClick(e){const{state:t,isPlayerTurn:n,gameEnded:r}=this.state;if(r||!1===t.getLegalActions().includes(e)||!1===n)return;const o=t.getLegalActions().indexOf(e);(async()=>{const n=t.clone();t.doActionTest(e);const r=t.isGameOver();await this.agent.moveRoot(o),this.setState((e=>({isPlayerTurn:!1,gameEnded:r,stateHistory:[...e.stateHistory,n]})),(()=>{r||this.agentMove(),console.log(this.state.stateHistory.length)}))})()}async agentMove(){const{state:e}=this.state,[t,n]=await this.agent.searchAction(this.leastSimulations);(async()=>{const r=e.clone();e.doActionTest(n);const o=e.isGameOver();await this.agent.moveRoot(t),this.setState((e=>({isPlayerTurn:!0,gameEnded:o,stateHistory:[...e.stateHistory,r]})),(()=>{console.log(this.state.stateHistory.length)}))})()}async handleSimulationChange(){let e=Math.floor(10*Math.random()+4);const t=this.agent.mctsTree.getTotalSimulationCount();this.state.isPlayerTurn||(e=Math.floor(50*Math.random()+20)),t>this.maxSimulations&&await Z(this.sleep_time),this.count?this.count>e?(this.setState({agentNumSimulations:this.agent.mctsTree.getTotalSimulationCount()}),await Z(0),this.count=0):this.count++:this.count=1}handleFirstPlayerSelection(e){this.setState({isPlayerTurn:!e,gameStarted:!0},(()=>{e&&this.agentMove()}))}undoLastMove(){if(console.log("undo"),!this.state.isPlayerTurn)return;const{stateHistory:e}=this.state;if(e.length<2)return null;e.pop();const t=e.pop();console.log("Here",e.length),this.setState({state:t,stateHistory:e,isPlayerTurn:!0,gameEnded:!1},(async()=>{await this.agent.forceSetRoot(this.state.state)}))}getSimulationFreqs(){const{showSuggestions:e,isPlayerTurn:t,agentNumSimulations:n}=this.state;if(!e)return[null,null];if(!t)return[null,null];if(n<256)return[null,null];const r=this.agent.mctsTree,o=Array(r.state.actionSpaceSize()).fill(0),a=r.getFrequencies(),i=r.state.getLegalActions();i.forEach((e=>{const t=i.indexOf(e);o[e]=a[t]}));const l=o.indexOf(Math.max(...o));return[o,l]}showDebugElement(){const{gameStarted:e,showDetail:n,isPlayerTurn:r,showSuggestions:o}=this.state;let a=-this.agent.mctsTree.root.q,i=this.agent.mctsTree.root.n;a=a.toFixed(4),r||(a=-a);let l=a.toString(),s=i.toString();l.length<7&&(l+=" ".repeat(7-l.length));let u=`Estimated state value to AI agent: ${l}`;if(r||(u="Calculating..."),!this.debugging){let e=r?"Your turn!":"AI's turn. Thinking...";return this.state.gameEnded&&(r&&(e="AI won!"),r||(e="You won!")),this.state.gameStarted||(e=" "),t().createElement("div",{style:$},t().createElement("div",{style:{fontWeight:800,fontSize:"1.2em"}},e))}return t().createElement(t().Fragment,null,e?n?t().createElement("div",{style:$},"State value to AI Agent: ",l," (of ",s," simulations)"):t().createElement("div",{style:$},u," ",t().createElement("button",{onClick:()=>this.toggleDetail()},"show details")):t().createElement("div",{style:$}," "),t().createElement("div",{style:$},t().createElement(J,{checked:o,onClick:this.handleToggleChange})," ","Developer Mode"))}render(){const{state:e,gameStarted:n,gameEnded:r,isPlayerTurn:o,showSuggestions:a}=this.state,[i,l]=this.getSimulationFreqs();return t().createElement("div",{style:{position:"relative"}},!n&&t().createElement(G,{handleFirstPlayerSelection:e=>this.handleFirstPlayerSelection(e)}),this.showDebugElement(),t().createElement(this.BoardComponent,{state:e,onCellClick:e=>this.handleCellClick(e),show_hover:o&&!r,action_freqs:i,best_action:l}),t().createElement("div",{style:$},t().createElement("button",{style:V,onClick:()=>this.resetGame()},"Reset Game")," ",t().createElement("button",{style:V,onClick:()=>this.undoLastMove()},"Undo Move")))}}r.createRoot(document.getElementById("app")).render(t().createElement(ee,null))})()})();