function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var t,n,r,a,l={exports:{}},o={},i={exports:{}},s={};function u(){if(t)return s;t=1;
/**
	 * @license React
	 * react.production.min.js
	 *
	 * Copyright (c) Facebook, Inc. and its affiliates.
	 *
	 * This source code is licensed under the MIT license found in the
	 * LICENSE file in the root directory of this source tree.
	 */
var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var x=v.prototype=new y;x.constructor=v,m(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function N(t,n,r){var a,l={},o=null,i=null;if(null!=n)for(a in void 0!==n.ref&&(i=n.ref),void 0!==n.key&&(o=""+n.key),n)k.call(n,a)&&!E.hasOwnProperty(a)&&(l[a]=n[a]);var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];l.children=u}if(t&&t.defaultProps)for(a in s=t.defaultProps)void 0===l[a]&&(l[a]=s[a]);return{$$typeof:e,type:t,key:o,ref:i,props:l,_owner:S.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var j=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function _(t,r,a,l,o){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var s=!1;if(null===t)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case e:case n:s=!0}}if(s)return o=o(s=t),t=""===l?"."+R(s,0):l,w(o)?(a="",null!=t&&(a=t.replace(j,"$&/")+"/"),_(o,r,a,"",function(e){return e})):null!=o&&(C(o)&&(o=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(o,a+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(j,"$&/")+"/")+t)),r.push(o)),1;if(s=0,l=""===l?".":l+":",w(t))for(var u=0;u<t.length;u++){var c=l+R(i=t[u],u);s+=_(i,r,a,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(t),"function"==typeof c)for(t=c.call(t),u=0;!(i=t.next()).done;)s+=_(i=i.value,r,a,c=l+R(i,u++),o);else if("object"===i)throw r=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function P(e,t,n){if(null==e)return e;var r=[],a=0;return _(e,r,"","",function(e){return t.call(n,e,a++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},L={transition:null},A={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:L,ReactCurrentOwner:S};function F(){throw Error("act(...) is not supported in production builds of React.")}return s.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},s.Component=b,s.Fragment=r,s.Profiler=l,s.PureComponent=v,s.StrictMode=a,s.Suspense=c,s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,s.act=F,s.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=m({},t.props),l=t.key,o=t.ref,i=t._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,i=S.current),void 0!==n.key&&(l=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in n)k.call(n,u)&&!E.hasOwnProperty(u)&&(a[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}return{$$typeof:e,type:t.type,key:l,ref:o,props:a,_owner:i}},s.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},s.createElement=N,s.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},s.createRef=function(){return{current:null}},s.forwardRef=function(e){return{$$typeof:u,render:e}},s.isValidElement=C,s.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:T}},s.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},s.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},s.unstable_act=F,s.useCallback=function(e,t){return O.current.useCallback(e,t)},s.useContext=function(e){return O.current.useContext(e)},s.useDebugValue=function(){},s.useDeferredValue=function(e){return O.current.useDeferredValue(e)},s.useEffect=function(e,t){return O.current.useEffect(e,t)},s.useId=function(){return O.current.useId()},s.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},s.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},s.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},s.useMemo=function(e,t){return O.current.useMemo(e,t)},s.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},s.useRef=function(e){return O.current.useRef(e)},s.useState=function(e){return O.current.useState(e)},s.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},s.useTransition=function(){return O.current.useTransition()},s.version="18.3.1",s}function c(){return n||(n=1,i.exports=u()),i.exports}
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var d=(a||(a=1,l.exports=function(){if(r)return o;r=1;var e=c(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var o,s={},u=null,c=null;for(o in void 0!==r&&(u=""+r),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)a.call(n,o)&&!i.hasOwnProperty(o)&&(s[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===s[o]&&(s[o]=n[o]);return{$$typeof:t,type:e,key:u,ref:c,props:s,_owner:l.current}}return o.Fragment=n,o.jsx=s,o.jsxs=s,o}()),l.exports),f=c();const p=e(f);var h,m,g,b,y,v={},x={exports:{}},w={},k={exports:{}},S={};function E(){return m||(m=1,k.exports=(h||(h=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,l=e[r];if(!(0<a(l,t)))break e;e[r]=t,e[n]=l,n=r}}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();if(n!==t){e[0]=n;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var i=2*(r+1)-1,s=e[i],u=i+1,c=e[u];if(0>a(s,n))u<l&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[i]=n,r=i);else{if(!(u<l&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var s=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function v(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(s,a)}a=n(u)}}function x(e){if(m=!1,v(e),!h)if(null!==n(s))h=!0,O(w);else{var t=n(u);null!==t&&L(x,t.startTime-e)}}function w(t,a){h=!1,m&&(m=!1,b(N),N=-1),p=!0;var l=f;try{for(v(a),d=n(s);null!==d&&(!(d.expirationTime>a)||t&&!R());){var o=d.callback;if("function"==typeof o){d.callback=null,f=d.priorityLevel;var i=o(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof i?d.callback=i:d===n(s)&&r(s),v(a)}else r(s);d=n(s)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&L(x,g.startTime-a),c=!1}return c}finally{d=null,f=l,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,N=-1,C=5,j=-1;function R(){return!(e.unstable_now()-j<C)}function _(){if(null!==E){var t=e.unstable_now();j=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof y)k=function(){y(_)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=_,k=function(){T.postMessage(null)}}else k=function(){g(_,0)};function O(e){E=e,S||(S=!0,k())}function L(t,n){N=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,O(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.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}},e.unstable_scheduleCallback=function(r,a,l){var o=e.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?o+l:o,r){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>o?(r.sortIndex=l,t(u,r),null===n(s)&&r===n(u)&&(m?(b(N),N=-1):m=!0,L(x,l-o))):(r.sortIndex=i,t(s,r),h||p||(h=!0,O(w))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(S)),S)),k.exports}
/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */function N(){if(g)return w;g=1;var e=c(),t=E();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var i=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,u=/^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e,t,n,r,a,l,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){h[e]=new p(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];h[t]=new p(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){h[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){h[e]=new p(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".split(" ").forEach(function(e){h[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){h[e]=new p(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){h[e]=new p(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){h[e]=new p(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){h[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=h.hasOwnProperty(t)?h[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(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)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!s.call(f,e)||!s.call(d,e)&&(u.test(e)?f[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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".split(" ").forEach(function(e){var t=e.replace(m,b);h[t]=new p(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(m,b);h[t]=new p(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(m,b);h[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)}),h.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),R=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),F=Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var D,M=Object.assign;function U(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var I=!1;function B(e,t){if(!e||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var a=u.stack.split("\n"),l=r.stack.split("\n"),o=a.length-1,i=l.length-1;1<=o&&0<=i&&a[o]!==l[i];)i--;for(;1<=o&&0<=i;o--,i--)if(a[o]!==l[i]){if(1!==o||1!==i)do{if(o--,0>--i||a[o]!==l[i]){var s="\n"+a[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=o&&0<=i);break}}}finally{I=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case C:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case R:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(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}}function J(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Z(e,t){G(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:H(r)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ye=M({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 ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function xe(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 we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,Ne=null;function Ce(e){if(e=xa(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=ka(t),Se(e.stateNode,e.type,t))}}function je(e){Ee?Ne?Ne.push(e):Ne=[e]:Ee=e}function Re(){if(Ee){var e=Ee,t=Ne;if(Ne=Ee=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function _e(e,t){return e(t)}function Pe(){}var Te=!1;function Oe(e,t,n){if(Te)return e(t,n);Te=!0;try{return _e(e,t,n)}finally{Te=!1,(null!==Ee||null!==Ne)&&(Pe(),Re())}}function Le(e,t){var r=e.stateNode;if(null===r)return null;var a=ka(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Ae=!1;if(i)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(de){Ae=!1}function ze(e,t,n,r,a,l,o,i,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var De=!1,Me=null,Ue=!1,Ie=null,Be={onError:function(e){De=!0,Me=e}};function $e(e,t,n,r,a,l,o,i,s){De=!1,Me=null,ze.apply(Be,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(We(e)!==e)throw Error(n(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var l=r.return;if(null===l)break;var o=l.alternate;if(null===o){if(null!==(a=l.return)){r=a;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===r)return He(l),e;if(o===a)return He(l),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=l,a=o;else{for(var i=!1,s=l.child;s;){if(s===r){i=!0,r=l,a=o;break}if(s===a){i=!0,a=l,r=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===r){i=!0,r=o,a=l;break}if(s===a){i=!0,a=o,r=l;break}s=s.sibling}if(!i)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,Je=t.unstable_shouldYield,Xe=t.unstable_requestPaint,Ge=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,lt=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,o=268435455&n;if(0!==o){var i=o&~a;0!==i?r=ft(i):0!==(l&=o)&&(r=ft(l))}else 0!==(o=n&~a)?r=ft(o):0!==l&&(r=ft(l));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(l=t&-t)||16===a&&4194240&l))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var xt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,Et,Nt,Ct,jt=!1,Rt=[],_t=null,Pt=null,Tt=null,Ot=new Map,Lt=new Map,At=[],Ft="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".split(" ");function zt(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Dt(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},null!==t&&(null!==(t=xa(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Mt(e){var t=va(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,function(){Et(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xa(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function It(e,t,n){Ut(e)&&n.delete(t)}function Bt(){jt=!1,null!==_t&&Ut(_t)&&(_t=null),null!==Pt&&Ut(Pt)&&(Pt=null),null!==Tt&&Ut(Tt)&&(Tt=null),Ot.forEach(It),Lt.forEach(It)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,jt||(jt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return $t(t,e)}if(0<Rt.length){$t(Rt[0],e);for(var n=1;n<Rt.length;n++){var r=Rt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&$t(_t,e),null!==Pt&&$t(Pt,e),null!==Tt&&$t(Tt,e),Ot.forEach(t),Lt.forEach(t),n=0;n<At.length;n++)(r=At[n]).blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&null===(n=At[0]).blockedOn;)Mt(n),null===n.blockedOn&&At.shift()}var Vt=v.ReactCurrentBatchConfig,Ht=!0;function qt(e,t,n,r){var a=xt,l=Vt.transition;Vt.transition=null;try{xt=1,Kt(e,t,n,r)}finally{xt=a,Vt.transition=l}}function Qt(e,t,n,r){var a=xt,l=Vt.transition;Vt.transition=null;try{xt=4,Kt(e,t,n,r)}finally{xt=a,Vt.transition=l}}function Kt(e,t,n,r){if(Ht){var a=Jt(e,t,n,r);if(null===a)Hr(e,t,r,Yt,n),zt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return _t=Dt(_t,e,t,n,r,a),!0;case"dragenter":return Pt=Dt(Pt,e,t,n,r,a),!0;case"mouseover":return Tt=Dt(Tt,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Ot.set(l,Dt(Ot.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Lt.set(l,Dt(Lt.get(l)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(zt(e,r),4&t&&-1<Ft.indexOf(e)){for(;null!==a;){var l=xa(a);if(null!==l&&kt(l),null===(l=Jt(e,t,n,r))&&Hr(e,t,r,Yt,n),l===a)break;a=l}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Yt=null;function Jt(e,t,n,r){if(Yt=null,null!==(e=va(e=ke(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(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 1;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 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Gt=null,Zt=null,en=null;function tn(){if(en)return en;var e,t,n=Zt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[l-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function ln(e){function t(t,n,r,a,l){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return M(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=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var on,sn,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(cn),fn=M({},cn,{view:0,detail:0}),pn=ln(fn),hn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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:(e!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=ln(hn),gn=ln(M({},hn,{dataTransfer:0})),bn=ln(M({},fn,{relatedTarget:0})),yn=ln(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=ln(vn),wn=ln(M({},cn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return Nn}var jn=M({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Rn=ln(jn),_n=ln(M({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=ln(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=M({},hn,{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}),Ln=ln(On),An=[9,13,27,32],Fn=i&&"CompositionEvent"in window,zn=null;i&&"documentMode"in document&&(zn=document.documentMode);var Dn=i&&"TextEvent"in window&&!zn,Mn=i&&(!Fn||zn&&8<zn&&11>=zn),Un=String.fromCharCode(32),In=!1;function Bn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Vn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function qn(e,t,n,r){je(r),0<(t=Qr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,Kn=null;function Yn(e){Ur(e,0)}function Jn(e){if(K(wa(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(i){var Zn;if(i){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Zn=er}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function nr(){Qn&&(Qn.detachEvent("onpropertychange",rr),Kn=Qn=null)}function rr(e){if("value"===e.propertyName&&Jn(Kn)){var t=[];qn(t,Kn,e,ke(e)),Oe(Yn,t)}}function ar(e,t,n){"focusin"===e?(nr(),Kn=n,(Qn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Kn)}function or(e,t){if("click"===e)return Jn(t)}function ir(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(sr(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(r=0;r<n.length;r++){var a=n[r];if(!s.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function hr(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 mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,l=Math.min(r.start,a);r=void 0===r.end?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=dr(n,l);var o=dr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=i&&"documentMode"in document&&11>=document.documentMode,br=null,yr=null,vr=null,xr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==br||br!==Y(r)||("selectionStart"in(r=br)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=Qr(yr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Er={},Nr={};function Cr(e){if(Er[e])return Er[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Nr)return Er[e]=n[t];return e}i&&(Nr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var jr=Cr("animationend"),Rr=Cr("animationiteration"),_r=Cr("animationstart"),Pr=Cr("transitionend"),Tr=new Map,Or="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".split(" ");function Lr(e,t){Tr.set(e,t),l(t,[e])}for(var Ar=0;Ar<Or.length;Ar++){var Fr=Or[Ar];Lr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Lr(jr,"onAnimationEnd"),Lr(Rr,"onAnimationIteration"),Lr(_r,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Pr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Mr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,l,o,i,s,u){if($e.apply(this,arguments),De){if(!De)throw Error(n(198));var c=Me;De=!1,Me=null,Ue||(Ue=!0,Ie=c)}}(a,t,void 0,e),e.currentTarget=null}function Ur(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],s=i.instance,u=i.currentTarget;if(i=i.listener,s!==l&&a.isPropagationStopped())break e;Mr(a,i,u),l=s}else for(o=0;o<r.length;o++){if(s=(i=r[o]).instance,u=i.currentTarget,i=i.listener,s!==l&&a.isPropagationStopped())break e;Mr(a,i,u),l=s}}}if(Ue)throw e=Ie,Ue=!1,Ie=null,e}function Ir(e,t){var n=t[ga];void 0===n&&(n=t[ga]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Wr(e){if(!e[$r]){e[$r]=!0,r.forEach(function(t){"selectionchange"!==t&&(Dr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Xt(t)){case 1:var a=qt;break;case 4:a=Qt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var l=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;o=o.return}for(;null!==i;){if(null===(o=va(i)))return;if(5===(s=o.tag)||6===s){r=l=o;continue e}i=i.parentNode}}r=r.return}Oe(function(){var r=l,a=ke(n),o=[];e:{var i=Tr.get(e);if(void 0!==i){var s=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":s=Rn;break;case"focusin":u="focus",s=bn;break;case"focusout":u="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case jr:case Rr:case _r:s=yn;break;case Pr:s=Tn;break;case"scroll":s=pn;break;case"wheel":s=Ln;break;case"copy":case"cut":case"paste":s=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=_n}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==i?i+"Capture":null:i;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Le(h,f))&&c.push(qr(h,m,p)))),d)break;h=h.return}0<c.length&&(i=new s(i,u,null,n,a),o.push({event:i,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!va(u)&&!u[ma])&&(s||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?va(u):null)&&(u!==(d=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=_n,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?i:wa(s),p=null==u?i:wa(u),(i=new c(m,h+"leave",s,n,a)).target=d,i.relatedTarget=p,m=null,va(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==s&&Yr(o,i,s,c,!1),null!==u&&null!==d&&Yr(o,d,u,c,!0)}if("select"===(s=(i=r?wa(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===s&&"file"===i.type)var g=Xn;else if(Hn(i))if(Gn)g=ir;else{g=lr;var b=ar}else(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=or);switch(g&&(g=g(e,r))?qn(o,g,n,a):(b&&b(e,i,r),"focusout"===e&&(b=i._wrapperState)&&b.controlled&&"number"===i.type&&te(i,"number",i.value)),b=r?wa(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(br=b,yr=r,vr=null);break;case"focusout":vr=yr=br=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,wr(o,n,a);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(o,n,a)}var y;if(Fn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Wn?Bn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Mn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Wn&&(y=tn()):(Zt="value"in(Gt=a)?Gt.value:Gt.textContent,Wn=!0)),0<(b=Qr(r,v)).length&&(v=new wn(v,e,null,n,a),o.push({event:v,listeners:b}),y?v.data=y:null!==(y=$n(n))&&(v.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(In=!0,Un);case"textInput":return(e=t.data)===Un&&In?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Fn&&Bn(e,t)?(e=tn(),en=Zt=Gt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Qr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=y))}Ur(o,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Le(e,n))&&r.unshift(qr(e,l,a)),null!=(l=Le(e,t))&&r.push(qr(e,l,a))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,a){for(var l=t._reactName,o=[];null!==n&&n!==r;){var i=n,s=i.alternate,u=i.stateNode;if(null!==s&&s===r)break;5===i.tag&&null!==u&&(i=u,a?null!=(s=Le(n,l))&&o.unshift(qr(n,s,i)):a||null!=(s=Le(n,l))&&o.push(qr(n,s,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Jr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Jr,"\n").replace(Xr,"")}function Zr(e,t,r){if(t=Gr(t),Gr(e)!==t&&r)throw Error(n(425))}function ea(){}var ta=null,na=null;function ra(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 aa="function"==typeof setTimeout?setTimeout:void 0,la="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,ia="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(sa)}:aa;function sa(e){setTimeout(function(){throw e})}function ua(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Wt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function da(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fa=Math.random().toString(36).slice(2),pa="__reactFiber$"+fa,ha="__reactProps$"+fa,ma="__reactContainer$"+fa,ga="__reactEvents$"+fa,ba="__reactListeners$"+fa,ya="__reactHandles$"+fa;function va(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[pa])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function xa(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ka(e){return e[ha]||null}var Sa=[],Ea=-1;function Na(e){return{current:e}}function Ca(e){0>Ea||(e.current=Sa[Ea],Sa[Ea]=null,Ea--)}function ja(e,t){Ea++,Sa[Ea]=e.current,e.current=t}var Ra={},_a=Na(Ra),Pa=Na(!1),Ta=Ra;function Oa(e,t){var n=e.type.contextTypes;if(!n)return Ra;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function La(e){return null!=(e=e.childContextTypes)}function Aa(){Ca(Pa),Ca(_a)}function Fa(e,t,r){if(_a.current!==Ra)throw Error(n(168));ja(_a,t),ja(Pa,r)}function za(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var l in a=a.getChildContext())if(!(l in t))throw Error(n(108,V(e)||"Unknown",l));return M({},r,a)}function Da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ra,Ta=_a.current,ja(_a,e),ja(Pa,Pa.current),!0}function Ma(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=za(e,t,Ta),a.__reactInternalMemoizedMergedChildContext=e,Ca(Pa),Ca(_a),ja(_a,e)):Ca(Pa),ja(Pa,r)}var Ua=null,Ia=!1,Ba=!1;function $a(e){null===Ua?Ua=[e]:Ua.push(e)}function Wa(){if(!Ba&&null!==Ua){Ba=!0;var e=0,t=xt;try{var n=Ua;for(xt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ua=null,Ia=!1}catch(a){throw null!==Ua&&(Ua=Ua.slice(e+1)),Ke(et,Wa),a}finally{xt=t,Ba=!1}}return null}var Va=[],Ha=0,qa=null,Qa=0,Ka=[],Ya=0,Ja=null,Xa=1,Ga="";function Za(e,t){Va[Ha++]=Qa,Va[Ha++]=qa,qa=e,Qa=t}function el(e,t,n){Ka[Ya++]=Xa,Ka[Ya++]=Ga,Ka[Ya++]=Ja,Ja=e;var r=Xa;e=Ga;var a=32-it(r)-1;r&=~(1<<a),n+=1;var l=32-it(t)+a;if(30<l){var o=a-a%5;l=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Xa=1<<32-it(t)+a|n<<a|r,Ga=l+e}else Xa=1<<l|n<<a|r,Ga=e}function tl(e){null!==e.return&&(Za(e,1),el(e,1,0))}function nl(e){for(;e===qa;)qa=Va[--Ha],Va[Ha]=null,Qa=Va[--Ha],Va[Ha]=null;for(;e===Ja;)Ja=Ka[--Ya],Ka[Ya]=null,Ga=Ka[--Ya],Ka[Ya]=null,Xa=Ka[--Ya],Ka[Ya]=null}var rl=null,al=null,ll=!1,ol=null;function il(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,rl=e,al=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,rl=e,al=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ja?{id:Xa,overflow:Ga}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,rl=e,al=null,!0);default:return!1}}function ul(e){return!(!(1&e.mode)||128&e.flags)}function cl(e){if(ll){var t=al;if(t){var r=t;if(!sl(e,t)){if(ul(e))throw Error(n(418));t=ca(r.nextSibling);var a=rl;t&&sl(e,t)?il(a,r):(e.flags=-4097&e.flags|2,ll=!1,rl=e)}}else{if(ul(e))throw Error(n(418));e.flags=-4097&e.flags|2,ll=!1,rl=e}}}function dl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;rl=e}function fl(e){if(e!==rl)return!1;if(!ll)return dl(e),ll=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ra(e.type,e.memoizedProps)),t&&(t=al)){if(ul(e))throw pl(),Error(n(418));for(;t;)il(e,t),t=ca(t.nextSibling)}if(dl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){al=ca(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}al=null}}else al=rl?ca(e.stateNode.nextSibling):null;return!0}function pl(){for(var e=al;e;)e=ca(e.nextSibling)}function hl(){al=rl=null,ll=!1}function ml(e){null===ol?ol=[e]:ol.push(e)}var gl=v.ReactCurrentBatchConfig;function bl(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var l=a,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=l.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function yl(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vl(e){return(0,e._init)(e._payload)}function xl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mu(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===L&&vl(a)===t.type)?((r=l(t,n.props)).ref=bl(e,t,n),r.return=e,r):((r=Fu(n.type,n.key,n.props,null,e.mode,r)).ref=bl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Uu(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=zu(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Mu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Fu(t.type,t.key,t.props,null,e.mode,n)).ref=bl(e,null,t),n.return=e,n;case k:return(t=Uu(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||z(t))return(t=zu(t,e.mode,n,null)).return=e,t;yl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===a?u(e,t,n,r):null;case k:return n.key===a?c(e,t,n,r):null;case L:return p(e,t,(a=n._init)(n._payload),r)}if(ne(n)||z(n))return null!==a?null:d(e,t,n,r,null);yl(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case L:return h(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||z(r))return d(t,e=e.get(n)||null,r,a,null);yl(t,r)}return null}function m(n,l,i,s){for(var u=null,c=null,d=l,m=l=0,g=null;null!==d&&m<i.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(n,d,i[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),l=o(b,l,m),null===c?u=b:c.sibling=b,c=b,d=g}if(m===i.length)return r(n,d),ll&&Za(n,m),u;if(null===d){for(;m<i.length;m++)null!==(d=f(n,i[m],s))&&(l=o(d,l,m),null===c?u=d:c.sibling=d,c=d);return ll&&Za(n,m),u}for(d=a(n,d);m<i.length;m++)null!==(g=h(d,n,m,i[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),l=o(g,l,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(n,e)}),ll&&Za(n,m),u}function g(l,i,s,u){var c=z(s);if("function"!=typeof c)throw Error(n(150));if(null==(s=c.call(s)))throw Error(n(151));for(var d=c=null,m=i,g=i=0,b=null,y=s.next();null!==m&&!y.done;g++,y=s.next()){m.index>g?(b=m,m=null):b=m.sibling;var v=p(l,m,y.value,u);if(null===v){null===m&&(m=b);break}e&&m&&null===v.alternate&&t(l,m),i=o(v,i,g),null===d?c=v:d.sibling=v,d=v,m=b}if(y.done)return r(l,m),ll&&Za(l,g),c;if(null===m){for(;!y.done;g++,y=s.next())null!==(y=f(l,y.value,u))&&(i=o(y,i,g),null===d?c=y:d.sibling=y,d=y);return ll&&Za(l,g),c}for(m=a(l,m);!y.done;g++,y=s.next())null!==(y=h(m,l,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),i=o(y,i,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(l,e)}),ll&&Za(l,g),c}return function e(n,a,o,s){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case x:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){r(n,c.sibling),(a=l(c,o.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===L&&vl(u)===c.type){r(n,c.sibling),(a=l(c,o.props)).ref=bl(n,c,o),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}o.type===S?((a=zu(o.props.children,n.mode,s,o.key)).return=n,n=a):((s=Fu(o.type,o.key,o.props,null,n.mode,s)).ref=bl(n,a,o),s.return=n,n=s)}return i(n);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){r(n,a.sibling),(a=l(a,o.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Uu(o,n.mode,s)).return=n,n=a}return i(n);case L:return e(n,a,(c=o._init)(o._payload),s)}if(ne(o))return m(n,a,o,s);if(z(o))return g(n,a,o,s);yl(n,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(r(n,a.sibling),(a=l(a,o)).return=n,n=a):(r(n,a),(a=Mu(o,n.mode,s)).return=n,n=a),i(n)):r(n,a)}}var wl=xl(!0),kl=xl(!1),Sl=Na(null),El=null,Nl=null,Cl=null;function jl(){Cl=Nl=El=null}function Rl(e){var t=Sl.current;Ca(Sl),e._currentValue=t}function _l(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Pl(e,t){El=e,Cl=Nl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xi=!0),e.firstContext=null)}function Tl(e){var t=e._currentValue;if(Cl!==e)if(e={context:e,memoizedValue:t,next:null},null===Nl){if(null===El)throw Error(n(308));Nl=e,El.dependencies={lanes:0,firstContext:e}}else Nl=Nl.next=e;return t}var Ol=null;function Ll(e){null===Ol?Ol=[e]:Ol.push(e)}function Al(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ll(t)):(n.next=a.next,a.next=n),t.interleaved=n,Fl(e,r)}function Fl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zl=!1;function Dl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ml(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ul(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Il(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_s){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Fl(e,n)}return null===(a=r.interleaved)?(t.next=t,Ll(r)):(t.next=a.next,a.next=t),r.interleaved=t,Fl(e,n)}function Bl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function $l(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=o:l=l.next=o,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Wl(e,t,n,r){var a=e.updateQueue;zl=!1;var l=a.firstBaseUpdate,o=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var s=i,u=s.next;s.next=null,null===o?l=u:o.next=u,o=s;var c=e.alternate;null!==c&&((i=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===i?c.firstBaseUpdate=u:i.next=u,c.lastBaseUpdate=s))}if(null!==l){var d=a.baseState;for(o=0,c=u=s=null,i=l;;){var f=i.lane,p=i.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=M({},d,f);break e;case 2:zl=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[i]:f.push(i))}else p={eventTime:p,lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(u=c=p,s=d):c=c.next=p,o|=f;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(f=i).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(s=d),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===l&&(a.shared.lanes=0);Ds|=o,e.lanes=o,e.memoizedState=d}}function Vl(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],l=a.callback;if(null!==l){if(a.callback=null,a=r,"function"!=typeof l)throw Error(n(191,l));l.call(a)}}}var Hl={},ql=Na(Hl),Ql=Na(Hl),Kl=Na(Hl);function Yl(e){if(e===Hl)throw Error(n(174));return e}function Jl(e,t){switch(ja(Kl,t),ja(Ql,e),ja(ql,Hl),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ca(ql),ja(ql,t)}function Xl(){Ca(ql),Ca(Ql),Ca(Kl)}function Gl(e){Yl(Kl.current);var t=Yl(ql.current),n=ue(t,e.type);t!==n&&(ja(Ql,e),ja(ql,n))}function Zl(e){Ql.current===e&&(Ca(ql),Ca(Ql))}var eo=Na(0);function to(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;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 no=[];function ro(){for(var e=0;e<no.length;e++)no[e]._workInProgressVersionPrimary=null;no.length=0}var ao=v.ReactCurrentDispatcher,lo=v.ReactCurrentBatchConfig,oo=0,io=null,so=null,uo=null,co=!1,fo=!1,po=0,ho=0;function mo(){throw Error(n(321))}function go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function bo(e,t,r,a,l,o){if(oo=o,io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ao.current=null===e||null===e.memoizedState?ei:ti,e=r(a,l),fo){o=0;do{if(fo=!1,po=0,25<=o)throw Error(n(301));o+=1,uo=so=null,t.updateQueue=null,ao.current=ni,e=r(a,l)}while(fo)}if(ao.current=Zo,t=null!==so&&null!==so.next,oo=0,uo=so=io=null,co=!1,t)throw Error(n(300));return e}function yo(){var e=0!==po;return po=0,e}function vo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===uo?io.memoizedState=uo=e:uo=uo.next=e,uo}function xo(){if(null===so){var e=io.alternate;e=null!==e?e.memoizedState:null}else e=so.next;var t=null===uo?io.memoizedState:uo.next;if(null!==t)uo=t,so=e;else{if(null===e)throw Error(n(310));e={memoizedState:(so=e).memoizedState,baseState:so.baseState,baseQueue:so.baseQueue,queue:so.queue,next:null},null===uo?io.memoizedState=uo=e:uo=uo.next=e}return uo}function wo(e,t){return"function"==typeof t?t(e):t}function ko(e){var t=xo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=so,l=a.baseQueue,o=r.pending;if(null!==o){if(null!==l){var i=l.next;l.next=o.next,o.next=i}a.baseQueue=l=o,r.pending=null}if(null!==l){o=l.next,a=a.baseState;var s=i=null,u=null,c=o;do{var d=c.lane;if((oo&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=f,i=a):u=u.next=f,io.lanes|=d,Ds|=d}c=c.next}while(null!==c&&c!==o);null===u?i=a:u.next=s,sr(a,t.memoizedState)||(xi=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){l=e;do{o=l.lane,io.lanes|=o,Ds|=o,l=l.next}while(l!==e)}else null===l&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function So(e){var t=xo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,l=r.pending,o=t.memoizedState;if(null!==l){r.pending=null;var i=l=l.next;do{o=e(o,i.action),i=i.next}while(i!==l);sr(o,t.memoizedState)||(xi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function Eo(){}function No(e,t){var r=io,a=xo(),l=t(),o=!sr(a.memoizedState,l);if(o&&(a.memoizedState=l,xi=!0),a=a.queue,Do(Ro.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==uo&&1&uo.memoizedState.tag){if(r.flags|=2048,Oo(9,jo.bind(null,r,a,l,t),void 0,null),null===Ps)throw Error(n(349));30&oo||Co(r,t,l)}return l}function Co(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=io.updateQueue)?(t={lastEffect:null,stores:null},io.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function jo(e,t,n,r){t.value=n,t.getSnapshot=r,_o(t)&&Po(e)}function Ro(e,t,n){return n(function(){_o(t)&&Po(e)})}function _o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Po(e){var t=Fl(e,1);null!==t&&ru(t,e,1,-1)}function To(e){var t=vo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wo,lastRenderedState:e},t.queue=e,e=e.dispatch=Yo.bind(null,io,e),[t.memoizedState,e]}function Oo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=io.updateQueue)?(t={lastEffect:null,stores:null},io.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Lo(){return xo().memoizedState}function Ao(e,t,n,r){var a=vo();io.flags|=e,a.memoizedState=Oo(1|t,n,void 0,void 0===r?null:r)}function Fo(e,t,n,r){var a=xo();r=void 0===r?null:r;var l=void 0;if(null!==so){var o=so.memoizedState;if(l=o.destroy,null!==r&&go(r,o.deps))return void(a.memoizedState=Oo(t,n,l,r))}io.flags|=e,a.memoizedState=Oo(1|t,n,l,r)}function zo(e,t){return Ao(8390656,8,e,t)}function Do(e,t){return Fo(2048,8,e,t)}function Mo(e,t){return Fo(4,2,e,t)}function Uo(e,t){return Fo(4,4,e,t)}function Io(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bo(e,t,n){return n=null!=n?n.concat([e]):null,Fo(4,4,Io.bind(null,t,e),n)}function $o(){}function Wo(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vo(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ho(e,t,n){return 21&oo?(sr(n,t)||(n=gt(),io.lanes|=n,Ds|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xi=!0),e.memoizedState=n)}function qo(e,t){var n=xt;xt=0!==n&&4>n?n:4,e(!0);var r=lo.transition;lo.transition={};try{e(!1),t()}finally{xt=n,lo.transition=r}}function Qo(){return xo().memoizedState}function Ko(e,t,n){var r=nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jo(e))Xo(t,n);else if(null!==(n=Al(e,t,n,r))){ru(n,e,r,tu()),Go(n,t,r)}}function Yo(e,t,n){var r=nu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jo(e))Xo(t,a);else{var l=e.alternate;if(0===e.lanes&&(null===l||0===l.lanes)&&null!==(l=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=l(o,n);if(a.hasEagerState=!0,a.eagerState=i,sr(i,o)){var s=t.interleaved;return null===s?(a.next=a,Ll(t)):(a.next=s.next,s.next=a),void(t.interleaved=a)}}catch(u){}null!==(n=Al(e,t,a,r))&&(ru(n,e,r,a=tu()),Go(n,t,r))}}function Jo(e){var t=e.alternate;return e===io||null!==t&&t===io}function Xo(e,t){fo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Go(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Zo={readContext:Tl,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useInsertionEffect:mo,useLayoutEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useMutableSource:mo,useSyncExternalStore:mo,useId:mo,unstable_isNewReconciler:!1},ei={readContext:Tl,useCallback:function(e,t){return vo().memoizedState=[e,void 0===t?null:t],e},useContext:Tl,useEffect:zo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ao(4194308,4,Io.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ao(4,2,e,t)},useMemo:function(e,t){var n=vo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ko.bind(null,io,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vo().memoizedState=e},useState:To,useDebugValue:$o,useDeferredValue:function(e){return vo().memoizedState=e},useTransition:function(){var e=To(!1),t=e[0];return e=qo.bind(null,e[1]),vo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=io,l=vo();if(ll){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ps)throw Error(n(349));30&oo||Co(a,t,r)}l.memoizedState=r;var o={value:r,getSnapshot:t};return l.queue=o,zo(Ro.bind(null,a,o,e),[e]),a.flags|=2048,Oo(9,jo.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=vo(),t=Ps.identifierPrefix;if(ll){var n=Ga;t=":"+t+"R"+(n=(Xa&~(1<<32-it(Xa)-1)).toString(32)+n),0<(n=po++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ho++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ti={readContext:Tl,useCallback:Wo,useContext:Tl,useEffect:Do,useImperativeHandle:Bo,useInsertionEffect:Mo,useLayoutEffect:Uo,useMemo:Vo,useReducer:ko,useRef:Lo,useState:function(){return ko(wo)},useDebugValue:$o,useDeferredValue:function(e){return Ho(xo(),so.memoizedState,e)},useTransition:function(){return[ko(wo)[0],xo().memoizedState]},useMutableSource:Eo,useSyncExternalStore:No,useId:Qo,unstable_isNewReconciler:!1},ni={readContext:Tl,useCallback:Wo,useContext:Tl,useEffect:Do,useImperativeHandle:Bo,useInsertionEffect:Mo,useLayoutEffect:Uo,useMemo:Vo,useReducer:So,useRef:Lo,useState:function(){return So(wo)},useDebugValue:$o,useDeferredValue:function(e){var t=xo();return null===so?t.memoizedState=e:Ho(t,so.memoizedState,e)},useTransition:function(){return[So(wo)[0],xo().memoizedState]},useMutableSource:Eo,useSyncExternalStore:No,useId:Qo,unstable_isNewReconciler:!1};function ri(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ai(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var li={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),l=Ul(r,a);l.payload=t,null!=n&&(l.callback=n),null!==(t=Il(e,l,a))&&(ru(t,e,a,r),Bl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),a=nu(e),l=Ul(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=Il(e,l,a))&&(ru(t,e,a,r),Bl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),a=Ul(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Il(e,a,r))&&(ru(t,e,r,n),Bl(t,e,r))}};function oi(e,t,n,r,a,l,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(a,l))}function ii(e,t,n){var r=!1,a=Ra,l=t.contextType;return"object"==typeof l&&null!==l?l=Tl(l):(a=La(t)?Ta:_a.current,l=(r=null!=(r=t.contextTypes))?Oa(e,a):Ra),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=li,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&li.enqueueReplaceState(t,t.state,null)}function ui(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Dl(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=Tl(l):(l=La(t)?Ta:_a.current,a.context=Oa(e,l)),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(ai(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&li.enqueueReplaceState(a,a.state,null),Wl(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function ci(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(l){a="\nError generating stack: "+l.message+"\n"+l.stack}return{value:e,source:t,stack:a,digest:null}}function di(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fi(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pi="function"==typeof WeakMap?WeakMap:Map;function hi(e,t,n){(n=Ul(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,qs=r),fi(0,t)},n}function mi(e,t,n){(n=Ul(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){fi(0,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){fi(0,t),"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pi;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function bi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yi(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ul(-1,1)).tag=2,Il(n,t,1))),n.lanes|=1),e)}var vi=v.ReactCurrentOwner,xi=!1;function wi(e,t,n,r){t.child=null===e?kl(t,null,n,r):wl(t,e.child,n,r)}function ki(e,t,n,r,a){n=n.render;var l=t.ref;return Pl(t,a),r=bo(e,t,n,r,l,a),n=yo(),null===e||xi?(ll&&n&&tl(t),t.flags|=1,wi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Hi(e,t,a))}function Si(e,t,n,r,a){if(null===e){var l=n.type;return"function"!=typeof l||Lu(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,Ei(e,t,l,r,a))}if(l=e.child,0===(e.lanes&a)){var o=l.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return Hi(e,t,a)}return t.flags|=1,(e=Au(l,r)).ref=t.ref,e.return=t,t.child=e}function Ei(e,t,n,r,a){if(null!==e){var l=e.memoizedProps;if(ur(l,r)&&e.ref===t.ref){if(xi=!1,t.pendingProps=r=l,0===(e.lanes&a))return t.lanes=e.lanes,Hi(e,t,a);131072&e.flags&&(xi=!0)}}return ji(e,t,n,r,a)}function Ni(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ja(As,Ls),Ls|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==l?l.baseLanes:n,ja(As,Ls),Ls|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ja(As,Ls),Ls|=n;else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,ja(As,Ls),Ls|=r;return wi(e,t,a,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ji(e,t,n,r,a){var l=La(n)?Ta:_a.current;return l=Oa(t,l),Pl(t,a),n=bo(e,t,n,r,l,a),r=yo(),null===e||xi?(ll&&r&&tl(t),t.flags|=1,wi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Hi(e,t,a))}function Ri(e,t,n,r,a){if(La(n)){var l=!0;Da(t)}else l=!1;if(Pl(t,a),null===t.stateNode)Vi(e,t),ii(t,n,r),ui(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var s=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=Tl(u):u=Oa(t,u=La(n)?Ta:_a.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||s!==u)&&si(t,o,r,u),zl=!1;var f=t.memoizedState;o.state=f,Wl(t,r,o,a),s=t.memoizedState,i!==r||f!==s||Pa.current||zl?("function"==typeof c&&(ai(t,n,c,r),s=t.memoizedState),(i=zl||oi(t,n,i,r,f,s,u))?(d||"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&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ml(e,t),i=t.memoizedProps,u=t.type===t.elementType?i:ri(t.type,i),o.props=u,d=t.pendingProps,f=o.context,"object"==typeof(s=n.contextType)&&null!==s?s=Tl(s):s=Oa(t,s=La(n)?Ta:_a.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==d||f!==s)&&si(t,o,r,s),zl=!1,f=t.memoizedState,o.state=f,Wl(t,r,o,a);var h=t.memoizedState;i!==d||f!==h||Pa.current||zl?("function"==typeof p&&(ai(t,n,p,r),h=t.memoizedState),(u=zl||oi(t,n,u,r,f,h,s)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return _i(e,t,n,r,l,a)}function _i(e,t,n,r,a,l){Ci(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ma(t,n,!1),Hi(e,t,l);r=t.stateNode,vi.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wl(t,e.child,null,l),t.child=wl(t,null,i,l)):wi(e,t,i,l),t.memoizedState=r.state,a&&Ma(t,n,!0),t.child}function Pi(e){var t=e.stateNode;t.pendingContext?Fa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Fa(0,t.context,!1),Jl(e,t.containerInfo)}function Ti(e,t,n,r,a){return hl(),ml(a),t.flags|=256,wi(e,t,n,r),t.child}var Oi,Li,Ai,Fi,zi={dehydrated:null,treeContext:null,retryLane:0};function Di(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mi(e,t,r){var a,l=t.pendingProps,o=eo.current,i=!1,s=!!(128&t.flags);if((a=s)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),ja(eo,1&o),null===e)return cl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=l.children,e=l.fallback,i?(l=t.mode,i=t.child,s={mode:"hidden",children:s},1&l||null===i?i=Du(s,l,0,null):(i.childLanes=0,i.pendingProps=s),e=zu(e,l,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Di(r),t.memoizedState=zi,e):Ui(t,s));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,l,o,i){if(r)return 256&t.flags?(t.flags&=-257,Ii(e,t,i,a=di(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,l=t.mode,a=Du({mode:"visible",children:a.children},l,0,null),(o=zu(o,l,i,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&wl(t,e.child,null,i),t.child.memoizedState=Di(i),t.memoizedState=zi,o);if(!(1&t.mode))return Ii(e,t,i,null);if("$!"===l.data){if(a=l.nextSibling&&l.nextSibling.dataset)var s=a.dgst;return a=s,Ii(e,t,i,a=di(o=Error(n(419)),a,void 0))}if(s=0!==(i&e.childLanes),xi||s){if(null!==(a=Ps)){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!==(l&(a.suspendedLanes|i))?0:l)&&l!==o.retryLane&&(o.retryLane=l,Fl(e,l),ru(a,e,l,-1))}return gu(),Ii(e,t,i,a=di(Error(n(421))))}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=Ru.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,al=ca(l.nextSibling),rl=t,ll=!0,ol=null,null!==e&&(Ka[Ya++]=Xa,Ka[Ya++]=Ga,Ka[Ya++]=Ja,Xa=e.id,Ga=e.overflow,Ja=t),t=Ui(t,a.children),t.flags|=4096,t)}(e,t,s,l,a,o,r);if(i){i=l.fallback,s=t.mode,a=(o=e.child).sibling;var u={mode:"hidden",children:l.children};return 1&s||t.child===o?(l=Au(o,u)).subtreeFlags=14680064&o.subtreeFlags:((l=t.child).childLanes=0,l.pendingProps=u,t.deletions=null),null!==a?i=Au(a,i):(i=zu(i,s,r,null)).flags|=2,i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,s=null===(s=e.child.memoizedState)?Di(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=zi,l}return e=(i=e.child).sibling,l=Au(i,{mode:"visible",children:l.children}),!(1&t.mode)&&(l.lanes=r),l.return=t,l.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Ui(e,t){return(t=Du({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ii(e,t,n,r){return null!==r&&ml(r),wl(t,e.child,null,n),(e=Ui(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_l(e.return,t,n)}function $i(e,t,n,r,a){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a)}function Wi(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(wi(e,t,r.children,n),2&(r=eo.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ja(eo,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===to(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$i(t,!1,a,n,l);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===to(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$i(t,!0,n,null,l);break;case"together":$i(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vi(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hi(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Au(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Au(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function qi(e,t){if(!ll)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ki(e,t,r){var l=t.pendingProps;switch(nl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qi(t),null;case 1:case 17:return La(t.type)&&Aa(),Qi(t),null;case 3:return l=t.stateNode,Xl(),Ca(Pa),Ca(_a),ro(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(fl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ol&&(iu(ol),ol=null))),Li(e,t),Qi(t),null;case 5:Zl(t);var o=Yl(Kl.current);if(r=t.type,null!==e&&null!=t.stateNode)Ai(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(n(166));return Qi(t),null}if(e=Yl(ql.current),fl(t)){l=t.stateNode,r=t.type;var i=t.memoizedProps;switch(l[pa]=t,l[ha]=i,e=!!(1&t.mode),r){case"dialog":Ir("cancel",l),Ir("close",l);break;case"iframe":case"object":case"embed":Ir("load",l);break;case"video":case"audio":for(o=0;o<zr.length;o++)Ir(zr[o],l);break;case"source":Ir("error",l);break;case"img":case"image":case"link":Ir("error",l),Ir("load",l);break;case"details":Ir("toggle",l);break;case"input":X(l,i),Ir("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!i.multiple},Ir("invalid",l);break;case"textarea":le(l,i),Ir("invalid",l)}for(var s in ve(r,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"==typeof u?l.textContent!==u&&(!0!==i.suppressHydrationWarning&&Zr(l.textContent,u,e),o=["children",u]):"number"==typeof u&&l.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Zr(l.textContent,u,e),o=["children",""+u]):a.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Ir("scroll",l)}switch(r){case"input":Q(l),ee(l,i,!0);break;case"textarea":Q(l),ie(l);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(l.onclick=ea)}l=o,t.updateQueue=l,null!==l&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=s.createElement(r,{is:l.is}):(e=s.createElement(r),"select"===r&&(s=e,l.multiple?s.multiple=!0:l.size&&(s.size=l.size))):e=s.createElementNS(e,r),e[pa]=t,e[ha]=l,Oi(e,t,!1,!1),t.stateNode=e;e:{switch(s=xe(r,l),r){case"dialog":Ir("cancel",e),Ir("close",e),o=l;break;case"iframe":case"object":case"embed":Ir("load",e),o=l;break;case"video":case"audio":for(o=0;o<zr.length;o++)Ir(zr[o],e);o=l;break;case"source":Ir("error",e),o=l;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),o=l;break;case"details":Ir("toggle",e),o=l;break;case"input":X(e,l),o=J(e,l),Ir("invalid",e);break;case"option":default:o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=M({},l,{value:void 0}),Ir("invalid",e);break;case"textarea":le(e,l),o=ae(e,l),Ir("invalid",e)}for(i in ve(r,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?be(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===i?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(a.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Ir("scroll",e):null!=c&&y(e,i,c,s))}switch(r){case"input":Q(e),ee(e,l,!1);break;case"textarea":Q(e),ie(e);break;case"option":null!=l.value&&e.setAttribute("value",""+H(l.value));break;case"select":e.multiple=!!l.multiple,null!=(i=l.value)?re(e,!!l.multiple,i,!1):null!=l.defaultValue&&re(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ea)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qi(t),null;case 6:if(e&&null!=t.stateNode)Fi(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error(n(166));if(r=Yl(Kl.current),Yl(ql.current),fl(t)){if(l=t.stateNode,r=t.memoizedProps,l[pa]=t,(i=l.nodeValue!==r)&&null!==(e=rl))switch(e.tag){case 3:Zr(l.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(l.nodeValue,r,!!(1&e.mode))}i&&(t.flags|=4)}else(l=(9===r.nodeType?r:r.ownerDocument).createTextNode(l))[pa]=t,t.stateNode=l}return Qi(t),null;case 13:if(Ca(eo),l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ll&&null!==al&&1&t.mode&&!(128&t.flags))pl(),hl(),t.flags|=98560,i=!1;else if(i=fl(t),null!==l&&null!==l.dehydrated){if(null===e){if(!i)throw Error(n(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(n(317));i[pa]=t}else hl(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qi(t),i=!1}else null!==ol&&(iu(ol),ol=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((l=null!==l)!==(null!==e&&null!==e.memoizedState)&&l&&(t.child.flags|=8192,1&t.mode&&(null===e||1&eo.current?0===Fs&&(Fs=3):gu())),null!==t.updateQueue&&(t.flags|=4),Qi(t),null);case 4:return Xl(),Li(e,t),null===e&&Wr(t.stateNode.containerInfo),Qi(t),null;case 10:return Rl(t.type._context),Qi(t),null;case 19:if(Ca(eo),null===(i=t.memoizedState))return Qi(t),null;if(l=!!(128&t.flags),null===(s=i.rendering))if(l)qi(i,!1);else{if(0!==Fs||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(s=to(e))){for(t.flags|=128,qi(i,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;null!==r;)e=l,(i=r).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ja(eo,1&eo.current|2),t.child}e=e.sibling}null!==i.tail&&Ge()>Ws&&(t.flags|=128,l=!0,qi(i,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=to(s))){if(t.flags|=128,l=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),qi(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!ll)return Qi(t),null}else 2*Ge()-i.renderingStartTime>Ws&&1073741824!==r&&(t.flags|=128,l=!0,qi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=i.last)?r.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ge(),t.sibling=null,r=eo.current,ja(eo,l?1&r|2:1&r),t):(Qi(t),null);case 22:case 23:return fu(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&1&t.mode?!!(1073741824&Ls)&&(Qi(t),6&t.subtreeFlags&&(t.flags|=8192)):Qi(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Yi(e,t){switch(nl(t),t.tag){case 1:return La(t.type)&&Aa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xl(),Ca(Pa),Ca(_a),ro(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Zl(t),null;case 13:if(Ca(eo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));hl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ca(eo),null;case 4:return Xl(),null;case 10:return Rl(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Oi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Li=function(){},Ai=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Yl(ql.current);var o,i=null;switch(n){case"input":l=J(e,l),r=J(e,r),i=[];break;case"select":l=M({},l,{value:void 0}),r=M({},r,{value:void 0}),i=[];break;case"textarea":l=ae(e,l),r=ae(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=ea)}for(c in ve(n,r),n=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var s=l[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ir("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Fi=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ji=!1,Xi=!1,Gi="function"==typeof WeakSet?WeakSet:Set,Zi=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Nu(e,t,r)}else n.current=null}function ts(e,t,n){try{n()}catch(r){Nu(e,t,r)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,void 0!==l&&ts(t,n,l)}a=a.next}while(a!==r)}}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function os(e){var t=e.alternate;null!==t&&(e.alternate=null,os(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ga],delete t[ba],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ea));else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(lt,n)}catch(i){}switch(n.tag){case 5:Xi||es(n,t);case 6:var r=ds,a=fs;ds=null,ps(e,t,n),fs=a,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?ua(e.parentNode,n):1===e.nodeType&&ua(e,n),Wt(e)):ua(ds,n.stateNode));break;case 4:r=ds,a=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=a;break;case 0:case 11:case 14:case 15:if(!Xi&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var l=a,o=l.destroy;l=l.tag,void 0!==o&&(2&l||4&l)&&ts(n,t,o),a=a.next}while(a!==r)}ps(e,t,n);break;case 1:if(!Xi&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Nu(n,t,i)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xi=(r=Xi)||null!==n.memoizedState,ps(e,t,n),Xi=r):ps(e,t,n);break;default:ps(e,t,n)}}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Gi),t.forEach(function(t){var r=_u.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gs(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var l=r[a];try{var o=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:ds=s.stateNode,fs=!1;break e;case 3:case 4:ds=s.stateNode.containerInfo,fs=!0;break e}s=s.return}if(null===ds)throw Error(n(160));hs(o,i,l),ds=null,fs=!1;var u=l.alternate;null!==u&&(u.return=null),l.return=null}catch(c){Nu(l,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)bs(t,e),t=t.sibling}function bs(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),ys(e),4&a){try{rs(3,e,e.return),as(3,e)}catch(g){Nu(e,e.return,g)}try{rs(5,e,e.return)}catch(g){Nu(e,e.return,g)}}break;case 1:gs(t,e),ys(e),512&a&&null!==r&&es(r,r.return);break;case 5:if(gs(t,e),ys(e),512&a&&null!==r&&es(r,r.return),32&e.flags){var l=e.stateNode;try{pe(l,"")}catch(g){Nu(e,e.return,g)}}if(4&a&&null!=(l=e.stateNode)){var o=e.memoizedProps,i=null!==r?r.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===o.type&&null!=o.name&&G(l,o),xe(s,i);var c=xe(s,o);for(i=0;i<u.length;i+=2){var d=u[i],f=u[i+1];"style"===d?be(l,f):"dangerouslySetInnerHTML"===d?fe(l,f):"children"===d?pe(l,f):y(l,d,f,c)}switch(s){case"input":Z(l,o);break;case"textarea":oe(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?re(l,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?re(l,!!o.multiple,o.defaultValue,!0):re(l,!!o.multiple,o.multiple?[]:"",!1))}l[ha]=o}catch(g){Nu(e,e.return,g)}}break;case 6:if(gs(t,e),ys(e),4&a){if(null===e.stateNode)throw Error(n(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(g){Nu(e,e.return,g)}}break;case 3:if(gs(t,e),ys(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(g){Nu(e,e.return,g)}break;case 4:default:gs(t,e),ys(e);break;case 13:gs(t,e),ys(e),8192&(l=e.child).flags&&(o=null!==l.memoizedState,l.stateNode.isHidden=o,!o||null!==l.alternate&&null!==l.alternate.memoizedState||($s=Ge())),4&a&&ms(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xi=(c=Xi)||d,gs(t,e),Xi=c):gs(t,e),ys(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Zi=e,d=e.child;null!==d;){for(f=Zi=d;null!==Zi;){switch(h=(p=Zi).child,p.tag){case 0:case 11:case 14:case 15:rs(4,p,p.return);break;case 1:es(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Nu(a,r,g)}}break;case 5:es(p,p.return);break;case 22:if(null!==p.memoizedState){ks(f);continue}}null!==h?(h.return=p,Zi=h):ks(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{l=f.stateNode,c?"function"==typeof(o=l.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=f.stateNode,i=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,s.style.display=ge("display",i))}catch(g){Nu(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(g){Nu(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gs(t,e),ys(e),4&a&&ms(e);case 21:}}function ys(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(is(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var l=a.stateNode;32&a.flags&&(pe(l,""),a.flags&=-33),cs(e,ss(e),l);break;case 3:case 4:var o=a.stateNode.containerInfo;us(e,ss(e),o);break;default:throw Error(n(161))}}catch(i){Nu(e,e.return,i)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Zi=e,xs(e)}function xs(e,t,n){for(var r=!!(1&e.mode);null!==Zi;){var a=Zi,l=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Ji;if(!o){var i=a.alternate,s=null!==i&&null!==i.memoizedState||Xi;i=Ji;var u=Xi;if(Ji=o,(Xi=s)&&!u)for(Zi=a;null!==Zi;)s=(o=Zi).child,22===o.tag&&null!==o.memoizedState?Ss(a):null!==s?(s.return=o,Zi=s):Ss(a);for(;null!==l;)Zi=l,xs(l),l=l.sibling;Zi=a,Ji=i,Xi=u}ws(e)}else 8772&a.subtreeFlags&&null!==l?(l.return=a,Zi=l):ws(e)}}function ws(e){for(;null!==Zi;){var t=Zi;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xi||as(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Xi)if(null===r)a.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:ri(t.type,r.memoizedProps);a.componentDidUpdate(l,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Vl(t,o,a);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Vl(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(n(163))}Xi||512&t.flags&&ls(t)}catch(p){Nu(t,t.return,p)}}if(t===e){Zi=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zi=r;break}Zi=t.return}}function ks(e){for(;null!==Zi;){var t=Zi;if(t===e){Zi=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zi=n;break}Zi=t.return}}function Ss(e){for(;null!==Zi;){var t=Zi;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{as(4,t)}catch(s){Nu(t,n,s)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(s){Nu(t,a,s)}}var l=t.return;try{ls(t)}catch(s){Nu(t,l,s)}break;case 5:var o=t.return;try{ls(t)}catch(s){Nu(t,o,s)}}}catch(s){Nu(t,t.return,s)}if(t===e){Zi=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Zi=i;break}Zi=t.return}}var Es,Ns=Math.ceil,Cs=v.ReactCurrentDispatcher,js=v.ReactCurrentOwner,Rs=v.ReactCurrentBatchConfig,_s=0,Ps=null,Ts=null,Os=0,Ls=0,As=Na(0),Fs=0,zs=null,Ds=0,Ms=0,Us=0,Is=null,Bs=null,$s=0,Ws=1/0,Vs=null,Hs=!1,qs=null,Qs=null,Ks=!1,Ys=null,Js=0,Xs=0,Gs=null,Zs=-1,eu=0;function tu(){return 6&_s?Ge():-1!==Zs?Zs:Zs=Ge()}function nu(e){return 1&e.mode?2&_s&&0!==Os?Os&-Os:null!==gl.transition?(0===eu&&(eu=gt()),eu):0!==(e=xt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ru(e,t,r,a){if(50<Xs)throw Xs=0,Gs=null,Error(n(185));yt(e,r,a),2&_s&&e===Ps||(e===Ps&&(!(2&_s)&&(Ms|=r),4===Fs&&su(e,Os)),au(e,a),1===r&&0===_s&&!(1&t.mode)&&(Ws=Ge()+500,Ia&&Wa()))}function au(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-it(l),i=1<<o,s=a[o];-1===s?0!==(i&n)&&0===(i&r)||(a[o]=ht(i,t)):s<=t&&(e.expiredLanes|=i),l&=~i}}(e,t);var r=pt(e,e===Ps?Os:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Ia=!0,$a(e)}(uu.bind(null,e)):$a(uu.bind(null,e)),ia(function(){!(6&_s)&&Wa()}),n=null;else{switch(wt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=Pu(n,lu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function lu(e,t){if(Zs=-1,eu=0,6&_s)throw Error(n(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var a=pt(e,e===Ps?Os:0);if(0===a)return null;if(30&a||0!==(a&e.expiredLanes)||t)t=bu(e,a);else{t=a;var l=_s;_s|=2;var o=mu();for(Ps===e&&Os===t||(Vs=null,Ws=Ge()+500,pu(e,t));;)try{vu();break}catch(s){hu(e,s)}jl(),Cs.current=o,_s=l,null!==Ts?t=0:(Ps=null,Os=0,t=Fs)}if(0!==t){if(2===t&&(0!==(l=mt(e))&&(a=l,t=ou(e,l))),1===t)throw r=zs,pu(e,0),su(e,a),au(e,Ge()),r;if(6===t)su(e,a);else{if(l=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!sr(l(),a))return!1}catch(i){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;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}(l)||(t=bu(e,a),2===t&&(o=mt(e),0!==o&&(a=o,t=ou(e,o))),1!==t)))throw r=zs,pu(e,0),su(e,a),au(e,Ge()),r;switch(e.finishedWork=l,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:ku(e,Bs,Vs);break;case 3:if(su(e,a),(130023424&a)===a&&10<(t=$s+500-Ge())){if(0!==pt(e,0))break;if(((l=e.suspendedLanes)&a)!==a){tu(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=aa(ku.bind(null,e,Bs,Vs),t);break}ku(e,Bs,Vs);break;case 4:if(su(e,a),(4194240&a)===a)break;for(t=e.eventTimes,l=-1;0<a;){var i=31-it(a);o=1<<i,(i=t[i])>l&&(l=i),a&=~o}if(a=l,10<(a=(120>(a=Ge()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Ns(a/1960))-a)){e.timeoutHandle=aa(ku.bind(null,e,Bs,Vs),a);break}ku(e,Bs,Vs);break;default:throw Error(n(329))}}}return au(e,Ge()),e.callbackNode===r?lu.bind(null,e):null}function ou(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=bu(e,t))&&(t=Bs,Bs=n,null!==t&&iu(t)),e}function iu(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function su(e,t){for(t&=~Us,t&=~Ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&_s)throw Error(n(327));Su();var t=pt(e,0);if(!(1&t))return au(e,Ge()),null;var r=bu(e,t);if(0!==e.tag&&2===r){var a=mt(e);0!==a&&(t=a,r=ou(e,a))}if(1===r)throw r=zs,pu(e,0),su(e,t),au(e,Ge()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,Bs,Vs),au(e,Ge()),null}function cu(e,t){var n=_s;_s|=1;try{return e(t)}finally{0===(_s=n)&&(Ws=Ge()+500,Ia&&Wa())}}function du(e){null!==Ys&&0===Ys.tag&&!(6&_s)&&Su();var t=_s;_s|=1;var n=Rs.transition,r=xt;try{if(Rs.transition=null,xt=1,e)return e()}finally{xt=r,Rs.transition=n,!(6&(_s=t))&&Wa()}}function fu(){Ls=As.current,Ca(As)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,la(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(nl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Aa();break;case 3:Xl(),Ca(Pa),Ca(_a),ro();break;case 5:Zl(r);break;case 4:Xl();break;case 13:case 19:Ca(eo);break;case 10:Rl(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Ps=e,Ts=e=Au(e.current,null),Os=Ls=t,Fs=0,zs=null,Us=Ms=Ds=0,Bs=Is=null,null!==Ol){for(t=0;t<Ol.length;t++)if(null!==(r=(n=Ol[t]).interleaved)){n.interleaved=null;var a=r.next,l=n.pending;if(null!==l){var o=l.next;l.next=a,r.next=o}n.pending=r}Ol=null}return e}function hu(e,t){for(;;){var r=Ts;try{if(jl(),ao.current=Zo,co){for(var a=io.memoizedState;null!==a;){var l=a.queue;null!==l&&(l.pending=null),a=a.next}co=!1}if(oo=0,uo=so=io=null,fo=!1,po=0,js.current=null,null===r||null===r.return){Fs=1,zs=t,Ts=null;break}e:{var o=e,i=r.return,s=r,u=t;if(t=Os,s.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=s,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=bi(i);if(null!==h){h.flags&=-257,yi(h,i,s,0,t),1&h.mode&&gi(o,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gi(o,c,t),gu();break e}u=Error(n(426))}else if(ll&&1&s.mode){var b=bi(i);if(null!==b){!(65536&b.flags)&&(b.flags|=256),yi(b,i,s,0,t),ml(ci(u,s));break e}}o=u=ci(u,s),4!==Fs&&(Fs=2),null===Is?Is=[o]:Is.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,$l(o,hi(0,u,t));break e;case 1:s=u;var y=o.type,v=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Qs&&Qs.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,$l(o,mi(o,s,t));break e}}o=o.return}while(null!==o)}wu(r)}catch(x){t=x,Ts===r&&null!==r&&(Ts=r=r.return);continue}break}}function mu(){var e=Cs.current;return Cs.current=Zo,null===e?Zo:e}function gu(){0!==Fs&&3!==Fs&&2!==Fs||(Fs=4),null===Ps||!(268435455&Ds)&&!(268435455&Ms)||su(Ps,Os)}function bu(e,t){var r=_s;_s|=2;var a=mu();for(Ps===e&&Os===t||(Vs=null,pu(e,t));;)try{yu();break}catch(l){hu(e,l)}if(jl(),_s=r,Cs.current=a,null!==Ts)throw Error(n(261));return Ps=null,Os=0,Fs}function yu(){for(;null!==Ts;)xu(Ts)}function vu(){for(;null!==Ts&&!Je();)xu(Ts)}function xu(e){var t=Es(e.alternate,e,Ls);e.memoizedProps=e.pendingProps,null===t?wu(e):Ts=t,js.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Yi(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Fs=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ki(n,t,Ls)))return void(Ts=n);if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Fs&&(Fs=5)}function ku(e,t,r){var a=xt,l=Rs.transition;try{Rs.transition=null,xt=1,function(e,t,r,a){do{Su()}while(null!==Ys);if(6&_s)throw Error(n(327));r=e.finishedWork;var l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(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,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),l=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~l}}(e,o),e===Ps&&(Ts=Ps=null,Os=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Ks||(Ks=!0,Pu(nt,function(){return Su(),null})),o=!!(15990&r.flags),!!(15990&r.subtreeFlags)||o){o=Rs.transition,Rs.transition=null;var i=xt;xt=1;var s=_s;_s|=4,js.current=null,function(e,t){if(ta=Ht,hr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var l=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch(w){r=null;break e}var i=0,s=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==l&&3!==f.nodeType||(s=i+l),f!==o||0!==a&&3!==f.nodeType||(u=i+a),3===f.nodeType&&(i+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===l&&(s=i),p===o&&++d===a&&(u=i),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===s||-1===u?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(na={focusedElem:e,selectionRange:r},Ht=!1,Zi=t;null!==Zi;)if(e=(t=Zi).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zi=e;else for(;null!==Zi;){t=Zi;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ri(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(w){Nu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zi=e;break}Zi=t.return}m=ns,ns=!1}(e,r),bs(r,e),mr(na),Ht=!!ta,na=ta=null,e.current=r,vs(r),Xe(),_s=s,xt=i,Rs.transition=o}else e.current=r;if(Ks&&(Ks=!1,Ys=e,Js=l),o=e.pendingLanes,0===o&&(Qs=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(lt,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),au(e,Ge()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)l=t[r],a(l.value,{componentStack:l.stack,digest:l.digest});if(Hs)throw Hs=!1,e=qs,qs=null,e;!!(1&Js)&&0!==e.tag&&Su(),o=e.pendingLanes,1&o?e===Gs?Xs++:(Xs=0,Gs=e):Xs=0,Wa()}(e,t,r,a)}finally{Rs.transition=l,xt=a}return null}function Su(){if(null!==Ys){var e=wt(Js),t=Rs.transition,r=xt;try{if(Rs.transition=null,xt=16>e?16:e,null===Ys)var a=!1;else{if(e=Ys,Ys=null,Js=0,6&_s)throw Error(n(331));var l=_s;for(_s|=4,Zi=e.current;null!==Zi;){var o=Zi,i=o.child;if(16&Zi.flags){var s=o.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Zi=c;null!==Zi;){var d=Zi;switch(d.tag){case 0:case 11:case 15:rs(8,d,o)}var f=d.child;if(null!==f)f.return=d,Zi=f;else for(;null!==Zi;){var p=(d=Zi).sibling,h=d.return;if(os(d),d===c){Zi=null;break}if(null!==p){p.return=h,Zi=p;break}Zi=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Zi=o}}if(2064&o.subtreeFlags&&null!==i)i.return=o,Zi=i;else e:for(;null!==Zi;){if(2048&(o=Zi).flags)switch(o.tag){case 0:case 11:case 15:rs(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Zi=y;break e}Zi=o.return}}var v=e.current;for(Zi=v;null!==Zi;){var x=(i=Zi).child;if(2064&i.subtreeFlags&&null!==x)x.return=i,Zi=x;else e:for(i=v;null!==Zi;){if(2048&(s=Zi).flags)try{switch(s.tag){case 0:case 11:case 15:as(9,s)}}catch(k){Nu(s,s.return,k)}if(s===i){Zi=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Zi=w;break e}Zi=s.return}}if(_s=l,Wa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(lt,e)}catch(k){}a=!0}return a}finally{xt=r,Rs.transition=t}}return!1}function Eu(e,t,n){e=Il(e,t=hi(0,t=ci(n,t),1),1),t=tu(),null!==e&&(yt(e,1,t),au(e,t))}function Nu(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){t=Il(t,e=mi(t,e=ci(n,e),1),1),e=tu(),null!==t&&(yt(t,1,e),au(t,e));break}}t=t.return}}function Cu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Os&n)===n&&(4===Fs||3===Fs&&(130023424&Os)===Os&&500>Ge()-$s?pu(e,0):Us|=n),au(e,t)}function ju(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tu();null!==(e=Fl(e,t))&&(yt(e,t,n),au(e,n))}function Ru(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ju(e,n)}function _u(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,l=e.memoizedState;null!==l&&(r=l.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),ju(e,r)}function Pu(e,t){return Ke(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Tu(e,t,n,r)}function Lu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fu(e,t,r,a,l,o){var i=2;if(a=e,"function"==typeof e)Lu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case S:return zu(r.children,l,o,t);case N:i=8,l|=8;break;case C:return(e=Ou(12,r,t,2|l)).elementType=C,e.lanes=o,e;case P:return(e=Ou(13,r,t,l)).elementType=P,e.lanes=o,e;case T:return(e=Ou(19,r,t,l)).elementType=T,e.lanes=o,e;case A:return Du(r,l,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:i=10;break e;case R:i=9;break e;case _:i=11;break e;case O:i=14;break e;case L:i=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ou(i,r,t,l)).elementType=e,t.type=a,t.lanes=o,t}function zu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function Du(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Uu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Iu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,r,a,l,o,i,s){return e=new Iu(e,t,n,i,s),1===t?(t=1,!0===l&&(t|=8)):t=0,l=Ou(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dl(l),e}function $u(e){if(!e)return Ra;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(La(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(La(r))return za(e,r,t)}return t}function Wu(e,t,n,r,a,l,o,i,s){return(e=Bu(n,r,!0,e,0,l,0,i,s)).context=$u(null),n=e.current,(l=Ul(r=tu(),a=nu(n))).callback=null!=t?t:null,Il(n,l,a),e.current.lanes=a,yt(e,a,r),au(e,r),e}function Vu(e,t,n,r){var a=t.current,l=tu(),o=nu(a);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ul(l,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Il(a,t,o))&&(ru(e,a,o,l),Bl(e,a,o)),o}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)xi=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return xi=!1,function(e,t,n){switch(t.tag){case 3:Pi(t),hl();break;case 5:Gl(t);break;case 1:La(t.type)&&Da(t);break;case 4:Jl(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;ja(Sl,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ja(eo,1&eo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Mi(e,t,n):(ja(eo,1&eo.current),null!==(e=Hi(e,t,n))?e.sibling:null);ja(eo,1&eo.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Wi(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ja(eo,eo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ni(e,t,n)}return Hi(e,t,n)}(e,t,r);xi=!!(131072&e.flags)}else xi=!1,ll&&1048576&t.flags&&el(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Vi(e,t),e=t.pendingProps;var l=Oa(t,_a.current);Pl(t,r),l=bo(null,t,a,e,l,r);var o=yo();return t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,La(a)?(o=!0,Da(t)):o=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Dl(t),l.updater=li,t.stateNode=l,l._reactInternals=t,ui(t,a,e,r),t=_i(null,t,a,!0,o,r)):(t.tag=0,ll&&o&&tl(t),wi(null,t,l,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Vi(e,t),e=t.pendingProps,a=(l=a._init)(a._payload),t.type=a,l=t.tag=function(e){if("function"==typeof e)return Lu(e)?1:0;if(null!=e){if((e=e.$$typeof)===_)return 11;if(e===O)return 14}return 2}(a),e=ri(a,e),l){case 0:t=ji(null,t,a,e,r);break e;case 1:t=Ri(null,t,a,e,r);break e;case 11:t=ki(null,t,a,e,r);break e;case 14:t=Si(null,t,a,ri(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,l=t.pendingProps,ji(e,t,a,l=t.elementType===a?l:ri(a,l),r);case 1:return a=t.type,l=t.pendingProps,Ri(e,t,a,l=t.elementType===a?l:ri(a,l),r);case 3:e:{if(Pi(t),null===e)throw Error(n(387));a=t.pendingProps,l=(o=t.memoizedState).element,Ml(e,t),Wl(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ti(e,t,a,r,l=ci(Error(n(423)),t));break e}if(a!==l){t=Ti(e,t,a,r,l=ci(Error(n(424)),t));break e}for(al=ca(t.stateNode.containerInfo.firstChild),rl=t,ll=!0,ol=null,r=kl(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hl(),a===l){t=Hi(e,t,r);break e}wi(e,t,a,r)}t=t.child}return t;case 5:return Gl(t),null===e&&cl(t),a=t.type,l=t.pendingProps,o=null!==e?e.memoizedProps:null,i=l.children,ra(a,l)?i=null:null!==o&&ra(a,o)&&(t.flags|=32),Ci(e,t),wi(e,t,i,r),t.child;case 6:return null===e&&cl(t),null;case 13:return Mi(e,t,r);case 4:return Jl(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=wl(t,null,a,r):wi(e,t,a,r),t.child;case 11:return a=t.type,l=t.pendingProps,ki(e,t,a,l=t.elementType===a?l:ri(a,l),r);case 7:return wi(e,t,t.pendingProps,r),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,ja(Sl,a._currentValue),a._currentValue=i,null!==o)if(sr(o.value,i)){if(o.children===l.children&&!Pa.current){t=Hi(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){i=o.child;for(var u=s.firstContext;null!==u;){if(u.context===a){if(1===o.tag){(u=Ul(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}o.lanes|=r,null!==(u=o.alternate)&&(u.lanes|=r),_l(o.return,r,t),s.lanes|=r;break}u=u.next}}else if(10===o.tag)i=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(i=o.return))throw Error(n(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),_l(i,r,t),i=o.sibling}else i=o.child;if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===t){i=null;break}if(null!==(o=i.sibling)){o.return=i.return,i=o;break}i=i.return}o=i}wi(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,a=t.pendingProps.children,Pl(t,r),a=a(l=Tl(l)),t.flags|=1,wi(e,t,a,r),t.child;case 14:return l=ri(a=t.type,t.pendingProps),Si(e,t,a,l=ri(a.type,l),r);case 15:return Ei(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,l=t.pendingProps,l=t.elementType===a?l:ri(a,l),Vi(e,t),t.tag=1,La(a)?(e=!0,Da(t)):e=!1,Pl(t,r),ii(t,a,l),ui(t,a,l,r),_i(null,t,a,!0,e,r);case 19:return Wi(e,t,r);case 22:return Ni(e,t,r)}throw Error(n(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Ju(e){this._internalRoot=e}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Gu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(){}function ec(e,t,n,r,a){var l=n._reactRootContainer;if(l){var o=l;if("function"==typeof a){var i=a;a=function(){var e=Hu(o);i.call(e)}}Vu(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var l=r;r=function(){var e=Hu(o);l.call(e)}}var o=Wu(t,r,e,0,null,!1,0,"",Zu);return e._reactRootContainer=o,e[ma]=o.current,Wr(8===e.nodeType?e.parentNode:e),du(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=Hu(s);i.call(e)}}var s=Bu(e,0,!1,null,0,!1,0,"",Zu);return e._reactRootContainer=s,e[ma]=s.current,Wr(8===e.nodeType?e.parentNode:e),du(function(){Vu(t,s,n,r)}),s}(n,t,e,a,r);return Hu(o)}Ju.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Ju.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Vu(null,e,null,null)}),t[ma]=null}},Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&0!==t&&t<At[n].priority;n++);At.splice(n,0,e),0===n&&Mt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),au(t,Ge()),!(6&_s)&&(Ws=Ge()+500,Wa()))}break;case 13:du(function(){var t=Fl(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Qu(e,1)}},St=function(e){if(13===e.tag){var t=Fl(e,134217728);if(null!==t)ru(t,e,134217728,tu());Qu(e,134217728)}},Et=function(e){if(13===e.tag){var t=nu(e),n=Fl(e,t);if(null!==n)ru(n,e,t,tu());Qu(e,t)}},Nt=function(){return xt},Ct=function(e,t){var n=xt;try{return xt=e,t()}finally{xt=n}},Se=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var l=ka(a);if(!l)throw Error(n(90));K(a),Z(a,l)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},_e=cu,Pe=du;var tc={usingClientEntryPoint:!1,Events:[xa,wa,ka,je,Re,cu]},nc={findFiberByHostInstance:va,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{lt=ac.inject(rc),ot=ac}catch(de){}}return w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,w.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},w.createRoot=function(e,t){if(!Xu(e))throw Error(n(299));var r=!1,a="",l=Ku;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=Bu(e,1,!1,null,0,r,0,a,l),e[ma]=t.current,Wr(8===e.nodeType?e.parentNode:e),new Yu(t)},w.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=qe(t))?null:e.stateNode},w.flushSync=function(e){return du(e)},w.hydrate=function(e,t,r){if(!Gu(t))throw Error(n(200));return ec(null,e,t,!0,r)},w.hydrateRoot=function(e,t,r){if(!Xu(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,l=!1,o="",i=Ku;if(null!=r&&(!0===r.unstable_strictMode&&(l=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Wu(t,null,e,1,null!=r?r:null,l,0,o,i),e[ma]=t.current,Wr(e),a)for(e=0;e<a.length;e++)l=(l=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new Ju(t)},w.render=function(e,t,r){if(!Gu(t))throw Error(n(200));return ec(null,e,t,!1,r)},w.unmountComponentAtNode=function(e){if(!Gu(e))throw Error(n(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[ma]=null})}),!0)},w.unstable_batchedUpdates=cu,w.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Gu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return ec(e,t,r,!1,a)},w.version="18.3.1-next-f1338f8080-20240426",w}const C=e(function(){if(y)return v;y=1;var e=(b||(b=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),x.exports=N()),x.exports);return v.createRoot=e.createRoot,v.hydrateRoot=e.hydrateRoot,v}());function j(e,t){return function(){return e.apply(t,arguments)}}const{toString:R}=Object.prototype,{getPrototypeOf:_}=Object,{iterator:P,toStringTag:T}=Symbol,O=(e=>t=>{const n=R.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>O(t)===e),A=e=>t=>typeof t===e,{isArray:F}=Array,z=A("undefined");function D(e){return null!==e&&!z(e)&&null!==e.constructor&&!z(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=L("ArrayBuffer");const U=A("string"),I=A("function"),B=A("number"),$=e=>null!==e&&"object"==typeof e,W=e=>{if("object"!==O(e))return!1;const t=_(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||T in e||P in e)},V=L("Date"),H=L("File"),q=L("Blob"),Q=L("FileList");const K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{},Y=void 0!==K.FormData?K.FormData:void 0,J=L("URLSearchParams"),[X,G,Z,ee]=["ReadableStream","Request","Response","Headers"].map(L);function te(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),F(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(D(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),l=a.length;let o;for(r=0;r<l;r++)o=a[r],t.call(null,e[o],o,e)}}function ne(e,t){if(D(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:globalThis,ae=e=>!z(e)&&e!==re;const le=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&_(Uint8Array)),oe=L("HTMLFormElement"),ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),se=L("RegExp"),ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};te(n,(n,a)=>{let l;!1!==(l=t(n,a,e))&&(r[a]=l||n)}),Object.defineProperties(e,r)};const ce=L("AsyncFunction"),de=(fe="function"==typeof setImmediate,pe=I(re.postMessage),fe?setImmediate:pe?(he=`axios@${Math.random()}`,me=[],re.addEventListener("message",({source:e,data:t})=>{e===re&&t===he&&me.length&&me.shift()()},!1),e=>{me.push(e),re.postMessage(he,"*")}):e=>setTimeout(e));var fe,pe,he,me;const ge="undefined"!=typeof queueMicrotask?queueMicrotask.bind(re):"undefined"!=typeof process&&process.nextTick||de,be={isArray:F,isArrayBuffer:M,isBuffer:D,isFormData:e=>{let t;return e&&(Y&&e instanceof Y||I(e.append)&&("formdata"===(t=O(e))||"object"===t&&I(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:U,isNumber:B,isBoolean:e=>!0===e||!1===e,isObject:$,isPlainObject:W,isEmptyObject:e=>{if(!$(e)||D(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:X,isRequest:G,isResponse:Z,isHeaders:ee,isUndefined:z,isDate:V,isFile:H,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:q,isRegExp:se,isFunction:I,isStream:e=>$(e)&&I(e.pipe),isURLSearchParams:J,isTypedArray:le,isFileList:Q,forEach:te,merge:function e(){const{caseless:t,skipUndefined:n}=ae(this)&&this||{},r={},a=(a,l)=>{if("__proto__"===l||"constructor"===l||"prototype"===l)return;const o=t&&ne(r,l)||l;W(r[o])&&W(a)?r[o]=e(r[o],a):W(a)?r[o]=e({},a):F(a)?r[o]=a.slice():n&&z(a)||(r[o]=a)};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&te(arguments[l],a);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(te(t,(t,r)=>{n&&I(t)?Object.defineProperty(e,r,{value:j(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,l,o;const i={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)o=a[l],r&&!r(o,e,t)||i[o]||(t[o]=e[o],i[o]=!0);e=!1!==n&&_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:O,kindOfTest:L,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(F(e))return e;let t=e.length;if(!B(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[P]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:oe,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:ue,freezeMethods:e=>{ue(e,(t,n)=>{if(I(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];I(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return F(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ne,global:re,isContextDefined:ae,isSpecCompliantForm:function(e){return!!(e&&I(e.append)&&"FormData"===e[T]&&e[P])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if($(e)){if(t.indexOf(e)>=0)return;if(D(e))return e;if(!("toJSON"in e)){t[r]=e;const a=F(e)?[]:{};return te(e,(e,t)=>{const l=n(e,r+1);!z(l)&&(a[t]=l)}),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:ce,isThenable:e=>e&&($(e)||I(e))&&I(e.then)&&I(e.catch),setImmediate:de,asap:ge,isIterable:e=>null!=e&&I(e[P])};let ye=class e extends Error{static from(t,n,r,a,l,o){const i=new e(t.message,n||t.code,r,a,l);return i.cause=t,i.name=t.name,null!=t.status&&null==i.status&&(i.status=t.status),o&&Object.assign(i,o),i}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}};ye.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ye.ERR_BAD_OPTION="ERR_BAD_OPTION",ye.ECONNABORTED="ECONNABORTED",ye.ETIMEDOUT="ETIMEDOUT",ye.ERR_NETWORK="ERR_NETWORK",ye.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ye.ERR_DEPRECATED="ERR_DEPRECATED",ye.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ye.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ye.ERR_CANCELED="ERR_CANCELED",ye.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ye.ERR_INVALID_URL="ERR_INVALID_URL";function ve(e){return be.isPlainObject(e)||be.isArray(e)}function xe(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function we(e,t,n){return e?e.concat(t).map(function(e,t){return e=xe(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const ke=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!be.isUndefined(t[e])})).metaTokens,a=n.visitor||u,l=n.dots,o=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(be.isDate(e))return e.toISOString();if(be.isBoolean(e))return e.toString();if(!i&&be.isBlob(e))throw new ye("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(e)||be.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let i=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e))return t.append(we(a,n,l),s(e)),!1;if(e&&!a&&"object"==typeof e)if(be.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(be.isArray(e)&&function(e){return be.isArray(e)&&!e.some(ve)}(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(i=be.toArray(e)))return n=xe(n),i.forEach(function(e,r){!be.isUndefined(e)&&null!==e&&t.append(!0===o?we([n],r,l):null===o?n:n+"[]",s(e))}),!1;return!!ve(e)||(t.append(we(a,n,l),s(e)),!1)}const c=[],d=Object.assign(ke,{defaultVisitor:u,convertValue:s,isVisitable:ve});if(!be.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!be.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),be.forEach(n,function(n,l){!0===(!(be.isUndefined(n)||null===n)&&a.call(t,n,be.isString(l)?l.trim():l,r,d))&&e(n,r?r.concat(l):[l])}),c.pop()}}(e),t}function Ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Ne(e,t){this._pairs=[],e&&Se(e,this,t)}const Ce=Ne.prototype;function je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Re(e,t,n){if(!t)return e;const r=n&&n.encode||je,a=be.isFunction(n)?{serialize:n}:n,l=a&&a.serialize;let o;if(o=l?l(t,a):be.isURLSearchParams(t)?t.toString():new Ne(t,a).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,Ee)}:Ee;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class _e{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Oe="undefined"!=typeof window&&"undefined"!=typeof document,Le="object"==typeof navigator&&navigator||void 0,Ae=Oe&&(!Le||["ReactNative","NativeScript","NS"].indexOf(Le.product)<0),Fe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ze=Oe&&window.location.href||"http://localhost",De={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oe,hasStandardBrowserEnv:Ae,hasStandardBrowserWebWorkerEnv:Fe,navigator:Le,origin:ze},Symbol.toStringTag,{value:"Module"})),...Te};function Me(e){function t(e,n,r,a){let l=e[a++];if("__proto__"===l)return!0;const o=Number.isFinite(+l),i=a>=e.length;if(l=!l&&be.isArray(r)?r.length:l,i)return be.hasOwnProp(r,l)?r[l]=[r[l],n]:r[l]=n,!o;r[l]&&be.isObject(r[l])||(r[l]=[]);return t(e,n,r[l],a)&&be.isArray(r[l])&&(r[l]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let l;for(r=0;r<a;r++)l=n[r],t[l]=e[l];return t}(r[l])),!o}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(e,r)=>{t(function(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Ue={transitional:Pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=be.isObject(e);a&&be.isHTMLForm(e)&&(e=new FormData(e));if(be.isFormData(e))return r?JSON.stringify(Me(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Se(e,new De.classes.URLSearchParams,{visitor:function(e,t,n,r){return De.isNode&&be.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((l=be.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Se(l?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ue.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(a){if(n){if("SyntaxError"===a.name)throw ye.from(a,ye.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Ue.headers[e]={}});const Ie=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Be=Symbol("internals");function $e(e){return e&&String(e).trim().toLowerCase()}function We(e){return!1===e||null==e?e:be.isArray(e)?e.map(We):String(e).replace(/[\r\n]+$/,"")}function Ve(e,t,n,r,a){return be.isFunction(r)?r.call(this,t,n):(a&&(t=n),be.isString(t)?be.isString(r)?-1!==t.indexOf(r):be.isRegExp(r)?r.test(t):void 0:void 0)}let He=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=$e(t);if(!a)throw new Error("header name must be a non-empty string");const l=be.findKey(r,a);(!l||void 0===r[l]||!0===n||void 0===n&&!1!==r[l])&&(r[l||t]=We(e))}const l=(e,t)=>be.forEach(e,(e,n)=>a(e,n,t));if(be.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(be.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))l((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Ie[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(be.isObject(e)&&be.isIterable(e)){let n,r,a={};for(const t of e){if(!be.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[r=t[0]]=(n=a[r])?be.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}l(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=$e(e)){const n=be.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(be.isFunction(t))return t.call(this,e,n);if(be.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=$e(e)){const n=be.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ve(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=$e(e)){const a=be.findKey(n,e);!a||t&&!Ve(0,n[a],a,t)||(delete n[a],r=!0)}}return be.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Ve(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return be.forEach(this,(r,a)=>{const l=be.findKey(n,a);if(l)return t[l]=We(r),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();o!==a&&delete t[a],t[o]=We(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return be.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&be.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Be]=this[Be]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=$e(e);t[r]||(!function(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return be.isArray(e)?e.forEach(r):r(e),this}};function qe(e,t){const n=this||Ue,r=t||n,a=He.from(r.headers);let l=r.data;return be.forEach(e,function(e){l=e.call(n,l,a.normalize(),t?t.status:void 0)}),a.normalize(),l}function Qe(e){return!(!e||!e.__CANCEL__)}He.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),be.reduceDescriptors(He.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),be.freezeMethods(He);let Ke=class extends ye{constructor(e,t,n){super(null==e?"canceled":e,ye.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ye(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Je=(e,t,n=3)=>{let r=0;const a=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,l=0,o=0;return t=void 0!==t?t:1e3,function(i){const s=Date.now(),u=r[o];a||(a=s),n[l]=i,r[l]=s;let c=o,d=0;for(;c!==l;)d+=n[c++],c%=e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),s-a<t)return;const f=u&&s-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,a=0,l=1e3/t;const o=(t,l=Date.now())=>{a=l,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),i=t-a;i>=l?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},l-i)))},()=>n&&o(n)]}(n=>{const l=n.loaded,o=n.lengthComputable?n.total:void 0,i=l-r,s=a(i);r=l;e({loaded:l,total:o,progress:o?l/o:void 0,bytes:i,rate:s||void 0,estimated:s&&o&&l<=o?(o-l)/s:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},Xe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ge=e=>(...t)=>be.asap(()=>e(...t)),Ze=De.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,De.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):()=>!0,et=De.hasStandardBrowserEnv?{write(e,t,n,r,a,l,o){if("undefined"==typeof document)return;const i=[`${e}=${encodeURIComponent(t)}`];be.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),be.isString(r)&&i.push(`path=${r}`),be.isString(a)&&i.push(`domain=${a}`),!0===l&&i.push("secure"),be.isString(o)&&i.push(`SameSite=${o}`),document.cookie=i.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function tt(e,t,n){let r=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const nt=e=>e instanceof He?{...e}:e;function rt(e,t){t=t||{};const n={};function r(e,t,n,r){return be.isPlainObject(e)&&be.isPlainObject(t)?be.merge.call({caseless:r},e,t):be.isPlainObject(t)?be.merge({},t):be.isArray(t)?t.slice():t}function a(e,t,n,a){return be.isUndefined(t)?be.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function l(e,t){if(!be.isUndefined(t))return r(void 0,t)}function o(e,t){return be.isUndefined(t)?be.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function i(n,a,l){return l in t?r(n,a):l in e?r(void 0,n):void 0}const s={url:l,method:l,data:l,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(e,t,n)=>a(nt(e),nt(t),0,!0)};return be.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const l=be.hasOwnProp(s,r)?s[r]:a,o=l(e[r],t[r],r);be.isUndefined(o)&&l!==i||(n[r]=o)}),n}const at=e=>{const t=rt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:l,headers:o,auth:i}=t;if(t.headers=o=He.from(o),t.url=Re(tt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&o.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),be.isFormData(n))if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(be.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}if(De.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||!1!==r&&Ze(t.url))){const e=a&&l&&et.read(l);e&&o.set(a,e)}return t},lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=at(e);let a=r.data;const l=He.from(r.headers).normalize();let o,i,s,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=He.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Ye(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new ye("Request aborted",ye.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new ye(r,ye.ERR_NETWORK,e,m);a.event=t||null,n(a),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||Pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ye(t,a.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,m)),m=null},void 0===a&&l.setContentType(null),"setRequestHeader"in m&&be.forEach(l.toJSON(),function(e,t){m.setRequestHeader(t,e)}),be.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([s,c]=Je(p,!0),m.addEventListener("progress",s)),f&&m.upload&&([i,u]=Je(f),m.upload.addEventListener("progress",i),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new Ke(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===De.protocols.indexOf(b)?n(new ye("Unsupported protocol "+b+":",ye.ERR_BAD_REQUEST,e)):m.send(a||null)})},ot=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ye?t:new Ke(t instanceof Error?t.message:t))}};let l=t&&setTimeout(()=>{l=null,a(new ye(`timeout of ${t}ms exceeded`,ye.ETIMEDOUT))},t);const o=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:i}=r;return i.unsubscribe=()=>be.asap(o),i}},it=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},st=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ut=(e,t,n,r)=>{const a=async function*(e,t){for await(const n of st(e))yield*it(n,t)}(e,t);let l,o=0,i=e=>{l||(l=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return i(),void e.close();let l=r.byteLength;if(n){let e=o+=l;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw i(t),t}},cancel:e=>(i(e),a.return())},{highWaterMark:2})},{isFunction:ct}=be,dt=(({Request:e,Response:t})=>({Request:e,Response:t}))(be.global),{ReadableStream:ft,TextEncoder:pt}=be.global,ht=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},mt=e=>{e=be.merge.call({skipUndefined:!0},dt,e);const{fetch:t,Request:n,Response:r}=e,a=t?ct(t):"function"==typeof fetch,l=ct(n),o=ct(r);if(!a)return!1;const i=a&&ct(ft),s=a&&("function"==typeof pt?(e=>t=>e.encode(t))(new pt):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=l&&i&&ht(()=>{let e=!1;const t=new ft,r=new n(De.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r}),c=o&&i&&ht(()=>be.isReadableStream(new r("").body)),d={stream:c&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ye(`Response type '${e}' is not supported`,ye.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=be.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e)){const t=new n(De.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return be.isArrayBufferView(e)||be.isArrayBuffer(e)?e.byteLength:(be.isURLSearchParams(e)&&(e+=""),be.isString(e)?(await s(e)).byteLength:void 0)})(t):r};return async e=>{let{url:a,method:o,data:i,signal:s,cancelToken:p,timeout:h,onDownloadProgress:m,onUploadProgress:g,responseType:b,headers:y,withCredentials:v="same-origin",fetchOptions:x}=at(e),w=t||fetch;b=b?(b+"").toLowerCase():"text";let k=ot([s,p&&p.toAbortSignal()],h),S=null;const E=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let N;try{if(g&&u&&"get"!==o&&"head"!==o&&0!==(N=await f(y,i))){let e,t=new n(a,{method:"POST",body:i,duplex:"half"});if(be.isFormData(i)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=Xe(N,Je(Ge(g)));i=ut(t.body,65536,e,n)}}be.isString(v)||(v=v?"include":"omit");const t=l&&"credentials"in n.prototype,s={...x,signal:k,method:o.toUpperCase(),headers:y.normalize().toJSON(),body:i,duplex:"half",credentials:t?v:void 0};S=l&&new n(a,s);let p=await(l?w(S,x):w(a,s));const h=c&&("stream"===b||"response"===b);if(c&&(m||h&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=be.toFiniteNumber(p.headers.get("content-length")),[n,a]=m&&Xe(t,Je(Ge(m),!0))||[];p=new r(ut(p.body,65536,n,()=>{a&&a(),E&&E()}),e)}b=b||"text";let C=await d[be.findKey(d,b)||"text"](p,e);return!h&&E&&E(),await new Promise((t,n)=>{Ye(t,n,{data:C,headers:He.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(C){if(E&&E(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,S,C&&C.response),{cause:C.cause||C});throw ye.from(C,C&&C.code,e,S,C&&C.response)}}},gt=new Map,bt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,l=[r,a,n];let o,i,s=l.length,u=gt;for(;s--;)o=l[s],i=u.get(o),void 0===i&&u.set(o,i=s?new Map:mt(t)),u=i;return i};bt();const yt={http:null,xhr:lt,fetch:{get:bt}};be.forEach(yt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const vt=e=>`- ${e}`,xt=e=>be.isFunction(e)||null===e||!1===e;const wt={getAdapter:function(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let r,a;const l={};for(let o=0;o<n;o++){let n;if(r=e[o],a=r,!xt(r)&&(a=yt[(n=String(r)).toLowerCase()],void 0===a))throw new ye(`Unknown adapter '${n}'`);if(a&&(be.isFunction(a)||(a=a.get(t))))break;l[n||"#"+o]=a}if(!a){const e=Object.entries(l).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(vt).join("\n"):" "+vt(e[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a},adapters:yt};function kt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ke(null,e)}function St(e){kt(e),e.headers=He.from(e.headers),e.data=qe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return wt.getAdapter(e.adapter||Ue.adapter,e)(e).then(function(t){return kt(e),t.data=qe.call(e,e.transformResponse,t),t.headers=He.from(t.headers),t},function(t){return Qe(t)||(kt(e),t&&t.response&&(t.response.data=qe.call(e,e.transformResponse,t.response),t.response.headers=He.from(t.response.headers))),Promise.reject(t)})}const Et="1.14.0",Nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ct={};Nt.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Et+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,l)=>{if(!1===e)throw new ye(r(a," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!Ct[a]&&(Ct[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,l)}},Nt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const jt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const l=r[a],o=t[l];if(o){const t=e[l],n=void 0===t||o(t,l,e);if(!0!==n)throw new ye("option "+l+" must be "+n,ye.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ye("Unknown option "+l,ye.ERR_BAD_OPTION)}},validators:Nt},Rt=jt.validators;let _t=class{constructor(e){this.defaults=e||{},this.interceptors={request:new _e,response:new _e}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&jt.assertOptions(n,{silentJSONParsing:Rt.transitional(Rt.boolean),forcedJSONParsing:Rt.transitional(Rt.boolean),clarifyTimeoutError:Rt.transitional(Rt.boolean),legacyInterceptorReqResOrdering:Rt.transitional(Rt.boolean)},!1),null!=r&&(be.isFunction(r)?t.paramsSerializer={serialize:r}:jt.assertOptions(r,{encode:Rt.function,serialize:Rt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),jt.assertOptions(t,{baseUrl:Rt.spelling("baseURL"),withXsrfToken:Rt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=a&&be.merge(a.common,a[t.method]);a&&be.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=He.concat(l,a);const o=[];let i=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;i=i&&e.synchronous;const n=t.transitional||Pe;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const s=[];let u;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let c,d=0;if(!i){const e=[St.bind(this),void 0];for(e.unshift(...o),e.push(...s),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=o.length;let f=t;for(;d<c;){const e=o[d++],t=o[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{u=St.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=s.length;d<c;)u=u.then(s[d++],s[d++]);return u}getUri(e){return Re(tt((e=rt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};be.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(t,n){return this.request(rt(n||{},{method:e,url:t,data:(n||{}).data}))}}),be.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,a){return this.request(rt(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}_t.prototype[e]=t(),_t.prototype[e+"Form"]=t(!0)});const Pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Pt).forEach(([e,t])=>{Pt[t]=e});const Tt=function e(t){const n=new _t(t),r=j(_t.prototype.request,n);return be.extend(r,_t.prototype,n,{allOwnKeys:!0}),be.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(rt(t,n))},r}(Ue);Tt.Axios=_t,Tt.CanceledError=Ke,Tt.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new Ke(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Tt.isCancel=Qe,Tt.VERSION=Et,Tt.toFormData=Se,Tt.AxiosError=ye,Tt.Cancel=Tt.CanceledError,Tt.all=function(e){return Promise.all(e)},Tt.spread=function(e){return function(t){return e.apply(null,t)}},Tt.isAxiosError=function(e){return be.isObject(e)&&!0===e.isAxiosError},Tt.mergeConfig=rt,Tt.AxiosHeaders=He,Tt.formToJSON=e=>Me(be.isHTMLForm(e)?new FormData(e):e),Tt.getAdapter=wt.getAdapter,Tt.HttpStatusCode=Pt,Tt.default=Tt;const{Axios:Ot,AxiosError:Lt,CanceledError:At,isCancel:Ft,CancelToken:zt,VERSION:Dt,all:Mt,Cancel:Ut,isAxiosError:It,spread:Bt,toFormData:$t,AxiosHeaders:Wt,HttpStatusCode:Vt,formToJSON:Ht,getAdapter:qt,mergeConfig:Qt}=Tt,Kt=Tt.create({baseURL:"https://listmyproduct.in/"});Kt.interceptors.request.use(async e=>{try{const t=(await new Promise(e=>{chrome.storage.local.get(["maniai_token"],t=>e(t))})).maniai_token;t&&(e.headers.Authorization=`Bearer ${t}`)}catch(t){console.error("API interceptor error:",t)}return e},e=>Promise.reject(e)),Kt.interceptors.response.use(e=>e,e=>{if(401===e.response?.status){e.config?.url?.includes("/api/auth/signin")||e.config?.url?.includes("/api/auth/me")||(console.warn("Unauthorized access, logging out local session..."),chrome.storage.local.remove(["maniai_token","maniai_user"]),window.location.reload())}return Promise.reject(e)});const Yt=f.createContext({user:null,token:null,isLoaded:!1,isSignedIn:!1,signIn:async()=>{},signUp:async()=>{},verifyOtp:async()=>{},resendOtp:async()=>{},signOut:()=>{}}),Jt=()=>f.useContext(Yt),Xt=({children:e})=>{const[t,n]=f.useState(null),[r,a]=f.useState(null),[l,o]=f.useState(!1);f.useEffect(()=>{(async()=>{try{const t=await new Promise(e=>{chrome.storage.local.get(["maniai_token","maniai_user"],t=>e(t))});if(t.maniai_token&&t.maniai_user){a(t.maniai_token),n(t.maniai_user);try{const e=await Kt.get("/api/auth/me");if(e.data.user){const t=e.data.user;n(t),chrome.storage.local.set({maniai_user:t})}}catch(e){console.error("Remote auth session check failed:",e)}}}catch(e){console.error("Error fetching stored auth:",e)}finally{o(!0)}})()},[]);return d.jsx(Yt.Provider,{value:{user:t,token:r,isLoaded:l,isSignedIn:!!r,signIn:async(e,t)=>{try{const r=await Kt.post("/api/auth/signin",{email:e,password:t}),{token:l,user:o}=r.data;return a(l),n(o),await new Promise(e=>{chrome.storage.local.set({maniai_token:l,maniai_user:o},e)}),{success:!0}}catch(r){return"EMAIL_NOT_VERIFIED"===r.response?.data?.code?{success:!1,requiresVerification:!0,email:r.response.data.email}:{success:!1,message:r.response?.data?.error||"Invalid email or password"}}},signUp:async(e,t,n,r,a)=>{try{return{success:!0,requiresVerification:!0,email:(await Kt.post("/api/auth/signup",{email:e,password:t,firstName:n,lastName:r,phone:a?`+91${a}`:void 0})).data.email}}catch(l){return{success:!1,message:l.response?.data?.error||"Failed to create account."}}},verifyOtp:async(e,t)=>{try{const r=await Kt.post("/api/auth/verify-otp",{email:e,otp:t}),{token:l,user:o}=r.data;return a(l),n(o),await new Promise(e=>{chrome.storage.local.set({maniai_token:l,maniai_user:o},e)}),{success:!0}}catch(r){return{success:!1,message:r.response?.data?.error||"Invalid or expired OTP."}}},resendOtp:async e=>{try{return await Kt.post("/api/auth/resend-otp",{email:e}),{success:!0}}catch(t){return{success:!1,message:t.response?.data?.error||"Failed to resend OTP."}}},signOut:()=>{a(null),n(null),chrome.storage.local.remove(["maniai_token","maniai_user"])},refreshUser:async()=>{try{const e=await Kt.get("/api/auth/me");if(e.data.user){const t=e.data.user;return n(t),chrome.storage.local.set({maniai_user:t}),t}}catch(e){console.error("Manual user refresh failed:",e)}return null}},children:e})};
/**
 * react-router v7.14.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */
function Gt(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Zt(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:a=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask));let l=s(null==r?t.length-1:r),o="POP",i=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[l]}function c(e,n=null,r,a){let l=function(e,t,n=null,r,a){let l={pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?an(t):t,state:n,key:t&&t.key||r||nn(),unstable_mask:a};return l}(t?u().pathname:"/",e,n,r,a);return tn("/"===l.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),l}function d(e){return"string"==typeof e?e:rn(e)}return{get index(){return l},get action(){return o},get location(){return u()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?an(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o="PUSH";let r=Gt(e)?e:c(e,n);l+=1,t.splice(l,t.length,r),a&&i&&i({action:o,location:r,delta:1})},replace(e,n){o="REPLACE";let r=Gt(e)?e:c(e,n);t[l]=r,a&&i&&i({action:o,location:r,delta:0})},go(e){o="POP";let n=s(l+e),r=t[n];l=n,i&&i({action:o,location:r,delta:e})},listen:e=>(i=e,()=>{i=null})}}function en(e,t){if(!1===e||null==e)throw new Error(t)}function tn(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function nn(){return Math.random().toString(36).substring(2,10)}function rn({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function an(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ln(e,t,n="/"){return function(e,t,n,r){let a="string"==typeof t?an(t):t,l=xn(a.pathname||"/",n);if(null==l)return null;let o=on(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let s=0;null==i&&s<o.length;++s){let e=vn(l);i=bn(o[s],e,r)}return i}(e,t,n,!1)}function on(e,t=[],n=[],r="",a=!1){let l=(e,l,o=a,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:l,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&o)return;en(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=Cn([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(en(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),on(e.children,t,c,u,o)),(null!=e.path||e.index)&&t.push({path:u,score:gn(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of sn(e.path))l(e,t,!0,n);else l(e,t)}),t}function sn(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===r.length)return a?[l,""]:[l];let o=sn(r.join("/")),i=[];return i.push(...o.map(e=>""===e?l:[l,e].join("/"))),a&&i.push(...o),i.map(t=>e.startsWith("/")&&""===t?"/":t)}var un=/^:[\w-]+$/,cn=3,dn=2,fn=1,pn=10,hn=-2,mn=e=>"*"===e;function gn(e,t){let n=e.split("/"),r=n.length;return n.some(mn)&&(r+=hn),t&&(r+=dn),n.filter(e=>!mn(e)).reduce((e,t)=>e+(un.test(t)?cn:""===t?fn:pn),r)}function bn(e,t,n=!1){let{routesMeta:r}=e,a={},l="/",o=[];for(let i=0;i<r.length;++i){let e=r[i],s=i===r.length-1,u="/"===l?t:t.slice(l.length)||"/",c=yn({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},u),d=e.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=yn({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:Cn([l,c.pathname]),pathnameBase:jn(Cn([l,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(l=Cn([l,c.pathnameBase]))}return o}function yn(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){tn("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,l)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=l.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let l=new RegExp(a,t?void 0:"i");return[l,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=i[r]||"";o=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const a=i[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:l,pathnameBase:o,pattern:e}}function vn(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return tn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function xn(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var wn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function kn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function Sn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function En(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Nn(e,t,n,r=!1){let a;"string"==typeof e?a=an(e):(a={...e},en(!a.pathname||!a.pathname.includes("?"),Sn("?","pathname","search",a)),en(!a.pathname||!a.pathname.includes("#"),Sn("#","pathname","hash",a)),en(!a.search||!a.search.includes("#"),Sn("#","search","hash",a)));let l,o=""===e||""===a.pathname,i=o?"/":a.pathname;if(null==i)l=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}l=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:a="",hash:l=""}="string"==typeof e?an(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?kn(r.substring(1),"/"):kn(r,t)):n=t,{pathname:n,search:Rn(a),hash:_n(l)}}(a,l),u=i&&"/"!==i&&i.endsWith("/"),c=(o||"."===i)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var Cn=e=>e.join("/").replace(/\/\/+/g,"/"),jn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Rn=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",_n=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Pn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Tn(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var On="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Ln(e,t){let n=e;if("string"!=typeof n||!wn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(On)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),l=xn(r.pathname,t);r.origin===e.origin&&null!=l?n=l+r.search+r.hash:a=!0}catch(l){tn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var An=["POST","PUT","PATCH","DELETE"];new Set(An);var Fn=["GET",...An];new Set(Fn);var zn=f.createContext(null);zn.displayName="DataRouter";var Dn=f.createContext(null);Dn.displayName="DataRouterState";var Mn=f.createContext(!1);var Un=f.createContext({isTransitioning:!1});Un.displayName="ViewTransition",f.createContext(new Map).displayName="Fetchers",f.createContext(null).displayName="Await";var In=f.createContext(null);In.displayName="Navigation";var Bn=f.createContext(null);Bn.displayName="Location";var $n=f.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var Wn=f.createContext(null);Wn.displayName="RouteError";var Vn="REACT_ROUTER_ERROR";function Hn(){return null!=f.useContext(Bn)}function qn(){return en(Hn(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(Bn).location}var Qn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kn(e){f.useContext(In).static||f.useLayoutEffect(e)}function Yn(){let{isDataRoute:e}=f.useContext($n);return e?function(){let{router:e}=function(e){let t=f.useContext(zn);return en(t,ar(e)),t}("useNavigate"),t=lr("useNavigate"),n=f.useRef(!1);return Kn(()=>{n.current=!0}),f.useCallback(async(r,a={})=>{tn(n.current,Qn),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...a}))},[e,t])}():function(){en(Hn(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(zn),{basename:t,navigator:n}=f.useContext(In),{matches:r}=f.useContext($n),{pathname:a}=qn(),l=JSON.stringify(En(r)),o=f.useRef(!1);return Kn(()=>{o.current=!0}),f.useCallback((r,i={})=>{if(tn(o.current,Qn),!o.current)return;if("number"==typeof r)return void n.go(r);let s=Nn(r,JSON.parse(l),a,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Cn([t,s.pathname])),(i.replace?n.replace:n.push)(s,i.state,i)},[t,n,l,a,e])}()}function Jn(e,{relative:t}={}){let{matches:n}=f.useContext($n),{pathname:r}=qn(),a=JSON.stringify(En(n));return f.useMemo(()=>Nn(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function Xn(e,t,n){en(Hn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=f.useContext(In),{matches:a}=f.useContext($n),l=a[a.length-1],o=l?l.params:{},i=l?l.pathname:"/",s=l?l.pathnameBase:"/",u=l&&l.route;{let e=u&&u.path||"";ir(i,!u||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${i}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let c,d=qn();if(t){let e="string"==typeof t?an(t):t;en("/"===s||e.pathname?.startsWith(s),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),c=e}else c=d;let p=c.pathname||"/",h=p;if("/"!==s){let e=s.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=ln(e,{pathname:h});tn(u||null!=m,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),tn(null==m||void 0!==m[m.length-1].route.element||void 0!==m[m.length-1].route.Component||void 0!==m[m.length-1].route.lazy,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,l=r?.errors;if(null!=l){let e=a.findIndex(e=>e.route.id&&void 0!==l?.[e.route.id]);en(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let o=!1,i=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(i=e),t.route.id){let{loaderData:e,errors:l}=r,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!l||void 0===l[t.route.id]);if(t.route.lazy||s){n.isStatic&&(o=!0),a=i>=0?a.slice(0,i+1):[a[0]];break}}}}let s=n?.onError,u=r&&s?(e,t)=>{s(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Tn(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,s)=>{let c,d=!1,p=null,h=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,p=n.route.errorElement||Zn,o&&(i<0&&0===s?(ir("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):i===s&&(d=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,s+1)),g=()=>{let t;return t=c?p:d?h:n.route.Component?f.createElement(n.route.Component,null):n.route.element?n.route.element:e,f.createElement(rr,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===s)?f.createElement(er,{location:r.location,revalidation:r.revalidation,component:p,error:c,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Cn([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:Cn([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),a,n);return t&&g?f.createElement(Bn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...c},navigationType:"POP"}},g):g}function Gn(){let e=function(){let e=f.useContext(Wn),t=function(e){let t=f.useContext(Dn);return en(t,ar(e)),t}("useRouteError"),n=lr("useRouteError");if(void 0!==e)return e;return t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:l},"ErrorBoundary")," or"," ",f.createElement("code",{style:l},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,o)}f.createContext(null);var Zn=f.createElement(Gn,null),er=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${Vn}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new Pn(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?f.createElement($n.Provider,{value:this.props.routeContext},f.createElement(Wn.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(nr,{error:e},t):t}};er.contextType=Mn;var tr=new WeakMap;function nr({children:e,error:t}){let{basename:n}=f.useContext(In);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${Vn}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=tr.get(t);if(r)throw r;let a=Ln(e.location,n);if(On&&!tr.get(t)){if(!a.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw tr.set(t,n),n}window.location.href=a.absoluteURL||a.to}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function rr({routeContext:e,match:t,children:n}){let r=f.useContext(zn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement($n.Provider,{value:e},n)}function ar(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lr(e){let t=function(e){let t=f.useContext($n);return en(t,ar(e)),t}(e),n=t.matches[t.matches.length-1];return en(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var or={};function ir(e,t,n){t||or[e]||(or[e]=!0,tn(!1,n))}function sr({basename:e,children:t,initialEntries:n,initialIndex:r,unstable_useTransitions:a}){let l=f.useRef();null==l.current&&(l.current=Zt({initialEntries:n,initialIndex:r,v5Compat:!0}));let o=l.current,[i,s]=f.useState({action:o.action,location:o.location}),u=f.useCallback(e=>{!1===a?s(e):f.startTransition(()=>s(e))},[a]);return f.useLayoutEffect(()=>o.listen(u),[o,u]),f.createElement(cr,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o,unstable_useTransitions:a})}function ur(e){en(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function cr({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:l=!1,unstable_useTransitions:o}){en(!Hn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=f.useMemo(()=>({basename:i,navigator:a,static:l,unstable_useTransitions:o,future:{}}),[i,a,l,o]);"string"==typeof n&&(n=an(n));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:h="default",unstable_mask:m}=n,g=f.useMemo(()=>{let e=xn(u,i);return null==e?null:{location:{pathname:e,search:c,hash:d,state:p,key:h,unstable_mask:m},navigationType:r}},[i,u,c,d,p,h,r,m]);return tn(null!=g,`<Router basename="${i}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:f.createElement(In.Provider,{value:s},f.createElement(Bn.Provider,{children:t,value:g}))}function dr({children:e,location:t}){return Xn(fr(e),t)}function fr(e,t=[]){let n=[];return f.Children.forEach(e,(e,r)=>{if(!f.isValidElement(e))return;let a=[...t,r];if(e.type===f.Fragment)return void n.push.apply(n,fr(e.props.children,a));en(e.type===ur,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),en(!e.props.index||!e.props.children,"An index route cannot have child routes.");let l={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=fr(e.props.children,a)),n.push(l)}),n}f.memo(function({routes:e,future:t,state:n,isStatic:r,onError:a}){return Xn(e,void 0,{state:n,isStatic:r,onError:a})});var pr="get",hr="application/x-www-form-urlencoded";function mr(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var gr=null;var br=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yr(e){return null==e||br.has(e)?e:(tn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hr}"`),null)}function vr(e,t){let n,r,a,l,o;if(mr(i=e)&&"form"===i.tagName.toLowerCase()){let o=e.getAttribute("action");r=o?xn(o,t):null,n=e.getAttribute("method")||pr,a=yr(e.getAttribute("enctype"))||hr,l=new FormData(e)}else if(function(e){return mr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return mr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||o.getAttribute("action");if(r=i?xn(i,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||pr,a=yr(e.getAttribute("formenctype"))||yr(o.getAttribute("enctype"))||hr,l=new FormData(o,e),!function(){if(null===gr)try{new FormData(document.createElement("form"),0),gr=!1}catch(e){gr=!0}return gr}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";l.append(`${e}x`,"0"),l.append(`${e}y`,"0")}else t&&l.append(t,r)}}else{if(mr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=pr,r=null,a=hr,o=e}var i;return l&&"text/plain"===a&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:l,body:o}}function xr(e,t){if(!1===e||null==e)throw new Error(t)}function wr(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===xn(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}function kr(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function Sr(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(kr).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}function Er(e,t,n,r,a,l){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,i=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===l?t.filter((e,t)=>o(e,t)||i(e,t)):"data"===l?t.filter((t,l)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(o(t,l)||i(t,l))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Nr(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function Cr(){let e=f.useContext(zn);return xr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jr=f.createContext(void 0);function Rr(){let e=f.useContext(jr);return xr(e,"You must render this element inside a <HydratedRouter> element"),e}function _r(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Pr({page:e,...t}){let n=f.useContext(Mn),{router:r}=Cr(),a=f.useMemo(()=>ln(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?f.createElement(Tr,{page:e,matches:a,...t}):f.createElement(Or,{page:e,matches:a,...t}):null}function Tr({page:e,matches:t,...n}){let r=qn(),{future:a}=Rr(),{basename:l}=Cr(),o=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=wr(e,l,a.unstable_trailingSlashAwareDataRequests,"rsc"),o=!1,i=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?o=!0:i.push(e.route.id);return o&&i.length>0&&n.searchParams.set("_routes",i.join(",")),[n.pathname+n.search]},[l,a.unstable_trailingSlashAwareDataRequests,e,r,t]);return f.createElement(f.Fragment,null,o.map(e=>f.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function Or({page:e,matches:t,...n}){let r=qn(),{future:a,manifest:l,routeModules:o}=Rr(),{basename:i}=Cr(),{loaderData:s,matches:u}=function(){let e=f.useContext(Dn);return xr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=f.useMemo(()=>Er(e,t,u,l,r,"data"),[e,t,u,l,r]),d=f.useMemo(()=>Er(e,t,u,l,r,"assets"),[e,t,u,l,r]),p=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,u=!1;if(t.forEach(e=>{let t=l.routes[e.route.id];t&&t.hasLoader&&(!c.some(t=>t.route.id===e.route.id)&&e.route.id in s&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?u=!0:n.add(e.route.id))}),0===n.size)return[];let d=wr(e,i,a.unstable_trailingSlashAwareDataRequests,"data");return u&&n.size>0&&d.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[d.pathname+d.search]},[i,a.unstable_trailingSlashAwareDataRequests,s,r,l,c,t,e,o]),h=f.useMemo(()=>Nr(d,l),[d,l]),m=function(e){let{manifest:t,routeModules:n}=Rr(),[r,a]=f.useState([]);return f.useEffect(()=>{let r=!1;return Sr(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),r}(d);return f.createElement(f.Fragment,null,p.map(e=>f.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),h.map(e=>f.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),m.map(({key:e,link:t})=>f.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Lr(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}jr.displayName="FrameworkContext";var Ar="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Ar&&(window.__reactRouterVersion="7.14.0")}catch(ea){}var Fr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zr=f.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,unstable_mask:o,state:i,target:s,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...h},m){let{basename:g,navigator:b,unstable_useTransitions:y}=f.useContext(In),v="string"==typeof u&&Fr.test(u),x=Ln(u,g),w=function(e,{relative:t}={}){en(Hn(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(In),{hash:a,pathname:l,search:o}=Jn(e,{relative:t}),i=l;return"/"!==n&&(i="/"===l?n:Cn([n,l])),r.createHref({pathname:i,search:o,hash:a})}(u=x.to,{relative:r}),k=qn(),S=null;if(o){let e=Nn(o,[],k.unstable_mask?k.unstable_mask.pathname:"/",!0);"/"!==g&&(e.pathname="/"===e.pathname?g:Cn([g,e.pathname])),S=b.createHref(e)}let[E,N,C]=function(e,t){let n=f.useContext(jr),[r,a]=f.useState(!1),[l,o]=f.useState(!1),{onFocus:i,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,p=f.useRef(null);f.useEffect(()=>{if("render"===e&&o(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),f.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let h=()=>{a(!0)},m=()=>{a(!1),o(!1)};return n?"intent"!==e?[l,p,{}]:[l,p,{onFocus:_r(i,h),onBlur:_r(s,m),onMouseEnter:_r(u,h),onMouseLeave:_r(c,m),onTouchStart:_r(d,h)}]:[!1,p,{}]}(n,h),j=function(e,{target:t,replace:n,unstable_mask:r,state:a,preventScrollReset:l,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:s,unstable_useTransitions:u}={}){let c=Yn(),d=qn(),p=Jn(e,{relative:o});return f.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:rn(d)===rn(p),m=()=>c(e,{replace:t,unstable_mask:r,state:a,preventScrollReset:l,relative:o,viewTransition:i,unstable_defaultShouldRevalidate:s});u?f.startTransition(()=>m()):m()}},[d,c,p,n,r,a,t,e,l,o,i,s,u])}(u,{replace:l,unstable_mask:o,state:i,target:s,preventScrollReset:c,relative:r,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y});let R=!(x.isExternal||a),_=f.createElement("a",{...h,...C,href:(R?S:void 0)||x.absoluteURL||w,onClick:R?function(t){e&&e(t),t.defaultPrevented||j(t)}:e,ref:Lr(m,N),target:s,"data-discover":v||"render"!==t?void 0:"true"});return E&&!v?f.createElement(f.Fragment,null,_,f.createElement(Pr,{page:w})):_});function Dr(e){let t=f.useContext(zn);return en(t,function(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}zr.displayName="Link",f.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:o,children:i,...s},u){let c=Jn(l,{relative:s.relative}),d=qn(),p=f.useContext(Dn),{navigator:h,basename:m}=f.useContext(In),g=null!=p&&function(e,{relative:t}={}){let n=f.useContext(Un);en(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Dr("useViewTransitionState"),a=Jn(e,{relative:t});if(!n.isTransitioning)return!1;let l=xn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=xn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=yn(a.pathname,o)||null!=yn(a.pathname,l)}(c)&&!0===o,b=h.encodeLocation?h.encodeLocation(c).pathname:c.pathname,y=d.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(y=y.toLowerCase(),v=v?v.toLowerCase():null,b=b.toLowerCase()),v&&m&&(v=xn(v,m)||v);const x="/"!==b&&b.endsWith("/")?b.length-1:b.length;let w,k=y===b||!r&&y.startsWith(b)&&"/"===y.charAt(x),S=null!=v&&(v===b||!r&&v.startsWith(b)&&"/"===v.charAt(b.length)),E={isActive:k,isPending:S,isTransitioning:g},N=k?e:void 0;w="function"==typeof n?n(E):[n,k?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let C="function"==typeof a?a(E):a;return f.createElement(zr,{...s,"aria-current":N,className:w,ref:u,style:C,to:l,viewTransition:o},"function"==typeof i?i(E):i)}).displayName="NavLink",f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:l,method:o=pr,action:i,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...h},m)=>{let{unstable_useTransitions:g}=f.useContext(In),b=function(){let{router:e}=Dr("useSubmit"),{basename:t}=f.useContext(In),n=lr("useRouteId"),r=e.fetch,a=e.navigate;return f.useCallback(async(e,l={})=>{let{action:o,method:i,encType:s,formData:u,body:c}=vr(e,t);if(!1===l.navigate){let e=l.fetcherKey||Ur();await r(e,n,l.action||o,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:u,body:c,formMethod:l.method||i,formEncType:l.encType||s,flushSync:l.flushSync})}else await a(l.action||o,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:u,body:c,formMethod:l.method||i,formEncType:l.encType||s,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}(),y=function(e,{relative:t}={}){let{basename:n}=f.useContext(In),r=f.useContext($n);en(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),l={...Jn(e||".",{relative:t})},o=qn();if(null==e){l.search=o.search;let e=new URLSearchParams(l.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();l.search=n?`?${n}`:""}}e&&"."!==e||!a.route.index||(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(l.pathname="/"===l.pathname?n:Cn([n,l.pathname]));return rn(l)}(i,{relative:u}),v="get"===o.toLowerCase()?"get":"post",x="string"==typeof i&&Fr.test(i);return f.createElement("form",{ref:m,method:v,action:y,onSubmit:r?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,i=r?.getAttribute("formmethod")||o,h=()=>b(r||e.currentTarget,{fetcherKey:t,method:i,navigate:n,replace:a,state:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p});g&&!1!==n?f.startTransition(()=>h()):h()},...h,"data-discover":x||"render"!==e?void 0:"true"})}).displayName="Form";var Mr=0,Ur=()=>`__${String(++Mr)}__`;function Ir(){const{isSignedIn:e,signOut:t}=Jt();return d.jsxs("header",{className:"flex items-center justify-between pb-3 border-b border-brand-500/10 animate-fade-in relative z-10",children:[d.jsxs("div",{className:"flex items-center gap-3 group px-1",children:[d.jsx("div",{className:"w-8 h-8 rounded-xl bg-gradient-to-br from-brand-600 to-accent-pink p-0.5 flex items-center justify-center shadow-lg shadow-brand-500/20 group-hover:scale-110 transition-transform duration-300",children:d.jsx("div",{className:"w-full h-full rounded-[10px] bg-white flex items-center justify-center text-lg",children:"🛍️"})}),d.jsxs("div",{className:"flex flex-col",children:[d.jsxs("h1",{className:"text-base font-black tracking-tight leading-none text-slate-900 group-hover:tracking-wide transition-all",children:["MEESHO ",d.jsx("span",{className:"text-brand-500",children:"AI"})]}),d.jsx("p",{className:"text-[10px] font-black text-slate-600 uppercase tracking-[0.2em]",children:"Auto-Lister Pro"})]})]}),d.jsx("div",{className:"flex items-center gap-3 pr-1",children:e&&d.jsx("button",{onClick:t,className:"w-8 h-8 rounded-xl bg-slate-100 border border-slate-300 flex items-center justify-center text-lg hover:bg-red-500/10 hover:border-red-500/30 transition-all group",title:"Logout",children:d.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",className:"text-slate-700 group-hover:text-red-600 transition-colors",children:[d.jsx("path",{d:"M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4"}),d.jsx("polyline",{points:"16 17 21 12 16 7"}),d.jsx("line",{x1:"21",y1:"12",x2:"9",y2:"12"})]})})})]})}function Br(){const[e,t]=f.useState("signin"),[n,r]=f.useState(!1),[a,l]=f.useState(""),[o,i]=f.useState(""),{signIn:s,signUp:u,verifyOtp:c,resendOtp:p}=Jt(),[h,m]=f.useState({email:"",password:"",firstName:"",lastName:"",phone:"",otp:""}),g=e=>{m({...h,[e.target.name]:e.target.value}),a&&l(""),o&&i("")};return d.jsxs("div",{className:"animate-fade-in flex flex-col gap-6",children:[d.jsxs("div",{className:"glass-card p-6 text-center border-b border-zinc-100 mb-2",children:[d.jsx("div",{className:"w-14 h-14 mx-auto mb-4 rounded-xl bg-gradient-to-br from-brand-500/10 to-accent-pink/5 flex items-center justify-center border border-brand-500/10",children:d.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"url(#heroGrad)",strokeWidth:"1.5",children:[d.jsx("defs",{children:d.jsxs("linearGradient",{id:"heroGrad",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[d.jsx("stop",{offset:"0%",style:{stopColor:"#7C3AED"}}),d.jsx("stop",{offset:"100%",style:{stopColor:"#EC4899"}})]})}),d.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})]})}),d.jsx("h2",{className:"text-xl font-black text-slate-900 leading-tight",children:"verify"===e?"Identity Verification":"Welcome to Meesho AI"}),d.jsx("p",{className:"text-[10px] font-black text-slate-600 uppercase tracking-[0.2em] mt-1",children:"verify"===e?"Secure OTP required":"Powerful catalog automation"}),"verify"!==e&&d.jsxs("div",{className:"flex p-1 bg-slate-100 rounded-xl mt-6 gap-1 border border-slate-300",children:[d.jsx("button",{onClick:()=>t("signin"),className:"flex-1 py-2 text-[10px] font-black uppercase tracking-wider rounded-lg transition-all "+("signin"===e?"bg-white text-brand-600 shadow-md":"text-slate-600"),children:"Sign In"}),d.jsx("button",{onClick:()=>t("signup"),className:"flex-1 py-2 text-[10px] font-black uppercase tracking-wider rounded-lg transition-all "+("signup"===e?"bg-white text-brand-600 shadow-md":"text-slate-600"),children:"Sign Up"})]})]}),d.jsxs("form",{onSubmit:async n=>{n.preventDefault(),r(!0),l(""),i("");try{let n;"signin"===e?(n=await s(h.email,h.password),n.requiresVerification&&(t("verify"),m(e=>({...e,email:n.email})),i(`Your email ${n.email} is not verified. Check your inbox for OTP.`))):"signup"===e?(n=await u(h.email,h.password,h.firstName,h.lastName,h.phone),n.success&&n.requiresVerification&&(t("verify"),m(e=>({...e,email:n.email})),i(`OTP sent to ${n.email}. Verification is required.`))):"verify"===e&&(n=await c(h.email,h.otp)),n&&!n.success&&l(n.message)}catch(a){l("Connection failed. Is the server running?")}finally{r(!1)}},className:"flex flex-col gap-4 px-2",children:["verify"===e?d.jsxs("div",{className:"flex flex-col gap-4 animate-in",children:[d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"Verification Code"}),d.jsx("input",{type:"text",name:"otp",required:!0,maxLength:6,value:h.otp,onChange:g,placeholder:"000000",className:"w-full px-4 py-3 bg-white text-lg font-black text-center tracking-[0.5em] text-brand-600 border border-brand-500/30 rounded-xl focus:border-brand-600 outline-none"})]}),d.jsxs("p",{className:"text-[10px] text-slate-600 text-center leading-relaxed font-bold",children:["We've sent a 6-digit code to ",d.jsx("strong",{className:"text-slate-900",children:h.email})," to ensure your account security."]})]}):d.jsxs(d.Fragment,{children:["signup"===e&&d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"First Name"}),d.jsx("input",{type:"text",name:"firstName",required:!0,value:h.firstName,onChange:g,className:"w-full px-3 py-2.5 bg-white text-sm text-slate-900 border border-slate-300 rounded-xl focus:border-brand-500 outline-none"})]}),d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"Last Name"}),d.jsx("input",{type:"text",name:"lastName",required:!0,value:h.lastName,onChange:g,className:"w-full px-3 py-2.5 bg-white text-sm text-slate-900 border border-slate-300 rounded-xl focus:border-brand-500 outline-none"})]})]}),"signup"===e&&d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"WhatsApp Number"}),d.jsxs("div",{className:"flex",children:[d.jsx("span",{className:"inline-flex items-center px-3 py-2.5 bg-slate-100 text-sm text-slate-600 font-bold border border-r-0 border-slate-300 rounded-l-xl",children:"+91"}),d.jsx("input",{type:"tel",name:"phone",required:!0,maxLength:10,pattern:"[0-9]{10}",value:h.phone,onChange:g,placeholder:"9876543210",className:"w-full px-3 py-2.5 bg-white text-sm text-slate-900 border border-slate-300 rounded-r-xl focus:border-brand-500 outline-none"})]})]}),d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"Email Address"}),d.jsx("input",{type:"email",name:"email",required:!0,value:h.email,onChange:g,placeholder:"name@company.com",className:"w-full px-3 py-2.5 bg-white text-sm text-slate-900 border border-slate-300 rounded-xl focus:border-brand-500 outline-none"})]}),d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsx("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest px-1",children:"Password"}),d.jsx("input",{type:"password",name:"password",required:!0,minLength:6,value:h.password,onChange:g,placeholder:"••••••••",className:"w-full px-3 py-2.5 bg-white text-sm text-slate-900 border border-slate-300 rounded-xl focus:border-brand-500 outline-none"})]})]}),a&&d.jsx("div",{className:"p-3 rounded-xl bg-red-50 border border-red-200 text-red-700 text-[11px] font-black text-center shadow-sm",children:a}),o&&d.jsx("div",{className:"p-3 rounded-xl bg-brand-50 border border-brand-200 text-brand-700 text-[11px] font-black text-center shadow-sm",children:o}),d.jsx("button",{type:"submit",disabled:n,className:"w-full py-4 mt-2 btn-gradient rounded-xl text-xs font-black uppercase tracking-widest shadow-xl shadow-brand-500/20 hover:scale-[1.02] active:scale-[0.98] transition-all disabled:opacity-50",children:n?d.jsxs("span",{className:"flex items-center justify-center gap-2",children:[d.jsx("span",{className:"w-4 h-4 border-2 border-white/20 border-t-white rounded-full animate-spin"}),"Processing..."]}):d.jsx("span",{children:"signin"===e?"Sign In":"signup"===e?"Get Started":"Verify Account"})}),"verify"===e&&d.jsx("button",{type:"button",onClick:async()=>{r(!0);const e=await p(h.email);e.success?i("A new code has been sent."):l(e.message),r(!1)},disabled:n,className:"text-[10px] font-black text-brand-600 hover:text-brand-700 text-center uppercase tracking-wider py-1",children:"Resend Verification Code"}),"verify"===e&&d.jsx("button",{type:"button",onClick:()=>t("signin"),className:"text-[9px] font-black text-slate-600 hover:text-slate-900 text-center uppercase tracking-widest",children:"← Back to Login"})]}),d.jsx("footer",{className:"text-center pt-4 text-[8px] font-black text-slate-500 uppercase tracking-[0.3em] opacity-60",children:"Anti-Piracy Enabled"})]})}function $r({showBack:e=!0,onBack:t}){const{user:n,refreshUser:r}=Jt(),[a,l]=f.useState(!1),[o,i]=f.useState(""),[s,u]=f.useState(!1),[c,p]=f.useState(!1),[h,m]=f.useState(!1),[g,b]=f.useState({h:"00",m:"00",s:"00"});f.useEffect(()=>{const e=()=>{const e=new Date,t=new Date(e);t.setHours(23,59,59,999);const n=t-e;b({h:String(Math.floor(n/36e5)).padStart(2,"0"),m:String(Math.floor(n%36e5/6e4)).padStart(2,"0"),s:String(Math.floor(n%6e4/1e3)).padStart(2,"0")})};e();const t=setInterval(e,1e3);return()=>clearInterval(t)},[]),f.useEffect(()=>{const e=async()=>{const e=await r();"active"===e?.subscriptionStatus&&(p(!0),u(!1),setTimeout(()=>{window.location.reload()},3e3))};let t;return window.addEventListener("focus",e),s&&(t=setInterval(e,2e3)),()=>{window.removeEventListener("focus",e),t&&clearInterval(t)}},[s,r]);const y=async(e="monthly")=>{l(!0),u(!1),i("");try{const t=await Kt.post("/api/billing/checkout",{planType:e}),{portalUrl:n}=t.data;if(!n)throw new Error("Failed to retrieve checkout portal. Check server connectivity.");window.open(n,"_blank"),l(!1),u(!0)}catch(t){console.error("Subscription error:",t),i(t.response?.data?.message||t.message||"Failed to start subscription"),l(!1)}};return c?d.jsxs("div",{className:"animate-fade-in flex flex-col items-center justify-center py-10 text-center",children:[d.jsx("div",{className:"w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mb-6 border border-green-200 shadow-sm animate-bounce",children:d.jsx("span",{className:"text-4xl",children:"✅"})}),d.jsx("h2",{className:"text-2xl font-black text-slate-900 mb-2",children:"Payment Successful!"}),d.jsx("p",{className:"text-sm font-bold text-slate-500 mb-3",children:"Your Pro account is now active. Get ready to automate!"}),d.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 bg-brand-50 border border-brand-100 rounded-full mb-6",children:[d.jsx("span",{className:"text-xs",children:"👑"}),d.jsx("span",{className:"text-[9px] font-black text-brand-600 uppercase tracking-widest",children:"Pro Member · Unlimited"})]}),d.jsx("div",{className:"w-full h-1 bg-slate-100 rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full bg-brand-500 animate-progress"})}),d.jsx("p",{className:"mt-4 text-[10px] font-black uppercase text-brand-600 tracking-widest leading-none",children:"Restarting Extension"})]}):d.jsxs("div",{className:"animate-fade-in flex flex-col gap-3",children:[d.jsx("div",{className:"flex items-center justify-between px-2 py-1",children:d.jsxs("div",{className:"flex items-center gap-2",children:[e&&d.jsx("button",{onClick:t,className:"w-7 h-7 flex items-center justify-center rounded-lg bg-white border border-slate-200 text-slate-500 hover:text-slate-900 shadow-sm transition-all active:scale-95",children:"←"}),d.jsxs("div",{className:"flex items-center gap-1.5 text-[8px] font-black uppercase tracking-widest text-slate-400",children:[d.jsx("span",{children:"AutoLister"}),d.jsx("span",{className:"opacity-40",children:"/"}),d.jsx("span",{className:"text-brand-600",children:"Upgrade Plans"})]})]})}),d.jsx("div",{className:"bg-gradient-to-r from-brand-600 via-pink-500 to-brand-600 rounded-xl p-2.5 text-center",children:d.jsxs("p",{className:"text-[9px] font-black text-white uppercase tracking-wider",children:["🔥 50% OFF ends in ",g.h,":",g.m,":",g.s]})}),d.jsxs("div",{className:"glass-card overflow-hidden",children:[d.jsx("div",{className:"bg-gradient-to-br from-brand-50 to-pink-50 p-4 border-b border-brand-100",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-white flex items-center justify-center border border-brand-100 shadow-sm text-brand-600",children:d.jsx("span",{className:"text-xl",children:"👑"})}),d.jsxs("div",{children:[d.jsxs("h2",{className:"text-lg font-black text-slate-900 leading-tight",children:["Upgrade to ",d.jsx("span",{className:"text-gradient",children:"Pro"})]}),d.jsx("p",{className:"text-[10px] font-bold text-slate-500",children:"Unlock unlimited AI power & faster listing"})]})]})}),d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[d.jsxs("div",{className:"p-3 rounded-2xl border-2 border-slate-100 bg-slate-50/50 hover:border-slate-200 transition-all text-center",children:[d.jsx("span",{className:"text-[9px] font-black uppercase text-slate-400 tracking-widest block mb-1",children:"Monthly"}),d.jsx("span",{className:"text-[10px] font-bold text-slate-400 line-through",children:"₹499"}),d.jsxs("div",{className:"flex items-baseline justify-center gap-0.5",children:[d.jsx("span",{className:"text-2xl font-black text-slate-900",children:"₹299"}),d.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"/mo"})]}),d.jsx("button",{onClick:()=>y("monthly"),disabled:a||s,className:"mt-2.5 w-full py-2 bg-white border border-slate-200 rounded-lg text-[10px] font-black text-slate-700 hover:bg-slate-50 transition-all shadow-sm disabled:opacity-50",children:"Select"})]}),d.jsxs("div",{className:"relative p-3 rounded-2xl border-2 border-brand-500 bg-brand-50/10 text-center",children:[d.jsxs("div",{className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-brand-500 text-white text-[8px] font-black px-2.5 py-0.5 rounded-full uppercase tracking-widest whitespace-nowrap shadow-sm flex items-center gap-1",children:[d.jsx("span",{children:"Best Value"})," ✨"]}),d.jsx("span",{className:"text-[9px] font-black uppercase text-brand-600 tracking-widest block mb-1",children:"Annual"}),d.jsx("span",{className:"text-[10px] font-bold text-slate-400 line-through",children:"₹375"}),d.jsxs("div",{className:"flex items-baseline justify-center gap-0.5",children:[d.jsx("span",{className:"text-2xl font-black text-slate-900",children:"₹208"}),d.jsx("span",{className:"text-[10px] font-bold text-slate-400",children:"/mo"})]}),d.jsx("p",{className:"text-[8px] font-bold text-brand-600/70 mt-0.5 whitespace-nowrap",children:"Save ₹1,089/yr"}),d.jsx("button",{onClick:()=>y("yearly"),disabled:a||s,className:"mt-2 w-full py-2 btn-gradient rounded-lg text-[10px] font-black text-white shadow-md shadow-brand-500/20 hover:scale-[1.02] active:scale-[0.98] transition-all disabled:opacity-50",children:"Go Yearly"})]})]}),d.jsxs("button",{onClick:()=>m(!h),className:"w-full flex items-center justify-center gap-1 py-2 text-[9px] font-black text-brand-500 uppercase tracking-widest hover:text-brand-700 transition-colors",children:[h?"Hide":"Compare"," Features ",h?"▲":"▼"]}),h&&d.jsxs("div",{className:"mb-4 rounded-xl border border-slate-100 overflow-hidden animate-fade-in",children:[d.jsxs("div",{className:"grid grid-cols-3 text-[8px] font-black uppercase tracking-widest bg-slate-50 py-1.5 px-2",children:[d.jsx("span",{className:"text-slate-400",children:"Feature"}),d.jsx("span",{className:"text-slate-400 text-center",children:"Free"}),d.jsx("span",{className:"text-brand-600 text-center",children:"Pro"})]}),[{feature:"AI Analyses",free:"5 total",pro:"Unlimited"},{feature:"GPT-4o Vision",free:"✓",pro:"✓"},{feature:"Auto-Fill Speed",free:"Standard",pro:"Priority"},{feature:"SEO Keywords",free:"Basic",pro:"Advanced"},{feature:"Support",free:"Community",pro:"Email"}].map((e,t)=>d.jsxs("div",{className:"grid grid-cols-3 text-[9px] py-1.5 px-2 border-t border-slate-50",children:[d.jsx("span",{className:"font-bold text-slate-700",children:e.feature}),d.jsx("span",{className:"font-bold text-slate-400 text-center",children:e.free}),d.jsx("span",{className:"font-black text-brand-600 text-center",children:e.pro})]},t))]}),d.jsx("div",{className:"space-y-1.5 mb-4",children:[{icon:"✨",label:"Unlimited AI product analyses"},{icon:"🚀",label:"Priority image-to-field generation"},{icon:"📸",label:"High-precision GPT-4 Vision support"},{icon:"📋",label:"Sequential form autofill (One-click)"}].map((e,t)=>d.jsxs("div",{className:"flex items-center gap-2.5 px-2",children:[d.jsx("span",{className:"text-xs mb-0.5",children:e.icon}),d.jsx("span",{className:"text-[10px] font-bold text-slate-700 leading-none",children:e.label})]},t))}),d.jsx("div",{className:"flex items-center justify-center gap-3 py-2.5 mb-3 border-t border-b border-slate-100",children:[{icon:"🔒",label:"SSL"},{icon:"💳",label:"Razorpay"},{icon:"↩️",label:"Cancel Anytime"}].map((e,t)=>d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"text-[10px]",children:e.icon}),d.jsx("span",{className:"text-[8px] font-bold text-slate-400",children:e.label})]},t))}),d.jsx("button",{onClick:async()=>{l(!0),i("");const e=await r();"active"===e?.subscriptionStatus?(p(!0),setTimeout(()=>{window.location.reload()},3e3)):(i("Payment not detected yet. If you just paid, wait 10 seconds and try again."),l(!1))},disabled:a,className:"w-full py-2.5 bg-slate-100 hover:bg-slate-200 text-slate-600 text-[9px] font-black uppercase tracking-widest rounded-xl border border-slate-200 transition-all disabled:opacity-50",children:a&&!s?"Checking":"Already paid? Verify Status"}),o&&d.jsx("p",{className:"mt-3 text-[10px] font-bold text-red-600 animate-shake text-center",children:o}),s&&!o&&d.jsxs("div",{className:"mt-4 flex flex-col items-center gap-2 animate-fade-in",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-2 h-2 bg-brand-500 rounded-full animate-ping"}),d.jsx("p",{className:"text-[10px] font-black text-brand-600 uppercase tracking-widest",children:"Awaiting Payment..."})]}),d.jsx("p",{className:"text-[9px] font-bold text-slate-500 text-center px-4 leading-normal",children:"Please complete the payment in the new tab. This panel will update automatically."}),d.jsx("button",{onClick:()=>u(!1),className:"mt-2 text-[9px] font-bold text-slate-400 hover:text-brand-600 uppercase tracking-widest underline decoration-slate-200 underline-offset-4 transition-all",children:"Cancel & Change Plan"})]})]})]}),d.jsxs("div",{className:"bg-white p-3 flex items-center gap-3 rounded-2xl border border-slate-200 shadow-sm",children:[d.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-100 flex items-center justify-center text-xs font-black text-slate-900 border border-slate-200",children:n?.firstName?.[0]||"U"}),d.jsxs("div",{className:"flex-1",children:[d.jsxs("p",{className:"text-[10px] font-black text-slate-900 leading-tight truncate",children:[n?.firstName," ",n?.lastName]}),d.jsx("p",{className:"text-[9px] font-bold text-slate-400 truncate leading-none",children:n?.email})]}),d.jsxs("div",{className:"flex flex-col items-end gap-1",children:[d.jsx("span",{className:"px-1.5 py-0.5 text-[8px] font-black uppercase rounded border "+("active"===n?.subscriptionStatus?"bg-brand-500 text-white border-brand-600":"bg-slate-100 text-slate-500 border-slate-200"),children:"active"===n?.subscriptionStatus?"Pro Plan ✦":"Free Plan"}),"active"===n?.subscriptionStatus&&n?.nextBillingDate?d.jsxs("span",{className:"text-[8px] font-bold text-slate-400",children:["Ends: ",new Date(n.nextBillingDate).toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})]}):d.jsxs("span",{className:"text-[8px] font-bold text-slate-400",children:[n?.analysisCount||0,"/2 used"]})]})]})]})}function Wr({data:e,fields:t,onConfirm:n,onCancel:r}){const[a,l]=f.useState(()=>{const n={};return t.forEach(t=>{const r=function(e,t){if(!e)return null;const n=e=>String(e).toLowerCase().replace(/[*:\s_-]/g,""),r=n(t);return Object.keys(e).find(e=>{const t=n(e);return t===r||r.includes(t)||t.includes(r)})}(e,t.label);let a=r?e[r]:"";"object"!=typeof a||Array.isArray(a)||(a=""),n[t.label]=a}),n}),[o,i]=f.useState(!1),[s,u]=f.useState(!1),c=f.useMemo(()=>Object.values(a).filter(e=>""!==e&&null!=e&&(!Array.isArray(e)||e.length>0)).length,[a]);return d.jsxs("div",{className:"glass-card overflow-hidden animate-slide-up flex flex-col bg-white border border-slate-200 shadow-xl",children:[d.jsxs("div",{className:"px-3 py-2 bg-slate-50 border-b border-slate-100 flex items-center justify-between flex-shrink-0",children:[d.jsx("span",{className:"text-sm font-black text-slate-800 flex items-center gap-2",children:"📋 Review Data"}),d.jsxs("span",{className:"text-[10px] font-bold text-pink-600 bg-pink-50 px-2 py-0.5 rounded-full border border-pink-100",children:[t.length," fields"]})]}),d.jsx("div",{className:"px-3 py-2 overflow-y-auto max-h-[420px] flex flex-col gap-2 flex-1 bg-white",children:t.map((e,t)=>d.jsx(Vr,{field:e,value:a[e.label],onChange:t=>{return n=e.label,r=t,void l(e=>({...e,[n]:r}));var n,r}},`${e.label}-${t}`))}),d.jsxs("div",{className:"px-3 py-2 bg-slate-50 border-t border-slate-100 flex gap-2 flex-shrink-0",children:[d.jsx("button",{onClick:r,className:"flex-1 py-2 rounded-xl border border-slate-300 bg-white text-slate-600 text-xs font-bold hover:bg-slate-100 transition-all",children:s?"Close":"Cancel"}),d.jsx("button",{onClick:s?r:async()=>{const e={};for(const[n,r]of Object.entries(a))""!==r&&null!=r&&(!Array.isArray(r)||r.length>0)&&(e[n]=r);if(0!==Object.keys(e).length){i(!0);try{await n(e),u(!0)}catch(t){console.error(t)}finally{i(!1)}}},disabled:o||!s&&0===c,className:"flex-[2] py-2 rounded-xl text-xs font-bold transition-all "+(s?"bg-emerald-600 text-white shadow-lg":"btn-gradient"),children:o?d.jsxs("span",{className:"flex items-center justify-center gap-2",children:[d.jsx("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Filling..."]}):s?d.jsxs("span",{className:"flex items-center justify-center gap-2",children:[d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:d.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Fill Completed"]}):d.jsxs("span",{className:"flex items-center justify-center gap-2",children:[d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:d.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Autofill (",c,")"]})})]})]})}function Vr({field:e,value:t,onChange:n}){const r={text:"bg-slate-100 text-slate-700 border-slate-300",number:"bg-yellow-100 text-yellow-800 border-yellow-300",select:"bg-emerald-100 text-emerald-800 border-emerald-300",textarea:"bg-blue-100 text-blue-800 border-blue-300","checkbox-group":"bg-purple-100 text-purple-800 border-purple-300","radio-group":"bg-purple-100 text-purple-800 border-purple-300"};return d.jsxs("div",{className:"flex flex-col gap-1.5 pb-2 border-b border-slate-100 last:border-b-0 last:pb-0",children:[d.jsxs("div",{className:"flex items-center gap-1.5",children:[e.required&&d.jsx("span",{className:"text-red-600 text-[8px]",children:"●"}),d.jsx("span",{className:"text-[11px] font-black text-slate-700 uppercase tracking-wide flex-1 truncate",children:e.label}),d.jsx("span",{className:`text-[9px] font-black uppercase tracking-wider px-1.5 py-0.5 rounded border ${r[e.type]||r.text}`,children:e.type.replace("-group","")})]}),"select"===e.type&&e.options?.length>0?d.jsxs("select",{value:t||"",onChange:e=>n(e.target.value),className:"w-full px-2.5 py-2 bg-slate-50 border border-slate-300 rounded-lg text-sm text-slate-900 outline-none focus:border-brand-500 shadow-sm transition-all appearance-none cursor-pointer",children:[d.jsx("option",{value:"",children:"— Select —"}),e.options.map((e,t)=>d.jsx("option",{value:e.value,children:e.text},t))]}):"checkbox-group"===e.type||"radio-group"===e.type?d.jsx(Hr,{field:e,value:t,onChange:n}):"textarea"===e.type||"string"==typeof t&&t.length>50?d.jsx("textarea",{value:t||"",onChange:e=>n(e.target.value),rows:2,className:"w-full px-2.5 py-2 bg-slate-50 border border-slate-300 rounded-lg text-sm text-slate-900 placeholder-slate-400 outline-none focus:border-brand-500 shadow-sm resize-y min-h-[48px] transition-all"}):d.jsx("input",{type:"number"===e.type?"number":"text",value:t||"",onChange:e=>n(e.target.value),className:"w-full px-2.5 py-2 bg-slate-50 border border-slate-300 rounded-lg text-sm text-slate-900 placeholder-slate-400 outline-none focus:border-brand-500 shadow-sm transition-all"})]})}function Hr({field:e,value:t,onChange:n}){const r="checkbox-group"===e.type,a=Array.isArray(t)?t:"string"==typeof t?t.split(/[,;]/).map(e=>e.trim()).filter(Boolean):[];return d.jsx("div",{className:"flex flex-wrap gap-1.5 p-2.5 bg-slate-50 rounded-lg border border-slate-200",children:e.options?.map((l,o)=>{const i=r?a.includes(l.value):t===l.value;return d.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer px-2.5 py-1 rounded-full text-[11px] border transition-all "+(i?"bg-brand-500 text-white border-brand-600 font-bold shadow-sm":"bg-white border-slate-200 text-slate-500 hover:bg-slate-100 hover:text-slate-700"),children:[d.jsx("input",{type:r?"checkbox":"radio",name:`grp-${e.label}`,value:l.value,checked:i,onChange:()=>(e=>{if(r){const t=a.includes(e)?a.filter(t=>t!==e):[...a,e];n(t)}else n(e)})(l.value),className:"hidden"}),d.jsx("span",{children:l.text})]},o)})})}function qr({status:e}){if(!e)return null;const t={info:"bg-brand-50 border-brand-200 text-brand-700",success:"bg-emerald-50 border-emerald-200 text-emerald-700",error:"bg-red-50 border-red-200 text-red-700",critical:"bg-red-600 border-red-700 text-white font-bold shadow-lg",warning:"bg-yellow-50 border-yellow-200 text-yellow-800"};return d.jsxs("div",{className:`flex items-start gap-2.5 px-3.5 py-3 rounded-lg text-xs leading-relaxed border animate-fade-in ${t[e.type]||t.info}`,children:[d.jsx("span",{className:"text-base flex-shrink-0 mt-px "+("critical"===e.type?"text-white":""),children:e.icon}),d.jsx("span",{className:"flex-1 break-words",children:e.msg})]})}function Qr({user:e,onUpgrade:t}){const{refreshUser:n}=Jt(),[r,a]=f.useState("ai"),[l,o]=f.useState(null),[i,s]=f.useState(null),[u,c]=f.useState(null),[p,h]=f.useState(""),[m,g]=f.useState(!1),[b,y]=f.useState(null),[v,x]=f.useState(null),[w,k]=f.useState(!1),S=f.useRef(null),E=f.useCallback(e=>{if(e.size>20971520)return void y({msg:"Image must be under 20 MB",type:"error",icon:"❌"});s(e.type);const t=new FileReader;t.onload=e=>{const t=e.target.result;o(t.split(",")[1]),c(t)},t.readAsDataURL(e)},[]),N=async e=>{try{const[t]=await chrome.tabs.query({active:!0,currentWindow:!0});await chrome.tabs.sendMessage(t.id,{action:"fill_form_sequential",data:e}),await n()}catch(t){y({msg:t.message,type:"error",icon:"❌"})}},C=()=>{x(null),y(null)},j=l||p.trim();return v?d.jsxs("div",{className:"animate-fade-in flex flex-col gap-4 px-2",children:[d.jsx(qr,{status:b}),d.jsx(Wr,{data:v.data,fields:v.fields,onConfirm:N,onCancel:C})]}):d.jsxs("div",{className:"animate-fade-in flex flex-col gap-3",children:[d.jsxs("div",{className:"flex gap-2 p-1 bg-slate-100 rounded-xl border border-slate-300 shadow-sm transition-all mx-2",children:[d.jsx(Kr,{active:"ai"===r,onClick:()=>a("ai"),icon:d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:d.jsx("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})}),label:"AI Mode"}),d.jsx(Kr,{active:"manual"===r,onClick:()=>a("manual"),icon:d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[d.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]}),label:"Manual"})]}),"ai"===r&&d.jsxs("div",{className:"animate-fade-in flex flex-col gap-3 px-1",children:[d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsxs("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest flex items-center gap-1.5",children:[d.jsx("span",{children:"📸"})," Product Image"]}),d.jsxs("div",{className:"bg-slate-50 rounded-xl border-2 border-dashed cursor-pointer transition-all duration-300 overflow-hidden "+(w?"border-brand-500 bg-brand-50 shadow-md":"border-slate-300 hover:border-brand-400"),onClick:()=>S.current?.click(),onDragOver:e=>{e.preventDefault(),k(!0)},onDragLeave:()=>k(!1),onDrop:e=>{e.preventDefault(),k(!1);const t=e.dataTransfer.files[0];t?.type.startsWith("image/")&&E(t)},children:[d.jsx("input",{ref:S,type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",onChange:e=>e.target.files[0]&&E(e.target.files[0])}),u?d.jsxs("div",{className:"relative p-2",children:[d.jsx("img",{src:u,alt:"Product preview",className:"w-full max-h-40 object-contain rounded-lg shadow-inner"}),d.jsx("button",{onClick:e=>{e.stopPropagation(),o(null),c(null),s(null),S.current&&(S.current.value="")},className:"absolute top-3 right-3 w-7 h-7 rounded-full bg-red-600 text-white flex items-center justify-center text-sm shadow-lg hover:bg-red-700 hover:scale-110 transition-all",children:"✕"})]}):d.jsxs("div",{className:"flex flex-col items-center justify-center gap-1.5 py-6 px-4 text-slate-500",children:[d.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[d.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),d.jsx("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),d.jsx("path",{d:"M21 15l-5-5L5 21"})]}),d.jsx("span",{className:"text-sm font-black",children:"Click or drop image"})]})]})]}),d.jsxs("div",{className:"flex flex-col gap-1.5",children:[d.jsxs("label",{className:"text-[10px] font-black text-slate-700 uppercase tracking-widest flex items-center gap-1.5",children:[d.jsx("span",{children:"📝"})," Context",d.jsx("span",{className:"text-[9px] lowercase font-black px-1.5 py-0.5 rounded-md bg-slate-100 border border-slate-300 text-slate-500",children:"optional"})]}),d.jsx("textarea",{value:p,onChange:e=>h(e.target.value),placeholder:"e.g. Cotton Blue T-shirt...",rows:3,className:"w-full px-3.5 py-2.5 bg-white text-sm text-slate-900 placeholder:text-slate-400 border border-slate-300 rounded-xl focus:border-brand-500 focus:ring-1 focus:ring-brand-500/20 outline-none resize-none shadow-sm"})]}),d.jsx("button",{onClick:async()=>{g(!0),y({msg:"Deep-scanning Meesho fields...",type:"info",icon:"🔬"});try{const[e]=await chrome.tabs.query({active:!0,currentWindow:!0});if(!e?.url||!Yr(e.url))throw new Error("Open the Meesho supplier panel first.");const t=await chrome.tabs.sendMessage(e.id,{action:"deep_scrape"}),n=t?.fields||[],r=t?.meeshoId;if(0===n.length)throw new Error("No form fields detected on this page.");if(!r)throw new Error("Meesho Supplier ID not found. Please ensure you are logged into the Meesho Supplier Panel and refresh the page.");y({msg:`Found ${n.length} fields. Calling AI...`,type:"info",icon:"🤖"});const a=(await Kt.post("/api/ai/generate",{imageBase64:l,mimeType:i,context:p,fields:n,meeshoId:r})).data;x({data:a.data,fields:n}),y({msg:`AI generated! Review ${Object.keys(a.data).length} fields and confirm.`,type:"success",icon:"✨"})}catch(e){403===e.response?.status?"LIMIT_REACHED"===e.response?.data?.code?(y({msg:"Usage limit reached. Upgrade to Pro for unlimited access!",type:"error",icon:"⌛"}),await n()):"ACCOUNT_LOCKED"===e.response?.data?.code||"MEESHO_ID_ALREADY_LINKED"===e.response?.data?.code?y({msg:e.response?.data?.error||e.response?.data?.message||"Access Locked: This Meesho account belongs to someone else.",type:"critical",icon:"🚫"}):y({msg:e.response?.data?.error||e.response?.data?.message||"Access denied. Please try again.",type:"error",icon:"⚠️"}):y({msg:e.response?.data?.error||e.message,type:"error",icon:"❌"})}finally{g(!1)}},disabled:!j||m,className:"w-full py-4 btn-gradient rounded-xl text-xs font-black uppercase tracking-widest shadow-lg shadow-brand-500/20",children:m?d.jsxs("span",{className:"flex items-center justify-center gap-2",children:[d.jsx("span",{className:"w-4 h-4 border-2 border-white/20 border-t-white rounded-full animate-spin"}),"Analyzing Product..."]}):d.jsx("span",{className:"flex items-center justify-center gap-2",children:"⚡ Analyze & Fill"})})]}),"manual"===r&&d.jsxs("div",{className:"animate-fade-in flex flex-col gap-3 px-1",children:[d.jsxs("div",{className:"bg-slate-50 p-10 text-center border-dashed border-2 border-slate-300 rounded-2xl",children:[d.jsx("div",{className:"text-4xl mb-4",children:"📋"}),d.jsx("h3",{className:"text-base font-black text-slate-900 mb-2",children:"Scan Mode"}),d.jsx("p",{className:"text-[11px] text-slate-600 leading-relaxed max-w-[200px] mx-auto font-bold opacity-90",children:"Copy Meesho fields to a local form."})]}),d.jsx("button",{onClick:async()=>{y({msg:"Scanning Meesho fields...",type:"info",icon:"🔎"});try{const[e]=await chrome.tabs.query({active:!0,currentWindow:!0});if(!e?.url||!Yr(e.url))throw new Error("Open the Meesho supplier panel first.");const t=await chrome.tabs.sendMessage(e.id,{action:"deep_scrape"}),n=t?.fields||[];if(0===n.length)throw new Error("No fields found on this page.");x({data:{},fields:n}),y({msg:`Found ${n.length} fields. Fill values and click Confirm.`,type:"success",icon:"✏️"})}catch(e){y({msg:e.message,type:"error",icon:"❌"})}},className:"w-full py-4 btn-gradient rounded-xl text-xs font-black uppercase tracking-widest",children:"Quick Page Scan"})]}),d.jsx(qr,{status:b}),"active"!==e?.subscriptionStatus&&d.jsx("div",{className:"px-2 mt-2",children:d.jsxs("button",{onClick:t,className:"w-full relative overflow-hidden group py-3.5 px-4 bg-slate-900 rounded-2xl transition-all hover:scale-[1.02] active:scale-[0.98] shadow-xl shadow-slate-900/10",children:[d.jsx("div",{className:"absolute inset-0 w-[200%] h-full bg-gradient-to-r from-transparent via-white/10 to-transparent -translate-x-full group-hover:animate-shimmer"}),d.jsxs("div",{className:"relative flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"w-8 h-8 rounded-xl bg-brand-500 flex items-center justify-center text-sm shadow-lg shadow-brand-500/20",children:"✦"}),d.jsxs("div",{className:"text-left",children:[d.jsx("p",{className:"text-[11px] font-black text-white uppercase tracking-wider leading-none",children:"Upgrade to Pro"}),d.jsx("p",{className:"text-[8px] font-bold text-slate-400 mt-1 uppercase tracking-tighter",children:"Unlimited AI Power & Faster 1-Click Fill"})]})]}),d.jsx("div",{className:"w-6 h-6 rounded-full bg-white/5 flex items-center justify-center text-[10px] text-white",children:"→"})]})]})}),d.jsxs("div",{className:"bg-slate-100 p-3 flex items-center gap-3 mx-2 rounded-2xl border border-slate-300 shadow-sm",children:[d.jsx("div",{className:"w-9 h-9 rounded-xl bg-white flex items-center justify-center text-sm font-black border border-slate-300 text-slate-900",children:e?.firstName?.[0]||"✦"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("p",{className:"text-xs font-black text-slate-900 truncate leading-tight",children:[e?.firstName," ",e?.lastName]}),d.jsx("p",{className:"text-[10px] font-black text-slate-600 truncate",children:e?.email})]}),d.jsxs("div",{className:"flex flex-col items-end gap-1",children:[d.jsx("span",{className:"px-2 py-0.5 text-[9px] font-black uppercase rounded-md border "+("active"===e?.subscriptionStatus?"bg-brand-500 text-white border-brand-600":"bg-slate-200 text-slate-700 border-slate-400"),children:"active"===e?.subscriptionStatus?"Pro ✦":"Free"}),"active"===e?.subscriptionStatus&&e?.nextBillingDate&&d.jsxs("span",{className:"text-[8px] font-bold text-slate-500 uppercase tracking-tighter",children:["Valid until ",new Date(e.nextBillingDate).toLocaleDateString("en-IN",{day:"2-digit",month:"short",year:"numeric"})]}),"active"!==e?.subscriptionStatus&&d.jsx("span",{className:"text-[8px] font-bold uppercase tracking-tighter "+((e?.analysisCount||0)>=5?"text-red-500":"text-slate-500"),children:(e?.analysisCount||0)>=5?"Limit Reached ⌛":5-(e?.analysisCount||0)+" uses left"})]})]}),d.jsx("footer",{className:"text-center pt-2 text-[8px] font-black text-slate-500 uppercase tracking-[0.2em]",children:"🚀 Optimized for Meesho Suppliers"})]})}function Kr({active:e,onClick:t,icon:n,label:r}){return d.jsxs("button",{onClick:t,className:"flex-1 flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg text-[10px] font-black uppercase tracking-wider transition-all duration-300 "+(e?"bg-white text-brand-600 shadow-sm ring-1 ring-slate-200":"text-slate-600 hover:text-slate-900 hover:bg-black/5"),children:[n,d.jsx("span",{children:r})]})}function Yr(e){return e.includes("supplier.meesho.com")||e.includes("localhost")||e.includes("127.0.0.1")||e.includes("test/index.html")||e.includes("netlify.app")}function Jr(){const{user:e,isLoaded:t}=Jt(),[n,r]=p.useState("auto");if(!t)return d.jsx("div",{className:"flex items-center justify-center py-12 min-h-[300px]",children:d.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})});return"active"===e?.subscriptionStatus||(e?.analysisCount||0)<5?"plans"===n?d.jsx($r,{showBack:!0,onBack:()=>r("auto")}):d.jsx(Qr,{user:e,onUpgrade:()=>r("plans")}):d.jsx($r,{showBack:!1})}function Xr(){const{isLoaded:e,isSignedIn:t}=Jt();return e?t?d.jsx(Jr,{}):d.jsx(Br,{}):d.jsx("div",{className:"flex items-center justify-center py-20 min-h-[400px]",children:d.jsx("div",{className:"w-10 h-10 border-3 border-brand-500/20 border-t-brand-500 rounded-full animate-spin"})})}function Gr(){return d.jsx("div",{className:"min-h-screen relative bg-glow overflow-hidden",children:d.jsxs("div",{className:"relative z-10 p-3 flex flex-col gap-3 max-w-lg mx-auto",children:[d.jsx(Ir,{}),d.jsx(dr,{children:d.jsx(ur,{path:"/*",element:d.jsx(Xr,{})})})]})})}function Zr(){return f.useEffect(()=>{document.documentElement.classList.remove("dark")},[]),d.jsx(sr,{children:d.jsx(Xt,{children:d.jsx(Gr,{})})})}C.createRoot(document.getElementById("root")).render(d.jsx(p.StrictMode,{children:d.jsx(Zr,{})}));
