diff --git a/assets/index-HiftRNyy.js b/assets/index-HiftRNyy.js new file mode 100644 index 0000000..5a44097 --- /dev/null +++ b/assets/index-HiftRNyy.js @@ -0,0 +1,68 @@ +var pp=Object.defineProperty;var hp=(e,t,n)=>t in e?pp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yr=(e,t,n)=>(hp(e,typeof t!="symbol"?t+"":t,n),n);function mc(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gc={exports:{}},Co={},yc={exports:{}},Q={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var dl=Symbol.for("react.element"),mp=Symbol.for("react.portal"),vp=Symbol.for("react.fragment"),gp=Symbol.for("react.strict_mode"),yp=Symbol.for("react.profiler"),wp=Symbol.for("react.provider"),xp=Symbol.for("react.context"),Sp=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),kp=Symbol.for("react.memo"),Cp=Symbol.for("react.lazy"),Bu=Symbol.iterator;function Pp(e){return e===null||typeof e!="object"?null:(e=Bu&&e[Bu]||e["@@iterator"],typeof e=="function"?e:null)}var wc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xc=Object.assign,Sc={};function dr(e,t,n){this.props=e,this.context=t,this.refs=Sc,this.updater=n||wc}dr.prototype.isReactComponent={};dr.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")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ec(){}Ec.prototype=dr.prototype;function Ra(e,t,n){this.props=e,this.context=t,this.refs=Sc,this.updater=n||wc}var Na=Ra.prototype=new Ec;Na.constructor=Ra;xc(Na,dr.prototype);Na.isPureReactComponent=!0;var Vu=Array.isArray,kc=Object.prototype.hasOwnProperty,La={current:null},Cc={key:!0,ref:!0,__self:!0,__source:!0};function Pc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)kc.call(t,r)&&!Cc.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,ee=D[G];if(0>>1;Gl(lt,V))Del(zt,lt)?(D[G]=zt,D[De]=V,G=De):(D[G]=lt,D[ke]=V,G=ke);else if(Del(zt,V))D[G]=zt,D[De]=V,G=De;else break e}}return A}function l(D,A){var V=D.sortIndex-A.sortIndex;return V!==0?V:D.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var u=[],s=[],c=1,p=null,m=3,S=!1,w=!1,x=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(D){for(var A=n(s);A!==null;){if(A.callback===null)r(s);else if(A.startTime<=D)r(s),A.sortIndex=A.expirationTime,t(u,A);else break;A=n(s)}}function E(D){if(x=!1,h(D),!w)if(n(u)!==null)w=!0,Mt(L);else{var A=n(s);A!==null&&re(E,A.startTime-D)}}function L(D,A){w=!1,x&&(x=!1,f(T),T=-1),S=!0;var V=m;try{for(h(A),p=n(u);p!==null&&(!(p.expirationTime>A)||D&&!X());){var G=p.callback;if(typeof G=="function"){p.callback=null,m=p.priorityLevel;var ee=G(p.expirationTime<=A);A=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),h(A)}else r(u);p=n(u)}if(p!==null)var pt=!0;else{var ke=n(s);ke!==null&&re(E,ke.startTime-A),pt=!1}return pt}finally{p=null,m=V,S=!1}}var v=!1,R=null,T=-1,z=5,F=-1;function X(){return!(e.unstable_now()-FD||125G?(D.sortIndex=V,t(s,D),n(u)===null&&D===n(s)&&(x?(f(T),T=-1):x=!0,re(E,V-G))):(D.sortIndex=ee,t(u,D),w||S||(w=!0,Mt(L))),D},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(D){var A=m;return function(){var V=m;m=A;try{return D.apply(this,arguments)}finally{m=V}}}})(Lc);Nc.exports=Lc;var Up=Nc.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Tc=P,Ke=Up;function N(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"),Ni=Object.prototype.hasOwnProperty,Ap=/^[: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]*$/,Hu={},Wu={};function Bp(e){return Ni.call(Wu,e)?!0:Ni.call(Hu,e)?!1:Ap.test(e)?Wu[e]=!0:(Hu[e]=!0,!1)}function Vp(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 $p(e,t,n,r){if(t===null||typeof t>"u"||Vp(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 Oe(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Oe(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){Re[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ja=/[\-:]([a-z])/g;function Da(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(ja,Da);Re[t]=new Oe(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(ja,Da);Re[t]=new Oe(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(ja,Da);Re[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ma(e,t,n,r){var l=Re.hasOwnProperty(t)?Re[t]:null;(l!==null?l.type!==0:r||!(2a||l[i]!==o[a]){var u=` +`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=a);break}}}finally{Jo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function Hp(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=Zo(e.type,!1),e;case 11:return e=Zo(e.type.render,!1),e;case 1:return e=Zo(e.type,!0),e;default:return""}}function Di(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 Un:return"Fragment";case Fn:return"Portal";case Li:return"Profiler";case za:return"StrictMode";case Ti:return"Suspense";case ji:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mc:return(e.displayName||"Context")+".Consumer";case Dc:return(e._context.displayName||"Context")+".Provider";case Ia:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Oa:return t=e.displayName||null,t!==null?t:Di(e.type)||"Memo";case Bt:t=e._payload,e=e._init;try{return Di(e(t))}catch{}}return null}function Wp(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 Di(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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ic(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qp(e){var t=Ic(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 l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pl(e){e._valueTracker||(e._valueTracker=Qp(e))}function Oc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ic(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 Mi(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ku(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nn(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 Fc(e,t){t=t.checked,t!=null&&Ma(e,"checked",t,!1)}function zi(e,t){Fc(e,t);var n=nn(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")?Ii(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ii(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Yu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var 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 Ii(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Or={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},Kp=["Webkit","ms","Moz","O"];Object.keys(Or).forEach(function(e){Kp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Or[t]=Or[e]})});function Vc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Or.hasOwnProperty(e)&&Or[e]?(""+t).trim():t+"px"}function $c(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Vc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Yp=ue({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 Ui(e,t){if(t){if(Yp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Ai(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 Bi=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vi=null,qn=null,bn=null;function Ju(e){if(e=hl(e)){if(typeof Vi!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Lo(t),Vi(e.stateNode,e.type,t))}}function Hc(e){qn?bn?bn.push(e):bn=[e]:qn=e}function Wc(){if(qn){var e=qn,t=bn;if(bn=qn=null,Ju(e),t)for(e=0;e>>=0,e===0?32:31-(lh(e)/oh|0)|0}var Rl=64,Nl=4194304;function zr(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 no(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=zr(a):(o&=i,o!==0&&(r=zr(o)))}else i=n&~l,i!==0?r=zr(i):o!==0&&(r=zr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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 fl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function sh(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=Ur),os=" ",is=!1;function cd(e,t){switch(e){case"keyup":return Fh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function Ah(e,t){switch(e){case"compositionend":return dd(t);case"keypress":return t.which!==32?null:(is=!0,os);case"textInput":return e=t.data,e===os&&is?null:e;default:return null}}function Bh(e,t){if(An)return e==="compositionend"||!Qa&&cd(e,t)?(e=ud(),Hl=$a=Wt=null,An=!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=cs(n)}}function md(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?md(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vd(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function Ka(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 Gh(e){var t=vd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&md(n.ownerDocument.documentElement,n)){if(r!==null&&Ka(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 l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ds(n,o);var i=ds(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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,Bn=null,Yi=null,Br=null,Xi=!1;function fs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xi||Bn==null||Bn!==ql(r)||(r=Bn,"selectionStart"in r&&Ka(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}),Br&&br(Br,r)||(Br=r,r=oo(Yi,"onSelect"),0Hn||(e.current=ea[Hn],ea[Hn]=null,Hn--)}function b(e,t){Hn++,ea[Hn]=e.current,e.current=t}var rn={},je=un(rn),Ae=un(!1),kn=rn;function lr(e,t){var n=e.type.contextTypes;if(!n)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Be(e){return e=e.childContextTypes,e!=null}function ao(){ne(Ae),ne(je)}function ws(e,t,n){if(je.current!==rn)throw Error(N(168));b(je,t),b(Ae,n)}function Pd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Wp(e)||"Unknown",l));return ue({},n,r)}function uo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,kn=je.current,b(je,e),b(Ae,Ae.current),!0}function xs(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Pd(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,ne(Ae),ne(je),b(je,e)):ne(Ae),b(Ae,n)}var St=null,To=!1,di=!1;function _d(e){St===null?St=[e]:St.push(e)}function am(e){To=!0,_d(e)}function sn(){if(!di&&St!==null){di=!0;var e=0,t=J;try{var n=St;for(J=1;e>=i,l-=i,Et=1<<32-ct(t)+l|n<T?(z=R,R=null):z=R.sibling;var F=m(f,R,h[T],E);if(F===null){R===null&&(R=z);break}e&&R&&F.alternate===null&&t(f,R),d=o(F,d,T),v===null?L=F:v.sibling=F,v=F,R=z}if(T===h.length)return n(f,R),oe&&hn(f,T),L;if(R===null){for(;TT?(z=R,R=null):z=R.sibling;var X=m(f,R,F.value,E);if(X===null){R===null&&(R=z);break}e&&R&&X.alternate===null&&t(f,R),d=o(X,d,T),v===null?L=X:v.sibling=X,v=X,R=z}if(F.done)return n(f,R),oe&&hn(f,T),L;if(R===null){for(;!F.done;T++,F=h.next())F=p(f,F.value,E),F!==null&&(d=o(F,d,T),v===null?L=F:v.sibling=F,v=F);return oe&&hn(f,T),L}for(R=r(f,R);!F.done;T++,F=h.next())F=S(R,f,T,F.value,E),F!==null&&(e&&F.alternate!==null&&R.delete(F.key===null?T:F.key),d=o(F,d,T),v===null?L=F:v.sibling=F,v=F);return e&&R.forEach(function(ve){return t(f,ve)}),oe&&hn(f,T),L}function _(f,d,h,E){if(typeof h=="object"&&h!==null&&h.type===Un&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Cl:e:{for(var L=h.key,v=d;v!==null;){if(v.key===L){if(L=h.type,L===Un){if(v.tag===7){n(f,v.sibling),d=l(v,h.props.children),d.return=f,f=d;break e}}else if(v.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Bt&&Rs(L)===v.type){n(f,v.sibling),d=l(v,h.props),d.ref=Cr(f,v,h),d.return=f,f=d;break e}n(f,v);break}else t(f,v);v=v.sibling}h.type===Un?(d=En(h.props.children,f.mode,E,h.key),d.return=f,f=d):(E=Zl(h.type,h.key,h.props,null,f.mode,E),E.ref=Cr(f,d,h),E.return=f,f=E)}return i(f);case Fn:e:{for(v=h.key;d!==null;){if(d.key===v)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(f,d.sibling),d=l(d,h.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=wi(h,f.mode,E),d.return=f,f=d}return i(f);case Bt:return v=h._init,_(f,d,v(h._payload),E)}if(Mr(h))return w(f,d,h,E);if(wr(h))return x(f,d,h,E);Il(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,h),d.return=f,f=d):(n(f,d),d=yi(h,f.mode,E),d.return=f,f=d),i(f)):n(f,d)}return _}var ir=zd(!0),Id=zd(!1),ml={},wt=un(ml),rl=un(ml),ll=un(ml);function yn(e){if(e===ml)throw Error(N(174));return e}function tu(e,t){switch(b(ll,t),b(rl,e),b(wt,ml),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fi(t,e)}ne(wt),b(wt,t)}function ar(){ne(wt),ne(rl),ne(ll)}function Od(e){yn(ll.current);var t=yn(wt.current),n=Fi(t,e.type);t!==n&&(b(rl,e),b(wt,n))}function nu(e){rl.current===e&&(ne(wt),ne(rl))}var ie=un(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fi=[];function ru(){for(var e=0;en?n:4,e(!0);var r=pi.transition;pi.transition={};try{e(!1),t()}finally{J=n,pi.transition=r}}function qd(){return rt().memoizedState}function dm(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))ef(t,n);else if(n=Td(e,t,n,r),n!==null){var l=ze();dt(n,e,r,l),tf(n,t,r)}}function fm(e,t,n){var r=qt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))ef(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,ft(a,i)){var u=t.interleaved;u===null?(l.next=l,ba(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Td(e,t,l,r),n!==null&&(l=ze(),dt(n,e,r,l),tf(n,t,r))}}function bd(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function ef(e,t){Vr=vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function tf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Aa(e,n)}}var go={readContext:nt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},pm={readContext:nt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Ls,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,Yd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();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=dm.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:Ns,useDebugValue:uu,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=Ns(!1),t=e[0];return e=cm.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,l=vt();if(oe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ee===null)throw Error(N(349));Pn&30||Ad(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ls(Vd.bind(null,r,o,e),[e]),r.flags|=2048,al(9,Bd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ee.identifierPrefix;if(oe){var n=kt,r=Et;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ol++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[gt]=t,e[nl]=r,df(e,t,!1,!1),t.stateNode=e;e:{switch(i=Ai(n,r),n){case"dialog":te("cancel",e),te("close",e),l=r;break;case"iframe":case"object":case"embed":te("load",e),l=r;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,r=!0,Pr(o,!1),t.lanes=4194304)}else{if(!r)if(e=mo(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!oe)return Le(t),null}else 2*pe()-o.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=pe(),t.sibling=null,n=ie.current,b(ie,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return hu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?He&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function Sm(e,t){switch(Xa(t),t.tag){case 1:return Be(t.type)&&ao(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),ne(Ae),ne(je),ru(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nu(t),null;case 13:if(ne(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));or()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(ie),null;case 4:return ar(),null;case 10:return qa(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var Fl=!1,Te=!1,Em=typeof WeakSet=="function"?WeakSet:Set,M=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function fa(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Us=!1;function km(e,t){if(Gi=ro,e=vd(),Ka(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 l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,u=-1,s=0,c=0,p=e,m=null;t:for(;;){for(var S;p!==n||l!==0&&p.nodeType!==3||(a=i+l),p!==o||r!==0&&p.nodeType!==3||(u=i+r),p.nodeType===3&&(i+=p.nodeValue.length),(S=p.firstChild)!==null;)m=p,p=S;for(;;){if(p===e)break t;if(m===n&&++s===l&&(a=i),m===o&&++c===r&&(u=i),(S=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ji={focusedElem:e,selectionRange:n},ro=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var x=w.memoizedProps,_=w.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:it(t.type,x),_);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(E){ce(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=Us,Us=!1,w}function $r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&fa(t,n,o)}l=l.next}while(l!==r)}}function Mo(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 pa(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 hf(e){var t=e.alternate;t!==null&&(e.alternate=null,hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[nl],delete t[bi],delete t[om],delete t[im])),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 mf(e){return e.tag===5||e.tag===3||e.tag===4}function As(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mf(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 ha(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=io));else if(r!==4&&(e=e.child,e!==null))for(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}function ma(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(ma(e,t,n),e=e.sibling;e!==null;)ma(e,t,n),e=e.sibling}var Pe=null,at=!1;function Ut(e,t,n){for(n=n.child;n!==null;)vf(e,t,n),n=n.sibling}function vf(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Po,n)}catch{}switch(n.tag){case 5:Te||Yn(n,t);case 6:var r=Pe,l=at;Pe=null,Ut(e,t,n),Pe=r,at=l,Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?ci(e.parentNode,n):e.nodeType===1&&ci(e,n),Zr(e)):ci(Pe,n.stateNode));break;case 4:r=Pe,l=at,Pe=n.stateNode.containerInfo,at=!0,Ut(e,t,n),Pe=r,at=l;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&fa(n,t,i),l=l.next}while(l!==r)}Ut(e,t,n);break;case 1:if(!Te&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}Ut(e,t,n);break;case 21:Ut(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Ut(e,t,n),Te=r):Ut(e,t,n);break;default:Ut(e,t,n)}}function Bs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Em),t.forEach(function(r){var l=Dm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pm(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,xo=0,Y&6)throw Error(N(331));var l=Y;for(Y|=4,M=e.current;M!==null;){var o=M,i=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var u=0;upe()-fu?Sn(e,0):du|=n),Ve(e,t)}function Cf(e,t){t===0&&(e.mode&1?(t=Nl,Nl<<=1,!(Nl&130023424)&&(Nl=4194304)):t=1);var n=ze();e=Lt(e,t),e!==null&&(fl(e,t,n),Ve(e,n))}function jm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cf(e,n)}function Dm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Cf(e,n)}var Pf;Pf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ae.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,wm(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,oe&&t.flags&1048576&&Rd(t,co,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var l=lr(t,je.current);tr(t,n),l=ou(null,t,r,e,l,n);var o=iu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(o=!0,uo(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,eu(t),l.updater=jo,t.stateNode=l,l._reactInternals=t,oa(t,r,e,n),t=ua(null,t,r,!0,o,n)):(t.tag=0,oe&&o&&Ya(t),Me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=zm(r),e=it(r,e),l){case 0:t=aa(null,t,r,e,n);break e;case 1:t=Is(null,t,r,e,n);break e;case 11:t=Ms(null,t,r,e,n);break e;case 14:t=zs(null,t,r,it(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:it(r,l),aa(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:it(r,l),Is(e,t,r,l,n);case 3:e:{if(uf(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,l=o.element,jd(e,t),ho(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=ur(Error(N(423)),t),t=Os(e,t,r,n,l);break e}else if(r!==l){l=ur(Error(N(424)),t),t=Os(e,t,r,n,l);break e}else for(We=Gt(t.stateNode.containerInfo.firstChild),Qe=t,oe=!0,st=null,n=Id(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(or(),r===l){t=Tt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return Od(t),e===null&&na(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Zi(r,l)?i=null:o!==null&&Zi(r,o)&&(t.flags|=32),af(e,t),Me(e,t,i,n),t.child;case 6:return e===null&&na(t),null;case 13:return sf(e,t,n);case 4:return tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:it(r,l),Ms(e,t,r,l,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,b(fo,r._currentValue),r._currentValue=i,o!==null)if(ft(o.value,i)){if(o.children===l.children&&!Ae.current){t=Tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=Pt(-1,n&-n),u.tag=2;var s=o.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ra(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(N(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),ra(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tr(t,n),l=nt(l),r=r(l),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,l=it(r,t.pendingProps),l=it(r.type,l),zs(e,t,r,l,n);case 15:return lf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:it(r,l),Xl(e,t),t.tag=1,Be(r)?(e=!0,uo(t)):e=!1,tr(t,n),Md(t,r,l),oa(t,r,l,n),ua(null,t,r,!0,e,n);case 19:return cf(e,t,n);case 22:return of(e,t,n)}throw Error(N(156,t.tag))};function _f(e,t){return Zc(e,t)}function Mm(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 et(e,t,n,r){return new Mm(e,t,n,r)}function vu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zm(e){if(typeof e=="function")return vu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ia)return 11;if(e===Oa)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=et(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 Zl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")vu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Un:return En(n.children,l,o,t);case za:i=8,l|=8;break;case Li:return e=et(12,n,t,l|2),e.elementType=Li,e.lanes=o,e;case Ti:return e=et(13,n,t,l),e.elementType=Ti,e.lanes=o,e;case ji:return e=et(19,n,t,l),e.elementType=ji,e.lanes=o,e;case zc:return Io(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dc:i=10;break e;case Mc:i=9;break e;case Ia:i=11;break e;case Oa:i=14;break e;case Bt:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=et(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function En(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function Io(e,t,n,r){return e=et(22,e,r,t),e.elementType=zc,e.lanes=n,e.stateNode={isHidden:!1},e}function yi(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function wi(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Im(e,t,n,r,l){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=bo(0),this.expirationTimes=bo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function gu(e,t,n,r,l,o,i,a,u){return e=new Im(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=et(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},eu(o),e}function Om(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Tf)}catch(e){console.error(e)}}Tf(),Rc.exports=Ye;var Su=Rc.exports;const jf=vc(Su),Vm=mc({__proto__:null,default:jf},[Su]);var Xs=Su;Ri.createRoot=Xs.createRoot,Ri.hydrateRoot=Xs.hydrateRoot;const Eu=P.createContext({isActive:!1,displayModal:()=>{},removeModal:()=>{}}),$m=({children:e})=>{const[t,n]=P.useState(!1),o={isActive:t,displayModal:()=>{n(!0)},removeModal:()=>{n(!1)}};return C.jsx(Eu.Provider,{value:o,children:e})};/** + * @remix-run/router v1.14.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Wm(){return Math.random().toString(36).substr(2,8)}function Js(e,t){return{usr:e.state,key:e.key,idx:t}}function sl(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dt(t):t,{state:n,key:t&&t.key||r||Wm()})}function Ln(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 Dt(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 Qm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,a=fe.Pop,u=null,s=c();s==null&&(s=0,i.replaceState(de({},i.state,{idx:s}),""));function c(){return(i.state||{idx:null}).idx}function p(){a=fe.Pop;let _=c(),f=_==null?null:_-s;s=_,u&&u({action:a,location:x.location,delta:f})}function m(_,f){a=fe.Push;let d=sl(x.location,_,f);n&&n(d,_),s=c()+1;let h=Js(d,s),E=x.createHref(d);try{i.pushState(h,"",E)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(E)}o&&u&&u({action:a,location:x.location,delta:1})}function S(_,f){a=fe.Replace;let d=sl(x.location,_,f);n&&n(d,_),s=c();let h=Js(d,s),E=x.createHref(d);i.replaceState(h,"",E),o&&u&&u({action:a,location:x.location,delta:0})}function w(_){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof _=="string"?_:Ln(_);return H(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let x={get action(){return a},get location(){return e(l,i)},listen(_){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Gs,p),u=_,()=>{l.removeEventListener(Gs,p),u=null}},createHref(_){return t(l,_)},createURL:w,encodeLocation(_){let f=w(_);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:S,go(_){return i.go(_)}};return x}var se;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(se||(se={}));const Km=new Set(["lazy","caseSensitive","path","id","index","children"]);function Ym(e){return e.index===!0}function xa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,o)=>{let i=[...n,o],a=typeof l.id=="string"?l.id:i.join("-");if(H(l.index!==!0||!l.children,"Cannot specify children on an index route"),H(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Ym(l)){let u=de({},l,t(l),{id:a});return r[a]=u,u}else{let u=de({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=xa(l.children,t,i,r)),u}})}function Gn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dt(t):t,l=ln(r.pathname||"/",n);if(l==null)return null;let o=Df(e);Gm(o);let i=null;for(let a=0;i==null&&a{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(H(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 s=_t([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(H(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Df(o.children,t,c,s)),!(o.path==null&&!o.index)&&t.push({path:s,score:nv(s,o.index),routesMeta:c})};return e.forEach((o,i)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,i);else for(let u of Mf(o.path))l(o,i,u)}),t}function Mf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=Mf(r.join("/")),a=[];return a.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...i),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Gm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Jm=/^:\w+$/,Zm=3,qm=2,bm=1,ev=10,tv=-2,Zs=e=>e==="*";function nv(e,t){let n=e.split("/"),r=n.length;return n.some(Zs)&&(r+=tv),t&&(r+=qm),n.filter(l=>!Zs(l)).reduce((l,o)=>l+(Jm.test(o)?Zm:o===""?bm:ev),r)}function rv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function lv(e,t){let{routesMeta:n}=e,r={},l="/",o=[];for(let i=0;i{let{paramName:m,isOptional:S}=c;if(m==="*"){let x=a[p]||"";i=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const w=a[p];return S&&!w?s[m]=void 0:s[m]=av(w||"",m),s},{}),pathname:o,pathnameBase:i,pattern:e}}function ov(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nn(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function iv(e){try{return decodeURI(e)}catch(t){return Nn(!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 av(e,t){try{return decodeURIComponent(e)}catch(n){return Nn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ln(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 uv(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Dt(e):e;return{pathname:n?n.startsWith("/")?n:sv(n,t):t,search:dv(r),hash:fv(l)}}function sv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function xi(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 zf(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ku(e,t){let n=zf(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Cu(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Dt(e):(l=de({},e),H(!l.pathname||!l.pathname.includes("?"),xi("?","pathname","search",l)),H(!l.pathname||!l.pathname.includes("#"),xi("#","pathname","hash",l)),H(!l.search||!l.search.includes("#"),xi("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,a;if(i==null)a=n;else{let p=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}a=p>=0?t[p]:"/"}let u=uv(l,a),s=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const _t=e=>e.join("/").replace(/\/\/+/g,"/"),cv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Pu{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function If(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Of=["post","put","patch","delete"],pv=new Set(Of),hv=["get",...Of],mv=new Set(hv),vv=new Set([301,302,303,307,308]),gv=new Set([307,308]),Si={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ff=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Uf="remix-router-transitions";function xv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;H(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;l=y=>({hasErrorBoundary:g(y)})}else l=wv;let o={},i=xa(e.routes,l,void 0,o),a,u=e.basename||"/",s=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,p=new Set,m=null,S=null,w=null,x=e.hydrationData!=null,_=Gn(i,e.history.location,u),f=null;if(_==null){let g=Ze(404,{pathname:e.history.location.pathname}),{matches:y,route:k}=oc(i);_=y,f={[k.id]:g}}let d,h=_.some(g=>g.route.lazy),E=_.some(g=>g.route.loader);if(h)d=!1;else if(!E)d=!0;else if(s.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,y=e.hydrationData?e.hydrationData.errors:null;d=_.every(k=>k.route.loader&&k.route.loader.hydrate!==!0&&(g&&g[k.route.id]!==void 0||y&&y[k.route.id]!==void 0))}else d=e.hydrationData!=null;let L,v={historyAction:e.history.action,location:e.history.location,matches:_,initialized:d,navigation:Si,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},R=fe.Pop,T=!1,z,F=!1,X=new Map,ve=null,he=!1,Ge=!1,Dn=[],Mt=[],re=new Map,D=0,A=-1,V=new Map,G=new Set,ee=new Map,pt=new Map,ke=new Set,lt=new Map,De=new Map,zt=!1;function qf(){if(c=e.history.listen(g=>{let{action:y,location:k,delta:j}=g;if(zt){zt=!1;return}Nn(De.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Fu({currentLocation:v.location,nextLocation:k,historyAction:y});if(I&&j!=null){zt=!0,e.history.go(j*-1),xl(I,{state:"blocked",location:k,proceed(){xl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(j)},reset(){let W=new Map(v.blockers);W.set(I,Rr),$e({blockers:W})}});return}return fn(y,k)}),n){jv(t,X);let g=()=>Dv(t,X);t.addEventListener("pagehide",g),ve=()=>t.removeEventListener("pagehide",g)}return v.initialized||fn(fe.Pop,v.location,{initialHydration:!0}),L}function bf(){c&&c(),ve&&ve(),p.clear(),z&&z.abort(),v.fetchers.forEach((g,y)=>wl(y)),v.blockers.forEach((g,y)=>Ou(y))}function ep(g){return p.add(g),()=>p.delete(g)}function $e(g,y){y===void 0&&(y={}),v=de({},v,g);let k=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((I,W)=>{I.state==="idle"&&(ke.has(W)?j.push(W):k.push(W))}),[...p].forEach(I=>I(v,{deletedFetchers:j,unstable_viewTransitionOpts:y.viewTransitionOpts,unstable_flushSync:y.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(I=>v.fetchers.delete(I)),j.forEach(I=>wl(I)))}function mr(g,y,k){var j,I;let{flushSync:W}=k===void 0?{}:k,B=v.actionData!=null&&v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=g.state)==null?void 0:j._isRedirect)!==!0,U;y.actionData?Object.keys(y.actionData).length>0?U=y.actionData:U=null:B?U=v.actionData:U=null;let O=y.loaderData?lc(v.loaderData,y.loaderData,y.matches||[],y.errors):v.loaderData,K=v.blockers;K.size>0&&(K=new Map(K),K.forEach((q,Ce)=>K.set(Ce,Rr)));let we=T===!0||v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&((I=g.state)==null?void 0:I._isRedirect)!==!0;a&&(i=a,a=void 0),he||R===fe.Pop||(R===fe.Push?e.history.push(g,g.state):R===fe.Replace&&e.history.replace(g,g.state));let $;if(R===fe.Pop){let q=X.get(v.location.pathname);q&&q.has(g.pathname)?$={currentLocation:v.location,nextLocation:g}:X.has(g.pathname)&&($={currentLocation:g,nextLocation:v.location})}else if(F){let q=X.get(v.location.pathname);q?q.add(g.pathname):(q=new Set([g.pathname]),X.set(v.location.pathname,q)),$={currentLocation:v.location,nextLocation:g}}$e(de({},y,{actionData:U,loaderData:O,historyAction:R,location:g,initialized:!0,navigation:Si,revalidation:"idle",restoreScrollPosition:Au(g,y.matches||v.matches),preventScrollReset:we,blockers:K}),{viewTransitionOpts:$,flushSync:W===!0}),R=fe.Pop,T=!1,F=!1,he=!1,Ge=!1,Dn=[],Mt=[]}async function Tu(g,y){if(typeof g=="number"){e.history.go(g);return}let k=Ea(v.location,v.matches,u,s.v7_prependBasename,g,s.v7_relativeSplatPath,y==null?void 0:y.fromRouteId,y==null?void 0:y.relative),{path:j,submission:I,error:W}=qs(s.v7_normalizeFormMethod,!1,k,y),B=v.location,U=sl(v.location,j,y&&y.state);U=de({},U,e.history.encodeLocation(U));let O=y&&y.replace!=null?y.replace:void 0,K=fe.Push;O===!0?K=fe.Replace:O===!1||I!=null&&ut(I.formMethod)&&I.formAction===v.location.pathname+v.location.search&&(K=fe.Replace);let we=y&&"preventScrollReset"in y?y.preventScrollReset===!0:void 0,$=(y&&y.unstable_flushSync)===!0,q=Fu({currentLocation:B,nextLocation:U,historyAction:K});if(q){xl(q,{state:"blocked",location:U,proceed(){xl(q,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Tu(g,y)},reset(){let Ce=new Map(v.blockers);Ce.set(q,Rr),$e({blockers:Ce})}});return}return await fn(K,U,{submission:I,pendingError:W,preventScrollReset:we,replace:y&&y.replace,enableViewTransition:y&&y.unstable_viewTransition,flushSync:$})}function tp(){if($o(),$e({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){fn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}fn(R||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function fn(g,y,k){z&&z.abort(),z=null,R=g,he=(k&&k.startUninterruptedRevalidation)===!0,cp(v.location,v.matches),T=(k&&k.preventScrollReset)===!0,F=(k&&k.enableViewTransition)===!0;let j=a||i,I=k&&k.overrideNavigation,W=Gn(j,y,u),B=(k&&k.flushSync)===!0;if(!W){let Ce=Ze(404,{pathname:y.pathname}),{matches:Je,route:xe}=oc(j);Ho(),mr(y,{matches:Je,loaderData:{},errors:{[xe.id]:Ce}},{flushSync:B});return}if(v.initialized&&!Ge&&Pv(v.location,y)&&!(k&&k.submission&&ut(k.submission.formMethod))){mr(y,{matches:W},{flushSync:B});return}z=new AbortController;let U=Lr(e.history,y,z.signal,k&&k.submission),O,K;if(k&&k.pendingError)K={[Qr(W).route.id]:k.pendingError};else if(k&&k.submission&&ut(k.submission.formMethod)){let Ce=await np(U,y,k.submission,W,{replace:k.replace,flushSync:B});if(Ce.shortCircuited)return;O=Ce.pendingActionData,K=Ce.pendingActionError,I=Ei(y,k.submission),B=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:we,loaderData:$,errors:q}=await rp(U,y,W,I,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,B,O,K);we||(z=null,mr(y,de({matches:W},O?{actionData:O}:{},{loaderData:$,errors:q})))}async function np(g,y,k,j,I){I===void 0&&(I={}),$o();let W=Lv(y,k);$e({navigation:W},{flushSync:I.flushSync===!0});let B,U=Ca(j,y);if(!U.route.action&&!U.route.lazy)B={type:se.error,error:Ze(405,{method:g.method,pathname:y.pathname,routeId:U.route.id})};else if(B=await Nr("action",g,U,j,o,l,u,s.v7_relativeSplatPath),g.signal.aborted)return{shortCircuited:!0};if(xn(B)){let O;return I&&I.replace!=null?O=I.replace:O=B.location===v.location.pathname+v.location.search,await vr(v,B,{submission:k,replace:O}),{shortCircuited:!0}}if(Jn(B)){let O=Qr(j,U.route.id);return(I&&I.replace)!==!0&&(R=fe.Push),{pendingActionData:{},pendingActionError:{[O.route.id]:B.error}}}if(wn(B))throw Ze(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:B.data}}}async function rp(g,y,k,j,I,W,B,U,O,K,we){let $=j||Ei(y,I),q=I||W||uc($),Ce=a||i,[Je,xe]=bs(e.history,v,k,q,y,s.v7_partialHydration&&U===!0,Ge,Dn,Mt,ke,ee,G,Ce,u,K,we);if(Ho(Z=>!(k&&k.some(le=>le.route.id===Z))||Je&&Je.some(le=>le.route.id===Z)),A=++D,Je.length===0&&xe.length===0){let Z=zu();return mr(y,de({matches:k,loaderData:{},errors:we||null},K?{actionData:K}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:O}),{shortCircuited:!0}}if(!he&&(!s.v7_partialHydration||!U)){xe.forEach(le=>{let ht=v.fetchers.get(le.key),El=Tr(void 0,ht?ht.data:void 0);v.fetchers.set(le.key,El)});let Z=K||v.actionData;$e(de({navigation:$},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},xe.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:O})}xe.forEach(Z=>{re.has(Z.key)&&Ot(Z.key),Z.controller&&re.set(Z.key,Z.controller)});let Mn=()=>xe.forEach(Z=>Ot(Z.key));z&&z.signal.addEventListener("abort",Mn);let{results:Wo,loaderResults:zn,fetcherResults:Ft}=await ju(v.matches,k,Je,xe,g);if(g.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Mn),xe.forEach(Z=>re.delete(Z.key));let pn=ic(Wo);if(pn){if(pn.idx>=Je.length){let Z=xe[pn.idx-Je.length].key;G.add(Z)}return await vr(v,pn.result,{replace:B}),{shortCircuited:!0}}let{loaderData:Qo,errors:Ko}=rc(v,k,Je,zn,we,xe,Ft,lt);lt.forEach((Z,le)=>{Z.subscribe(ht=>{(ht||Z.done)&<.delete(le)})});let Yo=zu(),In=Iu(A),Sl=Yo||In||xe.length>0;return de({loaderData:Qo,errors:Ko},Sl?{fetchers:new Map(v.fetchers)}:{})}function lp(g,y,k,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(g)&&Ot(g);let I=(j&&j.unstable_flushSync)===!0,W=a||i,B=Ea(v.location,v.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,y,j==null?void 0:j.relative),U=Gn(W,B,u);if(!U){gr(g,y,Ze(404,{pathname:B}),{flushSync:I});return}let{path:O,submission:K,error:we}=qs(s.v7_normalizeFormMethod,!0,B,j);if(we){gr(g,y,we,{flushSync:I});return}let $=Ca(U,O);if(T=(j&&j.preventScrollReset)===!0,K&&ut(K.formMethod)){op(g,y,O,$,U,I,K);return}ee.set(g,{routeId:y,path:O}),ip(g,y,O,$,U,I,K)}async function op(g,y,k,j,I,W,B){if($o(),ee.delete(g),!j.route.action&&!j.route.lazy){let le=Ze(405,{method:B.formMethod,pathname:k,routeId:y});gr(g,y,le,{flushSync:W});return}let U=v.fetchers.get(g);It(g,Tv(B,U),{flushSync:W});let O=new AbortController,K=Lr(e.history,k,O.signal,B);re.set(g,O);let we=D,$=await Nr("action",K,j,I,o,l,u,s.v7_relativeSplatPath);if(K.signal.aborted){re.get(g)===O&&re.delete(g);return}if(s.v7_fetcherPersist&&ke.has(g)){if(xn($)||Jn($)){It(g,At(void 0));return}}else{if(xn($))if(re.delete(g),A>we){It(g,At(void 0));return}else return G.add(g),It(g,Tr(B)),vr(v,$,{fetcherSubmission:B});if(Jn($)){gr(g,y,$.error);return}}if(wn($))throw Ze(400,{type:"defer-action"});let q=v.navigation.location||v.location,Ce=Lr(e.history,q,O.signal),Je=a||i,xe=v.navigation.state!=="idle"?Gn(Je,v.navigation.location,u):v.matches;H(xe,"Didn't find any matches after fetcher action");let Mn=++D;V.set(g,Mn);let Wo=Tr(B,$.data);v.fetchers.set(g,Wo);let[zn,Ft]=bs(e.history,v,xe,B,q,!1,Ge,Dn,Mt,ke,ee,G,Je,u,{[j.route.id]:$.data},void 0);Ft.filter(le=>le.key!==g).forEach(le=>{let ht=le.key,El=v.fetchers.get(ht),fp=Tr(void 0,El?El.data:void 0);v.fetchers.set(ht,fp),re.has(ht)&&Ot(ht),le.controller&&re.set(ht,le.controller)}),$e({fetchers:new Map(v.fetchers)});let pn=()=>Ft.forEach(le=>Ot(le.key));O.signal.addEventListener("abort",pn);let{results:Qo,loaderResults:Ko,fetcherResults:Yo}=await ju(v.matches,xe,zn,Ft,Ce);if(O.signal.aborted)return;O.signal.removeEventListener("abort",pn),V.delete(g),re.delete(g),Ft.forEach(le=>re.delete(le.key));let In=ic(Qo);if(In){if(In.idx>=zn.length){let le=Ft[In.idx-zn.length].key;G.add(le)}return vr(v,In.result)}let{loaderData:Sl,errors:Z}=rc(v,v.matches,zn,Ko,void 0,Ft,Yo,lt);if(v.fetchers.has(g)){let le=At($.data);v.fetchers.set(g,le)}Iu(Mn),v.navigation.state==="loading"&&Mn>A?(H(R,"Expected pending action"),z&&z.abort(),mr(v.navigation.location,{matches:xe,loaderData:Sl,errors:Z,fetchers:new Map(v.fetchers)})):($e({errors:Z,loaderData:lc(v.loaderData,Sl,xe,Z),fetchers:new Map(v.fetchers)}),Ge=!1)}async function ip(g,y,k,j,I,W,B){let U=v.fetchers.get(g);It(g,Tr(B,U?U.data:void 0),{flushSync:W});let O=new AbortController,K=Lr(e.history,k,O.signal);re.set(g,O);let we=D,$=await Nr("loader",K,j,I,o,l,u,s.v7_relativeSplatPath);if(wn($)&&($=await Vf($,K.signal,!0)||$),re.get(g)===O&&re.delete(g),!K.signal.aborted){if(ke.has(g)){It(g,At(void 0));return}if(xn($))if(A>we){It(g,At(void 0));return}else{G.add(g),await vr(v,$);return}if(Jn($)){gr(g,y,$.error);return}H(!wn($),"Unhandled fetcher deferred data"),It(g,At($.data))}}async function vr(g,y,k){let{submission:j,fetcherSubmission:I,replace:W}=k===void 0?{}:k;y.revalidate&&(Ge=!0);let B=sl(g.location,y.location,{_isRedirect:!0});if(H(B,"Expected a location on the redirect navigation"),n){let q=!1;if(y.reloadDocument)q=!0;else if(Ff.test(y.location)){const Ce=e.history.createURL(y.location);q=Ce.origin!==t.location.origin||ln(Ce.pathname,u)==null}if(q){W?t.location.replace(y.location):t.location.assign(y.location);return}}z=null;let U=W===!0?fe.Replace:fe.Push,{formMethod:O,formAction:K,formEncType:we}=g.navigation;!j&&!I&&O&&K&&we&&(j=uc(g.navigation));let $=j||I;if(gv.has(y.status)&&$&&ut($.formMethod))await fn(U,B,{submission:de({},$,{formAction:y.location}),preventScrollReset:T});else{let q=Ei(B,j);await fn(U,B,{overrideNavigation:q,fetcherSubmission:I,preventScrollReset:T})}}async function ju(g,y,k,j,I){let W=await Promise.all([...k.map(O=>Nr("loader",I,O,y,o,l,u,s.v7_relativeSplatPath)),...j.map(O=>O.matches&&O.match&&O.controller?Nr("loader",Lr(e.history,O.path,O.controller.signal),O.match,O.matches,o,l,u,s.v7_relativeSplatPath):{type:se.error,error:Ze(404,{pathname:O.path})})]),B=W.slice(0,k.length),U=W.slice(k.length);return await Promise.all([ac(g,k,B,B.map(()=>I.signal),!1,v.loaderData),ac(g,j.map(O=>O.match),U,j.map(O=>O.controller?O.controller.signal:null),!0)]),{results:W,loaderResults:B,fetcherResults:U}}function $o(){Ge=!0,Dn.push(...Ho()),ee.forEach((g,y)=>{re.has(y)&&(Mt.push(y),Ot(y))})}function It(g,y,k){k===void 0&&(k={}),v.fetchers.set(g,y),$e({fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function gr(g,y,k,j){j===void 0&&(j={});let I=Qr(v.matches,y);wl(g),$e({errors:{[I.route.id]:k},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Du(g){return s.v7_fetcherPersist&&(pt.set(g,(pt.get(g)||0)+1),ke.has(g)&&ke.delete(g)),v.fetchers.get(g)||yv}function wl(g){let y=v.fetchers.get(g);re.has(g)&&!(y&&y.state==="loading"&&V.has(g))&&Ot(g),ee.delete(g),V.delete(g),G.delete(g),ke.delete(g),v.fetchers.delete(g)}function ap(g){if(s.v7_fetcherPersist){let y=(pt.get(g)||0)-1;y<=0?(pt.delete(g),ke.add(g)):pt.set(g,y)}else wl(g);$e({fetchers:new Map(v.fetchers)})}function Ot(g){let y=re.get(g);H(y,"Expected fetch controller: "+g),y.abort(),re.delete(g)}function Mu(g){for(let y of g){let k=Du(y),j=At(k.data);v.fetchers.set(y,j)}}function zu(){let g=[],y=!1;for(let k of G){let j=v.fetchers.get(k);H(j,"Expected fetcher: "+k),j.state==="loading"&&(G.delete(k),g.push(k),y=!0)}return Mu(g),y}function Iu(g){let y=[];for(let[k,j]of V)if(j0}function up(g,y){let k=v.blockers.get(g)||Rr;return De.get(g)!==y&&De.set(g,y),k}function Ou(g){v.blockers.delete(g),De.delete(g)}function xl(g,y){let k=v.blockers.get(g)||Rr;H(k.state==="unblocked"&&y.state==="blocked"||k.state==="blocked"&&y.state==="blocked"||k.state==="blocked"&&y.state==="proceeding"||k.state==="blocked"&&y.state==="unblocked"||k.state==="proceeding"&&y.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+y.state);let j=new Map(v.blockers);j.set(g,y),$e({blockers:j})}function Fu(g){let{currentLocation:y,nextLocation:k,historyAction:j}=g;if(De.size===0)return;De.size>1&&Nn(!1,"A router only supports one blocker at a time");let I=Array.from(De.entries()),[W,B]=I[I.length-1],U=v.blockers.get(W);if(!(U&&U.state==="proceeding")&&B({currentLocation:y,nextLocation:k,historyAction:j}))return W}function Ho(g){let y=[];return lt.forEach((k,j)=>{(!g||g(j))&&(k.cancel(),y.push(j),lt.delete(j))}),y}function sp(g,y,k){if(m=g,w=y,S=k||null,!x&&v.navigation===Si){x=!0;let j=Au(v.location,v.matches);j!=null&&$e({restoreScrollPosition:j})}return()=>{m=null,w=null,S=null}}function Uu(g,y){return S&&S(g,y.map(j=>Xm(j,v.loaderData)))||g.key}function cp(g,y){if(m&&w){let k=Uu(g,y);m[k]=w()}}function Au(g,y){if(m){let k=Uu(g,y),j=m[k];if(typeof j=="number")return j}return null}function dp(g){o={},a=xa(g,l,void 0,o)}return L={get basename(){return u},get future(){return s},get state(){return v},get routes(){return i},get window(){return t},initialize:qf,subscribe:ep,enableScrollRestoration:sp,navigate:Tu,fetch:lp,revalidate:tp,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:Du,deleteFetcher:ap,dispose:bf,getBlocker:up,deleteBlocker:Ou,_internalFetchControllers:re,_internalActiveDeferreds:lt,_internalSetRoutes:dp},L}function Sv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Ea(e,t,n,r,l,o,i,a){let u,s;if(i){u=[];for(let p of t)if(u.push(p),p.route.id===i){s=p;break}}else u=t,s=t[t.length-1];let c=Cu(l||".",ku(u,o),ln(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!_u(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:_t([n,c.pathname])),Ln(c)}function qs(e,t,n,r){if(!r||!Sv(r))return{path:n};if(r.formMethod&&!Nv(r.formMethod))return{path:n,error:Ze(405,{method:r.formMethod})};let l=()=>({path:n,error:Ze(400,{type:"invalid-body"})}),o=r.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),a=Bf(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ut(i))return l();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,w)=>{let[x,_]=w;return""+S+x+"="+_+` +`},""):String(r.body);return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!ut(i))return l();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:i,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return l()}}}H(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=ka(r.formData),s=r.formData;else if(r.body instanceof FormData)u=ka(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=nc(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=nc(u)}catch{return l()}let c={formMethod:i,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ut(c.formMethod))return{path:n,submission:c};let p=Dt(n);return t&&p.search&&_u(p.search)&&u.append("index",""),p.search="?"+u,{path:Ln(p),submission:c}}function Ev(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function bs(e,t,n,r,l,o,i,a,u,s,c,p,m,S,w,x){let _=x?Object.values(x)[0]:w?Object.values(w)[0]:void 0,f=e.createURL(t.location),d=e.createURL(l),h=x?Object.keys(x)[0]:void 0,L=Ev(n,h).filter((R,T)=>{let{route:z}=R;if(z.lazy)return!0;if(z.loader==null)return!1;if(o)return z.loader.hydrate?!0:t.loaderData[z.id]===void 0&&(!t.errors||t.errors[z.id]===void 0);if(kv(t.loaderData,t.matches[T],R)||a.some(ve=>ve===R.route.id))return!0;let F=t.matches[T],X=R;return ec(R,de({currentUrl:f,currentParams:F.params,nextUrl:d,nextParams:X.params},r,{actionResult:_,defaultShouldRevalidate:i||f.pathname+f.search===d.pathname+d.search||f.search!==d.search||Af(F,X)}))}),v=[];return c.forEach((R,T)=>{if(o||!n.some(he=>he.route.id===R.routeId)||s.has(T))return;let z=Gn(m,R.path,S);if(!z){v.push({key:T,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(T),X=Ca(z,R.path),ve=!1;p.has(T)?ve=!1:u.includes(T)?ve=!0:F&&F.state!=="idle"&&F.data===void 0?ve=i:ve=ec(X,de({currentUrl:f,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:_,defaultShouldRevalidate:i})),ve&&v.push({key:T,routeId:R.routeId,path:R.path,matches:z,match:X,controller:new AbortController})}),[L,v]}function kv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Af(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function ec(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function tc(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];H(l,"No route found in manifest");let o={};for(let i in r){let u=l[i]!==void 0&&i!=="hasErrorBoundary";Nn(!u,'Route "'+l.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!u&&!Km.has(i)&&(o[i]=r[i])}Object.assign(l,o),Object.assign(l,de({},t(l),{lazy:void 0}))}async function Nr(e,t,n,r,l,o,i,a,u){u===void 0&&(u={});let s,c,p,m=x=>{let _,f=new Promise((d,h)=>_=h);return p=()=>_(),t.signal.addEventListener("abort",p),Promise.race([x({request:t,params:n.params,context:u.requestContext}),f])};try{let x=n.route[e];if(n.route.lazy)if(x){let _,f=await Promise.all([m(x).catch(d=>{_=d}),tc(n.route,o,l)]);if(_)throw _;c=f[0]}else if(await tc(n.route,o,l),x=n.route[e],x)c=await m(x);else if(e==="action"){let _=new URL(t.url),f=_.pathname+_.search;throw Ze(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:se.data,data:void 0};else if(x)c=await m(x);else{let _=new URL(t.url),f=_.pathname+_.search;throw Ze(404,{pathname:f})}H(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(x){s=se.error,c=x}finally{p&&t.signal.removeEventListener("abort",p)}if(Rv(c)){let x=c.status;if(vv.has(x)){let f=c.headers.get("Location");if(H(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ff.test(f))f=Ea(new URL(t.url),r.slice(0,r.indexOf(n)+1),i,!0,f,a);else if(!u.isStaticRequest){let d=new URL(t.url),h=f.startsWith("//")?new URL(d.protocol+f):new URL(f),E=ln(h.pathname,i)!=null;h.origin===d.origin&&E&&(f=h.pathname+h.search+h.hash)}if(u.isStaticRequest)throw c.headers.set("Location",f),c;return{type:se.redirect,status:x,location:f,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===se.error?se.error:se.data,response:c};let _;try{let f=c.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?_=await c.json():_=await c.text()}catch(f){return{type:se.error,error:f}}return s===se.error?{type:s,error:new Pu(x,c.statusText,_),headers:c.headers}:{type:se.data,data:_,statusCode:c.status,headers:c.headers}}if(s===se.error)return{type:s,error:c};if(_v(c)){var S,w;return{type:se.deferred,deferredData:c,statusCode:(S=c.init)==null?void 0:S.status,headers:((w=c.init)==null?void 0:w.headers)&&new Headers(c.init.headers)}}return{type:se.data,data:c}}function Lr(e,t,n,r){let l=e.createURL(Bf(t)).toString(),o={signal:n};if(r&&ut(r.formMethod)){let{formMethod:i,formEncType:a}=r;o.method=i.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=ka(r.formData):o.body=r.formData}return new Request(l,o)}function ka(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function nc(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Cv(e,t,n,r,l){let o={},i=null,a,u=!1,s={};return n.forEach((c,p)=>{let m=t[p].route.id;if(H(!xn(c),"Cannot handle redirect results in processLoaderData"),Jn(c)){let S=Qr(e,m),w=c.error;r&&(w=Object.values(r)[0],r=void 0),i=i||{},i[S.route.id]==null&&(i[S.route.id]=w),o[m]=void 0,u||(u=!0,a=If(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else wn(c)?(l.set(m,c.deferredData),o[m]=c.deferredData.data):o[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(i=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:s}}function rc(e,t,n,r,l,o,i,a){let{loaderData:u,errors:s}=Cv(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function oc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ze(e,t){let{pathname:n,routeId:r,method:l,type:o}=t===void 0?{}:t,i="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(i="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(i="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(i="Not Found",a='No route matches URL "'+n+'"'):e===405&&(i="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Pu(e||500,i,new Error(a),!0)}function ic(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xn(n))return{result:n,idx:t}}}function Bf(e){let t=typeof e=="string"?Dt(e):e;return Ln(de({},t,{hash:""}))}function Pv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wn(e){return e.type===se.deferred}function Jn(e){return e.type===se.error}function xn(e){return(e&&e.type)===se.redirect}function _v(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Rv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Nv(e){return mv.has(e.toLowerCase())}function ut(e){return pv.has(e.toLowerCase())}async function ac(e,t,n,r,l,o){for(let i=0;ip.route.id===u.route.id),c=s!=null&&!Af(s,u)&&(o&&o[u.route.id])!==void 0;if(wn(a)&&(l||c)){let p=r[i];H(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await Vf(a,p,l).then(m=>{m&&(n[i]=m||n[i])})}}}async function Vf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:se.data,data:e.deferredData.unwrappedData}}catch(l){return{type:se.error,error:l}}return{type:se.data,data:e.deferredData.data}}}function _u(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ca(e,t){let n=typeof t=="string"?Dt(t).search:t.search;if(e[e.length-1].route.index&&_u(n||""))return e[e.length-1];let r=zf(e);return r[r.length-1]}function uc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:o,json:i}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function Ei(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Lv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Tr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Tv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function At(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function jv(e,t){try{let n=e.sessionStorage.getItem(Uf);if(n){let r=JSON.parse(n);for(let[l,o]of Object.entries(r||{}))o&&Array.isArray(o)&&t.set(l,new Set(o||[]))}}catch{}}function Dv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Uf,JSON.stringify(n))}catch(r){Nn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.21.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let p=Cu(s,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:_t([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,i,o,e])}const Ov=P.createContext(null);function Fv(e){let t=P.useContext(dn).outlet;return t&&P.createElement(Ov.Provider,{value:e},t)}function Vo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(cn),{matches:l}=P.useContext(dn),{pathname:o}=yl(),i=JSON.stringify(ku(l,r.v7_relativeSplatPath));return P.useMemo(()=>Cu(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Uv(e,t,n,r){gl()||H(!1);let{navigator:l}=P.useContext(cn),{matches:o}=P.useContext(dn),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let s=yl(),c;if(t){var p;let _=typeof t=="string"?Dt(t):t;u==="/"||(p=_.pathname)!=null&&p.startsWith(u)||H(!1),c=_}else c=s;let m=c.pathname||"/",S=u==="/"?m:m.slice(u.length)||"/",w=Gn(e,{pathname:S}),x=Hv(w&&w.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:_t([u,l.encodeLocation?l.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:_t([u,l.encodeLocation?l.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),o,n,r);return t&&x?P.createElement(Bo.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:fe.Pop}},x):x}function Av(){let e=Yv(),t=If(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,o)}const Bv=P.createElement(Av,null);class Vv extends P.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?P.createElement(dn.Provider,{value:this.props.routeContext},P.createElement($f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $v(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(vl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(dn.Provider,{value:t},r)}function Hv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id]));c>=0||H(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,p,m)=>{let S,w=!1,x=null,_=null;n&&(S=a&&p.route.id?a[p.route.id]:void 0,x=p.route.errorElement||Bv,u&&(s<0&&m===0?(Gv("route-fallback",!1),w=!0,_=null):s===m&&(w=!0,_=p.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,m+1)),d=()=>{let h;return S?h=x:w?h=_:p.route.Component?h=P.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=c,P.createElement($v,{match:p,routeContext:{outlet:c,matches:f,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?P.createElement(Vv,{location:n.location,revalidation:n.revalidation,component:x,error:S,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Wf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Wf||{}),ko=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}(ko||{});function Wv(e){let t=P.useContext(vl);return t||H(!1),t}function Qv(e){let t=P.useContext(Ru);return t||H(!1),t}function Kv(e){let t=P.useContext(dn);return t||H(!1),t}function Qf(e){let t=Kv(),n=t.matches[t.matches.length-1];return n.route.id||H(!1),n.route.id}function Yv(){var e;let t=P.useContext($f),n=Qv(ko.UseRouteError),r=Qf(ko.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Xv(){let{router:e}=Wv(Wf.UseNavigateStable),t=Qf(ko.UseNavigateStable),n=P.useRef(!1);return Hf(()=>{n.current=!0}),P.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cl({fromRouteId:t},o)))},[e,t])}const sc={};function Gv(e,t,n){!t&&!sc[e]&&(sc[e]=!0)}function Jv(e){return Fv(e.context)}function Zv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=fe.Pop,navigator:o,static:i=!1,future:a}=e;gl()&&H(!1);let u=t.replace(/^\/*/,"/"),s=P.useMemo(()=>({basename:u,navigator:o,static:i,future:cl({v7_relativeSplatPath:!1},a)}),[u,a,o,i]);typeof r=="string"&&(r=Dt(r));let{pathname:c="/",search:p="",hash:m="",state:S=null,key:w="default"}=r,x=P.useMemo(()=>{let _=ln(c,u);return _==null?null:{location:{pathname:_,search:p,hash:m,state:S,key:w},navigationType:l}},[u,c,p,m,S,w,l]);return x==null?null:P.createElement(cn.Provider,{value:s},P.createElement(Bo.Provider,{children:n,value:x}))}new Promise(()=>{});function qv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.21.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function bv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function e0(e,t){return e.button===0&&(!t||t==="_self")&&!bv(e)}const t0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],n0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function r0(e,t){return xv({basename:t==null?void 0:t.basename,future:cr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Hm({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||l0(),routes:e,mapRouteProperties:qv,window:t==null?void 0:t.window}).initialize()}function l0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cr({},t,{errors:o0(t.errors)})),t}function o0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Pu(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let o=window[l.__subType];if(typeof o=="function")try{let i=new o(l.message);i.stack="",n[r]=i}catch{}}if(n[r]==null){let o=new Error(l.message);o.stack="",n[r]=o}}else n[r]=l;return n}const Yf=P.createContext({isTransitioning:!1}),i0=P.createContext(new Map),a0="startTransition",cc=jp[a0],u0="flushSync",dc=Vm[u0];function s0(e){cc?cc(e):e()}function jr(e){dc?dc(e):e()}class c0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function d0(e){let{fallbackElement:t,router:n,future:r}=e,[l,o]=P.useState(n.state),[i,a]=P.useState(),[u,s]=P.useState({isTransitioning:!1}),[c,p]=P.useState(),[m,S]=P.useState(),[w,x]=P.useState(),_=P.useRef(new Map),{v7_startTransition:f}=r||{},d=P.useCallback(R=>{f?s0(R):R()},[f]),h=P.useCallback((R,T)=>{let{deletedFetchers:z,unstable_flushSync:F,unstable_viewTransitionOpts:X}=T;z.forEach(he=>_.current.delete(he)),R.fetchers.forEach((he,Ge)=>{he.data!==void 0&&_.current.set(Ge,he.data)});let ve=n.window==null||typeof n.window.document.startViewTransition!="function";if(!X||ve){F?jr(()=>o(R)):d(()=>o(R));return}if(F){jr(()=>{m&&(c&&c.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let he=n.window.document.startViewTransition(()=>{jr(()=>o(R))});he.finished.finally(()=>{jr(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),jr(()=>S(he));return}m?(c&&c.resolve(),m.skipTransition(),x({state:R,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(a(R),s({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[n.window,m,c,_,d]);P.useLayoutEffect(()=>n.subscribe(h),[n,h]),P.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new c0)},[u]),P.useEffect(()=>{if(c&&i&&n.window){let R=i,T=c.promise,z=n.window.document.startViewTransition(async()=>{d(()=>o(R)),await T});z.finished.finally(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(z)}},[d,i,c,n.window]),P.useEffect(()=>{c&&i&&l.location.key===i.location.key&&c.resolve()},[c,m,l.location,i]),P.useEffect(()=>{!u.isTransitioning&&w&&(a(w.state),s({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),x(void 0))},[u.isTransitioning,w]),P.useEffect(()=>{},[]);let E=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,T,z)=>n.navigate(R,{state:T,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(R,T,z)=>n.navigate(R,{replace:!0,state:T,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[n]),L=n.basename||"/",v=P.useMemo(()=>({router:n,navigator:E,static:!1,basename:L}),[n,E,L]);return P.createElement(P.Fragment,null,P.createElement(vl.Provider,{value:v},P.createElement(Ru.Provider,{value:l},P.createElement(i0.Provider,{value:_.current},P.createElement(Yf.Provider,{value:u},P.createElement(Zv,{basename:L,location:l.location,navigationType:l.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?P.createElement(f0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function f0(e){let{routes:t,future:n,state:r}=e;return Uv(t,void 0,r,n)}const p0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pa=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,m=Kf(t,t0),{basename:S}=P.useContext(cn),w,x=!1;if(typeof s=="string"&&h0.test(s)&&(w=s,p0))try{let h=new URL(window.location.href),E=s.startsWith("//")?new URL(h.protocol+s):new URL(s),L=ln(E.pathname,S);E.origin===h.origin&&L!=null?s=L+E.search+E.hash:x=!0}catch{}let _=Mv(s,{relative:l}),f=v0(s,{replace:i,state:a,target:u,preventScrollReset:c,relative:l,unstable_viewTransition:p});function d(h){r&&r(h),h.defaultPrevented||f(h)}return P.createElement("a",cr({},m,{href:w||_,onClick:x||o?r:d,ref:n,target:u}))}),ki=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:o="",end:i=!1,style:a,to:u,unstable_viewTransition:s,children:c}=t,p=Kf(t,n0),m=Vo(u,{relative:p.relative}),S=yl(),w=P.useContext(Ru),{navigator:x}=P.useContext(cn),_=w!=null&&g0(m)&&s===!0,f=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,d=S.pathname,h=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;l||(d=d.toLowerCase(),h=h?h.toLowerCase():null,f=f.toLowerCase());const E=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let L=d===f||!i&&d.startsWith(f)&&d.charAt(E)==="/",v=h!=null&&(h===f||!i&&h.startsWith(f)&&h.charAt(f.length)==="/"),R={isActive:L,isPending:v,isTransitioning:_},T=L?r:void 0,z;typeof o=="function"?z=o(R):z=[o,L?"active":null,v?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let F=typeof a=="function"?a(R):a;return P.createElement(Pa,cr({},p,{"aria-current":T,className:z,ref:n,style:F,to:u,unstable_viewTransition:s}),typeof c=="function"?c(R):c)});var _a;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_a||(_a={}));var fc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fc||(fc={}));function m0(e){let t=P.useContext(vl);return t||H(!1),t}function v0(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a}=t===void 0?{}:t,u=zv(),s=yl(),c=Vo(e,{relative:i});return P.useCallback(p=>{if(e0(p,n)){p.preventDefault();let m=r!==void 0?r:Ln(s)===Ln(c);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,unstable_viewTransition:a})}},[s,u,c,r,l,n,e,o,i,a])}function g0(e,t){t===void 0&&(t={});let n=P.useContext(Yf);n==null&&H(!1);let{basename:r}=m0(_a.useViewTransitionState),l=Vo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ln(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=ln(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sa(l.pathname,i)!=null||Sa(l.pathname,o)!=null}const Ct="/expenses-react-app/",Nu="https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app",pc=[{label:"Jan",value:0},{label:"Feb",value:0},{label:"Mar",value:0},{label:"Apr",value:0},{label:"May",value:0},{label:"Jun",value:0},{label:"Jul",value:0},{label:"Aug",value:0},{label:"Sep",value:0},{label:"Oct",value:0},{label:"Nov",value:0},{label:"Dec",value:0}],Xf=({children:e})=>C.jsx("div",{className:"px-6 sm:px-12 lg:px-20",children:e}),y0=()=>C.jsxs("ul",{className:"flex items-center gap-8",children:[C.jsx("li",{children:C.jsx(ki,{to:Ct,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",end:!0,children:"Home"})}),C.jsx("li",{children:C.jsx(ki,{to:`${Ct}login`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Log In"})}),C.jsx("li",{children:C.jsx(ki,{to:`${Ct}register`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Sign Up"})})]}),w0="/expenses-react-app/assets/logo-HTwwoxjU.png",x0=()=>C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("img",{className:"w-12 h-12",src:w0,alt:"Expenses React App Logo"}),C.jsx("span",{className:"block font-medium text-light",children:"Expense Tracker"})]}),S0=()=>C.jsx("header",{className:"py-4 bg-primary",children:C.jsx(Xf,{children:C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx(x0,{}),C.jsx("nav",{children:C.jsx(y0,{})})]})})}),E0=()=>C.jsxs(C.Fragment,{children:[C.jsx(S0,{}),C.jsx("main",{className:"py-12",children:C.jsx(Xf,{children:C.jsx(Jv,{})})})]}),Lu=()=>{const[e,t]=P.useState(!1),[n,r]=P.useState(null),l=P.useCallback(async(o,i)=>{t(!0),r(null);try{const a=await fetch(o.url,{method:o.method?o.method:"GET",headers:o.headers?o.headers:{},body:o.body?JSON.stringify(o.body):null});if(!a.ok)throw new Error("Request failed!");const u=await a.json();i(u)}catch(a){r(a.message||"Oops... Something went wrong!")}t(!1)},[]);return{isLoading:e,error:n,sendRequest:l}};class Gf{constructor(t,n,r,l){yr(this,"id");yr(this,"title");yr(this,"amount");yr(this,"date");this.id=t,this.title=n,this.amount=r,this.date=l}}const hr=({className:e,tagName:t,children:n})=>{const r=t||"div";return C.jsx(r,{className:e?`overflow-hidden rounded-md shadow-card ${e}`:"overflow-hidden rounded-md shadow-card",children:n})},k0=({selected:e,onSelectedItem:t})=>{const n=r=>{t(r.target.value)};return C.jsx("div",{className:"px-4 text-light",children:C.jsxs("div",{className:"my-5 flex items-center justify-between",children:[C.jsx("label",{className:"font-bold",children:"Filter by year"}),C.jsxs("select",{className:"py-2 px-6 font-bold rounded-md text-dark",value:e,onChange:n,children:[C.jsx("option",{value:"none",children:"All"}),C.jsx("option",{value:"2023",children:"2023"}),C.jsx("option",{value:"2022",children:"2022"}),C.jsx("option",{value:"2021",children:"2021"}),C.jsx("option",{value:"2020",children:"2020"}),C.jsx("option",{value:"2019",children:"2019"})]})]})})},on=({className:e,children:t,id:n,type:r,disabled:l,onClick:o})=>C.jsx("button",{id:n,className:e?`py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all ${e}`:"py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all",type:r||"button",disabled:l,onClick:o,children:t}),Ci={CANCEL:"cancel-btn",ACTION:"action-btn"},C0=({title:e,text:t,onConfirm:n})=>{const r=P.useContext(Eu),l=o=>{(o.target.classList.contains("modal")||o.target.id===Ci.CANCEL)&&r.removeModal()};return C.jsx("div",{className:r.isActive?"modal fixed z-[5] top-0 left-0 w-full h-full flex items-center justify-center opacity-100 visible bg-dark bg-opacity-60 transition-all":"fixed -z-[1] top-0 left-0 w-full h-full flex items-center justify-center opacity-0 invisible bg-dark bg-opacity-60 transition-all",onClick:l,children:C.jsxs(hr,{className:"p-8 flex flex-col text-dark bg-light",children:[C.jsx("h2",{className:"mb-5 text-xl font-semibold text-center",children:e}),C.jsx("p",{className:"mb-8",children:t}),C.jsxs("div",{className:"flex justify-center gap-4",children:[C.jsx(on,{id:Ci.CANCEL,type:"button",onClick:l,children:"Close"}),C.jsx(on,{id:Ci.ACTION,className:"bg-danger hover:bg-[#ce0000]",type:"button",onClick:n,children:"Delete"})]})]})})},P0=({date:e})=>{const t=e.toLocaleString("en-US",{month:"long"}),n=e.toLocaleString("en-US",{day:"2-digit"}),r=e.getFullYear();return C.jsxs("div",{className:"w-20 h-20 flex flex-col items-center justify-center rounded-xl text-light bg-primary",children:[C.jsx("span",{className:"text-xs md:text-sm font-semibold",children:t}),C.jsx("span",{className:"text-xl md:text-2xl font-bold",children:r}),C.jsx("span",{className:"text-xs md:text-sm",children:n})]})},_0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='white'%20class='bi%20bi-trash3'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%201h3a.5.5%200%200%201%20.5.5v1H6v-1a.5.5%200%200%201%20.5-.5ZM11%202.5v-1A1.5%201.5%200%200%200%209.5%200h-3A1.5%201.5%200%200%200%205%201.5v1H2.506a.58.58%200%200%200-.01%200H1.5a.5.5%200%200%200%200%201h.538l.853%2010.66A2%202%200%200%200%204.885%2016h6.23a2%202%200%200%200%201.994-1.84l.853-10.66h.538a.5.5%200%200%200%200-1h-.995a.59.59%200%200%200-.01%200H11Zm1.958%201-.846%2010.58a1%201%200%200%201-.997.92h-6.23a1%201%200%200%201-.997-.92L3.042%203.5h9.916Zm-7.487%201a.5.5%200%200%201%20.528.47l.5%208.5a.5.5%200%200%201-.998.06L5%205.03a.5.5%200%200%201%20.47-.53Zm5.058%200a.5.5%200%200%201%20.47.53l-.5%208.5a.5.5%200%201%201-.998-.06l.5-8.5a.5.5%200%200%201%20.528-.47ZM8%204.5a.5.5%200%200%201%20.5.5v8.5a.5.5%200%200%201-1%200V5a.5.5%200%200%201%20.5-.5Z'/%3e%3c/svg%3e",R0=({data:e,onDelete:t})=>{const{id:n,title:r,amount:l,date:o}=e,i=()=>{t(n,r)};return C.jsxs(hr,{className:"p-3 my-4 flex items-center justify-between bg-secondary",tagName:"li",children:[C.jsx(P0,{date:o}),C.jsxs("div",{className:"flex-[1] flex flex-col-reverse items-end md:flex-row md:items-center justify-start gap-3",children:[C.jsx("h2",{className:"flex-[1] md:mx-4 md:text-xl text-right md:text-left text-light",children:r}),C.jsxs("span",{className:"p-2 md:py-2 md:px-6 md:text-xl rounded-xl text-light bg-accent",children:["$",l]})]}),C.jsx(on,{className:"!p-3 ml-3 bg-dark hover:shadow-card focus:scale-95 transition-all",type:"button",onClick:i,children:C.jsx("img",{className:"w-4 h-4 md:w-5 md:h-5",src:_0,alt:"Delete"})})]})},N0=({expenses:e,isLoading:t,error:n,onDeleteItem:r})=>{const l=P.useContext(Eu),[o,i]=P.useState({expenseId:"",expenseTitle:""}),{sendRequest:a}=Lu(),u=`Are you sure you want to delete expense "${o.expenseTitle}"?`,s="Delete expense",c=(x,_)=>{l.displayModal(),i({expenseId:x,expenseTitle:_})},p=x=>{l.removeModal(),r(x)},m=async()=>{a({url:`${Nu}/expenses/${o.expenseId}.json`,method:"DELETE",headers:{"Content-Type":"application/json"}},p.bind(null,o.expenseId))};let S=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Found no expenses."});e.length>0&&(S=C.jsx("ul",{className:"list-none",children:e.map(x=>C.jsx(R0,{data:x,onDelete:c},x.id))}));let w=S;return t&&(w=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Loading expenses..."})),n&&(w=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:n})),C.jsxs(C.Fragment,{children:[jf.createPortal(C.jsx(C0,{title:s,text:u,onConfirm:m}),document.getElementById("modal-root")),w]})},L0=({data:e,total:t})=>{const{label:n,value:r}=e;let l="0%";return t>0&&(l=Math.round(r/t*100)+"%"),C.jsxs("div",{className:"h-24 sm:h-28 flex flex-col items-center gap-1",children:[C.jsx("div",{className:"overflow-hidden h-full w-5 flex flex-col justify-end rounded-xl border border-secondary bg-[#c3b4f3]",children:C.jsx("div",{className:"w-full bg-[#4826b9] transition-all",style:{height:l}})}),C.jsx("div",{className:"text-sm font-semibold text-center text-dark",children:n})]})},T0="_chart_n7zub_1",j0={chart:T0},D0=({data:e})=>{const n=e.map(r=>r.value).reduce((r,l)=>r+l,0);return C.jsx(hr,{className:`p-5 flex flex-wrap gap-y-4 bg-[#f8dfff] ${j0.chart}`,children:e.map(r=>C.jsx(L0,{data:r,total:n},r.label))})},M0=({expenses:e})=>{for(const t of e){const n=t.date.getMonth();pc[n].value+=t.amount}return C.jsx(D0,{data:pc})},z0=({data:e,isLoading:t,error:n,onDeleteItem:r})=>{const[l,o]=P.useState(""),i=u=>{o(u)};let a;return l?a=e.filter(u=>u.date.getFullYear().toString()===l):a=e,C.jsxs(hr,{className:"p-6 mt-8 mx-auto max-w-[50rem] bg-primary",children:[C.jsx(k0,{selected:l,onSelectedItem:i}),C.jsx(M0,{expenses:a}),C.jsx(N0,{expenses:a,isLoading:t,error:n,onDeleteItem:r})]})},Jf={value:"",isValid:null},I0=(e,t)=>{switch(t.type){case"USER_INPUT":return{value:t.value,isValid:t.validate(t.value)};case"INPUT_BLUR":return{value:e.value,isValid:t.validate(e.value)};case"CLEAR_INPUT":return Jf;default:return{value:"",isValid:!1}}},en=e=>{const[t,n]=P.useReducer(I0,Jf),r=i=>{n({type:"USER_INPUT",value:i.target.value,validate:e})},l=()=>{n({type:"INPUT_BLUR",validate:e})},o=()=>{n({type:"CLEAR_INPUT"})};return{value:t.value,isValid:t.isValid,handleChange:r,handleBlur:l,handleClear:o}},tn=({label:e,id:t,className:n,type:r,min:l,max:o,step:i,value:a,hasError:u,onChange:s,onBlur:c})=>{let p;return u?p=n?`p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger ${n}`:"p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger":p=n?`p-2 w-full h-10 text-dark rounded-md ${n}`:"p-2 w-full h-10 text-dark rounded-md",C.jsxs("div",{children:[C.jsx("label",{className:"mb-2 block text-sm sm:text-base font-bold text-dark",htmlFor:t,children:e}),C.jsx("input",{id:t,className:p,type:r,min:l,max:o,step:i,value:a,onChange:s,onBlur:c})]})},O0={"new-expense-controls":"_new-expense-controls_170ne_1"},Pi=e=>e.trim().length!==0,F0=({isLoading:e,onSubmit:t,onCancel:n})=>{const{value:r,isValid:l,handleChange:o,handleBlur:i,handleClear:a}=en(Pi),{value:u,isValid:s,handleChange:c,handleBlur:p,handleClear:m}=en(Pi),{value:S,isValid:w,handleChange:x,handleBlur:_,handleClear:f}=en(Pi),[d,h]=P.useState(!1);P.useEffect(()=>{const v=setTimeout(()=>{h(l&&s&&w)},250);return()=>{clearTimeout(v)}},[l,s,w]);const E=()=>{a(),m(),f()},L=v=>{if(v.preventDefault(),d){const R={title:r,amount:+u,date:new Date(S)};t(R),E()}else l?s?_():p():i()};return C.jsxs("form",{onSubmit:L,children:[C.jsxs("div",{className:`mb-6 flex flex-wrap justify-stretch md:justify-center gap-6 text-left ${O0["new-expense-controls"]}`,children:[C.jsx(tn,{label:"Title",id:"title",type:"text",value:r,hasError:l!==null&&!l,onChange:o,onBlur:i}),C.jsx(tn,{label:"Amount",id:"amount",type:"number",min:"0.01",step:"0.01",value:u,hasError:s!==null&&!s,onChange:c,onBlur:p}),C.jsx(tn,{label:"Date",id:"date",type:"date",min:"2019-01-01",max:"2023-12-31",value:S,hasError:w!==null&&!w,onChange:x,onBlur:_})]}),C.jsxs("div",{className:"flex flex-wrap justify-center md:justify-end gap-4",children:[C.jsx(on,{type:"button",onClick:n,children:"Close"}),C.jsx(on,{type:"submit",children:e?"Sending...":"Add Expense"})]})]})},U0=({onAddExpense:e})=>{const[t,n]=P.useState(!1),{isLoading:r,sendRequest:l}=Lu(),o=(s,c)=>{const p=c.name,m=new Gf(p,s.title,s.amount,s.date);e(m),n(!1)},i=async s=>{l({url:`${Nu}/expenses.json`,method:"POST",headers:{"Content-Type":"application/json"},body:{title:s.title,amount:s.amount,date:s.date.toISOString().split("T")[0]}},o.bind(null,s))},a=()=>{n(!0)},u=()=>{n(!1)};return C.jsx(hr,{className:"p-4 mx-auto max-w-[50rem] text-center bg-background",children:t?C.jsx(F0,{isLoading:r,onSubmit:i,onCancel:u}):C.jsx(on,{type:"button",onClick:a,children:"Add New Expense"})})},A0=()=>{const[e,t]=P.useState([]),{isLoading:n,error:r,sendRequest:l}=Lu();P.useEffect(()=>{const a=u=>{const s=[];for(const c in u)s.push(new Gf(c,u[c].title,u[c].amount,new Date(u[c].date)));t(s)};l({url:`${Nu}/expenses.json`},a)},[l]);const o=a=>{t(u=>[a,...u])},i=a=>{t(u=>u.filter(s=>s.id!==a))};return C.jsxs(C.Fragment,{children:[C.jsx(U0,{onAddExpense:o}),C.jsx(z0,{data:e,isLoading:n,error:r,onDeleteItem:i})]})},Zf=({children:e,formType:t,onSubmit:n})=>{let r;return t==="login"?r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Don't have an account yet?"," ",C.jsx(Pa,{className:"ml-1 text-accent",to:`${Ct}register`,children:"Sign Up"})]}):r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Already have an account?"," ",C.jsx(Pa,{className:"ml-1 text-accent",to:`${Ct}login`,children:"Sign In"})]}),C.jsxs(hr,{className:"p-6 mx-auto max-w-[25rem] bg-background",children:[C.jsx("form",{className:"flex flex-col gap-4",onSubmit:n,children:e}),r]})},_i=e=>e.trim().length!==0,B0=()=>{const{value:e,isValid:t,handleChange:n,handleBlur:r,handleClear:l}=en(_i),{value:o,isValid:i,handleChange:a,handleBlur:u,handleClear:s}=en(_i),{value:c,isValid:p,handleChange:m,handleBlur:S,handleClear:w}=en(_i),[x,_]=P.useState(!1);P.useEffect(()=>{const h=setTimeout(()=>{_(t&&i&&p)},250);return()=>{clearTimeout(h)}},[t,i,p]);const f=()=>{l(),s(),w()},d=h=>{h.preventDefault(),x?(console.log({email:e,username:o,password:c}),f()):t?i?S():u():r()};return C.jsxs(Zf,{formType:"register",onSubmit:d,children:[C.jsx(tn,{label:"Email",id:"email",type:"email",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Username",id:"username",type:"text",value:o,hasError:i!==null&&!i,onChange:a,onBlur:u}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:c,hasError:p!==null&&!p,onChange:m,onBlur:S}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign Up"})]})},V0=()=>C.jsx(B0,{}),hc=e=>e.trim().length!==0,$0=()=>{const{value:e,isValid:t,handleChange:n,handleBlur:r,handleClear:l}=en(hc),{value:o,isValid:i,handleChange:a,handleBlur:u,handleClear:s}=en(hc),[c,p]=P.useState(!1);P.useEffect(()=>{const w=setTimeout(()=>{p(t&&i)},250);return()=>{clearTimeout(w)}},[t,i]);const m=()=>{l(),s()},S=w=>{w.preventDefault(),c?(console.log({email:"test",username:e,password:o}),m()):r()};return C.jsxs(Zf,{formType:"login",onSubmit:S,children:[C.jsx(tn,{label:"Username",id:"username",type:"text",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:o,hasError:i!==null&&!i,onChange:a,onBlur:u}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign In"})]})},H0=()=>C.jsx($0,{}),W0=r0([{path:Ct,element:C.jsx(E0,{}),children:[{path:Ct,element:C.jsx(A0,{})},{path:`${Ct}register`,element:C.jsx(V0,{})},{path:`${Ct}login`,element:C.jsx(H0,{})}]}]),Q0=()=>C.jsx(d0,{router:W0}),K0=Ri.createRoot(document.getElementById("page-root"));K0.render(C.jsx($m,{children:C.jsx(Q0,{})})); diff --git a/assets/index-dpzYmLSE.js b/assets/index-dpzYmLSE.js deleted file mode 100644 index f052f22..0000000 --- a/assets/index-dpzYmLSE.js +++ /dev/null @@ -1,68 +0,0 @@ -var dp=Object.defineProperty;var fp=(e,t,n)=>t in e?dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var yr=(e,t,n)=>(fp(e,typeof t!="symbol"?t+"":t,n),n);function pc(e,t){for(var n=0;nr[l]})}}}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 l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mc={exports:{}},ki={},vc={exports:{}},Q={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var dl=Symbol.for("react.element"),pp=Symbol.for("react.portal"),hp=Symbol.for("react.fragment"),mp=Symbol.for("react.strict_mode"),vp=Symbol.for("react.profiler"),gp=Symbol.for("react.provider"),yp=Symbol.for("react.context"),wp=Symbol.for("react.forward_ref"),xp=Symbol.for("react.suspense"),Sp=Symbol.for("react.memo"),Ep=Symbol.for("react.lazy"),Uu=Symbol.iterator;function kp(e){return e===null||typeof e!="object"?null:(e=Uu&&e[Uu]||e["@@iterator"],typeof e=="function"?e:null)}var gc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yc=Object.assign,wc={};function dr(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}dr.prototype.isReactComponent={};dr.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")};dr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xc(){}xc.prototype=dr.prototype;function _a(e,t,n){this.props=e,this.context=t,this.refs=wc,this.updater=n||gc}var Ra=_a.prototype=new xc;Ra.constructor=_a;yc(Ra,dr.prototype);Ra.isPureReactComponent=!0;var Hu=Array.isArray,Sc=Object.prototype.hasOwnProperty,Na={current:null},Ec={key:!0,ref:!0,__self:!0,__source:!0};function kc(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Sc.call(t,r)&&!Ec.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1>>1,ee=D[G];if(0>>1;Gl(lt,B))Del(zt,lt)?(D[G]=zt,D[De]=B,G=De):(D[G]=lt,D[ke]=B,G=ke);else if(Del(zt,B))D[G]=zt,D[De]=B,G=De;else break e}}return H}function l(D,H){var B=D.sortIndex-H.sortIndex;return B!==0?B:D.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],s=[],c=1,p=null,m=3,S=!1,x=!1,y=!1,_=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(D){for(var H=n(s);H!==null;){if(H.callback===null)r(s);else if(H.startTime<=D)r(s),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(s)}}function E(D){if(y=!1,h(D),!x)if(n(u)!==null)x=!0,Mt(L);else{var H=n(s);H!==null&&re(E,H.startTime-D)}}function L(D,H){x=!1,y&&(y=!1,f(T),T=-1),S=!0;var B=m;try{for(h(H),p=n(u);p!==null&&(!(p.expirationTime>H)||D&&!X());){var G=p.callback;if(typeof G=="function"){p.callback=null,m=p.priorityLevel;var ee=G(p.expirationTime<=H);H=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(u)&&r(u),h(H)}else r(u);p=n(u)}if(p!==null)var pt=!0;else{var ke=n(s);ke!==null&&re(E,ke.startTime-H),pt=!1}return pt}finally{p=null,m=B,S=!1}}var v=!1,R=null,T=-1,z=5,O=-1;function X(){return!(e.unstable_now()-OD||125G?(D.sortIndex=B,t(s,D),n(u)===null&&D===n(s)&&(y?(f(T),T=-1):y=!0,re(E,B-G))):(D.sortIndex=ee,t(u,D),x||S||(x=!0,Mt(L))),D},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(D){var H=m;return function(){var B=m;m=H;try{return D.apply(this,arguments)}finally{m=B}}}})(Rc);_c.exports=Rc;var Fp=_c.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Nc=P,Ke=Fp;function N(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"),Ro=Object.prototype.hasOwnProperty,Op=/^[: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]*$/,Bu={},Vu={};function Up(e){return Ro.call(Vu,e)?!0:Ro.call(Bu,e)?!1:Op.test(e)?Vu[e]=!0:(Bu[e]=!0,!1)}function Hp(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 Ap(e,t,n,r){if(t===null||typeof t>"u"||Hp(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 Fe(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Re[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Re[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Re[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Re[e]=new Fe(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){Re[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Re[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Re[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Re[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Re[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-:]([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(Ta,ja);Re[t]=new Fe(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(Ta,ja);Re[t]=new Fe(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(Ta,ja);Re[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Re[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Re.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Re[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Da(e,t,n,r){var l=Re.hasOwnProperty(t)?Re[t]:null;(l!==null?l.type!==0:r||!(2a||l[o]!==i[a]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Gi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dr(e):""}function Bp(e){switch(e.tag){case 5:return Dr(e.type);case 16:return Dr("Lazy");case 13:return Dr("Suspense");case 19:return Dr("SuspenseList");case 0:case 2:case 15:return e=Ji(e.type,!1),e;case 11:return e=Ji(e.type.render,!1),e;case 1:return e=Ji(e.type,!0),e;default:return""}}function jo(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 Un:return"Fragment";case On:return"Portal";case No:return"Profiler";case Ma:return"StrictMode";case Lo:return"Suspense";case To:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jc:return(e.displayName||"Context")+".Consumer";case Tc: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 Ia:return t=e.displayName||null,t!==null?t:jo(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return jo(e(t))}catch{}}return null}function Vp(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 jo(t);case 8:return t===Ma?"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 nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $p(e){var t=Mc(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 l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pl(e){e._valueTracker||(e._valueTracker=$p(e))}function zc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Mc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ql(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 Do(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Wu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nn(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 Ic(e,t){t=t.checked,t!=null&&Da(e,"checked",t,!1)}function Mo(e,t){Ic(e,t);var n=nn(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")?zo(e,t.type,n):t.hasOwnProperty("defaultValue")&&zo(e,t.type,nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qu(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 zo(e,t,n){(t!=="number"||ql(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Mr=Array.isArray;function Zn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=_l.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fr={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},Wp=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fr[t]=Fr[e]})});function Hc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+t).trim():t+"px"}function Ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Hc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Qp=ue({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 Oo(e,t){if(t){if(Qp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function Uo(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 Ho=null;function Fa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,qn=null,bn=null;function Xu(e){if(e=hl(e)){if(typeof Ao!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Ni(t),Ao(e.stateNode,e.type,t))}}function Bc(e){qn?bn?bn.push(e):bn=[e]:qn=e}function Vc(){if(qn){var e=qn,t=bn;if(bn=qn=null,Xu(e),t)for(e=0;e>>=0,e===0?32:31-(nh(e)/rh|0)|0}var Rl=64,Nl=4194304;function zr(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 ni(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~l;a!==0?r=zr(a):(i&=o,i!==0&&(r=zr(i)))}else o=n&~l,o!==0?r=zr(o):i!==0&&(r=zr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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 fl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function ah(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=Ur),rs=" ",ls=!1;function ud(e,t){switch(e){case"keyup":return Ih.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Oh(e,t){switch(e){case"compositionend":return sd(t);case"keypress":return t.which!==32?null:(ls=!0,rs);case"textInput":return e=t.data,e===rs&&ls?null:e;default:return null}}function Uh(e,t){if(Hn)return e==="compositionend"||!Wa&&ud(e,t)?(e=od(),$l=Ba=Wt=null,Hn=!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=us(n)}}function pd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hd(){for(var e=window,t=ql();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ql(e.document)}return t}function Qa(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 Yh(e){var t=hd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pd(n.ownerDocument.documentElement,n)){if(r!==null&&Qa(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 l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=ss(n,i);var o=ss(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)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,An=null,Ko=null,Ar=null,Yo=!1;function cs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yo||An==null||An!==ql(r)||(r=An,"selectionStart"in r&&Qa(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}),Ar&&br(Ar,r)||(Ar=r,r=ii(Ko,"onSelect"),0$n||(e.current=bo[$n],bo[$n]=null,$n--)}function b(e,t){$n++,bo[$n]=e.current,e.current=t}var rn={},je=un(rn),He=un(!1),kn=rn;function lr(e,t){var n=e.type.contextTypes;if(!n)return rn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ae(e){return e=e.childContextTypes,e!=null}function ai(){ne(He),ne(je)}function gs(e,t,n){if(je.current!==rn)throw Error(N(168));b(je,t),b(He,n)}function kd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Vp(e)||"Unknown",l));return ue({},n,r)}function ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rn,kn=je.current,b(je,e),b(He,He.current),!0}function ys(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=kd(e,t,kn),r.__reactInternalMemoizedMergedChildContext=e,ne(He),ne(je),b(je,e)):ne(He),b(He,n)}var St=null,Li=!1,co=!1;function Cd(e){St===null?St=[e]:St.push(e)}function im(e){Li=!0,Cd(e)}function sn(){if(!co&&St!==null){co=!0;var e=0,t=J;try{var n=St;for(J=1;e>=o,l-=o,Et=1<<32-ct(t)+l|n<T?(z=R,R=null):z=R.sibling;var O=m(f,R,h[T],E);if(O===null){R===null&&(R=z);break}e&&R&&O.alternate===null&&t(f,R),d=i(O,d,T),v===null?L=O:v.sibling=O,v=O,R=z}if(T===h.length)return n(f,R),ie&&hn(f,T),L;if(R===null){for(;TT?(z=R,R=null):z=R.sibling;var X=m(f,R,O.value,E);if(X===null){R===null&&(R=z);break}e&&R&&X.alternate===null&&t(f,R),d=i(X,d,T),v===null?L=X:v.sibling=X,v=X,R=z}if(O.done)return n(f,R),ie&&hn(f,T),L;if(R===null){for(;!O.done;T++,O=h.next())O=p(f,O.value,E),O!==null&&(d=i(O,d,T),v===null?L=O:v.sibling=O,v=O);return ie&&hn(f,T),L}for(R=r(f,R);!O.done;T++,O=h.next())O=S(R,f,T,O.value,E),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?T:O.key),d=i(O,d,T),v===null?L=O:v.sibling=O,v=O);return e&&R.forEach(function(ve){return t(f,ve)}),ie&&hn(f,T),L}function _(f,d,h,E){if(typeof h=="object"&&h!==null&&h.type===Un&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Cl:e:{for(var L=h.key,v=d;v!==null;){if(v.key===L){if(L=h.type,L===Un){if(v.tag===7){n(f,v.sibling),d=l(v,h.props.children),d.return=f,f=d;break e}}else if(v.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===At&&Ps(L)===v.type){n(f,v.sibling),d=l(v,h.props),d.ref=Cr(f,v,h),d.return=f,f=d;break e}n(f,v);break}else t(f,v);v=v.sibling}h.type===Un?(d=En(h.props.children,f.mode,E,h.key),d.return=f,f=d):(E=Zl(h.type,h.key,h.props,null,f.mode,E),E.ref=Cr(f,d,h),E.return=f,f=E)}return o(f);case On:e:{for(v=h.key;d!==null;){if(d.key===v)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(f,d.sibling),d=l(d,h.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=wo(h,f.mode,E),d.return=f,f=d}return o(f);case At:return v=h._init,_(f,d,v(h._payload),E)}if(Mr(h))return x(f,d,h,E);if(wr(h))return y(f,d,h,E);Il(f,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,h),d.return=f,f=d):(n(f,d),d=yo(h,f.mode,E),d.return=f,f=d),o(f)):n(f,d)}return _}var or=Dd(!0),Md=Dd(!1),ml={},wt=un(ml),rl=un(ml),ll=un(ml);function yn(e){if(e===ml)throw Error(N(174));return e}function eu(e,t){switch(b(ll,t),b(rl,e),b(wt,ml),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fo(t,e)}ne(wt),b(wt,t)}function ar(){ne(wt),ne(rl),ne(ll)}function zd(e){yn(ll.current);var t=yn(wt.current),n=Fo(t,e.type);t!==n&&(b(rl,e),b(wt,n))}function tu(e){rl.current===e&&(ne(wt),ne(rl))}var oe=un(0);function hi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=[];function nu(){for(var e=0;en?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{J=n,po.transition=r}}function Jd(){return rt().memoizedState}function sm(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zd(e))qd(t,n);else if(n=Nd(e,t,n,r),n!==null){var l=ze();dt(n,e,r,l),bd(n,t,r)}}function cm(e,t,n){var r=qt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zd(e))qd(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(l.hasEagerState=!0,l.eagerState=a,ft(a,o)){var u=t.interleaved;u===null?(l.next=l,qa(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Nd(e,t,l,r),n!==null&&(l=ze(),dt(n,e,r,l),bd(n,t,r))}}function Zd(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function qd(e,t){Br=mi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ua(e,n)}}var vi={readContext:nt,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},dm={readContext:nt,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Rs,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Yl(4194308,4,Qd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var n=vt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vt();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=sm.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:_s,useDebugValue:au,useDeferredValue:function(e){return vt().memoizedState=e},useTransition:function(){var e=_s(!1),t=e[0];return e=um.bind(null,e[1]),vt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,l=vt();if(ie){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ee===null)throw Error(N(349));Pn&30||Od(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,Rs(Hd.bind(null,r,i,e),[e]),r.flags|=2048,al(9,Ud.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vt(),t=Ee.identifierPrefix;if(ie){var n=kt,r=Et;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=il++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[gt]=t,e[nl]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(o=Uo(n,r),n){case"dialog":te("cancel",e),te("close",e),l=r;break;case"iframe":case"object":case"embed":te("load",e),l=r;break;case"video":case"audio":for(l=0;lsr&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304)}else{if(!r)if(e=hi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Pr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ie)return Le(t),null}else 2*pe()-i.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Pr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=oe.current,b(oe,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return pu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?$e&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function wm(e,t){switch(Ya(t),t.tag){case 1:return Ae(t.type)&&ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ar(),ne(He),ne(je),nu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return tu(t),null;case 13:if(ne(oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(oe),null;case 4:return ar(),null;case 10:return Za(t.type._context),null;case 22:case 23:return pu(),null;case 24:return null;default:return null}}var Ol=!1,Te=!1,xm=typeof WeakSet=="function"?WeakSet:Set,M=null;function Yn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ce(e,t,r)}else n.current=null}function da(e,t,n){try{n()}catch(r){ce(e,t,r)}}var Fs=!1;function Sm(e,t){if(Xo=ri,e=hd(),Qa(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 l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,s=0,c=0,p=e,m=null;t:for(;;){for(var S;p!==n||l!==0&&p.nodeType!==3||(a=o+l),p!==i||r!==0&&p.nodeType!==3||(u=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(S=p.firstChild)!==null;)m=p,p=S;for(;;){if(p===e)break t;if(m===n&&++s===l&&(a=o),m===i&&++c===r&&(u=o),(S=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=S}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Go={focusedElem:e,selectionRange:n},ri=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var y=x.memoizedProps,_=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:ot(t.type,y),_);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(E){ce(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return x=Fs,Fs=!1,x}function Vr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&da(t,n,i)}l=l.next}while(l!==r)}}function Di(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 fa(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 ff(e){var t=e.alternate;t!==null&&(e.alternate=null,ff(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[nl],delete t[qo],delete t[rm],delete t[lm])),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 pf(e){return e.tag===5||e.tag===3||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function pa(e,t,n){var 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=oi));else if(r!==4&&(e=e.child,e!==null))for(pa(e,t,n),e=e.sibling;e!==null;)pa(e,t,n),e=e.sibling}function ha(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(ha(e,t,n),e=e.sibling;e!==null;)ha(e,t,n),e=e.sibling}var Pe=null,at=!1;function Ut(e,t,n){for(n=n.child;n!==null;)hf(e,t,n),n=n.sibling}function hf(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Ci,n)}catch{}switch(n.tag){case 5:Te||Yn(n,t);case 6:var r=Pe,l=at;Pe=null,Ut(e,t,n),Pe=r,at=l,Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(at?(e=Pe,n=n.stateNode,e.nodeType===8?so(e.parentNode,n):e.nodeType===1&&so(e,n),Zr(e)):so(Pe,n.stateNode));break;case 4:r=Pe,l=at,Pe=n.stateNode.containerInfo,at=!0,Ut(e,t,n),Pe=r,at=l;break;case 0:case 11:case 14:case 15:if(!Te&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&da(n,t,o),l=l.next}while(l!==r)}Ut(e,t,n);break;case 1:if(!Te&&(Yn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ce(n,t,a)}Ut(e,t,n);break;case 21:Ut(e,t,n);break;case 22:n.mode&1?(Te=(r=Te)||n.memoizedState!==null,Ut(e,t,n),Te=r):Ut(e,t,n);break;default:Ut(e,t,n)}}function Us(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xm),t.forEach(function(r){var l=Tm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function it(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*km(r/1960))-r,10e?16:e,Qt===null)var r=!1;else{if(e=Qt,Qt=null,wi=0,Y&6)throw Error(N(331));var l=Y;for(Y|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var a=i.deletions;if(a!==null){for(var u=0;upe()-du?Sn(e,0):cu|=n),Be(e,t)}function Ef(e,t){t===0&&(e.mode&1?(t=Nl,Nl<<=1,!(Nl&130023424)&&(Nl=4194304)):t=1);var n=ze();e=Lt(e,t),e!==null&&(fl(e,t,n),Be(e,n))}function Lm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ef(e,n)}function Tm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Ef(e,n)}var kf;kf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||He.current)Ue=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ue=!1,gm(e,t,n);Ue=!!(e.flags&131072)}else Ue=!1,ie&&t.flags&1048576&&Pd(t,ci,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xl(e,t),e=t.pendingProps;var l=lr(t,je.current);tr(t,n),l=lu(null,t,r,e,l,n);var i=iu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ae(r)?(i=!0,ui(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ba(t),l.updater=Ti,t.stateNode=l,l._reactInternals=t,la(t,r,e,n),t=aa(null,t,r,!0,i,n)):(t.tag=0,ie&&i&&Ka(t),Me(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dm(r),e=ot(r,e),l){case 0:t=oa(null,t,r,e,n);break e;case 1:t=Ms(null,t,r,e,n);break e;case 11:t=js(null,t,r,e,n);break e;case 14:t=Ds(null,t,r,ot(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),oa(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Ms(e,t,r,l,n);case 3:e:{if(of(t),e===null)throw Error(N(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ld(e,t),pi(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=ur(Error(N(423)),t),t=zs(e,t,r,n,l);break e}else if(r!==l){l=ur(Error(N(424)),t),t=zs(e,t,r,n,l);break e}else for(We=Gt(t.stateNode.containerInfo.firstChild),Qe=t,ie=!0,st=null,n=Md(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===l){t=Tt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return zd(t),e===null&&ta(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Jo(r,l)?o=null:i!==null&&Jo(r,i)&&(t.flags|=32),lf(e,t),Me(e,t,o,n),t.child;case 6:return e===null&&ta(t),null;case 13:return af(e,t,n);case 4:return eu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=or(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),js(e,t,r,l,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,b(di,r._currentValue),r._currentValue=o,i!==null)if(ft(i.value,o)){if(i.children===l.children&&!He.current){t=Tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Pt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),na(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),na(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Me(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,tr(t,n),l=nt(l),r=r(l),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,l=ot(r,t.pendingProps),l=ot(r.type,l),Ds(e,t,r,l,n);case 15:return nf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ot(r,l),Xl(e,t),t.tag=1,Ae(r)?(e=!0,ui(t)):e=!1,tr(t,n),jd(t,r,l),la(t,r,l,n),aa(null,t,r,!0,e,n);case 19:return uf(e,t,n);case 22:return rf(e,t,n)}throw Error(N(156,t.tag))};function Cf(e,t){return Gc(e,t)}function jm(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 et(e,t,n,r){return new jm(e,t,n,r)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dm(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===za)return 11;if(e===Ia)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=et(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 Zl(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")mu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Un:return En(n.children,l,i,t);case Ma:o=8,l|=8;break;case No:return e=et(12,n,t,l|2),e.elementType=No,e.lanes=i,e;case Lo:return e=et(13,n,t,l),e.elementType=Lo,e.lanes=i,e;case To:return e=et(19,n,t,l),e.elementType=To,e.lanes=i,e;case Dc:return zi(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Tc:o=10;break e;case jc:o=9;break e;case za:o=11;break e;case Ia:o=14;break e;case At:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=et(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function En(e,t,n,r){return e=et(7,e,r,t),e.lanes=n,e}function zi(e,t,n,r){return e=et(22,e,r,t),e.elementType=Dc,e.lanes=n,e.stateNode={isHidden:!1},e}function yo(e,t,n){return e=et(6,e,null,t),e.lanes=n,e}function wo(e,t,n){return t=et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mm(e,t,n,r,l){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=qi(0),this.expirationTimes=qi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qi(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vu(e,t,n,r,l,i,o,a,u){return e=new Mm(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ba(i),e}function zm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nf)}catch(e){console.error(e)}}Nf(),Pc.exports=Ye;var xu=Pc.exports;const Lf=hc(xu),Hm=pc({__proto__:null,default:Lf},[xu]);var Ks=xu;_o.createRoot=Ks.createRoot,_o.hydrateRoot=Ks.hydrateRoot;const Su=P.createContext({isActive:!1,displayModal:()=>{},removeModal:()=>{}}),Am=({children:e})=>{const[t,n]=P.useState(!1),i={isActive:t,displayModal:()=>{n(!0)},removeModal:()=>{n(!1)}};return C.jsx(Su.Provider,{value:i,children:e})};/** - * @remix-run/router v1.14.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Nn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vm(){return Math.random().toString(36).substr(2,8)}function Xs(e,t){return{usr:e.state,key:e.key,idx:t}}function sl(e,t,n,r){return n===void 0&&(n=null),de({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dt(t):t,{state:n,key:t&&t.key||r||Vm()})}function Ln(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 Dt(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 $m(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,o=l.history,a=fe.Pop,u=null,s=c();s==null&&(s=0,o.replaceState(de({},o.state,{idx:s}),""));function c(){return(o.state||{idx:null}).idx}function p(){a=fe.Pop;let _=c(),f=_==null?null:_-s;s=_,u&&u({action:a,location:y.location,delta:f})}function m(_,f){a=fe.Push;let d=sl(y.location,_,f);n&&n(d,_),s=c()+1;let h=Xs(d,s),E=y.createHref(d);try{o.pushState(h,"",E)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;l.location.assign(E)}i&&u&&u({action:a,location:y.location,delta:1})}function S(_,f){a=fe.Replace;let d=sl(y.location,_,f);n&&n(d,_),s=c();let h=Xs(d,s),E=y.createHref(d);o.replaceState(h,"",E),i&&u&&u({action:a,location:y.location,delta:0})}function x(_){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof _=="string"?_:Ln(_);return $(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let y={get action(){return a},get location(){return e(l,o)},listen(_){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ys,p),u=_,()=>{l.removeEventListener(Ys,p),u=null}},createHref(_){return t(l,_)},createURL:x,encodeLocation(_){let f=x(_);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:S,go(_){return o.go(_)}};return y}var se;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(se||(se={}));const Wm=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qm(e){return e.index===!0}function wa(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((l,i)=>{let o=[...n,i],a=typeof l.id=="string"?l.id:o.join("-");if($(l.index!==!0||!l.children,"Cannot specify children on an index route"),$(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Qm(l)){let u=de({},l,t(l),{id:a});return r[a]=u,u}else{let u=de({},l,t(l),{id:a,children:void 0});return r[a]=u,l.children&&(u.children=wa(l.children,t,o,r)),u}})}function Gn(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dt(t):t,l=ln(r.pathname||"/",n);if(l==null)return null;let i=Tf(e);Ym(i);let o=null;for(let a=0;o==null&&a{let u={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};u.relativePath.startsWith("/")&&($(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 s=_t([r,u.relativePath]),c=n.concat(u);i.children&&i.children.length>0&&($(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),Tf(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:ev(s,i.index),routesMeta:c})};return e.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))l(i,o);else for(let u of jf(i.path))l(i,o,u)}),t}function jf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let o=jf(r.join("/")),a=[];return a.push(...o.map(u=>u===""?i:[i,u].join("/"))),l&&a.push(...o),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function Ym(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:tv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Xm=/^:\w+$/,Gm=3,Jm=2,Zm=1,qm=10,bm=-2,Gs=e=>e==="*";function ev(e,t){let n=e.split("/"),r=n.length;return n.some(Gs)&&(r+=bm),t&&(r+=Jm),n.filter(l=>!Gs(l)).reduce((l,i)=>l+(Xm.test(i)?Gm:i===""?Zm:qm),r)}function tv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function nv(e,t){let{routesMeta:n}=e,r={},l="/",i=[];for(let o=0;o{let{paramName:m,isOptional:S}=c;if(m==="*"){let y=a[p]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const x=a[p];return S&&!x?s[m]=void 0:s[m]=iv(x||"",m),s},{}),pathname:i,pathnameBase:o,pattern:e}}function rv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Nn(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function lv(e){try{return decodeURI(e)}catch(t){return Nn(!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 iv(e,t){try{return decodeURIComponent(e)}catch(n){return Nn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ln(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 ov(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Dt(e):e;return{pathname:n?n.startsWith("/")?n:av(n,t):t,search:sv(r),hash:cv(l)}}function av(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function xo(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 Df(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eu(e,t){let n=Df(e);return t?n.map((r,l)=>l===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ku(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Dt(e):(l=de({},e),$(!l.pathname||!l.pathname.includes("?"),xo("?","pathname","search",l)),$(!l.pathname||!l.pathname.includes("#"),xo("#","pathname","hash",l)),$(!l.search||!l.search.includes("#"),xo("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,a;if(o==null)a=n;else{let p=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),p-=1;l.pathname=m.join("/")}a=p>=0?t[p]:"/"}let u=ov(l,a),s=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||c)&&(u.pathname+="/"),u}const _t=e=>e.join("/").replace(/\/\/+/g,"/"),uv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Cu{constructor(t,n,r,l){l===void 0&&(l=!1),this.status=t,this.statusText=n||"",this.internal=l,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Mf(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zf=["post","put","patch","delete"],dv=new Set(zf),fv=["get",...zf],pv=new Set(fv),hv=new Set([301,302,303,307,308]),mv=new Set([307,308]),So={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vv={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Rr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},If=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gv=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Ff="remix-router-transitions";function yv(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l;if(e.mapRouteProperties)l=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;l=w=>({hasErrorBoundary:g(w)})}else l=gv;let i={},o=wa(e.routes,l,void 0,i),a,u=e.basename||"/",s=de({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,p=new Set,m=null,S=null,x=null,y=e.hydrationData!=null,_=Gn(o,e.history.location,u),f=null;if(_==null){let g=Ze(404,{pathname:e.history.location.pathname}),{matches:w,route:k}=rc(o);_=w,f={[k.id]:g}}let d,h=_.some(g=>g.route.lazy),E=_.some(g=>g.route.loader);if(h)d=!1;else if(!E)d=!0;else if(s.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,w=e.hydrationData?e.hydrationData.errors:null;d=_.every(k=>k.route.loader&&k.route.loader.hydrate!==!0&&(g&&g[k.route.id]!==void 0||w&&w[k.route.id]!==void 0))}else d=e.hydrationData!=null;let L,v={historyAction:e.history.action,location:e.history.location,matches:_,initialized:d,navigation:So,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||f,fetchers:new Map,blockers:new Map},R=fe.Pop,T=!1,z,O=!1,X=new Map,ve=null,he=!1,Ge=!1,Dn=[],Mt=[],re=new Map,D=0,H=-1,B=new Map,G=new Set,ee=new Map,pt=new Map,ke=new Set,lt=new Map,De=new Map,zt=!1;function Jf(){if(c=e.history.listen(g=>{let{action:w,location:k,delta:j}=g;if(zt){zt=!1;return}Nn(De.size===0||j!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=Iu({currentLocation:v.location,nextLocation:k,historyAction:w});if(I&&j!=null){zt=!0,e.history.go(j*-1),xl(I,{state:"blocked",location:k,proceed(){xl(I,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),e.history.go(j)},reset(){let W=new Map(v.blockers);W.set(I,Rr),Ve({blockers:W})}});return}return fn(w,k)}),n){Lv(t,X);let g=()=>Tv(t,X);t.addEventListener("pagehide",g),ve=()=>t.removeEventListener("pagehide",g)}return v.initialized||fn(fe.Pop,v.location,{initialHydration:!0}),L}function Zf(){c&&c(),ve&&ve(),p.clear(),z&&z.abort(),v.fetchers.forEach((g,w)=>wl(w)),v.blockers.forEach((g,w)=>zu(w))}function qf(g){return p.add(g),()=>p.delete(g)}function Ve(g,w){w===void 0&&(w={}),v=de({},v,g);let k=[],j=[];s.v7_fetcherPersist&&v.fetchers.forEach((I,W)=>{I.state==="idle"&&(ke.has(W)?j.push(W):k.push(W))}),[...p].forEach(I=>I(v,{deletedFetchers:j,unstable_viewTransitionOpts:w.viewTransitionOpts,unstable_flushSync:w.flushSync===!0})),s.v7_fetcherPersist&&(k.forEach(I=>v.fetchers.delete(I)),j.forEach(I=>wl(I)))}function mr(g,w,k){var j,I;let{flushSync:W}=k===void 0?{}:k,A=v.actionData!=null&&v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&v.navigation.state==="loading"&&((j=g.state)==null?void 0:j._isRedirect)!==!0,U;w.actionData?Object.keys(w.actionData).length>0?U=w.actionData:U=null:A?U=v.actionData:U=null;let F=w.loaderData?nc(v.loaderData,w.loaderData,w.matches||[],w.errors):v.loaderData,K=v.blockers;K.size>0&&(K=new Map(K),K.forEach((q,Ce)=>K.set(Ce,Rr)));let we=T===!0||v.navigation.formMethod!=null&&ut(v.navigation.formMethod)&&((I=g.state)==null?void 0:I._isRedirect)!==!0;a&&(o=a,a=void 0),he||R===fe.Pop||(R===fe.Push?e.history.push(g,g.state):R===fe.Replace&&e.history.replace(g,g.state));let V;if(R===fe.Pop){let q=X.get(v.location.pathname);q&&q.has(g.pathname)?V={currentLocation:v.location,nextLocation:g}:X.has(g.pathname)&&(V={currentLocation:g,nextLocation:v.location})}else if(O){let q=X.get(v.location.pathname);q?q.add(g.pathname):(q=new Set([g.pathname]),X.set(v.location.pathname,q)),V={currentLocation:v.location,nextLocation:g}}Ve(de({},w,{actionData:U,loaderData:F,historyAction:R,location:g,initialized:!0,navigation:So,revalidation:"idle",restoreScrollPosition:Ou(g,w.matches||v.matches),preventScrollReset:we,blockers:K}),{viewTransitionOpts:V,flushSync:W===!0}),R=fe.Pop,T=!1,O=!1,he=!1,Ge=!1,Dn=[],Mt=[]}async function Nu(g,w){if(typeof g=="number"){e.history.go(g);return}let k=Sa(v.location,v.matches,u,s.v7_prependBasename,g,s.v7_relativeSplatPath,w==null?void 0:w.fromRouteId,w==null?void 0:w.relative),{path:j,submission:I,error:W}=Js(s.v7_normalizeFormMethod,!1,k,w),A=v.location,U=sl(v.location,j,w&&w.state);U=de({},U,e.history.encodeLocation(U));let F=w&&w.replace!=null?w.replace:void 0,K=fe.Push;F===!0?K=fe.Replace:F===!1||I!=null&&ut(I.formMethod)&&I.formAction===v.location.pathname+v.location.search&&(K=fe.Replace);let we=w&&"preventScrollReset"in w?w.preventScrollReset===!0:void 0,V=(w&&w.unstable_flushSync)===!0,q=Iu({currentLocation:A,nextLocation:U,historyAction:K});if(q){xl(q,{state:"blocked",location:U,proceed(){xl(q,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),Nu(g,w)},reset(){let Ce=new Map(v.blockers);Ce.set(q,Rr),Ve({blockers:Ce})}});return}return await fn(K,U,{submission:I,pendingError:W,preventScrollReset:we,replace:w&&w.replace,enableViewTransition:w&&w.unstable_viewTransition,flushSync:V})}function bf(){if(Bi(),Ve({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){fn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}fn(R||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function fn(g,w,k){z&&z.abort(),z=null,R=g,he=(k&&k.startUninterruptedRevalidation)===!0,up(v.location,v.matches),T=(k&&k.preventScrollReset)===!0,O=(k&&k.enableViewTransition)===!0;let j=a||o,I=k&&k.overrideNavigation,W=Gn(j,w,u),A=(k&&k.flushSync)===!0;if(!W){let Ce=Ze(404,{pathname:w.pathname}),{matches:Je,route:xe}=rc(j);Vi(),mr(w,{matches:Je,loaderData:{},errors:{[xe.id]:Ce}},{flushSync:A});return}if(v.initialized&&!Ge&&kv(v.location,w)&&!(k&&k.submission&&ut(k.submission.formMethod))){mr(w,{matches:W},{flushSync:A});return}z=new AbortController;let U=Lr(e.history,w,z.signal,k&&k.submission),F,K;if(k&&k.pendingError)K={[Qr(W).route.id]:k.pendingError};else if(k&&k.submission&&ut(k.submission.formMethod)){let Ce=await ep(U,w,k.submission,W,{replace:k.replace,flushSync:A});if(Ce.shortCircuited)return;F=Ce.pendingActionData,K=Ce.pendingActionError,I=Eo(w,k.submission),A=!1,U=new Request(U.url,{signal:U.signal})}let{shortCircuited:we,loaderData:V,errors:q}=await tp(U,w,W,I,k&&k.submission,k&&k.fetcherSubmission,k&&k.replace,k&&k.initialHydration===!0,A,F,K);we||(z=null,mr(w,de({matches:W},F?{actionData:F}:{},{loaderData:V,errors:q})))}async function ep(g,w,k,j,I){I===void 0&&(I={}),Bi();let W=Rv(w,k);Ve({navigation:W},{flushSync:I.flushSync===!0});let A,U=ka(j,w);if(!U.route.action&&!U.route.lazy)A={type:se.error,error:Ze(405,{method:g.method,pathname:w.pathname,routeId:U.route.id})};else if(A=await Nr("action",g,U,j,i,l,u,s.v7_relativeSplatPath),g.signal.aborted)return{shortCircuited:!0};if(xn(A)){let F;return I&&I.replace!=null?F=I.replace:F=A.location===v.location.pathname+v.location.search,await vr(v,A,{submission:k,replace:F}),{shortCircuited:!0}}if(Jn(A)){let F=Qr(j,U.route.id);return(I&&I.replace)!==!0&&(R=fe.Push),{pendingActionData:{},pendingActionError:{[F.route.id]:A.error}}}if(wn(A))throw Ze(400,{type:"defer-action"});return{pendingActionData:{[U.route.id]:A.data}}}async function tp(g,w,k,j,I,W,A,U,F,K,we){let V=j||Eo(w,I),q=I||W||oc(V),Ce=a||o,[Je,xe]=Zs(e.history,v,k,q,w,s.v7_partialHydration&&U===!0,Ge,Dn,Mt,ke,ee,G,Ce,u,K,we);if(Vi(Z=>!(k&&k.some(le=>le.route.id===Z))||Je&&Je.some(le=>le.route.id===Z)),H=++D,Je.length===0&&xe.length===0){let Z=Du();return mr(w,de({matches:k,loaderData:{},errors:we||null},K?{actionData:K}:{},Z?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F}),{shortCircuited:!0}}if(!he&&(!s.v7_partialHydration||!U)){xe.forEach(le=>{let ht=v.fetchers.get(le.key),El=Tr(void 0,ht?ht.data:void 0);v.fetchers.set(le.key,El)});let Z=K||v.actionData;Ve(de({navigation:V},Z?Object.keys(Z).length===0?{actionData:null}:{actionData:Z}:{},xe.length>0?{fetchers:new Map(v.fetchers)}:{}),{flushSync:F})}xe.forEach(Z=>{re.has(Z.key)&&Ft(Z.key),Z.controller&&re.set(Z.key,Z.controller)});let Mn=()=>xe.forEach(Z=>Ft(Z.key));z&&z.signal.addEventListener("abort",Mn);let{results:$i,loaderResults:zn,fetcherResults:Ot}=await Lu(v.matches,k,Je,xe,g);if(g.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Mn),xe.forEach(Z=>re.delete(Z.key));let pn=lc($i);if(pn){if(pn.idx>=Je.length){let Z=xe[pn.idx-Je.length].key;G.add(Z)}return await vr(v,pn.result,{replace:A}),{shortCircuited:!0}}let{loaderData:Wi,errors:Qi}=tc(v,k,Je,zn,we,xe,Ot,lt);lt.forEach((Z,le)=>{Z.subscribe(ht=>{(ht||Z.done)&<.delete(le)})});let Ki=Du(),In=Mu(H),Sl=Ki||In||xe.length>0;return de({loaderData:Wi,errors:Qi},Sl?{fetchers:new Map(v.fetchers)}:{})}function np(g,w,k,j){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");re.has(g)&&Ft(g);let I=(j&&j.unstable_flushSync)===!0,W=a||o,A=Sa(v.location,v.matches,u,s.v7_prependBasename,k,s.v7_relativeSplatPath,w,j==null?void 0:j.relative),U=Gn(W,A,u);if(!U){gr(g,w,Ze(404,{pathname:A}),{flushSync:I});return}let{path:F,submission:K,error:we}=Js(s.v7_normalizeFormMethod,!0,A,j);if(we){gr(g,w,we,{flushSync:I});return}let V=ka(U,F);if(T=(j&&j.preventScrollReset)===!0,K&&ut(K.formMethod)){rp(g,w,F,V,U,I,K);return}ee.set(g,{routeId:w,path:F}),lp(g,w,F,V,U,I,K)}async function rp(g,w,k,j,I,W,A){if(Bi(),ee.delete(g),!j.route.action&&!j.route.lazy){let le=Ze(405,{method:A.formMethod,pathname:k,routeId:w});gr(g,w,le,{flushSync:W});return}let U=v.fetchers.get(g);It(g,Nv(A,U),{flushSync:W});let F=new AbortController,K=Lr(e.history,k,F.signal,A);re.set(g,F);let we=D,V=await Nr("action",K,j,I,i,l,u,s.v7_relativeSplatPath);if(K.signal.aborted){re.get(g)===F&&re.delete(g);return}if(s.v7_fetcherPersist&&ke.has(g)){if(xn(V)||Jn(V)){It(g,Ht(void 0));return}}else{if(xn(V))if(re.delete(g),H>we){It(g,Ht(void 0));return}else return G.add(g),It(g,Tr(A)),vr(v,V,{fetcherSubmission:A});if(Jn(V)){gr(g,w,V.error);return}}if(wn(V))throw Ze(400,{type:"defer-action"});let q=v.navigation.location||v.location,Ce=Lr(e.history,q,F.signal),Je=a||o,xe=v.navigation.state!=="idle"?Gn(Je,v.navigation.location,u):v.matches;$(xe,"Didn't find any matches after fetcher action");let Mn=++D;B.set(g,Mn);let $i=Tr(A,V.data);v.fetchers.set(g,$i);let[zn,Ot]=Zs(e.history,v,xe,A,q,!1,Ge,Dn,Mt,ke,ee,G,Je,u,{[j.route.id]:V.data},void 0);Ot.filter(le=>le.key!==g).forEach(le=>{let ht=le.key,El=v.fetchers.get(ht),cp=Tr(void 0,El?El.data:void 0);v.fetchers.set(ht,cp),re.has(ht)&&Ft(ht),le.controller&&re.set(ht,le.controller)}),Ve({fetchers:new Map(v.fetchers)});let pn=()=>Ot.forEach(le=>Ft(le.key));F.signal.addEventListener("abort",pn);let{results:Wi,loaderResults:Qi,fetcherResults:Ki}=await Lu(v.matches,xe,zn,Ot,Ce);if(F.signal.aborted)return;F.signal.removeEventListener("abort",pn),B.delete(g),re.delete(g),Ot.forEach(le=>re.delete(le.key));let In=lc(Wi);if(In){if(In.idx>=zn.length){let le=Ot[In.idx-zn.length].key;G.add(le)}return vr(v,In.result)}let{loaderData:Sl,errors:Z}=tc(v,v.matches,zn,Qi,void 0,Ot,Ki,lt);if(v.fetchers.has(g)){let le=Ht(V.data);v.fetchers.set(g,le)}Mu(Mn),v.navigation.state==="loading"&&Mn>H?($(R,"Expected pending action"),z&&z.abort(),mr(v.navigation.location,{matches:xe,loaderData:Sl,errors:Z,fetchers:new Map(v.fetchers)})):(Ve({errors:Z,loaderData:nc(v.loaderData,Sl,xe,Z),fetchers:new Map(v.fetchers)}),Ge=!1)}async function lp(g,w,k,j,I,W,A){let U=v.fetchers.get(g);It(g,Tr(A,U?U.data:void 0),{flushSync:W});let F=new AbortController,K=Lr(e.history,k,F.signal);re.set(g,F);let we=D,V=await Nr("loader",K,j,I,i,l,u,s.v7_relativeSplatPath);if(wn(V)&&(V=await Hf(V,K.signal,!0)||V),re.get(g)===F&&re.delete(g),!K.signal.aborted){if(ke.has(g)){It(g,Ht(void 0));return}if(xn(V))if(H>we){It(g,Ht(void 0));return}else{G.add(g),await vr(v,V);return}if(Jn(V)){gr(g,w,V.error);return}$(!wn(V),"Unhandled fetcher deferred data"),It(g,Ht(V.data))}}async function vr(g,w,k){let{submission:j,fetcherSubmission:I,replace:W}=k===void 0?{}:k;w.revalidate&&(Ge=!0);let A=sl(g.location,w.location,{_isRedirect:!0});if($(A,"Expected a location on the redirect navigation"),n){let q=!1;if(w.reloadDocument)q=!0;else if(If.test(w.location)){const Ce=e.history.createURL(w.location);q=Ce.origin!==t.location.origin||ln(Ce.pathname,u)==null}if(q){W?t.location.replace(w.location):t.location.assign(w.location);return}}z=null;let U=W===!0?fe.Replace:fe.Push,{formMethod:F,formAction:K,formEncType:we}=g.navigation;!j&&!I&&F&&K&&we&&(j=oc(g.navigation));let V=j||I;if(mv.has(w.status)&&V&&ut(V.formMethod))await fn(U,A,{submission:de({},V,{formAction:w.location}),preventScrollReset:T});else{let q=Eo(A,j);await fn(U,A,{overrideNavigation:q,fetcherSubmission:I,preventScrollReset:T})}}async function Lu(g,w,k,j,I){let W=await Promise.all([...k.map(F=>Nr("loader",I,F,w,i,l,u,s.v7_relativeSplatPath)),...j.map(F=>F.matches&&F.match&&F.controller?Nr("loader",Lr(e.history,F.path,F.controller.signal),F.match,F.matches,i,l,u,s.v7_relativeSplatPath):{type:se.error,error:Ze(404,{pathname:F.path})})]),A=W.slice(0,k.length),U=W.slice(k.length);return await Promise.all([ic(g,k,A,A.map(()=>I.signal),!1,v.loaderData),ic(g,j.map(F=>F.match),U,j.map(F=>F.controller?F.controller.signal:null),!0)]),{results:W,loaderResults:A,fetcherResults:U}}function Bi(){Ge=!0,Dn.push(...Vi()),ee.forEach((g,w)=>{re.has(w)&&(Mt.push(w),Ft(w))})}function It(g,w,k){k===void 0&&(k={}),v.fetchers.set(g,w),Ve({fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function gr(g,w,k,j){j===void 0&&(j={});let I=Qr(v.matches,w);wl(g),Ve({errors:{[I.route.id]:k},fetchers:new Map(v.fetchers)},{flushSync:(j&&j.flushSync)===!0})}function Tu(g){return s.v7_fetcherPersist&&(pt.set(g,(pt.get(g)||0)+1),ke.has(g)&&ke.delete(g)),v.fetchers.get(g)||vv}function wl(g){let w=v.fetchers.get(g);re.has(g)&&!(w&&w.state==="loading"&&B.has(g))&&Ft(g),ee.delete(g),B.delete(g),G.delete(g),ke.delete(g),v.fetchers.delete(g)}function ip(g){if(s.v7_fetcherPersist){let w=(pt.get(g)||0)-1;w<=0?(pt.delete(g),ke.add(g)):pt.set(g,w)}else wl(g);Ve({fetchers:new Map(v.fetchers)})}function Ft(g){let w=re.get(g);$(w,"Expected fetch controller: "+g),w.abort(),re.delete(g)}function ju(g){for(let w of g){let k=Tu(w),j=Ht(k.data);v.fetchers.set(w,j)}}function Du(){let g=[],w=!1;for(let k of G){let j=v.fetchers.get(k);$(j,"Expected fetcher: "+k),j.state==="loading"&&(G.delete(k),g.push(k),w=!0)}return ju(g),w}function Mu(g){let w=[];for(let[k,j]of B)if(j0}function op(g,w){let k=v.blockers.get(g)||Rr;return De.get(g)!==w&&De.set(g,w),k}function zu(g){v.blockers.delete(g),De.delete(g)}function xl(g,w){let k=v.blockers.get(g)||Rr;$(k.state==="unblocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="blocked"||k.state==="blocked"&&w.state==="proceeding"||k.state==="blocked"&&w.state==="unblocked"||k.state==="proceeding"&&w.state==="unblocked","Invalid blocker state transition: "+k.state+" -> "+w.state);let j=new Map(v.blockers);j.set(g,w),Ve({blockers:j})}function Iu(g){let{currentLocation:w,nextLocation:k,historyAction:j}=g;if(De.size===0)return;De.size>1&&Nn(!1,"A router only supports one blocker at a time");let I=Array.from(De.entries()),[W,A]=I[I.length-1],U=v.blockers.get(W);if(!(U&&U.state==="proceeding")&&A({currentLocation:w,nextLocation:k,historyAction:j}))return W}function Vi(g){let w=[];return lt.forEach((k,j)=>{(!g||g(j))&&(k.cancel(),w.push(j),lt.delete(j))}),w}function ap(g,w,k){if(m=g,x=w,S=k||null,!y&&v.navigation===So){y=!0;let j=Ou(v.location,v.matches);j!=null&&Ve({restoreScrollPosition:j})}return()=>{m=null,x=null,S=null}}function Fu(g,w){return S&&S(g,w.map(j=>Km(j,v.loaderData)))||g.key}function up(g,w){if(m&&x){let k=Fu(g,w);m[k]=x()}}function Ou(g,w){if(m){let k=Fu(g,w),j=m[k];if(typeof j=="number")return j}return null}function sp(g){i={},a=wa(g,l,void 0,i)}return L={get basename(){return u},get future(){return s},get state(){return v},get routes(){return o},get window(){return t},initialize:Jf,subscribe:qf,enableScrollRestoration:ap,navigate:Nu,fetch:np,revalidate:bf,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:Tu,deleteFetcher:ip,dispose:Zf,getBlocker:op,deleteBlocker:zu,_internalFetchControllers:re,_internalActiveDeferreds:lt,_internalSetRoutes:sp},L}function wv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Sa(e,t,n,r,l,i,o,a){let u,s;if(o){u=[];for(let p of t)if(u.push(p),p.route.id===o){s=p;break}}else u=t,s=t[t.length-1];let c=ku(l||".",Eu(u,i),ln(e.pathname,n)||e.pathname,a==="path");return l==null&&(c.search=e.search,c.hash=e.hash),(l==null||l===""||l===".")&&s&&s.route.index&&!Pu(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:_t([n,c.pathname])),Ln(c)}function Js(e,t,n,r){if(!r||!wv(r))return{path:n};if(r.formMethod&&!_v(r.formMethod))return{path:n,error:Ze(405,{method:r.formMethod})};let l=()=>({path:n,error:Ze(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),a=Uf(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ut(o))return l();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,x)=>{let[y,_]=x;return""+S+y+"="+_+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!ut(o))return l();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return l()}}}$(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Ea(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Ea(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=ec(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=ec(u)}catch{return l()}let c={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(ut(c.formMethod))return{path:n,submission:c};let p=Dt(n);return t&&p.search&&Pu(p.search)&&u.append("index",""),p.search="?"+u,{path:Ln(p),submission:c}}function xv(e,t){let n=e;if(t){let r=e.findIndex(l=>l.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Zs(e,t,n,r,l,i,o,a,u,s,c,p,m,S,x,y){let _=y?Object.values(y)[0]:x?Object.values(x)[0]:void 0,f=e.createURL(t.location),d=e.createURL(l),h=y?Object.keys(y)[0]:void 0,L=xv(n,h).filter((R,T)=>{let{route:z}=R;if(z.lazy)return!0;if(z.loader==null)return!1;if(i)return z.loader.hydrate?!0:t.loaderData[z.id]===void 0&&(!t.errors||t.errors[z.id]===void 0);if(Sv(t.loaderData,t.matches[T],R)||a.some(ve=>ve===R.route.id))return!0;let O=t.matches[T],X=R;return qs(R,de({currentUrl:f,currentParams:O.params,nextUrl:d,nextParams:X.params},r,{actionResult:_,defaultShouldRevalidate:o||f.pathname+f.search===d.pathname+d.search||f.search!==d.search||Of(O,X)}))}),v=[];return c.forEach((R,T)=>{if(i||!n.some(he=>he.route.id===R.routeId)||s.has(T))return;let z=Gn(m,R.path,S);if(!z){v.push({key:T,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(T),X=ka(z,R.path),ve=!1;p.has(T)?ve=!1:u.includes(T)?ve=!0:O&&O.state!=="idle"&&O.data===void 0?ve=o:ve=qs(X,de({currentUrl:f,currentParams:t.matches[t.matches.length-1].params,nextUrl:d,nextParams:n[n.length-1].params},r,{actionResult:_,defaultShouldRevalidate:o})),ve&&v.push({key:T,routeId:R.routeId,path:R.path,matches:z,match:X,controller:new AbortController})}),[L,v]}function Sv(e,t,n){let r=!t||n.route.id!==t.route.id,l=e[n.route.id]===void 0;return r||l}function Of(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function qs(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function bs(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let l=n[e.id];$(l,"No route found in manifest");let i={};for(let o in r){let u=l[o]!==void 0&&o!=="hasErrorBoundary";Nn(!u,'Route "'+l.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!u&&!Wm.has(o)&&(i[o]=r[o])}Object.assign(l,i),Object.assign(l,de({},t(l),{lazy:void 0}))}async function Nr(e,t,n,r,l,i,o,a,u){u===void 0&&(u={});let s,c,p,m=y=>{let _,f=new Promise((d,h)=>_=h);return p=()=>_(),t.signal.addEventListener("abort",p),Promise.race([y({request:t,params:n.params,context:u.requestContext}),f])};try{let y=n.route[e];if(n.route.lazy)if(y){let _,f=await Promise.all([m(y).catch(d=>{_=d}),bs(n.route,i,l)]);if(_)throw _;c=f[0]}else if(await bs(n.route,i,l),y=n.route[e],y)c=await m(y);else if(e==="action"){let _=new URL(t.url),f=_.pathname+_.search;throw Ze(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:se.data,data:void 0};else if(y)c=await m(y);else{let _=new URL(t.url),f=_.pathname+_.search;throw Ze(404,{pathname:f})}$(c!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){s=se.error,c=y}finally{p&&t.signal.removeEventListener("abort",p)}if(Pv(c)){let y=c.status;if(hv.has(y)){let f=c.headers.get("Location");if($(f,"Redirects returned/thrown from loaders/actions must have a Location header"),!If.test(f))f=Sa(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,f,a);else if(!u.isStaticRequest){let d=new URL(t.url),h=f.startsWith("//")?new URL(d.protocol+f):new URL(f),E=ln(h.pathname,o)!=null;h.origin===d.origin&&E&&(f=h.pathname+h.search+h.hash)}if(u.isStaticRequest)throw c.headers.set("Location",f),c;return{type:se.redirect,status:y,location:f,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest)throw{type:s===se.error?se.error:se.data,response:c};let _;try{let f=c.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?_=await c.json():_=await c.text()}catch(f){return{type:se.error,error:f}}return s===se.error?{type:s,error:new Cu(y,c.statusText,_),headers:c.headers}:{type:se.data,data:_,statusCode:c.status,headers:c.headers}}if(s===se.error)return{type:s,error:c};if(Cv(c)){var S,x;return{type:se.deferred,deferredData:c,statusCode:(S=c.init)==null?void 0:S.status,headers:((x=c.init)==null?void 0:x.headers)&&new Headers(c.init.headers)}}return{type:se.data,data:c}}function Lr(e,t,n,r){let l=e.createURL(Uf(t)).toString(),i={signal:n};if(r&&ut(r.formMethod)){let{formMethod:o,formEncType:a}=r;i.method=o.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=Ea(r.formData):i.body=r.formData}return new Request(l,i)}function Ea(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function ec(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ev(e,t,n,r,l){let i={},o=null,a,u=!1,s={};return n.forEach((c,p)=>{let m=t[p].route.id;if($(!xn(c),"Cannot handle redirect results in processLoaderData"),Jn(c)){let S=Qr(e,m),x=c.error;r&&(x=Object.values(r)[0],r=void 0),o=o||{},o[S.route.id]==null&&(o[S.route.id]=x),i[m]=void 0,u||(u=!0,a=Mf(c.error)?c.error.status:500),c.headers&&(s[m]=c.headers)}else wn(c)?(l.set(m,c.deferredData),i[m]=c.deferredData.data):i[m]=c.data,c.statusCode!=null&&c.statusCode!==200&&!u&&(a=c.statusCode),c.headers&&(s[m]=c.headers)}),r&&(o=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:o,statusCode:a||200,loaderHeaders:s}}function tc(e,t,n,r,l,i,o,a){let{loaderData:u,errors:s}=Ev(t,n,r,l,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function rc(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ze(e,t){let{pathname:n,routeId:r,method:l,type:i}=t===void 0?{}:t,o="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(o="Bad Request",l&&n&&r?a="You made a "+l+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?a="defer() is not supported in actions":i==="invalid-body"&&(a="Unable to encode submission body")):e===403?(o="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",a='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",l&&n&&r?a="You made a "+l.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":l&&(a='Invalid request method "'+l.toUpperCase()+'"')),new Cu(e||500,o,new Error(a),!0)}function lc(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xn(n))return{result:n,idx:t}}}function Uf(e){let t=typeof e=="string"?Dt(e):e;return Ln(de({},t,{hash:""}))}function kv(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function wn(e){return e.type===se.deferred}function Jn(e){return e.type===se.error}function xn(e){return(e&&e.type)===se.redirect}function Cv(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Pv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function _v(e){return pv.has(e.toLowerCase())}function ut(e){return dv.has(e.toLowerCase())}async function ic(e,t,n,r,l,i){for(let o=0;op.route.id===u.route.id),c=s!=null&&!Of(s,u)&&(i&&i[u.route.id])!==void 0;if(wn(a)&&(l||c)){let p=r[o];$(p,"Expected an AbortSignal for revalidating fetcher deferred result"),await Hf(a,p,l).then(m=>{m&&(n[o]=m||n[o])})}}}async function Hf(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:se.data,data:e.deferredData.unwrappedData}}catch(l){return{type:se.error,error:l}}return{type:se.data,data:e.deferredData.data}}}function Pu(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function ka(e,t){let n=typeof t=="string"?Dt(t).search:t.search;if(e[e.length-1].route.index&&Pu(n||""))return e[e.length-1];let r=Df(e);return r[r.length-1]}function oc(e){let{formMethod:t,formAction:n,formEncType:r,text:l,formData:i,json:o}=e;if(!(!t||!n||!r)){if(l!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:l};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Eo(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Rv(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Tr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Nv(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ht(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Lv(e,t){try{let n=e.sessionStorage.getItem(Ff);if(n){let r=JSON.parse(n);for(let[l,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(l,new Set(i||[]))}}catch{}}function Tv(e,t){if(t.size>0){let n={};for(let[r,l]of t)n[r]=[...l];try{e.sessionStorage.setItem(Ff,JSON.stringify(n))}catch(r){Nn(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.21.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),P.useCallback(function(s,c){if(c===void 0&&(c={}),!a.current)return;if(typeof s=="number"){r.go(s);return}let p=ku(s,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:_t([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,o,i,e])}const zv=P.createContext(null);function Iv(e){let t=P.useContext(dn).outlet;return t&&P.createElement(zv.Provider,{value:e},t)}function Ai(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=P.useContext(cn),{matches:l}=P.useContext(dn),{pathname:i}=yl(),o=JSON.stringify(Eu(l,r.v7_relativeSplatPath));return P.useMemo(()=>ku(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Fv(e,t,n,r){gl()||$(!1);let{navigator:l}=P.useContext(cn),{matches:i}=P.useContext(dn),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let s=yl(),c;if(t){var p;let _=typeof t=="string"?Dt(t):t;u==="/"||(p=_.pathname)!=null&&p.startsWith(u)||$(!1),c=_}else c=s;let m=c.pathname||"/",S=u==="/"?m:m.slice(u.length)||"/",x=Gn(e,{pathname:S}),y=Bv(x&&x.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:_t([u,l.encodeLocation?l.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?u:_t([u,l.encodeLocation?l.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),i,n,r);return t&&y?P.createElement(Hi.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:fe.Pop}},y):y}function Ov(){let e=Qv(),t=Mf(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:l},n):null,i)}const Uv=P.createElement(Ov,null);class Hv extends P.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?P.createElement(dn.Provider,{value:this.props.routeContext},P.createElement(Af.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Av(e){let{routeContext:t,match:n,children:r}=e,l=P.useContext(vl);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(dn.Provider,{value:t},r)}function Bv(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let c=o.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id]));c>=0||$(!1),o=o.slice(0,Math.min(o.length,c+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((c,p,m)=>{let S,x=!1,y=null,_=null;n&&(S=a&&p.route.id?a[p.route.id]:void 0,y=p.route.errorElement||Uv,u&&(s<0&&m===0?(Yv("route-fallback",!1),x=!0,_=null):s===m&&(x=!0,_=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,m+1)),d=()=>{let h;return S?h=y:x?h=_:p.route.Component?h=P.createElement(p.route.Component,null):p.route.element?h=p.route.element:h=c,P.createElement(Av,{match:p,routeContext:{outlet:c,matches:f,isDataRoute:n!=null},children:h})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?P.createElement(Hv,{location:n.location,revalidation:n.revalidation,component:y,error:S,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Vf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vf||{}),Ei=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}(Ei||{});function Vv(e){let t=P.useContext(vl);return t||$(!1),t}function $v(e){let t=P.useContext(_u);return t||$(!1),t}function Wv(e){let t=P.useContext(dn);return t||$(!1),t}function $f(e){let t=Wv(),n=t.matches[t.matches.length-1];return n.route.id||$(!1),n.route.id}function Qv(){var e;let t=P.useContext(Af),n=$v(Ei.UseRouteError),r=$f(Ei.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Kv(){let{router:e}=Vv(Vf.UseNavigateStable),t=$f(Ei.UseNavigateStable),n=P.useRef(!1);return Bf(()=>{n.current=!0}),P.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,cl({fromRouteId:t},i)))},[e,t])}const ac={};function Yv(e,t,n){!t&&!ac[e]&&(ac[e]=!0)}function Xv(e){return Iv(e.context)}function Gv(e){let{basename:t="/",children:n=null,location:r,navigationType:l=fe.Pop,navigator:i,static:o=!1,future:a}=e;gl()&&$(!1);let u=t.replace(/^\/*/,"/"),s=P.useMemo(()=>({basename:u,navigator:i,static:o,future:cl({v7_relativeSplatPath:!1},a)}),[u,a,i,o]);typeof r=="string"&&(r=Dt(r));let{pathname:c="/",search:p="",hash:m="",state:S=null,key:x="default"}=r,y=P.useMemo(()=>{let _=ln(c,u);return _==null?null:{location:{pathname:_,search:p,hash:m,state:S,key:x},navigationType:l}},[u,c,p,m,S,x,l]);return y==null?null:P.createElement(cn.Provider,{value:s},P.createElement(Hi.Provider,{children:n,value:y}))}new Promise(()=>{});function Jv(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:P.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.21.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function Zv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qv(e,t){return e.button===0&&(!t||t==="_self")&&!Zv(e)}const bv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],e0=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function t0(e,t){return yv({basename:t==null?void 0:t.basename,future:cr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Bm({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||n0(),routes:e,mapRouteProperties:Jv,window:t==null?void 0:t.window}).initialize()}function n0(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cr({},t,{errors:r0(t.errors)})),t}function r0(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,l]of t)if(l&&l.__type==="RouteErrorResponse")n[r]=new Cu(l.status,l.statusText,l.data,l.internal===!0);else if(l&&l.__type==="Error"){if(l.__subType){let i=window[l.__subType];if(typeof i=="function")try{let o=new i(l.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(l.message);i.stack="",n[r]=i}}else n[r]=l;return n}const Qf=P.createContext({isTransitioning:!1}),l0=P.createContext(new Map),i0="startTransition",uc=Lp[i0],o0="flushSync",sc=Hm[o0];function a0(e){uc?uc(e):e()}function jr(e){sc?sc(e):e()}class u0{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function s0(e){let{fallbackElement:t,router:n,future:r}=e,[l,i]=P.useState(n.state),[o,a]=P.useState(),[u,s]=P.useState({isTransitioning:!1}),[c,p]=P.useState(),[m,S]=P.useState(),[x,y]=P.useState(),_=P.useRef(new Map),{v7_startTransition:f}=r||{},d=P.useCallback(R=>{f?a0(R):R()},[f]),h=P.useCallback((R,T)=>{let{deletedFetchers:z,unstable_flushSync:O,unstable_viewTransitionOpts:X}=T;z.forEach(he=>_.current.delete(he)),R.fetchers.forEach((he,Ge)=>{he.data!==void 0&&_.current.set(Ge,he.data)});let ve=n.window==null||typeof n.window.document.startViewTransition!="function";if(!X||ve){O?jr(()=>i(R)):d(()=>i(R));return}if(O){jr(()=>{m&&(c&&c.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:X.currentLocation,nextLocation:X.nextLocation})});let he=n.window.document.startViewTransition(()=>{jr(()=>i(R))});he.finished.finally(()=>{jr(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})})}),jr(()=>S(he));return}m?(c&&c.resolve(),m.skipTransition(),y({state:R,currentLocation:X.currentLocation,nextLocation:X.nextLocation})):(a(R),s({isTransitioning:!0,flushSync:!1,currentLocation:X.currentLocation,nextLocation:X.nextLocation}))},[n.window,m,c,_,d]);P.useLayoutEffect(()=>n.subscribe(h),[n,h]),P.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new u0)},[u]),P.useEffect(()=>{if(c&&o&&n.window){let R=o,T=c.promise,z=n.window.document.startViewTransition(async()=>{d(()=>i(R)),await T});z.finished.finally(()=>{p(void 0),S(void 0),a(void 0),s({isTransitioning:!1})}),S(z)}},[d,o,c,n.window]),P.useEffect(()=>{c&&o&&l.location.key===o.location.key&&c.resolve()},[c,m,l.location,o]),P.useEffect(()=>{!u.isTransitioning&&x&&(a(x.state),s({isTransitioning:!0,flushSync:!1,currentLocation:x.currentLocation,nextLocation:x.nextLocation}),y(void 0))},[u.isTransitioning,x]),P.useEffect(()=>{},[]);let E=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,T,z)=>n.navigate(R,{state:T,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(R,T,z)=>n.navigate(R,{replace:!0,state:T,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[n]),L=n.basename||"/",v=P.useMemo(()=>({router:n,navigator:E,static:!1,basename:L}),[n,E,L]);return P.createElement(P.Fragment,null,P.createElement(vl.Provider,{value:v},P.createElement(_u.Provider,{value:l},P.createElement(l0.Provider,{value:_.current},P.createElement(Qf.Provider,{value:u},P.createElement(Gv,{basename:L,location:l.location,navigationType:l.historyAction,navigator:E,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},l.initialized||n.future.v7_partialHydration?P.createElement(c0,{routes:n.routes,future:n.future,state:l}):t))))),null)}function c0(e){let{routes:t,future:n,state:r}=e;return Fv(t,void 0,r,n)}const d0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ca=P.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:o,state:a,target:u,to:s,preventScrollReset:c,unstable_viewTransition:p}=t,m=Wf(t,bv),{basename:S}=P.useContext(cn),x,y=!1;if(typeof s=="string"&&f0.test(s)&&(x=s,d0))try{let h=new URL(window.location.href),E=s.startsWith("//")?new URL(h.protocol+s):new URL(s),L=ln(E.pathname,S);E.origin===h.origin&&L!=null?s=L+E.search+E.hash:y=!0}catch{}let _=jv(s,{relative:l}),f=h0(s,{replace:o,state:a,target:u,preventScrollReset:c,relative:l,unstable_viewTransition:p});function d(h){r&&r(h),h.defaultPrevented||f(h)}return P.createElement("a",cr({},m,{href:x||_,onClick:y||i?r:d,ref:n,target:u}))}),ko=P.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:o=!1,style:a,to:u,unstable_viewTransition:s,children:c}=t,p=Wf(t,e0),m=Ai(u,{relative:p.relative}),S=yl(),x=P.useContext(_u),{navigator:y}=P.useContext(cn),_=x!=null&&m0(m)&&s===!0,f=y.encodeLocation?y.encodeLocation(m).pathname:m.pathname,d=S.pathname,h=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;l||(d=d.toLowerCase(),h=h?h.toLowerCase():null,f=f.toLowerCase());const E=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let L=d===f||!o&&d.startsWith(f)&&d.charAt(E)==="/",v=h!=null&&(h===f||!o&&h.startsWith(f)&&h.charAt(f.length)==="/"),R={isActive:L,isPending:v,isTransitioning:_},T=L?r:void 0,z;typeof i=="function"?z=i(R):z=[i,L?"active":null,v?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let O=typeof a=="function"?a(R):a;return P.createElement(Ca,cr({},p,{"aria-current":T,className:z,ref:n,style:O,to:u,unstable_viewTransition:s}),typeof c=="function"?c(R):c)});var Pa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pa||(Pa={}));var cc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cc||(cc={}));function p0(e){let t=P.useContext(vl);return t||$(!1),t}function h0(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,u=Dv(),s=yl(),c=Ai(e,{relative:o});return P.useCallback(p=>{if(qv(p,n)){p.preventDefault();let m=r!==void 0?r:Ln(s)===Ln(c);u(e,{replace:m,state:l,preventScrollReset:i,relative:o,unstable_viewTransition:a})}},[s,u,c,r,l,n,e,i,o,a])}function m0(e,t){t===void 0&&(t={});let n=P.useContext(Qf);n==null&&$(!1);let{basename:r}=p0(Pa.useViewTransitionState),l=Ai(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=ln(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ln(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xa(l.pathname,o)!=null||xa(l.pathname,i)!=null}const Ct="/expenses-react-app/",Kf=({children:e})=>C.jsx("div",{className:"px-6 sm:px-12 lg:px-20",children:e}),v0=()=>C.jsxs("ul",{className:"flex items-center gap-8",children:[C.jsx("li",{children:C.jsx(ko,{to:Ct,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",end:!0,children:"Home"})}),C.jsx("li",{children:C.jsx(ko,{to:`${Ct}login`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Log In"})}),C.jsx("li",{children:C.jsx(ko,{to:`${Ct}register`,className:({isActive:e})=>e?"relative after:absolute after:content-[''] after:left-0 after:right-0 after:-bottom-1.5 after:w-full after:h-0.5 after:bg-light no-underline text-light":"text-light no-underline",children:"Sign Up"})})]}),g0="/expenses-react-app/assets/logo-HTwwoxjU.png",y0=()=>C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx("img",{className:"w-12 h-12",src:g0,alt:"Expenses React App Logo"}),C.jsx("span",{className:"block font-medium text-light",children:"Expense Tracker"})]}),w0=()=>C.jsx("header",{className:"py-4 bg-primary",children:C.jsx(Kf,{children:C.jsxs("div",{className:"flex items-center justify-between",children:[C.jsx(y0,{}),C.jsx("nav",{children:C.jsx(v0,{})})]})})}),x0=()=>C.jsxs(C.Fragment,{children:[C.jsx(w0,{}),C.jsx("main",{style:{padding:"3rem 0"},children:C.jsx(Kf,{children:C.jsx(Xv,{})})})]}),Ru=()=>{const[e,t]=P.useState(!1),[n,r]=P.useState(null),l=P.useCallback(async(i,o)=>{t(!0),r(null);try{const a=await fetch(i.url,{method:i.method?i.method:"GET",headers:i.headers?i.headers:{},body:i.body?JSON.stringify(i.body):null});if(!a.ok)throw new Error("Request failed!");const u=await a.json();o(u)}catch(a){r(a.message||"Oops... Something went wrong!")}t(!1)},[]);return{isLoading:e,error:n,sendRequest:l}};class Yf{constructor(t,n,r,l){yr(this,"id");yr(this,"title");yr(this,"amount");yr(this,"date");this.id=t,this.title=n,this.amount=r,this.date=l}}const hr=({className:e,tagName:t,children:n})=>{const r=t||"div";return C.jsx(r,{className:e?`overflow-hidden rounded-md shadow-card ${e}`:"overflow-hidden rounded-md shadow-card",children:n})},S0=({selected:e,onSelectedItem:t})=>{const n=r=>{t(r.target.value)};return C.jsx("div",{className:"px-4 text-light",children:C.jsxs("div",{className:"my-5 flex items-center justify-between",children:[C.jsx("label",{className:"font-bold",children:"Filter by year"}),C.jsxs("select",{className:"py-2 px-6 font-bold rounded-md text-dark",value:e,onChange:n,children:[C.jsx("option",{value:"none",children:"All"}),C.jsx("option",{value:"2023",children:"2023"}),C.jsx("option",{value:"2022",children:"2022"}),C.jsx("option",{value:"2021",children:"2021"}),C.jsx("option",{value:"2020",children:"2020"}),C.jsx("option",{value:"2019",children:"2019"})]})]})})},on=({id:e,className:t,type:n,disabled:r,onClick:l,children:i})=>C.jsx("button",{id:e,className:t?`py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all ${t}`:"py-3.5 px-7 md:py-4 md:px-8 w-fit rounded-xl text-light bg-accent hover:bg-accent-light active:bg-accent-light disabled:bg-opacity-80 transition-all",type:n||"button",onClick:l,disabled:r,children:i}),E0=({title:e,text:t,onConfirm:n})=>{const r=P.useContext(Su),l=i=>{(i.target.classList.contains("modal")||i.target.id==="cancel-btn")&&r.removeModal()};return C.jsx("div",{className:r.isActive?"modal fixed z-[5] top-0 left-0 w-full h-full flex items-center justify-center opacity-100 visible bg-dark bg-opacity-60 transition-all":"fixed -z-[1] top-0 left-0 w-full h-full flex items-center justify-center opacity-0 invisible bg-dark bg-opacity-60 transition-all",onClick:l,children:C.jsxs(hr,{className:"p-8 flex flex-col text-dark bg-light",children:[C.jsx("h2",{className:"mb-5 text-xl font-semibold text-center",children:e}),C.jsx("p",{className:"mb-8",children:t}),C.jsxs("div",{className:"flex justify-center gap-4",children:[C.jsx(on,{id:"cancel-btn",type:"button",onClick:l,children:"Close"}),C.jsx(on,{id:"action-btn",className:"bg-danger hover:bg-[#ce0000]",type:"button",onClick:n,children:"Delete"})]})]})})},k0=({date:e})=>{const t=e.toLocaleString("en-US",{month:"long"}),n=e.toLocaleString("en-US",{day:"2-digit"}),r=e.getFullYear();return C.jsxs("div",{className:"w-20 h-20 flex flex-col items-center justify-center rounded-xl text-light bg-primary",children:[C.jsx("span",{className:"text-xs md:text-sm font-semibold",children:t}),C.jsx("span",{className:"text-xl md:text-2xl font-bold",children:r}),C.jsx("span",{className:"text-xs md:text-sm",children:n})]})},C0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='white'%20class='bi%20bi-trash3'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%201h3a.5.5%200%200%201%20.5.5v1H6v-1a.5.5%200%200%201%20.5-.5ZM11%202.5v-1A1.5%201.5%200%200%200%209.5%200h-3A1.5%201.5%200%200%200%205%201.5v1H2.506a.58.58%200%200%200-.01%200H1.5a.5.5%200%200%200%200%201h.538l.853%2010.66A2%202%200%200%200%204.885%2016h6.23a2%202%200%200%200%201.994-1.84l.853-10.66h.538a.5.5%200%200%200%200-1h-.995a.59.59%200%200%200-.01%200H11Zm1.958%201-.846%2010.58a1%201%200%200%201-.997.92h-6.23a1%201%200%200%201-.997-.92L3.042%203.5h9.916Zm-7.487%201a.5.5%200%200%201%20.528.47l.5%208.5a.5.5%200%200%201-.998.06L5%205.03a.5.5%200%200%201%20.47-.53Zm5.058%200a.5.5%200%200%201%20.47.53l-.5%208.5a.5.5%200%201%201-.998-.06l.5-8.5a.5.5%200%200%201%20.528-.47ZM8%204.5a.5.5%200%200%201%20.5.5v8.5a.5.5%200%200%201-1%200V5a.5.5%200%200%201%20.5-.5Z'/%3e%3c/svg%3e",P0=({id:e,title:t,amount:n,date:r,onDelete:l})=>{const i=()=>{e&&l(e,t)};return C.jsxs(hr,{className:"p-3 my-4 flex items-center justify-between bg-secondary",tagName:"li",children:[C.jsx(k0,{date:r}),C.jsxs("div",{className:"flex-[1] flex flex-col-reverse items-end md:flex-row md:items-center justify-start gap-3",children:[C.jsx("h2",{className:"flex-[1] md:mx-4 md:text-xl text-right md:text-left text-light",children:t}),C.jsxs("span",{className:"p-2 md:py-2 md:px-6 md:text-xl rounded-xl text-light bg-accent",children:["$",n]})]}),C.jsx(on,{className:"!p-3 ml-3 bg-dark hover:shadow-card focus:scale-95 transition-all",type:"button",onClick:i,children:C.jsx("img",{className:"w-4 h-4 md:w-5 md:h-5",src:C0,alt:"Delete"})})]})},_0=({items:e,onDeleteItem:t,isLoading:n,error:r})=>{const l=P.useContext(Su),[i,o]=P.useState({expenseId:"",expenseTitle:""}),{sendRequest:a}=Ru(),u=(y,_)=>{l.displayModal(),o({expenseId:y,expenseTitle:_})},s=`Are you sure you want to delete expense "${i.expenseTitle}"?`,c="Delete expense",p=y=>{l.removeModal(),t(y)},m=async()=>{a({url:`https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses/${i.expenseId}.json`,method:"DELETE",headers:{"Content-Type":"application/json"}},p.bind(null,i.expenseId))};let S=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Found no expenses."});e.length>0&&(S=C.jsx("ul",{className:"list-none",children:e.map(y=>C.jsx(P0,{id:y.id,title:y.title,amount:y.amount,date:y.date,onDelete:u},y.id))}));let x=S;return n&&(x=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:"Loading expenses..."})),r&&(x=C.jsx("h2",{className:"mt-8 md:text-xl font-bold text-center text-light",children:r})),C.jsxs(C.Fragment,{children:[Lf.createPortal(C.jsx(E0,{title:c,text:s,onConfirm:m}),document.getElementById("modal-root")),x]})},R0=({total:e,value:t,label:n})=>{let r="0%";return e>0&&(r=Math.round(t/e*100)+"%"),C.jsxs("div",{className:"h-24 sm:h-28 flex flex-col items-center gap-1",children:[C.jsx("div",{className:"overflow-hidden h-full w-5 flex flex-col justify-end rounded-xl border border-secondary bg-[#c3b4f3]",children:C.jsx("div",{className:"w-full bg-[#4826b9] transition-all",style:{height:r}})}),C.jsx("div",{className:"text-sm font-semibold text-center text-dark",children:n})]})},N0="_chart_n7zub_1",L0={chart:N0},T0=({dataPoints:e})=>{const n=e.map(r=>r.value).reduce((r,l)=>r+l,0);return C.jsx(hr,{className:`p-5 flex flex-wrap gap-y-4 bg-[#f8dfff] ${L0.chart}`,children:e.map(r=>C.jsx(R0,{value:r.value,total:n,label:r.label},r.label))})},dc=[{label:"Jan",value:0},{label:"Feb",value:0},{label:"Mar",value:0},{label:"Apr",value:0},{label:"May",value:0},{label:"Jun",value:0},{label:"Jul",value:0},{label:"Aug",value:0},{label:"Sep",value:0},{label:"Oct",value:0},{label:"Nov",value:0},{label:"Dec",value:0}],j0=({expenses:e})=>{for(const t of e){const n=t.date.getMonth();dc[n].value+=t.amount}return C.jsx(T0,{dataPoints:dc})},D0=({data:e,onDeleteItem:t,isLoading:n,error:r})=>{const[l,i]=P.useState("none"),o=u=>{i(u)};let a;return l!=="none"?a=e.filter(u=>u.date.getFullYear().toString()===l):a=e,C.jsxs(hr,{className:"p-6 mt-8 mx-auto max-w-[50rem] bg-primary",children:[C.jsx(S0,{selected:l,onSelectedItem:o}),C.jsx(j0,{expenses:a}),C.jsx(_0,{isLoading:n,error:r,items:a,onDeleteItem:t})]})},Xf={value:"",isValid:null},M0=(e,t)=>{switch(t.type){case"USER_INPUT":return{value:t.value,isValid:t.validate(t.value)};case"INPUT_BLUR":return{value:e.value,isValid:t.validate(e.value)};case"CLEAR_INPUT":return Xf;default:return{value:"",isValid:!1}}},en=e=>{const[t,n]=P.useReducer(M0,Xf),r=o=>{n({type:"USER_INPUT",value:o.target.value,validate:e})},l=()=>{n({type:"INPUT_BLUR",validate:e})},i=()=>{n({type:"CLEAR_INPUT"})};return{value:t.value,isValid:t.isValid,inputChangeHandler:r,inputBlurHandler:l,inputClearHandler:i}},z0={"new-expense-controls":"_new-expense-controls_170ne_1"},tn=({label:e,id:t,className:n,type:r,min:l,max:i,step:o,value:a,hasError:u,onChange:s,onBlur:c})=>{let p;return u?p=n?`p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger ${n}`:"p-2 w-full h-10 text-dark rounded-md outline outline-2 outline-danger":p=n?`p-2 w-full h-10 text-dark rounded-md ${n}`:"p-2 w-full h-10 text-dark rounded-md",C.jsxs("div",{children:[C.jsx("label",{className:"mb-2 block text-sm sm:text-base font-bold text-dark",htmlFor:t,children:e}),C.jsx("input",{id:t,className:p,type:r,min:l,max:i,step:o,value:a,onChange:s,onBlur:c})]})},Co=e=>e.trim().length!==0,I0=({onSaveExpenseData:e,onCancel:t,loading:n})=>{const{value:r,isValid:l,inputChangeHandler:i,inputBlurHandler:o,inputClearHandler:a}=en(Co),{value:u,isValid:s,inputChangeHandler:c,inputBlurHandler:p,inputClearHandler:m}=en(Co),{value:S,isValid:x,inputChangeHandler:y,inputBlurHandler:_,inputClearHandler:f}=en(Co),[d,h]=P.useState(!1);P.useEffect(()=>{const v=setTimeout(()=>{h(l&&s&&x)},250);return()=>{clearTimeout(v)}},[l,s,x]);const E=()=>{a(),m(),f()},L=v=>{if(v.preventDefault(),d){const R={title:r,amount:+u,date:new Date(S)};e(R),E()}else l?s?_():p():o()};return C.jsxs("form",{onSubmit:L,children:[C.jsxs("div",{className:`mb-6 flex flex-wrap justify-stretch md:justify-center gap-6 text-left ${z0["new-expense-controls"]}`,children:[C.jsx(tn,{label:"Title",id:"title",type:"text",value:r,hasError:l!==null&&!l,onChange:i,onBlur:o}),C.jsx(tn,{label:"Amount",id:"amount",type:"number",min:"0.01",step:"0.01",value:u,hasError:s!==null&&!s,onChange:c,onBlur:p}),C.jsx(tn,{label:"Date",id:"date",type:"date",min:"2019-01-01",max:"2023-12-31",value:S,hasError:x!==null&&!x,onChange:y,onBlur:_})]}),C.jsxs("div",{className:"flex flex-wrap justify-center md:justify-end gap-4",children:[C.jsx(on,{type:"button",onClick:t,children:"Close"}),C.jsx(on,{type:"submit",children:n?"Sending...":"Add Expense"})]})]})},F0=({onAddExpense:e})=>{const[t,n]=P.useState(!1),{isLoading:r,sendRequest:l}=Ru(),i=(s,c)=>{const p=c.name,m=new Yf(p,s.title,s.amount,s.date);e(m),n(!1)},o=async s=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json",method:"POST",headers:{"Content-Type":"application/json"},body:{title:s.title,amount:s.amount,date:s.date.toISOString().split("T")[0]}},i.bind(null,s))},a=()=>{n(!0)},u=()=>{n(!1)};return C.jsx(hr,{className:"p-4 mx-auto max-w-[50rem] text-center bg-background",children:t?C.jsx(I0,{loading:r,onSaveExpenseData:o,onCancel:u}):C.jsx(on,{type:"button",onClick:a,children:"Add New Expense"})})},O0=()=>{const[e,t]=P.useState([]),{isLoading:n,error:r,sendRequest:l}=Ru();P.useEffect(()=>{l({url:"https://react-expenses-30273-default-rtdb.europe-west1.firebasedatabase.app/expenses.json"},u=>{const s=[];for(const c in u)s.push(new Yf(c,u[c].title,u[c].amount,new Date(u[c].date)));t(s)})},[l]);const i=a=>{t(u=>[a,...u])},o=a=>{t(u=>u.filter(s=>s.id!==a))};return C.jsxs(C.Fragment,{children:[C.jsx(F0,{onAddExpense:i}),C.jsx(D0,{data:e,isLoading:n,error:r,onDeleteItem:o})]})},Gf=({children:e,formType:t,onSubmit:n})=>{let r;return t==="login"?r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Don't have an account yet?"," ",C.jsx(Ca,{className:"ml-1 text-accent",to:`${Ct}register`,children:"Sign Up"})]}):r=C.jsxs("p",{className:"mt-5 mb-1 text-center text-primary",children:["Already have an account?"," ",C.jsx(Ca,{className:"ml-1 text-accent",to:`${Ct}login`,children:"Sign In"})]}),C.jsxs(hr,{className:"p-6 mx-auto max-w-[25rem] bg-background",children:[C.jsx("form",{className:"flex flex-col gap-4",onSubmit:n,children:e}),r]})},Po=e=>e.trim().length!==0,U0=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=en(Po),{value:i,isValid:o,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=en(Po),{value:c,isValid:p,inputChangeHandler:m,inputBlurHandler:S,inputClearHandler:x}=en(Po),[y,_]=P.useState(!1);P.useEffect(()=>{const h=setTimeout(()=>{_(t&&o&&p)},250);return()=>{clearTimeout(h)}},[t,o,p]);const f=()=>{l(),s(),x()},d=h=>{h.preventDefault(),y?(console.log({email:e,username:i,password:c}),f()):t?o?S():u():r()};return C.jsxs(Gf,{formType:"register",onSubmit:d,children:[C.jsx(tn,{label:"Email",id:"email",type:"email",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Username",id:"username",type:"text",value:i,hasError:o!==null&&!o,onChange:a,onBlur:u}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:c,hasError:p!==null&&!p,onChange:m,onBlur:S}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign Up"})]})},H0=()=>C.jsx(U0,{}),fc=e=>e.trim().length!==0,A0=()=>{const{value:e,isValid:t,inputChangeHandler:n,inputBlurHandler:r,inputClearHandler:l}=en(fc),{value:i,isValid:o,inputChangeHandler:a,inputBlurHandler:u,inputClearHandler:s}=en(fc),[c,p]=P.useState(!1);P.useEffect(()=>{const x=setTimeout(()=>{p(t&&o)},250);return()=>{clearTimeout(x)}},[t,o]);const m=()=>{l(),s()},S=x=>{x.preventDefault(),c?(console.log({username:e,password:i}),m()):t?u():r()};return C.jsxs(Gf,{formType:"login",onSubmit:S,children:[C.jsx(tn,{label:"Username",id:"username",type:"text",value:e,hasError:t!==null&&!t,onChange:n,onBlur:r}),C.jsx(tn,{label:"Password",id:"password",type:"password",value:i,hasError:o!==null&&!o,onChange:a,onBlur:u}),C.jsx(on,{className:"mt-2 mx-auto",type:"submit",children:"Sign In"})]})},B0=()=>C.jsx(A0,{}),V0=t0([{path:Ct,element:C.jsx(x0,{}),children:[{path:Ct,element:C.jsx(O0,{})},{path:`${Ct}register`,element:C.jsx(H0,{})},{path:`${Ct}login`,element:C.jsx(B0,{})}]}]),$0=()=>C.jsx(s0,{router:V0}),W0=_o.createRoot(document.getElementById("page-root"));W0.render(C.jsx(Am,{children:C.jsx($0,{})})); diff --git a/assets/index-yptOW6Uo.css b/assets/index-q1PR4zv_.css similarity index 65% rename from assets/index-yptOW6Uo.css rename to assets/index-q1PR4zv_.css index c8f4cf6..0b7754f 100644 --- a/assets/index-yptOW6Uo.css +++ b/assets/index-q1PR4zv_.css @@ -1 +1 @@ -._chart_n7zub_1{gap:.3rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 12 - .3rem / 12 * (12 - 1))}@media (max-width: 576px){._chart_n7zub_1{gap:.5rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 6 - .5rem / 6 * (6 - 1))}}._new-expense-controls_170ne_1{gap:1.5rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% / 3 - 1.5rem / 3 * (3 - 1))}@media (max-width: 768px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(50% - .5rem)}}@media (max-width: 576px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% + -0rem)}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.-z-\[1\]{z-index:-1}.z-\[5\]{z-index:5}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-full{height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[25rem\]{max-width:25rem}.max-w-\[50rem\]{max-width:50rem}.flex-\[1\]{flex:1}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-y-4{row-gap:1rem}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-secondary{--tw-border-opacity: 1;border-color:rgb(63 63 63 / var(--tw-border-opacity))}.bg-\[\#4826b9\]{--tw-bg-opacity: 1;background-color:rgb(72 38 185 / var(--tw-bg-opacity))}.bg-\[\#c3b4f3\]{--tw-bg-opacity: 1;background-color:rgb(195 180 243 / var(--tw-bg-opacity))}.bg-\[\#f8dfff\]{--tw-bg-opacity: 1;background-color:rgb(248 223 255 / var(--tw-bg-opacity))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(64 0 93 / var(--tw-bg-opacity))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(168 146 238 / var(--tw-bg-opacity))}.bg-danger{--tw-bg-opacity: 1;background-color:rgb(220 3 17 / var(--tw-bg-opacity))}.bg-dark{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-light{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.\!p-3{padding:.75rem!important}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-accent{--tw-text-opacity: 1;color:rgb(64 0 93 / var(--tw-text-opacity))}.text-dark{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.text-light{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-card{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-danger{outline-color:#dc0311}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{font-family:Poppins,sans-serif;--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-1:after{content:var(--tw-content);bottom:-.25rem}.after\:-bottom-1\.5:after{content:var(--tw-content);bottom:-.375rem}.after\:left-0:after{content:var(--tw-content);left:0}.after\:right-0:after{content:var(--tw-content);right:0}.after\:h-0:after{content:var(--tw-content);height:0px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-light:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.hover\:bg-\[\#ce0000\]:hover{--tw-bg-opacity: 1;background-color:rgb(206 0 0 / var(--tw-bg-opacity))}.hover\:bg-accent-light:hover{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.hover\:shadow-card:hover{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:scale-95:focus{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-accent-light:active{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.disabled\:bg-opacity-80:disabled{--tw-bg-opacity: .8}@media (min-width: 576px){.sm\:h-28{height:7rem}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:h-5{height:1.25rem}.md\:w-5{width:1.25rem}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-end{justify-content:flex-end}.md\:justify-center{justify-content:center}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:text-left{text-align:left}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 992px){.lg\:px-20{padding-left:5rem;padding-right:5rem}} +._chart_n7zub_1{gap:.3rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 12 - .3rem / 12 * (12 - 1))}@media (max-width: 576px){._chart_n7zub_1{gap:.5rem}._chart_n7zub_1>*{flex:0 1 calc(100% / 6 - .5rem / 6 * (6 - 1))}}._new-expense-controls_170ne_1{gap:1.5rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% / 3 - 1.5rem / 3 * (3 - 1))}@media (max-width: 768px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(50% - .5rem)}}@media (max-width: 576px){._new-expense-controls_170ne_1{gap:1rem}._new-expense-controls_170ne_1>*{flex:0 1 calc(100% + -0rem)}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.-z-\[1\]{z-index:-1}.z-\[5\]{z-index:5}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-20{height:5rem}.h-24{height:6rem}.h-4{height:1rem}.h-full{height:100%}.w-12{width:3rem}.w-20{width:5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-fit{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[25rem\]{max-width:25rem}.max-w-\[50rem\]{max-width:50rem}.flex-\[1\]{flex:1}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-y-4{row-gap:1rem}.overflow-hidden{overflow:hidden}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-secondary{--tw-border-opacity: 1;border-color:rgb(63 63 63 / var(--tw-border-opacity))}.bg-\[\#4826b9\]{--tw-bg-opacity: 1;background-color:rgb(72 38 185 / var(--tw-bg-opacity))}.bg-\[\#c3b4f3\]{--tw-bg-opacity: 1;background-color:rgb(195 180 243 / var(--tw-bg-opacity))}.bg-\[\#f8dfff\]{--tw-bg-opacity: 1;background-color:rgb(248 223 255 / var(--tw-bg-opacity))}.bg-accent{--tw-bg-opacity: 1;background-color:rgb(64 0 93 / var(--tw-bg-opacity))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(168 146 238 / var(--tw-bg-opacity))}.bg-danger{--tw-bg-opacity: 1;background-color:rgb(220 3 17 / var(--tw-bg-opacity))}.bg-dark{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-light{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(31 31 31 / var(--tw-bg-opacity))}.bg-secondary{--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.\!p-3{padding:.75rem!important}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-accent{--tw-text-opacity: 1;color:rgb(64 0 93 / var(--tw-text-opacity))}.text-dark{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.text-light{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:rgb(31 31 31 / var(--tw-text-opacity))}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow-card{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-danger{outline-color:#dc0311}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{font-family:Poppins,sans-serif;--tw-bg-opacity: 1;background-color:rgb(63 63 63 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-bottom-1:after{content:var(--tw-content);bottom:-.25rem}.after\:-bottom-1\.5:after{content:var(--tw-content);bottom:-.375rem}.after\:left-0:after{content:var(--tw-content);left:0}.after\:right-0:after{content:var(--tw-content);right:0}.after\:h-0:after{content:var(--tw-content);height:0px}.after\:h-0\.5:after{content:var(--tw-content);height:.125rem}.after\:w-full:after{content:var(--tw-content);width:100%}.after\:bg-light:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.hover\:bg-\[\#ce0000\]:hover{--tw-bg-opacity: 1;background-color:rgb(206 0 0 / var(--tw-bg-opacity))}.hover\:bg-accent-light:hover{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.hover\:shadow-card:hover{--tw-shadow: 0 2px 8px rgba(0, 0, 0, .25);--tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:scale-95:focus{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:bg-accent-light:active{--tw-bg-opacity: 1;background-color:rgb(81 6 116 / var(--tw-bg-opacity))}.disabled\:bg-opacity-80:disabled{--tw-bg-opacity: .8}@media (min-width: 576px){.sm\:h-28{height:7rem}.sm\:px-12{padding-left:3rem;padding-right:3rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mx-4{margin-left:1rem;margin-right:1rem}.md\:h-5{height:1.25rem}.md\:w-5{width:1.25rem}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-end{justify-content:flex-end}.md\:justify-center{justify-content:center}.md\:px-6{padding-left:1.5rem;padding-right:1.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:text-left{text-align:left}.md\:text-2xl{font-size:1.5rem;line-height:2rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 992px){.lg\:px-20{padding-left:5rem;padding-right:5rem}} diff --git a/index.html b/index.html index 0a7b6ce..28e1858 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ rel="stylesheet" /> Expenses React App - - + +