var Ig=Object.defineProperty;var Dg=(e,t,r)=>t in e?Ig(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pl=(e,t,r)=>Dg(e,typeof t!="symbol"?t+"":t,r);function Fg(e,t){for(var r=0;rs[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Om={exports:{}},yi={},Tm={exports:{}},de={};/** * @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 wa=Symbol.for("react.element"),Mg=Symbol.for("react.portal"),Bg=Symbol.for("react.fragment"),zg=Symbol.for("react.strict_mode"),$g=Symbol.for("react.profiler"),Wg=Symbol.for("react.provider"),Ug=Symbol.for("react.context"),qg=Symbol.for("react.forward_ref"),Vg=Symbol.for("react.suspense"),Hg=Symbol.for("react.memo"),Kg=Symbol.for("react.lazy"),Tu=Symbol.iterator;function Yg(e){return e===null||typeof e!="object"?null:(e=Tu&&e[Tu]||e["@@iterator"],typeof e=="function"?e:null)}var Rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Am=Object.assign,Im={};function us(e,t,r){this.props=e,this.context=t,this.refs=Im,this.updater=r||Rm}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 Dm(){}Dm.prototype=us.prototype;function yd(e,t,r){this.props=e,this.context=t,this.refs=Im,this.updater=r||Rm}var jd=yd.prototype=new Dm;jd.constructor=yd;Am(jd,us.prototype);jd.isPureReactComponent=!0;var Ru=Array.isArray,Fm=Object.prototype.hasOwnProperty,Nd={current:null},Lm={key:!0,ref:!0,__self:!0,__source:!0};function Mm(e,t,r){var s,a={},o=null,i=null;if(t!=null)for(s in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Fm.call(t,s)&&!Lm.hasOwnProperty(s)&&(a[s]=t[s]);var l=arguments.length-2;if(l===1)a.children=r;else if(1>>1,W=R[L];if(0>>1;La(ee,B))rea(ne,ee)?(R[L]=ne,R[re]=B,L=re):(R[L]=ee,R[Y]=B,L=Y);else if(rea(ne,B))R[L]=ne,R[re]=B,L=re;else break e}}return A}function a(R,A){var B=R.sortIndex-A.sortIndex;return B!==0?B:R.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var d=[],c=[],u=1,f=null,g=3,b=!1,x=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,p=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(R){for(var A=r(c);A!==null;){if(A.callback===null)s(c);else if(A.startTime<=R)s(c),A.sortIndex=A.expirationTime,t(d,A);else break;A=r(c)}}function y(R){if(N=!1,h(R),!x)if(r(d)!==null)x=!0,U(k);else{var A=r(c);A!==null&&G(y,A.startTime-R)}}function k(R,A){x=!1,N&&(N=!1,p(_),_=-1),b=!0;var B=g;try{for(h(A),f=r(d);f!==null&&(!(f.expirationTime>A)||R&&!H());){var L=f.callback;if(typeof L=="function"){f.callback=null,g=f.priorityLevel;var W=L(f.expirationTime<=A);A=e.unstable_now(),typeof W=="function"?f.callback=W:f===r(d)&&s(d),h(A)}else s(d);f=r(d)}if(f!==null)var K=!0;else{var Y=r(c);Y!==null&&G(y,Y.startTime-A),K=!1}return K}finally{f=null,g=B,b=!1}}var O=!1,T=null,_=-1,F=5,z=-1;function H(){return!(e.unstable_now()-zR||125L?(R.sortIndex=B,t(c,R),r(d)===null&&R===r(c)&&(N?(p(_),_=-1):N=!0,G(y,B-L))):(R.sortIndex=W,t(d,R),x||b||(x=!0,U(k))),R},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(R){var A=g;return function(){var B=g;g=A;try{return R.apply(this,arguments)}finally{g=B}}}})(Um);Wm.exports=Um;var ax=Wm.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 ox=w,vt=ax;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sc=Object.prototype.hasOwnProperty,ix=/^[: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]*$/,Iu={},Du={};function lx(e){return sc.call(Du,e)?!0:sc.call(Iu,e)?!1:ix.test(e)?Du[e]=!0:(Iu[e]=!0,!1)}function cx(e,t,r,s){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function dx(e,t,r,s){if(t===null||typeof t>"u"||cx(e,t,r,s))return!0;if(s)return!1;if(r!==null)switch(r.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 Xe(e,t,r,s,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new Xe(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 Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new Xe(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 Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var bd=/[\-:]([a-z])/g;function wd(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(bd,wd);We[t]=new Xe(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(bd,wd);We[t]=new Xe(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(bd,wd);We[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sd(e,t,r,s){var a=We.hasOwnProperty(t)?We[t]:null;(a!==null?a.type!==0:s||!(2l||a[i]!==o[l]){var d=` `+a[i].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=i&&0<=l);break}}}finally{gl=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?As(e):""}function ux(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=xl(e.type,!1),e;case 11:return e=xl(e.type.render,!1),e;case 1:return e=xl(e.type,!0),e;default:return""}}function lc(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 Tr:return"Portal";case ac:return"Profiler";case kd:return"StrictMode";case oc:return"Suspense";case ic:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Ed:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pd:return t=e.displayName||null,t!==null?t:lc(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return lc(e(t))}catch{}}return null}function fx(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 lc(t);case 8:return t===kd?"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 Ym(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mx(e){var t=Ym(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){s=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return s},setValue:function(i){s=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function za(e){e._valueTracker||(e._valueTracker=mx(e))}function Gm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),s="";return e&&(s=Ym(e)?e.checked?"true":"false":e.value),e=s,e!==r?(t.setValue(e),!0):!1}function Io(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 cc(e,t){var r=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Lu(e,t){var r=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;r=Wn(t.value!=null?t.value:r),e._wrapperState={initialChecked:s,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qm(e,t){t=t.checked,t!=null&&Sd(e,"checked",t,!1)}function dc(e,t){Qm(e,t);var r=Wn(t.value),s=t.type;if(r!=null)s==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?uc(e,t.type,r):t.hasOwnProperty("defaultValue")&&uc(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mu(e,t,r){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,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function uc(e,t,r){(t!=="number"||Io(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Is=Array.isArray;function Gr(e,t,r,s){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=$a.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ea(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var zs={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},px=["Webkit","ms","Moz","O"];Object.keys(zs).forEach(function(e){px.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zs[t]=zs[e]})});function ep(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||zs.hasOwnProperty(e)&&zs[e]?(""+t).trim():t+"px"}function tp(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var s=r.indexOf("--")===0,a=ep(r,t[r],s);r==="float"&&(r="cssFloat"),s?e.setProperty(r,a):e[r]=a}}var hx=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 pc(e,t){if(t){if(hx[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 hc(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 vc=null;function _d(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gc=null,Qr=null,Jr=null;function $u(e){if(e=Ea(e)){if(typeof gc!="function")throw Error(V(280));var t=e.stateNode;t&&(t=wi(t),gc(e.stateNode,e.type,t))}}function np(e){Qr?Jr?Jr.push(e):Jr=[e]:Qr=e}function rp(){if(Qr){var e=Qr,t=Jr;if(Jr=Qr=null,$u(e),t)for(e=0;e>>=0,e===0?32:31-(kx(e)/Ex|0)|0}var Wa=64,Ua=4194304;function Ds(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 Mo(e,t){var r=e.pendingLanes;if(r===0)return 0;var s=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var l=i&~a;l!==0?s=Ds(l):(o&=i,o!==0&&(s=Ds(o)))}else i=r&~a,i!==0?s=Ds(i):o!==0&&(s=Ds(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&a)&&(a=s&-s,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(s&4&&(s|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0r;r++)t.push(e);return t}function Sa(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=r}function Tx(e,t){var r=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=Ws),Qu=" ",Ju=!1;function bp(e,t){switch(e){case"keyup":return ay.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function iy(e,t){switch(e){case"compositionend":return wp(t);case"keypress":return t.which!==32?null:(Ju=!0,Qu);case"textInput":return e=t.data,e===Qu&&Ju?null:e;default:return null}}function ly(e,t){if(Ar)return e==="compositionend"||!Ld&&bp(e,t)?(e=Np(),uo=Id=_n=null,Ar=!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)return{node:r,offset:t-e};e=s}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=tf(r)}}function Pp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _p(){for(var e=window,t=Io();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Io(e.document)}return t}function Md(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 gy(e){var t=_p(),r=e.focusedElem,s=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Pp(r.ownerDocument.documentElement,r)){if(s!==null&&Md(r)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(s.start,a);s=s.end===void 0?o:Math.min(s.end,a),!e.extend&&o>s&&(a=s,s=o,o=a),a=nf(r,o);var i=nf(r,s);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Ir=null,bc=null,qs=null,wc=!1;function rf(e,t,r){var s=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wc||Ir==null||Ir!==Io(s)||(s=Ir,"selectionStart"in s&&Md(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}),qs&&oa(qs,s)||(qs=s,s=$o(bc,"onSelect"),0Lr||(e.current=Oc[Lr],Oc[Lr]=null,Lr--)}function xe(e,t){Lr++,Oc[Lr]=e.current,e.current=t}var Un={},He=Hn(Un),rt=Hn(!1),vr=Un;function rs(e,t){var r=e.type.contextTypes;if(!r)return Un;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function st(e){return e=e.childContextTypes,e!=null}function Uo(){Ne(rt),Ne(He)}function uf(e,t,r){if(He.current!==Un)throw Error(V(168));xe(He,t),xe(rt,r)}function Mp(e,t,r){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return r;s=s.getChildContext();for(var a in s)if(!(a in t))throw Error(V(108,fx(e)||"Unknown",a));return Se({},r,s)}function qo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Un,vr=He.current,xe(He,e),xe(rt,rt.current),!0}function ff(e,t,r){var s=e.stateNode;if(!s)throw Error(V(169));r?(e=Mp(e,t,vr),s.__reactInternalMemoizedMergedChildContext=e,Ne(rt),Ne(He),xe(He,e)):Ne(rt),xe(rt,r)}var rn=null,Si=!1,Rl=!1;function Bp(e){rn===null?rn=[e]:rn.push(e)}function _y(e){Si=!0,Bp(e)}function Kn(){if(!Rl&&rn!==null){Rl=!0;var e=0,t=ve;try{var r=rn;for(ve=1;e>=i,a-=i,sn=1<<32-It(t)+a|r<_?(F=T,T=null):F=T.sibling;var z=g(p,T,h[_],y);if(z===null){T===null&&(T=F);break}e&&T&&z.alternate===null&&t(p,T),v=o(z,v,_),O===null?k=z:O.sibling=z,O=z,T=F}if(_===h.length)return r(p,T),Ce&&tr(p,_),k;if(T===null){for(;__?(F=T,T=null):F=T.sibling;var H=g(p,T,z.value,y);if(H===null){T===null&&(T=F);break}e&&T&&H.alternate===null&&t(p,T),v=o(H,v,_),O===null?k=H:O.sibling=H,O=H,T=F}if(z.done)return r(p,T),Ce&&tr(p,_),k;if(T===null){for(;!z.done;_++,z=h.next())z=f(p,z.value,y),z!==null&&(v=o(z,v,_),O===null?k=z:O.sibling=z,O=z);return Ce&&tr(p,_),k}for(T=s(p,T);!z.done;_++,z=h.next())z=b(T,p,_,z.value,y),z!==null&&(e&&z.alternate!==null&&T.delete(z.key===null?_:z.key),v=o(z,v,_),O===null?k=z:O.sibling=z,O=z);return e&&T.forEach(function(te){return t(p,te)}),Ce&&tr(p,_),k}function C(p,v,h,y){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 Ba:e:{for(var k=h.key,O=v;O!==null;){if(O.key===k){if(k=h.type,k===Rr){if(O.tag===7){r(p,O.sibling),v=a(O,h.props.children),v.return=p,p=v;break e}}else if(O.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Nn&&hf(k)===O.type){r(p,O.sibling),v=a(O,h.props),v.ref=_s(p,O,h),v.return=p,p=v;break e}r(p,O);break}else t(p,O);O=O.sibling}h.type===Rr?(v=fr(h.props.children,p.mode,y,h.key),v.return=p,p=v):(y=yo(h.type,h.key,h.props,null,p.mode,y),y.ref=_s(p,v,h),y.return=p,p=y)}return i(p);case Tr:e:{for(O=h.key;v!==null;){if(v.key===O)if(v.tag===4&&v.stateNode.containerInfo===h.containerInfo&&v.stateNode.implementation===h.implementation){r(p,v.sibling),v=a(v,h.children||[]),v.return=p,p=v;break e}else{r(p,v);break}else t(p,v);v=v.sibling}v=zl(h,p.mode,y),v.return=p,p=v}return i(p);case Nn:return O=h._init,C(p,v,O(h._payload),y)}if(Is(h))return x(p,v,h,y);if(ws(h))return N(p,v,h,y);Qa(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,v!==null&&v.tag===6?(r(p,v.sibling),v=a(v,h),v.return=p,p=v):(r(p,v),v=Bl(h,p.mode,y),v.return=p,p=v),i(p)):r(p,v)}return C}var as=Up(!0),qp=Up(!1),Ko=Hn(null),Yo=null,zr=null,Wd=null;function Ud(){Wd=zr=Yo=null}function qd(e){var t=Ko.current;Ne(Ko),e._currentValue=t}function Ac(e,t,r){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===r)break;e=e.return}}function Zr(e,t){Yo=e,Wd=zr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(nt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(Wd!==e)if(e={context:e,memoizedValue:t,next:null},zr===null){if(Yo===null)throw Error(V(308));zr=e,Yo.dependencies={lanes:0,firstContext:e}}else zr=zr.next=e;return t}var lr=null;function Vd(e){lr===null?lr=[e]:lr.push(e)}function Vp(e,t,r,s){var a=t.interleaved;return a===null?(r.next=r,Vd(t)):(r.next=a.next,a.next=r),t.interleaved=r,dn(e,s)}function dn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Cn=!1;function Hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hp(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 on(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,r){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,fe&2){var a=s.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),s.pending=t,dn(e,r)}return a=s.interleaved,a===null?(t.next=t,Vd(s)):(t.next=a.next,a.next=t),s.interleaved=t,dn(e,r)}function mo(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Td(e,r)}}function vf(e,t){var r=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,r===s)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Go(e,t,r,s){var a=e.updateQueue;Cn=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var d=l,c=d.next;d.next=null,i===null?o=c:i.next=c,i=d;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==i&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=d))}if(o!==null){var f=a.baseState;i=0,u=c=d=null,l=o;do{var g=l.lane,b=l.eventTime;if((s&g)===g){u!==null&&(u=u.next={eventTime:b,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,N=l;switch(g=t,b=r,N.tag){case 1:if(x=N.payload,typeof x=="function"){f=x.call(b,f,g);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=N.payload,g=typeof x=="function"?x.call(b,f,g):x,g==null)break e;f=Se({},f,g);break e;case 2:Cn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=a.effects,g===null?a.effects=[l]:g.push(l))}else b={eventTime:b,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=b,d=f):u=u.next=b,i|=g;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;g=l,l=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null}}while(!0);if(u===null&&(d=f),a.baseState=d,a.firstBaseUpdate=c,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);yr|=i,e.lanes=i,e.memoizedState=f}}function gf(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var s=Il.transition;Il.transition={};try{e(!1),t()}finally{ve=r,Il.transition=s}}function ch(){return Pt().memoizedState}function Ay(e,t,r){var s=Bn(e);if(r={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null},dh(e))uh(t,r);else if(r=Vp(e,t,r,s),r!==null){var a=Qe();Dt(r,e,s,a),fh(r,t,s)}}function Iy(e,t,r){var s=Bn(e),a={lane:s,action:r,hasEagerState:!1,eagerState:null,next:null};if(dh(e))uh(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,r);if(a.hasEagerState=!0,a.eagerState=l,Mt(l,i)){var d=t.interleaved;d===null?(a.next=a,Vd(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch{}finally{}r=Vp(e,t,a,s),r!==null&&(a=Qe(),Dt(r,e,s,a),fh(r,t,s))}}function dh(e){var t=e.alternate;return e===we||t!==null&&t===we}function uh(e,t){Vs=Jo=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function fh(e,t,r){if(r&4194240){var s=t.lanes;s&=e.pendingLanes,r|=s,t.lanes=r,Td(e,r)}}var Xo={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},Dy={readContext:Et,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:yf,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ho(4194308,4,sh.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ho(4194308,4,e,t)},useInsertionEffect:function(e,t){return ho(4,2,e,t)},useMemo:function(e,t){var r=Ht();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var s=Ht();return t=r!==void 0?r(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=Ay.bind(null,we,e),[s.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:xf,useDebugValue:eu,useDeferredValue:function(e){return Ht().memoizedState=e},useTransition:function(){var e=xf(!1),t=e[0];return e=Ry.bind(null,e[1]),Ht().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var s=we,a=Ht();if(Ce){if(r===void 0)throw Error(V(407));r=r()}else{if(r=t(),Fe===null)throw Error(V(349));xr&30||Qp(s,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,yf(Xp.bind(null,s,o,e),[e]),s.flags|=2048,pa(9,Jp.bind(null,s,o,r,t),void 0,null),r},useId:function(){var e=Ht(),t=Fe.identifierPrefix;if(Ce){var r=an,s=sn;r=(s&~(1<<32-It(s)-1)).toString(32)+r,t=":"+t+"R"+r,r=fa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=i.createElement(r,{is:s.is}):(e=i.createElement(r),r==="select"&&(i=e,s.multiple?i.multiple=!0:s.size&&(i.size=s.size))):e=i.createElementNS(e,r),e[Yt]=t,e[ca]=s,Ch(e,t,!1,!1),t.stateNode=e;e:{switch(i=hc(r,s),r){case"dialog":je("cancel",e),je("close",e),a=s;break;case"iframe":case"object":case"embed":je("load",e),a=s;break;case"video":case"audio":for(a=0;als&&(t.flags|=128,s=!0,Os(o,!1),t.lanes=4194304)}else{if(!s)if(e=Qo(i),e!==null){if(t.flags|=128,s=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Os(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Ce)return qe(t),null}else 2*Pe()-o.renderingStartTime>ls&&r!==1073741824&&(t.flags|=128,s=!0,Os(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Pe(),t.sibling=null,r=be.current,xe(be,s?r&1|2:r&1),t):(qe(t),null);case 22:case 23:return ou(),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 Uy(e,t){switch(zd(t),t.tag){case 1:return st(t.type)&&Uo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return os(),Ne(rt),Ne(He),Gd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yd(t),null;case 13:if(Ne(be),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(be),null;case 4:return os(),null;case 10:return qd(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var Xa=!1,Ve=!1,qy=typeof WeakSet=="function"?WeakSet:Set,X=null;function $r(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(s){ke(e,t,s)}else r.current=null}function Wc(e,t,r){try{r()}catch(s){ke(e,t,s)}}var Of=!1;function Vy(e,t){if(Sc=Bo,e=_p(),Md(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var s=r.getSelection&&r.getSelection();if(s&&s.rangeCount!==0){r=s.anchorNode;var a=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,l=-1,d=-1,c=0,u=0,f=e,g=null;t:for(;;){for(var b;f!==r||a!==0&&f.nodeType!==3||(l=i+a),f!==o||s!==0&&f.nodeType!==3||(d=i+s),f.nodeType===3&&(i+=f.nodeValue.length),(b=f.firstChild)!==null;)g=f,f=b;for(;;){if(f===e)break t;if(g===r&&++c===a&&(l=i),g===o&&++u===s&&(d=i),(b=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=b}r=l===-1||d===-1?null:{start:l,end:d}}else r=null}r=r||{start:0,end:0}}else r=null;for(kc={focusedElem:e,selectionRange:r},Bo=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;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 N=x.memoizedProps,C=x.memoizedState,p=t.stateNode,v=p.getSnapshotBeforeUpdate(t.elementType===t.type?N:Ot(t.type,N),C);p.__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(y){ke(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return x=Of,Of=!1,x}function Hs(e,t,r){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Wc(t,r,o)}a=a.next}while(a!==s)}}function Pi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var s=r.create;r.destroy=s()}r=r.next}while(r!==t)}}function Uc(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Sh(e){var t=e.alternate;t!==null&&(e.alternate=null,Sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yt],delete t[ca],delete t[_c],delete t[Ey],delete t[Py])),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 kh(e){return e.tag===5||e.tag===3||e.tag===4}function Tf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(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 qc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Wo));else if(s!==4&&(e=e.child,e!==null))for(qc(e,t,r),e=e.sibling;e!==null;)qc(e,t,r),e=e.sibling}function Vc(e,t,r){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Vc(e,t,r),e=e.sibling;e!==null;)Vc(e,t,r),e=e.sibling}var ze=null,Tt=!1;function yn(e,t,r){for(r=r.child;r!==null;)Eh(e,t,r),r=r.sibling}function Eh(e,t,r){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(ji,r)}catch{}switch(r.tag){case 5:Ve||$r(r,t);case 6:var s=ze,a=Tt;ze=null,yn(e,t,r),ze=s,Tt=a,ze!==null&&(Tt?(e=ze,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ze.removeChild(r.stateNode));break;case 18:ze!==null&&(Tt?(e=ze,r=r.stateNode,e.nodeType===8?Tl(e.parentNode,r):e.nodeType===1&&Tl(e,r),sa(e)):Tl(ze,r.stateNode));break;case 4:s=ze,a=Tt,ze=r.stateNode.containerInfo,Tt=!0,yn(e,t,r),ze=s,Tt=a;break;case 0:case 11:case 14:case 15:if(!Ve&&(s=r.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Wc(r,t,i),a=a.next}while(a!==s)}yn(e,t,r);break;case 1:if(!Ve&&($r(r,t),s=r.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=r.memoizedProps,s.state=r.memoizedState,s.componentWillUnmount()}catch(l){ke(r,t,l)}yn(e,t,r);break;case 21:yn(e,t,r);break;case 22:r.mode&1?(Ve=(s=Ve)||r.memoizedState!==null,yn(e,t,r),Ve=s):yn(e,t,r);break;default:yn(e,t,r)}}function Rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qy),t.forEach(function(s){var a=ej.bind(null,e,s);r.has(s)||(r.add(s),s.then(a,a))})}}function _t(e,t){var r=t.deletions;if(r!==null)for(var s=0;sa&&(a=i),s&=~o}if(s=a,s=Pe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Ky(s/1960))-s,10e?16:e,On===null)var s=!1;else{if(e=On,On=null,ti=0,fe&6)throw Error(V(331));var a=fe;for(fe|=4,X=e.current;X!==null;){var o=X,i=o.child;if(X.flags&16){var l=o.deletions;if(l!==null){for(var d=0;dPe()-su?ur(e,0):ru|=r),at(e,t)}function Dh(e,t){t===0&&(e.mode&1?(t=Ua,Ua<<=1,!(Ua&130023424)&&(Ua=4194304)):t=1);var r=Qe();e=dn(e,t),e!==null&&(Sa(e,t,r),at(e,r))}function Zy(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Dh(e,r)}function ej(e,t){var r=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(V(314))}s!==null&&s.delete(t),Dh(e,r)}var Fh;Fh=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||rt.current)nt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return nt=!1,$y(e,t,r);nt=!!(e.flags&131072)}else nt=!1,Ce&&t.flags&1048576&&zp(t,Ho,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;vo(e,t),e=t.pendingProps;var a=rs(t,He.current);Zr(t,r),a=Jd(null,t,s,e,a,r);var o=Xd();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,st(s)?(o=!0,qo(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Hd(t),a.updater=Ei,t.stateNode=a,a._reactInternals=t,Dc(t,s,e,r),t=Mc(null,t,s,!0,o,r)):(t.tag=0,Ce&&o&&Bd(t),Ye(null,t,a,r),t=t.child),t;case 16:s=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,a=s._init,s=a(s._payload),t.type=s,a=t.tag=nj(s),e=Ot(s,e),a){case 0:t=Lc(null,t,s,e,r);break e;case 1:t=Ef(null,t,s,e,r);break e;case 11:t=Sf(null,t,s,e,r);break e;case 14:t=kf(null,t,s,Ot(s.type,e),r);break e}throw Error(V(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ot(s,a),Lc(e,t,s,a,r);case 1:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ot(s,a),Ef(e,t,s,a,r);case 3:e:{if(yh(t),e===null)throw Error(V(387));s=t.pendingProps,o=t.memoizedState,a=o.element,Hp(e,t),Go(t,s,null,r);var i=t.memoizedState;if(s=i.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=is(Error(V(423)),t),t=Pf(e,t,s,r,a);break e}else if(s!==a){a=is(Error(V(424)),t),t=Pf(e,t,s,r,a);break e}else for(ut=Fn(t.stateNode.containerInfo.firstChild),pt=t,Ce=!0,Rt=null,r=qp(t,null,s,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ss(),s===a){t=un(e,t,r);break e}Ye(e,t,s,r)}t=t.child}return t;case 5:return Kp(t),e===null&&Rc(t),s=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Ec(s,a)?i=null:o!==null&&Ec(s,o)&&(t.flags|=32),xh(e,t),Ye(e,t,i,r),t.child;case 6:return e===null&&Rc(t),null;case 13:return jh(e,t,r);case 4:return Kd(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=as(t,null,s,r):Ye(e,t,s,r),t.child;case 11:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ot(s,a),Sf(e,t,s,a,r);case 7:return Ye(e,t,t.pendingProps,r),t.child;case 8:return Ye(e,t,t.pendingProps.children,r),t.child;case 12:return Ye(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,xe(Ko,s._currentValue),s._currentValue=i,o!==null)if(Mt(o.value,i)){if(o.children===a.children&&!rt.current){t=un(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){i=o.child;for(var d=l.firstContext;d!==null;){if(d.context===s){if(o.tag===1){d=on(-1,r&-r),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|=r,d=o.alternate,d!==null&&(d.lanes|=r),Ac(o.return,r,t),l.lanes|=r;break}d=d.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(V(341));i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Ac(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ye(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Zr(t,r),a=Et(a),s=s(a),t.flags|=1,Ye(e,t,s,r),t.child;case 14:return s=t.type,a=Ot(s,t.pendingProps),a=Ot(s.type,a),kf(e,t,s,a,r);case 15:return vh(e,t,t.type,t.pendingProps,r);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:Ot(s,a),vo(e,t),t.tag=1,st(s)?(e=!0,qo(t)):e=!1,Zr(t,r),mh(t,s,a),Dc(t,s,a,r),Mc(null,t,s,!0,e,r);case 19:return Nh(e,t,r);case 22:return gh(e,t,r)}throw Error(V(156,t.tag))};function Lh(e,t){return dp(e,t)}function tj(e,t,r,s){this.tag=e,this.key=r,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 wt(e,t,r,s){return new tj(e,t,r,s)}function lu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nj(e){if(typeof e=="function")return lu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ed)return 11;if(e===Pd)return 14}return 2}function zn(e,t){var r=e.alternate;return r===null?(r=wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yo(e,t,r,s,a,o){var i=2;if(s=e,typeof e=="function")lu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Rr:return fr(r.children,a,o,t);case kd:i=8,a|=8;break;case ac:return e=wt(12,r,t,a|2),e.elementType=ac,e.lanes=o,e;case oc:return e=wt(13,r,t,a),e.elementType=oc,e.lanes=o,e;case ic:return e=wt(19,r,t,a),e.elementType=ic,e.lanes=o,e;case Km:return Oi(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:i=10;break e;case Hm:i=9;break e;case Ed:i=11;break e;case Pd:i=14;break e;case Nn:i=16,s=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=wt(i,r,t,a),t.elementType=e,t.type=s,t.lanes=o,t}function fr(e,t,r,s){return e=wt(7,e,s,t),e.lanes=r,e}function Oi(e,t,r,s){return e=wt(22,e,s,t),e.elementType=Km,e.lanes=r,e.stateNode={isHidden:!1},e}function Bl(e,t,r){return e=wt(6,e,null,t),e.lanes=r,e}function zl(e,t,r){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rj(e,t,r,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function cu(e,t,r,s,a,o,i,l,d){return e=new rj(e,t,r,l,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=wt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hd(o),e}function sj(e,t,r){var s=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($h)}catch(e){console.error(e)}}$h(),$m.exports=yt;var Wh=$m.exports;const Ur=ba(Wh);var Uh,zf=Wh;Uh=zf.createRoot,zf.hydrateRoot;var qh={exports:{}},Vh={};/** * @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 _a=w;function cj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dj=typeof Object.is=="function"?Object.is:cj,uj=_a.useSyncExternalStore,fj=_a.useRef,mj=_a.useEffect,pj=_a.useMemo,hj=_a.useDebugValue;Vh.useSyncExternalStoreWithSelector=function(e,t,r,s,a){var o=fj(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=pj(function(){function d(b){if(!c){if(c=!0,u=b,b=s(b),a!==void 0&&i.hasValue){var x=i.value;if(a(x,b))return f=x}return f=b}if(x=f,dj(u,b))return x;var N=s(b);return a!==void 0&&a(x,N)?x:(u=b,f=N)}var c=!1,u,f,g=r===void 0?null:r;return[function(){return d(t())},g===null?void 0:function(){return d(g())}]},[t,r,s,a]);var l=uj(e,o[0],o[1]);return mj(function(){i.hasValue=!0,i.value=l},[l]),hj(l),l};qh.exports=Vh;var vj=qh.exports,ft="default"in rc?I:rc,$f=Symbol.for("react-redux-context"),Wf=typeof globalThis<"u"?globalThis:{};function gj(){if(!ft.createContext)return{};const e=Wf[$f]??(Wf[$f]=new Map);let t=e.get(ft.createContext);return t||(t=ft.createContext(null),e.set(ft.createContext,t)),t}var qn=gj(),xj=()=>{throw new Error("uSES not initialized!")};function mu(e=qn){return function(){return ft.useContext(e)}}var Hh=mu(),Kh=xj,yj=e=>{Kh=e},jj=(e,t)=>e===t;function Nj(e=qn){const t=e===qn?Hh:mu(e),r=(s,a={})=>{const{equalityFn:o=jj,devModeChecks:i={}}=typeof a=="function"?{equalityFn:a}:a,{store:l,subscription:d,getServerState:c,stabilityCheck:u,identityFunctionCheck:f}=t();ft.useRef(!0);const g=ft.useCallback({[s.name](x){return s(x)}}[s.name],[s,u,i.stabilityCheck]),b=Kh(d.addNestedSub,l.getState,c||l.getState,g,o);return ft.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Te=Nj();function Cj(e){e()}function bj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Cj(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let s=e;for(;s;)r.push(s),s=s.next;return r},subscribe(r){let s=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!s||e===null||(s=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var Uf={notify(){},get:()=>[]};function wj(e,t){let r,s=Uf,a=0,o=!1;function i(N){u();const C=s.subscribe(N);let p=!1;return()=>{p||(p=!0,C(),f())}}function l(){s.notify()}function d(){x.onStateChange&&x.onStateChange()}function c(){return o}function u(){a++,r||(r=e.subscribe(d),s=bj())}function f(){a--,r&&a===0&&(r(),r=void 0,s.clear(),s=Uf)}function g(){o||(o=!0,u())}function b(){o&&(o=!1,f())}const x={addNestedSub:i,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:c,trySubscribe:g,tryUnsubscribe:b,getListeners:()=>s};return x}var Sj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kj=typeof navigator<"u"&&navigator.product==="ReactNative",Ej=Sj||kj?ft.useLayoutEffect:ft.useEffect;function Pj({store:e,context:t,children:r,serverState:s,stabilityCheck:a="once",identityFunctionCheck:o="once"}){const i=ft.useMemo(()=>{const c=wj(e);return{store:e,subscription:c,getServerState:s?()=>s:void 0,stabilityCheck:a,identityFunctionCheck:o}},[e,s,a,o]),l=ft.useMemo(()=>e.getState(),[e]);Ej(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),l!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,l]);const d=t||qn;return ft.createElement(d.Provider,{value:i},r)}var _j=Pj;function Yh(e=qn){const t=e===qn?Hh:mu(e),r=()=>{const{store:s}=t();return s};return Object.assign(r,{withTypes:()=>r}),r}var Oj=Yh();function Tj(e=qn){const t=e===qn?Oj:Yh(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var lt=Tj();yj(vj.useSyncExternalStoreWithSelector);function Be(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 Rj=typeof Symbol=="function"&&Symbol.observable||"@@observable",qf=Rj,$l=()=>Math.random().toString(36).substring(7).split("").join("."),Aj={INIT:`@@redux/INIT${$l()}`,REPLACE:`@@redux/REPLACE${$l()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${$l()}`},si=Aj;function pu(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 Gh(e,t,r){if(typeof e!="function")throw new Error(Be(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Be(1));return r(Gh)(e,t)}let s=e,a=t,o=new Map,i=o,l=0,d=!1;function c(){i===o&&(i=new Map,o.forEach((C,p)=>{i.set(p,C)}))}function u(){if(d)throw new Error(Be(3));return a}function f(C){if(typeof C!="function")throw new Error(Be(4));if(d)throw new Error(Be(5));let p=!0;c();const v=l++;return i.set(v,C),function(){if(p){if(d)throw new Error(Be(6));p=!1,c(),i.delete(v),o=null}}}function g(C){if(!pu(C))throw new Error(Be(7));if(typeof C.type>"u")throw new Error(Be(8));if(typeof C.type!="string")throw new Error(Be(17));if(d)throw new Error(Be(9));try{d=!0,a=s(a,C)}finally{d=!1}return(o=i).forEach(v=>{v()}),C}function b(C){if(typeof C!="function")throw new Error(Be(10));s=C,g({type:si.REPLACE})}function x(){const C=f;return{subscribe(p){if(typeof p!="object"||p===null)throw new Error(Be(11));function v(){const y=p;y.next&&y.next(u())}return v(),{unsubscribe:C(v)}},[qf](){return this}}}return g({type:si.INIT}),{dispatch:g,subscribe:f,getState:u,replaceReducer:b,[qf]:x}}function Ij(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:si.INIT})>"u")throw new Error(Be(12));if(typeof r(void 0,{type:si.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function Dj(e){const t=Object.keys(e),r={};for(let o=0;o"u")throw l&&l.type,new Error(Be(14));c[f]=x,d=d||x!==b}return d=d||s.length!==Object.keys(i).length,d?c:i}}function ai(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...s)=>t(r(...s)))}function Fj(...e){return t=>(r,s)=>{const a=t(r,s);let o=()=>{throw new Error(Be(15))};const i={getState:a.getState,dispatch:(d,...c)=>o(d,...c)},l=e.map(d=>d(i));return o=ai(...l)(a.dispatch),{...a,dispatch:o}}}function Lj(e){return pu(e)&&"type"in e&&typeof e.type=="string"}var Qh=Symbol.for("immer-nothing"),Vf=Symbol.for("immer-draftable"),gt=Symbol.for("immer-state");function At(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var cs=Object.getPrototypeOf;function Nr(e){return!!e&&!!e[gt]}function fn(e){var t;return e?Jh(e)||Array.isArray(e)||!!e[Vf]||!!((t=e.constructor)!=null&&t[Vf])||Fi(e)||Li(e):!1}var Mj=Object.prototype.constructor.toString();function Jh(e){if(!e||typeof e!="object")return!1;const t=cs(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Mj}function oi(e,t){Di(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,s)=>t(s,r,e))}function Di(e){const t=e[gt];return t?t.type_:Array.isArray(e)?1:Fi(e)?2:Li(e)?3:0}function Qc(e,t){return Di(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xh(e,t,r){const s=Di(e);s===2?e.set(t,r):s===3?e.add(r):e[t]=r}function Bj(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Fi(e){return e instanceof Map}function Li(e){return e instanceof Set}function rr(e){return e.copy_||e.base_}function Jc(e,t){if(Fi(e))return new Map(e);if(Li(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Jh(e);if(t===!0||t==="class_only"&&!r){const s=Object.getOwnPropertyDescriptors(e);delete s[gt];let a=Reflect.ownKeys(s);for(let o=0;o1&&(e.set=e.add=e.clear=e.delete=zj),Object.freeze(e),t&&Object.entries(e).forEach(([r,s])=>hu(s,!0))),e}function zj(){At(2)}function Mi(e){return Object.isFrozen(e)}var $j={};function Cr(e){const t=$j[e];return t||At(0,e),t}var va;function Zh(){return va}function Wj(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Hf(e,t){t&&(Cr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xc(e){Zc(e),e.drafts_.forEach(Uj),e.drafts_=null}function Zc(e){e===va&&(va=e.parent_)}function Kf(e){return va=Wj(va,e)}function Uj(e){const t=e[gt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Yf(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[gt].modified_&&(Xc(t),At(4)),fn(e)&&(e=ii(t,e),t.parent_||li(t,e)),t.patches_&&Cr("Patches").generateReplacementPatches_(r[gt].base_,e,t.patches_,t.inversePatches_)):e=ii(t,r,[]),Xc(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qh?e:void 0}function ii(e,t,r){if(Mi(t))return t;const s=t[gt];if(!s)return oi(t,(a,o)=>Gf(e,s,t,a,o,r)),t;if(s.scope_!==e)return t;if(!s.modified_)return li(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const a=s.copy_;let o=a,i=!1;s.type_===3&&(o=new Set(a),a.clear(),i=!0),oi(o,(l,d)=>Gf(e,s,a,l,d,r,i)),li(e,a,!1),r&&e.patches_&&Cr("Patches").generatePatches_(s,r,e.patches_,e.inversePatches_)}return s.copy_}function Gf(e,t,r,s,a,o,i){if(Nr(a)){const l=o&&t&&t.type_!==3&&!Qc(t.assigned_,s)?o.concat(s):void 0,d=ii(e,a,l);if(Xh(r,s,d),Nr(d))e.canAutoFreeze_=!1;else return}else i&&r.add(a);if(fn(a)&&!Mi(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ii(e,a),(!t||!t.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,s)&&li(e,a)}}function li(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&hu(t,r)}function qj(e,t){const r=Array.isArray(e),s={type_:r?1:0,scope_:t?t.scope_:Zh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=s,o=vu;r&&(a=[s],o=ga);const{revoke:i,proxy:l}=Proxy.revocable(a,o);return s.draft_=l,s.revoke_=i,l}var vu={get(e,t){if(t===gt)return e;const r=rr(e);if(!Qc(r,t))return Vj(e,r,t);const s=r[t];return e.finalized_||!fn(s)?s:s===Wl(e.base_,t)?(Ul(e),e.copy_[t]=td(s,e)):s},has(e,t){return t in rr(e)},ownKeys(e){return Reflect.ownKeys(rr(e))},set(e,t,r){const s=ev(rr(e),t);if(s!=null&&s.set)return s.set.call(e.draft_,r),!0;if(!e.modified_){const a=Wl(rr(e),t),o=a==null?void 0:a[gt];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Bj(r,a)&&(r!==void 0||Qc(e.base_,t)))return!0;Ul(e),ed(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Wl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ul(e),ed(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=rr(e),s=Reflect.getOwnPropertyDescriptor(r,t);return s&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:s.enumerable,value:r[t]}},defineProperty(){At(11)},getPrototypeOf(e){return cs(e.base_)},setPrototypeOf(){At(12)}},ga={};oi(vu,(e,t)=>{ga[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ga.deleteProperty=function(e,t){return ga.set.call(this,e,t,void 0)};ga.set=function(e,t,r){return vu.set.call(this,e[0],t,r,e[0])};function Wl(e,t){const r=e[gt];return(r?rr(r):e)[t]}function Vj(e,t,r){var a;const s=ev(t,r);return s?"value"in s?s.value:(a=s.get)==null?void 0:a.call(e.draft_):void 0}function ev(e,t){if(!(t in e))return;let r=cs(e);for(;r;){const s=Object.getOwnPropertyDescriptor(r,t);if(s)return s;r=cs(r)}}function ed(e){e.modified_||(e.modified_=!0,e.parent_&&ed(e.parent_))}function Ul(e){e.copy_||(e.copy_=Jc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Hj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,s)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const i=this;return function(d=o,...c){return i.produce(d,u=>r.call(this,u,...c))}}typeof r!="function"&&At(6),s!==void 0&&typeof s!="function"&&At(7);let a;if(fn(t)){const o=Kf(this),i=td(t,void 0);let l=!0;try{a=r(i),l=!1}finally{l?Xc(o):Zc(o)}return Hf(o,s),Yf(a,o)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===Qh&&(a=void 0),this.autoFreeze_&&hu(a,!0),s){const o=[],i=[];Cr("Patches").generateReplacementPatches_(t,a,o,i),s(o,i)}return a}else At(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,d=>t(d,...l));let s,a;return[this.produce(t,r,(i,l)=>{s=i,a=l}),s,a]},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)||At(8),Nr(e)&&(e=Kj(e));const t=Kf(this),r=td(e,void 0);return r[gt].isManual_=!0,Zc(t),r}finishDraft(e,t){const r=e&&e[gt];(!r||!r.isManual_)&&At(9);const{scope_:s}=r;return Hf(s,t),Yf(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const s=Cr("Patches").applyPatches_;return Nr(e)?s(e,t):this.produce(e,a=>s(a,t))}};function td(e,t){const r=Fi(e)?Cr("MapSet").proxyMap_(e,t):Li(e)?Cr("MapSet").proxySet_(e,t):qj(e,t);return(t?t.scope_:Zh()).drafts_.push(r),r}function Kj(e){return Nr(e)||At(10,e),tv(e)}function tv(e){if(!fn(e)||Mi(e))return e;const t=e[gt];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Jc(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Jc(e,!0);return oi(r,(s,a)=>{Xh(r,s,tv(a))}),t&&(t.finalized_=!1),r}var xt=new Hj,nv=xt.produce;xt.produceWithPatches.bind(xt);xt.setAutoFreeze.bind(xt);xt.setUseStrictShallowCopy.bind(xt);xt.applyPatches.bind(xt);xt.createDraft.bind(xt);xt.finishDraft.bind(xt);function rv(e){return({dispatch:r,getState:s})=>a=>o=>typeof o=="function"?o(r,s,e):a(o)}var Yj=rv(),Gj=rv,Qj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ai:ai.apply(null,arguments)},Jj=e=>e&&typeof e.match=="function";function Gs(e,t){function r(...s){if(t){let a=t(...s);if(!a)throw new Error(Ft(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:s[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=s=>Lj(s)&&s.type===e,r}var sv=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 Qf(e){return fn(e)?nv(e,()=>{}):e}function Jf(e,t,r){if(e.has(t)){let a=e.get(t);return r.update&&(a=r.update(a,t,e),e.set(t,a)),a}if(!r.insert)throw new Error(Ft(10));const s=r.insert(t,e);return e.set(t,s),s}function Xj(e){return typeof e=="boolean"}var Zj=()=>function(t){const{thunk:r=!0,immutableCheck:s=!0,serializableCheck:a=!0,actionCreatorCheck:o=!0}=t??{};let i=new sv;return r&&(Xj(r)?i.push(Yj):i.push(Gj(r.extraArgument))),i},e0="RTK_autoBatch",av=e=>t=>{setTimeout(t,e)},t0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:av(10),n0=(e={type:"raf"})=>t=>(...r)=>{const s=t(...r);let a=!0,o=!1,i=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?t0:e.type==="callback"?e.queueNotification:av(e.timeout),c=()=>{i=!1,o&&(o=!1,l.forEach(u=>u()))};return Object.assign({},s,{subscribe(u){const f=()=>a&&u(),g=s.subscribe(f);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){var f;try{return a=!((f=u==null?void 0:u.meta)!=null&&f[e0]),o=!a,o&&(i||(i=!0,d(c))),s.dispatch(u)}finally{a=!0}}})},r0=e=>function(r){const{autoBatch:s=!0}=r??{};let a=new sv(e);return s&&a.push(n0(typeof s=="object"?s:void 0)),a};function s0(e){const t=Zj(),{reducer:r=void 0,middleware:s,devTools:a=!0,preloadedState:o=void 0,enhancers:i=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(pu(r))l=Dj(r);else throw new Error(Ft(1));let d;typeof s=="function"?d=s(t):d=t();let c=ai;a&&(c=Qj({trace:!1,...typeof a=="object"&&a}));const u=Fj(...d),f=r0(u);let g=typeof i=="function"?i(f):f();const b=c(...g);return Gh(l,o,b)}function ov(e){const t={},r=[];let s;const a={addCase(o,i){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(Ft(28));if(l in t)throw new Error(Ft(29));return t[l]=i,a},addMatcher(o,i){return r.push({matcher:o,reducer:i}),a},addDefaultCase(o){return s=o,a}};return e(a),[t,r,s]}function a0(e){return typeof e=="function"}function o0(e,t){let[r,s,a]=ov(t),o;if(a0(e))o=()=>Qf(e());else{const l=Qf(e);o=()=>l}function i(l=o(),d){let c=[r[d.type],...s.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[a]),c.reduce((u,f)=>{if(f)if(Nr(u)){const b=f(u,d);return b===void 0?u:b}else{if(fn(u))return nv(u,g=>f(g,d));{const g=f(u,d);if(g===void 0){if(u===null)return u;throw new Error(Ft(9))}return g}}return u},l)}return i.getInitialState=o,i}var i0=(e,t)=>Jj(e)?e.match(t):e(t);function l0(...e){return t=>e.some(r=>i0(r,t))}var c0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",d0=(e=21)=>{let t="",r=e;for(;r--;)t+=c0[Math.random()*64|0];return t},u0=["name","message","stack","code"],ql=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},Xf=class{constructor(e,t){pl(this,"_type");this.payload=e,this.meta=t}},f0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of u0)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},ct=(()=>{function e(t,r,s){const a=Gs(t+"/fulfilled",(d,c,u,f)=>({payload:d,meta:{...f||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=Gs(t+"/pending",(d,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:d,requestStatus:"pending"}})),i=Gs(t+"/rejected",(d,c,u,f,g)=>({payload:f,error:(s&&s.serializeError||f0)(d||"Rejected"),meta:{...g||{},arg:u,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(d==null?void 0:d.name)==="AbortError",condition:(d==null?void 0:d.name)==="ConditionError"}}));function l(d){return(c,u,f)=>{const g=s!=null&&s.idGenerator?s.idGenerator(d):d0(),b=new AbortController;let x,N;function C(v){N=v,b.abort()}const p=async function(){var y,k;let v;try{let O=(y=s==null?void 0:s.condition)==null?void 0:y.call(s,d,{getState:u,extra:f});if(p0(O)&&(O=await O),O===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((_,F)=>{x=()=>{F({name:"AbortError",message:N||"Aborted"})},b.signal.addEventListener("abort",x)});c(o(g,d,(k=s==null?void 0:s.getPendingMeta)==null?void 0:k.call(s,{requestId:g,arg:d},{getState:u,extra:f}))),v=await Promise.race([T,Promise.resolve(r(d,{dispatch:c,getState:u,extra:f,requestId:g,signal:b.signal,abort:C,rejectWithValue:(_,F)=>new ql(_,F),fulfillWithValue:(_,F)=>new Xf(_,F)})).then(_=>{if(_ instanceof ql)throw _;return _ instanceof Xf?a(_.payload,g,d,_.meta):a(_,g,d)})])}catch(O){v=O instanceof ql?i(null,g,d,O.payload,O.meta):i(O,g,d)}finally{x&&b.signal.removeEventListener("abort",x)}return s&&!s.dispatchConditionRejection&&i.match(v)&&v.meta.condition||c(v),v}();return Object.assign(p,{abort:C,requestId:g,arg:d,unwrap(){return p.then(m0)}})}}return Object.assign(l,{pending:o,rejected:i,fulfilled:a,settled:l0(i,a),typePrefix:t})}return e.withTypes=()=>e,e})();function m0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function p0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var h0=Symbol.for("rtk-slice-createasyncthunk");function v0(e,t){return`${e}/${t}`}function g0({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[h0];return function(a){const{name:o,reducerPath:i=o}=a;if(!o)throw new Error(Ft(11));typeof process<"u";const l=(typeof a.reducers=="function"?a.reducers(y0()):a.reducers)||{},d=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(h,y){const k=typeof h=="string"?h:h.type;if(!k)throw new Error(Ft(12));if(k in c.sliceCaseReducersByType)throw new Error(Ft(13));return c.sliceCaseReducersByType[k]=y,u},addMatcher(h,y){return c.sliceMatchers.push({matcher:h,reducer:y}),u},exposeAction(h,y){return c.actionCreators[h]=y,u},exposeCaseReducer(h,y){return c.sliceCaseReducersByName[h]=y,u}};d.forEach(h=>{const y=l[h],k={reducerName:h,type:v0(o,h),createNotation:typeof a.reducers=="function"};N0(y)?b0(k,y,u,t):j0(k,y,u)});function f(){const[h={},y=[],k=void 0]=typeof a.extraReducers=="function"?ov(a.extraReducers):[a.extraReducers],O={...h,...c.sliceCaseReducersByType};return o0(a.initialState,T=>{for(let _ in O)T.addCase(_,O[_]);for(let _ of c.sliceMatchers)T.addMatcher(_.matcher,_.reducer);for(let _ of y)T.addMatcher(_.matcher,_.reducer);k&&T.addDefaultCase(k)})}const g=h=>h,b=new Map;let x;function N(h,y){return x||(x=f()),x(h,y)}function C(){return x||(x=f()),x.getInitialState()}function p(h,y=!1){function k(T){let _=T[h];return typeof _>"u"&&y&&(_=C()),_}function O(T=g){const _=Jf(b,y,{insert:()=>new WeakMap});return Jf(_,T,{insert:()=>{const F={};for(const[z,H]of Object.entries(a.selectors??{}))F[z]=x0(H,T,C,y);return F}})}return{reducerPath:h,getSelectors:O,get selectors(){return O(k)},selectSlice:k}}const v={name:o,reducer:N,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:C,...p(i),injectInto(h,{reducerPath:y,...k}={}){const O=y??i;return h.inject({reducerPath:O,reducer:N},k),{...v,...p(O,!0)}}};return v}}function x0(e,t,r,s){function a(o,...i){let l=t(o);return typeof l>"u"&&s&&(l=r()),e(l,...i)}return a.unwrapped=e,a}var Bi=g0();function y0(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function j0({type:e,reducerName:t,createNotation:r},s,a){let o,i;if("reducer"in s){if(r&&!C0(s))throw new Error(Ft(17));o=s.reducer,i=s.prepare}else o=s;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?Gs(e,i):Gs(e))}function N0(e){return e._reducerDefinitionType==="asyncThunk"}function C0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function b0({type:e,reducerName:t},r,s,a){if(!a)throw new Error(Ft(18));const{payloadCreator:o,fulfilled:i,pending:l,rejected:d,settled:c,options:u}=r,f=a(e,o,u);s.exposeAction(t,f),i&&s.addCase(f.fulfilled,i),l&&s.addCase(f.pending,l),d&&s.addCase(f.rejected,d),c&&s.addMatcher(f.settled,c),s.exposeCaseReducer(t,{fulfilled:i||to,pending:l||to,rejected:d||to,settled:c||to})}function to(){}function Ft(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 iv(e,t){return function(){return e.apply(t,arguments)}}const{toString:w0}=Object.prototype,{getPrototypeOf:gu}=Object,zi=(e=>t=>{const r=w0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=e=>(e=e.toLowerCase(),t=>zi(t)===e),$i=e=>t=>typeof t===e,{isArray:ps}=Array,xa=$i("undefined");function S0(e){return e!==null&&!xa(e)&&e.constructor!==null&&!xa(e.constructor)&&ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const lv=Bt("ArrayBuffer");function k0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&lv(e.buffer),t}const E0=$i("string"),ht=$i("function"),cv=$i("number"),Wi=e=>e!==null&&typeof e=="object",P0=e=>e===!0||e===!1,jo=e=>{if(zi(e)!=="object")return!1;const t=gu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_0=Bt("Date"),O0=Bt("File"),T0=Bt("Blob"),R0=Bt("FileList"),A0=e=>Wi(e)&&ht(e.pipe),I0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ht(e.append)&&((t=zi(e))==="formdata"||t==="object"&&ht(e.toString)&&e.toString()==="[object FormData]"))},D0=Bt("URLSearchParams"),[F0,L0,M0,B0]=["ReadableStream","Request","Response","Headers"].map(Bt),z0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,a;if(typeof e!="object"&&(e=[e]),ps(e))for(s=0,a=e.length;s0;)if(a=r[s],t===a.toLowerCase())return a;return null}const dr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uv=e=>!xa(e)&&e!==dr;function nd(){const{caseless:e}=uv(this)&&this||{},t={},r=(s,a)=>{const o=e&&dv(t,a)||a;jo(t[o])&&jo(s)?t[o]=nd(t[o],s):jo(s)?t[o]=nd({},s):ps(s)?t[o]=s.slice():t[o]=s};for(let s=0,a=arguments.length;s(Oa(t,(a,o)=>{r&&ht(a)?e[o]=iv(a,r):e[o]=a},{allOwnKeys:s}),e),W0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),U0=(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},q0=(e,t,r,s)=>{let a,o,i;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!s||s(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=r!==!1&&gu(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},V0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return s!==-1&&s===r},H0=e=>{if(!e)return null;if(ps(e))return e;let t=e.length;if(!cv(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},K0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&gu(Uint8Array)),Y0=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=s.next())&&!a.done;){const o=a.value;t.call(e,o[0],o[1])}},G0=(e,t)=>{let r;const s=[];for(;(r=e.exec(t))!==null;)s.push(r);return s},Q0=Bt("HTMLFormElement"),J0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,a){return s.toUpperCase()+a}),Zf=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),X0=Bt("RegExp"),fv=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};Oa(r,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(s[o]=i||a)}),Object.defineProperties(e,s)},Z0=e=>{fv(e,(t,r)=>{if(ht(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const s=e[r];if(ht(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},e1=(e,t)=>{const r={},s=a=>{a.forEach(o=>{r[o]=!0})};return ps(e)?s(e):s(String(e).split(t)),r},t1=()=>{},n1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Vl="abcdefghijklmnopqrstuvwxyz",em="0123456789",mv={DIGIT:em,ALPHA:Vl,ALPHA_DIGIT:Vl+Vl.toUpperCase()+em},r1=(e=16,t=mv.ALPHA_DIGIT)=>{let r="";const{length:s}=t;for(;e--;)r+=t[Math.random()*s|0];return r};function s1(e){return!!(e&&ht(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const a1=e=>{const t=new Array(10),r=(s,a)=>{if(Wi(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[a]=s;const o=ps(s)?[]:{};return Oa(s,(i,l)=>{const d=r(i,a+1);!xa(d)&&(o[l]=d)}),t[a]=void 0,o}}return s};return r(e,0)},o1=Bt("AsyncFunction"),i1=e=>e&&(Wi(e)||ht(e))&&ht(e.then)&&ht(e.catch),pv=((e,t)=>e?setImmediate:t?((r,s)=>(dr.addEventListener("message",({source:a,data:o})=>{a===dr&&o===r&&s.length&&s.shift()()},!1),a=>{s.push(a),dr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ht(dr.postMessage)),l1=typeof queueMicrotask<"u"?queueMicrotask.bind(dr):typeof process<"u"&&process.nextTick||pv,$={isArray:ps,isArrayBuffer:lv,isBuffer:S0,isFormData:I0,isArrayBufferView:k0,isString:E0,isNumber:cv,isBoolean:P0,isObject:Wi,isPlainObject:jo,isReadableStream:F0,isRequest:L0,isResponse:M0,isHeaders:B0,isUndefined:xa,isDate:_0,isFile:O0,isBlob:T0,isRegExp:X0,isFunction:ht,isStream:A0,isURLSearchParams:D0,isTypedArray:K0,isFileList:R0,forEach:Oa,merge:nd,extend:$0,trim:z0,stripBOM:W0,inherits:U0,toFlatObject:q0,kindOf:zi,kindOfTest:Bt,endsWith:V0,toArray:H0,forEachEntry:Y0,matchAll:G0,isHTMLForm:Q0,hasOwnProperty:Zf,hasOwnProp:Zf,reduceDescriptors:fv,freezeMethods:Z0,toObjectSet:e1,toCamelCase:J0,noop:t1,toFiniteNumber:n1,findKey:dv,global:dr,isContextDefined:uv,ALPHABET:mv,generateString:r1,isSpecCompliantForm:s1,toJSONObject:a1,isAsyncFn:o1,isThenable:i1,setImmediate:pv,asap:l1};function oe(e,t,r,s,a){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),r&&(this.config=r),s&&(this.request=s),a&&(this.response=a,this.status=a.status?a.status:null)}$.inherits(oe,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 hv=oe.prototype,vv={};["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=>{vv[e]={value:e}});Object.defineProperties(oe,vv);Object.defineProperty(hv,"isAxiosError",{value:!0});oe.from=(e,t,r,s,a,o)=>{const i=Object.create(hv);return $.toFlatObject(e,i,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),oe.call(i,e.message,t,r,s,a),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const c1=null;function rd(e){return $.isPlainObject(e)||$.isArray(e)}function gv(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function tm(e,t,r){return e?e.concat(t).map(function(a,o){return a=gv(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function d1(e){return $.isArray(e)&&!e.some(rd)}const u1=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Ui(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,C){return!$.isUndefined(C[N])});const s=r.metaTokens,a=r.visitor||u,o=r.dots,i=r.indexes,d=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(a))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 oe("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,N,C){let p=x;if(x&&!C&&typeof x=="object"){if($.endsWith(N,"{}"))N=s?N:N.slice(0,-2),x=JSON.stringify(x);else if($.isArray(x)&&d1(x)||($.isFileList(x)||$.endsWith(N,"[]"))&&(p=$.toArray(x)))return N=gv(N),p.forEach(function(h,y){!($.isUndefined(h)||h===null)&&t.append(i===!0?tm([N],y,o):i===null?N:N+"[]",c(h))}),!1}return rd(x)?!0:(t.append(tm(C,N,o),c(x)),!1)}const f=[],g=Object.assign(u1,{defaultVisitor:u,convertValue:c,isVisitable:rd});function b(x,N){if(!$.isUndefined(x)){if(f.indexOf(x)!==-1)throw Error("Circular reference detected in "+N.join("."));f.push(x),$.forEach(x,function(p,v){(!($.isUndefined(p)||p===null)&&a.call(t,p,$.isString(v)?v.trim():v,N,g))===!0&&b(p,N?N.concat(v):[v])}),f.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return b(e),t}function nm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function xu(e,t){this._pairs=[],e&&Ui(e,this,t)}const xv=xu.prototype;xv.append=function(t,r){this._pairs.push([t,r])};xv.toString=function(t){const r=t?function(s){return t.call(this,s,nm)}:nm;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function f1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yv(e,t,r){if(!t)return e;const s=r&&r.encode||f1,a=r&&r.serialize;let o;if(a?o=a(t,r):o=$.isURLSearchParams(t)?t.toString():new xu(t,r).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class rm{constructor(){this.handlers=[]}use(t,r,s){return this.handlers.push({fulfilled:t,rejected:r,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 jv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},m1=typeof URLSearchParams<"u"?URLSearchParams:xu,p1=typeof FormData<"u"?FormData:null,h1=typeof Blob<"u"?Blob:null,v1={isBrowser:!0,classes:{URLSearchParams:m1,FormData:p1,Blob:h1},protocols:["http","https","file","blob","url","data"]},yu=typeof window<"u"&&typeof document<"u",sd=typeof navigator=="object"&&navigator||void 0,g1=yu&&(!sd||["ReactNative","NativeScript","NS"].indexOf(sd.product)<0),x1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",y1=yu&&window.location.href||"http://localhost",j1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:yu,hasStandardBrowserEnv:g1,hasStandardBrowserWebWorkerEnv:x1,navigator:sd,origin:y1},Symbol.toStringTag,{value:"Module"})),ot={...j1,...v1};function N1(e,t){return Ui(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,s,a,o){return ot.isNode&&$.isBuffer(r)?(this.append(s,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function C1(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1(e){const t={},r=Object.keys(e);let s;const a=r.length;let o;for(s=0;s=r.length;return i=!i&&$.isArray(a)?a.length:i,d?($.hasOwnProp(a,i)?a[i]=[a[i],s]:a[i]=s,!l):((!a[i]||!$.isObject(a[i]))&&(a[i]=[]),t(r,s,a[i],o)&&$.isArray(a[i])&&(a[i]=b1(a[i])),!l)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(s,a)=>{t(C1(s),a,r,0)}),r}return null}function w1(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const Ta={transitional:jv,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const s=r.getContentType()||"",a=s.indexOf("application/json")>-1,o=$.isObject(t);if(o&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return a?JSON.stringify(Nv(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 r.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 N1(t,this.formSerializer).toString();if((l=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ui(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),w1(t)):t}],transformResponse:[function(t){const r=this.transitional||Ta.transitional,s=r&&r.forcedJSONParsing,a=this.responseType==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(s&&!this.responseType||a)){const i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?oe.from(l,oe.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:ot.classes.FormData,Blob:ot.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=>{Ta.headers[e]={}});const S1=$.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"]),k1=e=>{const t={};let r,s,a;return e&&e.split(` `).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),s=i.substring(a+1).trim(),!(!r||t[r]&&S1[r])&&(r==="set-cookie"?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t},sm=Symbol("internals");function Rs(e){return e&&String(e).trim().toLowerCase()}function No(e){return e===!1||e==null?e:$.isArray(e)?e.map(No):String(e)}function E1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}const P1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hl(e,t,r,s,a){if($.isFunction(s))return s.call(this,t,r);if(a&&(t=r),!!$.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function _1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,s)=>r.toUpperCase()+s)}function O1(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(a,o,i){return this[s].call(this,t,a,o,i)},configurable:!0})})}class it{constructor(t){t&&this.set(t)}set(t,r,s){const a=this;function o(l,d,c){const u=Rs(d);if(!u)throw new Error("header name must be a non-empty string");const f=$.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||d]=No(l))}const i=(l,d)=>$.forEach(l,(c,u)=>o(c,u,d));if($.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if($.isString(t)&&(t=t.trim())&&!P1(t))i(k1(t),r);else if($.isHeaders(t))for(const[l,d]of t.entries())o(d,l,s);else t!=null&&o(r,t,s);return this}get(t,r){if(t=Rs(t),t){const s=$.findKey(this,t);if(s){const a=this[s];if(!r)return a;if(r===!0)return E1(a);if($.isFunction(r))return r.call(this,a,s);if($.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Rs(t),t){const s=$.findKey(this,t);return!!(s&&this[s]!==void 0&&(!r||Hl(this,this[s],s,r)))}return!1}delete(t,r){const s=this;let a=!1;function o(i){if(i=Rs(i),i){const l=$.findKey(s,i);l&&(!r||Hl(s,s[l],l,r))&&(delete s[l],a=!0)}}return $.isArray(t)?t.forEach(o):o(t),a}clear(t){const r=Object.keys(this);let s=r.length,a=!1;for(;s--;){const o=r[s];(!t||Hl(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){const r=this,s={};return $.forEach(this,(a,o)=>{const i=$.findKey(s,o);if(i){r[i]=No(a),delete r[o];return}const l=t?_1(o):String(o).trim();l!==o&&delete r[o],r[l]=No(a),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(s,a)=>{s!=null&&s!==!1&&(r[a]=t&&$.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const s=new this(t);return r.forEach(a=>s.set(a)),s}static accessor(t){const s=(this[sm]=this[sm]={accessors:{}}).accessors,a=this.prototype;function o(i){const l=Rs(i);s[l]||(O1(a,i),s[l]=!0)}return $.isArray(t)?t.forEach(o):o(t),this}}it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(it.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[r]=s}}});$.freezeMethods(it);function Kl(e,t){const r=this||Ta,s=t||r,a=it.from(s.headers);let o=s.data;return $.forEach(e,function(l){o=l.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function Cv(e){return!!(e&&e.__CANCEL__)}function hs(e,t,r){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(hs,oe,{__CANCEL__:!0});function bv(e,t,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):t(new oe("Request failed with status code "+r.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function T1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function R1(e,t){e=e||10;const r=new Array(e),s=new Array(e);let a=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=s[o];i||(i=c),r[a]=d,s[a]=c;let f=o,g=0;for(;f!==a;)g+=r[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i{r=u,a=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-r;f>=s?i(c,u):(a=c,o||(o=setTimeout(()=>{o=null,i(a)},s-f)))},()=>a&&i(a)]}const ci=(e,t,r=3)=>{let s=0;const a=R1(50,250);return A1(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,d=i-s,c=a(d),u=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},r)},am=(e,t)=>{const r=e!=null;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},om=e=>(...t)=>$.asap(()=>e(...t)),I1=ot.hasStandardBrowserEnv?function(){const t=ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent),r=document.createElement("a");let s;function a(o){let i=o;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=a(window.location.href),function(i){const l=$.isString(i)?a(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),D1=ot.hasStandardBrowserEnv?{write(e,t,r,s,a,o){const i=[e+"="+encodeURIComponent(t)];$.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),$.isString(s)&&i.push("path="+s),$.isString(a)&&i.push("domain="+a),o===!0&&i.push("secure"),document.cookie=i.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 F1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function L1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wv(e,t){return e&&!F1(t)?L1(e,t):t}const im=e=>e instanceof it?{...e}:e;function br(e,t){t=t||{};const r={};function s(c,u,f){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:f},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function a(c,u,f){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,f)}else return s(c,u,f)}function o(c,u){if(!$.isUndefined(u))return s(void 0,u)}function i(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function l(c,u,f){if(f in t)return s(c,u);if(f in e)return s(void 0,c)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,u)=>a(im(c),im(u),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=d[u]||a,g=f(e[u],t[u],u);$.isUndefined(g)&&f!==l||(r[u]=g)}),r}const Sv=e=>{const t=br({},e);let{data:r,withXSRFToken:s,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=it.from(i),t.url=yv(wv(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if($.isFormData(r)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[c,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ot.hasStandardBrowserEnv&&(s&&$.isFunction(s)&&(s=s(t)),s||s!==!1&&I1(t.url))){const c=a&&o&&D1.read(o);c&&i.set(a,c)}return t},M1=typeof XMLHttpRequest<"u",B1=M1&&function(e){return new Promise(function(r,s){const a=Sv(e);let o=a.data;const i=it.from(a.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=a,u,f,g,b,x;function N(){b&&b(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let C=new XMLHttpRequest;C.open(a.method.toUpperCase(),a.url,!0),C.timeout=a.timeout;function p(){if(!C)return;const h=it.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:h,config:e,request:C};bv(function(T){r(T),N()},function(T){s(T),N()},k),C=null}"onloadend"in C?C.onloadend=p:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(p)},C.onabort=function(){C&&(s(new oe("Request aborted",oe.ECONNABORTED,e,C)),C=null)},C.onerror=function(){s(new oe("Network Error",oe.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let y=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const k=a.transitional||jv;a.timeoutErrorMessage&&(y=a.timeoutErrorMessage),s(new oe(y,k.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,C)),C=null},o===void 0&&i.setContentType(null),"setRequestHeader"in C&&$.forEach(i.toJSON(),function(y,k){C.setRequestHeader(k,y)}),$.isUndefined(a.withCredentials)||(C.withCredentials=!!a.withCredentials),l&&l!=="json"&&(C.responseType=a.responseType),c&&([g,x]=ci(c,!0),C.addEventListener("progress",g)),d&&C.upload&&([f,b]=ci(d),C.upload.addEventListener("progress",f),C.upload.addEventListener("loadend",b)),(a.cancelToken||a.signal)&&(u=h=>{C&&(s(!h||h.type?new hs(null,e,C):h),C.abort(),C=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const v=T1(a.url);if(v&&ot.protocols.indexOf(v)===-1){s(new oe("Unsupported protocol "+v+":",oe.ERR_BAD_REQUEST,e));return}C.send(o||null)})},z1=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let s=new AbortController,a;const o=function(c){if(!a){a=!0,l();const u=c instanceof Error?c:this.reason;s.abort(u instanceof oe?u:new hs(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new oe(`timeout ${t} of ms exceeded`,oe.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=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}},$1=function*(e,t){let r=e.byteLength;if(!t||r{const a=W1(e,t);let o=0,i,l=d=>{i||(i=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await a.next();if(c){l(),d.close();return}let f=u.byteLength;if(r){let g=o+=f;r(g)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),a.return()}},{highWaterMark:2})},qi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",kv=qi&&typeof ReadableStream=="function",q1=qi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ev=(e,...t)=>{try{return!!e(...t)}catch{return!1}},V1=kv&&Ev(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),cm=64*1024,ad=kv&&Ev(()=>$.isReadableStream(new Response("").body)),di={stream:ad&&(e=>e.body)};qi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!di[t]&&(di[t]=$.isFunction(e[t])?r=>r[t]():(r,s)=>{throw new oe(`Response type '${t}' is not supported`,oe.ERR_NOT_SUPPORT,s)})})})(new Response);const H1=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isSpecCompliantForm(e))return(await new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e=e+""),$.isString(e))return(await q1(e)).byteLength},K1=async(e,t)=>{const r=$.toFiniteNumber(e.getContentLength());return r??H1(t)},Y1=qi&&(async e=>{let{url:t,method:r,data:s,signal:a,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:g}=Sv(e);c=c?(c+"").toLowerCase():"text";let b=z1([a,o&&o.toAbortSignal()],i),x;const N=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let C;try{if(d&&V1&&r!=="get"&&r!=="head"&&(C=await K1(u,s))!==0){let k=new Request(t,{method:"POST",body:s,duplex:"half"}),O;if($.isFormData(s)&&(O=k.headers.get("content-type"))&&u.setContentType(O),k.body){const[T,_]=am(C,ci(om(d)));s=lm(k.body,cm,T,_)}}$.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;x=new Request(t,{...g,signal:b,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:p?f:void 0});let v=await fetch(x);const h=ad&&(c==="stream"||c==="response");if(ad&&(l||h&&N)){const k={};["status","statusText","headers"].forEach(F=>{k[F]=v[F]});const O=$.toFiniteNumber(v.headers.get("content-length")),[T,_]=l&&am(O,ci(om(l),!0))||[];v=new Response(lm(v.body,cm,T,()=>{_&&_(),N&&N()}),k)}c=c||"text";let y=await di[$.findKey(di,c)||"text"](v,e);return!h&&N&&N(),await new Promise((k,O)=>{bv(k,O,{data:y,headers:it.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(p){throw N&&N(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new oe("Network Error",oe.ERR_NETWORK,e,x),{cause:p.cause||p}):oe.from(p,p&&p.code,e,x)}}),od={http:c1,xhr:B1,fetch:Y1};$.forEach(od,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dm=e=>`- ${e}`,G1=e=>$.isFunction(e)||e===null||e===!1,Pv={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,s;const a={};for(let o=0;o`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(dm).join(` `):" "+dm(o[0]):"as no adapter specified";throw new oe("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:od};function Yl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hs(null,e)}function um(e){return Yl(e),e.headers=it.from(e.headers),e.data=Kl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Pv.getAdapter(e.adapter||Ta.adapter)(e).then(function(s){return Yl(e),s.data=Kl.call(e,e.transformResponse,s),s.headers=it.from(s.headers),s},function(s){return Cv(s)||(Yl(e),s&&s.response&&(s.response.data=Kl.call(e,e.transformResponse,s.response),s.response.headers=it.from(s.response.headers))),Promise.reject(s)})}const _v="1.7.7",ju={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ju[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const fm={};ju.transitional=function(t,r,s){function a(o,i){return"[Axios v"+_v+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new oe(a(i," has been removed"+(r?" in "+r:"")),oe.ERR_DEPRECATED);return r&&!fm[i]&&(fm[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Q1(e,t,r){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const o=s[a],i=t[o];if(i){const l=e[o],d=l===void 0||i(l,o,e);if(d!==!0)throw new oe("option "+o+" must be "+d,oe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new oe("Unknown option "+o,oe.ERR_BAD_OPTION)}}const id={assertOptions:Q1,validators:ju},jn=id.validators;class mr{constructor(t){this.defaults=t,this.interceptors={request:new rm,response:new rm}}async request(t,r){try{return await this._request(t,r)}catch(s){if(s instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const o=a.stack?a.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,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=br(this.defaults,r);const{transitional:s,paramsSerializer:a,headers:o}=r;s!==void 0&&id.assertOptions(s,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),a!=null&&($.isFunction(a)?r.paramsSerializer={serialize:a}:id.assertOptions(a,{encode:jn.function,serialize:jn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&$.merge(o.common,o[r.method]);o&&$.forEach(["delete","get","head","post","put","patch","common"],x=>{delete o[x]}),r.headers=it.concat(i,o);const l=[];let d=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(r)===!1||(d=d&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});const c=[];this.interceptors.response.forEach(function(N){c.push(N.fulfilled,N.rejected)});let u,f=0,g;if(!d){const x=[um.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,c),g=x.length,u=Promise.resolve(r);f{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](a);s._listeners=null}),this.promise.then=a=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(a);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new hs(o,i,l),r(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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=s=>{t.abort(s)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Nu(function(a){t=a}),cancel:t}}}function J1(e){return function(r){return e.apply(null,r)}}function X1(e){return $.isObject(e)&&e.isAxiosError===!0}const ld={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(ld).forEach(([e,t])=>{ld[t]=e});function Ov(e){const t=new mr(e),r=iv(mr.prototype.request,t);return $.extend(r,mr.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return Ov(br(e,a))},r}const he=Ov(Ta);he.Axios=mr;he.CanceledError=hs;he.CancelToken=Nu;he.isCancel=Cv;he.VERSION=_v;he.toFormData=Ui;he.AxiosError=oe;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=J1;he.isAxiosError=X1;he.mergeConfig=br;he.AxiosHeaders=it;he.formToJSON=e=>Nv($.isHTMLForm(e)?new FormData(e):e);he.getAdapter=Pv.getAdapter;he.HttpStatusCode=ld;he.default=he;const Z1="http://67.225.129.127:3002",Xt=he.create({baseURL:Z1});Xt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const eN=e=>Xt.post("/users/signup",e),tN=e=>Xt.post("/users/signin",e),nN=(e,t,r)=>Xt.get(`/users/${e}/verify/${t}`,r),rN=e=>Xt.post("/properties",e),sN=(e,t,r)=>Xt.get(`/properties/user/${e}?page=${t}&limit=${r}`,e),aN=e=>Xt.get(`/properties/${e}`,e),oN=(e,t)=>Xt.put(`/properties/${e}`,t),iN=e=>Xt.get(`/users/${e}`),lN=e=>Xt.patch("/users/invest",e),cN="http://67.225.129.127:3002",Co=ct("auth/login",async({formValue:e,navigate:t},{rejectWithValue:r})=>{try{const s=await tN(e);return t("/dashboard"),s.data}catch(s){return r(s.response.data)}}),bo=ct("auth/register",async({formValue:e,navigate:t,toast:r},{rejectWithValue:s})=>{try{const a=await eN(e);return console.log("response",a),r.success("Register Successfully"),t("/registrationsuccess"),a.data}catch(a){return s(a.response.data)}}),wo=ct("auth/updateUser",async({formData:e,toast:t,navigate:r},{rejectWithValue:s})=>{try{const a=await he.put(`${cN}/users/update`,e);return t.success("Updated Successfully"),r("/login"),a.data}catch(a){return s(a.response.data)}}),So=ct("auth/WillingToInvest",async({formData:e,toast:t},{rejectWithValue:r})=>{try{const s=await lN(e);return t.success("Investment amount updated successfully!"),s.data}catch(s){return t.error(s.response.data.message),r(s.response.data)}}),Tv=Bi({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 r=t.payload;e.user={...e.user,...r}}},extraReducers:e=>{e.addCase(Co.pending,t=>{t.loading=!0}).addCase(Co.fulfilled,(t,r)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...r.payload})),t.user=r.payload}).addCase(Co.rejected,(t,r)=>{t.loading=!1,t.error=r.payload.message}).addCase(bo.pending,t=>{t.loading=!0}).addCase(bo.fulfilled,(t,r)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...r.payload})),t.user=r.payload}).addCase(bo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload.message}).addCase(wo.pending,t=>{t.isLoading=!0}).addCase(wo.fulfilled,(t,r)=>{t.isLoading=!1,t.user=r.payload}).addCase(wo.rejected,(t,r)=>{t.isLoading=!1,t.error=r.payload}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,r)=>{t.loading=!1,t.user={...t.user,result:r.payload}}).addCase(So.rejected,(t,r)=>{t.loading=!1,t.error=r.payload})}}),{setUser:sS,setLogout:dN,setUserDetails:aS}=Tv.actions,uN=Tv.reducer,ko=ct("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await iN(e)).data}catch(r){return t(r.response.data)}}),Eo=ct("user/verifyEmail",async({id:e,token:t,data:r},{rejectWithValue:s})=>{try{return(await nN(e,t,r)).data.message}catch(a){return s(a.response.data)}}),fN=Bi({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(ko.pending,t=>{t.loading=!0,t.error=null}).addCase(ko.fulfilled,(t,r)=>{t.loading=!1,t.user=r.payload}).addCase(ko.rejected,(t,r)=>{t.loading=!1,t.error=r.payload}).addCase(Eo.pending,t=>{t.loading=!0,t.error=null}).addCase(Eo.fulfilled,(t,r)=>{t.loading=!1,t.verified=r.payload==="Email verified successfully"}).addCase(Eo.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message})}}),mN=fN.reducer,Po=ct("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await rN(e)).data}catch(r){return t(r.response.data)}}),Qs=ct("property/fetchUserProperties",async({userId:e,page:t,limit:r},{rejectWithValue:s})=>{try{return(await sN(e,t,r)).data}catch(a){return s(a.response.data)}}),Js=ct("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await aN(e)).data}catch(r){return t(r.response.data)}}),_o=ct("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:r})=>{try{return(await oN(e,t)).data}catch(s){return r(s.response.data)}}),Oo=ct("property/addFundDetails",async({id:e,fundDetails:t,toast:r},{rejectWithValue:s})=>{try{const a=await he.put(`http://67.225.129.127:3002/properties/${e}/fund-details`,t);return r.success("Submitted Successfully"),a.data}catch(a){return s(a.response.data)}}),To=ct("property/deleteFundDetail",async({id:e,fundDetailId:t,token:r},{rejectWithValue:s})=>{try{return(await he.delete(`http://67.225.129.127:3002/properties/${e}/fund-details/${t}`,{headers:{Authorization:`Bearer ${r}`}})).data}catch(a){return s(a.response.data)}}),ts=ct("properties/getProperties",async({page:e,limit:t,keyword:r=""})=>(await he.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${r}`)).data),pN=Bi({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[],fundDetails:[]},reducers:{},extraReducers:e=>{e.addCase(Po.pending,t=>{t.status="loading"}).addCase(Po.fulfilled,(t,r)=>{t.status="succeeded",t.property=r.payload}).addCase(Po.rejected,(t,r)=>{t.status="failed",t.error=r.payload}).addCase(Qs.pending,t=>{t.loading=!0}).addCase(Qs.fulfilled,(t,{payload:r})=>{t.loading=!1,t.userProperties=r.properties,t.totalPages=r.totalPages,t.currentPage=r.currentPage}).addCase(Qs.rejected,(t,{payload:r})=>{t.loading=!1,t.error=r}).addCase(Js.pending,t=>{t.status="loading"}).addCase(Js.fulfilled,(t,r)=>{t.status="succeeded",t.selectedProperty=r.payload}).addCase(Js.rejected,(t,r)=>{t.status="failed",t.error=r.payload}).addCase(_o.pending,t=>{t.status="loading"}).addCase(_o.fulfilled,(t,r)=>{t.status="succeeded",t.selectedProperty=r.payload}).addCase(_o.rejected,(t,r)=>{t.status="failed",t.error=r.payload}).addCase(ts.pending,t=>{t.loading=!0}).addCase(ts.fulfilled,(t,r)=>{t.loading=!1,t.properties=r.payload.data,t.totalPages=r.payload.totalPages,t.currentPage=r.payload.currentPage}).addCase(ts.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message}).addCase(Oo.pending,t=>{t.loading=!0}).addCase(Oo.fulfilled,(t,r)=>{t.loading=!1,t.property=r.payload.property}).addCase(Oo.rejected,(t,r)=>{t.loading=!1,t.error=r.payload}).addCase(To.pending,t=>{t.loading=!0}).addCase(To.fulfilled,(t,r)=>{t.loading=!1,t.fundDetails=t.fundDetails.filter(s=>s._id!==r.meta.arg.id)}).addCase(To.rejected,(t,r)=>{t.loading=!1,t.error=r.payload})}}),hN=pN.reducer,Gl=ct("fundDetails/fetchFundDetails",async(e,{rejectWithValue:t})=>{try{return(await he.get(`http://67.225.129.127:3002/properties/${e}/fund-details`)).data.fundDetails}catch(r){return t(r.response.data)}}),vN=Bi({name:"fundDetails",initialState:{fundDetails:[],loading:!1,error:null},reducers:{},extraReducers:e=>{e.addCase(Gl.pending,t=>{t.loading=!0}).addCase(Gl.fulfilled,(t,r)=>{t.loading=!1,t.fundDetails=r.payload}).addCase(Gl.rejected,(t,r)=>{t.loading=!1,t.error=r.payload})}}),gN=vN.reducer,xN=s0({reducer:{auth:uN,user:mN,property:hN,fundDetails:gN}});/** * @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 ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Rv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jN(){return Math.random().toString(36).substr(2,8)}function pm(e,t){return{usr:e.state,key:e.key,idx:t}}function cd(e,t,r,s){return r===void 0&&(r=null),ya({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vs(t):t,{state:r,key:t&&t.key||s||jN()})}function ui(e){let{pathname:t="/",search:r="",hash:s=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function vs(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substr(s),e=e.substr(0,s)),e&&(t.pathname=e)}return t}function NN(e,t,r,s){s===void 0&&(s={});let{window:a=document.defaultView,v5Compat:o=!1}=s,i=a.history,l=Tn.Pop,d=null,c=u();c==null&&(c=0,i.replaceState(ya({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function f(){l=Tn.Pop;let C=u(),p=C==null?null:C-c;c=C,d&&d({action:l,location:N.location,delta:p})}function g(C,p){l=Tn.Push;let v=cd(N.location,C,p);c=u()+1;let h=pm(v,c),y=N.createHref(v);try{i.pushState(h,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;a.location.assign(y)}o&&d&&d({action:l,location:N.location,delta:1})}function b(C,p){l=Tn.Replace;let v=cd(N.location,C,p);c=u();let h=pm(v,c),y=N.createHref(v);i.replaceState(h,"",y),o&&d&&d({action:l,location:N.location,delta:0})}function x(C){let p=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof C=="string"?C:ui(C);return v=v.replace(/ $/,"%20"),Ee(p,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,p)}let N={get action(){return l},get location(){return e(a,i)},listen(C){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(mm,f),d=C,()=>{a.removeEventListener(mm,f),d=null}},createHref(C){return t(a,C)},createURL:x,encodeLocation(C){let p=x(C);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:g,replace:b,go(C){return i.go(C)}};return N}var hm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hm||(hm={}));function CN(e,t,r){return r===void 0&&(r="/"),bN(e,t,r,!1)}function bN(e,t,r,s){let a=typeof t=="string"?vs(t):t,o=ds(a.pathname||"/",r);if(o==null)return null;let i=Av(e);wN(i);let l=null;for(let d=0;l==null&&d{let d={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(Ee(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=r.concat(d);o.children&&o.children.length>0&&(Ee(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Av(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:TN(c,o.index),routesMeta:u})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let d of Iv(o.path))a(o,i,d)}),t}function Iv(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(s.length===0)return a?[o,""]:[o];let i=Iv(s.join("/")),l=[];return l.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&l.push(...i),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function wN(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:RN(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}const SN=/^:[\w-]+$/,kN=3,EN=2,PN=1,_N=10,ON=-2,vm=e=>e==="*";function TN(e,t){let r=e.split("/"),s=r.length;return r.some(vm)&&(s+=ON),t&&(s+=EN),r.filter(a=>!vm(a)).reduce((a,o)=>a+(SN.test(o)?kN:o===""?PN:_N),s)}function RN(e,t){return e.length===t.length&&e.slice(0,-1).every((s,a)=>s===t[a])?e[e.length-1]-t[t.length-1]:0}function AN(e,t,r){let{routesMeta:s}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:b}=u;if(g==="*"){let N=l[f]||"";i=o.slice(0,o.length-N.length).replace(/(.)\/+$/,"$1")}const x=l[f];return b&&!x?c[g]=void 0:c[g]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:i,pattern:e}}function IN(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Rv(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,d)=>(s.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),s]}function DN(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rv(!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 r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function FN(e,t){t===void 0&&(t="/");let{pathname:r,search:s="",hash:a=""}=typeof e=="string"?vs(e):e;return{pathname:r?r.startsWith("/")?r:LN(r,t):t,search:zN(s),hash:$N(a)}}function LN(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Ql(e,t,r,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function MN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Dv(e,t){let r=MN(e);return t?r.map((s,a)=>a===r.length-1?s.pathname:s.pathnameBase):r.map(s=>s.pathnameBase)}function Fv(e,t,r,s){s===void 0&&(s=!1);let a;typeof e=="string"?a=vs(e):(a=ya({},e),Ee(!a.pathname||!a.pathname.includes("?"),Ql("?","pathname","search",a)),Ee(!a.pathname||!a.pathname.includes("#"),Ql("#","pathname","hash",a)),Ee(!a.search||!a.search.includes("#"),Ql("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=r;else{let f=t.length-1;if(!s&&i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),f-=1;a.pathname=g.join("/")}l=f>=0?t[f]:"/"}let d=FN(a,l),c=i&&i!=="/"&&i.endsWith("/"),u=(o||i===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(c||u)&&(d.pathname+="/"),d}const $n=e=>e.join("/").replace(/\/\/+/g,"/"),BN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$N=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function WN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Lv=["post","put","patch","delete"];new Set(Lv);const UN=["get",...Lv];new Set(UN);/** * 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 ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),w.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){s.go(c);return}let f=Fv(c,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:$n([t,f.pathname])),(u.replace?s.replace:s.push)(f,u.state,u)},[t,s,i,o,e])}function gs(){let{matches:e}=w.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Ki(e,t){let{relative:r}=t===void 0?{}:t,{future:s}=w.useContext(Yn),{matches:a}=w.useContext(Gn),{pathname:o}=Aa(),i=JSON.stringify(Dv(a,s.v7_relativeSplatPath));return w.useMemo(()=>Fv(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function HN(e,t){return KN(e,t)}function KN(e,t,r,s){Ra()||Ee(!1);let{navigator:a}=w.useContext(Yn),{matches:o}=w.useContext(Gn),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let d=i?i.pathnameBase:"/";i&&i.route;let c=Aa(),u;if(t){var f;let C=typeof t=="string"?vs(t):t;d==="/"||(f=C.pathname)!=null&&f.startsWith(d)||Ee(!1),u=C}else u=c;let g=u.pathname||"/",b=g;if(d!=="/"){let C=d.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=CN(e,{pathname:b}),N=XN(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:$n([d,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?d:$n([d,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),o,r,s);return t&&N?w.createElement(Hi.Provider,{value:{location:ja({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Tn.Pop}},N):N}function YN(){let e=nC(),t=WN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}const GN=w.createElement(YN,null);class QN extends w.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Gn.Provider,{value:this.props.routeContext},w.createElement(Bv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JN(e){let{routeContext:t,match:r,children:s}=e,a=w.useContext(Vi);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Gn.Provider,{value:t},s)}function XN(e,t,r,s){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),s===void 0&&(s=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=s)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=(a=r)==null?void 0:a.errors;if(l!=null){let u=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);u>=0||Ee(!1),i=i.slice(0,Math.min(i.length,u+1))}let d=!1,c=-1;if(r&&s&&s.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,f,g)=>{let b,x=!1,N=null,C=null;r&&(b=l&&f.route.id?l[f.route.id]:void 0,N=f.route.errorElement||GN,d&&(c<0&&g===0?(x=!0,C=null):c===g&&(x=!0,C=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,g+1)),v=()=>{let h;return b?h=N:x?h=C:f.route.Component?h=w.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=u,w.createElement(JN,{match:f,routeContext:{outlet:u,matches:p,isDataRoute:r!=null},children:h})};return r&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?w.createElement(QN,{location:r.location,revalidation:r.revalidation,component:N,error:b,children:v(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):v()},null)}var $v=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($v||{}),mi=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}(mi||{});function ZN(e){let t=w.useContext(Vi);return t||Ee(!1),t}function eC(e){let t=w.useContext(Mv);return t||Ee(!1),t}function tC(e){let t=w.useContext(Gn);return t||Ee(!1),t}function Wv(e){let t=tC(),r=t.matches[t.matches.length-1];return r.route.id||Ee(!1),r.route.id}function nC(){var e;let t=w.useContext(Bv),r=eC(mi.UseRouteError),s=Wv(mi.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[s]}function rC(){let{router:e}=ZN($v.UseNavigateStable),t=Wv(mi.UseNavigateStable),r=w.useRef(!1);return zv(()=>{r.current=!0}),w.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ja({fromRouteId:t},o)))},[e,t])}function _e(e){Ee(!1)}function sC(e){let{basename:t="/",children:r=null,location:s,navigationType:a=Tn.Pop,navigator:o,static:i=!1,future:l}=e;Ra()&&Ee(!1);let d=t.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:d,navigator:o,static:i,future:ja({v7_relativeSplatPath:!1},l)}),[d,l,o,i]);typeof s=="string"&&(s=vs(s));let{pathname:u="/",search:f="",hash:g="",state:b=null,key:x="default"}=s,N=w.useMemo(()=>{let C=ds(u,d);return C==null?null:{location:{pathname:C,search:f,hash:g,state:b,key:x},navigationType:a}},[d,u,f,g,b,x,a]);return N==null?null:w.createElement(Yn.Provider,{value:c},w.createElement(Hi.Provider,{children:r,value:N}))}function aC(e){let{children:t,location:r}=e;return HN(dd(t),r)}new Promise(()=>{});function dd(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(s,a)=>{if(!w.isValidElement(s))return;let o=[...t,a];if(s.type===w.Fragment){r.push.apply(r,dd(s.props.children,o));return}s.type!==_e&&Ee(!1),!s.props.index||!s.props.children||Ee(!1);let i={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&&(i.children=dd(s.props.children,o)),r.push(i)}),r}/** * 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 pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[a]=e[a]);return r}function oC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iC(e,t){return e.button===0&&(!t||t==="_self")&&!oC(e)}const lC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],dC="6";try{window.__reactRouterVersion=dC}catch{}const uC=w.createContext({isTransitioning:!1}),fC="startTransition",gm=rc[fC];function mC(e){let{basename:t,children:r,future:s,window:a}=e,o=w.useRef();o.current==null&&(o.current=yN({window:a,v5Compat:!0}));let i=o.current,[l,d]=w.useState({action:i.action,location:i.location}),{v7_startTransition:c}=s||{},u=w.useCallback(f=>{c&&gm?gm(()=>d(f)):d(f)},[d,c]);return w.useLayoutEffect(()=>i.listen(u),[i,u]),w.createElement(sC,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:s})}const pC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vC=w.forwardRef(function(t,r){let{onClick:s,relative:a,reloadDocument:o,replace:i,state:l,target:d,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,g=Uv(t,lC),{basename:b}=w.useContext(Yn),x,N=!1;if(typeof c=="string"&&hC.test(c)&&(x=c,pC))try{let h=new URL(window.location.href),y=c.startsWith("//")?new URL(h.protocol+c):new URL(c),k=ds(y.pathname,b);y.origin===h.origin&&k!=null?c=k+y.search+y.hash:N=!0}catch{}let C=qN(c,{relative:a}),p=xC(c,{replace:i,state:l,target:d,preventScrollReset:u,relative:a,unstable_viewTransition:f});function v(h){s&&s(h),h.defaultPrevented||p(h)}return w.createElement("a",pi({},g,{href:x||C,onClick:N||o?s:v,ref:r,target:d}))}),me=w.forwardRef(function(t,r){let{"aria-current":s="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:d,unstable_viewTransition:c,children:u}=t,f=Uv(t,cC),g=Ki(d,{relative:f.relative}),b=Aa(),x=w.useContext(Mv),{navigator:N,basename:C}=w.useContext(Yn),p=x!=null&&yC(g)&&c===!0,v=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,h=b.pathname,y=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(h=h.toLowerCase(),y=y?y.toLowerCase():null,v=v.toLowerCase()),y&&C&&(y=ds(y,C)||y);const k=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=h===v||!i&&h.startsWith(v)&&h.charAt(k)==="/",T=y!=null&&(y===v||!i&&y.startsWith(v)&&y.charAt(v.length)==="/"),_={isActive:O,isPending:T,isTransitioning:p},F=O?s:void 0,z;typeof o=="function"?z=o(_):z=[o,O?"active":null,T?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let H=typeof l=="function"?l(_):l;return w.createElement(vC,pi({},f,{"aria-current":F,className:z,ref:r,style:H,to:d,unstable_viewTransition:c}),typeof u=="function"?u(_):u)});var ud;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ud||(ud={}));var xm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xm||(xm={}));function gC(e){let t=w.useContext(Vi);return t||Ee(!1),t}function xC(e,t){let{target:r,replace:s,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,d=hn(),c=Aa(),u=Ki(e,{relative:i});return w.useCallback(f=>{if(iC(f,r)){f.preventDefault();let g=s!==void 0?s:ui(c)===ui(u);d(e,{replace:g,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})}},[c,d,u,s,a,r,e,o,i,l])}function yC(e,t){t===void 0&&(t={});let r=w.useContext(uC);r==null&&Ee(!1);let{basename:s}=gC(ud.useViewTransitionState),a=Ki(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=ds(r.currentLocation.pathname,s)||r.currentLocation.pathname,i=ds(r.nextLocation.pathname,s)||r.nextLocation.pathname;return fi(a.pathname,i)!=null||fi(a.pathname,o)!=null}function qv(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),pr=e=>typeof e=="string",mt=e=>typeof e=="function",Ro=e=>pr(e)||mt(e)?e:null,fd=e=>w.isValidElement(e)||pr(e)||mt(e)||Na(e);function jC(e,t,r){r===void 0&&(r=300);const{scrollHeight:s,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=s+"px",a.transition=`all ${r}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,r)})})}function Yi(e){let{enter:t,exit:r,appendPosition:s=!1,collapse:a=!0,collapseDuration:o=300}=e;return function(i){let{children:l,position:d,preventExitTransition:c,done:u,nodeRef:f,isIn:g,playToast:b}=i;const x=s?`${t}--${d}`:t,N=s?`${r}--${d}`:r,C=w.useRef(0);return w.useLayoutEffect(()=>{const p=f.current,v=x.split(" "),h=y=>{y.target===f.current&&(b(),p.removeEventListener("animationend",h),p.removeEventListener("animationcancel",h),C.current===0&&y.type!=="animationcancel"&&p.classList.remove(...v))};p.classList.add(...v),p.addEventListener("animationend",h),p.addEventListener("animationcancel",h)},[]),w.useEffect(()=>{const p=f.current,v=()=>{p.removeEventListener("animationend",v),a?jC(p,u,o):u()};g||(c?v():(C.current=1,p.className+=` ${N}`,p.addEventListener("animationend",v)))},[g]),I.createElement(I.Fragment,null,l)}}function ym(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 Ge=new Map;let Ca=[];const md=new Set,NC=e=>md.forEach(t=>t(e)),Vv=()=>Ge.size>0;function Hv(e,t){var r;if(t)return!((r=Ge.get(t))==null||!r.isToastActive(e));let s=!1;return Ge.forEach(a=>{a.isToastActive(e)&&(s=!0)}),s}function Kv(e,t){fd(e)&&(Vv()||Ca.push({content:e,options:t}),Ge.forEach(r=>{r.buildToast(e,t)}))}function jm(e,t){Ge.forEach(r=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===r.id&&r.toggle(e,t==null?void 0:t.id):r.toggle(e,t==null?void 0:t.id)})}function CC(e){const{subscribe:t,getSnapshot:r,setProps:s}=w.useRef(function(o){const i=o.containerId||1;return{subscribe(l){const d=function(u,f,g){let b=1,x=0,N=[],C=[],p=[],v=f;const h=new Map,y=new Set,k=()=>{p=Array.from(h.values()),y.forEach(_=>_())},O=_=>{C=_==null?[]:C.filter(F=>F!==_),k()},T=_=>{const{toastId:F,onOpen:z,updateId:H,children:te}=_.props,Q=H==null;_.staleId&&h.delete(_.staleId),h.set(F,_),C=[...C,_.props.toastId].filter(Z=>Z!==_.staleId),k(),g(ym(_,Q?"added":"updated")),Q&&mt(z)&&z(w.isValidElement(te)&&te.props)};return{id:u,props:v,observe:_=>(y.add(_),()=>y.delete(_)),toggle:(_,F)=>{h.forEach(z=>{F!=null&&F!==z.props.toastId||mt(z.toggle)&&z.toggle(_)})},removeToast:O,toasts:h,clearQueue:()=>{x-=N.length,N=[]},buildToast:(_,F)=>{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})(F))return;const{toastId:z,updateId:H,data:te,staleId:Q,delay:Z}=F,D=()=>{O(z)},U=H==null;U&&x++;const G={...v,style:v.toastStyle,key:b++,...Object.fromEntries(Object.entries(F).filter(W=>{let[K,Y]=W;return Y!=null})),toastId:z,updateId:H,data:te,closeToast:D,isIn:!1,className:Ro(F.className||v.toastClassName),bodyClassName:Ro(F.bodyClassName||v.bodyClassName),progressClassName:Ro(F.progressClassName||v.progressClassName),autoClose:!F.isLoading&&(R=F.autoClose,A=v.autoClose,R===!1||Na(R)&&R>0?R:A),deleteToast(){const W=h.get(z),{onClose:K,children:Y}=W.props;mt(K)&&K(w.isValidElement(Y)&&Y.props),g(ym(W,"removed")),h.delete(z),x--,x<0&&(x=0),N.length>0?T(N.shift()):k()}};var R,A;G.closeButton=v.closeButton,F.closeButton===!1||fd(F.closeButton)?G.closeButton=F.closeButton:F.closeButton===!0&&(G.closeButton=!fd(v.closeButton)||v.closeButton);let B=_;w.isValidElement(_)&&!pr(_.type)?B=w.cloneElement(_,{closeToast:D,toastProps:G,data:te}):mt(_)&&(B=_({closeToast:D,toastProps:G,data:te}));const L={content:B,props:G,staleId:Q};v.limit&&v.limit>0&&x>v.limit&&U?N.push(L):Na(Z)?setTimeout(()=>{T(L)},Z):T(L)},setProps(_){v=_},setToggle:(_,F)=>{h.get(_).toggle=F},isToastActive:_=>C.some(F=>F===_),getSnapshot:()=>v.newestOnTop?p.reverse():p}}(i,o,NC);Ge.set(i,d);const c=d.observe(l);return Ca.forEach(u=>Kv(u.content,u.options)),Ca=[],()=>{c(),Ge.delete(i)}},setProps(l){var d;(d=Ge.get(i))==null||d.setProps(l)},getSnapshot(){var l;return(l=Ge.get(i))==null?void 0:l.getSnapshot()}}}(e)).current;s(e);const a=w.useSyncExternalStore(t,r,r);return{getToastToRender:function(o){if(!a)return[];const i=new Map;return a.forEach(l=>{const{position:d}=l.props;i.has(d)||i.set(d,[]),i.get(d).push(l)}),Array.from(i,l=>o(l[0],l[1]))},isToastActive:Hv,count:a==null?void 0:a.length}}function bC(e){const[t,r]=w.useState(!1),[s,a]=w.useState(!1),o=w.useRef(null),i=w.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:d,closeToast:c,onClick:u,closeOnClick:f}=e;var g,b;function x(){r(!0)}function N(){r(!1)}function C(h){const y=o.current;i.canDrag&&y&&(i.didMove=!0,t&&N(),i.delta=e.draggableDirection==="x"?h.clientX-i.start:h.clientY-i.start,i.start!==h.clientX&&(i.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function p(){document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",p);const h=o.current;if(i.canDrag&&i.didMove&&h){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return a(!0),e.closeToast(),void e.collapseAll();h.style.transition="transform 0.2s, opacity 0.2s",h.style.removeProperty("transform"),h.style.removeProperty("opacity")}}(b=Ge.get((g={id:e.toastId,containerId:e.containerId,fn:r}).containerId||1))==null||b.setToggle(g.id,g.fn),w.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||N(),window.addEventListener("focus",x),window.addEventListener("blur",N),()=>{window.removeEventListener("focus",x),window.removeEventListener("blur",N)}},[e.pauseOnFocusLoss]);const v={onPointerDown:function(h){if(e.draggable===!0||e.draggable===h.pointerType){i.didMove=!1,document.addEventListener("pointermove",C),document.addEventListener("pointerup",p);const y=o.current;i.canCloseOnClick=!0,i.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(i.start=h.clientX,i.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(i.start=h.clientY,i.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(h){const{top:y,bottom:k,left:O,right:T}=o.current.getBoundingClientRect();h.nativeEvent.type!=="touchend"&&e.pauseOnHover&&h.clientX>=O&&h.clientX<=T&&h.clientY>=y&&h.clientY<=k?N():x()}};return l&&d&&(v.onMouseEnter=N,e.stacked||(v.onMouseLeave=x)),f&&(v.onClick=h=>{u&&u(h),i.canCloseOnClick&&c()}),{playToast:x,pauseToast:N,isRunning:t,preventExitTransition:s,toastRef:o,eventHandlers:v}}function wC(e){let{delay:t,isRunning:r,closeToast:s,type:a="default",hide:o,className:i,style:l,controlledProgress:d,progress:c,rtl:u,isIn:f,theme:g}=e;const b=o||d&&c===0,x={...l,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};d&&(x.transform=`scaleX(${c})`);const N=Rn("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":u}),C=mt(i)?i({rtl:u,type:a,defaultClassName:N}):Rn(N,i),p={[d&&c>=1?"onTransitionEnd":"onAnimationEnd"]:d&&c<1?null:()=>{f&&s()}};return I.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":b},I.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${a}`}),I.createElement("div",{role:"progressbar","aria-hidden":b?"true":"false","aria-label":"notification timer",className:C,style:x,...p}))}let SC=1;const Yv=()=>""+SC++;function kC(e){return e&&(pr(e.toastId)||Na(e.toastId))?e.toastId:Yv()}function Xs(e,t){return Kv(e,t),t.toastId}function hi(e,t){return{...t,type:t&&t.type||e,toastId:kC(t)}}function no(e){return(t,r)=>Xs(t,hi(e,r))}function ae(e,t){return Xs(e,hi("default",t))}ae.loading=(e,t)=>Xs(e,hi("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ae.promise=function(e,t,r){let s,{pending:a,error:o,success:i}=t;a&&(s=pr(a)?ae.loading(a,r):ae.loading(a.render,{...r,...a}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(u,f,g)=>{if(f==null)return void ae.dismiss(s);const b={type:u,...l,...r,data:g},x=pr(f)?{render:f}:f;return s?ae.update(s,{...b,...x}):ae(x.render,{...b,...x}),g},c=mt(e)?e():e;return c.then(u=>d("success",i,u)).catch(u=>d("error",o,u)),c},ae.success=no("success"),ae.info=no("info"),ae.error=no("error"),ae.warning=no("warning"),ae.warn=ae.warning,ae.dark=(e,t)=>Xs(e,hi("default",{theme:"dark",...t})),ae.dismiss=function(e){(function(t){var r;if(Vv()){if(t==null||pr(r=t)||Na(r))Ge.forEach(s=>{s.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const s=Ge.get(t.containerId);s?s.removeToast(t.id):Ge.forEach(a=>{a.removeToast(t.id)})}}else Ca=Ca.filter(s=>t!=null&&s.options.toastId!==t)})(e)},ae.clearWaitingQueue=function(e){e===void 0&&(e={}),Ge.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ae.isActive=Hv,ae.update=function(e,t){t===void 0&&(t={});const r=((s,a)=>{var o;let{containerId:i}=a;return(o=Ge.get(i||1))==null?void 0:o.toasts.get(s)})(e,t);if(r){const{props:s,content:a}=r,o={delay:100,...s,...t,toastId:t.toastId||e,updateId:Yv()};o.toastId!==e&&(o.staleId=e);const i=o.render||a;delete o.render,Xs(i,o)}},ae.done=e=>{ae.update(e,{progress:1})},ae.onChange=function(e){return md.add(e),()=>{md.delete(e)}},ae.play=e=>jm(!0,e),ae.pause=e=>jm(!1,e);const EC=typeof window<"u"?w.useLayoutEffect:w.useEffect,ro=e=>{let{theme:t,type:r,isLoading:s,...a}=e;return I.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${r})`,...a})},Jl={info:function(e){return I.createElement(ro,{...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(ro,{...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(ro,{...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(ro,{...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"})}},PC=e=>{const{isRunning:t,preventExitTransition:r,toastRef:s,eventHandlers:a,playToast:o}=bC(e),{closeButton:i,children:l,autoClose:d,onClick:c,type:u,hideProgressBar:f,closeToast:g,transition:b,position:x,className:N,style:C,bodyClassName:p,bodyStyle:v,progressClassName:h,progressStyle:y,updateId:k,role:O,progress:T,rtl:_,toastId:F,deleteToast:z,isIn:H,isLoading:te,closeOnClick:Q,theme:Z}=e,D=Rn("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":_},{"Toastify__toast--close-on-click":Q}),U=mt(N)?N({rtl:_,position:x,type:u,defaultClassName:D}):Rn(D,N),G=function(L){let{theme:W,type:K,isLoading:Y,icon:ee}=L,re=null;const ne={theme:W,type:K};return ee===!1||(mt(ee)?re=ee({...ne,isLoading:Y}):w.isValidElement(ee)?re=w.cloneElement(ee,ne):Y?re=Jl.spinner():(se=>se in Jl)(K)&&(re=Jl[K](ne))),re}(e),R=!!T||!d,A={closeToast:g,type:u,theme:Z};let B=null;return i===!1||(B=mt(i)?i(A):w.isValidElement(i)?w.cloneElement(i,A):function(L){let{closeToast:W,theme:K,ariaLabel:Y="close"}=L;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"})))}(A)),I.createElement(b,{isIn:H,done:z,position:x,preventExitTransition:r,nodeRef:s,playToast:o},I.createElement("div",{id:F,onClick:c,"data-in":H,className:U,...a,style:C,ref:s},I.createElement("div",{...H&&{role:O},className:mt(p)?p({type:u}):Rn("Toastify__toast-body",p),style:v},G!=null&&I.createElement("div",{className:Rn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!te})},G),I.createElement("div",null,l)),B,I.createElement(wC,{...k&&!R?{key:`pb-${k}`}:{},rtl:_,theme:Z,delay:d,isRunning:t,isIn:H,closeToast:g,hide:f,type:u,style:y,className:h,controlledProgress:R,progress:T||0})))},Gi=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},_C=Yi(Gi("bounce",!0));Yi(Gi("slide",!0));Yi(Gi("zoom"));Yi(Gi("flip"));const OC={position:"top-right",transition:_C,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function TC(e){let t={...OC,...e};const r=e.stacked,[s,a]=w.useState(!0),o=w.useRef(null),{getToastToRender:i,isToastActive:l,count:d}=CC(t),{className:c,style:u,rtl:f,containerId:g}=t;function b(N){const C=Rn("Toastify__toast-container",`Toastify__toast-container--${N}`,{"Toastify__toast-container--rtl":f});return mt(c)?c({position:N,rtl:f,defaultClassName:C}):Rn(C,Ro(c))}function x(){r&&(a(!0),ae.play())}return EC(()=>{if(r){var N;const C=o.current.querySelectorAll('[data-in="true"]'),p=12,v=(N=t.position)==null?void 0:N.includes("top");let h=0,y=0;Array.from(C).reverse().forEach((k,O)=>{const T=k;T.classList.add("Toastify__toast--stacked"),O>0&&(T.dataset.collapsed=`${s}`),T.dataset.pos||(T.dataset.pos=v?"top":"bot");const _=h*(s?.2:1)+(s?0:p*O);T.style.setProperty("--y",`${v?_:-1*_}px`),T.style.setProperty("--g",`${p}`),T.style.setProperty("--s",""+(1-(s?y:0))),h+=T.offsetHeight,y+=.025})}},[s,d,r]),I.createElement("div",{ref:o,className:"Toastify",id:g,onMouseEnter:()=>{r&&(a(!1),ae.pause())},onMouseLeave:x},i((N,C)=>{const p=C.length?{...u}:{...u,pointerEvents:"none"};return I.createElement("div",{className:b(N),style:p,key:`container-${N}`},C.map(v=>{let{content:h,props:y}=v;return I.createElement(PC,{...y,stacked:r,collapseAll:x,isIn:l(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},h)}))}))}const Ze=()=>{const e=new Date().getFullYear();return n.jsx(n.Fragment,{children:n.jsxs("div",{children:[n.jsx("div",{className:"footer_section layout_padding",children:n.jsxs("div",{className:"container",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-md-12"})}),n.jsx("div",{className:"footer_section_2",children:n.jsxs("div",{className:"row",children:[n.jsxs("div",{className:"col-md-4",children:[n.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),n.jsx("div",{className:"footer_menu",children:n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx(me,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),n.jsx("li",{children:n.jsx(me,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),n.jsx("li",{children:n.jsx(me,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),n.jsx("li",{children:n.jsx(me,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),n.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"})]}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),n.jsxs("div",{className:"form-group",children:[n.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),n.jsx("div",{className:"subscribe_bt",children:n.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),n.jsx("div",{className:"social_icon",children:n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{href:"#",children:n.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),n.jsx("li",{children:n.jsx("a",{href:"#",children:n.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),n.jsx("li",{children:n.jsx("a",{href:"#",children:n.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),n.jsx("li",{children:n.jsx("a",{href:"#",children:n.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),n.jsx("div",{className:"copyright_section",children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-sm-12",children:n.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},RC="/assets/logo-Cb1x1exd.png",Le=()=>{var a,o;const{user:e}=Te(i=>({...i.auth})),t=lt(),r=hn(),s=()=>{t(dN()),r("/")};return n.jsx(n.Fragment,{children:n.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:n.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[n.jsxs("div",{className:"d-flex align-items-center",children:[n.jsx("img",{src:RC,alt:"logo",width:"75",height:"75",className:"img-fluid"}),n.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),n.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[n.jsxs("ul",{className:"navbar-nav ml-auto",children:[n.jsx("li",{className:"nav-item active",children:n.jsx(me,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),n.jsx("li",{className:"nav-item",children:n.jsx(me,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),n.jsx("li",{className:"nav-item",children:n.jsx(me,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),n.jsx("li",{className:"nav-item",children:n.jsx(me,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),n.jsx("li",{className:"nav-item",children:n.jsx(me,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),n.jsx("li",{className:"nav-item",children:n.jsx(me,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(a=e==null?void 0:e.result)!=null&&a._id?n.jsx(me,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):n.jsx(me,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(o=e==null?void 0:e.result)!=null&&o._id?n.jsx(me,{to:"/login",children:n.jsx("p",{className:"header-text",onClick:s,style:{fontWeight:"bold"},children:"Logout"})}):n.jsx(me,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},AC=()=>n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsxs("div",{children:[n.jsx("div",{className:"header_section",children:n.jsx("div",{className:"banner_section layout_padding",children:n.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[n.jsxs("div",{className:"carousel-inner",children:[n.jsx("div",{className:"carousel-item active",children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-sm-12",children:n.jsxs("div",{className:"banner_taital_main",children:[n.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),n.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),n.jsxs("div",{className:"btn_main",children:[n.jsx("div",{className:"started_text active",children:n.jsx("a",{href:"#",children:"Contact US"})}),n.jsx("div",{className:"started_text",children:n.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),n.jsx("div",{className:"carousel-item",children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-sm-12",children:n.jsxs("div",{className:"banner_taital_main",children:[n.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),n.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),n.jsxs("div",{className:"btn_main",children:[n.jsx("div",{className:"started_text active",children:n.jsx("a",{href:"#",children:"Contact US"})}),n.jsx("div",{className:"started_text",children:n.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),n.jsx("div",{className:"carousel-item",children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-sm-12",children:n.jsxs("div",{className:"banner_taital_main",children:[n.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),n.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),n.jsxs("div",{className:"btn_main",children:[n.jsx("div",{className:"started_text active",children:n.jsx("a",{href:"#",children:"Contact US"})}),n.jsx("div",{className:"started_text",children:n.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),n.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:n.jsx("i",{className:"fa fa-angle-left"})}),n.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:n.jsx("i",{className:"fa fa-angle-right"})})]})})}),n.jsx("div",{className:"services_section layout_padding",children:n.jsxs("div",{className:"container-fluid",children:[n.jsx("div",{className:"row",children:n.jsxs("div",{className:"col-sm-12",children:[n.jsx("h1",{className:"services_taital",children:"Our Services"}),n.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),n.jsx("div",{className:"services_section_2",children:n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-lg-3 col-sm-6",children:n.jsxs("div",{className:"box_main active",children:[n.jsx("div",{className:"service_img",children:n.jsx("img",{src:"images/icon-1.png"})}),n.jsx("h4",{className:"development_text",children:"Dedication Services"}),n.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"}),n.jsx("div",{className:"readmore_bt",children:n.jsx("a",{href:"#",children:"Read More"})})]})}),n.jsx("div",{className:"col-lg-3 col-sm-6",children:n.jsxs("div",{className:"box_main",children:[n.jsx("div",{className:"service_img",children:n.jsx("img",{src:"images/icon-2.png"})}),n.jsx("h4",{className:"development_text",children:"Building work Reports"}),n.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),n.jsx("div",{className:"readmore_bt",children:n.jsx("a",{href:"#",children:"Read More"})})]})}),n.jsx("div",{className:"col-lg-3 col-sm-6",children:n.jsxs("div",{className:"box_main",children:[n.jsx("div",{className:"service_img",children:n.jsx("img",{src:"images/icon-3.png"})}),n.jsx("h4",{className:"development_text",children:"Reporting continuously"}),n.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),n.jsx("div",{className:"readmore_bt",children:n.jsx("a",{href:"#",children:"Read More"})})]})}),n.jsx("div",{className:"col-lg-3 col-sm-6",children:n.jsxs("div",{className:"box_main",children:[n.jsx("div",{className:"service_img",children:n.jsx("img",{src:"images/icon-4.png"})}),n.jsx("h4",{className:"development_text",children:"Manage your investment "}),n.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"}),n.jsx("div",{className:"readmore_bt",children:n.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),n.jsx(Ze,{})]}),IC=()=>n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsxs("div",{className:"about_section layout_padding",children:[n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("div",{className:"container",children:n.jsxs("div",{className:"row",children:[n.jsxs("div",{className:"col-md-6",children:[n.jsx("h1",{className:"about_taital",children:"About Us"}),n.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"," "]}),n.jsx("div",{className:"read_bt_1",children:n.jsx("a",{href:"#",children:"Read More"})})]}),n.jsx("div",{className:"col-md-6",children:n.jsx("div",{className:"about_img",children:n.jsx("div",{className:"video_bt",children:n.jsx("div",{className:"play_icon",children:n.jsx("img",{src:"images/play-icon.png"})})})})})]})}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{})]}),n.jsx(Ze,{})]}),DC=()=>n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsxs("div",{className:"contact_section layout_padding",children:[n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-md-12",children:n.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),n.jsx("div",{className:"container-fluid",children:n.jsx("div",{className:"contact_section_2",children:n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-md-6",children:n.jsx("form",{action:!0,children:n.jsxs("div",{className:"mail_section_1",children:[n.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),n.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),n.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),n.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),n.jsx("div",{className:"send_bt",children:n.jsx("a",{href:"#",children:"SEND"})})]})})}),n.jsx("div",{className:"col-md-6 padding_left_15",children:n.jsx("div",{className:"contact_img",children:n.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),n.jsx(Ze,{})]});var nn=function(){return nn=Object.assign||function(e){for(var t,r=1,s=arguments.length;r{const[e,t]=w.useState(ob),[r,s]=w.useState(!1),{loading:a,error:o}=Te(k=>({...k.auth})),{title:i,email:l,password:d,firstName:c,middleName:u,lastName:f,confirmPassword:g,termsconditions:b,userType:x}=e,N=lt(),C=hn();w.useEffect(()=>{o&&ae.error(o)},[o]),w.useEffect(()=>{s(i!=="None"&&l&&d&&c&&u&&f&&g&&b&&x!=="")},[i,l,d,c,u,f,g,b,x]);const p=k=>{if(k.preventDefault(),d!==g)return ae.error("Password should match");r?N(bo({formValue:e,navigate:C,toast:ae})):ae.error("Please fill in all fields and select all checkboxes")},v=k=>k.charAt(0).toUpperCase()+k.slice(1),h=k=>{const{name:O,value:T,type:_,checked:F}=k.target;t(_==="checkbox"?z=>({...z,[O]:F}):z=>({...z,[O]:O==="email"||O==="password"||O==="confirmPassword"?T:v(T)}))},y=k=>{t(O=>({...O,userType:k.target.value}))};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:n.jsx("div",{className:"container-fluid px-0",children:n.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[n.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),n.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:n.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:n.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"mb-4",children:[n.jsx("h2",{className:"h3",children:"Registration"}),n.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),n.jsx("hr",{})]})})}),n.jsx("form",{onSubmit:p,children:n.jsxs("div",{className:"row gy-3 overflow-hidden",children:[n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsxs("label",{className:"form-label",children:["Please select the role. ",n.jsx("br",{}),n.jsx("br",{})]}),n.jsxs("div",{className:"form-check form-check-inline",children:[n.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:x==="Lender",onChange:y,required:!0}),n.jsx("label",{className:"form-check-label",children:"Lender"})]}),n.jsxs("div",{className:"form-check form-check-inline",children:[n.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:x==="Borrower",onChange:y,required:!0}),n.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),n.jsx("br",{}),n.jsx("br",{})]})]})}),n.jsxs("div",{className:"col-12",children:[n.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:i,onChange:h,children:[n.jsx("option",{value:"None",children:"Please Select Title"}),n.jsx("option",{value:"Dr",children:"Dr"}),n.jsx("option",{value:"Prof",children:"Prof"}),n.jsx("option",{value:"Mr",children:"Mr"}),n.jsx("option",{value:"Miss",children:"Miss"})]}),n.jsx("br",{})]}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:h,placeholder:"First Name",required:"required"}),n.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"text",className:"form-control",value:u,name:"middleName",onChange:h,placeholder:"Middle Name",required:"required"}),n.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:h,placeholder:"Last Name",required:"required"}),n.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"email",className:"form-control",value:l,name:"email",onChange:h,placeholder:"name@example.com",required:"required"}),n.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"password",className:"form-control",value:d,name:"password",onChange:h,placeholder:"Password",required:"required"}),n.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:h,placeholder:"confirmPassword",required:"required"}),n.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-check",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:b,name:"termsconditions",checked:b,onChange:h,required:!0}),n.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",n.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-grid",children:n.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!r||a,children:[a&&n.jsx(Gv.Bars,{}),"Sign up"]})})})]})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:n.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",n.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12"})})]})})})]})})}),n.jsx(Ze,{})]})},lb={email:"",password:""},cb=()=>{const[e,t]=w.useState(lb),{loading:r,error:s}=Te(u=>({...u.auth})),{email:a,password:o}=e,i=lt(),l=hn();w.useEffect(()=>{s&&ae.error(s)},[s]);const d=u=>{u.preventDefault(),a&&o&&i(Co({formValue:e,navigate:l,toast:ae}))},c=u=>{let{name:f,value:g}=u.target;t({...e,[f]:g})};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:n.jsx("div",{className:"container-fluid px-0",children:n.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[n.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:n.jsx("div",{className:"text-bg-primary",children:n.jsxs("div",{className:"px-4",children:[n.jsx("hr",{className:"border-primary-subtle mb-4"}),n.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),n.jsx("div",{className:"text-endx",children:n.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:n.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"})})})]})})}),n.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:n.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:n.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"mb-4",children:n.jsx("h2",{className:"h3",children:"Please Login"})})})}),n.jsx("form",{method:"POST",children:n.jsxs("div",{className:"row gy-3 overflow-hidden",children:[n.jsx("div",{className:"col-12"}),n.jsx("div",{className:"col-12"}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:a,name:"email",onChange:c,required:!0}),n.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:o,name:"password",onChange:c,required:!0}),n.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-check",children:[n.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),n.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-grid",children:n.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:d,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r&&n.jsx(Gv.Bars,{}),"Sign In"]})})})]})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:n.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",n.jsx(me,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),n.jsx(me,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12"})})]})})})]})})}),n.jsx(Ze,{})]})},Ms="/assets/samplepic-BM_cnzgz.jpg";var Qv={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Lg,function(){return function(r){function s(o){if(a[o])return a[o].exports;var i=a[o]={exports:{},id:o,loaded:!1};return r[o].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}var a={};return s.m=r,s.c=a,s.p="",s(0)}([function(r,s,a){function o(b){return b&&b.__esModule?b:{default:b}}function i(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function l(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function d(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}Object.defineProperty(s,"__esModule",{value:!0});var c=function(){function b(x,N){for(var C=0;C1)for(var k=1;k1?u-1:0),g=1;g2?f-2:0),b=2;b1){for(var Z=Array(Q),D=0;D"u"||_.$$typeof!==p)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;F&&d(_,G),z&&c(_,G)}return h(y,F,z,H,te,b.current,_)},h.createFactory=function(y){var k=h.createElement.bind(null,y);return k.type=y,k},h.cloneAndReplaceKey=function(y,k){var O=h(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return O},h.cloneElement=function(y,k,O){var T,_=g({},y.props),F=y.key,z=y.ref,H=y._self,te=y._source,Q=y._owner;if(k!=null){i(k)&&(z=k.ref,Q=b.current),l(k)&&(F=""+k.key);var Z;y.type&&y.type.defaultProps&&(Z=y.type.defaultProps);for(T in k)C.call(k,T)&&!v.hasOwnProperty(T)&&(k[T]===void 0&&Z!==void 0?_[T]=Z[T]:_[T]=k[T])}var D=arguments.length-2;if(D===1)_.children=O;else if(D>1){for(var U=Array(D),G=0;G1?c-1:0),f=1;f2?u-2:0),g=2;g.")}return T}function c(O,T){if(O._store&&!O._store.validated&&O.key==null){O._store.validated=!0;var _=y.uniqueKey||(y.uniqueKey={}),F=d(T);if(!_[F]){_[F]=!0;var z="";O&&O._owner&&O._owner!==g.current&&(z=" It was passed a child from "+O._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',F,z,b.getCurrentStackAddendum(O))}}}function u(O,T){if(typeof O=="object"){if(Array.isArray(O))for(var _=0;_1?Y-1:0),re=1;re"u"||L===null)return""+L;var W=Q(L);if(W==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return W}function D(L){var W=Z(L);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function U(L){return L.constructor&&L.constructor.name?L.constructor.name:A}var G=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator",A="<>",B={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:v(),arrayOf:h,element:y(),instanceOf:k,node:F(),objectOf:T,oneOf:O,oneOfType:_,shape:z};return N.prototype=Error.prototype,B.checkPropTypes=u,B.PropTypes=B,B}}).call(s,a(1))},function(r,s){function a(l){var d=/[=:]/g,c={"=":"=0",":":"=2"},u=(""+l).replace(d,function(f){return c[f]});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(f){return c[f]})}var i={escape:a,unescape:o};r.exports=i},function(r,s,a){(function(o){var i=a(5),l=a(2),d=function(p){var v=this;if(v.instancePool.length){var h=v.instancePool.pop();return v.call(h,p),h}return new v(p)},c=function(p,v){var h=this;if(h.instancePool.length){var y=h.instancePool.pop();return h.call(y,p,v),y}return new h(p,v)},u=function(p,v,h){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,p,v,h),k}return new y(p,v,h)},f=function(p,v,h,y){var k=this;if(k.instancePool.length){var O=k.instancePool.pop();return k.call(O,p,v,h,y),O}return new k(p,v,h,y)},g=function(p){var v=this;p instanceof v||(o.env.NODE_ENV!=="production"?l(!1,"Trying to release an instance into a pool of a different type."):i("25")),p.destructor(),v.instancePool.length{const[e,t]=w.useState("propertydetails"),r=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},s=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},a=lt(),{status:o,error:i}=Te(m=>m.property),{user:l}=Te(m=>({...m.auth})),d=[1,2,3,4,5,6,7,8,9,10],[c,u]=w.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"}),[f,g]=w.useState(!1),b=(m,j)=>{console.log("File received:",m);const S=[...c.images];S[j].file=m.base64,u({...c,images:S})},x=()=>{u({...c,images:[...c.images,{title:"",file:""}]})},N=m=>{const j=c.images.filter((S,M)=>M!==m);u({...c,images:j})},C=(m,j)=>{const S=[...c.images];S[m].title=j.target.value,u({...c,images:S})},p=(m,j,S)=>{const{name:M,value:q}=m.target;if(S==="propertyTaxInfo"){const J=[...c.propertyTaxInfo];J[j][M]=q,u({...c,propertyTaxInfo:J})}else u({...c,[M]:q})},v=()=>{u({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},h=m=>{const j=c.propertyTaxInfo.filter((S,M)=>M!==m);u({...c,propertyTaxInfo:j})},y=()=>{u(m=>({...m,costPaidAtoB:[...m.costPaidAtoB,{title:"",price:""}]}))},k=m=>{const j=c.costPaidAtoB.filter((S,M)=>M!==m);u(S=>({...S,costPaidAtoB:j}))},O=(m,j,S)=>{const M=[...c.costPaidAtoB];M[m][j]=S,u(q=>({...q,costPaidAtoB:M}))},T=(m,j)=>{let S=m.target.value;if(S=S.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(S)||S===""){const q=c.costPaidAtoB.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,costPaidAtoB:q})}},_=()=>{const m=c.costPaidAtoB.reduce((S,M)=>{const q=parseFloat(M.price)||0;return S+q},0),j=parseFloat(c.purchaseCost)||0;return m+j},F=()=>{u(m=>({...m,credits:[...m.credits,{title:"",price:""}]}))},z=m=>{const j=c.credits.filter((S,M)=>M!==m);u(S=>({...S,credits:j}))},H=(m,j,S)=>{const M=[...c.credits];M[m][j]=S,u(q=>({...q,credits:M}))},te=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.credits.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,credits:q})}else{const q=c.credits.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,credits:q})}},Q=()=>c.credits.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),Z=()=>{const m=c.costPaidAtoB.reduce((M,q)=>{const J=parseFloat(q.price)||0;return M+J},0),j=c.credits.reduce((M,q)=>{const J=parseFloat(q.price)||0;return M+J},0),S=parseFloat(c.purchaseCost)||0;return m+j+S},D=()=>{u(m=>({...m,cashAdjustments:[...m.cashAdjustments,{title:"",price:""}]}))},U=m=>{const j=c.cashAdjustments.filter((S,M)=>M!==m);u(S=>({...S,cashAdjustments:j}))},G=(m,j,S)=>{const M=[...c.cashAdjustments];M[m][j]=S,u(q=>({...q,cashAdjustments:M}))},R=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.cashAdjustments.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,cashAdjustments:q})}},A=()=>c.cashAdjustments.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),B=()=>{const m=A(),j=Q(),S=_();return m+j+S},L=()=>{u(m=>({...m,incidentalCost:[...m.incidentalCost,{title:"",price:""}]}))},W=m=>{const j=c.incidentalCost.filter((S,M)=>M!==m);u(S=>({...S,incidentalCost:j}))},K=(m,j,S)=>{const M=[...c.incidentalCost];M[m][j]=S,u(q=>({...q,incidentalCost:M}))},Y=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.incidentalCost.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,incidentalCost:q})}},ee=()=>c.incidentalCost.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),re=()=>{u(m=>({...m,carryCosts:[...m.carryCosts,{title:"",price:""}]}))},ne=m=>{const j=c.carryCosts.filter((S,M)=>M!==m);u(S=>({...S,carryCosts:j}))},se=(m,j,S)=>{const M=[...c.carryCosts];M[m][j]=S,u(q=>({...q,carryCosts:M}))},ie=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.carryCosts.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,carryCosts:q})}else{const q=c.carryCosts.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),ge=()=>{u(m=>({...m,renovationCost:[...m.renovationCost,{title:"",price:""}]}))},Me=m=>{const j=c.renovationCost.filter((S,M)=>M!==m);u(S=>({...S,renovationCost:j}))},Nt=(m,j,S)=>{const M=[...c.renovationCost];M[m][j]=S,u(q=>({...q,renovationCost:M}))},zt=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.renovationCost.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,renovationCost:q})}else{const q=c.renovationCost.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,renovationCost:q})}},pe=()=>c.renovationCost.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),$t=()=>{const m=ee(),j=ce(),S=pe();return m+j+S},Ke=()=>{const m=$t(),j=B();return m+j},Qn=()=>{u(m=>({...m,costPaidOutofClosing:[...m.costPaidOutofClosing,{title:"",price:""}]}))},Zt=m=>{const j=c.costPaidOutofClosing.filter((S,M)=>M!==m);u(S=>({...S,costPaidOutofClosing:j}))},ys=(m,j,S)=>{const M=[...c.costPaidOutofClosing];M[m][j]=S,u(q=>({...q,costPaidOutofClosing:M}))},js=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.costPaidOutofClosing.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,costPaidOutofClosing:q})}},Jn=()=>c.costPaidOutofClosing.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),Wt=()=>{const m=c.sellingPriceBtoC,j=Jn();return m-j},gn=()=>{u(m=>({...m,adjustments:[...m.adjustments,{title:"",price:""}]}))},Ut=m=>{const j=c.adjustments.filter((S,M)=>M!==m);u(S=>({...S,adjustments:j}))},ue=(m,j,S)=>{const M=[...c.adjustments];M[m][j]=S,u(q=>({...q,adjustments:M}))},qt=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.adjustments.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,adjustments:q})}else{const q=c.adjustments.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,adjustments:q})}},xn=()=>c.adjustments.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),Da=()=>{const m=Wt(),j=xn();return m+j},Ns=()=>{u(m=>({...m,incomestatement:[...m.incomestatement,{title:"",price:""}]}))},Fa=m=>{const j=c.incomestatement.filter((S,M)=>M!==m);u(S=>({...S,incomestatement:j}))},Zi=(m,j,S)=>{const M=[...c.incomestatement];M[m][j]=S,u(q=>({...q,incomestatement:M}))},el=(m,j)=>{const S=m.target.value;if(/^\d*\.?\d*$/.test(S)||S===""){const q=c.incomestatement.map((J,le)=>le===j?{...J,price:S,isInvalid:!1}:J);u({...c,incomestatement:q})}else{const q=c.incomestatement.map((J,le)=>le===j?{...J,isInvalid:!0}:J);u({...c,incomestatement:q})}},Cs=()=>c.incomestatement.reduce((m,j)=>{const S=parseFloat(j.price);return m+(isNaN(S)?0:S)},0),Xn=()=>{const m=Cs(),j=Wt();return m+j},Zn=()=>{const m=isNaN(parseFloat(Xn()))?0:parseFloat(Xn()),j=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),S=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),M=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),J=isNaN(parseFloat(Ke()))?0:parseFloat(Ke());return m+j+S+M+q-J},en=()=>{const m=Zn(),j=c.FinancingCostClosingCost;return m-j},kr=()=>en(),bs=()=>{var m,j,S,M,q,J;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){const le=kr(),La=_(),nl=Z(),rl=A(),sl=ee(),al=Q(),ol=B(),il=ce(),ll=pe(),cl=$t(),dl=Ke(),ul=Jn(),fl=xn(),Eg=Da(),Pg=Wt(),_g=Wt(),Og=Cs(),Tg=Xn(),Rg=Zn(),Ag=en(),ml={...c,userfirstname:(m=l==null?void 0:l.result)==null?void 0:m.firstName,usermiddlename:(j=l==null?void 0:l.result)==null?void 0:j.middleName,userlastname:(S=l==null?void 0:l.result)==null?void 0:S.lastName,usertitle:(M=l==null?void 0:l.result)==null?void 0:M.title,useremail:(q=l==null?void 0:l.result)==null?void 0:q.email,userId:(J=l==null?void 0:l.result)==null?void 0:J.userId,totalPurchaseCosts:La,totalcredits:al,totalPurchaseCostsaftercredits:nl,totalcashAdjustments:rl,totalcashrequiredonsettlement:ol,totalincidentalCost:sl,totalcarryCosts:il,totalrenovationCost:ll,totalRenovationsandHoldingCost:cl,totalCoststoBuyAtoB:dl,totalcostPaidOutofClosing:ul,totaladjustments:fl,fundsavailablefordistribution:Eg,grossproceedsperHUD:Pg,totalCosttoSellBtoC:_g,totalincomestatement:Og,netBtoCsalevalue:Tg,netprofitbeforefinancingcosts:Rg,NetProfit:Ag,rateofreturn:le};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?ml.propertyTaxInfo=c.propertyTaxInfo:ml.propertyTaxInfo=[],a(Po(ml)),g(!0)}else ae.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};w.useEffect(()=>{f&&(o==="succeeded"?(ae.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):o==="failed"&&(ae.error(`Failed to submit: ${i}`,{position:"top-right",autoClose:3e3}),g(!1)))},[o,i,f]);const[tl,E]=w.useState("0 days"),P=(m,j)=>{if(m&&j){const S=new Date(m),M=new Date(j),q=Math.abs(M-S),J=Math.ceil(q/(1e3*60*60*24));E(`${J} days`)}else E("0 days")};return n.jsx(n.Fragment,{children:n.jsxs("div",{className:"container tabs-wrap",children:[n.jsx(Le,{}),n.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[n.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:n.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),n.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:n.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),n.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:n.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),n.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&n.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[n.jsxs("form",{children:[n.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Property Address",n.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["City",n.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["State",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Alaska",children:"Alaska"}),n.jsx("option",{value:"Alabama",children:"Alabama"}),n.jsx("option",{value:"Arkansas",children:"Arkansas"}),n.jsx("option",{value:"Arizona",children:"Arizona"}),n.jsx("option",{value:"California",children:"California"}),n.jsx("option",{value:"Colorado",children:"Colorado"}),n.jsx("option",{value:"Connecticut",children:"Connecticut"}),n.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),n.jsx("option",{value:"Delaware",children:"Delaware"}),n.jsx("option",{value:"Florida",children:"Florida"}),n.jsx("option",{value:"Georgia",children:"Georgia"}),n.jsx("option",{value:"Hawaii",children:"Hawaii"}),n.jsx("option",{value:"Iowa",children:"Iowa"}),n.jsx("option",{value:"Idaho",children:"Idaho"}),n.jsx("option",{value:"Illinois",children:"Illinois"}),n.jsx("option",{value:"Indiana",children:"Indiana"}),n.jsx("option",{value:"Kansas",children:"Kansas"}),n.jsx("option",{value:"Kentucky",children:"Kentucky"}),n.jsx("option",{value:"Louisiana",children:"Louisiana"}),n.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),n.jsx("option",{value:"Maryland",children:"Maryland"}),n.jsx("option",{value:"Michigan",children:"Michigan"}),n.jsx("option",{value:"Minnesota",children:"Minnesota"}),n.jsx("option",{value:"Missouri",children:"Missouri"}),n.jsx("option",{value:"Mississippi",children:"Mississippi"}),n.jsx("option",{value:"Montana",children:"Montana"}),n.jsx("option",{value:"North Carolina",children:"North Carolina"}),n.jsx("option",{value:"North Dakota",children:"North Dakota"}),n.jsx("option",{value:"Nebraska",children:"Nebraska"}),n.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),n.jsx("option",{value:"New Jersey",children:"New Jersey"}),n.jsx("option",{value:"New Mexico",children:"New Mexico"}),n.jsx("option",{value:"Nevada",children:"Nevada"}),n.jsx("option",{value:"New York",children:"New York"}),n.jsx("option",{value:"Ohio",children:"Ohio"}),n.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),n.jsx("option",{value:"Oregon",children:"Oregon"}),n.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),n.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),n.jsx("option",{value:"South Carolina",children:"South Carolina"}),n.jsx("option",{value:"South Dakota",children:"South Dakota"}),n.jsx("option",{value:"Tennessee",children:"Tennessee"}),n.jsx("option",{value:"Texas",children:"Texas"}),n.jsx("option",{value:"Texas",children:"Travis"}),n.jsx("option",{value:"Utah",children:"Utah"}),n.jsx("option",{value:"Virginia",children:"Virginia"}),n.jsx("option",{value:"Vermont",children:"Vermont"}),n.jsx("option",{value:"Washington",children:"Washington"}),n.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),n.jsx("option",{value:"West Virginia",children:"West Virginia"}),n.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["County",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Abbeville",children:"Abbeville"}),n.jsx("option",{value:"Aiken",children:"Aiken"}),n.jsx("option",{value:"Allendale",children:"Allendale"}),n.jsx("option",{value:"Anderson",children:"Anderson"}),n.jsx("option",{value:"Bamberg",children:"Bamberg"}),n.jsx("option",{value:"Barnwell",children:"Barnwell"}),n.jsx("option",{value:"Beaufort",children:"Beaufort"}),n.jsx("option",{value:"Berkeley",children:"Berkeley"}),n.jsx("option",{value:"Calhoun",children:"Calhoun"}),n.jsx("option",{value:"Charleston",children:"Charleston"}),n.jsx("option",{value:"Cherokee",children:"Cherokee"}),n.jsx("option",{value:"Chester",children:"Chester"}),n.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),n.jsx("option",{value:"Clarendon",children:"Clarendon"}),n.jsx("option",{value:"Colleton",children:"Colleton"}),n.jsx("option",{value:"Darlington",children:"Darlington"}),n.jsx("option",{value:"Dillon",children:"Dillon"}),n.jsx("option",{value:"Dorchester",children:"Dorchester"}),n.jsx("option",{value:"Edgefield",children:"Edgefield"}),n.jsx("option",{value:"Fairfield",children:"Fairfield"}),n.jsx("option",{value:"Florence",children:"Florence"}),n.jsx("option",{value:"Georgetown",children:"Georgetown"}),n.jsx("option",{value:"Greenville",children:"Greenville"}),n.jsx("option",{value:"Greenwood",children:"Greenwood"}),n.jsx("option",{value:"Hampton",children:"Hampton"}),n.jsx("option",{value:"Horry",children:"Horry"}),n.jsx("option",{value:"Jasper",children:"Jasper"}),n.jsx("option",{value:"Kershaw",children:"Kershaw"}),n.jsx("option",{value:"Lancaster",children:"Lancaster"}),n.jsx("option",{value:"Laurens",children:"Laurens"}),n.jsx("option",{value:"Lee",children:"Lee"}),n.jsx("option",{value:"Lexington",children:"Lexington"}),n.jsx("option",{value:"Marion",children:"Marion"}),n.jsx("option",{value:"Marlboro",children:"Marlboro"}),n.jsx("option",{value:"McCormick",children:"McCormick"}),n.jsx("option",{value:"Newberry",children:"Newberry"}),n.jsx("option",{value:"Oconee",children:"Oconee"}),n.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),n.jsx("option",{value:"Pickens",children:"Pickens"}),n.jsx("option",{value:"Richland",children:"Richland"}),n.jsx("option",{value:"Saluda",children:"Saluda"}),n.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),n.jsx("option",{value:"Sumter",children:"Sumter"}),n.jsx("option",{value:"Union",children:"Union"}),n.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),n.jsx("option",{value:"York",children:"York"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Zip",n.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Parcel",n.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:p,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Sub division",n.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",n.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",n.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:p,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Property Type",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Residential",children:"Residential"}),n.jsx("option",{value:"Land",children:"Land"}),n.jsx("option",{value:"Commercial",children:"Commercial"}),n.jsx("option",{value:"Industrial",children:"Industrial"}),n.jsx("option",{value:"Water",children:"Water"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",n.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Year Build",n.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:p,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",n.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Beds",n.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:p,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Baths",n.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:p,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Stories",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"0",children:"0"}),n.jsx("option",{value:"1",children:"1"}),n.jsx("option",{value:"2",children:"2"}),n.jsx("option",{value:"3",children:"3"}),n.jsx("option",{value:"4",children:"4"}),n.jsx("option",{value:"5",children:"5"}),n.jsx("option",{value:"6",children:"6"}),n.jsx("option",{value:"7",children:"7"}),n.jsx("option",{value:"8",children:"8"}),n.jsx("option",{value:"9",children:"9"}),n.jsx("option",{value:"10",children:"10"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Garage",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"0",children:"0"}),n.jsx("option",{value:"1",children:"1"}),n.jsx("option",{value:"2",children:"2"}),n.jsx("option",{value:"3",children:"3"}),n.jsx("option",{value:"4",children:"4"}),n.jsx("option",{value:"5",children:"5"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",n.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:p,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Pool/SPA",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),n.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),n.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),n.jsx("option",{value:"4",children:"None"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Fire places",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"yes",children:"Yes"}),n.jsx("option",{value:"no",children:"No"})]})]}),n.jsxs("div",{className:"col-md-4",children:["A/C",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Central",children:"Central"}),n.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),n.jsx("option",{value:"Warm Air",children:"Warm Air"}),n.jsx("option",{value:"Forced Air",children:"Forced Air"}),n.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Heating",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Central",children:"Central"}),n.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),n.jsx("option",{value:"Warm Air",children:"Warm Air"}),n.jsx("option",{value:"Forced Air",children:"Forced Air"}),n.jsx("option",{value:"Gas",children:"Gas"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Building Style",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"One Story",children:"One Story"}),n.jsx("option",{value:"Craftsman",children:"Craftsman"}),n.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),n.jsx("option",{value:"Split-Level",children:"Split-Level"}),n.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),n.jsx("option",{value:"Stick Built",children:"Stick Built"}),n.jsx("option",{value:"Single wide",children:"Single wide"}),n.jsx("option",{value:"Double wide",children:"Double wide"}),n.jsx("option",{value:"Duplex",children:"Duplex"}),n.jsx("option",{value:"Triplex",children:"Triplex"}),n.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),n.jsx("option",{value:"Two Story",children:"Two Story"}),n.jsx("option",{value:"Victorian",children:"Victorian"}),n.jsx("option",{value:"Tudor",children:"Tudor"}),n.jsx("option",{value:"Modern",children:"Modern"}),n.jsx("option",{value:"Art Deco",children:"Art Deco"}),n.jsx("option",{value:"Bungalow",children:"Bungalow"}),n.jsx("option",{value:"Mansion",children:"Mansion"}),n.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),n.jsx("option",{value:"Conventional",children:"Conventional"}),n.jsx("option",{value:"Ranch",children:"Ranch"}),n.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),n.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),n.jsx("option",{value:"Contemporary",children:"Contemporary"}),n.jsx("option",{value:"Colonial",children:"Colonial"}),n.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Site Vacant",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please select"}),n.jsx("option",{value:"Yes",children:"Yes"}),n.jsx("option",{value:"No",children:"No"})]})]})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Ext Wall",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Brick",children:"Brick"}),n.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),n.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),n.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),n.jsx("option",{value:"Stone",children:"Stone"}),n.jsx("option",{value:"Masonry",children:"Masonry"}),n.jsx("option",{value:"Metal",children:"Metal"}),n.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),n.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),n.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),n.jsx("option",{value:"Gable",children:"Gable"}),n.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),n.jsx("option",{value:"Frame",children:"Frame"}),n.jsx("option",{value:"Siding",children:"Siding"}),n.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),n.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),n.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),n.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),n.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),n.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Roofing",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:p,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),n.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),n.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),n.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),n.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),n.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),n.jsx("option",{value:"Metal",children:"Metal"}),n.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),n.jsx("option",{value:"Slate",children:"Slate"}),n.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),n.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",n.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:p,required:!0})]})})]}),n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[n.jsx("br",{}),"Property Tax Information"]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((m,j)=>n.jsxs("div",{className:"row gy-4",children:[n.jsx("div",{className:"col-md-3",children:n.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",n.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:m.propertytaxowned,onChange:S=>p(S,j,"propertyTaxInfo"),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",n.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:m.ownedyear,onChange:S=>p(S,j,"propertyTaxInfo"),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",n.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:m.taxassessed,onChange:S=>p(S,j,"propertyTaxInfo"),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",n.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:m.taxyear,onChange:S=>p(S,j,"propertyTaxInfo"),required:!0})]})}),n.jsx("div",{className:"col-md-3",children:n.jsxs("div",{className:"form-floating mb-2",children:[n.jsx("br",{}),n.jsx("button",{className:"btn btn-danger",onClick:()=>h(j),style:{height:"25px",width:"35px"},children:"X"})]})})]},j)),n.jsx("button",{className:"btn btn-secondary",onClick:v,children:"+ Add Another Property Tax Info"})]}),n.jsx("button",{className:"btn btn-primary continue",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&n.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),n.jsxs("form",{children:[c.images.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,placeholder:"Image Title",onChange:S=>C(j,S)})}),n.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[n.jsx(Cu,{multiple:!1,onDone:S=>b(S,j)}),n.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>N(j),style:{marginLeft:"5px"},children:"Delete"})]}),m.file&&n.jsxs(n.Fragment,{children:[n.jsx("p",{children:"Base64 Data:"})," ",n.jsxs("pre",{children:[m.file.slice(0,100),"..."]})," ",n.jsx("div",{className:"col-md-12",children:n.jsx("img",{src:m.file,alt:"uploaded",style:{width:"150px",height:"150px",objectFit:"cover"}})})]})]},j)),n.jsx("button",{type:"button",className:"btn btn-primary",onClick:x,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"mb-3",children:[n.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),n.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:p,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&n.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),n.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",n.jsx("button",{className:"btn btn-primary continue",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&n.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:m=>{const j=m.target.value;u({...c,closeDateAtoB:j}),P(j,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),n.jsx("div",{children:n.jsxs("p",{children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",n.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:m=>{const j=m.target.value;u({...c,closeDateBtoC:j}),P(c.closeDateAtoB,j)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),n.jsx("div",{children:n.jsxs("p",{children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),n.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),n.jsx("div",{className:"col-md-7",children:d.map(m=>n.jsxs("div",{className:"form-check form-check-inline",children:[n.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${m}`,value:m,checked:c.renovationRisk===m,onChange:j=>{const S=parseInt(j.target.value,10);u({...c,renovationRisk:S})}}),n.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${m}`,children:m})]},m))})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${kr().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:tl,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:m=>{let j=m.target.value.replace(/[^\d.]/g,"");const S=/^\d*\.?\d*$/.test(j);u({...c,purchaseCost:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>O(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:`$ ${m.price}`,onChange:S=>T(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>k(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${_().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>H(j,"title",S.target.value),placeholder:"credits",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>te(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>z(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:Z(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>G(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>R(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>U(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:A(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:B(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>K(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>Y(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>W(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ee(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>se(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>ie(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>ne(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:re,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>Nt(j,"title",S.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>zt(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>Me(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:ge,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:pe(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:$t(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Ke(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,sellingPriceBtoC:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>ys(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>js(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>Zt(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:Qn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:Jn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Wt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>ue(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>qt(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>Ut(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:gn,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Da(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((m,j)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:m.title,onChange:S=>Zi(j,"title",S.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${m.isInvalid?"is-invalid":""}`,value:m.price,onChange:S=>el(S,j),placeholder:"Price",style:{textAlign:"right"},required:!0}),m.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>Fa(j),style:{marginLeft:"5px"},children:"x"})})]},j)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:Ns,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Cs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Ke(),style:{textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,fundspriortoclosing:j,isfundspriortoclosingInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Xn(),style:{textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,shorttermrental:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,OtherIncome:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,InsuranceClaim:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,LongTermRental:j,isPurchaseCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:m=>{const j=m.target.value,S=/^\d*\.?\d*$/.test(j);u({...c,FinancingCostClosingCost:j,isFinancingCostClosingCostInvalid:!S})},onKeyPress:m=>{const j=m.charCode;(j<48||j>57)&&j!==46&&(m.preventDefault(),u({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",n.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:bs,children:"Submit"})," "]}),n.jsx("br",{})]})]})]})})},St="/assets/propertydummy-DhVEZ7jN.jpg",fb=()=>{var d;const e=lt(),{user:t}=Te(c=>({...c.auth})),{userProperties:r,totalPages:s}=Te(c=>c.property),[a,o]=w.useState(1),i=5;w.useEffect(()=>{e(Qs({userId:t.result.userId,page:a,limit:i}))},[e,(d=t==null?void 0:t.result)==null?void 0:d.userId,a]);const l=c=>{o(c)};return n.jsx(n.Fragment,{children:r.length>0?n.jsxs(n.Fragment,{children:[n.jsx("ul",{children:r.map(c=>n.jsx("li",{children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"col-md-12",children:n.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[n.jsx("div",{className:"col-md-3 mt-1",children:n.jsx("img",{src:c.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),n.jsxs("div",{className:"col-md-6 mt-1",children:[n.jsxs("h5",{children:[" ",n.jsxs(me,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),n.jsx("div",{className:"d-flex flex-row"}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"100% cotton"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"Light weight"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Best finish",n.jsx("br",{})]})]}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"Unique design"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"For men"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Casual",n.jsx("br",{})]})]}),n.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",n.jsx("br",{}),n.jsx("br",{})]})]}),n.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:n.jsxs("div",{className:"d-flex flex-column mt-4",children:[n.jsx(me,{to:`/property/${c.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),n.jsx(me,{to:`/editproperty/${c.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),n.jsxs("div",{className:"pagination",children:[n.jsx("button",{onClick:()=>l(a-1),disabled:a===1,children:"Previous"}),Array.from({length:s},(c,u)=>u+1).map(c=>c===a||c===1||c===s||c>=a-1&&c<=a+1?n.jsx("button",{onClick:()=>l(c),disabled:a===c,children:c},c):c===2||c===s-1?n.jsx("span",{children:"..."},c):null),n.jsx("button",{onClick:()=>l(a+1),disabled:a===s,children:"Next"})]})]}):n.jsx("p",{children:"No active properties found."})})},mb=()=>{var c,u,f,g,b,x,N,C,p,v,h,y;const{user:e,isLoading:t}=Te(k=>k.auth),r=lt(),s=hn(),[a,o]=w.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:((f=e==null?void 0:e.result)==null?void 0:f.firstName)||"",middleName:((g=e==null?void 0:e.result)==null?void 0:g.middleName)||"",lastName:((b=e==null?void 0:e.result)==null?void 0:b.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((C=e==null?void 0:e.result)==null?void 0:C.city)||"",state:((p=e==null?void 0:e.result)==null?void 0:p.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:((y=e==null?void 0:e.result)==null?void 0:y.profileImage)||""});w.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 i=k=>{o({...a,[k.target.name]:k.target.value})},l=()=>{o({...a,profileImage:""})},d=k=>{k.preventDefault(),r(wo({formData:a,toast:ae,navigate:s}))};return n.jsx(n.Fragment,{children:n.jsxs("form",{onSubmit:d,children:[n.jsxs("div",{className:"col-4",children:["Title",n.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:a.title,onChange:i,children:[n.jsx("option",{value:"None",children:"Please Select Title"}),n.jsx("option",{value:"Dr",children:"Dr"}),n.jsx("option",{value:"Prof",children:"Prof"}),n.jsx("option",{value:"Mr",children:"Mr"}),n.jsx("option",{value:"Miss",children:"Miss"})]})]}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["First Name",n.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:a.firstName,onChange:i})]})}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",n.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:a.middleName,onChange:i})]})}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Last Name",n.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:a.lastName,onChange:i})]})}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Email",n.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:a.email,onChange:i,disabled:!0})]})}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["About me",n.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:a.aboutme,onChange:i})]})}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["City",n.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:a.city,onChange:i,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["State",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:a.state,onChange:i,required:!0,children:[n.jsx("option",{value:"",children:"Please Select State"}),n.jsx("option",{value:"Alaska",children:"Alaska"}),n.jsx("option",{value:"Alabama",children:"Alabama"}),n.jsx("option",{value:"Arkansas",children:"Arkansas"}),n.jsx("option",{value:"Arizona",children:"Arizona"}),n.jsx("option",{value:"California",children:"California"}),n.jsx("option",{value:"Colorado",children:"Colorado"}),n.jsx("option",{value:"Connecticut",children:"Connecticut"}),n.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),n.jsx("option",{value:"Delaware",children:"Delaware"}),n.jsx("option",{value:"Florida",children:"Florida"}),n.jsx("option",{value:"Georgia",children:"Georgia"}),n.jsx("option",{value:"Hawaii",children:"Hawaii"}),n.jsx("option",{value:"Iowa",children:"Iowa"}),n.jsx("option",{value:"Idaho",children:"Idaho"}),n.jsx("option",{value:"Illinois",children:"Illinois"}),n.jsx("option",{value:"Indiana",children:"Indiana"}),n.jsx("option",{value:"Kansas",children:"Kansas"}),n.jsx("option",{value:"Kentucky",children:"Kentucky"}),n.jsx("option",{value:"Louisiana",children:"Louisiana"}),n.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),n.jsx("option",{value:"Maryland",children:"Maryland"}),n.jsx("option",{value:"Michigan",children:"Michigan"}),n.jsx("option",{value:"Minnesota",children:"Minnesota"}),n.jsx("option",{value:"Missouri",children:"Missouri"}),n.jsx("option",{value:"Mississippi",children:"Mississippi"}),n.jsx("option",{value:"Montana",children:"Montana"}),n.jsx("option",{value:"North Carolina",children:"North Carolina"}),n.jsx("option",{value:"North Dakota",children:"North Dakota"}),n.jsx("option",{value:"Nebraska",children:"Nebraska"}),n.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),n.jsx("option",{value:"New Jersey",children:"New Jersey"}),n.jsx("option",{value:"New Mexico",children:"New Mexico"}),n.jsx("option",{value:"Nevada",children:"Nevada"}),n.jsx("option",{value:"New York",children:"New York"}),n.jsx("option",{value:"Ohio",children:"Ohio"}),n.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),n.jsx("option",{value:"Oregon",children:"Oregon"}),n.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),n.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),n.jsx("option",{value:"South Carolina",children:"South Carolina"}),n.jsx("option",{value:"South Dakota",children:"South Dakota"}),n.jsx("option",{value:"Tennessee",children:"Tennessee"}),n.jsx("option",{value:"Texas",children:"Texas"}),n.jsx("option",{value:"Utah",children:"Utah"}),n.jsx("option",{value:"Virginia",children:"Virginia"}),n.jsx("option",{value:"Vermont",children:"Vermont"}),n.jsx("option",{value:"Washington",children:"Washington"}),n.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),n.jsx("option",{value:"West Virginia",children:"West Virginia"}),n.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),n.jsxs("div",{className:"col-md-4",children:["County",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:a.county,onChange:i,required:!0,children:[n.jsx("option",{value:"",children:"Please Select County"}),n.jsx("option",{value:"Abbeville",children:"Abbeville"}),n.jsx("option",{value:"Aiken",children:"Aiken"}),n.jsx("option",{value:"Allendale",children:"Allendale"}),n.jsx("option",{value:"Anderson",children:"Anderson"}),n.jsx("option",{value:"Bamberg",children:"Bamberg"}),n.jsx("option",{value:"Barnwell",children:"Barnwell"}),n.jsx("option",{value:"Beaufort",children:"Beaufort"}),n.jsx("option",{value:"Berkeley",children:"Berkeley"}),n.jsx("option",{value:"Calhoun",children:"Calhoun"}),n.jsx("option",{value:"Charleston",children:"Charleston"}),n.jsx("option",{value:"Cherokee",children:"Cherokee"}),n.jsx("option",{value:"Chester",children:"Chester"}),n.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),n.jsx("option",{value:"Clarendon",children:"Clarendon"}),n.jsx("option",{value:"Colleton",children:"Colleton"}),n.jsx("option",{value:"Darlington",children:"Darlington"}),n.jsx("option",{value:"Dillon",children:"Dillon"}),n.jsx("option",{value:"Dorchester",children:"Dorchester"}),n.jsx("option",{value:"Edgefield",children:"Edgefield"}),n.jsx("option",{value:"Fairfield",children:"Fairfield"}),n.jsx("option",{value:"Florence",children:"Florence"}),n.jsx("option",{value:"Georgetown",children:"Georgetown"}),n.jsx("option",{value:"Greenville",children:"Greenville"}),n.jsx("option",{value:"Greenwood",children:"Greenwood"}),n.jsx("option",{value:"Hampton",children:"Hampton"}),n.jsx("option",{value:"Horry",children:"Horry"}),n.jsx("option",{value:"Jasper",children:"Jasper"}),n.jsx("option",{value:"Kershaw",children:"Kershaw"}),n.jsx("option",{value:"Lancaster",children:"Lancaster"}),n.jsx("option",{value:"Laurens",children:"Laurens"}),n.jsx("option",{value:"Lee",children:"Lee"}),n.jsx("option",{value:"Lexington",children:"Lexington"}),n.jsx("option",{value:"Marion",children:"Marion"}),n.jsx("option",{value:"Marlboro",children:"Marlboro"}),n.jsx("option",{value:"McCormick",children:"McCormick"}),n.jsx("option",{value:"Newberry",children:"Newberry"}),n.jsx("option",{value:"Oconee",children:"Oconee"}),n.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),n.jsx("option",{value:"Pickens",children:"Pickens"}),n.jsx("option",{value:"Richland",children:"Richland"}),n.jsx("option",{value:"Saluda",children:"Saluda"}),n.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),n.jsx("option",{value:"Sumter",children:"Sumter"}),n.jsx("option",{value:"Union",children:"Union"}),n.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),n.jsx("option",{value:"York",children:"York"})]})]}),n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Zip",n.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:a.zip,onChange:i,required:!0})]})}),n.jsxs("div",{className:"col-4",children:[n.jsx("label",{children:"Profile Image"}),n.jsx("div",{className:"mb-3",children:n.jsx(Cu,{type:"file",multiple:!1,onDone:({base64:k})=>o({...a,profileImage:k})})})]}),a.profileImage&&n.jsxs("div",{className:"col-4 mb-3",children:[n.jsx("img",{src:a.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),n.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:l,children:"Delete Image"})]}),n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-grid",children:n.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})})]})})},pb=()=>{var c;const e=lt(),{user:t}=Te(u=>({...u.auth})),{userProperties:r,totalPages:s}=Te(u=>u.property),[a,o]=w.useState(1),i=5;w.useEffect(()=>{e(Qs({userId:t.result.userId,page:a,limit:i}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,a]);const l=u=>{o(u)},d=r.filter(u=>u.fundDetails&&u.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId));return n.jsx(n.Fragment,{children:d.length>0?n.jsxs(n.Fragment,{children:[n.jsx("ul",{children:d.map(u=>n.jsx("li",{children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"col-md-12",children:n.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[n.jsx("div",{className:"col-md-3 mt-1",children:n.jsx("img",{src:u.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),n.jsxs("div",{className:"col-md-6 mt-1",children:[n.jsxs("h5",{children:[" ",n.jsxs(me,{to:`/property/${u.propertyId}`,children:[u.address,"....."]})]}),n.jsx("div",{className:"d-flex flex-row"}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"100% cotton"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"Light weight"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Best finish",n.jsx("br",{})]})]}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"Unique design"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"For men"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Casual",n.jsx("br",{})]})]}),n.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",n.jsx("br",{}),n.jsx("br",{})]})]}),n.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:n.jsxs("div",{className:"d-flex flex-column mt-4",children:[n.jsx(me,{to:`/property/${u.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),n.jsx(me,{to:`/editproperty/${u.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),n.jsxs("div",{className:"pagination",children:[n.jsx("button",{onClick:()=>l(a-1),disabled:a===1,children:"Previous"}),Array.from({length:s},(u,f)=>f+1).map(u=>u===a||u===1||u===s||u>=a-1&&u<=a+1?n.jsx("button",{onClick:()=>l(u),disabled:a===u,children:u},u):u===2||u===s-1?n.jsx("span",{children:"..."},u):null),n.jsx("button",{onClick:()=>l(a+1),disabled:a===s,children:"Next"})]})]}):n.jsx("p",{children:"No active properties found."})})},hb=()=>{var c;const e=lt(),{user:t}=Te(u=>({...u.auth})),{properties:r,totalPages:s}=Te(u=>u.property),[a,o]=w.useState(1),i=5;w.useEffect(()=>{e(ts({page:a,limit:i}))},[e,(c=t==null?void 0:t.result)==null?void 0:c.userId,a]);const l=u=>{o(u)},d=r.filter(u=>u.fundDetails&&u.fundDetails.some(f=>f.fundValue!==void 0&&f.fundPercentage!==void 0&&f.userId===t.result._id));return n.jsx(n.Fragment,{children:d.length>0?n.jsxs(n.Fragment,{children:[n.jsx("ul",{children:d.map(u=>n.jsx("li",{children:n.jsx("div",{className:"container",children:n.jsx("div",{className:"col-md-12",children:n.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[n.jsx("div",{className:"col-md-3 mt-1",children:n.jsx("img",{src:u.images[0].file||St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),n.jsxs("div",{className:"col-md-6 mt-1",children:[n.jsxs("h5",{children:[" ",n.jsxs(me,{to:`/property/${u.propertyId}`,target:"_blank",children:[u.address,"....."]})]}),n.jsx("div",{className:"d-flex flex-row"}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"100% cotton"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"Light weight"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Best finish",n.jsx("br",{})]})]}),n.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[n.jsx("span",{children:"Unique design"}),n.jsx("span",{className:"dot"}),n.jsx("span",{children:"For men"}),n.jsx("span",{className:"dot"}),n.jsxs("span",{children:["Casual",n.jsx("br",{})]})]}),n.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",n.jsx("br",{}),n.jsx("br",{})]})]}),n.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:n.jsxs("div",{className:"d-flex flex-column mt-4",children:[n.jsx(me,{to:`/property/${u.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),n.jsx(me,{to:`/editproperty/${u.propertyId}`,children:n.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},u._id))}),n.jsxs("div",{className:"pagination",children:[n.jsx("button",{onClick:()=>l(a-1),disabled:a===1,children:"Previous"}),Array.from({length:s},(u,f)=>f+1).map(u=>u===a||u===1||u===s||u>=a-1&&u<=a+1?n.jsx("button",{onClick:()=>l(u),disabled:a===u,children:u},u):u===2||u===s-1?n.jsx("span",{children:"..."},u):null),n.jsx("button",{onClick:()=>l(a+1),disabled:a===s,children:"Next"})]})]}):n.jsx("p",{children:"No active properties found."})})},vb=()=>{var i,l;const{user:e}=Te(d=>({...d.auth}));console.log("user",e);const t=lt(),[r,s]=w.useState({userId:((i=e==null?void 0:e.result)==null?void 0:i.userId)||"",fundAmount:((l=e==null?void 0:e.result)==null?void 0:l.fundAmount)||""});w.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 a=d=>{s({...r,[d.target.name]:d.target.value})},o=d=>{if(d.preventDefault(),r.fundAmount<=0)return ae.error("Please enter a valid funding amount greater than 0");t(So({formData:r,toast:ae}))};return n.jsx(n.Fragment,{children:n.jsxs("form",{onSubmit:o,children:[n.jsx("div",{className:"col-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Willing to Invest",n.jsx("input",{type:"text",className:"form-control",placeholder:"Enter Fund Amount",name:"fundAmount",value:r.fundAmount,onChange:a})]})}),n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-grid",children:n.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"submit"})})})]})})},gb=()=>{const[e,t]=w.useState("dashboard"),{user:r}=Te(a=>a.auth),s=()=>{switch(e){case"Userdetails":return n.jsx(mb,{});case"FundToInvest":return n.jsx(vb,{});case"addProperty":return n.jsx(ub,{});case"activeProperties":return n.jsxs("div",{children:[n.jsx("h3",{children:"Active Properties"}),n.jsx(fb,{})]});case"Fundings Received":return n.jsxs("div",{children:[n.jsx("h3",{children:"Fundings Received"}),n.jsx(pb,{})]});case"Offers Submitted":return n.jsxs("div",{children:[n.jsx("h3",{children:"Offers Submitted"}),n.jsx(hb,{})]});case"closedProperties":return n.jsx("p",{children:"These are your closed properties."});default:return n.jsx(n.Fragment,{})}};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsxs("div",{className:"d-flex",style:{margin:"0",padding:"0"},children:[n.jsx("div",{className:"col-md-3 p-1",style:{paddingRight:"2px",margin:"0"},children:n.jsxs("div",{className:"card card1 p-5",children:[n.jsx("img",{className:"img-fluid",src:r.result.profileImage||Ms,alt:"ProfileImage",style:{maxWidth:"250px",maxHeight:"250px"}}),n.jsx("hr",{className:"hline"}),n.jsxs("div",{className:"d-flex flex-column align-items-center",children:[n.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[n.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),n.jsx("span",{children:"Dashboard"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"User Profile"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="FundToInvest"?"active":""}`,onClick:()=>t("FundToInvest"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Fund To Invest"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Add Property"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Active Properties"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="Fundings Received"?"active":""}`,onClick:()=>t("Fundings Received"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Fundings Received"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="Offers Submitted"?"active":""}`,onClick:()=>t("Offers Submitted"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Offers Submitted"})]}),n.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[n.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),n.jsx("span",{children:"Closed Properties"})]})]})]})}),n.jsx("div",{className:"col-md-9 p-1",style:{paddingLeft:"2px",margin:"0"},children:n.jsxs("div",{className:"card card2 p-2",children:[n.jsxs("span",{children:[n.jsx("br",{}),"Welcome to"," ",n.jsx("span",{style:{color:"#067ADC"},children:n.jsxs(me,{to:`/profile/${r.result.userId}`,className:"link-primary text-decoration-none",children:[r.result.title,". ",r.result.firstName," ",r.result.middleName," ",r.result.lastName]})})]}),e==="dashboard"&&n.jsxs(n.Fragment,{children:[n.jsx("br",{}),n.jsxs("div",{className:"banner_taital",children:[n.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",n.jsx("h1",{style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:" investor-borrower interactions, "})]}),n.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",n.jsxs("h1",{className:"services_taital",style:{fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["create automatic workflows"," "]})]}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("br",{})]})]}),n.jsx("br",{}),s()]})})]}),n.jsx(Ze,{})]})};var Jv={exports:{}},xb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yb=xb,jb=yb;function Xv(){}function Zv(){}Zv.resetWarningCache=Xv;var Nb=function(){function e(s,a,o,i,l,d){if(d!==jb){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 r={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:Zv,resetWarningCache:Xv};return r.PropTypes=r,r};Jv.exports=Nb();var Cb=Jv.exports;const Lt=ba(Cb),bb=()=>{const[e,t]=w.useState(3),r=hn();return w.useEffect(()=>{const s=setInterval(()=>{t(a=>--a)},1e3);return e===0&&r("/login"),()=>clearInterval(s)},[e,r]),n.jsx("div",{style:{marginTop:"100px"},children:n.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Ao=({children:e})=>{const{user:t}=Te(r=>({...r.auth}));return t?e:n.jsx(bb,{})};Ao.propTypes={children:Lt.node.isRequired};const wb=()=>{const e=lt(),{id:t,token:r}=gs();return w.useEffect(()=>{e(Eo({id:t,token:r}))},[e,t,r]),n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsxs("div",{className:"contact_section layout_padding",children:[n.jsx("div",{className:"container",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-md-12",children:n.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),n.jsx("div",{className:"container-fluid",children:n.jsx("div",{className:"contact_section_2",children:n.jsxs("div",{className:"row",children:[n.jsxs("div",{className:"col-md-6",children:[n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("h1",{className:"card-title text-center",children:n.jsxs(me,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",n.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),n.jsx("div",{className:"col-md-6 padding_left_15",children:n.jsx("div",{className:"contact_img"})})]})})})]}),n.jsx(Ze,{})]})},Sb=()=>{const[e,t]=w.useState(""),[r,s]=w.useState(""),a="http://67.225.129.127:3002",o=async()=>{try{const i=await he.post(`${a}/users/forgotpassword`,{email:e});s(i.data.message)}catch(i){console.error("Forgot Password Error:",i),s(i.response.data.message)}};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[n.jsx("div",{className:"container-fluid px-0",children:n.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[n.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),n.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:n.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:n.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"mb-4",children:[n.jsx("h2",{className:"h3",children:"Forgot Password"}),n.jsx("hr",{})]})})}),n.jsxs("div",{className:"row gy-3 overflow-hidden",children:[n.jsx("div",{className:"col-12",children:n.jsxs("div",{className:"form-floating mb-3",children:[n.jsx("input",{type:"email",className:"form-control",value:e,onChange:i=>t(i.target.value),placeholder:"name@example.com",required:"required"}),n.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),n.jsxs("div",{className:"col-12",children:[n.jsx("div",{className:"d-grid",children:n.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:o,children:"Reset Password"})}),n.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:r})]})]}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:n.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",n.jsx(me,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12"})})]})})})]})}),n.jsx(Ze,{})]})]})},kb=()=>{const{userId:e,token:t}=gs(),[r,s]=w.useState(""),[a,o]=w.useState(""),[i,l]=w.useState(""),d="http://67.225.129.127:3002",c=async()=>{try{if(!r||r.trim()===""){l("Password not entered"),ae.error("Password not entered");return}const u=await he.post(`${d}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:r});if(r!==a){l("Passwords do not match."),ae.error("Passwords do not match.");return}else l("Password reset successfull"),ae.success(u.data.message)}catch(u){console.error("Reset Password Error:",u)}};return w.useEffect(()=>{ae.dismiss()},[]),n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("section",{className:"card mb-0 vh-100",children:n.jsx("div",{className:"container py-10 h-100",children:n.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:n.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[n.jsx("br",{}),n.jsxs("h2",{children:["Reset Password",n.jsx("hr",{}),n.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),n.jsx("input",{className:"form-control vh-10",type:"password",value:r,onChange:u=>s(u.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),n.jsx("br",{}),n.jsx("input",{className:"form-control",type:"password",value:a,onChange:u=>o(u.target.value),placeholder:"Confirm your new password"}),n.jsx("br",{}),n.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"}),n.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:i})]})})})}),n.jsx(Ze,{})]})},Eb=()=>n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsxs("div",{className:"col-md-18",children:[n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),n.jsxs("h2",{children:["We reqest you to kindly ",n.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",n.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx(Ze,{})]});var eg={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 r(){for(var o="",i=0;i{o.target===e&&(a(),t(o))},r+s)}function Yb(e){e.offsetHeight}const bm=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Gb(e,t){const r=bm(e),s=bm(t);return a=>{r&&r(a),s&&s(a)}}function Ia(e,t){return w.useMemo(()=>Gb(e,t),[e,t])}function Qb(e){return e&&"setState"in e?Ur.findDOMNode(e):e??null}const Jb=I.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:s,onExiting:a,onExited:o,addEndListener:i,children:l,childRef:d,...c},u)=>{const f=w.useRef(null),g=Ia(f,d),b=O=>{g(Qb(O))},x=O=>T=>{O&&f.current&&O(f.current,T)},N=w.useCallback(x(e),[e]),C=w.useCallback(x(t),[t]),p=w.useCallback(x(r),[r]),v=w.useCallback(x(s),[s]),h=w.useCallback(x(a),[a]),y=w.useCallback(x(o),[o]),k=w.useCallback(x(i),[i]);return n.jsx(vn,{ref:u,...c,onEnter:N,onEntered:p,onEntering:C,onExit:v,onExited:y,onExiting:h,addEndListener:k,nodeRef:f,children:typeof l=="function"?(O,T)=>l(O,{...T,ref:b}):I.cloneElement(l,{ref:b})})});function Xb(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e},[e]),t}function Gt(e){const t=Xb(e);return w.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const Zb=e=>w.forwardRef((t,r)=>n.jsx("div",{...t,ref:r,className:ye(t.className,e)}));function ew(){return w.useState(null)}function tw(){const e=w.useRef(!0),t=w.useRef(()=>e.current);return w.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function nw(e){const t=w.useRef(null);return w.useEffect(()=>{t.current=e}),t.current}const rw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",sw=typeof document<"u",wm=sw||rw?w.useLayoutEffect:w.useEffect,aw=["as","disabled"];function ow(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;r[s]=e[s]}return r}function iw(e){return!e||e.trim()==="#"}function sg({tagName:e,disabled:t,href:r,target:s,rel:a,role:o,onClick:i,tabIndex:l=0,type:d}){e||(r!=null||s!=null||a!=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"&&iw(r))&&g.preventDefault(),t){g.stopPropagation();return}i==null||i(g)},f=g=>{g.key===" "&&(g.preventDefault(),u(g))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:l,href:r,target:e==="a"?s:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:u,onKeyDown:f},c]}const lw=w.forwardRef((e,t)=>{let{as:r,disabled:s}=e,a=ow(e,aw);const[o,{tagName:i}]=sg(Object.assign({tagName:r,disabled:s},a));return n.jsx(i,Object.assign({},a,o,{ref:t}))});lw.displayName="Button";function cw(e){return e.code==="Escape"||e.keyCode===27}function ag(){const e=w.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const dw={[kn]:"show",[or]:"show"},bu=w.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:s,...a},o)=>{const i={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},l=w.useCallback((u,f)=>{Yb(u),s==null||s(u,f)},[s]),{major:d}=ag(),c=d>=19?t.props.ref:t.ref;return n.jsx(Jb,{ref:o,addEndListener:Kb,...i,onEnter:l,childRef:c,children:(u,f)=>w.cloneElement(t,{...f,className:ye("fade",e,t.props.className,dw[u],r[u])})})});bu.displayName="Fade";const uw={"aria-label":Lt.string,onClick:Lt.func,variant:Lt.oneOf(["white"])},wu=w.forwardRef(({className:e,variant:t,"aria-label":r="Close",...s},a)=>n.jsx("button",{ref:a,type:"button",className:ye("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...s}));wu.displayName="CloseButton";wu.propTypes=uw;const og=w.forwardRef(({as:e,bsPrefix:t,variant:r="primary",size:s,active:a=!1,disabled:o=!1,className:i,...l},d)=>{const c=Ie(t,"btn"),[u,{tagName:f}]=sg({tagName:e,disabled:o,...l}),g=f;return n.jsx(g,{...u,...l,ref:d,disabled:o,className:ye(i,c,a&&"active",r&&`${c}-${r}`,s&&`${c}-${s}`,l.href&&o&&"disabled")})});og.displayName="Button";function fw(e){const t=w.useRef(e);return t.current=e,t}function ig(e){const t=fw(e);w.useEffect(()=>()=>t.current(),[])}function mw(e,t){return w.Children.toArray(e).some(r=>w.isValidElement(r)&&r.type===t)}function pw({as:e,bsPrefix:t,className:r,...s}){t=Ie(t,"col");const a=Ab(),o=Ib(),i=[],l=[];return a.forEach(d=>{const c=s[d];delete s[d];let u,f,g;typeof c=="object"&&c!=null?{span:u,offset:f,order:g}=c:u=c;const b=d!==o?`-${d}`:"";u&&i.push(u===!0?`${t}${b}`:`${t}${b}-${u}`),g!=null&&l.push(`order${b}-${g}`),f!=null&&l.push(`offset${b}-${f}`)}),[{...s,className:ye(r,...i,...l)},{as:e,bsPrefix:t,spans:i}]}const lg=w.forwardRef((e,t)=>{const[{className:r,...s},{as:a="div",bsPrefix:o,spans:i}]=pw(e);return n.jsx(a,{...s,ref:t,className:ye(r,!i.length&&o)})});lg.displayName="Col";var hw=Function.prototype.bind.call(Function.prototype.call,[].slice);function _r(e,t){return hw(e.querySelectorAll(t))}function Sm(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const vw="data-rr-ui-";function gw(e){return`${vw}${e}`}const cg=w.createContext(xs?window:void 0);cg.Provider;function Su(){return w.useContext(cg)}const xw={type:Lt.string,tooltip:Lt.bool,as:Lt.elementType},Xi=w.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:s=!1,...a},o)=>n.jsx(e,{...a,ref:o,className:ye(t,`${r}-${s?"tooltip":"feedback"}`)}));Xi.displayName="Feedback";Xi.propTypes=xw;const mn=w.createContext({}),ku=w.forwardRef(({id:e,bsPrefix:t,className:r,type:s="checkbox",isValid:a=!1,isInvalid:o=!1,as:i="input",...l},d)=>{const{controlId:c}=w.useContext(mn);return t=Ie(t,"form-check-input"),n.jsx(i,{...l,ref:d,type:s,id:e||c,className:ye(r,t,a&&"is-valid",o&&"is-invalid")})});ku.displayName="FormCheckInput";const gi=w.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...s},a)=>{const{controlId:o}=w.useContext(mn);return e=Ie(e,"form-check-label"),n.jsx("label",{...s,ref:a,htmlFor:r||o,className:ye(t,e)})});gi.displayName="FormCheckLabel";const dg=w.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:s=!1,reverse:a=!1,disabled:o=!1,isValid:i=!1,isInvalid:l=!1,feedbackTooltip:d=!1,feedback:c,feedbackType:u,className:f,style:g,title:b="",type:x="checkbox",label:N,children:C,as:p="input",...v},h)=>{t=Ie(t,"form-check"),r=Ie(r,"form-switch");const{controlId:y}=w.useContext(mn),k=w.useMemo(()=>({controlId:e||y}),[y,e]),O=!C&&N!=null&&N!==!1||mw(C,gi),T=n.jsx(ku,{...v,type:x==="switch"?"checkbox":x,ref:h,isValid:i,isInvalid:l,disabled:o,as:p});return n.jsx(mn.Provider,{value:k,children:n.jsx("div",{style:g,className:ye(f,O&&t,s&&`${t}-inline`,a&&`${t}-reverse`,x==="switch"&&r),children:C||n.jsxs(n.Fragment,{children:[T,O&&n.jsx(gi,{title:b,children:N}),c&&n.jsx(Xi,{type:u,tooltip:d,children:c})]})})})});dg.displayName="FormCheck";const xi=Object.assign(dg,{Input:ku,Label:gi}),ug=w.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:s,id:a,className:o,isValid:i=!1,isInvalid:l=!1,plaintext:d,readOnly:c,as:u="input",...f},g)=>{const{controlId:b}=w.useContext(mn);return e=Ie(e,"form-control"),n.jsx(u,{...f,type:t,size:s,ref:g,readOnly:c,id:a||b,className:ye(o,d?`${e}-plaintext`:e,r&&`${e}-${r}`,t==="color"&&`${e}-color`,i&&"is-valid",l&&"is-invalid")})});ug.displayName="FormControl";const yw=Object.assign(ug,{Feedback:Xi}),fg=w.forwardRef(({className:e,bsPrefix:t,as:r="div",...s},a)=>(t=Ie(t,"form-floating"),n.jsx(r,{ref:a,className:ye(e,t),...s})));fg.displayName="FormFloating";const Eu=w.forwardRef(({controlId:e,as:t="div",...r},s)=>{const a=w.useMemo(()=>({controlId:e}),[e]);return n.jsx(mn.Provider,{value:a,children:n.jsx(t,{...r,ref:s})})});Eu.displayName="FormGroup";const mg=w.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:s=!1,className:a,htmlFor:o,...i},l)=>{const{controlId:d}=w.useContext(mn);t=Ie(t,"form-label");let c="col-form-label";typeof r=="string"&&(c=`${c} ${c}-${r}`);const u=ye(a,t,s&&"visually-hidden",r&&c);return o=o||d,r?n.jsx(lg,{ref:l,as:"label",className:u,htmlFor:o,...i}):n.jsx(e,{ref:l,className:u,htmlFor:o,...i})});mg.displayName="FormLabel";const pg=w.forwardRef(({bsPrefix:e,className:t,id:r,...s},a)=>{const{controlId:o}=w.useContext(mn);return e=Ie(e,"form-range"),n.jsx("input",{...s,type:"range",ref:a,className:ye(t,e),id:r||o})});pg.displayName="FormRange";const hg=w.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:s,isValid:a=!1,isInvalid:o=!1,id:i,...l},d)=>{const{controlId:c}=w.useContext(mn);return e=Ie(e,"form-select"),n.jsx("select",{...l,size:r,ref:d,className:ye(s,e,t&&`${e}-${t}`,a&&"is-valid",o&&"is-invalid"),id:i||c})});hg.displayName="FormSelect";const vg=w.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:s,...a},o)=>(e=Ie(e,"form-text"),n.jsx(r,{...a,ref:o,className:ye(t,e,s&&"text-muted")})));vg.displayName="FormText";const gg=w.forwardRef((e,t)=>n.jsx(xi,{...e,ref:t,type:"switch"}));gg.displayName="Switch";const jw=Object.assign(gg,{Input:xi.Input,Label:xi.Label}),xg=w.forwardRef(({bsPrefix:e,className:t,children:r,controlId:s,label:a,...o},i)=>(e=Ie(e,"form-floating"),n.jsxs(Eu,{ref:i,className:ye(t,e),controlId:s,...o,children:[r,n.jsx("label",{htmlFor:s,children:a})]})));xg.displayName="FloatingLabel";const Nw={_ref:Lt.any,validated:Lt.bool,as:Lt.elementType},Pu=w.forwardRef(({className:e,validated:t,as:r="form",...s},a)=>n.jsx(r,{...s,ref:a,className:ye(e,t&&"was-validated")}));Pu.displayName="Form";Pu.propTypes=Nw;const er=Object.assign(Pu,{Group:Eu,Control:yw,Floating:fg,Check:xi,Switch:jw,Label:mg,Text:vg,Range:pg,Select:hg,FloatingLabel:xg});var ao;function km(e){if((!ao&&ao!==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),ao=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ao}function Zl(e){e===void 0&&(e=Ji());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function Cw(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Em=gw("modal-open");class _u{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:s=!1}={}){this.handleContainerOverflow=r,this.isRTL=s,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return Cw(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},s=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[s]:a.style[s]},t.scrollBarWidth&&(r[s]=`${parseInt(hr(a,s)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(Em,""),hr(a,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(Em),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,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 ec=(e,t)=>xs?e==null?(t||Ji()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function bw(e,t){const r=Su(),[s,a]=w.useState(()=>ec(e,r==null?void 0:r.document));if(!s){const o=ec(e);o&&a(o)}return w.useEffect(()=>{},[t,s]),w.useEffect(()=>{const o=ec(e);o!==s&&a(o)},[e,s]),s}function ww({children:e,in:t,onExited:r,mountOnEnter:s,unmountOnExit:a}){const o=w.useRef(null),i=w.useRef(t),l=Gt(r);w.useEffect(()=>{t?i.current=!0:l(o.current)},[t,l]);const d=Ia(o,e.ref),c=w.cloneElement(e,{ref:d});return t?c:a||!i.current&&s?null:c}const Sw=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function kw(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;r[s]=e[s]}return r}function Ew(e){let{onEnter:t,onEntering:r,onEntered:s,onExit:a,onExiting:o,onExited:i,addEndListener:l,children:d}=e,c=kw(e,Sw);const{major:u}=ag(),f=u>=19?d.props.ref:d.ref,g=w.useRef(null),b=Ia(g,typeof d=="function"?null:f),x=O=>T=>{O&&g.current&&O(g.current,T)},N=w.useCallback(x(t),[t]),C=w.useCallback(x(r),[r]),p=w.useCallback(x(s),[s]),v=w.useCallback(x(a),[a]),h=w.useCallback(x(o),[o]),y=w.useCallback(x(i),[i]),k=w.useCallback(x(l),[l]);return Object.assign({},c,{nodeRef:g},t&&{onEnter:N},r&&{onEntering:C},s&&{onEntered:p},a&&{onExit:v},o&&{onExiting:h},i&&{onExited:y},l&&{addEndListener:k},{children:typeof d=="function"?(O,T)=>d(O,Object.assign({},T,{ref:b})):w.cloneElement(d,{ref:b})})}const Pw=["component"];function _w(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;r[s]=e[s]}return r}const Ow=w.forwardRef((e,t)=>{let{component:r}=e,s=_w(e,Pw);const a=Ew(s);return n.jsx(r,Object.assign({ref:t},a))});function Tw({in:e,onTransition:t}){const r=w.useRef(null),s=w.useRef(!0),a=Gt(t);return wm(()=>{if(!r.current)return;let o=!1;return a({in:e,element:r.current,initial:s.current,isStale:()=>o}),()=>{o=!0}},[e,a]),wm(()=>(s.current=!1,()=>{s.current=!0}),[]),r}function Rw({children:e,in:t,onExited:r,onEntered:s,transition:a}){const[o,i]=w.useState(!t);t&&o&&i(!1);const l=Tw({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?s==null||s(c.element,c.initial):(i(!0),r==null||r(c.element)))};Promise.resolve(a(c)).then(u,f=>{throw c.in||i(!0),f})}}),d=Ia(l,e.ref);return o&&!t?null:w.cloneElement(e,{ref:d})}function Pm(e,t,r){return e?n.jsx(Ow,Object.assign({},r,{component:e})):t?n.jsx(Rw,Object.assign({},r,{transition:t})):n.jsx(ww,Object.assign({},r))}const Aw=["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 Iw(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;r[s]=e[s]}return r}let tc;function Dw(e){return tc||(tc=new _u({ownerDocument:e==null?void 0:e.document})),tc}function Fw(e){const t=Su(),r=e||Dw(t),s=w.useRef({dialog:null,backdrop:null});return Object.assign(s.current,{add:()=>r.add(s.current),remove:()=>r.remove(s.current),isTopModal:()=>r.isTopModal(s.current),setDialogRef:w.useCallback(a=>{s.current.dialog=a},[]),setBackdropRef:w.useCallback(a=>{s.current.backdrop=a},[])})}const yg=w.forwardRef((e,t)=>{let{show:r=!1,role:s="dialog",className:a,style:o,children:i,backdrop:l=!0,keyboard:d=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:f,runTransition:g,backdropTransition:b,runBackdropTransition:x,autoFocus:N=!0,enforceFocus:C=!0,restoreFocus:p=!0,restoreFocusOptions:v,renderDialog:h,renderBackdrop:y=pe=>n.jsx("div",Object.assign({},pe)),manager:k,container:O,onShow:T,onHide:_=()=>{},onExit:F,onExited:z,onExiting:H,onEnter:te,onEntering:Q,onEntered:Z}=e,D=Iw(e,Aw);const U=Su(),G=bw(O),R=Fw(k),A=tw(),B=nw(r),[L,W]=w.useState(!r),K=w.useRef(null);w.useImperativeHandle(t,()=>R,[R]),xs&&!B&&r&&(K.current=Zl(U==null?void 0:U.document)),r&&L&&W(!1);const Y=Gt(()=>{if(R.add(),ce.current=vi(document,"keydown",se),ie.current=vi(document,"focus",()=>setTimeout(re),!0),T&&T(),N){var pe,$t;const Ke=Zl((pe=($t=R.dialog)==null?void 0:$t.ownerDocument)!=null?pe:U==null?void 0:U.document);R.dialog&&Ke&&!Sm(R.dialog,Ke)&&(K.current=Ke,R.dialog.focus())}}),ee=Gt(()=>{if(R.remove(),ce.current==null||ce.current(),ie.current==null||ie.current(),p){var pe;(pe=K.current)==null||pe.focus==null||pe.focus(v),K.current=null}});w.useEffect(()=>{!r||!G||Y()},[r,G,Y]),w.useEffect(()=>{L&&ee()},[L,ee]),ig(()=>{ee()});const re=Gt(()=>{if(!C||!A()||!R.isTopModal())return;const pe=Zl(U==null?void 0:U.document);R.dialog&&pe&&!Sm(R.dialog,pe)&&R.dialog.focus()}),ne=Gt(pe=>{pe.target===pe.currentTarget&&(c==null||c(pe),l===!0&&_())}),se=Gt(pe=>{d&&cw(pe)&&R.isTopModal()&&(u==null||u(pe),pe.defaultPrevented||_())}),ie=w.useRef(),ce=w.useRef(),ge=(...pe)=>{W(!0),z==null||z(...pe)};if(!G)return null;const Me=Object.assign({role:s,ref:R.setDialogRef,"aria-modal":s==="dialog"?!0:void 0},D,{style:o,className:a,tabIndex:-1});let Nt=h?h(Me):n.jsx("div",Object.assign({},Me,{children:w.cloneElement(i,{role:"document"})}));Nt=Pm(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:F,onExiting:H,onExited:ge,onEnter:te,onEntering:Q,onEntered:Z,children:Nt});let zt=null;return l&&(zt=y({ref:R.setBackdropRef,onClick:ne}),zt=Pm(b,x,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:zt})),n.jsx(n.Fragment,{children:Ur.createPortal(n.jsxs(n.Fragment,{children:[zt,Nt]}),G)})});yg.displayName="Modal";const Lw=Object.assign(yg,{Manager:_u});function Mw(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Bw(e,t){e.classList?e.classList.add(t):Mw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _m(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function zw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_m(e.className,t):e.setAttribute("class",_m(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 $w extends _u{adjustAndStore(t,r,s){const a=r.style[t];r.dataset[t]=a,hr(r,{[t]:`${parseFloat(hr(r,t))+s}px`})}restore(t,r){const s=r.dataset[t];s!==void 0&&(delete r.dataset[t],hr(r,{[t]:s}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(Bw(r,"modal-open"),!t.scrollBarWidth)return;const s=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";_r(r,Or.FIXED_CONTENT).forEach(o=>this.adjustAndStore(s,o,t.scrollBarWidth)),_r(r,Or.STICKY_CONTENT).forEach(o=>this.adjustAndStore(a,o,-t.scrollBarWidth)),_r(r,Or.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(a,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();zw(r,"modal-open");const s=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";_r(r,Or.FIXED_CONTENT).forEach(o=>this.restore(s,o)),_r(r,Or.STICKY_CONTENT).forEach(o=>this.restore(a,o)),_r(r,Or.NAVBAR_TOGGLER).forEach(o=>this.restore(a,o))}}let nc;function Ww(e){return nc||(nc=new $w(e)),nc}const jg=w.forwardRef(({className:e,bsPrefix:t,as:r="div",...s},a)=>(t=Ie(t,"modal-body"),n.jsx(r,{ref:a,className:ye(e,t),...s})));jg.displayName="ModalBody";const Ng=w.createContext({onHide(){}}),Ou=w.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:s,size:a,fullscreen:o,children:i,scrollable:l,...d},c)=>{e=Ie(e,"modal");const u=`${e}-dialog`,f=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return n.jsx("div",{...d,ref:c,className:ye(u,t,a&&`${e}-${a}`,s&&`${u}-centered`,l&&`${u}-scrollable`,o&&f),children:n.jsx("div",{className:ye(`${e}-content`,r),children:i})})});Ou.displayName="ModalDialog";const Cg=w.forwardRef(({className:e,bsPrefix:t,as:r="div",...s},a)=>(t=Ie(t,"modal-footer"),n.jsx(r,{ref:a,className:ye(e,t),...s})));Cg.displayName="ModalFooter";const Uw=w.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:s,children:a,...o},i)=>{const l=w.useContext(Ng),d=Gt(()=>{l==null||l.onHide(),s==null||s()});return n.jsxs("div",{ref:i,...o,children:[a,r&&n.jsx(wu,{"aria-label":e,variant:t,onClick:d})]})}),bg=w.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:s=!1,...a},o)=>(e=Ie(e,"modal-header"),n.jsx(Uw,{ref:o,...a,className:ye(t,e),closeLabel:r,closeButton:s})));bg.displayName="ModalHeader";const qw=Zb("h4"),wg=w.forwardRef(({className:e,bsPrefix:t,as:r=qw,...s},a)=>(t=Ie(t,"modal-title"),n.jsx(r,{ref:a,className:ye(e,t),...s})));wg.displayName="ModalTitle";function Vw(e){return n.jsx(bu,{...e,timeout:null})}function Hw(e){return n.jsx(bu,{...e,timeout:null})}const Sg=w.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:s,contentClassName:a,children:o,dialogAs:i=Ou,"data-bs-theme":l,"aria-labelledby":d,"aria-describedby":c,"aria-label":u,show:f=!1,animation:g=!0,backdrop:b=!0,keyboard:x=!0,onEscapeKeyDown:N,onShow:C,onHide:p,container:v,autoFocus:h=!0,enforceFocus:y=!0,restoreFocus:k=!0,restoreFocusOptions:O,onEntered:T,onExit:_,onExiting:F,onEnter:z,onEntering:H,onExited:te,backdropClassName:Q,manager:Z,...D},U)=>{const[G,R]=w.useState({}),[A,B]=w.useState(!1),L=w.useRef(!1),W=w.useRef(!1),K=w.useRef(null),[Y,ee]=ew(),re=Ia(U,ee),ne=Gt(p),se=Db();e=Ie(e,"modal");const ie=w.useMemo(()=>({onHide:ne}),[ne]);function ce(){return Z||Ww({isRTL:se})}function ge(ue){if(!xs)return;const qt=ce().getScrollbarWidth()>0,xn=ue.scrollHeight>Ji(ue).documentElement.clientHeight;R({paddingRight:qt&&!xn?km():void 0,paddingLeft:!qt&&xn?km():void 0})}const Me=Gt(()=>{Y&&ge(Y.dialog)});ig(()=>{xd(window,"resize",Me),K.current==null||K.current()});const Nt=()=>{L.current=!0},zt=ue=>{L.current&&Y&&ue.target===Y.dialog&&(W.current=!0),L.current=!1},pe=()=>{B(!0),K.current=rg(Y.dialog,()=>{B(!1)})},$t=ue=>{ue.target===ue.currentTarget&&pe()},Ke=ue=>{if(b==="static"){$t(ue);return}if(W.current||ue.target!==ue.currentTarget){W.current=!1;return}p==null||p()},Qn=ue=>{x?N==null||N(ue):(ue.preventDefault(),b==="static"&&pe())},Zt=(ue,qt)=>{ue&&ge(ue),z==null||z(ue,qt)},ys=ue=>{K.current==null||K.current(),_==null||_(ue)},js=(ue,qt)=>{H==null||H(ue,qt),ng(window,"resize",Me)},Jn=ue=>{ue&&(ue.style.display=""),te==null||te(ue),xd(window,"resize",Me)},Wt=w.useCallback(ue=>n.jsx("div",{...ue,className:ye(`${e}-backdrop`,Q,!g&&"show")}),[g,Q,e]),gn={...r,...G};gn.display="block";const Ut=ue=>n.jsx("div",{role:"dialog",...ue,style:gn,className:ye(t,e,A&&`${e}-static`,!g&&"show"),onClick:b?Ke:void 0,onMouseUp:zt,"data-bs-theme":l,"aria-label":u,"aria-labelledby":d,"aria-describedby":c,children:n.jsx(i,{...D,onMouseDown:Nt,className:s,contentClassName:a,children:o})});return n.jsx(Ng.Provider,{value:ie,children:n.jsx(Lw,{show:f,ref:re,backdrop:b,container:v,keyboard:!0,autoFocus:h,enforceFocus:y,restoreFocus:k,restoreFocusOptions:O,onEscapeKeyDown:Qn,onShow:C,onHide:p,onEnter:Zt,onEntering:js,onEntered:T,onExit:ys,onExiting:F,onExited:Jn,manager:ce(),transition:g?Vw:void 0,backdropTransition:g?Hw:void 0,renderBackdrop:Wt,renderDialog:Ut})})});Sg.displayName="Modal";const oo=Object.assign(Sg,{Body:jg,Header:bg,Title:wg,Footer:Cg,Dialog:Ou,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Kw=()=>{var O;const{id:e}=gs(),t=lt(),{selectedProperty:r,status:s,error:a}=Te(T=>T.property),{user:o}=Te(T=>({...T.auth})),[i,l]=w.useState("propertydetails"),[d,c]=w.useState(!0),[u,f]=w.useState(!1),[g,b]=w.useState({fundValue:"0",fundPercentage:"0"});if(w.useEffect(()=>{e&&t(Js(e))},[e,t]),w.useEffect(()=>{s==="succeeded"&&c(!1)},[s]),s==="failed")return n.jsxs("p",{children:["Error loading property: ",a]});const x=((O=o==null?void 0:o.result)==null?void 0:O.userId)===(r==null?void 0:r.userId),N=!!o,C=()=>{f(!0)},p=()=>{f(!1)},v=T=>{const{name:_,value:F}=T.target;b({...g,[_]:F})},h=T=>{if(T.preventDefault(),g.fundValue<=0)return ae.error("Please enter a valid funding amount greater than 0");if(g.fundValue>((r==null?void 0:r.totalCoststoBuyAtoB)||0))return ae.error(`Funding amount cannot exceed ${(r==null?void 0:r.totalCoststoBuyAtoB)||"N/A"}`);if(g.fundPercentage<=0||g.fundPercentage>100)return ae.error("Please enter a valid interest percentage (0-100)");const _={fundValue:Number(g.fundValue),fundPercentage:Number(g.fundPercentage),userId:o.result._id};t(Oo({id:e,fundDetails:_,toast:ae})),p()},y=T=>{const _=JSON.parse(localStorage.getItem("profile")).token;t(To({id:e,fundDetailId:T,token:_}))},k=T=>{window.confirm("Are you sure you want to delete this?")&&y(T)};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("br",{}),n.jsxs("div",{children:[n.jsxs("ul",{className:"nav nav-tabs",role:"tablist",style:{borderRadius:"12px 12px 0 0"},children:[n.jsx("li",{role:"presentation",className:i==="propertydetails"?"active tab":"tab",children:n.jsx("a",{onClick:()=>l("propertydetails"),role:"tab",children:"Property Details"})}),n.jsx("li",{role:"presentation",className:i==="Funding Details"?"active tab":"tab",children:n.jsx("a",{onClick:()=>l("Funding Details"),role:"tab",children:"Funding Details"})}),n.jsx("li",{role:"presentation",className:i==="Accounting"?"active tab":"tab",children:n.jsx("a",{onClick:()=>l("Accounting"),role:"tab",children:"Accounting"})})]}),n.jsxs("div",{children:[i==="propertydetails"&&n.jsx("div",{role:"tabpanel",className:"card container tab-pane active col-12",children:n.jsx("div",{className:"container col-12",children:d?n.jsx("div",{className:"loader",children:"Loading..."}):r?n.jsx("div",{className:"py-3 py-md-5 bg-light",children:n.jsxs("div",{className:"card-header bg-white",children:[n.jsxs("div",{className:"row",children:[n.jsxs("div",{className:"col-md-5 mt-3",children:[n.jsx("div",{children:r.images&&r.images[0]?n.jsx("img",{src:r.images[0].file||St,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}}):n.jsx("img",{src:St,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"400px",maxHeight:"400px"}})}),n.jsx("br",{}),n.jsxs("div",{className:"label-stock border",children:[n.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Funding Required:"," ",n.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[n.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(r==null?void 0:r.totalCoststoBuyAtoB)||"N/A"]})]}),n.jsxs("p",{style:{color:"#fda417",fontSize:"30px",padding:"10px",fontWeight:"normal"},children:["Net profit:"," ",n.jsxs("span",{style:{color:"#000000",fontSize:"25px"},children:[n.jsx("span",{className:"fa fa-dollar",style:{color:"#F74B02"}})," ",(r==null?void 0:r.NetProfit)||"N/A"]})]})]}),n.jsx("br",{}),n.jsxs("button",{className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:x||!N,onClick:x||!N?null:C,children:[n.jsx("span",{style:{fontSize:"25px",fontWeight:"normal"},children:"Willing to Invest/Fund"})," "]}),x&&n.jsx("span",{style:{color:"red",marginTop:"10px"},children:"You cannot invest in your own property."}),!N&&n.jsx("span",{style:{color:"red",marginTop:"10px"},children:"Please login to invest."})]}),n.jsx("div",{className:"col-md-7 mt-3",children:n.jsxs("div",{className:"product-view",children:[n.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[r.address,n.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),n.jsx("hr",{}),n.jsxs("span",{className:"product-path",children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["City:"," "]})," ",r.city," "," /"," "," "," ",n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",r.county," "," ","/"," "," ",n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",r.state," "," ","/ "," "," ",n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["Zipcode:"," "]})," ",r.zip," "]}),n.jsx("br",{})," ",n.jsx("br",{}),n.jsxs("div",{children:[n.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),r.totallivingsqft,n.jsx("p",{}),n.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",r.costpersqft,"/sqft",n.jsx("p",{}),n.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),r.yearBuild]}),n.jsxs("div",{className:"mt-3 card bg-white label-stock border",children:[n.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),n.jsx("span",{children:r.legal?r.legal:"No data available"})]})]})})]}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-md-12 mt-3",children:n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header bg-white",children:n.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),n.jsx("div",{className:"card-body",children:n.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."})})]})})})]})}):n.jsx("p",{children:"No property found."})})}),i==="Funding Details"&&n.jsx("div",{children:i==="Funding Details"&&n.jsx("div",{className:"tab-pane active",children:n.jsx("div",{children:r.fundDetails.length===0?n.jsx("p",{children:"No fund details available."}):n.jsx("ul",{style:{listStyleType:"none",padding:0},children:r.fundDetails.map((T,_)=>{var F,z;return n.jsx("li",{className:"d-flex align-items-center",children:n.jsxs("div",{className:"d-flex align-items-center",children:[n.jsxs("span",{children:["Total Fund Value: $ ",T.fundValue,", Interest Percentage: ",T.fundPercentage,"%"]}),n.jsx("br",{})," ",n.jsx("br",{}),((F=o==null?void 0:o.result)==null?void 0:F.userId)&&((z=o==null?void 0:o.result)==null?void 0:z._id)===T.userId&&n.jsx("button",{className:"btn btn-danger ms-2",onClick:()=>k(T._id),style:{padding:"2px 10px",marginLeft:"8px"},children:"x"})]})},_)})})})})}),i==="Accounting"&&n.jsx("div",{})]})]}),n.jsx(Ze,{}),n.jsxs(oo,{show:u,onHide:p,children:[n.jsx(oo.Header,{closeButton:!0,children:n.jsx(oo.Title,{children:"Investment/Funding Details"})}),n.jsx(oo.Body,{children:n.jsxs(er,{onSubmit:h,children:[n.jsxs(er.Group,{children:[n.jsx(er.Label,{children:"Total Fund Value"}),n.jsx(er.Control,{type:"number",id:"fundValue",name:"fundValue",value:g.fundValue,onChange:v})]}),n.jsx("br",{}),n.jsxs(er.Group,{children:[n.jsx(er.Label,{children:"Interest Percentage"}),n.jsx(er.Control,{type:"number",id:"fundPercentage",name:"fundPercentage",value:g.fundPercentage,onChange:v})]}),n.jsx(og,{variant:"primary",type:"submit",children:"Submit"})]})})]})]})},Yw=()=>{const[e,t]=w.useState([]),[r,s]=w.useState(0),[a,o]=w.useState(0),[i]=w.useState(10),[l,d]=w.useState(""),[c,u]=w.useState(!1),[f,g]=w.useState(!1),b=async()=>{u(!0),g(!1);try{const p=await he.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:i,offset:a*i,search:l},headers:{"Cache-Control":"no-cache"}});t(p.data.data),s(p.data.totalRecords),l.trim()&&g(!0)}catch(p){console.log("Error fetching data:",p)}finally{u(!1)}},x=p=>{d(p.target.value),p.target.value.trim()===""&&(o(0),t([]),s(0),g(!1),b())},N=p=>{p.key==="Enter"&&(p.preventDefault(),b())};w.useEffect(()=>{b()},[l,a]);const C=Math.ceil(r/i);return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsxs("div",{className:"container col-12",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-lg-12 card-margin col-12",children:n.jsx("div",{className:"card search-form col-12",children:n.jsx("div",{className:"card-body p-0",children:n.jsx("form",{id:"search-form",children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"row no-gutters",children:n.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:n.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:l,onChange:x,onKeyDown:N})})})})})})})})})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"card card-margin",children:n.jsxs("div",{className:"card-body",children:[f&&e.length>0&&n.jsxs("div",{children:["Showing search results for the keyword"," ",n.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:l})]}),n.jsx("div",{className:"table-responsive",children:n.jsxs("table",{className:"table widget-26",children:[n.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:n.jsxs("tr",{children:[n.jsx("th",{children:"Details"}),n.jsx("th",{children:"Total Living Square Foot"}),n.jsx("th",{children:"Year Built"}),n.jsx("th",{children:"Cost per Square Foot"})]})}),n.jsx("tbody",{children:e.length>0?e.map((p,v)=>n.jsxs("tr",{children:[n.jsx("td",{children:n.jsxs("div",{className:"widget-26-job-title",children:[n.jsx(me,{to:`/properties/${p.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:p.address}),n.jsxs("p",{className:"m-0",children:[n.jsxs("span",{className:"employer-name",children:[n.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),p.city,", ",p.county,",",p.state]}),n.jsxs("p",{className:"text-muted m-0",children:["House Id: ",p.house_id]})]})]})}),n.jsx("td",{children:n.jsx("div",{className:"widget-26-job-info",children:n.jsx("p",{className:"m-0",children:p.total_living_sqft})})}),n.jsx("td",{children:n.jsx("div",{className:"widget-26-job-info",children:n.jsx("p",{className:"m-0",children:p.year_built})})}),n.jsx("td",{children:n.jsxs("div",{className:"widget-26-job-salary",children:["$ ",p.cost_per_sqft,"/sqft"]})})]},v)):n.jsx("tr",{children:n.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),n.jsxs("div",{children:[n.jsx("button",{onClick:()=>o(a-1),disabled:a===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),n.jsxs("span",{children:[" ","Page ",a+1," of ",C," "]}),n.jsx("button",{onClick:()=>o(a+1),disabled:a+1>=C||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),n.jsx(Ze,{})]})},Gw=()=>n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),"This page will show the list of services offered by the company",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx(Ze,{})]}),Qw=()=>{const{house_id:e}=gs();console.log("house_id",e);const[t,r]=w.useState(null),[s,a]=w.useState(!0);return w.useEffect(()=>{(async()=>{try{const i=await he.get(`http://67.225.129.127:3002/mysql/properties/${e}`);r(i.data)}catch(i){console.log("Error fetching property details:",i)}finally{a(!1)}})()},[e]),n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("div",{className:"container col-12",children:s?n.jsx("div",{className:"loader",children:"Loading..."}):t?n.jsx("div",{className:"py-3 py-md-5 bg-light",children:n.jsxs("div",{className:"card-header bg-white",children:[n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-md-5 mt-3",children:n.jsx("div",{className:"bg-white border",children:n.jsx("img",{src:St,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),n.jsx("div",{className:"col-md-7 mt-3",children:n.jsxs("div",{className:"product-view",children:[n.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,n.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),n.jsx("hr",{}),n.jsxs("p",{className:"product-path",children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",n.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",n.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),n.jsxs("div",{children:[n.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,n.jsx("p",{}),n.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",n.jsx("p",{}),n.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),n.jsxs("div",{className:"mt-3 card bg-white",children:[n.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),n.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-md-12 mt-3",children:n.jsxs("div",{className:"card",children:[n.jsx("div",{className:"card-header bg-white",children:n.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),n.jsx("div",{className:"card-body",children:n.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."})})]})})})]})}):n.jsx("p",{children:"No property details found."})}),n.jsx(Ze,{})]})},Jw=()=>{const{id:e}=gs(),t=lt(),[r,s]=w.useState("propertydetails"),a=()=>{r==="propertydetails"&&s("Images"),r==="Images"&&s("Accounting")},o=()=>{r==="Images"&&s("propertydetails"),r==="Accounting"&&s("Images")},{selectedProperty:i}=Te(E=>E.property),[l,d]=w.useState({address:"",city:"",state:"",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"}),c=[1,2,3,4,5,6,7,8,9,10];w.useEffect(()=>{t(Js(e))},[t,e]),w.useEffect(()=>{i&&d({address:i.address||"",city:i.city||"",state:i.state||"",zip:i.zip||"",parcel:i.parcel||"",subdivision:i.subdivision||"",legal:i.legal||"",costpersqft:i.costpersqft||"",propertyType:i.propertyType||"",lotacres:i.lotacres||"",yearBuild:i.yearBuild||"",totallivingsqft:i.totallivingsqft||"",beds:i.beds||"",baths:i.baths||"",stories:i.stories||"",garage:i.garage||"",garagesqft:i.garagesqft||"",poolspa:i.poolspa||"",fireplaces:i.fireplaces||"",ac:i.ac||"",heating:i.heating||"",buildingstyle:i.buildingstyle||"",sitevacant:i.sitevacant||"",extwall:i.extwall||"",roofing:i.roofing||"",totalSqft:i.totalSqft||"",renovationRisk:i.renovationRisk,closeDateAtoB:i.closeDateAtoB,closeDateBtoC:i.closeDateBtoC,purchaseCost:i.purchaseCost,costPaidAtoB:i.costPaidAtoB,totalPurchaseCosts:i.totalPurchaseCosts,credits:i.credits,totalPurchaseCostsaftercredits:i.totalPurchaseCostsaftercredits,cashAdjustments:i.cashAdjustments,totalcashrequiredonsettlement:i.totalcashrequiredonsettlement,incidentalCost:i.incidentalCost,carryCosts:i.carryCosts,renovationCost:i.renovationCost,sellingPriceBtoC:i.sellingPriceBtoC,costPaidOutofClosing:i.costPaidOutofClosing,totalCosttoSellBtoC:i.totalCosttoSellBtoC,grossproceedsperHUD:i.grossproceedsperHUD,adjustments:i.adjustments,fundsavailablefordistribution:i.fundsavailablefordistribution,incomestatement:i.incomestatement,fundspriortoclosing:i.fundspriortoclosing,shorttermrental:i.shorttermrental,OtherIncome:i.OtherIncome,InsuranceClaim:i.InsuranceClaim,LongTermRental:i.LongTermRental,netprofitbeforefinancingcosts:i.netprofitbeforefinancingcosts,FinancingCostClosingCost:i.FinancingCostClosingCost,propertyTaxInfo:i.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:i.images||[{title:"",file:""}],googleMapLink:i.googleMapLink,rateofreturn:i.rateofreturn})},[i]);const u=E=>{d({...l,[E.target.name]:E.target.value})},f=(E,P)=>{const{name:m,value:j}=E.target,S=[...l.propertyTaxInfo],M={...S[P]};M[m]=j,S[P]=M,d({...l,propertyTaxInfo:S})},g=E=>{E.preventDefault();const P=z(),m=D(),j=U(),S=L(),M=W(),q=ne(),J=Me(),le=Ke(),La=Qn(),nl=Zt(),rl=gn(),sl=Ut(),al=Ut(),ol=Ns(),il=Fa(),ll=Zn(),cl=en(),dl=kr(),ul=bs(),fl={...l,totalPurchaseCosts:P.toFixed(2),totalcredits:m.toFixed(2),totalPurchaseCostsaftercredits:j.toFixed(2),totalcashAdjustments:S.toFixed(2),totalcashrequiredonsettlement:M.toFixed(2),totalincidentalCost:q.toFixed(2),totalcarryCosts:J.toFixed(2),totalrenovationCost:le.toFixed(2),totalRenovationsandHoldingCost:La.toFixed(2),totalCoststoBuyAtoB:nl.toFixed(2),totalcostPaidOutofClosing:rl.toFixed(2),totalCosttoSellBtoC:sl.toFixed(2),grossproceedsperHUD:al.toFixed(2),totaladjustments:ol.toFixed(2),fundsavailablefordistribution:il.toFixed(2),totalincomestatement:ll.toFixed(2),netBtoCsalevalue:cl.toFixed(2),netprofitbeforefinancingcosts:dl.toFixed(2),netprofit:ul.toFixed(2)};t(_o({id:e,propertyData:fl}))},b=()=>{d({...l,propertyTaxInfo:[...l.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},x=E=>{const P=l.propertyTaxInfo.filter((m,j)=>j!==E);d({...l,propertyTaxInfo:P})},N=(E,P)=>{const m=[...l.images];m[P]={...m[P],file:E.base64},d({...l,images:m})},C=()=>{d({...l,images:[...l.images,{title:"",file:""}]})},p=E=>{const P=l.images.filter((m,j)=>j!==E);d({...l,images:P})},v=(E,P)=>{const m=[...l.images];m[E]={...m[E],title:P.target.value},d({...l,images:m})};w.useEffect(()=>{k(l.closeDateAtoB,l.closeDateBtoC)},[l.closeDateAtoB,l.closeDateBtoC]);const[h,y]=w.useState("0 days"),k=(E,P)=>{if(E&&P){const m=new Date(E),j=new Date(P),S=Math.abs(j-m),M=Math.ceil(S/(1e3*60*60*24));y(`${M} days`)}else y("0 days")},O=()=>{d(E=>({...E,costPaidAtoB:[...E.costPaidAtoB,{title:"",price:""}]}))},T=E=>{const P=l.costPaidAtoB.filter((m,j)=>j!==E);d(m=>({...m,costPaidAtoB:P}))},_=(E,P,m)=>{const j=[...l.costPaidAtoB];j[E][P]=m,d(S=>({...S,costPaidAtoB:j}))},F=(E,P)=>{let m=E.target.value;if(m=m.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(m)||m===""){const S=l.costPaidAtoB.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,costPaidAtoB:S})}else{const S=l.costPaidAtoB.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,costPaidAtoB:S})}},z=()=>{const E=l.costPaidAtoB.reduce((m,j)=>{const S=parseFloat(j.price)||0;return m+S},0),P=parseFloat(l.purchaseCost)||0;return E+P},H=()=>{d(E=>({...E,credits:[...E.credits,{title:"",price:""}]}))},te=E=>{const P=l.credits.filter((m,j)=>j!==E);d(m=>({...m,credits:P}))},Q=(E,P,m)=>{const j=[...l.credits];j[E][P]=m,d(S=>({...S,credits:j}))},Z=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.credits.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,credits:S})}else{const S=l.credits.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,credits:S})}},D=()=>l.credits.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),U=()=>{const E=l.costPaidAtoB.reduce((j,S)=>{const M=parseFloat(S.price)||0;return j+M},0),P=l.credits.reduce((j,S)=>{const M=parseFloat(S.price)||0;return j+M},0),m=parseFloat(l.purchaseCost)||0;return E+P+m},G=()=>{d(E=>({...E,cashAdjustments:[...E.cashAdjustments,{title:"",price:""}]}))},R=E=>{const P=l.cashAdjustments.filter((m,j)=>j!==E);d(m=>({...m,cashAdjustments:P}))},A=(E,P,m)=>{const j=[...l.cashAdjustments];j[E][P]=m,d(S=>({...S,cashAdjustments:j}))},B=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.cashAdjustments.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,cashAdjustments:S})}else{const S=l.cashAdjustments.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,cashAdjustments:S})}},L=()=>l.cashAdjustments.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),W=()=>{const E=L(),P=D(),m=z();return E+P+m},K=()=>{d(E=>({...E,incidentalCost:[...E.incidentalCost,{title:"",price:""}]}))},Y=E=>{const P=l.incidentalCost.filter((m,j)=>j!==E);d(m=>({...m,incidentalCost:P}))},ee=(E,P,m)=>{const j=[...l.incidentalCost];j[E][P]=m,d(S=>({...S,incidentalCost:j}))},re=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.incidentalCost.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,incidentalCost:S})}else{const S=l.incidentalCost.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,incidentalCost:S})}},ne=()=>l.incidentalCost.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),se=()=>{d(E=>({...E,carryCosts:[...E.carryCosts,{title:"",price:""}]}))},ie=E=>{const P=l.carryCosts.filter((m,j)=>j!==E);d(m=>({...m,carryCosts:P}))},ce=(E,P,m)=>{const j=[...l.carryCosts];j[E][P]=m,d(S=>({...S,carryCosts:j}))},ge=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.carryCosts.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,carryCosts:S})}else{const S=l.carryCosts.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,carryCosts:S})}},Me=()=>l.carryCosts.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),Nt=()=>{d(E=>({...E,renovationCost:[...E.renovationCost,{title:"",price:""}]}))},zt=E=>{const P=l.renovationCost.filter((m,j)=>j!==E);d(m=>({...m,renovationCost:P}))},pe=(E,P,m)=>{const j=[...l.renovationCost];j[E][P]=m,d(S=>({...S,renovationCost:j}))},$t=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.renovationCost.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,renovationCost:S})}else{const S=l.renovationCost.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,renovationCost:S})}},Ke=()=>l.renovationCost.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),Qn=()=>{const E=ne(),P=Me(),m=Ke();return E+P+m},Zt=()=>{const E=Qn(),P=W();return E+P},ys=()=>{d(E=>({...E,costPaidOutofClosing:[...E.costPaidOutofClosing,{title:"",price:""}]}))},js=E=>{const P=l.costPaidOutofClosing.filter((m,j)=>j!==E);d(m=>({...m,costPaidOutofClosing:P}))},Jn=(E,P,m)=>{const j=[...l.costPaidOutofClosing];j[E][P]=m,d(S=>({...S,costPaidOutofClosing:j}))},Wt=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.costPaidOutofClosing.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,costPaidOutofClosing:S})}else{const S=l.costPaidOutofClosing.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,costPaidOutofClosing:S})}},gn=()=>l.costPaidOutofClosing.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),Ut=()=>{const E=l.sellingPriceBtoC,P=gn();return E-P},ue=()=>{d(E=>({...E,adjustments:[...E.adjustments,{title:"",price:""}]}))},qt=E=>{const P=l.adjustments.filter((m,j)=>j!==E);d(m=>({...m,adjustments:P}))},xn=(E,P,m)=>{const j=[...l.adjustments];j[E][P]=m,d(S=>({...S,adjustments:j}))},Da=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.adjustments.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,adjustments:S})}else{const S=l.adjustments.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,adjustments:S})}},Ns=()=>l.adjustments.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),Fa=()=>{const E=Ut(),P=Ns();return E+P},Zi=()=>{d(E=>({...E,incomestatement:[...E.incomestatement,{title:"",price:""}]}))},el=E=>{const P=l.incomestatement.filter((m,j)=>j!==E);d(m=>({...m,incomestatement:P}))},Cs=(E,P,m)=>{const j=[...l.incomestatement];j[E][P]=m,d(S=>({...S,incomestatement:j}))},Xn=(E,P)=>{const m=E.target.value;if(/^\d*\.?\d*$/.test(m)||m===""){const S=l.incomestatement.map((M,q)=>q===P?{...M,price:m,isInvalid:!1}:M);d({...l,incomestatement:S})}else{const S=l.incomestatement.map((M,q)=>q===P?{...M,isInvalid:!0}:M);d({...l,incomestatement:S})}},Zn=()=>l.incomestatement.reduce((E,P)=>{const m=parseFloat(P.price);return E+(isNaN(m)?0:m)},0),en=()=>{const E=Zn(),P=Ut();return E+P},kr=()=>{const E=isNaN(parseFloat(en()))?0:parseFloat(en()),P=isNaN(parseFloat(l.shorttermrental))?0:parseFloat(l.shorttermrental),m=isNaN(parseFloat(l.OtherIncome))?0:parseFloat(l.OtherIncome),j=isNaN(parseFloat(l.InsuranceClaim))?0:parseFloat(l.InsuranceClaim),S=isNaN(parseFloat(l.LongTermRental))?0:parseFloat(l.LongTermRental),M=isNaN(parseFloat(Zt()))?0:parseFloat(Zt());return E+P+m+j+S-M},bs=()=>{const E=kr(),P=l.FinancingCostClosingCost;return E-P},tl=()=>bs();return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("div",{className:"card d-flex justify-content-center align-items-center",children:n.jsxs("div",{className:"justify-content-center",children:[n.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[n.jsx("li",{role:"presentation",className:r==="propertydetails"?"active tab":"tab",children:n.jsx("a",{onClick:()=>s("propertydetails"),role:"tab",children:"Property Details"})}),n.jsx("li",{role:"presentation",className:r==="Images"?"active tab":"tab",children:n.jsx("a",{onClick:()=>s("Images"),role:"tab",children:"Images, Maps"})}),n.jsx("li",{role:"presentation",className:r==="Accounting"?"active tab":"tab",children:n.jsx("a",{onClick:()=>s("Accounting"),role:"tab",children:"Accounting"})})]}),n.jsxs("div",{className:"tab-content",children:[r==="propertydetails"&&n.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[n.jsxs("form",{children:[n.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Property Address",n.jsx("input",{type:"text",className:"form-control",name:"address",value:l.address,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["City",n.jsx("input",{type:"text",className:"form-control",name:"city",value:l.city,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["State",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Alaska",children:"Alaska"}),n.jsx("option",{value:"Alabama",children:"Alabama"}),n.jsx("option",{value:"Arkansas",children:"Arkansas"}),n.jsx("option",{value:"Arizona",children:"Arizona"}),n.jsx("option",{value:"California",children:"California"}),n.jsx("option",{value:"Colorado",children:"Colorado"}),n.jsx("option",{value:"Connecticut",children:"Connecticut"}),n.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),n.jsx("option",{value:"Delaware",children:"Delaware"}),n.jsx("option",{value:"Florida",children:"Florida"}),n.jsx("option",{value:"Georgia",children:"Georgia"}),n.jsx("option",{value:"Hawaii",children:"Hawaii"}),n.jsx("option",{value:"Iowa",children:"Iowa"}),n.jsx("option",{value:"Idaho",children:"Idaho"}),n.jsx("option",{value:"Illinois",children:"Illinois"}),n.jsx("option",{value:"Indiana",children:"Indiana"}),n.jsx("option",{value:"Kansas",children:"Kansas"}),n.jsx("option",{value:"Kentucky",children:"Kentucky"}),n.jsx("option",{value:"Louisiana",children:"Louisiana"}),n.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),n.jsx("option",{value:"Maryland",children:"Maryland"}),n.jsx("option",{value:"Michigan",children:"Michigan"}),n.jsx("option",{value:"Minnesota",children:"Minnesota"}),n.jsx("option",{value:"Missouri",children:"Missouri"}),n.jsx("option",{value:"Mississippi",children:"Mississippi"}),n.jsx("option",{value:"Montana",children:"Montana"}),n.jsx("option",{value:"North Carolina",children:"North Carolina"}),n.jsx("option",{value:"North Dakota",children:"North Dakota"}),n.jsx("option",{value:"Nebraska",children:"Nebraska"}),n.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),n.jsx("option",{value:"New Jersey",children:"New Jersey"}),n.jsx("option",{value:"New Mexico",children:"New Mexico"}),n.jsx("option",{value:"Nevada",children:"Nevada"}),n.jsx("option",{value:"New York",children:"New York"}),n.jsx("option",{value:"Ohio",children:"Ohio"}),n.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),n.jsx("option",{value:"Oregon",children:"Oregon"}),n.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),n.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),n.jsx("option",{value:"South Carolina",children:"South Carolina"}),n.jsx("option",{value:"South Dakota",children:"South Dakota"}),n.jsx("option",{value:"Tennessee",children:"Tennessee"}),n.jsx("option",{value:"Texas",children:"Texas"}),n.jsx("option",{value:"Texas",children:"Travis"}),n.jsx("option",{value:"Utah",children:"Utah"}),n.jsx("option",{value:"Virginia",children:"Virginia"}),n.jsx("option",{value:"Vermont",children:"Vermont"}),n.jsx("option",{value:"Washington",children:"Washington"}),n.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),n.jsx("option",{value:"West Virginia",children:"West Virginia"}),n.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["County",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Abbeville",children:"Abbeville"}),n.jsx("option",{value:"Aiken",children:"Aiken"}),n.jsx("option",{value:"Allendale",children:"Allendale"}),n.jsx("option",{value:"Anderson",children:"Anderson"}),n.jsx("option",{value:"Bamberg",children:"Bamberg"}),n.jsx("option",{value:"Barnwell",children:"Barnwell"}),n.jsx("option",{value:"Beaufort",children:"Beaufort"}),n.jsx("option",{value:"Berkeley",children:"Berkeley"}),n.jsx("option",{value:"Calhoun",children:"Calhoun"}),n.jsx("option",{value:"Charleston",children:"Charleston"}),n.jsx("option",{value:"Cherokee",children:"Cherokee"}),n.jsx("option",{value:"Chester",children:"Chester"}),n.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),n.jsx("option",{value:"Clarendon",children:"Clarendon"}),n.jsx("option",{value:"Colleton",children:"Colleton"}),n.jsx("option",{value:"Darlington",children:"Darlington"}),n.jsx("option",{value:"Dillon",children:"Dillon"}),n.jsx("option",{value:"Dorchester",children:"Dorchester"}),n.jsx("option",{value:"Edgefield",children:"Edgefield"}),n.jsx("option",{value:"Fairfield",children:"Fairfield"}),n.jsx("option",{value:"Florence",children:"Florence"}),n.jsx("option",{value:"Georgetown",children:"Georgetown"}),n.jsx("option",{value:"Greenville",children:"Greenville"}),n.jsx("option",{value:"Greenwood",children:"Greenwood"}),n.jsx("option",{value:"Hampton",children:"Hampton"}),n.jsx("option",{value:"Horry",children:"Horry"}),n.jsx("option",{value:"Jasper",children:"Jasper"}),n.jsx("option",{value:"Kershaw",children:"Kershaw"}),n.jsx("option",{value:"Lancaster",children:"Lancaster"}),n.jsx("option",{value:"Laurens",children:"Laurens"}),n.jsx("option",{value:"Lee",children:"Lee"}),n.jsx("option",{value:"Lexington",children:"Lexington"}),n.jsx("option",{value:"Marion",children:"Marion"}),n.jsx("option",{value:"Marlboro",children:"Marlboro"}),n.jsx("option",{value:"McCormick",children:"McCormick"}),n.jsx("option",{value:"Newberry",children:"Newberry"}),n.jsx("option",{value:"Oconee",children:"Oconee"}),n.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),n.jsx("option",{value:"Pickens",children:"Pickens"}),n.jsx("option",{value:"Richland",children:"Richland"}),n.jsx("option",{value:"Saluda",children:"Saluda"}),n.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),n.jsx("option",{value:"Sumter",children:"Sumter"}),n.jsx("option",{value:"Union",children:"Union"}),n.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),n.jsx("option",{value:"York",children:"York"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Zip",n.jsx("input",{type:"text",className:"form-control",name:"zip",value:l.zip,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Parcel",n.jsx("input",{type:"text",className:"form-control",name:"parcel",value:l.parcel,onChange:u,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Sub division",n.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:l.subdivision,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",n.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:l.legal,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",n.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:l.costpersqft,onChange:u,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Property Type",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:l.propertyType,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"Residential",children:"Residential"}),n.jsx("option",{value:"Land",children:"Land"}),n.jsx("option",{value:"Commercial",children:"Commercial"}),n.jsx("option",{value:"Industrial",children:"Industrial"}),n.jsx("option",{value:"Water",children:"Water"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",n.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:l.lotacres,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Year Build",n.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:l.yearBuild,onChange:u,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",n.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:l.totallivingsqft,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Beds",n.jsx("input",{type:"text",className:"form-control",name:"beds",value:l.beds,onChange:u,required:!0})]})}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Baths",n.jsx("input",{type:"text",className:"form-control",name:"baths",value:l.baths,onChange:u,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Stories",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:l.stories,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"0",children:"0"}),n.jsx("option",{value:"1",children:"1"}),n.jsx("option",{value:"2",children:"2"}),n.jsx("option",{value:"3",children:"3"}),n.jsx("option",{value:"4",children:"4"}),n.jsx("option",{value:"5",children:"5"}),n.jsx("option",{value:"6",children:"6"}),n.jsx("option",{value:"7",children:"7"}),n.jsx("option",{value:"8",children:"8"}),n.jsx("option",{value:"9",children:"9"}),n.jsx("option",{value:"10",children:"10"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Garage",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:l.garage,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"0",children:"0"}),n.jsx("option",{value:"1",children:"1"}),n.jsx("option",{value:"2",children:"2"}),n.jsx("option",{value:"3",children:"3"}),n.jsx("option",{value:"4",children:"4"}),n.jsx("option",{value:"5",children:"5"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",n.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:l.garagesqft,onChange:u,required:!0})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Pool/SPA",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:l.poolspa,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),n.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),n.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),n.jsx("option",{value:"4",children:"None"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Fire places",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:l.fireplaces,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"yes",children:"Yes"}),n.jsx("option",{value:"no",children:"No"})]})]}),n.jsxs("div",{className:"col-md-4",children:["A/C",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:l.ac,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Central",children:"Central"}),n.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),n.jsx("option",{value:"Warm Air",children:"Warm Air"}),n.jsx("option",{value:"Forced Air",children:"Forced Air"}),n.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Heating",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:l.heating,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Central",children:"Central"}),n.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),n.jsx("option",{value:"Warm Air",children:"Warm Air"}),n.jsx("option",{value:"Forced Air",children:"Forced Air"}),n.jsx("option",{value:"Gas",children:"Gas"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Building Style",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:l.buildingstyle,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"One Story",children:"One Story"}),n.jsx("option",{value:"Craftsman",children:"Craftsman"}),n.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),n.jsx("option",{value:"Split-Level",children:"Split-Level"}),n.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),n.jsx("option",{value:"Stick Built",children:"Stick Built"}),n.jsx("option",{value:"Single wide",children:"Single wide"}),n.jsx("option",{value:"Double wide",children:"Double wide"}),n.jsx("option",{value:"Duplex",children:"Duplex"}),n.jsx("option",{value:"Triplex",children:"Triplex"}),n.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),n.jsx("option",{value:"Two Story",children:"Two Story"}),n.jsx("option",{value:"Victorian",children:"Victorian"}),n.jsx("option",{value:"Tudor",children:"Tudor"}),n.jsx("option",{value:"Modern",children:"Modern"}),n.jsx("option",{value:"Art Deco",children:"Art Deco"}),n.jsx("option",{value:"Bungalow",children:"Bungalow"}),n.jsx("option",{value:"Mansion",children:"Mansion"}),n.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),n.jsx("option",{value:"Conventional",children:"Conventional"}),n.jsx("option",{value:"Ranch",children:"Ranch"}),n.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),n.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),n.jsx("option",{value:"Contemporary",children:"Contemporary"}),n.jsx("option",{value:"Colonial",children:"Colonial"}),n.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Site Vacant",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:l.sitevacant,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please select"}),n.jsx("option",{value:"Yes",children:"Yes"}),n.jsx("option",{value:"No",children:"No"})]})]})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsxs("div",{className:"col-md-4",children:["Ext Wall",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:l.extwall,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Brick",children:"Brick"}),n.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),n.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),n.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),n.jsx("option",{value:"Stone",children:"Stone"}),n.jsx("option",{value:"Masonry",children:"Masonry"}),n.jsx("option",{value:"Metal",children:"Metal"}),n.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),n.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),n.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),n.jsx("option",{value:"Gable",children:"Gable"}),n.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),n.jsx("option",{value:"Frame",children:"Frame"}),n.jsx("option",{value:"Siding",children:"Siding"}),n.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),n.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),n.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),n.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),n.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),n.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),n.jsxs("div",{className:"col-md-4",children:["Roofing",n.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:l.roofing,onChange:u,required:!0,children:[n.jsx("option",{value:"",children:"Please Select"}),n.jsx("option",{value:"N/A",children:"N/A"}),n.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),n.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),n.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),n.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),n.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),n.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),n.jsx("option",{value:"Metal",children:"Metal"}),n.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),n.jsx("option",{value:"Slate",children:"Slate"}),n.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),n.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),n.jsx("div",{className:"col-md-4",children:n.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",n.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:l.totalSqft,onChange:u,required:!0})]})})]}),n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[n.jsx("br",{}),"Property Tax Information"]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.propertyTaxInfo&&l.propertyTaxInfo.map((E,P)=>n.jsxs("div",{className:"row gy-4",children:[n.jsx("div",{className:"col-md-3",children:n.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",n.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:E.propertytaxowned,onChange:m=>f(m,P),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",n.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:E.ownedyear,onChange:m=>f(m,P),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",n.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:E.taxassessed,onChange:m=>f(m,P),required:!0})]})}),n.jsx("div",{className:"col-md-2",children:n.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",n.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:E.taxyear,onChange:m=>f(m,P),required:!0})]})}),n.jsx("div",{className:"col-md-3",children:n.jsxs("div",{className:"form-floating mb-2",children:[n.jsx("br",{}),n.jsx("button",{className:"btn btn-danger",onClick:()=>x(P),style:{height:"25px",width:"35px"},children:"X"})]})})]},P)),n.jsx("button",{className:"btn btn-secondary",onClick:b,children:"+ Add Another Property Tax Info"})]}),n.jsx("button",{className:"btn btn-primary continue",onClick:a,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),r==="Images"&&n.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),n.jsxs("form",{children:[n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),l.images.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,placeholder:"Image Title",onChange:m=>v(P,m)})}),n.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[n.jsx(Cu,{multiple:!1,onDone:m=>N(m,P)}),n.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>p(P),style:{marginLeft:"5px"},children:"Delete"})]}),E.file&&n.jsx("div",{className:"col-md-12",children:n.jsx("img",{src:E.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},P)),n.jsx("button",{type:"button",className:"btn btn-primary",onClick:C,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"mb-3",children:[n.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:n.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),n.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:l.googleMapLink,onChange:u,placeholder:"Enter Google Maps link"})]}),l.googleMapLink&&n.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${l.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),n.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",n.jsx("button",{className:"btn btn-primary continue",onClick:a,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),r==="Accounting"&&n.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 col-16",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:l.closeDateAtoB,onChange:E=>{const P=E.target.value;d({...l,closeDateAtoB:P}),k(P,l.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),n.jsx("div",{children:n.jsxs("p",{children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",n.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:l.closeDateBtoC,onChange:E=>{const P=E.target.value;d({...l,closeDateBtoC:P}),k(l.closeDateAtoB,P)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),n.jsx("div",{children:n.jsxs("p",{children:[n.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),n.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(l.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),n.jsx("div",{className:"col-md-7",children:c.map(E=>n.jsxs("div",{className:"form-check form-check-inline",children:[n.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${E}`,value:E,checked:l.renovationRisk===E,onChange:P=>{const m=parseInt(P.target.value,10);d({...l,renovationRisk:m})}}),n.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${E}`,children:E})]},E))})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${tl().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:h,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${l.purchaseCost}`,name:"purchaseCost",onChange:E=>{let P=E.target.value.replace(/[^\d.]/g,"");const m=/^\d*\.?\d*$/.test(P);d({...l,purchaseCost:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),l.costPaidAtoB.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>_(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:`$ ${E.price}`,onChange:m=>F(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>T(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{onClick:O,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${z().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),l.credits.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>Q(P,"title",m.target.value),placeholder:"credits",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>Z(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>te(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:H,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:U(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),l.cashAdjustments.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>A(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>B(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>R(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:G,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:L(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:W(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),l.incidentalCost.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>ee(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>re(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>Y(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:K,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:ne(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),l.carryCosts.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>ce(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>ge(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>ie(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:se,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:Me(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),l.renovationCost.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>pe(P,"title",m.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>$t(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>zt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:Nt,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Ke(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Qn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Zt(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),l.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:l.sellingPriceBtoC,onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,sellingPriceBtoC:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),l.costPaidOutofClosing.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>Jn(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>Wt(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>js(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:ys,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalcostPaidOutofClosing",value:gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Ut(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),l.adjustments.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>xn(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>Da(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>qt(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:ue,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:Ns(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:Fa(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),l.incomestatement.map((E,P)=>n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",value:E.title,onChange:m=>Cs(P,"title",m.target.value),placeholder:"Title",required:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${E.isInvalid?"is-invalid":""}`,value:E.price,onChange:m=>Xn(m,P),placeholder:"Price",style:{textAlign:"right"},required:!0}),E.isInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),n.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:n.jsx("button",{className:"btn btn-danger",onClick:()=>el(P),style:{marginLeft:"5px"},children:"x"})})]},P)),n.jsx("div",{className:"col-md-4",children:n.jsxs("button",{className:"btn btn-primary back",onClick:Zi,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:Zn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),n.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Zt(),style:{textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isfundspriortoclosingInvalid?"is-invalid":""}`,value:l.fundspriortoclosing,name:"fundspriortoclosing",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,fundspriortoclosing:P,isfundspriortoclosingInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isfundspriortoclosingInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:en(),style:{textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.shorttermrental,name:"shorttermrental",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,shorttermrental:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.OtherIncome,name:"OtherIncome",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,OtherIncome:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.InsuranceClaim,name:"InsuranceClaim",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,InsuranceClaim:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3",children:[n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isPurchaseCostInvalid?"is-invalid":""}`,value:l.LongTermRental,name:"LongTermRental",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,LongTermRental:P,isPurchaseCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isPurchaseCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:kr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("input",{type:"text",className:`form-control ${l.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:l.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:E=>{const P=E.target.value,m=/^\d*\.?\d*$/.test(P);d({...l,FinancingCostClosingCost:P,isFinancingCostClosingCostInvalid:!m})},onKeyPress:E=>{const P=E.charCode;(P<48||P>57)&&P!==46&&(E.preventDefault(),d({...l,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),l.isFinancingCostClosingCostInvalid&&n.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),n.jsx("br",{}),n.jsxs("div",{className:"row gy-3 align-items-center",children:[n.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),n.jsx("div",{className:"col-md-4",children:n.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:bs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),n.jsx("br",{}),n.jsxs("div",{className:"col-md-4",children:[n.jsx("button",{className:"btn btn-primary back",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",n.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),n.jsx("br",{})]})]})]})})]})},Xw=()=>{const e=lt(),{properties:t,loading:r,totalPages:s,currentPage:a}=Te(N=>N.property),[o,i]=w.useState(""),[l,d]=w.useState([]),[c,u]=w.useState(1),f=10;w.useEffect(()=>{e(ts({page:c,limit:f,keyword:o}))},[e,c,o]),w.useEffect(()=>{o.trim()?d(t.filter(N=>N.address.toLowerCase().includes(o.toLowerCase()))):d(t)},[o,t]);const g=N=>{i(N.target.value)},b=N=>{N.preventDefault()},x=N=>{u(N),e(ts({page:N,limit:f,keyword:o}))};return n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsxs("div",{className:"container col-12",children:[n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-lg-12 card-margin col-12",children:n.jsx("div",{className:"card search-form col-12",children:n.jsx("div",{className:"card-body p-0",children:n.jsx("form",{id:"search-form",onSubmit:b,children:n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"row no-gutters",children:n.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:n.jsx("input",{type:"text",value:o,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-12",children:n.jsx("div",{className:"card card-margin",children:n.jsx("div",{className:"card-body",children:r?n.jsx("div",{children:"Loading..."}):n.jsx("div",{className:"table-responsive",children:n.jsxs("table",{className:"table widget-26",children:[n.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:n.jsxs("tr",{children:[n.jsx("th",{children:"Image"}),n.jsx("th",{children:"Details"}),n.jsx("th",{children:"Total Living Square Foot"}),n.jsx("th",{children:"Year Built"}),n.jsx("th",{children:"Cost per Square Foot"})]})}),n.jsx("tbody",{children:l.length>0?l.map(N=>n.jsxs("tr",{children:[n.jsx("td",{children:N.images&&N.images[0]?n.jsx("img",{src:N.images[0].file||St,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):n.jsx("img",{src:St,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),n.jsx("td",{children:n.jsxs("div",{className:"widget-26-job-title",children:[n.jsx(me,{to:`/property/${N.propertyId}`,className:"link-primary text-decoration-none",children:N.address}),n.jsxs("p",{className:"m-0",children:[n.jsxs("span",{className:"employer-name",children:[n.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),N.city,", ",N.county,","," ",N.state]}),n.jsxs("p",{className:"text-muted m-0",children:["House Id: ",N.propertyId]})]})]})}),n.jsx("td",{children:N.totallivingsqft}),n.jsx("td",{children:N.yearBuild}),n.jsx("td",{children:N.costpersqft})]},N.id)):n.jsx("tr",{children:n.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),n.jsx("nav",{"aria-label":"Page navigation",children:n.jsxs("ul",{className:"pagination justify-content-center",children:[n.jsx("li",{className:`page-item ${a===1?"disabled":""}`,children:n.jsx("button",{className:"page-link",onClick:()=>x(a-1),children:"Previous"})}),Array.from({length:s},(N,C)=>n.jsx("li",{className:`page-item ${a===C+1?"active":""}`,children:n.jsx("button",{className:"page-link",onClick:()=>x(C+1),children:C+1})},C+1)),n.jsx("li",{className:`page-item ${a===s?"disabled":""}`,children:n.jsx("button",{className:"page-link",onClick:()=>x(a+1),children:"Next"})})]})})]}),n.jsx(Ze,{})]})},Zw=()=>{const{userId:e}=gs(),t=lt(),{user:r,loading:s}=Te(a=>a.user);return console.log("user",r),w.useEffect(()=>{e&&t(ko(e))},[e,t]),s?n.jsx("div",{children:"Loading..."}):n.jsxs(n.Fragment,{children:[n.jsx(Le,{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("br",{}),n.jsx("div",{className:"main-body",children:n.jsxs("div",{className:"row gutters-sm",children:[n.jsx("div",{className:"col-md-4 mb-3",children:n.jsx("div",{className:"card",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[n.jsx("img",{className:"img-fluid",src:r.profileImage||Ms,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"300px",maxHeight:"300px"}}),n.jsxs("h4",{children:[r.title,". ",r.firstName," ",r.middleName," ",r.lastName]}),n.jsxs("span",{className:"text-muted font-size-sm",children:[n.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",r.city,", ",r.state,", ",r.county,", ",r.zip]})]}),n.jsx("br",{})]})})}),n.jsx("div",{className:"col-md-4 mb-3",children:n.jsx("div",{className:"card",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[n.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),n.jsx("hr",{}),n.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),n.jsx("small",{children:"Web Design project in California"}),n.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:n.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),n.jsx("hr",{}),n.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),n.jsx("small",{children:"Web Design project in California"}),n.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:n.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),n.jsx("div",{className:"col-md-4 mb-3",children:n.jsx("div",{className:"card",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[n.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),n.jsx("hr",{}),n.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),n.jsx("small",{children:"Web Design project in California"}),n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("hr",{}),n.jsx("img",{src:St,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),n.jsx("small",{children:"Web Design project in California"}),n.jsx("br",{})," ",n.jsx("br",{})]})})}),n.jsx("div",{className:"col-md-4",children:n.jsx("div",{className:"card mb-3",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[n.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",n.jsx("hr",{}),r.aboutme]})})}),n.jsx("div",{className:"col-md-4 mb-3",children:n.jsx("div",{className:"card",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[n.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),n.jsx("hr",{}),n.jsxs("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:["$ ",r.fundAmount]}),n.jsx("hr",{}),n.jsxs("div",{className:"card-body",children:[n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-sm-3",children:n.jsx("span",{className:"mb-0",children:"Email"})}),r.email,n.jsx("div",{className:"col-sm-9 text-secondary"})]}),n.jsx("hr",{}),n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-sm-3",children:n.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",n.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),n.jsx("div",{className:"col-md-4 mb-3",children:n.jsx("div",{className:"card",children:n.jsxs("div",{className:"card-body",children:[n.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[n.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),n.jsxs("ul",{className:"list-group list-group-flush",children:[n.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:n.jsxs("h6",{className:"mb-0",children:[n.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),n.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:n.jsxs("h6",{className:"mb-0",children:[n.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),n.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:n.jsxs("h6",{className:"mb-0",children:[n.jsx("img",{src:Ms,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})};function eS(){const e="http://67.225.129.127:3002",[t,r]=w.useState(""),[s,a]=w.useState(""),o=hn(),i=async l=>{l.preventDefault();try{const{data:d}=await he.post(`${e}/admin/login`,{username:t,password:s});localStorage.setItem("token",d.token),o("/AdminPLogin/dashboard")}catch(d){alert("Invalid login credentials",d)}};return n.jsx(n.Fragment,{children:n.jsx("section",{className:"d-flex justify-content-center align-items-center col-12",style:{minHeight:"100vh",backgroundColor:"#FFFFFF",width:"100%",paddingLeft:"500px"},children:n.jsx("div",{className:"col-md-6 col-lg-4",children:n.jsx("div",{className:"container-fluid px-0",children:n.jsx("div",{className:"row gy-4 align-items-center justify-content-center",children:n.jsxs("div",{className:"col-12 text-center",children:[n.jsx("input",{autoComplete:"off",type:"text",value:t,onChange:l=>r(l.target.value)}),n.jsx("br",{})," ",n.jsx("br",{}),n.jsx("input",{autoComplete:"off",type:"password",value:s,onChange:l=>a(l.target.value)}),n.jsx("div",{className:"mb-3",children:n.jsx("button",{onClick:i,className:"btn btn-dark w-70",children:"Login"})})]})})})})})})}function kg({children:e}){const t=hn(),r=localStorage.getItem("token");return console.log("token",r),w.useEffect(()=>{r||t("/AdminPLogin")},[r,t]),r?e:null}kg.propTypes={children:Lt.node.isRequired};const tS=()=>{const e=hn(),t=()=>{localStorage.removeItem("token"),e("/AdminPLogin")};return n.jsx(n.Fragment,{children:n.jsxs("div",{children:[n.jsxs("div",{id:"wrapper",children:[n.jsxs("ul",{className:"navbar-nav bg-gradient-primary sidebar sidebar-dark accordion",id:"accordionSidebar",children:[n.jsxs("a",{className:"sidebar-brand d-flex align-items-center justify-content-center",href:"index.html",children:[n.jsx("div",{className:"sidebar-brand-icon rotate-n-15",children:n.jsx("i",{className:"fas fa-laugh-wink"})}),n.jsxs("div",{className:"sidebar-brand-text mx-3",children:["EL Admin ",n.jsx("sup",{children:"2"})]})]}),n.jsx("hr",{className:"sidebar-divider my-0"}),n.jsx("li",{className:"nav-item active",children:n.jsxs("a",{className:"nav-link",href:"index.html",children:[n.jsx("i",{className:"fas fa-fw fa-tachometer-alt"}),n.jsx("span",{children:"Dashboard"})]})}),n.jsx("hr",{className:"sidebar-divider"}),n.jsx("div",{className:"sidebar-heading",children:"Interface"}),n.jsxs("li",{className:"nav-item",children:[n.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseTwo","aria-expanded":"true","aria-controls":"collapseTwo",children:[n.jsx("i",{className:"fas fa-fw fa-cog"}),n.jsx("span",{children:"Users"})]}),n.jsx("div",{id:"collapseTwo",className:"collapse","aria-labelledby":"headingTwo","data-parent":"#accordionSidebar",children:n.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[n.jsx("h6",{className:"collapse-header",children:"Registered Users:"}),n.jsx("a",{className:"collapse-item",href:"buttons.html",children:"Active Users"}),n.jsx("a",{className:"collapse-item",href:"cards.html",children:"Inactive Users"})]})})]}),n.jsxs("li",{className:"nav-item",children:[n.jsxs("a",{className:"nav-link collapsed",href:"#","data-toggle":"collapse","data-target":"#collapseUtilities","aria-expanded":"true","aria-controls":"collapseUtilities",children:[n.jsx("i",{className:"fas fa-fw fa-wrench"}),n.jsx("span",{children:"Properties"})]}),n.jsx("div",{id:"collapseUtilities",className:"collapse","aria-labelledby":"headingUtilities","data-parent":"#accordionSidebar",children:n.jsxs("div",{className:"bg-white py-2 collapse-inner rounded",children:[n.jsx("h6",{className:"collapse-header",children:"Details:"}),n.jsx("a",{className:"collapse-item",href:"utilities-color.html",children:"Add Property"}),n.jsx("a",{className:"collapse-item",href:"utilities-border.html",children:"Admin Properties"}),n.jsx("a",{className:"collapse-item",href:"utilities-animation.html",children:"User Properties"}),n.jsx("a",{className:"collapse-item",href:"utilities-other.html",children:"Other"})]})})]}),n.jsx("hr",{className:"sidebar-divider"}),n.jsx("div",{className:"sidebar-heading",children:"Addons"}),n.jsx("li",{className:"nav-item",children:n.jsxs("a",{className:"nav-link",href:"charts.html",children:[n.jsx("i",{className:"fas fa-fw fa-chart-area"}),n.jsx("span",{children:"Admin"})]})}),n.jsx("hr",{className:"sidebar-divider d-none d-md-block"})]}),n.jsxs("div",{id:"content-wrapper",className:"d-flex flex-column col-12",style:{paddingLeft:"55px"},children:[n.jsxs("div",{id:"content col-12",children:[n.jsxs("nav",{className:"navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow",children:[n.jsx("button",{id:"sidebarToggleTop",className:"btn btn-link d-md-none rounded-circle mr-3",children:n.jsx("i",{className:"fa fa-bars"})}),n.jsx("form",{className:"d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search",children:n.jsxs("div",{className:"input-group",children:[n.jsx("input",{type:"text",className:"form-control bg-light border-0 small",placeholder:"Search for...","aria-label":"Search","aria-describedby":"basic-addon2"}),n.jsx("div",{className:"input-group-append",children:n.jsx("button",{className:"btn btn-primary",type:"button",children:n.jsx("i",{className:"fas fa-search fa-sm"})})})]})}),n.jsxs("ul",{className:"navbar-nav ml-auto",children:[n.jsxs("li",{className:"nav-item dropdown no-arrow d-sm-none",children:[n.jsx("a",{className:"nav-link dropdown-toggle",href:"#",id:"searchDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:n.jsx("i",{className:"fas fa-search fa-fw"})}),n.jsx("div",{className:"dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in","aria-labelledby":"searchDropdown",children:n.jsx("form",{className:"form-inline mr-auto w-100 navbar-search",children:n.jsxs("div",{className:"input-group",children:[n.jsx("input",{type:"text",className:"form-control bg-light border-0 small",placeholder:"Search for...","aria-label":"Search","aria-describedby":"basic-addon2"}),n.jsx("div",{className:"input-group-append",children:n.jsx("button",{className:"btn btn-primary",type:"button",children:n.jsx("i",{className:"fas fa-search fa-sm"})})})]})})})]}),n.jsxs("li",{className:"nav-item dropdown no-arrow mx-1",children:[n.jsxs("a",{className:"nav-link dropdown-toggle",href:"#",id:"alertsDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[n.jsx("i",{className:"fas fa-bell fa-fw"}),n.jsx("span",{className:"badge badge-danger badge-counter",children:"3+"})]}),n.jsxs("div",{className:"dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in","aria-labelledby":"alertsDropdown",children:[n.jsx("h6",{className:"dropdown-header",children:"Alerts Center"}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsx("div",{className:"mr-3",children:n.jsx("div",{className:"icon-circle bg-primary",children:n.jsx("i",{className:"fas fa-file-alt text-white"})})}),n.jsxs("div",{children:[n.jsx("div",{className:"small text-gray-500",children:"December 12, 2019"}),n.jsx("span",{className:"font-weight-bold",children:"A new monthly report is ready to download!"})]})]}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsx("div",{className:"mr-3",children:n.jsx("div",{className:"icon-circle bg-success",children:n.jsx("i",{className:"fas fa-donate text-white"})})}),n.jsxs("div",{children:[n.jsx("div",{className:"small text-gray-500",children:"December 7, 2019"}),"$290.29 has been deposited into your account!"]})]}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsx("div",{className:"mr-3",children:n.jsx("div",{className:"icon-circle bg-warning",children:n.jsx("i",{className:"fas fa-exclamation-triangle text-white"})})}),n.jsxs("div",{children:[n.jsx("div",{className:"small text-gray-500",children:"December 2, 2019"}),"Spending Alert: We've noticed unusually high spending for your account."]})]}),n.jsx("a",{className:"dropdown-item text-center small text-gray-500",href:"#",children:"Show All Alerts"})]})]}),n.jsxs("li",{className:"nav-item dropdown no-arrow mx-1",children:[n.jsxs("a",{className:"nav-link dropdown-toggle",href:"#",id:"messagesDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:[n.jsx("i",{className:"fas fa-envelope fa-fw"}),n.jsx("span",{className:"badge badge-danger badge-counter",children:"7"})]}),n.jsxs("div",{className:"dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in","aria-labelledby":"messagesDropdown",children:[n.jsx("h6",{className:"dropdown-header",children:"Message Center"}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsxs("div",{className:"dropdown-list-image mr-3",children:[n.jsx("img",{className:"rounded-circle",src:"img/undraw_profile_1.svg",alt:"..."}),n.jsx("div",{className:"status-indicator bg-success"})]}),n.jsxs("div",{className:"font-weight-bold",children:[n.jsx("div",{className:"text-truncate",children:"Hi there! I am wondering if you can help me with a problem I've been having."}),n.jsx("div",{className:"small text-gray-500",children:"Emily Fowler · 58m"})]})]}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsxs("div",{className:"dropdown-list-image mr-3",children:[n.jsx("img",{className:"rounded-circle",src:"img/undraw_profile_2.svg",alt:"..."}),n.jsx("div",{className:"status-indicator"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-truncate",children:"I have the photos that you ordered last month, how would you like them sent to you?"}),n.jsx("div",{className:"small text-gray-500",children:"Jae Chun · 1d"})]})]}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsxs("div",{className:"dropdown-list-image mr-3",children:[n.jsx("img",{className:"rounded-circle",src:"img/undraw_profile_3.svg",alt:"..."}),n.jsx("div",{className:"status-indicator bg-warning"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-truncate",children:"Last month's report looks great, I am very happy with the progress so far, keep up the good work!"}),n.jsx("div",{className:"small text-gray-500",children:"Morgan Alvarez · 2d"})]})]}),n.jsxs("a",{className:"dropdown-item d-flex align-items-center",href:"#",children:[n.jsxs("div",{className:"dropdown-list-image mr-3",children:[n.jsx("img",{className:"rounded-circle",src:"https://source.unsplash.com/Mv9hjnEUHR4/60x60",alt:"..."}),n.jsx("div",{className:"status-indicator bg-success"})]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-truncate",children:"Am I a good boy? The reason I ask is because someone told me that people say this to all dogs, even if they aren't good..."}),n.jsx("div",{className:"small text-gray-500",children:"Chicken the Dog · 2w"})]})]}),n.jsx("a",{className:"dropdown-item text-center small text-gray-500",href:"#",children:"Read More Messages"})]})]}),n.jsx("div",{className:"topbar-divider d-none d-sm-block"}),n.jsxs("li",{className:"nav-item dropdown no-arrow",children:[n.jsx("a",{className:"nav-link dropdown-toggle",href:"#",id:"userDropdown",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:n.jsx(me,{to:"/",onClick:r=>{r.preventDefault(),t()},children:n.jsx("span",{className:"mr-2 d-none d-lg-inline text-gray-600 big",children:"Logout"})})}),n.jsxs("div",{className:"dropdown-menu dropdown-menu-right shadow animated--grow-in","aria-labelledby":"userDropdown",children:[n.jsxs("a",{className:"dropdown-item",href:"#",children:[n.jsx("i",{className:"fas fa-user fa-sm fa-fw mr-2 text-gray-400"}),"Profile"]}),n.jsxs("a",{className:"dropdown-item",href:"#",children:[n.jsx("i",{className:"fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"}),"Settings"]}),n.jsxs("a",{className:"dropdown-item",href:"#",children:[n.jsx("i",{className:"fas fa-list fa-sm fa-fw mr-2 text-gray-400"}),"Activity Log"]}),n.jsx("div",{className:"dropdown-divider"}),n.jsxs("a",{className:"dropdown-item",href:"#","data-toggle":"modal","data-target":"#logoutModal",children:[n.jsx("i",{className:"fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"}),"Logout"]})]})]})]})]}),n.jsxs("div",{className:"container-fluid",children:[n.jsx("div",{className:"d-sm-flex align-items-center justify-content-between mb-4",children:n.jsx("h1",{className:"h3 mb-0 text-gray-800",children:"Dashboard"})}),n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:n.jsx("div",{className:"card border-left-primary shadow h-100 py-2",children:n.jsx("div",{className:"card-body",children:n.jsxs("div",{className:"row no-gutters align-items-center",children:[n.jsxs("div",{className:"col mr-2",children:[n.jsx("div",{className:"text-xs font-weight-bold text-primary text-uppercase mb-1",children:"Total Users"}),n.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"40,000,000"})]}),n.jsx("div",{className:"col-auto",children:n.jsx("i",{className:"fas fa-calendar fa-2x text-gray-300"})})]})})})}),n.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:n.jsx("div",{className:"card border-left-success shadow h-100 py-2",children:n.jsx("div",{className:"card-body",children:n.jsxs("div",{className:"row no-gutters align-items-center",children:[n.jsxs("div",{className:"col mr-2",children:[n.jsx("div",{className:"text-xs font-weight-bold text-success text-uppercase mb-1",children:"Total payments"}),n.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"$215,000"})]}),n.jsx("div",{className:"col-auto",children:n.jsx("i",{className:"fas fa-dollar-sign fa-2x text-gray-300"})})]})})})}),n.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:n.jsx("div",{className:"card border-left-info shadow h-100 py-2",children:n.jsx("div",{className:"card-body",children:n.jsxs("div",{className:"row no-gutters align-items-center",children:[n.jsxs("div",{className:"col mr-2",children:[n.jsx("div",{className:"text-xs font-weight-bold text-info text-uppercase mb-1",children:"Total Properties"}),n.jsxs("div",{className:"row no-gutters align-items-center",children:[n.jsx("div",{className:"col-auto",children:n.jsx("div",{className:"h5 mb-0 mr-3 font-weight-bold text-gray-800",children:"50,000"})}),n.jsx("div",{className:"col",children:n.jsx("div",{className:"progress progress-sm mr-2",children:n.jsx("div",{className:"progress-bar bg-info",role:"progressbar",style:{width:"50%"},"aria-valuenow":50,"aria-valuemin":0,"aria-valuemax":100})})})]})]}),n.jsx("div",{className:"col-auto",children:n.jsx("i",{className:"fas fa-clipboard-list fa-2x text-gray-300"})})]})})})}),n.jsx("div",{className:"col-xl-3 col-md-6 mb-4",children:n.jsx("div",{className:"card border-left-warning shadow h-100 py-2",children:n.jsx("div",{className:"card-body",children:n.jsxs("div",{className:"row no-gutters align-items-center",children:[n.jsxs("div",{className:"col mr-2",children:[n.jsx("div",{className:"text-xs font-weight-bold text-warning text-uppercase mb-1",children:"Pending Inquires"}),n.jsx("div",{className:"h5 mb-0 font-weight-bold text-gray-800",children:"18"})]}),n.jsx("div",{className:"col-auto",children:n.jsx("i",{className:"fas fa-comments fa-2x text-gray-300"})})]})})})})]}),n.jsxs("div",{className:"row",children:[n.jsx("div",{className:"col-xl-8 col-lg-7",children:n.jsxs("div",{className:"card shadow mb-4",children:[n.jsxs("div",{className:"card-header py-3 d-flex flex-row align-items-center justify-content-between",children:[n.jsx("h6",{className:"m-0 font-weight-bold text-primary",children:"Welcome to Dashboard"}),n.jsxs("div",{className:"dropdown no-arrow",children:[n.jsx("a",{className:"dropdown-toggle",href:"#",role:"button",id:"dropdownMenuLink","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:n.jsx("i",{className:"fas fa-ellipsis-v fa-sm fa-fw text-gray-400"})}),n.jsxs("div",{className:"dropdown-menu dropdown-menu-right shadow animated--fade-in","aria-labelledby":"dropdownMenuLink",children:[n.jsx("div",{className:"dropdown-header",children:"Dropdown Header:"}),n.jsx("a",{className:"dropdown-item",href:"#",children:"Action"}),n.jsx("a",{className:"dropdown-item",href:"#",children:"Another action"}),n.jsx("div",{className:"dropdown-divider"}),n.jsx("a",{className:"dropdown-item",href:"#",children:"Something else here"})]})]})]}),n.jsx("div",{className:"card-body",children:n.jsx("div",{className:"chart-area",children:n.jsx("canvas",{id:"myAreaChart"})})})]})}),n.jsx("div",{className:"col-xl-4 col-lg-5",children:n.jsx("div",{className:"card shadow mb-4"})})]}),n.jsx("div",{className:"row",children:n.jsx("div",{className:"col-lg-6 mb-4"})})]})]}),n.jsx("footer",{className:"sticky-footer bg-white",children:n.jsx("div",{className:"container my-auto",children:n.jsx("div",{className:"copyright text-center my-auto",children:n.jsx("span",{children:"Copyright © Your Website 2021"})})})})]})]}),n.jsx("a",{className:"scroll-to-top rounded",href:"#page-top",children:n.jsx("i",{className:"fas fa-angle-up"})}),n.jsx("div",{className:"modal fade",id:"logoutModal",tabIndex:-1,role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true",children:n.jsx("div",{className:"modal-dialog",role:"document",children:n.jsxs("div",{className:"modal-content",children:[n.jsxs("div",{className:"modal-header",children:[n.jsx("h5",{className:"modal-title",id:"exampleModalLabel",children:"Ready to Leave?"}),n.jsx("button",{className:"close",type:"button","data-dismiss":"modal","aria-label":"Close",children:n.jsx("span",{"aria-hidden":"true",children:"×"})})]}),n.jsx("div",{className:"modal-body",children:'Select "Logout" below if you are ready to end your current session.'}),n.jsxs("div",{className:"modal-footer",children:[n.jsx("button",{className:"btn btn-secondary",type:"button","data-dismiss":"modal",children:"Cancel"}),n.jsx("a",{className:"btn btn-primary",href:"login.html",children:"Logout"})]})]})})})]})})},nS=()=>n.jsxs(mC,{children:[n.jsx(TC,{}),n.jsxs(aC,{children:[n.jsx(_e,{path:"/",element:n.jsx(AC,{})}),n.jsx(_e,{path:"/about",element:n.jsx(IC,{})}),n.jsx(_e,{path:"/services",element:n.jsx(Gw,{})}),n.jsx(_e,{path:"/contact",element:n.jsx(DC,{})}),n.jsx(_e,{path:"/register",element:n.jsx(ib,{})}),n.jsx(_e,{path:"/registrationsuccess",element:n.jsx(Ao,{children:n.jsx(Eb,{})})}),n.jsx(_e,{path:"/login",element:n.jsx(cb,{})}),n.jsx(_e,{path:"/dashboard",element:n.jsx(Ao,{children:n.jsx(gb,{})})}),n.jsx(_e,{path:"/users/:id/verify/:token",element:n.jsx(wb,{})}),n.jsx(_e,{path:"/forgotpassword",element:n.jsx(Sb,{})}),n.jsx(_e,{path:"/users/resetpassword/:userId/:token",element:n.jsx(kb,{})}),n.jsx(_e,{path:"/property/:id",element:n.jsx(Kw,{})}),n.jsx(_e,{path:"/properties/:house_id",element:n.jsx(Qw,{})}),n.jsx(_e,{path:"/searchmyproperties",element:n.jsx(Yw,{})}),n.jsx(_e,{path:"/searchproperties",element:n.jsx(Xw,{})}),n.jsx(_e,{path:"/editproperty/:id",element:n.jsx(Ao,{children:n.jsx(Jw,{})})}),n.jsx(_e,{path:"/profile/:userId",element:n.jsx(Zw,{})}),n.jsx(_e,{path:"/AdminPLogin",element:n.jsx(eS,{})}),n.jsx(_e,{path:"/AdminPLogin/dashboard",element:n.jsx(kg,{children:n.jsx(tS,{})})})]})]});Uh(document.getElementById("root")).render(n.jsx(w.StrictMode,{children:n.jsx(_j,{store:xN,children:n.jsx(nS,{})})}));