var nv=Object.defineProperty;var rv=(e,t,n)=>t in e?nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ol=(e,t,n)=>rv(e,typeof t!="symbol"?t+"":t,n);function iv(e,t){for(var n=0;ni[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var ov=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zd={exports:{}},Ns={},ef={exports:{}},se={};/** * @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 Mi=Symbol.for("react.element"),sv=Symbol.for("react.portal"),lv=Symbol.for("react.fragment"),av=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),uv=Symbol.for("react.provider"),dv=Symbol.for("react.context"),fv=Symbol.for("react.forward_ref"),pv=Symbol.for("react.suspense"),mv=Symbol.for("react.memo"),hv=Symbol.for("react.lazy"),uu=Symbol.iterator;function vv(e){return e===null||typeof e!="object"?null:(e=uu&&e[uu]||e["@@iterator"],typeof e=="function"?e:null)}var tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nf=Object.assign,rf={};function Pr(e,t,n){this.props=e,this.context=t,this.refs=rf,this.updater=n||tf}Pr.prototype.isReactComponent={};Pr.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")};Pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function of(){}of.prototype=Pr.prototype;function ec(e,t,n){this.props=e,this.context=t,this.refs=rf,this.updater=n||tf}var tc=ec.prototype=new of;tc.constructor=ec;nf(tc,Pr.prototype);tc.isPureReactComponent=!0;var du=Array.isArray,sf=Object.prototype.hasOwnProperty,nc={current:null},lf={key:!0,ref:!0,__self:!0,__source:!0};function af(e,t,n){var i,o={},s=null,l=null;if(t!=null)for(i in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)sf.call(t,i)&&!lf.hasOwnProperty(i)&&(o[i]=t[i]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,z=O[F];if(0>>1;Fo(X,M))eeo(te,X)?(O[F]=te,O[ee]=M,F=ee):(O[F]=X,O[Y]=M,F=Y);else if(eeo(te,M))O[F]=te,O[ee]=M,F=ee;else break e}}return P}function o(O,P){var M=O.sortIndex-P.sortIndex;return M!==0?M:O.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var u=[],c=[],d=1,f=null,g=3,C=!1,v=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(O){for(var P=n(c);P!==null;){if(P.callback===null)i(c);else if(P.startTime<=O)i(c),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(c)}}function y(O){if(j=!1,p(O),!v)if(n(u)!==null)v=!0,B(k);else{var P=n(c);P!==null&&G(y,P.startTime-O)}}function k(O,P){v=!1,j&&(j=!1,m(b),b=-1),C=!0;var M=g;try{for(p(P),f=n(u);f!==null&&(!(f.expirationTime>P)||O&&!$());){var F=f.callback;if(typeof F=="function"){f.callback=null,g=f.priorityLevel;var z=F(f.expirationTime<=P);P=e.unstable_now(),typeof z=="function"?f.callback=z:f===n(u)&&i(u),p(P)}else i(u);f=n(u)}if(f!==null)var V=!0;else{var Y=n(c);Y!==null&&G(y,Y.startTime-P),V=!1}return V}finally{f=null,g=M,C=!1}}var x=!1,w=null,b=-1,A=5,L=-1;function $(){return!(e.unstable_now()-LO||125F?(O.sortIndex=M,t(c,O),n(u)===null&&O===n(c)&&(j?(m(b),b=-1):j=!0,G(y,M-F))):(O.sortIndex=z,t(u,O),v||C||(v=!0,B(k))),O},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(O){var P=g;return function(){var M=g;g=P;try{return O.apply(this,arguments)}finally{g=M}}}})(pf);ff.exports=pf;var Ev=ff.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 _v=R,st=Ev;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ul=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,pu={},mu={};function Ov(e){return Ul.call(mu,e)?!0:Ul.call(pu,e)?!1:Pv.test(e)?mu[e]=!0:(pu[e]=!0,!1)}function Tv(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Rv(e,t,n,i){if(t===null||typeof t>"u"||Tv(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ue(e,t,n,i,o,s,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=l}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ue(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ue(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ue(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ue(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){Ie[e]=new Ue(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ue(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ue(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ue(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ue(e,5,!1,e.toLowerCase(),null,!1,!1)});var ic=/[\-:]([a-z])/g;function oc(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(ic,oc);Ie[t]=new Ue(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(ic,oc);Ie[t]=new Ue(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(ic,oc);Ie[t]=new Ue(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ue(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ue("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ue(e,1,!1,e.toLowerCase(),null,!0,!0)});function sc(e,t,n,i){var o=Ie.hasOwnProperty(t)?Ie[t]:null;(o!==null?o.type!==0:i||!(2a||o[l]!==s[a]){var u=` `+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{al=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Kr(e):""}function Av(e){switch(e.tag){case 5:return Kr(e.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Yl(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 Xn:return"Fragment";case Jn:return"Portal";case ql:return"Profiler";case lc:return"StrictMode";case Vl:return"Suspense";case Hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vf:return(e.displayName||"Context")+".Consumer";case hf:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cc:return t=e.displayName||null,t!==null?t:Yl(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return Yl(e(t))}catch{}}return null}function Iv(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 Yl(t);case 8:return t===lc?"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 yn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dv(e){var t=yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){i=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(l){i=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gi(e){e._valueTracker||(e._valueTracker=Dv(e))}function xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=yf(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function zo(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 Kl(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=yn(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jf(e,t){t=t.checked,t!=null&&sc(e,"checked",t,!1)}function Gl(e,t){jf(e,t);var n=yn(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ql(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ql(e,t.type,yn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ql(e,t,n){(t!=="number"||zo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gr=Array.isArray;function mr(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zr={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},Mv=["Webkit","ms","Moz","O"];Object.keys(Zr).forEach(function(e){Mv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zr[t]=Zr[e]})});function wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zr.hasOwnProperty(e)&&Zr[e]?(""+t).trim():t+"px"}function Sf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=wf(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}var Fv=xe({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 Zl(e,t){if(t){if(Fv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function ea(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 ta=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,hr=null,vr=null;function ju(e){if(e=zi(e)){if(typeof na!="function")throw Error(W(280));var t=e.stateNode;t&&(t=ks(t),na(e.stateNode,e.type,t))}}function kf(e){hr?vr?vr.push(e):vr=[e]:hr=e}function Ef(){if(hr){var e=hr,t=vr;if(vr=hr=null,ju(e),t)for(e=0;e>>=0,e===0?32:31-(Kv(e)/Gv|0)|0}var Ji=64,Xi=4194304;function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Uo(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,s=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?i=Qr(a):(s&=l,s!==0&&(i=Qr(s)))}else l=n&~o,l!==0?i=Qr(l):s!==0&&(i=Qr(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&o)&&(o=i&-i,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function Fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function Zv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=ti),Pu=" ",Ou=!1;function Yf(e,t){switch(e){case"keyup":return Eg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zn=!1;function Pg(e,t){switch(e){case"compositionend":return Kf(t);case"keypress":return t.which!==32?null:(Ou=!0,Pu);case"textInput":return e=t.data,e===Pu&&Ou?null:e;default:return null}}function Og(e,t){if(Zn)return e==="compositionend"||!yc&&Yf(e,t)?(e=Vf(),go=hc=on=null,Zn=!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:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Iu(n)}}function Xf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zf(){for(var e=window,t=zo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zo(e.document)}return t}function xc(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 zg(e){var t=Zf(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xf(n.ownerDocument.documentElement,n)){if(i!==null&&xc(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(i.start,o);i=i.end===void 0?s:Math.min(i.end,o),!e.extend&&s>i&&(o=i,i=s,s=o),o=Du(n,s);var l=Du(n,i);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>i?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,er=null,aa=null,ri=null,ca=!1;function Mu(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ca||er==null||er!==zo(i)||(i=er,"selectionStart"in i&&xc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ri&&xi(ri,i)||(ri=i,i=Ho(aa,"onSelect"),0rr||(e.current=ha[rr],ha[rr]=null,rr--)}function de(e,t){rr++,ha[rr]=e.current,e.current=t}var xn={},Le=Cn(xn),Ke=Cn(!1),Ln=xn;function Nr(e,t){var n=e.type.contextTypes;if(!n)return xn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function Ko(){me(Ke),me(Le)}function Uu(e,t,n){if(Le.current!==xn)throw Error(W(168));de(Le,t),de(Ke,n)}function ap(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in t))throw Error(W(108,Iv(e)||"Unknown",o));return xe({},n,i)}function Go(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Ln=Le.current,de(Le,e),de(Ke,Ke.current),!0}function qu(e,t,n){var i=e.stateNode;if(!i)throw Error(W(169));n?(e=ap(e,t,Ln),i.__reactInternalMemoizedMergedChildContext=e,me(Ke),me(Le),de(Le,e)):me(Ke),de(Ke,n)}var Lt=null,Es=!1,bl=!1;function cp(e){Lt===null?Lt=[e]:Lt.push(e)}function Jg(e){Es=!0,cp(e)}function bn(){if(!bl&&Lt!==null){bl=!0;var e=0,t=ue;try{var n=Lt;for(ue=1;e>=l,o-=l,zt=1<<32-Ct(t)+o|n<b?(A=w,w=null):A=w.sibling;var L=g(m,w,p[b],y);if(L===null){w===null&&(w=A);break}e&&w&&L.alternate===null&&t(m,w),h=s(L,h,b),x===null?k=L:x.sibling=L,x=L,w=A}if(b===p.length)return n(m,w),ve&&kn(m,b),k;if(w===null){for(;bb?(A=w,w=null):A=w.sibling;var $=g(m,w,L.value,y);if($===null){w===null&&(w=A);break}e&&w&&$.alternate===null&&t(m,w),h=s($,h,b),x===null?k=$:x.sibling=$,x=$,w=A}if(L.done)return n(m,w),ve&&kn(m,b),k;if(w===null){for(;!L.done;b++,L=p.next())L=f(m,L.value,y),L!==null&&(h=s(L,h,b),x===null?k=L:x.sibling=L,x=L);return ve&&kn(m,b),k}for(w=i(m,w);!L.done;b++,L=p.next())L=C(w,m,b,L.value,y),L!==null&&(e&&L.alternate!==null&&w.delete(L.key===null?b:L.key),h=s(L,h,b),x===null?k=L:x.sibling=L,x=L);return e&&w.forEach(function(Z){return t(m,Z)}),ve&&kn(m,b),k}function N(m,h,p,y){if(typeof p=="object"&&p!==null&&p.type===Xn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ki:e:{for(var k=p.key,x=h;x!==null;){if(x.key===k){if(k=p.type,k===Xn){if(x.tag===7){n(m,x.sibling),h=o(x,p.props.children),h.return=m,m=h;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Jt&&Yu(k)===x.type){n(m,x.sibling),h=o(x,p.props),h.ref=qr(m,x,p),h.return=m,m=h;break e}n(m,x);break}else t(m,x);x=x.sibling}p.type===Xn?(h=Dn(p.props.children,m.mode,y,p.key),h.return=m,m=h):(y=So(p.type,p.key,p.props,null,m.mode,y),y.ref=qr(m,h,p),y.return=m,m=y)}return l(m);case Jn:e:{for(x=p.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(m,h.sibling),h=o(h,p.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Tl(p,m.mode,y),h.return=m,m=h}return l(m);case Jt:return x=p._init,N(m,h,x(p._payload),y)}if(Gr(p))return v(m,h,p,y);if(zr(p))return j(m,h,p,y);oo(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,p),h.return=m,m=h):(n(m,h),h=Ol(p,m.mode,y),h.return=m,m=h),l(m)):n(m,h)}return N}var br=pp(!0),mp=pp(!1),Xo=Cn(null),Zo=null,sr=null,bc=null;function wc(){bc=sr=Zo=null}function Sc(e){var t=Xo.current;me(Xo),e._currentValue=t}function ya(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Zo=e,bc=sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ye=!0),e.firstContext=null)}function ht(e){var t=e._currentValue;if(bc!==e)if(e={context:e,memoizedValue:t,next:null},sr===null){if(Zo===null)throw Error(W(308));sr=e,Zo.dependencies={lanes:0,firstContext:e}}else sr=sr.next=e;return t}var Tn=null;function kc(e){Tn===null?Tn=[e]:Tn.push(e)}function hp(e,t,n,i){var o=t.interleaved;return o===null?(n.next=n,kc(t)):(n.next=o.next,o.next=n),t.interleaved=n,qt(e,i)}function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Xt=!1;function Ec(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vp(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 Wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,le&2){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,qt(e,n)}return o=i.interleaved,o===null?(t.next=t,kc(i)):(t.next=o.next,o.next=t),i.interleaved=t,qt(e,n)}function xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,fc(e,n)}}function Ku(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=l:s=s.next=l,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function es(e,t,n,i){var o=e.updateQueue;Xt=!1;var s=o.firstBaseUpdate,l=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var u=a,c=u.next;u.next=null,l===null?s=c:l.next=c,l=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(s!==null){var f=o.baseState;l=0,d=c=u=null,a=s;do{var g=a.lane,C=a.eventTime;if((i&g)===g){d!==null&&(d=d.next={eventTime:C,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,j=a;switch(g=t,C=n,j.tag){case 1:if(v=j.payload,typeof v=="function"){f=v.call(C,f,g);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=j.payload,g=typeof v=="function"?v.call(C,f,g):v,g==null)break e;f=xe({},f,g);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[a]:g.push(a))}else C={eventTime:C,lane:g,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=C,u=f):d=d.next=C,l|=g;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;g=a,a=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(d===null&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Wn|=l,e.lanes=l,e.memoizedState=f}}function Gu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Sl.transition;Sl.transition={};try{e(!1),t()}finally{ue=n,Sl.transition=i}}function Ap(){return vt().memoizedState}function ty(e,t,n){var i=hn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Ip(e))Dp(t,n);else if(n=hp(e,t,n,i),n!==null){var o=We();bt(n,e,i,o),Mp(n,t,i)}}function ny(e,t,n){var i=hn(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ip(e))Dp(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,a=s(l,n);if(o.hasEagerState=!0,o.eagerState=a,St(a,l)){var u=t.interleaved;u===null?(o.next=o,kc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=hp(e,t,o,i),n!==null&&(o=We(),bt(n,e,i,o),Mp(n,t,i))}}function Ip(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Dp(e,t){ii=ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mp(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,fc(e,n)}}var rs={readContext:ht,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},ry={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Ju,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,No(4194308,4,_p.bind(null,t,e),n)},useLayoutEffect:function(e,t){return No(4194308,4,e,t)},useInsertionEffect:function(e,t){return No(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Pt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ty.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Qu,useDebugValue:Dc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Qu(!1),t=e[0];return e=ey.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ye,o=Pt();if(ve){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),Pe===null)throw Error(W(349));Bn&30||jp(i,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Ju(Cp.bind(null,i,s,e),[e]),i.flags|=2048,Ei(9,Np.bind(null,i,s,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,i=zt;n=(i&~(1<<32-Ct(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Si++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),n==="select"&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[Tt]=t,e[Ci]=i,Hp(e,t,!1,!1),t.stateNode=e;e:{switch(l=ea(n,i),n){case"dialog":pe("cancel",e),pe("close",e),o=i;break;case"iframe":case"object":case"embed":pe("load",e),o=i;break;case"video":case"audio":for(o=0;okr&&(t.flags|=128,i=!0,Vr(s,!1),t.lanes=4194304)}else{if(!i)if(e=ts(l),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!ve)return Me(t),null}else 2*be()-s.renderingStartTime>kr&&n!==1073741824&&(t.flags|=128,i=!0,Vr(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(n=s.last,n!==null?n.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=be(),t.sibling=null,n=ge.current,de(ge,i?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Wc(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?et&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function dy(e,t){switch(Nc(t),t.tag){case 1:return Ge(t.type)&&Ko(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),me(Ke),me(Le),Oc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pc(t),null;case 13:if(me(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Cr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ge),null;case 4:return wr(),null;case 10:return Sc(t.type._context),null;case 22:case 23:return Wc(),null;case 24:return null;default:return null}}var lo=!1,Fe=!1,fy=typeof WeakSet=="function"?WeakSet:Set,K=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){je(e,t,i)}else n.current=null}function Ea(e,t,n){try{n()}catch(i){je(e,t,i)}}var ad=!1;function py(e,t){if(ua=qo,e=Zf(),xc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,c=0,d=0,f=e,g=null;t:for(;;){for(var C;f!==n||o!==0&&f.nodeType!==3||(a=l+o),f!==s||i!==0&&f.nodeType!==3||(u=l+i),f.nodeType===3&&(l+=f.nodeValue.length),(C=f.firstChild)!==null;)g=f,f=C;for(;;){if(f===e)break t;if(g===n&&++c===o&&(a=l),g===s&&++d===i&&(u=l),(C=f.nextSibling)!==null)break;f=g,g=f.parentNode}f=C}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(da={focusedElem:e,selectionRange:n},qo=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var j=v.memoizedProps,N=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?j:yt(t.type,j),N);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(y){je(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return v=ad,ad=!1,v}function oi(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Ea(t,n,s)}o=o.next}while(o!==i)}}function Os(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function _a(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Gp(e){var t=e.alternate;t!==null&&(e.alternate=null,Gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[Ci],delete t[ma],delete t[Gg],delete t[Qg])),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 Qp(e){return e.tag===5||e.tag===3||e.tag===4}function cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qp(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 Pa(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yo));else if(i!==4&&(e=e.child,e!==null))for(Pa(e,t,n),e=e.sibling;e!==null;)Pa(e,t,n),e=e.sibling}function Oa(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Oa(e,t,n),e=e.sibling;e!==null;)Oa(e,t,n),e=e.sibling}var Re=null,xt=!1;function Gt(e,t,n){for(n=n.child;n!==null;)Jp(e,t,n),n=n.sibling}function Jp(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Cs,n)}catch{}switch(n.tag){case 5:Fe||lr(n,t);case 6:var i=Re,o=xt;Re=null,Gt(e,t,n),Re=i,xt=o,Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Re.removeChild(n.stateNode));break;case 18:Re!==null&&(xt?(e=Re,n=n.stateNode,e.nodeType===8?Cl(e.parentNode,n):e.nodeType===1&&Cl(e,n),gi(e)):Cl(Re,n.stateNode));break;case 4:i=Re,o=xt,Re=n.stateNode.containerInfo,xt=!0,Gt(e,t,n),Re=i,xt=o;break;case 0:case 11:case 14:case 15:if(!Fe&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var s=o,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Ea(n,t,l),o=o.next}while(o!==i)}Gt(e,t,n);break;case 1:if(!Fe&&(lr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){je(n,t,a)}Gt(e,t,n);break;case 21:Gt(e,t,n);break;case 22:n.mode&1?(Fe=(i=Fe)||n.memoizedState!==null,Gt(e,t,n),Fe=i):Gt(e,t,n);break;default:Gt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fy),t.forEach(function(i){var o=Cy.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var i=0;io&&(o=l),i&=~s}if(i=o,i=be()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*hy(i/1960))-i,10e?16:e,sn===null)var i=!1;else{if(e=sn,sn=null,ss=0,le&6)throw Error(W(331));var o=le;for(le|=4,K=e.current;K!==null;){var s=K,l=s.child;if(K.flags&16){var a=s.deletions;if(a!==null){for(var u=0;ube()-zc?In(e,0):Lc|=n),Qe(e,t)}function om(e,t){t===0&&(e.mode&1?(t=Xi,Xi<<=1,!(Xi&130023424)&&(Xi=4194304)):t=1);var n=We();e=qt(e,t),e!==null&&(Fi(e,t,n),Qe(e,n))}function Ny(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),om(e,n)}function Cy(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(W(314))}i!==null&&i.delete(t),om(e,n)}var sm;sm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)Ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ye=!1,cy(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ve&&t.flags&1048576&&up(t,Jo,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Co(e,t),e=t.pendingProps;var o=Nr(t,Le.current);yr(t,n),o=Rc(null,t,i,e,o,n);var s=Ac();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(i)?(s=!0,Go(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ec(t),o.updater=Ps,t.stateNode=o,o._reactInternals=t,ja(t,i,e,n),t=ba(null,t,i,!0,s,n)):(t.tag=0,ve&&s&&jc(t),ze(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Co(e,t),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=wy(i),e=yt(i,e),o){case 0:t=Ca(null,t,i,e,n);break e;case 1:t=od(null,t,i,e,n);break e;case 11:t=rd(null,t,i,e,n);break e;case 14:t=id(null,t,i,yt(i.type,e),n);break e}throw Error(W(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:yt(i,o),Ca(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:yt(i,o),od(e,t,i,o,n);case 3:e:{if(Up(t),e===null)throw Error(W(387));i=t.pendingProps,s=t.memoizedState,o=s.element,vp(e,t),es(t,i,null,n);var l=t.memoizedState;if(i=l.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Sr(Error(W(423)),t),t=sd(e,t,i,n,o);break e}else if(i!==o){o=Sr(Error(W(424)),t),t=sd(e,t,i,n,o);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=mp(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cr(),i===o){t=Vt(e,t,n);break e}ze(e,t,i,n)}t=t.child}return t;case 5:return gp(t),e===null&&ga(t),i=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,l=o.children,fa(i,o)?l=null:s!==null&&fa(i,s)&&(t.flags|=32),$p(e,t),ze(e,t,l,n),t.child;case 6:return e===null&&ga(t),null;case 13:return qp(e,t,n);case 4:return _c(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=br(t,null,i,n):ze(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:yt(i,o),rd(e,t,i,o,n);case 7:return ze(e,t,t.pendingProps,n),t.child;case 8:return ze(e,t,t.pendingProps.children,n),t.child;case 12:return ze(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,s=t.memoizedProps,l=o.value,de(Xo,i._currentValue),i._currentValue=l,s!==null)if(St(s.value,l)){if(s.children===o.children&&!Ke.current){t=Vt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){l=s.child;for(var u=a.firstContext;u!==null;){if(u.context===i){if(s.tag===1){u=Wt(-1,n&-n),u.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),ya(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(W(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ya(l,n,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ze(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,yr(t,n),o=ht(o),i=i(o),t.flags|=1,ze(e,t,i,n),t.child;case 14:return i=t.type,o=yt(i,t.pendingProps),o=yt(i.type,o),id(e,t,i,o,n);case 15:return Bp(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:yt(i,o),Co(e,t),t.tag=1,Ge(i)?(e=!0,Go(t)):e=!1,yr(t,n),Fp(t,i,o),ja(t,i,o,n),ba(null,t,i,!0,e,n);case 19:return Vp(e,t,n);case 22:return Wp(e,t,n)}throw Error(W(156,t.tag))};function lm(e,t){return If(e,t)}function by(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,i){return new by(e,t,n,i)}function Uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wy(e){if(typeof e=="function")return Uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===cc)return 14}return 2}function vn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,i,o,s){var l=2;if(i=e,typeof e=="function")Uc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Xn:return Dn(n.children,o,s,t);case lc:l=8,o|=8;break;case ql:return e=pt(12,n,t,o|2),e.elementType=ql,e.lanes=s,e;case Vl:return e=pt(13,n,t,o),e.elementType=Vl,e.lanes=s,e;case Hl:return e=pt(19,n,t,o),e.elementType=Hl,e.lanes=s,e;case gf:return Rs(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hf:l=10;break e;case vf:l=9;break e;case ac:l=11;break e;case cc:l=14;break e;case Jt:l=16,i=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=pt(l,n,t,o),t.elementType=e,t.type=i,t.lanes=s,t}function Dn(e,t,n,i){return e=pt(7,e,i,t),e.lanes=n,e}function Rs(e,t,n,i){return e=pt(22,e,i,t),e.elementType=gf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ol(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Tl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sy(e,t,n,i,o){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=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qc(e,t,n,i,o,s,l,a,u){return e=new Sy(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ec(s),e}function ky(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dm)}catch(e){console.error(e)}}dm(),df.exports=ct;var Ty=df.exports,fm,yd=Ty;fm=yd.createRoot,yd.hydrateRoot;var pm={exports:{}},mm={};/** * @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 Wi=R;function Ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ay=typeof Object.is=="function"?Object.is:Ry,Iy=Wi.useSyncExternalStore,Dy=Wi.useRef,My=Wi.useEffect,Fy=Wi.useMemo,Ly=Wi.useDebugValue;mm.useSyncExternalStoreWithSelector=function(e,t,n,i,o){var s=Dy(null);if(s.current===null){var l={hasValue:!1,value:null};s.current=l}else l=s.current;s=Fy(function(){function u(C){if(!c){if(c=!0,d=C,C=i(C),o!==void 0&&l.hasValue){var v=l.value;if(o(v,C))return f=v}return f=C}if(v=f,Ay(d,C))return v;var j=i(C);return o!==void 0&&o(v,j)?v:(d=C,f=j)}var c=!1,d,f,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,i,o]);var a=Iy(e,s[0],s[1]);return My(function(){l.hasValue=!0,l.value=a},[a]),Ly(a),a};pm.exports=mm;var zy=pm.exports,nt="default"in $l?T:$l,xd=Symbol.for("react-redux-context"),jd=typeof globalThis<"u"?globalThis:{};function By(){if(!nt.createContext)return{};const e=jd[xd]??(jd[xd]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=By(),Wy=()=>{throw new Error("uSES not initialized!")};function Kc(e=jn){return function(){return nt.useContext(e)}}var hm=Kc(),vm=Wy,$y=e=>{vm=e},Uy=(e,t)=>e===t;function qy(e=jn){const t=e===jn?hm:Kc(e),n=(i,o={})=>{const{equalityFn:s=Uy,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:f}=t();nt.useRef(!0);const g=nt.useCallback({[i.name](v){return i(v)}}[i.name],[i,d,l.stabilityCheck]),C=vm(u.addNestedSub,a.getState,c||a.getState,g,s);return nt.useDebugValue(C),C};return Object.assign(n,{withTypes:()=>n}),n}var Ze=qy();function Vy(e){e()}function Hy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Vy(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!i||e===null||(i=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Nd={notify(){},get:()=>[]};function Yy(e,t){let n,i=Nd,o=0,s=!1;function l(j){d();const N=i.subscribe(j);let m=!1;return()=>{m||(m=!0,N(),f())}}function a(){i.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return s}function d(){o++,n||(n=e.subscribe(u),i=Hy())}function f(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=Nd)}function g(){s||(s=!0,d())}function C(){s&&(s=!1,f())}const v={addNestedSub:l,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:g,tryUnsubscribe:C,getListeners:()=>i};return v}var Ky=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Gy=typeof navigator<"u"&&navigator.product==="ReactNative",Qy=Ky||Gy?nt.useLayoutEffect:nt.useEffect;function Jy({store:e,context:t,children:n,serverState:i,stabilityCheck:o="once",identityFunctionCheck:s="once"}){const l=nt.useMemo(()=>{const c=Yy(e);return{store:e,subscription:c,getServerState:i?()=>i:void 0,stabilityCheck:o,identityFunctionCheck:s}},[e,i,o,s]),a=nt.useMemo(()=>e.getState(),[e]);Qy(()=>{const{subscription:c}=l;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[l,a]);const u=t||jn;return nt.createElement(u.Provider,{value:l},n)}var Xy=Jy;function gm(e=jn){const t=e===jn?hm:Kc(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}var Zy=gm();function ex(e=jn){const t=e===jn?Zy:gm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var kt=ex();$y(zy.useSyncExternalStoreWithSelector);function Te(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 tx=typeof Symbol=="function"&&Symbol.observable||"@@observable",Cd=tx,Rl=()=>Math.random().toString(36).substring(7).split("").join("."),nx={INIT:`@@redux/INIT${Rl()}`,REPLACE:`@@redux/REPLACE${Rl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Rl()}`},cs=nx;function Gc(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 ym(e,t,n){if(typeof e!="function")throw new Error(Te(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Te(1));return n(ym)(e,t)}let i=e,o=t,s=new Map,l=s,a=0,u=!1;function c(){l===s&&(l=new Map,s.forEach((N,m)=>{l.set(m,N)}))}function d(){if(u)throw new Error(Te(3));return o}function f(N){if(typeof N!="function")throw new Error(Te(4));if(u)throw new Error(Te(5));let m=!0;c();const h=a++;return l.set(h,N),function(){if(m){if(u)throw new Error(Te(6));m=!1,c(),l.delete(h),s=null}}}function g(N){if(!Gc(N))throw new Error(Te(7));if(typeof N.type>"u")throw new Error(Te(8));if(typeof N.type!="string")throw new Error(Te(17));if(u)throw new Error(Te(9));try{u=!0,o=i(o,N)}finally{u=!1}return(s=l).forEach(h=>{h()}),N}function C(N){if(typeof N!="function")throw new Error(Te(10));i=N,g({type:cs.REPLACE})}function v(){const N=f;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Te(11));function h(){const y=m;y.next&&y.next(d())}return h(),{unsubscribe:N(h)}},[Cd](){return this}}}return g({type:cs.INIT}),{dispatch:g,subscribe:f,getState:d,replaceReducer:C,[Cd]:v}}function rx(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cs.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:cs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function ix(e){const t=Object.keys(e),n={};for(let s=0;s"u")throw a&&a.type,new Error(Te(14));c[f]=v,u=u||v!==C}return u=u||i.length!==Object.keys(l).length,u?c:l}}function us(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function ox(...e){return t=>(n,i)=>{const o=t(n,i);let s=()=>{throw new Error(Te(15))};const l={getState:o.getState,dispatch:(u,...c)=>s(u,...c)},a=e.map(u=>u(l));return s=us(...a)(o.dispatch),{...o,dispatch:s}}}function sx(e){return Gc(e)&&"type"in e&&typeof e.type=="string"}var xm=Symbol.for("immer-nothing"),bd=Symbol.for("immer-draftable"),lt=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Er=Object.getPrototypeOf;function Un(e){return!!e&&!!e[lt]}function Ht(e){var t;return e?jm(e)||Array.isArray(e)||!!e[bd]||!!((t=e.constructor)!=null&&t[bd])||Ls(e)||zs(e):!1}var lx=Object.prototype.constructor.toString();function jm(e){if(!e||typeof e!="object")return!1;const t=Er(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===lx}function ds(e,t){Fs(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,i)=>t(i,n,e))}function Fs(e){const t=e[lt];return t?t.type_:Array.isArray(e)?1:Ls(e)?2:zs(e)?3:0}function Da(e,t){return Fs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nm(e,t,n){const i=Fs(e);i===2?e.set(t,n):i===3?e.add(n):e[t]=n}function ax(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ls(e){return e instanceof Map}function zs(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function Ma(e,t){if(Ls(e))return new Map(e);if(zs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=jm(e);if(t===!0||t==="class_only"&&!n){const i=Object.getOwnPropertyDescriptors(e);delete i[lt];let o=Reflect.ownKeys(i);for(let s=0;s1&&(e.set=e.add=e.clear=e.delete=cx),Object.freeze(e),t&&Object.entries(e).forEach(([n,i])=>Qc(i,!0))),e}function cx(){Nt(2)}function Bs(e){return Object.isFrozen(e)}var ux={};function qn(e){const t=ux[e];return t||Nt(0,e),t}var Pi;function Cm(){return Pi}function dx(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wd(e,t){t&&(qn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fa(e){La(e),e.drafts_.forEach(fx),e.drafts_=null}function La(e){e===Pi&&(Pi=e.parent_)}function Sd(e){return Pi=dx(Pi,e)}function fx(e){const t=e[lt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function kd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[lt].modified_&&(Fa(t),Nt(4)),Ht(e)&&(e=fs(t,e),t.parent_||ps(t,e)),t.patches_&&qn("Patches").generateReplacementPatches_(n[lt].base_,e,t.patches_,t.inversePatches_)):e=fs(t,n,[]),Fa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xm?e:void 0}function fs(e,t,n){if(Bs(t))return t;const i=t[lt];if(!i)return ds(t,(o,s)=>Ed(e,i,t,o,s,n)),t;if(i.scope_!==e)return t;if(!i.modified_)return ps(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const o=i.copy_;let s=o,l=!1;i.type_===3&&(s=new Set(o),o.clear(),l=!0),ds(s,(a,u)=>Ed(e,i,o,a,u,n,l)),ps(e,o,!1),n&&e.patches_&&qn("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Ed(e,t,n,i,o,s,l){if(Un(o)){const a=s&&t&&t.type_!==3&&!Da(t.assigned_,i)?s.concat(i):void 0,u=fs(e,o,a);if(Nm(n,i,u),Un(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Ht(o)&&!Bs(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;fs(e,o),(!t||!t.scope_.parent_)&&typeof i!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,i)&&ps(e,o)}}function ps(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qc(t,n)}function px(e,t){const n=Array.isArray(e),i={type_:n?1:0,scope_:t?t.scope_:Cm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=i,s=Jc;n&&(o=[i],s=Oi);const{revoke:l,proxy:a}=Proxy.revocable(o,s);return i.draft_=a,i.revoke_=l,a}var Jc={get(e,t){if(t===lt)return e;const n=_n(e);if(!Da(n,t))return mx(e,n,t);const i=n[t];return e.finalized_||!Ht(i)?i:i===Al(e.base_,t)?(Il(e),e.copy_[t]=Ba(i,e)):i},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const i=bm(_n(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=Al(_n(e),t),s=o==null?void 0:o[lt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ax(n,o)&&(n!==void 0||Da(e.base_,t)))return!0;Il(e),za(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Al(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Il(e),za(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:i.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Er(e.base_)},setPrototypeOf(){Nt(12)}},Oi={};ds(Jc,(e,t)=>{Oi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Oi.deleteProperty=function(e,t){return Oi.set.call(this,e,t,void 0)};Oi.set=function(e,t,n){return Jc.set.call(this,e[0],t,n,e[0])};function Al(e,t){const n=e[lt];return(n?_n(n):e)[t]}function mx(e,t,n){var o;const i=bm(t,n);return i?"value"in i?i.value:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function bm(e,t){if(!(t in e))return;let n=Er(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Er(n)}}function za(e){e.modified_||(e.modified_=!0,e.parent_&&za(e.parent_))}function Il(e){e.copy_||(e.copy_=Ma(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var hx=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,i)=>{if(typeof t=="function"&&typeof n!="function"){const s=n;n=t;const l=this;return function(u=s,...c){return l.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Nt(6),i!==void 0&&typeof i!="function"&&Nt(7);let o;if(Ht(t)){const s=Sd(this),l=Ba(t,void 0);let a=!0;try{o=n(l),a=!1}finally{a?Fa(s):La(s)}return wd(s,i),kd(o,s)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===xm&&(o=void 0),this.autoFreeze_&&Qc(o,!0),i){const s=[],l=[];qn("Patches").generateReplacementPatches_(t,o,s,l),i(s,l)}return o}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...a)=>this.produceWithPatches(l,u=>t(u,...a));let i,o;return[this.produce(t,n,(l,a)=>{i=l,o=a}),i,o]},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){Ht(e)||Nt(8),Un(e)&&(e=vx(e));const t=Sd(this),n=Ba(e,void 0);return n[lt].isManual_=!0,La(t),n}finishDraft(e,t){const n=e&&e[lt];(!n||!n.isManual_)&&Nt(9);const{scope_:i}=n;return wd(i,t),kd(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const i=qn("Patches").applyPatches_;return Un(e)?i(e,t):this.produce(e,o=>i(o,t))}};function Ba(e,t){const n=Ls(e)?qn("MapSet").proxyMap_(e,t):zs(e)?qn("MapSet").proxySet_(e,t):px(e,t);return(t?t.scope_:Cm()).drafts_.push(n),n}function vx(e){return Un(e)||Nt(10,e),wm(e)}function wm(e){if(!Ht(e)||Bs(e))return e;const t=e[lt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ma(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Ma(e,!0);return ds(n,(i,o)=>{Nm(n,i,wm(o))}),t&&(t.finalized_=!1),n}var at=new hx,Sm=at.produce;at.produceWithPatches.bind(at);at.setAutoFreeze.bind(at);at.setUseStrictShallowCopy.bind(at);at.applyPatches.bind(at);at.createDraft.bind(at);at.finishDraft.bind(at);function km(e){return({dispatch:n,getState:i})=>o=>s=>typeof s=="function"?s(n,i,e):o(s)}var gx=km(),yx=km,xx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?us:us.apply(null,arguments)},jx=e=>e&&typeof e.match=="function";function ai(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(wt(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>sx(i)&&i.type===e,n}var Em=class Xr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xr.prototype)}static get[Symbol.species](){return Xr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xr(...t[0].concat(this)):new Xr(...t.concat(this))}};function _d(e){return Ht(e)?Sm(e,()=>{}):e}function Pd(e,t,n){if(e.has(t)){let o=e.get(t);return n.update&&(o=n.update(o,t,e),e.set(t,o)),o}if(!n.insert)throw new Error(wt(10));const i=n.insert(t,e);return e.set(t,i),i}function Nx(e){return typeof e=="boolean"}var Cx=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let l=new Em;return n&&(Nx(n)?l.push(gx):l.push(yx(n.extraArgument))),l},bx="RTK_autoBatch",_m=e=>t=>{setTimeout(t,e)},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:_m(10),Sx=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,l=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?wx:e.type==="callback"?e.queueNotification:_m(e.timeout),c=()=>{l=!1,s&&(s=!1,a.forEach(d=>d()))};return Object.assign({},i,{subscribe(d){const f=()=>o&&d(),g=i.subscribe(f);return a.add(d),()=>{g(),a.delete(d)}},dispatch(d){var f;try{return o=!((f=d==null?void 0:d.meta)!=null&&f[bx]),s=!o,s&&(l||(l=!0,u(c))),i.dispatch(d)}finally{o=!0}}})},kx=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new Em(e);return i&&o.push(Sx(typeof i=="object"?i:void 0)),o};function Ex(e){const t=Cx(),{reducer:n=void 0,middleware:i,devTools:o=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Gc(n))a=ix(n);else throw new Error(wt(1));let u;typeof i=="function"?u=i(t):u=t();let c=us;o&&(c=xx({trace:!1,...typeof o=="object"&&o}));const d=ox(...u),f=kx(d);let g=typeof l=="function"?l(f):f();const C=c(...g);return ym(a,s,C)}function Pm(e){const t={},n=[];let i;const o={addCase(s,l){const a=typeof s=="string"?s:s.type;if(!a)throw new Error(wt(28));if(a in t)throw new Error(wt(29));return t[a]=l,o},addMatcher(s,l){return n.push({matcher:s,reducer:l}),o},addDefaultCase(s){return i=s,o}};return e(o),[t,n,i]}function _x(e){return typeof e=="function"}function Px(e,t){let[n,i,o]=Pm(t),s;if(_x(e))s=()=>_d(e());else{const a=_d(e);s=()=>a}function l(a=s(),u){let c=[n[u.type],...i.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[o]),c.reduce((d,f)=>{if(f)if(Un(d)){const C=f(d,u);return C===void 0?d:C}else{if(Ht(d))return Sm(d,g=>f(g,u));{const g=f(d,u);if(g===void 0){if(d===null)return d;throw new Error(wt(9))}return g}}return d},a)}return l.getInitialState=s,l}var Ox=(e,t)=>jx(e)?e.match(t):e(t);function Tx(...e){return t=>e.some(n=>Ox(n,t))}var Rx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ax=(e=21)=>{let t="",n=e;for(;n--;)t+=Rx[Math.random()*64|0];return t},Ix=["name","message","stack","code"],Dl=class{constructor(e,t){ol(this,"_type");this.payload=e,this.meta=t}},Od=class{constructor(e,t){ol(this,"_type");this.payload=e,this.meta=t}},Dx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Ix)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,i){const o=ai(t+"/fulfilled",(u,c,d,f)=>({payload:u,meta:{...f||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),s=ai(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),l=ai(t+"/rejected",(u,c,d,f,g)=>({payload:f,error:(i&&i.serializeError||Dx)(u||"Rejected"),meta:{...g||{},arg:d,requestId:c,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(c,d,f)=>{const g=i!=null&&i.idGenerator?i.idGenerator(u):Ax(),C=new AbortController;let v,j;function N(h){j=h,C.abort()}const m=async function(){var y,k;let h;try{let x=(y=i==null?void 0:i.condition)==null?void 0:y.call(i,u,{getState:d,extra:f});if(Fx(x)&&(x=await x),x===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const w=new Promise((b,A)=>{v=()=>{A({name:"AbortError",message:j||"Aborted"})},C.signal.addEventListener("abort",v)});c(s(g,u,(k=i==null?void 0:i.getPendingMeta)==null?void 0:k.call(i,{requestId:g,arg:u},{getState:d,extra:f}))),h=await Promise.race([w,Promise.resolve(n(u,{dispatch:c,getState:d,extra:f,requestId:g,signal:C.signal,abort:N,rejectWithValue:(b,A)=>new Dl(b,A),fulfillWithValue:(b,A)=>new Od(b,A)})).then(b=>{if(b instanceof Dl)throw b;return b instanceof Od?o(b.payload,g,u,b.meta):o(b,g,u)})])}catch(x){h=x instanceof Dl?l(null,g,u,x.payload,x.meta):l(x,g,u)}finally{v&&C.signal.removeEventListener("abort",v)}return i&&!i.dispatchConditionRejection&&l.match(h)&&h.meta.condition||c(h),h}();return Object.assign(m,{abort:N,requestId:g,arg:u,unwrap(){return m.then(Mx)}})}}return Object.assign(a,{pending:s,rejected:l,fulfilled:o,settled:Tx(l,o),typePrefix:t})}return e.withTypes=()=>e,e})();function Mx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Lx=Symbol.for("rtk-slice-createasyncthunk");function zx(e,t){return`${e}/${t}`}function Bx({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Lx];return function(o){const{name:s,reducerPath:l=s}=o;if(!s)throw new Error(wt(11));typeof process<"u";const a=(typeof o.reducers=="function"?o.reducers($x()):o.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(p,y){const k=typeof p=="string"?p:p.type;if(!k)throw new Error(wt(12));if(k in c.sliceCaseReducersByType)throw new Error(wt(13));return c.sliceCaseReducersByType[k]=y,d},addMatcher(p,y){return c.sliceMatchers.push({matcher:p,reducer:y}),d},exposeAction(p,y){return c.actionCreators[p]=y,d},exposeCaseReducer(p,y){return c.sliceCaseReducersByName[p]=y,d}};u.forEach(p=>{const y=a[p],k={reducerName:p,type:zx(s,p),createNotation:typeof o.reducers=="function"};qx(y)?Hx(k,y,d,t):Ux(k,y,d)});function f(){const[p={},y=[],k=void 0]=typeof o.extraReducers=="function"?Pm(o.extraReducers):[o.extraReducers],x={...p,...c.sliceCaseReducersByType};return Px(o.initialState,w=>{for(let b in x)w.addCase(b,x[b]);for(let b of c.sliceMatchers)w.addMatcher(b.matcher,b.reducer);for(let b of y)w.addMatcher(b.matcher,b.reducer);k&&w.addDefaultCase(k)})}const g=p=>p,C=new Map;let v;function j(p,y){return v||(v=f()),v(p,y)}function N(){return v||(v=f()),v.getInitialState()}function m(p,y=!1){function k(w){let b=w[p];return typeof b>"u"&&y&&(b=N()),b}function x(w=g){const b=Pd(C,y,{insert:()=>new WeakMap});return Pd(b,w,{insert:()=>{const A={};for(const[L,$]of Object.entries(o.selectors??{}))A[L]=Wx($,w,N,y);return A}})}return{reducerPath:p,getSelectors:x,get selectors(){return x(k)},selectSlice:k}}const h={name:s,reducer:j,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:N,...m(l),injectInto(p,{reducerPath:y,...k}={}){const x=y??l;return p.inject({reducerPath:x,reducer:j},k),{...h,...m(x,!0)}}};return h}}function Wx(e,t,n,i){function o(s,...l){let a=t(s);return typeof a>"u"&&i&&(a=n()),e(a,...l)}return o.unwrapped=e,o}var Xc=Bx();function $x(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Ux({type:e,reducerName:t,createNotation:n},i,o){let s,l;if("reducer"in i){if(n&&!Vx(i))throw new Error(wt(17));s=i.reducer,l=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?ai(e,l):ai(e))}function qx(e){return e._reducerDefinitionType==="asyncThunk"}function Vx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Hx({type:e,reducerName:t},n,i,o){if(!o)throw new Error(wt(18));const{payloadCreator:s,fulfilled:l,pending:a,rejected:u,settled:c,options:d}=n,f=o(e,s,d);i.exposeAction(t,f),l&&i.addCase(f.fulfilled,l),a&&i.addCase(f.pending,a),u&&i.addCase(f.rejected,u),c&&i.addMatcher(f.settled,c),i.exposeCaseReducer(t,{fulfilled:l||uo,pending:a||uo,rejected:u||uo,settled:c||uo})}function uo(){}function wt(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 Om(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yx}=Object.prototype,{getPrototypeOf:Zc}=Object,Ws=(e=>t=>{const n=Yx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Et=e=>(e=e.toLowerCase(),t=>Ws(t)===e),$s=e=>t=>typeof t===e,{isArray:Rr}=Array,Ti=$s("undefined");function Kx(e){return e!==null&&!Ti(e)&&e.constructor!==null&&!Ti(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tm=Et("ArrayBuffer");function Gx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tm(e.buffer),t}const Qx=$s("string"),ot=$s("function"),Rm=$s("number"),Us=e=>e!==null&&typeof e=="object",Jx=e=>e===!0||e===!1,ko=e=>{if(Ws(e)!=="object")return!1;const t=Zc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xx=Et("Date"),Zx=Et("File"),e1=Et("Blob"),t1=Et("FileList"),n1=e=>Us(e)&&ot(e.pipe),r1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Ws(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},i1=Et("URLSearchParams"),[o1,s1,l1,a1]=["ReadableStream","Request","Response","Headers"].map(Et),c1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $i(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),Rr(e))for(i=0,o=e.length;i0;)if(o=n[i],t===o.toLowerCase())return o;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Im=e=>!Ti(e)&&e!==An;function Wa(){const{caseless:e}=Im(this)&&this||{},t={},n=(i,o)=>{const s=e&&Am(t,o)||o;ko(t[s])&&ko(i)?t[s]=Wa(t[s],i):ko(i)?t[s]=Wa({},i):Rr(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i($i(t,(o,s)=>{n&&ot(o)?e[s]=Om(o,n):e[s]=o},{allOwnKeys:i}),e),d1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f1=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},p1=(e,t,n,i)=>{let o,s,l;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!i||i(l,e,t))&&!a[l]&&(t[l]=e[l],a[l]=!0);e=n!==!1&&Zc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},m1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},h1=e=>{if(!e)return null;if(Rr(e))return e;let t=e.length;if(!Rm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},v1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zc(Uint8Array)),g1=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=i.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},y1=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},x1=Et("HTMLFormElement"),j1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,o){return i.toUpperCase()+o}),Td=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),N1=Et("RegExp"),Dm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};$i(n,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(i[s]=l||o)}),Object.defineProperties(e,i)},C1=e=>{Dm(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(ot(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},b1=(e,t)=>{const n={},i=o=>{o.forEach(s=>{n[s]=!0})};return Rr(e)?i(e):i(String(e).split(t)),n},w1=()=>{},S1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ml="abcdefghijklmnopqrstuvwxyz",Rd="0123456789",Mm={DIGIT:Rd,ALPHA:Ml,ALPHA_DIGIT:Ml+Ml.toUpperCase()+Rd},k1=(e=16,t=Mm.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function E1(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _1=e=>{const t=new Array(10),n=(i,o)=>{if(Us(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[o]=i;const s=Rr(i)?[]:{};return $i(i,(l,a)=>{const u=n(l,o+1);!Ti(u)&&(s[a]=u)}),t[o]=void 0,s}}return i};return n(e,0)},P1=Et("AsyncFunction"),O1=e=>e&&(Us(e)||ot(e))&&ot(e.then)&&ot(e.catch),Fm=((e,t)=>e?setImmediate:t?((n,i)=>(An.addEventListener("message",({source:o,data:s})=>{o===An&&s===n&&i.length&&i.shift()()},!1),o=>{i.push(o),An.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(An.postMessage)),T1=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||Fm,D={isArray:Rr,isArrayBuffer:Tm,isBuffer:Kx,isFormData:r1,isArrayBufferView:Gx,isString:Qx,isNumber:Rm,isBoolean:Jx,isObject:Us,isPlainObject:ko,isReadableStream:o1,isRequest:s1,isResponse:l1,isHeaders:a1,isUndefined:Ti,isDate:Xx,isFile:Zx,isBlob:e1,isRegExp:N1,isFunction:ot,isStream:n1,isURLSearchParams:i1,isTypedArray:v1,isFileList:t1,forEach:$i,merge:Wa,extend:u1,trim:c1,stripBOM:d1,inherits:f1,toFlatObject:p1,kindOf:Ws,kindOfTest:Et,endsWith:m1,toArray:h1,forEachEntry:g1,matchAll:y1,isHTMLForm:x1,hasOwnProperty:Td,hasOwnProp:Td,reduceDescriptors:Dm,freezeMethods:C1,toObjectSet:b1,toCamelCase:j1,noop:w1,toFiniteNumber:S1,findKey:Am,global:An,isContextDefined:Im,ALPHABET:Mm,generateString:k1,isSpecCompliantForm:E1,toJSONObject:_1,isAsyncFn:P1,isThenable:O1,setImmediate:Fm,asap:T1};function ne(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}D.inherits(ne,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:D.toJSONObject(this.config),code:this.code,status:this.status}}});const Lm=ne.prototype,zm={};["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=>{zm[e]={value:e}});Object.defineProperties(ne,zm);Object.defineProperty(Lm,"isAxiosError",{value:!0});ne.from=(e,t,n,i,o,s)=>{const l=Object.create(Lm);return D.toFlatObject(e,l,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ne.call(l,e.message,t,n,i,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const R1=null;function $a(e){return D.isPlainObject(e)||D.isArray(e)}function Bm(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function Ad(e,t,n){return e?e.concat(t).map(function(o,s){return o=Bm(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function A1(e){return D.isArray(e)&&!e.some($a)}const I1=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function qs(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,N){return!D.isUndefined(N[j])});const i=n.metaTokens,o=n.visitor||d,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(D.isDate(v))return v.toISOString();if(!u&&D.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(v)||D.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,j,N){let m=v;if(v&&!N&&typeof v=="object"){if(D.endsWith(j,"{}"))j=i?j:j.slice(0,-2),v=JSON.stringify(v);else if(D.isArray(v)&&A1(v)||(D.isFileList(v)||D.endsWith(j,"[]"))&&(m=D.toArray(v)))return j=Bm(j),m.forEach(function(p,y){!(D.isUndefined(p)||p===null)&&t.append(l===!0?Ad([j],y,s):l===null?j:j+"[]",c(p))}),!1}return $a(v)?!0:(t.append(Ad(N,j,s),c(v)),!1)}const f=[],g=Object.assign(I1,{defaultVisitor:d,convertValue:c,isVisitable:$a});function C(v,j){if(!D.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+j.join("."));f.push(v),D.forEach(v,function(m,h){(!(D.isUndefined(m)||m===null)&&o.call(t,m,D.isString(h)?h.trim():h,j,g))===!0&&C(m,j?j.concat(h):[h])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return C(e),t}function Id(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function eu(e,t){this._pairs=[],e&&qs(e,this,t)}const Wm=eu.prototype;Wm.append=function(t,n){this._pairs.push([t,n])};Wm.toString=function(t){const n=t?function(i){return t.call(this,i,Id)}:Id;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function D1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $m(e,t,n){if(!t)return e;const i=n&&n.encode||D1,o=n&&n.serialize;let s;if(o?s=o(t,n):s=D.isURLSearchParams(t)?t.toString():new eu(t,n).toString(i),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Dd{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Um={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},M1=typeof URLSearchParams<"u"?URLSearchParams:eu,F1=typeof FormData<"u"?FormData:null,L1=typeof Blob<"u"?Blob:null,z1={isBrowser:!0,classes:{URLSearchParams:M1,FormData:F1,Blob:L1},protocols:["http","https","file","blob","url","data"]},tu=typeof window<"u"&&typeof document<"u",Ua=typeof navigator=="object"&&navigator||void 0,B1=tu&&(!Ua||["ReactNative","NativeScript","NS"].indexOf(Ua.product)<0),W1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$1=tu&&window.location.href||"http://localhost",U1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tu,hasStandardBrowserEnv:B1,hasStandardBrowserWebWorkerEnv:W1,navigator:Ua,origin:$1},Symbol.toStringTag,{value:"Module"})),Je={...U1,...z1};function q1(e,t){return qs(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,i,o,s){return Je.isNode&&D.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function V1(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function H1(e){const t={},n=Object.keys(e);let i;const o=n.length;let s;for(i=0;i=n.length;return l=!l&&D.isArray(o)?o.length:l,u?(D.hasOwnProp(o,l)?o[l]=[o[l],i]:o[l]=i,!a):((!o[l]||!D.isObject(o[l]))&&(o[l]=[]),t(n,i,o[l],s)&&D.isArray(o[l])&&(o[l]=H1(o[l])),!a)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(i,o)=>{t(V1(i),o,n,0)}),n}return null}function Y1(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Ui={transitional:Um,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",o=i.indexOf("application/json")>-1,s=D.isObject(t);if(s&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return o?JSON.stringify(qm(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return q1(t,this.formSerializer).toString();if((a=D.isFileList(t))||i.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return qs(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Y1(t)):t}],transformResponse:[function(t){const n=this.transitional||Ui.transitional,i=n&&n.forcedJSONParsing,o=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(i&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(l)throw a.name==="SyntaxError"?ne.from(a,ne.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Je.classes.FormData,Blob:Je.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{Ui.headers[e]={}});const K1=D.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"]),G1=e=>{const t={};let n,i,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),i=l.substring(o+1).trim(),!(!n||t[n]&&K1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Md=Symbol("internals");function Yr(e){return e&&String(e).trim().toLowerCase()}function Eo(e){return e===!1||e==null?e:D.isArray(e)?e.map(Eo):String(e)}function Q1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const J1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fl(e,t,n,i,o){if(D.isFunction(i))return i.call(this,t,n);if(o&&(t=n),!!D.isString(t)){if(D.isString(i))return t.indexOf(i)!==-1;if(D.isRegExp(i))return i.test(t)}}function X1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function Z1(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(o,s,l){return this[i].call(this,t,o,s,l)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,i){const o=this;function s(a,u,c){const d=Yr(u);if(!d)throw new Error("header name must be a non-empty string");const f=D.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Eo(a))}const l=(a,u)=>D.forEach(a,(c,d)=>s(c,d,u));if(D.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(D.isString(t)&&(t=t.trim())&&!J1(t))l(G1(t),n);else if(D.isHeaders(t))for(const[a,u]of t.entries())s(u,a,i);else t!=null&&s(n,t,i);return this}get(t,n){if(t=Yr(t),t){const i=D.findKey(this,t);if(i){const o=this[i];if(!n)return o;if(n===!0)return Q1(o);if(D.isFunction(n))return n.call(this,o,i);if(D.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Yr(t),t){const i=D.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Fl(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let o=!1;function s(l){if(l=Yr(l),l){const a=D.findKey(i,l);a&&(!n||Fl(i,i[a],a,n))&&(delete i[a],o=!0)}}return D.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let i=n.length,o=!1;for(;i--;){const s=n[i];(!t||Fl(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,i={};return D.forEach(this,(o,s)=>{const l=D.findKey(i,s);if(l){n[l]=Eo(o),delete n[s];return}const a=t?X1(s):String(s).trim();a!==s&&delete n[s],n[a]=Eo(o),i[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(i,o)=>{i!=null&&i!==!1&&(n[o]=t&&D.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(o=>i.set(o)),i}static accessor(t){const i=(this[Md]=this[Md]={accessors:{}}).accessors,o=this.prototype;function s(l){const a=Yr(l);i[a]||(Z1(o,l),i[a]=!0)}return D.isArray(t)?t.forEach(s):s(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});D.freezeMethods(Xe);function Ll(e,t){const n=this||Ui,i=t||n,o=Xe.from(i.headers);let s=i.data;return D.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Vm(e){return!!(e&&e.__CANCEL__)}function Ar(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Ar,ne,{__CANCEL__:!0});function Hm(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function e0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function t0(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o=0,s=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=i[s];l||(l=c),n[o]=u,i[o]=c;let f=s,g=0;for(;f!==o;)g+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-l{n=d,o=null,s&&(clearTimeout(s),s=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=i?l(c,d):(o=c,s||(s=setTimeout(()=>{s=null,l(o)},i-f)))},()=>o&&l(o)]}const ms=(e,t,n=3)=>{let i=0;const o=t0(50,250);return n0(s=>{const l=s.loaded,a=s.lengthComputable?s.total:void 0,u=l-i,c=o(u),d=l<=a;i=l;const f={loaded:l,total:a,progress:a?l/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-l)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Fd=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Ld=e=>(...t)=>D.asap(()=>e(...t)),r0=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let i;function o(s){let l=s;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=o(window.location.href),function(l){const a=D.isString(l)?o(l):l;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}(),i0=Je.hasStandardBrowserEnv?{write(e,t,n,i,o,s){const l=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),D.isString(i)&&l.push("path="+i),D.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.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 o0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function s0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ym(e,t){return e&&!o0(t)?s0(e,t):t}const zd=e=>e instanceof Xe?{...e}:e;function Vn(e,t){t=t||{};const n={};function i(c,d,f){return D.isPlainObject(c)&&D.isPlainObject(d)?D.merge.call({caseless:f},c,d):D.isPlainObject(d)?D.merge({},d):D.isArray(d)?d.slice():d}function o(c,d,f){if(D.isUndefined(d)){if(!D.isUndefined(c))return i(void 0,c,f)}else return i(c,d,f)}function s(c,d){if(!D.isUndefined(d))return i(void 0,d)}function l(c,d){if(D.isUndefined(d)){if(!D.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function a(c,d,f){if(f in t)return i(c,d);if(f in e)return i(void 0,c)}const u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a,headers:(c,d)=>o(zd(c),zd(d),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||o,g=f(e[d],t[d],d);D.isUndefined(g)&&f!==a||(n[d]=g)}),n}const Km=e=>{const t=Vn({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:a}=t;t.headers=l=Xe.from(l),t.url=$m(Ym(t.baseURL,t.url),e.params,e.paramsSerializer),a&&l.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(D.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(i&&D.isFunction(i)&&(i=i(t)),i||i!==!1&&r0(t.url))){const c=o&&s&&i0.read(s);c&&l.set(o,c)}return t},l0=typeof XMLHttpRequest<"u",a0=l0&&function(e){return new Promise(function(n,i){const o=Km(e);let s=o.data;const l=Xe.from(o.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=o,d,f,g,C,v;function j(){C&&C(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let N=new XMLHttpRequest;N.open(o.method.toUpperCase(),o.url,!0),N.timeout=o.timeout;function m(){if(!N)return;const p=Xe.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:p,config:e,request:N};Hm(function(w){n(w),j()},function(w){i(w),j()},k),N=null}"onloadend"in N?N.onloadend=m:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(m)},N.onabort=function(){N&&(i(new ne("Request aborted",ne.ECONNABORTED,e,N)),N=null)},N.onerror=function(){i(new ne("Network Error",ne.ERR_NETWORK,e,N)),N=null},N.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Um;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),i(new ne(y,k.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,N)),N=null},s===void 0&&l.setContentType(null),"setRequestHeader"in N&&D.forEach(l.toJSON(),function(y,k){N.setRequestHeader(k,y)}),D.isUndefined(o.withCredentials)||(N.withCredentials=!!o.withCredentials),a&&a!=="json"&&(N.responseType=o.responseType),c&&([g,v]=ms(c,!0),N.addEventListener("progress",g)),u&&N.upload&&([f,C]=ms(u),N.upload.addEventListener("progress",f),N.upload.addEventListener("loadend",C)),(o.cancelToken||o.signal)&&(d=p=>{N&&(i(!p||p.type?new Ar(null,e,N):p),N.abort(),N=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const h=e0(o.url);if(h&&Je.protocols.indexOf(h)===-1){i(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,e));return}N.send(s||null)})},c0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,o;const s=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;i.abort(d instanceof ne?d:new Ar(d instanceof Error?d.message:d))}};let l=t&&setTimeout(()=>{l=null,s(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=i;return u.unsubscribe=()=>D.asap(a),u}},u0=function*(e,t){let n=e.byteLength;if(!t||n{const o=d0(e,t);let s=0,l,a=u=>{l||(l=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){a(),u.close();return}let f=d.byteLength;if(n){let g=s+=f;n(g)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),o.return()}},{highWaterMark:2})},Vs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Gm=Vs&&typeof ReadableStream=="function",p0=Vs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Qm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m0=Gm&&Qm(()=>{let e=!1;const t=new Request(Je.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wd=64*1024,qa=Gm&&Qm(()=>D.isReadableStream(new Response("").body)),hs={stream:qa&&(e=>e.body)};Vs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!hs[t]&&(hs[t]=D.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,i)})})})(new Response);const h0=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await p0(e)).byteLength},v0=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??h0(t)},g0=Vs&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:s,timeout:l,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:g}=Km(e);c=c?(c+"").toLowerCase():"text";let C=c0([o,s&&s.toAbortSignal()],l),v;const j=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let N;try{if(u&&m0&&n!=="get"&&n!=="head"&&(N=await v0(d,i))!==0){let k=new Request(t,{method:"POST",body:i,duplex:"half"}),x;if(D.isFormData(i)&&(x=k.headers.get("content-type"))&&d.setContentType(x),k.body){const[w,b]=Fd(N,ms(Ld(u)));i=Bd(k.body,Wd,w,b)}}D.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...g,signal:C,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:m?f:void 0});let h=await fetch(v);const p=qa&&(c==="stream"||c==="response");if(qa&&(a||p&&j)){const k={};["status","statusText","headers"].forEach(A=>{k[A]=h[A]});const x=D.toFiniteNumber(h.headers.get("content-length")),[w,b]=a&&Fd(x,ms(Ld(a),!0))||[];h=new Response(Bd(h.body,Wd,w,()=>{b&&b(),j&&j()}),k)}c=c||"text";let y=await hs[D.findKey(hs,c)||"text"](h,e);return!p&&j&&j(),await new Promise((k,x)=>{Hm(k,x,{data:y,headers:Xe.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:v})})}catch(m){throw j&&j(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,e,v),{cause:m.cause||m}):ne.from(m,m&&m.code,e,v)}}),Va={http:R1,xhr:a0,fetch:g0};D.forEach(Va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $d=e=>`- ${e}`,y0=e=>D.isFunction(e)||e===null||e===!1,Jm={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let s=0;s`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since : `+s.map($d).join(` `):" "+$d(s[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:Va};function zl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ar(null,e)}function Ud(e){return zl(e),e.headers=Xe.from(e.headers),e.data=Ll.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jm.getAdapter(e.adapter||Ui.adapter)(e).then(function(i){return zl(e),i.data=Ll.call(e,e.transformResponse,i),i.headers=Xe.from(i.headers),i},function(i){return Vm(i)||(zl(e),i&&i.response&&(i.response.data=Ll.call(e,e.transformResponse,i.response),i.response.headers=Xe.from(i.response.headers))),Promise.reject(i)})}const Xm="1.7.7",nu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nu[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const qd={};nu.transitional=function(t,n,i){function o(s,l){return"[Axios v"+Xm+"] Transitional option '"+s+"'"+l+(i?". "+i:"")}return(s,l,a)=>{if(t===!1)throw new ne(o(l," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!qd[l]&&(qd[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,a):!0}};function x0(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const s=i[o],l=t[s];if(l){const a=e[s],u=a===void 0||l(a,s,e);if(u!==!0)throw new ne("option "+s+" must be "+u,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+s,ne.ERR_BAD_OPTION)}}const Ha={assertOptions:x0,validators:nu},Qt=Ha.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new Dd,response:new Dd}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vn(this.defaults,n);const{transitional:i,paramsSerializer:o,headers:s}=n;i!==void 0&&Ha.assertOptions(i,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),o!=null&&(D.isFunction(o)?n.paramsSerializer={serialize:o}:Ha.assertOptions(o,{encode:Qt.function,serialize:Qt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&D.merge(s.common,s[n.method]);s&&D.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=Xe.concat(l,s);const a=[];let u=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(u=u&&j.synchronous,a.unshift(j.fulfilled,j.rejected))});const c=[];this.interceptors.response.forEach(function(j){c.push(j.fulfilled,j.rejected)});let d,f=0,g;if(!u){const v=[Ud.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),g=v.length,d=Promise.resolve(n);f{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s;const l=new Promise(a=>{i.subscribe(a),s=a}).then(o);return l.cancel=function(){i.unsubscribe(s)},l},t(function(s,l,a){i.reason||(i.reason=new Ar(s,l,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ru(function(o){t=o}),cancel:t}}}function j0(e){return function(n){return e.apply(null,n)}}function N0(e){return D.isObject(e)&&e.isAxiosError===!0}const Ya={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(Ya).forEach(([e,t])=>{Ya[t]=e});function Zm(e){const t=new Mn(e),n=Om(Mn.prototype.request,t);return D.extend(n,Mn.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Zm(Vn(e,o))},n}const fe=Zm(Ui);fe.Axios=Mn;fe.CanceledError=Ar;fe.CancelToken=ru;fe.isCancel=Vm;fe.VERSION=Xm;fe.toFormData=qs;fe.AxiosError=ne;fe.Cancel=fe.CanceledError;fe.all=function(t){return Promise.all(t)};fe.spread=j0;fe.isAxiosError=N0;fe.mergeConfig=Vn;fe.AxiosHeaders=Xe;fe.formToJSON=e=>qm(D.isHTMLForm(e)?new FormData(e):e);fe.getAdapter=Jm.getAdapter;fe.HttpStatusCode=Ya;fe.default=fe;const C0="http://67.225.129.127:3002",Kt=fe.create({baseURL:C0});Kt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const b0=e=>Kt.post("/users/signup",e),w0=e=>Kt.post("/users/signin",e),S0=(e,t,n)=>Kt.get(`/users/${e}/verify/${t}`,n),k0=e=>Kt.post("/properties",e),E0=(e,t,n)=>Kt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),_0=e=>Kt.get(`/properties/${e}`,e),P0=(e,t)=>Kt.put(`/properties/${e}`,t),O0=e=>Kt.get(`/users/${e}`),_o=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const i=await w0(e);return t("/dashboard"),i.data}catch(i){return n(i.response.data)}}),Po=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:i})=>{try{const o=await b0(e);return n.success("Register Successfully"),t("/registrationsuccess"),o.data}catch(o){return i(o.response.data)}}),Oo=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await fe.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),eh=Xc({name:"auth",initialState:{user:null,error:"",loading:!1,isLoading:!1},reducers:{setUser:(e,t)=>{e.user=t.payload},setLogout:e=>{localStorage.clear(),e.user=null},setUserDetails:(e,t)=>{e.user=t.payload},updateUser:(e,t)=>{const n=t.payload;e.user={...e.user,...n}}},extraReducers:e=>{e.addCase(_o.pending,t=>{t.loading=!0}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Po.pending,t=>{t.loading=!0}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(Oo.pending,t=>{t.isLoading=!0}).addCase(Oo.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(Oo.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:eC,setLogout:T0,setUserDetails:tC}=eh.actions,R0=eh.reducer,To=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await O0(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:i})=>{try{return(await S0(e,t,n)).data.message}catch(o){return i(o.response.data)}}),A0=Xc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(To.pending,t=>{t.loading=!0,t.error=null}).addCase(To.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(To.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Ro.pending,t=>{t.loading=!0,t.error=null}).addCase(Ro.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),I0=A0.reducer,Ao=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await k0(e)).data}catch(n){return t(n.response.data)}}),Io=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:i})=>{try{return(await E0(e,t,n)).data}catch(o){return i(o.response.data)}}),ci=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await _0(e)).data}catch(n){return t(n.response.data)}}),Do=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await P0(e,t)).data}catch(i){return n(i.response.data)}}),ui=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await fe.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),D0=Xc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Ao.pending,t=>{t.status="loading"}).addCase(Ao.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Ao.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Io.pending,t=>{t.loading=!0}).addCase(Io.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(Io.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(ci.pending,t=>{t.status="loading"}).addCase(ci.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(ci.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Do.pending,t=>{t.status="loading"}).addCase(Do.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Do.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(ui.pending,t=>{t.loading=!0}).addCase(ui.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(ui.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),M0=D0.reducer,F0=Ex({reducer:{auth:R0,user:I0,property:M0}});/** * @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 Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function th(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function z0(){return Math.random().toString(36).substr(2,8)}function Hd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ka(e,t,n,i){return n===void 0&&(n=null),Ri({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ir(t):t,{state:n,key:t&&t.key||i||z0()})}function vs(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),i&&i!=="#"&&(t+=i.charAt(0)==="#"?i:"#"+i),t}function Ir(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function B0(e,t,n,i){i===void 0&&(i={});let{window:o=document.defaultView,v5Compat:s=!1}=i,l=o.history,a=ln.Pop,u=null,c=d();c==null&&(c=0,l.replaceState(Ri({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function f(){a=ln.Pop;let N=d(),m=N==null?null:N-c;c=N,u&&u({action:a,location:j.location,delta:m})}function g(N,m){a=ln.Push;let h=Ka(j.location,N,m);c=d()+1;let p=Hd(h,c),y=j.createHref(h);try{l.pushState(p,"",y)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(y)}s&&u&&u({action:a,location:j.location,delta:1})}function C(N,m){a=ln.Replace;let h=Ka(j.location,N,m);c=d();let p=Hd(h,c),y=j.createHref(h);l.replaceState(p,"",y),s&&u&&u({action:a,location:j.location,delta:0})}function v(N){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof N=="string"?N:vs(N);return h=h.replace(/ $/,"%20"),Ne(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let j={get action(){return a},get location(){return e(o,l)},listen(N){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Vd,f),u=N,()=>{o.removeEventListener(Vd,f),u=null}},createHref(N){return t(o,N)},createURL:v,encodeLocation(N){let m=v(N);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:g,replace:C,go(N){return l.go(N)}};return j}var Yd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Yd||(Yd={}));function W0(e,t,n){return n===void 0&&(n="/"),$0(e,t,n,!1)}function $0(e,t,n,i){let o=typeof t=="string"?Ir(t):t,s=_r(o.pathname||"/",n);if(s==null)return null;let l=nh(e);U0(l);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};u.relativePath.startsWith("/")&&(Ne(u.relativePath.startsWith(i),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(i.length));let c=gn([i,u.relativePath]),d=n.concat(u);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),nh(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Q0(c,s.index),routesMeta:d})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,l);else for(let u of rh(s.path))o(s,l,u)}),t}function rh(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let l=rh(i.join("/")),a=[];return a.push(...l.map(u=>u===""?s:[s,u].join("/"))),o&&a.push(...l),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function U0(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:J0(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}const q0=/^:[\w-]+$/,V0=3,H0=2,Y0=1,K0=10,G0=-2,Kd=e=>e==="*";function Q0(e,t){let n=e.split("/"),i=n.length;return n.some(Kd)&&(i+=G0),t&&(i+=H0),n.filter(o=>!Kd(o)).reduce((o,s)=>o+(q0.test(s)?V0:s===""?Y0:K0),i)}function J0(e,t){return e.length===t.length&&e.slice(0,-1).every((i,o)=>i===t[o])?e[e.length-1]-t[t.length-1]:0}function X0(e,t,n){let{routesMeta:i}=e,o={},s="/",l=[];for(let a=0;a{let{paramName:g,isOptional:C}=d;if(g==="*"){let j=a[f]||"";l=s.slice(0,s.length-j.length).replace(/(.)\/+$/,"$1")}const v=a[f];return C&&!v?c[g]=void 0:c[g]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:l,pattern:e}}function Z0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),th(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 i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,u)=>(i.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}function ej(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return th(!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 _r(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function tj(e,t){t===void 0&&(t="/");let{pathname:n,search:i="",hash:o=""}=typeof e=="string"?Ir(e):e;return{pathname:n?n.startsWith("/")?n:nj(n,t):t,search:oj(i),hash:sj(o)}}function nj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Bl(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function rj(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ih(e,t){let n=rj(e);return t?n.map((i,o)=>o===n.length-1?i.pathname:i.pathnameBase):n.map(i=>i.pathnameBase)}function oh(e,t,n,i){i===void 0&&(i=!1);let o;typeof e=="string"?o=Ir(e):(o=Ri({},e),Ne(!o.pathname||!o.pathname.includes("?"),Bl("?","pathname","search",o)),Ne(!o.pathname||!o.pathname.includes("#"),Bl("#","pathname","hash",o)),Ne(!o.search||!o.search.includes("#"),Bl("#","search","hash",o)));let s=e===""||o.pathname==="",l=s?"/":o.pathname,a;if(l==null)a=n;else{let f=t.length-1;if(!i&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),f-=1;o.pathname=g.join("/")}a=f>=0?t[f]:"/"}let u=tj(o,a),c=l&&l!=="/"&&l.endsWith("/"),d=(s||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const gn=e=>e.join("/").replace(/\/\/+/g,"/"),ij=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sh=["post","put","patch","delete"];new Set(sh);const aj=["get",...sh];new Set(aj);/** * 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 Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),R.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){i.go(c);return}let f=oh(c,JSON.parse(l),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:gn([t,f.pathname])),(d.replace?i.replace:i.push)(f,d.state,d)},[t,i,l,s,e])}function Mr(){let{matches:e}=R.useContext(Sn),t=e[e.length-1];return t?t.params:{}}function Ks(e,t){let{relative:n}=t===void 0?{}:t,{future:i}=R.useContext(wn),{matches:o}=R.useContext(Sn),{pathname:s}=Vi(),l=JSON.stringify(ih(o,i.v7_relativeSplatPath));return R.useMemo(()=>oh(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function dj(e,t){return fj(e,t)}function fj(e,t,n,i){qi()||Ne(!1);let{navigator:o}=R.useContext(wn),{matches:s}=R.useContext(Sn),l=s[s.length-1],a=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let c=Vi(),d;if(t){var f;let N=typeof t=="string"?Ir(t):t;u==="/"||(f=N.pathname)!=null&&f.startsWith(u)||Ne(!1),d=N}else d=c;let g=d.pathname||"/",C=g;if(u!=="/"){let N=u.replace(/^\//,"").split("/");C="/"+g.replace(/^\//,"").split("/").slice(N.length).join("/")}let v=W0(e,{pathname:C}),j=gj(v&&v.map(N=>Object.assign({},N,{params:Object.assign({},a,N.params),pathname:gn([u,o.encodeLocation?o.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?u:gn([u,o.encodeLocation?o.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),s,n,i);return t&&j?R.createElement(Ys.Provider,{value:{location:Ai({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ln.Pop}},j):j}function pj(){let e=Nj(),t=lj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,null)}const mj=R.createElement(pj,null);class hj extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?R.createElement(Sn.Provider,{value:this.props.routeContext},R.createElement(ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vj(e){let{routeContext:t,match:n,children:i}=e,o=R.useContext(Hs);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(Sn.Provider,{value:t},i)}function gj(e,t,n,i){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),i===void 0&&(i=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=i)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let d=l.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);d>=0||Ne(!1),l=l.slice(0,Math.min(l.length,d+1))}let u=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let d=0;d=0?l=l.slice(0,c+1):l=[l[0]];break}}}return l.reduceRight((d,f,g)=>{let C,v=!1,j=null,N=null;n&&(C=a&&f.route.id?a[f.route.id]:void 0,j=f.route.errorElement||mj,u&&(c<0&&g===0?(v=!0,N=null):c===g&&(v=!0,N=f.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,g+1)),h=()=>{let p;return C?p=j:v?p=N:f.route.Component?p=R.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=d,R.createElement(vj,{match:f,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||g===0)?R.createElement(hj,{location:n.location,revalidation:n.revalidation,component:j,error:C,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var uh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(uh||{}),ys=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}(ys||{});function yj(e){let t=R.useContext(Hs);return t||Ne(!1),t}function xj(e){let t=R.useContext(lh);return t||Ne(!1),t}function jj(e){let t=R.useContext(Sn);return t||Ne(!1),t}function dh(e){let t=jj(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function Nj(){var e;let t=R.useContext(ah),n=xj(ys.UseRouteError),i=dh(ys.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[i]}function Cj(){let{router:e}=yj(uh.UseNavigateStable),t=dh(ys.UseNavigateStable),n=R.useRef(!1);return ch(()=>{n.current=!0}),R.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ai({fromRouteId:t},s)))},[e,t])}function Ee(e){Ne(!1)}function bj(e){let{basename:t="/",children:n=null,location:i,navigationType:o=ln.Pop,navigator:s,static:l=!1,future:a}=e;qi()&&Ne(!1);let u=t.replace(/^\/*/,"/"),c=R.useMemo(()=>({basename:u,navigator:s,static:l,future:Ai({v7_relativeSplatPath:!1},a)}),[u,a,s,l]);typeof i=="string"&&(i=Ir(i));let{pathname:d="/",search:f="",hash:g="",state:C=null,key:v="default"}=i,j=R.useMemo(()=>{let N=_r(d,u);return N==null?null:{location:{pathname:N,search:f,hash:g,state:C,key:v},navigationType:o}},[u,d,f,g,C,v,o]);return j==null?null:R.createElement(wn.Provider,{value:c},R.createElement(Ys.Provider,{children:n,value:j}))}function wj(e){let{children:t,location:n}=e;return dj(Ga(t),n)}new Promise(()=>{});function Ga(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(i,o)=>{if(!R.isValidElement(i))return;let s=[...t,o];if(i.type===R.Fragment){n.push.apply(n,Ga(i.props.children,s));return}i.type!==Ee&&Ne(!1),!i.props.index||!i.props.children||Ne(!1);let l={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(l.children=Ga(i.props.children,s)),n.push(l)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Sj(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kj(e,t){return e.button===0&&(!t||t==="_self")&&!Sj(e)}const Ej=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],_j=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Pj="6";try{window.__reactRouterVersion=Pj}catch{}const Oj=R.createContext({isTransitioning:!1}),Tj="startTransition",Gd=$l[Tj];function Rj(e){let{basename:t,children:n,future:i,window:o}=e,s=R.useRef();s.current==null&&(s.current=L0({window:o,v5Compat:!0}));let l=s.current,[a,u]=R.useState({action:l.action,location:l.location}),{v7_startTransition:c}=i||{},d=R.useCallback(f=>{c&&Gd?Gd(()=>u(f)):u(f)},[u,c]);return R.useLayoutEffect(()=>l.listen(d),[l,d]),R.createElement(bj,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:i})}const Aj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ij=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dj=R.forwardRef(function(t,n){let{onClick:i,relative:o,reloadDocument:s,replace:l,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:f}=t,g=fh(t,Ej),{basename:C}=R.useContext(wn),v,j=!1;if(typeof c=="string"&&Ij.test(c)&&(v=c,Aj))try{let p=new URL(window.location.href),y=c.startsWith("//")?new URL(p.protocol+c):new URL(c),k=_r(y.pathname,C);y.origin===p.origin&&k!=null?c=k+y.search+y.hash:j=!0}catch{}let N=cj(c,{relative:o}),m=Fj(c,{replace:l,state:a,target:u,preventScrollReset:d,relative:o,unstable_viewTransition:f});function h(p){i&&i(p),p.defaultPrevented||m(p)}return R.createElement("a",xs({},g,{href:v||N,onClick:j||s?i:h,ref:n,target:u}))}),he=R.forwardRef(function(t,n){let{"aria-current":i="page",caseSensitive:o=!1,className:s="",end:l=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,f=fh(t,_j),g=Ks(u,{relative:f.relative}),C=Vi(),v=R.useContext(lh),{navigator:j,basename:N}=R.useContext(wn),m=v!=null&&Lj(g)&&c===!0,h=j.encodeLocation?j.encodeLocation(g).pathname:g.pathname,p=C.pathname,y=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;o||(p=p.toLowerCase(),y=y?y.toLowerCase():null,h=h.toLowerCase()),y&&N&&(y=_r(y,N)||y);const k=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let x=p===h||!l&&p.startsWith(h)&&p.charAt(k)==="/",w=y!=null&&(y===h||!l&&y.startsWith(h)&&y.charAt(h.length)==="/"),b={isActive:x,isPending:w,isTransitioning:m},A=x?i:void 0,L;typeof s=="function"?L=s(b):L=[s,x?"active":null,w?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(b):a;return R.createElement(Dj,xs({},f,{"aria-current":A,className:L,ref:n,style:$,to:u,unstable_viewTransition:c}),typeof d=="function"?d(b):d)});var Qa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qa||(Qa={}));var Qd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qd||(Qd={}));function Mj(e){let t=R.useContext(Hs);return t||Ne(!1),t}function Fj(e,t){let{target:n,replace:i,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a}=t===void 0?{}:t,u=Dr(),c=Vi(),d=Ks(e,{relative:l});return R.useCallback(f=>{if(kj(f,n)){f.preventDefault();let g=i!==void 0?i:vs(c)===vs(d);u(e,{replace:g,state:o,preventScrollReset:s,relative:l,unstable_viewTransition:a})}},[c,u,d,i,o,n,e,s,l,a])}function Lj(e,t){t===void 0&&(t={});let n=R.useContext(Oj);n==null&&Ne(!1);let{basename:i}=Mj(Qa.useViewTransitionState),o=Ks(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=_r(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=_r(n.nextLocation.pathname,i)||n.nextLocation.pathname;return gs(o.pathname,l)!=null||gs(o.pathname,s)!=null}function ph(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Fn=e=>typeof e=="string",rt=e=>typeof e=="function",Mo=e=>Fn(e)||rt(e)?e:null,Ja=e=>R.isValidElement(e)||Fn(e)||rt(e)||Ii(e);function zj(e,t,n){n===void 0&&(n=300);const{scrollHeight:i,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=i+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Gs(e){let{enter:t,exit:n,appendPosition:i=!1,collapse:o=!0,collapseDuration:s=300}=e;return function(l){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:g,playToast:C}=l;const v=i?`${t}--${u}`:t,j=i?`${n}--${u}`:n,N=R.useRef(0);return R.useLayoutEffect(()=>{const m=f.current,h=v.split(" "),p=y=>{y.target===f.current&&(C(),m.removeEventListener("animationend",p),m.removeEventListener("animationcancel",p),N.current===0&&y.type!=="animationcancel"&&m.classList.remove(...h))};m.classList.add(...h),m.addEventListener("animationend",p),m.addEventListener("animationcancel",p)},[]),R.useEffect(()=>{const m=f.current,h=()=>{m.removeEventListener("animationend",h),o?zj(m,d,s):d()};g||(c?h():(N.current=1,m.className+=` ${j}`,m.addEventListener("animationend",h)))},[g]),T.createElement(T.Fragment,null,a)}}function Jd(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 Be=new Map;let Di=[];const Xa=new Set,Bj=e=>Xa.forEach(t=>t(e)),mh=()=>Be.size>0;function hh(e,t){var n;if(t)return!((n=Be.get(t))==null||!n.isToastActive(e));let i=!1;return Be.forEach(o=>{o.isToastActive(e)&&(i=!0)}),i}function vh(e,t){Ja(e)&&(mh()||Di.push({content:e,options:t}),Be.forEach(n=>{n.buildToast(e,t)}))}function Xd(e,t){Be.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function Wj(e){const{subscribe:t,getSnapshot:n,setProps:i}=R.useRef(function(s){const l=s.containerId||1;return{subscribe(a){const u=function(d,f,g){let C=1,v=0,j=[],N=[],m=[],h=f;const p=new Map,y=new Set,k=()=>{m=Array.from(p.values()),y.forEach(b=>b())},x=b=>{N=b==null?[]:N.filter(A=>A!==b),k()},w=b=>{const{toastId:A,onOpen:L,updateId:$,children:Z}=b.props,Q=$==null;b.staleId&&p.delete(b.staleId),p.set(A,b),N=[...N,b.props.toastId].filter(J=>J!==b.staleId),k(),g(Jd(b,Q?"added":"updated")),Q&&rt(L)&&L(R.isValidElement(Z)&&Z.props)};return{id:d,props:h,observe:b=>(y.add(b),()=>y.delete(b)),toggle:(b,A)=>{p.forEach(L=>{A!=null&&A!==L.props.toastId||rt(L.toggle)&&L.toggle(b)})},removeToast:x,toasts:p,clearQueue:()=>{v-=j.length,j=[]},buildToast:(b,A)=>{if((z=>{let{containerId:V,toastId:Y,updateId:X}=z;const ee=V?V!==d:d!==1,te=p.has(Y)&&X==null;return ee||te})(A))return;const{toastId:L,updateId:$,data:Z,staleId:Q,delay:J}=A,I=()=>{x(L)},B=$==null;B&&v++;const G={...h,style:h.toastStyle,key:C++,...Object.fromEntries(Object.entries(A).filter(z=>{let[V,Y]=z;return Y!=null})),toastId:L,updateId:$,data:Z,closeToast:I,isIn:!1,className:Mo(A.className||h.toastClassName),bodyClassName:Mo(A.bodyClassName||h.bodyClassName),progressClassName:Mo(A.progressClassName||h.progressClassName),autoClose:!A.isLoading&&(O=A.autoClose,P=h.autoClose,O===!1||Ii(O)&&O>0?O:P),deleteToast(){const z=p.get(L),{onClose:V,children:Y}=z.props;rt(V)&&V(R.isValidElement(Y)&&Y.props),g(Jd(z,"removed")),p.delete(L),v--,v<0&&(v=0),j.length>0?w(j.shift()):k()}};var O,P;G.closeButton=h.closeButton,A.closeButton===!1||Ja(A.closeButton)?G.closeButton=A.closeButton:A.closeButton===!0&&(G.closeButton=!Ja(h.closeButton)||h.closeButton);let M=b;R.isValidElement(b)&&!Fn(b.type)?M=R.cloneElement(b,{closeToast:I,toastProps:G,data:Z}):rt(b)&&(M=b({closeToast:I,toastProps:G,data:Z}));const F={content:M,props:G,staleId:Q};h.limit&&h.limit>0&&v>h.limit&&B?j.push(F):Ii(J)?setTimeout(()=>{w(F)},J):w(F)},setProps(b){h=b},setToggle:(b,A)=>{p.get(b).toggle=A},isToastActive:b=>N.some(A=>A===b),getSnapshot:()=>h.newestOnTop?m.reverse():m}}(l,s,Bj);Be.set(l,u);const c=u.observe(a);return Di.forEach(d=>vh(d.content,d.options)),Di=[],()=>{c(),Be.delete(l)}},setProps(a){var u;(u=Be.get(l))==null||u.setProps(a)},getSnapshot(){var a;return(a=Be.get(l))==null?void 0:a.getSnapshot()}}}(e)).current;i(e);const o=R.useSyncExternalStore(t,n,n);return{getToastToRender:function(s){if(!o)return[];const l=new Map;return o.forEach(a=>{const{position:u}=a.props;l.has(u)||l.set(u,[]),l.get(u).push(a)}),Array.from(l,a=>s(a[0],a[1]))},isToastActive:hh,count:o==null?void 0:o.length}}function $j(e){const[t,n]=R.useState(!1),[i,o]=R.useState(!1),s=R.useRef(null),l=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var g,C;function v(){n(!0)}function j(){n(!1)}function N(p){const y=s.current;l.canDrag&&y&&(l.didMove=!0,t&&j(),l.delta=e.draggableDirection==="x"?p.clientX-l.start:p.clientY-l.start,l.start!==p.clientX&&(l.canCloseOnClick=!1),y.style.transform=`translate3d(${e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,y.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function m(){document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",m);const p=s.current;if(l.canDrag&&l.didMove&&p){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),e.closeToast(),void e.collapseAll();p.style.transition="transform 0.2s, opacity 0.2s",p.style.removeProperty("transform"),p.style.removeProperty("opacity")}}(C=Be.get((g={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||C.setToggle(g.id,g.fn),R.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||j(),window.addEventListener("focus",v),window.addEventListener("blur",j),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",j)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(p){if(e.draggable===!0||e.draggable===p.pointerType){l.didMove=!1,document.addEventListener("pointermove",N),document.addEventListener("pointerup",m);const y=s.current;l.canCloseOnClick=!0,l.canDrag=!0,y.style.transition="none",e.draggableDirection==="x"?(l.start=p.clientX,l.removalDistance=y.offsetWidth*(e.draggablePercent/100)):(l.start=p.clientY,l.removalDistance=y.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(p){const{top:y,bottom:k,left:x,right:w}=s.current.getBoundingClientRect();p.nativeEvent.type!=="touchend"&&e.pauseOnHover&&p.clientX>=x&&p.clientX<=w&&p.clientY>=y&&p.clientY<=k?j():v()}};return a&&u&&(h.onMouseEnter=j,e.stacked||(h.onMouseLeave=v)),f&&(h.onClick=p=>{d&&d(p),l.canCloseOnClick&&c()}),{playToast:v,pauseToast:j,isRunning:t,preventExitTransition:i,toastRef:s,eventHandlers:h}}function Uj(e){let{delay:t,isRunning:n,closeToast:i,type:o="default",hide:s,className:l,style:a,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:g}=e;const C=s||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const j=an("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),N=rt(l)?l({rtl:d,type:o,defaultClassName:j}):an(j,l),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&i()}};return T.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},T.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${g} Toastify__progress-bar--${o}`}),T.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:N,style:v,...m}))}let qj=1;const gh=()=>""+qj++;function Vj(e){return e&&(Fn(e.toastId)||Ii(e.toastId))?e.toastId:gh()}function di(e,t){return vh(e,t),t.toastId}function js(e,t){return{...t,type:t&&t.type||e,toastId:Vj(t)}}function fo(e){return(t,n)=>di(t,js(e,n))}function oe(e,t){return di(e,js("default",t))}oe.loading=(e,t)=>di(e,js("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),oe.promise=function(e,t,n){let i,{pending:o,error:s,success:l}=t;o&&(i=Fn(o)?oe.loading(o,n):oe.loading(o.render,{...n,...o}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,g)=>{if(f==null)return void oe.dismiss(i);const C={type:d,...a,...n,data:g},v=Fn(f)?{render:f}:f;return i?oe.update(i,{...C,...v}):oe(v.render,{...C,...v}),g},c=rt(e)?e():e;return c.then(d=>u("success",l,d)).catch(d=>u("error",s,d)),c},oe.success=fo("success"),oe.info=fo("info"),oe.error=fo("error"),oe.warning=fo("warning"),oe.warn=oe.warning,oe.dark=(e,t)=>di(e,js("default",{theme:"dark",...t})),oe.dismiss=function(e){(function(t){var n;if(mh()){if(t==null||Fn(n=t)||Ii(n))Be.forEach(i=>{i.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const i=Be.get(t.containerId);i?i.removeToast(t.id):Be.forEach(o=>{o.removeToast(t.id)})}}else Di=Di.filter(i=>t!=null&&i.options.toastId!==t)})(e)},oe.clearWaitingQueue=function(e){e===void 0&&(e={}),Be.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},oe.isActive=hh,oe.update=function(e,t){t===void 0&&(t={});const n=((i,o)=>{var s;let{containerId:l}=o;return(s=Be.get(l||1))==null?void 0:s.toasts.get(i)})(e,t);if(n){const{props:i,content:o}=n,s={delay:100,...i,...t,toastId:t.toastId||e,updateId:gh()};s.toastId!==e&&(s.staleId=e);const l=s.render||o;delete s.render,di(l,s)}},oe.done=e=>{oe.update(e,{progress:1})},oe.onChange=function(e){return Xa.add(e),()=>{Xa.delete(e)}},oe.play=e=>Xd(!0,e),oe.pause=e=>Xd(!1,e);const Hj=typeof window<"u"?R.useLayoutEffect:R.useEffect,po=e=>{let{theme:t,type:n,isLoading:i,...o}=e;return T.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...o})},Wl={info:function(e){return T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement(po,{...e},T.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 T.createElement("div",{className:"Toastify__spinner"})}},Yj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:o,playToast:s}=$j(e),{closeButton:l,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:g,transition:C,position:v,className:j,style:N,bodyClassName:m,bodyStyle:h,progressClassName:p,progressStyle:y,updateId:k,role:x,progress:w,rtl:b,toastId:A,deleteToast:L,isIn:$,isLoading:Z,closeOnClick:Q,theme:J}=e,I=an("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":b},{"Toastify__toast--close-on-click":Q}),B=rt(j)?j({rtl:b,position:v,type:d,defaultClassName:I}):an(I,j),G=function(F){let{theme:z,type:V,isLoading:Y,icon:X}=F,ee=null;const te={theme:z,type:V};return X===!1||(rt(X)?ee=X({...te,isLoading:Y}):R.isValidElement(X)?ee=R.cloneElement(X,te):Y?ee=Wl.spinner():(re=>re in Wl)(V)&&(ee=Wl[V](te))),ee}(e),O=!!w||!u,P={closeToast:g,type:d,theme:J};let M=null;return l===!1||(M=rt(l)?l(P):R.isValidElement(l)?R.cloneElement(l,P):function(F){let{closeToast:z,theme:V,ariaLabel:Y="close"}=F;return T.createElement("button",{className:`Toastify__close-button Toastify__close-button--${V}`,type:"button",onClick:X=>{X.stopPropagation(),z(X)},"aria-label":Y},T.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},T.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"})))}(P)),T.createElement(C,{isIn:$,done:L,position:v,preventExitTransition:n,nodeRef:i,playToast:s},T.createElement("div",{id:A,onClick:c,"data-in":$,className:B,...o,style:N,ref:i},T.createElement("div",{...$&&{role:x},className:rt(m)?m({type:d}):an("Toastify__toast-body",m),style:h},G!=null&&T.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Z})},G),T.createElement("div",null,a)),M,T.createElement(Uj,{...k&&!O?{key:`pb-${k}`}:{},rtl:b,theme:J,delay:u,isRunning:t,isIn:$,closeToast:g,hide:f,type:d,style:y,className:p,controlledProgress:O,progress:w||0})))},Qs=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Kj=Gs(Qs("bounce",!0));Gs(Qs("slide",!0));Gs(Qs("zoom"));Gs(Qs("flip"));const Gj={position:"top-right",transition:Kj,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Qj(e){let t={...Gj,...e};const n=e.stacked,[i,o]=R.useState(!0),s=R.useRef(null),{getToastToRender:l,isToastActive:a,count:u}=Wj(t),{className:c,style:d,rtl:f,containerId:g}=t;function C(j){const N=an("Toastify__toast-container",`Toastify__toast-container--${j}`,{"Toastify__toast-container--rtl":f});return rt(c)?c({position:j,rtl:f,defaultClassName:N}):an(N,Mo(c))}function v(){n&&(o(!0),oe.play())}return Hj(()=>{if(n){var j;const N=s.current.querySelectorAll('[data-in="true"]'),m=12,h=(j=t.position)==null?void 0:j.includes("top");let p=0,y=0;Array.from(N).reverse().forEach((k,x)=>{const w=k;w.classList.add("Toastify__toast--stacked"),x>0&&(w.dataset.collapsed=`${i}`),w.dataset.pos||(w.dataset.pos=h?"top":"bot");const b=p*(i?.2:1)+(i?0:m*x);w.style.setProperty("--y",`${h?b:-1*b}px`),w.style.setProperty("--g",`${m}`),w.style.setProperty("--s",""+(1-(i?y:0))),p+=w.offsetHeight,y+=.025})}},[i,u,n]),T.createElement("div",{ref:s,className:"Toastify",id:g,onMouseEnter:()=>{n&&(o(!1),oe.pause())},onMouseLeave:v},l((j,N)=>{const m=N.length?{...d}:{...d,pointerEvents:"none"};return T.createElement("div",{className:C(j),style:m,key:`container-${j}`},N.map(h=>{let{content:p,props:y}=h;return T.createElement(Yj,{...y,stacked:n,collapseAll:v,isIn:a(y.toastId,y.containerId),style:y.style,key:`toast-${y.key}`},p)}))}))}const qe=()=>{const e=new Date().getFullYear();return r.jsx(r.Fragment,{children:r.jsxs("div",{children:[r.jsx("div",{className:"footer_section layout_padding",children:r.jsxs("div",{className:"container",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12"})}),r.jsx("div",{className:"footer_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),r.jsx("div",{className:"footer_menu",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),r.jsx("li",{children:r.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),r.jsx("li",{children:r.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),r.jsx("li",{children:r.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),r.jsx("p",{className:"lorem_text",children:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem"})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),r.jsxs("div",{className:"form-group",children:[r.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),r.jsx("div",{className:"subscribe_bt",children:r.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),r.jsx("div",{className:"social_icon",children:r.jsxs("ul",{children:[r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),r.jsx("li",{children:r.jsx("a",{href:"#",children:r.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),r.jsx("div",{className:"copyright_section",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},Jj="/assets/logo-Cb1x1exd.png",Oe=()=>{var o,s;const{user:e}=Ze(l=>({...l.auth})),t=kt(),n=Dr(),i=()=>{t(T0()),n("/")};return r.jsx(r.Fragment,{children:r.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:r.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[r.jsxs("div",{className:"d-flex align-items-center",children:[r.jsx("img",{src:Jj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),r.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),r.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[r.jsxs("ul",{className:"navbar-nav ml-auto",children:[r.jsx("li",{className:"nav-item active",children:r.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),r.jsx("li",{className:"nav-item",children:r.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),r.jsx("li",{className:"nav-item",children:r.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),r.jsx("li",{className:"nav-item",children:r.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),r.jsx("li",{className:"nav-item",children:r.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),r.jsx("li",{className:"nav-item",children:r.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(o=e==null?void 0:e.result)!=null&&o._id?r.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):r.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(s=e==null?void 0:e.result)!=null&&s._id?r.jsx(he,{to:"/login",children:r.jsx("p",{className:"header-text",onClick:i,style:{fontWeight:"bold"},children:"Logout"})}):r.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},Xj=()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{children:[r.jsx("div",{className:"header_section",children:r.jsx("div",{className:"banner_section layout_padding",children:r.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[r.jsxs("div",{className:"carousel-inner",children:[r.jsx("div",{className:"carousel-item active",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),r.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),r.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),r.jsx("div",{className:"carousel-item",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-sm-12",children:r.jsxs("div",{className:"banner_taital_main",children:[r.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),r.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),r.jsxs("div",{className:"btn_main",children:[r.jsx("div",{className:"started_text active",children:r.jsx("a",{href:"#",children:"Contact US"})}),r.jsx("div",{className:"started_text",children:r.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),r.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:r.jsx("i",{className:"fa fa-angle-left"})}),r.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:r.jsx("i",{className:"fa fa-angle-right"})})]})})}),r.jsx("div",{className:"services_section layout_padding",children:r.jsxs("div",{className:"container-fluid",children:[r.jsx("div",{className:"row",children:r.jsxs("div",{className:"col-sm-12",children:[r.jsx("h1",{className:"services_taital",children:"Our Services"}),r.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),r.jsx("div",{className:"services_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main active",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-1.png"})}),r.jsx("h4",{className:"development_text",children:"Dedication Services"}),r.jsx("p",{className:"services_text",children:"Real estate investing even on a very small scale remains a tried and true means of building and individual cash flow and wealth"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-2.png"})}),r.jsx("h4",{className:"development_text",children:"Building work Reports"}),r.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-3.png"})}),r.jsx("h4",{className:"development_text",children:"Reporting continuously"}),r.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})}),r.jsx("div",{className:"col-lg-3 col-sm-6",children:r.jsxs("div",{className:"box_main",children:[r.jsx("div",{className:"service_img",children:r.jsx("img",{src:"images/icon-4.png"})}),r.jsx("h4",{className:"development_text",children:"Manage your investment "}),r.jsx("p",{className:"services_text",children:"We offer a comprehensive set of tools and services to fully facilitate all your real estate investment management needs"}),r.jsx("div",{className:"readmore_bt",children:r.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),r.jsx(qe,{})]}),Zj=()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsxs("div",{className:"about_section layout_padding",children:[r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("h1",{className:"about_taital",children:"About Us"}),r.jsxs("p",{className:"about_text",children:["There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All"," "]}),r.jsx("div",{className:"read_bt_1",children:r.jsx("a",{href:"#",children:"Read More"})})]}),r.jsx("div",{className:"col-md-6",children:r.jsx("div",{className:"about_img",children:r.jsx("div",{className:"video_bt",children:r.jsx("div",{className:"play_icon",children:r.jsx("img",{src:"images/play-icon.png"})})})})})]})}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{})]}),r.jsx(qe,{})]}),eN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-6",children:r.jsx("form",{action:!0,children:r.jsxs("div",{className:"mail_section_1",children:[r.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),r.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),r.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),r.jsx("div",{className:"send_bt",children:r.jsx("a",{href:"#",children:"SEND"})})]})})}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img",children:r.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),r.jsx(qe,{})]});var Ft=function(){return Ft=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{const[e,t]=R.useState(SN),[n,i]=R.useState(!1),{loading:o,error:s}=Ze(k=>({...k.auth})),{title:l,email:a,password:u,firstName:c,middleName:d,lastName:f,confirmPassword:g,termsconditions:C,userType:v}=e,j=kt(),N=Dr();R.useEffect(()=>{s&&oe.error(s)},[s]),R.useEffect(()=>{i(l!=="None"&&a&&u&&c&&d&&f&&g&&C&&v!=="")},[l,a,u,c,d,f,g,C,v]);const m=k=>{if(k.preventDefault(),u!==g)return oe.error("Password should match");n?j(Po({formValue:e,navigate:N,toast:oe})):oe.error("Please fill in all fields and select all checkboxes")},h=k=>k.charAt(0).toUpperCase()+k.slice(1),p=k=>{const{name:x,value:w,type:b,checked:A}=k.target;t(b==="checkbox"?L=>({...L,[x]:A}):L=>({...L,[x]:x==="email"||x==="password"||x==="confirmPassword"?w:h(w)}))},y=k=>{t(x=>({...x,userType:k.target.value}))};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Registration"}),r.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),r.jsx("hr",{})]})})}),r.jsx("form",{onSubmit:m,children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsxs("label",{className:"form-label",children:["Please select the role. ",r.jsx("br",{}),r.jsx("br",{})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:y,required:!0}),r.jsx("label",{className:"form-check-label",children:"Lender"})]}),r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:y,required:!0}),r.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),r.jsx("br",{}),r.jsx("br",{})]})]})}),r.jsxs("div",{className:"col-12",children:[r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l,onChange:p,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]}),r.jsx("br",{})]}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:p,placeholder:"First Name",required:"required"}),r.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:p,placeholder:"Middle Name",required:"required"}),r.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"text",className:"form-control",value:f,name:"lastName",onChange:p,placeholder:"Last Name",required:"required"}),r.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:p,placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:p,placeholder:"Password",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",value:g,name:"confirmPassword",onChange:p,placeholder:"confirmPassword",required:"required"}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:C,name:"termsconditions",checked:C,onChange:p,required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||o,children:[o&&r.jsx(yh.Bars,{}),"Sign up"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(qe,{})]})},EN={email:"",password:""},_N=()=>{const[e,t]=R.useState(EN),{loading:n,error:i}=Ze(d=>({...d.auth})),{email:o,password:s}=e,l=kt(),a=Dr();R.useEffect(()=>{i&&oe.error(i)},[i]);const u=d=>{d.preventDefault(),o&&s&&l(_o({formValue:e,navigate:a,toast:oe}))},c=d=>{let{name:f,value:g}=d.target;t({...e,[f]:g})};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:r.jsx("div",{className:"text-bg-primary",children:r.jsxs("div",{className:"px-4",children:[r.jsx("hr",{className:"border-primary-subtle mb-4"}),r.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),r.jsx("div",{className:"text-endx",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"currentColor",className:"bi bi-grip-horizontal",viewBox:"0 0 16 16",children:r.jsx("path",{d:"M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})})})]})})}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"mb-4",children:r.jsx("h2",{className:"h3",children:"Please Login"})})})}),r.jsx("form",{method:"POST",children:r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12"}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:o,name:"email",onChange:c,required:!0}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:s,name:"password",onChange:c,required:!0}),r.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-check",children:[r.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),r.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&r.jsx(yh.Bars,{}),"Sign In"]})})})]})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",r.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),r.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})})}),r.jsx(qe,{})]})},Fo="/assets/samplepic-BM_cnzgz.jpg";var xh={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(ov,function(){return function(n){function i(s){if(o[s])return o[s].exports;var l=o[s]={exports:{},id:s,loaded:!1};return n[s].call(l.exports,l,l.exports,i),l.loaded=!0,l.exports}var o={};return i.m=n,i.c=o,i.p="",i(0)}([function(n,i,o){function s(C){return C&&C.__esModule?C:{default:C}}function l(C,v){if(!(C instanceof v))throw new TypeError("Cannot call a class as a function")}function a(C,v){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?C:v}function u(C,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);C.prototype=Object.create(v&&v.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(C,v):C.__proto__=v)}Object.defineProperty(i,"__esModule",{value:!0});var c=function(){function C(v,j){for(var N=0;N1)for(var k=1;k1?d-1:0),g=1;g2?f-2:0),C=2;C1){for(var J=Array(Q),I=0;I"u"||b.$$typeof!==m)){var G=typeof y=="function"?y.displayName||y.name||"Unknown":y;A&&u(b,G),L&&c(b,G)}return p(y,A,L,$,Z,C.current,b)},p.createFactory=function(y){var k=p.createElement.bind(null,y);return k.type=y,k},p.cloneAndReplaceKey=function(y,k){var x=p(y.type,k,y.ref,y._self,y._source,y._owner,y.props);return x},p.cloneElement=function(y,k,x){var w,b=g({},y.props),A=y.key,L=y.ref,$=y._self,Z=y._source,Q=y._owner;if(k!=null){l(k)&&(L=k.ref,Q=C.current),a(k)&&(A=""+k.key);var J;y.type&&y.type.defaultProps&&(J=y.type.defaultProps);for(w in k)N.call(k,w)&&!h.hasOwnProperty(w)&&(k[w]===void 0&&J!==void 0?b[w]=J[w]:b[w]=k[w])}var I=arguments.length-2;if(I===1)b.children=x;else if(I>1){for(var B=Array(I),G=0;G1?c-1:0),f=1;f2?d-2:0),g=2;g.")}return w}function c(x,w){if(x._store&&!x._store.validated&&x.key==null){x._store.validated=!0;var b=y.uniqueKey||(y.uniqueKey={}),A=u(w);if(!b[A]){b[A]=!0;var L="";x&&x._owner&&x._owner!==g.current&&(L=" It was passed a child from "+x._owner.getName()+"."),s.env.NODE_ENV!=="production"&&h(!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',A,L,C.getCurrentStackAddendum(x))}}}function d(x,w){if(typeof x=="object"){if(Array.isArray(x))for(var b=0;b1?Y-1:0),ee=1;ee"u"||F===null)return""+F;var z=Q(F);if(z==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return z}function I(F){var z=J(F);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(F){return F.constructor&&F.constructor.name?F.constructor.name:P}var G=typeof Symbol=="function"&&Symbol.iterator,O="@@iterator",P="<>",M={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(),arrayOf:p,element:y(),instanceOf:k,node:A(),objectOf:w,oneOf:x,oneOfType:b,shape:L};return j.prototype=Error.prototype,M.checkPropTypes=d,M.PropTypes=M,M}}).call(i,o(1))},function(n,i){function o(a){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+a).replace(u,function(f){return c[f]});return"$"+d}function s(a){var u=/(=0|=2)/g,c={"=0":"=","=2":":"},d=a[0]==="."&&a[1]==="$"?a.substring(2):a.substring(1);return(""+d).replace(u,function(f){return c[f]})}var l={escape:o,unescape:s};n.exports=l},function(n,i,o){(function(s){var l=o(5),a=o(2),u=function(m){var h=this;if(h.instancePool.length){var p=h.instancePool.pop();return h.call(p,m),p}return new h(m)},c=function(m,h){var p=this;if(p.instancePool.length){var y=p.instancePool.pop();return p.call(y,m,h),y}return new p(m,h)},d=function(m,h,p){var y=this;if(y.instancePool.length){var k=y.instancePool.pop();return y.call(k,m,h,p),k}return new y(m,h,p)},f=function(m,h,p,y){var k=this;if(k.instancePool.length){var x=k.instancePool.pop();return k.call(x,m,h,p,y),x}return new k(m,h,p,y)},g=function(m){var h=this;m instanceof h||(s.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):l("25")),m.destructor(),h.instancePool.length{const[e,t]=R.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},i=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},o=kt(),{status:s,error:l}=Ze(S=>S.property),{user:a}=Ze(S=>({...S.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=R.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]=R.useState(!1),C=(S,E)=>{const _=[...c.images];_[E].file=S.base64,d({...c,images:_})},v=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},j=S=>{const E=c.images.filter((_,U)=>U!==S);d({...c,images:E})},N=(S,E)=>{const _=[...c.images];_[S].title=E.target.value,d({...c,images:_})},m=(S,E,_)=>{const{name:U,value:q}=S.target;if(_==="propertyTaxInfo"){const H=[...c.propertyTaxInfo];H[E][U]=q,d({...c,propertyTaxInfo:H})}else d({...c,[U]:q})},h=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},p=S=>{const E=c.propertyTaxInfo.filter((_,U)=>U!==S);d({...c,propertyTaxInfo:E})},y=()=>{d(S=>({...S,costPaidAtoB:[...S.costPaidAtoB,{title:"",price:""}]}))},k=S=>{const E=c.costPaidAtoB.filter((_,U)=>U!==S);d(_=>({..._,costPaidAtoB:E}))},x=(S,E,_)=>{const U=[...c.costPaidAtoB];U[S][E]=_,d(q=>({...q,costPaidAtoB:U}))},w=(S,E)=>{let _=S.target.value;if(_=_.replace(/^\$/,"").trim(),/^\d*\.?\d*$/.test(_)||_===""){const q=c.costPaidAtoB.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,costPaidAtoB:q})}else{const q=c.costPaidAtoB.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,costPaidAtoB:q})}},b=()=>{const S=c.costPaidAtoB.reduce((_,U)=>{const q=parseFloat(U.price)||0;return _+q},0),E=parseFloat(c.purchaseCost)||0;return S+E},A=()=>{d(S=>({...S,credits:[...S.credits,{title:"",price:""}]}))},L=S=>{const E=c.credits.filter((_,U)=>U!==S);d(_=>({..._,credits:E}))},$=(S,E,_)=>{const U=[...c.credits];U[S][E]=_,d(q=>({...q,credits:U}))},Z=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.credits.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,credits:q})}else{const q=c.credits.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,credits:q})}},Q=()=>c.credits.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),J=()=>{const S=c.costPaidAtoB.reduce((U,q)=>{const H=parseFloat(q.price)||0;return U+H},0),E=c.credits.reduce((U,q)=>{const H=parseFloat(q.price)||0;return U+H},0),_=parseFloat(c.purchaseCost)||0;return S+E+_},I=()=>{d(S=>({...S,cashAdjustments:[...S.cashAdjustments,{title:"",price:""}]}))},B=S=>{const E=c.cashAdjustments.filter((_,U)=>U!==S);d(_=>({..._,cashAdjustments:E}))},G=(S,E,_)=>{const U=[...c.cashAdjustments];U[S][E]=_,d(q=>({...q,cashAdjustments:U}))},O=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.cashAdjustments.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,cashAdjustments:q})}else{const q=c.cashAdjustments.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,cashAdjustments:q})}},P=()=>c.cashAdjustments.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),M=()=>{const S=P(),E=Q(),_=b();return S+E+_},F=()=>{d(S=>({...S,incidentalCost:[...S.incidentalCost,{title:"",price:""}]}))},z=S=>{const E=c.incidentalCost.filter((_,U)=>U!==S);d(_=>({..._,incidentalCost:E}))},V=(S,E,_)=>{const U=[...c.incidentalCost];U[S][E]=_,d(q=>({...q,incidentalCost:U}))},Y=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.incidentalCost.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,incidentalCost:q})}else{const q=c.incidentalCost.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,incidentalCost:q})}},X=()=>c.incidentalCost.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),ee=()=>{d(S=>({...S,carryCosts:[...S.carryCosts,{title:"",price:""}]}))},te=S=>{const E=c.carryCosts.filter((_,U)=>U!==S);d(_=>({..._,carryCosts:E}))},re=(S,E,_)=>{const U=[...c.carryCosts];U[S][E]=_,d(q=>({...q,carryCosts:U}))},ae=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.carryCosts.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,carryCosts:q})}else{const q=c.carryCosts.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,carryCosts:q})}},ce=()=>c.carryCosts.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),Ce=()=>{d(S=>({...S,renovationCost:[...S.renovationCost,{title:"",price:""}]}))},Kn=S=>{const E=c.renovationCost.filter((_,U)=>U!==S);d(_=>({..._,renovationCost:E}))},Hi=(S,E,_)=>{const U=[...c.renovationCost];U[S][E]=_,d(q=>({...q,renovationCost:U}))},bh=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.renovationCost.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,renovationCost:q})}else{const q=c.renovationCost.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,renovationCost:q})}},Js=()=>c.renovationCost.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),Xs=()=>{const S=X(),E=ce(),_=Js();return S+E+_},Fr=()=>{const S=Xs(),E=M();return S+E},wh=()=>{d(S=>({...S,costPaidOutofClosing:[...S.costPaidOutofClosing,{title:"",price:""}]}))},Sh=S=>{const E=c.costPaidOutofClosing.filter((_,U)=>U!==S);d(_=>({..._,costPaidOutofClosing:E}))},kh=(S,E,_)=>{const U=[...c.costPaidOutofClosing];U[S][E]=_,d(q=>({...q,costPaidOutofClosing:U}))},Eh=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.costPaidOutofClosing.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,costPaidOutofClosing:q})}else{const q=c.costPaidOutofClosing.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,costPaidOutofClosing:q})}},Zs=()=>c.costPaidOutofClosing.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),Gn=()=>{const S=c.sellingPriceBtoC,E=Zs();return S-E},_h=()=>{d(S=>({...S,adjustments:[...S.adjustments,{title:"",price:""}]}))},Ph=S=>{const E=c.adjustments.filter((_,U)=>U!==S);d(_=>({..._,adjustments:E}))},Oh=(S,E,_)=>{const U=[...c.adjustments];U[S][E]=_,d(q=>({...q,adjustments:U}))},Th=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.adjustments.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,adjustments:q})}else{const q=c.adjustments.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,adjustments:q})}},el=()=>c.adjustments.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),ou=()=>{const S=Gn(),E=el();return S+E},Rh=()=>{d(S=>({...S,incomestatement:[...S.incomestatement,{title:"",price:""}]}))},Ah=S=>{const E=c.incomestatement.filter((_,U)=>U!==S);d(_=>({..._,incomestatement:E}))},Ih=(S,E,_)=>{const U=[...c.incomestatement];U[S][E]=_,d(q=>({...q,incomestatement:U}))},Dh=(S,E)=>{const _=S.target.value;if(/^\d*\.?\d*$/.test(_)||_===""){const q=c.incomestatement.map((H,ie)=>ie===E?{...H,price:_,isInvalid:!1}:H);d({...c,incomestatement:q})}else{const q=c.incomestatement.map((H,ie)=>ie===E?{...H,isInvalid:!0}:H);d({...c,incomestatement:q})}},tl=()=>c.incomestatement.reduce((S,E)=>{const _=parseFloat(E.price);return S+(isNaN(_)?0:_)},0),Lr=()=>{const S=tl(),E=Gn();return S+E},nl=()=>{const S=isNaN(parseFloat(Lr()))?0:parseFloat(Lr()),E=isNaN(parseFloat(c.shorttermrental))?0:parseFloat(c.shorttermrental),_=isNaN(parseFloat(c.OtherIncome))?0:parseFloat(c.OtherIncome),U=isNaN(parseFloat(c.InsuranceClaim))?0:parseFloat(c.InsuranceClaim),q=isNaN(parseFloat(c.LongTermRental))?0:parseFloat(c.LongTermRental),H=isNaN(parseFloat(Fr()))?0:parseFloat(Fr());return S+E+_+U+q-H},rl=()=>{const S=nl(),E=c.FinancingCostClosingCost;return S-E},su=()=>rl(),Mh=()=>{var S,E,_,U,q,H;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 ie=su(),cu=b(),Lh=J(),zh=P(),Bh=X(),Wh=Q(),$h=M(),Uh=ce(),qh=Js(),Vh=Xs(),Hh=Fr(),Yh=Zs(),Kh=el(),Gh=ou(),Qh=Gn(),Jh=Gn(),Xh=tl(),Zh=Lr(),ev=nl(),tv=rl(),il={...c,userfirstname:(S=a==null?void 0:a.result)==null?void 0:S.firstName,usermiddlename:(E=a==null?void 0:a.result)==null?void 0:E.middleName,userlastname:(_=a==null?void 0:a.result)==null?void 0:_.lastName,usertitle:(U=a==null?void 0:a.result)==null?void 0:U.title,useremail:(q=a==null?void 0:a.result)==null?void 0:q.email,userId:(H=a==null?void 0:a.result)==null?void 0:H.userId,totalPurchaseCosts:cu,totalcredits:Wh,totalPurchaseCostsaftercredits:Lh,totalcashAdjustments:zh,totalcashrequiredonsettlement:$h,totalincidentalCost:Bh,totalcarryCosts:Uh,totalrenovationCost:qh,totalRenovationsandHoldingCost:Vh,totalCoststoBuyAtoB:Hh,costPaidOutofClosing:Yh,totaladjustments:Kh,fundsavailablefordistribution:Gh,grossproceedsperHUD:Qh,totalCosttoSellBtoC:Jh,totalincomestatement:Xh,netBtoCsalevalue:Zh,netprofitbeforefinancingcosts:ev,NetProfit:tv,rateofreturn:ie};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?il.propertyTaxInfo=c.propertyTaxInfo:il.propertyTaxInfo=[],o(Ao(il)),g(!0)}else oe.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};R.useEffect(()=>{f&&(s==="succeeded"?(oe.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),g(!1)):s==="failed"&&(oe.error(`Failed to submit: ${l}`,{position:"top-right",autoClose:3e3}),g(!1)))},[s,l,f]);const[Fh,lu]=R.useState("0 days"),au=(S,E)=>{if(S&&E){const _=new Date(S),U=new Date(E),q=Math.abs(U-_),H=Math.ceil(q/(1e3*60*60*24));lu(`${H} days`)}else lu("0 days")};return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"container tabs-wrap",children:[r.jsx(Oe,{}),r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((S,E)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:S.propertytaxowned,onChange:_=>m(_,E,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:S.ownedyear,onChange:_=>m(_,E,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:S.taxassessed,onChange:_=>m(_,E,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:S.taxyear,onChange:_=>m(_,E,"propertyTaxInfo"),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>p(E),style:{height:"25px",width:"35px"},children:"X"})]})})]},E)),r.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[c.images.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,placeholder:"Image Title",onChange:_=>N(E,_)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(iu,{multiple:!1,onDone:_=>C(_,E)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>j(E),style:{marginLeft:"5px"},children:"Delete"})]}),S.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:S.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},E)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:v,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${c.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:S=>{const E=S.target.value;d({...c,closeDateAtoB:E}),au(E,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"[M-D-Y] "}),": ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:S=>{const E=S.target.value;d({...c,closeDateBtoC:E}),au(c.closeDateAtoB,E)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"[M-D-Y] : "}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(c.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:u.map(S=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${S}`,value:S,checked:c.renovationRisk===S,onChange:E=>{const _=parseInt(E.target.value,10);d({...c,renovationRisk:_})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${S}`,children:S})]},S))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",value:`$ ${su().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:Fh,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:`$ ${c.purchaseCost}`,name:"purchaseCost",onChange:S=>{let E=S.target.value.replace(/[^\d.]/g,"");const _=/^\d*\.?\d*$/.test(E);d({...c,purchaseCost:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>x(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:`$ ${S.price}`,onChange:_=>w(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>k(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{onClick:y,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:`$ ${b().toFixed(2)}`,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>$(E,"title",_.target.value),placeholder:"credits",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>Z(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>L(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:A,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:J(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>G(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>O(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>B(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:I,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:P(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>V(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>Y(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>z(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:F,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:X(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>re(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>ae(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>te(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:ee,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ce(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno/Construction"}),c.renovationCost.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>Hi(E,"title",_.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>bh(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Kn(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Ce,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Reno/Construction"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Js(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Xs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Fr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,name:"sellingPriceBtoC",value:c.sellingPriceBtoC,onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,sellingPriceBtoC:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Less:Costs paid out of closing Hud B to C:"}),c.costPaidOutofClosing.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>kh(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>Eh(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Sh(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:wh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cost Paid Out of Closing"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total cost paid out of closing"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"costPaidOutofClosing",value:Zs(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCosttoSellBtoC",value:Gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"grossproceedsperHUD",value:Gn(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),c.adjustments.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>Oh(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>Th(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ph(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:_h,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Adjustments"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totaladjustments",value:el(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"fundsavailablefordistribution",value:ou(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),c.incomestatement.map((S,E)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:S.title,onChange:_=>Ih(E,"title",_.target.value),placeholder:"Title",required:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${S.isInvalid?"is-invalid":""}`,value:S.price,onChange:_=>Dh(_,E),placeholder:"Price",style:{textAlign:"right"},required:!0}),S.isInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),r.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:r.jsx("button",{className:"btn btn-danger",onClick:()=>Ah(E),style:{marginLeft:"5px"},children:"x"})})]},E)),r.jsx("div",{className:"col-md-4",children:r.jsxs("button",{className:"btn btn-primary back",onClick:Rh,style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Income Statement"]})}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Income Statement Adjustment"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalincomestatement",value:tl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net B to C Sale Value"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Lr(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoBagain",value:Fr(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isfundspriortoclosingInvalid?"is-invalid":""}`,value:c.fundspriortoclosing,name:"fundspriortoclosing",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,fundspriortoclosing:E,isfundspriortoclosingInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netBtoCsalevalue",value:Lr(),style:{textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.shorttermrental,name:"shorttermrental",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,shorttermrental:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.OtherIncome,name:"OtherIncome",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,OtherIncome:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.InsuranceClaim,name:"InsuranceClaim",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,InsuranceClaim:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.LongTermRental,name:"LongTermRental",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,LongTermRental:E,isPurchaseCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofitbeforefinancingcosts",value:nl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${c.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:c.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:S=>{const E=S.target.value,_=/^\d*\.?\d*$/.test(E);d({...c,FinancingCostClosingCost:E,isFinancingCostClosingCostInvalid:!_})},onKeyPress:S=>{const E=S.charCode;(E<48||E>57)&&E!==46&&(S.preventDefault(),d({...c,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),c.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"netprofit",value:rl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:i,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:Mh,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",TN=()=>{var u;const e=kt(),{user:t}=Ze(c=>({...c.auth})),{userProperties:n,totalPages:i}=Ze(c=>c.property),[o,s]=R.useState(1),l=5;R.useEffect(()=>{e(Io({userId:t.result.userId,page:o,limit:l}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,o]);const a=c=>{s(c)};return r.jsx(r.Fragment,{children:n.length>0?r.jsxs(r.Fragment,{children:[r.jsx("ul",{children:n.map(c=>r.jsx("li",{children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"col-md-12",children:r.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[r.jsx("div",{className:"col-md-3 mt-1",children:r.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),r.jsxs("div",{className:"col-md-6 mt-1",children:[r.jsxs("h5",{children:[" ",r.jsxs(he,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),r.jsx("div",{className:"d-flex flex-row"}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"100% cotton"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"Light weight"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Best finish",r.jsx("br",{})]})]}),r.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[r.jsx("span",{children:"Unique design"}),r.jsx("span",{className:"dot"}),r.jsx("span",{children:"For men"}),r.jsx("span",{className:"dot"}),r.jsxs("span",{children:["Casual",r.jsx("br",{})]})]}),r.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",r.jsx("br",{}),r.jsx("br",{})]})]}),r.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:r.jsxs("div",{className:"d-flex flex-column mt-4",children:[r.jsx(he,{to:`/property/${c.propertyId}`,target:"_blank",children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),r.jsx(he,{to:`/editproperty/${c.propertyId}`,children:r.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[r.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),r.jsxs("div",{className:"pagination",children:[r.jsx("button",{onClick:()=>a(o-1),disabled:o===1,children:"Previous"}),Array.from({length:i},(c,d)=>d+1).map(c=>c===o||c===1||c===i||c>=o-1&&c<=o+1?r.jsx("button",{onClick:()=>a(c),disabled:o===c,children:c},c):c===2||c===i-1?r.jsx("span",{children:"..."},c):null),r.jsx("button",{onClick:()=>a(o+1),disabled:o===i,children:"Next"})]})]}):r.jsx("p",{children:"No active properties found."})})},RN=()=>{var d,f,g,C,v,j,N,m,h,p,y,k;const{user:e,isLoading:t,error:n}=Ze(x=>x.auth),i=kt(),o=Dr(),[s,l]=R.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((f=e==null?void 0:e.result)==null?void 0:f.title)||"",firstName:((g=e==null?void 0:e.result)==null?void 0:g.firstName)||"",middleName:((C=e==null?void 0:e.result)==null?void 0:C.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((j=e==null?void 0:e.result)==null?void 0:j.email)||"",aboutme:((N=e==null?void 0:e.result)==null?void 0:N.aboutme)||"",city:((m=e==null?void 0:e.result)==null?void 0:m.city)||"",state:((h=e==null?void 0:e.result)==null?void 0:h.state)||"",county:((p=e==null?void 0:e.result)==null?void 0:p.county)||"",zip:((y=e==null?void 0:e.result)==null?void 0:y.zip)||"",profileImage:((k=e==null?void 0:e.result)==null?void 0:k.profileImage)||""});R.useEffect(()=>{e&&l({userId:e.result.userId,title:e.result.title,firstName:e.result.firstName,middleName:e.result.middleName,lastName:e.result.lastName,email:e.result.email,aboutme:e.result.aboutme,city:e.result.city,state:e.result.state,county:e.result.county,zip:e.result.zip,profileImage:e.result.profileImage})},[e]);const a=x=>{l({...s,[x.target.name]:x.target.value})},u=()=>{l({...s,profileImage:""})},c=x=>{x.preventDefault(),i(Oo(s)),o("/login")};return r.jsx(r.Fragment,{children:r.jsxs("form",{onSubmit:c,children:[r.jsxs("div",{className:"col-4",children:["Title",r.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s.title,onChange:a,children:[r.jsx("option",{value:"None",children:"Please Select Title"}),r.jsx("option",{value:"Dr",children:"Dr"}),r.jsx("option",{value:"Prof",children:"Prof"}),r.jsx("option",{value:"Mr",children:"Mr"}),r.jsx("option",{value:"Miss",children:"Miss"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["First Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:s.firstName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:s.middleName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Last Name",r.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:s.lastName,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Email",r.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:s.email,onChange:a,disabled:!0})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["About me",r.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:s.aboutme,onChange:a})]})}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:s.city,onChange:a,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:s.state,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select State"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:s.county,onChange:a,required:!0,children:[r.jsx("option",{value:"",children:"Please Select County"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:s.zip,onChange:a,required:!0})]})}),r.jsxs("div",{className:"col-4",children:[r.jsx("label",{children:"Profile Image"}),r.jsx("div",{className:"mb-3",children:r.jsx(iu,{type:"file",multiple:!1,onDone:({base64:x})=>l({...s,profileImage:x})})})]}),s.profileImage&&r.jsxs("div",{className:"col-4 mb-3",children:[r.jsx("img",{src:s.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),r.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,children:"Delete Image"})]}),r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&r.jsx("p",{children:n})]})})},AN=()=>{const[e,t]=R.useState("dashboard"),{user:n}=Ze(o=>o.auth),i=()=>{switch(e){case"Userdetails":return r.jsx(RN,{});case"addProperty":return r.jsx(ON,{});case"activeProperties":return r.jsxs("div",{children:[r.jsx("h3",{children:"Active Properties"}),r.jsx(TN,{})]});case"closedProperties":return r.jsx("p",{children:"These are your closed properties."});default:return r.jsx(r.Fragment,{})}};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"d-flex flex-row",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"card card1 p-5",children:[r.jsx("img",{className:"img-fluid",src:n.result.profileImage||Fo,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),r.jsx("hr",{className:"hline"}),r.jsxs("div",{className:"d-flex flex-column align-items-center",children:[r.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[r.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),r.jsx("span",{children:"Dashboard"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"User Profile"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Add Property"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Active Properties"})]}),r.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[r.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),r.jsx("span",{children:"Closed Properties"})]})]})]})}),r.jsx("div",{className:"col-md-9",children:r.jsxs("div",{className:"card card2 p-1",children:[r.jsx("br",{}),r.jsxs("span",{children:["Welcome to"," ",r.jsx("span",{style:{color:"#067ADC"},children:r.jsxs(he,{to:`/profile/${n.result.userId}`,className:"link-primary text-decoration-none",target:"_blank",children:[n.result.title,". ",n.result.firstName," ",n.result.middleName," ",n.result.lastName]})})]}),r.jsx("br",{}),i()]})})]}),r.jsx(qe,{})]})};var jh={exports:{}},IN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",DN=IN,MN=DN;function Nh(){}function Ch(){}Ch.resetWarningCache=Nh;var FN=function(){function e(i,o,s,l,a,u){if(u!==MN){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ch,resetWarningCache:Nh};return n.PropTypes=n,n};jh.exports=FN();var LN=jh.exports;const zN=Za(LN),BN=()=>{const[e,t]=R.useState(3),n=Dr();return R.useEffect(()=>{const i=setInterval(()=>{t(o=>--o)},1e3);return e===0&&n("/login"),()=>clearInterval(i)},[e,n]),r.jsx("div",{style:{marginTop:"100px"},children:r.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Lo=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:r.jsx(BN,{})};Lo.propTypes={children:zN.node.isRequired};const WN=()=>{const e=kt(),{id:t,token:n}=Mr();return R.useEffect(()=>{e(Ro({id:t,token:n}))},[e,t,n]),r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsxs("div",{className:"contact_section layout_padding",children:[r.jsx("div",{className:"container",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12",children:r.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),r.jsx("div",{className:"container-fluid",children:r.jsx("div",{className:"contact_section_2",children:r.jsxs("div",{className:"row",children:[r.jsxs("div",{className:"col-md-6",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("h1",{className:"card-title text-center",children:r.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",r.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),r.jsx("div",{className:"col-md-6 padding_left_15",children:r.jsx("div",{className:"contact_img"})})]})})})]}),r.jsx(qe,{})]})},$N=()=>{const[e,t]=R.useState(""),[n,i]=R.useState(""),o="http://67.225.129.127:3002",s=async()=>{try{const l=await fe.post(`${o}/users/forgotpassword`,{email:e});i(l.data.message)}catch(l){console.error("Forgot Password Error:",l),i(l.response.data.message)}};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[r.jsx("div",{className:"container-fluid px-0",children:r.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[r.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),r.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:r.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:r.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"h3",children:"Forgot Password"}),r.jsx("hr",{})]})})}),r.jsxs("div",{className:"row gy-3 overflow-hidden",children:[r.jsx("div",{className:"col-12",children:r.jsxs("div",{className:"form-floating mb-3",children:[r.jsx("input",{type:"email",className:"form-control",value:e,onChange:l=>t(l.target.value),placeholder:"name@example.com",required:"required"}),r.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),r.jsxs("div",{className:"col-12",children:[r.jsx("div",{className:"d-grid",children:r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:s,children:"Reset Password"})}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:r.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",r.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12"})})]})})})]})}),r.jsx(qe,{})]})]})},UN=()=>{const{userId:e,token:t}=Mr(),[n,i]=R.useState(""),[o,s]=R.useState(""),[l,a]=R.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),oe.error("Password not entered");return}const d=await fe.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==o){a("Passwords do not match."),oe.error("Passwords do not match.");return}else a("Password reset successfull"),oe.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return R.useEffect(()=>{oe.dismiss()},[]),r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("section",{className:"card mb-0 vh-100",children:r.jsx("div",{className:"container py-10 h-100",children:r.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:r.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[r.jsx("br",{}),r.jsxs("h2",{children:["Reset Password",r.jsx("hr",{}),r.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),r.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>i(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),r.jsx("br",{}),r.jsx("input",{className:"form-control",type:"password",value:o,onChange:d=>s(d.target.value),placeholder:"Confirm your new password"}),r.jsx("br",{}),r.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Reset Password"}),r.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:l})]})})})}),r.jsx(qe,{})]})},qN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"col-md-18",children:[r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),r.jsxs("h2",{children:["We reqest you to kindly ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",r.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(qe,{})]}),VN=()=>{const{id:e}=Mr(),t=kt(),{selectedProperty:n,status:i,error:o}=Ze(a=>a.property),[s,l]=R.useState(!0);return R.useEffect(()=>{e&&(t(ci(e)),l(!1))},[e,t]),i==="loading"?r.jsx("p",{children:"Loading property details..."}):i==="failed"?r.jsxs("p",{children:["Error loading property: ",o]}):r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:s?r.jsx("div",{className:"loader",children:"Loading..."}):n?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?r.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):r.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),r.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(qe,{})]})},HN=()=>{const[e,t]=R.useState([]),[n,i]=R.useState(0),[o,s]=R.useState(0),[l]=R.useState(10),[a,u]=R.useState(""),[c,d]=R.useState(!1),[f,g]=R.useState(!1),C=async()=>{d(!0),g(!1);try{const m=await fe.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:l,offset:o*l,search:a},headers:{"Cache-Control":"no-cache"}});t(m.data.data),i(m.data.totalRecords),a.trim()&&g(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},v=m=>{u(m.target.value),m.target.value.trim()===""&&(s(0),t([]),i(0),g(!1),C())},j=m=>{m.key==="Enter"&&(m.preventDefault(),C())};R.useEffect(()=>{C()},[a,o]);const N=Math.ceil(n/l);return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:j})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsxs("div",{className:"card-body",children:[f&&e.length>0&&r.jsxs("div",{children:["Showing search results for the keyword"," ",r.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:e.length>0?e.map((m,h)=>r.jsxs("tr",{children:[r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(he,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),r.jsx("td",{children:r.jsx("div",{className:"widget-26-job-info",children:r.jsx("p",{className:"m-0",children:m.year_built})})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},h)):r.jsx("tr",{children:r.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),r.jsxs("div",{children:[r.jsx("button",{onClick:()=>s(o-1),disabled:o===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),r.jsxs("span",{children:[" ","Page ",o+1," of ",N," "]}),r.jsx("button",{onClick:()=>s(o+1),disabled:o+1>=N||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),r.jsx(qe,{})]})},YN=()=>r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),"This page will show the list of services offered by the company",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx(qe,{})]}),KN=()=>{const{house_id:e}=Mr();console.log("house_id",e);const[t,n]=R.useState(null),[i,o]=R.useState(!0);return R.useEffect(()=>{(async()=>{try{const l=await fe.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(l.data)}catch(l){console.log("Error fetching property details:",l)}finally{o(!1)}})()},[e]),r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"container col-12",children:i?r.jsx("div",{className:"loader",children:"Loading..."}):t?r.jsx("div",{className:"py-3 py-md-5 bg-light",children:r.jsxs("div",{className:"card-header bg-white",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-md-5 mt-3",children:r.jsx("div",{className:"bg-white border",children:r.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),r.jsx("div",{className:"col-md-7 mt-3",children:r.jsxs("div",{className:"product-view",children:[r.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,r.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),r.jsx("hr",{}),r.jsxs("p",{className:"product-path",children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",r.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",r.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),r.jsxs("div",{children:[r.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",r.jsx("p",{}),r.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),r.jsxs("div",{className:"mt-3 card bg-white",children:[r.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),r.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-md-12 mt-3",children:r.jsxs("div",{className:"card",children:[r.jsx("div",{className:"card-header bg-white",children:r.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),r.jsx("div",{className:"card-body",children:r.jsx("p",{children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."})})]})})})]})}):r.jsx("p",{children:"No property details found."})}),r.jsx(qe,{})]})},GN=()=>{const{id:e}=Mr(),t=kt(),[n,i]=R.useState("propertydetails"),o=()=>{n==="propertydetails"&&i("Images"),n==="Images"&&i("Accounting")},s=()=>{n==="Images"&&i("propertydetails"),n==="Accounting"&&i("Images")},{selectedProperty:l}=Ze(x=>x.property),[a,u]=R.useState({address:"",city:"",state:"",zip:"",propertyTaxInfo:[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,turnTime:""}),c=[1,2,3,4,5,6,7,8,9,10];R.useEffect(()=>{t(ci(e))},[t,e]),R.useEffect(()=>{l&&u({address:l.address||"",city:l.city||"",state:l.state||"",zip:l.zip||"",parcel:l.parcel||"",subdivision:l.subdivision||"",legal:l.legal||"",costpersqft:l.costpersqft||"",propertyType:l.propertyType||"",lotacres:l.lotacres||"",yearBuild:l.yearBuild||"",totallivingsqft:l.totallivingsqft||"",beds:l.beds||"",baths:l.baths||"",stories:l.stories||"",garage:l.garage||"",garagesqft:l.garagesqft||"",poolspa:l.poolspa||"",fireplaces:l.fireplaces||"",ac:l.ac||"",heating:l.heating||"",buildingstyle:l.buildingstyle||"",sitevacant:l.sitevacant||"",extwall:l.extwall||"",roofing:l.roofing||"",totalSqft:l.totalSqft||"",renovationRisk:l.renovationRisk,closeDateAtoB:l.closeDateAtoB,closeDateBtoC:l.closeDateBtoC,purchaseCost:l.purchaseCost,propertyTaxInfo:l.propertyTaxInfo||[{propertytaxowned:"0",ownedyear:"0",taxassessed:"0",taxyear:"0"}],images:l.images||[{title:"",file:""}],googleMapLink:l.googleMapLink,rateofreturn:l.rateofreturn})},[l]);const d=x=>{u({...a,[x.target.name]:x.target.value})},f=(x,w)=>{const{name:b,value:A}=x.target,L=[...a.propertyTaxInfo],$={...L[w]};$[b]=A,L[w]=$,u({...a,propertyTaxInfo:L})},g=x=>{x.preventDefault(),t(Do({id:e,propertyData:a}))},C=()=>{u({...a,propertyTaxInfo:[...a.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},v=x=>{const w=a.propertyTaxInfo.filter((b,A)=>A!==x);u({...a,propertyTaxInfo:w})},j=(x,w)=>{const b=[...a.images];b[w]={...b[w],file:x.base64},u({...a,images:b})},N=()=>{u({...a,images:[...a.images,{title:"",file:""}]})},m=x=>{const w=a.images.filter((b,A)=>A!==x);u({...a,images:w})},h=(x,w)=>{const b=[...a.images];b[x]={...b[x],title:w.target.value},u({...a,images:b})};R.useEffect(()=>{k(a.closeDateAtoB,a.closeDateBtoC)},[a.closeDateAtoB,a.closeDateBtoC]);const[p,y]=R.useState("0 days"),k=(x,w)=>{if(x&&w){const b=new Date(x),A=new Date(w),L=Math.abs(A-b),$=Math.ceil(L/(1e3*60*60*24));y(`${$} days`)}else y("0 days")};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("div",{className:"d-flex justify-content-center align-items-center",children:r.jsxs("div",{className:"card justify-content-center",children:[r.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[r.jsx("li",{role:"presentation",className:n==="propertydetails"?"active tab":"tab",children:r.jsx("a",{onClick:()=>i("propertydetails"),role:"tab",children:"Property Details"})}),r.jsx("li",{role:"presentation",className:n==="Images"?"active tab":"tab",children:r.jsx("a",{onClick:()=>i("Images"),role:"tab",children:"Images, Maps"})}),r.jsx("li",{role:"presentation",className:n==="Accounting"?"active tab":"tab",children:r.jsx("a",{onClick:()=>i("Accounting"),role:"tab",children:"Accounting"})})]}),r.jsxs("div",{className:"tab-content",children:[n==="propertydetails"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("form",{children:[r.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Address",r.jsx("input",{type:"text",className:"form-control",name:"address",value:a.address,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["City",r.jsx("input",{type:"text",className:"form-control",name:"city",value:a.city,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["State",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:a.state,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Alaska",children:"Alaska"}),r.jsx("option",{value:"Alabama",children:"Alabama"}),r.jsx("option",{value:"Arkansas",children:"Arkansas"}),r.jsx("option",{value:"Arizona",children:"Arizona"}),r.jsx("option",{value:"California",children:"California"}),r.jsx("option",{value:"Colorado",children:"Colorado"}),r.jsx("option",{value:"Connecticut",children:"Connecticut"}),r.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),r.jsx("option",{value:"Delaware",children:"Delaware"}),r.jsx("option",{value:"Florida",children:"Florida"}),r.jsx("option",{value:"Georgia",children:"Georgia"}),r.jsx("option",{value:"Hawaii",children:"Hawaii"}),r.jsx("option",{value:"Iowa",children:"Iowa"}),r.jsx("option",{value:"Idaho",children:"Idaho"}),r.jsx("option",{value:"Illinois",children:"Illinois"}),r.jsx("option",{value:"Indiana",children:"Indiana"}),r.jsx("option",{value:"Kansas",children:"Kansas"}),r.jsx("option",{value:"Kentucky",children:"Kentucky"}),r.jsx("option",{value:"Louisiana",children:"Louisiana"}),r.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),r.jsx("option",{value:"Maryland",children:"Maryland"}),r.jsx("option",{value:"Michigan",children:"Michigan"}),r.jsx("option",{value:"Minnesota",children:"Minnesota"}),r.jsx("option",{value:"Missouri",children:"Missouri"}),r.jsx("option",{value:"Mississippi",children:"Mississippi"}),r.jsx("option",{value:"Montana",children:"Montana"}),r.jsx("option",{value:"North Carolina",children:"North Carolina"}),r.jsx("option",{value:"North Dakota",children:"North Dakota"}),r.jsx("option",{value:"Nebraska",children:"Nebraska"}),r.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),r.jsx("option",{value:"New Jersey",children:"New Jersey"}),r.jsx("option",{value:"New Mexico",children:"New Mexico"}),r.jsx("option",{value:"Nevada",children:"Nevada"}),r.jsx("option",{value:"New York",children:"New York"}),r.jsx("option",{value:"Ohio",children:"Ohio"}),r.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),r.jsx("option",{value:"Oregon",children:"Oregon"}),r.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),r.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),r.jsx("option",{value:"South Carolina",children:"South Carolina"}),r.jsx("option",{value:"South Dakota",children:"South Dakota"}),r.jsx("option",{value:"Tennessee",children:"Tennessee"}),r.jsx("option",{value:"Texas",children:"Texas"}),r.jsx("option",{value:"Texas",children:"Travis"}),r.jsx("option",{value:"Utah",children:"Utah"}),r.jsx("option",{value:"Virginia",children:"Virginia"}),r.jsx("option",{value:"Vermont",children:"Vermont"}),r.jsx("option",{value:"Washington",children:"Washington"}),r.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),r.jsx("option",{value:"West Virginia",children:"West Virginia"}),r.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["County",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:a.county,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Abbeville",children:"Abbeville"}),r.jsx("option",{value:"Aiken",children:"Aiken"}),r.jsx("option",{value:"Allendale",children:"Allendale"}),r.jsx("option",{value:"Anderson",children:"Anderson"}),r.jsx("option",{value:"Bamberg",children:"Bamberg"}),r.jsx("option",{value:"Barnwell",children:"Barnwell"}),r.jsx("option",{value:"Beaufort",children:"Beaufort"}),r.jsx("option",{value:"Berkeley",children:"Berkeley"}),r.jsx("option",{value:"Calhoun",children:"Calhoun"}),r.jsx("option",{value:"Charleston",children:"Charleston"}),r.jsx("option",{value:"Cherokee",children:"Cherokee"}),r.jsx("option",{value:"Chester",children:"Chester"}),r.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),r.jsx("option",{value:"Clarendon",children:"Clarendon"}),r.jsx("option",{value:"Colleton",children:"Colleton"}),r.jsx("option",{value:"Darlington",children:"Darlington"}),r.jsx("option",{value:"Dillon",children:"Dillon"}),r.jsx("option",{value:"Dorchester",children:"Dorchester"}),r.jsx("option",{value:"Edgefield",children:"Edgefield"}),r.jsx("option",{value:"Fairfield",children:"Fairfield"}),r.jsx("option",{value:"Florence",children:"Florence"}),r.jsx("option",{value:"Georgetown",children:"Georgetown"}),r.jsx("option",{value:"Greenville",children:"Greenville"}),r.jsx("option",{value:"Greenwood",children:"Greenwood"}),r.jsx("option",{value:"Hampton",children:"Hampton"}),r.jsx("option",{value:"Horry",children:"Horry"}),r.jsx("option",{value:"Jasper",children:"Jasper"}),r.jsx("option",{value:"Kershaw",children:"Kershaw"}),r.jsx("option",{value:"Lancaster",children:"Lancaster"}),r.jsx("option",{value:"Laurens",children:"Laurens"}),r.jsx("option",{value:"Lee",children:"Lee"}),r.jsx("option",{value:"Lexington",children:"Lexington"}),r.jsx("option",{value:"Marion",children:"Marion"}),r.jsx("option",{value:"Marlboro",children:"Marlboro"}),r.jsx("option",{value:"McCormick",children:"McCormick"}),r.jsx("option",{value:"Newberry",children:"Newberry"}),r.jsx("option",{value:"Oconee",children:"Oconee"}),r.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),r.jsx("option",{value:"Pickens",children:"Pickens"}),r.jsx("option",{value:"Richland",children:"Richland"}),r.jsx("option",{value:"Saluda",children:"Saluda"}),r.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),r.jsx("option",{value:"Sumter",children:"Sumter"}),r.jsx("option",{value:"Union",children:"Union"}),r.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),r.jsx("option",{value:"York",children:"York"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Zip",r.jsx("input",{type:"text",className:"form-control",name:"zip",value:a.zip,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Parcel",r.jsx("input",{type:"text",className:"form-control",name:"parcel",value:a.parcel,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Sub division",r.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:a.subdivision,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",r.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:a.legal,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",r.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:a.costpersqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Property Type",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:a.propertyType,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"Residential",children:"Residential"}),r.jsx("option",{value:"Land",children:"Land"}),r.jsx("option",{value:"Commercial",children:"Commercial"}),r.jsx("option",{value:"Industrial",children:"Industrial"}),r.jsx("option",{value:"Water",children:"Water"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",r.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:a.lotacres,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Year Build",r.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:a.yearBuild,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:a.totallivingsqft,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Beds",r.jsx("input",{type:"text",className:"form-control",name:"beds",value:a.beds,onChange:d,required:!0})]})}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Baths",r.jsx("input",{type:"text",className:"form-control",name:"baths",value:a.baths,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Stories",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:a.stories,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"}),r.jsx("option",{value:"6",children:"6"}),r.jsx("option",{value:"7",children:"7"}),r.jsx("option",{value:"8",children:"8"}),r.jsx("option",{value:"9",children:"9"}),r.jsx("option",{value:"10",children:"10"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Garage",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:a.garage,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"0",children:"0"}),r.jsx("option",{value:"1",children:"1"}),r.jsx("option",{value:"2",children:"2"}),r.jsx("option",{value:"3",children:"3"}),r.jsx("option",{value:"4",children:"4"}),r.jsx("option",{value:"5",children:"5"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",r.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:a.garagesqft,onChange:d,required:!0})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Pool/SPA",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:a.poolspa,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),r.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),r.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),r.jsx("option",{value:"4",children:"None"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Fire places",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:a.fireplaces,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"yes",children:"Yes"}),r.jsx("option",{value:"no",children:"No"})]})]}),r.jsxs("div",{className:"col-md-4",children:["A/C",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:a.ac,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Heating",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:a.heating,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Central",children:"Central"}),r.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),r.jsx("option",{value:"Warm Air",children:"Warm Air"}),r.jsx("option",{value:"Forced Air",children:"Forced Air"}),r.jsx("option",{value:"Gas",children:"Gas"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Building Style",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:a.buildingstyle,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"One Story",children:"One Story"}),r.jsx("option",{value:"Craftsman",children:"Craftsman"}),r.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),r.jsx("option",{value:"Split-Level",children:"Split-Level"}),r.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),r.jsx("option",{value:"Stick Built",children:"Stick Built"}),r.jsx("option",{value:"Single wide",children:"Single wide"}),r.jsx("option",{value:"Double wide",children:"Double wide"}),r.jsx("option",{value:"Duplex",children:"Duplex"}),r.jsx("option",{value:"Triplex",children:"Triplex"}),r.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),r.jsx("option",{value:"Two Story",children:"Two Story"}),r.jsx("option",{value:"Victorian",children:"Victorian"}),r.jsx("option",{value:"Tudor",children:"Tudor"}),r.jsx("option",{value:"Modern",children:"Modern"}),r.jsx("option",{value:"Art Deco",children:"Art Deco"}),r.jsx("option",{value:"Bungalow",children:"Bungalow"}),r.jsx("option",{value:"Mansion",children:"Mansion"}),r.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),r.jsx("option",{value:"Conventional",children:"Conventional"}),r.jsx("option",{value:"Ranch",children:"Ranch"}),r.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),r.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),r.jsx("option",{value:"Contemporary",children:"Contemporary"}),r.jsx("option",{value:"Colonial",children:"Colonial"}),r.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Site Vacant",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:a.sitevacant,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please select"}),r.jsx("option",{value:"Yes",children:"Yes"}),r.jsx("option",{value:"No",children:"No"})]})]})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsxs("div",{className:"col-md-4",children:["Ext Wall",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:a.extwall,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Brick",children:"Brick"}),r.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),r.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),r.jsx("option",{value:"Stone",children:"Stone"}),r.jsx("option",{value:"Masonry",children:"Masonry"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),r.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),r.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),r.jsx("option",{value:"Gable",children:"Gable"}),r.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),r.jsx("option",{value:"Frame",children:"Frame"}),r.jsx("option",{value:"Siding",children:"Siding"}),r.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),r.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),r.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),r.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),r.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),r.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),r.jsxs("div",{className:"col-md-4",children:["Roofing",r.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:a.roofing,onChange:d,required:!0,children:[r.jsx("option",{value:"",children:"Please Select"}),r.jsx("option",{value:"N/A",children:"N/A"}),r.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),r.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),r.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),r.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),r.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),r.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),r.jsx("option",{value:"Metal",children:"Metal"}),r.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),r.jsx("option",{value:"Slate",children:"Slate"}),r.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),r.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),r.jsx("div",{className:"col-md-4",children:r.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",r.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:a.totalSqft,onChange:d,required:!0})]})})]}),r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[r.jsx("br",{}),"Property Tax Information"]}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),a.propertyTaxInfo&&a.propertyTaxInfo.map((x,w)=>r.jsxs("div",{className:"row gy-4",children:[r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",r.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:x.propertytaxowned,onChange:b=>f(b,w),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",r.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:x.ownedyear,onChange:b=>f(b,w),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",r.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:x.taxassessed,onChange:b=>f(b,w),required:!0})]})}),r.jsx("div",{className:"col-md-2",children:r.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",r.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:x.taxyear,onChange:b=>f(b,w),required:!0})]})}),r.jsx("div",{className:"col-md-3",children:r.jsxs("div",{className:"form-floating mb-2",children:[r.jsx("br",{}),r.jsx("button",{className:"btn btn-danger",onClick:()=>v(w),style:{height:"25px",width:"35px"},children:"X"})]})})]},w)),r.jsx("button",{className:"btn btn-secondary",onClick:C,children:"+ Add Another Property Tax Info"})]}),r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Images"&&r.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),r.jsxs("form",{children:[r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),a.images.map((x,w)=>r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:x.title,placeholder:"Image Title",onChange:b=>h(w,b)})}),r.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[r.jsx(iu,{multiple:!1,onDone:b=>j(b,w)}),r.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>m(w),style:{marginLeft:"5px"},children:"Delete"})]}),x.file&&r.jsx("div",{className:"col-md-12",children:r.jsx("img",{src:x.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},w)),r.jsx("button",{type:"button",className:"btn btn-primary",onClick:N,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsxs("div",{className:"mb-3",children:[r.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:r.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),r.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:a.googleMapLink,onChange:d,placeholder:"Enter Google Maps link"})]}),a.googleMapLink&&r.jsx("iframe",{title:"Google Map",width:"100%",height:"300",src:`https://www.google.com/maps/embed/v1/view?key=YOUR_API_KEY¢er=${a.googleMapLink}&zoom=10`,frameBorder:"0",allowFullScreen:!0})]}),r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{className:"btn btn-primary continue",onClick:o,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),n==="Accounting"&&r.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:a.closeDateAtoB,onChange:x=>{const w=x.target.value;u({...a,closeDateAtoB:w}),k(w,a.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y]"," "]}),":"," ",r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(a.closeDateAtoB).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:a.closeDateBtoC,onChange:x=>{const w=x.target.value;u({...a,closeDateBtoC:w}),k(a.closeDateAtoB,w)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})}),r.jsx("div",{children:r.jsxs("p",{children:[r.jsxs("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:["[M-D-Y] :"," "]}),r.jsx("span",{style:{color:"#000000",fontSize:"14px",fontWeight:"normal"},children:new Date(a.closeDateBtoC).toLocaleDateString("en-US",{month:"numeric",day:"numeric",year:"numeric"})})]})})]}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),r.jsx("div",{className:"col-md-7",children:c.map(x=>r.jsxs("div",{className:"form-check form-check-inline",children:[r.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${x}`,value:x,checked:a.renovationRisk===x,onChange:w=>{const b=parseInt(w.target.value,10);u({...a,renovationRisk:b})}}),r.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${x}`,children:x})]},x))})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Rate of Return"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",name:"rateofreturn",readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",value:p,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cost to Sell B to C"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Gross Proceeds per HUD"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Adjustments:"}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Adjustments"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Funds Available for distribution"})}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Income Statement Adjustments:"}),r.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),r.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Computation"}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Total Costs to Buy A to B",required:!0,disabled:!0})})}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Funds Prior to Closing",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isfundspriortoclosingInvalid?"is-invalid":""}`,value:a.fundspriortoclosing,name:"fundspriortoclosing",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,fundspriortoclosing:w,isfundspriortoclosingInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isfundspriortoclosingInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isfundspriortoclosingInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsx("div",{className:"row gy-3",children:r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Net B to C Sale Value",required:!0,disabled:!0})})}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Short Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isPurchaseCostInvalid?"is-invalid":""}`,value:a.shorttermrental,name:"shorttermrental",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,shorttermrental:w,isPurchaseCostInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Other Income",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isPurchaseCostInvalid?"is-invalid":""}`,value:a.OtherIncome,name:"OtherIncome",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,OtherIncome:w,isPurchaseCostInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Insurance Claim",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isPurchaseCostInvalid?"is-invalid":""}`,value:a.InsuranceClaim,name:"InsuranceClaim",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,InsuranceClaim:w,isPurchaseCostInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3",children:[r.jsx("div",{className:"col-md-4",children:r.jsx("input",{type:"text",className:"form-control",placeholder:"Long Term Rental",required:!0,disabled:!0})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isPurchaseCostInvalid?"is-invalid":""}`,value:a.LongTermRental,name:"LongTermRental",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,LongTermRental:w,isPurchaseCostInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isPurchaseCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isPurchaseCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit Before Financing Costs"})}),r.jsx("br",{}),r.jsxs("div",{className:"row gy-3 align-items-center",children:[r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Financing Cost/Other Closing Costs"}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("input",{type:"text",className:`form-control ${a.isFinancingCostClosingCostInvalid?"is-invalid":""}`,value:a.FinancingCostClosingCost,name:"FinancingCostClosingCost",onChange:x=>{const w=x.target.value,b=/^\d*\.?\d*$/.test(w);u({...a,FinancingCostClosingCost:w,isFinancingCostClosingCostInvalid:!b})},onKeyPress:x=>{const w=x.charCode;(w<48||w>57)&&w!==46&&(x.preventDefault(),u({...a,isFinancingCostClosingCostInvalid:!0}))},style:{textAlign:"right"},required:!0}),a.isFinancingCostClosingCostInvalid&&r.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),r.jsx("br",{}),r.jsx("div",{className:"row gy-3 align-items-center",children:r.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Net Profit"})}),r.jsxs("div",{className:"col-md-4",children:[r.jsx("button",{className:"btn btn-primary back",onClick:s,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",r.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:g,children:"Submit"})," "]}),r.jsx("br",{})]})]})]})})]})},QN=()=>{const e=kt(),{properties:t,loading:n,totalPages:i,currentPage:o}=Ze(j=>j.property),[s,l]=R.useState(""),[a,u]=R.useState([]),[c,d]=R.useState(1),f=10;R.useEffect(()=>{e(ui({page:c,limit:f,keyword:s}))},[e,c,s]),R.useEffect(()=>{s.trim()?u(t.filter(j=>j.address.toLowerCase().includes(s.toLowerCase()))):u(t)},[s,t]);const g=j=>{l(j.target.value)},C=j=>{j.preventDefault()},v=j=>{d(j),e(ui({page:j,limit:f,keyword:s}))};return r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs("div",{className:"container col-12",children:[r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-lg-12 card-margin col-12",children:r.jsx("div",{className:"card search-form col-12",children:r.jsx("div",{className:"card-body p-0",children:r.jsx("form",{id:"search-form",onSubmit:C,children:r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"row no-gutters",children:r.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:r.jsx("input",{type:"text",value:s,onChange:g,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),r.jsx("div",{className:"row",children:r.jsx("div",{className:"col-12",children:r.jsx("div",{className:"card card-margin",children:r.jsx("div",{className:"card-body",children:n?r.jsx("div",{children:"Loading..."}):r.jsx("div",{className:"table-responsive",children:r.jsxs("table",{className:"table widget-26",children:[r.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:r.jsxs("tr",{children:[r.jsx("th",{children:"Image"}),r.jsx("th",{children:"Details"}),r.jsx("th",{children:"Total Living Square Foot"}),r.jsx("th",{children:"Year Built"}),r.jsx("th",{children:"Cost per Square Foot"})]})}),r.jsx("tbody",{children:a.length>0?a.map(j=>r.jsxs("tr",{children:[r.jsx("td",{children:j.images&&j.images[0]?r.jsx("img",{src:j.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):r.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),r.jsx("td",{children:r.jsxs("div",{className:"widget-26-job-title",children:[r.jsx(he,{to:`/property/${j.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:j.address}),r.jsxs("p",{className:"m-0",children:[r.jsxs("span",{className:"employer-name",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),j.city,", ",j.county,","," ",j.state]}),r.jsxs("p",{className:"text-muted m-0",children:["House Id: ",j.propertyId]})]})]})}),r.jsx("td",{children:j.totallivingsqft}),r.jsx("td",{children:j.yearBuild}),r.jsx("td",{children:j.costpersqft})]},j.id)):r.jsx("tr",{children:r.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),r.jsx("nav",{"aria-label":"Page navigation",children:r.jsxs("ul",{className:"pagination justify-content-center",children:[r.jsx("li",{className:`page-item ${o===1?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>v(o-1),children:"Previous"})}),Array.from({length:i},(j,N)=>r.jsx("li",{className:`page-item ${o===N+1?"active":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>v(N+1),children:N+1})},N+1)),r.jsx("li",{className:`page-item ${o===i?"disabled":""}`,children:r.jsx("button",{className:"page-link",onClick:()=>v(o+1),children:"Next"})})]})})]}),r.jsx(qe,{})]})},JN=()=>{const{userId:e}=Mr(),t=kt(),{user:n,loading:i}=Ze(o=>o.user);return console.log("user",n),R.useEffect(()=>{e&&t(To(e))},[e,t]),i?r.jsx("div",{children:"Loading..."}):r.jsxs(r.Fragment,{children:[r.jsx(Oe,{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("br",{}),r.jsx("div",{className:"main-body",children:r.jsxs("div",{className:"row gutters-sm",children:[r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[r.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),r.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),r.jsxs("span",{className:"text-muted font-size-sm",children:[r.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),r.jsx("hr",{}),r.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:r.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),r.jsx("hr",{}),r.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{}),r.jsx("hr",{}),r.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),r.jsx("small",{children:"Web Design project in California"}),r.jsx("br",{})," ",r.jsx("br",{})]})})}),r.jsx("div",{className:"col-md-4",children:r.jsx("div",{className:"card mb-3",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",r.jsx("hr",{}),n.aboutme]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),r.jsx("hr",{}),r.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),r.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:r.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),r.jsx("hr",{}),r.jsxs("div",{className:"card-body",children:[r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Email"})}),n.email,r.jsx("div",{className:"col-sm-9 text-secondary"})]}),r.jsx("hr",{}),r.jsxs("div",{className:"row",children:[r.jsx("div",{className:"col-sm-3",children:r.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",r.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),r.jsx("div",{className:"col-md-4 mb-3",children:r.jsx("div",{className:"card",children:r.jsxs("div",{className:"card-body",children:[r.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[r.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),r.jsxs("ul",{className:"list-group list-group-flush",children:[r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Fo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Fo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),r.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:r.jsxs("h6",{className:"mb-0",children:[r.jsx("img",{src:Fo,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},XN=()=>r.jsxs(Rj,{children:[r.jsx(Qj,{}),r.jsxs(wj,{children:[r.jsx(Ee,{path:"/",element:r.jsx(Xj,{})}),r.jsx(Ee,{path:"/about",element:r.jsx(Zj,{})}),r.jsx(Ee,{path:"/services",element:r.jsx(YN,{})}),r.jsx(Ee,{path:"/contact",element:r.jsx(eN,{})}),r.jsx(Ee,{path:"/register",element:r.jsx(kN,{})}),r.jsx(Ee,{path:"/registrationsuccess",element:r.jsx(Lo,{children:r.jsx(qN,{})})}),r.jsx(Ee,{path:"/login",element:r.jsx(_N,{})}),r.jsx(Ee,{path:"/dashboard",element:r.jsx(Lo,{children:r.jsx(AN,{})})}),r.jsx(Ee,{path:"/users/:id/verify/:token",element:r.jsx(WN,{})}),r.jsx(Ee,{path:"/forgotpassword",element:r.jsx($N,{})}),r.jsx(Ee,{path:"/users/resetpassword/:userId/:token",element:r.jsx(UN,{})}),r.jsx(Ee,{path:"/property/:id",element:r.jsx(VN,{})}),r.jsx(Ee,{path:"/properties/:house_id",element:r.jsx(KN,{})}),r.jsx(Ee,{path:"/searchmyproperties",element:r.jsx(HN,{})}),r.jsx(Ee,{path:"/searchproperties",element:r.jsx(QN,{})}),r.jsx(Ee,{path:"/editproperty/:id",element:r.jsx(Lo,{children:r.jsx(GN,{})})}),r.jsx(Ee,{path:"/profile/:userId",element:r.jsx(JN,{})})]})]});fm(document.getElementById("root")).render(r.jsx(R.StrictMode,{children:r.jsx(Xy,{store:F0,children:r.jsx(XN,{})})}));