estatesfunding/ef-ui/dist/assets/index-w0FWAEFq.js

90 lines
571 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Vg=Object.defineProperty;var Hg=(e,t,n)=>t in e?Vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var kl=(e,t,n)=>Hg(e,typeof t!="symbol"?t+"":t,n);function Kg(e,t){for(var n=0;n<t.length;n++){const s=t[n];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Yg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $p={exports:{}},ka={},Wp={exports:{}},ue={};/**
* @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 ki=Symbol.for("react.element"),Gg=Symbol.for("react.portal"),Qg=Symbol.for("react.fragment"),Xg=Symbol.for("react.strict_mode"),Jg=Symbol.for("react.profiler"),Zg=Symbol.for("react.provider"),ex=Symbol.for("react.context"),tx=Symbol.for("react.forward_ref"),nx=Symbol.for("react.suspense"),rx=Symbol.for("react.memo"),sx=Symbol.for("react.lazy"),$u=Symbol.iterator;function ix(e){return e===null||typeof e!="object"?null:(e=$u&&e[$u]||e["@@iterator"],typeof e=="function"?e:null)}var Up={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qp=Object.assign,Vp={};function us(e,t,n){this.props=e,this.context=t,this.refs=Vp,this.updater=n||Up}us.prototype.isReactComponent={};us.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};us.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hp(){}Hp.prototype=us.prototype;function Td(e,t,n){this.props=e,this.context=t,this.refs=Vp,this.updater=n||Up}var Od=Td.prototype=new Hp;Od.constructor=Td;qp(Od,us.prototype);Od.isPureReactComponent=!0;var Wu=Array.isArray,Kp=Object.prototype.hasOwnProperty,Ad={current:null},Yp={key:!0,ref:!0,__self:!0,__source:!0};function Gp(e,t,n){var s,i={},o=null,a=null;if(t!=null)for(s in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Kp.call(t,s)&&!Yp.hasOwnProperty(s)&&(i[s]=t[s]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var d=Array(l),c=0;c<l;c++)d[c]=arguments[c+2];i.children=d}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)i[s]===void 0&&(i[s]=l[s]);return{$$typeof:ki,type:e,key:o,ref:a,props:i,_owner:Ad.current}}function ox(e,t){return{$$typeof:ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Rd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ki}function ax(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Uu=/\/+/g;function Sl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ax(""+e.key):t.toString(36)}function fo(e,t,n,s,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ki:case Gg:a=!0}}if(a)return a=e,i=i(a),e=s===""?"."+Sl(a,0):s,Wu(i)?(n="",e!=null&&(n=e.replace(Uu,"$&/")+"/"),fo(i,t,n,"",function(c){return c})):i!=null&&(Rd(i)&&(i=ox(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Uu,"$&/")+"/")+e)),t.push(i)),1;if(a=0,s=s===""?".":s+":",Wu(e))for(var l=0;l<e.length;l++){o=e[l];var d=s+Sl(o,l);a+=fo(o,t,n,d,i)}else if(d=ix(e),typeof d=="function")for(e=d.call(e),l=0;!(o=e.next()).done;)o=o.value,d=s+Sl(o,l++),a+=fo(o,t,n,d,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Wi(e,t,n){if(e==null)return e;var s=[],i=0;return fo(e,s,"","",function(o){return t.call(n,o,i++)}),s}function lx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Je={current:null},po={transition:null},cx={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:po,ReactCurrentOwner:Ad};function Qp(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:Wi,forEach:function(e,t,n){Wi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Wi(e,function(){t++}),t},toArray:function(e){return Wi(e,function(t){return t})||[]},only:function(e){if(!Rd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=us;ue.Fragment=Qg;ue.Profiler=Jg;ue.PureComponent=Td;ue.StrictMode=Xg;ue.Suspense=nx;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cx;ue.act=Qp;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=qp({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Ad.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(d in t)Kp.call(t,d)&&!Yp.hasOwnProperty(d)&&(s[d]=t[d]===void 0&&l!==void 0?l[d]:t[d])}var d=arguments.length-2;if(d===1)s.children=n;else if(1<d){l=Array(d);for(var c=0;c<d;c++)l[c]=arguments[c+2];s.children=l}return{$$typeof:ki,type:e.type,key:i,ref:o,props:s,_owner:a}};ue.createContext=function(e){return e={$$typeof:ex,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zg,_context:e},e.Consumer=e};ue.createElement=Gp;ue.createFactory=function(e){var t=Gp.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:tx,render:e}};ue.isValidElement=Rd;ue.lazy=function(e){return{$$typeof:sx,_payload:{_status:-1,_result:e},_init:lx}};ue.memo=function(e,t){return{$$typeof:rx,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=po.transition;po.transition={};try{e()}finally{po.transition=t}};ue.unstable_act=Qp;ue.useCallback=function(e,t){return Je.current.useCallback(e,t)};ue.useContext=function(e){return Je.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Je.current.useEffect(e,t)};ue.useId=function(){return Je.current.useId()};ue.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Je.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};ue.useRef=function(e){return Je.current.useRef(e)};ue.useState=function(e){return Je.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Je.current.useTransition()};ue.version="18.3.1";Wp.exports=ue;var k=Wp.exports;const I=wi(k),mc=Kg({__proto__:null,default:I},[k]);/**
* @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 dx=k,ux=Symbol.for("react.element"),fx=Symbol.for("react.fragment"),px=Object.prototype.hasOwnProperty,mx=dx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hx={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var s,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(s in t)px.call(t,s)&&!hx.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)i[s]===void 0&&(i[s]=t[s]);return{$$typeof:ux,type:e,key:o,ref:a,props:i,_owner:mx.current}}ka.Fragment=fx;ka.jsx=Xp;ka.jsxs=Xp;$p.exports=ka;var r=$p.exports,Jp={exports:{}},jt={},Zp={exports:{}},em={};/**
* @license React
* scheduler.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(e){function t(A,R){var M=A.length;A.push(R);e:for(;0<M;){var B=M-1>>>1,W=A[B];if(0<i(W,R))A[B]=R,A[M]=W,M=B;else break e}}function n(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var R=A[0],M=A.pop();if(M!==R){A[0]=M;e:for(var B=0,W=A.length,K=W>>>1;B<K;){var Y=2*(B+1)-1,ee=A[Y],re=Y+1,ne=A[re];if(0>i(ee,M))re<W&&0>i(ne,ee)?(A[B]=ne,A[re]=M,B=re):(A[B]=ee,A[Y]=M,B=Y);else if(re<W&&0>i(ne,M))A[B]=ne,A[re]=M,B=re;else break e}}return R}function i(A,R){var M=A.sortIndex-R.sortIndex;return M!==0?M:A.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var d=[],c=[],u=1,p=null,g=3,N=!1,x=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(A){for(var R=n(c);R!==null;){if(R.callback===null)s(c);else if(R.startTime<=A)s(c),R.sortIndex=R.expirationTime,t(d,R);else break;R=n(c)}}function j(A){if(b=!1,h(A),!x)if(n(d)!==null)x=!0,U(P);else{var R=n(c);R!==null&&Q(j,R.startTime-A)}}function P(A,R){x=!1,b&&(b=!1,m(_),_=-1),N=!0;var M=g;try{for(h(R),p=n(d);p!==null&&(!(p.expirationTime>R)||A&&!H());){var B=p.callback;if(typeof B=="function"){p.callback=null,g=p.priorityLevel;var W=B(p.expirationTime<=R);R=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(d)&&s(d),h(R)}else s(d);p=n(d)}if(p!==null)var K=!0;else{var Y=n(c);Y!==null&&Q(j,Y.startTime-R),K=!1}return K}finally{p=null,g=M,N=!1}}var T=!1,O=null,_=-1,L=5,z=-1;function H(){return!(e.unstable_now()-z<L)}function te(){if(O!==null){var A=e.unstable_now();z=A;var R=!0;try{R=O(!0,A)}finally{R?X():(T=!1,O=null)}}else T=!1}var X;if(typeof v=="function")X=function(){v(te)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,D=Z.port2;Z.port1.onmessage=te,X=function(){D.postMessage(null)}}else X=function(){w(te,0)};function U(A){O=A,T||(T=!0,X())}function Q(A,R){_=w(function(){A(e.unstable_now())},R)}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(A){A.callback=null},e.unstable_continueExecution=function(){x||N||(x=!0,U(P))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(A){switch(g){case 1:case 2:case 3:var R=3;break;default:R=g}var M=g;g=R;try{return A()}finally{g=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,R){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var M=g;g=A;try{return R()}finally{g=M}},e.unstable_scheduleCallback=function(A,R,M){var B=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?B+M:B):M=B,A){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=M+W,A={id:u++,callback:R,priorityLevel:A,startTime:M,expirationTime:W,sortIndex:-1},M>B?(A.sortIndex=M,t(c,A),n(d)===null&&A===n(c)&&(b?(m(_),_=-1):b=!0,Q(j,M-B))):(A.sortIndex=W,t(d,A),x||N||(x=!0,U(P))),A},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(A){var R=g;return function(){var M=g;g=R;try{return A.apply(this,arguments)}finally{g=M}}}})(em);Zp.exports=em;var vx=Zp.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.
*/var gx=k,gt=vx;function V(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 tm=new Set,ei={};function kr(e,t){ns(e,t),ns(e+"Capture",t)}function ns(e,t){for(ei[e]=t,e=0;e<t.length;e++)tm.add(t[e])}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hc=Object.prototype.hasOwnProperty,xx=/^[: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]*$/,qu={},Vu={};function yx(e){return hc.call(Vu,e)?!0:hc.call(qu,e)?!1:xx.test(e)?Vu[e]=!0:(qu[e]=!0,!1)}function jx(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Nx(e,t,n,s){if(t===null||typeof t>"u"||jx(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,s,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Ze(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){We[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Id=/[\-:]([a-z])/g;function Fd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Id,Fd);We[t]=new Ze(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(Id,Fd);We[t]=new Ze(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(Id,Fd);We[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dd(e,t,n,s){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Nx(t,n,i,s)&&(n=null),s||i===null?yx(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,s=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var mn=gx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),Rr=Symbol.for("react.fragment"),Ld=Symbol.for("react.strict_mode"),vc=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),Bd=Symbol.for("react.forward_ref"),gc=Symbol.for("react.suspense"),xc=Symbol.for("react.suspense_list"),Md=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),sm=Symbol.for("react.offscreen"),Hu=Symbol.iterator;function ws(e){return e===null||typeof e!="object"?null:(e=Hu&&e[Hu]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,El;function Rs(e){if(El===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);El=t&&t[1]||""}return`
`+El+e}var Pl=!1;function _l(e,t){if(!e||Pl)return"";Pl=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var s=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){s=c}e.call(t.prototype)}else{try{throw Error()}catch(c){s=c}e()}}catch(c){if(c&&s&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),o=s.stack.split(`
`),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var d=`
`+i[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=a&&0<=l);break}}}finally{Pl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Rs(e):""}function Cx(e){switch(e.tag){case 5:return Rs(e.type);case 16:return Rs("Lazy");case 13:return Rs("Suspense");case 19:return Rs("SuspenseList");case 0:case 2:case 15:return e=_l(e.type,!1),e;case 11:return e=_l(e.type.render,!1),e;case 1:return e=_l(e.type,!0),e;default:return""}}function yc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rr:return"Fragment";case Ar:return"Portal";case vc:return"Profiler";case Ld:return"StrictMode";case gc:return"Suspense";case xc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rm:return(e.displayName||"Context")+".Consumer";case nm:return(e._context.displayName||"Context")+".Provider";case Bd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Md:return t=e.displayName||null,t!==null?t:yc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return yc(e(t))}catch{}}return null}function bx(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=t.render,e=e.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 yc(t);case 8:return t===Ld?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function im(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wx(e){var t=im(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){s=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(a){s=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){e._valueTracker||(e._valueTracker=wx(e))}function om(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=im(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function Mo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=Wn(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function am(e,t){t=t.checked,t!=null&&Dd(e,"checked",t,!1)}function Nc(e,t){am(e,t);var n=Wn(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Cc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cc(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Cc(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Is=Array.isArray;function Qr(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Wn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function bc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Gu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(Is(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Wn(n)}}function lm(e,t){var n=Wn(t.value),s=Wn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Qu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cm(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 wc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Vi,dm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Vi=Vi||document.createElement("div"),Vi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Vi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ti(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $s={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},kx=["Webkit","ms","Moz","O"];Object.keys($s).forEach(function(e){kx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$s[t]=$s[e]})});function um(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$s.hasOwnProperty(e)&&$s[e]?(""+t).trim():t+"px"}function fm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=um(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var Sx=Se({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 kc(e,t){if(t){if(Sx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function Sc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ec=null;function zd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pc=null,Xr=null,Jr=null;function Xu(e){if(e=Pi(e)){if(typeof Pc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Ta(t),Pc(e.stateNode,e.type,t))}}function pm(e){Xr?Jr?Jr.push(e):Jr=[e]:Xr=e}function mm(){if(Xr){var e=Xr,t=Jr;if(Jr=Xr=null,Xu(e),t)for(e=0;e<t.length;e++)Xu(t[e])}}function hm(e,t){return e(t)}function vm(){}var Tl=!1;function gm(e,t,n){if(Tl)return e(t,n);Tl=!0;try{return hm(e,t,n)}finally{Tl=!1,(Xr!==null||Jr!==null)&&(vm(),mm())}}function ni(e,t){var n=e.stateNode;if(n===null)return null;var s=Ta(n);if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var _c=!1;if(ln)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){_c=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{_c=!1}function Ex(e,t,n,s,i,o,a,l,d){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Ws=!1,zo=null,$o=!1,Tc=null,Px={onError:function(e){Ws=!0,zo=e}};function _x(e,t,n,s,i,o,a,l,d){Ws=!1,zo=null,Ex.apply(Px,arguments)}function Tx(e,t,n,s,i,o,a,l,d){if(_x.apply(this,arguments),Ws){if(Ws){var c=zo;Ws=!1,zo=null}else throw Error(V(198));$o||($o=!0,Tc=c)}}function Sr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function xm(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ju(e){if(Sr(e)!==e)throw Error(V(188))}function Ox(e){var t=e.alternate;if(!t){if(t=Sr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(s=i.return,s!==null){n=s;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Ju(i),e;if(o===s)return Ju(i),t;o=o.sibling}throw Error(V(188))}if(n.return!==s.return)n=i,s=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,s=o;break}if(l===s){a=!0,s=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,s=i;break}if(l===s){a=!0,s=o,n=i;break}l=l.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==s)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function ym(e){return e=Ox(e),e!==null?jm(e):null}function jm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jm(e);if(t!==null)return t;e=e.sibling}return null}var Nm=gt.unstable_scheduleCallback,Zu=gt.unstable_cancelCallback,Ax=gt.unstable_shouldYield,Rx=gt.unstable_requestPaint,Te=gt.unstable_now,Ix=gt.unstable_getCurrentPriorityLevel,$d=gt.unstable_ImmediatePriority,Cm=gt.unstable_UserBlockingPriority,Wo=gt.unstable_NormalPriority,Fx=gt.unstable_LowPriority,bm=gt.unstable_IdlePriority,Sa=null,Qt=null;function Dx(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Sa,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:Mx,Lx=Math.log,Bx=Math.LN2;function Mx(e){return e>>>=0,e===0?32:31-(Lx(e)/Bx|0)|0}var Hi=64,Ki=4194304;function Fs(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Uo(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?s=Fs(l):(o&=a,o!==0&&(s=Fs(o)))}else a=n&~i,a!==0?s=Fs(a):o!==0&&(s=Fs(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&i)&&(i=s&-s,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-It(t),i=1<<n,s|=e[n],t&=~i;return s}function zx(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $x(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-It(o),l=1<<a,d=i[a];d===-1?(!(l&n)||l&s)&&(i[a]=zx(l,t)):d<=t&&(e.expiredLanes|=l),o&=~l}}function Oc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wm(){var e=Hi;return Hi<<=1,!(Hi&4194240)&&(Hi=64),e}function Ol(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Si(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function Wx(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 s=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-It(n),o=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~o}}function Wd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-It(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var ve=0;function km(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sm,Ud,Em,Pm,_m,Ac=!1,Yi=[],Rn=null,In=null,Fn=null,ri=new Map,si=new Map,En=[],Ux="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 ef(e,t){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Fn=null;break;case"pointerover":case"pointerout":ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":si.delete(t.pointerId)}}function Ss(e,t,n,s,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Pi(t),t!==null&&Ud(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qx(e,t,n,s,i){switch(t){case"focusin":return Rn=Ss(Rn,e,t,n,s,i),!0;case"dragenter":return In=Ss(In,e,t,n,s,i),!0;case"mouseover":return Fn=Ss(Fn,e,t,n,s,i),!0;case"pointerover":var o=i.pointerId;return ri.set(o,Ss(ri.get(o)||null,e,t,n,s,i)),!0;case"gotpointercapture":return o=i.pointerId,si.set(o,Ss(si.get(o)||null,e,t,n,s,i)),!0}return!1}function Tm(e){var t=ar(e.target);if(t!==null){var n=Sr(t);if(n!==null){if(t=n.tag,t===13){if(t=xm(n),t!==null){e.blockedOn=t,_m(e.priority,function(){Em(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Ec=s,n.target.dispatchEvent(s),Ec=null}else return t=Pi(n),t!==null&&Ud(t),e.blockedOn=n,!1;t.shift()}return!0}function tf(e,t,n){mo(e)&&n.delete(t)}function Vx(){Ac=!1,Rn!==null&&mo(Rn)&&(Rn=null),In!==null&&mo(In)&&(In=null),Fn!==null&&mo(Fn)&&(Fn=null),ri.forEach(tf),si.forEach(tf)}function Es(e,t){e.blockedOn===t&&(e.blockedOn=null,Ac||(Ac=!0,gt.unstable_scheduleCallback(gt.unstable_NormalPriority,Vx)))}function ii(e){function t(i){return Es(i,e)}if(0<Yi.length){Es(Yi[0],e);for(var n=1;n<Yi.length;n++){var s=Yi[n];s.blockedOn===e&&(s.blockedOn=null)}}for(Rn!==null&&Es(Rn,e),In!==null&&Es(In,e),Fn!==null&&Es(Fn,e),ri.forEach(t),si.forEach(t),n=0;n<En.length;n++)s=En[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)Tm(n),n.blockedOn===null&&En.shift()}var Zr=mn.ReactCurrentBatchConfig,qo=!0;function Hx(e,t,n,s){var i=ve,o=Zr.transition;Zr.transition=null;try{ve=1,qd(e,t,n,s)}finally{ve=i,Zr.transition=o}}function Kx(e,t,n,s){var i=ve,o=Zr.transition;Zr.transition=null;try{ve=4,qd(e,t,n,s)}finally{ve=i,Zr.transition=o}}function qd(e,t,n,s){if(qo){var i=Rc(e,t,n,s);if(i===null)$l(e,t,s,Vo,n),ef(e,s);else if(qx(i,e,t,n,s))s.stopPropagation();else if(ef(e,s),t&4&&-1<Ux.indexOf(e)){for(;i!==null;){var o=Pi(i);if(o!==null&&Sm(o),o=Rc(e,t,n,s),o===null&&$l(e,t,s,Vo,n),o===i)break;i=o}i!==null&&s.stopPropagation()}else $l(e,t,s,null,n)}}var Vo=null;function Rc(e,t,n,s){if(Vo=null,e=zd(s),e=ar(e),e!==null)if(t=Sr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=xm(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Vo=e,null}function Om(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(Ix()){case $d:return 1;case Cm:return 4;case Wo:case Fx:return 16;case bm:return 536870912;default:return 16}default:return 16}}var _n=null,Vd=null,ho=null;function Am(){if(ho)return ho;var e,t=Vd,n=t.length,s,i="value"in _n?_n.value:_n.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(s=1;s<=a&&t[n-s]===i[o-s];s++);return ho=i.slice(e,1<s?1-s:void 0)}function vo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gi(){return!0}function nf(){return!1}function Nt(e){function t(n,s,i,o,a){this._reactName=n,this._targetInst=i,this.type=s,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Gi:nf,this.isPropagationStopped=nf,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hd=Nt(fs),Ei=Se({},fs,{view:0,detail:0}),Yx=Nt(Ei),Al,Rl,Ps,Ea=Se({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ps&&(Ps&&e.type==="mousemove"?(Al=e.screenX-Ps.screenX,Rl=e.screenY-Ps.screenY):Rl=Al=0,Ps=e),Al)},movementY:function(e){return"movementY"in e?e.movementY:Rl}}),rf=Nt(Ea),Gx=Se({},Ea,{dataTransfer:0}),Qx=Nt(Gx),Xx=Se({},Ei,{relatedTarget:0}),Il=Nt(Xx),Jx=Se({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),Zx=Nt(Jx),ey=Se({},fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ty=Nt(ey),ny=Se({},fs,{data:0}),sf=Nt(ny),ry={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sy={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"},iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iy[e])?!!t[e]:!1}function Kd(){return oy}var ay=Se({},Ei,{key:function(e){if(e.key){var t=ry[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kd,charCode:function(e){return e.type==="keypress"?vo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ly=Nt(ay),cy=Se({},Ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=Nt(cy),dy=Se({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kd}),uy=Nt(dy),fy=Se({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=Nt(fy),my=Se({},Ea,{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}),hy=Nt(my),vy=[9,13,27,32],Yd=ln&&"CompositionEvent"in window,Us=null;ln&&"documentMode"in document&&(Us=document.documentMode);var gy=ln&&"TextEvent"in window&&!Us,Rm=ln&&(!Yd||Us&&8<Us&&11>=Us),af=" ",lf=!1;function Im(e,t){switch(e){case"keyup":return vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ir=!1;function xy(e,t){switch(e){case"compositionend":return Fm(t);case"keypress":return t.which!==32?null:(lf=!0,af);case"textInput":return e=t.data,e===af&&lf?null:e;default:return null}}function yy(e,t){if(Ir)return e==="compositionend"||!Yd&&Im(e,t)?(e=Am(),ho=Vd=_n=null,Ir=!1,e):null;switch(e){case"paste":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 Rm&&t.locale!=="ko"?null:t.data;default:return null}}var jy={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 cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jy[e.type]:t==="textarea"}function Dm(e,t,n,s){pm(s),t=Ho(t,"onChange"),0<t.length&&(n=new Hd("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var qs=null,oi=null;function Ny(e){Km(e,0)}function Pa(e){var t=Lr(e);if(om(t))return e}function Cy(e,t){if(e==="change")return t}var Lm=!1;if(ln){var Fl;if(ln){var Dl="oninput"in document;if(!Dl){var df=document.createElement("div");df.setAttribute("oninput","return;"),Dl=typeof df.oninput=="function"}Fl=Dl}else Fl=!1;Lm=Fl&&(!document.documentMode||9<document.documentMode)}function uf(){qs&&(qs.detachEvent("onpropertychange",Bm),oi=qs=null)}function Bm(e){if(e.propertyName==="value"&&Pa(oi)){var t=[];Dm(t,oi,e,zd(e)),gm(Ny,t)}}function by(e,t,n){e==="focusin"?(uf(),qs=t,oi=n,qs.attachEvent("onpropertychange",Bm)):e==="focusout"&&uf()}function wy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pa(oi)}function ky(e,t){if(e==="click")return Pa(t)}function Sy(e,t){if(e==="input"||e==="change")return Pa(t)}function Ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Ey;function ai(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!hc.call(t,i)||!Bt(e[i],t[i]))return!1}return!0}function ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var n=ff(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ff(n)}}function Mm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zm(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function Gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Py(e){var t=zm(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mm(n.ownerDocument.documentElement,n)){if(s!==null&&Gd(n)){if(t=s.start,e=s.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(s.start,i);s=s.end===void 0?o:Math.min(s.end,i),!e.extend&&o>s&&(i=s,s=o,o=i),i=pf(n,o);var a=pf(n,s);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _y=ln&&"documentMode"in document&&11>=document.documentMode,Fr=null,Ic=null,Vs=null,Fc=!1;function mf(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fc||Fr==null||Fr!==Mo(s)||(s=Fr,"selectionStart"in s&&Gd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Vs&&ai(Vs,s)||(Vs=s,s=Ho(Ic,"onSelect"),0<s.length&&(t=new Hd("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Fr)))}function Qi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Dr={animationend:Qi("Animation","AnimationEnd"),animationiteration:Qi("Animation","AnimationIteration"),animationstart:Qi("Animation","AnimationStart"),transitionend:Qi("Transition","TransitionEnd")},Ll={},$m={};ln&&($m=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function _a(e){if(Ll[e])return Ll[e];if(!Dr[e])return e;var t=Dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $m)return Ll[e]=t[n];return e}var Wm=_a("animationend"),Um=_a("animationiteration"),qm=_a("animationstart"),Vm=_a("transitionend"),Hm=new Map,hf="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 Vn(e,t){Hm.set(e,t),kr(t,[e])}for(var Bl=0;Bl<hf.length;Bl++){var Ml=hf[Bl],Ty=Ml.toLowerCase(),Oy=Ml[0].toUpperCase()+Ml.slice(1);Vn(Ty,"on"+Oy)}Vn(Wm,"onAnimationEnd");Vn(Um,"onAnimationIteration");Vn(qm,"onAnimationStart");Vn("dblclick","onDoubleClick");Vn("focusin","onFocus");Vn("focusout","onBlur");Vn(Vm,"onTransitionEnd");ns("onMouseEnter",["mouseout","mouseover"]);ns("onMouseLeave",["mouseout","mouseover"]);ns("onPointerEnter",["pointerout","pointerover"]);ns("onPointerLeave",["pointerout","pointerover"]);kr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kr("onBeforeInput",["compositionend","keypress","textInput","paste"]);kr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),Ay=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ds));function vf(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,Tx(s,t,void 0,e),e.currentTarget=null}function Km(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;e:{var o=void 0;if(t)for(var a=s.length-1;0<=a;a--){var l=s[a],d=l.instance,c=l.currentTarget;if(l=l.listener,d!==o&&i.isPropagationStopped())break e;vf(i,l,c),o=d}else for(a=0;a<s.length;a++){if(l=s[a],d=l.instance,c=l.currentTarget,l=l.listener,d!==o&&i.isPropagationStopped())break e;vf(i,l,c),o=d}}}if($o)throw e=Tc,$o=!1,Tc=null,e}function je(e,t){var n=t[zc];n===void 0&&(n=t[zc]=new Set);var s=e+"__bubble";n.has(s)||(Ym(t,e,2,!1),n.add(s))}function zl(e,t,n){var s=0;t&&(s|=4),Ym(n,e,s,t)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function li(e){if(!e[Xi]){e[Xi]=!0,tm.forEach(function(n){n!=="selectionchange"&&(Ay.has(n)||zl(n,!1,e),zl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xi]||(t[Xi]=!0,zl("selectionchange",!1,t))}}function Ym(e,t,n,s){switch(Om(t)){case 1:var i=Hx;break;case 4:i=Kx;break;default:i=qd}n=i.bind(null,t,n,e),i=void 0,!_c||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $l(e,t,n,s,i){var o=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var a=s.tag;if(a===3||a===4){var l=s.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=s.return;a!==null;){var d=a.tag;if((d===3||d===4)&&(d=a.stateNode.containerInfo,d===i||d.nodeType===8&&d.parentNode===i))return;a=a.return}for(;l!==null;){if(a=ar(l),a===null)return;if(d=a.tag,d===5||d===6){s=o=a;continue e}l=l.parentNode}}s=s.return}gm(function(){var c=o,u=zd(n),p=[];e:{var g=Hm.get(e);if(g!==void 0){var N=Hd,x=e;switch(e){case"keypress":if(vo(n)===0)break e;case"keydown":case"keyup":N=ly;break;case"focusin":x="focus",N=Il;break;case"focusout":x="blur",N=Il;break;case"beforeblur":case"afterblur":N=Il;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Qx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=uy;break;case Wm:case Um:case qm:N=Zx;break;case Vm:N=py;break;case"scroll":N=Yx;break;case"wheel":N=hy;break;case"copy":case"cut":case"paste":N=ty;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=of}var b=(t&4)!==0,w=!b&&e==="scroll",m=b?g!==null?g+"Capture":null:g;b=[];for(var v=c,h;v!==null;){h=v;var j=h.stateNode;if(h.tag===5&&j!==null&&(h=j,m!==null&&(j=ni(v,m),j!=null&&b.push(ci(v,j,h)))),w)break;v=v.return}0<b.length&&(g=new N(g,x,null,n,u),p.push({event:g,listeners:b}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",g&&n!==Ec&&(x=n.relatedTarget||n.fromElement)&&(ar(x)||x[cn]))break e;if((N||g)&&(g=u.window===u?u:(g=u.ownerDocument)?g.defaultView||g.parentWindow:window,N?(x=n.relatedTarget||n.toElement,N=c,x=x?ar(x):null,x!==null&&(w=Sr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(N=null,x=c),N!==x)){if(b=rf,j="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(b=of,j="onPointerLeave",m="onPointerEnter",v="pointer"),w=N==null?g:Lr(N),h=x==null?g:Lr(x),g=new b(j,v+"leave",N,n,u),g.target=w,g.relatedTarget=h,j=null,ar(u)===c&&(b=new b(m,v+"enter",x,n,u),b.target=h,b.relatedTarget=w,j=b),w=j,N&&x)t:{for(b=N,m=x,v=0,h=b;h;h=Pr(h))v++;for(h=0,j=m;j;j=Pr(j))h++;for(;0<v-h;)b=Pr(b),v--;for(;0<h-v;)m=Pr(m),h--;for(;v--;){if(b===m||m!==null&&b===m.alternate)break t;b=Pr(b),m=Pr(m)}b=null}else b=null;N!==null&&gf(p,g,N,b,!1),x!==null&&w!==null&&gf(p,w,x,b,!0)}}e:{if(g=c?Lr(c):window,N=g.nodeName&&g.nodeName.toLowerCase(),N==="select"||N==="input"&&g.type==="file")var P=Cy;else if(cf(g))if(Lm)P=Sy;else{P=wy;var T=by}else(N=g.nodeName)&&N.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(P=ky);if(P&&(P=P(e,c))){Dm(p,P,n,u);break e}T&&T(e,g,c),e==="focusout"&&(T=g._wrapperState)&&T.controlled&&g.type==="number"&&Cc(g,"number",g.value)}switch(T=c?Lr(c):window,e){case"focusin":(cf(T)||T.contentEditable==="true")&&(Fr=T,Ic=c,Vs=null);break;case"focusout":Vs=Ic=Fr=null;break;case"mousedown":Fc=!0;break;case"contextmenu":case"mouseup":case"dragend":Fc=!1,mf(p,n,u);break;case"selectionchange":if(_y)break;case"keydown":case"keyup":mf(p,n,u)}var O;if(Yd)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Ir?Im(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Rm&&n.locale!=="ko"&&(Ir||_!=="onCompositionStart"?_==="onCompositionEnd"&&Ir&&(O=Am()):(_n=u,Vd="value"in _n?_n.value:_n.textContent,Ir=!0)),T=Ho(c,_),0<T.length&&(_=new sf(_,e,null,n,u),p.push({event:_,listeners:T}),O?_.data=O:(O=Fm(n),O!==null&&(_.data=O)))),(O=gy?xy(e,n):yy(e,n))&&(c=Ho(c,"onBeforeInput"),0<c.length&&(u=new sf("onBeforeInput","beforeinput",null,n,u),p.push({event:u,listeners:c}),u.data=O))}Km(p,t)})}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ho(e,t){for(var n=t+"Capture",s=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ni(e,n),o!=null&&s.unshift(ci(e,o,i)),o=ni(e,t),o!=null&&s.push(ci(e,o,i))),e=e.return}return s}function Pr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gf(e,t,n,s,i){for(var o=t._reactName,a=[];n!==null&&n!==s;){var l=n,d=l.alternate,c=l.stateNode;if(d!==null&&d===s)break;l.tag===5&&c!==null&&(l=c,i?(d=ni(n,o),d!=null&&a.unshift(ci(n,d,l))):i||(d=ni(n,o),d!=null&&a.push(ci(n,d,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Ry=/\r\n?/g,Iy=/\u0000|\uFFFD/g;function xf(e){return(typeof e=="string"?e:""+e).replace(Ry,`
`).replace(Iy,"")}function Ji(e,t,n){if(t=xf(t),xf(e)!==t&&n)throw Error(V(425))}function Ko(){}var Dc=null,Lc=null;function Bc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mc=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,yf=typeof Promise=="function"?Promise:void 0,Dy=typeof queueMicrotask=="function"?queueMicrotask:typeof yf<"u"?function(e){return yf.resolve(null).then(e).catch(Ly)}:Mc;function Ly(e){setTimeout(function(){throw e})}function Wl(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(s===0){e.removeChild(i),ii(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=i}while(n);ii(t)}function Dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ps=Math.random().toString(36).slice(2),Yt="__reactFiber$"+ps,di="__reactProps$"+ps,cn="__reactContainer$"+ps,zc="__reactEvents$"+ps,By="__reactListeners$"+ps,My="__reactHandles$"+ps;function ar(e){var t=e[Yt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[cn]||n[Yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jf(e);e!==null;){if(n=e[Yt])return n;e=jf(e)}return t}e=n,n=e.parentNode}return null}function Pi(e){return e=e[Yt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Ta(e){return e[di]||null}var $c=[],Br=-1;function Hn(e){return{current:e}}function Ne(e){0>Br||(e.current=$c[Br],$c[Br]=null,Br--)}function xe(e,t){Br++,$c[Br]=e.current,e.current=t}var Un={},He=Hn(Un),it=Hn(!1),gr=Un;function rs(e,t){var n=e.type.contextTypes;if(!n)return Un;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ot(e){return e=e.childContextTypes,e!=null}function Yo(){Ne(it),Ne(He)}function Nf(e,t,n){if(He.current!==Un)throw Error(V(168));xe(He,t),xe(it,n)}function Gm(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(V(108,bx(e)||"Unknown",i));return Se({},n,s)}function Go(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,gr=He.current,xe(He,e),xe(it,it.current),!0}function Cf(e,t,n){var s=e.stateNode;if(!s)throw Error(V(169));n?(e=Gm(e,t,gr),s.__reactInternalMemoizedMergedChildContext=e,Ne(it),Ne(He),xe(He,e)):Ne(it),xe(it,n)}var rn=null,Oa=!1,Ul=!1;function Qm(e){rn===null?rn=[e]:rn.push(e)}function zy(e){Oa=!0,Qm(e)}function Kn(){if(!Ul&&rn!==null){Ul=!0;var e=0,t=ve;try{var n=rn;for(ve=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}rn=null,Oa=!1}catch(i){throw rn!==null&&(rn=rn.slice(e+1)),Nm($d,Kn),i}finally{ve=t,Ul=!1}}return null}var Mr=[],zr=0,Qo=null,Xo=0,bt=[],wt=0,xr=null,sn=1,on="";function tr(e,t){Mr[zr++]=Xo,Mr[zr++]=Qo,Qo=e,Xo=t}function Xm(e,t,n){bt[wt++]=sn,bt[wt++]=on,bt[wt++]=xr,xr=e;var s=sn;e=on;var i=32-It(s)-1;s&=~(1<<i),n+=1;var o=32-It(t)+i;if(30<o){var a=i-i%5;o=(s&(1<<a)-1).toString(32),s>>=a,i-=a,sn=1<<32-It(t)+i|n<<i|s,on=o+e}else sn=1<<o|n<<i|s,on=e}function Qd(e){e.return!==null&&(tr(e,1),Xm(e,1,0))}function Xd(e){for(;e===Qo;)Qo=Mr[--zr],Mr[zr]=null,Xo=Mr[--zr],Mr[zr]=null;for(;e===xr;)xr=bt[--wt],bt[wt]=null,on=bt[--wt],bt[wt]=null,sn=bt[--wt],bt[wt]=null}var ht=null,ut=null,Ce=!1,At=null;function Jm(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function bf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ht=e,ut=Dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ht=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=xr!==null?{id:sn,overflow:on}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ht=e,ut=null,!0):!1;default:return!1}}function Wc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Uc(e){if(Ce){var t=ut;if(t){var n=t;if(!bf(e,t)){if(Wc(e))throw Error(V(418));t=Dn(n.nextSibling);var s=ht;t&&bf(e,t)?Jm(s,n):(e.flags=e.flags&-4097|2,Ce=!1,ht=e)}}else{if(Wc(e))throw Error(V(418));e.flags=e.flags&-4097|2,Ce=!1,ht=e}}}function wf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ht=e}function Zi(e){if(e!==ht)return!1;if(!Ce)return wf(e),Ce=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bc(e.type,e.memoizedProps)),t&&(t=ut)){if(Wc(e))throw Zm(),Error(V(418));for(;t;)Jm(e,t),t=Dn(t.nextSibling)}if(wf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=Dn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ht?Dn(e.stateNode.nextSibling):null;return!0}function Zm(){for(var e=ut;e;)e=Dn(e.nextSibling)}function ss(){ut=ht=null,Ce=!1}function Jd(e){At===null?At=[e]:At.push(e)}var $y=mn.ReactCurrentBatchConfig;function _s(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var s=n.stateNode}if(!s)throw Error(V(147,e));var i=s,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function eo(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function kf(e){var t=e._init;return t(e._payload)}function eh(e){function t(m,v){if(e){var h=m.deletions;h===null?(m.deletions=[v],m.flags|=16):h.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function s(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=zn(m,v),m.index=0,m.sibling=null,m}function o(m,v,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<v?(m.flags|=2,v):h):(m.flags|=2,v)):(m.flags|=1048576,v)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,v,h,j){return v===null||v.tag!==6?(v=Ql(h,m.mode,j),v.return=m,v):(v=i(v,h),v.return=m,v)}function d(m,v,h,j){var P=h.type;return P===Rr?u(m,v,h.props.children,j,h.key):v!==null&&(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Nn&&kf(P)===v.type)?(j=i(v,h.props),j.ref=_s(m,v,h),j.return=m,j):(j=bo(h.type,h.key,h.props,null,m.mode,j),j.ref=_s(m,v,h),j.return=m,j)}function c(m,v,h,j){return v===null||v.tag!==4||v.stateNode.containerInfo!==h.containerInfo||v.stateNode.implementation!==h.implementation?(v=Xl(h,m.mode,j),v.return=m,v):(v=i(v,h.children||[]),v.return=m,v)}function u(m,v,h,j,P){return v===null||v.tag!==7?(v=fr(h,m.mode,j,P),v.return=m,v):(v=i(v,h),v.return=m,v)}function p(m,v,h){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Ql(""+v,m.mode,h),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ui:return h=bo(v.type,v.key,v.props,null,m.mode,h),h.ref=_s(m,null,v),h.return=m,h;case Ar:return v=Xl(v,m.mode,h),v.return=m,v;case Nn:var j=v._init;return p(m,j(v._payload),h)}if(Is(v)||ws(v))return v=fr(v,m.mode,h,null),v.return=m,v;eo(m,v)}return null}function g(m,v,h,j){var P=v!==null?v.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return P!==null?null:l(m,v,""+h,j);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Ui:return h.key===P?d(m,v,h,j):null;case Ar:return h.key===P?c(m,v,h,j):null;case Nn:return P=h._init,g(m,v,P(h._payload),j)}if(Is(h)||ws(h))return P!==null?null:u(m,v,h,j,null);eo(m,h)}return null}function N(m,v,h,j,P){if(typeof j=="string"&&j!==""||typeof j=="number")return m=m.get(h)||null,l(v,m,""+j,P);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ui:return m=m.get(j.key===null?h:j.key)||null,d(v,m,j,P);case Ar:return m=m.get(j.key===null?h:j.key)||null,c(v,m,j,P);case Nn:var T=j._init;return N(m,v,h,T(j._payload),P)}if(Is(j)||ws(j))return m=m.get(h)||null,u(v,m,j,P,null);eo(v,j)}return null}function x(m,v,h,j){for(var P=null,T=null,O=v,_=v=0,L=null;O!==null&&_<h.length;_++){O.index>_?(L=O,O=null):L=O.sibling;var z=g(m,O,h[_],j);if(z===null){O===null&&(O=L);break}e&&O&&z.alternate===null&&t(m,O),v=o(z,v,_),T===null?P=z:T.sibling=z,T=z,O=L}if(_===h.length)return n(m,O),Ce&&tr(m,_),P;if(O===null){for(;_<h.length;_++)O=p(m,h[_],j),O!==null&&(v=o(O,v,_),T===null?P=O:T.sibling=O,T=O);return Ce&&tr(m,_),P}for(O=s(m,O);_<h.length;_++)L=N(O,m,_,h[_],j),L!==null&&(e&&L.alternate!==null&&O.delete(L.key===null?_:L.key),v=o(L,v,_),T===null?P=L:T.sibling=L,T=L);return e&&O.forEach(function(H){return t(m,H)}),Ce&&tr(m,_),P}function b(m,v,h,j){var P=ws(h);if(typeof P!="function")throw Error(V(150));if(h=P.call(h),h==null)throw Error(V(151));for(var T=P=null,O=v,_=v=0,L=null,z=h.next();O!==null&&!z.done;_++,z=h.next()){O.index>_?(L=O,O=null):L=O.sibling;var H=g(m,O,z.value,j);if(H===null){O===null&&(O=L);break}e&&O&&H.alternate===null&&t(m,O),v=o(H,v,_),T===null?P=H:T.sibling=H,T=H,O=L}if(z.done)return n(m,O),Ce&&tr(m,_),P;if(O===null){for(;!z.done;_++,z=h.next())z=p(m,z.value,j),z!==null&&(v=o(z,v,_),T===null?P=z:T.sibling=z,T=z);return Ce&&tr(m,_),P}for(O=s(m,O);!z.done;_++,z=h.next())z=N(O,m,_,z.value,j),z!==null&&(e&&z.alternate!==null&&O.delete(z.key===null?_:z.key),v=o(z,v,_),T===null?P=z:T.sibling=z,T=z);return e&&O.forEach(function(te){return t(m,te)}),Ce&&tr(m,_),P}function w(m,v,h,j){if(typeof h=="object"&&h!==null&&h.type===Rr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Ui:e:{for(var P=h.key,T=v;T!==null;){if(T.key===P){if(P=h.type,P===Rr){if(T.tag===7){n(m,T.sibling),v=i(T,h.props.children),v.return=m,m=v;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Nn&&kf(P)===T.type){n(m,T.sibling),v=i(T,h.props),v.ref=_s(m,T,h),v.return=m,m=v;break e}n(m,T);break}else t(m,T);T=T.sibling}h.type===Rr?(v=fr(h.props.children,m.mode,j,h.key),v.return=m,m=v):(j=bo(h.type,h.key,h.props,null,m.mode,j),j.ref=_s(m,v,h),j.return=m,m=j)}return a(m);case Ar:e:{for(T=h.key;v!==null;){if(v.key===T)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){n(m,v.sibling),v=i(v,h.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Xl(h,m.mode,j),v.return=m,m=v}return a(m);case Nn:return T=h._init,w(m,v,T(h._payload),j)}if(Is(h))return x(m,v,h,j);if(ws(h))return b(m,v,h,j);eo(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,h),v.return=m,m=v):(n(m,v),v=Ql(h,m.mode,j),v.return=m,m=v),a(m)):n(m,v)}return w}var is=eh(!0),th=eh(!1),Jo=Hn(null),Zo=null,$r=null,Zd=null;function eu(){Zd=$r=Zo=null}function tu(e){var t=Jo.current;Ne(Jo),e._currentValue=t}function qc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function es(e,t){Zo=e,Zd=$r=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Zd!==e)if(e={context:e,memoizedValue:t,next:null},$r===null){if(Zo===null)throw Error(V(308));$r=e,Zo.dependencies={lanes:0,firstContext:e}}else $r=$r.next=e;return t}var lr=null;function nu(e){lr===null?lr=[e]:lr.push(e)}function nh(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,nu(t)):(n.next=i.next,i.next=n),t.interleaved=n,dn(e,s)}function dn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cn=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rh(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 an(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,pe&2){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,dn(e,n)}return i=s.interleaved,i===null?(t.next=t,nu(s)):(t.next=i.next,i.next=t),s.interleaved=t,dn(e,n)}function go(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Wd(e,n)}}function Sf(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ea(e,t,n,s){var i=e.updateQueue;Cn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var d=l,c=d.next;d.next=null,a===null?o=c:a.next=c,a=d;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=d))}if(o!==null){var p=i.baseState;a=0,u=c=d=null,l=o;do{var g=l.lane,N=l.eventTime;if((s&g)===g){u!==null&&(u=u.next={eventTime:N,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(g=t,N=n,b.tag){case 1:if(x=b.payload,typeof x=="function"){p=x.call(N,p,g);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,g=typeof x=="function"?x.call(N,p,g):x,g==null)break e;p=Se({},p,g);break e;case 2:Cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=i.effects,g===null?i.effects=[l]:g.push(l))}else N={eventTime:N,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=N,d=p):u=u.next=N,a|=g;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;g=l,l=g.next,g.next=null,i.lastBaseUpdate=g,i.shared.pending=null}}while(!0);if(u===null&&(d=p),i.baseState=d,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);jr|=a,e.lanes=a,e.memoizedState=p}}function Ef(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(i!==null){if(s.callback=null,s=n,typeof i!="function")throw Error(V(191,i));i.call(s)}}}var _i={},Xt=Hn(_i),ui=Hn(_i),fi=Hn(_i);function cr(e){if(e===_i)throw Error(V(174));return e}function su(e,t){switch(xe(fi,t),xe(ui,e),xe(Xt,_i),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wc(t,e)}Ne(Xt),xe(Xt,t)}function os(){Ne(Xt),Ne(ui),Ne(fi)}function sh(e){cr(fi.current);var t=cr(Xt.current),n=wc(t,e.type);t!==n&&(xe(ui,e),xe(Xt,n))}function iu(e){ui.current===e&&(Ne(Xt),Ne(ui))}var we=Hn(0);function ta(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ql=[];function ou(){for(var e=0;e<ql.length;e++)ql[e]._workInProgressVersionPrimary=null;ql.length=0}var xo=mn.ReactCurrentDispatcher,Vl=mn.ReactCurrentBatchConfig,yr=0,ke=null,Ae=null,Fe=null,na=!1,Hs=!1,pi=0,Wy=0;function Ue(){throw Error(V(321))}function au(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function lu(e,t,n,s,i,o){if(yr=o,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xo.current=e===null||e.memoizedState===null?Hy:Ky,e=n(s,i),Hs){o=0;do{if(Hs=!1,pi=0,25<=o)throw Error(V(301));o+=1,Fe=Ae=null,t.updateQueue=null,xo.current=Yy,e=n(s,i)}while(Hs)}if(xo.current=ra,t=Ae!==null&&Ae.next!==null,yr=0,Fe=Ae=ke=null,na=!1,t)throw Error(V(300));return e}function cu(){var e=pi!==0;return pi=0,e}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ke.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Pt(){if(Ae===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Fe===null?ke.memoizedState:Fe.next;if(t!==null)Fe=t,Ae=e;else{if(e===null)throw Error(V(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Fe===null?ke.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function mi(e,t){return typeof t=="function"?t(e):t}function Hl(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=Ae,i=s.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}s.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,s=s.baseState;var l=a=null,d=null,c=o;do{var u=c.lane;if((yr&u)===u)d!==null&&(d=d.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),s=c.hasEagerState?c.eagerState:e(s,c.action);else{var p={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};d===null?(l=d=p,a=s):d=d.next=p,ke.lanes|=u,jr|=u}c=c.next}while(c!==null&&c!==o);d===null?a=s:d.next=l,Bt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseState=a,t.baseQueue=d,n.lastRenderedState=s}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ke.lanes|=o,jr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Kl(e){var t=Pt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Bt(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function ih(){}function oh(e,t){var n=ke,s=Pt(),i=t(),o=!Bt(s.memoizedState,i);if(o&&(s.memoizedState=i,st=!0),s=s.queue,du(ch.bind(null,n,s,e),[e]),s.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(n.flags|=2048,hi(9,lh.bind(null,n,s,i,t),void 0,null),De===null)throw Error(V(349));yr&30||ah(n,t,i)}return i}function ah(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function lh(e,t,n,s){t.value=n,t.getSnapshot=s,dh(t)&&uh(e)}function ch(e,t,n){return n(function(){dh(t)&&uh(e)})}function dh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function uh(e){var t=dn(e,1);t!==null&&Ft(t,e,1,-1)}function Pf(e){var t=Ht();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vy.bind(null,ke,e),[t.memoizedState,e]}function hi(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=ke.updateQueue,t===null?(t={lastEffect:null,stores:null},ke.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function fh(){return Pt().memoizedState}function yo(e,t,n,s){var i=Ht();ke.flags|=e,i.memoizedState=hi(1|t,n,void 0,s===void 0?null:s)}function Aa(e,t,n,s){var i=Pt();s=s===void 0?null:s;var o=void 0;if(Ae!==null){var a=Ae.memoizedState;if(o=a.destroy,s!==null&&au(s,a.deps)){i.memoizedState=hi(t,n,o,s);return}}ke.flags|=e,i.memoizedState=hi(1|t,n,o,s)}function _f(e,t){return yo(8390656,8,e,t)}function du(e,t){return Aa(2048,8,e,t)}function ph(e,t){return Aa(4,2,e,t)}function mh(e,t){return Aa(4,4,e,t)}function hh(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vh(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4,4,hh.bind(null,t,e),n)}function uu(){}function gh(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&au(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function xh(e,t){var n=Pt();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&au(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function yh(e,t,n){return yr&21?(Bt(n,t)||(n=wm(),ke.lanes|=n,jr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function Uy(e,t){var n=ve;ve=n!==0&&4>n?n:4,e(!0);var s=Vl.transition;Vl.transition={};try{e(!1),t()}finally{ve=n,Vl.transition=s}}function jh(){return Pt().memoizedState}function qy(e,t,n){var s=Mn(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Nh(e))Ch(t,n);else if(n=nh(e,t,n,s),n!==null){var i=Xe();Ft(n,e,s,i),bh(n,t,s)}}function Vy(e,t,n){var s=Mn(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Nh(e))Ch(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,Bt(l,a)){var d=t.interleaved;d===null?(i.next=i,nu(t)):(i.next=d.next,d.next=i),t.interleaved=i;return}}catch{}finally{}n=nh(e,t,i,s),n!==null&&(i=Xe(),Ft(n,e,s,i),bh(n,t,s))}}function Nh(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Ch(e,t){Hs=na=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bh(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,Wd(e,n)}}var ra={readContext:Et,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},Hy={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:_f,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=Ht();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=Ht();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=qy.bind(null,ke,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:Pf,useDebugValue:uu,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=Pf(!1),t=e[0];return e=Uy.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=ke,i=Ht();if(Ce){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),De===null)throw Error(V(349));yr&30||ah(s,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_f(ch.bind(null,s,o,e),[e]),s.flags|=2048,hi(9,lh.bind(null,s,o,n,t),void 0,null),n},useId:function(){var e=Ht(),t=De.identifierPrefix;if(Ce){var n=on,s=sn;n=(s&~(1<<32-It(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=pi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Wy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ky={readContext:Et,useCallback:gh,useContext:Et,useEffect:du,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:mh,useMemo:xh,useReducer:Hl,useRef:fh,useState:function(){return Hl(mi)},useDebugValue:uu,useDeferredValue:function(e){var t=Pt();return yh(t,Ae.memoizedState,e)},useTransition:function(){var e=Hl(mi)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:ih,useSyncExternalStore:oh,useId:jh,unstable_isNewReconciler:!1},Yy={readContext:Et,useCallback:gh,useContext:Et,useEffect:du,useImperativeHandle:vh,useInsertionEffect:ph,useLayoutEffect:mh,useMemo:xh,useReducer:Kl,useRef:fh,useState:function(){return Kl(mi)},useDebugValue:uu,useDeferredValue:function(e){var t=Pt();return Ae===null?t.memoizedState=e:yh(t,Ae.memoizedState,e)},useTransition:function(){var e=Kl(mi)[0],t=Pt().memoizedState;return[e,t]},useMutableSource:ih,useSyncExternalStore:oh,useId:jh,unstable_isNewReconciler:!1};function Tt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vc(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ra={isMounted:function(e){return(e=e._reactInternals)?Sr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Xe(),i=Mn(e),o=an(s,i);o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,i),t!==null&&(Ft(t,e,i,s),go(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Xe(),i=Mn(e),o=an(s,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ln(e,o,i),t!==null&&(Ft(t,e,i,s),go(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xe(),s=Mn(e),i=an(n,s);i.tag=2,t!=null&&(i.callback=t),t=Ln(e,i,s),t!==null&&(Ft(t,e,s,n),go(t,e,s))}};function Tf(e,t,n,s,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,o,a):t.prototype&&t.prototype.isPureReactComponent?!ai(n,s)||!ai(i,o):!0}function wh(e,t,n){var s=!1,i=Un,o=t.contextType;return typeof o=="object"&&o!==null?o=Et(o):(i=ot(t)?gr:He.current,s=t.contextTypes,o=(s=s!=null)?rs(e,i):Un),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ra,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Of(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Ra.enqueueReplaceState(t,t.state,null)}function Hc(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ru(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Et(o):(o=ot(t)?gr:He.current,i.context=rs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Vc(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ra.enqueueReplaceState(i,i.state,null),ea(e,n,i,s),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function as(e,t){try{var n="",s=t;do n+=Cx(s),s=s.return;while(s);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Yl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Kc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Gy=typeof WeakMap=="function"?WeakMap:Map;function kh(e,t,n){n=an(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){ia||(ia=!0,rd=s),Kc(e,t)},n}function Sh(e,t,n){n=an(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){Kc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Kc(e,t),typeof s!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Af(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Gy;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=cj.bind(null,e,t,n),t.then(e,e))}function Rf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function If(e,t,n,s,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=an(-1,1),t.tag=2,Ln(n,t,1))),n.lanes|=1),e)}var Qy=mn.ReactCurrentOwner,st=!1;function Ge(e,t,n,s){t.child=e===null?th(t,null,n,s):is(t,e.child,n,s)}function Ff(e,t,n,s,i){n=n.render;var o=t.ref;return es(t,i),s=lu(e,t,n,s,o,i),n=cu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Ce&&n&&Qd(t),t.flags|=1,Ge(e,t,s,i),t.child)}function Df(e,t,n,s,i){if(e===null){var o=n.type;return typeof o=="function"&&!yu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Eh(e,t,o,s,i)):(e=bo(n.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:ai,n(a,s)&&e.ref===t.ref)return un(e,t,i)}return t.flags|=1,e=zn(o,s),e.ref=t.ref,e.return=t,t.child=e}function Eh(e,t,n,s,i){if(e!==null){var o=e.memoizedProps;if(ai(o,s)&&e.ref===t.ref)if(st=!1,t.pendingProps=s=o,(e.lanes&i)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,un(e,t,i)}return Yc(e,t,n,s,i)}function Ph(e,t,n){var s=t.pendingProps,i=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xe(Ur,dt),dt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xe(Ur,dt),dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=o!==null?o.baseLanes:n,xe(Ur,dt),dt|=s}else o!==null?(s=o.baseLanes|n,t.memoizedState=null):s=n,xe(Ur,dt),dt|=s;return Ge(e,t,i,n),t.child}function _h(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Yc(e,t,n,s,i){var o=ot(n)?gr:He.current;return o=rs(t,o),es(t,i),n=lu(e,t,n,s,o,i),s=cu(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,un(e,t,i)):(Ce&&s&&Qd(t),t.flags|=1,Ge(e,t,n,i),t.child)}function Lf(e,t,n,s,i){if(ot(n)){var o=!0;Go(t)}else o=!1;if(es(t,i),t.stateNode===null)jo(e,t),wh(t,n,s),Hc(t,n,s,i),s=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var d=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Et(c):(c=ot(n)?gr:He.current,c=rs(t,c));var u=n.getDerivedStateFromProps,p=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==s||d!==c)&&Of(t,a,s,c),Cn=!1;var g=t.memoizedState;a.state=g,ea(t,s,a,i),d=t.memoizedState,l!==s||g!==d||it.current||Cn?(typeof u=="function"&&(Vc(t,n,u,s),d=t.memoizedState),(l=Cn||Tf(t,n,l,s,g,d,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=d),a.props=s,a.state=d,a.context=c,s=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{a=t.stateNode,rh(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Tt(t.type,l),a.props=c,p=t.pendingProps,g=a.context,d=n.contextType,typeof d=="object"&&d!==null?d=Et(d):(d=ot(n)?gr:He.current,d=rs(t,d));var N=n.getDerivedStateFromProps;(u=typeof N=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||g!==d)&&Of(t,a,s,d),Cn=!1,g=t.memoizedState,a.state=g,ea(t,s,a,i);var x=t.memoizedState;l!==p||g!==x||it.current||Cn?(typeof N=="function"&&(Vc(t,n,N,s),x=t.memoizedState),(c=Cn||Tf(t,n,c,s,g,x,d)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(s,x,d),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(s,x,d)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=x),a.props=s,a.state=x,a.context=d,s=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),s=!1)}return Gc(e,t,n,s,o,i)}function Gc(e,t,n,s,i,o){_h(e,t);var a=(t.flags&128)!==0;if(!s&&!a)return i&&Cf(t,n,!1),un(e,t,o);s=t.stateNode,Qy.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&a?(t.child=is(t,e.child,null,o),t.child=is(t,null,l,o)):Ge(e,t,l,o),t.memoizedState=s.state,i&&Cf(t,n,!0),t.child}function Th(e){var t=e.stateNode;t.pendingContext?Nf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nf(e,t.context,!1),su(e,t.containerInfo)}function Bf(e,t,n,s,i){return ss(),Jd(i),t.flags|=256,Ge(e,t,n,s),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0};function Xc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Oh(e,t,n){var s=t.pendingProps,i=we.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),xe(we,i&1),e===null)return Uc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=s.children,e=s.fallback,o?(s=t.mode,o=t.child,a={mode:"hidden",children:a},!(s&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Da(a,s,0,null),e=fr(e,s,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Xc(n),t.memoizedState=Qc,e):fu(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Xy(e,t,a,s,l,i,n);if(o){o=s.fallback,a=t.mode,i=e.child,l=i.sibling;var d={mode:"hidden",children:s.children};return!(a&1)&&t.child!==i?(s=t.child,s.childLanes=0,s.pendingProps=d,t.deletions=null):(s=zn(i,d),s.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=zn(l,o):(o=fr(o,a,n,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,a=e.child.memoizedState,a=a===null?Xc(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Qc,s}return o=e.child,e=o.sibling,s=zn(o,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function fu(e,t){return t=Da({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function to(e,t,n,s){return s!==null&&Jd(s),is(t,e.child,null,n),e=fu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xy(e,t,n,s,i,o,a){if(n)return t.flags&256?(t.flags&=-257,s=Yl(Error(V(422))),to(e,t,a,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=s.fallback,i=t.mode,s=Da({mode:"visible",children:s.children},i,0,null),o=fr(o,i,a,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,t.mode&1&&is(t,e.child,null,a),t.child.memoizedState=Xc(a),t.memoizedState=Qc,o);if(!(t.mode&1))return to(e,t,a,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var l=s.dgst;return s=l,o=Error(V(419)),s=Yl(o,s,void 0),to(e,t,a,s)}if(l=(a&e.childLanes)!==0,st||l){if(s=De,s!==null){switch(a&-a){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(s.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,dn(e,i),Ft(s,e,i,-1))}return xu(),s=Yl(Error(V(421))),to(e,t,a,s)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=dj.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ut=Dn(i.nextSibling),ht=t,Ce=!0,At=null,e!==null&&(bt[wt++]=sn,bt[wt++]=on,bt[wt++]=xr,sn=e.id,on=e.overflow,xr=t),t=fu(t,s.children),t.flags|=4096,t)}function Mf(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),qc(e.return,t,n)}function Gl(e,t,n,s,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=i)}function Ah(e,t,n){var s=t.pendingProps,i=s.revealOrder,o=s.tail;if(Ge(e,t,s.children,n),s=we.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mf(e,n,t);else if(e.tag===19)Mf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(xe(we,s),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ta(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Gl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ta(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Gl(t,!0,n,null,o);break;case"together":Gl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=zn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=zn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Jy(e,t,n){switch(t.tag){case 3:Th(t),ss();break;case 5:sh(t);break;case 1:ot(t.type)&&Go(t);break;case 4:su(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;xe(Jo,s._currentValue),s._currentValue=i;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(xe(we,we.current&1),t.flags|=128,null):n&t.child.childLanes?Oh(e,t,n):(xe(we,we.current&1),e=un(e,t,n),e!==null?e.sibling:null);xe(we,we.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return Ah(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xe(we,we.current),s)break;return null;case 22:case 23:return t.lanes=0,Ph(e,t,n)}return un(e,t,n)}var Rh,Jc,Ih,Fh;Rh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Jc=function(){};Ih=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,cr(Xt.current);var o=null;switch(n){case"input":i=jc(e,i),s=jc(e,s),o=[];break;case"select":i=Se({},i,{value:void 0}),s=Se({},s,{value:void 0}),o=[];break;case"textarea":i=bc(e,i),s=bc(e,s),o=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ko)}kc(n,s);var a;n=null;for(c in i)if(!s.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ei.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in s){var d=s[c];if(l=i!=null?i[c]:void 0,s.hasOwnProperty(c)&&d!==l&&(d!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||d&&d.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in d)d.hasOwnProperty(a)&&l[a]!==d[a]&&(n||(n={}),n[a]=d[a])}else n||(o||(o=[]),o.push(c,n)),n=d;else c==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,l=l?l.__html:void 0,d!=null&&l!==d&&(o=o||[]).push(c,d)):c==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(c,""+d):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ei.hasOwnProperty(c)?(d!=null&&c==="onScroll"&&je("scroll",e),o||l===d||(o=[])):(o=o||[]).push(c,d))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Fh=function(e,t,n,s){n!==s&&(t.flags|=4)};function Ts(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Zy(e,t,n){var s=t.pendingProps;switch(Xd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return ot(t.type)&&Yo(),qe(t),null;case 3:return s=t.stateNode,os(),Ne(it),Ne(He),ou(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,At!==null&&(od(At),At=null))),Jc(e,t),qe(t),null;case 5:iu(t);var i=cr(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)Ih(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(V(166));return qe(t),null}if(e=cr(Xt.current),Zi(t)){s=t.stateNode,n=t.type;var o=t.memoizedProps;switch(s[Yt]=t,s[di]=o,e=(t.mode&1)!==0,n){case"dialog":je("cancel",s),je("close",s);break;case"iframe":case"object":case"embed":je("load",s);break;case"video":case"audio":for(i=0;i<Ds.length;i++)je(Ds[i],s);break;case"source":je("error",s);break;case"img":case"image":case"link":je("error",s),je("load",s);break;case"details":je("toggle",s);break;case"input":Ku(s,o),je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},je("invalid",s);break;case"textarea":Gu(s,o),je("invalid",s)}kc(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?s.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ji(s.textContent,l,e),i=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ji(s.textContent,l,e),i=["children",""+l]):ei.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&je("scroll",s)}switch(n){case"input":qi(s),Yu(s,o,!0);break;case"textarea":qi(s),Qu(s);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(s.onclick=Ko)}s=i,t.updateQueue=s,s!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=cm(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=a.createElement(n,{is:s.is}):(e=a.createElement(n),n==="select"&&(a=e,s.multiple?a.multiple=!0:s.size&&(a.size=s.size))):e=a.createElementNS(e,n),e[Yt]=t,e[di]=s,Rh(e,t,!1,!1),t.stateNode=e;e:{switch(a=Sc(n,s),n){case"dialog":je("cancel",e),je("close",e),i=s;break;case"iframe":case"object":case"embed":je("load",e),i=s;break;case"video":case"audio":for(i=0;i<Ds.length;i++)je(Ds[i],e);i=s;break;case"source":je("error",e),i=s;break;case"img":case"image":case"link":je("error",e),je("load",e),i=s;break;case"details":je("toggle",e),i=s;break;case"input":Ku(e,s),i=jc(e,s),je("invalid",e);break;case"option":i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=Se({},s,{value:void 0}),je("invalid",e);break;case"textarea":Gu(e,s),i=bc(e,s),je("invalid",e);break;default:i=s}kc(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var d=l[o];o==="style"?fm(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&dm(e,d)):o==="children"?typeof d=="string"?(n!=="textarea"||d!=="")&&ti(e,d):typeof d=="number"&&ti(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ei.hasOwnProperty(o)?d!=null&&o==="onScroll"&&je("scroll",e):d!=null&&Dd(e,o,d,a))}switch(n){case"input":qi(e),Yu(e,s,!1);break;case"textarea":qi(e),Qu(e);break;case"option":s.value!=null&&e.setAttribute("value",""+Wn(s.value));break;case"select":e.multiple=!!s.multiple,o=s.value,o!=null?Qr(e,!!s.multiple,o,!1):s.defaultValue!=null&&Qr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ko)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qe(t),null;case 6:if(e&&t.stateNode!=null)Fh(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(V(166));if(n=cr(fi.current),cr(Xt.current),Zi(t)){if(s=t.stateNode,n=t.memoizedProps,s[Yt]=t,(o=s.nodeValue!==n)&&(e=ht,e!==null))switch(e.tag){case 3:Ji(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ji(s.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Yt]=t,t.stateNode=s}return qe(t),null;case 13:if(Ne(we),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ce&&ut!==null&&t.mode&1&&!(t.flags&128))Zm(),ss(),t.flags|=98560,o=!1;else if(o=Zi(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(V(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(V(317));o[Yt]=t}else ss(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qe(t),o=!1}else At!==null&&(od(At),At=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?Re===0&&(Re=3):xu())),t.updateQueue!==null&&(t.flags|=4),qe(t),null);case 4:return os(),Jc(e,t),e===null&&li(t.stateNode.containerInfo),qe(t),null;case 10:return tu(t.type._context),qe(t),null;case 17:return ot(t.type)&&Yo(),qe(t),null;case 19:if(Ne(we),o=t.memoizedState,o===null)return qe(t),null;if(s=(t.flags&128)!==0,a=o.rendering,a===null)if(s)Ts(o,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ta(e),a!==null){for(t.flags|=128,Ts(o,!1),s=a.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)o=n,e=s,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xe(we,we.current&1|2),t.child}e=e.sibling}o.tail!==null&&Te()>ls&&(t.flags|=128,s=!0,Ts(o,!1),t.lanes=4194304)}else{if(!s)if(e=ta(a),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ts(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ce)return qe(t),null}else 2*Te()-o.renderingStartTime>ls&&n!==1073741824&&(t.flags|=128,s=!0,Ts(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Te(),t.sibling=null,n=we.current,xe(we,s?n&1|2:n&1),t):(qe(t),null);case 22:case 23:return gu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?dt&1073741824&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function ej(e,t){switch(Xd(t),t.tag){case 1:return ot(t.type)&&Yo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Ne(it),Ne(He),ou(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iu(t),null;case 13:if(Ne(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(we),null;case 4:return os(),null;case 10:return tu(t.type._context),null;case 22:case 23:return gu(),null;case 24:return null;default:return null}}var no=!1,Ve=!1,tj=typeof WeakSet=="function"?WeakSet:Set,J=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Ee(e,t,s)}else n.current=null}function Zc(e,t,n){try{n()}catch(s){Ee(e,t,s)}}var zf=!1;function nj(e,t){if(Dc=qo,e=zm(),Gd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var i=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,d=-1,c=0,u=0,p=e,g=null;t:for(;;){for(var N;p!==n||i!==0&&p.nodeType!==3||(l=a+i),p!==o||s!==0&&p.nodeType!==3||(d=a+s),p.nodeType===3&&(a+=p.nodeValue.length),(N=p.firstChild)!==null;)g=p,p=N;for(;;){if(p===e)break t;if(g===n&&++c===i&&(l=a),g===o&&++u===s&&(d=a),(N=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=N}n=l===-1||d===-1?null:{start:l,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lc={focusedElem:e,selectionRange:n},qo=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,w=x.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?b:Tt(t.type,b),w);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(j){Ee(t,t.return,j)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return x=zf,zf=!1,x}function Ks(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Zc(t,n,o)}i=i.next}while(i!==s)}}function Ia(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function ed(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dh(e){var t=e.alternate;t!==null&&(e.alternate=null,Dh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[di],delete t[zc],delete t[By],delete t[My])),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 Lh(e){return e.tag===5||e.tag===3||e.tag===4}function $f(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function td(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ko));else if(s!==4&&(e=e.child,e!==null))for(td(e,t,n),e=e.sibling;e!==null;)td(e,t,n),e=e.sibling}function nd(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(nd(e,t,n),e=e.sibling;e!==null;)nd(e,t,n),e=e.sibling}var ze=null,Ot=!1;function yn(e,t,n){for(n=n.child;n!==null;)Bh(e,t,n),n=n.sibling}function Bh(e,t,n){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Sa,n)}catch{}switch(n.tag){case 5:Ve||Wr(n,t);case 6:var s=ze,i=Ot;ze=null,yn(e,t,n),ze=s,Ot=i,ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?Wl(e.parentNode,n):e.nodeType===1&&Wl(e,n),ii(e)):Wl(ze,n.stateNode));break;case 4:s=ze,i=Ot,ze=n.stateNode.containerInfo,Ot=!0,yn(e,t,n),ze=s,Ot=i;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Zc(n,t,a),i=i.next}while(i!==s)}yn(e,t,n);break;case 1:if(!Ve&&(Wr(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){Ee(n,t,l)}yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:n.mode&1?(Ve=(s=Ve)||n.memoizedState!==null,yn(e,t,n),Ve=s):yn(e,t,n);break;default:yn(e,t,n)}}function Wf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tj),t.forEach(function(s){var i=uj.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var i=n[s];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:ze=l.stateNode,Ot=!1;break e;case 3:ze=l.stateNode.containerInfo,Ot=!0;break e;case 4:ze=l.stateNode.containerInfo,Ot=!0;break e}l=l.return}if(ze===null)throw Error(V(160));Bh(o,a,i),ze=null,Ot=!1;var d=i.alternate;d!==null&&(d.return=null),i.return=null}catch(c){Ee(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mh(t,e),t=t.sibling}function Mh(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Vt(e),s&4){try{Ks(3,e,e.return),Ia(3,e)}catch(b){Ee(e,e.return,b)}try{Ks(5,e,e.return)}catch(b){Ee(e,e.return,b)}}break;case 1:_t(t,e),Vt(e),s&512&&n!==null&&Wr(n,n.return);break;case 5:if(_t(t,e),Vt(e),s&512&&n!==null&&Wr(n,n.return),e.flags&32){var i=e.stateNode;try{ti(i,"")}catch(b){Ee(e,e.return,b)}}if(s&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&am(i,o),Sc(l,a);var c=Sc(l,o);for(a=0;a<d.length;a+=2){var u=d[a],p=d[a+1];u==="style"?fm(i,p):u==="dangerouslySetInnerHTML"?dm(i,p):u==="children"?ti(i,p):Dd(i,u,p,c)}switch(l){case"input":Nc(i,o);break;case"textarea":lm(i,o);break;case"select":var g=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var N=o.value;N!=null?Qr(i,!!o.multiple,N,!1):g!==!!o.multiple&&(o.defaultValue!=null?Qr(i,!!o.multiple,o.defaultValue,!0):Qr(i,!!o.multiple,o.multiple?[]:"",!1))}i[di]=o}catch(b){Ee(e,e.return,b)}}break;case 6:if(_t(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(V(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(b){Ee(e,e.return,b)}}break;case 3:if(_t(t,e),Vt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(b){Ee(e,e.return,b)}break;case 4:_t(t,e),Vt(e);break;case 13:_t(t,e),Vt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(hu=Te())),s&4&&Wf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(c=Ve)||u,_t(t,e),Ve=c):_t(t,e),Vt(e),s&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(J=e,u=e.child;u!==null;){for(p=J=u;J!==null;){switch(g=J,N=g.child,g.tag){case 0:case 11:case 14:case 15:Ks(4,g,g.return);break;case 1:Wr(g,g.return);var x=g.stateNode;if(typeof x.componentWillUnmount=="function"){s=g,n=g.return;try{t=s,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Ee(s,n,b)}}break;case 5:Wr(g,g.return);break;case 22:if(g.memoizedState!==null){qf(p);continue}}N!==null?(N.return=g,J=N):qf(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{i=p.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,d=p.memoizedProps.style,a=d!=null&&d.hasOwnProperty("display")?d.display:null,l.style.display=um("display",a))}catch(b){Ee(e,e.return,b)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Ee(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:_t(t,e),Vt(e),s&4&&Wf(e);break;case 21:break;default:_t(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lh(n)){var s=n;break e}n=n.return}throw Error(V(160))}switch(s.tag){case 5:var i=s.stateNode;s.flags&32&&(ti(i,""),s.flags&=-33);var o=$f(e);nd(e,o,i);break;case 3:case 4:var a=s.stateNode.containerInfo,l=$f(e);td(e,l,a);break;default:throw Error(V(161))}}catch(d){Ee(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function rj(e,t,n){J=e,zh(e)}function zh(e,t,n){for(var s=(e.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&s){var a=i.memoizedState!==null||no;if(!a){var l=i.alternate,d=l!==null&&l.memoizedState!==null||Ve;l=no;var c=Ve;if(no=a,(Ve=d)&&!c)for(J=i;J!==null;)a=J,d=a.child,a.tag===22&&a.memoizedState!==null?Vf(i):d!==null?(d.return=a,J=d):Vf(i);for(;o!==null;)J=o,zh(o),o=o.sibling;J=i,no=l,Ve=c}Uf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,J=o):Uf(e)}}function Uf(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||Ia(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!Ve)if(n===null)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tt(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ef(t,o,s);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ef(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&n.focus();break;case"img":d.src&&(n.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&ii(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Ve||t.flags&512&&ed(t)}catch(g){Ee(t,t.return,g)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function qf(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function Vf(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ia(4,t)}catch(d){Ee(t,n,d)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var i=t.return;try{s.componentDidMount()}catch(d){Ee(t,i,d)}}var o=t.return;try{ed(t)}catch(d){Ee(t,o,d)}break;case 5:var a=t.return;try{ed(t)}catch(d){Ee(t,a,d)}}}catch(d){Ee(t,t.return,d)}if(t===e){J=null;break}var l=t.sibling;if(l!==null){l.return=t.return,J=l;break}J=t.return}}var sj=Math.ceil,sa=mn.ReactCurrentDispatcher,pu=mn.ReactCurrentOwner,St=mn.ReactCurrentBatchConfig,pe=0,De=null,Oe=null,$e=0,dt=0,Ur=Hn(0),Re=0,vi=null,jr=0,Fa=0,mu=0,Ys=null,rt=null,hu=0,ls=1/0,tn=null,ia=!1,rd=null,Bn=null,ro=!1,Tn=null,oa=0,Gs=0,sd=null,No=-1,Co=0;function Xe(){return pe&6?Te():No!==-1?No:No=Te()}function Mn(e){return e.mode&1?pe&2&&$e!==0?$e&-$e:$y.transition!==null?(Co===0&&(Co=wm()),Co):(e=ve,e!==0||(e=window.event,e=e===void 0?16:Om(e.type)),e):1}function Ft(e,t,n,s){if(50<Gs)throw Gs=0,sd=null,Error(V(185));Si(e,n,s),(!(pe&2)||e!==De)&&(e===De&&(!(pe&2)&&(Fa|=n),Re===4&&Pn(e,$e)),at(e,s),n===1&&pe===0&&!(t.mode&1)&&(ls=Te()+500,Oa&&Kn()))}function at(e,t){var n=e.callbackNode;$x(e,t);var s=Uo(e,e===De?$e:0);if(s===0)n!==null&&Zu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Zu(n),t===1)e.tag===0?zy(Hf.bind(null,e)):Qm(Hf.bind(null,e)),Dy(function(){!(pe&6)&&Kn()}),n=null;else{switch(km(s)){case 1:n=$d;break;case 4:n=Cm;break;case 16:n=Wo;break;case 536870912:n=bm;break;default:n=Wo}n=Yh(n,$h.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $h(e,t){if(No=-1,Co=0,pe&6)throw Error(V(327));var n=e.callbackNode;if(ts()&&e.callbackNode!==n)return null;var s=Uo(e,e===De?$e:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=aa(e,s);else{t=s;var i=pe;pe|=2;var o=Uh();(De!==e||$e!==t)&&(tn=null,ls=Te()+500,ur(e,t));do try{aj();break}catch(l){Wh(e,l)}while(!0);eu(),sa.current=o,pe=i,Oe!==null?t=0:(De=null,$e=0,t=Re)}if(t!==0){if(t===2&&(i=Oc(e),i!==0&&(s=i,t=id(e,i))),t===1)throw n=vi,ur(e,0),Pn(e,s),at(e,Te()),n;if(t===6)Pn(e,s);else{if(i=e.current.alternate,!(s&30)&&!ij(i)&&(t=aa(e,s),t===2&&(o=Oc(e),o!==0&&(s=o,t=id(e,o))),t===1))throw n=vi,ur(e,0),Pn(e,s),at(e,Te()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(V(345));case 2:nr(e,rt,tn);break;case 3:if(Pn(e,s),(s&130023424)===s&&(t=hu+500-Te(),10<t)){if(Uo(e,0)!==0)break;if(i=e.suspendedLanes,(i&s)!==s){Xe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Mc(nr.bind(null,e,rt,tn),t);break}nr(e,rt,tn);break;case 4:if(Pn(e,s),(s&4194240)===s)break;for(t=e.eventTimes,i=-1;0<s;){var a=31-It(s);o=1<<a,a=t[a],a>i&&(i=a),s&=~o}if(s=i,s=Te()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*sj(s/1960))-s,10<s){e.timeoutHandle=Mc(nr.bind(null,e,rt,tn),s);break}nr(e,rt,tn);break;case 5:nr(e,rt,tn);break;default:throw Error(V(329))}}}return at(e,Te()),e.callbackNode===n?$h.bind(null,e):null}function id(e,t){var n=Ys;return e.current.memoizedState.isDehydrated&&(ur(e,t).flags|=256),e=aa(e,t),e!==2&&(t=rt,rt=n,t!==null&&od(t)),e}function od(e){rt===null?rt=e:rt.push.apply(rt,e)}function ij(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var i=n[s],o=i.getSnapshot;i=i.value;try{if(!Bt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t){for(t&=~mu,t&=~Fa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),s=1<<n;e[n]=-1,t&=~s}}function Hf(e){if(pe&6)throw Error(V(327));ts();var t=Uo(e,0);if(!(t&1))return at(e,Te()),null;var n=aa(e,t);if(e.tag!==0&&n===2){var s=Oc(e);s!==0&&(t=s,n=id(e,s))}if(n===1)throw n=vi,ur(e,0),Pn(e,t),at(e,Te()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,nr(e,rt,tn),at(e,Te()),null}function vu(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(ls=Te()+500,Oa&&Kn())}}function Nr(e){Tn!==null&&Tn.tag===0&&!(pe&6)&&ts();var t=pe;pe|=1;var n=St.transition,s=ve;try{if(St.transition=null,ve=1,e)return e()}finally{ve=s,St.transition=n,pe=t,!(pe&6)&&Kn()}}function gu(){dt=Ur.current,Ne(Ur)}function ur(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fy(n)),Oe!==null)for(n=Oe.return;n!==null;){var s=n;switch(Xd(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Yo();break;case 3:os(),Ne(it),Ne(He),ou();break;case 5:iu(s);break;case 4:os();break;case 13:Ne(we);break;case 19:Ne(we);break;case 10:tu(s.type._context);break;case 22:case 23:gu()}n=n.return}if(De=e,Oe=e=zn(e.current,null),$e=dt=t,Re=0,vi=null,mu=Fa=jr=0,rt=Ys=null,lr!==null){for(t=0;t<lr.length;t++)if(n=lr[t],s=n.interleaved,s!==null){n.interleaved=null;var i=s.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,s.next=a}n.pending=s}lr=null}return e}function Wh(e,t){do{var n=Oe;try{if(eu(),xo.current=ra,na){for(var s=ke.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}na=!1}if(yr=0,Fe=Ae=ke=null,Hs=!1,pi=0,pu.current=null,n===null||n.return===null){Re=1,vi=t,Oe=null;break}e:{var o=e,a=n.return,l=n,d=t;if(t=$e,l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var c=d,u=l,p=u.tag;if(!(u.mode&1)&&(p===0||p===11||p===15)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var N=Rf(a);if(N!==null){N.flags&=-257,If(N,a,l,o,t),N.mode&1&&Af(o,c,t),t=N,d=c;var x=t.updateQueue;if(x===null){var b=new Set;b.add(d),t.updateQueue=b}else x.add(d);break e}else{if(!(t&1)){Af(o,c,t),xu();break e}d=Error(V(426))}}else if(Ce&&l.mode&1){var w=Rf(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),If(w,a,l,o,t),Jd(as(d,l));break e}}o=d=as(d,l),Re!==4&&(Re=2),Ys===null?Ys=[o]:Ys.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=kh(o,d,t);Sf(o,m);break e;case 1:l=d;var v=o.type,h=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Bn===null||!Bn.has(h)))){o.flags|=65536,t&=-t,o.lanes|=t;var j=Sh(o,l,t);Sf(o,j);break e}}o=o.return}while(o!==null)}Vh(n)}catch(P){t=P,Oe===n&&n!==null&&(Oe=n=n.return);continue}break}while(!0)}function Uh(){var e=sa.current;return sa.current=ra,e===null?ra:e}function xu(){(Re===0||Re===3||Re===2)&&(Re=4),De===null||!(jr&268435455)&&!(Fa&268435455)||Pn(De,$e)}function aa(e,t){var n=pe;pe|=2;var s=Uh();(De!==e||$e!==t)&&(tn=null,ur(e,t));do try{oj();break}catch(i){Wh(e,i)}while(!0);if(eu(),pe=n,sa.current=s,Oe!==null)throw Error(V(261));return De=null,$e=0,Re}function oj(){for(;Oe!==null;)qh(Oe)}function aj(){for(;Oe!==null&&!Ax();)qh(Oe)}function qh(e){var t=Kh(e.alternate,e,dt);e.memoizedProps=e.pendingProps,t===null?Vh(e):Oe=t,pu.current=null}function Vh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ej(n,t),n!==null){n.flags&=32767,Oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Oe=null;return}}else if(n=Zy(n,t,dt),n!==null){Oe=n;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);Re===0&&(Re=5)}function nr(e,t,n){var s=ve,i=St.transition;try{St.transition=null,ve=1,lj(e,t,n,s)}finally{St.transition=i,ve=s}return null}function lj(e,t,n,s){do ts();while(Tn!==null);if(pe&6)throw Error(V(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Wx(e,o),e===De&&(Oe=De=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ro||(ro=!0,Yh(Wo,function(){return ts(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=St.transition,St.transition=null;var a=ve;ve=1;var l=pe;pe|=4,pu.current=null,nj(e,n),Mh(n,e),Py(Lc),qo=!!Dc,Lc=Dc=null,e.current=n,rj(n),Rx(),pe=l,ve=a,St.transition=o}else e.current=n;if(ro&&(ro=!1,Tn=e,oa=i),o=e.pendingLanes,o===0&&(Bn=null),Dx(n.stateNode),at(e,Te()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],s(i.value,{componentStack:i.stack,digest:i.digest});if(ia)throw ia=!1,e=rd,rd=null,e;return oa&1&&e.tag!==0&&ts(),o=e.pendingLanes,o&1?e===sd?Gs++:(Gs=0,sd=e):Gs=0,Kn(),null}function ts(){if(Tn!==null){var e=km(oa),t=St.transition,n=ve;try{if(St.transition=null,ve=16>e?16:e,Tn===null)var s=!1;else{if(e=Tn,Tn=null,oa=0,pe&6)throw Error(V(331));var i=pe;for(pe|=4,J=e.current;J!==null;){var o=J,a=o.child;if(J.flags&16){var l=o.deletions;if(l!==null){for(var d=0;d<l.length;d++){var c=l[d];for(J=c;J!==null;){var u=J;switch(u.tag){case 0:case 11:case 15:Ks(8,u,o)}var p=u.child;if(p!==null)p.return=u,J=p;else for(;J!==null;){u=J;var g=u.sibling,N=u.return;if(Dh(u),u===c){J=null;break}if(g!==null){g.return=N,J=g;break}J=N}}}var x=o.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}J=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,J=a;else e:for(;J!==null;){if(o=J,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ks(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,J=m;break e}J=o.return}}var v=e.current;for(J=v;J!==null;){a=J;var h=a.child;if(a.subtreeFlags&2064&&h!==null)h.return=a,J=h;else e:for(a=v;J!==null;){if(l=J,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ia(9,l)}}catch(P){Ee(l,l.return,P)}if(l===a){J=null;break e}var j=l.sibling;if(j!==null){j.return=l.return,J=j;break e}J=l.return}}if(pe=i,Kn(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Sa,e)}catch{}s=!0}return s}finally{ve=n,St.transition=t}}return!1}function Kf(e,t,n){t=as(n,t),t=kh(e,t,1),e=Ln(e,t,1),t=Xe(),e!==null&&(Si(e,1,t),at(e,t))}function Ee(e,t,n){if(e.tag===3)Kf(e,e,n);else for(;t!==null;){if(t.tag===3){Kf(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Bn===null||!Bn.has(s))){e=as(n,e),e=Sh(t,e,1),t=Ln(t,e,1),e=Xe(),t!==null&&(Si(t,1,e),at(t,e));break}}t=t.return}}function cj(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Xe(),e.pingedLanes|=e.suspendedLanes&n,De===e&&($e&n)===n&&(Re===4||Re===3&&($e&130023424)===$e&&500>Te()-hu?ur(e,0):mu|=n),at(e,t)}function Hh(e,t){t===0&&(e.mode&1?(t=Ki,Ki<<=1,!(Ki&130023424)&&(Ki=4194304)):t=1);var n=Xe();e=dn(e,t),e!==null&&(Si(e,t,n),at(e,n))}function dj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hh(e,n)}function uj(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Hh(e,n)}var Kh;Kh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,Jy(e,t,n);st=!!(e.flags&131072)}else st=!1,Ce&&t.flags&1048576&&Xm(t,Xo,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;jo(e,t),e=t.pendingProps;var i=rs(t,He.current);es(t,n),i=lu(null,t,s,e,i,n);var o=cu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(s)?(o=!0,Go(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ru(t),i.updater=Ra,t.stateNode=i,i._reactInternals=t,Hc(t,s,e,n),t=Gc(null,t,s,!0,o,n)):(t.tag=0,Ce&&o&&Qd(t),Ge(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(jo(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=pj(s),e=Tt(s,e),i){case 0:t=Yc(null,t,s,e,n);break e;case 1:t=Lf(null,t,s,e,n);break e;case 11:t=Ff(null,t,s,e,n);break e;case 14:t=Df(null,t,s,Tt(s.type,e),n);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Tt(s,i),Yc(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Tt(s,i),Lf(e,t,s,i,n);case 3:e:{if(Th(t),e===null)throw Error(V(387));s=t.pendingProps,o=t.memoizedState,i=o.element,rh(e,t),ea(t,s,null,n);var a=t.memoizedState;if(s=a.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=as(Error(V(423)),t),t=Bf(e,t,s,n,i);break e}else if(s!==i){i=as(Error(V(424)),t),t=Bf(e,t,s,n,i);break e}else for(ut=Dn(t.stateNode.containerInfo.firstChild),ht=t,Ce=!0,At=null,n=th(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ss(),s===i){t=un(e,t,n);break e}Ge(e,t,s,n)}t=t.child}return t;case 5:return sh(t),e===null&&Uc(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Bc(s,i)?a=null:o!==null&&Bc(s,o)&&(t.flags|=32),_h(e,t),Ge(e,t,a,n),t.child;case 6:return e===null&&Uc(t),null;case 13:return Oh(e,t,n);case 4:return su(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=is(t,null,s,n):Ge(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Tt(s,i),Ff(e,t,s,i,n);case 7:return Ge(e,t,t.pendingProps,n),t.child;case 8:return Ge(e,t,t.pendingProps.children,n),t.child;case 12:return Ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,xe(Jo,s._currentValue),s._currentValue=a,o!==null)if(Bt(o.value,a)){if(o.children===i.children&&!it.current){t=un(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(o.tag===1){d=an(-1,n&-n),d.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?d.next=d:(d.next=u.next,u.next=d),c.pending=d}}o.lanes|=n,d=o.alternate,d!==null&&(d.lanes|=n),qc(o.return,n,t),l.lanes|=n;break}d=d.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),qc(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,es(t,n),i=Et(i),s=s(i),t.flags|=1,Ge(e,t,s,n),t.child;case 14:return s=t.type,i=Tt(s,t.pendingProps),i=Tt(s.type,i),Df(e,t,s,i,n);case 15:return Eh(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:Tt(s,i),jo(e,t),t.tag=1,ot(s)?(e=!0,Go(t)):e=!1,es(t,n),wh(t,s,i),Hc(t,s,i,n),Gc(null,t,s,!0,e,n);case 19:return Ah(e,t,n);case 22:return Ph(e,t,n)}throw Error(V(156,t.tag))};function Yh(e,t){return Nm(e,t)}function fj(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,s){return new fj(e,t,n,s)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pj(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Bd)return 11;if(e===Md)return 14}return 2}function zn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bo(e,t,n,s,i,o){var a=2;if(s=e,typeof e=="function")yu(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rr:return fr(n.children,i,o,t);case Ld:a=8,i|=8;break;case vc:return e=kt(12,n,t,i|2),e.elementType=vc,e.lanes=o,e;case gc:return e=kt(13,n,t,i),e.elementType=gc,e.lanes=o,e;case xc:return e=kt(19,n,t,i),e.elementType=xc,e.lanes=o,e;case sm:return Da(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nm:a=10;break e;case rm:a=9;break e;case Bd:a=11;break e;case Md:a=14;break e;case Nn:a=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=kt(a,n,t,i),t.elementType=e,t.type=s,t.lanes=o,t}function fr(e,t,n,s){return e=kt(7,e,s,t),e.lanes=n,e}function Da(e,t,n,s){return e=kt(22,e,s,t),e.elementType=sm,e.lanes=n,e.stateNode={isHidden:!1},e}function Ql(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function mj(e,t,n,s,i){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=Ol(0),this.expirationTimes=Ol(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ol(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,s,i,o,a,l,d){return e=new mj(e,t,n,l,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=kt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ru(o),e}function hj(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ar,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function Gh(e){if(!e)return Un;e=e._reactInternals;e:{if(Sr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ot(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(ot(n))return Gm(e,n,t)}return t}function Qh(e,t,n,s,i,o,a,l,d){return e=ju(n,s,!0,e,i,o,a,l,d),e.context=Gh(null),n=e.current,s=Xe(),i=Mn(n),o=an(s,i),o.callback=t??null,Ln(n,o,i),e.current.lanes=i,Si(e,i,s),at(e,s),e}function La(e,t,n,s){var i=t.current,o=Xe(),a=Mn(i);return n=Gh(n),t.context===null?t.context=n:t.pendingContext=n,t=an(o,a),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=Ln(i,t,a),e!==null&&(Ft(e,i,a,o),go(e,i,a)),a}function la(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Yf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nu(e,t){Yf(e,t),(e=e.alternate)&&Yf(e,t)}function vj(){return null}var Xh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cu(e){this._internalRoot=e}Ba.prototype.render=Cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));La(e,t,null,null)};Ba.prototype.unmount=Cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nr(function(){La(null,e,null,null)}),t[cn]=null}};function Ba(e){this._internalRoot=e}Ba.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pm();e={blockedOn:null,target:e,priority:t};for(var n=0;n<En.length&&t!==0&&t<En[n].priority;n++);En.splice(n,0,e),n===0&&Tm(e)}};function bu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ma(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Gf(){}function gj(e,t,n,s,i){if(i){if(typeof s=="function"){var o=s;s=function(){var c=la(a);o.call(c)}}var a=Qh(t,s,e,0,null,!1,!1,"",Gf);return e._reactRootContainer=a,e[cn]=a.current,li(e.nodeType===8?e.parentNode:e),Nr(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof s=="function"){var l=s;s=function(){var c=la(d);l.call(c)}}var d=ju(e,0,!1,null,null,!1,!1,"",Gf);return e._reactRootContainer=d,e[cn]=d.current,li(e.nodeType===8?e.parentNode:e),Nr(function(){La(t,d,n,s)}),d}function za(e,t,n,s,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var d=la(a);l.call(d)}}La(t,a,e,i)}else a=gj(n,t,e,i,s);return la(a)}Sm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Fs(t.pendingLanes);n!==0&&(Wd(t,n|1),at(t,Te()),!(pe&6)&&(ls=Te()+500,Kn()))}break;case 13:Nr(function(){var s=dn(e,1);if(s!==null){var i=Xe();Ft(s,e,1,i)}}),Nu(e,1)}};Ud=function(e){if(e.tag===13){var t=dn(e,134217728);if(t!==null){var n=Xe();Ft(t,e,134217728,n)}Nu(e,134217728)}};Em=function(e){if(e.tag===13){var t=Mn(e),n=dn(e,t);if(n!==null){var s=Xe();Ft(n,e,t,s)}Nu(e,t)}};Pm=function(){return ve};_m=function(e,t){var n=ve;try{return ve=e,t()}finally{ve=n}};Pc=function(e,t,n){switch(t){case"input":if(Nc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var i=Ta(s);if(!i)throw Error(V(90));om(s),Nc(s,i)}}}break;case"textarea":lm(e,n);break;case"select":t=n.value,t!=null&&Qr(e,!!n.multiple,t,!1)}};hm=vu;vm=Nr;var xj={usingClientEntryPoint:!1,Events:[Pi,Lr,Ta,pm,mm,vu]},Os={findFiberByHostInstance:ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yj={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ym(e),e===null?null:e.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||vj,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var so=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!so.isDisabled&&so.supportsFiber)try{Sa=so.inject(yj),Qt=so}catch{}}jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xj;jt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bu(t))throw Error(V(200));return hj(e,t,null,n)};jt.createRoot=function(e,t){if(!bu(e))throw Error(V(299));var n=!1,s="",i=Xh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ju(e,1,!1,null,null,n,!1,s,i),e[cn]=t.current,li(e.nodeType===8?e.parentNode:e),new Cu(t)};jt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=ym(t),e=e===null?null:e.stateNode,e};jt.flushSync=function(e){return Nr(e)};jt.hydrate=function(e,t,n){if(!Ma(t))throw Error(V(200));return za(null,e,t,!0,n)};jt.hydrateRoot=function(e,t,n){if(!bu(e))throw Error(V(405));var s=n!=null&&n.hydratedSources||null,i=!1,o="",a=Xh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Qh(t,null,e,1,n??null,i,!1,o,a),e[cn]=t.current,li(e),s)for(e=0;e<s.length;e++)n=s[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ba(t)};jt.render=function(e,t,n){if(!Ma(t))throw Error(V(200));return za(null,e,t,!1,n)};jt.unmountComponentAtNode=function(e){if(!Ma(e))throw Error(V(40));return e._reactRootContainer?(Nr(function(){za(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1};jt.unstable_batchedUpdates=vu;jt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Ma(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return za(e,t,n,!1,s)};jt.version="18.3.1-next-f1338f8080-20240426";function Jh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jh)}catch(e){console.error(e)}}Jh(),Jp.exports=jt;var Zh=Jp.exports;const qr=wi(Zh);var ev,Qf=Zh;ev=Qf.createRoot,Qf.hydrateRoot;var tv={exports:{}},nv={};/**
* @license React
* use-sync-external-store-with-selector.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 Ti=k;function jj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nj=typeof Object.is=="function"?Object.is:jj,Cj=Ti.useSyncExternalStore,bj=Ti.useRef,wj=Ti.useEffect,kj=Ti.useMemo,Sj=Ti.useDebugValue;nv.useSyncExternalStoreWithSelector=function(e,t,n,s,i){var o=bj(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=kj(function(){function d(N){if(!c){if(c=!0,u=N,N=s(N),i!==void 0&&a.hasValue){var x=a.value;if(i(x,N))return p=x}return p=N}if(x=p,Nj(u,N))return x;var b=s(N);return i!==void 0&&i(x,b)?x:(u=N,p=b)}var c=!1,u,p,g=n===void 0?null:n;return[function(){return d(t())},g===null?void 0:function(){return d(g())}]},[t,n,s,i]);var l=Cj(e,o[0],o[1]);return wj(function(){a.hasValue=!0,a.value=l},[l]),Sj(l),l};tv.exports=nv;var Ej=tv.exports,ft="default"in mc?I:mc,Xf=Symbol.for("react-redux-context"),Jf=typeof globalThis<"u"?globalThis:{};function Pj(){if(!ft.createContext)return{};const e=Jf[Xf]??(Jf[Xf]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var qn=Pj(),_j=()=>{throw new Error("uSES not initialized!")};function wu(e=qn){return function(){return ft.useContext(e)}}var rv=wu(),sv=_j,Tj=e=>{sv=e},Oj=(e,t)=>e===t;function Aj(e=qn){const t=e===qn?rv:wu(e),n=(s,i={})=>{const{equalityFn:o=Oj,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:d,getServerState:c,stabilityCheck:u,identityFunctionCheck:p}=t();ft.useRef(!0);const g=ft.useCallback({[s.name](x){return s(x)}}[s.name],[s,u,a.stabilityCheck]),N=sv(d.addNestedSub,l.getState,c||l.getState,g,o);return ft.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var _e=Aj();function Rj(e){e()}function Ij(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Rj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let s=e;for(;s;)n.push(s),s=s.next;return n},subscribe(n){let s=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!s||e===null||(s=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Zf={notify(){},get:()=>[]};function Fj(e,t){let n,s=Zf,i=0,o=!1;function a(b){u();const w=s.subscribe(b);let m=!1;return()=>{m||(m=!0,w(),p())}}function l(){s.notify()}function d(){x.onStateChange&&x.onStateChange()}function c(){return o}function u(){i++,n||(n=e.subscribe(d),s=Ij())}function p(){i--,n&&i===0&&(n(),n=void 0,s.clear(),s=Zf)}function g(){o||(o=!0,u())}function N(){o&&(o=!1,p())}const x={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:c,trySubscribe:g,tryUnsubscribe:N,getListeners:()=>s};return x}var Dj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lj=typeof navigator<"u"&&navigator.product==="ReactNative",Bj=Dj||Lj?ft.useLayoutEffect:ft.useEffect;function Mj({store:e,context:t,children:n,serverState:s,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=ft.useMemo(()=>{const c=Fj(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,s,i,o]),l=ft.useMemo(()=>e.getState(),[e]);Bj(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,l]);const d=t||qn;return ft.createElement(d.Provider,{value:a},n)}var zj=Mj;function iv(e=qn){const t=e===qn?rv:wu(e),n=()=>{const{store:s}=t();return s};return Object.assign(n,{withTypes:()=>n}),n}var $j=iv();function Wj(e=qn){const t=e===qn?$j:iv(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Ke=Wj();Tj(Ej.useSyncExternalStoreWithSelector);function Me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Uj=typeof Symbol=="function"&&Symbol.observable||"@@observable",ep=Uj,Jl=()=>Math.random().toString(36).substring(7).split("").join("."),qj={INIT:`@@redux/INIT${Jl()}`,REPLACE:`@@redux/REPLACE${Jl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Jl()}`},ca=qj;function ku(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function ov(e,t,n){if(typeof e!="function")throw new Error(Me(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Me(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Me(1));return n(ov)(e,t)}let s=e,i=t,o=new Map,a=o,l=0,d=!1;function c(){a===o&&(a=new Map,o.forEach((w,m)=>{a.set(m,w)}))}function u(){if(d)throw new Error(Me(3));return i}function p(w){if(typeof w!="function")throw new Error(Me(4));if(d)throw new Error(Me(5));let m=!0;c();const v=l++;return a.set(v,w),function(){if(m){if(d)throw new Error(Me(6));m=!1,c(),a.delete(v),o=null}}}function g(w){if(!ku(w))throw new Error(Me(7));if(typeof w.type>"u")throw new Error(Me(8));if(typeof w.type!="string")throw new Error(Me(17));if(d)throw new Error(Me(9));try{d=!0,i=s(i,w)}finally{d=!1}return(o=a).forEach(v=>{v()}),w}function N(w){if(typeof w!="function")throw new Error(Me(10));s=w,g({type:ca.REPLACE})}function x(){const w=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Me(11));function v(){const j=m;j.next&&j.next(u())}return v(),{unsubscribe:w(v)}},[ep](){return this}}}return g({type:ca.INIT}),{dispatch:g,subscribe:p,getState:u,replaceReducer:N,[ep]:x}}function Vj(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ca.INIT})>"u")throw new Error(Me(12));if(typeof n(void 0,{type:ca.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Me(13))})}function Hj(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const s=Object.keys(n);let i;try{Vj(n)}catch(o){i=o}return function(a={},l){if(i)throw i;let d=!1;const c={};for(let u=0;u<s.length;u++){const p=s[u],g=n[p],N=a[p],x=g(N,l);if(typeof x>"u")throw l&&l.type,new Error(Me(14));c[p]=x,d=d||x!==N}return d=d||s.length!==Object.keys(a).length,d?c:a}}function da(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Kj(...e){return t=>(n,s)=>{const i=t(n,s);let o=()=>{throw new Error(Me(15))};const a={getState:i.getState,dispatch:(d,...c)=>o(d,...c)},l=e.map(d=>d(a));return o=da(...l)(i.dispatch),{...i,dispatch:o}}}function Yj(e){return ku(e)&&"type"in e&&typeof e.type=="string"}var av=Symbol.for("immer-nothing"),tp=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state");function Rt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cs=Object.getPrototypeOf;function Cr(e){return!!e&&!!e[xt]}function fn(e){var t;return e?lv(e)||Array.isArray(e)||!!e[tp]||!!((t=e.constructor)!=null&&t[tp])||Wa(e)||Ua(e):!1}var Gj=Object.prototype.constructor.toString();function lv(e){if(!e||typeof e!="object")return!1;const t=cs(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Gj}function ua(e,t){$a(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,s)=>t(s,n,e))}function $a(e){const t=e[xt];return t?t.type_:Array.isArray(e)?1:Wa(e)?2:Ua(e)?3:0}function ad(e,t){return $a(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cv(e,t,n){const s=$a(e);s===2?e.set(t,n):s===3?e.add(n):e[t]=n}function Qj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Wa(e){return e instanceof Map}function Ua(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function ld(e,t){if(Wa(e))return new Map(e);if(Ua(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lv(e);if(t===!0||t==="class_only"&&!n){const s=Object.getOwnPropertyDescriptors(e);delete s[xt];let i=Reflect.ownKeys(s);for(let o=0;o<i.length;o++){const a=i[o],l=s[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(s[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(cs(e),s)}else{const s=cs(e);if(s!==null&&n)return{...e};const i=Object.create(s);return Object.assign(i,e)}}function Su(e,t=!1){return qa(e)||Cr(e)||!fn(e)||($a(e)>1&&(e.set=e.add=e.clear=e.delete=Xj),Object.freeze(e),t&&Object.entries(e).forEach(([n,s])=>Su(s,!0))),e}function Xj(){Rt(2)}function qa(e){return Object.isFrozen(e)}var Jj={};function br(e){const t=Jj[e];return t||Rt(0,e),t}var gi;function dv(){return gi}function Zj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function np(e,t){t&&(br("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cd(e){dd(e),e.drafts_.forEach(e1),e.drafts_=null}function dd(e){e===gi&&(gi=e.parent_)}function rp(e){return gi=Zj(gi,e)}function e1(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[xt].modified_&&(cd(t),Rt(4)),fn(e)&&(e=fa(t,e),t.parent_||pa(t,e)),t.patches_&&br("Patches").generateReplacementPatches_(n[xt].base_,e,t.patches_,t.inversePatches_)):e=fa(t,n,[]),cd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==av?e:void 0}function fa(e,t,n){if(qa(t))return t;const s=t[xt];if(!s)return ua(t,(i,o)=>ip(e,s,t,i,o,n)),t;if(s.scope_!==e)return t;if(!s.modified_)return pa(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const i=s.copy_;let o=i,a=!1;s.type_===3&&(o=new Set(i),i.clear(),a=!0),ua(o,(l,d)=>ip(e,s,i,l,d,n,a)),pa(e,i,!1),n&&e.patches_&&br("Patches").generatePatches_(s,n,e.patches_,e.inversePatches_)}return s.copy_}function ip(e,t,n,s,i,o,a){if(Cr(i)){const l=o&&t&&t.type_!==3&&!ad(t.assigned_,s)?o.concat(s):void 0,d=fa(e,i,l);if(cv(n,s,d),Cr(d))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(fn(i)&&!qa(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fa(e,i),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,s)&&pa(e,i)}}function pa(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Su(t,n)}function t1(e,t){const n=Array.isArray(e),s={type_:n?1:0,scope_:t?t.scope_:dv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=s,o=Eu;n&&(i=[s],o=xi);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return s.draft_=l,s.revoke_=a,l}var Eu={get(e,t){if(t===xt)return e;const n=rr(e);if(!ad(n,t))return n1(e,n,t);const s=n[t];return e.finalized_||!fn(s)?s:s===Zl(e.base_,t)?(ec(e),e.copy_[t]=fd(s,e)):s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,n){const s=uv(rr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,n),!0;if(!e.modified_){const i=Zl(rr(e),t),o=i==null?void 0:i[xt];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Qj(n,i)&&(n!==void 0||ad(e.base_,t)))return!0;ec(e),ud(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Zl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,ec(e),ud(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=rr(e),s=Reflect.getOwnPropertyDescriptor(n,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:n[t]}},defineProperty(){Rt(11)},getPrototypeOf(e){return cs(e.base_)},setPrototypeOf(){Rt(12)}},xi={};ua(Eu,(e,t)=>{xi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});xi.deleteProperty=function(e,t){return xi.set.call(this,e,t,void 0)};xi.set=function(e,t,n){return Eu.set.call(this,e[0],t,n,e[0])};function Zl(e,t){const n=e[xt];return(n?rr(n):e)[t]}function n1(e,t,n){var i;const s=uv(t,n);return s?"value"in s?s.value:(i=s.get)==null?void 0:i.call(e.draft_):void 0}function uv(e,t){if(!(t in e))return;let n=cs(e);for(;n;){const s=Object.getOwnPropertyDescriptor(n,t);if(s)return s;n=cs(n)}}function ud(e){e.modified_||(e.modified_=!0,e.parent_&&ud(e.parent_))}function ec(e){e.copy_||(e.copy_=ld(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var r1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,s)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(d=o,...c){return a.produce(d,u=>n.call(this,u,...c))}}typeof n!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7);let i;if(fn(t)){const o=rp(this),a=fd(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?cd(o):dd(o)}return np(o,s),sp(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===av&&(i=void 0),this.autoFreeze_&&Su(i,!0),s){const o=[],a=[];br("Patches").generateReplacementPatches_(t,i,o,a),s(o,a)}return i}else Rt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let s,i;return[this.produce(t,n,(a,l)=>{s=a,i=l}),s,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fn(e)||Rt(8),Cr(e)&&(e=s1(e));const t=rp(this),n=fd(e,void 0);return n[xt].isManual_=!0,dd(t),n}finishDraft(e,t){const n=e&&e[xt];(!n||!n.isManual_)&&Rt(9);const{scope_:s}=n;return np(s,t),sp(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const s=br("Patches").applyPatches_;return Cr(e)?s(e,t):this.produce(e,i=>s(i,t))}};function fd(e,t){const n=Wa(e)?br("MapSet").proxyMap_(e,t):Ua(e)?br("MapSet").proxySet_(e,t):t1(e,t);return(t?t.scope_:dv()).drafts_.push(n),n}function s1(e){return Cr(e)||Rt(10,e),fv(e)}function fv(e){if(!fn(e)||qa(e))return e;const t=e[xt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ld(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ld(e,!0);return ua(n,(s,i)=>{cv(n,s,fv(i))}),t&&(t.finalized_=!1),n}var yt=new r1,pv=yt.produce;yt.produceWithPatches.bind(yt);yt.setAutoFreeze.bind(yt);yt.setUseStrictShallowCopy.bind(yt);yt.applyPatches.bind(yt);yt.createDraft.bind(yt);yt.finishDraft.bind(yt);function mv(e){return({dispatch:n,getState:s})=>i=>o=>typeof o=="function"?o(n,s,e):i(o)}var i1=mv(),o1=mv,a1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?da:da.apply(null,arguments)},l1=e=>e&&typeof e.match=="function";function Qs(e,t){function n(...s){if(t){let i=t(...s);if(!i)throw new Error(Dt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:s[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=s=>Yj(s)&&s.type===e,n}var hv=class Ls extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ls.prototype)}static get[Symbol.species](){return Ls}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ls(...t[0].concat(this)):new Ls(...t.concat(this))}};function op(e){return fn(e)?pv(e,()=>{}):e}function ap(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Dt(10));const s=n.insert(t,e);return e.set(t,s),s}function c1(e){return typeof e=="boolean"}var d1=()=>function(t){const{thunk:n=!0,immutableCheck:s=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new hv;return n&&(c1(n)?a.push(i1):a.push(o1(n.extraArgument))),a},u1="RTK_autoBatch",vv=e=>t=>{setTimeout(t,e)},f1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vv(10),p1=(e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let i=!0,o=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?f1:e.type==="callback"?e.queueNotification:vv(e.timeout),c=()=>{a=!1,o&&(o=!1,l.forEach(u=>u()))};return Object.assign({},s,{subscribe(u){const p=()=>i&&u(),g=s.subscribe(p);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){var p;try{return i=!((p=u==null?void 0:u.meta)!=null&&p[u1]),o=!i,o&&(a||(a=!0,d(c))),s.dispatch(u)}finally{i=!0}}})},m1=e=>function(n){const{autoBatch:s=!0}=n??{};let i=new hv(e);return s&&i.push(p1(typeof s=="object"?s:void 0)),i};function h1(e){const t=d1(),{reducer:n=void 0,middleware:s,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(ku(n))l=Hj(n);else throw new Error(Dt(1));let d;typeof s=="function"?d=s(t):d=t();let c=da;i&&(c=a1({trace:!1,...typeof i=="object"&&i}));const u=Kj(...d),p=m1(u);let g=typeof a=="function"?a(p):p();const N=c(...g);return ov(l,o,N)}function gv(e){const t={},n=[];let s;const i={addCase(o,a){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(Dt(28));if(l in t)throw new Error(Dt(29));return t[l]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return s=o,i}};return e(i),[t,n,s]}function v1(e){return typeof e=="function"}function g1(e,t){let[n,s,i]=gv(t),o;if(v1(e))o=()=>op(e());else{const l=op(e);o=()=>l}function a(l=o(),d){let c=[n[d.type],...s.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[i]),c.reduce((u,p)=>{if(p)if(Cr(u)){const N=p(u,d);return N===void 0?u:N}else{if(fn(u))return pv(u,g=>p(g,d));{const g=p(u,d);if(g===void 0){if(u===null)return u;throw new Error(Dt(9))}return g}}return u},l)}return a.getInitialState=o,a}var x1=(e,t)=>l1(e)?e.match(t):e(t);function y1(...e){return t=>e.some(n=>x1(n,t))}var j1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",N1=(e=21)=>{let t="",n=e;for(;n--;)t+=j1[Math.random()*64|0];return t},C1=["name","message","stack","code"],tc=class{constructor(e,t){kl(this,"_type");this.payload=e,this.meta=t}},lp=class{constructor(e,t){kl(this,"_type");this.payload=e,this.meta=t}},b1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of C1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},et=(()=>{function e(t,n,s){const i=Qs(t+"/fulfilled",(d,c,u,p)=>({payload:d,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Qs(t+"/pending",(d,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:d,requestStatus:"pending"}})),a=Qs(t+"/rejected",(d,c,u,p,g)=>({payload:p,error:(s&&s.serializeError||b1)(d||"Rejected"),meta:{...g||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"}}));function l(d){return(c,u,p)=>{const g=s!=null&&s.idGenerator?s.idGenerator(d):N1(),N=new AbortController;let x,b;function w(v){b=v,N.abort()}const m=async function(){var j,P;let v;try{let T=(j=s==null?void 0:s.condition)==null?void 0:j.call(s,d,{getState:u,extra:p});if(k1(T)&&(T=await T),T===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((_,L)=>{x=()=>{L({name:"AbortError",message:b||"Aborted"})},N.signal.addEventListener("abort",x)});c(o(g,d,(P=s==null?void 0:s.getPendingMeta)==null?void 0:P.call(s,{requestId:g,arg:d},{getState:u,extra:p}))),v=await Promise.race([O,Promise.resolve(n(d,{dispatch:c,getState:u,extra:p,requestId:g,signal:N.signal,abort:w,rejectWithValue:(_,L)=>new tc(_,L),fulfillWithValue:(_,L)=>new lp(_,L)})).then(_=>{if(_ instanceof tc)throw _;return _ instanceof lp?i(_.payload,g,d,_.meta):i(_,g,d)})])}catch(T){v=T instanceof tc?a(null,g,d,T.payload,T.meta):a(T,g,d)}finally{x&&N.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&a.match(v)&&v.meta.condition||c(v),v}();return Object.assign(m,{abort:w,requestId:g,arg:d,unwrap(){return m.then(w1)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,settled:y1(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function w1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function k1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var S1=Symbol.for("rtk-slice-createasyncthunk");function E1(e,t){return`${e}/${t}`}function P1({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[S1];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Dt(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers(T1()):i.reducers)||{},d=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(h,j){const P=typeof h=="string"?h:h.type;if(!P)throw new Error(Dt(12));if(P in c.sliceCaseReducersByType)throw new Error(Dt(13));return c.sliceCaseReducersByType[P]=j,u},addMatcher(h,j){return c.sliceMatchers.push({matcher:h,reducer:j}),u},exposeAction(h,j){return c.actionCreators[h]=j,u},exposeCaseReducer(h,j){return c.sliceCaseReducersByName[h]=j,u}};d.forEach(h=>{const j=l[h],P={reducerName:h,type:E1(o,h),createNotation:typeof i.reducers=="function"};A1(j)?I1(P,j,u,t):O1(P,j,u)});function p(){const[h={},j=[],P=void 0]=typeof i.extraReducers=="function"?gv(i.extraReducers):[i.extraReducers],T={...h,...c.sliceCaseReducersByType};return g1(i.initialState,O=>{for(let _ in T)O.addCase(_,T[_]);for(let _ of c.sliceMatchers)O.addMatcher(_.matcher,_.reducer);for(let _ of j)O.addMatcher(_.matcher,_.reducer);P&&O.addDefaultCase(P)})}const g=h=>h,N=new Map;let x;function b(h,j){return x||(x=p()),x(h,j)}function w(){return x||(x=p()),x.getInitialState()}function m(h,j=!1){function P(O){let _=O[h];return typeof _>"u"&&j&&(_=w()),_}function T(O=g){const _=ap(N,j,{insert:()=>new WeakMap});return ap(_,O,{insert:()=>{const L={};for(const[z,H]of Object.entries(i.selectors??{}))L[z]=_1(H,O,w,j);return L}})}return{reducerPath:h,getSelectors:T,get selectors(){return T(P)},selectSlice:P}}const v={name:o,reducer:b,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:w,...m(a),injectInto(h,{reducerPath:j,...P}={}){const T=j??a;return h.inject({reducerPath:T,reducer:b},P),{...v,...m(T,!0)}}};return v}}function _1(e,t,n,s){function i(o,...a){let l=t(o);return typeof l>"u"&&s&&(l=n()),e(l,...a)}return i.unwrapped=e,i}var Oi=P1();function T1(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function O1({type:e,reducerName:t,createNotation:n},s,i){let o,a;if("reducer"in s){if(n&&!R1(s))throw new Error(Dt(17));o=s.reducer,a=s.prepare}else o=s;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?Qs(e,a):Qs(e))}function A1(e){return e._reducerDefinitionType==="asyncThunk"}function R1(e){return e._reducerDefinitionType==="reducerWithPrepare"}function I1({type:e,reducerName:t},n,s,i){if(!i)throw new Error(Dt(18));const{payloadCreator:o,fulfilled:a,pending:l,rejected:d,settled:c,options:u}=n,p=i(e,o,u);s.exposeAction(t,p),a&&s.addCase(p.fulfilled,a),l&&s.addCase(p.pending,l),d&&s.addCase(p.rejected,d),c&&s.addMatcher(p.settled,c),s.exposeCaseReducer(t,{fulfilled:a||io,pending:l||io,rejected:d||io,settled:c||io})}function io(){}function Dt(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function xv(e,t){return function(){return e.apply(t,arguments)}}const{toString:F1}=Object.prototype,{getPrototypeOf:Pu}=Object,Va=(e=>t=>{const n=F1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mt=e=>(e=e.toLowerCase(),t=>Va(t)===e),Ha=e=>t=>typeof t===e,{isArray:ms}=Array,yi=Ha("undefined");function D1(e){return e!==null&&!yi(e)&&e.constructor!==null&&!yi(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yv=Mt("ArrayBuffer");function L1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yv(e.buffer),t}const B1=Ha("string"),vt=Ha("function"),jv=Ha("number"),Ka=e=>e!==null&&typeof e=="object",M1=e=>e===!0||e===!1,wo=e=>{if(Va(e)!=="object")return!1;const t=Pu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},z1=Mt("Date"),$1=Mt("File"),W1=Mt("Blob"),U1=Mt("FileList"),q1=e=>Ka(e)&&vt(e.pipe),V1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Va(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},H1=Mt("URLSearchParams"),[K1,Y1,G1,Q1]=["ReadableStream","Request","Response","Headers"].map(Mt),X1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,i;if(typeof e!="object"&&(e=[e]),ms(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(s=0;s<a;s++)l=o[s],t.call(null,e[l],l,e)}}function Nv(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,i;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cv=e=>!yi(e)&&e!==dr;function pd(){const{caseless:e}=Cv(this)&&this||{},t={},n=(s,i)=>{const o=e&&Nv(t,i)||i;wo(t[o])&&wo(s)?t[o]=pd(t[o],s):wo(s)?t[o]=pd({},s):ms(s)?t[o]=s.slice():t[o]=s};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&Ai(arguments[s],n);return t}const J1=(e,t,n,{allOwnKeys:s}={})=>(Ai(t,(i,o)=>{n&&vt(i)?e[o]=xv(i,n):e[o]=i},{allOwnKeys:s}),e),Z1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),e0=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},t0=(e,t,n,s)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!s||s(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Pu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},n0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},r0=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!jv(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},s0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pu(Uint8Array)),i0=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=s.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},o0=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},a0=Mt("HTMLFormElement"),l0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,i){return s.toUpperCase()+i}),cp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),c0=Mt("RegExp"),bv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ai(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(s[o]=a||i)}),Object.defineProperties(e,s)},d0=e=>{bv(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(vt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},u0=(e,t)=>{const n={},s=i=>{i.forEach(o=>{n[o]=!0})};return ms(e)?s(e):s(String(e).split(t)),n},f0=()=>{},p0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,nc="abcdefghijklmnopqrstuvwxyz",dp="0123456789",wv={DIGIT:dp,ALPHA:nc,ALPHA_DIGIT:nc+nc.toUpperCase()+dp},m0=(e=16,t=wv.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function h0(e){return!!(e&&vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const v0=e=>{const t=new Array(10),n=(s,i)=>{if(Ka(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[i]=s;const o=ms(s)?[]:{};return Ai(s,(a,l)=>{const d=n(a,i+1);!yi(d)&&(o[l]=d)}),t[i]=void 0,o}}return s};return n(e,0)},g0=Mt("AsyncFunction"),x0=e=>e&&(Ka(e)||vt(e))&&vt(e.then)&&vt(e.catch),kv=((e,t)=>e?setImmediate:t?((n,s)=>(dr.addEventListener("message",({source:i,data:o})=>{i===dr&&o===n&&s.length&&s.shift()()},!1),i=>{s.push(i),dr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(dr.postMessage)),y0=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||kv,$={isArray:ms,isArrayBuffer:yv,isBuffer:D1,isFormData:V1,isArrayBufferView:L1,isString:B1,isNumber:jv,isBoolean:M1,isObject:Ka,isPlainObject:wo,isReadableStream:K1,isRequest:Y1,isResponse:G1,isHeaders:Q1,isUndefined:yi,isDate:z1,isFile:$1,isBlob:W1,isRegExp:c0,isFunction:vt,isStream:q1,isURLSearchParams:H1,isTypedArray:s0,isFileList:U1,forEach:Ai,merge:pd,extend:J1,trim:X1,stripBOM:Z1,inherits:e0,toFlatObject:t0,kindOf:Va,kindOfTest:Mt,endsWith:n0,toArray:r0,forEachEntry:i0,matchAll:o0,isHTMLForm:a0,hasOwnProperty:cp,hasOwnProp:cp,reduceDescriptors:bv,freezeMethods:d0,toObjectSet:u0,toCamelCase:l0,noop:f0,toFiniteNumber:p0,findKey:Nv,global:dr,isContextDefined:Cv,ALPHABET:wv,generateString:m0,isSpecCompliantForm:h0,toJSONObject:v0,isAsyncFn:g0,isThenable:x0,setImmediate:kv,asap:y0};function ae(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}$.inherits(ae,Error,{toJSON:function(){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:$.toJSONObject(this.config),code:this.code,status:this.status}}});const Sv=ae.prototype,Ev={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ev[e]={value:e}});Object.defineProperties(ae,Ev);Object.defineProperty(Sv,"isAxiosError",{value:!0});ae.from=(e,t,n,s,i,o)=>{const a=Object.create(Sv);return $.toFlatObject(e,a,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),ae.call(a,e.message,t,n,s,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const j0=null;function md(e){return $.isPlainObject(e)||$.isArray(e)}function Pv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function up(e,t,n){return e?e.concat(t).map(function(i,o){return i=Pv(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function N0(e){return $.isArray(e)&&!e.some(md)}const C0=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Ya(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,w){return!$.isUndefined(w[b])});const s=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(i))throw new TypeError("visitor must be a function");function c(x){if(x===null)return"";if($.isDate(x))return x.toISOString();if(!d&&$.isBlob(x))throw new ae("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(x)||$.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function u(x,b,w){let m=x;if(x&&!w&&typeof x=="object"){if($.endsWith(b,"{}"))b=s?b:b.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&N0(x)||($.isFileList(x)||$.endsWith(b,"[]"))&&(m=$.toArray(x)))return b=Pv(b),m.forEach(function(h,j){!($.isUndefined(h)||h===null)&&t.append(a===!0?up([b],j,o):a===null?b:b+"[]",c(h))}),!1}return md(x)?!0:(t.append(up(w,b,o),c(x)),!1)}const p=[],g=Object.assign(C0,{defaultVisitor:u,convertValue:c,isVisitable:md});function N(x,b){if(!$.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+b.join("."));p.push(x),$.forEach(x,function(m,v){(!($.isUndefined(m)||m===null)&&i.call(t,m,$.isString(v)?v.trim():v,b,g))===!0&&N(m,b?b.concat(v):[v])}),p.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return N(e),t}function fp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function _u(e,t){this._pairs=[],e&&Ya(e,this,t)}const _v=_u.prototype;_v.append=function(t,n){this._pairs.push([t,n])};_v.toString=function(t){const n=t?function(s){return t.call(this,s,fp)}:fp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function b0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tv(e,t,n){if(!t)return e;const s=n&&n.encode||b0,i=n&&n.serialize;let o;if(i?o=i(t,n):o=$.isURLSearchParams(t)?t.toString():new _u(t,n).toString(s),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class pp{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Ov={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},w0=typeof URLSearchParams<"u"?URLSearchParams:_u,k0=typeof FormData<"u"?FormData:null,S0=typeof Blob<"u"?Blob:null,E0={isBrowser:!0,classes:{URLSearchParams:w0,FormData:k0,Blob:S0},protocols:["http","https","file","blob","url","data"]},Tu=typeof window<"u"&&typeof document<"u",hd=typeof navigator=="object"&&navigator||void 0,P0=Tu&&(!hd||["ReactNative","NativeScript","NS"].indexOf(hd.product)<0),_0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",T0=Tu&&window.location.href||"http://localhost",O0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tu,hasStandardBrowserEnv:P0,hasStandardBrowserWebWorkerEnv:_0,navigator:hd,origin:T0},Symbol.toStringTag,{value:"Module"})),lt={...O0,...E0};function A0(e,t){return Ya(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(n,s,i,o){return lt.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function R0(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function I0(e){const t={},n=Object.keys(e);let s;const i=n.length;let o;for(s=0;s<i;s++)o=n[s],t[o]=e[o];return t}function Av(e){function t(n,s,i,o){let a=n[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=o>=n.length;return a=!a&&$.isArray(i)?i.length:a,d?($.hasOwnProp(i,a)?i[a]=[i[a],s]:i[a]=s,!l):((!i[a]||!$.isObject(i[a]))&&(i[a]=[]),t(n,s,i[a],o)&&$.isArray(i[a])&&(i[a]=I0(i[a])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,i)=>{t(R0(s),i,n,0)}),n}return null}function F0(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ri={transitional:Ov,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",i=s.indexOf("application/json")>-1,o=$.isObject(t);if(o&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return i?JSON.stringify(Av(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return A0(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ya(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),F0(t)):t}],transformResponse:[function(t){const n=this.transitional||Ri.transitional,s=n&&n.forcedJSONParsing,i=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Ri.headers[e]={}});const D0=$.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"]),L0=e=>{const t={};let n,s,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),s=a.substring(i+1).trim(),!(!n||t[n]&&D0[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},mp=Symbol("internals");function As(e){return e&&String(e).trim().toLowerCase()}function ko(e){return e===!1||e==null?e:$.isArray(e)?e.map(ko):String(e)}function B0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const M0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rc(e,t,n,s,i){if($.isFunction(s))return s.call(this,t,n);if(i&&(t=n),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function z0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function $0(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(i,o,a){return this[s].call(this,t,i,o,a)},configurable:!0})})}class ct{constructor(t){t&&this.set(t)}set(t,n,s){const i=this;function o(l,d,c){const u=As(d);if(!u)throw new Error("header name must be a non-empty string");const p=$.findKey(i,u);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||d]=ko(l))}const a=(l,d)=>$.forEach(l,(c,u)=>o(c,u,d));if($.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if($.isString(t)&&(t=t.trim())&&!M0(t))a(L0(t),n);else if($.isHeaders(t))for(const[l,d]of t.entries())o(d,l,s);else t!=null&&o(n,t,s);return this}get(t,n){if(t=As(t),t){const s=$.findKey(this,t);if(s){const i=this[s];if(!n)return i;if(n===!0)return B0(i);if($.isFunction(n))return n.call(this,i,s);if($.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=As(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||rc(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let i=!1;function o(a){if(a=As(a),a){const l=$.findKey(s,a);l&&(!n||rc(s,s[l],l,n))&&(delete s[l],i=!0)}}return $.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let s=n.length,i=!1;for(;s--;){const o=n[s];(!t||rc(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,s={};return $.forEach(this,(i,o)=>{const a=$.findKey(s,o);if(a){n[a]=ko(i),delete n[o];return}const l=t?z0(o):String(o).trim();l!==o&&delete n[o],n[l]=ko(i),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,i)=>{s!=null&&s!==!1&&(n[i]=t&&$.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(i=>s.set(i)),s}static accessor(t){const s=(this[mp]=this[mp]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=As(a);s[l]||($0(i,a),s[l]=!0)}return $.isArray(t)?t.forEach(o):o(t),this}}ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ct.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});$.freezeMethods(ct);function sc(e,t){const n=this||Ri,s=t||n,i=ct.from(s.headers);let o=s.data;return $.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Rv(e){return!!(e&&e.__CANCEL__)}function hs(e,t,n){ae.call(this,e??"canceled",ae.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(hs,ae,{__CANCEL__:!0});function Iv(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function W0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function U0(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=s[o];a||(a=c),n[i]=d,s[i]=c;let p=o,g=0;for(;p!==i;)g+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const N=u&&c-u;return N?Math.round(g*1e3/N):void 0}}function q0(e,t){let n=0,s=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),p=u-n;p>=s?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},s-p)))},()=>i&&a(i)]}const ma=(e,t,n=3)=>{let s=0;const i=U0(50,250);return q0(o=>{const a=o.loaded,l=o.lengthComputable?o.total:void 0,d=a-s,c=i(d),u=a<=l;s=a;const p={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},hp=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},vp=e=>(...t)=>$.asap(()=>e(...t)),V0=lt.hasStandardBrowserEnv?function(){const t=lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent),n=document.createElement("a");let s;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(a){const l=$.isString(a)?i(a):a;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),H0=lt.hasStandardBrowserEnv?{write(e,t,n,s,i,o){const a=[e+"="+encodeURIComponent(t)];$.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$.isString(s)&&a.push("path="+s),$.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function K0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Y0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fv(e,t){return e&&!K0(t)?Y0(e,t):t}const gp=e=>e instanceof ct?{...e}:e;function wr(e,t){t=t||{};const n={};function s(c,u,p){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:p},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function i(c,u,p){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,p)}else return s(c,u,p)}function o(c,u){if(!$.isUndefined(u))return s(void 0,u)}function a(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,p){if(p in t)return s(c,u);if(p in e)return s(void 0,c)}const d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u)=>i(gp(c),gp(u),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(u){const p=d[u]||i,g=p(e[u],t[u],u);$.isUndefined(g)&&p!==l||(n[u]=g)}),n}const Dv=e=>{const t=wr({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:l}=t;t.headers=a=ct.from(a),t.url=Tv(Fv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if($.isFormData(n)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((d=a.getContentType())!==!1){const[c,...u]=d?d.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(lt.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&V0(t.url))){const c=i&&o&&H0.read(o);c&&a.set(i,c)}return t},G0=typeof XMLHttpRequest<"u",Q0=G0&&function(e){return new Promise(function(n,s){const i=Dv(e);let o=i.data;const a=ct.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=i,u,p,g,N,x;function b(){N&&N(),x&&x(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function m(){if(!w)return;const h=ct.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:h,config:e,request:w};Iv(function(O){n(O),b()},function(O){s(O),b()},P),w=null}"onloadend"in w?w.onloadend=m:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(m)},w.onabort=function(){w&&(s(new ae("Request aborted",ae.ECONNABORTED,e,w)),w=null)},w.onerror=function(){s(new ae("Network Error",ae.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let j=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const P=i.transitional||Ov;i.timeoutErrorMessage&&(j=i.timeoutErrorMessage),s(new ae(j,P.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,w)),w=null},o===void 0&&a.setContentType(null),"setRequestHeader"in w&&$.forEach(a.toJSON(),function(j,P){w.setRequestHeader(P,j)}),$.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),l&&l!=="json"&&(w.responseType=i.responseType),c&&([g,x]=ma(c,!0),w.addEventListener("progress",g)),d&&w.upload&&([p,N]=ma(d),w.upload.addEventListener("progress",p),w.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(u=h=>{w&&(s(!h||h.type?new hs(null,e,w):h),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const v=W0(i.url);if(v&&lt.protocols.indexOf(v)===-1){s(new ae("Unsupported protocol "+v+":",ae.ERR_BAD_REQUEST,e));return}w.send(o||null)})},X0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,i;const o=function(c){if(!i){i=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof ae?u:new hs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:d}=s;return d.unsubscribe=()=>$.asap(l),d}},J0=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,i;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},Z0=async function*(e,t){for await(const n of eN(e))yield*J0(n,t)},eN=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},xp=(e,t,n,s)=>{const i=Z0(e,t);let o=0,a,l=d=>{a||(a=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await i.next();if(c){l(),d.close();return}let p=u.byteLength;if(n){let g=o+=p;n(g)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},Ga=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lv=Ga&&typeof ReadableStream=="function",tN=Ga&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Bv=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nN=Lv&&Bv(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yp=64*1024,vd=Lv&&Bv(()=>$.isReadableStream(new Response("").body)),ha={stream:vd&&(e=>e.body)};Ga&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ha[t]&&(ha[t]=$.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new ae(`Response type '${t}' is not supported`,ae.ERR_NOT_SUPPORT,s)})})})(new Response);const rN=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await tN(e)).byteLength},sN=async(e,t)=>{const n=$.toFiniteNumber(e.getContentLength());return n??rN(t)},iN=Ga&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:o,timeout:a,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:g}=Dv(e);c=c?(c+"").toLowerCase():"text";let N=X0([i,o&&o.toAbortSignal()],a),x;const b=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let w;try{if(d&&nN&&n!=="get"&&n!=="head"&&(w=await sN(u,s))!==0){let P=new Request(t,{method:"POST",body:s,duplex:"half"}),T;if($.isFormData(s)&&(T=P.headers.get("content-type"))&&u.setContentType(T),P.body){const[O,_]=hp(w,ma(vp(d)));s=xp(P.body,yp,O,_)}}$.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;x=new Request(t,{...g,signal:N,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:m?p:void 0});let v=await fetch(x);const h=vd&&(c==="stream"||c==="response");if(vd&&(l||h&&b)){const P={};["status","statusText","headers"].forEach(L=>{P[L]=v[L]});const T=$.toFiniteNumber(v.headers.get("content-length")),[O,_]=l&&hp(T,ma(vp(l),!0))||[];v=new Response(xp(v.body,yp,O,()=>{_&&_(),b&&b()}),P)}c=c||"text";let j=await ha[$.findKey(ha,c)||"text"](v,e);return!h&&b&&b(),await new Promise((P,T)=>{Iv(P,T,{data:j,headers:ct.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(m){throw b&&b(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,x),{cause:m.cause||m}):ae.from(m,m&&m.code,e,x)}}),gd={http:j0,xhr:Q0,fetch:iN};$.forEach(gd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const jp=e=>`- ${e}`,oN=e=>$.isFunction(e)||e===null||e===!1,Mv={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(s=n,!oN(n)&&(s=gd[(a=String(n)).toLowerCase()],s===void 0))throw new ae(`Unknown adapter '${a}'`);if(s)break;i[a||"#"+o]=s}if(!s){const o=Object.entries(i).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
`+o.map(jp).join(`
`):" "+jp(o[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:gd};function ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function Np(e){return ic(e),e.headers=ct.from(e.headers),e.data=sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mv.getAdapter(e.adapter||Ri.adapter)(e).then(function(s){return ic(e),s.data=sc.call(e,e.transformResponse,s),s.headers=ct.from(s.headers),s},function(s){return Rv(s)||(ic(e),s&&s.response&&(s.response.data=sc.call(e,e.transformResponse,s.response),s.response.headers=ct.from(s.response.headers))),Promise.reject(s)})}const zv="1.7.7",Ou={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ou[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Cp={};Ou.transitional=function(t,n,s){function i(o,a){return"[Axios v"+zv+"] Transitional option '"+o+"'"+a+(s?". "+s:"")}return(o,a,l)=>{if(t===!1)throw new ae(i(a," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!Cp[a]&&(Cp[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};function aN(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const o=s[i],a=t[o];if(a){const l=e[o],d=l===void 0||a(l,o,e);if(d!==!0)throw new ae("option "+o+" must be "+d,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+o,ae.ERR_BAD_OPTION)}}const xd={assertOptions:aN,validators:Ou},jn=xd.validators;class pr{constructor(t){this.defaults=t,this.interceptors={request:new pp,response:new pp}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:s,paramsSerializer:i,headers:o}=n;s!==void 0&&xd.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),i!=null&&($.isFunction(i)?n.paramsSerializer={serialize:i}:xd.assertOptions(i,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&$.merge(o.common,o[n.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),n.headers=ct.concat(a,o);const l=[];let d=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(d=d&&b.synchronous,l.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let u,p=0,g;if(!d){const x=[Np.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,u=Promise.resolve(n);p<g;)u=u.then(x[p++],x[p++]);return u}g=l.length;let N=n;for(p=0;p<g;){const x=l[p++],b=l[p++];try{N=x(N)}catch(w){b.call(this,w);break}}try{u=Np.call(this,N)}catch(x){return Promise.reject(x)}for(p=0,g=c.length;p<g;)u=u.then(c[p++],c[p++]);return u}getUri(t){t=wr(this.defaults,t);const n=Fv(t.baseURL,t.url);return Tv(n,t.params,t.paramsSerializer)}}$.forEach(["delete","get","head","options"],function(t){pr.prototype[t]=function(n,s){return this.request(wr(s||{},{method:t,url:n,data:(s||{}).data}))}});$.forEach(["post","put","patch"],function(t){function n(s){return function(o,a,l){return this.request(wr(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}pr.prototype[t]=n(),pr.prototype[t+"Form"]=n(!0)});class Au{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(i=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{s.subscribe(l),o=l}).then(i);return a.cancel=function(){s.unsubscribe(o)},a},t(function(o,a,l){s.reason||(s.reason=new hs(o,a,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Au(function(i){t=i}),cancel:t}}}function lN(e){return function(n){return e.apply(null,n)}}function cN(e){return $.isObject(e)&&e.isAxiosError===!0}const yd={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};Object.entries(yd).forEach(([e,t])=>{yd[t]=e});function $v(e){const t=new pr(e),n=xv(pr.prototype.request,t);return $.extend(n,pr.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return $v(wr(e,i))},n}const me=$v(Ri);me.Axios=pr;me.CanceledError=hs;me.CancelToken=Au;me.isCancel=Rv;me.VERSION=zv;me.toFormData=Ya;me.AxiosError=ae;me.Cancel=me.CanceledError;me.all=function(t){return Promise.all(t)};me.spread=lN;me.isAxiosError=cN;me.mergeConfig=wr;me.AxiosHeaders=ct;me.formToJSON=e=>Av($.isHTMLForm(e)?new FormData(e):e);me.getAdapter=Mv.getAdapter;me.HttpStatusCode=yd;me.default=me;const dN="http://67.225.129.127:3002",Jt=me.create({baseURL:dN});Jt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const uN=e=>Jt.post("/users/signup",e),fN=e=>Jt.post("/users/signin",e),pN=(e,t,n)=>Jt.get(`/users/${e}/verify/${t}`,n),mN=e=>Jt.post("/properties",e),hN=(e,t,n)=>Jt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),vN=e=>Jt.get(`/properties/${e}`,e),gN=(e,t)=>Jt.put(`/properties/${e}`,t),xN=e=>Jt.get(`/users/${e}`),yN=e=>Jt.patch("/users/invest",e),jN="http://67.225.129.127:3002",So=et("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const s=await fN(e);return t("/dashboard"),s.data}catch(s){return n(s.response.data)}}),Eo=et("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:s})=>{try{const i=await uN(e);return console.log("response",i),n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return s(i.response.data)}}),Po=et("auth/updateUser",async({formData:e,toast:t,navigate:n},{rejectWithValue:s})=>{try{const i=await me.put(`${jN}/users/update`,e);return t.success("Updated Successfully"),n("/login"),i.data}catch(i){return s(i.response.data)}}),_o=et("auth/WillingToInvest",async({formData:e,toast:t},{rejectWithValue:n})=>{try{const s=await yN(e);return t.success("Investment amount updated successfully!"),s.data}catch(s){return t.error(s.response.data.message),n(s.response.data)}}),Wv=Oi({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Eo.pending,t=>{t.loading=!0}).addCase(Eo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Eo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Po.pending,t=>{t.isLoading=!0}).addCase(Po.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Po.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload}).addCase(_o.pending,t=>{t.loading=!0}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.user={...t.user,result:n.payload}}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),{setUser:vk,setLogout:NN,setUserDetails:gk}=Wv.actions,CN=Wv.reducer,To=et("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await xN(e)).data}catch(n){return t(n.response.data)}}),Oo=et("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:s})=>{try{return(await pN(e,t,n)).data.message}catch(i){return s(i.response.data)}}),bN=Oi({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(To.pending,t=>{t.loading=!0,t.error=null}).addCase(To.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(To.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Oo.pending,t=>{t.loading=!0,t.error=null}).addCase(Oo.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Oo.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),wN=bN.reducer,Ao=et("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await mN(e)).data}catch(n){return t(n.response.data)}}),Xs=et("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:s})=>{try{return(await hN(e,t,n)).data}catch(i){return s(i.response.data)}}),Js=et("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await vN(e)).data}catch(n){return t(n.response.data)}}),Ro=et("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await gN(e,t)).data}catch(s){return n(s.response.data)}}),Io=et("property/addFundDetails",async({id:e,fundDetails:t,toast:n},{rejectWithValue:s})=>{try{const i=await me.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return n.success("Submitted Successfully"),i.data}catch(i){return s(i.response.data)}}),Fo=et("property/deleteFundDetail",async({id:e,fundDetailId:t,token:n},{rejectWithValue:s})=>{try{return(await me.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${n}`}})).data}catch(i){return s(i.response.data)}}),mr=et("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await me.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),kN=Oi({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Ao.pending,t=>{t.status="loading"}).addCase(Ao.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Ao.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Xs.pending,t=>{t.loading=!0}).addCase(Xs.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Xs.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(Js.pending,t=>{t.status="loading"}).addCase(Js.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Js.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ro.pending,t=>{t.status="loading"}).addCase(Ro.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ro.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(mr.pending,t=>{t.loading=!0}).addCase(mr.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(mr.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message}).addCase(Io.pending,t=>{t.loading=!0}).addCase(Io.fulfilled,(t,n)=>{t.loading=!1,t.property=n.payload.property}).addCase(Io.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Fo.pending,t=>{t.loading=!0}).addCase(Fo.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==n.meta.arg.id)}).addCase(Fo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),SN=kN.reducer,oc=et("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await me.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(n){return t(n.response.data)}}),EN=Oi({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(oc.pending,t=>{t.loading=!0}).addCase(oc.fulfilled,(t,n)=>{t.loading=!1,t.fundDetails=n.payload}).addCase(oc.rejected,(t,n)=>{t.loading=!1,t.error=n.payload})}}),PN=EN.reducer,_N="http://67.225.129.127:3002",Do=et("admin/fetchAdminUser",async()=>(await me.get(`${_N}/admin/username`)).data),TN=Oi({name:"admin",initialState:{user:null,loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Do.pending,t=>{t.loading=!0,t.error=null}).addCase(Do.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(Do.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),ON=TN.reducer,AN=h1({reducer:{auth:CN,user:wN,property:SN,fundDetails:PN,admin:ON}});/**
* @remix-run/router v1.19.1
*
* 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 ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ji.apply(this,arguments)}var On;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(On||(On={}));const bp="popstate";function RN(e){e===void 0&&(e={});function t(s,i){let{pathname:o,search:a,hash:l}=s.location;return jd("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(s,i){return typeof i=="string"?i:va(i)}return FN(t,n,null,e)}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Uv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IN(){return Math.random().toString(36).substr(2,8)}function wp(e,t){return{usr:e.state,key:e.key,idx:t}}function jd(e,t,n,s){return n===void 0&&(n=null),ji({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:n,key:t&&t.key||s||IN()})}function va(e){let{pathname:t="/",search:n="",hash:s=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function vs(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function FN(e,t,n,s){s===void 0&&(s={});let{window:i=document.defaultView,v5Compat:o=!1}=s,a=i.history,l=On.Pop,d=null,c=u();c==null&&(c=0,a.replaceState(ji({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function p(){l=On.Pop;let w=u(),m=w==null?null:w-c;c=w,d&&d({action:l,location:b.location,delta:m})}function g(w,m){l=On.Push;let v=jd(b.location,w,m);c=u()+1;let h=wp(v,c),j=b.createHref(v);try{a.pushState(h,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}o&&d&&d({action:l,location:b.location,delta:1})}function N(w,m){l=On.Replace;let v=jd(b.location,w,m);c=u();let h=wp(v,c),j=b.createHref(v);a.replaceState(h,"",j),o&&d&&d({action:l,location:b.location,delta:0})}function x(w){let m=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof w=="string"?w:va(w);return v=v.replace(/ $/,"%20"),Pe(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let b={get action(){return l},get location(){return e(i,a)},listen(w){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(bp,p),d=w,()=>{i.removeEventListener(bp,p),d=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let m=x(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:N,go(w){return a.go(w)}};return b}var kp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kp||(kp={}));function DN(e,t,n){return n===void 0&&(n="/"),LN(e,t,n,!1)}function LN(e,t,n,s){let i=typeof t=="string"?vs(t):t,o=ds(i.pathname||"/",n);if(o==null)return null;let a=qv(e);BN(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let c=GN(o);l=KN(a[d],c,s)}return l}function qv(e,t,n,s){t===void 0&&(t=[]),n===void 0&&(n=[]),s===void 0&&(s="");let i=(o,a,l)=>{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};d.relativePath.startsWith("/")&&(Pe(d.relativePath.startsWith(s),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+s+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(s.length));let c=$n([s,d.relativePath]),u=n.concat(d);o.children&&o.children.length>0&&(Pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qv(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:VN(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let d of Vv(o.path))i(o,a,d)}),t}function Vv(e){let t=e.split("/");if(t.length===0)return[];let[n,...s]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(s.length===0)return i?[o,""]:[o];let a=Vv(s.join("/")),l=[];return l.push(...a.map(d=>d===""?o:[o,d].join("/"))),i&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function BN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:HN(t.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}const MN=/^:[\w-]+$/,zN=3,$N=2,WN=1,UN=10,qN=-2,Sp=e=>e==="*";function VN(e,t){let n=e.split("/"),s=n.length;return n.some(Sp)&&(s+=qN),t&&(s+=$N),n.filter(i=>!Sp(i)).reduce((i,o)=>i+(MN.test(o)?zN:o===""?WN:UN),s)}function HN(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function KN(e,t,n){let{routesMeta:s}=e,i={},o="/",a=[];for(let l=0;l<s.length;++l){let d=s[l],c=l===s.length-1,u=o==="/"?t:t.slice(o.length)||"/",p=ga({path:d.relativePath,caseSensitive:d.caseSensitive,end:c},u),g=d.route;if(!p&&c&&n&&!s[s.length-1].route.index&&(p=ga({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},u)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:$n([o,p.pathname]),pathnameBase:ZN($n([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=$n([o,p.pathnameBase]))}return a}function ga(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,s]=YN(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:s.reduce((c,u,p)=>{let{paramName:g,isOptional:N}=u;if(g==="*"){let b=l[p]||"";a=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const x=l[p];return N&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function YN(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Uv(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 s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function GN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Uv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ds(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,s=e.charAt(n);return s&&s!=="/"?null:e.slice(n)||"/"}function QN(e,t){t===void 0&&(t="/");let{pathname:n,search:s="",hash:i=""}=typeof e=="string"?vs(e):e;return{pathname:n?n.startsWith("/")?n:XN(n,t):t,search:eC(s),hash:tC(i)}}function XN(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ac(e,t,n,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. 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 JN(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hv(e,t){let n=JN(e);return t?n.map((s,i)=>i===n.length-1?s.pathname:s.pathnameBase):n.map(s=>s.pathnameBase)}function Kv(e,t,n,s){s===void 0&&(s=!1);let i;typeof e=="string"?i=vs(e):(i=ji({},e),Pe(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),Pe(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),Pe(!i.search||!i.search.includes("#"),ac("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let p=t.length-1;if(!s&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}l=p>=0?t[p]:"/"}let d=QN(i,l),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(c||u)&&(d.pathname+="/"),d}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),ZN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Yv=["post","put","patch","delete"];new Set(Yv);const rC=["get",...Yv];new Set(rC);/**
* React Router v6.26.1
*
* 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 Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Ni.apply(this,arguments)}const Qa=k.createContext(null),Gv=k.createContext(null),Yn=k.createContext(null),Xa=k.createContext(null),Gn=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Qv=k.createContext(null);function sC(e,t){let{relative:n}=t===void 0?{}:t;Ii()||Pe(!1);let{basename:s,navigator:i}=k.useContext(Yn),{hash:o,pathname:a,search:l}=Ja(e,{relative:n}),d=a;return s!=="/"&&(d=a==="/"?s:$n([s,a])),i.createHref({pathname:d,search:l,hash:o})}function Ii(){return k.useContext(Xa)!=null}function Fi(){return Ii()||Pe(!1),k.useContext(Xa).location}function Xv(e){k.useContext(Yn).static||k.useLayoutEffect(e)}function hn(){let{isDataRoute:e}=k.useContext(Gn);return e?gC():iC()}function iC(){Ii()||Pe(!1);let e=k.useContext(Qa),{basename:t,future:n,navigator:s}=k.useContext(Yn),{matches:i}=k.useContext(Gn),{pathname:o}=Fi(),a=JSON.stringify(Hv(i,n.v7_relativeSplatPath)),l=k.useRef(!1);return Xv(()=>{l.current=!0}),k.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let p=Kv(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:$n([t,p.pathname])),(u.replace?s.replace:s.push)(p,u.state,u)},[t,s,a,o,e])}function gs(){let{matches:e}=k.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Ja(e,t){let{relative:n}=t===void 0?{}:t,{future:s}=k.useContext(Yn),{matches:i}=k.useContext(Gn),{pathname:o}=Fi(),a=JSON.stringify(Hv(i,s.v7_relativeSplatPath));return k.useMemo(()=>Kv(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function oC(e,t){return aC(e,t)}function aC(e,t,n,s){Ii()||Pe(!1);let{navigator:i}=k.useContext(Yn),{matches:o}=k.useContext(Gn),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let c=Fi(),u;if(t){var p;let w=typeof t=="string"?vs(t):t;d==="/"||(p=w.pathname)!=null&&p.startsWith(d)||Pe(!1),u=w}else u=c;let g=u.pathname||"/",N=g;if(d!=="/"){let w=d.replace(/^\//,"").split("/");N="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=DN(e,{pathname:N}),b=fC(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:$n([d,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:$n([d,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,s);return t&&b?k.createElement(Xa.Provider,{value:{location:Ni({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:On.Pop}},b):b}function lC(){let e=vC(),t=nC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const cC=k.createElement(lC,null);class dC extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Gn.Provider,{value:this.props.routeContext},k.createElement(Qv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uC(e){let{routeContext:t,match:n,children:s}=e,i=k.useContext(Qa);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Gn.Provider,{value:t},s)}function fC(e,t,n,s){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),s===void 0&&(s=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);u>=0||Pe(!1),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,c=-1;if(n&&s&&s.v7_partialHydration)for(let u=0;u<a.length;u++){let p=a[u];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(c=u),p.route.id){let{loaderData:g,errors:N}=n,x=p.route.loader&&g[p.route.id]===void 0&&(!N||N[p.route.id]===void 0);if(p.route.lazy||x){d=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,p,g)=>{let N,x=!1,b=null,w=null;n&&(N=l&&p.route.id?l[p.route.id]:void 0,b=p.route.errorElement||cC,d&&(c<0&&g===0?(x=!0,w=null):c===g&&(x=!0,w=p.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,g+1)),v=()=>{let h;return N?h=b:x?h=w:p.route.Component?h=k.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=u,k.createElement(uC,{match:p,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?k.createElement(dC,{location:n.location,revalidation:n.revalidation,component:b,error:N,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var Jv=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Jv||{}),xa=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xa||{});function pC(e){let t=k.useContext(Qa);return t||Pe(!1),t}function mC(e){let t=k.useContext(Gv);return t||Pe(!1),t}function hC(e){let t=k.useContext(Gn);return t||Pe(!1),t}function Zv(e){let t=hC(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function vC(){var e;let t=k.useContext(Qv),n=mC(xa.UseRouteError),s=Zv(xa.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[s]}function gC(){let{router:e}=pC(Jv.UseNavigateStable),t=Zv(xa.UseNavigateStable),n=k.useRef(!1);return Xv(()=>{n.current=!0}),k.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ni({fromRouteId:t},o)))},[e,t])}function be(e){Pe(!1)}function xC(e){let{basename:t="/",children:n=null,location:s,navigationType:i=On.Pop,navigator:o,static:a=!1,future:l}=e;Ii()&&Pe(!1);let d=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:d,navigator:o,static:a,future:Ni({v7_relativeSplatPath:!1},l)}),[d,l,o,a]);typeof s=="string"&&(s=vs(s));let{pathname:u="/",search:p="",hash:g="",state:N=null,key:x="default"}=s,b=k.useMemo(()=>{let w=ds(u,d);return w==null?null:{location:{pathname:w,search:p,hash:g,state:N,key:x},navigationType:i}},[d,u,p,g,N,x,i]);return b==null?null:k.createElement(Yn.Provider,{value:c},k.createElement(Xa.Provider,{children:n,value:b}))}function yC(e){let{children:t,location:n}=e;return oC(Nd(t),n)}new Promise(()=>{});function Nd(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(s,i)=>{if(!k.isValidElement(s))return;let o=[...t,i];if(s.type===k.Fragment){n.push.apply(n,Nd(s.props.children,o));return}s.type!==be&&Pe(!1),!s.props.index||!s.props.children||Pe(!1);let a={id:s.props.id||o.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(a.children=Nd(s.props.children,o)),n.push(a)}),n}/**
* React Router DOM v6.26.1
*
* 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 ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ya.apply(this,arguments)}function eg(e,t){if(e==null)return{};var n={},s=Object.keys(e),i,o;for(o=0;o<s.length;o++)i=s[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function NC(e,t){return e.button===0&&(!t||t==="_self")&&!jC(e)}const CC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],bC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],wC="6";try{window.__reactRouterVersion=wC}catch{}const kC=k.createContext({isTransitioning:!1}),SC="startTransition",Ep=mc[SC];function EC(e){let{basename:t,children:n,future:s,window:i}=e,o=k.useRef();o.current==null&&(o.current=RN({window:i,v5Compat:!0}));let a=o.current,[l,d]=k.useState({action:a.action,location:a.location}),{v7_startTransition:c}=s||{},u=k.useCallback(p=>{c&&Ep?Ep(()=>d(p)):d(p)},[d,c]);return k.useLayoutEffect(()=>a.listen(u),[a,u]),k.createElement(xC,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}const PC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_C=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TC=k.forwardRef(function(t,n){let{onClick:s,relative:i,reloadDocument:o,replace:a,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:p}=t,g=eg(t,CC),{basename:N}=k.useContext(Yn),x,b=!1;if(typeof c=="string"&&_C.test(c)&&(x=c,PC))try{let h=new URL(window.location.href),j=c.startsWith("//")?new URL(h.protocol+c):new URL(c),P=ds(j.pathname,N);j.origin===h.origin&&P!=null?c=P+j.search+j.hash:b=!0}catch{}let w=sC(c,{relative:i}),m=AC(c,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,unstable_viewTransition:p});function v(h){s&&s(h),h.defaultPrevented||m(h)}return k.createElement("a",ya({},g,{href:x||w,onClick:b||o?s:v,ref:n,target:d}))}),le=k.forwardRef(function(t,n){let{"aria-current":s="page",caseSensitive:i=!1,className:o="",end:a=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,p=eg(t,bC),g=Ja(d,{relative:p.relative}),N=Fi(),x=k.useContext(Gv),{navigator:b,basename:w}=k.useContext(Yn),m=x!=null&&RC(g)&&c===!0,v=b.encodeLocation?b.encodeLocation(g).pathname:g.pathname,h=N.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(h=h.toLowerCase(),j=j?j.toLowerCase():null,v=v.toLowerCase()),j&&w&&(j=ds(j,w)||j);const P=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let T=h===v||!a&&h.startsWith(v)&&h.charAt(P)==="/",O=j!=null&&(j===v||!a&&j.startsWith(v)&&j.charAt(v.length)==="/"),_={isActive:T,isPending:O,isTransitioning:m},L=T?s:void 0,z;typeof o=="function"?z=o(_):z=[o,T?"active":null,O?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return k.createElement(TC,ya({},p,{"aria-current":L,className:z,ref:n,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var Cd;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cd||(Cd={}));var Pp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Pp||(Pp={}));function OC(e){let t=k.useContext(Qa);return t||Pe(!1),t}function AC(e,t){let{target:n,replace:s,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Fi(),u=Ja(e,{relative:a});return k.useCallback(p=>{if(NC(p,n)){p.preventDefault();let g=s!==void 0?s:va(c)===va(u);d(e,{replace:g,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:l})}},[c,d,u,s,i,n,e,o,a,l])}function RC(e,t){t===void 0&&(t={});let n=k.useContext(kC);n==null&&Pe(!1);let{basename:s}=OC(Cd.useViewTransitionState),i=Ja(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ds(n.currentLocation.pathname,s)||n.currentLocation.pathname,a=ds(n.nextLocation.pathname,s)||n.nextLocation.pathname;return ga(i.pathname,a)!=null||ga(i.pathname,o)!=null}function tg(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tg(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function An(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tg(e))&&(s&&(s+=" "),s+=t);return s}const Ci=e=>typeof e=="number"&&!isNaN(e),hr=e=>typeof e=="string",pt=e=>typeof e=="function",Lo=e=>hr(e)||pt(e)?e:null,bd=e=>k.isValidElement(e)||hr(e)||pt(e)||Ci(e);function IC(e,t,n){n===void 0&&(n=300);const{scrollHeight:s,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=s+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Za(e){let{enter:t,exit:n,appendPosition:s=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:p,isIn:g,playToast:N}=a;const x=s?`${t}--${d}`:t,b=s?`${n}--${d}`:n,w=k.useRef(0);return k.useLayoutEffect(()=>{const m=p.current,v=x.split(" "),h=j=>{j.target===p.current&&(N(),m.removeEventListener("animationend",h),m.removeEventListener("animationcancel",h),w.current===0&&j.type!=="animationcancel"&&m.classList.remove(...v))};m.classList.add(...v),m.addEventListener("animationend",h),m.addEventListener("animationcancel",h)},[]),k.useEffect(()=>{const m=p.current,v=()=>{m.removeEventListener("animationend",v),i?IC(m,u,o):u()};g||(c?v():(w.current=1,m.className+=` ${b}`,m.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function _p(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Qe=new Map;let bi=[];const wd=new Set,FC=e=>wd.forEach(t=>t(e)),ng=()=>Qe.size>0;function rg(e,t){var n;if(t)return!((n=Qe.get(t))==null||!n.isToastActive(e));let s=!1;return Qe.forEach(i=>{i.isToastActive(e)&&(s=!0)}),s}function sg(e,t){bd(e)&&(ng()||bi.push({content:e,options:t}),Qe.forEach(n=>{n.buildToast(e,t)}))}function Tp(e,t){Qe.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function DC(e){const{subscribe:t,getSnapshot:n,setProps:s}=k.useRef(function(o){const a=o.containerId||1;return{subscribe(l){const d=function(u,p,g){let N=1,x=0,b=[],w=[],m=[],v=p;const h=new Map,j=new Set,P=()=>{m=Array.from(h.values()),j.forEach(_=>_())},T=_=>{w=_==null?[]:w.filter(L=>L!==_),P()},O=_=>{const{toastId:L,onOpen:z,updateId:H,children:te}=_.props,X=H==null;_.staleId&&h.delete(_.staleId),h.set(L,_),w=[...w,_.props.toastId].filter(Z=>Z!==_.staleId),P(),g(_p(_,X?"added":"updated")),X&&pt(z)&&z(k.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(j.add(_),()=>j.delete(_)),toggle:(_,L)=>{h.forEach(z=>{L!=null&&L!==z.props.toastId||pt(z.toggle)&&z.toggle(_)})},removeToast:T,toasts:h,clearQueue:()=>{x-=b.length,b=[]},buildToast:(_,L)=>{if((W=>{let{containerId:K,toastId:Y,updateId:ee}=W;const re=K?K!==u:u!==1,ne=h.has(Y)&&ee==null;return re||ne})(L))return;const{toastId:z,updateId:H,data:te,staleId:X,delay:Z}=L,D=()=>{T(z)},U=H==null;U&&x++;const Q={...v,style:v.toastStyle,key:N++,...Object.fromEntries(Object.entries(L).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Lo(L.className||v.toastClassName),bodyClassName:Lo(L.bodyClassName||v.bodyClassName),progressClassName:Lo(L.progressClassName||v.progressClassName),autoClose:!L.isLoading&&(A=L.autoClose,R=v.autoClose,A===!1||Ci(A)&&A>0?A:R),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;pt(K)&&K(k.isValidElement(Y)&&Y.props),g(_p(W,"removed")),h.delete(z),x--,x<0&&(x=0),b.length>0?O(b.shift()):P()}};var A,R;Q.closeButton=v.closeButton,L.closeButton===!1||bd(L.closeButton)?Q.closeButton=L.closeButton:L.closeButton===!0&&(Q.closeButton=!bd(v.closeButton)||v.closeButton);let M=_;k.isValidElement(_)&&!hr(_.type)?M=k.cloneElement(_,{closeToast:D,toastProps:Q,data:te}):pt(_)&&(M=_({closeToast:D,toastProps:Q,data:te}));const B={content:M,props:Q,staleId:X};v.limit&&v.limit>0&&x>v.limit&&U?b.push(B):Ci(Z)?setTimeout(()=>{O(B)},Z):O(B)},setProps(_){v=_},setToggle:(_,L)=>{h.get(_).toggle=L},isToastActive:_=>w.some(L=>L===_),getSnapshot:()=>v.newestOnTop?m.reverse():m}}(a,o,FC);Qe.set(a,d);const c=d.observe(l);return bi.forEach(u=>sg(u.content,u.options)),bi=[],()=>{c(),Qe.delete(a)}},setProps(l){var d;(d=Qe.get(a))==null||d.setProps(l)},getSnapshot(){var l;return(l=Qe.get(a))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const i=k.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(l=>{const{position:d}=l.props;a.has(d)||a.set(d,[]),a.get(d).push(l)}),Array.from(a,l=>o(l[0],l[1]))},isToastActive:rg,count:i==null?void 0:i.length}}function LC(e){const[t,n]=k.useState(!1),[s,i]=k.useState(!1),o=k.useRef(null),a=k.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:p}=e;var g,N;function x(){n(!0)}function b(){n(!1)}function w(h){const j=o.current;a.canDrag&&j&&(a.didMove=!0,t&&b(),a.delta=e.draggableDirection==="x"?h.clientX-a.start:h.clientY-a.start,a.start!==h.clientX&&(a.canCloseOnClick=!1),j.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,j.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function m(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",m);const h=o.current;if(a.canDrag&&a.didMove&&h){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(N=Qe.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(g.id,g.fn),k.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",x),window.addEventListener("blur",b),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",b)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){a.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",m);const j=o.current;a.canCloseOnClick=!0,a.canDrag=!0,j.style.transition="none",e.draggableDirection==="x"?(a.start=h.clientX,a.removalDistance=j.offsetWidth*(e.draggablePercent/100)):(a.start=h.clientY,a.removalDistance=j.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:j,bottom:P,left:T,right:O}=o.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=T&&h.clientX<=O&&h.clientY>=j&&h.clientY<=P?b():x()}};return l&&d&&(v.onMouseEnter=b,e.stacked||(v.onMouseLeave=x)),p&&(v.onClick=h=>{u&&u(h),a.canCloseOnClick&&c()}),{playToast:x,pauseToast:b,isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:v}}function BC(e){let{delay:t,isRunning:n,closeToast:s,type:i="default",hide:o,className:a,style:l,controlledProgress:d,progress:c,rtl:u,isIn:p,theme:g}=e;const N=o||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const b=An("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":u}),w=pt(a)?a({rtl:u,type:i,defaultClassName:b}):An(b,a),m={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{p&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${i}`}),I.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:w,style:x,...m}))}let MC=1;const ig=()=>""+MC++;function zC(e){return e&&(hr(e.toastId)||Ci(e.toastId))?e.toastId:ig()}function Zs(e,t){return sg(e,t),t.toastId}function ja(e,t){return{...t,type:t&&t.type||e,toastId:zC(t)}}function oo(e){return(t,n)=>Zs(t,ja(e,n))}function ie(e,t){return Zs(e,ja("default",t))}ie.loading=(e,t)=>Zs(e,ja("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let s,{pending:i,error:o,success:a}=t;i&&(s=hr(i)?ie.loading(i,n):ie.loading(i.render,{...n,...i}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,p,g)=>{if(p==null)return void ie.dismiss(s);const N={type:u,...l,...n,data:g},x=hr(p)?{render:p}:p;return s?ie.update(s,{...N,...x}):ie(x.render,{...N,...x}),g},c=pt(e)?e():e;return c.then(u=>d("success",a,u)).catch(u=>d("error",o,u)),c},ie.success=oo("success"),ie.info=oo("info"),ie.error=oo("error"),ie.warning=oo("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>Zs(e,ja("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(ng()){if(t==null||hr(n=t)||Ci(n))Qe.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Qe.get(t.containerId);s?s.removeToast(t.id):Qe.forEach(i=>{i.removeToast(t.id)})}}else bi=bi.filter(s=>t!=null&&s.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Qe.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=rg,ie.update=function(e,t){t===void 0&&(t={});const n=((s,i)=>{var o;let{containerId:a}=i;return(o=Qe.get(a||1))==null?void 0:o.toasts.get(s)})(e,t);if(n){const{props:s,content:i}=n,o={delay:100,...s,...t,toastId:t.toastId||e,updateId:ig()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,Zs(a,o)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return wd.add(e),()=>{wd.delete(e)}},ie.play=e=>Tp(!0,e),ie.pause=e=>Tp(!1,e);const $C=typeof window<"u"?k.useLayoutEffect:k.useEffect,ao=e=>{let{theme:t,type:n,isLoading:s,...i}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},lc={info:function(e){return I.createElement(ao,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return I.createElement(ao,{...e},I.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return I.createElement(ao,{...e},I.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return I.createElement(ao,{...e},I.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return I.createElement("div",{className:"Toastify__spinner"})}},WC=e=>{const{isRunning:t,preventExitTransition:n,toastRef:s,eventHandlers:i,playToast:o}=LC(e),{closeButton:a,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:p,closeToast:g,transition:N,position:x,className:b,style:w,bodyClassName:m,bodyStyle:v,progressClassName:h,progressStyle:j,updateId:P,role:T,progress:O,rtl:_,toastId:L,deleteToast:z,isIn:H,isLoading:te,closeOnClick:X,theme:Z}=e,D=An("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":X}),U=pt(b)?b({rtl:_,position:x,type:u,defaultClassName:D}):An(D,b),Q=function(B){let{theme:W,type:K,isLoading:Y,icon:ee}=B,re=null;const ne={theme:W,type:K};return ee===!1||(pt(ee)?re=ee({...ne,isLoading:Y}):k.isValidElement(ee)?re=k.cloneElement(ee,ne):Y?re=lc.spinner():(se=>se in lc)(K)&&(re=lc[K](ne))),re}(e),A=!!O||!d,R={closeToast:g,type:u,theme:Z};let M=null;return a===!1||(M=pt(a)?a(R):k.isValidElement(a)?k.cloneElement(a,R):function(B){let{closeToast:W,theme:K,ariaLabel:Y="close"}=B;return I.createElement("button",{className:`Toastify__close-button Toastify__close-button--${K}`,type:"button",onClick:ee=>{ee.stopPropagation(),W(ee)},"aria-label":Y},I.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},I.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(R)),I.createElement(N,{isIn:H,done:z,position:x,preventExitTransition:n,nodeRef:s,playToast:o},I.createElement("div",{id:L,onClick:c,"data-in":H,className:U,...i,style:w,ref:s},I.createElement("div",{...H&&{role:T},className:pt(m)?m({type:u}):An("Toastify__toast-body",m),style:v},Q!=null&&I.createElement("div",{className:An("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},Q),I.createElement("div",null,l)),M,I.createElement(BC,{...P&&!A?{key:`pb-${P}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:p,type:u,style:j,className:h,controlledProgress:A,progress:O||0})))},el=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},UC=Za(el("bounce",!0));Za(el("slide",!0));Za(el("zoom"));Za(el("flip"));const qC={position:"top-right",transition:UC,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function VC(e){let t={...qC,...e};const n=e.stacked,[s,i]=k.useState(!0),o=k.useRef(null),{getToastToRender:a,isToastActive:l,count:d}=DC(t),{className:c,style:u,rtl:p,containerId:g}=t;function N(b){const w=An("Toastify__toast-container",`Toastify__toast-container--${b}`,{"Toastify__toast-container--rtl":p});return pt(c)?c({position:b,rtl:p,defaultClassName:w}):An(w,Lo(c))}function x(){n&&(i(!0),ie.play())}return $C(()=>{if(n){var b;const w=o.current.querySelectorAll('[data-in="true"]'),m=12,v=(b=t.position)==null?void 0:b.includes("top");let h=0,j=0;Array.from(w).reverse().forEach((P,T)=>{const O=P;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${s}`),O.dataset.pos||(O.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:m*T);O.style.setProperty("--y",`${v?_:-1*_}px`),O.style.setProperty("--g",`${m}`),O.style.setProperty("--s",""+(1-(s?j:0))),h+=O.offsetHeight,j+=.025})}},[s,d,n]),I.createElement("div",{ref:o,className:"Toastify",id:g,onMouseEnter:()=>{n&&(i(!1),ie.pause())},onMouseLeave:x},a((b,w)=>{const m=w.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:N(b),style:m,key:`container-${b}`},w.map(v=>{let{content:h,props:j}=v;return I.createElement(WC,{...j,stacked:n,collapseAll:x,isIn:l(j.toastId,j.containerId),style:j.style,key:`toast-${j.key}`},h)}))}))}const tt=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(le,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(le,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(le,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(le,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Le=()=>{var i;const{user:e}=_e(o=>({...o.auth})),t=Ke(),n=hn(),s=()=>{t(NN()),n("/")};return r.jsx("nav",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"d-flex align-items-center",children:r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})}),r.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarNav","aria-controls":"navbarNav","aria-expanded":"false","aria-label":"Toggle navigation",style:{borderColor:"#fda417"},children:r.jsx("span",{className:"navbar-toggler-icon"})}),r.jsxs("div",{className:"collapse navbar-collapse justify-content-end",id:"navbarNav",children:[r.jsxs("ul",{className:"navbar-nav",children:[r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(le,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),r.jsx("div",{className:"navbar-right d-flex",children:(i=e==null?void 0:e.result)!=null&&i._id?r.jsxs(r.Fragment,{children:[r.jsx(le,{to:"/dashboard",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Dashboard"}),r.jsx("span",{onClick:s,style:{fontWeight:"bold",color:"#fda417",cursor:"pointer"},className:"nav-link logout-link",children:"Logout"})]}):r.jsxs(r.Fragment,{children:[r.jsx(le,{to:"/register",className:"nav-link",style:{fontWeight:"bold",color:"#fda417",marginRight:"20px"},children:"Register"}),r.jsx(le,{to:"/login",className:"nav-link",style:{fontWeight:"bold",color:"#fda417"},children:"Login"})]})})]})]})})},HC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsxs("div",{className:"carousel-item active",children:[r.jsx("div",{className:"slider-image-container"}),r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsx("p",{className:"banner_text",children:"Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})]}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsx("p",{className:"services_text_1",style:{fontSize:"30px",padding:"10px",fontWeight:"bold"},children:"your documents, always and immediately within reach"})})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})}),r.jsx(tt,{})]}),KC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(tt,{})]}),YC=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(tt,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},nn.apply(this,arguments)};function GC(e){var t,n,s,i,o,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.fill)!==null&&n!==void 0?n:"#fff",d=(s=e.stroke)!==null&&s!==void 0?s:"transparent",c=e.fillOpacity,u=e.strokeOpacity;return I.createElement("svg",nn({},nn(nn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(i=e.height)!==null&&i!==void 0?i:80,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:55}),{viewBox:"0 0 55 80"}),I.createElement("g",{transform:"matrix(1 0 0 -1 0 80)"},I.createElement("rect",nn({width:10,height:20,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(4.3/a,"s"),values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:15,width:10,height:80,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:30,width:10,height:50,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1.4/a,"s"),values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",nn({x:45,width:10,height:30,rx:3},{fill:l,stroke:d,fillOpacity:c,strokeOpacity:u}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(2/a,"s"),values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}))))}var bn=function(){return bn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},bn.apply(this,arguments)};function QC(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=e.fill,l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",bn({},bn(bn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:57,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:57}),{viewBox:"0 0 57 57"}),I.createElement("g",{transform:"translate(1 1)",strokeWidth:2,fill:"none",fillRule:"evenodd"},I.createElement("circle",bn({cx:5,cy:50,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/o,"s"),values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/o,"s"),values:"5;27;49;5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",bn({cx:27,cy:5,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/o,"s"),from:5,to:5,values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",begin:"0s",dur:"".concat(2.2/o,"s"),from:27,to:27,values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",bn({cx:49,cy:50,r:5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"cy",begin:"0s",dur:"".concat(2.2/o,"s"),values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"cx",from:49,to:49,begin:"0s",dur:"".concat(2.2/o,"s"),values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}))))}var Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Kt.apply(this,arguments)};function XC(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Kt({},Kt(Kt({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:140,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:135}),{viewBox:"0 0 135 140"}),I.createElement("rect",Kt({y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/o,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/o,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:30,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/o,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/o,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:60,width:15,height:140,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0s",dur:"".concat(1/o,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0s",dur:"".concat(1/o,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:90,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"".concat(1/o,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"".concat(1/o,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("rect",Kt({x:120,y:10,width:15,height:120,rx:6},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"".concat(1/o,"s"),values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"".concat(1/o,"s"),values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}var ir=function(){return ir=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ir.apply(this,arguments)};function JC(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",ir({},ir(ir({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:135,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:135}),{viewBox:"0 0 135 135"}),I.createElement("path",ir({d:"M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"-360 67 67",dur:"".concat(2.5/o,"s"),repeatCount:"indefinite"})),I.createElement("path",ir({d:"M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"360 67 67",dur:"".concat(8/o,"s"),repeatCount:"indefinite"})))}var nt=function(){return nt=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},nt.apply(this,arguments)};function ZC(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",nt({},nt(nt({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:105,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:105}),{viewBox:"0 0 105 105"}),I.createElement("circle",nt({cx:12.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:12.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:12.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:52.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:12.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:52.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",nt({cx:92.5,cy:92.5,r:12.5},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"".concat(1/o,"s"),values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})))}var wn=function(){return wn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wn.apply(this,arguments)};function eb(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity;return I.createElement("svg",wn({},wn(wn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:64,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:140}),{viewBox:"0 0 140 64"}),I.createElement("path",wn({d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z",fillOpacity:d},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.4/o,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",wn({d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z",fillOpacity:d},{fill:a,stroke:l}),I.createElement("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:"".concat(1.4/o,"s"),values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("path",wn({d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"},{fill:a,stroke:l})))}var Vr=function(){return Vr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Vr.apply(this,arguments)};function tb(e){var t,n,s,i,o,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Vr({},Vr(Vr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(i=e.height)!==null&&i!==void 0?i:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:38}),{viewBox:"0 0 38 38",overflow:"visible"}),I.createElement("g",Vr({transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{strokeOpacity:.5,cx:18,cy:18,r:18}),I.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(1/a,"s"),repeatCount:"indefinite"}))))}var Hr=function(){return Hr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Hr.apply(this,arguments)};function nb(e){var t,n,s,i,o,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Hr({},Hr(Hr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(i=e.height)!==null&&i!==void 0?i:44,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:44}),{viewBox:"0 0 44 44"}),I.createElement("g",Hr({fill:"none",fillRule:"evenodd"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:1},I.createElement("animate",{attributeName:"r",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"".concat(1.8/a,"s"),values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}))))}var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Kr.apply(this,arguments)};function rb(e){var t,n,s,i,o,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Kr({},Kr(Kr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(i=e.height)!==null&&i!==void 0?i:45,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:45}),{viewBox:"0 0 45 45"}),I.createElement("g",Kr({fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:6},I.createElement("animate",{attributeName:"r",begin:"3s",dur:"".concat(3/a,"s"),values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"".concat(3/a,"s"),values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"".concat(3/a,"s"),values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:22,cy:22,r:8},I.createElement("animate",{attributeName:"r",begin:"0s",dur:"".concat(1.5/a,"s"),values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))}var Yr=function(){return Yr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yr.apply(this,arguments)};function sb(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",Yr({},Yr(Yr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:58,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:58}),{viewBox:"0 0 58 58"}),I.createElement("g",Yr({transform:"translate(2 1)",fillRule:"evenodd"},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("circle",{cx:42.601,cy:11.462,r:5},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:49.063,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:42.601,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:49.125,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:42.663,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:4.938,cy:27.063,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:11.399,cy:11.462,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",{cx:27,cy:5,r:5,fillOpacity:0},I.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"".concat(1.3/o,"s"),values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"}))))}var Gr=function(){return Gr=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Gr.apply(this,arguments)};function ib(e){var t,n,s,i,o,a=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),l=(n=e.stroke)!==null&&n!==void 0?n:"#fff",d=(s=e.strokeWidth)!==null&&s!==void 0?s:2,c=e.strokeOpacity;return I.createElement("svg",Gr({},Gr(Gr({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(i=e.height)!==null&&i!==void 0?i:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(o=e.width)!==null&&o!==void 0?o:38}),{viewBox:"0 0 38 38"}),I.createElement("defs",null,I.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"prefix__a"},I.createElement("stop",{stopOpacity:0,offset:"0%"}),I.createElement("stop",{stopOpacity:.631,offset:"63.146%"}),I.createElement("stop",{offset:"100%"}))),I.createElement("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},I.createElement("path",Gr({d:"M36 18c0-9.94-8.06-18-18-18"},{stroke:l,strokeWidth:d,strokeOpacity:c}),I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"})),I.createElement("circle",{cx:36,cy:18,r:1},I.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"".concat(.9/a,"s"),repeatCount:"indefinite"}))))}var kn=function(){return kn=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kn.apply(this,arguments)};function ob(e){var t,n,s,i,o=Number(String((t=e.speed)!==null&&t!==void 0?t:1)),a=(n=e.fill)!==null&&n!==void 0?n:"#fff",l=e.stroke,d=e.fillOpacity,c=e.strokeOpacity;return I.createElement("svg",kn({},kn(kn({},e),{className:e.className?"icon-loading ".concat(e.className):"icon-loading",fill:void 0,fillOpacity:void 0,height:(s=e.height)!==null&&s!==void 0?s:30,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:(i=e.width)!==null&&i!==void 0?i:120}),{viewBox:"0 0 120 30"}),I.createElement("circle",kn({cx:15,cy:15,r:15},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/o,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/o,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",kn({cx:60,cy:15,r:9},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:9,to:9,begin:"0s",dur:"".concat(.8/o,"s"),values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:.5,to:.5,begin:"0s",dur:"".concat(.8/o,"s"),values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),I.createElement("circle",kn({cx:105,cy:15,r:15},{fill:a,stroke:l,fillOpacity:d,strokeOpacity:c}),I.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:"".concat(.8/o,"s"),values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),I.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:"".concat(.8/o,"s"),values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}var ab=GC,lb=QC,cb=XC,db=JC,ub=ZC,fb=eb,pb=tb,mb=nb,hb=rb,vb=sb,gb=ib,xb=ob,og={Audio:ab,BallTriangle:lb,Bars:cb,Circles:db,Grid:ub,Hearts:fb,Oval:pb,Puff:mb,Rings:hb,SpinningCircles:vb,TailSpin:gb,ThreeDots:xb};const yb={title:"None",firstName:"",middleName:"",lastName:"",email:"",password:"",confirmPassword:"",termsconditions:"",userType:""},jb=()=>{const[e,t]=k.useState(yb),[n,s]=k.useState(!1),{loading:i,error:o}=_e(P=>({...P.auth})),{title:a,email:l,password:d,firstName:c,middleName:u,lastName:p,confirmPassword:g,termsconditions:N,userType:x}=e,b=Ke(),w=hn();k.useEffect(()=>{o&&ie.error(o)},[o]),k.useEffect(()=>{s(a!=="None"&&l&&d&&c&&u&&p&&g&&N&&x!=="")},[a,l,d,c,u,p,g,N,x]);const m=P=>{if(P.preventDefault(),d!==g)return ie.error("Password should match");n?b(Eo({formValue:e,navigate:w,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},v=P=>P.charAt(0).toUpperCase()+P.slice(1),h=P=>{const{name:T,value:O,type:_,checked:L}=P.target;t(_==="checkbox"?z=>({...z,[T]:L}):z=>({...z,[T]:T==="email"||T==="password"||T==="confirmPassword"?O:v(O)}))},j=P=>{t(T=>({...T,userType:P.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h6",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:j,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:j,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a,onChange:h,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:h,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&r.jsx(og.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Nb={email:"",password:""},Cb=()=>{const[e,t]=k.useState(Nb),{loading:n,error:s}=_e(u=>({...u.auth})),{email:i,password:o}=e,a=Ke(),l=hn();k.useEffect(()=>{s&&ie.error(s)},[s]);const d=u=>{u.preventDefault(),i&&o&&a(So({formValue:e,navigate:l,toast:ie}))},c=u=>{let{name:p,value:g}=u.target;t({...e,[p]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:o,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(og.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(le,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(le,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(tt,{})]})},Bs="/assets/samplepic-BM_cnzgz.jpg";var ag={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Yg,function(){return function(n){function s(o){if(i[o])return i[o].exports;var a=i[o]={exports:{},id:o,loaded:!1};return n[o].call(a.exports,a,a.exports,s),a.loaded=!0,a.exports}var i={};return s.m=n,s.c=i,s.p="",s(0)}([function(n,s,i){function o(N){return N&&N.__esModule?N:{default:N}}function a(N,x){if(!(N instanceof x))throw new TypeError("Cannot call a class as a function")}function l(N,x){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?N:x}function d(N,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);N.prototype=Object.create(x&&x.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(N,x):N.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function N(x,b){for(var w=0;w<b.length;w++){var m=b[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(x,m.key,m)}}return function(x,b,w){return b&&N(x.prototype,b),w&&N(x,w),x}}(),u=i(36),p=o(u),g=function(N){function x(b){a(this,x);var w=l(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,b));return w.state={files:[]},w}return d(x,N),c(x,[{key:"handleChange",value:function(b){for(var w=this,m=b.target.files,v=[],h=function(){var P=m[j],T=new FileReader;T.readAsDataURL(P),T.onload=function(){var O={name:P.name,type:P.type,size:Math.round(P.size/1e3)+" kB",base64:T.result,file:P};v.push(O),v.length==m.length&&(w.props.multiple?w.props.onDone(v):w.props.onDone(v[0]))}},j=0;j<m.length;j++)h()}},{key:"render",value:function(){return p.default.createElement("input",{type:"file",onChange:this.handleChange.bind(this),multiple:this.props.multiple})}}]),x}(p.default.Component);s.default=g,g.defaultProps={multiple:!1}},function(n,s){function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(h){if(g===setTimeout)return setTimeout(h,0);if((g===i||!g)&&setTimeout)return g=setTimeout,setTimeout(h,0);try{return g(h,0)}catch{try{return g.call(null,h,0)}catch{return g.call(this,h,0)}}}function l(h){if(N===clearTimeout)return clearTimeout(h);if((N===o||!N)&&clearTimeout)return N=clearTimeout,clearTimeout(h);try{return N(h)}catch{try{return N.call(null,h)}catch{return N.call(this,h)}}}function d(){m&&b&&(m=!1,b.length?w=b.concat(w):v=-1,w.length&&c())}function c(){if(!m){var h=a(d);m=!0;for(var j=w.length;j;){for(b=w,w=[];++v<j;)b&&b[v].run();v=-1,j=w.length}b=null,m=!1,l(h)}}function u(h,j){this.fun=h,this.array=j}function p(){}var g,N,x=n.exports={};(function(){try{g=typeof setTimeout=="function"?setTimeout:i}catch{g=i}try{N=typeof clearTimeout=="function"?clearTimeout:o}catch{N=o}})();var b,w=[],m=!1,v=-1;x.nextTick=function(h){var j=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)j[P-1]=arguments[P];w.push(new u(h,j)),w.length!==1||m||a(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={},x.on=p,x.addListener=p,x.once=p,x.off=p,x.removeListener=p,x.removeAllListeners=p,x.emit=p,x.prependListener=p,x.prependOnceListener=p,x.listeners=function(h){return[]},x.binding=function(h){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(h){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},function(n,s,i){(function(o){function a(d,c,u,p,g,N,x,b){if(l(c),!d){var w;if(c===void 0)w=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[u,p,g,N,x,b],v=0;w=new Error(c.replace(/%s/g,function(){return m[v++]})),w.name="Invariant Violation"}throw w.framesToPop=1,w}}var l=function(d){};o.env.NODE_ENV!=="production"&&(l=function(d){if(d===void 0)throw new Error("invariant requires an error message argument")}),n.exports=a}).call(s,i(1))},function(n,s,i){(function(o){var a=i(9),l=a;if(o.env.NODE_ENV!=="production"){var d=function(c){for(var u=arguments.length,p=Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];var N=0,x="Warning: "+c.replace(/%s/g,function(){return p[N++]});typeof console<"u"&&console.error(x);try{throw new Error(x)}catch{}};l=function(c,u){if(u===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(u.indexOf("Failed Composite propType: ")!==0&&!c){for(var p=arguments.length,g=Array(p>2?p-2:0),N=2;N<p;N++)g[N-2]=arguments[N];d.apply(void 0,[u].concat(g))}}}n.exports=l}).call(s,i(1))},function(n,s,i){(function(o){function a(j){if(o.env.NODE_ENV!=="production"&&w.call(j,"ref")){var P=Object.getOwnPropertyDescriptor(j,"ref").get;if(P&&P.isReactWarning)return!1}return j.ref!==void 0}function l(j){if(o.env.NODE_ENV!=="production"&&w.call(j,"key")){var P=Object.getOwnPropertyDescriptor(j,"key").get;if(P&&P.isReactWarning)return!1}return j.key!==void 0}function d(j,P){var T=function(){u||(u=!0,o.env.NODE_ENV!=="production"&&x(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",P))};T.isReactWarning=!0,Object.defineProperty(j,"key",{get:T,configurable:!0})}function c(j,P){var T=function(){p||(p=!0,o.env.NODE_ENV!=="production"&&x(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",P))};T.isReactWarning=!0,Object.defineProperty(j,"ref",{get:T,configurable:!0})}var u,p,g=i(6),N=i(7),x=i(3),b=i(8),w=Object.prototype.hasOwnProperty,m=i(15),v={key:!0,ref:!0,__self:!0,__source:!0},h=function(j,P,T,O,_,L,z){var H={$$typeof:m,type:j,key:P,ref:T,props:z,_owner:L};return o.env.NODE_ENV!=="production"&&(H._store={},b?(Object.defineProperty(H._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(H,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(H,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_})):(H._store.validated=!1,H._self=O,H._source=_),Object.freeze&&(Object.freeze(H.props),Object.freeze(H))),H};h.createElement=function(j,P,T){var O,_={},L=null,z=null,H=null,te=null;if(P!=null){a(P)&&(z=P.ref),l(P)&&(L=""+P.key),H=P.__self===void 0?null:P.__self,te=P.__source===void 0?null:P.__source;for(O in P)w.call(P,O)&&!v.hasOwnProperty(O)&&(_[O]=P[O])}var X=arguments.length-2;if(X===1)_.children=T;else if(X>1){for(var Z=Array(X),D=0;D<X;D++)Z[D]=arguments[D+2];o.env.NODE_ENV!=="production"&&Object.freeze&&Object.freeze(Z),_.children=Z}if(j&&j.defaultProps){var U=j.defaultProps;for(O in U)_[O]===void 0&&(_[O]=U[O])}if(o.env.NODE_ENV!=="production"&&(L||z)&&(typeof _.$$typeof>"u"||_.$$typeof!==m)){var Q=typeof j=="function"?j.displayName||j.name||"Unknown":j;L&&d(_,Q),z&&c(_,Q)}return h(j,L,z,H,te,N.current,_)},h.createFactory=function(j){var P=h.createElement.bind(null,j);return P.type=j,P},h.cloneAndReplaceKey=function(j,P){var T=h(j.type,P,j.ref,j._self,j._source,j._owner,j.props);return T},h.cloneElement=function(j,P,T){var O,_=g({},j.props),L=j.key,z=j.ref,H=j._self,te=j._source,X=j._owner;if(P!=null){a(P)&&(z=P.ref,X=N.current),l(P)&&(L=""+P.key);var Z;j.type&&j.type.defaultProps&&(Z=j.type.defaultProps);for(O in P)w.call(P,O)&&!v.hasOwnProperty(O)&&(P[O]===void 0&&Z!==void 0?_[O]=Z[O]:_[O]=P[O])}var D=arguments.length-2;if(D===1)_.children=T;else if(D>1){for(var U=Array(D),Q=0;Q<D;Q++)U[Q]=arguments[Q+2];_.children=U}return h(j.type,L,z,H,te,X,_)},h.isValidElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===m},n.exports=h}).call(s,i(1))},function(n,s){function i(o){for(var a=arguments.length-1,l="Minified React error #"+o+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+o,d=0;d<a;d++)l+="&args[]="+encodeURIComponent(arguments[d+1]);l+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var c=new Error(l);throw c.name="Invariant Violation",c.framesToPop=1,c}n.exports=i},function(n,s){/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function i(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function o(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var u={},p=0;p<10;p++)u["_"+String.fromCharCode(p)]=p;var g=Object.getOwnPropertyNames(u).map(function(x){return u[x]});if(g.join("")!=="0123456789")return!1;var N={};return"abcdefghijklmnopqrst".split("").forEach(function(x){N[x]=x}),Object.keys(Object.assign({},N)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var a=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;n.exports=o()?Object.assign:function(c,u){for(var p,g,N=i(c),x=1;x<arguments.length;x++){p=Object(arguments[x]);for(var b in p)l.call(p,b)&&(N[b]=p[b]);if(a){g=a(p);for(var w=0;w<g.length;w++)d.call(p,g[w])&&(N[g[w]]=p[g[w]])}}return N}},function(n,s){var i={current:null};n.exports=i},function(n,s,i){(function(o){var a=!1;if(o.env.NODE_ENV!=="production")try{Object.defineProperty({},"x",{get:function(){}}),a=!0}catch{}n.exports=a}).call(s,i(1))},function(n,s){function i(a){return function(){return a}}var o=function(){};o.thatReturns=i,o.thatReturnsFalse=i(!1),o.thatReturnsTrue=i(!0),o.thatReturnsNull=i(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(a){return a},n.exports=o},function(n,s,i){(function(o){function a(D){var U=Function.prototype.toString,Q=Object.prototype.hasOwnProperty,A=RegExp("^"+U.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var R=U.call(D);return A.test(R)}catch{return!1}}function l(D){var U=g(D);if(U){var Q=U.childIDs;N(D),Q.forEach(l)}}function d(D,U,Q){return`
in `+(D||"Unknown")+(U?" (at "+U.fileName.replace(/^.*[\\\/]/,"")+":"+U.lineNumber+")":Q?" (created by "+Q+")":"")}function c(D){return D==null?"#empty":typeof D=="string"||typeof D=="number"?"#text":typeof D.type=="string"?D.type:D.type.displayName||D.type.name||"Unknown"}function u(D){var U,Q=Z.getDisplayName(D),A=Z.getElement(D),R=Z.getOwnerID(D);return R&&(U=Z.getDisplayName(R)),o.env.NODE_ENV!=="production"&&P(A,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",D),d(Q,A&&A._source,U)}var p,g,N,x,b,w,m,v=i(5),h=i(7),j=i(2),P=i(3),T=typeof Array.from=="function"&&typeof Map=="function"&&a(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&a(Map.prototype.keys)&&typeof Set=="function"&&a(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&a(Set.prototype.keys);if(T){var O=new Map,_=new Set;p=function(D,U){O.set(D,U)},g=function(D){return O.get(D)},N=function(D){O.delete(D)},x=function(){return Array.from(O.keys())},b=function(D){_.add(D)},w=function(D){_.delete(D)},m=function(){return Array.from(_.keys())}}else{var L={},z={},H=function(D){return"."+D},te=function(D){return parseInt(D.substr(1),10)};p=function(D,U){var Q=H(D);L[Q]=U},g=function(D){var U=H(D);return L[U]},N=function(D){var U=H(D);delete L[U]},x=function(){return Object.keys(L).map(te)},b=function(D){var U=H(D);z[U]=!0},w=function(D){var U=H(D);delete z[U]},m=function(){return Object.keys(z).map(te)}}var X=[],Z={onSetChildren:function(D,U){var Q=g(D);Q||(o.env.NODE_ENV!=="production"?j(!1,"Item must have been set"):v("144")),Q.childIDs=U;for(var A=0;A<U.length;A++){var R=U[A],M=g(R);M||(o.env.NODE_ENV!=="production"?j(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):v("140")),M.childIDs==null&&typeof M.element=="object"&&M.element!=null&&(o.env.NODE_ENV!=="production"?j(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):v("141")),M.isMounted||(o.env.NODE_ENV!=="production"?j(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):v("71")),M.parentID==null&&(M.parentID=D),M.parentID!==D&&(o.env.NODE_ENV!=="production"?j(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",R,M.parentID,D):v("142",R,M.parentID,D))}},onBeforeMountComponent:function(D,U,Q){var A={element:U,parentID:Q,text:null,childIDs:[],isMounted:!1,updateCount:0};p(D,A)},onBeforeUpdateComponent:function(D,U){var Q=g(D);Q&&Q.isMounted&&(Q.element=U)},onMountComponent:function(D){var U=g(D);U||(o.env.NODE_ENV!=="production"?j(!1,"Item must have been set"):v("144")),U.isMounted=!0;var Q=U.parentID===0;Q&&b(D)},onUpdateComponent:function(D){var U=g(D);U&&U.isMounted&&U.updateCount++},onUnmountComponent:function(D){var U=g(D);if(U){U.isMounted=!1;var Q=U.parentID===0;Q&&w(D)}X.push(D)},purgeUnmountedComponents:function(){if(!Z._preventPurging){for(var D=0;D<X.length;D++){var U=X[D];l(U)}X.length=0}},isMounted:function(D){var U=g(D);return!!U&&U.isMounted},getCurrentStackAddendum:function(D){var U="";if(D){var Q=c(D),A=D._owner;U+=d(Q,D._source,A&&A.getName())}var R=h.current,M=R&&R._debugID;return U+=Z.getStackAddendumByID(M)},getStackAddendumByID:function(D){for(var U="";D;)U+=u(D),D=Z.getParentID(D);return U},getChildIDs:function(D){var U=g(D);return U?U.childIDs:[]},getDisplayName:function(D){var U=Z.getElement(D);return U?c(U):null},getElement:function(D){var U=g(D);return U?U.element:null},getOwnerID:function(D){var U=Z.getElement(D);return U&&U._owner?U._owner._debugID:null},getParentID:function(D){var U=g(D);return U?U.parentID:null},getSource:function(D){var U=g(D),Q=U?U.element:null,A=Q!=null?Q._source:null;return A},getText:function(D){var U=Z.getElement(D);return typeof U=="string"?U:typeof U=="number"?""+U:null},getUpdateCount:function(D){var U=g(D);return U?U.updateCount:0},getRootIDs:m,getRegisteredIDs:x,pushNonStandardWarningStack:function(D,U){if(typeof console.reactStack=="function"){var Q=[],A=h.current,R=A&&A._debugID;try{for(D&&Q.push({name:R?Z.getDisplayName(R):null,fileName:U?U.fileName:null,lineNumber:U?U.lineNumber:null});R;){var M=Z.getElement(R),B=Z.getParentID(R),W=Z.getOwnerID(R),K=W?Z.getDisplayName(W):null,Y=M&&M._source;Q.push({name:K,fileName:Y?Y.fileName:null,lineNumber:Y?Y.lineNumber:null}),R=B}}catch{}console.reactStack(Q)}},popNonStandardWarningStack:function(){typeof console.reactStackEnd=="function"&&console.reactStackEnd()}};n.exports=Z}).call(s,i(1))},function(n,s,i){(function(o){var a=function(){};if(o.env.NODE_ENV!=="production"){var l=function(d){for(var c=arguments.length,u=Array(c>1?c-1:0),p=1;p<c;p++)u[p-1]=arguments[p];var g=0,N="Warning: "+d.replace(/%s/g,function(){return u[g++]});typeof console<"u"&&console.warn(N);try{throw new Error(N)}catch{}};a=function(d,c){if(c===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!d){for(var u=arguments.length,p=Array(u>2?u-2:0),g=2;g<u;g++)p[g-2]=arguments[g];l.apply(void 0,[c].concat(p))}}}n.exports=a}).call(s,i(1))},function(n,s,i){(function(o){var a={};o.env.NODE_ENV!=="production"&&Object.freeze(a),n.exports=a}).call(s,i(1))},function(n,s){var i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=i},function(n,s,i){(function(o){function a(h,j,P){this.props=h,this.context=j,this.refs=N,this.updater=P||p}function l(h,j,P){this.props=h,this.context=j,this.refs=N,this.updater=P||p}function d(){}var c=i(5),u=i(6),p=i(17),g=i(8),N=i(12),x=i(2),b=i(11);if(a.prototype.isReactComponent={},a.prototype.setState=function(h,j){typeof h!="object"&&typeof h!="function"&&h!=null&&(o.env.NODE_ENV!=="production"?x(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):c("85")),this.updater.enqueueSetState(this,h),j&&this.updater.enqueueCallback(this,j,"setState")},a.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this),h&&this.updater.enqueueCallback(this,h,"forceUpdate")},o.env.NODE_ENV!=="production"){var w={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},m=function(h,j){g&&Object.defineProperty(a.prototype,h,{get:function(){b(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",j[0],j[1])}})};for(var v in w)w.hasOwnProperty(v)&&m(v,w[v])}d.prototype=a.prototype,l.prototype=new d,l.prototype.constructor=l,u(l.prototype,a.prototype),l.prototype.isPureReactComponent=!0,n.exports={Component:a,PureComponent:l}}).call(s,i(1))},function(n,s){var i=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103;n.exports=i},function(n,s,i){(function(o){function a(){if(g.current){var T=g.current.getName();if(T)return" Check the render method of `"+T+"`."}return""}function l(T){if(T!=null&&T.__source!==void 0){var O=T.__source,_=O.fileName.replace(/^.*[\\\/]/,""),L=O.lineNumber;return" Check your code at "+_+":"+L+"."}return""}function d(T){var O=a();if(!O){var _=typeof T=="string"?T:T.displayName||T.name;_&&(O=" Check the top-level render call using <"+_+">.")}return O}function c(T,O){if(T._store&&!T._store.validated&&T.key==null){T._store.validated=!0;var _=j.uniqueKey||(j.uniqueKey={}),L=d(O);if(!_[L]){_[L]=!0;var z="";T&&T._owner&&T._owner!==g.current&&(z=" It was passed a child from "+T._owner.getName()+"."),o.env.NODE_ENV!=="production"&&v(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',L,z,N.getCurrentStackAddendum(T))}}}function u(T,O){if(typeof T=="object"){if(Array.isArray(T))for(var _=0;_<T.length;_++){var L=T[_];x.isValidElement(L)&&c(L,O)}else if(x.isValidElement(T))T._store&&(T._store.validated=!0);else if(T){var z=m(T);if(z&&z!==T.entries)for(var H,te=z.call(T);!(H=te.next()).done;)x.isValidElement(H.value)&&c(H.value,O)}}}function p(T){var O=T.type;if(typeof O=="function"){var _=O.displayName||O.name;O.propTypes&&b(O.propTypes,T.props,"prop",_,T,null),typeof O.getDefaultProps=="function"&&(o.env.NODE_ENV!=="production"&&v(O.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}}var g=i(7),N=i(10),x=i(4),b=i(32),w=i(8),m=i(18),v=i(3),h=i(11),j={},P={createElement:function(T,O,_){var L=typeof T=="string"||typeof T=="function";if(!L&&typeof T!="function"&&typeof T!="string"){var z="";(T===void 0||typeof T=="object"&&T!==null&&Object.keys(T).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in.");var H=l(O);z+=H||a(),z+=N.getCurrentStackAddendum();var te=O!=null&&O.__source!==void 0?O.__source:null;N.pushNonStandardWarningStack(!0,te),o.env.NODE_ENV!=="production"&&v(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T==null?T:typeof T,z),N.popNonStandardWarningStack()}var X=x.createElement.apply(this,arguments);if(X==null)return X;if(L)for(var Z=2;Z<arguments.length;Z++)u(arguments[Z],T);return p(X),X},createFactory:function(T){var O=P.createElement.bind(null,T);return O.type=T,o.env.NODE_ENV!=="production"&&w&&Object.defineProperty(O,"type",{enumerable:!1,get:function(){return h(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:T}),T}}),O},cloneElement:function(T,O,_){for(var L=x.cloneElement.apply(this,arguments),z=2;z<arguments.length;z++)u(arguments[z],L.type);return p(L),L}};n.exports=P}).call(s,i(1))},function(n,s,i){(function(o){function a(c,u){if(o.env.NODE_ENV!=="production"){var p=c.constructor;o.env.NODE_ENV!=="production"&&l(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",u,u,p&&(p.displayName||p.name)||"ReactClass")}}var l=i(3),d={isMounted:function(c){return!1},enqueueCallback:function(c,u){},enqueueForceUpdate:function(c){a(c,"forceUpdate")},enqueueReplaceState:function(c,u){a(c,"replaceState")},enqueueSetState:function(c,u){a(c,"setState")}};n.exports=d}).call(s,i(1))},function(n,s){function i(l){var d=l&&(o&&l[o]||l[a]);if(typeof d=="function")return d}var o=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";n.exports=i},function(n,s,i){(function(o){function a(x){return x}function l(x,b,w){function m(A,R,M){for(var B in R)R.hasOwnProperty(B)&&o.env.NODE_ENV!=="production"&&p(typeof R[B]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",A.displayName||"ReactClass",g[M],B)}function v(A,R){var M=te.hasOwnProperty(R)?te[R]:null;U.hasOwnProperty(R)&&u(M==="OVERRIDE_BASE","ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",R),A&&u(M==="DEFINE_MANY"||M==="DEFINE_MANY_MERGED","ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",R)}function h(A,R){if(R){u(typeof R!="function","ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),u(!b(R),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var M=A.prototype,B=M.__reactAutoBindPairs;R.hasOwnProperty(N)&&X.mixins(A,R.mixins);for(var W in R)if(R.hasOwnProperty(W)&&W!==N){var K=R[W],Y=M.hasOwnProperty(W);if(v(Y,W),X.hasOwnProperty(W))X[W](A,K);else{var ee=te.hasOwnProperty(W),re=typeof K=="function",ne=re&&!ee&&!Y&&R.autobind!==!1;if(ne)B.push(W,K),M[W]=K;else if(Y){var se=te[W];u(ee&&(se==="DEFINE_MANY_MERGED"||se==="DEFINE_MANY"),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",se,W),se==="DEFINE_MANY_MERGED"?M[W]=T(M[W],K):se==="DEFINE_MANY"&&(M[W]=O(M[W],K))}else M[W]=K,o.env.NODE_ENV!=="production"&&typeof K=="function"&&R.displayName&&(M[W].displayName=R.displayName+"_"+W)}}}else if(o.env.NODE_ENV!=="production"){var ce=typeof R,de=ce==="object"&&R!==null;o.env.NODE_ENV!=="production"&&p(de,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",A.displayName||"ReactClass",R===null?null:ce)}}function j(A,R){if(R)for(var M in R){var B=R[M];if(R.hasOwnProperty(M)){var W=M in X;u(!W,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',M);var K=M in A;u(!K,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",M),A[M]=B}}}function P(A,R){u(A&&R&&typeof A=="object"&&typeof R=="object","mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var M in R)R.hasOwnProperty(M)&&(u(A[M]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",M),A[M]=R[M]);return A}function T(A,R){return function(){var M=A.apply(this,arguments),B=R.apply(this,arguments);if(M==null)return B;if(B==null)return M;var W={};return P(W,M),P(W,B),W}}function O(A,R){return function(){A.apply(this,arguments),R.apply(this,arguments)}}function _(A,R){var M=R.bind(A);if(o.env.NODE_ENV!=="production"){M.__reactBoundContext=A,M.__reactBoundMethod=R,M.__reactBoundArguments=null;var B=A.constructor.displayName,W=M.bind;M.bind=function(K){for(var Y=arguments.length,ee=Array(Y>1?Y-1:0),re=1;re<Y;re++)ee[re-1]=arguments[re];if(K!==A&&K!==null)o.env.NODE_ENV!=="production"&&p(!1,"bind(): React component methods may only be bound to the component instance. See %s",B);else if(!ee.length)return o.env.NODE_ENV!=="production"&&p(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",B),M;var ne=W.apply(M,arguments);return ne.__reactBoundContext=A,ne.__reactBoundMethod=R,ne.__reactBoundArguments=ee,ne}}return M}function L(A){for(var R=A.__reactAutoBindPairs,M=0;M<R.length;M+=2){var B=R[M],W=R[M+1];A[B]=_(A,W)}}function z(A){var R=function(B,W,K){o.env.NODE_ENV!=="production"&&p(this instanceof R,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&L(this),this.props=B,this.context=W,this.refs=c,this.updater=K||w,this.state=null;var Y=this.getInitialState?this.getInitialState():null;o.env.NODE_ENV!=="production"&&Y===void 0&&this.getInitialState._isMockFunction&&(Y=null),u(typeof Y=="object"&&!Array.isArray(Y),"%s.getInitialState(): must return an object or null",R.displayName||"ReactCompositeComponent"),this.state=Y};R.prototype=new Q,R.prototype.constructor=R,R.prototype.__reactAutoBindPairs=[],H.forEach(h.bind(null,R)),h(R,Z),h(R,A),h(R,D),R.getDefaultProps&&(R.defaultProps=R.getDefaultProps()),o.env.NODE_ENV!=="production"&&(R.getDefaultProps&&(R.getDefaultProps.isReactClassApproved={}),R.prototype.getInitialState&&(R.prototype.getInitialState.isReactClassApproved={})),u(R.prototype.render,"createClass(...): Class specification must implement a `render` method."),o.env.NODE_ENV!=="production"&&(p(!R.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",A.displayName||"A component"),p(!R.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",A.displayName||"A component"));for(var M in te)R.prototype[M]||(R.prototype[M]=null);return R}var H=[],te={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},X={displayName:function(A,R){A.displayName=R},mixins:function(A,R){if(R)for(var M=0;M<R.length;M++)h(A,R[M])},childContextTypes:function(A,R){o.env.NODE_ENV!=="production"&&m(A,R,"childContext"),A.childContextTypes=d({},A.childContextTypes,R)},contextTypes:function(A,R){o.env.NODE_ENV!=="production"&&m(A,R,"context"),A.contextTypes=d({},A.contextTypes,R)},getDefaultProps:function(A,R){A.getDefaultProps?A.getDefaultProps=T(A.getDefaultProps,R):A.getDefaultProps=R},propTypes:function(A,R){o.env.NODE_ENV!=="production"&&m(A,R,"prop"),A.propTypes=d({},A.propTypes,R)},statics:function(A,R){j(A,R)},autobind:function(){}},Z={componentDidMount:function(){this.__isMounted=!0}},D={componentWillUnmount:function(){this.__isMounted=!1}},U={replaceState:function(A,R){this.updater.enqueueReplaceState(this,A,R)},isMounted:function(){return o.env.NODE_ENV!=="production"&&(p(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},Q=function(){};return d(Q.prototype,x.prototype,U),z}var d=i(6),c=i(12),u=i(2);if(o.env.NODE_ENV!=="production")var p=i(3);var g,N="mixins";g=o.env.NODE_ENV!=="production"?{prop:"prop",context:"context",childContext:"child context"}:{},n.exports=l}).call(s,i(1))},function(n,s,i){(function(o){function a(p,g,N,x,b){if(o.env.NODE_ENV!=="production"){for(var w in p)if(p.hasOwnProperty(w)){var m;try{l(typeof p[w]=="function","%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",x||"React class",N,w),m=p[w](g,w,x,N,null,c)}catch(h){m=h}if(d(!m||m instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",N,w,typeof m),m instanceof Error&&!(m.message in u)){u[m.message]=!0;var v=b?b():"";d(!1,"Failed %s type: %s%s",N,m.message,v??"")}}}}if(o.env.NODE_ENV!=="production")var l=i(2),d=i(3),c=i(13),u={};n.exports=a}).call(s,i(1))},function(n,s,i){var o=i(22);n.exports=function(a){var l=!1;return o(a,l)}},function(n,s,i){(function(o){var a=i(9),l=i(2),d=i(3),c=i(13),u=i(20);n.exports=function(p,g){function N(B){var W=B&&(Q&&B[Q]||B[A]);if(typeof W=="function")return W}function x(B,W){return B===W?B!==0||1/B===1/W:B!==B&&W!==W}function b(B){this.message=B,this.stack=""}function w(B){function W(re,ne,se,ce,de,ge,Be){if(ce=ce||R,ge=ge||se,Be!==c){if(g)l(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if(o.env.NODE_ENV!=="production"&&typeof console<"u"){var Ct=ce+":"+se;!K[Ct]&&Y<3&&(d(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",ge,ce),K[Ct]=!0,Y++)}}return ne[se]==null?re?new b(ne[se]===null?"The "+de+" `"+ge+"` is marked as required "+("in `"+ce+"`, but its value is `null`."):"The "+de+" `"+ge+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:B(ne,se,ce,de,ge)}if(o.env.NODE_ENV!=="production")var K={},Y=0;var ee=W.bind(null,!1);return ee.isRequired=W.bind(null,!0),ee}function m(B){function W(K,Y,ee,re,ne,se){var ce=K[Y],de=X(ce);if(de!==B){var ge=Z(ce);return new b("Invalid "+re+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+ee+"`, expected ")+("`"+B+"`."))}return null}return w(W)}function v(){return w(a.thatReturnsNull)}function h(B){function W(K,Y,ee,re,ne){if(typeof B!="function")return new b("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var se=K[Y];if(!Array.isArray(se)){var ce=X(se);return new b("Invalid "+re+" `"+ne+"` of type "+("`"+ce+"` supplied to `"+ee+"`, expected an array."))}for(var de=0;de<se.length;de++){var ge=B(se,de,ee,re,ne+"["+de+"]",c);if(ge instanceof Error)return ge}return null}return w(W)}function j(){function B(W,K,Y,ee,re){var ne=W[K];if(!p(ne)){var se=X(ne);return new b("Invalid "+ee+" `"+re+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return w(B)}function P(B){function W(K,Y,ee,re,ne){if(!(K[Y]instanceof B)){var se=B.name||R,ce=U(K[Y]);return new b("Invalid "+re+" `"+ne+"` of type "+("`"+ce+"` supplied to `"+ee+"`, expected ")+("instance of `"+se+"`."))}return null}return w(W)}function T(B){function W(K,Y,ee,re,ne){for(var se=K[Y],ce=0;ce<B.length;ce++)if(x(se,B[ce]))return null;var de=JSON.stringify(B);return new b("Invalid "+re+" `"+ne+"` of value `"+se+"` "+("supplied to `"+ee+"`, expected one of "+de+"."))}return Array.isArray(B)?w(W):(o.env.NODE_ENV!=="production"&&d(!1,"Invalid argument supplied to oneOf, expected an instance of array."),a.thatReturnsNull)}function O(B){function W(K,Y,ee,re,ne){if(typeof B!="function")return new b("Property `"+ne+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var se=K[Y],ce=X(se);if(ce!=="object")return new b("Invalid "+re+" `"+ne+"` of type "+("`"+ce+"` supplied to `"+ee+"`, expected an object."));for(var de in se)if(se.hasOwnProperty(de)){var ge=B(se,de,ee,re,ne+"."+de,c);if(ge instanceof Error)return ge}return null}return w(W)}function _(B){function W(ee,re,ne,se,ce){for(var de=0;de<B.length;de++){var ge=B[de];if(ge(ee,re,ne,se,ce,c)==null)return null}return new b("Invalid "+se+" `"+ce+"` supplied to "+("`"+ne+"`."))}if(!Array.isArray(B))return o.env.NODE_ENV!=="production"&&d(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),a.thatReturnsNull;for(var K=0;K<B.length;K++){var Y=B[K];if(typeof Y!="function")return d(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",D(Y),K),a.thatReturnsNull}return w(W)}function L(){function B(W,K,Y,ee,re){return H(W[K])?null:new b("Invalid "+ee+" `"+re+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return w(B)}function z(B){function W(K,Y,ee,re,ne){var se=K[Y],ce=X(se);if(ce!=="object")return new b("Invalid "+re+" `"+ne+"` of type `"+ce+"` "+("supplied to `"+ee+"`, expected `object`."));for(var de in B){var ge=B[de];if(ge){var Be=ge(se,de,ee,re,ne+"."+de,c);if(Be)return Be}}return null}return w(W)}function H(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(H);if(B===null||p(B))return!0;var W=N(B);if(!W)return!1;var K,Y=W.call(B);if(W!==B.entries){for(;!(K=Y.next()).done;)if(!H(K.value))return!1}else for(;!(K=Y.next()).done;){var ee=K.value;if(ee&&!H(ee[1]))return!1}return!0;default:return!1}}function te(B,W){return B==="symbol"||W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol}function X(B){var W=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":te(W,B)?"symbol":W}function Z(B){if(typeof B>"u"||B===null)return""+B;var W=X(B);if(W==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return W}function D(B){var W=Z(B);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(B){return B.constructor&&B.constructor.name?B.constructor.name:R}var Q=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator",R="<<anonymous>>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:v(),arrayOf:h,element:j(),instanceOf:P,node:L(),objectOf:O,oneOf:T,oneOfType:_,shape:z};return b.prototype=Error.prototype,M.checkPropTypes=u,M.PropTypes=M,M}}).call(s,i(1))},function(n,s){function i(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(p){return c[p]});return"$"+u}function o(l){var d=/(=0|=2)/g,c={"=0":"=","=2":":"},u=l[0]==="."&&l[1]==="$"?l.substring(2):l.substring(1);return(""+u).replace(d,function(p){return c[p]})}var a={escape:i,unescape:o};n.exports=a},function(n,s,i){(function(o){var a=i(5),l=i(2),d=function(m){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,m),h}return new v(m)},c=function(m,v){var h=this;if(h.instancePool.length){var j=h.instancePool.pop();return h.call(j,m,v),j}return new h(m,v)},u=function(m,v,h){var j=this;if(j.instancePool.length){var P=j.instancePool.pop();return j.call(P,m,v,h),P}return new j(m,v,h)},p=function(m,v,h,j){var P=this;if(P.instancePool.length){var T=P.instancePool.pop();return P.call(T,m,v,h,j),T}return new P(m,v,h,j)},g=function(m){var v=this;m instanceof v||(o.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):a("25")),m.destructor(),v.instancePool.length<v.poolSize&&v.instancePool.push(m)},N=10,x=d,b=function(m,v){var h=m;return h.instancePool=[],h.getPooled=v||x,h.poolSize||(h.poolSize=N),h.release=g,h},w={addPoolingTo:b,oneArgumentPooler:d,twoArgumentPooler:c,threeArgumentPooler:u,fourArgumentPooler:p};n.exports=w}).call(s,i(1))},function(n,s,i){(function(o){var a=i(6),l=i(14),d=i(26),c=i(27),u=i(4),p=i(29),g=i(31),N=i(33),x=i(34),b=u.createElement,w=u.createFactory,m=u.cloneElement;if(o.env.NODE_ENV!=="production"){var v=i(11),h=i(8),j=i(16),P=!1;b=j.createElement,w=j.createFactory,m=j.cloneElement}var T=a,O=function(X){return X};if(o.env.NODE_ENV!=="production"){var _=!1,L=!1;T=function(){return v(_,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),_=!0,a.apply(null,arguments)},O=function(X){return v(L,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),L=!0,X}}var z={Children:{map:d.map,forEach:d.forEach,count:d.count,toArray:d.toArray,only:x},Component:l.Component,PureComponent:l.PureComponent,createElement:b,cloneElement:m,isValidElement:u.isValidElement,PropTypes:p,createClass:N,createFactory:w,createMixin:O,DOM:c,version:g,__spread:T};if(o.env.NODE_ENV!=="production"){var H=!1;h&&(Object.defineProperty(z,"PropTypes",{get:function(){return v(P,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),P=!0,p}}),Object.defineProperty(z,"createClass",{get:function(){return v(H,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),H=!0,N}})),z.DOM={};var te=!1;Object.keys(c).forEach(function(X){z.DOM[X]=function(){return te||(v(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",X),te=!0),c[X].apply(c,arguments)}})}n.exports=z}).call(s,i(1))},function(n,s,i){function o(_){return(""+_).replace(T,"$&/")}function a(_,L){this.func=_,this.context=L,this.count=0}function l(_,L,z){var H=_.func,te=_.context;H.call(te,L,_.count++)}function d(_,L,z){if(_==null)return _;var H=a.getPooled(L,z);h(_,l,H),a.release(H)}function c(_,L,z,H){this.result=_,this.keyPrefix=L,this.func=z,this.context=H,this.count=0}function u(_,L,z){var H=_.result,te=_.keyPrefix,X=_.func,Z=_.context,D=X.call(Z,L,_.count++);Array.isArray(D)?p(D,H,z,v.thatReturnsArgument):D!=null&&(m.isValidElement(D)&&(D=m.cloneAndReplaceKey(D,te+(!D.key||L&&L.key===D.key?"":o(D.key)+"/")+z)),H.push(D))}function p(_,L,z,H,te){var X="";z!=null&&(X=o(z)+"/");var Z=c.getPooled(L,X,H,te);h(_,u,Z),c.release(Z)}function g(_,L,z){if(_==null)return _;var H=[];return p(_,H,null,L,z),H}function N(_,L,z){return null}function x(_,L){return h(_,N,null)}function b(_){var L=[];return p(_,L,null,v.thatReturnsArgument),L}var w=i(24),m=i(4),v=i(9),h=i(35),j=w.twoArgumentPooler,P=w.fourArgumentPooler,T=/\/+/g;a.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},w.addPoolingTo(a,j),c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},w.addPoolingTo(c,P);var O={forEach:d,map:g,mapIntoWithKeyPrefixInternal:p,count:x,toArray:b};n.exports=O},function(n,s,i){(function(o){var a=i(4),l=a.createFactory;if(o.env.NODE_ENV!=="production"){var d=i(16);l=d.createFactory}var c={a:l("a"),abbr:l("abbr"),address:l("address"),area:l("area"),article:l("article"),aside:l("aside"),audio:l("audio"),b:l("b"),base:l("base"),bdi:l("bdi"),bdo:l("bdo"),big:l("big"),blockquote:l("blockquote"),body:l("body"),br:l("br"),button:l("button"),canvas:l("canvas"),caption:l("caption"),cite:l("cite"),code:l("code"),col:l("col"),colgroup:l("colgroup"),data:l("data"),datalist:l("datalist"),dd:l("dd"),del:l("del"),details:l("details"),dfn:l("dfn"),dialog:l("dialog"),div:l("div"),dl:l("dl"),dt:l("dt"),em:l("em"),embed:l("embed"),fieldset:l("fieldset"),figcaption:l("figcaption"),figure:l("figure"),footer:l("footer"),form:l("form"),h1:l("h1"),h2:l("h2"),h3:l("h3"),h4:l("h4"),h5:l("h5"),h6:l("h6"),head:l("head"),header:l("header"),hgroup:l("hgroup"),hr:l("hr"),html:l("html"),i:l("i"),iframe:l("iframe"),img:l("img"),input:l("input"),ins:l("ins"),kbd:l("kbd"),keygen:l("keygen"),label:l("label"),legend:l("legend"),li:l("li"),link:l("link"),main:l("main"),map:l("map"),mark:l("mark"),menu:l("menu"),menuitem:l("menuitem"),meta:l("meta"),meter:l("meter"),nav:l("nav"),noscript:l("noscript"),object:l("object"),ol:l("ol"),optgroup:l("optgroup"),option:l("option"),output:l("output"),p:l("p"),param:l("param"),picture:l("picture"),pre:l("pre"),progress:l("progress"),q:l("q"),rp:l("rp"),rt:l("rt"),ruby:l("ruby"),s:l("s"),samp:l("samp"),script:l("script"),section:l("section"),select:l("select"),small:l("small"),source:l("source"),span:l("span"),strong:l("strong"),style:l("style"),sub:l("sub"),summary:l("summary"),sup:l("sup"),table:l("table"),tbody:l("tbody"),td:l("td"),textarea:l("textarea"),tfoot:l("tfoot"),th:l("th"),thead:l("thead"),time:l("time"),title:l("title"),tr:l("tr"),track:l("track"),u:l("u"),ul:l("ul"),var:l("var"),video:l("video"),wbr:l("wbr"),circle:l("circle"),clipPath:l("clipPath"),defs:l("defs"),ellipse:l("ellipse"),g:l("g"),image:l("image"),line:l("line"),linearGradient:l("linearGradient"),mask:l("mask"),path:l("path"),pattern:l("pattern"),polygon:l("polygon"),polyline:l("polyline"),radialGradient:l("radialGradient"),rect:l("rect"),stop:l("stop"),svg:l("svg"),text:l("text"),tspan:l("tspan")};n.exports=c}).call(s,i(1))},function(n,s,i){(function(o){var a={};o.env.NODE_ENV!=="production"&&(a={prop:"prop",context:"context",childContext:"child context"}),n.exports=a}).call(s,i(1))},function(n,s,i){var o=i(4),a=o.isValidElement,l=i(21);n.exports=l(a)},function(n,s){var i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";n.exports=i},function(n,s){n.exports="15.6.1"},function(n,s,i){(function(o){function a(x,b,w,m,v,h){for(var j in x)if(x.hasOwnProperty(j)){var P;try{typeof x[j]!="function"&&(o.env.NODE_ENV!=="production"?p(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",m||"React class",c[w],j):d("84",m||"React class",c[w],j)),P=x[j](b,j,m,w,null,u)}catch(O){P=O}if(o.env.NODE_ENV!=="production"&&g(!P||P instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",m||"React class",c[w],j,typeof P),P instanceof Error&&!(P.message in N)){N[P.message]=!0;var T="";o.env.NODE_ENV!=="production"&&(l||(l=i(10)),h!==null?T=l.getStackAddendumByID(h):v!==null&&(T=l.getCurrentStackAddendum(v))),o.env.NODE_ENV!=="production"&&g(!1,"Failed %s type: %s%s",w,P.message,T)}}}var l,d=i(5),c=i(28),u=i(30),p=i(2),g=i(3);typeof o<"u"&&o.env&&o.env.NODE_ENV==="test"&&(l=i(10));var N={};n.exports=a}).call(s,i(1))},function(n,s,i){var o=i(14),a=o.Component,l=i(4),d=l.isValidElement,c=i(17),u=i(19);n.exports=u(a,d,c)},function(n,s,i){(function(o){function a(u){return d.isValidElement(u)||(o.env.NODE_ENV!=="production"?c(!1,"React.Children.only expected to receive a single React element child."):l("143")),u}var l=i(5),d=i(4),c=i(2);n.exports=a}).call(s,i(1))},function(n,s,i){(function(o){function a(h,j){return h&&typeof h=="object"&&h.key!=null?x.escape(h.key):j.toString(36)}function l(h,j,P,T){var O=typeof h;if(O!=="undefined"&&O!=="boolean"||(h=null),h===null||O==="string"||O==="number"||O==="object"&&h.$$typeof===p)return P(T,h,j===""?w+a(h,0):j),1;var _,L,z=0,H=j===""?w:j+m;if(Array.isArray(h))for(var te=0;te<h.length;te++)_=h[te],L=H+a(_,te),z+=l(_,L,P,T);else{var X=g(h);if(X){var Z,D=X.call(h);if(X!==h.entries)for(var U=0;!(Z=D.next()).done;)_=Z.value,L=H+a(_,U++),z+=l(_,L,P,T);else{if(o.env.NODE_ENV!=="production"){var Q="";if(u.current){var A=u.current.getName();A&&(Q=" Check the render method of `"+A+"`.")}o.env.NODE_ENV!=="production"&&b(v,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",Q),v=!0}for(;!(Z=D.next()).done;){var R=Z.value;R&&(_=R[1],L=H+x.escape(R[0])+m+a(_,0),z+=l(_,L,P,T))}}}else if(O==="object"){var M="";if(o.env.NODE_ENV!=="production"&&(M=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",h._isReactElement&&(M=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),u.current)){var B=u.current.getName();B&&(M+=" Check the render method of `"+B+"`.")}var W=String(h);o.env.NODE_ENV!=="production"?N(!1,"Objects are not valid as a React child (found: %s).%s",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,M):c("31",W==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":W,M)}}return z}function d(h,j,P){return h==null?0:l(h,"",j,P)}var c=i(5),u=i(7),p=i(15),g=i(18),N=i(2),x=i(23),b=i(3),w=".",m=":",v=!1;n.exports=d}).call(s,i(1))},function(n,s,i){n.exports=i(25)}])})})(ag);var bb=ag.exports;const Na=wi(bb),lg=()=>{const[e,t]=k.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting"),e==="Accounting"&&t("IAB"),e==="IAB"&&t("IAB")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images"),e==="IAB"&&t("Accounting")},i=Ke(),{status:o,error:a}=_e(f=>f.property),{user:l}=_e(f=>({...f.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=k.useState({propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",TradesinRenovations:[{title:"Planning & Design",price:"0"},{title:"Demolition & Cleanup",price:"0"},{title:"Framing",price:"0"},{title:"Rough-in Services",price:"0"},{title:"Structural Repairs",price:"0"},{title:"Insulation & Drywall",price:"0"},{title:"Cabinetry & Countertops",price:"0"},{title:"Fixtures & Appliances",price:"0"},{title:"Flooring and Tiling",price:"0"},{title:"Plumbing",price:"0"},{title:"Electrical",price:"0"},{title:"HVAC",price:"0"},{title:"Painting",price:"0"},{title:"Interior Finishes",price:"0"},{title:"Exterior Work",price:"0"},{title:"Final Inspections",price:"0"},{title:"Punch List",price:"0"},{title:"Staging",price:"0"}],IAB:[{title:"IAB Title",URL:"Please enter URL"}],files:[{title:"",file:""}]}),[p,g]=k.useState(!1),N=(f,y)=>{console.log("File received:",f);const C=[...c.images];C[y].file=f.base64,u({...c,images:C})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},b=f=>{const y=c.images.filter((C,F)=>F!==f);u({...c,images:y})},w=(f,y)=>{const C=[...c.images];C[f].title=y.target.value,u({...c,images:C})},m=(f,y,C)=>{const{name:F,value:q}=f.target;if(C==="propertyTaxInfo"){const G=[...c.propertyTaxInfo];G[y][F]=q,u({...c,propertyTaxInfo:G})}else u({...c,[F]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=f=>{const y=c.propertyTaxInfo.filter((C,F)=>F!==f);u({...c,propertyTaxInfo:y})},j=()=>{u(f=>({...f,costPaidAtoB:[...f.costPaidAtoB,{title:"",price:""}]}))},P=f=>{const y=c.costPaidAtoB.filter((C,F)=>F!==f);u(C=>({...C,costPaidAtoB:y}))},T=(f,y,C)=>{const F=[...c.costPaidAtoB];F[f][y]=C,u(q=>({...q,costPaidAtoB:F}))},O=(f,y)=>{let C=f.target.value;if(C=C.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(C)||C===""){const q=c.costPaidAtoB.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,costPaidAtoB:q})}},_=()=>{const f=c.costPaidAtoB.reduce((C,F)=>{const q=parseFloat(F.price)||0;return C+q},0),y=parseFloat(c.purchaseCost)||0;return f+y},L=()=>{u(f=>({...f,credits:[...f.credits,{title:"",price:""}]}))},z=f=>{const y=c.credits.filter((C,F)=>F!==f);u(C=>({...C,credits:y}))},H=(f,y,C)=>{const F=[...c.credits];F[f][y]=C,u(q=>({...q,credits:F}))},te=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.credits.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,credits:q})}else{const q=c.credits.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,credits:q})}},X=()=>c.credits.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),Z=()=>{const f=c.costPaidAtoB.reduce((F,q)=>{const G=parseFloat(q.price)||0;return F+G},0),y=c.credits.reduce((F,q)=>{const G=parseFloat(q.price)||0;return F+G},0),C=parseFloat(c.purchaseCost)||0;return f+y+C},D=()=>{u(f=>({...f,cashAdjustments:[...f.cashAdjustments,{title:"",price:""}]}))},U=f=>{const y=c.cashAdjustments.filter((C,F)=>F!==f);u(C=>({...C,cashAdjustments:y}))},Q=(f,y,C)=>{const F=[...c.cashAdjustments];F[f][y]=C,u(q=>({...q,cashAdjustments:F}))},A=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.cashAdjustments.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,cashAdjustments:q})}},R=()=>c.cashAdjustments.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),M=()=>{const f=R(),y=X(),C=_();return f+y+C},B=()=>{u(f=>({...f,incidentalCost:[...f.incidentalCost,{title:"",price:""}]}))},W=f=>{const y=c.incidentalCost.filter((C,F)=>F!==f);u(C=>({...C,incidentalCost:y}))},K=(f,y,C)=>{const F=[...c.incidentalCost];F[f][y]=C,u(q=>({...q,incidentalCost:F}))},Y=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.incidentalCost.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),re=()=>{u(f=>({...f,carryCosts:[...f.carryCosts,{title:"",price:""}]}))},ne=f=>{const y=c.carryCosts.filter((C,F)=>F!==f);u(C=>({...C,carryCosts:y}))},se=(f,y,C)=>{const F=[...c.carryCosts];F[f][y]=C,u(q=>({...q,carryCosts:F}))},ce=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.carryCosts.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,carryCosts:q})}},de=()=>c.carryCosts.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),ge=()=>{u(f=>({...f,renovationCost:[...f.renovationCost,{title:"",price:""}]}))},Be=f=>{const y=c.renovationCost.filter((C,F)=>F!==f);u(C=>({...C,renovationCost:y}))},Ct=(f,y,C)=>{const F=[...c.renovationCost];F[f][y]=C,u(q=>({...q,renovationCost:F}))},zt=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.renovationCost.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,renovationCost:q})}},he=()=>c.renovationCost.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),$t=()=>{const f=ee(),y=de(),C=he();return f+y+C},Ye=()=>{const f=$t(),y=M();return f+y},Qn=()=>{u(f=>({...f,costPaidOutofClosing:[...f.costPaidOutofClosing,{title:"",price:""}]}))},Zt=f=>{const y=c.costPaidOutofClosing.filter((C,F)=>F!==f);u(C=>({...C,costPaidOutofClosing:y}))},ys=(f,y,C)=>{const F=[...c.costPaidOutofClosing];F[f][y]=C,u(q=>({...q,costPaidOutofClosing:F}))},js=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.costPaidOutofClosing.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,costPaidOutofClosing:q})}},Xn=()=>c.costPaidOutofClosing.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),Wt=()=>{const f=c.sellingPriceBtoC,y=Xn();return f-y},gn=()=>{u(f=>({...f,adjustments:[...f.adjustments,{title:"",price:""}]}))},Ut=f=>{const y=c.adjustments.filter((C,F)=>F!==f);u(C=>({...C,adjustments:y}))},fe=(f,y,C)=>{const F=[...c.adjustments];F[f][y]=C,u(q=>({...q,adjustments:F}))},qt=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.adjustments.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,adjustments:q})}else{const q=c.adjustments.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),Li=()=>{const f=Wt(),y=xn();return f+y},Ns=()=>{u(f=>({...f,incomestatement:[...f.incomestatement,{title:"",price:""}]}))},Bi=f=>{const y=c.incomestatement.filter((C,F)=>F!==f);u(C=>({...C,incomestatement:y}))},sl=(f,y,C)=>{const F=[...c.incomestatement];F[f][y]=C,u(q=>({...q,incomestatement:F}))},il=(f,y)=>{const C=f.target.value;if(/^\d*\.?\d*$/.test(C)||C===""){const q=c.incomestatement.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((f,y)=>{const C=parseFloat(y.price);return f+(isNaN(C)?0:C)},0),Jn=()=>{const f=Cs(),y=Wt();return f+y},Zn=()=>{const f=isNaN(parseFloat(Jn()))?0:parseFloat(Jn()),y=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),C=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),F=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),G=isNaN(parseFloat(Ye()))?0:parseFloat(Ye());return f+y+C+F+q-G},en=()=>{const f=Zn(),y=c.FinancingCostClosingCost;return f-y},Er=()=>en(),bs=()=>{var f,y,C,F,q,G;if(c.address&&c.city&&c.state&&c.county&&c.zip&&c.parcel&&c.subdivision&&c.legal&&c.costpersqft&&c.propertyType&&c.lotacres&&c.yearBuild&&c.totallivingsqft&&c.beds&&c.baths&&c.stories&&c.garage&&c.garagesqft&&c.poolspa&&c.fireplaces&&c.ac&&c.heating&&c.buildingstyle&&c.sitevacant&&c.extwall&&c.roofing&&c.totalSqft&&c.renovationRisk&&c.closeDateAtoB&&c.closeDateBtoC&&c.purchaseCost&&c.sellingPriceBtoC&&c.fundspriortoclosing&&c.shorttermrental&&c.OtherIncome&&c.InsuranceClaim&&c.LongTermRental&&c.FinancingCostClosingCost&&c.TradesinRenovations){const oe=Er(),$i=_(),pl=Z(),ml=R(),hl=ee(),vl=X(),gl=M(),xl=de(),yl=he(),jl=$t(),Nl=Ye(),Cl=Xn(),bl=xn(),Bg=Li(),Mg=Wt(),zg=Wt(),$g=Cs(),Wg=Jn(),Ug=Zn(),qg=en(),wl={...c,userfirstname:(f=l==null?void 0:l.result)==null?void 0:f.firstName,usermiddlename:(y=l==null?void 0:l.result)==null?void 0:y.middleName,userlastname:(C=l==null?void 0:l.result)==null?void 0:C.lastName,usertitle:(F=l==null?void 0:l.result)==null?void 0:F.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(G=l==null?void 0:l.result)==null?void 0:G.userId,totalPurchaseCosts:$i,totalcredits:vl,totalPurchaseCostsaftercredits:pl,totalcashAdjustments:ml,totalcashrequiredonsettlement:gl,totalincidentalCost:hl,totalcarryCosts:xl,totalrenovationCost:yl,totalRenovationsandHoldingCost:jl,totalCoststoBuyAtoB:Nl,totalcostPaidOutofClosing:Cl,totaladjustments:bl,fundsavailablefordistribution:Bg,grossproceedsperHUD:Mg,totalCosttoSellBtoC:zg,totalincomestatement:$g,netBtoCsalevalue:Wg,netprofitbeforefinancingcosts:Ug,NetProfit:qg,rateofreturn:oe};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?wl.propertyTaxInfo=c.propertyTaxInfo:wl.propertyTaxInfo=[],i(Ao(wl)),g(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};k.useEffect(()=>{p&&(o==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):o==="failed"&&(ie.error(`Failed to submit: ${a}`,{position:"top-right",autoClose:3e3}),g(!1)))},[o,a,p]);const[ol,Mi]=k.useState("0 days"),zi=(f,y)=>{if(f&&y){const C=new Date(f),F=new Date(y),q=Math.abs(F-C),G=Math.ceil(q/(1e3*60*60*24));Mi(`${G} days`)}else Mi("0 days")},al=()=>{u(f=>({...f,TradesinRenovations:[...f.TradesinRenovations,{title:"",price:""}]}))},ll=f=>{const y=c.TradesinRenovations.filter((C,F)=>F!==f);u(C=>({...C,TradesinRenovations:y}))},cl=(f,y,C)=>{const F=[...c.TradesinRenovations];F[f][y]=C,u(q=>({...q,TradesinRenovations:F}))},dl=(f,y)=>{let C=f.target.value;if(C=C.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(C)||C===""){const q=c.TradesinRenovations.map((G,oe)=>oe===y?{...G,price:C,isInvalid:!1}:G);u({...c,TradesinRenovations:q})}else{const q=c.TradesinRenovations.map((G,oe)=>oe===y?{...G,isInvalid:!0}:G);u({...c,TradesinRenovations:q})}},ul=()=>{u(f=>({...f,IAB:[...f.IAB,{title:"",URL:""}]}))},fl=f=>{const y=c.IAB.filter((C,F)=>F!==f);u(C=>({...C,IAB:y}))},S=(f,y,C)=>{const F=[...c.IAB];F[f][y]=C,u(q=>({...q,IAB:F}))},E=(f,y,C)=>{const F=[...c.IAB];F[f][y]=C,u(q=>({...q,IAB:F}))};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Le,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:e==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((f,y)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:f.propertytaxowned,onChange:C=>m(C,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:f.ownedyear,onChange:C=>m(C,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:f.taxassessed,onChange:C=>m(C,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:f.taxyear,onChange:C=>m(C,y,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>h(y),style:{height:"25px",width:"35px"},children:"X"})]})})]},y)),r.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:C=>w(y,C)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:C=>N(C,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>b(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"Base64 Data:"})," ",r.jsxs("pre",{children:[f.file.slice(0,100),"..."]})," ",r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:f=>{const y=f.target.value;u({...c,closeDateAtoB:y}),zi(y,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:f=>{const y=f.target.value;u({...c,closeDateBtoC:y}),zi(c.closeDateAtoB,y)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:d.map(f=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${f}`,value:f,checked:c.renovationRisk===f,onChange:y=>{const C=parseInt(y.target.value,10);u({...c,renovationRisk:C})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${f}`,children:f})]},f))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${Er().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:ol,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:f=>{let y=f.target.value.replace(/[^\d.]/g,"");const C=/^\d*\.?\d*$/.test(y);u({...c,purchaseCost:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>T(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:`$ ${f.price}`,onChange:C=>O(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>P(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:j,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>H(y,"title",C.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>te(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:X(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>Q(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>A(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>U(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:R(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>K(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>Y(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>W(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:B,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>se(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>ce(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ne(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:de(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>Ct(y,"title",C.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>zt(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Be(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:he(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,sellingPriceBtoC:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>ys(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>js(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>fe(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>qt(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Li(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>sl(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:f.price,onChange:C=>il(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Bi(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ye(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,fundspriortoclosing:y,isfundspriortoclosingInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Jn(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,shorttermrental:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,OtherIncome:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,InsuranceClaim:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,LongTermRental:y,isPurchaseCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:f=>{const y=f.target.value,C=/^\d*\.?\d*$/.test(y);u({...c,FinancingCostClosingCost:y,isFinancingCostClosingCostInvalid:!C})},onKeyPress:f=>{const y=f.charCode;(y<48||y>57)&&y!==46&&(f.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:n,children:"Continue"})," "]}),r.jsx("br",{})]}),e==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Trades in Renovations"}),c.TradesinRenovations.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>cl(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${f.isInvalid?"is-invalid":""}`,value:`$ ${f.price}`,onChange:C=>dl(C,y),placeholder:"Price",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ll(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:al,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Trades in Renovations"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),c.IAB.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,onChange:C=>S(y,"title",C.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:f.URL,onChange:C=>E(y,"URL",C.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),f.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>fl(y),style:{marginLeft:"5px"},children:"x"})})]},y)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ul,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Files"," "]}),c.images.map((f,y)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:f.title,placeholder:"Image Title",onChange:C=>w(y,C)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:C=>N(C,y)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>b(y),style:{marginLeft:"5px"},children:"Delete"})]}),f.file&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:f.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})})]},y)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]})]})]})]})})},mt="/assets/propertydummy-DhVEZ7jN.jpg",wb=()=>{var d;const e=Ke(),{user:t}=_e(c=>({...c.auth})),{userProperties:n,totalPages:s}=_e(c=>c.property),[i,o]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:i,limit:a}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,i]);const l=c=>{o(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:c.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(le,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(le,{to:`/property/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(le,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===i||c===1||c===s||c>=i-1&&c<=i+1?r.jsx("button",{onClick:()=>l(c),disabled:i===c,children:c},c):c===2||c===s-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},kb=()=>{var c,u,p,g,N,x,b,w,m,v,h,j;const{user:e,isLoading:t}=_e(P=>P.auth),n=Ke(),s=hn(),[i,o]=k.useState({userId:((c=e==null?void 0:e.result)==null?void 0:c.userId)||"",title:((u=e==null?void 0:e.result)==null?void 0:u.title)||"",firstName:((p=e==null?void 0:e.result)==null?void 0:p.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((N=e==null?void 0:e.result)==null?void 0:N.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((b=e==null?void 0:e.result)==null?void 0:b.aboutme)||"",city:((w=e==null?void 0:e.result)==null?void 0:w.city)||"",state:((m=e==null?void 0:e.result)==null?void 0:m.state)||"",county:((v=e==null?void 0:e.result)==null?void 0:v.county)||"",zip:((h=e==null?void 0:e.result)==null?void 0:h.zip)||"",profileImage:((j=e==null?void 0:e.result)==null?void 0:j.profileImage)||""});k.useEffect(()=>{e&&o({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=P=>{o({...i,[P.target.name]:P.target.value})},l=()=>{o({...i,profileImage:""})},d=P=>{P.preventDefault(),n(Po({formData:i,toast:ie,navigate:s}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:d,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:i.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:i.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:i.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:i.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:i.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:i.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:i.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:i.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:i.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:i.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(Na,{type:"file",multiple:!1,onDone:({base64:P})=>o({...i,profileImage:P})})})]}),i.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:i.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},Sb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{userProperties:n,totalPages:s}=_e(u=>u.property),[i,o]=k.useState(1),a=5;k.useEffect(()=>{e(Xs({userId:t.result.userId,page:i,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const l=u=>{o(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(le,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(le,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(le,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===i||u===1||u===s||u>=i-1&&u<=i+1?r.jsx("button",{onClick:()=>l(u),disabled:i===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Eb=()=>{var c;const e=Ke(),{user:t}=_e(u=>({...u.auth})),{properties:n,totalPages:s}=_e(u=>u.property),[i,o]=k.useState(1),a=5;k.useEffect(()=>{e(mr({page:i,limit:a}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,i]);const l=u=>{o(u)},d=n.filter(u=>u.fundDetails&&u.fundDetails.some(p=>p.fundValue!==void 0&&p.fundPercentage!==void 0&&p.userId===t.result._id));return r.jsx(r.Fragment,{children:d.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:d.map(u=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:u.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(le,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(le,{to:`/property/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(le,{to:`/editproperty/${u.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>l(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(u,p)=>p+1).map(u=>u===i||u===1||u===s||u>=i-1&&u<=i+1?r.jsx("button",{onClick:()=>l(u),disabled:i===u,children:u},u):u===2||u===s-1?r.jsx("span",{children:"..."},u):null),r.jsx("button",{onClick:()=>l(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},Pb=()=>{var a,l;const{user:e}=_e(d=>({...d.auth}));console.log("user",e);const t=Ke(),[n,s]=k.useState({userId:((a=e==null?void 0:e.result)==null?void 0:a.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});k.useEffect(()=>{var d,c;e&&s({userId:(d=e==null?void 0:e.result)==null?void 0:d.userId,fundAmount:(c=e==null?void 0:e.result)==null?void 0:c.fundAmount})},[e]);const i=d=>{s({...n,[d.target.name]:d.target.value})},o=d=>{if(d.preventDefault(),n.fundAmount<=0)return ie.error("Please enter a valid funding amount greater than 0");t(_o({formData:n,toast:ie}))};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:o,children:[r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",r.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:n.fundAmount,onChange:i})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},_b=()=>{const[e,t]=k.useState("dashboard"),{user:n}=_e(i=>i.auth),s=()=>{switch(e){case"Userdetails":return r.jsx(kb,{});case"FundToInvest":return r.jsx(Pb,{});case"addProperty":return r.jsx(lg,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(wb,{})]});case"Fundings Received":return r.jsxs("div",{children:[r.jsx("h3",{children:"Fundings Received"}),r.jsx(Sb,{})]});case"Offers Submitted":return r.jsxs("div",{children:[r.jsx("h3",{children:"Offers Submitted"}),r.jsx(Eb,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[r.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Bs,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsx("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:r.jsx("span",{children:"User Profile"})}),r.jsx("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:r.jsx("span",{children:"Fund To Invest"})}),r.jsx("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:r.jsx("span",{children:"Add Property"})}),r.jsx("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:r.jsx("span",{children:"Active Properties"})}),r.jsx("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:r.jsx("span",{children:"Fundings Received"})}),r.jsx("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:r.jsx("span",{children:"Offers Submitted"})}),r.jsx("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:r.jsx("span",{children:"Closed Properties"})})]})]})}),r.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:r.jsxs("div",{className:"card card2 p-2",children:[r.jsxs("span",{children:[r.jsx("br",{})," ",r.jsx("br",{}),"Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(le,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})}),r.jsx("span",{style:{color:"#067ADC"},children:r.jsx(le,{to:"/addproperty",className:"link-primary text-decoration-none",children:"add"})})]}),e==="dashboard"&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsxs("div",{className:"banner_taital",children:[r.jsxs("h1",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},className:"services_taital",children:["Now you are accessing the world's only portal which has Streamlined the",r.jsxs("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:[" ","investor-borrower interactions,"," "]})]}),r.jsxs("h1",{className:"services_taital",style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["gaining complete visibility into your data, and using smart filters to",r.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("br",{}),s()]})})]}),r.jsx(tt,{})]})};var cg={exports:{}},Tb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ob=Tb,Ab=Ob;function dg(){}function ug(){}ug.resetWarningCache=dg;var Rb=function(){function e(s,i,o,a,l,d){if(d!==Ab){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ug,resetWarningCache:dg};return n.PropTypes=n,n};cg.exports=Rb();var Ib=cg.exports;const Lt=wi(Ib),Fb=()=>{const[e,t]=k.useState(3),n=hn();return k.useEffect(()=>{const s=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(s)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ms=({children:e})=>{const{user:t}=_e(n=>({...n.auth}));return t?e:r.jsx(Fb,{})};Ms.propTypes={children:Lt.node.isRequired};const Db=()=>{const e=Ke(),{id:t,token:n}=gs();return k.useEffect(()=>{e(Oo({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(le,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(tt,{})]})},Lb=()=>{const[e,t]=k.useState(""),[n,s]=k.useState(""),i="http://67.225.129.127:3002",o=async()=>{try{const a=await me.post(`${i}/users/forgotpassword`,{email:e});s(a.data.message)}catch(a){console.error("Forgot Password Error:",a),s(a.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:a=>t(a.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(le,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(tt,{})]})]})},Bb=()=>{const{userId:e,token:t}=gs(),[n,s]=k.useState(""),[i,o]=k.useState(""),[a,l]=k.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){l("Password not entered"),ie.error("Password not entered");return}const u=await me.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){l("Passwords do not match."),ie.error("Passwords do not match.");return}else l("Password reset successfull"),ie.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return k.useEffect(()=>{ie.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:i,onChange:u=>o(u.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:a})]})})})}),r.jsx(tt,{})]})},Mb=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the worlds most trusted portal for real estate investments and borrowing."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]});var fg={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(o=i(o,s(l)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var l in o)t.call(o,l)&&o[l]&&(a=i(a,l));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(fg);var zb=fg.exports;const ye=wi(zb);function $b(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.includes(s))continue;n[s]=e[s]}return n}function kd(e,t){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,s){return n.__proto__=s,n},kd(e,t)}function Wb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kd(e,t)}const Ub=["xxl","xl","lg","md","sm","xs"],qb="xs",tl=k.createContext({prefixes:{},breakpoints:Ub,minBreakpoint:qb});function Ie(e,t){const{prefixes:n}=k.useContext(tl);return e||n[t]||t}function Vb(){const{breakpoints:e}=k.useContext(tl);return e}function Hb(){const{minBreakpoint:e}=k.useContext(tl);return e}function Kb(){const{dir:e}=k.useContext(tl);return e==="rtl"}function nl(e){return e&&e.ownerDocument||document}function Yb(e){var t=nl(e);return t&&t.defaultView||window}function Gb(e,t){return Yb(e).getComputedStyle(e,t)}var Qb=/([A-Z])/g;function Xb(e){return e.replace(Qb,"-$1").toLowerCase()}var Jb=/^ms-/;function lo(e){return Xb(e).replace(Jb,"-ms-")}var Zb=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ew(e){return!!(e&&Zb.test(e))}function vr(e,t){var n="",s="";if(typeof t=="string")return e.style.getPropertyValue(lo(t))||Gb(e).getPropertyValue(lo(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(lo(i)):ew(i)?s+=i+"("+o+") ":n+=lo(i)+": "+o+";"}),s&&(n+="transform: "+s+";"),e.style.cssText+=";"+n}const Op={disabled:!1},pg=I.createContext(null);var tw=function(t){return t.scrollTop},zs="unmounted",sr="exited",Sn="entering",or="entered",Sd="exiting",vn=function(e){Wb(t,e);function t(s,i){var o;o=e.call(this,s,i)||this;var a=i,l=a&&!a.isMounting?s.enter:s.appear,d;return o.appearStatus=null,s.in?l?(d=sr,o.appearStatus=Sn):d=or:s.unmountOnExit||s.mountOnEnter?d=zs:d=sr,o.state={status:d},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===zs?{status:sr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Sn&&a!==or&&(o=Sn):(a===Sn||a===or)&&(o=Sd)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,l;return o=a=l=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:qr.findDOMNode(this);a&&tw(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sr&&this.setState({status:zs})},n.performEnter=function(i){var o=this,a=this.props.enter,l=this.context?this.context.isMounting:i,d=this.props.nodeRef?[l]:[qr.findDOMNode(this),l],c=d[0],u=d[1],p=this.getTimeouts(),g=l?p.appear:p.enter;if(!i&&!a||Op.disabled){this.safeSetState({status:or},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Sn},function(){o.props.onEntering(c,u),o.onTransitionEnd(g,function(){o.safeSetState({status:or},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:qr.findDOMNode(this);if(!o||Op.disabled){this.safeSetState({status:sr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Sd},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:sr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:qr.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=d[0],u=d[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===zs)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=$b(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(pg.Provider,{value:null},typeof a=="function"?a(i,l):I.cloneElement(I.Children.only(a),l))},t}(I.Component);vn.contextType=pg;vn.propTypes={};function _r(){}vn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_r,onEntering:_r,onEntered:_r,onExit:_r,onExiting:_r,onExited:_r};vn.UNMOUNTED=zs;vn.EXITED=sr;vn.ENTERING=Sn;vn.ENTERED=or;vn.EXITING=Sd;const xs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ed=!1,Pd=!1;try{var cc={get passive(){return Ed=!0},get once(){return Pd=Ed=!0}};xs&&(window.addEventListener("test",cc,cc),window.removeEventListener("test",cc,!0))}catch{}function mg(e,t,n,s){if(s&&typeof s!="boolean"&&!Pd){var i=s.once,o=s.capture,a=n;!Pd&&i&&(a=n.__once||function l(d){this.removeEventListener(t,l,o),n.call(this,d)},n.__once=a),e.addEventListener(t,a,Ed?s:o)}e.addEventListener(t,n,s)}function _d(e,t,n,s){var i=s&&typeof s!="boolean"?s.capture:s;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function Ca(e,t,n,s){return mg(e,t,n,s),function(){_d(e,t,n,s)}}function nw(e,t,n,s){if(s===void 0&&(s=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,s),e.dispatchEvent(i)}}function rw(e){var t=vr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function sw(e,t,n){n===void 0&&(n=5);var s=!1,i=setTimeout(function(){s||nw(e,"transitionend",!0)},t+n),o=Ca(e,"transitionend",function(){s=!0},{once:!0});return function(){clearTimeout(i),o()}}function hg(e,t,n,s){n==null&&(n=rw(e)||0);var i=sw(e,n,s),o=Ca(e,"transitionend",t);return function(){i(),o()}}function Ap(e,t){const n=vr(e,t)||"",s=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*s}function iw(e,t){const n=Ap(e,"transitionDuration"),s=Ap(e,"transitionDelay"),i=hg(e,o=>{o.target===e&&(i(),t(o))},n+s)}function ow(e){e.offsetHeight}const Rp=e=>!e||typeof e=="function"?e:t=>{e.current=t};function aw(e,t){const n=Rp(e),s=Rp(t);return i=>{n&&n(i),s&&s(i)}}function Di(e,t){return k.useMemo(()=>aw(e,t),[e,t])}function lw(e){return e&&"setState"in e?qr.findDOMNode(e):e??null}const cw=I.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:s,onExiting:i,onExited:o,addEndListener:a,children:l,childRef:d,...c},u)=>{const p=k.useRef(null),g=Di(p,d),N=T=>{g(lw(T))},x=T=>O=>{T&&p.current&&T(p.current,O)},b=k.useCallback(x(e),[e]),w=k.useCallback(x(t),[t]),m=k.useCallback(x(n),[n]),v=k.useCallback(x(s),[s]),h=k.useCallback(x(i),[i]),j=k.useCallback(x(o),[o]),P=k.useCallback(x(a),[a]);return r.jsx(vn,{ref:u,...c,onEnter:b,onEntered:m,onEntering:w,onExit:v,onExited:j,onExiting:h,addEndListener:P,nodeRef:p,children:typeof l=="function"?(T,O)=>l(T,{...O,ref:N}):I.cloneElement(l,{ref:N})})});function dw(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=dw(e);return k.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const uw=e=>k.forwardRef((t,n)=>r.jsx("div",{...t,ref:n,className:ye(t.className,e)}));function fw(){return k.useState(null)}function pw(){const e=k.useRef(!0),t=k.useRef(()=>e.current);return k.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function mw(e){const t=k.useRef(null);return k.useEffect(()=>{t.current=e}),t.current}const hw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",vw=typeof document<"u",Ip=vw||hw?k.useLayoutEffect:k.useEffect,gw=["as","disabled"];function xw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function yw(e){return!e||e.trim()==="#"}function vg({tagName:e,disabled:t,href:n,target:s,rel:i,role:o,onClick:a,tabIndex:l=0,type:d}){e||(n!=null||s!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:d||"button",disabled:t},c];const u=g=>{if((t||e==="a"&&yw(n))&&g.preventDefault(),t){g.stopPropagation();return}a==null||a(g)},p=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:p},c]}const jw=k.forwardRef((e,t)=>{let{as:n,disabled:s}=e,i=xw(e,gw);const[o,{tagName:a}]=vg(Object.assign({tagName:n,disabled:s},i));return r.jsx(a,Object.assign({},i,o,{ref:t}))});jw.displayName="Button";function Nw(e){return e.code==="Escape"||e.keyCode===27}function gg(){const e=k.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const Cw={[Sn]:"show",[or]:"show"},Ru=k.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:s,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=k.useCallback((u,p)=>{ow(u),s==null||s(u,p)},[s]),{major:d}=gg(),c=d>=19?t.props.ref:t.ref;return r.jsx(cw,{ref:o,addEndListener:iw,...a,onEnter:l,childRef:c,children:(u,p)=>k.cloneElement(t,{...p,className:ye("fade",e,t.props.className,Cw[u],n[u])})})});Ru.displayName="Fade";const bw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},Iu=k.forwardRef(({className:e,variant:t,"aria-label":n="Close",...s},i)=>r.jsx("button",{ref:i,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...s}));Iu.displayName="CloseButton";Iu.propTypes=bw;const xg=k.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:s,active:i=!1,disabled:o=!1,className:a,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:p}]=vg({tagName:e,disabled:o,...l}),g=p;return r.jsx(g,{...u,...l,ref:d,disabled:o,className:ye(a,c,i&&"active",n&&`${c}-${n}`,s&&`${c}-${s}`,l.href&&o&&"disabled")})});xg.displayName="Button";function ww(e){const t=k.useRef(e);return t.current=e,t}function yg(e){const t=ww(e);k.useEffect(()=>()=>t.current(),[])}function kw(e,t){return k.Children.toArray(e).some(n=>k.isValidElement(n)&&n.type===t)}function Sw({as:e,bsPrefix:t,className:n,...s}){t=Ie(t,"col");const i=Vb(),o=Hb(),a=[],l=[];return i.forEach(d=>{const c=s[d];delete s[d];let u,p,g;typeof c=="object"&&c!=null?{span:u,offset:p,order:g}=c:u=c;const N=d!==o?`-${d}`:"";u&&a.push(u===!0?`${t}${N}`:`${t}${N}-${u}`),g!=null&&l.push(`order${N}-${g}`),p!=null&&l.push(`offset${N}-${p}`)}),[{...s,className:ye(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}const jg=k.forwardRef((e,t)=>{const[{className:n,...s},{as:i="div",bsPrefix:o,spans:a}]=Sw(e);return r.jsx(i,{...s,ref:t,className:ye(n,!a.length&&o)})});jg.displayName="Col";var Ew=Function.prototype.bind.call(Function.prototype.call,[].slice);function Tr(e,t){return Ew(e.querySelectorAll(t))}function Fp(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const Pw="data-rr-ui-";function _w(e){return`${Pw}${e}`}const Ng=k.createContext(xs?window:void 0);Ng.Provider;function Fu(){return k.useContext(Ng)}const Tw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},rl=k.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:s=!1,...i},o)=>r.jsx(e,{...i,ref:o,className:ye(t,`${n}-${s?"tooltip":"feedback"}`)}));rl.displayName="Feedback";rl.propTypes=Tw;const pn=k.createContext({}),Du=k.forwardRef(({id:e,bsPrefix:t,className:n,type:s="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...l},d)=>{const{controlId:c}=k.useContext(pn);return t=Ie(t,"form-check-input"),r.jsx(a,{...l,ref:d,type:s,id:e||c,className:ye(n,t,i&&"is-valid",o&&"is-invalid")})});Du.displayName="FormCheckInput";const ba=k.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...s},i)=>{const{controlId:o}=k.useContext(pn);return e=Ie(e,"form-check-label"),r.jsx("label",{...s,ref:i,htmlFor:n||o,className:ye(t,e)})});ba.displayName="FormCheckLabel";const Cg=k.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:s=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:p,style:g,title:N="",type:x="checkbox",label:b,children:w,as:m="input",...v},h)=>{t=Ie(t,"form-check"),n=Ie(n,"form-switch");const{controlId:j}=k.useContext(pn),P=k.useMemo(()=>({controlId:e||j}),[j,e]),T=!w&&b!=null&&b!==!1||kw(w,ba),O=r.jsx(Du,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:a,isInvalid:l,disabled:o,as:m});return r.jsx(pn.Provider,{value:P,children:r.jsx("div",{style:g,className:ye(p,T&&t,s&&`${t}-inline`,i&&`${t}-reverse`,x==="switch"&&n),children:w||r.jsxs(r.Fragment,{children:[O,T&&r.jsx(ba,{title:N,children:b}),c&&r.jsx(rl,{type:u,tooltip:d,children:c})]})})})});Cg.displayName="FormCheck";const wa=Object.assign(Cg,{Input:Du,Label:ba}),bg=k.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:s,id:i,className:o,isValid:a=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...p},g)=>{const{controlId:N}=k.useContext(pn);return e=Ie(e,"form-control"),r.jsx(u,{...p,type:t,size:s,ref:g,readOnly:c,id:i||N,className:ye(o,d?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",l&&"is-invalid")})});bg.displayName="FormControl";const Ow=Object.assign(bg,{Feedback:rl}),wg=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"form-floating"),r.jsx(n,{ref:i,className:ye(e,t),...s})));wg.displayName="FormFloating";const Lu=k.forwardRef(({controlId:e,as:t="div",...n},s)=>{const i=k.useMemo(()=>({controlId:e}),[e]);return r.jsx(pn.Provider,{value:i,children:r.jsx(t,{...n,ref:s})})});Lu.displayName="FormGroup";const kg=k.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:s=!1,className:i,htmlFor:o,...a},l)=>{const{controlId:d}=k.useContext(pn);t=Ie(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=ye(i,t,s&&"visually-hidden",n&&c);return o=o||d,n?r.jsx(jg,{ref:l,as:"label",className:u,htmlFor:o,...a}):r.jsx(e,{ref:l,className:u,htmlFor:o,...a})});kg.displayName="FormLabel";const Sg=k.forwardRef(({bsPrefix:e,className:t,id:n,...s},i)=>{const{controlId:o}=k.useContext(pn);return e=Ie(e,"form-range"),r.jsx("input",{...s,type:"range",ref:i,className:ye(t,e),id:n||o})});Sg.displayName="FormRange";const Eg=k.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:s,isValid:i=!1,isInvalid:o=!1,id:a,...l},d)=>{const{controlId:c}=k.useContext(pn);return e=Ie(e,"form-select"),r.jsx("select",{...l,size:n,ref:d,className:ye(s,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});Eg.displayName="FormSelect";const Pg=k.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:s,...i},o)=>(e=Ie(e,"form-text"),r.jsx(n,{...i,ref:o,className:ye(t,e,s&&"text-muted")})));Pg.displayName="FormText";const _g=k.forwardRef((e,t)=>r.jsx(wa,{...e,ref:t,type:"switch"}));_g.displayName="Switch";const Aw=Object.assign(_g,{Input:wa.Input,Label:wa.Label}),Tg=k.forwardRef(({bsPrefix:e,className:t,children:n,controlId:s,label:i,...o},a)=>(e=Ie(e,"form-floating"),r.jsxs(Lu,{ref:a,className:ye(t,e),controlId:s,...o,children:[n,r.jsx("label",{htmlFor:s,children:i})]})));Tg.displayName="FloatingLabel";const Rw={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Bu=k.forwardRef(({className:e,validated:t,as:n="form",...s},i)=>r.jsx(n,{...s,ref:i,className:ye(e,t&&"was-validated")}));Bu.displayName="Form";Bu.propTypes=Rw;const er=Object.assign(Bu,{Group:Lu,Control:Ow,Floating:wg,Check:wa,Switch:Aw,Label:kg,Text:Pg,Range:Sg,Select:Eg,FloatingLabel:Tg});var co;function Dp(e){if((!co&&co!==0||e)&&xs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),co=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return co}function dc(e){e===void 0&&(e=nl());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Iw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Lp=_w("modal-open");class Mu{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:s=!1}={}){this.handleContainerOverflow=n,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Iw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[s]:i.style[s]},t.scrollBarWidth&&(n[s]=`${parseInt(vr(i,s)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(Lp,""),vr(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(Lp),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const uc=(e,t)=>xs?e==null?(t||nl()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Fw(e,t){const n=Fu(),[s,i]=k.useState(()=>uc(e,n==null?void 0:n.document));if(!s){const o=uc(e);o&&i(o)}return k.useEffect(()=>{},[t,s]),k.useEffect(()=>{const o=uc(e);o!==s&&i(o)},[e,s]),s}function Dw({children:e,in:t,onExited:n,mountOnEnter:s,unmountOnExit:i}){const o=k.useRef(null),a=k.useRef(t),l=Gt(n);k.useEffect(()=>{t?a.current=!0:l(o.current)},[t,l]);const d=Di(o,e.ref),c=k.cloneElement(e,{ref:d});return t?c:i||!a.current&&s?null:c}const Lw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Bw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Mw(e){let{onEnter:t,onEntering:n,onEntered:s,onExit:i,onExiting:o,onExited:a,addEndListener:l,children:d}=e,c=Bw(e,Lw);const{major:u}=gg(),p=u>=19?d.props.ref:d.ref,g=k.useRef(null),N=Di(g,typeof d=="function"?null:p),x=T=>O=>{T&&g.current&&T(g.current,O)},b=k.useCallback(x(t),[t]),w=k.useCallback(x(n),[n]),m=k.useCallback(x(s),[s]),v=k.useCallback(x(i),[i]),h=k.useCallback(x(o),[o]),j=k.useCallback(x(a),[a]),P=k.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:b},n&&{onEntering:w},s&&{onEntered:m},i&&{onExit:v},o&&{onExiting:h},a&&{onExited:j},l&&{addEndListener:P},{children:typeof d=="function"?(T,O)=>d(T,Object.assign({},O,{ref:N})):k.cloneElement(d,{ref:N})})}const zw=["component"];function $w(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Ww=k.forwardRef((e,t)=>{let{component:n}=e,s=$w(e,zw);const i=Mw(s);return r.jsx(n,Object.assign({ref:t},i))});function Uw({in:e,onTransition:t}){const n=k.useRef(null),s=k.useRef(!0),i=Gt(t);return Ip(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:s.current,isStale:()=>o}),()=>{o=!0}},[e,i]),Ip(()=>(s.current=!1,()=>{s.current=!0}),[]),n}function qw({children:e,in:t,onExited:n,onEntered:s,transition:i}){const[o,a]=k.useState(!t);t&&o&&a(!1);const l=Uw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,p=>{throw c.in||a(!0),p})}}),d=Di(l,e.ref);return o&&!t?null:k.cloneElement(e,{ref:d})}function Bp(e,t,n){return e?r.jsx(Ww,Object.assign({},n,{component:e})):t?r.jsx(qw,Object.assign({},n,{transition:t})):r.jsx(Dw,Object.assign({},n))}const Vw=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Hw(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}let fc;function Kw(e){return fc||(fc=new Mu({ownerDocument:e==null?void 0:e.document})),fc}function Yw(e){const t=Fu(),n=e||Kw(t),s=k.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>n.add(s.current),remove:()=>n.remove(s.current),isTopModal:()=>n.isTopModal(s.current),setDialogRef:k.useCallback(i=>{s.current.dialog=i},[]),setBackdropRef:k.useCallback(i=>{s.current.backdrop=i},[])})}const Og=k.forwardRef((e,t)=>{let{show:n=!1,role:s="dialog",className:i,style:o,children:a,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:p,runTransition:g,backdropTransition:N,runBackdropTransition:x,autoFocus:b=!0,enforceFocus:w=!0,restoreFocus:m=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:j=he=>r.jsx("div",Object.assign({},he)),manager:P,container:T,onShow:O,onHide:_=()=>{},onExit:L,onExited:z,onExiting:H,onEnter:te,onEntering:X,onEntered:Z}=e,D=Hw(e,Vw);const U=Fu(),Q=Fw(T),A=Yw(P),R=pw(),M=mw(n),[B,W]=k.useState(!n),K=k.useRef(null);k.useImperativeHandle(t,()=>A,[A]),xs&&!M&&n&&(K.current=dc(U==null?void 0:U.document)),n&&B&&W(!1);const Y=Gt(()=>{if(A.add(),de.current=Ca(document,"keydown",se),ce.current=Ca(document,"focus",()=>setTimeout(re),!0),O&&O(),b){var he,$t;const Ye=dc((he=($t=A.dialog)==null?void 0:$t.ownerDocument)!=null?he:U==null?void 0:U.document);A.dialog&&Ye&&!Fp(A.dialog,Ye)&&(K.current=Ye,A.dialog.focus())}}),ee=Gt(()=>{if(A.remove(),de.current==null||de.current(),ce.current==null||ce.current(),m){var he;(he=K.current)==null||he.focus==null||he.focus(v),K.current=null}});k.useEffect(()=>{!n||!Q||Y()},[n,Q,Y]),k.useEffect(()=>{B&&ee()},[B,ee]),yg(()=>{ee()});const re=Gt(()=>{if(!w||!R()||!A.isTopModal())return;const he=dc(U==null?void 0:U.document);A.dialog&&he&&!Fp(A.dialog,he)&&A.dialog.focus()}),ne=Gt(he=>{he.target===he.currentTarget&&(c==null||c(he),l===!0&&_())}),se=Gt(he=>{d&&Nw(he)&&A.isTopModal()&&(u==null||u(he),he.defaultPrevented||_())}),ce=k.useRef(),de=k.useRef(),ge=(...he)=>{W(!0),z==null||z(...he)};if(!Q)return null;const Be=Object.assign({role:s,ref:A.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:o,className:i,tabIndex:-1});let Ct=h?h(Be):r.jsx("div",Object.assign({},Be,{children:k.cloneElement(a,{role:"document"})}));Ct=Bp(p,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:L,onExiting:H,onExited:ge,onEnter:te,onEntering:X,onEntered:Z,children:Ct});let zt=null;return l&&(zt=j({ref:A.setBackdropRef,onClick:ne}),zt=Bp(N,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),r.jsx(r.Fragment,{children:qr.createPortal(r.jsxs(r.Fragment,{children:[zt,Ct]}),Q)})});Og.displayName="Modal";const Gw=Object.assign(Og,{Manager:Mu});function Qw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Xw(e,t){e.classList?e.classList.add(t):Qw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Mp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Jw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Mp(e.className,t):e.setAttribute("class",Mp(e.className&&e.className.baseVal||"",t))}const Or={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Zw extends Mu{adjustAndStore(t,n,s){const i=n.style[t];n.dataset[t]=i,vr(n,{[t]:`${parseFloat(vr(n,t))+s}px`})}restore(t,n){const s=n.dataset[t];s!==void 0&&(delete n.dataset[t],vr(n,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Xw(n,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth)),Tr(n,Or.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),Tr(n,Or.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();Jw(n,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Tr(n,Or.FIXED_CONTENT).forEach(o=>this.restore(s,o)),Tr(n,Or.STICKY_CONTENT).forEach(o=>this.restore(i,o)),Tr(n,Or.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let pc;function ek(e){return pc||(pc=new Zw(e)),pc}const Ag=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"modal-body"),r.jsx(n,{ref:i,className:ye(e,t),...s})));Ag.displayName="ModalBody";const Rg=k.createContext({onHide(){}}),zu=k.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:s,size:i,fullscreen:o,children:a,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,p=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return r.jsx("div",{...d,ref:c,className:ye(u,t,i&&`${e}-${i}`,s&&`${u}-centered`,l&&`${u}-scrollable`,o&&p),children:r.jsx("div",{className:ye(`${e}-content`,n),children:a})})});zu.displayName="ModalDialog";const Ig=k.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Ie(t,"modal-footer"),r.jsx(n,{ref:i,className:ye(e,t),...s})));Ig.displayName="ModalFooter";const tk=k.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:s,children:i,...o},a)=>{const l=k.useContext(Rg),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return r.jsxs("div",{ref:a,...o,children:[i,n&&r.jsx(Iu,{"aria-label":e,variant:t,onClick:d})]})}),Fg=k.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:s=!1,...i},o)=>(e=Ie(e,"modal-header"),r.jsx(tk,{ref:o,...i,className:ye(t,e),closeLabel:n,closeButton:s})));Fg.displayName="ModalHeader";const nk=uw("h4"),Dg=k.forwardRef(({className:e,bsPrefix:t,as:n=nk,...s},i)=>(t=Ie(t,"modal-title"),r.jsx(n,{ref:i,className:ye(e,t),...s})));Dg.displayName="ModalTitle";function rk(e){return r.jsx(Ru,{...e,timeout:null})}function sk(e){return r.jsx(Ru,{...e,timeout:null})}const Lg=k.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:s,contentClassName:i,children:o,dialogAs:a=zu,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:p=!1,animation:g=!0,backdrop:N=!0,keyboard:x=!0,onEscapeKeyDown:b,onShow:w,onHide:m,container:v,autoFocus:h=!0,enforceFocus:j=!0,restoreFocus:P=!0,restoreFocusOptions:T,onEntered:O,onExit:_,onExiting:L,onEnter:z,onEntering:H,onExited:te,backdropClassName:X,manager:Z,...D},U)=>{const[Q,A]=k.useState({}),[R,M]=k.useState(!1),B=k.useRef(!1),W=k.useRef(!1),K=k.useRef(null),[Y,ee]=fw(),re=Di(U,ee),ne=Gt(m),se=Kb();e=Ie(e,"modal");const ce=k.useMemo(()=>({onHide:ne}),[ne]);function de(){return Z||ek({isRTL:se})}function ge(fe){if(!xs)return;const qt=de().getScrollbarWidth()>0,xn=fe.scrollHeight>nl(fe).documentElement.clientHeight;A({paddingRight:qt&&!xn?Dp():void 0,paddingLeft:!qt&&xn?Dp():void 0})}const Be=Gt(()=>{Y&&ge(Y.dialog)});yg(()=>{_d(window,"resize",Be),K.current==null||K.current()});const Ct=()=>{B.current=!0},zt=fe=>{B.current&&Y&&fe.target===Y.dialog&&(W.current=!0),B.current=!1},he=()=>{M(!0),K.current=hg(Y.dialog,()=>{M(!1)})},$t=fe=>{fe.target===fe.currentTarget&&he()},Ye=fe=>{if(N==="static"){$t(fe);return}if(W.current||fe.target!==fe.currentTarget){W.current=!1;return}m==null||m()},Qn=fe=>{x?b==null||b(fe):(fe.preventDefault(),N==="static"&&he())},Zt=(fe,qt)=>{fe&&ge(fe),z==null||z(fe,qt)},ys=fe=>{K.current==null||K.current(),_==null||_(fe)},js=(fe,qt)=>{H==null||H(fe,qt),mg(window,"resize",Be)},Xn=fe=>{fe&&(fe.style.display=""),te==null||te(fe),_d(window,"resize",Be)},Wt=k.useCallback(fe=>r.jsx("div",{...fe,className:ye(`${e}-backdrop`,X,!g&&"show")}),[g,X,e]),gn={...n,...Q};gn.display="block";const Ut=fe=>r.jsx("div",{role:"dialog",...fe,style:gn,className:ye(t,e,R&&`${e}-static`,!g&&"show"),onClick:N?Ye:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:r.jsx(a,{...D,onMouseDown:Ct,className:s,contentClassName:i,children:o})});return r.jsx(Rg.Provider,{value:ce,children:r.jsx(Gw,{show:p,ref:re,backdrop:N,container:v,keyboard:!0,autoFocus:h,enforceFocus:j,restoreFocus:P,restoreFocusOptions:T,onEscapeKeyDown:Qn,onShow:w,onHide:m,onEnter:Zt,onEntering:js,onEntered:O,onExit:ys,onExiting:L,onExited:Xn,manager:de(),transition:g?rk:void 0,backdropTransition:g?sk:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Lg.displayName="Modal";const uo=Object.assign(Lg,{Body:Ag,Header:Fg,Title:Dg,Footer:Ig,Dialog:zu,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),ik=()=>{var T;const{id:e}=gs(),t=Ke(),{selectedProperty:n,status:s,error:i}=_e(O=>O.property),{user:o}=_e(O=>({...O.auth})),[a,l]=k.useState("propertydetails"),[d,c]=k.useState(!0),[u,p]=k.useState(!1),[g,N]=k.useState({fundValue:"0",fundPercentage:"0"});if(k.useEffect(()=>{e&&t(Js(e))},[e,t]),k.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return r.jsxs("p",{children:["Error loading property: ",i]});const x=((T=o==null?void 0:o.result)==null?void 0:T.userId)===(n==null?void 0:n.userId),b=!!o,w=()=>{p(!0)},m=()=>{p(!1)},v=O=>{const{name:_,value:L}=O.target;N({...g,[_]:L})},h=O=>{if(O.preventDefault(),g.fundValue<=0)return ie.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((n==null?void 0:n.totalCoststoBuyAtoB)||0))return ie.error(`Funding amount cannot exceed ${(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return ie.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:o.result._id};t(Io({id:e,fundDetails:_,toast:ie})),m()},j=O=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(Fo({id:e,fundDetailId:O,token:_}))},P=O=>{window.confirm("Are you sure you want to delete this?")&&j(O)};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[r.jsx("li",{role:"presentation",className:a==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:a==="Funding Details"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),r.jsx("li",{role:"presentation",className:a==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{children:[a==="propertydetails"&&r.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:r.jsx("div",{className:"container col-12",children:d?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-5 mt-3",children:[r.jsx("div",{children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||mt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),r.jsx("br",{}),r.jsxs("div",{className:"label-stock border",children:[r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.totalCoststoBuyAtoB)||"N/A"]})]}),r.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",r.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[r.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(n==null?void 0:n.NetProfit)||"N/A"]})]})]}),r.jsx("br",{}),r.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!b,onClick:x||!b?null:w,children:[r.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!b&&r.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("span",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",n.city," "," /"," "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," "," ","/"," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," "," ","/ "," "," ",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",n.zip," "]}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property found."})})}),a==="Funding Details"&&r.jsx("div",{children:a==="Funding Details"&&r.jsx("div",{className:"tab-pane active",children:r.jsx("div",{children:n.fundDetails.length===0?r.jsx("p",{children:"No fund details available."}):r.jsx("ul",{style:{listStyleType:"none",padding:0},children:n.fundDetails.map((O,_)=>{var L,z;return r.jsx("li",{className:"d-flex align-items-center",children:r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsxs("span",{children:["Total Fund Value: $ ",O.fundValue,", Interest Percentage: ",O.fundPercentage,"%"]}),r.jsx("br",{})," ",r.jsx("br",{}),((L=o==null?void 0:o.result)==null?void 0:L.userId)&&((z=o==null?void 0:o.result)==null?void 0:z._id)===O.userId&&r.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>P(O._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),a==="Accounting"&&r.jsx("div",{})]})]}),r.jsx(tt,{}),r.jsxs(uo,{show:u,onHide:m,children:[r.jsx(uo.Header,{closeButton:!0,children:r.jsx(uo.Title,{children:"Investment/Funding Details"})}),r.jsx(uo.Body,{children:r.jsxs(er,{onSubmit:h,children:[r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Total Fund Value"}),r.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),r.jsx("br",{}),r.jsxs(er.Group,{children:[r.jsx(er.Label,{children:"Interest Percentage"}),r.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),r.jsx(xg,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},ok=()=>{const[e,t]=k.useState([]),[n,s]=k.useState(0),[i,o]=k.useState(0),[a]=k.useState(10),[l,d]=k.useState(""),[c,u]=k.useState(!1),[p,g]=k.useState(!1),N=async()=>{u(!0),g(!1);try{const m=await me.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:a,offset:i*a,search:l},headers:{"Cache-Control":"no-cache"}});t(m.data.data),s(m.data.totalRecords),l.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{u(!1)}},x=m=>{d(m.target.value),m.target.value.trim()===""&&(o(0),t([]),s(0),g(!1),N())},b=m=>{m.key==="Enter"&&(m.preventDefault(),N())};k.useEffect(()=>{N()},[l,i]);const w=Math.ceil(n/a);return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:b})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[p&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,v)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(le,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},v)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>o(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",i+1," of ",w," "]}),r.jsx("button",{onClick:()=>o(i+1),disabled:i+1>=w||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(tt,{})]})},ak=()=>r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(tt,{})]}),lk=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,n]=k.useState(null),[s,i]=k.useState(!0);return k.useEffect(()=>{(async()=>{try{const a=await me.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(a.data)}catch(a){console.log("Error fetching property details:",a)}finally{i(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(tt,{})]})},zp=()=>{const{id:e}=gs(),t=Ke(),[n,s]=k.useState("propertydetails"),i=()=>{n==="propertydetails"&&s("Images"),n==="Images"&&s("Accounting"),n==="Accounting"&&s("IAB"),n==="IAB"&&s("IAB")},o=()=>{n==="Images"&&s("propertydetails"),n==="Accounting"&&s("Images"),n==="IAB"&&s("Accounting")},{selectedProperty:a}=_e(S=>S.property),[l,d]=k.useState({address:"",city:"",state:"",county:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",purchaseCost:"0",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:"0"},{title:"Closing Fees - Owner's Title Insurance",price:"0"},{title:"Courier Fees",price:"0"},{title:"Wire Fee",price:"0"},{title:"E recording Fee",price:"0"},{title:"Recording Fee",price:"0"},{title:"Property Tax",price:"0"}],renovationRisk:null,turnTime:"",credits:[{title:"Credits",price:"0"}],cashAdjustments:[{title:"Cash Adjustments",price:"0"}],incidentalCost:[{title:"Accounting Fees",price:"0"},{title:"Bank Charges",price:"0"},{title:"Legal Fees",price:"0"},{title:"Property Taxes",price:"0"},{title:"Travel Expenses",price:"0"}],carryCosts:[{title:"Electricity",price:"0"},{title:"Water and Sewer",price:"0"},{title:"Natural Gas",price:"0"},{title:"Trash and Recycling",price:"0"},{title:"Internet and Cable",price:"0"},{title:"Heating Oil/Propane",price:"0"},{title:"HOA fees",price:"0"},{title:"Dump fees",price:"0"},{title:"Insurance",price:"0"},{title:"Interest on Loans",price:"0"},{title:"Loan Payment",price:"0"},{title:"Property Taxes",price:"0"},{title:"Security",price:"0"},{title:"Real Estates fees",price:"0"}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:"0"},{title:"Framing: Making structural changes or additions",price:"0"},{title:"Plumbing: Installing or modifying plumbing systems",price:"0"},{title:"Electrical: Updating wiring and fixtures",price:"0"},{title:"HVAC: Installing or upgrading heating and cooling systems",price:"0"},{title:"Insulation: Adding or replacing insulation",price:"0"},{title:"Drywall: Hanging and finishing drywall",price:"0"},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:"0"},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:"0"},{title:"Final Inspections: Ensuring everything meets codes",price:"0"},{title:"Punch List: Completing any remaining task",price:"0"}],sellingPriceBtoC:"0",costPaidOutofClosing:[{title:"Buyers Agent Commission",price:"0"},{title:"Sellers Agent Commission",price:"0"},{title:"Home Warranty",price:"0"},{title:"Document Preparation",price:"0"},{title:"Excise Tax",price:"0"},{title:"Legal Fees",price:"0"},{title:"Wire Fees/courier Fees",price:"0"},{title:"County Taxes",price:"0"},{title:"HOA Fee",price:"0"},{title:"Payoff of 1st Mortgage",price:"0"},{title:"Payoff of 2nd Mortgage",price:"0"},{title:"Payoff 3rd Mortgage",price:"0"}],adjustments:[{title:"adjustments",price:"0"}],incomestatement:[{title:"income statement",price:"0"},{title:"income statement",price:"0"}],fundspriortoclosing:"0",shorttermrental:"0",OtherIncome:"0",InsuranceClaim:"0",LongTermRental:"0",FinancingCostClosingCost:"0",TradesinRenovations:[{title:"Planning & Design",price:"0"},{title:"Demolition & Cleanup",price:"0"},{title:"Framing",price:"0"},{title:"Rough-in Services",price:"0"},{title:"Structural Repairs",price:"0"},{title:"Insulation & Drywall",price:"0"},{title:"Cabinetry & Countertops",price:"0"},{title:"Fixtures & Appliances",price:"0"},{title:"Flooring and Tiling",price:"0"},{title:"Plumbing",price:"0"},{title:"Electrical",price:"0"},{title:"HVAC",price:"0"},{title:"Painting",price:"0"},{title:"Interior Finishes",price:"0"},{title:"Exterior Work",price:"0"},{title:"Final Inspections",price:"0"},{title:"Punch List",price:"0"},{title:"Staging",price:"0"}],IAB:[{title:"IAB Title",URL:"Please enter URL"}]}),c=[1,2,3,4,5,6,7,8,9,10];k.useEffect(()=>{t(Js(e))},[t,e]),k.useEffect(()=>{a&&d({address:a.address||"",city:a.city||"",state:a.state||"",county:a.county||"",zip:a.zip||"",parcel:a.parcel||"",subdivision:a.subdivision||"",legal:a.legal||"",costpersqft:a.costpersqft||"",propertyType:a.propertyType||"",lotacres:a.lotacres||"",yearBuild:a.yearBuild||"",totallivingsqft:a.totallivingsqft||"",beds:a.beds||"",baths:a.baths||"",stories:a.stories||"",garage:a.garage||"",garagesqft:a.garagesqft||"",poolspa:a.poolspa||"",fireplaces:a.fireplaces||"",ac:a.ac||"",heating:a.heating||"",buildingstyle:a.buildingstyle||"",sitevacant:a.sitevacant||"",extwall:a.extwall||"",roofing:a.roofing||"",totalSqft:a.totalSqft||"",renovationRisk:a.renovationRisk,closeDateAtoB:a.closeDateAtoB,closeDateBtoC:a.closeDateBtoC,purchaseCost:a.purchaseCost,costPaidAtoB:a.costPaidAtoB,totalPurchaseCosts:a.totalPurchaseCosts,credits:a.credits,totalPurchaseCostsaftercredits:a.totalPurchaseCostsaftercredits,cashAdjustments:a.cashAdjustments,totalcashrequiredonsettlement:a.totalcashrequiredonsettlement,incidentalCost:a.incidentalCost,carryCosts:a.carryCosts,renovationCost:a.renovationCost,sellingPriceBtoC:a.sellingPriceBtoC,costPaidOutofClosing:a.costPaidOutofClosing,totalCosttoSellBtoC:a.totalCosttoSellBtoC,grossproceedsperHUD:a.grossproceedsperHUD,adjustments:a.adjustments,fundsavailablefordistribution:a.fundsavailablefordistribution,incomestatement:a.incomestatement,fundspriortoclosing:a.fundspriortoclosing,shorttermrental:a.shorttermrental,OtherIncome:a.OtherIncome,InsuranceClaim:a.InsuranceClaim,LongTermRental:a.LongTermRental,netprofitbeforefinancingcosts:a.netprofitbeforefinancingcosts,FinancingCostClosingCost:a.FinancingCostClosingCost,propertyTaxInfo:a.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:a.images||[{title:"",file:""}],googleMapLink:a.googleMapLink,rateofreturn:a.rateofreturn,TradesinRenovations:a.TradesinRenovations,IAB:a.IAB})},[a]);const u=S=>{d({...l,[S.target.name]:S.target.value})},p=(S,E)=>{const{name:f,value:y}=S.target,C=[...l.propertyTaxInfo],F={...C[E]};F[f]=y,C[E]=F,d({...l,propertyTaxInfo:C})},g=S=>{S.preventDefault();const E=z(),f=D(),y=U(),C=B(),F=W(),q=ne(),G=Be(),oe=Ye(),$i=Qn(),pl=Zt(),ml=gn(),hl=Ut(),vl=Ut(),gl=Ns(),xl=Bi(),yl=Zn(),jl=en(),Nl=Er(),Cl=bs(),bl={...l,totalPurchaseCosts:E.toFixed(2),totalcredits:f.toFixed(2),totalPurchaseCostsaftercredits:y.toFixed(2),totalcashAdjustments:C.toFixed(2),totalcashrequiredonsettlement:F.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:G.toFixed(2),totalrenovationCost:oe.toFixed(2),totalRenovationsandHoldingCost:$i.toFixed(2),totalCoststoBuyAtoB:pl.toFixed(2),totalcostPaidOutofClosing:ml.toFixed(2),totalCosttoSellBtoC:hl.toFixed(2),grossproceedsperHUD:vl.toFixed(2),totaladjustments:gl.toFixed(2),fundsavailablefordistribution:xl.toFixed(2),totalincomestatement:yl.toFixed(2),netBtoCsalevalue:jl.toFixed(2),netprofitbeforefinancingcosts:Nl.toFixed(2),netprofit:Cl.toFixed(2)};t(Ro({id:e,propertyData:bl}))},N=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=S=>{const E=l.propertyTaxInfo.filter((f,y)=>y!==S);d({...l,propertyTaxInfo:E})},b=(S,E)=>{const f=[...l.images];f[E]={...f[E],file:S.base64},d({...l,images:f})},w=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},m=S=>{const E=l.images.filter((f,y)=>y!==S);d({...l,images:E})},v=(S,E)=>{const f=[...l.images];f[S]={...f[S],title:E.target.value},d({...l,images:f})};k.useEffect(()=>{P(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,j]=k.useState("0 days"),P=(S,E)=>{if(S&&E){const f=new Date(S),y=new Date(E),C=Math.abs(y-f),F=Math.ceil(C/(1e3*60*60*24));j(`${F} days`)}else j("0 days")},T=()=>{d(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},O=S=>{const E=l.costPaidAtoB.filter((f,y)=>y!==S);d(f=>({...f,costPaidAtoB:E}))},_=(S,E,f)=>{const y=[...l.costPaidAtoB];y[S][E]=f,d(C=>({...C,costPaidAtoB:y}))},L=(S,E)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const C=l.costPaidAtoB.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidAtoB:C})}else{const C=l.costPaidAtoB.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,costPaidAtoB:C})}},z=()=>{const S=l.costPaidAtoB.reduce((f,y)=>{const C=parseFloat(y.price)||0;return f+C},0),E=parseFloat(l.purchaseCost)||0;return S+E},H=()=>{d(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},te=S=>{const E=l.credits.filter((f,y)=>y!==S);d(f=>({...f,credits:E}))},X=(S,E,f)=>{const y=[...l.credits];y[S][E]=f,d(C=>({...C,credits:y}))},Z=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.credits.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,credits:C})}else{const C=l.credits.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,credits:C})}},D=()=>l.credits.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),U=()=>{const S=l.costPaidAtoB.reduce((y,C)=>{const F=parseFloat(C.price)||0;return y+F},0),E=l.credits.reduce((y,C)=>{const F=parseFloat(C.price)||0;return y+F},0),f=parseFloat(l.purchaseCost)||0;return S+E+f},Q=()=>{d(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},A=S=>{const E=l.cashAdjustments.filter((f,y)=>y!==S);d(f=>({...f,cashAdjustments:E}))},R=(S,E,f)=>{const y=[...l.cashAdjustments];y[S][E]=f,d(C=>({...C,cashAdjustments:y}))},M=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.cashAdjustments.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,cashAdjustments:C})}else{const C=l.cashAdjustments.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,cashAdjustments:C})}},B=()=>l.cashAdjustments.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),W=()=>{const S=B(),E=D(),f=z();return S+E+f},K=()=>{d(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},Y=S=>{const E=l.incidentalCost.filter((f,y)=>y!==S);d(f=>({...f,incidentalCost:E}))},ee=(S,E,f)=>{const y=[...l.incidentalCost];y[S][E]=f,d(C=>({...C,incidentalCost:y}))},re=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.incidentalCost.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,incidentalCost:C})}else{const C=l.incidentalCost.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,incidentalCost:C})}},ne=()=>l.incidentalCost.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),se=()=>{d(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},ce=S=>{const E=l.carryCosts.filter((f,y)=>y!==S);d(f=>({...f,carryCosts:E}))},de=(S,E,f)=>{const y=[...l.carryCosts];y[S][E]=f,d(C=>({...C,carryCosts:y}))},ge=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.carryCosts.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,carryCosts:C})}else{const C=l.carryCosts.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,carryCosts:C})}},Be=()=>l.carryCosts.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),Ct=()=>{d(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},zt=S=>{const E=l.renovationCost.filter((f,y)=>y!==S);d(f=>({...f,renovationCost:E}))},he=(S,E,f)=>{const y=[...l.renovationCost];y[S][E]=f,d(C=>({...C,renovationCost:y}))},$t=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.renovationCost.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,renovationCost:C})}else{const C=l.renovationCost.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,renovationCost:C})}},Ye=()=>l.renovationCost.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),Qn=()=>{const S=ne(),E=Be(),f=Ye();return S+E+f},Zt=()=>{const S=Qn(),E=W();return S+E},ys=()=>{d(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},js=S=>{const E=l.costPaidOutofClosing.filter((f,y)=>y!==S);d(f=>({...f,costPaidOutofClosing:E}))},Xn=(S,E,f)=>{const y=[...l.costPaidOutofClosing];y[S][E]=f,d(C=>({...C,costPaidOutofClosing:y}))},Wt=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.costPaidOutofClosing.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,costPaidOutofClosing:C})}else{const C=l.costPaidOutofClosing.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,costPaidOutofClosing:C})}},gn=()=>l.costPaidOutofClosing.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),Ut=()=>{const S=l.sellingPriceBtoC,E=gn();return S-E},fe=()=>{d(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},qt=S=>{const E=l.adjustments.filter((f,y)=>y!==S);d(f=>({...f,adjustments:E}))},xn=(S,E,f)=>{const y=[...l.adjustments];y[S][E]=f,d(C=>({...C,adjustments:y}))},Li=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.adjustments.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,adjustments:C})}else{const C=l.adjustments.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,adjustments:C})}},Ns=()=>l.adjustments.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),Bi=()=>{const S=Ut(),E=Ns();return S+E},sl=()=>{d(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},il=S=>{const E=l.incomestatement.filter((f,y)=>y!==S);d(f=>({...f,incomestatement:E}))},Cs=(S,E,f)=>{const y=[...l.incomestatement];y[S][E]=f,d(C=>({...C,incomestatement:y}))},Jn=(S,E)=>{const f=S.target.value;if(/^\d*\.?\d*$/.test(f)||f===""){const C=l.incomestatement.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,incomestatement:C})}else{const C=l.incomestatement.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,incomestatement:C})}},Zn=()=>l.incomestatement.reduce((S,E)=>{const f=parseFloat(E.price);return S+(isNaN(f)?0:f)},0),en=()=>{const S=Zn(),E=Ut();return S+E},Er=()=>{const S=isNaN(parseFloat(en()))?0:parseFloat(en()),E=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),f=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),y=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),C=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),F=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return S+E+f+y+C-F},bs=()=>{const S=Er(),E=l.FinancingCostClosingCost;return S-E},ol=()=>bs(),Mi=()=>{d(S=>({...S,TradesinRenovations:[...S.TradesinRenovations,{title:"",price:""}]}))},zi=S=>{const E=l.TradesinRenovations.filter((f,y)=>y!==S);d(f=>({...f,TradesinRenovations:E}))},al=(S,E,f)=>{const y=[...l.TradesinRenovations];y[S][E]=f,d(C=>({...C,TradesinRenovations:y}))},ll=(S,E)=>{let f=S.target.value;if(f=f.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(f)||f===""){const C=l.TradesinRenovations.map((F,q)=>q===E?{...F,price:f,isInvalid:!1}:F);d({...l,TradesinRenovations:C})}else{const C=l.TradesinRenovations.map((F,q)=>q===E?{...F,isInvalid:!0}:F);d({...l,TradesinRenovations:C})}},cl=()=>{d(S=>({...S,IAB:[...S.IAB,{title:"",URL:""}]}))},dl=S=>{const E=l.IAB.filter((f,y)=>y!==S);d(f=>({...f,IAB:E}))},ul=(S,E,f)=>{const y=[...l.IAB];y[S][E]=f,d(C=>({...C,IAB:y}))},fl=(S,E,f)=>{const y=[...l.IAB];y[S][E]=f,d(C=>({...C,IAB:y}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"card d-flex justify-content-center align-items-center col-12",style:{padding:"35px",paddingLeft:"250px"},children:r.jsxs("div",{className:"justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})}),r.jsx("li",{role:"presentation",className:n==="IAB"?"active tab":"tab",children:r.jsx("a",{onClick:()=>s("IAB"),role:"tab",children:"IAB Verified Report"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((S,E)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:S.propertytaxowned,onChange:f=>p(f,E),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:S.ownedyear,onChange:f=>p(f,E),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:S.taxassessed,onChange:f=>p(f,E),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:S.taxyear,onChange:f=>p(f,E),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>x(E),style:{height:"25px",width:"35px"},children:"X"})]})})]},E)),r.jsx("button",{className:"btn btn-secondary",onClick:N,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,placeholder:"Image Title",onChange:f=>v(E,f)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(Na,{multiple:!1,onDone:f=>b(f,E)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(E),style:{marginLeft:"5px"},children:"Delete"})]}),S.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:S.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},E)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:w,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY&center=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 col-16",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:S=>{const E=S.target.value;d({...l,closeDateAtoB:E}),P(E,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:S=>{const E=S.target.value;d({...l,closeDateBtoC:E}),P(l.closeDateAtoB,E)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(S=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${S}`,value:S,checked:l.renovationRisk===S,onChange:E=>{const f=parseInt(E.target.value,10);d({...l,renovationRisk:f})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${S}`,children:S})]},S))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${ol().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:S=>{let E=S.target.value.replace(/[^\d.]/g,"");const f=/^\d*\.?\d*$/.test(E);d({...l,purchaseCost:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>_(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:f=>L(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>O(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:T,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>X(E,"title",f.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Z(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>R(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>M(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>A(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Q,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>ee(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>re(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Y(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>de(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>ge(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>ce(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Be(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>he(E,"title",f.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>$t(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zt(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ct,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ye(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,sellingPriceBtoC:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Xn(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Wt(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>js(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>xn(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Li(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>qt(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:fe,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Bi(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>Cs(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:f=>Jn(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>il(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:sl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,fundspriortoclosing:E,isfundspriortoclosingInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,shorttermrental:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,OtherIncome:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,InsuranceClaim:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,LongTermRental:E,isPurchaseCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Er(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:S=>{const E=S.target.value,f=/^\d*\.?\d*$/.test(E);d({...l,FinancingCostClosingCost:E,isFinancingCostClosingCostInvalid:!f})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:i,children:"Continue"})," "]})]}),n==="IAB"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Trades in Renovations"}),l.TradesinRenovations.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>al(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:f=>ll(f,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>zi(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:Mi,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Trades in Renovations"]})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Add IAB Links:"}),l.IAB.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:f=>ul(E,"title",f.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",value:S.URL,onChange:f=>fl(E,"URL",f.target.value),placeholder:"URL",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid URL."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>dl(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:cl,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add IAB URL"]})}),r.jsxs("div",{className:"col-md-6",children:[r.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]})]})]})]})})]})},ck=()=>{const e=Ke(),{properties:t,loading:n,totalPages:s,currentPage:i}=_e(b=>b.property),[o,a]=k.useState(""),[l,d]=k.useState([]),[c,u]=k.useState(1),p=10;k.useEffect(()=>{e(mr({page:c,limit:p,keyword:o}))},[e,c,o]),k.useEffect(()=>{o.trim()?d(t.filter(b=>b.address.toLowerCase().includes(o.toLowerCase()))):d(t)},[o,t]);const g=b=>{a(b.target.value)},N=b=>{b.preventDefault()},x=b=>{u(b),e(mr({page:b,limit:p,keyword:o}))};return r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:N,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:o,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:l.length>0?l.map(b=>r.jsxs("tr",{children:[r.jsx("td",{children:b.images&&b.images[0]?r.jsx("img",{src:b.images[0].file||mt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:mt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(le,{to:`/property/${b.propertyId}`,className:"link-primary text-decoration-none",children:b.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),b.city,", ",b.county,","," ",b.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",b.propertyId]})]})]})}),r.jsx("td",{children:b.totallivingsqft}),r.jsx("td",{children:b.yearBuild}),r.jsx("td",{children:b.costpersqft})]},b.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(i-1),children:"Previous"})}),Array.from({length:s},(b,w)=>r.jsx("li",{className:`page-item ${i===w+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(w+1),children:w+1})},w+1)),r.jsx("li",{className:`page-item ${i===s?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>x(i+1),children:"Next"})})]})})]}),r.jsx(tt,{})]})},dk=()=>{const{userId:e}=gs(),t=Ke(),{user:n,loading:s}=_e(i=>i.user);return k.useEffect(()=>{e&&t(To(e))},[e,t]),s?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Le,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{className:"img-fluid",src:n.profileImage||Bs,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:mt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",n.fundAmount]}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Bs,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function uk(){const e="http://67.225.129.127:3002",[t,n]=k.useState(""),[s,i]=k.useState(""),o=hn(),a=async l=>{l.preventDefault();try{const{data:d}=await me.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),o("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return r.jsx(r.Fragment,{children:r.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:r.jsx("div",{className:"col-md-6 col-lg-4",children:r.jsx("div",{className:"container-fluid px-0",children:r.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:r.jsxs("div",{className:"col-12 text-center",children:[r.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>n(l.target.value)}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>i(l.target.value)}),r.jsx("div",{className:"mb-3",children:r.jsx("button",{onClick:a,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function Bo({children:e}){const t=hn(),n=localStorage.getItem("token");return k.useEffect(()=>{n||t("/AdminPLogin")},[n,t]),n?e:null}Bo.propTypes={children:Lt.node.isRequired};const fk=()=>{const e=hn(),t=Ke(),{properties:n,totalPages:s}=_e(N=>N.property),[i,o]=k.useState(1),a=5,l="",[d,c]=k.useState("dashboard");k.useEffect(()=>{t(mr({page:i,limit:a,keyword:l}))},[t,i,l]);const u=N=>{o(N)},p=()=>{switch(d){case"activeUsers":return r.jsx("div",{children:"Active Users Content"});case"inactiveUsers":return r.jsx("div",{children:"Inactive Users Content"});case"addProperty":return r.jsx("div",{children:"Add Property Content"});case"userProperties":return r.jsx("div",{className:"container-fluid",style:{padding:"35px",paddingLeft:"120px"},children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(N=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:N.images[0].file||mt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsx("h5",{children:r.jsxs(le,{to:`/property/${N.propertyId}`,target:"_blank",children:[N.address,"....."]})}),r.jsx("p",{className:"text-justify text-truncate para mb-0",children:"There are many variations of passages of"})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(le,{to:`/property/${N.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," ","View Details"]})}),r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:()=>c("editDetails"),children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," ","Edit Details"]})]})})]})})})},N._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>u(i-1),disabled:i===1,children:"Previous"}),Array.from({length:s},(N,x)=>x+1).map(N=>N===i||N===1||N===s||N>=i-1&&N<=i+1?r.jsx("button",{onClick:()=>u(N),disabled:i===N,children:N},N):N===2||N===s-1?r.jsx("span",{children:"..."},N):null),r.jsx("button",{onClick:()=>u(i+1),disabled:i===s,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})});case"adminProperties":return r.jsx("div",{children:"Admin Properties Content"});case"newPage":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"New Page"}),r.jsx("p",{children:"This is some dummy text. You can replace it with your content later."})]});case"editDetails":return r.jsxs("div",{style:{padding:"20px"},children:[r.jsx("h3",{children:"Edit Property Details"}),r.jsx("p",{children:"You can add your edit details here."})]});default:return r.jsx("div",{children:r.jsx(le,{to:"/AdminPLogin/admininfo",children:"Welcome to the Dashboard"})})}},g=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return r.jsxs("div",{id:"wrapper",children:[r.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[r.jsxs("span",{className:"sidebar-brand d-flex align-items-center justify-content-center",children:[r.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:r.jsx("i",{className:"fas fa-laugh-wink"})}),r.jsxs("div",{className:"sidebar-brand-text mx-3",children:["Admin ",r.jsx("sup",{children:"EL"})]})]}),r.jsx("hr",{className:"sidebar-divider my-0"}),r.jsx("li",{className:"nav-item active",children:r.jsxs(le,{to:"#",onClick:()=>c("dashboard"),className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),r.jsx("span",{children:"Dashboard"})]})}),r.jsx("hr",{className:"sidebar-divider"}),r.jsx("div",{className:"sidebar-heading",children:"Interface"}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[r.jsx("i",{className:"fas fa-fw fa-cog"}),r.jsx("span",{children:"Users"})]}),r.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),r.jsx(le,{to:"#",onClick:()=>c("activeUsers"),className:"collapse-item link-primary text-decoration-none",children:"Active Users"}),r.jsx(le,{to:"#",onClick:()=>c("inactiveUsers"),className:"collapse-item link-primary text-decoration-none",children:"Inactive Users"})]})})]}),r.jsxs("li",{className:"nav-item",children:[r.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[r.jsx("i",{className:"fas fa-fw fa-wrench"}),r.jsx("span",{children:"Properties"})]}),r.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:r.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[r.jsx("h6",{className:"collapse-header",children:"Details:"}),r.jsx(le,{to:"#",onClick:()=>c("addProperty"),className:"collapse-item link-primary text-decoration-none",children:"Add Property"}),r.jsx(le,{to:"#",onClick:()=>c("userProperties"),className:"collapse-item link-primary text-decoration-none",children:"User Properties"}),r.jsx(le,{to:"#",onClick:()=>c("adminProperties"),className:"collapse-item link-primary text-decoration-none",children:"Admin Properties"}),r.jsx(le,{to:"#",onClick:()=>c("newPage"),className:"collapse-item link-primary text-decoration-none",children:"New Page"})]})})]}),r.jsx("li",{className:"nav-item",children:r.jsxs(le,{to:"#",onClick:g,className:"nav-link link-primary text-decoration-none",children:[r.jsx("i",{className:"fas fa-fw fa-sign-out-alt"}),r.jsx("span",{children:"Logout"})]})})]}),r.jsx("div",{id:"content-wrapper",className:"d-flex flex-column",children:r.jsx("div",{id:"content",children:r.jsx("div",{className:"container-fluid",children:p()})})})]})},pk=()=>{const e=Ke(),{user:t,loading:n,error:s}=_e(i=>i.admin);return console.log("user",t),k.useEffect(()=>{e(Do())},[e]),n?r.jsx("p",{children:"Loading..."}):s?r.jsxs("p",{children:["Error: ",s]}):r.jsxs("div",{children:[r.jsx("h2",{children:"Admin Details"}),t?r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("strong",{children:"Username:"})," ",t.username]})}):r.jsx("p",{children:"No user details found. Thank you"})]})},mk=()=>r.jsxs(EC,{children:[r.jsx(VC,{}),r.jsxs(yC,{children:[r.jsx(be,{path:"/",element:r.jsx(HC,{})}),r.jsx(be,{path:"/about",element:r.jsx(KC,{})}),r.jsx(be,{path:"/services",element:r.jsx(ak,{})}),r.jsx(be,{path:"/contact",element:r.jsx(YC,{})}),r.jsx(be,{path:"/register",element:r.jsx(jb,{})}),r.jsx(be,{path:"/registrationsuccess",element:r.jsx(Ms,{children:r.jsx(Mb,{})})}),r.jsx(be,{path:"/login",element:r.jsx(Cb,{})}),r.jsx(be,{path:"/dashboard",element:r.jsx(Ms,{children:r.jsx(_b,{})})}),r.jsx(be,{path:"/users/:id/verify/:token",element:r.jsx(Db,{})}),r.jsx(be,{path:"/forgotpassword",element:r.jsx(Lb,{})}),r.jsx(be,{path:"/users/resetpassword/:userId/:token",element:r.jsx(Bb,{})}),r.jsx(be,{path:"/addproperty",element:r.jsx(Ms,{children:r.jsx(lg,{})})}),r.jsx(be,{path:"/property/:id",element:r.jsx(ik,{})}),r.jsx(be,{path:"/properties/:house_id",element:r.jsx(lk,{})}),r.jsx(be,{path:"/searchmyproperties",element:r.jsx(ok,{})}),r.jsx(be,{path:"/searchproperties",element:r.jsx(ck,{})}),r.jsx(be,{path:"/editproperty/:id",element:r.jsx(Ms,{children:r.jsx(zp,{})})}),r.jsx(be,{path:"/profile/:userId",element:r.jsx(dk,{})}),r.jsx(be,{path:"/AdminPLogin",element:r.jsx(uk,{})}),r.jsx(be,{path:"/AdminPLogin/dashboard",element:r.jsx(Bo,{children:r.jsx(fk,{})})}),r.jsx(be,{path:"/AdminPLogin/admininfo",element:r.jsx(Bo,{children:r.jsx(pk,{})})}),r.jsx(be,{path:"/admineditproperty/:id",element:r.jsx(Bo,{children:r.jsx(zp,{})})})]})]});ev(document.getElementById("root")).render(r.jsx(k.StrictMode,{children:r.jsx(zj,{store:AN,children:r.jsx(mk,{})})}));