diff --git a/ef-api/models/property.js b/ef-api/models/property.js index 37964dd..71bccc9 100644 --- a/ef-api/models/property.js +++ b/ef-api/models/property.js @@ -134,7 +134,6 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, - totalcashrequiredonsettlement:{ type: Number, required: true, // Set to true if this field is mandatory @@ -155,7 +154,7 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, - utilMaintenance: [ + carryCosts: [ { title: { type: String, @@ -167,7 +166,7 @@ const propertySchema = mongoose.Schema({ }, }, ], - totalutilMaintenanceCost: { + totalcarryCosts: { type: Number, required: true, // Set to true if this field is mandatory }, @@ -187,11 +186,15 @@ const propertySchema = mongoose.Schema({ type: Number, required: true, // Set to true if this field is mandatory }, - costsAfterPropertyAcquisition:{ + totalRenovationsandHoldingCost:{ type: Number, required: true, // Set to true if this field is mandatory }, - sellpricebtoc:{ + totalCoststoBuyAtoB:{ + type: Number, + required: true, // Set to true if this field is mandatory + }, + sellingPriceBtoC:{ type: Number, required: true, // Set to true if this field is mandatory }, diff --git a/ef-ui/dist/assets/index-COiggoDj.js b/ef-ui/dist/assets/index-BG8wErZt.js similarity index 56% rename from ef-ui/dist/assets/index-COiggoDj.js rename to ef-ui/dist/assets/index-BG8wErZt.js index d3f5680..43b2980 100644 --- a/ef-ui/dist/assets/index-COiggoDj.js +++ b/ef-ui/dist/assets/index-BG8wErZt.js @@ -1,4 +1,4 @@ -var Ch=Object.defineProperty;var bh=(e,t,n)=>t in e?Ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Gl=(e,t,n)=>bh(e,typeof t!="symbol"?t+"":t,n);function Eh(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Sh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ud={exports:{}},gl={},$d={exports:{}},oe={};/** +var Eh=Object.defineProperty;var Sh=(e,t,n)=>t in e?Eh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jl=(e,t,n)=>Sh(e,typeof t!="symbol"?t+"":t,n);function kh(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var _h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $d={exports:{}},gl={},Wd={exports:{}},oe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Ch=Object.defineProperty;var bh=(e,t,n)=>t in e?Ch(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ai=Symbol.for("react.element"),kh=Symbol.for("react.portal"),_h=Symbol.for("react.fragment"),Ph=Symbol.for("react.strict_mode"),Oh=Symbol.for("react.profiler"),Th=Symbol.for("react.provider"),Rh=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Ih=Symbol.for("react.suspense"),Dh=Symbol.for("react.memo"),Mh=Symbol.for("react.lazy"),Xc=Symbol.iterator;function Lh(e){return e===null||typeof e!="object"?null:(e=Xc&&e[Xc]||e["@@iterator"],typeof e=="function"?e:null)}var Wd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vd=Object.assign,qd={};function _r(e,t,n){this.props=e,this.context=t,this.refs=qd,this.updater=n||Wd}_r.prototype.isReactComponent={};_r.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")};_r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Hd(){}Hd.prototype=_r.prototype;function qa(e,t,n){this.props=e,this.context=t,this.refs=qd,this.updater=n||Wd}var Ha=qa.prototype=new Hd;Ha.constructor=qa;Vd(Ha,_r.prototype);Ha.isPureReactComponent=!0;var Zc=Array.isArray,Yd=Object.prototype.hasOwnProperty,Ya={current:null},Kd={key:!0,ref:!0,__self:!0,__source:!0};function Qd(e,t,n){var r,i={},l=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(l=""+t.key),t)Yd.call(t,r)&&!Kd.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?Ch(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $h=O,Wh=Symbol.for("react.element"),Vh=Symbol.for("react.fragment"),qh=Object.prototype.hasOwnProperty,Hh=$h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yh={key:!0,ref:!0,__self:!0,__source:!0};function Jd(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)qh.call(t,r)&&!Yh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Wh,type:e,key:l,ref:s,props:i,_owner:Hh.current}}gl.Fragment=Vh;gl.jsx=Jd;gl.jsxs=Jd;Ud.exports=gl;var o=Ud.exports,Xd={exports:{}},ct={},Zd={exports:{}},ef={};/** + */var Vh=O,qh=Symbol.for("react.element"),Hh=Symbol.for("react.fragment"),Yh=Object.prototype.hasOwnProperty,Kh=Vh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qh={key:!0,ref:!0,__self:!0,__source:!0};function Xd(e,t,n){var r,i={},l=null,s=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Yh.call(t,r)&&!Qh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:qh,type:e,key:l,ref:s,props:i,_owner:Kh.current}}gl.Fragment=Hh;gl.jsx=Xd;gl.jsxs=Xd;$d.exports=gl;var o=$d.exports,Zd={exports:{}},ct={},ef={exports:{}},tf={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Ch=Object.defineProperty;var bh=(e,t,n)=>t in e?Ch(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(k,S){var M=k.length;k.push(S);e:for(;0>>1,z=k[L];if(0>>1;Li(Q,M))Zi(te,Q)?(k[L]=te,k[Z]=M,L=Z):(k[L]=Q,k[V]=M,L=V);else if(Zi(te,M))k[L]=te,k[Z]=M,L=Z;else break e}}return S}function i(k,S){var M=k.sortIndex-S.sortIndex;return M!==0?M:k.id-S.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],c=[],d=1,p=null,y=3,N=!1,v=!1,x=!1,j=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 f(k){for(var S=n(c);S!==null;){if(S.callback===null)r(c);else if(S.startTime<=k)r(c),S.sortIndex=S.expirationTime,t(u,S);else break;S=n(c)}}function g(k){if(x=!1,f(k),!v)if(n(u)!==null)v=!0,B(w);else{var S=n(c);S!==null&&H(g,S.startTime-k)}}function w(k,S){v=!1,x&&(x=!1,m(C),C=-1),N=!0;var M=y;try{for(f(S),p=n(u);p!==null&&(!(p.expirationTime>S)||k&&!$());){var L=p.callback;if(typeof L=="function"){p.callback=null,y=p.priorityLevel;var z=L(p.expirationTime<=S);S=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(u)&&r(u),f(S)}else r(u);p=n(u)}if(p!==null)var W=!0;else{var V=n(c);V!==null&&H(g,V.startTime-S),W=!1}return W}finally{p=null,y=M,N=!1}}var b=!1,E=null,C=-1,D=5,F=-1;function $(){return!(e.unstable_now()-Fk||125L?(k.sortIndex=M,t(c,k),n(u)===null&&k===n(c)&&(x?(m(C),C=-1):x=!0,H(g,M-L))):(k.sortIndex=z,t(u,k),v||N||(v=!0,B(w))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var S=y;return function(){var M=y;y=S;try{return k.apply(this,arguments)}finally{y=M}}}})(ef);Zd.exports=ef;var Kh=Zd.exports;/** + */(function(e){function t(k,S){var D=k.length;k.push(S);e:for(;0>>1,z=k[L];if(0>>1;Li(Q,D))Zi(te,Q)?(k[L]=te,k[Z]=D,L=Z):(k[L]=Q,k[V]=D,L=V);else if(Zi(te,D))k[L]=te,k[Z]=D,L=Z;else break e}}return S}function i(k,S){var D=k.sortIndex-S.sortIndex;return D!==0?D:k.id-S.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],c=[],d=1,p=null,y=3,N=!1,v=!1,x=!1,j=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 f(k){for(var S=n(c);S!==null;){if(S.callback===null)r(c);else if(S.startTime<=k)r(c),S.sortIndex=S.expirationTime,t(u,S);else break;S=n(c)}}function g(k){if(x=!1,f(k),!v)if(n(u)!==null)v=!0,B(w);else{var S=n(c);S!==null&&H(g,S.startTime-k)}}function w(k,S){v=!1,x&&(x=!1,m(C),C=-1),N=!0;var D=y;try{for(f(S),p=n(u);p!==null&&(!(p.expirationTime>S)||k&&!$());){var L=p.callback;if(typeof L=="function"){p.callback=null,y=p.priorityLevel;var z=L(p.expirationTime<=S);S=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(u)&&r(u),f(S)}else r(u);p=n(u)}if(p!==null)var W=!0;else{var V=n(c);V!==null&&H(g,V.startTime-S),W=!1}return W}finally{p=null,y=D,N=!1}}var b=!1,E=null,C=-1,M=5,F=-1;function $(){return!(e.unstable_now()-Fk||125L?(k.sortIndex=D,t(c,k),n(u)===null&&k===n(c)&&(x?(m(C),C=-1):x=!0,H(g,D-L))):(k.sortIndex=z,t(u,k),v||N||(v=!0,B(w))),k},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(k){var S=y;return function(){var D=y;y=S;try{return k.apply(this,arguments)}finally{y=D}}}})(tf);ef.exports=tf;var Gh=ef.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var Ch=Object.defineProperty;var bh=(e,t,n)=>t in e?Ch(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qh=O,lt=Kh;function U(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"),Is=Object.prototype.hasOwnProperty,Gh=/^[: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]*$/,tu={},nu={};function Jh(e){return Is.call(nu,e)?!0:Is.call(tu,e)?!1:Gh.test(e)?nu[e]=!0:(tu[e]=!0,!1)}function Xh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zh(e,t,n,r){if(t===null||typeof t>"u"||Xh(e,t,n,r))return!0;if(r)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 Ve(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(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 Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(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 Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Qa=/[\-:]([a-z])/g;function Ga(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(Qa,Ga);Ie[t]=new Ve(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(Qa,Ga);Ie[t]=new Ve(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(Qa,Ga);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ja(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=Object.prototype.hasOwnProperty,Xh=/^[: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]*$/,nu={},ru={};function Zh(e){return Ds.call(ru,e)?!0:Ds.call(nu,e)?!1:Xh.test(e)?ru[e]=!0:(nu[e]=!0,!1)}function ev(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tv(e,t,n,r){if(t===null||typeof t>"u"||ev(e,t,n,r))return!0;if(r)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 Ve(e,t,n,r,i,l,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=s}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ve(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 Ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ve(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 Ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ga=/[\-:]([a-z])/g;function Ja(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(Ga,Ja);Ie[t]=new Ve(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(Ga,Ja);Ie[t]=new Ve(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(Ga,Ja);Ie[t]=new Ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xa(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==l[a]){var u=` -`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{Zl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qr(e):""}function ev(e){switch(e.tag){case 5:return qr(e.type);case 16:return qr("Lazy");case 13:return qr("Suspense");case 19:return qr("SuspenseList");case 0:case 2:case 15:return e=es(e.type,!1),e;case 11:return e=es(e.type.render,!1),e;case 1:return e=es(e.type,!0),e;default:return""}}function Fs(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 Jn:return"Fragment";case Gn:return"Portal";case Ds:return"Profiler";case Xa:return"StrictMode";case Ms:return"Suspense";case Ls:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rf:return(e.displayName||"Context")+".Consumer";case nf:return(e._context.displayName||"Context")+".Provider";case Za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ec:return t=e.displayName||null,t!==null?t:Fs(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return Fs(e(t))}catch{}}return null}function tv(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 Fs(t);case 8:return t===Xa?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nv(e){var t=lf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=nv(e))}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function zs(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function iu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function af(e,t){t=t.checked,t!=null&&Ja(e,"checked",t,!1)}function Bs(e,t){af(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Us(e,t.type,n):t.hasOwnProperty("defaultValue")&&Us(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ou(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Us(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hr=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gr={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},rv=["Webkit","ms","Moz","O"];Object.keys(Gr).forEach(function(e){rv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gr[t]=Gr[e]})});function ff(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gr.hasOwnProperty(e)&&Gr[e]?(""+t).trim():t+"px"}function pf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ff(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var iv=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 Vs(e,t){if(t){if(iv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function qs(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 Hs=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ys=null,mr=null,hr=null;function au(e){if(e=Mi(e)){if(typeof Ys!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Cl(t),Ys(e.stateNode,e.type,t))}}function mf(e){mr?hr?hr.push(e):hr=[e]:mr=e}function hf(){if(mr){var e=mr,t=hr;if(hr=mr=null,au(e),t)for(e=0;e>>=0,e===0?32:31-(hv(e)/vv|0)|0}var Ki=64,Qi=4194304;function Yr(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 Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yr(a):(l&=s,l!==0&&(r=Yr(l)))}else s=n&~i,s!==0?r=Yr(s):l!==0&&(r=Yr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xr),yu=" ",gu=!1;function Df(e,t){switch(e){case"keyup":return Kv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Gv(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(gu=!0,yu);case"textInput":return e=t.data,e===yu&&gu?null:e;default:return null}}function Jv(e,t){if(Xn)return e==="compositionend"||!cc&&Df(e,t)?(e=Af(),mo=lc=on=null,Xn=!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=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wu(n)}}function Bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uf(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function uc(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 ly(e){var t=Uf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Bf(n.ownerDocument.documentElement,n)){if(r!==null&&uc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Cu(n,l);var s=Cu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Zn=null,Zs=null,ei=null,ea=!1;function bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ea||Zn==null||Zn!==Mo(r)||(r=Zn,"selectionStart"in r&&uc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ei&&vi(ei,r)||(ei=r,r=Wo(Zs,"onSelect"),0nr||(e.current=la[nr],la[nr]=null,nr--)}function ue(e,t){nr++,la[nr]=e.current,e.current=t}var xn={},Fe=wn(xn),Ke=wn(!1),Fn=xn;function jr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qe(e){return e=e.childContextTypes,e!=null}function qo(){me(Ke),me(Fe)}function Tu(e,t,n){if(Fe.current!==xn)throw Error(U(168));ue(Fe,t),ue(Ke,n)}function Gf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,tv(e)||"Unknown",i));return xe({},n,r)}function Ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Fn=Fe.current,ue(Fe,e),ue(Ke,Ke.current),!0}function Ru(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Gf(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,me(Ke),me(Fe),ue(Fe,e)):me(Ke),ue(Ke,n)}var Ft=null,bl=!1,ms=!1;function Jf(e){Ft===null?Ft=[e]:Ft.push(e)}function gy(e){bl=!0,Jf(e)}function Cn(){if(!ms&&Ft!==null){ms=!0;var e=0,t=ce;try{var n=Ft;for(ce=1;e>=s,i-=s,zt=1<<32-wt(t)+i|n<C?(D=E,E=null):D=E.sibling;var F=y(m,E,f[C],g);if(F===null){E===null&&(E=D);break}e&&E&&F.alternate===null&&t(m,E),h=l(F,h,C),b===null?w=F:b.sibling=F,b=F,E=D}if(C===f.length)return n(m,E),ve&&Sn(m,C),w;if(E===null){for(;CC?(D=E,E=null):D=E.sibling;var $=y(m,E,F.value,g);if($===null){E===null&&(E=D);break}e&&E&&$.alternate===null&&t(m,E),h=l($,h,C),b===null?w=$:b.sibling=$,b=$,E=D}if(F.done)return n(m,E),ve&&Sn(m,C),w;if(E===null){for(;!F.done;C++,F=f.next())F=p(m,F.value,g),F!==null&&(h=l(F,h,C),b===null?w=F:b.sibling=F,b=F);return ve&&Sn(m,C),w}for(E=r(m,E);!F.done;C++,F=f.next())F=N(E,m,C,F.value,g),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?C:F.key),h=l(F,h,C),b===null?w=F:b.sibling=F,b=F);return e&&E.forEach(function(J){return t(m,J)}),ve&&Sn(m,C),w}function j(m,h,f,g){if(typeof f=="object"&&f!==null&&f.type===Jn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case qi:e:{for(var w=f.key,b=h;b!==null;){if(b.key===w){if(w=f.type,w===Jn){if(b.tag===7){n(m,b.sibling),h=i(b,f.props.children),h.return=m,m=h;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jt&&Du(w)===b.type){n(m,b.sibling),h=i(b,f.props),h.ref=Ur(m,b,f),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}f.type===Jn?(h=Dn(f.props.children,m.mode,g,f.key),h.return=m,m=h):(g=wo(f.type,f.key,f.props,null,m.mode,g),g.ref=Ur(m,h,f),g.return=m,m=g)}return s(m);case Gn:e:{for(b=f.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===f.containerInfo&&h.stateNode.implementation===f.implementation){n(m,h.sibling),h=i(h,f.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ws(f,m.mode,g),h.return=m,m=h}return s(m);case Jt:return b=f._init,j(m,h,b(f._payload),g)}if(Hr(f))return v(m,h,f,g);if(Mr(f))return x(m,h,f,g);no(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,f),h.return=m,m=h):(n(m,h),h=Ns(f,m.mode,g),h.return=m,m=h),s(m)):n(m,h)}return j}var wr=tp(!0),np=tp(!1),Qo=wn(null),Go=null,or=null,mc=null;function hc(){mc=or=Go=null}function vc(e){var t=Qo.current;me(Qo),e._currentValue=t}function ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Go=e,mc=or=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(mc!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Go===null)throw Error(U(308));or=e,Go.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Tn=null;function yc(e){Tn===null?Tn=[e]:Tn.push(e)}function rp(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,yc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 gc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ip(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Vt(e,n)}return i=r.interleaved,i===null?(t.next=t,yc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Vt(e,n)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rc(e,n)}}function Mu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jo(e,t,n,r){var i=e.updateQueue;Xt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,s===null?l=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(l!==null){var p=i.baseState;s=0,d=c=u=null,a=l;do{var y=a.lane,N=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(y=t,N=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=xe({},p,y);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else N={eventTime:N,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=N,u=p):d=d.next=N,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Un|=s,e.lanes=s,e.memoizedState=p}}function Lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=vs.transition;vs.transition={};try{e(!1),t()}finally{ce=n,vs.transition=r}}function Np(){return vt().memoizedState}function wy(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wp(e))Cp(t,n);else if(n=rp(e,t,n,r),n!==null){var i=$e();Ct(n,e,r,i),bp(n,t,r)}}function Cy(e,t,n){var r=hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wp(e))Cp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.hasEagerState=!0,i.eagerState=a,Et(a,s)){var u=t.interleaved;u===null?(i.next=i,yc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=rp(e,t,i,r),n!==null&&(i=$e(),Ct(n,e,r,i),bp(n,t,r))}}function wp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Cp(e,t){ti=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rc(e,n)}}var el={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},by={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,vp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(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 r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=wy.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:Fu,useDebugValue:Sc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=Fu(!1),t=e[0];return e=Ny.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Pt();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Pe===null)throw Error(U(349));Bn&30||ap(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,zu(up.bind(null,r,l,e),[e]),r.flags|=2048,bi(9,cp.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0")&&(u=u.replace("",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{es=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qr(e):""}function nv(e){switch(e.tag){case 5:return qr(e.type);case 16:return qr("Lazy");case 13:return qr("Suspense");case 19:return qr("SuspenseList");case 0:case 2:case 15:return e=ts(e.type,!1),e;case 11:return e=ts(e.type.render,!1),e;case 1:return e=ts(e.type,!0),e;default:return""}}function zs(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 Jn:return"Fragment";case Gn:return"Portal";case Ms:return"Profiler";case Za:return"StrictMode";case Ls:return"Suspense";case Fs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case of:return(e.displayName||"Context")+".Consumer";case rf:return(e._context.displayName||"Context")+".Provider";case ec:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tc:return t=e.displayName||null,t!==null?t:zs(e.type)||"Memo";case Jt:t=e._payload,e=e._init;try{return zs(e(t))}catch{}}return null}function rv(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 zs(t);case 8:return t===Za?"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 gn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iv(e){var t=sf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=iv(e))}function af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bs(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ou(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cf(e,t){t=t.checked,t!=null&&Xa(e,"checked",t,!1)}function Us(e,t){cf(e,t);var n=gn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?$s(e,t.type,n):t.hasOwnProperty("defaultValue")&&$s(e,t.type,gn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function lu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 $s(e,t,n){(t!=="number"||Mo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hr=Array.isArray;function pr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gr={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},ov=["Webkit","ms","Moz","O"];Object.keys(Gr).forEach(function(e){ov.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gr[t]=Gr[e]})});function pf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gr.hasOwnProperty(e)&&Gr[e]?(""+t).trim():t+"px"}function mf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=pf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var lv=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 qs(e,t){if(t){if(lv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Hs(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 Ys=null;function nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ks=null,mr=null,hr=null;function cu(e){if(e=Mi(e)){if(typeof Ks!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Cl(t),Ks(e.stateNode,e.type,t))}}function hf(e){mr?hr?hr.push(e):hr=[e]:mr=e}function vf(){if(mr){var e=mr,t=hr;if(hr=mr=null,cu(e),t)for(e=0;e>>=0,e===0?32:31-(yv(e)/gv|0)|0}var Ki=64,Qi=4194304;function Yr(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 Bo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Yr(a):(l&=s,l!==0&&(r=Yr(l)))}else s=n&~i,s!==0?r=Yr(s):l!==0&&(r=Yr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ii(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function wv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Xr),gu=" ",xu=!1;function Mf(e,t){switch(e){case"keyup":return Gv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xn=!1;function Xv(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(xu=!0,gu);case"textInput":return e=t.data,e===gu&&xu?null:e;default:return null}}function Zv(e,t){if(Xn)return e==="compositionend"||!uc&&Mf(e,t)?(e=If(),mo=sc=on=null,Xn=!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=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cu(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $f(){for(var e=window,t=Mo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mo(e.document)}return t}function dc(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 ay(e){var t=$f(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Uf(n.ownerDocument.documentElement,n)){if(r!==null&&dc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=bu(n,l);var s=bu(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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,Zn=null,ea=null,ei=null,ta=!1;function Eu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ta||Zn==null||Zn!==Mo(r)||(r=Zn,"selectionStart"in r&&dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ei&&vi(ei,r)||(ei=r,r=Wo(ea,"onSelect"),0nr||(e.current=sa[nr],sa[nr]=null,nr--)}function ue(e,t){nr++,sa[nr]=e.current,e.current=t}var xn={},Fe=wn(xn),Ke=wn(!1),Fn=xn;function jr(e,t){var n=e.type.contextTypes;if(!n)return xn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qe(e){return e=e.childContextTypes,e!=null}function qo(){me(Ke),me(Fe)}function Ru(e,t,n){if(Fe.current!==xn)throw Error(U(168));ue(Fe,t),ue(Ke,n)}function Jf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(U(108,rv(e)||"Unknown",i));return xe({},n,r)}function Ho(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xn,Fn=Fe.current,ue(Fe,e),ue(Ke,Ke.current),!0}function Au(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=Jf(e,t,Fn),r.__reactInternalMemoizedMergedChildContext=e,me(Ke),me(Fe),ue(Fe,e)):me(Ke),ue(Ke,n)}var Ft=null,bl=!1,hs=!1;function Xf(e){Ft===null?Ft=[e]:Ft.push(e)}function jy(e){bl=!0,Xf(e)}function Cn(){if(!hs&&Ft!==null){hs=!0;var e=0,t=ce;try{var n=Ft;for(ce=1;e>=s,i-=s,zt=1<<32-wt(t)+i|n<C?(M=E,E=null):M=E.sibling;var F=y(m,E,f[C],g);if(F===null){E===null&&(E=M);break}e&&E&&F.alternate===null&&t(m,E),h=l(F,h,C),b===null?w=F:b.sibling=F,b=F,E=M}if(C===f.length)return n(m,E),ve&&Sn(m,C),w;if(E===null){for(;CC?(M=E,E=null):M=E.sibling;var $=y(m,E,F.value,g);if($===null){E===null&&(E=M);break}e&&E&&$.alternate===null&&t(m,E),h=l($,h,C),b===null?w=$:b.sibling=$,b=$,E=M}if(F.done)return n(m,E),ve&&Sn(m,C),w;if(E===null){for(;!F.done;C++,F=f.next())F=p(m,F.value,g),F!==null&&(h=l(F,h,C),b===null?w=F:b.sibling=F,b=F);return ve&&Sn(m,C),w}for(E=r(m,E);!F.done;C++,F=f.next())F=N(E,m,C,F.value,g),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?C:F.key),h=l(F,h,C),b===null?w=F:b.sibling=F,b=F);return e&&E.forEach(function(J){return t(m,J)}),ve&&Sn(m,C),w}function j(m,h,f,g){if(typeof f=="object"&&f!==null&&f.type===Jn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case qi:e:{for(var w=f.key,b=h;b!==null;){if(b.key===w){if(w=f.type,w===Jn){if(b.tag===7){n(m,b.sibling),h=i(b,f.props.children),h.return=m,m=h;break e}}else if(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Jt&&Mu(w)===b.type){n(m,b.sibling),h=i(b,f.props),h.ref=Ur(m,b,f),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}f.type===Jn?(h=Dn(f.props.children,m.mode,g,f.key),h.return=m,m=h):(g=wo(f.type,f.key,f.props,null,m.mode,g),g.ref=Ur(m,h,f),g.return=m,m=g)}return s(m);case Gn:e:{for(b=f.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===f.containerInfo&&h.stateNode.implementation===f.implementation){n(m,h.sibling),h=i(h,f.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Cs(f,m.mode,g),h.return=m,m=h}return s(m);case Jt:return b=f._init,j(m,h,b(f._payload),g)}if(Hr(f))return v(m,h,f,g);if(Mr(f))return x(m,h,f,g);no(m,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,f),h.return=m,m=h):(n(m,h),h=ws(f,m.mode,g),h.return=m,m=h),s(m)):n(m,h)}return j}var wr=np(!0),rp=np(!1),Qo=wn(null),Go=null,or=null,hc=null;function vc(){hc=or=Go=null}function yc(e){var t=Qo.current;me(Qo),e._currentValue=t}function ua(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){Go=e,hc=or=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(hc!==e)if(e={context:e,memoizedValue:t,next:null},or===null){if(Go===null)throw Error(U(308));or=e,Go.dependencies={lanes:0,firstContext:e}}else or=or.next=e;return t}var Tn=null;function gc(e){Tn===null?Tn=[e]:Tn.push(e)}function ip(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,gc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Vt(e,r)}function Vt(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 xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function op(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 Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Vt(e,n)}return i=r.interleaved,i===null?(t.next=t,gc(r)):(t.next=i.next,i.next=t),r.interleaved=t,Vt(e,n)}function vo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}function Lu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=s:l=l.next=s,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jo(e,t,n,r){var i=e.updateQueue;Xt=!1;var l=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,c=u.next;u.next=null,s===null?l=c:s.next=c,s=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==s&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=u))}if(l!==null){var p=i.baseState;s=0,d=c=u=null,a=l;do{var y=a.lane,N=a.eventTime;if((r&y)===y){d!==null&&(d=d.next={eventTime:N,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,x=a;switch(y=t,N=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){p=v.call(N,p,y);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,y=typeof v=="function"?v.call(N,p,y):v,y==null)break e;p=xe({},p,y);break e;case 2:Xt=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,y=i.effects,y===null?i.effects=[a]:y.push(a))}else N={eventTime:N,lane:y,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=N,u=p):d=d.next=N,s|=y;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;y=a,a=y.next,y.next=null,i.lastBaseUpdate=y,i.shared.pending=null}}while(!0);if(d===null&&(u=p),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Un|=s,e.lanes=s,e.memoizedState=p}}function Fu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{ce=n,ys.transition=r}}function wp(){return vt().memoizedState}function by(e,t,n){var r=hn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cp(e))bp(t,n);else if(n=ip(e,t,n,r),n!==null){var i=$e();Ct(n,e,r,i),Ep(n,t,r)}}function Ey(e,t,n){var r=hn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cp(e))bp(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.hasEagerState=!0,i.eagerState=a,Et(a,s)){var u=t.interleaved;u===null?(i.next=i,gc(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=ip(e,t,i,r),n!==null&&(i=$e(),Ct(n,e,r,i),Ep(n,t,r))}}function Cp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function bp(e,t){ti=Zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ep(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ic(e,n)}}var el={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},Sy={readContext:ht,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:Bu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,go(4194308,4,yp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){return go(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 r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=by.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:zu,useDebugValue:kc,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=zu(!1),t=e[0];return e=Cy.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,i=Pt();if(ve){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Pe===null)throw Error(U(349));Bn&30||cp(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Bu(dp.bind(null,r,l,e),[e]),r.flags|=2048,bi(9,up.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Pe.identifierPrefix;if(ve){var n=Bt,r=zt;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Tt]=t,e[xi]=r,Ip(e,t,!1,!1),t.stateNode=e;e:{switch(s=qs(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iEr&&(t.flags|=128,r=!0,$r(l,!1),t.lanes=4194304)}else{if(!r)if(e=Xo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ve)return Me(t),null}else 2*Ce()-l.renderingStartTime>Er&&n!==1073741824&&(t.flags|=128,r=!0,$r(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ce(),t.sibling=null,n=ye.current,ue(ye,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Rc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&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(U(156,t.tag))}function Ry(e,t){switch(fc(t),t.tag){case 1:return Qe(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),me(Ke),me(Fe),Nc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jc(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return Cr(),null;case 10:return vc(t.type._context),null;case 22:case 23:return Rc(),null;case 24:return null;default:return null}}var io=!1,Le=!1,Ay=typeof WeakSet=="function"?WeakSet:Set,q=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function ga(e,t,n){try{n()}catch(r){je(e,t,r)}}var Gu=!1;function Iy(e,t){if(ta=Uo,e=Uf(),uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,c=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==l||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++c===i&&(a=s),y===l&&++d===r&&(u=s),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(na={focusedElem:e,selectionRange:n},Uo=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;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 x=v.memoizedProps,j=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:gt(t.type,x),j);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){je(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return v=Gu,Gu=!1,v}function ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&ga(t,n,l)}i=i.next}while(i!==r)}}function kl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xa(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 Lp(e){var t=e.alternate;t!==null&&(e.alternate=null,Lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[xi],delete t[oa],delete t[vy],delete t[yy])),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 Fp(e){return e.tag===5||e.tag===3||e.tag===4}function Ju(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(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 ja(e,t,n){var r=e.tag;if(r===5||r===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=Vo));else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}function Na(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}var Re=null,xt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)zp(e,t,n),n=n.sibling}function zp(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Le||lr(n,t);case 6:var r=Re,i=xt;Re=null,Qt(e,t,n),Re=r,xt=i,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?ps(e.parentNode,n):e.nodeType===1&&ps(e,n),mi(e)):ps(Re,n.stateNode));break;case 4:r=Re,i=xt,Re=n.stateNode.containerInfo,xt=!0,Qt(e,t,n),Re=r,xt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&ga(n,t,s),i=i.next}while(i!==r)}Qt(e,t,n);break;case 1:if(!Le&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Qt(e,t,n),Le=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Xu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ay),t.forEach(function(r){var i=Wy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*My(r/1960))-r,10e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,rl=0,le&6)throw Error(U(331));var i=le;for(le|=4,q=e.current;q!==null;){var l=q,s=l.child;if(q.flags&16){var a=l.deletions;if(a!==null){for(var u=0;uCe()-Oc?In(e,0):Pc|=n),Ge(e,t)}function Yp(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=$e();e=Vt(e,t),e!==null&&(Ii(e,t,n),Ge(e,n))}function $y(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yp(e,n)}function Wy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Yp(e,n)}var Kp;Kp=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,Oy(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ve&&t.flags&1048576&&Xf(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xo(e,t),e=t.pendingProps;var i=jr(t,Fe.current);yr(t,n),i=Cc(null,t,r,e,i,n);var l=bc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(l=!0,Ho(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gc(t),i.updater=Sl,t.stateNode=i,i._reactInternals=t,da(t,r,e,n),t=ma(null,t,r,!0,l,n)):(t.tag=0,ve&&l&&dc(t),Be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=qy(r),e=gt(r,e),i){case 0:t=pa(null,t,r,e,n);break e;case 1:t=Yu(null,t,r,e,n);break e;case 11:t=qu(null,t,r,e,n);break e;case 14:t=Hu(null,t,r,gt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),pa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Yu(e,t,r,i,n);case 3:e:{if(Tp(t),e===null)throw Error(U(387));r=t.pendingProps,l=t.memoizedState,i=l.element,ip(e,t),Jo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=br(Error(U(423)),t),t=Ku(e,t,r,n,i);break e}else if(r!==i){i=br(Error(U(424)),t),t=Ku(e,t,r,n,i);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=np(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===i){t=qt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return op(t),e===null&&aa(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,ra(r,i)?s=null:l!==null&&ra(r,l)&&(t.flags|=32),Op(e,t),Be(e,t,s,n),t.child;case 6:return e===null&&aa(t),null;case 13:return Rp(e,t,n);case 4:return xc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),qu(e,t,r,i,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,ue(Qo,r._currentValue),r._currentValue=s,l!==null)if(Et(l.value,s)){if(l.children===i.children&&!Ke.current){t=qt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ut(-1,n&-n),u.tag=2;var c=l.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}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ca(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ca(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=ht(i),r=r(i),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,i=gt(r,t.pendingProps),i=gt(r.type,i),Hu(e,t,r,i,n);case 15:return _p(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),xo(e,t),t.tag=1,Qe(r)?(e=!0,Ho(t)):e=!1,yr(t,n),Ep(t,r,i),da(t,r,i,n),ma(null,t,r,!0,e,n);case 19:return Ap(e,t,n);case 22:return Pp(e,t,n)}throw Error(U(156,t.tag))};function Qp(e,t){return wf(e,t)}function Vy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new Vy(e,t,n,r)}function Ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function qy(e){if(typeof e=="function")return Ic(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Za)return 11;if(e===ec)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 wo(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Ic(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jn:return Dn(n.children,i,l,t);case Xa:s=8,i|=8;break;case Ds:return e=pt(12,n,t,i|2),e.elementType=Ds,e.lanes=l,e;case Ms:return e=pt(13,n,t,i),e.elementType=Ms,e.lanes=l,e;case Ls:return e=pt(19,n,t,i),e.elementType=Ls,e.lanes=l,e;case of:return Pl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nf:s=10;break e;case rf:s=9;break e;case Za:s=11;break e;case ec:s=14;break e;case Jt:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=pt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Dn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=of,e.lanes=n,e.stateNode={isHidden:!1},e}function Ns(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function ws(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 Hy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ns(0),this.expirationTimes=ns(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,i,l,s,a,u){return e=new Hy(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gc(l),e}function Yy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zp)}catch(e){console.error(e)}}Zp(),Xd.exports=ct;var Xy=Xd.exports,em,ld=Xy;em=ld.createRoot,ld.hydrateRoot;var tm={exports:{}},nm={};/** +`+l.stack}return{value:e,source:t,stack:i,digest:null}}function js(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Py=typeof WeakMap=="function"?WeakMap:Map;function kp(e,t,n){n=Ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nl||(nl=!0,Ca=r),pa(e,t)},n}function _p(e,t,n){n=Ut(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){pa(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){pa(e,t),typeof r!="function"&&(mn===null?mn=new Set([this]):mn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Py;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Wy.bind(null,e,t,n),t.then(e,e))}function Vu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function qu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ut(-1,1),t.tag=2,pn(n,t,1))),n.lanes|=1),e)}var Oy=Yt.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?rp(t,null,n,r):wr(t,e.child,n,r)}function Hu(e,t,n,r,i){n=n.render;var l=t.ref;return yr(t,i),r=bc(e,t,n,r,l,i),n=Ec(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(ve&&n&&fc(t),t.flags|=1,Be(e,t,r,i),t.child)}function Yu(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Dc(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Pp(e,t,l,r,i)):(e=wo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:vi,n(s,r)&&e.ref===t.ref)return qt(e,t,i)}return t.flags|=1,e=vn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Pp(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(vi(l,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ye=!0);else return t.lanes=e.lanes,qt(e,t,i)}return ma(e,t,n,r,i)}function Op(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(sr,et),et|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(sr,et),et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ue(sr,et),et|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ue(sr,et),et|=r;return Be(e,t,i,n),t.child}function Tp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ma(e,t,n,r,i){var l=Qe(n)?Fn:Fe.current;return l=jr(t,l),yr(t,i),n=bc(e,t,n,r,l,i),r=Ec(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(ve&&r&&fc(t),t.flags|=1,Be(e,t,n,i),t.child)}function Ku(e,t,n,r,i){if(Qe(n)){var l=!0;Ho(t)}else l=!1;if(yr(t,i),t.stateNode===null)xo(e,t),Sp(t,n,r),fa(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ht(c):(c=Qe(n)?Fn:Fe.current,c=jr(t,c));var d=n.getDerivedStateFromProps,p=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==c)&&$u(t,s,r,c),Xt=!1;var y=t.memoizedState;s.state=y,Jo(t,r,s,i),u=t.memoizedState,a!==r||y!==u||Ke.current||Xt?(typeof d=="function"&&(da(t,n,d,r),u=t.memoizedState),(a=Xt||Uu(t,n,a,r,y,u,c))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,op(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:gt(t.type,a),s.props=c,p=t.pendingProps,y=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=ht(u):(u=Qe(n)?Fn:Fe.current,u=jr(t,u));var N=n.getDerivedStateFromProps;(d=typeof N=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==p||y!==u)&&$u(t,s,r,u),Xt=!1,y=t.memoizedState,s.state=y,Jo(t,r,s,i);var v=t.memoizedState;a!==p||y!==v||Ke.current||Xt?(typeof N=="function"&&(da(t,n,N,r),v=t.memoizedState),(c=Xt||Uu(t,n,c,r,y,v,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ha(e,t,n,r,l,i)}function ha(e,t,n,r,i,l){Tp(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Au(t,n,!1),qt(e,t,l);r=t.stateNode,Oy.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=wr(t,e.child,null,l),t.child=wr(t,null,a,l)):Be(e,t,a,l),t.memoizedState=r.state,i&&Au(t,n,!0),t.child}function Rp(e){var t=e.stateNode;t.pendingContext?Ru(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ru(e,t.context,!1),jc(e,t.containerInfo)}function Qu(e,t,n,r,i){return Nr(),mc(i),t.flags|=256,Be(e,t,n,r),t.child}var va={dehydrated:null,treeContext:null,retryLane:0};function ya(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ap(e,t,n){var r=t.pendingProps,i=ye.current,l=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ue(ye,i&1),e===null)return ca(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=Pl(s,r,0,null),e=Dn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=ya(n),t.memoizedState=va,e):_c(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ty(e,t,s,r,a,i,n);if(l){l=r.fallback,s=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=vn(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?l=vn(a,l):(l=Dn(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?ya(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=va,r}return l=e.child,e=l.sibling,r=vn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _c(e,t){return t=Pl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ro(e,t,n,r){return r!==null&&mc(r),wr(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ty(e,t,n,r,i,l,s){if(n)return t.flags&256?(t.flags&=-257,r=js(Error(U(422))),ro(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=Pl({mode:"visible",children:r.children},i,0,null),l=Dn(l,i,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&wr(t,e.child,null,s),t.child.memoizedState=ya(s),t.memoizedState=va,l);if(!(t.mode&1))return ro(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,l=Error(U(419)),r=js(l,r,void 0),ro(e,t,s,r)}if(a=(s&e.childLanes)!==0,Ye||a){if(r=Pe,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Vt(e,i),Ct(r,e,i,-1))}return Ic(),r=js(Error(U(421))),ro(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Vy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,tt=fn(i.nextSibling),it=t,ve=!0,jt=null,e!==null&&(dt[ft++]=zt,dt[ft++]=Bt,dt[ft++]=zn,zt=e.id,Bt=e.overflow,zn=t),t=_c(t,r.children),t.flags|=4096,t)}function Gu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ua(e.return,t,n)}function Ns(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Ip(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Be(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Gu(e,n,t);else if(e.tag===19)Gu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(ye,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Xo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ns(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Xo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ns(t,!0,n,null,l);break;case"together":Ns(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=vn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ry(e,t,n){switch(t.tag){case 3:Rp(t),Nr();break;case 5:lp(t);break;case 1:Qe(t.type)&&Ho(t);break;case 4:jc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ue(Qo,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?Ap(e,t,n):(ue(ye,ye.current&1),e=qt(e,t,n),e!==null?e.sibling:null);ue(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ip(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ue(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Op(e,t,n)}return qt(e,t,n)}var Dp,ga,Mp,Lp;Dp=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ga=function(){};Mp=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Rn(It.current);var l=null;switch(n){case"input":i=Bs(e,i),r=Bs(e,r),l=[];break;case"select":i=xe({},i,{value:void 0}),r=xe({},r,{value:void 0}),l=[];break;case"textarea":i=Ws(e,i),r=Ws(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vo)}qs(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ci.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ci.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&pe("scroll",e),l||a===u||(l=[])):(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Lp=function(e,t,n,r){n!==r&&(t.flags|=4)};function $r(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ay(e,t,n){var r=t.pendingProps;switch(pc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Qe(t.type)&&qo(),Me(t),null;case 3:return r=t.stateNode,Cr(),me(Ke),me(Fe),wc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(to(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Sa(jt),jt=null))),ga(e,t),Me(t),null;case 5:Nc(t);var i=Rn(Ni.current);if(n=t.type,e!==null&&t.stateNode!=null)Mp(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Me(t),null}if(e=Rn(It.current),to(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Tt]=t,r[xi]=l,e=(t.mode&1)!==0,n){case"dialog":pe("cancel",r),pe("close",r);break;case"iframe":case"object":case"embed":pe("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Tt]=t,e[xi]=r,Dp(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hs(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iEr&&(t.flags|=128,r=!0,$r(l,!1),t.lanes=4194304)}else{if(!r)if(e=Xo(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$r(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!ve)return Me(t),null}else 2*Ce()-l.renderingStartTime>Er&&n!==1073741824&&(t.flags|=128,r=!0,$r(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ce(),t.sibling=null,n=ye.current,ue(ye,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Ac(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&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(U(156,t.tag))}function Iy(e,t){switch(pc(t),t.tag){case 1:return Qe(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),me(Ke),me(Fe),wc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nc(t),null;case 13:if(me(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(ye),null;case 4:return Cr(),null;case 10:return yc(t.type._context),null;case 22:case 23:return Ac(),null;case 24:return null;default:return null}}var io=!1,Le=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,q=null;function lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){je(e,t,r)}else n.current=null}function xa(e,t,n){try{n()}catch(r){je(e,t,r)}}var Ju=!1;function My(e,t){if(na=Uo,e=$f(),dc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var s=0,a=-1,u=-1,c=0,d=0,p=e,y=null;t:for(;;){for(var N;p!==n||i!==0&&p.nodeType!==3||(a=s+i),p!==l||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(N=p.firstChild)!==null;)y=p,p=N;for(;;){if(p===e)break t;if(y===n&&++c===i&&(a=s),y===l&&++d===r&&(u=s),(N=p.nextSibling)!==null)break;p=y,y=p.parentNode}p=N}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ra={focusedElem:e,selectionRange:n},Uo=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;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 x=v.memoizedProps,j=v.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?x:gt(t.type,x),j);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(g){je(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return v=Ju,Ju=!1,v}function ni(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&xa(t,n,l)}i=i.next}while(i!==r)}}function kl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ja(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 Fp(e){var t=e.alternate;t!==null&&(e.alternate=null,Fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tt],delete t[xi],delete t[la],delete t[gy],delete t[xy])),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 zp(e){return e.tag===5||e.tag===3||e.tag===4}function Xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zp(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 Na(e,t,n){var r=e.tag;if(r===5||r===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=Vo));else if(r!==4&&(e=e.child,e!==null))for(Na(e,t,n),e=e.sibling;e!==null;)Na(e,t,n),e=e.sibling}function wa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(wa(e,t,n),e=e.sibling;e!==null;)wa(e,t,n),e=e.sibling}var Re=null,xt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Bp(e,t,n),n=n.sibling}function Bp(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:Le||lr(n,t);case 6:var r=Re,i=xt;Re=null,Qt(e,t,n),Re=r,xt=i,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?ms(e.parentNode,n):e.nodeType===1&&ms(e,n),mi(e)):ms(Re,n.stateNode));break;case 4:r=Re,i=xt,Re=n.stateNode.containerInfo,xt=!0,Qt(e,t,n),Re=r,xt=i;break;case 0:case 11:case 14:case 15:if(!Le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&xa(n,t,s),i=i.next}while(i!==r)}Qt(e,t,n);break;case 1:if(!Le&&(lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){je(n,t,a)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Le=(r=Le)||n.memoizedState!==null,Qt(e,t,n),Le=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function Zu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dy),t.forEach(function(r){var i=qy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~l}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fy(r/1960))-r,10e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,rl=0,le&6)throw Error(U(331));var i=le;for(le|=4,q=e.current;q!==null;){var l=q,s=l.child;if(q.flags&16){var a=l.deletions;if(a!==null){for(var u=0;uCe()-Tc?In(e,0):Oc|=n),Ge(e,t)}function Kp(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=$e();e=Vt(e,t),e!==null&&(Ii(e,t,n),Ge(e,n))}function Vy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kp(e,n)}function qy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),Kp(e,n)}var Qp;Qp=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,Ry(e,t,n);Ye=!!(e.flags&131072)}else Ye=!1,ve&&t.flags&1048576&&Zf(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xo(e,t),e=t.pendingProps;var i=jr(t,Fe.current);yr(t,n),i=bc(null,t,r,e,i,n);var l=Ec();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(l=!0,Ho(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xc(t),i.updater=Sl,t.stateNode=i,i._reactInternals=t,fa(t,r,e,n),t=ha(null,t,r,!0,l,n)):(t.tag=0,ve&&l&&fc(t),Be(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Yy(r),e=gt(r,e),i){case 0:t=ma(null,t,r,e,n);break e;case 1:t=Ku(null,t,r,e,n);break e;case 11:t=Hu(null,t,r,e,n);break e;case 14:t=Yu(null,t,r,gt(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),ma(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Ku(e,t,r,i,n);case 3:e:{if(Rp(t),e===null)throw Error(U(387));r=t.pendingProps,l=t.memoizedState,i=l.element,op(e,t),Jo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=br(Error(U(423)),t),t=Qu(e,t,r,n,i);break e}else if(r!==i){i=br(Error(U(424)),t),t=Qu(e,t,r,n,i);break e}else for(tt=fn(t.stateNode.containerInfo.firstChild),it=t,ve=!0,jt=null,n=rp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nr(),r===i){t=qt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return lp(t),e===null&&ca(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,s=i.children,ia(r,i)?s=null:l!==null&&ia(r,l)&&(t.flags|=32),Tp(e,t),Be(e,t,s,n),t.child;case 6:return e===null&&ca(t),null;case 13:return Ap(e,t,n);case 4:return jc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wr(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),Hu(e,t,r,i,n);case 7:return Be(e,t,t.pendingProps,n),t.child;case 8:return Be(e,t,t.pendingProps.children,n),t.child;case 12:return Be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,s=i.value,ue(Qo,r._currentValue),r._currentValue=s,l!==null)if(Et(l.value,s)){if(l.children===i.children&&!Ke.current){t=qt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){s=l.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ut(-1,n&-n),u.tag=2;var c=l.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}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ua(l.return,n,t),a.lanes|=n;break}u=u.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(U(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ua(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}Be(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=ht(i),r=r(i),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,i=gt(r,t.pendingProps),i=gt(r.type,i),Yu(e,t,r,i,n);case 15:return Pp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gt(r,i),xo(e,t),t.tag=1,Qe(r)?(e=!0,Ho(t)):e=!1,yr(t,n),Sp(t,r,i),fa(t,r,i,n),ha(null,t,r,!0,e,n);case 19:return Ip(e,t,n);case 22:return Op(e,t,n)}throw Error(U(156,t.tag))};function Gp(e,t){return Cf(e,t)}function Hy(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new Hy(e,t,n,r)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yy(e){if(typeof e=="function")return Dc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ec)return 11;if(e===tc)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 wo(e,t,n,r,i,l){var s=2;if(r=e,typeof e=="function")Dc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jn:return Dn(n.children,i,l,t);case Za:s=8,i|=8;break;case Ms:return e=pt(12,n,t,i|2),e.elementType=Ms,e.lanes=l,e;case Ls:return e=pt(13,n,t,i),e.elementType=Ls,e.lanes=l,e;case Fs:return e=pt(19,n,t,i),e.elementType=Fs,e.lanes=l,e;case lf:return Pl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rf:s=10;break e;case of:s=9;break e;case ec:s=11;break e;case tc:s=14;break e;case Jt:s=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=pt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Dn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Pl(e,t,n,r){return e=pt(22,e,r,t),e.elementType=lf,e.lanes=n,e.stateNode={isHidden:!1},e}function ws(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Cs(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 Ky(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rs(0),this.expirationTimes=rs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mc(e,t,n,r,i,l,s,a,u){return e=new Ky(e,t,n,a,u),t===1?(t=1,l===!0&&(t|=8)):t=0,l=pt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xc(l),e}function Qy(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(em)}catch(e){console.error(e)}}em(),Zd.exports=ct;var eg=Zd.exports,tm,sd=eg;tm=sd.createRoot,sd.hydrateRoot;var nm={exports:{}},rm={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -45,12 +45,12 @@ Error generating stack: `+l.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Fi=O;function Zy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eg=typeof Object.is=="function"?Object.is:Zy,tg=Fi.useSyncExternalStore,ng=Fi.useRef,rg=Fi.useEffect,ig=Fi.useMemo,og=Fi.useDebugValue;nm.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=ng(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=ig(function(){function u(N){if(!c){if(c=!0,d=N,N=r(N),i!==void 0&&s.hasValue){var v=s.value;if(i(v,N))return p=v}return p=N}if(v=p,eg(d,N))return v;var x=r(N);return i!==void 0&&i(v,x)?v:(d=N,p=x)}var c=!1,d,p,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,i]);var a=tg(e,l[0],l[1]);return rg(function(){s.hasValue=!0,s.value=a},[a]),og(a),a};tm.exports=nm;var lg=tm.exports,nt="default"in As?_:As,sd=Symbol.for("react-redux-context"),ad=typeof globalThis<"u"?globalThis:{};function sg(){if(!nt.createContext)return{};const e=ad[sd]??(ad[sd]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=sg(),ag=()=>{throw new Error("uSES not initialized!")};function zc(e=jn){return function(){return nt.useContext(e)}}var rm=zc(),im=ag,cg=e=>{im=e},ug=(e,t)=>e===t;function dg(e=jn){const t=e===jn?rm:zc(e),n=(r,i={})=>{const{equalityFn:l=ug,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();nt.useRef(!0);const y=nt.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),N=im(u.addNestedSub,a.getState,c||a.getState,y,l);return nt.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var Ze=dg();function fg(e){e()}function pg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){fg(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var cd={notify(){},get:()=>[]};function mg(e,t){let n,r=cd,i=0,l=!1;function s(x){d();const j=r.subscribe(x);let m=!1;return()=>{m||(m=!0,j(),p())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return l}function d(){i++,n||(n=e.subscribe(u),r=pg())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=cd)}function y(){l||(l=!0,d())}function N(){l&&(l=!1,p())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var hg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vg=typeof navigator<"u"&&navigator.product==="ReactNative",yg=hg||vg?nt.useLayoutEffect:nt.useEffect;function gg({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=nt.useMemo(()=>{const c=mg(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=nt.useMemo(()=>e.getState(),[e]);yg(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const u=t||jn;return nt.createElement(u.Provider,{value:s},n)}var xg=gg;function om(e=jn){const t=e===jn?rm:zc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var jg=om();function Ng(e=jn){const t=e===jn?jg:om(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var St=Ng();cg(lg.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 wg=typeof Symbol=="function"&&Symbol.observable||"@@observable",ud=wg,Cs=()=>Math.random().toString(36).substring(7).split("").join("."),Cg={INIT:`@@redux/INIT${Cs()}`,REPLACE:`@@redux/REPLACE${Cs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cs()}`},ll=Cg;function Bc(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 lm(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(lm)(e,t)}let r=e,i=t,l=new Map,s=l,a=0,u=!1;function c(){s===l&&(s=new Map,l.forEach((j,m)=>{s.set(m,j)}))}function d(){if(u)throw new Error(Te(3));return i}function p(j){if(typeof j!="function")throw new Error(Te(4));if(u)throw new Error(Te(5));let m=!0;c();const h=a++;return s.set(h,j),function(){if(m){if(u)throw new Error(Te(6));m=!1,c(),s.delete(h),l=null}}}function y(j){if(!Bc(j))throw new Error(Te(7));if(typeof j.type>"u")throw new Error(Te(8));if(typeof j.type!="string")throw new Error(Te(17));if(u)throw new Error(Te(9));try{u=!0,i=r(i,j)}finally{u=!1}return(l=s).forEach(h=>{h()}),j}function N(j){if(typeof j!="function")throw new Error(Te(10));r=j,y({type:ll.REPLACE})}function v(){const j=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Te(11));function h(){const g=m;g.next&&g.next(d())}return h(),{unsubscribe:j(h)}},[ud](){return this}}}return y({type:ll.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[ud]:v}}function bg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ll.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:ll.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Eg(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(Te(14));c[p]=v,u=u||v!==N}return u=u||r.length!==Object.keys(s).length,u?c:s}}function sl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Sg(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Te(15))};const s={getState:i.getState,dispatch:(u,...c)=>l(u,...c)},a=e.map(u=>u(s));return l=sl(...a)(i.dispatch),{...i,dispatch:l}}}function kg(e){return Bc(e)&&"type"in e&&typeof e.type=="string"}var sm=Symbol.for("immer-nothing"),dd=Symbol.for("immer-draftable"),st=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sr=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[st]}function Ht(e){var t;return e?am(e)||Array.isArray(e)||!!e[dd]||!!((t=e.constructor)!=null&&t[dd])||Dl(e)||Ml(e):!1}var _g=Object.prototype.constructor.toString();function am(e){if(!e||typeof e!="object")return!1;const t=Sr(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)===_g}function al(e,t){Il(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Il(e){const t=e[st];return t?t.type_:Array.isArray(e)?1:Dl(e)?2:Ml(e)?3:0}function Sa(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cm(e,t,n){const r=Il(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Pg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Dl(e){return e instanceof Map}function Ml(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function ka(e,t){if(Dl(e))return new Map(e);if(Ml(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=am(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[st];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=Og),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Uc(r,!0))),e}function Og(){Nt(2)}function Ll(e){return Object.isFrozen(e)}var Tg={};function Vn(e){const t=Tg[e];return t||Nt(0,e),t}var Si;function um(){return Si}function Rg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fd(e,t){t&&(Vn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _a(e){Pa(e),e.drafts_.forEach(Ag),e.drafts_=null}function Pa(e){e===Si&&(Si=e.parent_)}function pd(e){return Si=Rg(Si,e)}function Ag(e){const t=e[st];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function md(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[st].modified_&&(_a(t),Nt(4)),Ht(e)&&(e=cl(t,e),t.parent_||ul(t,e)),t.patches_&&Vn("Patches").generateReplacementPatches_(n[st].base_,e,t.patches_,t.inversePatches_)):e=cl(t,n,[]),_a(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sm?e:void 0}function cl(e,t,n){if(Ll(t))return t;const r=t[st];if(!r)return al(t,(i,l)=>hd(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ul(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,s=!1;r.type_===3&&(l=new Set(i),i.clear(),s=!0),al(l,(a,u)=>hd(e,r,i,a,u,n,s)),ul(e,i,!1),n&&e.patches_&&Vn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function hd(e,t,n,r,i,l,s){if(Wn(i)){const a=l&&t&&t.type_!==3&&!Sa(t.assigned_,r)?l.concat(r):void 0,u=cl(e,i,a);if(cm(n,r,u),Wn(u))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Ht(i)&&!Ll(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ul(e,i)}}function ul(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Uc(t,n)}function Ig(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:um(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=$c;n&&(i=[r],l=ki);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var $c={get(e,t){if(t===st)return e;const n=_n(e);if(!Sa(n,t))return Dg(e,n,t);const r=n[t];return e.finalized_||!Ht(r)?r:r===bs(e.base_,t)?(Es(e),e.copy_[t]=Ta(r,e)):r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=dm(_n(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=bs(_n(e),t),l=i==null?void 0:i[st];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Pg(n,i)&&(n!==void 0||Sa(e.base_,t)))return!0;Es(e),Oa(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 bs(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Es(e),Oa(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Sr(e.base_)},setPrototypeOf(){Nt(12)}},ki={};al($c,(e,t)=>{ki[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ki.deleteProperty=function(e,t){return ki.set.call(this,e,t,void 0)};ki.set=function(e,t,n){return $c.set.call(this,e[0],t,n,e[0])};function bs(e,t){const n=e[st];return(n?_n(n):e)[t]}function Dg(e,t,n){var i;const r=dm(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function dm(e,t){if(!(t in e))return;let n=Sr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sr(n)}}function Oa(e){e.modified_||(e.modified_=!0,e.parent_&&Oa(e.parent_))}function Es(e){e.copy_||(e.copy_=ka(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Mg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(u=l,...c){return s.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Nt(6),r!==void 0&&typeof r!="function"&&Nt(7);let i;if(Ht(t)){const l=pd(this),s=Ta(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?_a(l):Pa(l)}return fd(l,r),md(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===sm&&(i=void 0),this.autoFreeze_&&Uc(i,!0),r){const l=[],s=[];Vn("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ht(e)||Nt(8),Wn(e)&&(e=Lg(e));const t=pd(this),n=Ta(e,void 0);return n[st].isManual_=!0,Pa(t),n}finishDraft(e,t){const n=e&&e[st];(!n||!n.isManual_)&&Nt(9);const{scope_:r}=n;return fd(r,t),md(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Vn("Patches").applyPatches_;return Wn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Ta(e,t){const n=Dl(e)?Vn("MapSet").proxyMap_(e,t):Ml(e)?Vn("MapSet").proxySet_(e,t):Ig(e,t);return(t?t.scope_:um()).drafts_.push(n),n}function Lg(e){return Wn(e)||Nt(10,e),fm(e)}function fm(e){if(!Ht(e)||Ll(e))return e;const t=e[st];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ka(e,t.scope_.immer_.useStrictShallowCopy_)}else n=ka(e,!0);return al(n,(r,i)=>{cm(n,r,fm(i))}),t&&(t.finalized_=!1),n}var at=new Mg,pm=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 mm(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var Fg=mm(),zg=mm,Bg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sl:sl.apply(null,arguments)},Ug=e=>e&&typeof e.match=="function";function oi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(bt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>kg(r)&&r.type===e,n}var hm=class Qr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qr(...t[0].concat(this)):new Qr(...t.concat(this))}};function vd(e){return Ht(e)?pm(e,()=>{}):e}function yd(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function $g(e){return typeof e=="boolean"}var Wg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new hm;return n&&($g(n)?s.push(Fg):s.push(zg(n.extraArgument))),s},Vg="RTK_autoBatch",vm=e=>t=>{setTimeout(t,e)},qg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:vm(10),Hg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?qg:e.type==="callback"?e.queueNotification:vm(e.timeout),c=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>i&&d(),y=r.subscribe(p);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Vg]),l=!i,l&&(s||(s=!0,u(c))),r.dispatch(d)}finally{i=!0}}})},Yg=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new hm(e);return r&&i.push(Hg(typeof r=="object"?r:void 0)),i};function Kg(e){const t=Wg(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Bc(n))a=Eg(n);else throw new Error(bt(1));let u;typeof r=="function"?u=r(t):u=t();let c=sl;i&&(c=Bg({trace:!1,...typeof i=="object"&&i}));const d=Sg(...u),p=Yg(d);let y=typeof s=="function"?s(p):p();const N=c(...y);return lm(a,l,N)}function ym(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=s,i},addMatcher(l,s){return n.push({matcher:l,reducer:s}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function Qg(e){return typeof e=="function"}function Gg(e,t){let[n,r,i]=ym(t),l;if(Qg(e))l=()=>vd(e());else{const a=vd(e);l=()=>a}function s(a=l(),u){let c=[n[u.type],...r.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,p)=>{if(p)if(Wn(d)){const N=p(d,u);return N===void 0?d:N}else{if(Ht(d))return pm(d,y=>p(y,u));{const y=p(d,u);if(y===void 0){if(d===null)return d;throw new Error(bt(9))}return y}}return d},a)}return s.getInitialState=l,s}var Jg=(e,t)=>Ug(e)?e.match(t):e(t);function Xg(...e){return t=>e.some(n=>Jg(n,t))}var Zg="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ex=(e=21)=>{let t="",n=e;for(;n--;)t+=Zg[Math.random()*64|0];return t},tx=["name","message","stack","code"],Ss=class{constructor(e,t){Gl(this,"_type");this.payload=e,this.meta=t}},gd=class{constructor(e,t){Gl(this,"_type");this.payload=e,this.meta=t}},nx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of tx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,r){const i=oi(t+"/fulfilled",(u,c,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),l=oi(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),s=oi(t+"/rejected",(u,c,d,p,y)=>({payload:p,error:(r&&r.serializeError||nx)(u||"Rejected"),meta:{...y||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(c,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):ex(),N=new AbortController;let v,x;function j(h){x=h,N.abort()}const m=async function(){var g,w;let h;try{let b=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,u,{getState:d,extra:p});if(ix(b)&&(b=await b),b===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((C,D)=>{v=()=>{D({name:"AbortError",message:x||"Aborted"})},N.signal.addEventListener("abort",v)});c(l(y,u,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:y,arg:u},{getState:d,extra:p}))),h=await Promise.race([E,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:y,signal:N.signal,abort:j,rejectWithValue:(C,D)=>new Ss(C,D),fulfillWithValue:(C,D)=>new gd(C,D)})).then(C=>{if(C instanceof Ss)throw C;return C instanceof gd?i(C.payload,y,u,C.meta):i(C,y,u)})])}catch(b){h=b instanceof Ss?s(null,y,u,b.payload,b.meta):s(b,y,u)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&s.match(h)&&h.meta.condition||c(h),h}();return Object.assign(m,{abort:j,requestId:y,arg:u,unwrap(){return m.then(rx)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:Xg(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function rx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ix(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ox=Symbol.for("rtk-slice-createasyncthunk");function lx(e,t){return`${e}/${t}`}function sx({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[ox];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(bt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(cx()):i.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const w=typeof f=="string"?f:f.type;if(!w)throw new Error(bt(12));if(w in c.sliceCaseReducersByType)throw new Error(bt(13));return c.sliceCaseReducersByType[w]=g,d},addMatcher(f,g){return c.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return c.actionCreators[f]=g,d},exposeCaseReducer(f,g){return c.sliceCaseReducersByName[f]=g,d}};u.forEach(f=>{const g=a[f],w={reducerName:f,type:lx(l,f),createNotation:typeof i.reducers=="function"};dx(g)?px(w,g,d,t):ux(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof i.extraReducers=="function"?ym(i.extraReducers):[i.extraReducers],b={...f,...c.sliceCaseReducersByType};return Gg(i.initialState,E=>{for(let C in b)E.addCase(C,b[C]);for(let C of c.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of g)E.addMatcher(C.matcher,C.reducer);w&&E.addDefaultCase(w)})}const y=f=>f,N=new Map;let v;function x(f,g){return v||(v=p()),v(f,g)}function j(){return v||(v=p()),v.getInitialState()}function m(f,g=!1){function w(E){let C=E[f];return typeof C>"u"&&g&&(C=j()),C}function b(E=y){const C=yd(N,g,{insert:()=>new WeakMap});return yd(C,E,{insert:()=>{const D={};for(const[F,$]of Object.entries(i.selectors??{}))D[F]=ax($,E,j,g);return D}})}return{reducerPath:f,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const h={name:l,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:j,...m(s),injectInto(f,{reducerPath:g,...w}={}){const b=g??s;return f.inject({reducerPath:b,reducer:x},w),{...h,...m(b,!0)}}};return h}}function ax(e,t,n,r){function i(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Wc=sx();function cx(){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},r,i){let l,s;if("reducer"in r){if(n&&!fx(r))throw new Error(bt(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?oi(e,s):oi(e))}function dx(e){return e._reducerDefinitionType==="asyncThunk"}function fx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function px({type:e,reducerName:t},n,r,i){if(!i)throw new Error(bt(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:u,settled:c,options:d}=n,p=i(e,l,d);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:s||so,pending:a||so,rejected:u||so,settled:c||so})}function so(){}function bt(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 gm(e,t){return function(){return e.apply(t,arguments)}}const{toString:mx}=Object.prototype,{getPrototypeOf:Vc}=Object,Fl=(e=>t=>{const n=mx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>Fl(t)===e),zl=e=>t=>typeof t===e,{isArray:Tr}=Array,_i=zl("undefined");function hx(e){return e!==null&&!_i(e)&&e.constructor!==null&&!_i(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xm=kt("ArrayBuffer");function vx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xm(e.buffer),t}const yx=zl("string"),ot=zl("function"),jm=zl("number"),Bl=e=>e!==null&&typeof e=="object",gx=e=>e===!0||e===!1,Co=e=>{if(Fl(e)!=="object")return!1;const t=Vc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xx=kt("Date"),jx=kt("File"),Nx=kt("Blob"),wx=kt("FileList"),Cx=e=>Bl(e)&&ot(e.pipe),bx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Fl(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},Ex=kt("URLSearchParams"),[Sx,kx,_x,Px]=["ReadableStream","Request","Response","Headers"].map(kt),Ox=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Tr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wm=e=>!_i(e)&&e!==An;function Ra(){const{caseless:e}=wm(this)&&this||{},t={},n=(r,i)=>{const l=e&&Nm(t,i)||i;Co(t[l])&&Co(r)?t[l]=Ra(t[l],r):Co(r)?t[l]=Ra({},r):Tr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(zi(t,(i,l)=>{n&&ot(i)?e[l]=gm(i,n):e[l]=i},{allOwnKeys:r}),e),Rx=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ax=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ix=(e,t,n,r)=>{let i,l,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Vc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Mx=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!jm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Lx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vc(Uint8Array)),Fx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},zx=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Bx=kt("HTMLFormElement"),Ux=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),xd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$x=kt("RegExp"),Cm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},Wx=e=>{Cm(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Tr(e)?r(e):r(String(e).split(t)),n},qx=()=>{},Hx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ks="abcdefghijklmnopqrstuvwxyz",jd="0123456789",bm={DIGIT:jd,ALPHA:ks,ALPHA_DIGIT:ks+ks.toUpperCase()+jd},Yx=(e=16,t=bm.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kx(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qx=e=>{const t=new Array(10),n=(r,i)=>{if(Bl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=Tr(r)?[]:{};return zi(r,(s,a)=>{const u=n(s,i+1);!_i(u)&&(l[a]=u)}),t[i]=void 0,l}}return r};return n(e,0)},Gx=kt("AsyncFunction"),Jx=e=>e&&(Bl(e)||ot(e))&&ot(e.then)&&ot(e.catch),Em=((e,t)=>e?setImmediate:t?((n,r)=>(An.addEventListener("message",({source:i,data:l})=>{i===An&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),An.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(An.postMessage)),Xx=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||Em,I={isArray:Tr,isArrayBuffer:xm,isBuffer:hx,isFormData:bx,isArrayBufferView:vx,isString:yx,isNumber:jm,isBoolean:gx,isObject:Bl,isPlainObject:Co,isReadableStream:Sx,isRequest:kx,isResponse:_x,isHeaders:Px,isUndefined:_i,isDate:xx,isFile:jx,isBlob:Nx,isRegExp:$x,isFunction:ot,isStream:Cx,isURLSearchParams:Ex,isTypedArray:Lx,isFileList:wx,forEach:zi,merge:Ra,extend:Tx,trim:Ox,stripBOM:Rx,inherits:Ax,toFlatObject:Ix,kindOf:Fl,kindOfTest:kt,endsWith:Dx,toArray:Mx,forEachEntry:Fx,matchAll:zx,isHTMLForm:Bx,hasOwnProperty:xd,hasOwnProp:xd,reduceDescriptors:Cm,freezeMethods:Wx,toObjectSet:Vx,toCamelCase:Ux,noop:qx,toFiniteNumber:Hx,findKey:Nm,global:An,isContextDefined:wm,ALPHABET:bm,generateString:Yx,isSpecCompliantForm:Kx,toJSONObject:Qx,isAsyncFn:Gx,isThenable:Jx,setImmediate:Em,asap:Xx};function ne(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}I.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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const Sm=ne.prototype,km={};["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=>{km[e]={value:e}});Object.defineProperties(ne,km);Object.defineProperty(Sm,"isAxiosError",{value:!0});ne.from=(e,t,n,r,i,l)=>{const s=Object.create(Sm);return I.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ne.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const Zx=null;function Aa(e){return I.isPlainObject(e)||I.isArray(e)}function _m(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Nd(e,t,n){return e?e.concat(t).map(function(i,l){return i=_m(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function e0(e){return I.isArray(e)&&!e.some(Aa)}const t0=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,j){return!I.isUndefined(j[x])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(!u&&I.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,j){let m=v;if(v&&!j&&typeof v=="object"){if(I.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&e0(v)||(I.isFileList(v)||I.endsWith(x,"[]"))&&(m=I.toArray(v)))return x=_m(x),m.forEach(function(f,g){!(I.isUndefined(f)||f===null)&&t.append(s===!0?Nd([x],g,l):s===null?x:x+"[]",c(f))}),!1}return Aa(v)?!0:(t.append(Nd(j,x,l),c(v)),!1)}const p=[],y=Object.assign(t0,{defaultVisitor:d,convertValue:c,isVisitable:Aa});function N(v,x){if(!I.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(v),I.forEach(v,function(m,h){(!(I.isUndefined(m)||m===null)&&i.call(t,m,I.isString(h)?h.trim():h,x,y))===!0&&N(m,x?x.concat(h):[h])}),p.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return N(e),t}function wd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function qc(e,t){this._pairs=[],e&&Ul(e,this,t)}const Pm=qc.prototype;Pm.append=function(t,n){this._pairs.push([t,n])};Pm.toString=function(t){const n=t?function(r){return t.call(this,r,wd)}:wd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function n0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Om(e,t,n){if(!t)return e;const r=n&&n.encode||n0,i=n&&n.serialize;let l;if(i?l=i(t,n):l=I.isURLSearchParams(t)?t.toString():new qc(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class Cd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Tm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},r0=typeof URLSearchParams<"u"?URLSearchParams:qc,i0=typeof FormData<"u"?FormData:null,o0=typeof Blob<"u"?Blob:null,l0={isBrowser:!0,classes:{URLSearchParams:r0,FormData:i0,Blob:o0},protocols:["http","https","file","blob","url","data"]},Hc=typeof window<"u"&&typeof document<"u",Ia=typeof navigator=="object"&&navigator||void 0,s0=Hc&&(!Ia||["ReactNative","NativeScript","NS"].indexOf(Ia.product)<0),a0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c0=Hc&&window.location.href||"http://localhost",u0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hc,hasStandardBrowserEnv:s0,hasStandardBrowserWebWorkerEnv:a0,navigator:Ia,origin:c0},Symbol.toStringTag,{value:"Module"})),Je={...u0,...l0};function d0(e,t){return Ul(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Je.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function f0(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function p0(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&I.isArray(i)?i.length:s,u?(I.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!I.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&I.isArray(i[s])&&(i[s]=p0(i[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(f0(r),i,n,0)}),n}return null}function m0(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bi={transitional:Tm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=I.isObject(t);if(l&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(Rm(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return d0(t,this.formSerializer).toString();if((a=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ul(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),m0(t)):t}],transformResponse:[function(t){const n=this.transitional||Bi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)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}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Bi.headers[e]={}});const h0=I.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"]),v0=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&h0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bd=Symbol("internals");function Vr(e){return e&&String(e).trim().toLowerCase()}function bo(e){return e===!1||e==null?e:I.isArray(e)?e.map(bo):String(e)}function y0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const g0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _s(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function x0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function j0(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,s){return this[r].call(this,t,i,l,s)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,u,c){const d=Vr(u);if(!d)throw new Error("header name must be a non-empty string");const p=I.findKey(i,d);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||u]=bo(a))}const s=(a,u)=>I.forEach(a,(c,d)=>l(c,d,u));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(I.isString(t)&&(t=t.trim())&&!g0(t))s(v0(t),n);else if(I.isHeaders(t))for(const[a,u]of t.entries())l(u,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Vr(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return y0(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||_s(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=Vr(s),s){const a=I.findKey(r,s);a&&(!n||_s(r,r[a],a,n))&&(delete r[a],i=!0)}}return I.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||_s(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,l)=>{const s=I.findKey(r,l);if(s){n[s]=bo(i),delete n[l];return}const a=t?x0(l):String(l).trim();a!==l&&delete n[l],n[a]=bo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[bd]=this[bd]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Vr(s);r[a]||(j0(i,s),r[a]=!0)}return I.isArray(t)?t.forEach(l):l(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Xe);function Ps(e,t){const n=this||Bi,r=t||n,i=Xe.from(r.headers);let l=r.data;return I.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Am(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(Rr,ne,{__CANCEL__:!0});function Im(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(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 N0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function w0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[l];s||(s=c),n[i]=u,r[i]=c;let p=l,y=0;for(;p!==i;)y+=n[p++],p=p%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),c-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?s(c,d):(i=c,l||(l=setTimeout(()=>{l=null,s(i)},r-p)))},()=>i&&s(i)]}const dl=(e,t,n=3)=>{let r=0;const i=w0(50,250);return C0(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,u=s-r,c=i(u),d=s<=a;r=s;const p={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Ed=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sd=e=>(...t)=>I.asap(()=>e(...t)),b0=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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 r=i(window.location.href),function(s){const a=I.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),E0=Je.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),I.isString(r)&&s.push("path="+r),I.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 S0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Dm(e,t){return e&&!S0(t)?k0(e,t):t}const kd=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,d,p){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:p},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(c,d,p){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function l(c,d){if(!I.isUndefined(d))return r(void 0,d)}function s(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const u={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>i(kd(c),kd(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||i,y=p(e[d],t[d],d);I.isUndefined(y)&&p!==a||(n[d]=y)}),n}const Mm=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=Xe.from(s),t.url=Om(Dm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(I.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&b0(t.url))){const c=i&&l&&E0.read(l);c&&s.set(i,c)}return t},_0=typeof XMLHttpRequest<"u",P0=_0&&function(e){return new Promise(function(n,r){const i=Mm(e);let l=i.data;const s=Xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,d,p,y,N,v;function x(){N&&N(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let j=new XMLHttpRequest;j.open(i.method.toUpperCase(),i.url,!0),j.timeout=i.timeout;function m(){if(!j)return;const f=Xe.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:f,config:e,request:j};Im(function(E){n(E),x()},function(E){r(E),x()},w),j=null}"onloadend"in j?j.onloadend=m:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(m)},j.onabort=function(){j&&(r(new ne("Request aborted",ne.ECONNABORTED,e,j)),j=null)},j.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Tm;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new ne(g,w.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,j)),j=null},l===void 0&&s.setContentType(null),"setRequestHeader"in j&&I.forEach(s.toJSON(),function(g,w){j.setRequestHeader(w,g)}),I.isUndefined(i.withCredentials)||(j.withCredentials=!!i.withCredentials),a&&a!=="json"&&(j.responseType=i.responseType),c&&([y,v]=dl(c,!0),j.addEventListener("progress",y)),u&&j.upload&&([p,N]=dl(u),j.upload.addEventListener("progress",p),j.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=f=>{j&&(r(!f||f.type?new Rr(null,e,j):f),j.abort(),j=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const h=N0(i.url);if(h&&Je.protocols.indexOf(h)===-1){r(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,e));return}j.send(l||null)})},O0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ne?d:new Rr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>I.asap(a),u}},T0=function*(e,t){let n=e.byteLength;if(!t||n{const i=R0(e,t);let l=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){a(),u.close();return}let p=d.byteLength;if(n){let y=l+=p;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},$l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Lm=$l&&typeof ReadableStream=="function",I0=$l&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},D0=Lm&&Fm(()=>{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}),Pd=64*1024,Da=Lm&&Fm(()=>I.isReadableStream(new Response("").body)),fl={stream:Da&&(e=>e.body)};$l&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fl[t]&&(fl[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,r)})})})(new Response);const M0=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await I0(e)).byteLength},L0=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??M0(t)},F0=$l&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:y}=Mm(e);c=c?(c+"").toLowerCase():"text";let N=O0([i,l&&l.toAbortSignal()],s),v;const x=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let j;try{if(u&&D0&&n!=="get"&&n!=="head"&&(j=await L0(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(I.isFormData(r)&&(b=w.headers.get("content-type"))&&d.setContentType(b),w.body){const[E,C]=Ed(j,dl(Sd(u)));r=_d(w.body,Pd,E,C)}}I.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?p:void 0});let h=await fetch(v);const f=Da&&(c==="stream"||c==="response");if(Da&&(a||f&&x)){const w={};["status","statusText","headers"].forEach(D=>{w[D]=h[D]});const b=I.toFiniteNumber(h.headers.get("content-length")),[E,C]=a&&Ed(b,dl(Sd(a),!0))||[];h=new Response(_d(h.body,Pd,E,()=>{C&&C(),x&&x()}),w)}c=c||"text";let g=await fl[I.findKey(fl,c)||"text"](h,e);return!f&&x&&x(),await new Promise((w,b)=>{Im(w,b,{data:g,headers:Xe.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:v})})}catch(m){throw x&&x(),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)}}),Ma={http:Zx,xhr:P0,fetch:F0};I.forEach(Ma,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Od=e=>`- ${e}`,z0=e=>I.isFunction(e)||e===null||e===!1,zm={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : -`+l.map(Od).join(` -`):" "+Od(l[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Ma};function Os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Td(e){return Os(e),e.headers=Xe.from(e.headers),e.data=Ps.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zm.getAdapter(e.adapter||Bi.adapter)(e).then(function(r){return Os(e),r.data=Ps.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Am(r)||(Os(e),r&&r.response&&(r.response.data=Ps.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const Bm="1.7.7",Yc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Rd={};Yc.transitional=function(t,n,r){function i(l,s){return"[Axios v"+Bm+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new ne(i(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!Rd[s]&&(Rd[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function B0(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],u=a===void 0||s(a,l,e);if(u!==!0)throw new ne("option "+l+" must be "+u,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+l,ne.ERR_BAD_OPTION)}}const La={assertOptions:B0,validators:Yc},Gt=La.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new Cd,response:new Cd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&La.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:La.assertOptions(i,{encode:Gt.function,serialize:Gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&I.merge(l.common,l[n.method]);l&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Xe.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,p=0,y;if(!u){const v=[Td.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new Rr(l,s,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Kc(function(i){t=i}),cancel:t}}}function U0(e){return function(n){return e.apply(null,n)}}function $0(e){return I.isObject(e)&&e.isAxiosError===!0}const Fa={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(Fa).forEach(([e,t])=>{Fa[t]=e});function Um(e){const t=new Mn(e),n=gm(Mn.prototype.request,t);return I.extend(n,Mn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Um(qn(e,i))},n}const de=Um(Bi);de.Axios=Mn;de.CanceledError=Rr;de.CancelToken=Kc;de.isCancel=Am;de.VERSION=Bm;de.toFormData=Ul;de.AxiosError=ne;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=U0;de.isAxiosError=$0;de.mergeConfig=qn;de.AxiosHeaders=Xe;de.formToJSON=e=>Rm(I.isHTMLForm(e)?new FormData(e):e);de.getAdapter=zm.getAdapter;de.HttpStatusCode=Fa;de.default=de;const W0="http://67.225.129.127:3002",Kt=de.create({baseURL:W0});Kt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const V0=e=>Kt.post("/users/signup",e),q0=e=>Kt.post("/users/signin",e),H0=(e,t,n)=>Kt.get(`/users/${e}/verify/${t}`,n),Y0=e=>Kt.post("/properties",e),K0=(e,t,n)=>Kt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),Q0=e=>Kt.get(`/properties/${e}`,e),G0=(e,t)=>Kt.put(`/properties/${e}`,t),J0=e=>Kt.get(`/users/${e}`),Eo=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await q0(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),So=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await V0(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),ko=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await de.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),$m=Wc({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(Eo.pending,t=>{t.loading=!0}).addCase(Eo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Eo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(ko.pending,t=>{t.isLoading=!0}).addCase(ko.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(ko.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:NN,setLogout:X0,setUserDetails:wN}=$m.actions,Z0=$m.reducer,_o=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await J0(e)).data}catch(n){return t(n.response.data)}}),Po=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await H0(e,t,n)).data.message}catch(i){return r(i.response.data)}}),e1=Wc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(_o.pending,t=>{t.loading=!0,t.error=null}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Po.pending,t=>{t.loading=!0,t.error=null}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),t1=e1.reducer,Oo=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await Y0(e)).data}catch(n){return t(n.response.data)}}),To=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await K0(e,t,n)).data}catch(i){return r(i.response.data)}}),li=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await Q0(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await G0(e,t)).data}catch(r){return n(r.response.data)}}),si=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await de.get(`http://67.225.129.127:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),n1=Wc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Oo.pending,t=>{t.status="loading"}).addCase(Oo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Oo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(To.pending,t=>{t.loading=!0}).addCase(To.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(To.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(li.pending,t=>{t.status="loading"}).addCase(li.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(li.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ro.pending,t=>{t.status="loading"}).addCase(Ro.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ro.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(si.pending,t=>{t.loading=!0}).addCase(si.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(si.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),r1=n1.reducer,i1=Kg({reducer:{auth:Z0,user:t1,property:r1}});/** + */var Fi=O;function tg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ng=typeof Object.is=="function"?Object.is:tg,rg=Fi.useSyncExternalStore,ig=Fi.useRef,og=Fi.useEffect,lg=Fi.useMemo,sg=Fi.useDebugValue;rm.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var l=ig(null);if(l.current===null){var s={hasValue:!1,value:null};l.current=s}else s=l.current;l=lg(function(){function u(N){if(!c){if(c=!0,d=N,N=r(N),i!==void 0&&s.hasValue){var v=s.value;if(i(v,N))return p=v}return p=N}if(v=p,ng(d,N))return v;var x=r(N);return i!==void 0&&i(v,x)?v:(d=N,p=x)}var c=!1,d,p,y=n===void 0?null:n;return[function(){return u(t())},y===null?void 0:function(){return u(y())}]},[t,n,r,i]);var a=rg(e,l[0],l[1]);return og(function(){s.hasValue=!0,s.value=a},[a]),sg(a),a};nm.exports=rm;var ag=nm.exports,nt="default"in Is?_:Is,ad=Symbol.for("react-redux-context"),cd=typeof globalThis<"u"?globalThis:{};function cg(){if(!nt.createContext)return{};const e=cd[ad]??(cd[ad]=new Map);let t=e.get(nt.createContext);return t||(t=nt.createContext(null),e.set(nt.createContext,t)),t}var jn=cg(),ug=()=>{throw new Error("uSES not initialized!")};function Bc(e=jn){return function(){return nt.useContext(e)}}var im=Bc(),om=ug,dg=e=>{om=e},fg=(e,t)=>e===t;function pg(e=jn){const t=e===jn?im:Bc(e),n=(r,i={})=>{const{equalityFn:l=fg,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:a,subscription:u,getServerState:c,stabilityCheck:d,identityFunctionCheck:p}=t();nt.useRef(!0);const y=nt.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,s.stabilityCheck]),N=om(u.addNestedSub,a.getState,c||a.getState,y,l);return nt.useDebugValue(N),N};return Object.assign(n,{withTypes:()=>n}),n}var Ze=pg();function mg(e){e()}function hg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mg(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ud={notify(){},get:()=>[]};function vg(e,t){let n,r=ud,i=0,l=!1;function s(x){d();const j=r.subscribe(x);let m=!1;return()=>{m||(m=!0,j(),p())}}function a(){r.notify()}function u(){v.onStateChange&&v.onStateChange()}function c(){return l}function d(){i++,n||(n=e.subscribe(u),r=hg())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ud)}function y(){l||(l=!0,d())}function N(){l&&(l=!1,p())}const v={addNestedSub:s,notifyNestedSubs:a,handleChangeWrapper:u,isSubscribed:c,trySubscribe:y,tryUnsubscribe:N,getListeners:()=>r};return v}var yg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gg=typeof navigator<"u"&&navigator.product==="ReactNative",xg=yg||gg?nt.useLayoutEffect:nt.useEffect;function jg({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:l="once"}){const s=nt.useMemo(()=>{const c=vg(e);return{store:e,subscription:c,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:l}},[e,r,i,l]),a=nt.useMemo(()=>e.getState(),[e]);xg(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const u=t||jn;return nt.createElement(u.Provider,{value:s},n)}var Ng=jg;function lm(e=jn){const t=e===jn?im:Bc(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var wg=lm();function Cg(e=jn){const t=e===jn?wg:lm(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var St=Cg();dg(ag.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 bg=typeof Symbol=="function"&&Symbol.observable||"@@observable",dd=bg,bs=()=>Math.random().toString(36).substring(7).split("").join("."),Eg={INIT:`@@redux/INIT${bs()}`,REPLACE:`@@redux/REPLACE${bs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bs()}`},ll=Eg;function Uc(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 sm(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(sm)(e,t)}let r=e,i=t,l=new Map,s=l,a=0,u=!1;function c(){s===l&&(s=new Map,l.forEach((j,m)=>{s.set(m,j)}))}function d(){if(u)throw new Error(Te(3));return i}function p(j){if(typeof j!="function")throw new Error(Te(4));if(u)throw new Error(Te(5));let m=!0;c();const h=a++;return s.set(h,j),function(){if(m){if(u)throw new Error(Te(6));m=!1,c(),s.delete(h),l=null}}}function y(j){if(!Uc(j))throw new Error(Te(7));if(typeof j.type>"u")throw new Error(Te(8));if(typeof j.type!="string")throw new Error(Te(17));if(u)throw new Error(Te(9));try{u=!0,i=r(i,j)}finally{u=!1}return(l=s).forEach(h=>{h()}),j}function N(j){if(typeof j!="function")throw new Error(Te(10));r=j,y({type:ll.REPLACE})}function v(){const j=p;return{subscribe(m){if(typeof m!="object"||m===null)throw new Error(Te(11));function h(){const g=m;g.next&&g.next(d())}return h(),{unsubscribe:j(h)}},[dd](){return this}}}return y({type:ll.INIT}),{dispatch:y,subscribe:p,getState:d,replaceReducer:N,[dd]:v}}function Sg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ll.INIT})>"u")throw new Error(Te(12));if(typeof n(void 0,{type:ll.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function kg(e){const t=Object.keys(e),n={};for(let l=0;l"u")throw a&&a.type,new Error(Te(14));c[p]=v,u=u||v!==N}return u=u||r.length!==Object.keys(s).length,u?c:s}}function sl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _g(...e){return t=>(n,r)=>{const i=t(n,r);let l=()=>{throw new Error(Te(15))};const s={getState:i.getState,dispatch:(u,...c)=>l(u,...c)},a=e.map(u=>u(s));return l=sl(...a)(i.dispatch),{...i,dispatch:l}}}function Pg(e){return Uc(e)&&"type"in e&&typeof e.type=="string"}var am=Symbol.for("immer-nothing"),fd=Symbol.for("immer-draftable"),st=Symbol.for("immer-state");function Nt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Sr=Object.getPrototypeOf;function Wn(e){return!!e&&!!e[st]}function Ht(e){var t;return e?cm(e)||Array.isArray(e)||!!e[fd]||!!((t=e.constructor)!=null&&t[fd])||Dl(e)||Ml(e):!1}var Og=Object.prototype.constructor.toString();function cm(e){if(!e||typeof e!="object")return!1;const t=Sr(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)===Og}function al(e,t){Il(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Il(e){const t=e[st];return t?t.type_:Array.isArray(e)?1:Dl(e)?2:Ml(e)?3:0}function ka(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function um(e,t,n){const r=Il(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Dl(e){return e instanceof Map}function Ml(e){return e instanceof Set}function _n(e){return e.copy_||e.base_}function _a(e,t){if(Dl(e))return new Map(e);if(Ml(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=cm(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[st];let i=Reflect.ownKeys(r);for(let l=0;l1&&(e.set=e.add=e.clear=e.delete=Rg),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>$c(r,!0))),e}function Rg(){Nt(2)}function Ll(e){return Object.isFrozen(e)}var Ag={};function Vn(e){const t=Ag[e];return t||Nt(0,e),t}var Si;function dm(){return Si}function Ig(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function pd(e,t){t&&(Vn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Pa(e){Oa(e),e.drafts_.forEach(Dg),e.drafts_=null}function Oa(e){e===Si&&(Si=e.parent_)}function md(e){return Si=Ig(Si,e)}function Dg(e){const t=e[st];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[st].modified_&&(Pa(t),Nt(4)),Ht(e)&&(e=cl(t,e),t.parent_||ul(t,e)),t.patches_&&Vn("Patches").generateReplacementPatches_(n[st].base_,e,t.patches_,t.inversePatches_)):e=cl(t,n,[]),Pa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==am?e:void 0}function cl(e,t,n){if(Ll(t))return t;const r=t[st];if(!r)return al(t,(i,l)=>vd(e,r,t,i,l,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ul(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let l=i,s=!1;r.type_===3&&(l=new Set(i),i.clear(),s=!0),al(l,(a,u)=>vd(e,r,i,a,u,n,s)),ul(e,i,!1),n&&e.patches_&&Vn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function vd(e,t,n,r,i,l,s){if(Wn(i)){const a=l&&t&&t.type_!==3&&!ka(t.assigned_,r)?l.concat(r):void 0,u=cl(e,i,a);if(um(n,r,u),Wn(u))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Ht(i)&&!Ll(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cl(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&ul(e,i)}}function ul(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$c(t,n)}function Mg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:dm(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,l=Wc;n&&(i=[r],l=ki);const{revoke:s,proxy:a}=Proxy.revocable(i,l);return r.draft_=a,r.revoke_=s,a}var Wc={get(e,t){if(t===st)return e;const n=_n(e);if(!ka(n,t))return Lg(e,n,t);const r=n[t];return e.finalized_||!Ht(r)?r:r===Es(e.base_,t)?(Ss(e),e.copy_[t]=Ra(r,e)):r},has(e,t){return t in _n(e)},ownKeys(e){return Reflect.ownKeys(_n(e))},set(e,t,n){const r=fm(_n(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Es(_n(e),t),l=i==null?void 0:i[st];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tg(n,i)&&(n!==void 0||ka(e.base_,t)))return!0;Ss(e),Ta(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 Es(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ss(e),Ta(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nt(11)},getPrototypeOf(e){return Sr(e.base_)},setPrototypeOf(){Nt(12)}},ki={};al(Wc,(e,t)=>{ki[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ki.deleteProperty=function(e,t){return ki.set.call(this,e,t,void 0)};ki.set=function(e,t,n){return Wc.set.call(this,e[0],t,n,e[0])};function Es(e,t){const n=e[st];return(n?_n(n):e)[t]}function Lg(e,t,n){var i;const r=fm(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function fm(e,t){if(!(t in e))return;let n=Sr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Sr(n)}}function Ta(e){e.modified_||(e.modified_=!0,e.parent_&&Ta(e.parent_))}function Ss(e){e.copy_||(e.copy_=_a(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Fg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const l=n;n=t;const s=this;return function(u=l,...c){return s.produce(u,d=>n.call(this,d,...c))}}typeof n!="function"&&Nt(6),r!==void 0&&typeof r!="function"&&Nt(7);let i;if(Ht(t)){const l=md(this),s=Ra(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?Pa(l):Oa(l)}return pd(l,r),hd(i,l)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===am&&(i=void 0),this.autoFreeze_&&$c(i,!0),r){const l=[],s=[];Vn("Patches").generateReplacementPatches_(t,i,l,s),r(l,s)}return i}else Nt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,u=>t(u,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ht(e)||Nt(8),Wn(e)&&(e=zg(e));const t=md(this),n=Ra(e,void 0);return n[st].isManual_=!0,Oa(t),n}finishDraft(e,t){const n=e&&e[st];(!n||!n.isManual_)&&Nt(9);const{scope_:r}=n;return pd(r,t),hd(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Vn("Patches").applyPatches_;return Wn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Ra(e,t){const n=Dl(e)?Vn("MapSet").proxyMap_(e,t):Ml(e)?Vn("MapSet").proxySet_(e,t):Mg(e,t);return(t?t.scope_:dm()).drafts_.push(n),n}function zg(e){return Wn(e)||Nt(10,e),pm(e)}function pm(e){if(!Ht(e)||Ll(e))return e;const t=e[st];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_a(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_a(e,!0);return al(n,(r,i)=>{um(n,r,pm(i))}),t&&(t.finalized_=!1),n}var at=new Fg,mm=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 hm(e){return({dispatch:n,getState:r})=>i=>l=>typeof l=="function"?l(n,r,e):i(l)}var Bg=hm(),Ug=hm,$g=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?sl:sl.apply(null,arguments)},Wg=e=>e&&typeof e.match=="function";function oi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(bt(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Pg(r)&&r.type===e,n}var vm=class Qr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Qr.prototype)}static get[Symbol.species](){return Qr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Qr(...t[0].concat(this)):new Qr(...t.concat(this))}};function yd(e){return Ht(e)?mm(e,()=>{}):e}function gd(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(bt(10));const r=n.insert(t,e);return e.set(t,r),r}function Vg(e){return typeof e=="boolean"}var qg=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:l=!0}=t??{};let s=new vm;return n&&(Vg(n)?s.push(Bg):s.push(Ug(n.extraArgument))),s},Hg="RTK_autoBatch",ym=e=>t=>{setTimeout(t,e)},Yg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ym(10),Kg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,l=!1,s=!1;const a=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Yg:e.type==="callback"?e.queueNotification:ym(e.timeout),c=()=>{s=!1,l&&(l=!1,a.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const p=()=>i&&d(),y=r.subscribe(p);return a.add(d),()=>{y(),a.delete(d)}},dispatch(d){var p;try{return i=!((p=d==null?void 0:d.meta)!=null&&p[Hg]),l=!i,l&&(s||(s=!0,u(c))),r.dispatch(d)}finally{i=!0}}})},Qg=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new vm(e);return r&&i.push(Kg(typeof r=="object"?r:void 0)),i};function Gg(e){const t=qg(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:l=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Uc(n))a=kg(n);else throw new Error(bt(1));let u;typeof r=="function"?u=r(t):u=t();let c=sl;i&&(c=$g({trace:!1,...typeof i=="object"&&i}));const d=_g(...u),p=Qg(d);let y=typeof s=="function"?s(p):p();const N=c(...y);return sm(a,l,N)}function gm(e){const t={},n=[];let r;const i={addCase(l,s){const a=typeof l=="string"?l:l.type;if(!a)throw new Error(bt(28));if(a in t)throw new Error(bt(29));return t[a]=s,i},addMatcher(l,s){return n.push({matcher:l,reducer:s}),i},addDefaultCase(l){return r=l,i}};return e(i),[t,n,r]}function Jg(e){return typeof e=="function"}function Xg(e,t){let[n,r,i]=gm(t),l;if(Jg(e))l=()=>yd(e());else{const a=yd(e);l=()=>a}function s(a=l(),u){let c=[n[u.type],...r.filter(({matcher:d})=>d(u)).map(({reducer:d})=>d)];return c.filter(d=>!!d).length===0&&(c=[i]),c.reduce((d,p)=>{if(p)if(Wn(d)){const N=p(d,u);return N===void 0?d:N}else{if(Ht(d))return mm(d,y=>p(y,u));{const y=p(d,u);if(y===void 0){if(d===null)return d;throw new Error(bt(9))}return y}}return d},a)}return s.getInitialState=l,s}var Zg=(e,t)=>Wg(e)?e.match(t):e(t);function ex(...e){return t=>e.some(n=>Zg(n,t))}var tx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nx=(e=21)=>{let t="",n=e;for(;n--;)t+=tx[Math.random()*64|0];return t},rx=["name","message","stack","code"],ks=class{constructor(e,t){Jl(this,"_type");this.payload=e,this.meta=t}},xd=class{constructor(e,t){Jl(this,"_type");this.payload=e,this.meta=t}},ix=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of rx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Dt=(()=>{function e(t,n,r){const i=oi(t+"/fulfilled",(u,c,d,p)=>({payload:u,meta:{...p||{},arg:d,requestId:c,requestStatus:"fulfilled"}})),l=oi(t+"/pending",(u,c,d)=>({payload:void 0,meta:{...d||{},arg:c,requestId:u,requestStatus:"pending"}})),s=oi(t+"/rejected",(u,c,d,p,y)=>({payload:p,error:(r&&r.serializeError||ix)(u||"Rejected"),meta:{...y||{},arg:d,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function a(u){return(c,d,p)=>{const y=r!=null&&r.idGenerator?r.idGenerator(u):nx(),N=new AbortController;let v,x;function j(h){x=h,N.abort()}const m=async function(){var g,w;let h;try{let b=(g=r==null?void 0:r.condition)==null?void 0:g.call(r,u,{getState:d,extra:p});if(lx(b)&&(b=await b),b===!1||N.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((C,M)=>{v=()=>{M({name:"AbortError",message:x||"Aborted"})},N.signal.addEventListener("abort",v)});c(l(y,u,(w=r==null?void 0:r.getPendingMeta)==null?void 0:w.call(r,{requestId:y,arg:u},{getState:d,extra:p}))),h=await Promise.race([E,Promise.resolve(n(u,{dispatch:c,getState:d,extra:p,requestId:y,signal:N.signal,abort:j,rejectWithValue:(C,M)=>new ks(C,M),fulfillWithValue:(C,M)=>new xd(C,M)})).then(C=>{if(C instanceof ks)throw C;return C instanceof xd?i(C.payload,y,u,C.meta):i(C,y,u)})])}catch(b){h=b instanceof ks?s(null,y,u,b.payload,b.meta):s(b,y,u)}finally{v&&N.signal.removeEventListener("abort",v)}return r&&!r.dispatchConditionRejection&&s.match(h)&&h.meta.condition||c(h),h}();return Object.assign(m,{abort:j,requestId:y,arg:u,unwrap(){return m.then(ox)}})}}return Object.assign(a,{pending:l,rejected:s,fulfilled:i,settled:ex(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function ox(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function lx(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var sx=Symbol.for("rtk-slice-createasyncthunk");function ax(e,t){return`${e}/${t}`}function cx({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[sx];return function(i){const{name:l,reducerPath:s=l}=i;if(!l)throw new Error(bt(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(dx()):i.reducers)||{},u=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(f,g){const w=typeof f=="string"?f:f.type;if(!w)throw new Error(bt(12));if(w in c.sliceCaseReducersByType)throw new Error(bt(13));return c.sliceCaseReducersByType[w]=g,d},addMatcher(f,g){return c.sliceMatchers.push({matcher:f,reducer:g}),d},exposeAction(f,g){return c.actionCreators[f]=g,d},exposeCaseReducer(f,g){return c.sliceCaseReducersByName[f]=g,d}};u.forEach(f=>{const g=a[f],w={reducerName:f,type:ax(l,f),createNotation:typeof i.reducers=="function"};px(g)?hx(w,g,d,t):fx(w,g,d)});function p(){const[f={},g=[],w=void 0]=typeof i.extraReducers=="function"?gm(i.extraReducers):[i.extraReducers],b={...f,...c.sliceCaseReducersByType};return Xg(i.initialState,E=>{for(let C in b)E.addCase(C,b[C]);for(let C of c.sliceMatchers)E.addMatcher(C.matcher,C.reducer);for(let C of g)E.addMatcher(C.matcher,C.reducer);w&&E.addDefaultCase(w)})}const y=f=>f,N=new Map;let v;function x(f,g){return v||(v=p()),v(f,g)}function j(){return v||(v=p()),v.getInitialState()}function m(f,g=!1){function w(E){let C=E[f];return typeof C>"u"&&g&&(C=j()),C}function b(E=y){const C=gd(N,g,{insert:()=>new WeakMap});return gd(C,E,{insert:()=>{const M={};for(const[F,$]of Object.entries(i.selectors??{}))M[F]=ux($,E,j,g);return M}})}return{reducerPath:f,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const h={name:l,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:j,...m(s),injectInto(f,{reducerPath:g,...w}={}){const b=g??s;return f.inject({reducerPath:b,reducer:x},w),{...h,...m(b,!0)}}};return h}}function ux(e,t,n,r){function i(l,...s){let a=t(l);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Vc=cx();function dx(){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 fx({type:e,reducerName:t,createNotation:n},r,i){let l,s;if("reducer"in r){if(n&&!mx(r))throw new Error(bt(17));l=r.reducer,s=r.prepare}else l=r;i.addCase(e,l).exposeCaseReducer(t,l).exposeAction(t,s?oi(e,s):oi(e))}function px(e){return e._reducerDefinitionType==="asyncThunk"}function mx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function hx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(bt(18));const{payloadCreator:l,fulfilled:s,pending:a,rejected:u,settled:c,options:d}=n,p=i(e,l,d);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),u&&r.addCase(p.rejected,u),c&&r.addMatcher(p.settled,c),r.exposeCaseReducer(t,{fulfilled:s||so,pending:a||so,rejected:u||so,settled:c||so})}function so(){}function bt(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 xm(e,t){return function(){return e.apply(t,arguments)}}const{toString:vx}=Object.prototype,{getPrototypeOf:qc}=Object,Fl=(e=>t=>{const n=vx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kt=e=>(e=e.toLowerCase(),t=>Fl(t)===e),zl=e=>t=>typeof t===e,{isArray:Tr}=Array,_i=zl("undefined");function yx(e){return e!==null&&!_i(e)&&e.constructor!==null&&!_i(e.constructor)&&ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jm=kt("ArrayBuffer");function gx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jm(e.buffer),t}const xx=zl("string"),ot=zl("function"),Nm=zl("number"),Bl=e=>e!==null&&typeof e=="object",jx=e=>e===!0||e===!1,Co=e=>{if(Fl(e)!=="object")return!1;const t=qc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Nx=kt("Date"),wx=kt("File"),Cx=kt("Blob"),bx=kt("FileList"),Ex=e=>Bl(e)&&ot(e.pipe),Sx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ot(e.append)&&((t=Fl(e))==="formdata"||t==="object"&&ot(e.toString)&&e.toString()==="[object FormData]"))},kx=kt("URLSearchParams"),[_x,Px,Ox,Tx]=["ReadableStream","Request","Response","Headers"].map(kt),Rx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zi(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Tr(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const An=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cm=e=>!_i(e)&&e!==An;function Aa(){const{caseless:e}=Cm(this)&&this||{},t={},n=(r,i)=>{const l=e&&wm(t,i)||i;Co(t[l])&&Co(r)?t[l]=Aa(t[l],r):Co(r)?t[l]=Aa({},r):Tr(r)?t[l]=r.slice():t[l]=r};for(let r=0,i=arguments.length;r(zi(t,(i,l)=>{n&&ot(i)?e[l]=xm(i,n):e[l]=i},{allOwnKeys:r}),e),Ix=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Dx=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Mx=(e,t,n,r)=>{let i,l,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)s=i[l],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&qc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Lx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Fx=e=>{if(!e)return null;if(Tr(e))return e;let t=e.length;if(!Nm(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},zx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qc(Uint8Array)),Bx=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},Ux=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$x=kt("HTMLFormElement"),Wx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),jd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vx=kt("RegExp"),bm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zi(n,(i,l)=>{let s;(s=t(i,l,e))!==!1&&(r[l]=s||i)}),Object.defineProperties(e,r)},qx=e=>{bm(e,(t,n)=>{if(ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hx=(e,t)=>{const n={},r=i=>{i.forEach(l=>{n[l]=!0})};return Tr(e)?r(e):r(String(e).split(t)),n},Yx=()=>{},Kx=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,_s="abcdefghijklmnopqrstuvwxyz",Nd="0123456789",Em={DIGIT:Nd,ALPHA:_s,ALPHA_DIGIT:_s+_s.toUpperCase()+Nd},Qx=(e=16,t=Em.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Gx(e){return!!(e&&ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Jx=e=>{const t=new Array(10),n=(r,i)=>{if(Bl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const l=Tr(r)?[]:{};return zi(r,(s,a)=>{const u=n(s,i+1);!_i(u)&&(l[a]=u)}),t[i]=void 0,l}}return r};return n(e,0)},Xx=kt("AsyncFunction"),Zx=e=>e&&(Bl(e)||ot(e))&&ot(e.then)&&ot(e.catch),Sm=((e,t)=>e?setImmediate:t?((n,r)=>(An.addEventListener("message",({source:i,data:l})=>{i===An&&l===n&&r.length&&r.shift()()},!1),i=>{r.push(i),An.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ot(An.postMessage)),e0=typeof queueMicrotask<"u"?queueMicrotask.bind(An):typeof process<"u"&&process.nextTick||Sm,I={isArray:Tr,isArrayBuffer:jm,isBuffer:yx,isFormData:Sx,isArrayBufferView:gx,isString:xx,isNumber:Nm,isBoolean:jx,isObject:Bl,isPlainObject:Co,isReadableStream:_x,isRequest:Px,isResponse:Ox,isHeaders:Tx,isUndefined:_i,isDate:Nx,isFile:wx,isBlob:Cx,isRegExp:Vx,isFunction:ot,isStream:Ex,isURLSearchParams:kx,isTypedArray:zx,isFileList:bx,forEach:zi,merge:Aa,extend:Ax,trim:Rx,stripBOM:Ix,inherits:Dx,toFlatObject:Mx,kindOf:Fl,kindOfTest:kt,endsWith:Lx,toArray:Fx,forEachEntry:Bx,matchAll:Ux,isHTMLForm:$x,hasOwnProperty:jd,hasOwnProp:jd,reduceDescriptors:bm,freezeMethods:qx,toObjectSet:Hx,toCamelCase:Wx,noop:Yx,toFiniteNumber:Kx,findKey:wm,global:An,isContextDefined:Cm,ALPHABET:Em,generateString:Qx,isSpecCompliantForm:Gx,toJSONObject:Jx,isAsyncFn:Xx,isThenable:Zx,setImmediate:Sm,asap:e0};function ne(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}I.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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const km=ne.prototype,_m={};["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=>{_m[e]={value:e}});Object.defineProperties(ne,_m);Object.defineProperty(km,"isAxiosError",{value:!0});ne.from=(e,t,n,r,i,l)=>{const s=Object.create(km);return I.toFlatObject(e,s,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),ne.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,l&&Object.assign(s,l),s};const t0=null;function Ia(e){return I.isPlainObject(e)||I.isArray(e)}function Pm(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function wd(e,t,n){return e?e.concat(t).map(function(i,l){return i=Pm(i),!n&&l?"["+i+"]":i}).join(n?".":""):t}function n0(e){return I.isArray(e)&&!e.some(Ia)}const r0=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Ul(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,j){return!I.isUndefined(j[x])});const r=n.metaTokens,i=n.visitor||d,l=n.dots,s=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(I.isDate(v))return v.toISOString();if(!u&&I.isBlob(v))throw new ne("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(v)||I.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,x,j){let m=v;if(v&&!j&&typeof v=="object"){if(I.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(I.isArray(v)&&n0(v)||(I.isFileList(v)||I.endsWith(x,"[]"))&&(m=I.toArray(v)))return x=Pm(x),m.forEach(function(f,g){!(I.isUndefined(f)||f===null)&&t.append(s===!0?wd([x],g,l):s===null?x:x+"[]",c(f))}),!1}return Ia(v)?!0:(t.append(wd(j,x,l),c(v)),!1)}const p=[],y=Object.assign(r0,{defaultVisitor:d,convertValue:c,isVisitable:Ia});function N(v,x){if(!I.isUndefined(v)){if(p.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(v),I.forEach(v,function(m,h){(!(I.isUndefined(m)||m===null)&&i.call(t,m,I.isString(h)?h.trim():h,x,y))===!0&&N(m,x?x.concat(h):[h])}),p.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return N(e),t}function Cd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Hc(e,t){this._pairs=[],e&&Ul(e,this,t)}const Om=Hc.prototype;Om.append=function(t,n){this._pairs.push([t,n])};Om.toString=function(t){const n=t?function(r){return t.call(this,r,Cd)}:Cd;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function i0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tm(e,t,n){if(!t)return e;const r=n&&n.encode||i0,i=n&&n.serialize;let l;if(i?l=i(t,n):l=I.isURLSearchParams(t)?t.toString():new Hc(t,n).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class bd{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Rm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},o0=typeof URLSearchParams<"u"?URLSearchParams:Hc,l0=typeof FormData<"u"?FormData:null,s0=typeof Blob<"u"?Blob:null,a0={isBrowser:!0,classes:{URLSearchParams:o0,FormData:l0,Blob:s0},protocols:["http","https","file","blob","url","data"]},Yc=typeof window<"u"&&typeof document<"u",Da=typeof navigator=="object"&&navigator||void 0,c0=Yc&&(!Da||["ReactNative","NativeScript","NS"].indexOf(Da.product)<0),u0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",d0=Yc&&window.location.href||"http://localhost",f0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yc,hasStandardBrowserEnv:c0,hasStandardBrowserWebWorkerEnv:u0,navigator:Da,origin:d0},Symbol.toStringTag,{value:"Module"})),Je={...f0,...a0};function p0(e,t){return Ul(e,new Je.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,l){return Je.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function m0(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function h0(e){const t={},n=Object.keys(e);let r;const i=n.length;let l;for(r=0;r=n.length;return s=!s&&I.isArray(i)?i.length:s,u?(I.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!I.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],l)&&I.isArray(i[s])&&(i[s]=h0(i[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,i)=>{t(m0(r),i,n,0)}),n}return null}function v0(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Bi={transitional:Rm,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,l=I.isObject(t);if(l&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return i?JSON.stringify(Am(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return p0(t,this.formSerializer).toString();if((a=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ul(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(n.setContentType("application/json",!1),v0(t)):t}],transformResponse:[function(t){const n=this.transitional||Bi.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)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}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Bi.headers[e]={}});const y0=I.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"]),g0=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&y0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ed=Symbol("internals");function Vr(e){return e&&String(e).trim().toLowerCase()}function bo(e){return e===!1||e==null?e:I.isArray(e)?e.map(bo):String(e)}function x0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const j0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ps(e,t,n,r,i){if(I.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function N0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function w0(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,l,s){return this[r].call(this,t,i,l,s)},configurable:!0})})}class Xe{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function l(a,u,c){const d=Vr(u);if(!d)throw new Error("header name must be a non-empty string");const p=I.findKey(i,d);(!p||i[p]===void 0||c===!0||c===void 0&&i[p]!==!1)&&(i[p||u]=bo(a))}const s=(a,u)=>I.forEach(a,(c,d)=>l(c,d,u));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(I.isString(t)&&(t=t.trim())&&!j0(t))s(g0(t),n);else if(I.isHeaders(t))for(const[a,u]of t.entries())l(u,a,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=Vr(t),t){const r=I.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return x0(i);if(I.isFunction(n))return n.call(this,i,r);if(I.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ps(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function l(s){if(s=Vr(s),s){const a=I.findKey(r,s);a&&(!n||Ps(r,r[a],a,n))&&(delete r[a],i=!0)}}return I.isArray(t)?t.forEach(l):l(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const l=n[r];(!t||Ps(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const n=this,r={};return I.forEach(this,(i,l)=>{const s=I.findKey(r,l);if(s){n[s]=bo(i),delete n[l];return}const a=t?N0(l):String(l).trim();a!==l&&delete n[l],n[a]=bo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&I.isArray(r)?r.join(", "):r)}),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 r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Ed]=this[Ed]={accessors:{}}).accessors,i=this.prototype;function l(s){const a=Vr(s);r[a]||(w0(i,s),r[a]=!0)}return I.isArray(t)?t.forEach(l):l(t),this}}Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(Xe);function Os(e,t){const n=this||Bi,r=t||n,i=Xe.from(r.headers);let l=r.data;return I.forEach(e,function(a){l=a.call(n,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Im(e){return!!(e&&e.__CANCEL__)}function Rr(e,t,n){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(Rr,ne,{__CANCEL__:!0});function Dm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(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 C0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function b0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,l=0,s;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[l];s||(s=c),n[i]=u,r[i]=c;let p=l,y=0;for(;p!==i;)y+=n[p++],p=p%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),c-s{n=d,i=null,l&&(clearTimeout(l),l=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),p=d-n;p>=r?s(c,d):(i=c,l||(l=setTimeout(()=>{l=null,s(i)},r-p)))},()=>i&&s(i)]}const dl=(e,t,n=3)=>{let r=0;const i=b0(50,250);return E0(l=>{const s=l.loaded,a=l.lengthComputable?l.total:void 0,u=s-r,c=i(u),d=s<=a;r=s;const p={loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:l,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Sd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kd=e=>(...t)=>I.asap(()=>e(...t)),S0=Je.hasStandardBrowserEnv?function(){const t=Je.navigator&&/(msie|trident)/i.test(Je.navigator.userAgent),n=document.createElement("a");let r;function i(l){let s=l;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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 r=i(window.location.href),function(s){const a=I.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),k0=Je.hasStandardBrowserEnv?{write(e,t,n,r,i,l){const s=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),I.isString(r)&&s.push("path="+r),I.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.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 _0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function P0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mm(e,t){return e&&!_0(t)?P0(e,t):t}const _d=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,d,p){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:p},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function i(c,d,p){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c,p)}else return r(c,d,p)}function l(c,d){if(!I.isUndefined(d))return r(void 0,d)}function s(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function a(c,d,p){if(p in t)return r(c,d);if(p in e)return r(void 0,c)}const u={url:l,method:l,data:l,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,d)=>i(_d(c),_d(d),!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const p=u[d]||i,y=p(e[d],t[d],d);I.isUndefined(y)&&p!==a||(n[d]=y)}),n}const Lm=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:l,headers:s,auth:a}=t;t.headers=s=Xe.from(s),t.url=Tm(Mm(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(I.isFormData(n)){if(Je.hasStandardBrowserEnv||Je.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[c,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Je.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&S0(t.url))){const c=i&&l&&k0.read(l);c&&s.set(i,c)}return t},O0=typeof XMLHttpRequest<"u",T0=O0&&function(e){return new Promise(function(n,r){const i=Lm(e);let l=i.data;const s=Xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,d,p,y,N,v;function x(){N&&N(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let j=new XMLHttpRequest;j.open(i.method.toUpperCase(),i.url,!0),j.timeout=i.timeout;function m(){if(!j)return;const f=Xe.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:f,config:e,request:j};Dm(function(E){n(E),x()},function(E){r(E),x()},w),j=null}"onloadend"in j?j.onloadend=m:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(m)},j.onabort=function(){j&&(r(new ne("Request aborted",ne.ECONNABORTED,e,j)),j=null)},j.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,e,j)),j=null},j.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Rm;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new ne(g,w.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,j)),j=null},l===void 0&&s.setContentType(null),"setRequestHeader"in j&&I.forEach(s.toJSON(),function(g,w){j.setRequestHeader(w,g)}),I.isUndefined(i.withCredentials)||(j.withCredentials=!!i.withCredentials),a&&a!=="json"&&(j.responseType=i.responseType),c&&([y,v]=dl(c,!0),j.addEventListener("progress",y)),u&&j.upload&&([p,N]=dl(u),j.upload.addEventListener("progress",p),j.upload.addEventListener("loadend",N)),(i.cancelToken||i.signal)&&(d=f=>{j&&(r(!f||f.type?new Rr(null,e,j):f),j.abort(),j=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const h=C0(i.url);if(h&&Je.protocols.indexOf(h)===-1){r(new ne("Unsupported protocol "+h+":",ne.ERR_BAD_REQUEST,e));return}j.send(l||null)})},R0=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const l=function(c){if(!i){i=!0,a();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ne?d:new Rr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,l(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=r;return u.unsubscribe=()=>I.asap(a),u}},A0=function*(e,t){let n=e.byteLength;if(!t||n{const i=I0(e,t);let l=0,s,a=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await i.next();if(c){a(),u.close();return}let p=d.byteLength;if(n){let y=l+=p;n(y)}u.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(u){return a(u),i.return()}},{highWaterMark:2})},$l=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fm=$l&&typeof ReadableStream=="function",M0=$l&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},L0=Fm&&zm(()=>{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}),Od=64*1024,Ma=Fm&&zm(()=>I.isReadableStream(new Response("").body)),fl={stream:Ma&&(e=>e.body)};$l&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fl[t]&&(fl[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ne(`Response type '${t}' is not supported`,ne.ERR_NOT_SUPPORT,r)})})})(new Response);const F0=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(Je.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await M0(e)).byteLength},z0=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??F0(t)},B0=$l&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:l,timeout:s,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:y}=Lm(e);c=c?(c+"").toLowerCase():"text";let N=R0([i,l&&l.toAbortSignal()],s),v;const x=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let j;try{if(u&&L0&&n!=="get"&&n!=="head"&&(j=await z0(d,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),b;if(I.isFormData(r)&&(b=w.headers.get("content-type"))&&d.setContentType(b),w.body){const[E,C]=Sd(j,dl(kd(u)));r=Pd(w.body,Od,E,C)}}I.isString(p)||(p=p?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...y,signal:N,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m?p:void 0});let h=await fetch(v);const f=Ma&&(c==="stream"||c==="response");if(Ma&&(a||f&&x)){const w={};["status","statusText","headers"].forEach(M=>{w[M]=h[M]});const b=I.toFiniteNumber(h.headers.get("content-length")),[E,C]=a&&Sd(b,dl(kd(a),!0))||[];h=new Response(Pd(h.body,Od,E,()=>{C&&C(),x&&x()}),w)}c=c||"text";let g=await fl[I.findKey(fl,c)||"text"](h,e);return!f&&x&&x(),await new Promise((w,b)=>{Dm(w,b,{data:g,headers:Xe.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:v})})}catch(m){throw x&&x(),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)}}),La={http:t0,xhr:T0,fetch:B0};I.forEach(La,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Td=e=>`- ${e}`,U0=e=>I.isFunction(e)||e===null||e===!1,Bm={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let l=0;l`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?l.length>1?`since : +`+l.map(Td).join(` +`):" "+Td(l[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:La};function Ts(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rr(null,e)}function Rd(e){return Ts(e),e.headers=Xe.from(e.headers),e.data=Os.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bm.getAdapter(e.adapter||Bi.adapter)(e).then(function(r){return Ts(e),r.data=Os.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Im(r)||(Ts(e),r&&r.response&&(r.response.data=Os.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const Um="1.7.7",Kc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Kc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ad={};Kc.transitional=function(t,n,r){function i(l,s){return"[Axios v"+Um+"] Transitional option '"+l+"'"+s+(r?". "+r:"")}return(l,s,a)=>{if(t===!1)throw new ne(i(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!Ad[s]&&(Ad[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,s,a):!0}};function $0(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const l=r[i],s=t[l];if(s){const a=e[l],u=a===void 0||s(a,l,e);if(u!==!0)throw new ne("option "+l+" must be "+u,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+l,ne.ERR_BAD_OPTION)}}const Fa={assertOptions:$0,validators:Kc},Gt=Fa.validators;class Mn{constructor(t){this.defaults=t,this.interceptors={request:new bd,response:new bd}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:l}=n;r!==void 0&&Fa.assertOptions(r,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},!1),i!=null&&(I.isFunction(i)?n.paramsSerializer={serialize:i}:Fa.assertOptions(i,{encode:Gt.function,serialize:Gt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=l&&I.merge(l.common,l[n.method]);l&&I.forEach(["delete","get","head","post","put","patch","common"],v=>{delete l[v]}),n.headers=Xe.concat(s,l);const a=[];let u=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(u=u&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let d,p=0,y;if(!u){const v=[Rd.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);p{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](i);r._listeners=null}),this.promise.then=i=>{let l;const s=new Promise(a=>{r.subscribe(a),l=a}).then(i);return s.cancel=function(){r.unsubscribe(l)},s},t(function(l,s,a){r.reason||(r.reason=new Rr(l,s,a),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Qc(function(i){t=i}),cancel:t}}}function W0(e){return function(n){return e.apply(null,n)}}function V0(e){return I.isObject(e)&&e.isAxiosError===!0}const za={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(za).forEach(([e,t])=>{za[t]=e});function $m(e){const t=new Mn(e),n=xm(Mn.prototype.request,t);return I.extend(n,Mn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return $m(qn(e,i))},n}const de=$m(Bi);de.Axios=Mn;de.CanceledError=Rr;de.CancelToken=Qc;de.isCancel=Im;de.VERSION=Um;de.toFormData=Ul;de.AxiosError=ne;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=W0;de.isAxiosError=V0;de.mergeConfig=qn;de.AxiosHeaders=Xe;de.formToJSON=e=>Am(I.isHTMLForm(e)?new FormData(e):e);de.getAdapter=Bm.getAdapter;de.HttpStatusCode=za;de.default=de;const q0="http://localhost:3002",Kt=de.create({baseURL:q0});Kt.interceptors.request.use(e=>(localStorage.getItem("profile")&&(e.headers.Authorization=`Bearer ${JSON.parse(localStorage.getItem("profile")).token}`),e));const H0=e=>Kt.post("/users/signup",e),Y0=e=>Kt.post("/users/signin",e),K0=(e,t,n)=>Kt.get(`/users/${e}/verify/${t}`,n),Q0=e=>Kt.post("/properties",e),G0=(e,t,n)=>Kt.get(`/properties/user/${e}?page=${t}&limit=${n}`,e),J0=e=>Kt.get(`/properties/${e}`,e),X0=(e,t)=>Kt.put(`/properties/${e}`,t),Z0=e=>Kt.get(`/users/${e}`),Eo=Dt("auth/login",async({formValue:e,navigate:t},{rejectWithValue:n})=>{try{const r=await Y0(e);return t("/dashboard"),r.data}catch(r){return n(r.response.data)}}),So=Dt("auth/register",async({formValue:e,navigate:t,toast:n},{rejectWithValue:r})=>{try{const i=await H0(e);return n.success("Register Successfully"),t("/registrationsuccess"),i.data}catch(i){return r(i.response.data)}}),ko=Dt("auth/updateUser",async(e,{rejectWithValue:t})=>{try{return(await de.put("http://localhost:3002/users/update",e)).data}catch(n){return t(n.response.data)}}),Wm=Vc({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(Eo.pending,t=>{t.loading=!0}).addCase(Eo.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(Eo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(So.pending,t=>{t.loading=!0}).addCase(So.fulfilled,(t,n)=>{t.loading=!1,localStorage.setItem("profile",JSON.stringify({...n.payload})),t.user=n.payload}).addCase(So.rejected,(t,n)=>{t.loading=!1,t.error=n.payload.message}).addCase(ko.pending,t=>{t.isLoading=!0}).addCase(ko.fulfilled,(t,n)=>{t.isLoading=!1,t.user=n.payload}).addCase(ko.rejected,(t,n)=>{t.isLoading=!1,t.error=n.payload})}}),{setUser:CN,setLogout:e1,setUserDetails:bN}=Wm.actions,t1=Wm.reducer,_o=Dt("user/showUser",async(e,{rejectWithValue:t})=>{try{return(await Z0(e)).data}catch(n){return t(n.response.data)}}),Po=Dt("user/verifyEmail",async({id:e,token:t,data:n},{rejectWithValue:r})=>{try{return(await K0(e,t,n)).data.message}catch(i){return r(i.response.data)}}),n1=Vc({name:"user",initialState:{users:[],error:"",loading:!1,verified:!1,user:{}},reducers:{},extraReducers:e=>{e.addCase(_o.pending,t=>{t.loading=!0,t.error=null}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.user=n.payload}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload}).addCase(Po.pending,t=>{t.loading=!0,t.error=null}).addCase(Po.fulfilled,(t,n)=>{t.loading=!1,t.verified=n.payload==="Email verified successfully"}).addCase(Po.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),r1=n1.reducer,Oo=Dt("property/submitProperty",async(e,{rejectWithValue:t})=>{try{return(await Q0(e)).data}catch(n){return t(n.response.data)}}),To=Dt("property/fetchUserProperties",async({userId:e,page:t,limit:n},{rejectWithValue:r})=>{try{return(await G0(e,t,n)).data}catch(i){return r(i.response.data)}}),li=Dt("property/fetchPropertyById",async(e,{rejectWithValue:t})=>{try{return(await J0(e)).data}catch(n){return t(n.response.data)}}),Ro=Dt("property/updateProperty",async({id:e,propertyData:t},{rejectWithValue:n})=>{try{return(await X0(e,t)).data}catch(r){return n(r.response.data)}}),si=Dt("properties/getProperties",async({page:e,limit:t,keyword:n=""})=>(await de.get(`http://localhost:3002/properties?page=${e}&limit=${t}&keyword=${n}`)).data),i1=Vc({name:"property",initialState:{property:{},status:"idle",error:null,userProperties:[],selectedProperty:null,totalPages:0,currentPage:1,loading:!1,properties:[]},reducers:{},extraReducers:e=>{e.addCase(Oo.pending,t=>{t.status="loading"}).addCase(Oo.fulfilled,(t,n)=>{t.status="succeeded",t.property=n.payload}).addCase(Oo.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(To.pending,t=>{t.loading=!0}).addCase(To.fulfilled,(t,{payload:n})=>{t.loading=!1,t.userProperties=n.properties,t.totalPages=n.totalPages,t.currentPage=n.currentPage}).addCase(To.rejected,(t,{payload:n})=>{t.loading=!1,t.error=n}).addCase(li.pending,t=>{t.status="loading"}).addCase(li.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(li.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(Ro.pending,t=>{t.status="loading"}).addCase(Ro.fulfilled,(t,n)=>{t.status="succeeded",t.selectedProperty=n.payload}).addCase(Ro.rejected,(t,n)=>{t.status="failed",t.error=n.payload}).addCase(si.pending,t=>{t.loading=!0}).addCase(si.fulfilled,(t,n)=>{t.loading=!1,t.properties=n.payload.data,t.totalPages=n.payload.totalPages,t.currentPage=n.payload.currentPage}).addCase(si.rejected,(t,n)=>{t.loading=!1,t.error=n.error.message})}}),o1=i1.reducer,l1=Gg({reducer:{auth:t1,user:r1,property:o1}});/** * @remix-run/router v1.19.1 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function l1(){return Math.random().toString(36).substr(2,8)}function Id(e,t){return{usr:e.state,key:e.key,idx:t}}function za(e,t,n,r){return n===void 0&&(n=null),Pi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||l1()})}function pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function s1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=sn.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(Pi({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=sn.Pop;let j=d(),m=j==null?null:j-c;c=j,u&&u({action:a,location:x.location,delta:m})}function y(j,m){a=sn.Push;let h=za(x.location,j,m);c=d()+1;let f=Id(h,c),g=x.createHref(h);try{s.pushState(f,"",g)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(g)}l&&u&&u({action:a,location:x.location,delta:1})}function N(j,m){a=sn.Replace;let h=za(x.location,j,m);c=d();let f=Id(h,c),g=x.createHref(h);s.replaceState(f,"",g),l&&u&&u({action:a,location:x.location,delta:0})}function v(j){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof j=="string"?j:pl(j);return h=h.replace(/ $/,"%20"),Ne(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let x={get action(){return a},get location(){return e(i,s)},listen(j){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Ad,p),u=j,()=>{i.removeEventListener(Ad,p),u=null}},createHref(j){return t(i,j)},createURL:v,encodeLocation(j){let m=v(j);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:N,go(j){return s.go(j)}};return x}var Dd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Dd||(Dd={}));function a1(e,t,n){return n===void 0&&(n="/"),c1(e,t,n,!1)}function c1(e,t,n,r){let i=typeof t=="string"?Ar(t):t,l=kr(i.pathname||"/",n);if(l==null)return null;let s=Vm(e);u1(s);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};u.relativePath.startsWith("/")&&(Ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=yn([r,u.relativePath]),d=n.concat(u);l.children&&l.children.length>0&&(Ne(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Vm(l.children,t,d,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:y1(c,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of qm(l.path))i(l,s,u)}),t}function qm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=qm(r.join("/")),a=[];return a.push(...s.map(u=>u===""?l:[l,u].join("/"))),i&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function u1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:g1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const d1=/^:[\w-]+$/,f1=3,p1=2,m1=1,h1=10,v1=-2,Md=e=>e==="*";function y1(e,t){let n=e.split("/"),r=n.length;return n.some(Md)&&(r+=v1),t&&(r+=p1),n.filter(i=>!Md(i)).reduce((i,l)=>i+(d1.test(l)?f1:l===""?m1:h1),r)}function g1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function x1(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let a=0;a{let{paramName:y,isOptional:N}=d;if(y==="*"){let x=a[p]||"";s=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:s,pattern:e}}function j1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function N1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wm(!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 kr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function w1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:C1(n,t):t,search:S1(r),hash:k1(i)}}function C1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ts(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function b1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Hm(e,t){let n=b1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ym(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ar(e):(i=Pi({},e),Ne(!i.pathname||!i.pathname.includes("?"),Ts("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),Ts("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),Ts("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}a=p>=0?t[p]:"/"}let u=w1(i,a),c=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),E1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),S1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,k1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Km=["post","put","patch","delete"];new Set(Km);const P1=["get",...Km];new Set(P1);/** + */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Vm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function a1(){return Math.random().toString(36).substr(2,8)}function Dd(e,t){return{usr:e.state,key:e.key,idx:t}}function Ba(e,t,n,r){return n===void 0&&(n=null),Pi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ar(t):t,{state:n,key:t&&t.key||r||a1()})}function pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ar(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function c1(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,a=sn.Pop,u=null,c=d();c==null&&(c=0,s.replaceState(Pi({},s.state,{idx:c}),""));function d(){return(s.state||{idx:null}).idx}function p(){a=sn.Pop;let j=d(),m=j==null?null:j-c;c=j,u&&u({action:a,location:x.location,delta:m})}function y(j,m){a=sn.Push;let h=Ba(x.location,j,m);c=d()+1;let f=Dd(h,c),g=x.createHref(h);try{s.pushState(f,"",g)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(g)}l&&u&&u({action:a,location:x.location,delta:1})}function N(j,m){a=sn.Replace;let h=Ba(x.location,j,m);c=d();let f=Dd(h,c),g=x.createHref(h);s.replaceState(f,"",g),l&&u&&u({action:a,location:x.location,delta:0})}function v(j){let m=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof j=="string"?j:pl(j);return h=h.replace(/ $/,"%20"),Ne(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let x={get action(){return a},get location(){return e(i,s)},listen(j){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Id,p),u=j,()=>{i.removeEventListener(Id,p),u=null}},createHref(j){return t(i,j)},createURL:v,encodeLocation(j){let m=v(j);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:y,replace:N,go(j){return s.go(j)}};return x}var Md;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Md||(Md={}));function u1(e,t,n){return n===void 0&&(n="/"),d1(e,t,n,!1)}function d1(e,t,n,r){let i=typeof t=="string"?Ar(t):t,l=kr(i.pathname||"/",n);if(l==null)return null;let s=qm(e);f1(s);let a=null;for(let u=0;a==null&&u{let u={relativePath:a===void 0?l.path||"":a,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};u.relativePath.startsWith("/")&&(Ne(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=yn([r,u.relativePath]),d=n.concat(u);l.children&&l.children.length>0&&(Ne(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),qm(l.children,t,d,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:x1(c,l.index),routesMeta:d})};return e.forEach((l,s)=>{var a;if(l.path===""||!((a=l.path)!=null&&a.includes("?")))i(l,s);else for(let u of Hm(l.path))i(l,s,u)}),t}function Hm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=Hm(r.join("/")),a=[];return a.push(...s.map(u=>u===""?l:[l,u].join("/"))),i&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function f1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:j1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const p1=/^:[\w-]+$/,m1=3,h1=2,v1=1,y1=10,g1=-2,Ld=e=>e==="*";function x1(e,t){let n=e.split("/"),r=n.length;return n.some(Ld)&&(r+=g1),t&&(r+=h1),n.filter(i=>!Ld(i)).reduce((i,l)=>i+(p1.test(l)?m1:l===""?v1:y1),r)}function j1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function N1(e,t,n){let{routesMeta:r}=e,i={},l="/",s=[];for(let a=0;a{let{paramName:y,isOptional:N}=d;if(y==="*"){let x=a[p]||"";s=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const v=a[p];return N&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:s,pattern:e}}function w1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function C1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vm(!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 kr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function b1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ar(e):e;return{pathname:n?n.startsWith("/")?n:E1(n,t):t,search:_1(r),hash:P1(i)}}function E1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Rs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function S1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ym(e,t){let n=S1(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Km(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ar(e):(i=Pi({},e),Ne(!i.pathname||!i.pathname.includes("?"),Rs("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),Rs("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),Rs("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,a;if(s==null)a=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}a=p>=0?t[p]:"/"}let u=b1(i,a),c=s&&s!=="/"&&s.endsWith("/"),d=(l||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const yn=e=>e.join("/").replace(/\/\/+/g,"/"),k1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_1=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P1=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function O1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Qm=["post","put","patch","delete"];new Set(Qm);const T1=["get",...Qm];new Set(T1);/** * React Router v6.26.1 * * Copyright (c) Remix Software Inc. @@ -68,7 +68,7 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=Ym(c,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:yn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,s,l,e])}function Dr(){let{matches:e}=O.useContext(En),t=e[e.length-1];return t?t.params:{}}function ql(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(bn),{matches:i}=O.useContext(En),{pathname:l}=$i(),s=JSON.stringify(Hm(i,r.v7_relativeSplatPath));return O.useMemo(()=>Ym(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function R1(e,t){return A1(e,t)}function A1(e,t,n,r){Ui()||Ne(!1);let{navigator:i}=O.useContext(bn),{matches:l}=O.useContext(En),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=$i(),d;if(t){var p;let j=typeof t=="string"?Ar(t):t;u==="/"||(p=j.pathname)!=null&&p.startsWith(u)||Ne(!1),d=j}else d=c;let y=d.pathname||"/",N=y;if(u!=="/"){let j=u.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let v=a1(e,{pathname:N}),x=F1(v&&v.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:yn([u,i.encodeLocation?i.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:yn([u,i.encodeLocation?i.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,n,r);return t&&x?O.createElement(Vl.Provider,{value:{location:Oi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},x):x}function I1(){let e=$1(),t=_1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const D1=O.createElement(I1,null);class M1 extends O.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?O.createElement(En.Provider,{value:this.props.routeContext},O.createElement(Gm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function L1(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Wl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(En.Provider,{value:t},r)}function F1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ne(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,p,y)=>{let N,v=!1,x=null,j=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,x=p.route.errorElement||D1,u&&(c<0&&y===0?(v=!0,j=null):c===y&&(v=!0,j=p.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,y+1)),h=()=>{let f;return N?f=x:v?f=j:p.route.Component?f=O.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,O.createElement(L1,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?O.createElement(M1,{location:n.location,revalidation:n.revalidation,component:x,error:N,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Xm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xm||{}),hl=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}(hl||{});function z1(e){let t=O.useContext(Wl);return t||Ne(!1),t}function B1(e){let t=O.useContext(Qm);return t||Ne(!1),t}function U1(e){let t=O.useContext(En);return t||Ne(!1),t}function Zm(e){let t=U1(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function $1(){var e;let t=O.useContext(Gm),n=B1(hl.UseRouteError),r=Zm(hl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function W1(){let{router:e}=z1(Xm.UseNavigateStable),t=Zm(hl.UseNavigateStable),n=O.useRef(!1);return Jm(()=>{n.current=!0}),O.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Oi({fromRouteId:t},l)))},[e,t])}function ke(e){Ne(!1)}function V1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=sn.Pop,navigator:l,static:s=!1,future:a}=e;Ui()&&Ne(!1);let u=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:u,navigator:l,static:s,future:Oi({v7_relativeSplatPath:!1},a)}),[u,a,l,s]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,x=O.useMemo(()=>{let j=kr(d,u);return j==null?null:{location:{pathname:j,search:p,hash:y,state:N,key:v},navigationType:i}},[u,d,p,y,N,v,i]);return x==null?null:O.createElement(bn.Provider,{value:c},O.createElement(Vl.Provider,{children:n,value:x}))}function q1(e){let{children:t,location:n}=e;return R1(Ba(t),n)}new Promise(()=>{});function Ba(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let l=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Ba(r.props.children,l));return}r.type!==ke&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ba(r.props.children,l)),n.push(s)}),n}/** + */function Oi(){return Oi=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let p=Km(c,JSON.parse(s),l,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:yn([t,p.pathname])),(d.replace?r.replace:r.push)(p,d.state,d)},[t,r,s,l,e])}function Dr(){let{matches:e}=O.useContext(En),t=e[e.length-1];return t?t.params:{}}function ql(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(bn),{matches:i}=O.useContext(En),{pathname:l}=$i(),s=JSON.stringify(Ym(i,r.v7_relativeSplatPath));return O.useMemo(()=>Km(e,JSON.parse(s),l,n==="path"),[e,s,l,n])}function I1(e,t){return D1(e,t)}function D1(e,t,n,r){Ui()||Ne(!1);let{navigator:i}=O.useContext(bn),{matches:l}=O.useContext(En),s=l[l.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=$i(),d;if(t){var p;let j=typeof t=="string"?Ar(t):t;u==="/"||(p=j.pathname)!=null&&p.startsWith(u)||Ne(!1),d=j}else d=c;let y=d.pathname||"/",N=y;if(u!=="/"){let j=u.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(j.length).join("/")}let v=u1(e,{pathname:N}),x=B1(v&&v.map(j=>Object.assign({},j,{params:Object.assign({},a,j.params),pathname:yn([u,i.encodeLocation?i.encodeLocation(j.pathname).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?u:yn([u,i.encodeLocation?i.encodeLocation(j.pathnameBase).pathname:j.pathnameBase])})),l,n,r);return t&&x?O.createElement(Vl.Provider,{value:{location:Oi({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:sn.Pop}},x):x}function M1(){let e=V1(),t=O1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const L1=O.createElement(M1,null);class F1 extends O.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?O.createElement(En.Provider,{value:this.props.routeContext},O.createElement(Jm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function z1(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Wl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(En.Provider,{value:t},r)}function B1(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=s.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);d>=0||Ne(!1),s=s.slice(0,Math.min(s.length,d+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((d,p,y)=>{let N,v=!1,x=null,j=null;n&&(N=a&&p.route.id?a[p.route.id]:void 0,x=p.route.errorElement||L1,u&&(c<0&&y===0?(v=!0,j=null):c===y&&(v=!0,j=p.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,y+1)),h=()=>{let f;return N?f=x:v?f=j:p.route.Component?f=O.createElement(p.route.Component,null):p.route.element?f=p.route.element:f=d,O.createElement(z1,{match:p,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:f})};return n&&(p.route.ErrorBoundary||p.route.errorElement||y===0)?O.createElement(F1,{location:n.location,revalidation:n.revalidation,component:x,error:N,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Zm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zm||{}),hl=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}(hl||{});function U1(e){let t=O.useContext(Wl);return t||Ne(!1),t}function $1(e){let t=O.useContext(Gm);return t||Ne(!1),t}function W1(e){let t=O.useContext(En);return t||Ne(!1),t}function eh(e){let t=W1(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function V1(){var e;let t=O.useContext(Jm),n=$1(hl.UseRouteError),r=eh(hl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function q1(){let{router:e}=U1(Zm.UseNavigateStable),t=eh(hl.UseNavigateStable),n=O.useRef(!1);return Xm(()=>{n.current=!0}),O.useCallback(function(i,l){l===void 0&&(l={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Oi({fromRouteId:t},l)))},[e,t])}function ke(e){Ne(!1)}function H1(e){let{basename:t="/",children:n=null,location:r,navigationType:i=sn.Pop,navigator:l,static:s=!1,future:a}=e;Ui()&&Ne(!1);let u=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:u,navigator:l,static:s,future:Oi({v7_relativeSplatPath:!1},a)}),[u,a,l,s]);typeof r=="string"&&(r=Ar(r));let{pathname:d="/",search:p="",hash:y="",state:N=null,key:v="default"}=r,x=O.useMemo(()=>{let j=kr(d,u);return j==null?null:{location:{pathname:j,search:p,hash:y,state:N,key:v},navigationType:i}},[u,d,p,y,N,v,i]);return x==null?null:O.createElement(bn.Provider,{value:c},O.createElement(Vl.Provider,{children:n,value:x}))}function Y1(e){let{children:t,location:n}=e;return I1(Ua(t),n)}new Promise(()=>{});function Ua(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let l=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Ua(r.props.children,l));return}r.type!==ke&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ua(r.props.children,l)),n.push(s)}),n}/** * React Router DOM v6.26.1 * * Copyright (c) Remix Software Inc. @@ -77,9 +77,9 @@ Error generating stack: `+l.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function vl(){return vl=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function H1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Y1(e,t){return e.button===0&&(!t||t==="_self")&&!H1(e)}const K1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Q1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],G1="6";try{window.__reactRouterVersion=G1}catch{}const J1=O.createContext({isTransitioning:!1}),X1="startTransition",Ld=As[X1];function Z1(e){let{basename:t,children:n,future:r,window:i}=e,l=O.useRef();l.current==null&&(l.current=o1({window:i,v5Compat:!0}));let s=l.current,[a,u]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=O.useCallback(p=>{c&&Ld?Ld(()=>u(p)):u(p)},[u,c]);return O.useLayoutEffect(()=>s.listen(d),[s,d]),O.createElement(V1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ej=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nj=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,y=eh(t,K1),{basename:N}=O.useContext(bn),v,x=!1;if(typeof c=="string"&&tj.test(c)&&(v=c,ej))try{let f=new URL(window.location.href),g=c.startsWith("//")?new URL(f.protocol+c):new URL(c),w=kr(g.pathname,N);g.origin===f.origin&&w!=null?c=w+g.search+g.hash:x=!0}catch{}let j=O1(c,{relative:i}),m=ij(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:p});function h(f){r&&r(f),f.defaultPrevented||m(f)}return O.createElement("a",vl({},y,{href:v||j,onClick:x||l?r:h,ref:n,target:u}))}),he=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,p=eh(t,Q1),y=ql(u,{relative:p.relative}),N=$i(),v=O.useContext(Qm),{navigator:x,basename:j}=O.useContext(bn),m=v!=null&&oj(y)&&c===!0,h=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(f=f.toLowerCase(),g=g?g.toLowerCase():null,h=h.toLowerCase()),g&&j&&(g=kr(g,j)||g);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=f===h||!s&&f.startsWith(h)&&f.charAt(w)==="/",E=g!=null&&(g===h||!s&&g.startsWith(h)&&g.charAt(h.length)==="/"),C={isActive:b,isPending:E,isTransitioning:m},D=b?r:void 0,F;typeof l=="function"?F=l(C):F=[l,b?"active":null,E?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(C):a;return O.createElement(nj,vl({},p,{"aria-current":D,className:F,ref:n,style:$,to:u,unstable_viewTransition:c}),typeof d=="function"?d(C):d)});var Ua;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ua||(Ua={}));var Fd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fd||(Fd={}));function rj(e){let t=O.useContext(Wl);return t||Ne(!1),t}function ij(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=Ir(),c=$i(),d=ql(e,{relative:s});return O.useCallback(p=>{if(Y1(p,n)){p.preventDefault();let y=r!==void 0?r:pl(c)===pl(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function oj(e,t){t===void 0&&(t={});let n=O.useContext(J1);n==null&&Ne(!1);let{basename:r}=rj(Ua.useViewTransitionState),i=ql(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=kr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=kr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ml(i.pathname,s)!=null||ml(i.pathname,l)!=null}function th(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Ln=e=>typeof e=="string",rt=e=>typeof e=="function",Ao=e=>Ln(e)||rt(e)?e:null,$a=e=>O.isValidElement(e)||Ln(e)||rt(e)||Ti(e);function lj(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Hl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:y,playToast:N}=s;const v=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,j=O.useRef(0);return O.useLayoutEffect(()=>{const m=p.current,h=v.split(" "),f=g=>{g.target===p.current&&(N(),m.removeEventListener("animationend",f),m.removeEventListener("animationcancel",f),j.current===0&&g.type!=="animationcancel"&&m.classList.remove(...h))};m.classList.add(...h),m.addEventListener("animationend",f),m.addEventListener("animationcancel",f)},[]),O.useEffect(()=>{const m=p.current,h=()=>{m.removeEventListener("animationend",h),i?lj(m,d,l):d()};y||(c?h():(j.current=1,m.className+=` ${x}`,m.addEventListener("animationend",h)))},[y]),_.createElement(_.Fragment,null,a)}}function zd(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 Ue=new Map;let Ri=[];const Wa=new Set,sj=e=>Wa.forEach(t=>t(e)),nh=()=>Ue.size>0;function rh(e,t){var n;if(t)return!((n=Ue.get(t))==null||!n.isToastActive(e));let r=!1;return Ue.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function ih(e,t){$a(e)&&(nh()||Ri.push({content:e,options:t}),Ue.forEach(n=>{n.buildToast(e,t)}))}function Bd(e,t){Ue.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 aj(e){const{subscribe:t,getSnapshot:n,setProps:r}=O.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,p,y){let N=1,v=0,x=[],j=[],m=[],h=p;const f=new Map,g=new Set,w=()=>{m=Array.from(f.values()),g.forEach(C=>C())},b=C=>{j=C==null?[]:j.filter(D=>D!==C),w()},E=C=>{const{toastId:D,onOpen:F,updateId:$,children:J}=C.props,Y=$==null;C.staleId&&f.delete(C.staleId),f.set(D,C),j=[...j,C.props.toastId].filter(K=>K!==C.staleId),w(),y(zd(C,Y?"added":"updated")),Y&&rt(F)&&F(O.isValidElement(J)&&J.props)};return{id:d,props:h,observe:C=>(g.add(C),()=>g.delete(C)),toggle:(C,D)=>{f.forEach(F=>{D!=null&&D!==F.props.toastId||rt(F.toggle)&&F.toggle(C)})},removeToast:b,toasts:f,clearQueue:()=>{v-=x.length,x=[]},buildToast:(C,D)=>{if((z=>{let{containerId:W,toastId:V,updateId:Q}=z;const Z=W?W!==d:d!==1,te=f.has(V)&&Q==null;return Z||te})(D))return;const{toastId:F,updateId:$,data:J,staleId:Y,delay:K}=D,R=()=>{b(F)},B=$==null;B&&v++;const H={...h,style:h.toastStyle,key:N++,...Object.fromEntries(Object.entries(D).filter(z=>{let[W,V]=z;return V!=null})),toastId:F,updateId:$,data:J,closeToast:R,isIn:!1,className:Ao(D.className||h.toastClassName),bodyClassName:Ao(D.bodyClassName||h.bodyClassName),progressClassName:Ao(D.progressClassName||h.progressClassName),autoClose:!D.isLoading&&(k=D.autoClose,S=h.autoClose,k===!1||Ti(k)&&k>0?k:S),deleteToast(){const z=f.get(F),{onClose:W,children:V}=z.props;rt(W)&&W(O.isValidElement(V)&&V.props),y(zd(z,"removed")),f.delete(F),v--,v<0&&(v=0),x.length>0?E(x.shift()):w()}};var k,S;H.closeButton=h.closeButton,D.closeButton===!1||$a(D.closeButton)?H.closeButton=D.closeButton:D.closeButton===!0&&(H.closeButton=!$a(h.closeButton)||h.closeButton);let M=C;O.isValidElement(C)&&!Ln(C.type)?M=O.cloneElement(C,{closeToast:R,toastProps:H,data:J}):rt(C)&&(M=C({closeToast:R,toastProps:H,data:J}));const L={content:M,props:H,staleId:Y};h.limit&&h.limit>0&&v>h.limit&&B?x.push(L):Ti(K)?setTimeout(()=>{E(L)},K):E(L)},setProps(C){h=C},setToggle:(C,D)=>{f.get(C).toggle=D},isToastActive:C=>j.some(D=>D===C),getSnapshot:()=>h.newestOnTop?m.reverse():m}}(s,l,sj);Ue.set(s,u);const c=u.observe(a);return Ri.forEach(d=>ih(d.content,d.options)),Ri=[],()=>{c(),Ue.delete(s)}},setProps(a){var u;(u=Ue.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=Ue.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=O.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:rh,count:i==null?void 0:i.length}}function cj(e){const[t,n]=O.useState(!1),[r,i]=O.useState(!1),l=O.useRef(null),s=O.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function x(){n(!1)}function j(f){const g=l.current;s.canDrag&&g&&(s.didMove=!0,t&&x(),s.delta=e.draggableDirection==="x"?f.clientX-s.start:f.clientY-s.start,s.start!==f.clientX&&(s.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function m(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",m);const f=l.current;if(s.canDrag&&s.didMove&&f){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=Ue.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),O.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",x)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){s.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",m);const g=l.current;s.canCloseOnClick=!0,s.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(s.start=f.clientX,s.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(s.start=f.clientY,s.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:w,left:b,right:E}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=b&&f.clientX<=E&&f.clientY>=g&&f.clientY<=w?x():v()}};return a&&u&&(h.onMouseEnter=x,e.stacked||(h.onMouseLeave=v)),p&&(h.onClick=f=>{d&&d(f),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:h}}function uj(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:y}=e;const N=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const x=an("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),j=rt(s)?s({rtl:d,type:i,defaultClassName:x}):an(x,s),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&r()}};return _.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},_.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),_.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:j,style:v,...m}))}let dj=1;const oh=()=>""+dj++;function fj(e){return e&&(Ln(e.toastId)||Ti(e.toastId))?e.toastId:oh()}function ai(e,t){return ih(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:fj(t)}}function ao(e){return(t,n)=>ai(t,yl(e,n))}function ie(e,t){return ai(e,yl("default",t))}ie.loading=(e,t)=>ai(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=Ln(i)?ie.loading(i,n):ie.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,y)=>{if(p==null)return void ie.dismiss(r);const N={type:d,...a,...n,data:y},v=Ln(p)?{render:p}:p;return r?ie.update(r,{...N,...v}):ie(v.render,{...N,...v}),y},c=rt(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},ie.success=ao("success"),ie.info=ao("info"),ie.error=ao("error"),ie.warning=ao("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>ai(e,yl("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(nh()){if(t==null||Ln(n=t)||Ti(n))Ue.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ue.get(t.containerId);r?r.removeToast(t.id):Ue.forEach(i=>{i.removeToast(t.id)})}}else Ri=Ri.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Ue.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=rh,ie.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=Ue.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:oh()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,ai(s,l)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return Wa.add(e),()=>{Wa.delete(e)}},ie.play=e=>Bd(!0,e),ie.pause=e=>Bd(!1,e);const pj=typeof window<"u"?O.useLayoutEffect:O.useEffect,co=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Rs={info:function(e){return _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement("div",{className:"Toastify__spinner"})}},mj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=cj(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:x,style:j,bodyClassName:m,bodyStyle:h,progressClassName:f,progressStyle:g,updateId:w,role:b,progress:E,rtl:C,toastId:D,deleteToast:F,isIn:$,isLoading:J,closeOnClick:Y,theme:K}=e,R=an("Toastify__toast",`Toastify__toast-theme--${K}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":Y}),B=rt(x)?x({rtl:C,position:v,type:d,defaultClassName:R}):an(R,x),H=function(L){let{theme:z,type:W,isLoading:V,icon:Q}=L,Z=null;const te={theme:z,type:W};return Q===!1||(rt(Q)?Z=Q({...te,isLoading:V}):O.isValidElement(Q)?Z=O.cloneElement(Q,te):V?Z=Rs.spinner():(re=>re in Rs)(W)&&(Z=Rs[W](te))),Z}(e),k=!!E||!u,S={closeToast:y,type:d,theme:K};let M=null;return s===!1||(M=rt(s)?s(S):O.isValidElement(s)?O.cloneElement(s,S):function(L){let{closeToast:z,theme:W,ariaLabel:V="close"}=L;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Q=>{Q.stopPropagation(),z(Q)},"aria-label":V},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.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"})))}(S)),_.createElement(N,{isIn:$,done:F,position:v,preventExitTransition:n,nodeRef:r,playToast:l},_.createElement("div",{id:D,onClick:c,"data-in":$,className:B,...i,style:j,ref:r},_.createElement("div",{...$&&{role:b},className:rt(m)?m({type:d}):an("Toastify__toast-body",m),style:h},H!=null&&_.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!J})},H),_.createElement("div",null,a)),M,_.createElement(uj,{...w&&!k?{key:`pb-${w}`}:{},rtl:C,theme:K,delay:u,isRunning:t,isIn:$,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:k,progress:E||0})))},Yl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},hj=Hl(Yl("bounce",!0));Hl(Yl("slide",!0));Hl(Yl("zoom"));Hl(Yl("flip"));const vj={position:"top-right",transition:hj,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function yj(e){let t={...vj,...e};const n=e.stacked,[r,i]=O.useState(!0),l=O.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=aj(t),{className:c,style:d,rtl:p,containerId:y}=t;function N(x){const j=an("Toastify__toast-container",`Toastify__toast-container--${x}`,{"Toastify__toast-container--rtl":p});return rt(c)?c({position:x,rtl:p,defaultClassName:j}):an(j,Ao(c))}function v(){n&&(i(!0),ie.play())}return pj(()=>{if(n){var x;const j=l.current.querySelectorAll('[data-in="true"]'),m=12,h=(x=t.position)==null?void 0:x.includes("top");let f=0,g=0;Array.from(j).reverse().forEach((w,b)=>{const E=w;E.classList.add("Toastify__toast--stacked"),b>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=h?"top":"bot");const C=f*(r?.2:1)+(r?0:m*b);E.style.setProperty("--y",`${h?C:-1*C}px`),E.style.setProperty("--g",`${m}`),E.style.setProperty("--s",""+(1-(r?g:0))),f+=E.offsetHeight,g+=.025})}},[r,u,n]),_.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),ie.pause())},onMouseLeave:v},s((x,j)=>{const m=j.length?{...d}:{...d,pointerEvents:"none"};return _.createElement("div",{className:N(x),style:m,key:`container-${x}`},j.map(h=>{let{content:f,props:g}=h;return _.createElement(mj,{...g,stacked:n,collapseAll:v,isIn:a(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const ze=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},gj="/assets/logo-Cb1x1exd.png",Oe=()=>{var i,l;const{user:e}=Ze(s=>({...s.auth})),t=St(),n=Ir(),r=()=>{t(X0()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:gj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):o.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(he,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):o.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},xj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(ze,{})]}),jj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(ze,{})]}),Nj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(ze,{})]});var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=O.useState(Hj),[n,r]=O.useState(!1),{loading:i,error:l}=Ze(w=>({...w.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,x=St(),j=Ir();O.useEffect(()=>{l&&ie.error(l)},[l]),O.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&p&&y&&N&&v!=="")},[s,a,u,c,d,p,y,N,v]);const m=w=>{if(w.preventDefault(),u!==y)return ie.error("Password should match");n?x(So({formValue:e,navigate:j,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},h=w=>w.charAt(0).toUpperCase()+w.slice(1),f=w=>{const{name:b,value:E,type:C,checked:D}=w.target;t(C==="checkbox"?F=>({...F,[b]:D}):F=>({...F,[b]:b==="email"||b==="password"||b==="confirmPassword"?E:h(E)}))},g=w=>{t(b=>({...b,userType:w.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:m,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:f,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:f,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(lh.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Kj={email:"",password:""},Qj=()=>{const[e,t]=O.useState(Kj),{loading:n,error:r}=Ze(d=>({...d.auth})),{email:i,password:l}=e,s=St(),a=Ir();O.useEffect(()=>{r&&ie.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(Eo({formValue:e,navigate:a,toast:ie}))},c=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(lh.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Io="/assets/samplepic-BM_cnzgz.jpg";var sh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Sh,function(){return function(n){function r(l){if(i[l])return i[l].exports;var s=i[l]={exports:{},id:l,loaded:!1};return n[l].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(n,r,i){function l(N){return N&&N.__esModule?N:{default:N}}function s(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function a(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function u(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function N(v,x){for(var j=0;j1)for(var w=1;w1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var K=Array(Y),R=0;R"u"||C.$$typeof!==m)){var H=typeof g=="function"?g.displayName||g.name||"Unknown":g;D&&u(C,H),F&&c(C,H)}return f(g,D,F,$,J,N.current,C)},f.createFactory=function(g){var w=f.createElement.bind(null,g);return w.type=g,w},f.cloneAndReplaceKey=function(g,w){var b=f(g.type,w,g.ref,g._self,g._source,g._owner,g.props);return b},f.cloneElement=function(g,w,b){var E,C=y({},g.props),D=g.key,F=g.ref,$=g._self,J=g._source,Y=g._owner;if(w!=null){s(w)&&(F=w.ref,Y=N.current),a(w)&&(D=""+w.key);var K;g.type&&g.type.defaultProps&&(K=g.type.defaultProps);for(E in w)j.call(w,E)&&!h.hasOwnProperty(E)&&(w[E]===void 0&&K!==void 0?C[E]=K[E]:C[E]=w[E])}var R=arguments.length-2;if(R===1)C.children=b;else if(R>1){for(var B=Array(R),H=0;H=0)&&(n[i]=e[i]);return n}function K1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Q1(e,t){return e.button===0&&(!t||t==="_self")&&!K1(e)}const G1=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],J1=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],X1="6";try{window.__reactRouterVersion=X1}catch{}const Z1=O.createContext({isTransitioning:!1}),ej="startTransition",Fd=Is[ej];function tj(e){let{basename:t,children:n,future:r,window:i}=e,l=O.useRef();l.current==null&&(l.current=s1({window:i,v5Compat:!0}));let s=l.current,[a,u]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},d=O.useCallback(p=>{c&&Fd?Fd(()=>u(p)):u(p)},[u,c]);return O.useLayoutEffect(()=>s.listen(d),[s,d]),O.createElement(H1,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const nj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ij=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:l,replace:s,state:a,target:u,to:c,preventScrollReset:d,unstable_viewTransition:p}=t,y=th(t,G1),{basename:N}=O.useContext(bn),v,x=!1;if(typeof c=="string"&&rj.test(c)&&(v=c,nj))try{let f=new URL(window.location.href),g=c.startsWith("//")?new URL(f.protocol+c):new URL(c),w=kr(g.pathname,N);g.origin===f.origin&&w!=null?c=w+g.search+g.hash:x=!0}catch{}let j=R1(c,{relative:i}),m=lj(c,{replace:s,state:a,target:u,preventScrollReset:d,relative:i,unstable_viewTransition:p});function h(f){r&&r(f),f.defaultPrevented||m(f)}return O.createElement("a",vl({},y,{href:v||j,onClick:x||l?r:h,ref:n,target:u}))}),he=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:l="",end:s=!1,style:a,to:u,unstable_viewTransition:c,children:d}=t,p=th(t,J1),y=ql(u,{relative:p.relative}),N=$i(),v=O.useContext(Gm),{navigator:x,basename:j}=O.useContext(bn),m=v!=null&&sj(y)&&c===!0,h=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,f=N.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(f=f.toLowerCase(),g=g?g.toLowerCase():null,h=h.toLowerCase()),g&&j&&(g=kr(g,j)||g);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let b=f===h||!s&&f.startsWith(h)&&f.charAt(w)==="/",E=g!=null&&(g===h||!s&&g.startsWith(h)&&g.charAt(h.length)==="/"),C={isActive:b,isPending:E,isTransitioning:m},M=b?r:void 0,F;typeof l=="function"?F=l(C):F=[l,b?"active":null,E?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let $=typeof a=="function"?a(C):a;return O.createElement(ij,vl({},p,{"aria-current":M,className:F,ref:n,style:$,to:u,unstable_viewTransition:c}),typeof d=="function"?d(C):d)});var $a;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($a||($a={}));var zd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zd||(zd={}));function oj(e){let t=O.useContext(Wl);return t||Ne(!1),t}function lj(e,t){let{target:n,replace:r,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a}=t===void 0?{}:t,u=Ir(),c=$i(),d=ql(e,{relative:s});return O.useCallback(p=>{if(Q1(p,n)){p.preventDefault();let y=r!==void 0?r:pl(c)===pl(d);u(e,{replace:y,state:i,preventScrollReset:l,relative:s,unstable_viewTransition:a})}},[c,u,d,r,i,n,e,l,s,a])}function sj(e,t){t===void 0&&(t={});let n=O.useContext(Z1);n==null&&Ne(!1);let{basename:r}=oj($a.useViewTransitionState),i=ql(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=kr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=kr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ml(i.pathname,s)!=null||ml(i.pathname,l)!=null}function nh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Ln=e=>typeof e=="string",rt=e=>typeof e=="function",Ao=e=>Ln(e)||rt(e)?e:null,Wa=e=>O.isValidElement(e)||Ln(e)||rt(e)||Ti(e);function aj(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Hl(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:l=300}=e;return function(s){let{children:a,position:u,preventExitTransition:c,done:d,nodeRef:p,isIn:y,playToast:N}=s;const v=r?`${t}--${u}`:t,x=r?`${n}--${u}`:n,j=O.useRef(0);return O.useLayoutEffect(()=>{const m=p.current,h=v.split(" "),f=g=>{g.target===p.current&&(N(),m.removeEventListener("animationend",f),m.removeEventListener("animationcancel",f),j.current===0&&g.type!=="animationcancel"&&m.classList.remove(...h))};m.classList.add(...h),m.addEventListener("animationend",f),m.addEventListener("animationcancel",f)},[]),O.useEffect(()=>{const m=p.current,h=()=>{m.removeEventListener("animationend",h),i?aj(m,d,l):d()};y||(c?h():(j.current=1,m.className+=` ${x}`,m.addEventListener("animationend",h)))},[y]),_.createElement(_.Fragment,null,a)}}function Bd(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 Ue=new Map;let Ri=[];const Va=new Set,cj=e=>Va.forEach(t=>t(e)),rh=()=>Ue.size>0;function ih(e,t){var n;if(t)return!((n=Ue.get(t))==null||!n.isToastActive(e));let r=!1;return Ue.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function oh(e,t){Wa(e)&&(rh()||Ri.push({content:e,options:t}),Ue.forEach(n=>{n.buildToast(e,t)}))}function Ud(e,t){Ue.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 uj(e){const{subscribe:t,getSnapshot:n,setProps:r}=O.useRef(function(l){const s=l.containerId||1;return{subscribe(a){const u=function(d,p,y){let N=1,v=0,x=[],j=[],m=[],h=p;const f=new Map,g=new Set,w=()=>{m=Array.from(f.values()),g.forEach(C=>C())},b=C=>{j=C==null?[]:j.filter(M=>M!==C),w()},E=C=>{const{toastId:M,onOpen:F,updateId:$,children:J}=C.props,Y=$==null;C.staleId&&f.delete(C.staleId),f.set(M,C),j=[...j,C.props.toastId].filter(K=>K!==C.staleId),w(),y(Bd(C,Y?"added":"updated")),Y&&rt(F)&&F(O.isValidElement(J)&&J.props)};return{id:d,props:h,observe:C=>(g.add(C),()=>g.delete(C)),toggle:(C,M)=>{f.forEach(F=>{M!=null&&M!==F.props.toastId||rt(F.toggle)&&F.toggle(C)})},removeToast:b,toasts:f,clearQueue:()=>{v-=x.length,x=[]},buildToast:(C,M)=>{if((z=>{let{containerId:W,toastId:V,updateId:Q}=z;const Z=W?W!==d:d!==1,te=f.has(V)&&Q==null;return Z||te})(M))return;const{toastId:F,updateId:$,data:J,staleId:Y,delay:K}=M,R=()=>{b(F)},B=$==null;B&&v++;const H={...h,style:h.toastStyle,key:N++,...Object.fromEntries(Object.entries(M).filter(z=>{let[W,V]=z;return V!=null})),toastId:F,updateId:$,data:J,closeToast:R,isIn:!1,className:Ao(M.className||h.toastClassName),bodyClassName:Ao(M.bodyClassName||h.bodyClassName),progressClassName:Ao(M.progressClassName||h.progressClassName),autoClose:!M.isLoading&&(k=M.autoClose,S=h.autoClose,k===!1||Ti(k)&&k>0?k:S),deleteToast(){const z=f.get(F),{onClose:W,children:V}=z.props;rt(W)&&W(O.isValidElement(V)&&V.props),y(Bd(z,"removed")),f.delete(F),v--,v<0&&(v=0),x.length>0?E(x.shift()):w()}};var k,S;H.closeButton=h.closeButton,M.closeButton===!1||Wa(M.closeButton)?H.closeButton=M.closeButton:M.closeButton===!0&&(H.closeButton=!Wa(h.closeButton)||h.closeButton);let D=C;O.isValidElement(C)&&!Ln(C.type)?D=O.cloneElement(C,{closeToast:R,toastProps:H,data:J}):rt(C)&&(D=C({closeToast:R,toastProps:H,data:J}));const L={content:D,props:H,staleId:Y};h.limit&&h.limit>0&&v>h.limit&&B?x.push(L):Ti(K)?setTimeout(()=>{E(L)},K):E(L)},setProps(C){h=C},setToggle:(C,M)=>{f.get(C).toggle=M},isToastActive:C=>j.some(M=>M===C),getSnapshot:()=>h.newestOnTop?m.reverse():m}}(s,l,cj);Ue.set(s,u);const c=u.observe(a);return Ri.forEach(d=>oh(d.content,d.options)),Ri=[],()=>{c(),Ue.delete(s)}},setProps(a){var u;(u=Ue.get(s))==null||u.setProps(a)},getSnapshot(){var a;return(a=Ue.get(s))==null?void 0:a.getSnapshot()}}}(e)).current;r(e);const i=O.useSyncExternalStore(t,n,n);return{getToastToRender:function(l){if(!i)return[];const s=new Map;return i.forEach(a=>{const{position:u}=a.props;s.has(u)||s.set(u,[]),s.get(u).push(a)}),Array.from(s,a=>l(a[0],a[1]))},isToastActive:ih,count:i==null?void 0:i.length}}function dj(e){const[t,n]=O.useState(!1),[r,i]=O.useState(!1),l=O.useRef(null),s=O.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:p}=e;var y,N;function v(){n(!0)}function x(){n(!1)}function j(f){const g=l.current;s.canDrag&&g&&(s.didMove=!0,t&&x(),s.delta=e.draggableDirection==="x"?f.clientX-s.start:f.clientY-s.start,s.start!==f.clientX&&(s.canCloseOnClick=!1),g.style.transform=`translate3d(${e.draggableDirection==="x"?`${s.delta}px, var(--y)`:`0, calc(${s.delta}px + var(--y))`},0)`,g.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function m(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",m);const f=l.current;if(s.canDrag&&s.didMove&&f){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();f.style.transition="transform 0.2s, opacity 0.2s",f.style.removeProperty("transform"),f.style.removeProperty("opacity")}}(N=Ue.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||N.setToggle(y.id,y.fn),O.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",x)}},[e.pauseOnFocusLoss]);const h={onPointerDown:function(f){if(e.draggable===!0||e.draggable===f.pointerType){s.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",m);const g=l.current;s.canCloseOnClick=!0,s.canDrag=!0,g.style.transition="none",e.draggableDirection==="x"?(s.start=f.clientX,s.removalDistance=g.offsetWidth*(e.draggablePercent/100)):(s.start=f.clientY,s.removalDistance=g.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(f){const{top:g,bottom:w,left:b,right:E}=l.current.getBoundingClientRect();f.nativeEvent.type!=="touchend"&&e.pauseOnHover&&f.clientX>=b&&f.clientX<=E&&f.clientY>=g&&f.clientY<=w?x():v()}};return a&&u&&(h.onMouseEnter=x,e.stacked||(h.onMouseLeave=v)),p&&(h.onClick=f=>{d&&d(f),s.canCloseOnClick&&c()}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:l,eventHandlers:h}}function fj(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:l,className:s,style:a,controlledProgress:u,progress:c,rtl:d,isIn:p,theme:y}=e;const N=l||u&&c===0,v={...a,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const x=an("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),j=rt(s)?s({rtl:d,type:i,defaultClassName:x}):an(x,s),m={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{p&&r()}};return _.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":N},_.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${i}`}),_.createElement("div",{role:"progressbar","aria-hidden":N?"true":"false","aria-label":"notification timer",className:j,style:v,...m}))}let pj=1;const lh=()=>""+pj++;function mj(e){return e&&(Ln(e.toastId)||Ti(e.toastId))?e.toastId:lh()}function ai(e,t){return oh(e,t),t.toastId}function yl(e,t){return{...t,type:t&&t.type||e,toastId:mj(t)}}function ao(e){return(t,n)=>ai(t,yl(e,n))}function ie(e,t){return ai(e,yl("default",t))}ie.loading=(e,t)=>ai(e,yl("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ie.promise=function(e,t,n){let r,{pending:i,error:l,success:s}=t;i&&(r=Ln(i)?ie.loading(i,n):ie.loading(i.render,{...n,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,p,y)=>{if(p==null)return void ie.dismiss(r);const N={type:d,...a,...n,data:y},v=Ln(p)?{render:p}:p;return r?ie.update(r,{...N,...v}):ie(v.render,{...N,...v}),y},c=rt(e)?e():e;return c.then(d=>u("success",s,d)).catch(d=>u("error",l,d)),c},ie.success=ao("success"),ie.info=ao("info"),ie.error=ao("error"),ie.warning=ao("warning"),ie.warn=ie.warning,ie.dark=(e,t)=>ai(e,yl("default",{theme:"dark",...t})),ie.dismiss=function(e){(function(t){var n;if(rh()){if(t==null||Ln(n=t)||Ti(n))Ue.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Ue.get(t.containerId);r?r.removeToast(t.id):Ue.forEach(i=>{i.removeToast(t.id)})}}else Ri=Ri.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ie.clearWaitingQueue=function(e){e===void 0&&(e={}),Ue.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ie.isActive=ih,ie.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var l;let{containerId:s}=i;return(l=Ue.get(s||1))==null?void 0:l.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,l={delay:100,...r,...t,toastId:t.toastId||e,updateId:lh()};l.toastId!==e&&(l.staleId=e);const s=l.render||i;delete l.render,ai(s,l)}},ie.done=e=>{ie.update(e,{progress:1})},ie.onChange=function(e){return Va.add(e),()=>{Va.delete(e)}},ie.play=e=>Ud(!0,e),ie.pause=e=>Ud(!1,e);const hj=typeof window<"u"?O.useLayoutEffect:O.useEffect,co=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return _.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},As={info:function(e){return _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement(co,{...e},_.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 _.createElement("div",{className:"Toastify__spinner"})}},vj=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:l}=dj(e),{closeButton:s,children:a,autoClose:u,onClick:c,type:d,hideProgressBar:p,closeToast:y,transition:N,position:v,className:x,style:j,bodyClassName:m,bodyStyle:h,progressClassName:f,progressStyle:g,updateId:w,role:b,progress:E,rtl:C,toastId:M,deleteToast:F,isIn:$,isLoading:J,closeOnClick:Y,theme:K}=e,R=an("Toastify__toast",`Toastify__toast-theme--${K}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":Y}),B=rt(x)?x({rtl:C,position:v,type:d,defaultClassName:R}):an(R,x),H=function(L){let{theme:z,type:W,isLoading:V,icon:Q}=L,Z=null;const te={theme:z,type:W};return Q===!1||(rt(Q)?Z=Q({...te,isLoading:V}):O.isValidElement(Q)?Z=O.cloneElement(Q,te):V?Z=As.spinner():(re=>re in As)(W)&&(Z=As[W](te))),Z}(e),k=!!E||!u,S={closeToast:y,type:d,theme:K};let D=null;return s===!1||(D=rt(s)?s(S):O.isValidElement(s)?O.cloneElement(s,S):function(L){let{closeToast:z,theme:W,ariaLabel:V="close"}=L;return _.createElement("button",{className:`Toastify__close-button Toastify__close-button--${W}`,type:"button",onClick:Q=>{Q.stopPropagation(),z(Q)},"aria-label":V},_.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_.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"})))}(S)),_.createElement(N,{isIn:$,done:F,position:v,preventExitTransition:n,nodeRef:r,playToast:l},_.createElement("div",{id:M,onClick:c,"data-in":$,className:B,...i,style:j,ref:r},_.createElement("div",{...$&&{role:b},className:rt(m)?m({type:d}):an("Toastify__toast-body",m),style:h},H!=null&&_.createElement("div",{className:an("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!J})},H),_.createElement("div",null,a)),D,_.createElement(fj,{...w&&!k?{key:`pb-${w}`}:{},rtl:C,theme:K,delay:u,isRunning:t,isIn:$,closeToast:y,hide:p,type:d,style:g,className:f,controlledProgress:k,progress:E||0})))},Yl=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},yj=Hl(Yl("bounce",!0));Hl(Yl("slide",!0));Hl(Yl("zoom"));Hl(Yl("flip"));const gj={position:"top-right",transition:yj,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function xj(e){let t={...gj,...e};const n=e.stacked,[r,i]=O.useState(!0),l=O.useRef(null),{getToastToRender:s,isToastActive:a,count:u}=uj(t),{className:c,style:d,rtl:p,containerId:y}=t;function N(x){const j=an("Toastify__toast-container",`Toastify__toast-container--${x}`,{"Toastify__toast-container--rtl":p});return rt(c)?c({position:x,rtl:p,defaultClassName:j}):an(j,Ao(c))}function v(){n&&(i(!0),ie.play())}return hj(()=>{if(n){var x;const j=l.current.querySelectorAll('[data-in="true"]'),m=12,h=(x=t.position)==null?void 0:x.includes("top");let f=0,g=0;Array.from(j).reverse().forEach((w,b)=>{const E=w;E.classList.add("Toastify__toast--stacked"),b>0&&(E.dataset.collapsed=`${r}`),E.dataset.pos||(E.dataset.pos=h?"top":"bot");const C=f*(r?.2:1)+(r?0:m*b);E.style.setProperty("--y",`${h?C:-1*C}px`),E.style.setProperty("--g",`${m}`),E.style.setProperty("--s",""+(1-(r?g:0))),f+=E.offsetHeight,g+=.025})}},[r,u,n]),_.createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{n&&(i(!1),ie.pause())},onMouseLeave:v},s((x,j)=>{const m=j.length?{...d}:{...d,pointerEvents:"none"};return _.createElement("div",{className:N(x),style:m,key:`container-${x}`},j.map(h=>{let{content:f,props:g}=h;return _.createElement(vj,{...g,stacked:n,collapseAll:v,isIn:a(g.toastId,g.containerId),style:g.style,key:`toast-${g.key}`},f)}))}))}const ze=()=>{const e=new Date().getFullYear();return o.jsx(o.Fragment,{children:o.jsxs("div",{children:[o.jsx("div",{className:"footer_section layout_padding",children:o.jsxs("div",{className:"container",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12"})}),o.jsx("div",{className:"footer_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"QUICK LINKS"}),o.jsx("div",{className:"footer_menu",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx(he,{to:"/",className:"link-primary text-decoration-none",children:"Home"})}),o.jsx("li",{children:o.jsx(he,{to:"/about",className:"link-primary text-decoration-none",children:"About"})}),o.jsx("li",{children:o.jsx(he,{to:"/services",className:"link-primary text-decoration-none",children:"Services"})}),o.jsx("li",{children:o.jsx(he,{to:"/contact",className:"link-primary text-decoration-none",children:"Contact Us"})})]})})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"Work Portfolio"}),o.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"})]}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("h2",{className:"useful_text",children:"SIGN UP TO OUR NEWSLETTER"}),o.jsxs("div",{className:"form-group",children:[o.jsx("textarea",{className:"update_mail",placeholder:"Enter Your Email",rows:5,id:"comment",name:"Enter Your Email",defaultValue:""}),o.jsx("div",{className:"subscribe_bt",children:o.jsx("a",{href:"#",children:"Subscribe"})})]})]})]})}),o.jsx("div",{className:"social_icon",children:o.jsxs("ul",{children:[o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-linkedin","aria-hidden":"true"})})}),o.jsx("li",{children:o.jsx("a",{href:"#",children:o.jsx("i",{className:"fa fa-instagram","aria-hidden":"true"})})})]})})]})}),o.jsx("div",{className:"copyright_section",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("p",{className:"copyright_text",children:[e," All Rights Reserved."]})})})})})]})})},jj="/assets/logo-Cb1x1exd.png",Oe=()=>{var i,l;const{user:e}=Ze(s=>({...s.auth})),t=St(),n=Ir(),r=()=>{t(e1()),n("/")};return o.jsx(o.Fragment,{children:o.jsx("div",{className:"navbar navbar-expand-lg w-100",style:{backgroundColor:"#000000",position:"fixed",top:0,left:0,right:0,zIndex:1e3},children:o.jsxs("div",{className:"container-fluid d-flex align-items-center justify-content-between",children:[o.jsxs("div",{className:"d-flex align-items-center",children:[o.jsx("img",{src:jj,alt:"logo",width:"75",height:"75",className:"img-fluid"}),o.jsx("p",{style:{display:"inline-block",fontStyle:"italic",fontSize:"14px",color:"white",margin:"0 0 0 10px"}})]}),o.jsxs("div",{className:"collapse navbar-collapse",id:"navbarSupportedContent",children:[o.jsxs("ul",{className:"navbar-nav ml-auto",children:[o.jsx("li",{className:"nav-item active",children:o.jsx(he,{to:"/",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Home"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/services",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Services"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchmyproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search Database"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/about",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"About"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/searchproperties",className:"nav-link",style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Search properties"})}),o.jsx("li",{className:"nav-item",children:o.jsx(he,{to:"/contact",className:"nav-link",style:{fontSize:"20px",fontWeight:"normal"},children:"Contact"})})]}),(i=e==null?void 0:e.result)!=null&&i._id?o.jsx(he,{to:"/dashboard",style:{fontWeight:"bold"},children:"Dashboard"}):o.jsx(he,{to:"/register",className:"nav-link",style:{fontWeight:"bold"},children:"Register"}),(l=e==null?void 0:e.result)!=null&&l._id?o.jsx(he,{to:"/login",children:o.jsx("p",{className:"header-text",onClick:r,style:{fontWeight:"bold"},children:"Logout"})}):o.jsx(he,{to:"/login",className:"nav-link",style:{fontWeight:"bold"},children:"Login"})]})]})})})},Nj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{children:[o.jsx("div",{className:"header_section",children:o.jsx("div",{className:"banner_section layout_padding",children:o.jsxs("div",{id:"my_slider",className:"carousel slide","data-ride":"carousel",children:[o.jsxs("div",{className:"carousel-inner",children:[o.jsx("div",{className:"carousel-item active",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Reinventing real estate investment"}),o.jsxs("p",{className:"banner_text",children:["Owners/operators, and real estate investment firms to excel in what they do best: finding new opportunities"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"streamline investment management"}),o.jsxs("p",{className:"banner_text",children:["Best possible experience to our customers and their investors."," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})}),o.jsx("div",{className:"carousel-item",children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-sm-12",children:o.jsxs("div",{className:"banner_taital_main",children:[o.jsx("h1",{className:"banner_taital",children:"Increase your efficiency and security"}),o.jsxs("p",{className:"banner_text",children:["All-in-one real estate investment management platform with 100% security tools"," "]}),o.jsxs("div",{className:"btn_main",children:[o.jsx("div",{className:"started_text active",children:o.jsx("a",{href:"#",children:"Contact US"})}),o.jsx("div",{className:"started_text",children:o.jsx("a",{href:"#",children:"About Us"})})]})]})})})})})]}),o.jsx("a",{className:"carousel-control-prev",href:"#my_slider",role:"button","data-slide":"prev",children:o.jsx("i",{className:"fa fa-angle-left"})}),o.jsx("a",{className:"carousel-control-next",href:"#my_slider",role:"button","data-slide":"next",children:o.jsx("i",{className:"fa fa-angle-right"})})]})})}),o.jsx("div",{className:"services_section layout_padding",children:o.jsxs("div",{className:"container-fluid",children:[o.jsx("div",{className:"row",children:o.jsxs("div",{className:"col-sm-12",children:[o.jsx("h1",{className:"services_taital",children:"Our Services"}),o.jsx("p",{className:"services_text_1",children:"your documents, always and immediately within reach"})]})}),o.jsx("div",{className:"services_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main active",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-1.png"})}),o.jsx("h4",{className:"development_text",children:"Dedication Services"}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-2.png"})}),o.jsx("h4",{className:"development_text",children:"Building work Reports"}),o.jsx("p",{className:"services_text",children:"Deliver all the reports your investors need. Eliminate manual work and human errors with automatic distribution and allocation"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-3.png"})}),o.jsx("h4",{className:"development_text",children:"Reporting continuously"}),o.jsx("p",{className:"services_text",children:"Streamlining investor interactions, gaining complete visibility into your data, and using smart filters to create automatic workflows"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})}),o.jsx("div",{className:"col-lg-3 col-sm-6",children:o.jsxs("div",{className:"box_main",children:[o.jsx("div",{className:"service_img",children:o.jsx("img",{src:"images/icon-4.png"})}),o.jsx("h4",{className:"development_text",children:"Manage your investment "}),o.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"}),o.jsx("div",{className:"readmore_bt",children:o.jsx("a",{href:"#",children:"Read More"})})]})})]})})]})})]}),o.jsx(ze,{})]}),wj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"about_section layout_padding",children:[o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("h1",{className:"about_taital",children:"About Us"}),o.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"," "]}),o.jsx("div",{className:"read_bt_1",children:o.jsx("a",{href:"#",children:"Read More"})})]}),o.jsx("div",{className:"col-md-6",children:o.jsx("div",{className:"about_img",children:o.jsx("div",{className:"video_bt",children:o.jsx("div",{className:"play_icon",children:o.jsx("img",{src:"images/play-icon.png"})})})})})]})}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{})]}),o.jsx(ze,{})]}),Cj=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-6",children:o.jsx("form",{action:!0,children:o.jsxs("div",{className:"mail_section_1",children:[o.jsx("input",{type:"text",className:"mail_text",placeholder:"Name",name:"Name"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Phone Number",name:"Phone Number"}),o.jsx("input",{type:"text",className:"mail_text",placeholder:"Email",name:"Email"}),o.jsx("textarea",{className:"massage-bt",placeholder:"Massage",rows:5,id:"comment",name:"Massage",defaultValue:""}),o.jsx("div",{className:"send_bt",children:o.jsx("a",{href:"#",children:"SEND"})})]})})}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img",children:o.jsx("img",{src:"images/contact-img.png"})})})]})})})]}),o.jsx(ze,{})]});var Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const[e,t]=O.useState(Kj),[n,r]=O.useState(!1),{loading:i,error:l}=Ze(w=>({...w.auth})),{title:s,email:a,password:u,firstName:c,middleName:d,lastName:p,confirmPassword:y,termsconditions:N,userType:v}=e,x=St(),j=Ir();O.useEffect(()=>{l&&ie.error(l)},[l]),O.useEffect(()=>{r(s!=="None"&&a&&u&&c&&d&&p&&y&&N&&v!=="")},[s,a,u,c,d,p,y,N,v]);const m=w=>{if(w.preventDefault(),u!==y)return ie.error("Password should match");n?x(So({formValue:e,navigate:j,toast:ie})):ie.error("Please fill in all fields and select all checkboxes")},h=w=>w.charAt(0).toUpperCase()+w.slice(1),f=w=>{const{name:b,value:E,type:C,checked:M}=w.target;t(C==="checkbox"?F=>({...F,[b]:M}):F=>({...F,[b]:b==="email"||b==="password"||b==="confirmPassword"?E:h(E)}))},g=w=>{t(b=>({...b,userType:w.target.value}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Registration"}),o.jsx("h3",{style:{color:"red"},children:'All fields are mandatory to enable "Sign up"'}),o.jsx("hr",{})]})})}),o.jsx("form",{onSubmit:m,children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsxs("label",{className:"form-label",children:["Please select the role. ",o.jsx("br",{}),o.jsx("br",{})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Lender",checked:v==="Lender",onChange:g,required:!0}),o.jsx("label",{className:"form-check-label",children:"Lender"})]}),o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"userType",value:"Borrower",checked:v==="Borrower",onChange:g,required:!0}),o.jsxs("label",{className:"form-check-label",children:["Borrower"," "]}),o.jsx("br",{}),o.jsx("br",{})]})]})}),o.jsxs("div",{className:"col-12",children:[o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:s,onChange:f,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]}),o.jsx("br",{})]}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:c,name:"firstName",onChange:f,placeholder:"First Name",required:"required"}),o.jsx("label",{htmlFor:"firstName",className:"form-label",children:"First Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:d,name:"middleName",onChange:f,placeholder:"Middle Name",required:"required"}),o.jsx("label",{htmlFor:"middleName",className:"form-label",children:"Middle Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",value:p,name:"lastName",onChange:f,placeholder:"Last Name",required:"required"}),o.jsx("label",{htmlFor:"lastName",className:"form-label",children:"Last Name"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:a,name:"email",onChange:f,placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:u,name:"password",onChange:f,placeholder:"Password",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",value:y,name:"confirmPassword",onChange:f,placeholder:"confirmPassword",required:"required"}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Retype Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",id:"termsconditions",value:N,name:"termsconditions",checked:N,onChange:f,required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["I agree to the"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"terms and conditions"})]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:!n||i,children:[i&&o.jsx(sh.Bars,{}),"Sign up"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx("a",{href:"#!",className:"link-primary text-decoration-none",children:"Sign in"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Gj={email:"",password:""},Jj=()=>{const[e,t]=O.useState(Gj),{loading:n,error:r}=Ze(d=>({...d.auth})),{email:i,password:l}=e,s=St(),a=Ir();O.useEffect(()=>{r&&ie.error(r)},[r]);const u=d=>{d.preventDefault(),i&&l&&s(Eo({formValue:e,navigate:a,toast:ie}))},c=d=>{let{name:p,value:y}=d.target;t({...e,[p]:y})};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"py-19 py-md-5 py-xl-8",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-6 col-xl-20 text-center text-md-start",children:o.jsx("div",{className:"text-bg-primary",children:o.jsxs("div",{className:"px-4",children:[o.jsx("hr",{className:"border-primary-subtle mb-4"}),o.jsx("p",{className:"lead mb-5",children:"A beautiful, easy-to-use, and secure Investor Portal that gives your investors everything they may need"}),o.jsx("div",{className:"text-endx",children:o.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:o.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"})})})]})})}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"mb-4",children:o.jsx("h2",{className:"h3",children:"Please Login"})})})}),o.jsx("form",{method:"POST",children:o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12"}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",id:"email",placeholder:"name@example.com",value:i,name:"email",onChange:c,required:!0}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Email"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"password",className:"form-control",id:"password",placeholder:"Password",value:l,name:"password",onChange:c,required:!0}),o.jsx("label",{htmlFor:"password",className:"form-label",children:"Password"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{className:"form-check-input",type:"checkbox",name:"iAgree",id:"iAgree",required:!0}),o.jsxs("label",{className:"form-check-label text-secondary",htmlFor:"iAgree",children:["Remember me"," "]})]})}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsxs("button",{className:"btn btn-primary btn-lg",type:"submit",name:"signin",value:"Sign in",onClick:u,style:{backgroundColor:"#fda417",border:"#fda417"},children:[n&&o.jsx(sh.Bars,{}),"Sign In"]})})})]})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Don't have an account?"," ",o.jsx(he,{to:"/register",className:"link-primary text-decoration-none",children:"Register"}),o.jsx(he,{to:"/forgotpassword",className:"nav-link",children:"Forgot Password"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})})}),o.jsx(ze,{})]})},Io="/assets/samplepic-BM_cnzgz.jpg";var ah={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(_h,function(){return function(n){function r(l){if(i[l])return i[l].exports;var s=i[l]={exports:{},id:l,loaded:!1};return n[l].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}var i={};return r.m=n,r.c=i,r.p="",r(0)}([function(n,r,i){function l(N){return N&&N.__esModule?N:{default:N}}function s(N,v){if(!(N instanceof v))throw new TypeError("Cannot call a class as a function")}function a(N,v){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||typeof v!="object"&&typeof v!="function"?N:v}function u(N,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);N.prototype=Object.create(v&&v.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(N,v):N.__proto__=v)}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function N(v,x){for(var j=0;j1)for(var w=1;w1?d-1:0),y=1;y2?p-2:0),N=2;N1){for(var K=Array(Y),R=0;R"u"||C.$$typeof!==m)){var H=typeof g=="function"?g.displayName||g.name||"Unknown":g;M&&u(C,H),F&&c(C,H)}return f(g,M,F,$,J,N.current,C)},f.createFactory=function(g){var w=f.createElement.bind(null,g);return w.type=g,w},f.cloneAndReplaceKey=function(g,w){var b=f(g.type,w,g.ref,g._self,g._source,g._owner,g.props);return b},f.cloneElement=function(g,w,b){var E,C=y({},g.props),M=g.key,F=g.ref,$=g._self,J=g._source,Y=g._owner;if(w!=null){s(w)&&(F=w.ref,Y=N.current),a(w)&&(M=""+w.key);var K;g.type&&g.type.defaultProps&&(K=g.type.defaultProps);for(E in w)j.call(w,E)&&!h.hasOwnProperty(E)&&(w[E]===void 0&&K!==void 0?C[E]=K[E]:C[E]=w[E])}var R=arguments.length-2;if(R===1)C.children=b;else if(R>1){for(var B=Array(R),H=0;H1?c-1:0),p=1;p2?d-2:0),y=2;y.")}return E}function c(b,E){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var C=g.uniqueKey||(g.uniqueKey={}),D=u(E);if(!C[D]){C[D]=!0;var F="";b&&b._owner&&b._owner!==y.current&&(F=" It was passed a child from "+b._owner.getName()+"."),l.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',D,F,N.getCurrentStackAddendum(b))}}}function d(b,E){if(typeof b=="object"){if(Array.isArray(b))for(var C=0;C1?V-1:0),Z=1;Z"u"||L===null)return""+L;var z=Y(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function R(L){var z=K(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(L){return L.constructor&&L.constructor.name?L.constructor.name:S}var H=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",S="<>",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:f,element:g(),instanceOf:w,node:D(),objectOf:E,oneOf:b,oneOfType:C,shape:F};return x.prototype=Error.prototype,M.checkPropTypes=d,M.PropTypes=M,M}}).call(r,i(1))},function(n,r){function i(a){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+a).replace(u,function(p){return c[p]});return"$"+d}function l(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(p){return c[p]})}var s={escape:i,unescape:l};n.exports=s},function(n,r,i){(function(l){var s=i(5),a=i(2),u=function(m){var h=this;if(h.instancePool.length){var f=h.instancePool.pop();return h.call(f,m),f}return new h(m)},c=function(m,h){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,m,h),g}return new f(m,h)},d=function(m,h,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,m,h,f),w}return new g(m,h,f)},p=function(m,h,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,m,h,f,g),b}return new w(m,h,f,g)},y=function(m){var h=this;m instanceof h||(l.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),m.destructor(),h.instancePool.length{const[e,t]=O.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=St(),{status:l,error:s}=Ze(P=>P.property),{user:a}=Ze(P=>({...P.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=O.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],images:[{title:"",file:""}],googleMapLink:"",renovationRisk:null,purchaseCost:"",costPaidAtoB:[{title:"Closing Fees - Settlement Fee",price:""},{title:"Closing Fees - Owner's Title Insurance",price:""},{title:"Courier Fees",price:""},{title:"Wire Fee",price:""},{title:"E recording Fee",price:""},{title:"Recording Fee",price:""},{title:"Property Tax",price:""}],credits:[{title:"Credits",price:""}],cashAdjustments:[{title:"Cash Adjustments",price:""}],incidentalCost:[{title:"Accounting Fees",price:""},{title:"Bank Charges",price:""},{title:"Legal Fees",price:""},{title:"Property Taxes",price:""},{title:"Travel Expenses",price:""}],utilMaintenance:[{title:"Electricity",price:""},{title:"Water and Sewer",price:""},{title:"Natural Gas",price:""},{title:"Trash and Recycling",price:""},{title:"Internet and Cable",price:""},{title:"Heating Oil/Propane",price:""},{title:"HOA fees",price:""},{title:"Dump fees",price:""},{title:"Insurance",price:""},{title:"Interest on Loans",price:""},{title:"Loan Payment",price:""},{title:"Property Taxes",price:""},{title:"Security",price:""},{title:"Real Estates fees",price:""}],renovationCost:[{title:"Demolition: Removing existing structures or finishes",price:""},{title:"Framing: Making structural changes or additions",price:""},{title:"Plumbing: Installing or modifying plumbing systems",price:""},{title:"Electrical: Updating wiring and fixtures",price:""},{title:"HVAC: Installing or upgrading heating and cooling systems",price:""},{title:"Insulation: Adding or replacing insulation",price:""},{title:"Drywall: Hanging and finishing drywall",price:""},{title:"Interior Finishes: Painting, flooring, cabinetry, and fixtures",price:""},{title:"Exterior Work: Addressing siding, roofing, or landscaping, if applicable",price:""},{title:"Final Inspections: Ensuring everything meets codes",price:""},{title:"Punch List: Completing any remaining task",price:""}]}),[p,y]=O.useState(!1),N=(P,T)=>{const A=[...c.images];A[T].file=P.base64,d({...c,images:A})},v=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},x=P=>{const T=c.images.filter((A,G)=>G!==P);d({...c,images:T})},j=(P,T)=>{const A=[...c.images];A[P].title=T.target.value,d({...c,images:A})},m=(P,T,A)=>{const{name:G,value:X}=P.target;if(A==="propertyTaxInfo"){const ee=[...c.propertyTaxInfo];ee[T][G]=X,d({...c,propertyTaxInfo:ee})}else d({...c,[G]:X})},h=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},f=P=>{const T=c.propertyTaxInfo.filter((A,G)=>G!==P);d({...c,propertyTaxInfo:T})},g=()=>{d(P=>({...P,costPaidAtoB:[...P.costPaidAtoB,{title:"",price:""}]}))},w=P=>{const T=c.costPaidAtoB.filter((A,G)=>G!==P);d(A=>({...A,costPaidAtoB:T}))},b=(P,T,A)=>{const G=[...c.costPaidAtoB];G[P][T]=A,d(X=>({...X,costPaidAtoB:G}))},E=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.costPaidAtoB.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,costPaidAtoB:X})}else{const X=c.costPaidAtoB.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,costPaidAtoB:X})}},C=()=>{const P=c.costPaidAtoB.reduce((A,G)=>{const X=parseFloat(G.price)||0;return A+X},0),T=parseFloat(c.purchaseCost)||0;return P+T},D=()=>{d(P=>({...P,credits:[...P.credits,{title:"",price:""}]}))},F=P=>{const T=c.credits.filter((A,G)=>G!==P);d(A=>({...A,credits:T}))},$=(P,T,A)=>{const G=[...c.credits];G[P][T]=A,d(X=>({...X,credits:G}))},J=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.credits.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,credits:X})}else{const X=c.credits.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,credits:X})}},Y=()=>c.credits.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),K=()=>{const P=c.costPaidAtoB.reduce((G,X)=>{const ee=parseFloat(X.price)||0;return G+ee},0),T=c.credits.reduce((G,X)=>{const ee=parseFloat(X.price)||0;return G+ee},0),A=parseFloat(c.purchaseCost)||0;return P+T+A},R=()=>{d(P=>({...P,cashAdjustments:[...P.cashAdjustments,{title:"",price:""}]}))},B=P=>{const T=c.cashAdjustments.filter((A,G)=>G!==P);d(A=>({...A,cashAdjustments:T}))},H=(P,T,A)=>{const G=[...c.cashAdjustments];G[P][T]=A,d(X=>({...X,cashAdjustments:G}))},k=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.cashAdjustments.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,cashAdjustments:X})}else{const X=c.cashAdjustments.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,cashAdjustments:X})}},S=()=>c.cashAdjustments.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),M=()=>{const P=S(),T=Y(),A=C();return P+T+A},L=()=>{d(P=>({...P,incidentalCost:[...P.incidentalCost,{title:"",price:""}]}))},z=P=>{const T=c.incidentalCost.filter((A,G)=>G!==P);d(A=>({...A,incidentalCost:T}))},W=(P,T,A)=>{const G=[...c.incidentalCost];G[P][T]=A,d(X=>({...X,incidentalCost:G}))},V=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.incidentalCost.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,incidentalCost:X})}else{const X=c.incidentalCost.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,incidentalCost:X})}},Q=()=>c.incidentalCost.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),Z=()=>{d(P=>({...P,utilMaintenance:[...P.utilMaintenance,{title:"",price:""}]}))},te=P=>{const T=c.utilMaintenance.filter((A,G)=>G!==P);d(A=>({...A,utilMaintenance:T}))},re=(P,T,A)=>{const G=[...c.utilMaintenance];G[P][T]=A,d(X=>({...X,utilMaintenance:G}))},se=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.utilMaintenance.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,utilMaintenance:X})}else{const X=c.utilMaintenance.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,utilMaintenance:X})}},ae=()=>c.utilMaintenance.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),we=()=>{d(P=>({...P,renovationCost:[...P.renovationCost,{title:"",price:""}]}))},Kn=P=>{const T=c.renovationCost.filter((A,G)=>G!==P);d(A=>({...A,renovationCost:T}))},Wi=(P,T,A)=>{const G=[...c.renovationCost];G[P][T]=A,d(X=>({...X,renovationCost:G}))},fh=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.renovationCost.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,renovationCost:X})}else{const X=c.renovationCost.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,renovationCost:X})}},Kl=()=>c.renovationCost.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),Qc=()=>{const P=Q(),T=ae(),A=Kl();return P+T+A},ph=()=>{var P,T,A,G,X,ee;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.sellpricebtoc&&c.closeDateAtoB&&c.closeDateBtoC){const fe=C(),hh=K(),vh=S(),yh=Q(),gh=Y(),xh=M(),jh=ae(),Nh=Kl(),wh=Qc(),Ql={...c,userfirstname:(P=a==null?void 0:a.result)==null?void 0:P.firstName,usermiddlename:(T=a==null?void 0:a.result)==null?void 0:T.middleName,userlastname:(A=a==null?void 0:a.result)==null?void 0:A.lastName,usertitle:(G=a==null?void 0:a.result)==null?void 0:G.title,useremail:(X=a==null?void 0:a.result)==null?void 0:X.email,userId:(ee=a==null?void 0:a.result)==null?void 0:ee.userId,totalPurchaseCosts:fe,totalcredits:gh,totalPurchaseCostsaftercredits:hh,totalcashAdjustments:vh,totalcashrequiredonsettlement:xh,totalincidentalCost:yh,totalutilMaintenanceCost:jh,totalrenovationCost:Nh,costsAfterPropertyAcquisition:wh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Ql.propertyTaxInfo=c.propertyTaxInfo:Ql.propertyTaxInfo=[],i(Oo(Ql)),y(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};O.useEffect(()=>{p&&(l==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),y(!1)):l==="failed"&&(ie.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),y(!1)))},[l,s,p]);const[mh,Gc]=O.useState("0 days"),Jc=(P,T)=>{if(P&&T){const A=new Date(P),G=new Date(T),X=Math.abs(G-A),ee=Math.ceil(X/(1e3*60*60*24));Gc(`${ee} days`)}else Gc("0 days")};return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Oe,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Texas",children:"Travis"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((P,T)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:P.propertytaxowned,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:P.ownedyear,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:P.taxassessed,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:P.taxyear,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>f(T),style:{height:"25px",width:"35px"},children:"X"})]})})]},T)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,placeholder:"Image Title",onChange:A=>j(T,A)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(ah,{multiple:!1,onDone:A=>N(A,T)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>x(T),style:{marginLeft:"5px"},children:"Delete"})]}),P.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:P.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},T)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:v,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.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})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:P=>{const T=P.target.value;d({...c,closeDateAtoB:T}),Jc(T,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:P=>{const T=P.target.value;d({...c,closeDateBtoC:T}),Jc(c.closeDateAtoB,T)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:mh,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),o.jsx("div",{className:"col-md-7",children:u.map(P=>o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${P}`,value:P,checked:c.renovationRisk===P,onChange:T=>{const A=parseInt(T.target.value,10);d({...c,renovationRisk:A})}}),o.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${P}`,children:P})]},P))})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,onChange:P=>{const T=P.target.value,A=/^\d*\.?\d*$/.test(T);d({...c,purchaseCost:T,isPurchaseCostInvalid:!A})},onKeyPress:P=>{const T=P.charCode;(T<48||T>57)&&T!==46&&(P.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>b(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>E(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>w(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:g,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:C(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>$(T,"title",A.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>J(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>F(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:D,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Y(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:K(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>H(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>k(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>B(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:R,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:S(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:M(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>W(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>V(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>z(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.utilMaintenance.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>re(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>se(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>te(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:Z,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalutilMaintenanceCost",value:ae(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation and Holding Costs"}),c.renovationCost.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>Wi(T,"title",A.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>fh(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>Kn(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:we,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation and Holding cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Kl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs After Property Acquisition"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"costsAfterPropertyAcquisition",value:Qc(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isInvalid?"is-invalid":""}`,name:"sellpricebtoc",value:c.sellpricebtoc,onChange:P=>{const T=P.target.value,A=/^\d*\.?\d*$/.test(T);d({...c,sellpricebtoc:T,isInvalid:!A})},onKeyPress:P=>{const T=P.charCode;(T<48||T>57)&&T!==46&&(P.preventDefault(),d({...c,isInvalid:!0}))},placeholder:"Selling Price B to C",style:{textAlign:"right"},required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:ph,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",Xj=()=>{var u;const e=St(),{user:t}=Ze(c=>({...c.auth})),{userProperties:n,totalPages:r}=Ze(c=>c.property),[i,l]=O.useState(1),s=5;O.useEffect(()=>{e(To({userId:t.result.userId,page:i,limit:s}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,i]);const a=c=>{l(c)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(c=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(he,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(he,{to:`/property/${c.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(he,{to:`/editproperty/${c.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>a(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(c,d)=>d+1).map(c=>c===i||c===1||c===r||c>=i-1&&c<=i+1?o.jsx("button",{onClick:()=>a(c),disabled:i===c,children:c},c):c===2||c===r-1?o.jsx("span",{children:"..."},c):null),o.jsx("button",{onClick:()=>a(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},Zj=()=>{var d,p,y,N,v,x,j,m,h,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),i=Ir(),[l,s]=O.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((j=e==null?void 0:e.result)==null?void 0:j.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:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});O.useEffect(()=>{e&&s({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=b=>{s({...l,[b.target.name]:b.target.value})},u=()=>{s({...l,profileImage:""})},c=b=>{b.preventDefault(),r(ko(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:c,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(ah,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,children:"Delete Image"})]}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},eN=()=>{const[e,t]=O.useState("dashboard"),{user:n}=Ze(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(Zj,{});case"addProperty":return o.jsx(Jj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(Xj,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:n.result.profileImage||Io,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.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]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(ze,{})]})};var ch={exports:{}},tN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nN=tN,rN=nN;function uh(){}function dh(){}dh.resetWarningCache=uh;var iN=function(){function e(r,i,l,s,a,u){if(u!==rN){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:dh,resetWarningCache:uh};return n.PropTypes=n,n};ch.exports=iN();var oN=ch.exports;const lN=Va(oN),sN=()=>{const[e,t]=O.useState(3),n=Ir();return O.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Do=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:o.jsx(sN,{})};Do.propTypes={children:lN.node.isRequired};const aN=()=>{const e=St(),{id:t,token:n}=Dr();return O.useEffect(()=>{e(Po({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(ze,{})]})},cN=()=>{const[e,t]=O.useState(""),[n,r]=O.useState(""),i="http://67.225.129.127:3002",l=async()=>{try{const s=await de.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(ze,{})]})]})},uN=()=>{const{userId:e,token:t}=Dr(),[n,r]=O.useState(""),[i,l]=O.useState(""),[s,a]=O.useState(""),u="http://67.225.129.127:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await de.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return O.useEffect(()=>{ie.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(ze,{})]})},dN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),fN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n,status:r,error:i}=Ze(a=>a.property),[l,s]=O.useState(!0);return O.useEffect(()=>{e&&(t(li(e)),s(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},pN=()=>{const[e,t]=O.useState([]),[n,r]=O.useState(0),[i,l]=O.useState(0),[s]=O.useState(10),[a,u]=O.useState(""),[c,d]=O.useState(!1),[p,y]=O.useState(!1),N=async()=>{d(!0),y(!1);try{const m=await de.get("http://67.225.129.127:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(m.data.data),r(m.data.totalRecords),a.trim()&&y(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},v=m=>{u(m.target.value),m.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},x=m=>{m.key==="Enter"&&(m.preventDefault(),N())};O.useEffect(()=>{N()},[a,i]);const j=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:x})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((m,h)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:m.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},h)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",j," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=j||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(ze,{})]})},mN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),hN=()=>{const{house_id:e}=Dr();console.log("house_id",e);const[t,n]=O.useState(null),[r,i]=O.useState(!0);return O.useEffect(()=>{(async()=>{try{const s=await de.get(`http://67.225.129.127:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},vN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,i]=O.useState({propertyType:"",yearBuild:"",totalSqft:""});O.useEffect(()=>{t(li(e))},[t,e]),O.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(Ro({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(ze,{})]})},yN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:i}=Ze(x=>x.property),[l,s]=O.useState(""),[a,u]=O.useState([]),[c,d]=O.useState(1),p=10;O.useEffect(()=>{e(si({page:c,limit:p,keyword:l}))},[e,c,l]),O.useEffect(()=>{l.trim()?u(t.filter(x=>x.address.toLowerCase().includes(l.toLowerCase()))):u(t)},[l,t]);const y=x=>{s(x.target.value)},N=x=>{x.preventDefault()},v=x=>{d(x),e(si({page:x,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:a.length>0?a.map(x=>o.jsxs("tr",{children:[o.jsx("td",{children:x.images&&x.images[0]?o.jsx("img",{src:x.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/property/${x.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:x.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),x.city,", ",x.county,","," ",x.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",x.propertyId]})]})]})}),o.jsx("td",{children:x.totallivingsqft}),o.jsx("td",{children:x.yearBuild}),o.jsx("td",{children:x.costpersqft})]},x.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(x,j)=>o.jsx("li",{className:`page-item ${i===j+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(j+1),children:j+1})},j+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(ze,{})]})},gN=()=>{const{userId:e}=Dr(),t=St(),{user:n,loading:r}=Ze(i=>i.user);return console.log("user",n),O.useEffect(()=>{e&&t(_o(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},xN=()=>o.jsxs(Z1,{children:[o.jsx(yj,{}),o.jsxs(q1,{children:[o.jsx(ke,{path:"/",element:o.jsx(xj,{})}),o.jsx(ke,{path:"/about",element:o.jsx(jj,{})}),o.jsx(ke,{path:"/services",element:o.jsx(mN,{})}),o.jsx(ke,{path:"/contact",element:o.jsx(Nj,{})}),o.jsx(ke,{path:"/register",element:o.jsx(Yj,{})}),o.jsx(ke,{path:"/registrationsuccess",element:o.jsx(Do,{children:o.jsx(dN,{})})}),o.jsx(ke,{path:"/login",element:o.jsx(Qj,{})}),o.jsx(ke,{path:"/dashboard",element:o.jsx(Do,{children:o.jsx(eN,{})})}),o.jsx(ke,{path:"/users/:id/verify/:token",element:o.jsx(aN,{})}),o.jsx(ke,{path:"/forgotpassword",element:o.jsx(cN,{})}),o.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:o.jsx(uN,{})}),o.jsx(ke,{path:"/property/:id",element:o.jsx(fN,{})}),o.jsx(ke,{path:"/properties/:house_id",element:o.jsx(hN,{})}),o.jsx(ke,{path:"/searchmyproperties",element:o.jsx(pN,{})}),o.jsx(ke,{path:"/searchproperties",element:o.jsx(yN,{})}),o.jsx(ke,{path:"/editproperty/:id",element:o.jsx(Do,{children:o.jsx(vN,{})})}),o.jsx(ke,{path:"/profile/:userId",element:o.jsx(gN,{})})]})]});em(document.getElementById("root")).render(o.jsx(O.StrictMode,{children:o.jsx(xg,{store:i1,children:o.jsx(xN,{})})})); + in `+(R||"Unknown")+(B?" (at "+B.fileName.replace(/^.*[\\\/]/,"")+":"+B.lineNumber+")":H?" (created by "+H+")":"")}function c(R){return R==null?"#empty":typeof R=="string"||typeof R=="number"?"#text":typeof R.type=="string"?R.type:R.type.displayName||R.type.name||"Unknown"}function d(R){var B,H=K.getDisplayName(R),k=K.getElement(R),S=K.getOwnerID(R);return S&&(B=K.getDisplayName(S)),l.env.NODE_ENV!=="production"&&w(k,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",R),u(H,k&&k._source,B)}var p,y,N,v,x,j,m,h=i(5),f=i(7),g=i(2),w=i(3),b=typeof Array.from=="function"&&typeof Map=="function"&&s(Map)&&Map.prototype!=null&&typeof Map.prototype.keys=="function"&&s(Map.prototype.keys)&&typeof Set=="function"&&s(Set)&&Set.prototype!=null&&typeof Set.prototype.keys=="function"&&s(Set.prototype.keys);if(b){var E=new Map,C=new Set;p=function(R,B){E.set(R,B)},y=function(R){return E.get(R)},N=function(R){E.delete(R)},v=function(){return Array.from(E.keys())},x=function(R){C.add(R)},j=function(R){C.delete(R)},m=function(){return Array.from(C.keys())}}else{var M={},F={},$=function(R){return"."+R},J=function(R){return parseInt(R.substr(1),10)};p=function(R,B){var H=$(R);M[H]=B},y=function(R){var B=$(R);return M[B]},N=function(R){var B=$(R);delete M[B]},v=function(){return Object.keys(M).map(J)},x=function(R){var B=$(R);F[B]=!0},j=function(R){var B=$(R);delete F[B]},m=function(){return Object.keys(F).map(J)}}var Y=[],K={onSetChildren:function(R,B){var H=y(R);H||(l.env.NODE_ENV!=="production"?g(!1,"Item must have been set"):h("144")),H.childIDs=B;for(var k=0;k1?c-1:0),p=1;p2?d-2:0),y=2;y.")}return E}function c(b,E){if(b._store&&!b._store.validated&&b.key==null){b._store.validated=!0;var C=g.uniqueKey||(g.uniqueKey={}),M=u(E);if(!C[M]){C[M]=!0;var F="";b&&b._owner&&b._owner!==y.current&&(F=" It was passed a child from "+b._owner.getName()+"."),l.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',M,F,N.getCurrentStackAddendum(b))}}}function d(b,E){if(typeof b=="object"){if(Array.isArray(b))for(var C=0;C1?V-1:0),Z=1;Z"u"||L===null)return""+L;var z=Y(L);if(z==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return z}function R(L){var z=K(L);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function B(L){return L.constructor&&L.constructor.name?L.constructor.name:S}var H=typeof Symbol=="function"&&Symbol.iterator,k="@@iterator",S="<>",D={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(),arrayOf:f,element:g(),instanceOf:w,node:M(),objectOf:E,oneOf:b,oneOfType:C,shape:F};return x.prototype=Error.prototype,D.checkPropTypes=d,D.PropTypes=D,D}}).call(r,i(1))},function(n,r){function i(a){var u=/[=:]/g,c={"=":"=0",":":"=2"},d=(""+a).replace(u,function(p){return c[p]});return"$"+d}function l(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(p){return c[p]})}var s={escape:i,unescape:l};n.exports=s},function(n,r,i){(function(l){var s=i(5),a=i(2),u=function(m){var h=this;if(h.instancePool.length){var f=h.instancePool.pop();return h.call(f,m),f}return new h(m)},c=function(m,h){var f=this;if(f.instancePool.length){var g=f.instancePool.pop();return f.call(g,m,h),g}return new f(m,h)},d=function(m,h,f){var g=this;if(g.instancePool.length){var w=g.instancePool.pop();return g.call(w,m,h,f),w}return new g(m,h,f)},p=function(m,h,f,g){var w=this;if(w.instancePool.length){var b=w.instancePool.pop();return w.call(b,m,h,f,g),b}return new w(m,h,f,g)},y=function(m){var h=this;m instanceof h||(l.env.NODE_ENV!=="production"?a(!1,"Trying to release an instance into a pool of a different type."):s("25")),m.destructor(),h.instancePool.length{const[e,t]=O.useState("propertydetails"),n=()=>{e==="propertydetails"&&t("Images"),e==="Images"&&t("Accounting")},r=()=>{e==="Images"&&t("propertydetails"),e==="Accounting"&&t("Images")},i=St(),{status:l,error:s}=Ze(P=>P.property),{user:a}=Ze(P=>({...P.auth})),u=[1,2,3,4,5,6,7,8,9,10],[c,d]=O.useState({propertyTaxInfo:[{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}],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"}),[p,y]=O.useState(!1),N=(P,T)=>{const A=[...c.images];A[T].file=P.base64,d({...c,images:A})},v=()=>{d({...c,images:[...c.images,{title:"",file:""}]})},x=P=>{const T=c.images.filter((A,G)=>G!==P);d({...c,images:T})},j=(P,T)=>{const A=[...c.images];A[P].title=T.target.value,d({...c,images:A})},m=(P,T,A)=>{const{name:G,value:X}=P.target;if(A==="propertyTaxInfo"){const ee=[...c.propertyTaxInfo];ee[T][G]=X,d({...c,propertyTaxInfo:ee})}else d({...c,[G]:X})},h=()=>{d({...c,propertyTaxInfo:[...c.propertyTaxInfo,{propertytaxowned:"",ownedyear:"",taxassessed:"",taxyear:""}]})},f=P=>{const T=c.propertyTaxInfo.filter((A,G)=>G!==P);d({...c,propertyTaxInfo:T})},g=()=>{d(P=>({...P,costPaidAtoB:[...P.costPaidAtoB,{title:"",price:""}]}))},w=P=>{const T=c.costPaidAtoB.filter((A,G)=>G!==P);d(A=>({...A,costPaidAtoB:T}))},b=(P,T,A)=>{const G=[...c.costPaidAtoB];G[P][T]=A,d(X=>({...X,costPaidAtoB:G}))},E=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.costPaidAtoB.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,costPaidAtoB:X})}else{const X=c.costPaidAtoB.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,costPaidAtoB:X})}},C=()=>{const P=c.costPaidAtoB.reduce((A,G)=>{const X=parseFloat(G.price)||0;return A+X},0),T=parseFloat(c.purchaseCost)||0;return P+T},M=()=>{d(P=>({...P,credits:[...P.credits,{title:"",price:""}]}))},F=P=>{const T=c.credits.filter((A,G)=>G!==P);d(A=>({...A,credits:T}))},$=(P,T,A)=>{const G=[...c.credits];G[P][T]=A,d(X=>({...X,credits:G}))},J=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.credits.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,credits:X})}else{const X=c.credits.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,credits:X})}},Y=()=>c.credits.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),K=()=>{const P=c.costPaidAtoB.reduce((G,X)=>{const ee=parseFloat(X.price)||0;return G+ee},0),T=c.credits.reduce((G,X)=>{const ee=parseFloat(X.price)||0;return G+ee},0),A=parseFloat(c.purchaseCost)||0;return P+T+A},R=()=>{d(P=>({...P,cashAdjustments:[...P.cashAdjustments,{title:"",price:""}]}))},B=P=>{const T=c.cashAdjustments.filter((A,G)=>G!==P);d(A=>({...A,cashAdjustments:T}))},H=(P,T,A)=>{const G=[...c.cashAdjustments];G[P][T]=A,d(X=>({...X,cashAdjustments:G}))},k=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.cashAdjustments.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,cashAdjustments:X})}else{const X=c.cashAdjustments.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,cashAdjustments:X})}},S=()=>c.cashAdjustments.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),D=()=>{const P=S(),T=Y(),A=C();return P+T+A},L=()=>{d(P=>({...P,incidentalCost:[...P.incidentalCost,{title:"",price:""}]}))},z=P=>{const T=c.incidentalCost.filter((A,G)=>G!==P);d(A=>({...A,incidentalCost:T}))},W=(P,T,A)=>{const G=[...c.incidentalCost];G[P][T]=A,d(X=>({...X,incidentalCost:G}))},V=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.incidentalCost.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,incidentalCost:X})}else{const X=c.incidentalCost.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,incidentalCost:X})}},Q=()=>c.incidentalCost.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),Z=()=>{d(P=>({...P,carryCosts:[...P.carryCosts,{title:"",price:""}]}))},te=P=>{const T=c.carryCosts.filter((A,G)=>G!==P);d(A=>({...A,carryCosts:T}))},re=(P,T,A)=>{const G=[...c.carryCosts];G[P][T]=A,d(X=>({...X,carryCosts:G}))},se=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.carryCosts.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,carryCosts:X})}else{const X=c.carryCosts.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,carryCosts:X})}},ae=()=>c.carryCosts.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),we=()=>{d(P=>({...P,renovationCost:[...P.renovationCost,{title:"",price:""}]}))},Kn=P=>{const T=c.renovationCost.filter((A,G)=>G!==P);d(A=>({...A,renovationCost:T}))},Wi=(P,T,A)=>{const G=[...c.renovationCost];G[P][T]=A,d(X=>({...X,renovationCost:G}))},ph=(P,T)=>{const A=P.target.value;if(/^\d*\.?\d*$/.test(A)||A===""){const X=c.renovationCost.map((ee,fe)=>fe===T?{...ee,price:A,isInvalid:!1}:ee);d({...c,renovationCost:X})}else{const X=c.renovationCost.map((ee,fe)=>fe===T?{...ee,isInvalid:!0}:ee);d({...c,renovationCost:X})}},Kl=()=>c.renovationCost.reduce((P,T)=>{const A=parseFloat(T.price);return P+(isNaN(A)?0:A)},0),Ql=()=>{const P=Q(),T=ae(),A=Kl();return P+T+A},Gc=()=>{const P=Ql(),T=D();return P+T},mh=()=>{var P,T,A,G,X,ee;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){const fe=C(),vh=K(),yh=S(),gh=Q(),xh=Y(),jh=D(),Nh=ae(),wh=Kl(),Ch=Ql(),bh=Gc(),Gl={...c,userfirstname:(P=a==null?void 0:a.result)==null?void 0:P.firstName,usermiddlename:(T=a==null?void 0:a.result)==null?void 0:T.middleName,userlastname:(A=a==null?void 0:a.result)==null?void 0:A.lastName,usertitle:(G=a==null?void 0:a.result)==null?void 0:G.title,useremail:(X=a==null?void 0:a.result)==null?void 0:X.email,userId:(ee=a==null?void 0:a.result)==null?void 0:ee.userId,totalPurchaseCosts:fe,totalcredits:xh,totalPurchaseCostsaftercredits:vh,totalcashAdjustments:yh,totalcashrequiredonsettlement:jh,totalincidentalCost:gh,totalcarryCosts:Nh,totalrenovationCost:wh,totalRenovationsandHoldingCost:Ch,totalCoststoBuyAtoB:bh};Array.isArray(c.propertyTaxInfo)&&c.propertyTaxInfo.length>0?Gl.propertyTaxInfo=c.propertyTaxInfo:Gl.propertyTaxInfo=[],i(Oo(Gl)),y(!0)}else ie.error("Please fill all fields before submitting",{position:"top-right",autoClose:3e3})};O.useEffect(()=>{p&&(l==="succeeded"?(ie.success("Property submitted successfully!",{position:"top-right",autoClose:3e3}),y(!1)):l==="failed"&&(ie.error(`Failed to submit: ${s}`,{position:"top-right",autoClose:3e3}),y(!1)))},[l,s,p]);const[hh,Jc]=O.useState("0 days"),Xc=(P,T)=>{if(P&&T){const A=new Date(P),G=new Date(T),X=Math.abs(G-A),ee=Math.ceil(X/(1e3*60*60*24));Jc(`${ee} days`)}else Jc("0 days")};return o.jsx(o.Fragment,{children:o.jsxs("div",{className:"container tabs-wrap",children:[o.jsx(Oe,{}),o.jsxs("ul",{className:"nav nav-tabs",role:"tablist",children:[o.jsx("li",{role:"presentation",className:e==="propertydetails"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("propertydetails"),role:"tab",children:"Property Details"})}),o.jsx("li",{role:"presentation",className:e==="Images"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Images"),role:"tab",children:"Images, Maps"})}),o.jsx("li",{role:"presentation",className:e==="Accounting"?"active tab":"tab",children:o.jsx("a",{onClick:()=>t("Accounting"),role:"tab",children:"Accounting"})})]}),o.jsxs("div",{className:"tab-content",children:[e==="propertydetails"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("form",{children:[o.jsx("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:"Property Location"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Address",o.jsx("input",{type:"text",className:"form-control",name:"address",value:c.address,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:c.state,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Texas",children:"Travis"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:c.county,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",value:c.zip,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Parcel",o.jsx("input",{type:"text",className:"form-control",name:"parcel",value:c.parcel,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Sub division",o.jsx("input",{type:"text",className:"form-control",name:"subdivision",value:c.subdivision,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Legal Description",o.jsx("textarea",{type:"text",className:"form-control",name:"legal",value:c.legal,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Cost per SQFT",o.jsx("input",{type:"text",className:"form-control",name:"costpersqft",value:c.costpersqft,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Property Type",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:c.propertyType,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Lot Acres/Sqft",o.jsx("input",{type:"text",className:"form-control",name:"lotacres",value:c.lotacres,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Year Build",o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:c.yearBuild,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total Living SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totallivingsqft",value:c.totallivingsqft,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Beds",o.jsx("input",{type:"text",className:"form-control",name:"beds",value:c.beds,onChange:m,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Baths",o.jsx("input",{type:"text",className:"form-control",name:"baths",value:c.baths,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Stories",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"stories",value:c.stories,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"}),o.jsx("option",{value:"6",children:"6"}),o.jsx("option",{value:"7",children:"7"}),o.jsx("option",{value:"8",children:"8"}),o.jsx("option",{value:"9",children:"9"}),o.jsx("option",{value:"10",children:"10"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Garage",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"garage",value:c.garage,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"0",children:"0"}),o.jsx("option",{value:"1",children:"1"}),o.jsx("option",{value:"2",children:"2"}),o.jsx("option",{value:"3",children:"3"}),o.jsx("option",{value:"4",children:"4"}),o.jsx("option",{value:"5",children:"5"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Garage SQFT",o.jsx("input",{type:"text",className:"form-control",name:"garagesqft",value:c.garagesqft,onChange:m,required:!0})]})})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Pool/SPA",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"poolspa",value:c.poolspa,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Yes- Pool Only",children:"Yes- Pool Only"}),o.jsx("option",{value:"Yes- SPA only",children:"Yes- SPA only"}),o.jsx("option",{value:"Yes - Both Pool and SPA",children:"Yes - Both Pool and SPA"}),o.jsx("option",{value:"4",children:"None"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Fire places",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"fireplaces",value:c.fireplaces,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"yes",children:"Yes"}),o.jsx("option",{value:"no",children:"No"})]})]}),o.jsxs("div",{className:"col-md-4",children:["A/C",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"ac",value:c.ac,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Heating",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"heating",value:c.heating,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Central",children:"Central"}),o.jsx("option",{value:"Heat Pump",children:"Heat Pump"}),o.jsx("option",{value:"Warm Air",children:"Warm Air"}),o.jsx("option",{value:"Forced Air",children:"Forced Air"}),o.jsx("option",{value:"Gas",children:"Gas"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Building Style",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"buildingstyle",value:c.buildingstyle,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"One Story",children:"One Story"}),o.jsx("option",{value:"Craftsman",children:"Craftsman"}),o.jsx("option",{value:"Log/Cabin",children:"Log/Cabin"}),o.jsx("option",{value:"Split-Level",children:"Split-Level"}),o.jsx("option",{value:"Split-Foyer",children:"Split-Foyer"}),o.jsx("option",{value:"Stick Built",children:"Stick Built"}),o.jsx("option",{value:"Single wide",children:"Single wide"}),o.jsx("option",{value:"Double wide",children:"Double wide"}),o.jsx("option",{value:"Duplex",children:"Duplex"}),o.jsx("option",{value:"Triplex",children:"Triplex"}),o.jsx("option",{value:"Quadruplex",children:"Quadruplex"}),o.jsx("option",{value:"Two Story",children:"Two Story"}),o.jsx("option",{value:"Victorian",children:"Victorian"}),o.jsx("option",{value:"Tudor",children:"Tudor"}),o.jsx("option",{value:"Modern",children:"Modern"}),o.jsx("option",{value:"Art Deco",children:"Art Deco"}),o.jsx("option",{value:"Bungalow",children:"Bungalow"}),o.jsx("option",{value:"Mansion",children:"Mansion"}),o.jsx("option",{value:"Farmhouse",children:"Farmhouse"}),o.jsx("option",{value:"Conventional",children:"Conventional"}),o.jsx("option",{value:"Ranch",children:"Ranch"}),o.jsx("option",{value:"Ranch with Basement",children:"Ranch with Basement"}),o.jsx("option",{value:"Cape Cod",children:"Cape Cod"}),o.jsx("option",{value:"Contemporary",children:"Contemporary"}),o.jsx("option",{value:"Colonial",children:"Colonial"}),o.jsx("option",{value:"Mediterranean",children:"Mediterranean"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Site Vacant",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"sitevacant",value:c.sitevacant,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please select"}),o.jsx("option",{value:"Yes",children:"Yes"}),o.jsx("option",{value:"No",children:"No"})]})]})]}),o.jsxs("div",{className:"row gy-3",children:[o.jsxs("div",{className:"col-md-4",children:["Ext Wall",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"extwall",value:c.extwall,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Brick",children:"Brick"}),o.jsx("option",{value:"Brick/Vinyl Siding",children:"Brick/Vinyl Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Wood/Vinyl Siding"}),o.jsx("option",{value:"Brick/Wood Siding",children:"Brick/Wood Siding"}),o.jsx("option",{value:"Stone",children:"Stone"}),o.jsx("option",{value:"Masonry",children:"Masonry"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Fiberboard",children:"Fiberboard"}),o.jsx("option",{value:"Asphalt Siding",children:"Asphalt Siding"}),o.jsx("option",{value:"Concrete Block",children:"Concrete Block"}),o.jsx("option",{value:"Gable",children:"Gable"}),o.jsx("option",{value:"Brick Veneer",children:"Brick Veneer"}),o.jsx("option",{value:"Frame",children:"Frame"}),o.jsx("option",{value:"Siding",children:"Siding"}),o.jsx("option",{value:"Cement/Wood Fiber Siding",children:"Cement/Wood Fiber Siding"}),o.jsx("option",{value:"Fiber/Cement Siding",children:"Fiber/Cement Siding"}),o.jsx("option",{value:"Wood Siding",children:"Wood Siding"}),o.jsx("option",{value:"Vinyl Siding",children:"Vinyl Siding"}),o.jsx("option",{value:"Aluminium Siding",children:"Aluminium Siding"}),o.jsx("option",{value:"Wood/Vinyl Siding",children:"Alum/Vinyl Siding"})]})]}),o.jsxs("div",{className:"col-md-4",children:["Roofing",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"roofing",value:c.roofing,onChange:m,required:!0,children:[o.jsx("option",{value:"",children:"Please Select"}),o.jsx("option",{value:"N/A",children:"N/A"}),o.jsx("option",{value:"Asphalt Shingle",children:"Asphalt Shingle"}),o.jsx("option",{value:"Green Roofs",children:"Green Roofs"}),o.jsx("option",{value:"Built-up Roofing",children:"Built-up Roofing"}),o.jsx("option",{value:"Composition Shingle",children:"Composition Shingle"}),o.jsx("option",{value:"Composition Shingle Heavy",children:"Composition Shingle Heavy"}),o.jsx("option",{value:"Solar tiles",children:"Solar tiles"}),o.jsx("option",{value:"Metal",children:"Metal"}),o.jsx("option",{value:"Stone-coated steel",children:"Stone-coated steel"}),o.jsx("option",{value:"Slate",children:"Slate"}),o.jsx("option",{value:"Rubber Slate",children:"Rubber Slate"}),o.jsx("option",{value:"Clay and Concrete tiles",children:"Clay and Concrete tiles"})]})]}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Total SQFT",o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:c.totalSqft,onChange:m,required:!0})]})})]}),o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:[o.jsx("br",{}),"Property Tax Information"]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),c.propertyTaxInfo.map((P,T)=>o.jsxs("div",{className:"row gy-4",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-3",children:["Property Tax Owned",o.jsx("input",{type:"text",className:"form-control",name:"propertytaxowned",value:P.propertytaxowned,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Owned Year",o.jsx("input",{type:"text",className:"form-control",name:"ownedyear",value:P.ownedyear,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Assessed",o.jsx("input",{type:"text",className:"form-control",name:"taxassessed",value:P.taxassessed,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-2",children:o.jsxs("div",{className:"form-floating mb-2",children:["Tax Year",o.jsx("input",{type:"text",className:"form-control",name:"taxyear",value:P.taxyear,onChange:A=>m(A,T,"propertyTaxInfo"),required:!0})]})}),o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"form-floating mb-2",children:[o.jsx("br",{}),o.jsx("button",{className:"btn btn-danger",onClick:()=>f(T),style:{height:"25px",width:"35px"},children:"X"})]})})]},T)),o.jsx("button",{className:"btn btn-secondary",onClick:h,children:"+ Add Another Property Tax Info"})]}),o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Images"&&o.jsxs("div",{role:"tabpanel",className:"card tab-pane active",children:[o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Upload Images"," "]}),o.jsxs("form",{children:[c.images.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,placeholder:"Image Title",onChange:A=>j(T,A)})}),o.jsxs("div",{className:"col-md-4 d-flex align-items-center",children:[o.jsx(ch,{multiple:!1,onDone:A=>N(A,T)}),o.jsx("button",{type:"button",className:"btn btn-danger",onClick:()=>x(T),style:{marginLeft:"5px"},children:"Delete"})]}),P.file&&o.jsx("div",{className:"col-md-12",children:o.jsx("img",{src:P.file,alt:"uploaded",style:{width:"150px",height:"150px"}})})]},T)),o.jsx("button",{type:"button",className:"btn btn-primary",onClick:v,style:{backgroundColor:"#fda417",border:"#fda417"},children:"+ Add Image"}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"mb-3",children:[o.jsx("label",{htmlFor:"googleMapLink",className:"form-label",children:o.jsxs("h3",{style:{color:"#fda417",border:"#fda417",fontSize:"20px",fontWeight:"normal"},children:["Google Maps Link"," "]})}),o.jsx("input",{type:"text",className:"form-control",name:"googleMapLink",value:c.googleMapLink,onChange:m,placeholder:"Enter Google Maps link"})]}),c.googleMapLink&&o.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})]}),o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{className:"btn btn-primary continue",onClick:n,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Continue"})]}),e==="Accounting"&&o.jsxs("div",{className:"card",style:{color:"#fda417",border:"1px solid #fda417",padding:"10px",borderRadius:"8px"},children:[o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date A to B",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateAtoB",value:c.closeDateAtoB,onChange:P=>{const T=P.target.value;d({...c,closeDateAtoB:T}),Xc(T,c.closeDateBtoC)},placeholder:"Close Date A to B",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",placeholder:"Close Date B to C",required:!0,disabled:!0})}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"date",className:"form-control",name:"closeDateBtoC",value:c.closeDateBtoC,onChange:P=>{const T=P.target.value;d({...c,closeDateBtoC:T}),Xc(c.closeDateAtoB,T)},placeholder:"Close Date B to C",style:{textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Turn Time"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:hh,readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("br",{}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Renovation Risk"}),o.jsx("div",{className:"col-md-7",children:u.map(P=>o.jsxs("div",{className:"form-check form-check-inline",children:[o.jsx("input",{className:"form-check-input",type:"radio",name:"renovationRisk",id:`renovationRisk${P}`,value:P,checked:c.renovationRisk===P,onChange:T=>{const A=parseInt(T.target.value,10);d({...c,renovationRisk:A})}}),o.jsx("label",{className:"form-check-label",htmlFor:`renovationRisk${P}`,children:P})]},P))})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Purchase Price"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.purchaseCost,onChange:P=>{const T=P.target.value,A=/^\d*\.?\d*$/.test(T);d({...c,purchaseCost:T,isPurchaseCostInvalid:!A})},onKeyPress:P=>{const T=P.charCode;(T<48||T>57)&&T!==46&&(P.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Costs paid out of Closing Hud A to B:"}),c.costPaidAtoB.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>b(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>E(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>w(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{onClick:g,className:"btn btn-primary back",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Extra Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCosts",value:C(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},placeholder:"Total Costs to Buy A to B",required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Credits received on settlement:"}),c.credits.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>$(T,"title",A.target.value),placeholder:"credits",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>J(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>F(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:M,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add credits"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total credits received on settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcredits",value:Y(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Purchase Cost after Credits Received"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalPurchaseCostsaftercredits",value:K(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Cash Adjustments:"}),c.cashAdjustments.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>H(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>k(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>B(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:R,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Cash Adjustments"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Adjustments on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashAdjustments",value:S(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Cash Required on Settlement"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcashrequiredonsettlement",value:D(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Incidental Cost:"}),c.incidentalCost.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>W(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>V(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>z(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:L,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Incidental Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Incidental Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalincidentalCost",value:Q(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Carry Costs:"}),c.carryCosts.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>re(T,"title",A.target.value),placeholder:"Title",required:!0})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>se(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>te(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:Z,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Carry Cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Carry Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalcarryCosts",value:ae(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsx("span",{style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Reno and Holding Costs"}),c.renovationCost.map((P,T)=>o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",value:P.title,onChange:A=>Wi(T,"title",A.target.value),placeholder:"Title",required:!0,style:{fontSize:"10px"}})}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${P.isInvalid?"is-invalid":""}`,value:P.price,onChange:A=>ph(A,T),placeholder:"Price",style:{textAlign:"right"},required:!0}),P.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]}),o.jsx("div",{className:"col-md-2 d-flex justify-content-start",children:o.jsx("button",{className:"btn btn-danger",onClick:()=>Kn(T),style:{marginLeft:"5px"},children:"x"})})]},T)),o.jsx("div",{className:"col-md-4",children:o.jsxs("button",{className:"btn btn-primary back",onClick:we,style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{style:{fontSize:"20px",fontWeight:"normal"},children:"+"})," ","Add Renovation and Holding cost"]})}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovation Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalrenovationCost",value:Kl(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Renovations & Holding Cost"}),o.jsx("div",{className:"col-md-4",children:o.jsx("input",{type:"text",className:"form-control",name:"totalRenovationsandHoldingCost",value:Ql(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0})})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Total Costs to Buy A to B"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalCoststoBuyAtoB",value:Gc(),readOnly:!0,style:{borderColor:"#fda417",color:"#fda417",textAlign:"right"},required:!0}),c.isInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"row gy-3 align-items-center",children:[o.jsx("span",{className:"col-md-4",style:{color:"#fda417",fontSize:"14px",fontWeight:"bold"},children:"Selling Price B to C"}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("input",{type:"text",className:`form-control ${c.isPurchaseCostInvalid?"is-invalid":""}`,value:c.sellingPriceBtoC,onChange:P=>{const T=P.target.value,A=/^\d*\.?\d*$/.test(T);d({...c,sellingPriceBtoC:T,isPurchaseCostInvalid:!A})},onKeyPress:P=>{const T=P.charCode;(T<48||T>57)&&T!==46&&(P.preventDefault(),d({...c,isPurchaseCostInvalid:!0}))},placeholder:"Enter Purchase Cost",style:{textAlign:"right"},required:!0}),c.isPurchaseCostInvalid&&o.jsx("div",{className:"invalid-feedback",children:"Please enter a valid number."})]})]}),o.jsx("hr",{style:{borderColor:"#fda417",borderWidth:"1px",backgroundColor:"#fda417",height:"1px"}}),o.jsxs("div",{className:"col-md-4",children:[o.jsx("button",{className:"btn btn-primary back",onClick:r,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Go Back"})," ",o.jsx("button",{type:"button",className:"btn btn-primary continue",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:mh,children:"Submit"})," "]}),o.jsx("br",{})]})]})]})})},Rt="/assets/propertydummy-DhVEZ7jN.jpg",eN=()=>{var u;const e=St(),{user:t}=Ze(c=>({...c.auth})),{userProperties:n,totalPages:r}=Ze(c=>c.property),[i,l]=O.useState(1),s=5;O.useEffect(()=>{e(To({userId:t.result.userId,page:i,limit:s}))},[e,(u=t==null?void 0:t.result)==null?void 0:u.userId,i]);const a=c=>{l(c)};return o.jsx(o.Fragment,{children:n.length>0?o.jsxs(o.Fragment,{children:[o.jsx("ul",{children:n.map(c=>o.jsx("li",{children:o.jsx("div",{className:"container",children:o.jsx("div",{className:"col-md-12",children:o.jsxs("div",{className:"row p-2 bg-white border rounded mt-2",children:[o.jsx("div",{className:"col-md-3 mt-1",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}})}),o.jsxs("div",{className:"col-md-6 mt-1",children:[o.jsxs("h5",{children:[" ",o.jsxs(he,{to:`/property/${c.propertyId}`,target:"_blank",children:[c.address,"....."]})]}),o.jsx("div",{className:"d-flex flex-row"}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"100% cotton"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"Light weight"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Best finish",o.jsx("br",{})]})]}),o.jsxs("div",{className:"mt-1 mb-1 spec-1",children:[o.jsx("span",{children:"Unique design"}),o.jsx("span",{className:"dot"}),o.jsx("span",{children:"For men"}),o.jsx("span",{className:"dot"}),o.jsxs("span",{children:["Casual",o.jsx("br",{})]})]}),o.jsxs("p",{className:"text-justify text-truncate para mb-0",children:["There are many variations of passages of",o.jsx("br",{}),o.jsx("br",{})]})]}),o.jsx("div",{className:"align-items-center align-content-center col-md-3 border-left mt-1",children:o.jsxs("div",{className:"d-flex flex-column mt-4",children:[o.jsx(he,{to:`/property/${c.propertyId}`,target:"_blank",children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-eye",style:{color:"#F74B02"}})," "," ","View Details"]})}),o.jsx(he,{to:`/editproperty/${c.propertyId}`,children:o.jsxs("button",{className:"btn btn-outline-primary btn-sm mt-2",type:"button",style:{backgroundColor:"#fda417",border:"#fda417"},children:[o.jsx("span",{className:"fa fa-edit",style:{color:"#F74B02"}})," "," ","Edit Details .."]})})]})})]})})})},c._id))}),o.jsxs("div",{className:"pagination",children:[o.jsx("button",{onClick:()=>a(i-1),disabled:i===1,children:"Previous"}),Array.from({length:r},(c,d)=>d+1).map(c=>c===i||c===1||c===r||c>=i-1&&c<=i+1?o.jsx("button",{onClick:()=>a(c),disabled:i===c,children:c},c):c===2||c===r-1?o.jsx("span",{children:"..."},c):null),o.jsx("button",{onClick:()=>a(i+1),disabled:i===r,children:"Next"})]})]}):o.jsx("p",{children:"No active properties found."})})},tN=()=>{var d,p,y,N,v,x,j,m,h,f,g,w;const{user:e,isLoading:t,error:n}=Ze(b=>b.auth),r=St(),i=Ir(),[l,s]=O.useState({userId:((d=e==null?void 0:e.result)==null?void 0:d.userId)||"",title:((p=e==null?void 0:e.result)==null?void 0:p.title)||"",firstName:((y=e==null?void 0:e.result)==null?void 0:y.firstName)||"",middleName:((N=e==null?void 0:e.result)==null?void 0:N.middleName)||"",lastName:((v=e==null?void 0:e.result)==null?void 0:v.lastName)||"",email:((x=e==null?void 0:e.result)==null?void 0:x.email)||"",aboutme:((j=e==null?void 0:e.result)==null?void 0:j.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:((f=e==null?void 0:e.result)==null?void 0:f.county)||"",zip:((g=e==null?void 0:e.result)==null?void 0:g.zip)||"",profileImage:((w=e==null?void 0:e.result)==null?void 0:w.profileImage)||""});O.useEffect(()=>{e&&s({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=b=>{s({...l,[b.target.name]:b.target.value})},u=()=>{s({...l,profileImage:""})},c=b=>{b.preventDefault(),r(ko(l)),i("/login")};return o.jsx(o.Fragment,{children:o.jsxs("form",{onSubmit:c,children:[o.jsxs("div",{className:"col-4",children:["Title",o.jsxs("select",{className:"form-floating mb-3 form-control","aria-label":"Default select example",name:"title",value:l.title,onChange:a,children:[o.jsx("option",{value:"None",children:"Please Select Title"}),o.jsx("option",{value:"Dr",children:"Dr"}),o.jsx("option",{value:"Prof",children:"Prof"}),o.jsx("option",{value:"Mr",children:"Mr"}),o.jsx("option",{value:"Miss",children:"Miss"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["First Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"First Name",required:"required",name:"firstName",value:l.firstName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Middle Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Middle Name",required:"required",name:"middleName",value:l.middleName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Last Name",o.jsx("input",{type:"text",className:"form-control",placeholder:"Last Name",required:"required",name:"lastName",value:l.lastName,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Email",o.jsx("input",{type:"text",className:"form-control",placeholder:"Email",required:"required",name:"email",value:l.email,onChange:a,disabled:!0})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["About me",o.jsx("textarea",{type:"text",id:"aboutme",name:"aboutme",className:"form-control h-100",value:l.aboutme,onChange:a})]})}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["City",o.jsx("input",{type:"text",className:"form-control",name:"city",placeholder:"city",value:l.city,onChange:a,required:!0})]})}),o.jsx("div",{className:"col-md-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["State",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"state",value:l.state,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select State"}),o.jsx("option",{value:"Alaska",children:"Alaska"}),o.jsx("option",{value:"Alabama",children:"Alabama"}),o.jsx("option",{value:"Arkansas",children:"Arkansas"}),o.jsx("option",{value:"Arizona",children:"Arizona"}),o.jsx("option",{value:"California",children:"California"}),o.jsx("option",{value:"Colorado",children:"Colorado"}),o.jsx("option",{value:"Connecticut",children:"Connecticut"}),o.jsx("option",{value:"District Of Columbia",children:"District Of Columbia"}),o.jsx("option",{value:"Delaware",children:"Delaware"}),o.jsx("option",{value:"Florida",children:"Florida"}),o.jsx("option",{value:"Georgia",children:"Georgia"}),o.jsx("option",{value:"Hawaii",children:"Hawaii"}),o.jsx("option",{value:"Iowa",children:"Iowa"}),o.jsx("option",{value:"Idaho",children:"Idaho"}),o.jsx("option",{value:"Illinois",children:"Illinois"}),o.jsx("option",{value:"Indiana",children:"Indiana"}),o.jsx("option",{value:"Kansas",children:"Kansas"}),o.jsx("option",{value:"Kentucky",children:"Kentucky"}),o.jsx("option",{value:"Louisiana",children:"Louisiana"}),o.jsx("option",{value:"Massachusetts",children:"Massachusetts"}),o.jsx("option",{value:"Maryland",children:"Maryland"}),o.jsx("option",{value:"Michigan",children:"Michigan"}),o.jsx("option",{value:"Minnesota",children:"Minnesota"}),o.jsx("option",{value:"Missouri",children:"Missouri"}),o.jsx("option",{value:"Mississippi",children:"Mississippi"}),o.jsx("option",{value:"Montana",children:"Montana"}),o.jsx("option",{value:"North Carolina",children:"North Carolina"}),o.jsx("option",{value:"North Dakota",children:"North Dakota"}),o.jsx("option",{value:"Nebraska",children:"Nebraska"}),o.jsx("option",{value:"New Hampshire",children:"New Hampshire"}),o.jsx("option",{value:"New Jersey",children:"New Jersey"}),o.jsx("option",{value:"New Mexico",children:"New Mexico"}),o.jsx("option",{value:"Nevada",children:"Nevada"}),o.jsx("option",{value:"New York",children:"New York"}),o.jsx("option",{value:"Ohio",children:"Ohio"}),o.jsx("option",{value:"Oklahoma",children:"Oklahoma"}),o.jsx("option",{value:"Oregon",children:"Oregon"}),o.jsx("option",{value:"Pennsylvania",children:"Pennsylvania"}),o.jsx("option",{value:"Rhode Island",children:"Rhode Island"}),o.jsx("option",{value:"South Carolina",children:"South Carolina"}),o.jsx("option",{value:"South Dakota",children:"South Dakota"}),o.jsx("option",{value:"Tennessee",children:"Tennessee"}),o.jsx("option",{value:"Texas",children:"Texas"}),o.jsx("option",{value:"Utah",children:"Utah"}),o.jsx("option",{value:"Virginia",children:"Virginia"}),o.jsx("option",{value:"Vermont",children:"Vermont"}),o.jsx("option",{value:"Washington",children:"Washington"}),o.jsx("option",{value:"Wisconsin",children:"Wisconsin"}),o.jsx("option",{value:"West Virginia",children:"West Virginia"}),o.jsx("option",{value:"Wyoming",children:"Wyoming"})]})]})}),o.jsxs("div",{className:"col-md-4",children:["County",o.jsxs("select",{className:"form-floating mb-3 form-control",name:"county",value:l.county,onChange:a,required:!0,children:[o.jsx("option",{value:"",children:"Please Select County"}),o.jsx("option",{value:"Abbeville",children:"Abbeville"}),o.jsx("option",{value:"Aiken",children:"Aiken"}),o.jsx("option",{value:"Allendale",children:"Allendale"}),o.jsx("option",{value:"Anderson",children:"Anderson"}),o.jsx("option",{value:"Bamberg",children:"Bamberg"}),o.jsx("option",{value:"Barnwell",children:"Barnwell"}),o.jsx("option",{value:"Beaufort",children:"Beaufort"}),o.jsx("option",{value:"Berkeley",children:"Berkeley"}),o.jsx("option",{value:"Calhoun",children:"Calhoun"}),o.jsx("option",{value:"Charleston",children:"Charleston"}),o.jsx("option",{value:"Cherokee",children:"Cherokee"}),o.jsx("option",{value:"Chester",children:"Chester"}),o.jsx("option",{value:"Chesterfield",children:"Chesterfield"}),o.jsx("option",{value:"Clarendon",children:"Clarendon"}),o.jsx("option",{value:"Colleton",children:"Colleton"}),o.jsx("option",{value:"Darlington",children:"Darlington"}),o.jsx("option",{value:"Dillon",children:"Dillon"}),o.jsx("option",{value:"Dorchester",children:"Dorchester"}),o.jsx("option",{value:"Edgefield",children:"Edgefield"}),o.jsx("option",{value:"Fairfield",children:"Fairfield"}),o.jsx("option",{value:"Florence",children:"Florence"}),o.jsx("option",{value:"Georgetown",children:"Georgetown"}),o.jsx("option",{value:"Greenville",children:"Greenville"}),o.jsx("option",{value:"Greenwood",children:"Greenwood"}),o.jsx("option",{value:"Hampton",children:"Hampton"}),o.jsx("option",{value:"Horry",children:"Horry"}),o.jsx("option",{value:"Jasper",children:"Jasper"}),o.jsx("option",{value:"Kershaw",children:"Kershaw"}),o.jsx("option",{value:"Lancaster",children:"Lancaster"}),o.jsx("option",{value:"Laurens",children:"Laurens"}),o.jsx("option",{value:"Lee",children:"Lee"}),o.jsx("option",{value:"Lexington",children:"Lexington"}),o.jsx("option",{value:"Marion",children:"Marion"}),o.jsx("option",{value:"Marlboro",children:"Marlboro"}),o.jsx("option",{value:"McCormick",children:"McCormick"}),o.jsx("option",{value:"Newberry",children:"Newberry"}),o.jsx("option",{value:"Oconee",children:"Oconee"}),o.jsx("option",{value:"Orangeburg",children:"Orangeburg"}),o.jsx("option",{value:"Pickens",children:"Pickens"}),o.jsx("option",{value:"Richland",children:"Richland"}),o.jsx("option",{value:"Saluda",children:"Saluda"}),o.jsx("option",{value:"Spartanburg",children:"Spartanburg"}),o.jsx("option",{value:"Sumter",children:"Sumter"}),o.jsx("option",{value:"Union",children:"Union"}),o.jsx("option",{value:"Williamsburg",children:"Williamsburg"}),o.jsx("option",{value:"York",children:"York"})]})]}),o.jsx("div",{className:"col-4",children:o.jsxs("div",{className:"form-floating mb-3",children:["Zip",o.jsx("input",{type:"text",className:"form-control",name:"zip",placeholder:"zip",value:l.zip,onChange:a,required:!0})]})}),o.jsxs("div",{className:"col-4",children:[o.jsx("label",{children:"Profile Image"}),o.jsx("div",{className:"mb-3",children:o.jsx(ch,{type:"file",multiple:!1,onDone:({base64:b})=>s({...l,profileImage:b})})})]}),l.profileImage&&o.jsxs("div",{className:"col-4 mb-3",children:[o.jsx("img",{src:l.profileImage,alt:"Profile Preview",style:{width:"150px",height:"150px",borderRadius:"50%"}}),o.jsx("button",{type:"button",className:"btn btn-danger mt-2",onClick:u,children:"Delete Image"})]}),o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},disabled:t,children:t?"Updating...":"Update"})})}),n&&o.jsx("p",{children:n})]})})},nN=()=>{const[e,t]=O.useState("dashboard"),{user:n}=Ze(i=>i.auth),r=()=>{switch(e){case"Userdetails":return o.jsx(tN,{});case"addProperty":return o.jsx(Zj,{});case"activeProperties":return o.jsxs("div",{children:[o.jsx("h3",{children:"Active Properties"}),o.jsx(eN,{})]});case"closedProperties":return o.jsx("p",{children:"These are your closed properties."});default:return o.jsx(o.Fragment,{})}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"d-flex flex-row",children:[o.jsx("div",{className:"col-md-3",children:o.jsxs("div",{className:"card card1 p-5",children:[o.jsx("img",{className:"img-fluid",src:n.result.profileImage||Io,alt:"ProfileImage",style:{marginTop:"0px",maxWidth:"200px",maxHeight:"200px"}}),o.jsx("hr",{className:"hline"}),o.jsxs("div",{className:"d-flex flex-column align-items-center",children:[o.jsxs("button",{className:`btn ${e==="dashboard"?"active":""}`,onClick:()=>t("dashboard"),children:[o.jsx("i",{className:"fa fa-dashboard",style:{color:"#F74B02"}}),o.jsx("span",{children:"Dashboard"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="Userdetails"?"active":""}`,onClick:()=>t("Userdetails"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"User Profile"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="addProperty"?"active":""}`,onClick:()=>t("addProperty"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Add Property"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="activeProperties"?"active":""}`,onClick:()=>t("activeProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Active Properties"})]}),o.jsxs("button",{className:`btn mt-3 ${e==="closedProperties"?"active":""}`,onClick:()=>t("closedProperties"),children:[o.jsx("span",{className:"fa fa-home",style:{color:"#F74B02"}}),o.jsx("span",{children:"Closed Properties"})]})]})]})}),o.jsx("div",{className:"col-md-9",children:o.jsxs("div",{className:"card card2 p-1",children:[o.jsx("br",{}),o.jsxs("span",{children:["Welcome to"," ",o.jsx("span",{style:{color:"#067ADC"},children:o.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]})})]}),o.jsx("br",{}),r()]})})]}),o.jsx(ze,{})]})};var uh={exports:{}},rN="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iN=rN,oN=iN;function dh(){}function fh(){}fh.resetWarningCache=dh;var lN=function(){function e(r,i,l,s,a,u){if(u!==oN){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:fh,resetWarningCache:dh};return n.PropTypes=n,n};uh.exports=lN();var sN=uh.exports;const aN=qa(sN),cN=()=>{const[e,t]=O.useState(3),n=Ir();return O.useEffect(()=>{const r=setInterval(()=>{t(i=>--i)},1e3);return e===0&&n("/login"),()=>clearInterval(r)},[e,n]),o.jsx("div",{style:{marginTop:"100px"},children:o.jsxs("h5",{children:["Redirecting you in ",e," seconds"]})})},Do=({children:e})=>{const{user:t}=Ze(n=>({...n.auth}));return t?e:o.jsx(cN,{})};Do.propTypes={children:aN.node.isRequired};const uN=()=>{const e=St(),{id:t,token:n}=Dr();return O.useEffect(()=>{e(Po({id:t,token:n}))},[e,t,n]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsxs("div",{className:"contact_section layout_padding",children:[o.jsx("div",{className:"container",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12",children:o.jsx("h1",{className:"contact_taital",children:"Contact Us"})})})}),o.jsx("div",{className:"container-fluid",children:o.jsx("div",{className:"contact_section_2",children:o.jsxs("div",{className:"row",children:[o.jsxs("div",{className:"col-md-6",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("h1",{className:"card-title text-center",children:o.jsxs(he,{to:"/login",className:"glightbox play-btn mb-4",children:[" ","Email verified successfully !!! Please",o.jsx("span",{style:{color:"#F74B02"},children:" login "})," "," ","to access ..."]})})]}),o.jsx("div",{className:"col-md-6 padding_left_15",children:o.jsx("div",{className:"contact_img"})})]})})})]}),o.jsx(ze,{})]})},dN=()=>{const[e,t]=O.useState(""),[n,r]=O.useState(""),i="http://localhost:3002",l=async()=>{try{const s=await de.post(`${i}/users/forgotpassword`,{email:e});r(s.data.message)}catch(s){console.error("Forgot Password Error:",s),r(s.response.data.message)}};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("section",{className:"card",style:{minHeight:"100vh",backgroundColor:"#FFFFFF"},children:[o.jsx("div",{className:"container-fluid px-0",children:o.jsxs("div",{className:"row gy-4 align-items-center justify-content-center",children:[o.jsx("div",{className:"col-12 col-md-0 col-xl-20 text-center text-md-start"}),o.jsx("div",{className:"col-12 col-md-6 col-xl-5",children:o.jsx("div",{className:"card border-0 rounded-4 shadow-lg",style:{width:"100%"},children:o.jsxs("div",{className:"card-body p-3 p-md-4 p-xl-5",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"mb-4",children:[o.jsx("h2",{className:"h3",children:"Forgot Password"}),o.jsx("hr",{})]})})}),o.jsxs("div",{className:"row gy-3 overflow-hidden",children:[o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"email",className:"form-control",value:e,onChange:s=>t(s.target.value),placeholder:"name@example.com",required:"required"}),o.jsx("label",{htmlFor:"email",className:"form-label",children:"Enter your email address to receive a password reset link"})]})}),o.jsxs("div",{className:"col-12",children:[o.jsx("div",{className:"d-grid",children:o.jsx("button",{className:"btn btn-primary btn-lg",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},onClick:l,children:"Reset Password"})}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:n})]})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"d-flex gap-2 gap-md-4 flex-column flex-md-row justify-content-md-end mt-4",children:o.jsxs("p",{className:"m-0 text-secondary text-center",children:["Already have an account?"," ",o.jsx(he,{to:"/login",className:"link-primary text-decoration-none",children:"Sign In"})]})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12"})})]})})})]})}),o.jsx(ze,{})]})]})},fN=()=>{const{userId:e,token:t}=Dr(),[n,r]=O.useState(""),[i,l]=O.useState(""),[s,a]=O.useState(""),u="http://localhost:3002",c=async()=>{try{if(!n||n.trim()===""){a("Password not entered"),ie.error("Password not entered");return}const d=await de.post(`${u}/users/resetpassword/${e}/${t}`,{userId:e,token:t,password:n});if(n!==i){a("Passwords do not match."),ie.error("Passwords do not match.");return}else a("Password reset successfull"),ie.success(d.data.message)}catch(d){console.error("Reset Password Error:",d)}};return O.useEffect(()=>{ie.dismiss()},[]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("section",{className:"card mb-0 vh-100",children:o.jsx("div",{className:"container py-10 h-100",children:o.jsx("div",{className:"row d-flex align-items-center justify-content-center h-100",children:o.jsxs("div",{className:"col-md-10 col-lg-5 col-xl-5 offset-xl-1 card mb-10",children:[o.jsx("br",{}),o.jsxs("h2",{children:["Reset Password",o.jsx("hr",{}),o.jsx("p",{className:"card-title text-center",style:{color:"#F74B02"},children:"Enter your new password:"})]}),o.jsx("input",{className:"form-control vh-10",type:"password",value:n,onChange:d=>r(d.target.value),placeholder:"Enter your new password",style:{display:"flex",gap:"35px"}}),o.jsx("br",{}),o.jsx("input",{className:"form-control",type:"password",value:i,onChange:d=>l(d.target.value),placeholder:"Confirm your new password"}),o.jsx("br",{}),o.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"}),o.jsx("p",{style:{color:"#067ADC"},className:"card-title text-center",children:s})]})})})}),o.jsx(ze,{})]})},pN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"col-md-18",children:[o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("h1",{className:"card-title text-center",children:[" ","Thank you for joining the world's most trusted realtor investment and borrowers portal."]}),o.jsxs("h2",{children:["We reqest you to kindly ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"check your email inbox "})," and click on the ",o.jsx("span",{style:{fontSize:"2rem",color:"#fda417"},children:"verification link "}),"to access the dashboard."]})]}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),mN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n,status:r,error:i}=Ze(a=>a.property),[l,s]=O.useState(!0);return O.useEffect(()=>{e&&(t(li(e)),s(!1))},[e,t]),r==="loading"?o.jsx("p",{children:"Loading property details..."}):r==="failed"?o.jsxs("p",{children:["Error loading property: ",i]}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:l?o.jsx("div",{className:"loader",children:"Loading..."}):n?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:n.images&&n.images[0]?o.jsx("img",{src:n.images[0].file||Rt,alt:"Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{marginTop:"0px",maxWidth:"500px",maxHeight:"500px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[n.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",n.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",n.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",n.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",n.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),n.totallivingsqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",n.costpersqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),n.yearBuild]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Description"}),o.jsx("span",{children:n.legal?n.legal:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},hN=()=>{const[e,t]=O.useState([]),[n,r]=O.useState(0),[i,l]=O.useState(0),[s]=O.useState(10),[a,u]=O.useState(""),[c,d]=O.useState(!1),[p,y]=O.useState(!1),N=async()=>{d(!0),y(!1);try{const m=await de.get("http://localhost:3002/mysql/searchmysql",{params:{limit:s,offset:i*s,search:a},headers:{"Cache-Control":"no-cache"}});t(m.data.data),r(m.data.totalRecords),a.trim()&&y(!0)}catch(m){console.log("Error fetching data:",m)}finally{d(!1)}},v=m=>{u(m.target.value),m.target.value.trim()===""&&(l(0),t([]),r(0),y(!1),N())},x=m=>{m.key==="Enter"&&(m.preventDefault(),N())};O.useEffect(()=>{N()},[a,i]);const j=Math.ceil(n/s);return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",placeholder:"Enter the keyword and hit ENTER button...",className:"form-control",id:"search",name:"search",value:a,onChange:v,onKeyDown:x})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsxs("div",{className:"card-body",children:[p&&e.length>0&&o.jsxs("div",{children:["Showing search results for the keyword"," ",o.jsx("span",{style:{color:"#fda417",fontSize:"25px"},children:a})]}),o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:e.length>0?e.map((m,h)=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/properties/${m.house_id}`,className:"link-primary text-decoration-none",target:"_blank",children:m.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),m.city,", ",m.county,",",m.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",m.house_id]})]})]})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:m.total_living_sqft})})}),o.jsx("td",{children:o.jsx("div",{className:"widget-26-job-info",children:o.jsx("p",{className:"m-0",children:m.year_built})})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-salary",children:["$ ",m.cost_per_sqft,"/sqft"]})})]},h)):o.jsx("tr",{children:o.jsx("td",{colSpan:"4",children:"No results found"})})})]})}),o.jsxs("div",{children:[o.jsx("button",{onClick:()=>l(i-1),disabled:i===0||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Previous"}),o.jsxs("span",{children:[" ","Page ",i+1," of ",j," "]}),o.jsx("button",{onClick:()=>l(i+1),disabled:i+1>=j||c,style:{backgroundColor:"#fda417",border:"#fda417"},children:"Next"})]})]})})})})]}),o.jsx(ze,{})]})},vN=()=>o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),"This page will show the list of services offered by the company",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx(ze,{})]}),yN=()=>{const{house_id:e}=Dr();console.log("house_id",e);const[t,n]=O.useState(null),[r,i]=O.useState(!0);return O.useEffect(()=>{(async()=>{try{const s=await de.get(`http://localhost:3002/mysql/properties/${e}`);n(s.data)}catch(s){console.log("Error fetching property details:",s)}finally{i(!1)}})()},[e]),o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("div",{className:"container col-12",children:r?o.jsx("div",{className:"loader",children:"Loading..."}):t?o.jsx("div",{className:"py-3 py-md-5 bg-light",children:o.jsxs("div",{className:"card-header bg-white",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-md-5 mt-3",children:o.jsx("div",{className:"bg-white border",children:o.jsx("img",{src:Rt,className:"w-70",alt:"Img",style:{marginTop:"0px",maxWidth:"450px",maxHeight:"450px"}})})}),o.jsx("div",{className:"col-md-7 mt-3",children:o.jsxs("div",{className:"product-view",children:[o.jsxs("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:[t.address,o.jsx("label",{className:"label-stock bg-success",children:"Verified Property"})]}),o.jsx("hr",{}),o.jsxs("p",{className:"product-path",children:[o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["city:"," "]})," ",t.city," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["County:"," "]})," ",t.county," /",o.jsxs("span",{style:{color:"#fda417",fontSize:"15px"},children:["State:"," "]})," ",t.state," /",o.jsx("span",{style:{color:"#fda417",fontSize:"15px"},children:"Zipcode:"})," ",t.zip]}),o.jsxs("div",{children:[o.jsxs("span",{className:"selling-price",style:{color:"#fda417",fontSize:"15px"},children:["Total Living Square Foot:"," "]}),t.total_living_sqft,o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Cost per Square Foot:"," "]}),"$",t.cost_per_sqft,"/sqft",o.jsx("p",{}),o.jsxs("span",{className:"",style:{color:"#fda417",fontSize:"15px"},children:["Year Built:"," "]}),t.year_built]}),o.jsxs("div",{className:"mt-3 card bg-white",children:[o.jsx("h5",{className:"mb-0",style:{color:"#fda417",fontSize:"15px"},children:"Legal Summary report"}),o.jsx("span",{children:t.legal_summary_report?t.legal_summary_report:"No data available"})]})]})})]}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-md-12 mt-3",children:o.jsxs("div",{className:"card",children:[o.jsx("div",{className:"card-header bg-white",children:o.jsx("h4",{className:"product-name",style:{color:"#fda417",fontSize:"25px"},children:"Description"})}),o.jsx("div",{className:"card-body",children:o.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."})})]})})})]})}):o.jsx("p",{children:"No property details found."})}),o.jsx(ze,{})]})},gN=()=>{const{id:e}=Dr(),t=St(),{selectedProperty:n}=Ze(a=>a.property),[r,i]=O.useState({propertyType:"",yearBuild:"",totalSqft:""});O.useEffect(()=>{t(li(e))},[t,e]),O.useEffect(()=>{n&&i({propertyType:n.propertyType,yearBuild:n.yearBuild,totalSqft:n.totalSqft})},[n]);const l=a=>{i({...r,[a.target.name]:a.target.value})},s=a=>{a.preventDefault(),t(Ro({id:e,propertyData:r}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{})," ",o.jsx("br",{}),o.jsxs("div",{className:"edit-property-form",children:[o.jsx("h2",{children:"Edit Property"}),o.jsxs("form",{onSubmit:s,children:[o.jsx("div",{children:o.jsxs("select",{className:"form-floating mb-3 form-control",name:"propertyType",value:r.propertyType,onChange:l,required:!0,children:[o.jsx("option",{value:"",children:"Please Select Property Type"}),o.jsx("option",{value:"Residential",children:"Residential"}),o.jsx("option",{value:"Land",children:"Land"}),o.jsx("option",{value:"Commercial",children:"Commercial"}),o.jsx("option",{value:"Industrial",children:"Industrial"}),o.jsx("option",{value:"Water",children:"Water"})]})}),o.jsx("div",{className:"col-12",children:o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"yearBuild",value:r.yearBuild,onChange:l,placeholder:"Year build",required:!0}),o.jsx("label",{htmlFor:"yearBuild",className:"form-label",children:"Year Build"})]})}),o.jsxs("div",{className:"form-floating mb-3",children:[o.jsx("input",{type:"text",className:"form-control",name:"totalSqft",value:r.totalSqft,onChange:l,placeholder:"Total SQFT",required:!0}),o.jsx("label",{htmlFor:"totalSqft",className:"form-label",children:"Total SQFT"})]}),o.jsx("button",{type:"submit",children:"Update Property"})]})]}),o.jsx(ze,{})]})},xN=()=>{const e=St(),{properties:t,loading:n,totalPages:r,currentPage:i}=Ze(x=>x.property),[l,s]=O.useState(""),[a,u]=O.useState([]),[c,d]=O.useState(1),p=10;O.useEffect(()=>{e(si({page:c,limit:p,keyword:l}))},[e,c,l]),O.useEffect(()=>{l.trim()?u(t.filter(x=>x.address.toLowerCase().includes(l.toLowerCase()))):u(t)},[l,t]);const y=x=>{s(x.target.value)},N=x=>{x.preventDefault()},v=x=>{d(x),e(si({page:x,limit:p,keyword:l}))};return o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsxs("div",{className:"container col-12",children:[o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-lg-12 card-margin col-12",children:o.jsx("div",{className:"card search-form col-12",children:o.jsx("div",{className:"card-body p-0",children:o.jsx("form",{id:"search-form",onSubmit:N,children:o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"row no-gutters",children:o.jsx("div",{className:"col-lg-8 col-md-6 col-sm-12 p-0",children:o.jsx("input",{type:"text",value:l,onChange:y,placeholder:"Enter the keyword and hit ENTER button...",className:"form-control"})})})})})})})})})}),o.jsx("div",{className:"row",children:o.jsx("div",{className:"col-12",children:o.jsx("div",{className:"card card-margin",children:o.jsx("div",{className:"card-body",children:n?o.jsx("div",{children:"Loading..."}):o.jsx("div",{className:"table-responsive",children:o.jsxs("table",{className:"table widget-26",children:[o.jsx("thead",{style:{color:"#fda417",fontSize:"15px"},children:o.jsxs("tr",{children:[o.jsx("th",{children:"Image"}),o.jsx("th",{children:"Details"}),o.jsx("th",{children:"Total Living Square Foot"}),o.jsx("th",{children:"Year Built"}),o.jsx("th",{children:"Cost per Square Foot"})]})}),o.jsx("tbody",{children:a.length>0?a.map(x=>o.jsxs("tr",{children:[o.jsx("td",{children:x.images&&x.images[0]?o.jsx("img",{src:x.images[0].file||Rt,alt:"Property Thumbnail",style:{width:"100px",height:"auto"}}):o.jsx("img",{src:Rt,alt:"Default Property Thumbnail",style:{width:"100px",height:"auto"}})}),o.jsx("td",{children:o.jsxs("div",{className:"widget-26-job-title",children:[o.jsx(he,{to:`/property/${x.propertyId}`,className:"link-primary text-decoration-none",target:"_blank",children:x.address}),o.jsxs("p",{className:"m-0",children:[o.jsxs("span",{className:"employer-name",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02"}}),x.city,", ",x.county,","," ",x.state]}),o.jsxs("p",{className:"text-muted m-0",children:["House Id: ",x.propertyId]})]})]})}),o.jsx("td",{children:x.totallivingsqft}),o.jsx("td",{children:x.yearBuild}),o.jsx("td",{children:x.costpersqft})]},x.id)):o.jsx("tr",{children:o.jsx("td",{colSpan:"5",children:"No properties found."})})})]})})})})})}),o.jsx("nav",{"aria-label":"Page navigation",children:o.jsxs("ul",{className:"pagination justify-content-center",children:[o.jsx("li",{className:`page-item ${i===1?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i-1),children:"Previous"})}),Array.from({length:r},(x,j)=>o.jsx("li",{className:`page-item ${i===j+1?"active":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(j+1),children:j+1})},j+1)),o.jsx("li",{className:`page-item ${i===r?"disabled":""}`,children:o.jsx("button",{className:"page-link",onClick:()=>v(i+1),children:"Next"})})]})})]}),o.jsx(ze,{})]})},jN=()=>{const{userId:e}=Dr(),t=St(),{user:n,loading:r}=Ze(i=>i.user);return console.log("user",n),O.useEffect(()=>{e&&t(_o(e))},[e,t]),r?o.jsx("div",{children:"Loading..."}):o.jsxs(o.Fragment,{children:[o.jsx(Oe,{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("br",{}),o.jsx("div",{className:"main-body",children:o.jsxs("div",{className:"row gutters-sm",children:[o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"d-flex flex-column align-items-center text-center",children:[o.jsx("img",{src:n.profileImage,alt:"Admin",className:"rounded-circle",width:150}),o.jsxs("h4",{children:[n.title,". ",n.firstName," ",n.middleName," ",n.lastName]}),o.jsxs("span",{className:"text-muted font-size-sm",children:[o.jsx("i",{className:"fa fa-map-marker",style:{color:"#F74B02",fontSize:"20px"}})," ",n.city,", ",n.state,", ",n.county,", ",n.zip]})]}),o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Recent"}),"Project investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100,children:"25% completed"})}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("div",{className:"progress",style:{width:"100%",marginTop:"10px"},children:o.jsx("div",{className:"progress-bar",role:"progressbar",style:{width:"75%"},"aria-valuenow":75,"aria-valuemin":0,"aria-valuemax":100,children:"75% completed"})})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Projects"}),"Seeking investments"]}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{}),o.jsx("hr",{}),o.jsx("img",{src:Rt,alt:"Admin",className:"rounded-circle",style:{marginRight:"10px",maxWidth:"50px",maxHeight:"50px"}}),o.jsx("small",{children:"Web Design project in California"}),o.jsx("br",{})," ",o.jsx("br",{})]})})}),o.jsx("div",{className:"col-md-4",children:o.jsx("div",{className:"card mb-3",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"About"}),"me :"]})," ",o.jsx("hr",{}),n.aboutme]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",style:{color:"#fda417",fontSize:"26px"},children:"Willing to"}),"invest:"]}),o.jsx("hr",{}),o.jsx("h2",{className:"d-flex flex-column align-items-center text-center",style:{color:"#fda417",border:"#fda417",fontSize:"60px",fontWeight:"normal"},children:"$ 500,000"}),o.jsx("span",{className:"d-flex flex-column align-items-center text-center",children:o.jsx("button",{className:"btn btn-primary btn-lg ",type:"submit",style:{backgroundColor:"#fda417",border:"#fda417"},children:"Request"})}),o.jsx("hr",{}),o.jsxs("div",{className:"card-body",children:[o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Email"})}),n.email,o.jsx("div",{className:"col-sm-9 text-secondary"})]}),o.jsx("hr",{}),o.jsxs("div",{className:"row",children:[o.jsx("div",{className:"col-sm-3",children:o.jsx("span",{className:"mb-0",children:"Phone"})}),"67656584687",o.jsx("div",{className:"col-sm-9 text-secondary"})]})]})]})})}),o.jsx("div",{className:"col-md-4 mb-3",children:o.jsx("div",{className:"card",children:o.jsxs("div",{className:"card-body",children:[o.jsxs("h1",{className:"d-flex align-items-center mb-3",style:{color:"#fda417",fontSize:"26px"},children:[o.jsx("i",{className:"material-icons text-info mr-2",children:"Suggested"}),"Borrowers"]}),o.jsxs("ul",{className:"list-group list-group-flush",children:[o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})}),o.jsx("li",{className:"list-group-item d-flex justify-content-between align-items-center flex-wrap",children:o.jsxs("h6",{className:"mb-0",children:[o.jsx("img",{src:Io,style:{marginTop:"0px",maxWidth:"50px",maxHeight:"50px"}}),"Ravichandu"]})})]})]})})})]})})]})},NN=()=>o.jsxs(tj,{children:[o.jsx(xj,{}),o.jsxs(Y1,{children:[o.jsx(ke,{path:"/",element:o.jsx(Nj,{})}),o.jsx(ke,{path:"/about",element:o.jsx(wj,{})}),o.jsx(ke,{path:"/services",element:o.jsx(vN,{})}),o.jsx(ke,{path:"/contact",element:o.jsx(Cj,{})}),o.jsx(ke,{path:"/register",element:o.jsx(Qj,{})}),o.jsx(ke,{path:"/registrationsuccess",element:o.jsx(Do,{children:o.jsx(pN,{})})}),o.jsx(ke,{path:"/login",element:o.jsx(Jj,{})}),o.jsx(ke,{path:"/dashboard",element:o.jsx(Do,{children:o.jsx(nN,{})})}),o.jsx(ke,{path:"/users/:id/verify/:token",element:o.jsx(uN,{})}),o.jsx(ke,{path:"/forgotpassword",element:o.jsx(dN,{})}),o.jsx(ke,{path:"/users/resetpassword/:userId/:token",element:o.jsx(fN,{})}),o.jsx(ke,{path:"/property/:id",element:o.jsx(mN,{})}),o.jsx(ke,{path:"/properties/:house_id",element:o.jsx(yN,{})}),o.jsx(ke,{path:"/searchmyproperties",element:o.jsx(hN,{})}),o.jsx(ke,{path:"/searchproperties",element:o.jsx(xN,{})}),o.jsx(ke,{path:"/editproperty/:id",element:o.jsx(Do,{children:o.jsx(gN,{})})}),o.jsx(ke,{path:"/profile/:userId",element:o.jsx(jN,{})})]})]});tm(document.getElementById("root")).render(o.jsx(O.StrictMode,{children:o.jsx(Ng,{store:l1,children:o.jsx(NN,{})})})); diff --git a/ef-ui/dist/index.html b/ef-ui/dist/index.html index fc61e48..29972dd 100644 --- a/ef-ui/dist/index.html +++ b/ef-ui/dist/index.html @@ -45,7 +45,7 @@ - + diff --git a/ef-ui/src/components/Addproperty.jsx b/ef-ui/src/components/Addproperty.jsx index 4835364..2716921 100644 --- a/ef-ui/src/components/Addproperty.jsx +++ b/ef-ui/src/components/Addproperty.jsx @@ -31,73 +31,55 @@ const Addproperty = () => { images: [{ title: "", file: "" }], // Array to hold image objects googleMapLink: "", // Field for Google Maps link renovationRisk: null, - purchaseCost: "", + purchaseCost: "0", costPaidAtoB: [ - { title: "Closing Fees - Settlement Fee", price: "" }, - { title: "Closing Fees - Owner's Title Insurance", price: "" }, - { title: "Courier Fees", price: "" }, - { title: "Wire Fee", price: "" }, - { title: "E recording Fee", price: "" }, - { title: "Recording Fee", price: "" }, - { title: "Property Tax", price: "" }, + { 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: "" }], - cashAdjustments: [{ title: "Cash Adjustments", price: "" }], + credits: [{ title: "Credits", price: "0" }], + cashAdjustments: [{ title: "Cash Adjustments", price: "0" }], incidentalCost: [ - { title: "Accounting Fees", price: "" }, - { title: "Bank Charges", price: "" }, - { title: "Legal Fees", price: "" }, - { title: "Property Taxes", price: "" }, - { title: "Travel Expenses", price: "" }, + { 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" }, ], - utilMaintenance: [ - { title: "Electricity", price: "" }, - { title: "Water and Sewer", price: "" }, - { title: "Natural Gas", price: "" }, - { title: "Trash and Recycling", price: "" }, - { title: "Internet and Cable", price: "" }, - { title: "Heating Oil/Propane", price: "" }, - { title: "HOA fees", price: "" }, - { title: "Dump fees", price: "" }, - { title: "Insurance", price: "" }, - { title: "Interest on Loans", price: "" }, - { title: "Loan Payment", price: "" }, - { title: "Property Taxes", price: "" }, - { title: "Security", price: "" }, - { title: "Real Estates fees", price: "" }, + 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: "", - }, - { title: "Framing: Making structural changes or additions", price: "" }, - { - title: "Plumbing: Installing or modifying plumbing systems", - price: "", - }, - { title: "Electrical: Updating wiring and fixtures", price: "" }, - { - title: "HVAC: Installing or upgrading heating and cooling systems", - price: "", - }, - { title: "Insulation: Adding or replacing insulation", price: "" }, - { title: "Drywall: Hanging and finishing drywall", price: "" }, - { - title: "Interior Finishes: Painting, flooring, cabinetry, and fixtures", - price: "", - }, - { - title: - "Exterior Work: Addressing siding, roofing, or landscaping, if applicable", - price: "", - }, - { - title: "Final Inspections: Ensuring everything meets codes", - price: "", - }, - { title: "Punch List: Completing any remaining task", price: "" }, + { 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" }); const [submitted, setSubmitted] = useState(false); @@ -357,7 +339,7 @@ const Addproperty = () => { // Sum up all the values from the three functions return totalcashAdjustments + totalcredits + totalPurchaseCosts; }; - + const addincidentalCost = () => { setFormData((prevData) => ({ @@ -420,34 +402,34 @@ const Addproperty = () => { }, 0); }; - const addutilMaintenanceCost = () => { + const addcarryCosts = () => { setFormData((prevData) => ({ ...prevData, - utilMaintenance: [...prevData.utilMaintenance, { title: "", price: "" }], + carryCosts: [...prevData.carryCosts, { title: "", price: "" }], })); }; - const deleteutilMaintenanceCost = (index) => { - const updatedutilMaintenance = formData.utilMaintenance.filter( + const deletecarryCosts = (index) => { + const updatedcarryCosts = formData.carryCosts.filter( (_, i) => i !== index ); setFormData((prevData) => ({ ...prevData, - utilMaintenance: updatedutilMaintenance, + carryCosts: updatedcarryCosts, })); }; // Function to handle changes to incidentalCost title and price - const handleutilMaintenanceTitle = (index, field, value) => { - const updatedutilMaintenance = [...formData.utilMaintenance]; - updatedutilMaintenance[index][field] = value; + const handlecarryCostsTitle = (index, field, value) => { + const updatedcarryCosts= [...formData.carryCosts]; + updatedcarryCosts[index][field] = value; setFormData((prevData) => ({ ...prevData, - utilMaintenance: updatedutilMaintenance, + carryCosts: updatedcarryCosts, })); }; - const handleutilMaintenanceCostChange = (e, index) => { + const handlecarryCostsChange = (e, index) => { const value = e.target.value; // Regular expression to allow only numbers and optional decimals @@ -455,28 +437,28 @@ const Addproperty = () => { // If valid number, update state, otherwise show the alert if (isNumber || value === "") { - const updatedutilMaintenance = formData.utilMaintenance.map( - (utilMaintenance, i) => + const updatedcarryCosts = formData.carryCosts.map( + (carryCosts, i) => i === index - ? { ...utilMaintenance, price: value, isInvalid: false } // Reset isInvalid if valid number - : utilMaintenance + ? { ...carryCosts, price: value, isInvalid: false } // Reset isInvalid if valid number + : carryCosts ); - setFormData({ ...formData, utilMaintenance: updatedutilMaintenance }); + setFormData({ ...formData, carryCosts: updatedcarryCosts }); } else { - const updatedutilMaintenance = formData.utilMaintenance.map( - (utilMaintenance, i) => + const updatedcarryCosts = formData.carryCosts.map( + (carryCosts, i) => i === index - ? { ...utilMaintenance, isInvalid: true } // Set isInvalid true for invalid input - : utilMaintenance + ? { ...carryCosts, isInvalid: true } // Set isInvalid true for invalid input + : carryCosts ); - setFormData({ ...formData, utilMaintenance: updatedutilMaintenance }); + setFormData({ ...formData, carryCosts: updatedcarryCosts}); } }; // Calculate total from incidentalCost array - const calculatetotalutilMaintenanceCost = () => { - return formData.utilMaintenance.reduce((total, utilMaintenance) => { - const price = parseFloat(utilMaintenance.price); + const calculatetotalcarryCosts = () => { + return formData.carryCosts.reduce((total, carryCosts) => { + const price = parseFloat(carryCosts.price); return total + (isNaN(price) ? 0 : price); // Ensure only valid numbers are added }, 0); }; @@ -542,13 +524,22 @@ const Addproperty = () => { }, 0); }; - const calculatecostsAfterPropertyAcquisition = () => { + const calculatetotalRenovationsandHoldingCost = () => { const totalIncidentalCost = calculateTotalincidentalCost(); - const totalUtilMaintenanceCost = calculatetotalutilMaintenanceCost(); + const totalcarryCosts = calculatetotalcarryCosts(); const totalRenovationCost = calculaterenovationCost(); // Sum up all the values from the three functions - return totalIncidentalCost + totalUtilMaintenanceCost + totalRenovationCost; + return totalIncidentalCost + totalcarryCosts + totalRenovationCost; + }; + + const calculatetotalCoststoBuyAtoB =() => { + const totalRenovationsandHoldingCost = calculatetotalRenovationsandHoldingCost(); + const totalCashRequiredonSettlement = calculateTotalCashRequiredonSettlement(); + + // Sum up all the values from the three functions + return totalRenovationsandHoldingCost + totalCashRequiredonSettlement; + }; @@ -583,8 +574,6 @@ const Addproperty = () => { formData.roofing && formData.totalSqft && formData.renovationRisk && - - formData.sellpricebtoc && formData.closeDateAtoB && formData.closeDateBtoC ) { @@ -594,10 +583,10 @@ const Addproperty = () => { const totalincidentalCost = calculateTotalincidentalCost(); const totalcredits = calculateTotalCredits(); const totalcashrequiredonsettlement = calculateTotalCashRequiredonSettlement(); - const totalutilMaintenanceCost = calculatetotalutilMaintenanceCost(); + const totalcarryCosts = calculatetotalcarryCosts(); const totalrenovationCost = calculaterenovationCost(); - const costsAfterPropertyAcquisition = - calculatecostsAfterPropertyAcquisition(); + const totalRenovationsandHoldingCost = calculatetotalRenovationsandHoldingCost(); + const totalCoststoBuyAtoB = calculatetotalCoststoBuyAtoB(); // Add user info to formData, including the propertyTaxInfo array const formDataWithUserInfo = { @@ -614,9 +603,10 @@ const Addproperty = () => { totalcashAdjustments: totalcashAdjustments, totalcashrequiredonsettlement:totalcashrequiredonsettlement, totalincidentalCost: totalincidentalCost, - totalutilMaintenanceCost: totalutilMaintenanceCost, + totalcarryCosts: totalcarryCosts, totalrenovationCost: totalrenovationCost, - costsAfterPropertyAcquisition: costsAfterPropertyAcquisition, + totalRenovationsandHoldingCost: totalRenovationsandHoldingCost, + totalCoststoBuyAtoB: totalCoststoBuyAtoB, }; // Check if propertyTaxInfo is an array and has values @@ -2173,8 +2163,6 @@ Renovation Risk className="form-control" name="totalcashrequiredonsettlement" value={calculateTotalCashRequiredonSettlement()} - - readOnly style={{ borderColor: "#fda417", // Custom border color for the input field @@ -2322,7 +2310,7 @@ Renovation Risk Carry Costs: - {formData.utilMaintenance.map((cost, index) => ( + {formData.carryCosts.map((cost, index) => (
- handleutilMaintenanceTitle( + handlecarryCostsTitle( index, "title", e.target.value @@ -2348,7 +2336,7 @@ Renovation Risk }`} // Apply 'is-invalid' class when invalid value={cost.price} onChange={(e) => - handleutilMaintenanceCostChange(e, index) + handlecarryCostsChange(e, index) } // Use a new handler for price validation placeholder="Price" style={{ textAlign: "right" }} @@ -2363,7 +2351,7 @@ Renovation Risk