diff --git a/assets/index-BYPFJDii.js b/assets/index-BYPFJDii.js new file mode 100644 index 0000000..dab6929 --- /dev/null +++ b/assets/index-BYPFJDii.js @@ -0,0 +1,80 @@ +function uh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ah(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zc={exports:{}},ui={},Fc={exports:{}},D={};/** + * @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 Ir=Symbol.for("react.element"),ch=Symbol.for("react.portal"),fh=Symbol.for("react.fragment"),dh=Symbol.for("react.strict_mode"),ph=Symbol.for("react.profiler"),hh=Symbol.for("react.provider"),mh=Symbol.for("react.context"),yh=Symbol.for("react.forward_ref"),vh=Symbol.for("react.suspense"),gh=Symbol.for("react.memo"),wh=Symbol.for("react.lazy"),Zu=Symbol.iterator;function Sh(e){return e===null||typeof e!="object"?null:(e=Zu&&e[Zu]||e["@@iterator"],typeof e=="function"?e:null)}var Ic={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Uc=Object.assign,$c={};function In(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Ic}In.prototype.isReactComponent={};In.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")};In.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bc(){}Bc.prototype=In.prototype;function Rs(e,t,n){this.props=e,this.context=t,this.refs=$c,this.updater=n||Ic}var Os=Rs.prototype=new Bc;Os.constructor=Rs;Uc(Os,In.prototype);Os.isPureReactComponent=!0;var Ju=Array.isArray,Hc=Object.prototype.hasOwnProperty,Ls={current:null},Vc={key:!0,ref:!0,__self:!0,__source:!0};function Wc(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Hc.call(t,r)&&!Vc.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ee=P[J];if(0>>1;Jo($i,L))Bto(Xr,$i)?(P[J]=Xr,P[Bt]=L,J=Bt):(P[J]=$i,P[$t]=L,J=$t);else if(Bto(Xr,L))P[J]=Xr,P[Bt]=L,J=Bt;else break e}}return O}function o(P,O){var L=P.sortIndex-O.sortIndex;return L!==0?L:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],f=1,c=null,g=3,w=!1,d=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=P)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function C(P){if(m=!1,v(P),!d)if(n(u)!==null)d=!0,Ii(_);else{var O=n(a);O!==null&&Ui(C,O.startTime-P)}}function _(P,O){d=!1,m&&(m=!1,y(R),R=-1),w=!0;var L=g;try{for(v(O),c=n(u);c!==null&&(!(c.expirationTime>O)||P&&!Ie());){var J=c.callback;if(typeof J=="function"){c.callback=null,g=c.priorityLevel;var ee=J(c.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),v(O)}else r(u);c=n(u)}if(c!==null)var Gr=!0;else{var $t=n(a);$t!==null&&Ui(C,$t.startTime-O),Gr=!1}return Gr}finally{c=null,g=L,w=!1}}var N=!1,T=null,R=-1,Z=5,A=-1;function Ie(){return!(e.unstable_now()-AP||125J?(P.sortIndex=L,t(a,P),n(u)===null&&P===n(a)&&(m?(y(R),R=-1):m=!0,Ui(C,L-J))):(P.sortIndex=ee,t(u,P),d||w||(d=!0,Ii(_))),P},e.unstable_shouldYield=Ie,e.unstable_wrapCallback=function(P){var O=g;return function(){var L=g;g=O;try{return P.apply(this,arguments)}finally{g=L}}}})(Gc);qc.exports=Gc;var Oh=qc.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 Lh=E,ke=Oh;function k(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"),kl=Object.prototype.hasOwnProperty,Mh=/^[: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]*$/,Gu={},Xu={};function Dh(e){return kl.call(Xu,e)?!0:kl.call(Gu,e)?!1:Mh.test(e)?Xu[e]=!0:(Gu[e]=!0,!1)}function Ah(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zh(e,t,n,r){if(t===null||typeof t>"u"||Ah(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 he(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new he(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){le[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ds=/[\-:]([a-z])/g;function As(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(Ds,As);le[t]=new he(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(Ds,As);le[t]=new he(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(Ds,As);le[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function zs(e,t,n,r){var o=le.hasOwnProperty(t)?le[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var u=` +`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{Vi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Fh(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Wi(e.type,!1),e;case 11:return e=Wi(e.type.render,!1),e;case 1:return e=Wi(e.type,!0),e;default:return""}}function Nl(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 fn:return"Fragment";case cn:return"Portal";case _l:return"Profiler";case Fs:return"StrictMode";case jl:return"Suspense";case Pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bc:return(e.displayName||"Context")+".Consumer";case Yc:return(e._context.displayName||"Context")+".Provider";case Is:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Us:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Ih(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 Nl(t);case 8:return t===Fs?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uh(e){var t=tf(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=Uh(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(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 Tl(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 rf(e,t){t=t.checked,t!=null&&zs(e,"checked",t,!1)}function Rl(e,t){rf(e,t);var n=Ot(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")?Ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ol(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ea(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 Ol(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function Cn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=to.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 ir={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},$h=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(e){$h.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});function uf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function af(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=uf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bh=K({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 Dl(e,t){if(t){if(Bh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Al(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 zl=null;function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,En=null,kn=null;function ra(e){if(e=Br(e)){if(typeof Fl!="function")throw Error(k(280));var t=e.stateNode;t&&(t=pi(t),Fl(e.stateNode,e.type,t))}}function cf(e){En?kn?kn.push(e):kn=[e]:En=e}function ff(){if(En){var e=En,t=kn;if(kn=En=null,ra(e),t)for(e=0;e>>=0,e===0?32:31-(Yh(e)/bh|0)|0}var no=64,ro=4194304;function nr(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 Ao(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=nr(s):(i&=l,i!==0&&(r=nr(i)))}else l=n&~o,l!==0?r=nr(l):i!==0&&(r=nr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===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 Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function rm(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=sr),da=" ",pa=!1;function Of(e,t){switch(e){case"keyup":return Om.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function Mm(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(pa=!0,da);case"textInput":return e=t.data,e===da&&pa?null:e;default:return null}}function Dm(e,t){if(dn)return e==="compositionend"||!Js&&Of(e,t)?(e=Tf(),So=Ks=wt=null,dn=!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=va(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ff(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function qs(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 Vm(e){var t=Ff(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zf(n.ownerDocument.documentElement,n)){if(r!==null&&qs(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ga(n,i);var l=ga(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pn=null,Vl=null,ar=null,Wl=!1;function wa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wl||pn==null||pn!==Oo(r)||(r=pn,"selectionStart"in r&&qs(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&&Cr(ar,r)||(ar=r,r=Io(Vl,"onSelect"),0yn||(e.current=Gl[yn],Gl[yn]=null,yn--)}function U(e,t){yn++,Gl[yn]=e.current,e.current=t}var Lt={},ce=At(Lt),ve=At(!1),Xt=Lt;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){B(ve),B(ce)}function ja(e,t,n){if(ce.current!==Lt)throw Error(k(168));U(ce,t),U(ve,n)}function Qf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,Ih(e)||"Unknown",o));return K({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Xt=ce.current,U(ce,e),U(ve,ve.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=Qf(e,t,Xt),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ce),U(ce,e)):B(ve),U(ve,n)}var tt=null,hi=!1,ol=!1;function Zf(e){tt===null?tt=[e]:tt.push(e)}function t1(e){hi=!0,Zf(e)}function zt(){if(!ol&&tt!==null){ol=!0;var e=0,t=I;try{var n=tt;for(I=1;e>=l,o-=l,nt=1<<32-We(t)+o|n<R?(Z=T,T=null):Z=T.sibling;var A=g(y,T,v[R],C);if(A===null){T===null&&(T=Z);break}e&&T&&A.alternate===null&&t(y,T),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A,T=Z}if(R===v.length)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;RR?(Z=T,T=null):Z=T.sibling;var Ie=g(y,T,A.value,C);if(Ie===null){T===null&&(T=Z);break}e&&T&&Ie.alternate===null&&t(y,T),h=i(Ie,h,R),N===null?_=Ie:N.sibling=Ie,N=Ie,T=Z}if(A.done)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;!A.done;R++,A=v.next())A=c(y,A.value,C),A!==null&&(h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return H&&Ht(y,R),_}for(T=r(y,T);!A.done;R++,A=v.next())A=w(T,y,R,A.value,C),A!==null&&(e&&A.alternate!==null&&T.delete(A.key===null?R:A.key),h=i(A,h,R),N===null?_=A:N.sibling=A,N=A);return e&&T.forEach(function(Vn){return t(y,Vn)}),H&&Ht(y,R),_}function S(y,h,v,C){if(typeof v=="object"&&v!==null&&v.type===fn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case br:e:{for(var _=v.key,N=h;N!==null;){if(N.key===_){if(_=v.type,_===fn){if(N.tag===7){n(y,N.sibling),h=o(N,v.props.children),h.return=y,y=h;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mt&&Ra(_)===N.type){n(y,N.sibling),h=o(N,v.props),h.ref=Gn(y,N,v),h.return=y,y=h;break e}n(y,N);break}else t(y,N);N=N.sibling}v.type===fn?(h=qt(v.props.children,y.mode,C,v.key),h.return=y,y=h):(C=No(v.type,v.key,v.props,null,y.mode,C),C.ref=Gn(y,h,v),C.return=y,y=C)}return l(y);case cn:e:{for(N=v.key;h!==null;){if(h.key===N)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(y,h.sibling),h=o(h,v.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=dl(v,y.mode,C),h.return=y,y=h}return l(y);case mt:return N=v._init,S(y,h,N(v._payload),C)}if(tr(v))return d(y,h,v,C);if(Kn(v))return m(y,h,v,C);co(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(y,h.sibling),h=o(h,v),h.return=y,y=h):(n(y,h),h=fl(v,y.mode,C),h.return=y,y=h),l(y)):n(y,h)}return S}var On=Xf(!0),Yf=Xf(!1),Wo=At(null),Ko=null,wn=null,bs=null;function eu(){bs=wn=Ko=null}function tu(e){var t=Wo.current;B(Wo),e._currentValue=t}function bl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jn(e,t){Ko=e,bs=wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(bs!==e)if(e={context:e,memoizedValue:t,next:null},wn===null){if(Ko===null)throw Error(k(308));wn=e,Ko.dependencies={lanes:0,firstContext:e}}else wn=wn.next=e;return t}var Qt=null;function nu(e){Qt===null?Qt=[e]:Qt.push(e)}function bf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yt=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,st(e,n)}return o=r.interleaved,o===null?(t.next=t,nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,st(e,n)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hs(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qo(e,t,n,r){var o=e.updateQueue;yt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;l=0,f=a=u=null,s=i;do{var g=s.lane,w=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var d=e,m=s;switch(g=t,w=n,m.tag){case 1:if(d=m.payload,typeof d=="function"){c=d.call(w,c,g);break e}c=d;break e;case 3:d.flags=d.flags&-65537|128;case 0:if(d=m.payload,g=typeof d=="function"?d.call(w,c,g):d,g==null)break e;c=K({},c,g);break e;case 2:yt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else w={eventTime:w,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);en|=l,e.lanes=l,e.memoizedState=c}}function La(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{I=n,ll.transition=r}}function vd(){return Fe().memoizedState}function i1(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))wd(t,n);else if(n=bf(e,t,n,r),n!==null){var o=de();Ke(n,e,r,o),Sd(n,t,r)}}function l1(e,t,n){var r=Nt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))wd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,l)){var u=t.interleaved;u===null?(o.next=o,nu(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=bf(e,t,o,r),n!==null&&(o=de(),Ke(n,e,r,o),Sd(n,t,r))}}function gd(e){var t=e.alternate;return e===W||t!==null&&t===W}function wd(e,t){cr=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hs(e,n)}}var qo={readContext:ze,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},s1={readContext:ze,useCallback:function(e,t){return Je().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:Da,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ko(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=Je();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Je();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=i1.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Je();return e={current:e},t.memoizedState=e},useState:Ma,useDebugValue:fu,useDeferredValue:function(e){return Je().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=o1.bind(null,e[1]),Je().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=W,o=Je();if(H){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ne===null)throw Error(k(349));bt&30||od(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Da(ld.bind(null,r,i,e),[e]),r.flags|=2048,Rr(9,id.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Je(),t=ne.identifierPrefix;if(H){var n=rt,r=nt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[qe]=t,e[_r]=r,Rd(e,t,!1,!1),t.stateNode=e;e:{switch(l=Al(n,r),n){case"dialog":$("cancel",e),$("close",e),o=r;break;case"iframe":case"object":case"embed":$("load",e),o=r;break;case"video":case"audio":for(o=0;oDn&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!H)return ue(t),null}else 2*q()-i.renderingStartTime>Dn&&n!==1073741824&&(t.flags|=128,r=!0,Xn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=q(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function m1(e,t){switch(Xs(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),B(ve),B(ce),lu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iu(t),null;case 13:if(B(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(V),null;case 4:return Ln(),null;case 10:return tu(t.type._context),null;case 22:case 23:return vu(),null;case 24:return null;default:return null}}var po=!1,ae=!1,y1=typeof WeakSet=="function"?WeakSet:Set,j=null;function Sn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function us(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Ka=!1;function v1(e,t){if(Kl=zo,e=Ff(),qs(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,c=e,g=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(w=c.firstChild)!==null;)g=c,c=w;for(;;){if(c===e)break t;if(g===n&&++a===o&&(s=l),g===i&&++f===r&&(u=l),(w=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ql={focusedElem:e,selectionRange:n},zo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var d=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var m=d.memoizedProps,S=d.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$e(t.type,m),S);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(C){Q(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return d=Ka,Ka=!1,d}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&us(t,n,i)}o=o.next}while(o!==r)}}function vi(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 as(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 Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[qe],delete t[_r],delete t[ql],delete t[bm],delete t[e1])),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 Dd(e){return e.tag===5||e.tag===3||e.tag===4}function Qa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(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 cs(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=Uo));else if(r!==4&&(e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function fs(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(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}var oe=null,Be=!1;function dt(e,t,n){for(n=n.child;n!==null;)Ad(e,t,n),n=n.sibling}function Ad(e,t,n){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:ae||Sn(n,t);case 6:var r=oe,o=Be;oe=null,dt(e,t,n),oe=r,Be=o,oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),Sr(e)):rl(oe,n.stateNode));break;case 4:r=oe,o=Be,oe=n.stateNode.containerInfo,Be=!0,dt(e,t,n),oe=r,Be=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&us(n,t,l),o=o.next}while(o!==r)}dt(e,t,n);break;case 1:if(!ae&&(Sn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,dt(e,t,n),ae=r):dt(e,t,n);break;default:dt(e,t,n)}}function Za(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new y1),t.forEach(function(r){var o=j1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*w1(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Yo=0,F&6)throw Error(k(331));var o=F;for(F|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uq()-mu?Jt(e,0):hu|=n),we(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=de();e=st(e,t),e!==null&&(Ur(e,t,n),we(e,n))}function _1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function j1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Vd(e,n)}var Wd;Wd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,p1(e,t,n);ye=!!(e.flags&131072)}else ye=!1,H&&t.flags&1048576&&Jf(t,Vo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_o(e,t),e=t.pendingProps;var o=Tn(t,ce.current);jn(t,n),o=uu(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ru(t),o.updater=yi,t.stateNode=o,o._reactInternals=t,ts(t,r,e,n),t=os(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Gs(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_o(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=N1(r),e=$e(r,e),o){case 0:t=rs(null,t,r,e,n);break e;case 1:t=Ha(null,t,r,e,n);break e;case 11:t=$a(null,t,r,e,n);break e;case 14:t=Ba(null,t,r,$e(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),rs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Ha(e,t,r,o,n);case 3:e:{if(Pd(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,ed(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Mn(Error(k(423)),t),t=Va(e,t,r,n,o);break e}else if(r!==o){o=Mn(Error(k(424)),t),t=Va(e,t,r,n,o);break e}else for(xe=_t(t.stateNode.containerInfo.firstChild),Ee=t,H=!0,He=null,n=Yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===o){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return td(t),e===null&&Yl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Zl(r,o)?l=null:i!==null&&Zl(r,i)&&(t.flags|=32),jd(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&Yl(t),null;case 13:return Nd(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),$a(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,U(Wo,r._currentValue),r._currentValue=l,i!==null)if(Qe(i.value,l)){if(i.children===o.children&&!ve.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ot(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bl(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(k(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),bl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jn(t,n),o=ze(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=$e(r,t.pendingProps),o=$e(r.type,o),Ba(e,t,r,o,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),_o(e,t),t.tag=1,ge(r)?(e=!0,Bo(t)):e=!1,jn(t,n),xd(t,r,o),ts(t,r,o,n),os(null,t,r,!0,e,n);case 19:return Td(e,t,n);case 22:return _d(e,t,n)}throw Error(k(156,t.tag))};function Kd(e,t){return gf(e,t)}function P1(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 Oe(e,t,n,r){return new P1(e,t,n,r)}function wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function N1(e){if(typeof e=="function")return wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Is)return 11;if(e===Us)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Oe(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 No(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")wu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fn:return qt(n.children,o,i,t);case Fs:l=8,o|=8;break;case _l:return e=Oe(12,n,t,o|2),e.elementType=_l,e.lanes=i,e;case jl:return e=Oe(13,n,t,o),e.elementType=jl,e.lanes=i,e;case Pl:return e=Oe(19,n,t,o),e.elementType=Pl,e.lanes=i,e;case ef:return wi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yc:l=10;break e;case bc:l=9;break e;case Is:l=11;break e;case Us:l=14;break e;case mt:l=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Oe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function qt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function wi(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=ef,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function T1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=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=o,this.mutableSourceEagerHydrationData=null}function Su(e,t,n,r,o,i,l,s,u){return e=new T1(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ru(i),e}function R1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qd)}catch(e){console.error(e)}}qd(),Jc.exports=Pe;var A1=Jc.exports,tc=A1;El.createRoot=tc.createRoot,El.hydrateRoot=tc.hydrateRoot;/** + * @remix-run/router v1.16.0 + * + * 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 Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ku(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function F1(){return Math.random().toString(36).substr(2,8)}function rc(e,t){return{usr:e.state,key:e.key,idx:t}}function ys(e,t,n,r){return n===void 0&&(n=null),Lr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?un(t):t,{state:n,key:t&&t.key||r||F1()})}function ti(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 un(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 I1(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=xt.Pop,u=null,a=f();a==null&&(a=0,l.replaceState(Lr({},l.state,{idx:a}),""));function f(){return(l.state||{idx:null}).idx}function c(){s=xt.Pop;let S=f(),y=S==null?null:S-a;a=S,u&&u({action:s,location:m.location,delta:y})}function g(S,y){s=xt.Push;let h=ys(m.location,S,y);n&&n(h,S),a=f()+1;let v=rc(h,a),C=m.createHref(h);try{l.pushState(v,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(C)}i&&u&&u({action:s,location:m.location,delta:1})}function w(S,y){s=xt.Replace;let h=ys(m.location,S,y);n&&n(h,S),a=f();let v=rc(h,a),C=m.createHref(h);l.replaceState(v,"",C),i&&u&&u({action:s,location:m.location,delta:0})}function d(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof S=="string"?S:ti(S);return h=h.replace(/ $/,"%20"),G(y,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,y)}let m={get action(){return s},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(nc,c),u=S,()=>{o.removeEventListener(nc,c),u=null}},createHref(S){return t(o,S)},createURL:d,encodeLocation(S){let y=d(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:w,go(S){return l.go(S)}};return m}var oc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oc||(oc={}));function U1(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?un(t):t,o=_u(r.pathname||"/",n);if(o==null)return null;let i=Gd(e);$1(i);let l=null;for(let s=0;l==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(G(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 a=Rt([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(G(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Gd(i.children,t,f,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Z1(a,i.index),routesMeta:f})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let u of Xd(i.path))o(i,l,u)}),t}function Xd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Xd(r.join("/")),s=[];return s.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function $1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:J1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const B1=/^:[\w-]+$/,H1=3,V1=2,W1=1,K1=10,Q1=-2,ic=e=>e==="*";function Z1(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=Q1),t&&(r+=V1),n.filter(o=>!ic(o)).reduce((o,i)=>o+(B1.test(i)?H1:i===""?W1:K1),r)}function J1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function q1(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:w}=f;if(g==="*"){let m=s[c]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const d=s[c];return w&&!d?a[g]=void 0:a[g]=(d||"").replace(/%2F/g,"/"),a},{}),pathname:i,pathnameBase:l,pattern:e}}function X1(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ku(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Y1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ku(!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 _u(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function b1(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?un(e):e;return{pathname:n?n.startsWith("/")?n:e0(n,t):t,search:r0(r),hash:o0(o)}}function e0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pl(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 t0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ju(e,t){let n=t0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Pu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=un(e):(o=Lr({},e),G(!o.pathname||!o.pathname.includes("?"),pl("?","pathname","search",o)),G(!o.pathname||!o.pathname.includes("#"),pl("#","pathname","hash",o)),G(!o.search||!o.search.includes("#"),pl("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),c-=1;o.pathname=g.join("/")}s=c>=0?t[c]:"/"}let u=b1(o,s),a=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const Rt=e=>e.join("/").replace(/\/\/+/g,"/"),n0=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),r0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,o0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function i0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Yd=["post","put","patch","delete"];new Set(Yd);const l0=["get",...Yd];new Set(l0);/** + * React Router v6.23.0 + * + * 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 Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=Pu(a,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Rt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function tp(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Ft),{matches:o}=E.useContext(It),{pathname:i}=ct(),l=JSON.stringify(ju(o,r.v7_relativeSplatPath));return E.useMemo(()=>Pu(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function c0(e,t){return f0(e,t)}function f0(e,t,n,r){Bn()||G(!1);let{navigator:o}=E.useContext(Ft),{matches:i}=E.useContext(It),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let a=ct(),f;if(t){var c;let S=typeof t=="string"?un(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||G(!1),f=S}else f=a;let g=f.pathname||"/",w=g;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let d=U1(e,{pathname:w}),m=y0(d&&d.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Rt([u,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Rt([u,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&m?E.createElement(ki.Provider,{value:{location:Mr({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xt.Pop}},m):m}function d0(){let e=S0(),t=i0(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,null)}const p0=E.createElement(d0,null);class h0 extends E.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?E.createElement(It.Provider,{value:this.props.routeContext},E.createElement(bd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function m0(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(Nu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(It.Provider,{value:t},r)}function y0(e,t,n,r){var o;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 l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=l.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||G(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((f,c,g)=>{let w,d=!1,m=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||p0,u&&(a<0&&g===0?(d=!0,S=null):a===g&&(d=!0,S=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,g+1)),h=()=>{let v;return w?v=m:d?v=S:c.route.Component?v=E.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,E.createElement(m0,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||g===0)?E.createElement(h0,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:h(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):h()},null)}var np=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(np||{}),ni=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}(ni||{});function v0(e){let t=E.useContext(Nu);return t||G(!1),t}function g0(e){let t=E.useContext(s0);return t||G(!1),t}function w0(e){let t=E.useContext(It);return t||G(!1),t}function rp(e){let t=w0(),n=t.matches[t.matches.length-1];return n.route.id||G(!1),n.route.id}function S0(){var e;let t=E.useContext(bd),n=g0(ni.UseRouteError),r=rp(ni.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function x0(){let{router:e}=v0(np.UseNavigateStable),t=rp(ni.UseNavigateStable),n=E.useRef(!1);return ep(()=>{n.current=!0}),E.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Mr({fromRouteId:t},i)))},[e,t])}function C0(e){let{to:t,replace:n,state:r,relative:o}=e;Bn()||G(!1);let{future:i,static:l}=E.useContext(Ft),{matches:s}=E.useContext(It),{pathname:u}=ct(),a=Ut(),f=Pu(t,ju(s,i.v7_relativeSplatPath),u,o==="path"),c=JSON.stringify(f);return E.useEffect(()=>a(JSON.parse(c),{replace:n,state:r,relative:o}),[a,c,o,n,r]),null}function ht(e){G(!1)}function E0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xt.Pop,navigator:i,static:l=!1,future:s}=e;Bn()&&G(!1);let u=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:u,navigator:i,static:l,future:Mr({v7_relativeSplatPath:!1},s)}),[u,s,i,l]);typeof r=="string"&&(r=un(r));let{pathname:f="/",search:c="",hash:g="",state:w=null,key:d="default"}=r,m=E.useMemo(()=>{let S=_u(f,u);return S==null?null:{location:{pathname:S,search:c,hash:g,state:w,key:d},navigationType:o}},[u,f,c,g,w,d,o]);return m==null?null:E.createElement(Ft.Provider,{value:a},E.createElement(ki.Provider,{children:n,value:m}))}function k0(e){let{children:t,location:n}=e;return c0(vs(t),n)}new Promise(()=>{});function vs(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let i=[...t,o];if(r.type===E.Fragment){n.push.apply(n,vs(r.props.children,i));return}r.type!==ht&&G(!1),!r.props.index||!r.props.children||G(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=vs(r.props.children,i)),n.push(l)}),n}/** + * React Router DOM v6.23.0 + * + * 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 gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function j0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function P0(e,t){return e.button===0&&(!t||t==="_self")&&!j0(e)}const N0=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],T0="6";try{window.__reactRouterVersion=T0}catch{}const R0="startTransition",lc=Cl[R0];function O0(e){let{basename:t,children:n,future:r,window:o}=e,i=E.useRef();i.current==null&&(i.current=z1({window:o,v5Compat:!0}));let l=i.current,[s,u]=E.useState({action:l.action,location:l.location}),{v7_startTransition:a}=r||{},f=E.useCallback(c=>{a&&lc?lc(()=>u(c)):u(c)},[u,a]);return E.useLayoutEffect(()=>l.listen(f),[l,f]),E.createElement(E0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",M0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,g=_0(t,N0),{basename:w}=E.useContext(Ft),d,m=!1;if(typeof a=="string"&&M0.test(a)&&(d=a,L0))try{let v=new URL(window.location.href),C=a.startsWith("//")?new URL(v.protocol+a):new URL(a),_=_u(C.pathname,w);C.origin===v.origin&&_!=null?a=_+C.search+C.hash:m=!0}catch{}let S=u0(a,{relative:o}),y=D0(a,{replace:l,state:s,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:c});function h(v){r&&r(v),v.defaultPrevented||y(v)}return E.createElement("a",gs({},g,{href:d||S,onClick:m||i?r:h,ref:n,target:u}))});var sc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sc||(sc={}));var uc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uc||(uc={}));function D0(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,u=Ut(),a=ct(),f=tp(e,{relative:l});return E.useCallback(c=>{if(P0(c,n)){c.preventDefault();let g=r!==void 0?r:ti(a)===ti(f);u(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[a,u,f,r,o,n,e,i,l,s])}function op(e,t){return function(){return e.apply(t,arguments)}}const{toString:A0}=Object.prototype,{getPrototypeOf:Tu}=Object,_i=(e=>t=>{const n=A0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>_i(t)===e),ji=e=>t=>typeof t===e,{isArray:Hn}=Array,Dr=ji("undefined");function z0(e){return e!==null&&!Dr(e)&&e.constructor!==null&&!Dr(e.constructor)&&Me(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ip=be("ArrayBuffer");function F0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ip(e.buffer),t}const I0=ji("string"),Me=ji("function"),lp=ji("number"),Pi=e=>e!==null&&typeof e=="object",U0=e=>e===!0||e===!1,To=e=>{if(_i(e)!=="object")return!1;const t=Tu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$0=be("Date"),B0=be("File"),H0=be("Blob"),V0=be("FileList"),W0=e=>Pi(e)&&Me(e.pipe),K0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Me(e.append)&&((t=_i(e))==="formdata"||t==="object"&&Me(e.toString)&&e.toString()==="[object FormData]"))},Q0=be("URLSearchParams"),Z0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Hn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const up=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ap=e=>!Dr(e)&&e!==up;function ws(){const{caseless:e}=ap(this)&&this||{},t={},n=(r,o)=>{const i=e&&sp(t,o)||o;To(t[i])&&To(r)?t[i]=ws(t[i],r):To(r)?t[i]=ws({},r):Hn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Vr(t,(o,i)=>{n&&Me(o)?e[i]=op(o,n):e[i]=o},{allOwnKeys:r}),e),q0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),G0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X0=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Tu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},b0=e=>{if(!e)return null;if(Hn(e))return e;let t=e.length;if(!lp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ey=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tu(Uint8Array)),ty=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},ny=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ry=be("HTMLFormElement"),oy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ac=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),iy=be("RegExp"),cp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Vr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},ly=e=>{cp(e,(t,n)=>{if(Me(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Me(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},sy=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Hn(e)?r(e):r(String(e).split(t)),n},uy=()=>{},ay=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hl="abcdefghijklmnopqrstuvwxyz",cc="0123456789",fp={DIGIT:cc,ALPHA:hl,ALPHA_DIGIT:hl+hl.toUpperCase()+cc},cy=(e=16,t=fp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function fy(e){return!!(e&&Me(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dy=e=>{const t=new Array(10),n=(r,o)=>{if(Pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Hn(r)?[]:{};return Vr(r,(l,s)=>{const u=n(l,o+1);!Dr(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},py=be("AsyncFunction"),hy=e=>e&&(Pi(e)||Me(e))&&Me(e.then)&&Me(e.catch),x={isArray:Hn,isArrayBuffer:ip,isBuffer:z0,isFormData:K0,isArrayBufferView:F0,isString:I0,isNumber:lp,isBoolean:U0,isObject:Pi,isPlainObject:To,isUndefined:Dr,isDate:$0,isFile:B0,isBlob:H0,isRegExp:iy,isFunction:Me,isStream:W0,isURLSearchParams:Q0,isTypedArray:ey,isFileList:V0,forEach:Vr,merge:ws,extend:J0,trim:Z0,stripBOM:q0,inherits:G0,toFlatObject:X0,kindOf:_i,kindOfTest:be,endsWith:Y0,toArray:b0,forEachEntry:ty,matchAll:ny,isHTMLForm:ry,hasOwnProperty:ac,hasOwnProp:ac,reduceDescriptors:cp,freezeMethods:ly,toObjectSet:sy,toCamelCase:oy,noop:uy,toFiniteNumber:ay,findKey:sp,global:up,isContextDefined:ap,ALPHABET:fp,generateString:cy,isSpecCompliantForm:fy,toJSONObject:dy,isAsyncFn:py,isThenable:hy};function z(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dp=z.prototype,pp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pp[e]={value:e}});Object.defineProperties(z,pp);Object.defineProperty(dp,"isAxiosError",{value:!0});z.from=(e,t,n,r,o,i)=>{const l=Object.create(dp);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),z.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const my=null;function Ss(e){return x.isPlainObject(e)||x.isArray(e)}function hp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function fc(e,t,n){return e?e.concat(t).map(function(o,i){return o=hp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function yy(e){return x.isArray(e)&&!e.some(Ss)}const vy=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Ni(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!x.isUndefined(S[m])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function a(d){if(d===null)return"";if(x.isDate(d))return d.toISOString();if(!u&&x.isBlob(d))throw new z("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(d)||x.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,S){let y=d;if(d&&!S&&typeof d=="object"){if(x.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(x.isArray(d)&&yy(d)||(x.isFileList(d)||x.endsWith(m,"[]"))&&(y=x.toArray(d)))return m=hp(m),y.forEach(function(v,C){!(x.isUndefined(v)||v===null)&&t.append(l===!0?fc([m],C,i):l===null?m:m+"[]",a(v))}),!1}return Ss(d)?!0:(t.append(fc(S,m,i),a(d)),!1)}const c=[],g=Object.assign(vy,{defaultVisitor:f,convertValue:a,isVisitable:Ss});function w(d,m){if(!x.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(d),x.forEach(d,function(y,h){(!(x.isUndefined(y)||y===null)&&o.call(t,y,x.isString(h)?h.trim():h,m,g))===!0&&w(y,m?m.concat(h):[h])}),c.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ru(e,t){this._pairs=[],e&&Ni(e,this,t)}const mp=Ru.prototype;mp.append=function(t,n){this._pairs.push([t,n])};mp.toString=function(t){const n=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function gy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yp(e,t,n){if(!t)return e;const r=n&&n.encode||gy,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Ru(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class pc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wy=typeof URLSearchParams<"u"?URLSearchParams:Ru,Sy=typeof FormData<"u"?FormData:null,xy=typeof Blob<"u"?Blob:null,Cy={isBrowser:!0,classes:{URLSearchParams:wy,FormData:Sy,Blob:xy},protocols:["http","https","file","blob","url","data"]},gp=typeof window<"u"&&typeof document<"u",Ey=(e=>gp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ky=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_y=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:gp,hasStandardBrowserEnv:Ey,hasStandardBrowserWebWorkerEnv:ky},Symbol.toStringTag,{value:"Module"})),Ge={..._y,...Cy};function jy(e,t){return Ni(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ge.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Py(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ny(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=Ny(o[l])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(Py(r),o,n,0)}),n}return null}function Ty(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wr={transitional:vp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(wp(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return jy(t,this.formSerializer).toString();if((s=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ni(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Ty(t)):t}],transformResponse:[function(t){const n=this.transitional||Wr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?z.from(s,z.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Wr.headers[e]={}});const Ry=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oy=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Ry[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},hc=Symbol("internals");function bn(e){return e&&String(e).trim().toLowerCase()}function Ro(e){return e===!1||e==null?e:x.isArray(e)?e.map(Ro):String(e)}function Ly(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const My=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,r,o){if(x.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function Dy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ay(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class De{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,u,a){const f=bn(u);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(o,f);(!c||o[c]===void 0||a===!0||a===void 0&&o[c]!==!1)&&(o[c||u]=Ro(s))}const l=(s,u)=>x.forEach(s,(a,f)=>i(a,f,u));return x.isPlainObject(t)||t instanceof this.constructor?l(t,n):x.isString(t)&&(t=t.trim())&&!My(t)?l(Oy(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=bn(t),t){const r=x.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Ly(o);if(x.isFunction(n))return n.call(this,o,r);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bn(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ml(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=bn(l),l){const s=x.findKey(r,l);s&&(!n||ml(r,r[s],s,n))&&(delete r[s],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ml(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return x.forEach(this,(o,i)=>{const l=x.findKey(r,i);if(l){n[l]=Ro(o),delete n[i];return}const s=t?Dy(i):String(i).trim();s!==i&&delete n[i],n[s]=Ro(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[hc]=this[hc]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=bn(l);r[s]||(Ay(o,l),r[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(De);function yl(e,t){const n=this||Wr,r=t||n,o=De.from(r.headers);let i=r.data;return x.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Sp(e){return!!(e&&e.__CANCEL__)}function Kr(e,t,n){z.call(this,e??"canceled",z.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Kr,z,{__CANCEL__:!0});function zy(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Fy=Ge.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),x.isString(r)&&l.push("path="+r),x.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Iy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Uy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xp(e,t){return e&&!Iy(t)?Uy(e,t):t}const $y=Ge.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=x.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function By(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hy(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[i];l||(l=a),n[o]=u,r[o]=a;let c=i,g=0;for(;c!==o;)g+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,u=r(s),a=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const Vy=typeof XMLHttpRequest<"u",Wy=Vy&&function(e){return new Promise(function(n,r){let o=e.data;const i=De.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let f;if(x.isFormData(o)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...S]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+S))}const g=xp(e.baseURL,e.url);c.open(e.method.toUpperCase(),yp(g,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const m=De.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};zy(function(v){n(v),a()},function(v){r(v),a()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new z("Request aborted",z.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new z("Network Error",z.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||vp;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new z(S,y.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,c)),c=null},Ge.hasStandardBrowserEnv&&(s&&x.isFunction(s)&&(s=s(e)),s||s!==!1&&$y(g))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&Fy.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&x.forEach(i.toJSON(),function(S,y){c.setRequestHeader(y,S)}),x.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",mc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",mc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=m=>{c&&(r(!m||m.type?new Kr(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=By(g);if(d&&Ge.protocols.indexOf(d)===-1){r(new z("Unsupported protocol "+d+":",z.ERR_BAD_REQUEST,e));return}c.send(o||null)})},xs={http:my,xhr:Wy};x.forEach(xs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yc=e=>`- ${e}`,Ky=e=>x.isFunction(e)||e===null||e===!1,Cp={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : +`+i.map(yc).join(` +`):" "+yc(i[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:xs};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function vc(e){return vl(e),e.headers=De.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cp.getAdapter(e.adapter||Wr.adapter)(e).then(function(r){return vl(e),r.data=yl.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return Sp(r)||(vl(e),r&&r.response&&(r.response.data=yl.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const gc=e=>e instanceof De?{...e}:e;function An(e,t){t=t||{};const n={};function r(a,f,c){return x.isPlainObject(a)&&x.isPlainObject(f)?x.merge.call({caseless:c},a,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function o(a,f,c){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function i(a,f){if(!x.isUndefined(f))return r(void 0,f)}function l(a,f){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,f)=>o(gc(a),gc(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||o,g=c(e[f],t[f],f);x.isUndefined(g)&&c!==s||(n[f]=g)}),n}const Ep="1.6.8",Ou={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ou[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wc={};Ou.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Ep+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new z(o(l," has been removed"+(n?" in "+n:"")),z.ERR_DEPRECATED);return n&&!wc[l]&&(wc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function Qy(e,t,n){if(typeof e!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new z("option "+i+" must be "+u,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}}const Cs={assertOptions:Qy,validators:Ou},pt=Cs.validators;class Gt{constructor(t){this.defaults=t,this.interceptors={request:new pc,response:new pc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=An(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Cs.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Cs.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&x.merge(i.common,i[n.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=De.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});let f,c=0,g;if(!u){const d=[vc.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,a),g=d.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Kr(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Lu(function(o){t=o}),cancel:t}}}function Zy(e){return function(n){return e.apply(null,n)}}function Jy(e){return x.isObject(e)&&e.isAxiosError===!0}const Es={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Es).forEach(([e,t])=>{Es[t]=e});function kp(e){const t=new Gt(e),n=op(Gt.prototype.request,t);return x.extend(n,Gt.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return kp(An(e,o))},n}const M=kp(Wr);M.Axios=Gt;M.CanceledError=Kr;M.CancelToken=Lu;M.isCancel=Sp;M.VERSION=Ep;M.toFormData=Ni;M.AxiosError=z;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=Zy;M.isAxiosError=Jy;M.mergeConfig=An;M.AxiosHeaders=De;M.formToJSON=e=>wp(x.isHTMLForm(e)?new FormData(e):e);M.getAdapter=Cp.getAdapter;M.HttpStatusCode=Es;M.default=M;class qy{constructor(){this.base="https://project-manager-jqsq.onrender.com/user",this.axios=M.create({withCredentials:!0})}getAll(t){return this.axios.get(`${this.base}/all?from=${t}`)}isLoggedIn(){return this.axios.get(`${this.base}/`)}signUp(t){return this.axios.post(`${this.base}/register`,t)}signIn(t){return this.axios.post(`${this.base}/login`,t)}signOut(){return this.axios.post(`${this.base}/logout`)}delete(){return this.axios.delete(`${this.base}/delete`)}}const Qr=new qy,_p="SIGN_IN",jp="SIGN_UP",Pp="SIGN_OUT",Np="USER",Tp="USERS",Gy="DELETE",zn="ERROR",Mu=()=>async(e,t)=>{const n=t().auth.user,o=(await Qr.getAll(n.id)).data;e({type:Tp,payload:o.map(i=>n.id!=i.id?i:{...i,name:"myself"})})},Du=()=>async e=>{const t=await Qr.isLoggedIn();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Np,payload:t.data.user})},Xy=e=>async t=>{const n=await Qr.signIn(e);n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:_p,payload:n.data}),await t(Du()))},Yy=e=>async t=>{e.name=="myself"&&t({type:zn,payload:"'myself' can not be a username"});const n=await Qr.signUp(e);n.data.message!=="success"?t({type:zn,payload:n.data.message}):(t({type:jp,payload:n.data}),await t(Du()))},by=()=>async e=>{const t=await Qr.signOut();t.data.message!=="success"?e({type:zn,payload:t.data.message}):e({type:Pp,payload:t.data})};var Rp={exports:{}},Op={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Zr=E;function ev(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tv=typeof Object.is=="function"?Object.is:ev,nv=Zr.useSyncExternalStore,rv=Zr.useRef,ov=Zr.useEffect,iv=Zr.useMemo,lv=Zr.useDebugValue;Op.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=rv(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=iv(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),o!==void 0&&l.hasValue){var d=l.value;if(o(d,w))return c=d}return c=w}if(d=c,tv(f,w))return d;var m=r(w);return o!==void 0&&o(d,m)?d:(f=w,c=m)}var a=!1,f,c,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,r,o]);var s=nv(e,i[0],i[1]);return ov(function(){l.hasValue=!0,l.value=s},[s]),lv(s),s};Rp.exports=Op;var sv=Rp.exports,Ce="default"in Cl?Qc:Cl,Sc=Symbol.for("react-redux-context"),xc=typeof globalThis<"u"?globalThis:{};function uv(){if(!Ce.createContext)return{};const e=xc[Sc]??(xc[Sc]=new Map);let t=e.get(Ce.createContext);return t||(t=Ce.createContext(null),e.set(Ce.createContext,t)),t}var Mt=uv(),av=()=>{throw new Error("uSES not initialized!")};function Au(e=Mt){return function(){return Ce.useContext(e)}}var Lp=Au(),Mp=av,cv=e=>{Mp=e},fv=(e,t)=>e===t;function dv(e=Mt){const t=e===Mt?Lp:Au(e),n=(r,o={})=>{const{equalityFn:i=fv,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:u,getServerState:a,stabilityCheck:f,identityFunctionCheck:c}=t();Ce.useRef(!0);const g=Ce.useCallback({[r.name](d){return r(d)}}[r.name],[r,f,l.stabilityCheck]),w=Mp(u.addNestedSub,s.getState,a||s.getState,g,i);return Ce.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var Ae=dv();function pv(e){e()}function hv(){let e=null,t=null;return{clear(){e=null,t=null},notify(){pv(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Cc={notify(){},get:()=>[]};function mv(e,t){let n,r=Cc,o=0,i=!1;function l(m){f();const S=r.subscribe(m);let y=!1;return()=>{y||(y=!0,S(),c())}}function s(){r.notify()}function u(){d.onStateChange&&d.onStateChange()}function a(){return i}function f(){o++,n||(n=e.subscribe(u),r=hv())}function c(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Cc)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,c())}const d={addNestedSub:l,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return d}var yv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vv=typeof navigator<"u"&&navigator.product==="ReactNative",gv=yv||vv?Ce.useLayoutEffect:Ce.useEffect;function wv({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const l=Ce.useMemo(()=>{const a=mv(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Ce.useMemo(()=>e.getState(),[e]);gv(()=>{const{subscription:a}=l;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),s!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[l,s]);const u=t||Mt;return Ce.createElement(u.Provider,{value:l},n)}var Sv=wv;function Dp(e=Mt){const t=e===Mt?Lp:Au(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var xv=Dp();function Cv(e=Mt){const t=e===Mt?xv:Dp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ft=Cv();cv(sv.useSyncExternalStoreWithSelector);function zu({scale:e=1}){return p.jsx("div",{className:"logo",children:p.jsxs("svg",{width:`${52*e}`,height:`${53*e}`,viewBox:"0 0 52 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M41.0208 9.46202L41.4655 6.18356C41.5941 5.1578 40.9466 3.9206 39.9727 3.78519L38.3528 3.37342C37.9196 2.20635 37.2257 1.50963 36.1294 1.5C35.1555 1.5 34.3718 2.08429 33.906 2.90506L32.0374 2.68189C31.0635 2.54648 30.1319 3.56414 30.0034 4.5899L29.5587 7.86836L41.0208 9.46202Z",fill:"url(#paint0_linear_129_70)"}),p.jsx("path",{d:"M36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342Z",fill:"url(#paint1_linear_129_70)"}),p.jsx("path",{d:"M16.7317 47.7987L43.1829 51.4755C44.6437 51.6786 45.9843 50.5959 46.1771 49.0572L50.9768 10.7529C51.1696 9.21426 50.1416 7.80233 48.6807 7.59926L22.2296 3.92245C20.7687 3.71938 19.4281 4.80209 19.2353 6.34073C18.9276 8.79672 18.642 11.0755 18.3714 13.2354M25.9379 11.9733L43.7692 14.4525M42.8799 19.136L27.7656 17.0346M42.8799 23.8196L31.9302 22.2971M41.9905 28.5031L33.6265 27.3402M41.1012 33.1866L33.8335 32.1762M40.2118 37.8702L32.7851 36.8376M39.3225 42.5537L30.4068 41.3141M18.0819 18.864L18.2933 16.0627M28.0619 31.6424L30.7216 31.865M16.1403 44.5296L16.3517 41.7283M3.67566 29.6298L6.33533 29.8525M32.7851 36.8376C30.3922 43.2934 24.4297 47.867 17.453 47.867C8.36626 47.867 1 40.1085 1 30.5379C1 20.9674 8.36626 13.2088 17.453 13.2088C17.7612 13.2088 18.0674 13.2178 18.3714 13.2354M32.7851 36.8376C33.3289 35.3705 33.6883 33.8061 33.8335 32.1762M33.8335 32.1762C33.8815 31.6369 33.906 31.0904 33.906 30.5379C33.906 29.4455 33.81 28.3766 33.6265 27.3402M33.6265 27.3402C33.3088 25.5467 32.7289 23.8504 31.9302 22.2971M31.9302 22.2971C30.8844 20.2635 29.4637 18.475 27.7656 17.0346M27.7656 17.0346C25.1671 14.8303 21.919 13.441 18.3714 13.2354M41.4655 6.18356L41.0208 9.46202L29.5587 7.86836L30.0034 4.5899C30.1319 3.56414 31.0635 2.54648 32.0374 2.68189L33.906 2.90506C34.3718 2.08429 35.1555 1.5 36.1294 1.5C37.2257 1.50963 37.9196 2.20635 38.3528 3.37342L39.9727 3.78519C40.9466 3.9206 41.5941 5.1578 41.4655 6.18356ZM36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342ZM12.1169 29.1329L12.5616 29.2977C12.5616 29.2977 15.1394 32.1283 16.7317 33.8164L27.6805 23.981L28.5699 23.8196L16.8963 35.4702L12.1169 29.1329Z",stroke:"url(#paint2_linear_129_70)",strokeWidth:"1.9"}),p.jsxs("defs",{children:[p.jsxs("linearGradient",{id:"paint0_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint1_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),p.jsxs("linearGradient",{id:"paint2_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[p.jsx("stop",{stopColor:"#786cd8"}),p.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),p.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]})]})]})})}function Ev({loggedIn:e=!1}){const t=Ae(s=>s.auth.error),n=Ut(),[r,o]=E.useState({email:"",password:""}),i=ft(),l=s=>{s.preventDefault(),i(Xy(r))};return E.useEffect(()=>{e&&setTimeout(()=>{n(-1)},1e3)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signInPage",children:[p.jsx(zu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:l,children:[p.jsx("input",{type:"email",value:r.email,placeholder:"Email",onChange:s=>o({...r,email:s.target.value})}),p.jsx("input",{type:"password",value:r.password,placeholder:"Password",onChange:s=>o({...r,password:s.target.value})}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),p.jsx(hr,{to:"/sign-up",children:" don't have an account? sign up"})]})]})}function kv({loggedIn:e=!1}){const t=Ae(s=>s.auth.error),n=Ut(),[r,o]=E.useState({name:"",email:"",password:"",private:!1}),i=ft(),l=s=>{s.preventDefault(),i(Yy(r))};return E.useEffect(()=>{e&&setTimeout(()=>{n(-1)},2e3)},[e]),e?p.jsx("p",{children:"please sign out first"}):p.jsxs("div",{className:"signUpPage",children:[p.jsx(zu,{scale:3}),p.jsx("h1",{children:"TaskMaster"}),p.jsxs("form",{onSubmit:l,children:[p.jsx("input",{type:"text",value:r.name,placeholder:"Name",onChange:s=>{o({...r,name:s.target.value})},required:!0}),p.jsx("input",{type:"email",value:r.email,placeholder:"Email",onChange:s=>o({...r,email:s.target.value}),required:!0}),p.jsx("input",{type:"password",value:r.password,placeholder:"Password",minLength:8,onChange:s=>o({...r,password:s.target.value}),required:!0}),p.jsxs("div",{className:"private",children:[p.jsx("input",{type:"checkbox",checked:r.private,onClick:s=>{o({...r,private:!r.private})}}),p.jsx("p",{children:"keep your account private?"})]}),p.jsx("p",{className:"error",children:t}),p.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),p.jsx(hr,{to:"/sign-in",children:" already have an account? sign in"})]})]})}function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _v=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ec=_v,gl=()=>Math.random().toString(36).substring(7).split("").join("."),jv={INIT:`@@redux/INIT${gl()}`,REPLACE:`@@redux/REPLACE${gl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gl()}`},ri=jv;function Fu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ap(e,t,n){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(re(1));return n(Ap)(e,t)}let r=e,o=t,i=new Map,l=i,s=0,u=!1;function a(){l===i&&(l=new Map,i.forEach((S,y)=>{l.set(y,S)}))}function f(){if(u)throw new Error(re(3));return o}function c(S){if(typeof S!="function")throw new Error(re(4));if(u)throw new Error(re(5));let y=!0;a();const h=s++;return l.set(h,S),function(){if(y){if(u)throw new Error(re(6));y=!1,a(),l.delete(h),i=null}}}function g(S){if(!Fu(S))throw new Error(re(7));if(typeof S.type>"u")throw new Error(re(8));if(typeof S.type!="string")throw new Error(re(17));if(u)throw new Error(re(9));try{u=!0,o=r(o,S)}finally{u=!1}return(i=l).forEach(h=>{h()}),S}function w(S){if(typeof S!="function")throw new Error(re(10));r=S,g({type:ri.REPLACE})}function d(){const S=c;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(re(11));function h(){const C=y;C.next&&C.next(f())}return h(),{unsubscribe:S(h)}},[Ec](){return this}}}return g({type:ri.INIT}),{dispatch:g,subscribe:c,getState:f,replaceReducer:w,[Ec]:d}}function Pv(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ri.INIT})>"u")throw new Error(re(12));if(typeof n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function zp(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(re(14));a[c]=d,u=u||d!==w}return u=u||r.length!==Object.keys(l).length,u?a:l}}function oi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Nv(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(re(15))};const l={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},s=e.map(u=>u(l));return i=oi(...s)(o.dispatch),{...o,dispatch:i}}}function Tv(e){return Fu(e)&&"type"in e&&typeof e.type=="string"}class Rv{constructor(){this.base="https://project-manager-jqsq.onrender.com/user/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}}const Ti=new Rv,Fp="CREATE_TASK",Ov="UPDATE_TASK",Lv="DELETE_TASK",Ip="ALL_TASK",Up="LOAD_TASK",Mv=e=>async(t,n)=>{try{const r=n().auth.user.id;e.deadline==""&&(e.deadline=null);const o=await Ti.create({...e,owner:r});return t({type:Fp,payload:o.data}),await t(Ar()),Promise.resolve(o.data)}catch(r){return Promise.reject(r)}},Ar=()=>async(e,t)=>{try{e({type:Up});const n=t().auth.user.id,r=await Ti.all(n);return e({type:Ip,payload:r.data}),Promise.resolve(r.data)}catch(n){return Promise.reject(n)}},Dv=e=>async t=>{try{e.deadline==""&&(e.deadline=null);const n=await Ti.update(e);return t({type:Ov,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},Av=e=>async t=>{try{const n=await Ti.delete(e);return t({type:Lv,payload:n.data}),Ar()}catch(n){return Promise.reject(n)}},kc={tasks:[],loading:!1};function $p(e=kc,t){switch(t.type){case Fp:return{...e,tasks:[...e.tasks,t.payload]};case Ip:return{...e,tasks:t.payload,loading:!1};case Up:return{...e,loading:!0};case qr:return kc;default:return e}}const zv={user:null,error:null,all:[]};function Bp(e=zv,t){switch(t.type){case Tp:return{...e,all:t.payload};case jp:return{...e,user:t.payload};case _p:return{...e,user:t.payload,error:null};case Pp:return{...e,user:null};case Np:return{...e,user:t.payload,error:null};case Gy:return{...e,user:null};case zn:return{...e,error:t.payload};default:return e}}class Fv{constructor(){this.base="https://project-manager-jqsq.onrender.com/notes"}get(t){return M.get(`${this.base}/?owner=${t}`)}update(t){return console.log(t),M.post(`${this.base}/update`,t)}}const Hp=new Fv,Iu="UPDATE",Iv=()=>async(e,t)=>{try{const n=t().auth.user.id,r=await Hp.get(n);e({type:Iu,payload:r.data})}catch(n){console.log(n)}},Uv=e=>async(t,n)=>{try{const r=n().auth.user.id,o=await Hp.update({...e,owner:r});t({type:Iu,payload:o.data})}catch(r){console.log(r)}},_c={content:""};function Vp(e=_c,t){switch(t.type){case Iu:return t.payload;case qr:return _c;default:return e}}class $v{constructor(){this.base="https://project-manager-jqsq.onrender.com/project"}getProjects(t){return M.get(`${this.base}/get-owned?owner=${t}`)}getProject(t){return M.get(`${this.base}/get?id=${t}`)}createProject(t){return M.post(`${this.base}/create`,t)}deleteProject(t){return M.delete(`${this.base}/delete?id=${t}`)}updateProject(t){return M.put(`${this.base}/update`,t)}}const Ri=new $v;class Bv{constructor(){this.base="https://project-manager-jqsq.onrender.com/project/task"}create(t){return M.post(`${this.base}/create`,t)}all(t){return M.get(`${this.base}/list?owner=${t}`)}one(t){return M.get(`${this.base}/details?id=${t}`)}update(t){return M.put(`${this.base}/update`,t)}delete(t){return M.delete(`${this.base}/delete?id=${t}`)}status(t,n){return M.put(`${this.base}/status?id=${t}&status=${n}`)}}const Oi=new Bv,Wp="ALL_PROJECT_TASK",Hv="LOAD_PROJECT_TASK",Vv=(e,t)=>async n=>{try{const r=Object.keys(t).reduce((i,l)=>(t[l]!==null&&(i[l]=t[l]),i),{});r.deadline==""&&(r.deadline=null);const o=await Oi.create({...r,owner:e});await n(Jr())}catch(r){console.log(r)}},Jr=()=>async(e,t)=>{try{e({type:Hv});const n=t().project.one.id,r=await Oi.all(n);return e({type:Wp,payload:r.data}),Promise.resolve(r.data)}catch(n){console.log(n)}},Wv=e=>async t=>{try{const n=await Oi.delete(e);await t(Jr())}catch(n){console.log(n)}},wl=(e,t)=>async n=>{try{const r=await Oi.status(e,t);await n(Jr())}catch(r){console.log(r)}},Kp="CREATE_PROJECT",Qp="FETCH_PROJECTS",Uu="FETCH_PROJECT",$u="LOADING_PROJECT",Kv=e=>async(t,n)=>{try{const r=n().auth.user.id;t({type:$u,payload:!0}),e.due==""&&(e.due=null);const o=await Ri.createProject({...e,owner:r});t({type:Kp,payload:o.data})}catch(r){console.log(r)}},Bu=()=>async(e,t)=>{try{const n=t().auth.user.id;e({type:$u,payload:!0});const r=await Ri.getProjects(n);e({type:Qp,payload:r.data}),r.data&&(e({type:Uu,payload:r.data[0]}),e(Jr()))}catch(n){console.log(n)}},Qv=e=>async t=>{const n=await Ri.getProject(e);n.data.due==null&&(n.data.due=""),t({type:Uu,payload:n.data})},Zv=e=>async t=>{e.due==""&&(e.due=null),await Ri.updateProject(e),await t(Bu())},jc={projects:[],loading:!1,one:null};function Zp(e=jc,t){switch(t.type){case $u:return{...e,loading:t.payload};case Kp:return{...e,projects:[...e.projects,t.payload]};case Qp:return{...e,projects:t.payload,loading:!1};case Uu:return{...e,one:t.payload};case qr:return jc;default:return e}}const Pc={tasks:[]};function Jp(e=Pc,t){switch(t.type){case Wp:return{...e,tasks:t.payload};case qr:return Pc;default:return e}}const qr="CLEAR";zp({task:$p,auth:Bp,note:Vp,project:Zp,projectTask:Jp});const Jv=()=>p.jsx("svg",{width:"24",height:"28",viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M19.5 22V21H19.4741L19.4483 21.0013L19.5 22ZM5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9V7ZM19 9C19.5523 9 20 8.55228 20 8C20 7.44772 19.5523 7 19 7V9ZM5 12C4.44772 12 4 12.4477 4 13C4 13.5523 4.44772 14 5 14V12ZM19 14C19.5523 14 20 13.5523 20 13C20 12.4477 19.5523 12 19 12V14ZM5 17C4.44772 17 4 17.4477 4 18C4 18.5523 4.44772 19 5 19V17ZM19 19C19.5523 19 20 18.5523 20 18C20 17.4477 19.5523 17 19 17V19ZM17.5 27V28C17.7652 28 18.0196 27.8946 18.2071 27.7071L17.5 27ZM22.5 22L23.2071 22.7071C23.3946 22.5196 23.5 22.2652 23.5 22H22.5ZM3.5 2H20.5V0H3.5V2ZM2.5 25V3H0.5V25H2.5ZM3.5 26C2.94772 26 2.5 25.5523 2.5 25H0.5C0.5 26.6569 1.84315 28 3.5 28V26ZM19.4483 21.0013C17.8806 21.0825 16.3657 22.306 16.503 24.0773L18.497 23.9227C18.468 23.5481 18.8103 23.0371 19.5517 22.9987L19.4483 21.0013ZM20.5 2C21.0523 2 21.5 2.44772 21.5 3H23.5C23.5 1.34315 22.1569 0 20.5 0V2ZM3.5 0C1.84315 0 0.5 1.34315 0.5 3H2.5C2.5 2.44771 2.94772 2 3.5 2V0ZM5 9H19V7H5V9ZM5 14H19V12H5V14ZM5 19H19V17H5V19ZM16.5 24V27H18.5V24H16.5ZM17.5 26H3.5V28H17.5V26ZM21.5 3V22H23.5V3H21.5ZM22.5 21H19.5V23H22.5V21ZM21.7929 21.2929L16.7929 26.2929L18.2071 27.7071L23.2071 22.7071L21.7929 21.2929ZM17.8714 24.9285L22.8714 22.9285L22.1286 21.0715L17.1286 23.0715L17.8714 24.9285ZM18.5715 21.6286L16.5715 26.6286L18.4285 27.3714L20.4285 22.3714L18.5715 21.6286Z",fill:"black"})}),qv=()=>p.jsx("svg",{width:"20",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M1.30608 0.598877L22.5193 21.8121M0.598999 21.8121L21.8122 0.5989",stroke:"#FF375F","stroke-width":"2"})}),Gv=()=>p.jsx("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M22.1765 17.4545C22.7288 17.4545 23.1765 17.0068 23.1765 16.4545C23.1765 15.9023 22.7288 15.4545 22.1765 15.4545V17.4545ZM0.292893 15.7474C-0.0976311 16.138 -0.0976311 16.7711 0.292893 17.1617L6.65685 23.5256C7.04738 23.9161 7.68054 23.9161 8.07107 23.5256C8.46159 23.1351 8.46159 22.5019 8.07107 22.1114L2.41421 16.4545L8.07107 10.7977C8.46159 10.4072 8.46159 9.774 8.07107 9.38348C7.68054 8.99295 7.04738 8.99295 6.65685 9.38348L0.292893 15.7474ZM9.70588 11.9091C9.70588 12.4614 10.1536 12.9091 10.7059 12.9091C11.2582 12.9091 11.7059 12.4614 11.7059 11.9091H9.70588ZM11.7059 21C11.7059 20.4477 11.2582 20 10.7059 20C10.1536 20 9.70588 20.4477 9.70588 21H11.7059ZM13.3529 2H28.3529V0H13.3529V2ZM30 3.72727V28.2727H32V3.72727H30ZM28.3529 30H13.3529V32H28.3529V30ZM13.3529 30C12.4712 30 11.7059 29.255 11.7059 28.2727H9.70588C9.70588 30.3029 11.3108 32 13.3529 32V30ZM30 28.2727C30 29.255 29.2347 30 28.3529 30V32C30.3951 32 32 30.3029 32 28.2727H30ZM28.3529 2C29.2347 2 30 2.74498 30 3.72727H32C32 1.69711 30.3951 0 28.3529 0V2ZM13.3529 0C11.3108 0 9.70588 1.69711 9.70588 3.72727H11.7059C11.7059 2.74498 12.4712 2 13.3529 2V0ZM22.1765 15.4545H10.7059V17.4545H22.1765V15.4545ZM10.7059 15.4545H1V17.4545H10.7059V15.4545ZM11.7059 11.9091V3.72727H9.70588V11.9091H11.7059ZM11.7059 28.2727V21H9.70588V28.2727H11.7059Z",fill:"#FF375F"})}),Nc=()=>p.jsx("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M14 4V1C14 0.734784 14.1054 0.48043 14.2929 0.292893C14.4804 0.105357 14.7348 0 15 0C15.2652 0 15.5196 0.105357 15.7071 0.292893C15.8946 0.48043 16 0.734784 16 1V4C16 4.26522 15.8946 4.51957 15.7071 4.70711C15.5196 4.89464 15.2652 5 15 5C14.7348 5 14.4804 4.89464 14.2929 4.70711C14.1054 4.51957 14 4.26522 14 4ZM15 7C13.4177 7 11.871 7.46919 10.5554 8.34824C9.23984 9.22729 8.21447 10.4767 7.60896 11.9385C7.00346 13.4003 6.84504 15.0089 7.15372 16.5607C7.4624 18.1126 8.22433 19.538 9.34315 20.6569C10.462 21.7757 11.8874 22.5376 13.4393 22.8463C14.9911 23.155 16.5997 22.9965 18.0615 22.391C19.5233 21.7855 20.7727 20.7602 21.6518 19.4446C22.5308 18.129 23 16.5823 23 15C22.9977 12.879 22.1541 10.8455 20.6543 9.3457C19.1545 7.84591 17.121 7.00232 15 7ZM6.2925 7.7075C6.48014 7.89514 6.73464 8.00056 7 8.00056C7.26536 8.00056 7.51986 7.89514 7.7075 7.7075C7.89514 7.51986 8.00056 7.26536 8.00056 7C8.00056 6.73464 7.89514 6.48014 7.7075 6.2925L5.7075 4.2925C5.51986 4.10486 5.26536 3.99944 5 3.99944C4.73464 3.99944 4.48014 4.10486 4.2925 4.2925C4.10486 4.48014 3.99944 4.73464 3.99944 5C3.99944 5.26536 4.10486 5.51986 4.2925 5.7075L6.2925 7.7075ZM6.2925 22.2925L4.2925 24.2925C4.10486 24.4801 3.99944 24.7346 3.99944 25C3.99944 25.2654 4.10486 25.5199 4.2925 25.7075C4.48014 25.8951 4.73464 26.0006 5 26.0006C5.26536 26.0006 5.51986 25.8951 5.7075 25.7075L7.7075 23.7075C7.80041 23.6146 7.87411 23.5043 7.92439 23.3829C7.97468 23.2615 8.00056 23.1314 8.00056 23C8.00056 22.8686 7.97468 22.7385 7.92439 22.6171C7.87411 22.4957 7.80041 22.3854 7.7075 22.2925C7.61459 22.1996 7.50429 22.1259 7.3829 22.0756C7.2615 22.0253 7.13139 21.9994 7 21.9994C6.86861 21.9994 6.7385 22.0253 6.6171 22.0756C6.49571 22.1259 6.38541 22.1996 6.2925 22.2925ZM23 8C23.1314 8.0001 23.2615 7.97432 23.3829 7.92414C23.5042 7.87395 23.6146 7.80033 23.7075 7.7075L25.7075 5.7075C25.8951 5.51986 26.0006 5.26536 26.0006 5C26.0006 4.73464 25.8951 4.48014 25.7075 4.2925C25.5199 4.10486 25.2654 3.99944 25 3.99944C24.7346 3.99944 24.4801 4.10486 24.2925 4.2925L22.2925 6.2925C22.1525 6.43236 22.0571 6.61061 22.0185 6.80469C21.9798 6.99878 21.9996 7.19997 22.0754 7.38279C22.1511 7.56561 22.2794 7.72185 22.444 7.83172C22.6086 7.94159 22.8021 8.00016 23 8ZM23.7075 22.2925C23.5199 22.1049 23.2654 21.9994 23 21.9994C22.7346 21.9994 22.4801 22.1049 22.2925 22.2925C22.1049 22.4801 21.9994 22.7346 21.9994 23C21.9994 23.2654 22.1049 23.5199 22.2925 23.7075L24.2925 25.7075C24.3854 25.8004 24.4957 25.8741 24.6171 25.9244C24.7385 25.9747 24.8686 26.0006 25 26.0006C25.1314 26.0006 25.2615 25.9747 25.3829 25.9244C25.5043 25.8741 25.6146 25.8004 25.7075 25.7075C25.8004 25.6146 25.8741 25.5043 25.9244 25.3829C25.9747 25.2615 26.0006 25.1314 26.0006 25C26.0006 24.8686 25.9747 24.7385 25.9244 24.6171C25.8741 24.4957 25.8004 24.3854 25.7075 24.2925L23.7075 22.2925ZM5 15C5 14.7348 4.89464 14.4804 4.70711 14.2929C4.51957 14.1054 4.26522 14 4 14H1C0.734784 14 0.48043 14.1054 0.292893 14.2929C0.105357 14.4804 0 14.7348 0 15C0 15.2652 0.105357 15.5196 0.292893 15.7071C0.48043 15.8946 0.734784 16 1 16H4C4.26522 16 4.51957 15.8946 4.70711 15.7071C4.89464 15.5196 5 15.2652 5 15ZM15 25C14.7348 25 14.4804 25.1054 14.2929 25.2929C14.1054 25.4804 14 25.7348 14 26V29C14 29.2652 14.1054 29.5196 14.2929 29.7071C14.4804 29.8946 14.7348 30 15 30C15.2652 30 15.5196 29.8946 15.7071 29.7071C15.8946 29.5196 16 29.2652 16 29V26C16 25.7348 15.8946 25.4804 15.7071 25.2929C15.5196 25.1054 15.2652 25 15 25ZM29 14H26C25.7348 14 25.4804 14.1054 25.2929 14.2929C25.1054 14.4804 25 14.7348 25 15C25 15.2652 25.1054 15.5196 25.2929 15.7071C25.4804 15.8946 25.7348 16 26 16H29C29.2652 16 29.5196 15.8946 29.7071 15.7071C29.8946 15.5196 30 15.2652 30 15C30 14.7348 29.8946 14.4804 29.7071 14.2929C29.5196 14.1054 29.2652 14 29 14Z",fill:"#A040CE"})}),Xv=()=>{};function Yv({setOpen:e,open:t,user:n}){const r=["home","projects","tasks"],o=ct(),i=Ut(),l=ft(),s=a=>{i(a.target.id),e()},u=()=>{l({type:qr}),l(by())};return p.jsxs("div",{className:"sidebar",style:{left:t?0:""},children:[p.jsx("div",{className:"sidebar__options",children:r.map((a,f)=>p.jsx("div",{onClick:s,id:a,className:o.pathname.includes(a)?"sidebar__option active":"sidebar__option",children:a},f))}),n&&p.jsx("div",{onClick:u,color:"red",children:p.jsx(Gv,{})})]})}function bv({user:e,dark:t,isDark:n}){const r=ct(),[o,i]=E.useState(!1),[l,s]=E.useState(p.jsx(Nc,{})),u=Ae(a=>a.auth.error);return E.useEffect(()=>{s(n?p.jsx(Xv,{}):p.jsx(Nc,{}))},[n]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx("div",{className:"navbar",style:{position:"fixed",border:"none"},children:p.jsx("img",{src:l,alt:"switch",onClick:()=>t()})}):p.jsxs("div",{className:o?"top":"top over",children:[p.jsxs("nav",{className:"navbar",children:[p.jsxs("div",{className:"projectTitle",children:[p.jsx("div",{className:"sidebar__logo",onClick:()=>i(!o),children:"☰"}),p.jsx(zu,{}),p.jsxs(hr,{to:"",children:["TaskMaster",u]})]}),e!=null?p.jsxs("div",{className:"user",children:[p.jsx("img",{src:l,alt:"switch",onClick:()=>t()}),p.jsx("div",{children:p.jsx("p",{id:"user-name",children:e.name})})]}):p.jsxs("div",{className:"sign",children:[p.jsx("img",{src:l,alt:"switch",onClick:()=>t()}),p.jsx("button",{className:"tertiary-button signIn",children:p.jsx(hr,{to:"/sign-in",children:"Sign In"})}),p.jsx("button",{className:"secondary-button signUp",children:p.jsx(hr,{to:"/sign-up",children:"Sign Up"})})]})]}),p.jsx(Yv,{setOpen:()=>i(!o),open:o,user:e!=null})]})}function eg(){return p.jsx("div",{className:"homePage",children:p.jsx("h1",{children:"Welcome to TaskMaster"})})}function tg({note:e,save:t,loggedIn:n}){const r=ct(),[o,i]=E.useState(e.content),[l,s]=E.useState(!1);return E.useEffect(()=>{i(e.content);const u=a=>{a.key==="Escape"?(s(!1),t(o)):a.shiftKey&&a.key==="n"&&s(!0)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[e]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?p.jsx(p.Fragment,{}):l?p.jsxs("div",{className:"notes",children:[p.jsx("div",{className:"notes-options",children:p.jsx(qv,{onClick:()=>{s(!1),t(o)}})}),p.jsx("textarea",{disabled:!n,value:o,onChange:u=>i(u.target.value)})]}):p.jsx("div",{className:"notes",style:{height:"35px",border:"1px solid rgb(var(--second))"},onClick:()=>s(!0),children:p.jsx(Jv,{})})}function ng({loggedIn:e}){const t=ft(),n=Ae(f=>f.task.tasks),[r,o]=E.useState(!1),[i,l]=E.useState(!1),[s,u]=E.useState({task:"",description:"",completion:0,deadline:""}),a=f=>{f.preventDefault(),console.log(s),r?(t(Dv(s)).then(()=>{t(Ar())}),o(!1)):t(Mv(s)),l(!1)};return E.useEffect(()=>{e&&t(Ar())},[e]),p.jsxs("div",{className:"task-page",children:[p.jsxs("div",{className:"tasks-title",children:[p.jsx("h1",{children:"Tasks"}),p.jsx("div",{className:"task-add",children:p.jsx("button",{className:"secondary-button",onClick:()=>l(!i),children:"New"})})]}),i&&p.jsx("div",{className:"create-task",children:p.jsxs("form",{onSubmit:a,children:[p.jsx("input",{type:"text",value:s.task,onChange:f=>u({...s,task:f.target.value}),placeholder:"Task Name",required:!0}),p.jsx("textarea",{type:"text",value:s.description,onChange:f=>u({...s,description:f.target.value}),placeholder:"Task Description"}),p.jsxs("div",{className:"task-completion",children:[p.jsxs("output",{for:"completion",onforminput:"value = completion.valueAsNumber;",children:["Completion: ",s.completion,"%"]}),p.jsx("input",{type:"range",min:0,max:100,value:s.completion,onChange:f=>u({...s,completion:f.target.value}),name:"completion"})]}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:s.deadline,onChange:f=>u({...s,deadline:f.target.value})}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>{o(!1),l(!1),u({task:"",description:"",completion:0,deadline:""})},children:"cancel"}),p.jsx("button",{type:"submit",children:r?"Update":"Create"})]})]})}),p.jsx("div",{className:"task-table-container",children:p.jsxs("table",{className:"task-table",children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{children:"Task"}),p.jsx("th",{children:"description"}),p.jsx("th",{children:"progress"}),p.jsx("th",{children:"deadline"}),p.jsx("th",{children:"Actions"})]})}),p.jsx("tbody",{children:n.map(f=>p.jsxs("tr",{style:{backgroundColor:`rgba(var(--low), ${f.completion/100})`},children:[p.jsx("td",{children:f.task}),p.jsx("td",{children:f.description}),p.jsxs("td",{children:[f.completion,"%"]}),p.jsx("td",{children:f.deadline&&f.deadline}),p.jsxs("td",{children:[p.jsx("button",{onClick:()=>{u({...f,deadline:f.deadline!=null?f.deadline:""}),l(!0),o(!0)},children:"update"}),p.jsx("button",{onClick:()=>t(Av(index)),children:"delete"})]})]},f.id))})]})})]})}function rg({tasks:e=[],newTask:t,users:n=[]}){const[r,o]=E.useState([]),[i,l]=E.useState([]),[s,u]=E.useState([]),a=ft(),f=()=>{try{r.map(d=>{e.find(m=>m.id==d.id).status!="To Do"&&a(wl(d.id,"To Do"))}),i.map(d=>{e.find(m=>m.id==d.id).status!="In Progress"&&a(wl(d.id,"In Progress"))}),s.map(d=>{e.find(m=>m.id==d.id).status!="Completed"&&a(wl(d.id,"Completed"))})}catch(d){console.log(d)}},c=(d,m)=>{d.dataTransfer.setData("from",m.from),d.dataTransfer.setData("id",m.id)},g=(d,m)=>{if(m=="delete"){a(Wv(d.dataTransfer.getData("id")));return}const S=d.dataTransfer.getData("from"),y=d.dataTransfer.getData("id");if(S==m)return;let h=null;S=="todo"?(h=r.find(v=>v.id==y),o(r.filter(v=>v.id!=y))):S=="in progress"?(h=i.find(v=>v.id==y),l(i.filter(v=>v.id!=y))):S=="completed"&&(h=s.find(v=>v.id==y),u(s.filter(v=>v.id!=y))),m=="todo"?o([...r,h]):m=="in progress"?l([...i,h]):m=="completed"&&u([...s,h])},w=d=>{d.preventDefault()};return E.useEffect(()=>(e.map(d=>{d.status==="To Do"?o(m=>[...m,d]):d.status==="In Progress"?l(m=>[...m,d]):d.status==="Completed"&&u(m=>[...m,d])}),()=>{o([]),l([]),u([])}),[e]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"project-item-grid",children:[p.jsx("div",{className:"project-task-title",children:"todo"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"todo"),children:r.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"todo",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"inprogress"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"in progress"),children:i.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"in progress",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-title",children:"completed"}),p.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"completed"),children:s.map((d,m)=>p.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"completed",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[p.jsxs("div",{className:"task-title",children:[p.jsx("div",{className:"title",children:d.title}),p.jsx("div",{className:"deadline",children:d.deadline})]}),p.jsxs("div",{className:"task-bottom",children:[p.jsx("div",{className:"description",children:d.description}),p.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),p.jsx("div",{className:"project-task-delete",onDragOver:w,onDrop:d=>g(d,"delete"),children:"delete"}),p.jsxs("div",{className:"project-task-options",children:[p.jsx("button",{onClick:t,children:"add Task"}),p.jsx("button",{onClick:()=>f(),children:"save changes"})]})]})})}function og({close:e}){const t=ft(),n=Ut(),r=Ae(m=>m.auth.all),o=Ae(m=>m.project.one),i=Ae(m=>m.projectTask.tasks),[l,s]=E.useState(!1),[u,a]=E.useState(!1),[f,c]=E.useState({title:"",description:"",deadline:"",priority:null,difficulty:null,assigned_to:null}),g=()=>{n("/projects/modify",{state:{edit:!0}})},w=m=>{m.preventDefault(),console.log("created"),t(Vv(o.id,f)),c({title:"",description:"",completion:0,deadline:"",priority:null,difficulty:null,assigned_to:null}),s(!1)},d=()=>{u&&c({priority:null,difficulty:null,assigned_to:null}),a(!u)};return E.useEffect(()=>{t(Jr(o.id)),t(Mu());const m=S=>{console.log(S.key),S.key==="Escape"&&e()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[]),r==null||o==null||i==null?p.jsx("h1",{children:"Loading"}):p.jsxs(p.Fragment,{children:[o&&p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:o.title}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:g,children:"edit"})})]}),l&&p.jsx("div",{className:"create-project-task",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("input",{type:"text",value:f.title,onChange:m=>c({...f,title:m.target.value}),placeholder:"Task Title",required:!0}),p.jsx("textarea",{type:"text",value:f.description,onChange:m=>c({...f,description:m.target.value}),placeholder:"Task Description",required:!0}),p.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:f.deadline,onChange:m=>c({...f,deadline:m.target.value})}),p.jsxs("div",{className:"additional",onClick:d,children:[p.jsx("div",{children:"additional details"}),p.jsx("div",{children:u?"-":"+"})]}),u&&p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"element",children:[p.jsx("label",{for:"priority",children:"Priority"}),p.jsxs("select",{id:"priority",defaultValue:"default",onChange:m=>c({...f,priority:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"difficulty",children:"difficulty"}),p.jsxs("select",{id:"difficulty",defaultValue:"default",onChange:m=>c({...f,difficulty:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"default"}),p.jsx("option",{value:"High",children:"High"}),p.jsx("option",{value:"Medium",children:"Medium"}),p.jsx("option",{value:"Low",children:"Low"})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("label",{htmlFor:"assign",children:"Assign to"}),p.jsxs("select",{id:"assign",defaultValue:"Select",onChange:m=>c({...f,assigned_to:m.target.value.toLowerCase()}),children:[p.jsx("option",{disabled:!0,children:"Select"}),r.map((m,S)=>m.name!="myself"?p.jsxs("option",{value:m.id,children:[m.name," -"," ",m.email]},S):p.jsx("option",{value:m.id,children:m.name},S))]})]})]}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s(!1),children:"cancel"}),p.jsx("button",{type:"submit",children:"Create"})]})]})}),p.jsx(rg,{tasks:i,newTask:()=>s(!0),users:r})]})}function ig({loggedIn:e}){const t=ft(),n=Ae(s=>s.project),r=Ut(),[o,i]=E.useState(!1);E.useEffect(()=>{e&&t(Bu())},[e]);const l=s=>t(Qv(s)).then(()=>{i(!0)});return o?p.jsx(og,{close:()=>i(!1)}):p.jsxs("div",{children:[p.jsxs("div",{className:"projectListTitle",children:[p.jsx("h1",{children:"Projects"}),p.jsx("div",{className:"projectListTitle--add",children:p.jsx("button",{className:"secondary-button",onClick:()=>r("/projects/modify"),children:"new"})})]}),n.loading?p.jsx("p",{children:"loading"}):p.jsx("div",{className:"projectList",children:n.projects.map((s,u)=>p.jsxs("div",{className:"project",onClick:()=>{l(s.id)},children:[p.jsxs("div",{className:"project-title",children:[p.jsx("div",{className:"title",children:s.title}),p.jsx("div",{className:"deadline",children:s.deadline&&s.deadline})]}),p.jsxs("div",{className:"project-description",children:["Description: ",p.jsx("br",{}),s.description||"empty"]})]},u))})]})}function lg(){const e=Ae(d=>d.auth.all),t=ft(),n=new Date().toISOString().split("T")[0],[r,o]=E.useState(null),[i,l]=E.useState([]),s=Ut(),u=ct(),a=Ae(d=>d.project.one),{edit:f}=u.state||!1,[c,g]=E.useState({title:"",description:"",due:"",group:!1,members:[]}),w=d=>{d.preventDefault(),f?(d.preventDefault(),t(Zv(c)).then(()=>{s("/projects")})):t(Kv(c)).then(()=>{t(Bu())}).then(()=>{s("/projects")})};return E.useEffect(()=>{if(t(Mu()),f){g(a);const d=e.map(m=>{if(c.members.includes(m.id))return m.name}).filter(Boolean);l(d)}},[]),p.jsx("div",{className:"project-modify",children:p.jsxs("form",{onSubmit:w,children:[p.jsx("h2",{children:"Project"}),p.jsx("input",{type:"text",value:c.title,onChange:d=>g({...c,title:d.target.value}),required:!0,placeholder:"Project Title"}),p.jsx("textarea",{value:c.description,onChange:d=>g({...c,description:d.target.value}),required:!0,placeholder:"Project Description"}),p.jsx("input",{type:"date",value:c.due,min:n,onChange:d=>g({...c,due:d.target.value})}),p.jsxs("div",{children:["is this a group project?",p.jsx("input",{type:"checkbox",checked:c.group,onClick:d=>{g({...c,group:!c.group}),c.group||(l([]),o(null))}})]}),c.group?p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsxs("select",{defaultValue:"Select",onChange:d=>o(d.target.value),children:[p.jsx("option",{disabled:!0,children:"Select"}),e.map((d,m)=>{if(d.name!="myself")return p.jsxs("option",{value:m,children:[d.name," - ",d.email]},m)})]}),p.jsx("button",{type:"button",onClick:()=>{const d=e[r];r&&(!c.members.includes(d.id)||!i.includes(d.name))&&(g({...c,members:[...c.members,d.id]}),l([...i,d.name]))},children:"add member"})]}),p.jsxs("ul",{children:["members:",i.length==0?" None":"",i.map((d,m)=>p.jsx("li",{onClick:()=>{const S=i.filter((h,v)=>v!==m);l(S);const y=c.members.filter((h,v)=>v!=m);g({...c,members:y})},children:d},m))]})]}):p.jsx(p.Fragment,{}),p.jsxs("div",{className:"element",children:[p.jsx("button",{onClick:()=>s("/projects"),children:"Cancel"}),p.jsx("button",{type:"submit",children:f?"Update":"Create"})]})]})})}function sg(){const e=Ae(l=>l.auth.user),t=Ae(l=>l.note),n=ft(),[r,o]=E.useState(document.body.classList.contains("dark")),i=()=>{document.body.classList.contains("dark")?(document.body.classList.remove("dark"),o(!1)):(document.body.classList.add("dark"),o(!0))};return E.useEffect(()=>{document.cookie.match("(^|;)\\s*user\\s*=\\s*([^;]+)")&&(n(Du()).then(()=>{n(Iv())}),n(Mu()))},[]),p.jsxs(O0,{children:[p.jsx(bv,{user:e,dark:i,isDark:r}),p.jsx(tg,{note:e==null?{content:""}:t,loggedIn:e!=null,save:l=>{t.content!=l&&n(Uv({...t,content:l}))}}),p.jsxs(k0,{children:[p.jsx(ht,{index:!0,path:"/home",element:p.jsx(eg,{})}),p.jsx(ht,{path:"/sign-in",element:p.jsx(Ev,{loggedIn:e!=null})}),p.jsx(ht,{path:"/sign-up",element:p.jsx(kv,{loggedIn:e!=null})}),p.jsx(ht,{path:"/tasks",element:p.jsx(ng,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects",element:p.jsx(ig,{loggedIn:e!=null})}),p.jsx(ht,{path:"/projects/modify",element:p.jsx(lg,{})}),p.jsx(ht,{path:"*",element:p.jsx(C0,{to:"/home",replace:!0})})]})]})}var qp=Symbol.for("immer-nothing"),Tc=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function Ve(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fn=Object.getPrototypeOf;function nn(e){return!!e&&!!e[_e]}function rn(e){var t;return e?Gp(e)||Array.isArray(e)||!!e[Tc]||!!((t=e.constructor)!=null&&t[Tc])||Mi(e)||Di(e):!1}var ug=Object.prototype.constructor.toString();function Gp(e){if(!e||typeof e!="object")return!1;const t=Fn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===ug}function ii(e,t){Li(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Li(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:Mi(e)?2:Di(e)?3:0}function ks(e,t){return Li(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xp(e,t,n){const r=Li(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function ag(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Mi(e){return e instanceof Map}function Di(e){return e instanceof Set}function Wt(e){return e.copy_||e.base_}function _s(e,t){if(Mi(e))return new Map(e);if(Di(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Gp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_e];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=cg),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Hu(r,!0))),e}function cg(){Ve(2)}function Ai(e){return Object.isFrozen(e)}var fg={};function on(e){const t=fg[e];return t||Ve(0,e),t}var zr;function Yp(){return zr}function dg(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Rc(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function js(e){Ps(e),e.drafts_.forEach(pg),e.drafts_=null}function Ps(e){e===zr&&(zr=e.parent_)}function Oc(e){return zr=dg(zr,e)}function pg(e){const t=e[_e];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_e].modified_&&(js(t),Ve(4)),rn(e)&&(e=li(t,e),t.parent_||si(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=li(t,n,[]),js(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qp?e:void 0}function li(e,t,n){if(Ai(t))return t;const r=t[_e];if(!r)return ii(t,(o,i)=>Mc(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return si(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),ii(i,(s,u)=>Mc(e,r,o,s,u,n,l)),si(e,o,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Mc(e,t,n,r,o,i,l){if(nn(o)){const s=i&&t&&t.type_!==3&&!ks(t.assigned_,r)?i.concat(r):void 0,u=li(e,o,s);if(Xp(n,r,u),nn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(rn(o)&&!Ai(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;li(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&si(e,o)}}function si(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hu(t,n)}function hg(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Yp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Vu;n&&(o=[r],i=Fr);const{revoke:l,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=l,s}var Vu={get(e,t){if(t===_e)return e;const n=Wt(e);if(!ks(n,t))return mg(e,n,t);const r=n[t];return e.finalized_||!rn(r)?r:r===Sl(e.base_,t)?(xl(e),e.copy_[t]=Ts(r,e)):r},has(e,t){return t in Wt(e)},ownKeys(e){return Reflect.ownKeys(Wt(e))},set(e,t,n){const r=bp(Wt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Sl(Wt(e),t),i=o==null?void 0:o[_e];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(ag(n,o)&&(n!==void 0||ks(e.base_,t)))return!0;xl(e),Ns(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Sl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xl(e),Ns(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Wt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ve(11)},getPrototypeOf(e){return Fn(e.base_)},setPrototypeOf(){Ve(12)}},Fr={};ii(Vu,(e,t)=>{Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)};Fr.set=function(e,t,n){return Vu.set.call(this,e[0],t,n,e[0])};function Sl(e,t){const n=e[_e];return(n?Wt(n):e)[t]}function mg(e,t,n){var o;const r=bp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function bp(e,t){if(!(t in e))return;let n=Fn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fn(n)}}function Ns(e){e.modified_||(e.modified_=!0,e.parent_&&Ns(e.parent_))}function xl(e){e.copy_||(e.copy_=_s(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var yg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...a){return l.produce(u,f=>n.call(this,f,...a))}}typeof n!="function"&&Ve(6),r!==void 0&&typeof r!="function"&&Ve(7);let o;if(rn(t)){const i=Oc(this),l=Ts(t,void 0);let s=!0;try{o=n(l),s=!1}finally{s?js(i):Ps(i)}return Rc(i,r),Lc(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===qp&&(o=void 0),this.autoFreeze_&&Hu(o,!0),r){const i=[],l=[];on("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else Ve(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...s)=>this.produceWithPatches(l,u=>t(u,...s));let r,o;return[this.produce(t,n,(l,s)=>{r=l,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rn(e)||Ve(8),nn(e)&&(e=eh(e));const t=Oc(this),n=Ts(e,void 0);return n[_e].isManual_=!0,Ps(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&Ve(9);const{scope_:r}=n;return Rc(r,t),Lc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return nn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ts(e,t){const n=Mi(e)?on("MapSet").proxyMap_(e,t):Di(e)?on("MapSet").proxySet_(e,t):hg(e,t);return(t?t.scope_:Yp()).drafts_.push(n),n}function eh(e){return nn(e)||Ve(10,e),th(e)}function th(e){if(!rn(e)||Ai(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_s(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_s(e,!0);return ii(n,(r,o)=>{Xp(n,r,th(o))}),t&&(t.finalized_=!1),n}var je=new yg;je.produce;je.produceWithPatches.bind(je);je.setAutoFreeze.bind(je);je.setUseStrictShallowCopy.bind(je);je.applyPatches.bind(je);je.createDraft.bind(je);je.finishDraft.bind(je);function vg(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function gg(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function wg(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Dc=e=>Array.isArray(e)?e:[e];function Sg(e){const t=Array.isArray(e[0])?e[0]:e;return wg(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xg(e,t){const n=[],{length:r}=e;for(let o=0;o{n=yo(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function nh(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,s,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),vg(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const f={...n,...u},{memoize:c,memoizeOptions:g=[],argsMemoize:w=Wu,argsMemoizeOptions:d=[],devModeChecks:m={}}=f,S=Dc(g),y=Dc(d),h=Sg(o),v=c(function(){return i++,a.apply(null,arguments)},...S),C=w(function(){l++;const N=xg(h,arguments);return s=v.apply(null,N),s},...y);return Object.assign(C,{resultFunc:a,memoizedResultFunc:v,dependencies:h,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:c,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var _g=nh(Wu),jg=Object.assign((e,t=_g)=>{gg(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,s,u)=>(l[n[u]]=s,l),{}))},{withTypes:()=>jg});function rh(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var oh=rh(),Pg=rh,Ng=(...e)=>{const t=nh(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...s)=>o(nn(l)?eh(l):l,...s);return Object.assign(i,o),i},{withTypes:()=>n});return n};Ng(Wu);var Tg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oi:oi.apply(null,arguments)};function zi(e,t){function n(...r){return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Tv(r)&&r.type===e,n}var ih=class or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,or.prototype)}static get[Symbol.species](){return or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new or(...t[0].concat(this)):new or(...t.concat(this))}};function Rg(e){return typeof e=="boolean"}var Og=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new ih;return n&&(Rg(n)?l.push(oh):l.push(Pg(n.extraArgument))),l},Lg="RTK_autoBatch",lh=e=>t=>{setTimeout(t,e)},Mg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lh(10),Dg=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?Mg:e.type==="callback"?e.queueNotification:lh(e.timeout),a=()=>{l=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const c=()=>o&&f(),g=r.subscribe(c);return s.add(f),()=>{g(),s.delete(f)}},dispatch(f){var c;try{return o=!((c=f==null?void 0:f.meta)!=null&&c[Lg]),i=!o,i&&(l||(l=!0,u(a))),r.dispatch(f)}finally{o=!0}}})},Ag=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new ih(e);return r&&o.push(Dg(typeof r=="object"?r:void 0)),o},zg=!0;function Fg(e){const t=Og(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Fu(n))s=zp(n);else throw new Error(Fi(1));let u;typeof r=="function"?u=r(t):u=t();let a=oi;o&&(a=Tg({trace:!zg,...typeof o=="object"&&o}));const f=Nv(...u),c=Ag(f);let g=typeof l=="function"?l(c):c();const w=a(...g);return Ap(s,i,w)}var Ig="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ug=(e=21)=>{let t="",n=e;for(;n--;)t+=Ig[Math.random()*64|0];return t},$g=(e,t)=>{if(typeof e!="function")throw new Error(Fi(32))},Ku="listenerMiddleware",Bg=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=zi(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Fi(21));return $g(i),{predicate:o,type:t,effect:i}},Hg=Object.assign(e=>{const{type:t,predicate:n,effect:r}=Bg(e);return{id:Ug(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Fi(22))}}},{withTypes:()=>Hg}),Vg=Object.assign(zi(`${Ku}/add`),{withTypes:()=>Vg});zi(`${Ku}/removeAll`);var Wg=Object.assign(zi(`${Ku}/remove`),{withTypes:()=>Wg});function Fi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Kg=Fg({reducer:{task:$p,auth:Bp,note:Vp,project:Zp,projectTask:Jp},middleware:e=>e().concat(oh)});El.createRoot(document.getElementById("root")).render(p.jsx(Sv,{store:Kg,children:p.jsx(sg,{})})); diff --git a/assets/index-_Fsr61--.js b/assets/index-_Fsr61--.js deleted file mode 100644 index 6939652..0000000 --- a/assets/index-_Fsr61--.js +++ /dev/null @@ -1,80 +0,0 @@ -function sh(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function uh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zc={exports:{}},ui={},Mc={exports:{}},A={};/** - * @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 Ir=Symbol.for("react.element"),ah=Symbol.for("react.portal"),ch=Symbol.for("react.fragment"),fh=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),ph=Symbol.for("react.provider"),hh=Symbol.for("react.context"),mh=Symbol.for("react.forward_ref"),yh=Symbol.for("react.suspense"),vh=Symbol.for("react.memo"),gh=Symbol.for("react.lazy"),Ju=Symbol.iterator;function wh(e){return e===null||typeof e!="object"?null:(e=Ju&&e[Ju]||e["@@iterator"],typeof e=="function"?e:null)}var Fc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ic=Object.assign,Uc={};function In(e,t,n){this.props=e,this.context=t,this.refs=Uc,this.updater=n||Fc}In.prototype.isReactComponent={};In.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")};In.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $c(){}$c.prototype=In.prototype;function Rs(e,t,n){this.props=e,this.context=t,this.refs=Uc,this.updater=n||Fc}var Os=Rs.prototype=new $c;Os.constructor=Rs;Ic(Os,In.prototype);Os.isPureReactComponent=!0;var qu=Array.isArray,Bc=Object.prototype.hasOwnProperty,Ls={current:null},Hc={key:!0,ref:!0,__self:!0,__source:!0};function Wc(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Bc.call(t,r)&&!Hc.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,ee=P[q];if(0>>1;qo($i,L))Bto(Yr,$i)?(P[q]=Yr,P[Bt]=L,q=Bt):(P[q]=$i,P[$t]=L,q=$t);else if(Bto(Yr,L))P[q]=Yr,P[Bt]=L,q=Bt;else break e}}return O}function o(P,O){var L=P.sortIndex-O.sortIndex;return L!==0?L:P.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],f=1,c=null,g=3,w=!1,d=!1,m=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(P){for(var O=n(a);O!==null;){if(O.callback===null)r(a);else if(O.startTime<=P)r(a),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(a)}}function E(P){if(m=!1,v(P),!d)if(n(u)!==null)d=!0,Ii(_);else{var O=n(a);O!==null&&Ui(E,O.startTime-P)}}function _(P,O){d=!1,m&&(m=!1,y(R),R=-1),w=!0;var L=g;try{for(v(O),c=n(u);c!==null&&(!(c.expirationTime>O)||P&&!Ie());){var q=c.callback;if(typeof q=="function"){c.callback=null,g=c.priorityLevel;var ee=q(c.expirationTime<=O);O=e.unstable_now(),typeof ee=="function"?c.callback=ee:c===n(u)&&r(u),v(O)}else r(u);c=n(u)}if(c!==null)var Xr=!0;else{var $t=n(a);$t!==null&&Ui(E,$t.startTime-O),Xr=!1}return Xr}finally{c=null,g=L,w=!1}}var N=!1,T=null,R=-1,J=5,z=-1;function Ie(){return!(e.unstable_now()-zP||125q?(P.sortIndex=L,t(a,P),n(u)===null&&P===n(a)&&(m?(y(R),R=-1):m=!0,Ui(E,L-q))):(P.sortIndex=ee,t(u,P),d||w||(d=!0,Ii(_))),P},e.unstable_shouldYield=Ie,e.unstable_wrapCallback=function(P){var O=g;return function(){var L=g;g=O;try{return P.apply(this,arguments)}finally{g=L}}}})(Gc);qc.exports=Gc;var Rh=qc.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 Oh=k,Ce=Rh;function C(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"),Cl=Object.prototype.hasOwnProperty,Lh=/^[: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]*$/,Xu={},Yu={};function Dh(e){return Cl.call(Yu,e)?!0:Cl.call(Xu,e)?!1:Lh.test(e)?Yu[e]=!0:(Xu[e]=!0,!1)}function Ah(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zh(e,t,n,r){if(t===null||typeof t>"u"||Ah(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 he(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new he(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){le[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var As=/[\-:]([a-z])/g;function zs(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(As,zs);le[t]=new he(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(As,zs);le[t]=new he(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(As,zs);le[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ms(e,t,n,r){var o=le.hasOwnProperty(t)?le[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var u=` -`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{Wi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?er(e):""}function Mh(e){switch(e.tag){case 5:return er(e.type);case 16:return er("Lazy");case 13:return er("Suspense");case 19:return er("SuspenseList");case 0:case 2:case 15:return e=Vi(e.type,!1),e;case 11:return e=Vi(e.type.render,!1),e;case 1:return e=Vi(e.type,!0),e;default:return""}}function Nl(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 fn:return"Fragment";case cn:return"Portal";case _l:return"Profiler";case Fs:return"StrictMode";case jl:return"Suspense";case Pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zc:return(e.displayName||"Context")+".Consumer";case Yc:return(e._context.displayName||"Context")+".Provider";case Is:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Us:return t=e.displayName||null,t!==null?t:Nl(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return Nl(e(t))}catch{}}return null}function Fh(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 Nl(t);case 8:return t===Fs?"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 Ot(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ef(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ih(e){var t=ef(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=Ih(e))}function tf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ef(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Oo(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 Tl(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ot(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 nf(e,t){t=t.checked,t!=null&&Ms(e,"checked",t,!1)}function Rl(e,t){nf(e,t);var n=Ot(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")?Ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ol(e,t.type,Ot(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ea(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 Ol(e,t,n){(t!=="number"||Oo(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tr=Array.isArray;function En(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=to.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 ir={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},Uh=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(e){Uh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});function sf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function uf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=sf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var $h=K({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 Al(e,t){if(t){if($h[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function zl(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 Ml=null;function $s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,kn=null,Cn=null;function ra(e){if(e=Br(e)){if(typeof Fl!="function")throw Error(C(280));var t=e.stateNode;t&&(t=pi(t),Fl(e.stateNode,e.type,t))}}function af(e){kn?Cn?Cn.push(e):Cn=[e]:kn=e}function cf(){if(kn){var e=kn,t=Cn;if(Cn=kn=null,ra(e),t)for(e=0;e>>=0,e===0?32:31-(Yh(e)/Zh|0)|0}var no=64,ro=4194304;function nr(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 zo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=nr(s):(i&=l,i!==0&&(r=nr(i)))}else l=n&~o,l!==0?r=nr(l):i!==0&&(r=nr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===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 Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ve(t),e[t]=n}function nm(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=sr),da=" ",pa=!1;function Rf(e,t){switch(e){case"keyup":return Rm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dn=!1;function Lm(e,t){switch(e){case"compositionend":return Of(t);case"keypress":return t.which!==32?null:(pa=!0,da);case"textInput":return e=t.data,e===da&&pa?null:e;default:return null}}function Dm(e,t){if(dn)return e==="compositionend"||!qs&&Rf(e,t)?(e=Nf(),So=Ks=wt=null,dn=!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=va(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mf(){for(var e=window,t=Oo();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oo(e.document)}return t}function Gs(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 Hm(e){var t=Mf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&zf(n.ownerDocument.documentElement,n)){if(r!==null&&Gs(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ga(n,i);var l=ga(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,pn=null,Wl=null,ar=null,Vl=!1;function wa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vl||pn==null||pn!==Oo(r)||(r=pn,"selectionStart"in r&&Gs(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&&Er(ar,r)||(ar=r,r=Io(Wl,"onSelect"),0yn||(e.current=Xl[yn],Xl[yn]=null,yn--)}function U(e,t){yn++,Xl[yn]=e.current,e.current=t}var Lt={},ce=zt(Lt),ve=zt(!1),Yt=Lt;function Tn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ge(e){return e=e.childContextTypes,e!=null}function $o(){B(ve),B(ce)}function ja(e,t,n){if(ce.current!==Lt)throw Error(C(168));U(ce,t),U(ve,n)}function Kf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,Fh(e)||"Unknown",o));return K({},n,r)}function Bo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Yt=ce.current,U(ce,e),U(ve,ve.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=Kf(e,t,Yt),r.__reactInternalMemoizedMergedChildContext=e,B(ve),B(ce),U(ce,e)):B(ve),U(ve,n)}var tt=null,hi=!1,ol=!1;function Qf(e){tt===null?tt=[e]:tt.push(e)}function ey(e){hi=!0,Qf(e)}function Mt(){if(!ol&&tt!==null){ol=!0;var e=0,t=I;try{var n=tt;for(I=1;e>=l,o-=l,nt=1<<32-Ve(t)+o|n<R?(J=T,T=null):J=T.sibling;var z=g(y,T,v[R],E);if(z===null){T===null&&(T=J);break}e&&T&&z.alternate===null&&t(y,T),p=i(z,p,R),N===null?_=z:N.sibling=z,N=z,T=J}if(R===v.length)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;RR?(J=T,T=null):J=T.sibling;var Ie=g(y,T,z.value,E);if(Ie===null){T===null&&(T=J);break}e&&T&&Ie.alternate===null&&t(y,T),p=i(Ie,p,R),N===null?_=Ie:N.sibling=Ie,N=Ie,T=J}if(z.done)return n(y,T),H&&Ht(y,R),_;if(T===null){for(;!z.done;R++,z=v.next())z=c(y,z.value,E),z!==null&&(p=i(z,p,R),N===null?_=z:N.sibling=z,N=z);return H&&Ht(y,R),_}for(T=r(y,T);!z.done;R++,z=v.next())z=w(T,y,R,z.value,E),z!==null&&(e&&z.alternate!==null&&T.delete(z.key===null?R:z.key),p=i(z,p,R),N===null?_=z:N.sibling=z,N=z);return e&&T.forEach(function(Wn){return t(y,Wn)}),H&&Ht(y,R),_}function S(y,p,v,E){if(typeof v=="object"&&v!==null&&v.type===fn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case br:e:{for(var _=v.key,N=p;N!==null;){if(N.key===_){if(_=v.type,_===fn){if(N.tag===7){n(y,N.sibling),p=o(N,v.props.children),p.return=y,y=p;break e}}else if(N.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===mt&&Ra(_)===N.type){n(y,N.sibling),p=o(N,v.props),p.ref=Xn(y,N,v),p.return=y,y=p;break e}n(y,N);break}else t(y,N);N=N.sibling}v.type===fn?(p=Gt(v.props.children,y.mode,E,v.key),p.return=y,y=p):(E=No(v.type,v.key,v.props,null,y.mode,E),E.ref=Xn(y,p,v),E.return=y,y=E)}return l(y);case cn:e:{for(N=v.key;p!==null;){if(p.key===N)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(y,p.sibling),p=o(p,v.children||[]),p.return=y,y=p;break e}else{n(y,p);break}else t(y,p);p=p.sibling}p=dl(v,y.mode,E),p.return=y,y=p}return l(y);case mt:return N=v._init,S(y,p,N(v._payload),E)}if(tr(v))return d(y,p,v,E);if(Kn(v))return m(y,p,v,E);co(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(y,p.sibling),p=o(p,v),p.return=y,y=p):(n(y,p),p=fl(v,y.mode,E),p.return=y,y=p),l(y)):n(y,p)}return S}var On=Xf(!0),Yf=Xf(!1),Vo=zt(null),Ko=null,wn=null,bs=null;function eu(){bs=wn=Ko=null}function tu(e){var t=Vo.current;B(Vo),e._currentValue=t}function bl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function jn(e,t){Ko=e,bs=wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ye=!0),e.firstContext=null)}function Me(e){var t=e._currentValue;if(bs!==e)if(e={context:e,memoizedValue:t,next:null},wn===null){if(Ko===null)throw Error(C(308));wn=e,Ko.dependencies={lanes:0,firstContext:e}}else wn=wn.next=e;return t}var Qt=null;function nu(e){Qt===null?Qt=[e]:Qt.push(e)}function Zf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nu(t)):(n.next=o.next,o.next=n),t.interleaved=n,st(e,r)}function st(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var yt=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,F&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,st(e,n)}return o=r.interleaved,o===null?(t.next=t,nu(r)):(t.next=o.next,o.next=t),r.interleaved=t,st(e,n)}function Eo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hs(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qo(e,t,n,r){var o=e.updateQueue;yt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;l=0,f=a=u=null,s=i;do{var g=s.lane,w=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var d=e,m=s;switch(g=t,w=n,m.tag){case 1:if(d=m.payload,typeof d=="function"){c=d.call(w,c,g);break e}c=d;break e;case 3:d.flags=d.flags&-65537|128;case 0:if(d=m.payload,g=typeof d=="function"?d.call(w,c,g):d,g==null)break e;c=K({},c,g);break e;case 2:yt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else w={eventTime:w,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=w,u=c):f=f.next=w,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(u=c),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);en|=l,e.lanes=l,e.memoizedState=c}}function La(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{I=n,ll.transition=r}}function yd(){return Fe().memoizedState}function oy(e,t,n){var r=Nt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vd(e))gd(t,n);else if(n=Zf(e,t,n,r),n!==null){var o=de();Ke(n,e,r,o),wd(n,t,r)}}function iy(e,t,n){var r=Nt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vd(e))gd(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Qe(s,l)){var u=t.interleaved;u===null?(o.next=o,nu(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Zf(e,t,o,r),n!==null&&(o=de(),Ke(n,e,r,o),wd(n,t,r))}}function vd(e){var t=e.alternate;return e===V||t!==null&&t===V}function gd(e,t){cr=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hs(e,n)}}var Go={readContext:Me,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useInsertionEffect:se,useLayoutEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useMutableSource:se,useSyncExternalStore:se,useId:se,unstable_isNewReconciler:!1},ly={readContext:Me,useCallback:function(e,t){return qe().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Co(4194308,4,fd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Co(4194308,4,e,t)},useInsertionEffect:function(e,t){return Co(4,2,e,t)},useMemo:function(e,t){var n=qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qe();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=oy.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=qe();return e={current:e},t.memoizedState=e},useState:Da,useDebugValue:fu,useDeferredValue:function(e){return qe().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=ry.bind(null,e[1]),qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,o=qe();if(H){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ne===null)throw Error(C(349));bt&30||rd(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Aa(id.bind(null,r,i,e),[e]),r.flags|=2048,Rr(9,od.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qe(),t=ne.identifierPrefix;if(H){var n=rt,r=nt;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ge]=t,e[_r]=r,Td(e,t,!1,!1),t.stateNode=e;e:{switch(l=zl(n,r),n){case"dialog":$("cancel",e),$("close",e),o=r;break;case"iframe":case"object":case"embed":$("load",e),o=r;break;case"video":case"audio":for(o=0;oAn&&(t.flags|=128,r=!0,Yn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Jo(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Yn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!H)return ue(t),null}else 2*G()-i.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,Yn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=G(),t.sibling=null,n=W.current,U(W,r?n&1|2:n&1),t):(ue(t),null);case 22:case 23:return vu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Se&1073741824&&(ue(t),t.subtreeFlags&6&&(t.flags|=8192)):ue(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function hy(e,t){switch(Ys(t),t.tag){case 1:return ge(t.type)&&$o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(),B(ve),B(ce),lu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iu(t),null;case 13:if(B(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Rn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(W),null;case 4:return Ln(),null;case 10:return tu(t.type._context),null;case 22:case 23:return vu(),null;case 24:return null;default:return null}}var po=!1,ae=!1,my=typeof WeakSet=="function"?WeakSet:Set,j=null;function Sn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function us(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Ka=!1;function yy(e,t){if(Kl=Mo,e=Mf(),Gs(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,c=e,g=null;t:for(;;){for(var w;c!==n||o!==0&&c.nodeType!==3||(s=l+o),c!==i||r!==0&&c.nodeType!==3||(u=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(w=c.firstChild)!==null;)g=c,c=w;for(;;){if(c===e)break t;if(g===n&&++a===o&&(s=l),g===i&&++f===r&&(u=l),(w=c.nextSibling)!==null)break;c=g,g=c.parentNode}c=w}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ql={focusedElem:e,selectionRange:n},Mo=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var d=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(d!==null){var m=d.memoizedProps,S=d.memoizedState,y=t.stateNode,p=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:$e(t.type,m),S);y.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(E){Q(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return d=Ka,Ka=!1,d}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&us(t,n,i)}o=o.next}while(o!==r)}}function vi(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 as(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 Ld(e){var t=e.alternate;t!==null&&(e.alternate=null,Ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ge],delete t[_r],delete t[Gl],delete t[Zm],delete t[bm])),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 Dd(e){return e.tag===5||e.tag===3||e.tag===4}function Qa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dd(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 cs(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=Uo));else if(r!==4&&(e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function fs(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(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}var oe=null,Be=!1;function dt(e,t,n){for(n=n.child;n!==null;)Ad(e,t,n),n=n.sibling}function Ad(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(ai,n)}catch{}switch(n.tag){case 5:ae||Sn(n,t);case 6:var r=oe,o=Be;oe=null,dt(e,t,n),oe=r,Be=o,oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(Be?(e=oe,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),Sr(e)):rl(oe,n.stateNode));break;case 4:r=oe,o=Be,oe=n.stateNode.containerInfo,Be=!0,dt(e,t,n),oe=r,Be=o;break;case 0:case 11:case 14:case 15:if(!ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&us(n,t,l),o=o.next}while(o!==r)}dt(e,t,n);break;case 1:if(!ae&&(Sn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,t,s)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(ae=(r=ae)||n.memoizedState!==null,dt(e,t,n),ae=r):dt(e,t,n);break;default:dt(e,t,n)}}function Ja(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new my),t.forEach(function(r){var o=_y.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gy(r/1960))-r,10e?16:e,St===null)var r=!1;else{if(e=St,St=null,Zo=0,F&6)throw Error(C(331));var o=F;for(F|=4,j=e.current;j!==null;){var i=j,l=i.child;if(j.flags&16){var s=i.deletions;if(s!==null){for(var u=0;uG()-mu?qt(e,0):hu|=n),we(e,t)}function Hd(e,t){t===0&&(e.mode&1?(t=ro,ro<<=1,!(ro&130023424)&&(ro=4194304)):t=1);var n=de();e=st(e,t),e!==null&&(Ur(e,t,n),we(e,n))}function Cy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hd(e,n)}function _y(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),Hd(e,n)}var Wd;Wd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ve.current)ye=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ye=!1,dy(e,t,n);ye=!!(e.flags&131072)}else ye=!1,H&&t.flags&1048576&&Jf(t,Wo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_o(e,t),e=t.pendingProps;var o=Tn(t,ce.current);jn(t,n),o=uu(null,t,r,e,o,n);var i=au();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ge(r)?(i=!0,Bo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ru(t),o.updater=yi,t.stateNode=o,o._reactInternals=t,ts(t,r,e,n),t=os(null,t,r,!0,i,n)):(t.tag=0,H&&i&&Xs(t),fe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_o(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Py(r),e=$e(r,e),o){case 0:t=rs(null,t,r,e,n);break e;case 1:t=Ha(null,t,r,e,n);break e;case 11:t=$a(null,t,r,e,n);break e;case 14:t=Ba(null,t,r,$e(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),rs(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),Ha(e,t,r,o,n);case 3:e:{if(jd(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,o=i.element,bf(e,t),Qo(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Dn(Error(C(423)),t),t=Wa(e,t,r,n,o);break e}else if(r!==o){o=Dn(Error(C(424)),t),t=Wa(e,t,r,n,o);break e}else for(xe=_t(t.stateNode.containerInfo.firstChild),ke=t,H=!0,He=null,n=Yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rn(),r===o){t=ut(e,t,n);break e}fe(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Zl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Jl(r,o)?l=null:i!==null&&Jl(r,i)&&(t.flags|=32),_d(e,t),fe(e,t,l,n),t.child;case 6:return e===null&&Zl(t),null;case 13:return Pd(e,t,n);case 4:return ou(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):fe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),$a(e,t,r,o,n);case 7:return fe(e,t,t.pendingProps,n),t.child;case 8:return fe(e,t,t.pendingProps.children,n),t.child;case 12:return fe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,U(Vo,r._currentValue),r._currentValue=l,i!==null)if(Qe(i.value,l)){if(i.children===o.children&&!ve.current){t=ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=ot(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bl(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(C(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),bl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}fe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jn(t,n),o=Me(o),r=r(o),t.flags|=1,fe(e,t,r,n),t.child;case 14:return r=t.type,o=$e(r,t.pendingProps),o=$e(r.type,o),Ba(e,t,r,o,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:$e(r,o),_o(e,t),t.tag=1,ge(r)?(e=!0,Bo(t)):e=!1,jn(t,n),Sd(t,r,o),ts(t,r,o,n),os(null,t,r,!0,e,n);case 19:return Nd(e,t,n);case 22:return Cd(e,t,n)}throw Error(C(156,t.tag))};function Vd(e,t){return vf(e,t)}function jy(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 Oe(e,t,n,r){return new jy(e,t,n,r)}function wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Py(e){if(typeof e=="function")return wu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Is)return 11;if(e===Us)return 14}return 2}function Tt(e,t){var n=e.alternate;return n===null?(n=Oe(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 No(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")wu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fn:return Gt(n.children,o,i,t);case Fs:l=8,o|=8;break;case _l:return e=Oe(12,n,t,o|2),e.elementType=_l,e.lanes=i,e;case jl:return e=Oe(13,n,t,o),e.elementType=jl,e.lanes=i,e;case Pl:return e=Oe(19,n,t,o),e.elementType=Pl,e.lanes=i,e;case bc:return wi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yc:l=10;break e;case Zc:l=9;break e;case Is:l=11;break e;case Us:l=14;break e;case mt:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Oe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Gt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function wi(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=bc,e.lanes=n,e.stateNode={isHidden:!1},e}function fl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function dl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ny(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=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=o,this.mutableSourceEagerHydrationData=null}function Su(e,t,n,r,o,i,l,s,u){return e=new Ny(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ru(i),e}function Ty(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qd)}catch(e){console.error(e)}}qd(),Jc.exports=Pe;var Ay=Jc.exports,tc=Ay;kl.createRoot=tc.createRoot,kl.hydrateRoot=tc.hydrateRoot;/** - * @remix-run/router v1.16.0 - * - * 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 Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Cu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function My(){return Math.random().toString(36).substr(2,8)}function rc(e,t){return{usr:e.state,key:e.key,idx:t}}function ys(e,t,n,r){return n===void 0&&(n=null),Lr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?un(t):t,{state:n,key:t&&t.key||r||My()})}function ti(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 un(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 Fy(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=xt.Pop,u=null,a=f();a==null&&(a=0,l.replaceState(Lr({},l.state,{idx:a}),""));function f(){return(l.state||{idx:null}).idx}function c(){s=xt.Pop;let S=f(),y=S==null?null:S-a;a=S,u&&u({action:s,location:m.location,delta:y})}function g(S,y){s=xt.Push;let p=ys(m.location,S,y);n&&n(p,S),a=f()+1;let v=rc(p,a),E=m.createHref(p);try{l.pushState(v,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(E)}i&&u&&u({action:s,location:m.location,delta:1})}function w(S,y){s=xt.Replace;let p=ys(m.location,S,y);n&&n(p,S),a=f();let v=rc(p,a),E=m.createHref(p);l.replaceState(v,"",E),i&&u&&u({action:s,location:m.location,delta:0})}function d(S){let y=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof S=="string"?S:ti(S);return p=p.replace(/ $/,"%20"),X(y,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,y)}let m={get action(){return s},get location(){return e(o,l)},listen(S){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(nc,c),u=S,()=>{o.removeEventListener(nc,c),u=null}},createHref(S){return t(o,S)},createURL:d,encodeLocation(S){let y=d(S);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:g,replace:w,go(S){return l.go(S)}};return m}var oc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(oc||(oc={}));function Iy(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?un(t):t,o=_u(r.pathname||"/",n);if(o==null)return null;let i=Gd(e);Uy(i);let l=null;for(let s=0;l==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};u.relativePath.startsWith("/")&&(X(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 a=Rt([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(X(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),Gd(i.children,t,f,a)),!(i.path==null&&!i.index)&&t.push({path:a,score:Qy(a,i.index),routesMeta:f})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let u of Xd(i.path))o(i,l,u)}),t}function Xd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=Xd(r.join("/")),s=[];return s.push(...l.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...l),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Uy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Jy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const $y=/^:[\w-]+$/,By=3,Hy=2,Wy=1,Vy=10,Ky=-2,ic=e=>e==="*";function Qy(e,t){let n=e.split("/"),r=n.length;return n.some(ic)&&(r+=Ky),t&&(r+=Hy),n.filter(o=>!ic(o)).reduce((o,i)=>o+($y.test(i)?By:i===""?Wy:Vy),r)}function Jy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function qy(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:g,isOptional:w}=f;if(g==="*"){let m=s[c]||"";l=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const d=s[c];return w&&!d?a[g]=void 0:a[g]=(d||"").replace(/%2F/g,"/"),a},{}),pathname:i,pathnameBase:l,pattern:e}}function Xy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Cu(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Yy(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cu(!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 _u(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 Zy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?un(e):e;return{pathname:n?n.startsWith("/")?n:by(n,t):t,search:nv(r),hash:rv(o)}}function by(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pl(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 ev(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ju(e,t){let n=ev(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Pu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=un(e):(o=Lr({},e),X(!o.pathname||!o.pathname.includes("?"),pl("?","pathname","search",o)),X(!o.pathname||!o.pathname.includes("#"),pl("#","pathname","hash",o)),X(!o.search||!o.search.includes("#"),pl("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),c-=1;o.pathname=g.join("/")}s=c>=0?t[c]:"/"}let u=Zy(o,s),a=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||f)&&(u.pathname+="/"),u}const Rt=e=>e.join("/").replace(/\/\/+/g,"/"),tv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function ov(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Yd=["post","put","patch","delete"];new Set(Yd);const iv=["get",...Yd];new Set(iv);/** - * React Router v6.23.0 - * - * 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 Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),k.useCallback(function(a,f){if(f===void 0&&(f={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let c=Pu(a,JSON.parse(l),i,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Rt([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,l,i,e])}function ep(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Ft),{matches:o}=k.useContext(It),{pathname:i}=ct(),l=JSON.stringify(ju(o,r.v7_relativeSplatPath));return k.useMemo(()=>Pu(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function av(e,t){return cv(e,t)}function cv(e,t,n,r){Bn()||X(!1);let{navigator:o}=k.useContext(Ft),{matches:i}=k.useContext(It),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let a=ct(),f;if(t){var c;let S=typeof t=="string"?un(t):t;u==="/"||(c=S.pathname)!=null&&c.startsWith(u)||X(!1),f=S}else f=a;let g=f.pathname||"/",w=g;if(u!=="/"){let S=u.replace(/^\//,"").split("/");w="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let d=Iy(e,{pathname:w}),m=mv(d&&d.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Rt([u,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Rt([u,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&m?k.createElement(Ci.Provider,{value:{location:Dr({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xt.Pop}},m):m}function fv(){let e=wv(),t=ov(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:o},n):null,null)}const dv=k.createElement(fv,null);class pv extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(It.Provider,{value:this.props.routeContext},k.createElement(Zd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hv(e){let{routeContext:t,match:n,children:r}=e,o=k.useContext(Nu);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(It.Provider,{value:t},r)}function mv(e,t,n,r){var o;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 l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=l.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||X(!1),l=l.slice(0,Math.min(l.length,f+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?l=l.slice(0,a+1):l=[l[0]];break}}}return l.reduceRight((f,c,g)=>{let w,d=!1,m=null,S=null;n&&(w=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||dv,u&&(a<0&&g===0?(d=!0,S=null):a===g&&(d=!0,S=c.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,g+1)),p=()=>{let v;return w?v=m:d?v=S:c.route.Component?v=k.createElement(c.route.Component,null):c.route.element?v=c.route.element:v=f,k.createElement(hv,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:v})};return n&&(c.route.ErrorBoundary||c.route.errorElement||g===0)?k.createElement(pv,{location:n.location,revalidation:n.revalidation,component:m,error:w,children:p(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):p()},null)}var tp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(tp||{}),ni=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}(ni||{});function yv(e){let t=k.useContext(Nu);return t||X(!1),t}function vv(e){let t=k.useContext(lv);return t||X(!1),t}function gv(e){let t=k.useContext(It);return t||X(!1),t}function np(e){let t=gv(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function wv(){var e;let t=k.useContext(Zd),n=vv(ni.UseRouteError),r=np(ni.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Sv(){let{router:e}=yv(tp.UseNavigateStable),t=np(ni.UseNavigateStable),n=k.useRef(!1);return bd(()=>{n.current=!0}),k.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Dr({fromRouteId:t},i)))},[e,t])}function xv(e){let{to:t,replace:n,state:r,relative:o}=e;Bn()||X(!1);let{future:i,static:l}=k.useContext(Ft),{matches:s}=k.useContext(It),{pathname:u}=ct(),a=Ut(),f=Pu(t,ju(s,i.v7_relativeSplatPath),u,o==="path"),c=JSON.stringify(f);return k.useEffect(()=>a(JSON.parse(c),{replace:n,state:r,relative:o}),[a,c,o,n,r]),null}function ht(e){X(!1)}function Ev(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xt.Pop,navigator:i,static:l=!1,future:s}=e;Bn()&&X(!1);let u=t.replace(/^\/*/,"/"),a=k.useMemo(()=>({basename:u,navigator:i,static:l,future:Dr({v7_relativeSplatPath:!1},s)}),[u,s,i,l]);typeof r=="string"&&(r=un(r));let{pathname:f="/",search:c="",hash:g="",state:w=null,key:d="default"}=r,m=k.useMemo(()=>{let S=_u(f,u);return S==null?null:{location:{pathname:S,search:c,hash:g,state:w,key:d},navigationType:o}},[u,f,c,g,w,d,o]);return m==null?null:k.createElement(Ft.Provider,{value:a},k.createElement(Ci.Provider,{children:n,value:m}))}function kv(e){let{children:t,location:n}=e;return av(vs(t),n)}new Promise(()=>{});function vs(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,o)=>{if(!k.isValidElement(r))return;let i=[...t,o];if(r.type===k.Fragment){n.push.apply(n,vs(r.props.children,i));return}r.type!==ht&&X(!1),!r.props.index||!r.props.children||X(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=vs(r.props.children,i)),n.push(l)}),n}/** - * React Router DOM v6.23.0 - * - * 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 gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function _v(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jv(e,t){return e.button===0&&(!t||t==="_self")&&!_v(e)}const Pv=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Nv="6";try{window.__reactRouterVersion=Nv}catch{}const Tv="startTransition",lc=El[Tv];function Rv(e){let{basename:t,children:n,future:r,window:o}=e,i=k.useRef();i.current==null&&(i.current=zy({window:o,v5Compat:!0}));let l=i.current,[s,u]=k.useState({action:l.action,location:l.location}),{v7_startTransition:a}=r||{},f=k.useCallback(c=>{a&&lc?lc(()=>u(c)):u(c)},[u,a]);return k.useLayoutEffect(()=>l.listen(f),[l,f]),k.createElement(Ev,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}const Ov=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hr=k.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:s,target:u,to:a,preventScrollReset:f,unstable_viewTransition:c}=t,g=Cv(t,Pv),{basename:w}=k.useContext(Ft),d,m=!1;if(typeof a=="string"&&Lv.test(a)&&(d=a,Ov))try{let v=new URL(window.location.href),E=a.startsWith("//")?new URL(v.protocol+a):new URL(a),_=_u(E.pathname,w);E.origin===v.origin&&_!=null?a=_+E.search+E.hash:m=!0}catch{}let S=sv(a,{relative:o}),y=Dv(a,{replace:l,state:s,target:u,preventScrollReset:f,relative:o,unstable_viewTransition:c});function p(v){r&&r(v),v.defaultPrevented||y(v)}return k.createElement("a",gs({},g,{href:d||S,onClick:m||i?r:p,ref:n,target:u}))});var sc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(sc||(sc={}));var uc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(uc||(uc={}));function Dv(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s}=t===void 0?{}:t,u=Ut(),a=ct(),f=ep(e,{relative:l});return k.useCallback(c=>{if(jv(c,n)){c.preventDefault();let g=r!==void 0?r:ti(a)===ti(f);u(e,{replace:g,state:o,preventScrollReset:i,relative:l,unstable_viewTransition:s})}},[a,u,f,r,o,n,e,i,l,s])}function rp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Av}=Object.prototype,{getPrototypeOf:Tu}=Object,_i=(e=>t=>{const n=Av.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),be=e=>(e=e.toLowerCase(),t=>_i(t)===e),ji=e=>t=>typeof t===e,{isArray:Hn}=Array,Ar=ji("undefined");function zv(e){return e!==null&&!Ar(e)&&e.constructor!==null&&!Ar(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const op=be("ArrayBuffer");function Mv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&op(e.buffer),t}const Fv=ji("string"),De=ji("function"),ip=ji("number"),Pi=e=>e!==null&&typeof e=="object",Iv=e=>e===!0||e===!1,To=e=>{if(_i(e)!=="object")return!1;const t=Tu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Uv=be("Date"),$v=be("File"),Bv=be("Blob"),Hv=be("FileList"),Wv=e=>Pi(e)&&De(e.pipe),Vv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||De(e.append)&&((t=_i(e))==="formdata"||t==="object"&&De(e.toString)&&e.toString()==="[object FormData]"))},Kv=be("URLSearchParams"),Qv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Hn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const sp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,up=e=>!Ar(e)&&e!==sp;function ws(){const{caseless:e}=up(this)&&this||{},t={},n=(r,o)=>{const i=e&&lp(t,o)||o;To(t[i])&&To(r)?t[i]=ws(t[i],r):To(r)?t[i]=ws({},r):Hn(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Wr(t,(o,i)=>{n&&De(o)?e[i]=rp(o,n):e[i]=o},{allOwnKeys:r}),e),qv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Xv=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Tu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Yv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Zv=e=>{if(!e)return null;if(Hn(e))return e;let t=e.length;if(!ip(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tu(Uint8Array)),e0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},t0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},n0=be("HTMLFormElement"),r0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ac=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),o0=be("RegExp"),ap=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wr(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},i0=e=>{ap(e,(t,n)=>{if(De(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(De(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},l0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Hn(e)?r(e):r(String(e).split(t)),n},s0=()=>{},u0=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hl="abcdefghijklmnopqrstuvwxyz",cc="0123456789",cp={DIGIT:cc,ALPHA:hl,ALPHA_DIGIT:hl+hl.toUpperCase()+cc},a0=(e=16,t=cp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function c0(e){return!!(e&&De(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const f0=e=>{const t=new Array(10),n=(r,o)=>{if(Pi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Hn(r)?[]:{};return Wr(r,(l,s)=>{const u=n(l,o+1);!Ar(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},d0=be("AsyncFunction"),p0=e=>e&&(Pi(e)||De(e))&&De(e.then)&&De(e.catch),x={isArray:Hn,isArrayBuffer:op,isBuffer:zv,isFormData:Vv,isArrayBufferView:Mv,isString:Fv,isNumber:ip,isBoolean:Iv,isObject:Pi,isPlainObject:To,isUndefined:Ar,isDate:Uv,isFile:$v,isBlob:Bv,isRegExp:o0,isFunction:De,isStream:Wv,isURLSearchParams:Kv,isTypedArray:bv,isFileList:Hv,forEach:Wr,merge:ws,extend:Jv,trim:Qv,stripBOM:qv,inherits:Gv,toFlatObject:Xv,kindOf:_i,kindOfTest:be,endsWith:Yv,toArray:Zv,forEachEntry:e0,matchAll:t0,isHTMLForm:n0,hasOwnProperty:ac,hasOwnProp:ac,reduceDescriptors:ap,freezeMethods:i0,toObjectSet:l0,toCamelCase:r0,noop:s0,toFiniteNumber:u0,findKey:lp,global:sp,isContextDefined:up,ALPHABET:cp,generateString:a0,isSpecCompliantForm:c0,toJSONObject:f0,isAsyncFn:d0,isThenable:p0};function M(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fp=M.prototype,dp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dp[e]={value:e}});Object.defineProperties(M,dp);Object.defineProperty(fp,"isAxiosError",{value:!0});M.from=(e,t,n,r,o,i)=>{const l=Object.create(fp);return x.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),M.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const h0=null;function Ss(e){return x.isPlainObject(e)||x.isArray(e)}function pp(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function fc(e,t,n){return e?e.concat(t).map(function(o,i){return o=pp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function m0(e){return x.isArray(e)&&!e.some(Ss)}const y0=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function Ni(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,S){return!x.isUndefined(S[m])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(o))throw new TypeError("visitor must be a function");function a(d){if(d===null)return"";if(x.isDate(d))return d.toISOString();if(!u&&x.isBlob(d))throw new M("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(d)||x.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,S){let y=d;if(d&&!S&&typeof d=="object"){if(x.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(x.isArray(d)&&m0(d)||(x.isFileList(d)||x.endsWith(m,"[]"))&&(y=x.toArray(d)))return m=pp(m),y.forEach(function(v,E){!(x.isUndefined(v)||v===null)&&t.append(l===!0?fc([m],E,i):l===null?m:m+"[]",a(v))}),!1}return Ss(d)?!0:(t.append(fc(S,m,i),a(d)),!1)}const c=[],g=Object.assign(y0,{defaultVisitor:f,convertValue:a,isVisitable:Ss});function w(d,m){if(!x.isUndefined(d)){if(c.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(d),x.forEach(d,function(y,p){(!(x.isUndefined(y)||y===null)&&o.call(t,y,x.isString(p)?p.trim():p,m,g))===!0&&w(y,m?m.concat(p):[p])}),c.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return w(e),t}function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ru(e,t){this._pairs=[],e&&Ni(e,this,t)}const hp=Ru.prototype;hp.append=function(t,n){this._pairs.push([t,n])};hp.toString=function(t){const n=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function v0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mp(e,t,n){if(!t)return e;const r=n&&n.encode||v0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=x.isURLSearchParams(t)?t.toString():new Ru(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class pc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){x.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g0=typeof URLSearchParams<"u"?URLSearchParams:Ru,w0=typeof FormData<"u"?FormData:null,S0=typeof Blob<"u"?Blob:null,x0={isBrowser:!0,classes:{URLSearchParams:g0,FormData:w0,Blob:S0},protocols:["http","https","file","blob","url","data"]},vp=typeof window<"u"&&typeof document<"u",E0=(e=>vp&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),k0=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",C0=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vp,hasStandardBrowserEnv:E0,hasStandardBrowserWebWorkerEnv:k0},Symbol.toStringTag,{value:"Module"})),Xe={...C0,...x0};function _0(e,t){return Ni(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Xe.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function j0(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function P0(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&x.isArray(o)?o.length:l,u?(x.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!x.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&x.isArray(o[l])&&(o[l]=P0(o[l])),!s)}if(x.isFormData(e)&&x.isFunction(e.entries)){const n={};return x.forEachEntry(e,(r,o)=>{t(j0(r),o,n,0)}),n}return null}function N0(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vr={transitional:yp,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=x.isObject(t);if(i&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return o?JSON.stringify(gp(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _0(t,this.formSerializer).toString();if((s=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ni(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),N0(t)):t}],transformResponse:[function(t){const n=this.transitional||Vr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&x.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?M.from(s,M.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{Vr.headers[e]={}});const T0=x.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),R0=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&T0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},hc=Symbol("internals");function bn(e){return e&&String(e).trim().toLowerCase()}function Ro(e){return e===!1||e==null?e:x.isArray(e)?e.map(Ro):String(e)}function O0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const L0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ml(e,t,n,r,o){if(x.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function D0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function A0(e,t){const n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class Ae{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,u,a){const f=bn(u);if(!f)throw new Error("header name must be a non-empty string");const c=x.findKey(o,f);(!c||o[c]===void 0||a===!0||a===void 0&&o[c]!==!1)&&(o[c||u]=Ro(s))}const l=(s,u)=>x.forEach(s,(a,f)=>i(a,f,u));return x.isPlainObject(t)||t instanceof this.constructor?l(t,n):x.isString(t)&&(t=t.trim())&&!L0(t)?l(R0(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=bn(t),t){const r=x.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return O0(o);if(x.isFunction(n))return n.call(this,o,r);if(x.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=bn(t),t){const r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ml(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=bn(l),l){const s=x.findKey(r,l);s&&(!n||ml(r,r[s],s,n))&&(delete r[s],o=!0)}}return x.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ml(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return x.forEach(this,(o,i)=>{const l=x.findKey(r,i);if(l){n[l]=Ro(o),delete n[i];return}const s=t?D0(i):String(i).trim();s!==i&&delete n[i],n[s]=Ro(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return x.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&x.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[hc]=this[hc]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=bn(l);r[s]||(A0(o,l),r[s]=!0)}return x.isArray(t)?t.forEach(i):i(t),this}}Ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(Ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(Ae);function yl(e,t){const n=this||Vr,r=t||n,o=Ae.from(r.headers);let i=r.data;return x.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function wp(e){return!!(e&&e.__CANCEL__)}function Kr(e,t,n){M.call(this,e??"canceled",M.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(Kr,M,{__CANCEL__:!0});function z0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const M0=Xe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),x.isString(r)&&l.push("path="+r),x.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function F0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function I0(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sp(e,t){return e&&!F0(t)?I0(e,t):t}const U0=Xe.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=x.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function $0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function B0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),f=r[i];l||(l=a),n[o]=u,r[o]=a;let c=i,g=0;for(;c!==o;)g+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,u=r(s),a=i<=l;n=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const H0=typeof XMLHttpRequest<"u",W0=H0&&function(e){return new Promise(function(n,r){let o=e.data;const i=Ae.from(e.headers).normalize();let{responseType:l,withXSRFToken:s}=e,u;function a(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let f;if(x.isFormData(o)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[m,...S]=f?f.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...S].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+S))}const g=Sp(e.baseURL,e.url);c.open(e.method.toUpperCase(),mp(g,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function w(){if(!c)return;const m=Ae.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};z0(function(v){n(v),a()},function(v){r(v),a()},y),c=null}if("onloadend"in c?c.onloadend=w:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(w)},c.onabort=function(){c&&(r(new M("Request aborted",M.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||yp;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new M(S,y.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,e,c)),c=null},Xe.hasStandardBrowserEnv&&(s&&x.isFunction(s)&&(s=s(e)),s||s!==!1&&U0(g))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&M0.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&x.forEach(i.toJSON(),function(S,y){c.setRequestHeader(y,S)}),x.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",mc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",mc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=m=>{c&&(r(!m||m.type?new Kr(null,e,c):m),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=$0(g);if(d&&Xe.protocols.indexOf(d)===-1){r(new M("Unsupported protocol "+d+":",M.ERR_BAD_REQUEST,e));return}c.send(o||null)})},xs={http:h0,xhr:W0};x.forEach(xs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yc=e=>`- ${e}`,V0=e=>x.isFunction(e)||e===null||e===!1,xp={getAdapter:e=>{e=x.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : -`+i.map(yc).join(` -`):" "+yc(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:xs};function vl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kr(null,e)}function vc(e){return vl(e),e.headers=Ae.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xp.getAdapter(e.adapter||Vr.adapter)(e).then(function(r){return vl(e),r.data=yl.call(e,e.transformResponse,r),r.headers=Ae.from(r.headers),r},function(r){return wp(r)||(vl(e),r&&r.response&&(r.response.data=yl.call(e,e.transformResponse,r.response),r.response.headers=Ae.from(r.response.headers))),Promise.reject(r)})}const gc=e=>e instanceof Ae?{...e}:e;function zn(e,t){t=t||{};const n={};function r(a,f,c){return x.isPlainObject(a)&&x.isPlainObject(f)?x.merge.call({caseless:c},a,f):x.isPlainObject(f)?x.merge({},f):x.isArray(f)?f.slice():f}function o(a,f,c){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a,c)}else return r(a,f,c)}function i(a,f){if(!x.isUndefined(f))return r(void 0,f)}function l(a,f){if(x.isUndefined(f)){if(!x.isUndefined(a))return r(void 0,a)}else return r(void 0,f)}function s(a,f,c){if(c in t)return r(a,f);if(c in e)return r(void 0,a)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,f)=>o(gc(a),gc(f),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=u[f]||o,g=c(e[f],t[f],f);x.isUndefined(g)&&c!==s||(n[f]=g)}),n}const Ep="1.6.8",Ou={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ou[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wc={};Ou.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Ep+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new M(o(l," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!wc[l]&&(wc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function K0(e,t,n){if(typeof e!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new M("option "+i+" must be "+u,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Es={assertOptions:K0,validators:Ou},pt=Es.validators;class Xt{constructor(t){this.defaults=t,this.interceptors={request:new pc,response:new pc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=zn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Es.assertOptions(r,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(x.isFunction(o)?n.paramsSerializer={serialize:o}:Es.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&x.merge(i.common,i[n.method]);i&&x.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=Ae.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const a=[];this.interceptors.response.forEach(function(m){a.push(m.fulfilled,m.rejected)});let f,c=0,g;if(!u){const d=[vc.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,a),g=d.length,f=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Kr(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Lu(function(o){t=o}),cancel:t}}}function Q0(e){return function(n){return e.apply(null,n)}}function J0(e){return x.isObject(e)&&e.isAxiosError===!0}const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ks).forEach(([e,t])=>{ks[t]=e});function kp(e){const t=new Xt(e),n=rp(Xt.prototype.request,t);return x.extend(n,Xt.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return kp(zn(e,o))},n}const D=kp(Vr);D.Axios=Xt;D.CanceledError=Kr;D.CancelToken=Lu;D.isCancel=wp;D.VERSION=Ep;D.toFormData=Ni;D.AxiosError=M;D.Cancel=D.CanceledError;D.all=function(t){return Promise.all(t)};D.spread=Q0;D.isAxiosError=J0;D.mergeConfig=zn;D.AxiosHeaders=Ae;D.formToJSON=e=>gp(x.isHTMLForm(e)?new FormData(e):e);D.getAdapter=xp.getAdapter;D.HttpStatusCode=ks;D.default=D;class q0{constructor(){this.base="https://project-manager-jqsq.onrender.com/user",this.axios=D.create({withCredentials:!0})}getAll(t){return this.axios.get(`${this.base}/all?from=${t}`)}isLoggedIn(){return this.axios.get(`${this.base}/`)}signUp(t){return this.axios.post(`${this.base}/register`,t)}signIn(t){return this.axios.post(`${this.base}/login`,t)}signOut(){return this.axios.post(`${this.base}/logout`)}delete(){return this.axios.delete(`${this.base}/delete`)}}const Qr=new q0,Cp="SIGN_IN",_p="SIGN_UP",jp="SIGN_OUT",Pp="USER",Np="USERS",G0="DELETE",Mn="ERROR",Du=()=>async(e,t)=>{const n=t().auth.user,o=(await Qr.getAll(n.id)).data;e({type:Np,payload:o.map(i=>n.id!=i.id?i:{...i,name:"myself"})})},Au=()=>async e=>{const t=await Qr.isLoggedIn();t.data.message!=="success"?e({type:Mn,payload:t.data.message}):e({type:Pp,payload:t.data.user})},X0=e=>async t=>{const n=await Qr.signIn(e);n.data.message!=="success"?t({type:Mn,payload:n.data.message}):(t({type:Cp,payload:n.data}),await t(Au()))},Y0=e=>async t=>{e.name=="myself"&&t({type:Mn,payload:"'myself' can not be a username"});const n=await Qr.signUp(e);n.data.message!=="success"?t({type:Mn,payload:n.data.message}):(t({type:_p,payload:n.data}),await t(Au()))},Z0=()=>async e=>{const t=await Qr.signOut();t.data.message!=="success"?e({type:Mn,payload:t.data.message}):e({type:jp,payload:t.data})};var Tp={exports:{}},Rp={};/** - * @license React - * use-sync-external-store-with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Jr=k;function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eg=typeof Object.is=="function"?Object.is:b0,tg=Jr.useSyncExternalStore,ng=Jr.useRef,rg=Jr.useEffect,og=Jr.useMemo,ig=Jr.useDebugValue;Rp.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=ng(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=og(function(){function u(w){if(!a){if(a=!0,f=w,w=r(w),o!==void 0&&l.hasValue){var d=l.value;if(o(d,w))return c=d}return c=w}if(d=c,eg(f,w))return d;var m=r(w);return o!==void 0&&o(d,m)?d:(f=w,c=m)}var a=!1,f,c,g=n===void 0?null:n;return[function(){return u(t())},g===null?void 0:function(){return u(g())}]},[t,n,r,o]);var s=tg(e,i[0],i[1]);return rg(function(){l.hasValue=!0,l.value=s},[s]),ig(s),s};Tp.exports=Rp;var lg=Tp.exports,Ee="default"in El?Kc:El,Sc=Symbol.for("react-redux-context"),xc=typeof globalThis<"u"?globalThis:{};function sg(){if(!Ee.createContext)return{};const e=xc[Sc]??(xc[Sc]=new Map);let t=e.get(Ee.createContext);return t||(t=Ee.createContext(null),e.set(Ee.createContext,t)),t}var Dt=sg(),ug=()=>{throw new Error("uSES not initialized!")};function zu(e=Dt){return function(){return Ee.useContext(e)}}var Op=zu(),Lp=ug,ag=e=>{Lp=e},cg=(e,t)=>e===t;function fg(e=Dt){const t=e===Dt?Op:zu(e),n=(r,o={})=>{const{equalityFn:i=cg,devModeChecks:l={}}=typeof o=="function"?{equalityFn:o}:o,{store:s,subscription:u,getServerState:a,stabilityCheck:f,identityFunctionCheck:c}=t();Ee.useRef(!0);const g=Ee.useCallback({[r.name](d){return r(d)}}[r.name],[r,f,l.stabilityCheck]),w=Lp(u.addNestedSub,s.getState,a||s.getState,g,i);return Ee.useDebugValue(w),w};return Object.assign(n,{withTypes:()=>n}),n}var ze=fg();function dg(e){e()}function pg(){let e=null,t=null;return{clear(){e=null,t=null},notify(){dg(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Ec={notify(){},get:()=>[]};function hg(e,t){let n,r=Ec,o=0,i=!1;function l(m){f();const S=r.subscribe(m);let y=!1;return()=>{y||(y=!0,S(),c())}}function s(){r.notify()}function u(){d.onStateChange&&d.onStateChange()}function a(){return i}function f(){o++,n||(n=e.subscribe(u),r=pg())}function c(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Ec)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,c())}const d={addNestedSub:l,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:a,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return d}var mg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yg=typeof navigator<"u"&&navigator.product==="ReactNative",vg=mg||yg?Ee.useLayoutEffect:Ee.useEffect;function gg({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",identityFunctionCheck:i="once"}){const l=Ee.useMemo(()=>{const a=hg(e);return{store:e,subscription:a,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),s=Ee.useMemo(()=>e.getState(),[e]);vg(()=>{const{subscription:a}=l;return a.onStateChange=a.notifyNestedSubs,a.trySubscribe(),s!==e.getState()&&a.notifyNestedSubs(),()=>{a.tryUnsubscribe(),a.onStateChange=void 0}},[l,s]);const u=t||Dt;return Ee.createElement(u.Provider,{value:l},n)}var wg=gg;function Dp(e=Dt){const t=e===Dt?Op:zu(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Sg=Dp();function xg(e=Dt){const t=e===Dt?Sg:Dp(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ft=xg();ag(lg.useSyncExternalStoreWithSelector);function Mu({scale:e=1}){return h.jsx("div",{className:"logo",children:h.jsxs("svg",{width:`${52*e}`,height:`${53*e}`,viewBox:"0 0 52 53",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[h.jsx("path",{d:"M41.0208 9.46202L41.4655 6.18356C41.5941 5.1578 40.9466 3.9206 39.9727 3.78519L38.3528 3.37342C37.9196 2.20635 37.2257 1.50963 36.1294 1.5C35.1555 1.5 34.3718 2.08429 33.906 2.90506L32.0374 2.68189C31.0635 2.54648 30.1319 3.56414 30.0034 4.5899L29.5587 7.86836L41.0208 9.46202Z",fill:"url(#paint0_linear_129_70)"}),h.jsx("path",{d:"M36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342Z",fill:"url(#paint1_linear_129_70)"}),h.jsx("path",{d:"M16.7317 47.7987L43.1829 51.4755C44.6437 51.6786 45.9843 50.5959 46.1771 49.0572L50.9768 10.7529C51.1696 9.21426 50.1416 7.80233 48.6807 7.59926L22.2296 3.92245C20.7687 3.71938 19.4281 4.80209 19.2353 6.34073C18.9276 8.79672 18.642 11.0755 18.3714 13.2354M25.9379 11.9733L43.7692 14.4525M42.8799 19.136L27.7656 17.0346M42.8799 23.8196L31.9302 22.2971M41.9905 28.5031L33.6265 27.3402M41.1012 33.1866L33.8335 32.1762M40.2118 37.8702L32.7851 36.8376M39.3225 42.5537L30.4068 41.3141M18.0819 18.864L18.2933 16.0627M28.0619 31.6424L30.7216 31.865M16.1403 44.5296L16.3517 41.7283M3.67566 29.6298L6.33533 29.8525M32.7851 36.8376C30.3922 43.2934 24.4297 47.867 17.453 47.867C8.36626 47.867 1 40.1085 1 30.5379C1 20.9674 8.36626 13.2088 17.453 13.2088C17.7612 13.2088 18.0674 13.2178 18.3714 13.2354M32.7851 36.8376C33.3289 35.3705 33.6883 33.8061 33.8335 32.1762M33.8335 32.1762C33.8815 31.6369 33.906 31.0904 33.906 30.5379C33.906 29.4455 33.81 28.3766 33.6265 27.3402M33.6265 27.3402C33.3088 25.5467 32.7289 23.8504 31.9302 22.2971M31.9302 22.2971C30.8844 20.2635 29.4637 18.475 27.7656 17.0346M27.7656 17.0346C25.1671 14.8303 21.919 13.441 18.3714 13.2354M41.4655 6.18356L41.0208 9.46202L29.5587 7.86836L30.0034 4.5899C30.1319 3.56414 31.0635 2.54648 32.0374 2.68189L33.906 2.90506C34.3718 2.08429 35.1555 1.5 36.1294 1.5C37.2257 1.50963 37.9196 2.20635 38.3528 3.37342L39.9727 3.78519C40.9466 3.9206 41.5941 5.1578 41.4655 6.18356ZM36.5741 3.37342C36.5741 3.63208 36.375 3.84177 36.1294 3.84177C35.8838 3.84177 35.6847 3.63208 35.6847 3.37342C35.6847 3.11475 35.8838 2.90506 36.1294 2.90506C36.375 2.90506 36.5741 3.11475 36.5741 3.37342ZM12.1169 29.1329L12.5616 29.2977C12.5616 29.2977 15.1394 32.1283 16.7317 33.8164L27.6805 23.981L28.5699 23.8196L16.8963 35.4702L12.1169 29.1329Z",stroke:"url(#paint2_linear_129_70)",strokeWidth:"1.9"}),h.jsxs("defs",{children:[h.jsxs("linearGradient",{id:"paint0_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[h.jsx("stop",{stopColor:"#786cd8"}),h.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),h.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),h.jsxs("linearGradient",{id:"paint1_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[h.jsx("stop",{stopColor:"#786cd8"}),h.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),h.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]}),h.jsxs("linearGradient",{id:"paint2_linear_129_70",x1:"29.3381",y1:"1.5",x2:"22.6619",y2:"51.5",gradientUnits:"userSpaceOnUse",children:[h.jsx("stop",{stopColor:"#786cd8"}),h.jsx("stop",{offset:"0.8",stopColor:"#7A5CB9"}),h.jsx("stop",{offset:"1",stopColor:"#7A5CB9"})]})]})]})})}function Eg({loggedIn:e=!1}){const t=ze(s=>s.auth.error),n=Ut(),[r,o]=k.useState({email:"",password:""}),i=ft(),l=s=>{s.preventDefault(),i(X0(r))};return k.useEffect(()=>{e&&setTimeout(()=>{n(-1)},1e3)},[e]),e?h.jsx("p",{children:"please sign out first"}):h.jsxs("div",{className:"signInPage",children:[h.jsx(Mu,{scale:3}),h.jsx("h1",{children:"TaskMaster"}),h.jsxs("form",{onSubmit:l,children:[h.jsx("input",{type:"email",value:r.email,placeholder:"Email",onChange:s=>o({...r,email:s.target.value})}),h.jsx("input",{type:"password",value:r.password,placeholder:"Password",onChange:s=>o({...r,password:s.target.value})}),h.jsx("p",{className:"error",children:t}),h.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),h.jsx(hr,{to:"/sign-up",children:" don't have an account? sign up"})]})]})}function kg({loggedIn:e=!1}){const t=ze(s=>s.auth.error),n=Ut(),[r,o]=k.useState({name:"",email:"",password:"",private:!1}),i=ft(),l=s=>{s.preventDefault(),i(Y0(r))};return k.useEffect(()=>{e&&setTimeout(()=>{n(-1)},2e3)},[e]),e?h.jsx("p",{children:"please sign out first"}):h.jsxs("div",{className:"signUpPage",children:[h.jsx(Mu,{scale:3}),h.jsx("h1",{children:"TaskMaster"}),h.jsxs("form",{onSubmit:l,children:[h.jsx("input",{type:"text",value:r.name,placeholder:"Name",onChange:s=>{o({...r,name:s.target.value})},required:!0}),h.jsx("input",{type:"email",value:r.email,placeholder:"Email",onChange:s=>o({...r,email:s.target.value}),required:!0}),h.jsx("input",{type:"password",value:r.password,placeholder:"Password",minLength:8,onChange:s=>o({...r,password:s.target.value}),required:!0}),h.jsxs("div",{className:"private",children:[h.jsx("input",{type:"checkbox",checked:r.private,onClick:s=>{o({...r,private:!r.private})}}),h.jsx("p",{children:"keep your account private?"})]}),h.jsx("p",{className:"error",children:t}),h.jsx("button",{className:"primary-button",type:"submit",children:"sign in"}),h.jsx(hr,{to:"/sign-in",children:" already have an account? sign in"})]})]})}function re(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Cg=typeof Symbol=="function"&&Symbol.observable||"@@observable",kc=Cg,gl=()=>Math.random().toString(36).substring(7).split("").join("."),_g={INIT:`@@redux/INIT${gl()}`,REPLACE:`@@redux/REPLACE${gl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gl()}`},ri=_g;function Fu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ap(e,t,n){if(typeof e!="function")throw new Error(re(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(re(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(re(1));return n(Ap)(e,t)}let r=e,o=t,i=new Map,l=i,s=0,u=!1;function a(){l===i&&(l=new Map,i.forEach((S,y)=>{l.set(y,S)}))}function f(){if(u)throw new Error(re(3));return o}function c(S){if(typeof S!="function")throw new Error(re(4));if(u)throw new Error(re(5));let y=!0;a();const p=s++;return l.set(p,S),function(){if(y){if(u)throw new Error(re(6));y=!1,a(),l.delete(p),i=null}}}function g(S){if(!Fu(S))throw new Error(re(7));if(typeof S.type>"u")throw new Error(re(8));if(typeof S.type!="string")throw new Error(re(17));if(u)throw new Error(re(9));try{u=!0,o=r(o,S)}finally{u=!1}return(i=l).forEach(p=>{p()}),S}function w(S){if(typeof S!="function")throw new Error(re(10));r=S,g({type:ri.REPLACE})}function d(){const S=c;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(re(11));function p(){const E=y;E.next&&E.next(f())}return p(),{unsubscribe:S(p)}},[kc](){return this}}}return g({type:ri.INIT}),{dispatch:g,subscribe:c,getState:f,replaceReducer:w,[kc]:d}}function jg(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ri.INIT})>"u")throw new Error(re(12));if(typeof n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(re(13))})}function zp(e){const t=Object.keys(e),n={};for(let i=0;i"u")throw s&&s.type,new Error(re(14));a[c]=d,u=u||d!==w}return u=u||r.length!==Object.keys(l).length,u?a:l}}function oi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pg(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(re(15))};const l={getState:o.getState,dispatch:(u,...a)=>i(u,...a)},s=e.map(u=>u(l));return i=oi(...s)(o.dispatch),{...o,dispatch:i}}}function Ng(e){return Fu(e)&&"type"in e&&typeof e.type=="string"}class Tg{constructor(){this.base="https://project-manager-jqsq.onrender.com/user/task"}create(t){return D.post(`${this.base}/create`,t)}all(t){return D.get(`${this.base}/list?owner=${t}`)}one(t){return D.get(`${this.base}/details?id=${t}`)}update(t){return D.put(`${this.base}/update`,t)}delete(t){return D.delete(`${this.base}/delete?id=${t}`)}}const Ti=new Tg,Mp="CREATE_TASK",Rg="UPDATE_TASK",Og="DELETE_TASK",Fp="ALL_TASK",Ip="LOAD_TASK",Lg=e=>async(t,n)=>{try{const r=n().auth.user.id;e.deadline==""&&(e.deadline=null);const o=await Ti.create({...e,owner:r});return t({type:Mp,payload:o.data}),await t(zr()),Promise.resolve(o.data)}catch(r){return Promise.reject(r)}},zr=()=>async(e,t)=>{try{e({type:Ip});const n=t().auth.user.id,r=await Ti.all(n);return e({type:Fp,payload:r.data}),Promise.resolve(r.data)}catch(n){return Promise.reject(n)}},Dg=e=>async t=>{try{e.deadline==""&&(e.deadline=null);const n=await Ti.update(e);return t({type:Rg,payload:n.data}),zr()}catch(n){return Promise.reject(n)}},Ag=e=>async t=>{try{const n=await Ti.delete(e);return t({type:Og,payload:n.data}),zr()}catch(n){return Promise.reject(n)}},Cc={tasks:[],loading:!1};function Up(e=Cc,t){switch(t.type){case Mp:return{...e,tasks:[...e.tasks,t.payload]};case Fp:return{...e,tasks:t.payload,loading:!1};case Ip:return{...e,loading:!0};case Gr:return Cc;default:return e}}const zg={user:null,error:null,all:[]};function $p(e=zg,t){switch(t.type){case Np:return{...e,all:t.payload};case _p:return{...e,user:t.payload};case Cp:return{...e,user:t.payload,error:null};case jp:return{...e,user:null};case Pp:return{...e,user:t.payload,error:null};case G0:return{...e,user:null};case Mn:return{...e,error:t.payload};default:return e}}class Mg{constructor(){this.base="https://project-manager-jqsq.onrender.com/notes"}get(t){return D.get(`${this.base}/?owner=${t}`)}update(t){return console.log(t),D.post(`${this.base}/update`,t)}}const Bp=new Mg,Iu="UPDATE",Fg=()=>async(e,t)=>{try{const n=t().auth.user.id,r=await Bp.get(n);e({type:Iu,payload:r.data})}catch(n){console.log(n)}},Ig=e=>async(t,n)=>{try{const r=n().auth.user.id,o=await Bp.update({...e,owner:r});t({type:Iu,payload:o.data})}catch(r){console.log(r)}},_c={content:""};function Hp(e=_c,t){switch(t.type){case Iu:return t.payload;case Gr:return _c;default:return e}}class Ug{constructor(){this.base="https://project-manager-jqsq.onrender.com/project"}getProjects(t){return D.get(`${this.base}/get-owned?owner=${t}`)}getProject(t){return D.get(`${this.base}/get?id=${t}`)}createProject(t){return D.post(`${this.base}/create`,t)}deleteProject(t){return D.delete(`${this.base}/delete?id=${t}`)}updateProject(t){return D.put(`${this.base}/update`,t)}}const Ri=new Ug;class $g{constructor(){this.base="https://project-manager-jqsq.onrender.com/project/task"}create(t){return D.post(`${this.base}/create`,t)}all(t){return D.get(`${this.base}/list?owner=${t}`)}one(t){return D.get(`${this.base}/details?id=${t}`)}update(t){return D.put(`${this.base}/update`,t)}delete(t){return D.delete(`${this.base}/delete?id=${t}`)}status(t,n){return D.put(`${this.base}/status?id=${t}&status=${n}`)}}const Oi=new $g,Wp="ALL_PROJECT_TASK",Bg="LOAD_PROJECT_TASK",Hg=(e,t)=>async n=>{try{const r=Object.keys(t).reduce((i,l)=>(t[l]!==null&&(i[l]=t[l]),i),{});r.deadline==""&&(r.deadline=null);const o=await Oi.create({...r,owner:e});await n(qr())}catch(r){console.log(r)}},qr=()=>async(e,t)=>{try{e({type:Bg});const n=t().project.one.id,r=await Oi.all(n);return e({type:Wp,payload:r.data}),Promise.resolve(r.data)}catch(n){console.log(n)}},Wg=e=>async t=>{try{const n=await Oi.delete(e);await t(qr())}catch(n){console.log(n)}},wl=(e,t)=>async n=>{try{const r=await Oi.status(e,t);await n(qr())}catch(r){console.log(r)}},Vp="CREATE_PROJECT",Kp="FETCH_PROJECTS",Uu="FETCH_PROJECT",$u="LOADING_PROJECT",Vg=e=>async(t,n)=>{try{const r=n().auth.user.id;t({type:$u,payload:!0}),e.due==""&&(e.due=null);const o=await Ri.createProject({...e,owner:r});t({type:Vp,payload:o.data})}catch(r){console.log(r)}},Bu=()=>async(e,t)=>{try{const n=t().auth.user.id;e({type:$u,payload:!0});const r=await Ri.getProjects(n);e({type:Kp,payload:r.data}),r.data&&(e({type:Uu,payload:r.data[0]}),e(qr()))}catch(n){console.log(n)}},Kg=e=>async t=>{const n=await Ri.getProject(e);n.data.due==null&&(n.data.due=""),t({type:Uu,payload:n.data})},Qg=e=>async t=>{e.due==""&&(e.due=null),await Ri.updateProject(e),await t(Bu())},jc={projects:[],loading:!1,one:null};function Qp(e=jc,t){switch(t.type){case $u:return{...e,loading:t.payload};case Vp:return{...e,projects:[...e.projects,t.payload]};case Kp:return{...e,projects:t.payload,loading:!1};case Uu:return{...e,one:t.payload};case Gr:return jc;default:return e}}const Pc={tasks:[]};function Jp(e=Pc,t){switch(t.type){case Wp:return{...e,tasks:t.payload};case Gr:return Pc;default:return e}}const Gr="CLEAR";zp({task:Up,auth:$p,note:Hp,project:Qp,projectTask:Jp});function Jg({setOpen:e,open:t,user:n}){const r=["home","projects","tasks"],o=ct(),i=Ut(),l=ft(),s=a=>{i(a.target.id),e()},u=()=>{l({type:Gr}),l(Z0())};return h.jsxs("div",{className:"sidebar",style:{left:t?0:""},children:[h.jsx("div",{className:"sidebar__options",children:r.map((a,f)=>h.jsx("div",{onClick:s,id:a,className:o.pathname.includes(a)?"sidebar__option active":"sidebar__option",children:a},f))}),n&&h.jsx("div",{onClick:u,color:"red",children:h.jsx("img",{src:"../signOut.svg"})})]})}function qg({user:e,dark:t,isDark:n}){const r=ct(),[o,i]=k.useState(!1),[l,s]=k.useState("../light.svg"),u=ze(a=>a.auth.error);return k.useEffect(()=>{s(n?"../dark.svg":"../light.svg")},[n]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?h.jsx("div",{className:"navbar",style:{position:"fixed",border:"none"},children:h.jsx("img",{src:l,alt:"switch",onClick:()=>t()})}):h.jsxs("div",{className:o?"top":"top over",children:[h.jsxs("nav",{className:"navbar",children:[h.jsxs("div",{className:"projectTitle",children:[h.jsx("div",{className:"sidebar__logo",onClick:()=>i(!o),children:"☰"}),h.jsx(Mu,{}),h.jsxs(hr,{to:"",children:["TaskMaster",u]})]}),e!=null?h.jsxs("div",{className:"user",children:[h.jsx("img",{src:l,alt:"switch",onClick:()=>t()}),h.jsx("div",{children:h.jsx("p",{id:"user-name",children:e.name})})]}):h.jsxs("div",{className:"sign",children:[h.jsx("img",{src:l,alt:"switch",onClick:()=>t()}),h.jsx("button",{className:"tertiary-button signIn",children:h.jsx(hr,{to:"/sign-in",children:"Sign In"})}),h.jsx("button",{className:"secondary-button signUp",children:h.jsx(hr,{to:"/sign-up",children:"Sign Up"})})]})]}),h.jsx(Jg,{setOpen:()=>i(!o),open:o,user:e!=null})]})}function Gg(){return h.jsx("div",{className:"homePage",children:h.jsx("h1",{children:"Welcome to TaskMaster"})})}function Xg({note:e,save:t,loggedIn:n}){const r=ct(),[o,i]=k.useState(e.content),[l,s]=k.useState(!1);return k.useEffect(()=>{i(e.content);const u=a=>{a.key==="Escape"?(s(!1),t(o)):a.shiftKey&&a.key==="n"&&s(!0)};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[e]),r.pathname=="/sign-in"||r.pathname=="/sign-up"?h.jsx(h.Fragment,{}):l?h.jsxs("div",{className:"notes",children:[h.jsx("div",{className:"notes-options",children:h.jsx("img",{src:"../close.svg",alt:"close",onClick:()=>{s(!1),t(o)}})}),h.jsx("textarea",{disabled:!n,value:o,onChange:u=>i(u.target.value)})]}):h.jsx("div",{className:"notes",style:{height:"35px",border:"1px solid rgb(var(--second))"},onClick:()=>s(!0),children:h.jsx("img",{src:"../notes.svg",alt:"notes"})})}function Yg({loggedIn:e}){const t=ft(),n=ze(f=>f.task.tasks),[r,o]=k.useState(!1),[i,l]=k.useState(!1),[s,u]=k.useState({task:"",description:"",completion:0,deadline:""}),a=f=>{f.preventDefault(),console.log(s),r?(t(Dg(s)).then(()=>{t(zr())}),o(!1)):t(Lg(s)),l(!1)};return k.useEffect(()=>{e&&t(zr())},[e]),h.jsxs("div",{className:"task-page",children:[h.jsxs("div",{className:"tasks-title",children:[h.jsx("h1",{children:"Tasks"}),h.jsx("div",{className:"task-add",children:h.jsx("button",{className:"secondary-button",onClick:()=>l(!i),children:"New"})})]}),i&&h.jsx("div",{className:"create-task",children:h.jsxs("form",{onSubmit:a,children:[h.jsx("input",{type:"text",value:s.task,onChange:f=>u({...s,task:f.target.value}),placeholder:"Task Name",required:!0}),h.jsx("textarea",{type:"text",value:s.description,onChange:f=>u({...s,description:f.target.value}),placeholder:"Task Description"}),h.jsxs("div",{className:"task-completion",children:[h.jsxs("output",{for:"completion",onforminput:"value = completion.valueAsNumber;",children:["Completion: ",s.completion,"%"]}),h.jsx("input",{type:"range",min:0,max:100,value:s.completion,onChange:f=>u({...s,completion:f.target.value}),name:"completion"})]}),h.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:s.deadline,onChange:f=>u({...s,deadline:f.target.value})}),h.jsxs("div",{className:"element",children:[h.jsx("button",{onClick:()=>{o(!1),l(!1),u({task:"",description:"",completion:0,deadline:""})},children:"cancel"}),h.jsx("button",{type:"submit",children:r?"Update":"Create"})]})]})}),h.jsx("div",{className:"task-table-container",children:h.jsxs("table",{className:"task-table",children:[h.jsx("thead",{children:h.jsxs("tr",{children:[h.jsx("th",{children:"Task"}),h.jsx("th",{children:"description"}),h.jsx("th",{children:"progress"}),h.jsx("th",{children:"deadline"}),h.jsx("th",{children:"Actions"})]})}),h.jsx("tbody",{children:n.map(f=>h.jsxs("tr",{style:{backgroundColor:`rgba(var(--low), ${f.completion/100})`},children:[h.jsx("td",{children:f.task}),h.jsx("td",{children:f.description}),h.jsxs("td",{children:[f.completion,"%"]}),h.jsx("td",{children:f.deadline&&f.deadline}),h.jsxs("td",{children:[h.jsx("button",{onClick:()=>{u({...f,deadline:f.deadline!=null?f.deadline:""}),l(!0),o(!0)},children:"update"}),h.jsx("button",{onClick:()=>t(Ag(index)),children:"delete"})]})]},f.id))})]})})]})}function Zg({tasks:e=[],newTask:t,users:n=[]}){const[r,o]=k.useState([]),[i,l]=k.useState([]),[s,u]=k.useState([]),a=ft(),f=()=>{try{r.map(d=>{e.find(m=>m.id==d.id).status!="To Do"&&a(wl(d.id,"To Do"))}),i.map(d=>{e.find(m=>m.id==d.id).status!="In Progress"&&a(wl(d.id,"In Progress"))}),s.map(d=>{e.find(m=>m.id==d.id).status!="Completed"&&a(wl(d.id,"Completed"))})}catch(d){console.log(d)}},c=(d,m)=>{d.dataTransfer.setData("from",m.from),d.dataTransfer.setData("id",m.id)},g=(d,m)=>{if(m=="delete"){a(Wg(d.dataTransfer.getData("id")));return}const S=d.dataTransfer.getData("from"),y=d.dataTransfer.getData("id");if(S==m)return;let p=null;S=="todo"?(p=r.find(v=>v.id==y),o(r.filter(v=>v.id!=y))):S=="in progress"?(p=i.find(v=>v.id==y),l(i.filter(v=>v.id!=y))):S=="completed"&&(p=s.find(v=>v.id==y),u(s.filter(v=>v.id!=y))),m=="todo"?o([...r,p]):m=="in progress"?l([...i,p]):m=="completed"&&u([...s,p])},w=d=>{d.preventDefault()};return k.useEffect(()=>(e.map(d=>{d.status==="To Do"?o(m=>[...m,d]):d.status==="In Progress"?l(m=>[...m,d]):d.status==="Completed"&&u(m=>[...m,d])}),()=>{o([]),l([]),u([])}),[e]),h.jsx(h.Fragment,{children:h.jsxs("div",{className:"project-item-grid",children:[h.jsx("div",{className:"project-task-title",children:"todo"}),h.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"todo"),children:r.map((d,m)=>h.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"todo",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[h.jsxs("div",{className:"task-title",children:[h.jsx("div",{className:"title",children:d.title}),h.jsx("div",{className:"deadline",children:d.deadline})]}),h.jsxs("div",{className:"task-bottom",children:[h.jsx("div",{className:"description",children:d.description}),h.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),h.jsx("div",{className:"project-task-title",children:"inprogress"}),h.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"in progress"),children:i.map((d,m)=>h.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"in progress",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[h.jsxs("div",{className:"task-title",children:[h.jsx("div",{className:"title",children:d.title}),h.jsx("div",{className:"deadline",children:d.deadline})]}),h.jsxs("div",{className:"task-bottom",children:[h.jsx("div",{className:"description",children:d.description}),h.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),h.jsx("div",{className:"project-task-title",children:"completed"}),h.jsx("div",{className:"project-task-list",onDragOver:w,onDrop:d=>g(d,"completed"),children:s.map((d,m)=>h.jsxs("div",{className:"project-task-item",draggable:!0,onDragStart:S=>c(S,{from:"completed",id:d.id}),style:{borderBottom:`solid 4px rgb(var(--${d.difficulty.toLowerCase()}))`,backgroundImage:d.priority=="default"?"":`linear-gradient(rgba(var(--${d.priority.toLowerCase()}), 0.6), rgba(var(--${d.priority.toLowerCase()}), 0.3))`},children:[h.jsxs("div",{className:"task-title",children:[h.jsx("div",{className:"title",children:d.title}),h.jsx("div",{className:"deadline",children:d.deadline})]}),h.jsxs("div",{className:"task-bottom",children:[h.jsx("div",{className:"description",children:d.description}),h.jsx("div",{className:"assign",children:n&&d.assigned_to&&n[n.findIndex(S=>S.id===d.assigned_to)].name})]})]},m))}),h.jsx("div",{className:"project-task-delete",onDragOver:w,onDrop:d=>g(d,"delete"),children:"delete"}),h.jsxs("div",{className:"project-task-options",children:[h.jsx("button",{onClick:t,children:"add Task"}),h.jsx("button",{onClick:()=>f(),children:"save changes"})]})]})})}function bg({close:e}){const t=ft(),n=Ut(),r=ze(m=>m.auth.all),o=ze(m=>m.project.one),i=ze(m=>m.projectTask.tasks),[l,s]=k.useState(!1),[u,a]=k.useState(!1),[f,c]=k.useState({title:"",description:"",deadline:"",priority:null,difficulty:null,assigned_to:null}),g=()=>{n("/projects/modify",{state:{edit:!0}})},w=m=>{m.preventDefault(),console.log("created"),t(Hg(o.id,f)),c({title:"",description:"",completion:0,deadline:"",priority:null,difficulty:null,assigned_to:null}),s(!1)},d=()=>{u&&c({priority:null,difficulty:null,assigned_to:null}),a(!u)};return k.useEffect(()=>{t(qr(o.id)),t(Du());const m=S=>{console.log(S.key),S.key==="Escape"&&e()};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[]),r==null||o==null||i==null?h.jsx("h1",{children:"Loading"}):h.jsxs(h.Fragment,{children:[o&&h.jsxs("div",{className:"projectListTitle",children:[h.jsx("h1",{children:o.title}),h.jsx("div",{className:"projectListTitle--add",children:h.jsx("button",{className:"secondary-button",onClick:g,children:"edit"})})]}),l&&h.jsx("div",{className:"create-project-task",children:h.jsxs("form",{onSubmit:w,children:[h.jsx("input",{type:"text",value:f.title,onChange:m=>c({...f,title:m.target.value}),placeholder:"Task Title",required:!0}),h.jsx("textarea",{type:"text",value:f.description,onChange:m=>c({...f,description:m.target.value}),placeholder:"Task Description",required:!0}),h.jsx("input",{type:"date",min:new Date().toISOString().split("T")[0],value:f.deadline,onChange:m=>c({...f,deadline:m.target.value})}),h.jsxs("div",{className:"additional",onClick:d,children:[h.jsx("div",{children:"additional details"}),h.jsx("div",{children:u?"-":"+"})]}),u&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"element",children:[h.jsx("label",{for:"priority",children:"Priority"}),h.jsxs("select",{id:"priority",defaultValue:"default",onChange:m=>c({...f,priority:m.target.value.toLowerCase()}),children:[h.jsx("option",{disabled:!0,children:"default"}),h.jsx("option",{value:"High",children:"High"}),h.jsx("option",{value:"Medium",children:"Medium"}),h.jsx("option",{value:"Low",children:"Low"})]})]}),h.jsxs("div",{className:"element",children:[h.jsx("label",{htmlFor:"difficulty",children:"difficulty"}),h.jsxs("select",{id:"difficulty",defaultValue:"default",onChange:m=>c({...f,difficulty:m.target.value.toLowerCase()}),children:[h.jsx("option",{disabled:!0,children:"default"}),h.jsx("option",{value:"High",children:"High"}),h.jsx("option",{value:"Medium",children:"Medium"}),h.jsx("option",{value:"Low",children:"Low"})]})]}),h.jsxs("div",{className:"element",children:[h.jsx("label",{htmlFor:"assign",children:"Assign to"}),h.jsxs("select",{id:"assign",defaultValue:"Select",onChange:m=>c({...f,assigned_to:m.target.value.toLowerCase()}),children:[h.jsx("option",{disabled:!0,children:"Select"}),r.map((m,S)=>m.name!="myself"?h.jsxs("option",{value:m.id,children:[m.name," -"," ",m.email]},S):h.jsx("option",{value:m.id,children:m.name},S))]})]})]}),h.jsxs("div",{className:"element",children:[h.jsx("button",{onClick:()=>s(!1),children:"cancel"}),h.jsx("button",{type:"submit",children:"Create"})]})]})}),h.jsx(Zg,{tasks:i,newTask:()=>s(!0),users:r})]})}function e1({loggedIn:e}){const t=ft(),n=ze(s=>s.project),r=Ut(),[o,i]=k.useState(!1);k.useEffect(()=>{e&&t(Bu())},[e]);const l=s=>t(Kg(s)).then(()=>{i(!0)});return o?h.jsx(bg,{close:()=>i(!1)}):h.jsxs("div",{children:[h.jsxs("div",{className:"projectListTitle",children:[h.jsx("h1",{children:"Projects"}),h.jsx("div",{className:"projectListTitle--add",children:h.jsx("button",{className:"secondary-button",onClick:()=>r("/projects/modify"),children:"new"})})]}),n.loading?h.jsx("p",{children:"loading"}):h.jsx("div",{className:"projectList",children:n.projects.map((s,u)=>h.jsxs("div",{className:"project",onClick:()=>{l(s.id)},children:[h.jsxs("div",{className:"project-title",children:[h.jsx("div",{className:"title",children:s.title}),h.jsx("div",{className:"deadline",children:s.deadline&&s.deadline})]}),h.jsxs("div",{className:"project-description",children:["Description: ",h.jsx("br",{}),s.description||"empty"]})]},u))})]})}function t1(){const e=ze(d=>d.auth.all),t=ft(),n=new Date().toISOString().split("T")[0],[r,o]=k.useState(null),[i,l]=k.useState([]),s=Ut(),u=ct(),a=ze(d=>d.project.one),{edit:f}=u.state||!1,[c,g]=k.useState({title:"",description:"",due:"",group:!1,members:[]}),w=d=>{d.preventDefault(),f?(d.preventDefault(),t(Qg(c)).then(()=>{s("/projects")})):t(Vg(c)).then(()=>{t(Bu())}).then(()=>{s("/projects")})};return k.useEffect(()=>{if(t(Du()),f){g(a);const d=e.map(m=>{if(c.members.includes(m.id))return m.name}).filter(Boolean);l(d)}},[]),h.jsx("div",{className:"project-modify",children:h.jsxs("form",{onSubmit:w,children:[h.jsx("h2",{children:"Project"}),h.jsx("input",{type:"text",value:c.title,onChange:d=>g({...c,title:d.target.value}),required:!0,placeholder:"Project Title"}),h.jsx("textarea",{value:c.description,onChange:d=>g({...c,description:d.target.value}),required:!0,placeholder:"Project Description"}),h.jsx("input",{type:"date",value:c.due,min:n,onChange:d=>g({...c,due:d.target.value})}),h.jsxs("div",{children:["is this a group project?",h.jsx("input",{type:"checkbox",checked:c.group,onClick:d=>{g({...c,group:!c.group}),c.group||(l([]),o(null))}})]}),c.group?h.jsxs(h.Fragment,{children:[h.jsxs("div",{children:[h.jsxs("select",{defaultValue:"Select",onChange:d=>o(d.target.value),children:[h.jsx("option",{disabled:!0,children:"Select"}),e.map((d,m)=>{if(d.name!="myself")return h.jsxs("option",{value:m,children:[d.name," - ",d.email]},m)})]}),h.jsx("button",{type:"button",onClick:()=>{const d=e[r];r&&(!c.members.includes(d.id)||!i.includes(d.name))&&(g({...c,members:[...c.members,d.id]}),l([...i,d.name]))},children:"add member"})]}),h.jsxs("ul",{children:["members:",i.length==0?" None":"",i.map((d,m)=>h.jsx("li",{onClick:()=>{const S=i.filter((p,v)=>v!==m);l(S);const y=c.members.filter((p,v)=>v!=m);g({...c,members:y})},children:d},m))]})]}):h.jsx(h.Fragment,{}),h.jsxs("div",{className:"element",children:[h.jsx("button",{onClick:()=>s("/projects"),children:"Cancel"}),h.jsx("button",{type:"submit",children:f?"Update":"Create"})]})]})})}function n1(){const e=ze(l=>l.auth.user),t=ze(l=>l.note),n=ft(),[r,o]=k.useState(document.body.classList.contains("dark")),i=()=>{document.body.classList.contains("dark")?(document.body.classList.remove("dark"),o(!1)):(document.body.classList.add("dark"),o(!0))};return k.useEffect(()=>{document.cookie.match("(^|;)\\s*user\\s*=\\s*([^;]+)")&&(n(Au()).then(()=>{n(Fg())}),n(Du()))},[]),h.jsxs(Rv,{children:[h.jsx(qg,{user:e,dark:i,isDark:r}),h.jsx(Xg,{note:e==null?{content:""}:t,loggedIn:e!=null,save:l=>{t.content!=l&&n(Ig({...t,content:l}))}}),h.jsxs(kv,{children:[h.jsx(ht,{index:!0,path:"/home",element:h.jsx(Gg,{})}),h.jsx(ht,{path:"/sign-in",element:h.jsx(Eg,{loggedIn:e!=null})}),h.jsx(ht,{path:"/sign-up",element:h.jsx(kg,{loggedIn:e!=null})}),h.jsx(ht,{path:"/tasks",element:h.jsx(Yg,{loggedIn:e!=null})}),h.jsx(ht,{path:"/projects",element:h.jsx(e1,{loggedIn:e!=null})}),h.jsx(ht,{path:"/projects/modify",element:h.jsx(t1,{})}),h.jsx(ht,{path:"*",element:h.jsx(xv,{to:"/home",replace:!0})})]})]})}var qp=Symbol.for("immer-nothing"),Nc=Symbol.for("immer-draftable"),_e=Symbol.for("immer-state");function We(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Fn=Object.getPrototypeOf;function nn(e){return!!e&&!!e[_e]}function rn(e){var t;return e?Gp(e)||Array.isArray(e)||!!e[Nc]||!!((t=e.constructor)!=null&&t[Nc])||Di(e)||Ai(e):!1}var r1=Object.prototype.constructor.toString();function Gp(e){if(!e||typeof e!="object")return!1;const t=Fn(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===r1}function ii(e,t){Li(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Li(e){const t=e[_e];return t?t.type_:Array.isArray(e)?1:Di(e)?2:Ai(e)?3:0}function Cs(e,t){return Li(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Xp(e,t,n){const r=Li(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function o1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Di(e){return e instanceof Map}function Ai(e){return e instanceof Set}function Vt(e){return e.copy_||e.base_}function _s(e,t){if(Di(e))return new Map(e);if(Ai(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Gp(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[_e];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=i1),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Hu(r,!0))),e}function i1(){We(2)}function zi(e){return Object.isFrozen(e)}var l1={};function on(e){const t=l1[e];return t||We(0,e),t}var Mr;function Yp(){return Mr}function s1(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Tc(e,t){t&&(on("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function js(e){Ps(e),e.drafts_.forEach(u1),e.drafts_=null}function Ps(e){e===Mr&&(Mr=e.parent_)}function Rc(e){return Mr=s1(Mr,e)}function u1(e){const t=e[_e];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Oc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_e].modified_&&(js(t),We(4)),rn(e)&&(e=li(t,e),t.parent_||si(t,e)),t.patches_&&on("Patches").generateReplacementPatches_(n[_e].base_,e,t.patches_,t.inversePatches_)):e=li(t,n,[]),js(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qp?e:void 0}function li(e,t,n){if(zi(t))return t;const r=t[_e];if(!r)return ii(t,(o,i)=>Lc(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return si(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,l=!1;r.type_===3&&(i=new Set(o),o.clear(),l=!0),ii(i,(s,u)=>Lc(e,r,o,s,u,n,l)),si(e,o,!1),n&&e.patches_&&on("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lc(e,t,n,r,o,i,l){if(nn(o)){const s=i&&t&&t.type_!==3&&!Cs(t.assigned_,r)?i.concat(r):void 0,u=li(e,o,s);if(Xp(n,r,u),nn(u))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(rn(o)&&!zi(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;li(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&si(e,o)}}function si(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hu(t,n)}function a1(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Yp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Wu;n&&(o=[r],i=Fr);const{revoke:l,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=l,s}var Wu={get(e,t){if(t===_e)return e;const n=Vt(e);if(!Cs(n,t))return c1(e,n,t);const r=n[t];return e.finalized_||!rn(r)?r:r===Sl(e.base_,t)?(xl(e),e.copy_[t]=Ts(r,e)):r},has(e,t){return t in Vt(e)},ownKeys(e){return Reflect.ownKeys(Vt(e))},set(e,t,n){const r=Zp(Vt(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Sl(Vt(e),t),i=o==null?void 0:o[_e];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(o1(n,o)&&(n!==void 0||Cs(e.base_,t)))return!0;xl(e),Ns(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Sl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,xl(e),Ns(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Vt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){We(11)},getPrototypeOf(e){return Fn(e.base_)},setPrototypeOf(){We(12)}},Fr={};ii(Wu,(e,t)=>{Fr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Fr.deleteProperty=function(e,t){return Fr.set.call(this,e,t,void 0)};Fr.set=function(e,t,n){return Wu.set.call(this,e[0],t,n,e[0])};function Sl(e,t){const n=e[_e];return(n?Vt(n):e)[t]}function c1(e,t,n){var o;const r=Zp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Zp(e,t){if(!(t in e))return;let n=Fn(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fn(n)}}function Ns(e){e.modified_||(e.modified_=!0,e.parent_&&Ns(e.parent_))}function xl(e){e.copy_||(e.copy_=_s(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(u=i,...a){return l.produce(u,f=>n.call(this,f,...a))}}typeof n!="function"&&We(6),r!==void 0&&typeof r!="function"&&We(7);let o;if(rn(t)){const i=Rc(this),l=Ts(t,void 0);let s=!0;try{o=n(l),s=!1}finally{s?js(i):Ps(i)}return Tc(i,r),Oc(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===qp&&(o=void 0),this.autoFreeze_&&Hu(o,!0),r){const i=[],l=[];on("Patches").generateReplacementPatches_(t,o,i,l),r(i,l)}return o}else We(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...s)=>this.produceWithPatches(l,u=>t(u,...s));let r,o;return[this.produce(t,n,(l,s)=>{r=l,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){rn(e)||We(8),nn(e)&&(e=bp(e));const t=Rc(this),n=Ts(e,void 0);return n[_e].isManual_=!0,Ps(t),n}finishDraft(e,t){const n=e&&e[_e];(!n||!n.isManual_)&&We(9);const{scope_:r}=n;return Tc(r,t),Oc(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=on("Patches").applyPatches_;return nn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ts(e,t){const n=Di(e)?on("MapSet").proxyMap_(e,t):Ai(e)?on("MapSet").proxySet_(e,t):a1(e,t);return(t?t.scope_:Yp()).drafts_.push(n),n}function bp(e){return nn(e)||We(10,e),eh(e)}function eh(e){if(!rn(e)||zi(e))return e;const t=e[_e];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=_s(e,t.scope_.immer_.useStrictShallowCopy_)}else n=_s(e,!0);return ii(n,(r,o)=>{Xp(n,r,eh(o))}),t&&(t.finalized_=!1),n}var je=new f1;je.produce;je.produceWithPatches.bind(je);je.setAutoFreeze.bind(je);je.setUseStrictShallowCopy.bind(je);je.applyPatches.bind(je);je.createDraft.bind(je);je.finishDraft.bind(je);function d1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function p1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function h1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Dc=e=>Array.isArray(e)?e:[e];function m1(e){const t=Array.isArray(e[0])?e[0]:e;return h1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function y1(e,t){const n=[],{length:r}=e;for(let o=0;o{n=yo(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function th(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,s,u={},a=o.pop();typeof a=="object"&&(u=a,a=o.pop()),d1(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const f={...n,...u},{memoize:c,memoizeOptions:g=[],argsMemoize:w=Vu,argsMemoizeOptions:d=[],devModeChecks:m={}}=f,S=Dc(g),y=Dc(d),p=m1(o),v=c(function(){return i++,a.apply(null,arguments)},...S),E=w(function(){l++;const N=y1(p,arguments);return s=v.apply(null,N),s},...y);return Object.assign(E,{resultFunc:a,memoizedResultFunc:v,dependencies:p,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:c,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var S1=th(Vu),x1=Object.assign((e,t=S1)=>{p1(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((l,s,u)=>(l[n[u]]=s,l),{}))},{withTypes:()=>x1});function nh(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var rh=nh(),E1=nh,k1=(...e)=>{const t=th(...e),n=Object.assign((...r)=>{const o=t(...r),i=(l,...s)=>o(nn(l)?bp(l):l,...s);return Object.assign(i,o),i},{withTypes:()=>n});return n};k1(Vu);var C1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oi:oi.apply(null,arguments)};function Mi(e,t){function n(...r){return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Ng(r)&&r.type===e,n}var oh=class or extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,or.prototype)}static get[Symbol.species](){return or}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new or(...t[0].concat(this)):new or(...t.concat(this))}};function _1(e){return typeof e=="boolean"}var j1=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new oh;return n&&(_1(n)?l.push(rh):l.push(E1(n.extraArgument))),l},P1="RTK_autoBatch",ih=e=>t=>{setTimeout(t,e)},N1=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ih(10),T1=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,l=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?N1:e.type==="callback"?e.queueNotification:ih(e.timeout),a=()=>{l=!1,i&&(i=!1,s.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const c=()=>o&&f(),g=r.subscribe(c);return s.add(f),()=>{g(),s.delete(f)}},dispatch(f){var c;try{return o=!((c=f==null?void 0:f.meta)!=null&&c[P1]),i=!o,i&&(l||(l=!0,u(a))),r.dispatch(f)}finally{o=!0}}})},R1=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new oh(e);return r&&o.push(T1(typeof r=="object"?r:void 0)),o},O1=!0;function L1(e){const t=j1(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(Fu(n))s=zp(n);else throw new Error(Fi(1));let u;typeof r=="function"?u=r(t):u=t();let a=oi;o&&(a=C1({trace:!O1,...typeof o=="object"&&o}));const f=Pg(...u),c=R1(f);let g=typeof l=="function"?l(c):c();const w=a(...g);return Ap(s,i,w)}var D1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",A1=(e=21)=>{let t="",n=e;for(;n--;)t+=D1[Math.random()*64|0];return t},z1=(e,t)=>{if(typeof e!="function")throw new Error(Fi(32))},Ku="listenerMiddleware",M1=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=Mi(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Fi(21));return z1(i),{predicate:o,type:t,effect:i}},F1=Object.assign(e=>{const{type:t,predicate:n,effect:r}=M1(e);return{id:A1(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Fi(22))}}},{withTypes:()=>F1}),I1=Object.assign(Mi(`${Ku}/add`),{withTypes:()=>I1});Mi(`${Ku}/removeAll`);var U1=Object.assign(Mi(`${Ku}/remove`),{withTypes:()=>U1});function Fi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const $1=L1({reducer:{task:Up,auth:$p,note:Hp,project:Qp,projectTask:Jp},middleware:e=>e().concat(rh)});kl.createRoot(document.getElementById("root")).render(h.jsx(wg,{store:$1,children:h.jsx(n1,{})})); diff --git a/index.html b/index.html index e769cad..da38ec6 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React - +